99AI/public/assets/index-2efe4620.js
2024-04-20 22:15:08 +08:00

1664 lines
974 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var v8=Object.defineProperty;var b8=(e,t,r)=>t in e?v8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Xg=(e,t,r)=>(b8(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function wu(e,t){const r=new Set(e.split(","));return t?n=>r.has(n.toLowerCase()):n=>r.has(n)}const Bt={},ra=[],Hr=()=>{},x8=()=>!1,Su=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hh=e=>e.startsWith("onUpdate:"),Jt=Object.assign,jh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},y8=Object.prototype.hasOwnProperty,ut=(e,t)=>y8.call(e,t),Ge=Array.isArray,na=e=>_u(e)==="[object Map]",Vy=e=>_u(e)==="[object Set]",Qe=e=>typeof e=="function",Ut=e=>typeof e=="string",Fa=e=>typeof e=="symbol",$t=e=>e!==null&&typeof e=="object",Gy=e=>($t(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),qy=Object.prototype.toString,_u=e=>qy.call(e),C8=e=>_u(e).slice(8,-1),Yy=e=>_u(e)==="[object Object]",Wh=e=>Ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,us=wu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Eu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},w8=/-(\w)/g,Bn=Eu(e=>e.replace(w8,(t,r)=>r?r.toUpperCase():"")),S8=/\B([A-Z])/g,xi=Eu(e=>e.replace(S8,"-$1").toLowerCase()),ku=Eu(e=>e.charAt(0).toUpperCase()+e.slice(1)),$d=Eu(e=>e?`on${ku(e)}`:""),Po=(e,t)=>!Object.is(e,t),vc=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Nc=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},v0=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_8=e=>{const t=Ut(e)?Number(e):NaN;return isNaN(t)?e:t};let Qg;const Ky=()=>Qg||(Qg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Jr(e){if(Ge(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],o=Ut(n)?A8(n):Jr(n);if(o)for(const i in o)t[i]=o[i]}return t}else if(Ut(e)||$t(e))return e}const E8=/;(?![^(]*\))/g,k8=/:([^]+)/,T8=/\/\*[^]*?\*\//g;function A8(e){const t={};return e.replace(T8,"").split(E8).forEach(r=>{if(r){const n=r.split(k8);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Kt(e){let t="";if(Ut(e))t=e;else if(Ge(e))for(let r=0;r<e.length;r++){const n=Kt(e[r]);n&&(t+=n+" ")}else if($t(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const P8="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",$8=wu(P8),I8="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",D8=wu(I8);function Xy(e){return!!e||e===""}const Re=e=>Ut(e)?e:e==null?"":Ge(e)||$t(e)&&(e.toString===qy||!Qe(e.toString))?JSON.stringify(e,Qy,2):String(e),Qy=(e,t)=>t&&t.__v_isRef?Qy(e,t.value):na(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],i)=>(r[Id(n,i)+" =>"]=o,r),{})}:Vy(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Id(r))}:Fa(t)?Id(t):$t(t)&&!Ge(t)&&!Yy(t)?String(t):t,Id=(e,t="")=>{var r;return Fa(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
* @vue/reactivity v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let zr;class Zy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=zr,!t&&zr&&(this.index=(zr.scopes||(zr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=zr;try{return zr=this,t()}finally{zr=r}}}on(){zr=this}off(){zr=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Uh(e){return new Zy(e)}function B8(e,t=zr){t&&t.active&&t.effects.push(e)}function Tu(){return zr}function Vh(e){zr&&zr.cleanups.push(e)}let ci;class Gh{constructor(t,r,n,o){this.fn=t,this.trigger=r,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,B8(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,yi();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(O8(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ci()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ko,r=ci;try{return ko=!0,ci=this,this._runnings++,Zg(this),this.fn()}finally{Jg(this),this._runnings--,ci=r,ko=t}}stop(){var t;this.active&&(Zg(this),Jg(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function O8(e){return e.value}function Zg(e){e._trackId++,e._depsLength=0}function Jg(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Jy(e.deps[t],e);e.deps.length=e._depsLength}}function Jy(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let ko=!0,b0=0;const eC=[];function yi(){eC.push(ko),ko=!1}function Ci(){const e=eC.pop();ko=e===void 0?!0:e}function qh(){b0++}function Yh(){for(b0--;!b0&&x0.length;)x0.shift()()}function tC(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Jy(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const x0=[];function rC(e,t,r){qh();for(const n of e.keys()){let o;n._dirtyLevel<t&&(o??(o=e.get(n)===n._trackId))&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(o??(o=e.get(n)===n._trackId))&&(n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&x0.push(n.scheduler)))}Yh()}const nC=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},Hc=new WeakMap,ui=Symbol(""),y0=Symbol("");function Br(e,t,r){if(ko&&ci){let n=Hc.get(e);n||Hc.set(e,n=new Map);let o=n.get(r);o||n.set(r,o=nC(()=>n.delete(r))),tC(ci,o)}}function Yn(e,t,r,n,o,i){const a=Hc.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(r==="length"&&Ge(e)){const l=Number(n);a.forEach((c,u)=>{(u==="length"||!Fa(u)&&u>=l)&&s.push(c)})}else switch(r!==void 0&&s.push(a.get(r)),t){case"add":Ge(e)?Wh(r)&&s.push(a.get("length")):(s.push(a.get(ui)),na(e)&&s.push(a.get(y0)));break;case"delete":Ge(e)||(s.push(a.get(ui)),na(e)&&s.push(a.get(y0)));break;case"set":na(e)&&s.push(a.get(ui));break}qh();for(const l of s)l&&rC(l,4);Yh()}function L8(e,t){var r;return(r=Hc.get(e))==null?void 0:r.get(t)}const R8=wu("__proto__,__v_isRef,__isVue"),oC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fa)),em=F8();function F8(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=it(this);for(let i=0,a=this.length;i<a;i++)Br(n,"get",i+"");const o=n[t](...r);return o===-1||o===!1?n[t](...r.map(it)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){yi(),qh();const n=it(this)[t].apply(this,r);return Yh(),Ci(),n}}),e}function M8(e){const t=it(this);return Br(t,"has",e),t.hasOwnProperty(e)}class iC{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){const o=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(o?i?Q8:cC:i?lC:sC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=Ge(t);if(!o){if(a&&ut(em,r))return Reflect.get(em,r,n);if(r==="hasOwnProperty")return M8}const s=Reflect.get(t,r,n);return(Fa(r)?oC.has(r):R8(r))||(o||Br(t,"get",r),i)?s:Vt(s)?a&&Wh(r)?s:s.value:$t(s)?o?en(s):nn(s):s}}class aC extends iC{constructor(t=!1){super(!1,t)}set(t,r,n,o){let i=t[r];if(!this._isShallow){const l=fa(i);if(!jc(n)&&!fa(n)&&(i=it(i),n=it(n)),!Ge(t)&&Vt(i)&&!Vt(n))return l?!1:(i.value=n,!0)}const a=Ge(t)&&Wh(r)?Number(r)<t.length:ut(t,r),s=Reflect.set(t,r,n,o);return t===it(o)&&(a?Po(n,i)&&Yn(t,"set",r,n):Yn(t,"add",r,n)),s}deleteProperty(t,r){const n=ut(t,r);t[r];const o=Reflect.deleteProperty(t,r);return o&&n&&Yn(t,"delete",r,void 0),o}has(t,r){const n=Reflect.has(t,r);return(!Fa(r)||!oC.has(r))&&Br(t,"has",r),n}ownKeys(t){return Br(t,"iterate",Ge(t)?"length":ui),Reflect.ownKeys(t)}}class z8 extends iC{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const N8=new aC,H8=new z8,j8=new aC(!0),Kh=e=>e,Au=e=>Reflect.getPrototypeOf(e);function Ol(e,t,r=!1,n=!1){e=e.__v_raw;const o=it(e),i=it(t);r||(Po(t,i)&&Br(o,"get",t),Br(o,"get",i));const{has:a}=Au(o),s=n?Kh:r?Zh:Ds;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function Ll(e,t=!1){const r=this.__v_raw,n=it(r),o=it(e);return t||(Po(e,o)&&Br(n,"has",e),Br(n,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function Rl(e,t=!1){return e=e.__v_raw,!t&&Br(it(e),"iterate",ui),Reflect.get(e,"size",e)}function tm(e){e=it(e);const t=it(this);return Au(t).has.call(t,e)||(t.add(e),Yn(t,"add",e,e)),this}function rm(e,t){t=it(t);const r=it(this),{has:n,get:o}=Au(r);let i=n.call(r,e);i||(e=it(e),i=n.call(r,e));const a=o.call(r,e);return r.set(e,t),i?Po(t,a)&&Yn(r,"set",e,t):Yn(r,"add",e,t),this}function nm(e){const t=it(this),{has:r,get:n}=Au(t);let o=r.call(t,e);o||(e=it(e),o=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return o&&Yn(t,"delete",e,void 0),i}function om(){const e=it(this),t=e.size!==0,r=e.clear();return t&&Yn(e,"clear",void 0,void 0),r}function Fl(e,t){return function(n,o){const i=this,a=i.__v_raw,s=it(a),l=t?Kh:e?Zh:Ds;return!e&&Br(s,"iterate",ui),a.forEach((c,u)=>n.call(o,l(c),l(u),i))}}function Ml(e,t,r){return function(...n){const o=this.__v_raw,i=it(o),a=na(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=o[e](...n),u=r?Kh:t?Zh:Ds;return!t&&Br(i,"iterate",l?y0:ui),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:s?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function ao(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function W8(){const e={get(i){return Ol(this,i)},get size(){return Rl(this)},has:Ll,add:tm,set:rm,delete:nm,clear:om,forEach:Fl(!1,!1)},t={get(i){return Ol(this,i,!1,!0)},get size(){return Rl(this)},has:Ll,add:tm,set:rm,delete:nm,clear:om,forEach:Fl(!1,!0)},r={get(i){return Ol(this,i,!0)},get size(){return Rl(this,!0)},has(i){return Ll.call(this,i,!0)},add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear"),forEach:Fl(!0,!1)},n={get(i){return Ol(this,i,!0,!0)},get size(){return Rl(this,!0)},has(i){return Ll.call(this,i,!0)},add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear"),forEach:Fl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Ml(i,!1,!1),r[i]=Ml(i,!0,!1),t[i]=Ml(i,!1,!0),n[i]=Ml(i,!0,!0)}),[e,r,t,n]}const[U8,V8,G8,q8]=W8();function Xh(e,t){const r=t?e?q8:G8:e?V8:U8;return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(ut(r,o)&&o in n?r:n,o,i)}const Y8={get:Xh(!1,!1)},K8={get:Xh(!1,!0)},X8={get:Xh(!0,!1)},sC=new WeakMap,lC=new WeakMap,cC=new WeakMap,Q8=new WeakMap;function Z8(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function J8(e){return e.__v_skip||!Object.isExtensible(e)?0:Z8(C8(e))}function nn(e){return fa(e)?e:Qh(e,!1,N8,Y8,sC)}function uC(e){return Qh(e,!1,j8,K8,lC)}function en(e){return Qh(e,!0,H8,X8,cC)}function Qh(e,t,r,n,o){if(!$t(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=J8(e);if(a===0)return e;const s=new Proxy(e,a===2?n:r);return o.set(e,s),s}function To(e){return fa(e)?To(e.__v_raw):!!(e&&e.__v_isReactive)}function fa(e){return!!(e&&e.__v_isReadonly)}function jc(e){return!!(e&&e.__v_isShallow)}function dC(e){return To(e)||fa(e)}function it(e){const t=e&&e.__v_raw;return t?it(t):e}function ha(e){return Object.isExtensible(e)&&Nc(e,"__v_skip",!0),e}const Ds=e=>$t(e)?nn(e):e,Zh=e=>$t(e)?en(e):e;class fC{constructor(t,r,n,o){this.getter=t,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Gh(()=>t(this._value),()=>ds(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=it(this);return(!t._cacheable||t.effect.dirty)&&Po(t._value,t._value=t.effect.run())&&ds(t,4),Jh(t),t.effect._dirtyLevel>=2&&ds(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function e5(e,t,r=!1){let n,o;const i=Qe(e);return i?(n=e,o=Hr):(n=e.get,o=e.set),new fC(n,o,i||!o,r)}function Jh(e){var t;ko&&ci&&(e=it(e),tC(ci,(t=e.dep)!=null?t:e.dep=nC(()=>e.dep=void 0,e instanceof fC?e:void 0)))}function ds(e,t=4,r){e=it(e);const n=e.dep;n&&rC(n,t)}function Vt(e){return!!(e&&e.__v_isRef===!0)}function M(e){return hC(e,!1)}function Xn(e){return hC(e,!0)}function hC(e,t){return Vt(e)?e:new t5(e,t)}class t5{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:it(t),this._value=r?t:Ds(t)}get value(){return Jh(this),this._value}set value(t){const r=this.__v_isShallow||jc(t)||fa(t);t=r?t:it(t),Po(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Ds(t),ds(this,4))}}function N(e){return Vt(e)?e.value:e}const r5={get:(e,t,r)=>N(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return Vt(o)&&!Vt(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function pC(e){return To(e)?e:new Proxy(e,r5)}class n5{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:n}=t(()=>Jh(this),()=>ds(this));this._get=r,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function o5(e){return new n5(e)}function i5(e){const t=Ge(e)?new Array(e.length):{};for(const r in e)t[r]=gC(e,r);return t}class a5{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,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 L8(it(this._object),this._key)}}class s5{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Lt(e,t,r){return Vt(e)?e:Qe(e)?new s5(e):$t(e)&&arguments.length>1?gC(e,t,r):M(e)}function gC(e,t,r){const n=e[t];return Vt(n)?n:new a5(e,t,r)}/**
* @vue/runtime-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ao(e,t,r,n){try{return n?e(...n):e()}catch(o){cl(o,t,r)}}function Qr(e,t,r,n){if(Qe(e)){const i=Ao(e,t,r,n);return i&&Gy(i)&&i.catch(a=>{cl(a,t,r)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(Qr(e[i],t,r,n));return o}function cl(e,t,r,n=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${r}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,a,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Ao(l,null,10,[e,a,s]);return}}l5(e,r,o,n)}function l5(e,t,r,n=!0){console.error(e)}let Bs=!1,C0=!1;const br=[];let Tn=0;const oa=[];let bo=null,Jo=0;const mC=Promise.resolve();let ep=null;function Qt(e){const t=ep||mC;return e?t.then(this?e.bind(this):e):t}function c5(e){let t=Tn+1,r=br.length;for(;t<r;){const n=t+r>>>1,o=br[n],i=Os(o);i<e||i===e&&o.pre?t=n+1:r=n}return t}function Pu(e){(!br.length||!br.includes(e,Bs&&e.allowRecurse?Tn+1:Tn))&&(e.id==null?br.push(e):br.splice(c5(e.id),0,e),vC())}function vC(){!Bs&&!C0&&(C0=!0,ep=mC.then(xC))}function u5(e){const t=br.indexOf(e);t>Tn&&br.splice(t,1)}function d5(e){Ge(e)?oa.push(...e):(!bo||!bo.includes(e,e.allowRecurse?Jo+1:Jo))&&oa.push(e),vC()}function im(e,t,r=Bs?Tn+1:0){for(;r<br.length;r++){const n=br[r];if(n&&n.pre){if(e&&n.id!==e.uid)continue;br.splice(r,1),r--,n()}}}function bC(e){if(oa.length){const t=[...new Set(oa)].sort((r,n)=>Os(r)-Os(n));if(oa.length=0,bo){bo.push(...t);return}for(bo=t,Jo=0;Jo<bo.length;Jo++)bo[Jo]();bo=null,Jo=0}}const Os=e=>e.id==null?1/0:e.id,f5=(e,t)=>{const r=Os(e)-Os(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function xC(e){C0=!1,Bs=!0,br.sort(f5);const t=Hr;try{for(Tn=0;Tn<br.length;Tn++){const r=br[Tn];r&&r.active!==!1&&Ao(r,null,14)}}finally{Tn=0,br.length=0,bC(),Bs=!1,ep=null,(br.length||oa.length)&&xC()}}function h5(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Bt;let o=r;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in n){const u=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:d}=n[u]||Bt;d&&(o=r.map(h=>Ut(h)?h.trim():h)),f&&(o=r.map(v0))}let s,l=n[s=$d(t)]||n[s=$d(Bn(t))];!l&&i&&(l=n[s=$d(xi(t))]),l&&Qr(l,e,6,o);const c=n[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Qr(c,e,6,o)}}function yC(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!Qe(e)){const l=c=>{const u=yC(c,t,!0);u&&(s=!0,Jt(a,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?($t(e)&&n.set(e,null),null):(Ge(i)?i.forEach(l=>a[l]=null):Jt(a,i),$t(e)&&n.set(e,a),a)}function $u(e,t){return!e||!Su(t)?!1:(t=t.slice(2).replace(/Once$/,""),ut(e,t[0].toLowerCase()+t.slice(1))||ut(e,xi(t))||ut(e,t))}let Zt=null,Iu=null;function Wc(e){const t=Zt;return Zt=e,Iu=e&&e.type.__scopeId||null,t}function Ule(e){Iu=e}function Vle(){Iu=null}function De(e,t=Zt,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&xm(-1);const i=Wc(t);let a;try{a=e(...o)}finally{Wc(i),n._d&&xm(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Dd(e){const{type:t,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:g}=e;let v,m;const b=Wc(e);try{if(r.shapeFlag&4){const x=o||n,S=x;v=En(u.call(S,x,f,i,h,d,p)),m=l}else{const x=t;v=En(x.length>1?x(i,{attrs:l,slots:s,emit:c}):x(i,null)),m=t.props?l:p5(l)}}catch(x){gs.length=0,cl(x,e,1),v=me(yr)}let y=v;if(m&&g!==!1){const x=Object.keys(m),{shapeFlag:S}=y;x.length&&S&7&&(a&&x.some(Hh)&&(m=g5(m,a)),y=tn(y,m))}return r.dirs&&(y=tn(y),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&(y.transition=r.transition),v=y,Wc(b),v}const p5=e=>{let t;for(const r in e)(r==="class"||r==="style"||Su(r))&&((t||(t={}))[r]=e[r]);return t},g5=(e,t)=>{const r={};for(const n in e)(!Hh(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function m5(e,t,r){const{props:n,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?am(n,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(a[d]!==n[d]&&!$u(c,d))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:n===a?!1:n?a?am(n,a,c):!0:!!a;return!1}function am(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(t[i]!==e[i]&&!$u(r,i))return!0}return!1}function v5({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const tp="components",b5="directives";function Uc(e,t){return rp(tp,e,!0,t)||e}const CC=Symbol.for("v-ndc");function wC(e){return Ut(e)?rp(tp,e,!1)||e:e||CC}function Gle(e){return rp(b5,e)}function rp(e,t,r=!0,n=!1){const o=Zt||or;if(o){const i=o.type;if(e===tp){const s=dk(i,!1);if(s&&(s===t||s===Bn(t)||s===ku(Bn(t))))return i}const a=sm(o[e]||i[e],t)||sm(o.appContext[e],t);return!a&&n?i:a}}function sm(e,t){return e&&(e[t]||e[Bn(t)]||e[ku(Bn(t))])}const x5=e=>e.__isSuspense;function y5(e,t){t&&t.pendingBranch?Ge(e)?t.effects.push(...e):t.effects.push(e):d5(e)}const C5=Symbol.for("v-scx"),w5=()=>ze(C5);function Or(e,t){return np(e,null,t)}const zl={};function Je(e,t,r){return np(e,t,r)}function np(e,t,{immediate:r,deep:n,flush:o,once:i,onTrack:a,onTrigger:s}=Bt){if(t&&i){const C=t;t=(...w)=>{C(...w),S()}}const l=or,c=C=>n===!0?C:ni(C,n===!1?1:void 0);let u,f=!1,d=!1;if(Vt(e)?(u=()=>e.value,f=jc(e)):To(e)?(u=()=>c(e),f=!0):Ge(e)?(d=!0,f=e.some(C=>To(C)||jc(C)),u=()=>e.map(C=>{if(Vt(C))return C.value;if(To(C))return c(C);if(Qe(C))return Ao(C,l,2)})):Qe(e)?t?u=()=>Ao(e,l,2):u=()=>(h&&h(),Qr(e,l,3,[p])):u=Hr,t&&n){const C=u;u=()=>ni(C())}let h,p=C=>{h=y.onStop=()=>{Ao(C,l,4),h=y.onStop=void 0}},g;if(fl)if(p=Hr,t?r&&Qr(t,l,3,[u(),d?[]:void 0,p]):u(),o==="sync"){const C=w5();g=C.__watcherHandles||(C.__watcherHandles=[])}else return Hr;let v=d?new Array(e.length).fill(zl):zl;const m=()=>{if(!(!y.active||!y.dirty))if(t){const C=y.run();(n||f||(d?C.some((w,k)=>Po(w,v[k])):Po(C,v)))&&(h&&h(),Qr(t,l,3,[C,v===zl?void 0:d&&v[0]===zl?[]:v,p]),v=C)}else y.run()};m.allowRecurse=!!t;let b;o==="sync"?b=m:o==="post"?b=()=>$r(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),b=()=>Pu(m));const y=new Gh(u,Hr,b),x=Tu(),S=()=>{y.stop(),x&&jh(x.effects,y)};return t?r?m():v=y.run():o==="post"?$r(y.run.bind(y),l&&l.suspense):y.run(),g&&g.push(S),S}function S5(e,t,r){const n=this.proxy,o=Ut(e)?e.includes(".")?SC(n,e):()=>n[e]:e.bind(n,n);let i;Qe(t)?i=t:(i=t.handler,r=t);const a=dl(this),s=np(o,i.bind(n),r);return a(),s}function SC(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}function ni(e,t,r=0,n){if(!$t(e)||e.__v_skip)return e;if(t&&t>0){if(r>=t)return e;r++}if(n=n||new Set,n.has(e))return e;if(n.add(e),Vt(e))ni(e.value,t,r,n);else if(Ge(e))for(let o=0;o<e.length;o++)ni(e[o],t,r,n);else if(Vy(e)||na(e))e.forEach(o=>{ni(o,t,r,n)});else if(Yy(e))for(const o in e)ni(e[o],t,r,n);return e}function lr(e,t){if(Zt===null)return e;const r=Lu(Zt)||Zt.proxy,n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,s,l=Bt]=t[o];i&&(Qe(i)&&(i={mounted:i,updated:i}),i.deep&&ni(a),n.push({dir:i,instance:r,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function Uo(e,t,r,n){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[n];l&&(yi(),Qr(l,r,8,[e.el,s,e,t]),Ci())}}const xo=Symbol("_leaveCb"),Nl=Symbol("_enterCb");function _C(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _t(()=>{e.isMounted=!0}),Ht(()=>{e.isUnmounting=!0}),e}const Vr=[Function,Array],EC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vr,onEnter:Vr,onAfterEnter:Vr,onEnterCancelled:Vr,onBeforeLeave:Vr,onLeave:Vr,onAfterLeave:Vr,onLeaveCancelled:Vr,onBeforeAppear:Vr,onAppear:Vr,onAfterAppear:Vr,onAppearCancelled:Vr},_5={name:"BaseTransition",props:EC,setup(e,{slots:t}){const r=Er(),n=_C();return()=>{const o=t.default&&op(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const d of o)if(d.type!==yr){i=d;break}}const a=it(e),{mode:s}=a;if(n.isLeaving)return Bd(i);const l=lm(i);if(!l)return Bd(i);const c=Ls(l,a,n,r);Rs(l,c);const u=r.subTree,f=u&&lm(u);if(f&&f.type!==yr&&!ei(l,f)){const d=Ls(f,a,n,r);if(Rs(f,d),s==="out-in")return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Bd(i);s==="in-out"&&l.type!==yr&&(d.delayLeave=(h,p,g)=>{const v=kC(n,f);v[String(f.key)]=f,h[xo]=()=>{p(),h[xo]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return i}}},E5=_5;function kC(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Ls(e,t,r,n){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:v,onAfterAppear:m,onAppearCancelled:b}=t,y=String(e.key),x=kC(r,e),S=(k,A)=>{k&&Qr(k,n,9,A)},C=(k,A)=>{const T=A[1];S(k,A),Ge(k)?k.every(I=>I.length<=1)&&T():k.length<=1&&T()},w={mode:i,persisted:a,beforeEnter(k){let A=s;if(!r.isMounted)if(o)A=g||s;else return;k[xo]&&k[xo](!0);const T=x[y];T&&ei(e,T)&&T.el[xo]&&T.el[xo](),S(A,[k])},enter(k){let A=l,T=c,I=u;if(!r.isMounted)if(o)A=v||l,T=m||c,I=b||u;else return;let D=!1;const B=k[Nl]=j=>{D||(D=!0,j?S(I,[k]):S(T,[k]),w.delayedLeave&&w.delayedLeave(),k[Nl]=void 0)};A?C(A,[k,B]):B()},leave(k,A){const T=String(e.key);if(k[Nl]&&k[Nl](!0),r.isUnmounting)return A();S(f,[k]);let I=!1;const D=k[xo]=B=>{I||(I=!0,A(),B?S(p,[k]):S(h,[k]),k[xo]=void 0,x[T]===e&&delete x[T])};x[T]=e,d?C(d,[k,D]):D()},clone(k){return Ls(k,t,r,n)}};return w}function Bd(e){if(ul(e))return e=tn(e),e.children=null,e}function lm(e){return ul(e)?e.children?e.children[0]:void 0:e}function Rs(e,t){e.shapeFlag&6&&e.component?Rs(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function op(e,t=!1,r){let n=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=r==null?a.key:String(r)+String(a.key!=null?a.key:i);a.type===ot?(a.patchFlag&128&&o++,n=n.concat(op(a.children,t,s))):(t||a.type!==yr)&&n.push(s!=null?tn(a,{key:s}):a)}if(o>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function pe(e,t){return Qe(e)?(()=>Jt({name:e.name},t,{setup:e}))():e}const fs=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function k5(e){Qe(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:o=200,timeout:i,suspensible:a=!0,onError:s}=e;let l=null,c,u=0;const f=()=>(u++,l=null,d()),d=()=>{let h;return l||(h=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((g,v)=>{s(p,()=>g(f()),()=>v(p),u+1)});throw p}).then(p=>h!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return pe({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const h=or;if(c)return()=>Od(c,h);const p=b=>{l=null,cl(b,h,13,!n)};if(a&&h.suspense||fl)return d().then(b=>()=>Od(b,h)).catch(b=>(p(b),()=>n?me(n,{error:b}):null));const g=M(!1),v=M(),m=M(!!o);return o&&setTimeout(()=>{m.value=!1},o),i!=null&&setTimeout(()=>{if(!g.value&&!v.value){const b=new Error(`Async component timed out after ${i}ms.`);p(b),v.value=b}},i),d().then(()=>{g.value=!0,h.parent&&ul(h.parent.vnode)&&(h.parent.effect.dirty=!0,Pu(h.parent.update))}).catch(b=>{p(b),v.value=b}),()=>{if(g.value&&c)return Od(c,h);if(v.value&&n)return me(n,{error:v.value});if(r&&!m.value)return me(r)}}})}function Od(e,t){const{ref:r,props:n,children:o,ce:i}=t.vnode,a=me(e,n,o);return a.ref=r,a.ce=i,delete t.vnode.ce,a}const ul=e=>e.type.__isKeepAlive;function TC(e,t){PC(e,"a",t)}function AC(e,t){PC(e,"da",t)}function PC(e,t,r=or){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Du(t,n,r),r){let o=r.parent;for(;o&&o.parent;)ul(o.parent.vnode)&&T5(n,t,r,o),o=o.parent}}function T5(e,t,r,n){const o=Du(t,e,n,!0);wi(()=>{jh(n[t],o)},r)}function Du(e,t,r=or,n=!1){if(r){const o=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;yi();const s=dl(r),l=Qr(t,r,e,a);return s(),Ci(),l});return n?o.unshift(i):o.push(i),i}}const Jn=e=>(t,r=or)=>(!fl||e==="sp")&&Du(e,(...n)=>t(...n),r),bn=Jn("bm"),_t=Jn("m"),A5=Jn("bu"),ip=Jn("u"),Ht=Jn("bum"),wi=Jn("um"),P5=Jn("sp"),$5=Jn("rtg"),I5=Jn("rtc");function D5(e,t=or){Du("ec",e,t)}function Fs(e,t,r,n){let o;const i=r&&r[n];if(Ge(e)||Ut(e)){o=new Array(e.length);for(let a=0,s=e.length;a<s;a++)o[a]=t(e[a],a,void 0,i&&i[a])}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i&&i[a])}else if($t(e))if(e[Symbol.iterator])o=Array.from(e,(a,s)=>t(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,l=a.length;s<l;s++){const c=a[s];o[s]=t(e[c],c,s,i&&i[s])}}else o=[];return r&&(r[n]=o),o}function pa(e,t,r={},n,o){if(Zt.isCE||Zt.parent&&fs(Zt.parent)&&Zt.parent.isCE)return t!=="default"&&(r.name=t),me("slot",r,n&&n());let i=e[t];i&&i._c&&(i._d=!1),he();const a=i&&$C(i(r)),s=rt(ot,{key:r.key||a&&a.key||`_${t}`},a||(n?n():[]),a&&e._===1?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function $C(e){return e.some(t=>zs(t)?!(t.type===yr||t.type===ot&&!$C(t.children)):!0)?e:null}const w0=e=>e?WC(e)?Lu(e)||e.proxy:w0(e.parent):null,hs=Jt(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=>w0(e.parent),$root:e=>w0(e.root),$emit:e=>e.emit,$options:e=>ap(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Pu(e.update)}),$nextTick:e=>e.n||(e.n=Qt.bind(e.proxy)),$watch:e=>S5.bind(e)}),Ld=(e,t)=>e!==Bt&&!e.__isScriptSetup&&ut(e,t),B5={get({_:e},t){const{ctx:r,setupState:n,data:o,props:i,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return i[t]}else{if(Ld(n,t))return a[t]=1,n[t];if(o!==Bt&&ut(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&ut(c,t))return a[t]=3,i[t];if(r!==Bt&&ut(r,t))return a[t]=4,r[t];S0&&(a[t]=0)}}const u=hs[t];let f,d;if(u)return t==="$attrs"&&Br(e,"get",t),u(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==Bt&&ut(r,t))return a[t]=4,r[t];if(d=l.config.globalProperties,ut(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:i}=e;return Ld(o,t)?(o[t]=r,!0):n!==Bt&&ut(n,t)?(n[t]=r,!0):ut(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:i}},a){let s;return!!r[a]||e!==Bt&&ut(e,a)||Ld(t,a)||(s=i[0])&&ut(s,a)||ut(n,a)||ut(hs,a)||ut(o.config.globalProperties,a)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ut(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function O5(){return IC().slots}function L5(){return IC().attrs}function IC(){const e=Er();return e.setupContext||(e.setupContext=VC(e))}function cm(e){return Ge(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let S0=!0;function R5(e){const t=ap(e),r=e.proxy,n=e.ctx;S0=!1,t.beforeCreate&&um(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:g,deactivated:v,beforeDestroy:m,beforeUnmount:b,destroyed:y,unmounted:x,render:S,renderTracked:C,renderTriggered:w,errorCaptured:k,serverPrefetch:A,expose:T,inheritAttrs:I,components:D,directives:B,filters:j}=t;if(c&&F5(c,n,null),a)for(const V in a){const oe=a[V];Qe(oe)&&(n[V]=oe.bind(r))}if(o){const V=o.call(r,r);$t(V)&&(e.data=nn(V))}if(S0=!0,i)for(const V in i){const oe=i[V],fe=Qe(oe)?oe.bind(r,r):Qe(oe.get)?oe.get.bind(r,r):Hr,ge=!Qe(oe)&&Qe(oe.set)?oe.set.bind(r):Hr,U=R({get:fe,set:ge});Object.defineProperty(n,V,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(s)for(const V in s)DC(s[V],n,r,V);if(l){const V=Qe(l)?l.call(r):l;Reflect.ownKeys(V).forEach(oe=>{ft(oe,V[oe])})}u&&um(u,e,"c");function z(V,oe){Ge(oe)?oe.forEach(fe=>V(fe.bind(r))):oe&&V(oe.bind(r))}if(z(bn,f),z(_t,d),z(A5,h),z(ip,p),z(TC,g),z(AC,v),z(D5,k),z(I5,C),z($5,w),z(Ht,b),z(wi,x),z(P5,A),Ge(T))if(T.length){const V=e.exposed||(e.exposed={});T.forEach(oe=>{Object.defineProperty(V,oe,{get:()=>r[oe],set:fe=>r[oe]=fe})})}else e.exposed||(e.exposed={});S&&e.render===Hr&&(e.render=S),I!=null&&(e.inheritAttrs=I),D&&(e.components=D),B&&(e.directives=B)}function F5(e,t,r=Hr){Ge(e)&&(e=_0(e));for(const n in e){const o=e[n];let i;$t(o)?"default"in o?i=ze(o.from||n,o.default,!0):i=ze(o.from||n):i=ze(o),Vt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function um(e,t,r){Qr(Ge(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function DC(e,t,r,n){const o=n.includes(".")?SC(r,n):()=>r[n];if(Ut(e)){const i=t[e];Qe(i)&&Je(o,i)}else if(Qe(e))Je(o,e.bind(r));else if($t(e))if(Ge(e))e.forEach(i=>DC(i,t,r,n));else{const i=Qe(e.handler)?e.handler.bind(r):t[e.handler];Qe(i)&&Je(o,i,e)}}function ap(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(c=>Vc(l,c,a,!0)),Vc(l,t,a)),$t(t)&&i.set(t,l),l}function Vc(e,t,r,n=!1){const{mixins:o,extends:i}=t;i&&Vc(e,i,r,!0),o&&o.forEach(a=>Vc(e,a,r,!0));for(const a in t)if(!(n&&a==="expose")){const s=M5[a]||r&&r[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const M5={data:dm,props:fm,emits:fm,methods:ss,computed:ss,beforeCreate:wr,created:wr,beforeMount:wr,mounted:wr,beforeUpdate:wr,updated:wr,beforeDestroy:wr,beforeUnmount:wr,destroyed:wr,unmounted:wr,activated:wr,deactivated:wr,errorCaptured:wr,serverPrefetch:wr,components:ss,directives:ss,watch:N5,provide:dm,inject:z5};function dm(e,t){return t?e?function(){return Jt(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function z5(e,t){return ss(_0(e),_0(t))}function _0(e){if(Ge(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function wr(e,t){return e?[...new Set([].concat(e,t))]:t}function ss(e,t){return e?Jt(Object.create(null),e,t):t}function fm(e,t){return e?Ge(e)&&Ge(t)?[...new Set([...e,...t])]:Jt(Object.create(null),cm(e),cm(t??{})):t}function N5(e,t){if(!e)return t;if(!t)return e;const r=Jt(Object.create(null),e);for(const n in t)r[n]=wr(e[n],t[n]);return r}function BC(){return{app:null,config:{isNativeTag:x8,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let H5=0;function j5(e,t){return function(n,o=null){Qe(n)||(n=Jt({},n)),o!=null&&!$t(o)&&(o=null);const i=BC(),a=new WeakSet;let s=!1;const l=i.app={_uid:H5++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:hk,get config(){return i.config},set config(c){},use(c,...u){return a.has(c)||(c&&Qe(c.install)?(a.add(c),c.install(l,...u)):Qe(c)&&(a.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,f){if(!s){const d=me(n,o);return d.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(d,c):e(d,c,f),s=!0,l._container=c,c.__vue_app__=l,Lu(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l},runWithContext(c){const u=ia;ia=l;try{return c()}finally{ia=u}}};return l}}let ia=null;function ft(e,t){if(or){let r=or.provides;const n=or.parent&&or.parent.provides;n===r&&(r=or.provides=Object.create(n)),r[e]=t}}function ze(e,t,r=!1){const n=or||Zt;if(n||ia){const o=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:ia._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return r&&Qe(t)?t.call(n&&n.proxy):t}}function W5(){return!!(or||Zt||ia)}function U5(e,t,r,n=!1){const o={},i={};Nc(i,Ou,1),e.propsDefaults=Object.create(null),OC(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);r?e.props=n?o:uC(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function V5(e,t,r,n){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=it(o),[l]=e.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if($u(e.emitsOptions,d))continue;const h=t[d];if(l)if(ut(i,d))h!==i[d]&&(i[d]=h,c=!0);else{const p=Bn(d);o[p]=E0(l,s,p,h,e,!1)}else h!==i[d]&&(i[d]=h,c=!0)}}}else{OC(e,t,o,i)&&(c=!0);let u;for(const f in s)(!t||!ut(t,f)&&((u=xi(f))===f||!ut(t,u)))&&(l?r&&(r[f]!==void 0||r[u]!==void 0)&&(o[f]=E0(l,s,f,void 0,e,!0)):delete o[f]);if(i!==s)for(const f in i)(!t||!ut(t,f))&&(delete i[f],c=!0)}c&&Yn(e,"set","$attrs")}function OC(e,t,r,n){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(us(l))continue;const c=t[l];let u;o&&ut(o,u=Bn(l))?!i||!i.includes(u)?r[u]=c:(s||(s={}))[u]=c:$u(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,a=!0)}if(i){const l=it(r),c=s||Bt;for(let u=0;u<i.length;u++){const f=i[u];r[f]=E0(o,l,f,c[f],e,!ut(c,f))}}return a}function E0(e,t,r,n,o,i){const a=e[r];if(a!=null){const s=ut(a,"default");if(s&&n===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Qe(l)){const{propsDefaults:c}=o;if(r in c)n=c[r];else{const u=dl(o);n=c[r]=l.call(null,t),u()}}else n=l}a[0]&&(i&&!s?n=!1:a[1]&&(n===""||n===xi(r))&&(n=!0))}return n}function LC(e,t,r=!1){const n=t.propsCache,o=n.get(e);if(o)return o;const i=e.props,a={},s=[];let l=!1;if(!Qe(e)){const u=f=>{l=!0;const[d,h]=LC(f,t,!0);Jt(a,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return $t(e)&&n.set(e,ra),ra;if(Ge(i))for(let u=0;u<i.length;u++){const f=Bn(i[u]);hm(f)&&(a[f]=Bt)}else if(i)for(const u in i){const f=Bn(u);if(hm(f)){const d=i[u],h=a[f]=Ge(d)||Qe(d)?{type:d}:Jt({},d);if(h){const p=mm(Boolean,h.type),g=mm(String,h.type);h[0]=p>-1,h[1]=g<0||p<g,(p>-1||ut(h,"default"))&&s.push(f)}}}const c=[a,s];return $t(e)&&n.set(e,c),c}function hm(e){return e[0]!=="$"&&!us(e)}function pm(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function gm(e,t){return pm(e)===pm(t)}function mm(e,t){return Ge(t)?t.findIndex(r=>gm(r,e)):Qe(t)&&gm(t,e)?0:-1}const RC=e=>e[0]==="_"||e==="$stable",sp=e=>Ge(e)?e.map(En):[En(e)],G5=(e,t,r)=>{if(t._n)return t;const n=De((...o)=>sp(t(...o)),r);return n._c=!1,n},FC=(e,t,r)=>{const n=e._ctx;for(const o in e){if(RC(o))continue;const i=e[o];if(Qe(i))t[o]=G5(o,i,n);else if(i!=null){const a=sp(i);t[o]=()=>a}}},MC=(e,t)=>{const r=sp(t);e.slots.default=()=>r},q5=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=it(t),Nc(t,"_",r)):FC(t,e.slots={})}else e.slots={},t&&MC(e,t);Nc(e.slots,Ou,1)},Y5=(e,t,r)=>{const{vnode:n,slots:o}=e;let i=!0,a=Bt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(Jt(o,t),!r&&s===1&&delete o._):(i=!t.$stable,FC(t,o)),a=t}else t&&(MC(e,t),a={default:1});if(i)for(const s in o)!RC(s)&&a[s]==null&&delete o[s]};function k0(e,t,r,n,o=!1){if(Ge(e)){e.forEach((d,h)=>k0(d,t&&(Ge(t)?t[h]:t),r,n,o));return}if(fs(n)&&!o)return;const i=n.shapeFlag&4?Lu(n.component)||n.component.proxy:n.el,a=o?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===Bt?s.refs={}:s.refs,f=s.setupState;if(c!=null&&c!==l&&(Ut(c)?(u[c]=null,ut(f,c)&&(f[c]=null)):Vt(c)&&(c.value=null)),Qe(l))Ao(l,s,12,[a,u]);else{const d=Ut(l),h=Vt(l);if(d||h){const p=()=>{if(e.f){const g=d?ut(f,l)?f[l]:u[l]:l.value;o?Ge(g)&&jh(g,i):Ge(g)?g.includes(i)||g.push(i):d?(u[l]=[i],ut(f,l)&&(f[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else d?(u[l]=a,ut(f,l)&&(f[l]=a)):h&&(l.value=a,e.k&&(u[e.k]=a))};a?(p.id=-1,$r(p,r)):p()}}}const $r=y5;function K5(e){return X5(e)}function X5(e,t){const r=Ky();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=Hr,insertStaticContent:p}=e,g=(_,E,P,O=null,L=null,G=null,K=void 0,H=null,ee=!!E.dynamicChildren)=>{if(_===E)return;_&&!ei(_,E)&&(O=q(_),X(_,L,G,!0),_=null),E.patchFlag===-2&&(ee=!1,E.dynamicChildren=null);const{type:Q,ref:Ce,shapeFlag:Te}=E;switch(Q){case Ma:v(_,E,P,O);break;case yr:m(_,E,P,O);break;case bc:_==null&&b(E,P,O,K);break;case ot:D(_,E,P,O,L,G,K,H,ee);break;default:Te&1?S(_,E,P,O,L,G,K,H,ee):Te&6?B(_,E,P,O,L,G,K,H,ee):(Te&64||Te&128)&&Q.process(_,E,P,O,L,G,K,H,ee,ve)}Ce!=null&&L&&k0(Ce,_&&_.ref,G,E||_,!E)},v=(_,E,P,O)=>{if(_==null)n(E.el=s(E.children),P,O);else{const L=E.el=_.el;E.children!==_.children&&c(L,E.children)}},m=(_,E,P,O)=>{_==null?n(E.el=l(E.children||""),P,O):E.el=_.el},b=(_,E,P,O)=>{[_.el,_.anchor]=p(_.children,E,P,O,_.el,_.anchor)},y=({el:_,anchor:E},P,O)=>{let L;for(;_&&_!==E;)L=d(_),n(_,P,O),_=L;n(E,P,O)},x=({el:_,anchor:E})=>{let P;for(;_&&_!==E;)P=d(_),o(_),_=P;o(E)},S=(_,E,P,O,L,G,K,H,ee)=>{E.type==="svg"?K="svg":E.type==="math"&&(K="mathml"),_==null?C(E,P,O,L,G,K,H,ee):A(_,E,L,G,K,H,ee)},C=(_,E,P,O,L,G,K,H)=>{let ee,Q;const{props:Ce,shapeFlag:Te,transition:Se,dirs:W}=_;if(ee=_.el=a(_.type,G,Ce&&Ce.is,Ce),Te&8?u(ee,_.children):Te&16&&k(_.children,ee,null,O,L,Rd(_,G),K,H),W&&Uo(_,null,O,"created"),w(ee,_,_.scopeId,K,O),Ce){for(const Oe in Ce)Oe!=="value"&&!us(Oe)&&i(ee,Oe,null,Ce[Oe],G,_.children,O,L,ye);"value"in Ce&&i(ee,"value",null,Ce.value,G),(Q=Ce.onVnodeBeforeMount)&&yn(Q,O,_)}W&&Uo(_,null,O,"beforeMount");const J=Q5(L,Se);J&&Se.beforeEnter(ee),n(ee,E,P),((Q=Ce&&Ce.onVnodeMounted)||J||W)&&$r(()=>{Q&&yn(Q,O,_),J&&Se.enter(ee),W&&Uo(_,null,O,"mounted")},L)},w=(_,E,P,O,L)=>{if(P&&h(_,P),O)for(let G=0;G<O.length;G++)h(_,O[G]);if(L){let G=L.subTree;if(E===G){const K=L.vnode;w(_,K,K.scopeId,K.slotScopeIds,L.parent)}}},k=(_,E,P,O,L,G,K,H,ee=0)=>{for(let Q=ee;Q<_.length;Q++){const Ce=_[Q]=H?yo(_[Q]):En(_[Q]);g(null,Ce,E,P,O,L,G,K,H)}},A=(_,E,P,O,L,G,K)=>{const H=E.el=_.el;let{patchFlag:ee,dynamicChildren:Q,dirs:Ce}=E;ee|=_.patchFlag&16;const Te=_.props||Bt,Se=E.props||Bt;let W;if(P&&Vo(P,!1),(W=Se.onVnodeBeforeUpdate)&&yn(W,P,E,_),Ce&&Uo(E,_,P,"beforeUpdate"),P&&Vo(P,!0),Q?T(_.dynamicChildren,Q,H,P,O,Rd(E,L),G):K||oe(_,E,H,null,P,O,Rd(E,L),G,!1),ee>0){if(ee&16)I(H,E,Te,Se,P,O,L);else if(ee&2&&Te.class!==Se.class&&i(H,"class",null,Se.class,L),ee&4&&i(H,"style",Te.style,Se.style,L),ee&8){const J=E.dynamicProps;for(let Oe=0;Oe<J.length;Oe++){const He=J[Oe],st=Te[He],yt=Se[He];(yt!==st||He==="value")&&i(H,He,st,yt,L,_.children,P,O,ye)}}ee&1&&_.children!==E.children&&u(H,E.children)}else!K&&Q==null&&I(H,E,Te,Se,P,O,L);((W=Se.onVnodeUpdated)||Ce)&&$r(()=>{W&&yn(W,P,E,_),Ce&&Uo(E,_,P,"updated")},O)},T=(_,E,P,O,L,G,K)=>{for(let H=0;H<E.length;H++){const ee=_[H],Q=E[H],Ce=ee.el&&(ee.type===ot||!ei(ee,Q)||ee.shapeFlag&70)?f(ee.el):P;g(ee,Q,Ce,null,O,L,G,K,!0)}},I=(_,E,P,O,L,G,K)=>{if(P!==O){if(P!==Bt)for(const H in P)!us(H)&&!(H in O)&&i(_,H,P[H],null,K,E.children,L,G,ye);for(const H in O){if(us(H))continue;const ee=O[H],Q=P[H];ee!==Q&&H!=="value"&&i(_,H,Q,ee,K,E.children,L,G,ye)}"value"in O&&i(_,"value",P.value,O.value,K)}},D=(_,E,P,O,L,G,K,H,ee)=>{const Q=E.el=_?_.el:s(""),Ce=E.anchor=_?_.anchor:s("");let{patchFlag:Te,dynamicChildren:Se,slotScopeIds:W}=E;W&&(H=H?H.concat(W):W),_==null?(n(Q,P,O),n(Ce,P,O),k(E.children||[],P,Ce,L,G,K,H,ee)):Te>0&&Te&64&&Se&&_.dynamicChildren?(T(_.dynamicChildren,Se,P,L,G,K,H),(E.key!=null||L&&E===L.subTree)&&lp(_,E,!0)):oe(_,E,P,Ce,L,G,K,H,ee)},B=(_,E,P,O,L,G,K,H,ee)=>{E.slotScopeIds=H,_==null?E.shapeFlag&512?L.ctx.activate(E,P,O,K,ee):j(E,P,O,L,G,K,ee):F(_,E,ee)},j=(_,E,P,O,L,G,K)=>{const H=_.component=sk(_,O,L);if(ul(_)&&(H.ctx.renderer=ve),lk(H),H.asyncDep){if(L&&L.registerDep(H,z),!_.el){const ee=H.subTree=me(yr);m(null,ee,E,P)}}else z(H,_,E,P,L,G,K)},F=(_,E,P)=>{const O=E.component=_.component;if(m5(_,E,P))if(O.asyncDep&&!O.asyncResolved){V(O,E,P);return}else O.next=E,u5(O.update),O.effect.dirty=!0,O.update();else E.el=_.el,O.vnode=E},z=(_,E,P,O,L,G,K)=>{const H=()=>{if(_.isMounted){let{next:Ce,bu:Te,u:Se,parent:W,vnode:J}=_;{const Gt=zC(_);if(Gt){Ce&&(Ce.el=J.el,V(_,Ce,K)),Gt.asyncDep.then(()=>{_.isUnmounted||H()});return}}let Oe=Ce,He;Vo(_,!1),Ce?(Ce.el=J.el,V(_,Ce,K)):Ce=J,Te&&vc(Te),(He=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&yn(He,W,Ce,J),Vo(_,!0);const st=Dd(_),yt=_.subTree;_.subTree=st,g(yt,st,f(yt.el),q(yt),_,L,G),Ce.el=st.el,Oe===null&&v5(_,st.el),Se&&$r(Se,L),(He=Ce.props&&Ce.props.onVnodeUpdated)&&$r(()=>yn(He,W,Ce,J),L)}else{let Ce;const{el:Te,props:Se}=E,{bm:W,m:J,parent:Oe}=_,He=fs(E);if(Vo(_,!1),W&&vc(W),!He&&(Ce=Se&&Se.onVnodeBeforeMount)&&yn(Ce,Oe,E),Vo(_,!0),Te&&$e){const st=()=>{_.subTree=Dd(_),$e(Te,_.subTree,_,L,null)};He?E.type.__asyncLoader().then(()=>!_.isUnmounted&&st()):st()}else{const st=_.subTree=Dd(_);g(null,st,P,O,_,L,G),E.el=st.el}if(J&&$r(J,L),!He&&(Ce=Se&&Se.onVnodeMounted)){const st=E;$r(()=>yn(Ce,Oe,st),L)}(E.shapeFlag&256||Oe&&fs(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&_.a&&$r(_.a,L),_.isMounted=!0,E=P=O=null}},ee=_.effect=new Gh(H,Hr,()=>Pu(Q),_.scope),Q=_.update=()=>{ee.dirty&&ee.run()};Q.id=_.uid,Vo(_,!0),Q()},V=(_,E,P)=>{E.component=_;const O=_.vnode.props;_.vnode=E,_.next=null,V5(_,E.props,O,P),Y5(_,E.children,P),yi(),im(_),Ci()},oe=(_,E,P,O,L,G,K,H,ee=!1)=>{const Q=_&&_.children,Ce=_?_.shapeFlag:0,Te=E.children,{patchFlag:Se,shapeFlag:W}=E;if(Se>0){if(Se&128){ge(Q,Te,P,O,L,G,K,H,ee);return}else if(Se&256){fe(Q,Te,P,O,L,G,K,H,ee);return}}W&8?(Ce&16&&ye(Q,L,G),Te!==Q&&u(P,Te)):Ce&16?W&16?ge(Q,Te,P,O,L,G,K,H,ee):ye(Q,L,G,!0):(Ce&8&&u(P,""),W&16&&k(Te,P,O,L,G,K,H,ee))},fe=(_,E,P,O,L,G,K,H,ee)=>{_=_||ra,E=E||ra;const Q=_.length,Ce=E.length,Te=Math.min(Q,Ce);let Se;for(Se=0;Se<Te;Se++){const W=E[Se]=ee?yo(E[Se]):En(E[Se]);g(_[Se],W,P,null,L,G,K,H,ee)}Q>Ce?ye(_,L,G,!0,!1,Te):k(E,P,O,L,G,K,H,ee,Te)},ge=(_,E,P,O,L,G,K,H,ee)=>{let Q=0;const Ce=E.length;let Te=_.length-1,Se=Ce-1;for(;Q<=Te&&Q<=Se;){const W=_[Q],J=E[Q]=ee?yo(E[Q]):En(E[Q]);if(ei(W,J))g(W,J,P,null,L,G,K,H,ee);else break;Q++}for(;Q<=Te&&Q<=Se;){const W=_[Te],J=E[Se]=ee?yo(E[Se]):En(E[Se]);if(ei(W,J))g(W,J,P,null,L,G,K,H,ee);else break;Te--,Se--}if(Q>Te){if(Q<=Se){const W=Se+1,J=W<Ce?E[W].el:O;for(;Q<=Se;)g(null,E[Q]=ee?yo(E[Q]):En(E[Q]),P,J,L,G,K,H,ee),Q++}}else if(Q>Se)for(;Q<=Te;)X(_[Q],L,G,!0),Q++;else{const W=Q,J=Q,Oe=new Map;for(Q=J;Q<=Se;Q++){const de=E[Q]=ee?yo(E[Q]):En(E[Q]);de.key!=null&&Oe.set(de.key,Q)}let He,st=0;const yt=Se-J+1;let Gt=!1,Nn=0;const hr=new Array(yt);for(Q=0;Q<yt;Q++)hr[Q]=0;for(Q=W;Q<=Te;Q++){const de=_[Q];if(st>=yt){X(de,L,G,!0);continue}let Ee;if(de.key!=null)Ee=Oe.get(de.key);else for(He=J;He<=Se;He++)if(hr[He-J]===0&&ei(de,E[He])){Ee=He;break}Ee===void 0?X(de,L,G,!0):(hr[Ee-J]=Q+1,Ee>=Nn?Nn=Ee:Gt=!0,g(de,E[Ee],P,null,L,G,K,H,ee),st++)}const Oi=Gt?Z5(hr):ra;for(He=Oi.length-1,Q=yt-1;Q>=0;Q--){const de=J+Q,Ee=E[de],Ue=de+1<Ce?E[de+1].el:O;hr[Q]===0?g(null,Ee,P,Ue,L,G,K,H,ee):Gt&&(He<0||Q!==Oi[He]?U(Ee,P,Ue,2):He--)}}},U=(_,E,P,O,L=null)=>{const{el:G,type:K,transition:H,children:ee,shapeFlag:Q}=_;if(Q&6){U(_.component.subTree,E,P,O);return}if(Q&128){_.suspense.move(E,P,O);return}if(Q&64){K.move(_,E,P,ve);return}if(K===ot){n(G,E,P);for(let Te=0;Te<ee.length;Te++)U(ee[Te],E,P,O);n(_.anchor,E,P);return}if(K===bc){y(_,E,P);return}if(O!==2&&Q&1&&H)if(O===0)H.beforeEnter(G),n(G,E,P),$r(()=>H.enter(G),L);else{const{leave:Te,delayLeave:Se,afterLeave:W}=H,J=()=>n(G,E,P),Oe=()=>{Te(G,()=>{J(),W&&W()})};Se?Se(G,J,Oe):Oe()}else n(G,E,P)},X=(_,E,P,O=!1,L=!1)=>{const{type:G,props:K,ref:H,children:ee,dynamicChildren:Q,shapeFlag:Ce,patchFlag:Te,dirs:Se}=_;if(H!=null&&k0(H,null,P,_,!0),Ce&256){E.ctx.deactivate(_);return}const W=Ce&1&&Se,J=!fs(_);let Oe;if(J&&(Oe=K&&K.onVnodeBeforeUnmount)&&yn(Oe,E,_),Ce&6)Be(_.component,P,O);else{if(Ce&128){_.suspense.unmount(P,O);return}W&&Uo(_,null,E,"beforeUnmount"),Ce&64?_.type.remove(_,E,P,L,ve,O):Q&&(G!==ot||Te>0&&Te&64)?ye(Q,E,P,!1,!0):(G===ot&&Te&384||!L&&Ce&16)&&ye(ee,E,P),O&&ae(_)}(J&&(Oe=K&&K.onVnodeUnmounted)||W)&&$r(()=>{Oe&&yn(Oe,E,_),W&&Uo(_,null,E,"unmounted")},P)},ae=_=>{const{type:E,el:P,anchor:O,transition:L}=_;if(E===ot){Z(P,O);return}if(E===bc){x(_);return}const G=()=>{o(P),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(_.shapeFlag&1&&L&&!L.persisted){const{leave:K,delayLeave:H}=L,ee=()=>K(P,G);H?H(_.el,G,ee):ee()}else G()},Z=(_,E)=>{let P;for(;_!==E;)P=d(_),o(_),_=P;o(E)},Be=(_,E,P)=>{const{bum:O,scope:L,update:G,subTree:K,um:H}=_;O&&vc(O),L.stop(),G&&(G.active=!1,X(K,_,E,P)),H&&$r(H,E),$r(()=>{_.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},ye=(_,E,P,O=!1,L=!1,G=0)=>{for(let K=G;K<_.length;K++)X(_[K],E,P,O,L)},q=_=>_.shapeFlag&6?q(_.component.subTree):_.shapeFlag&128?_.suspense.next():d(_.anchor||_.el);let te=!1;const ie=(_,E,P)=>{_==null?E._vnode&&X(E._vnode,null,null,!0):g(E._vnode||null,_,E,null,null,null,P),te||(te=!0,im(),bC(),te=!1),E._vnode=_},ve={p:g,um:X,m:U,r:ae,mt:j,mc:k,pc:oe,pbc:T,n:q,o:e};let Le,$e;return t&&([Le,$e]=t(ve)),{render:ie,hydrate:Le,createApp:j5(ie,Le)}}function Rd({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Vo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Q5(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function lp(e,t,r=!1){const n=e.children,o=t.children;if(Ge(n)&&Ge(o))for(let i=0;i<n.length;i++){const a=n[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=yo(o[i]),s.el=a.el),r||lp(a,s)),s.type===Ma&&(s.el=a.el)}}function Z5(e){const t=e.slice(),r=[0];let n,o,i,a,s;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(o=r[r.length-1],e[o]<c){t[n]=o,r.push(n);continue}for(i=0,a=r.length-1;i<a;)s=i+a>>1,e[r[s]]<c?i=s+1:a=s;c<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}function zC(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zC(t)}const J5=e=>e.__isTeleport,ps=e=>e&&(e.disabled||e.disabled===""),vm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bm=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,T0=(e,t)=>{const r=e&&e.to;return Ut(r)?t?t(r):null:r},ek={name:"Teleport",__isTeleport:!0,process(e,t,r,n,o,i,a,s,l,c){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:g,createComment:v}}=c,m=ps(t.props);let{shapeFlag:b,children:y,dynamicChildren:x}=t;if(e==null){const S=t.el=g(""),C=t.anchor=g("");h(S,r,n),h(C,r,n);const w=t.target=T0(t.props,p),k=t.targetAnchor=g("");w&&(h(k,w),a==="svg"||vm(w)?a="svg":(a==="mathml"||bm(w))&&(a="mathml"));const A=(T,I)=>{b&16&&u(y,T,I,o,i,a,s,l)};m?A(r,C):w&&A(w,k)}else{t.el=e.el;const S=t.anchor=e.anchor,C=t.target=e.target,w=t.targetAnchor=e.targetAnchor,k=ps(e.props),A=k?r:C,T=k?S:w;if(a==="svg"||vm(C)?a="svg":(a==="mathml"||bm(C))&&(a="mathml"),x?(d(e.dynamicChildren,x,A,o,i,a,s),lp(e,t,!0)):l||f(e,t,A,T,o,i,a,s,!1),m)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Hl(t,r,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=T0(t.props,p);I&&Hl(t,I,null,c,0)}else k&&Hl(t,C,w,c,1)}NC(t)},remove(e,t,r,n,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),a&&i(c),s&16){const h=a||!ps(d);for(let p=0;p<l.length;p++){const g=l[p];o(g,t,r,h,!!g.dynamicChildren)}}},move:Hl,hydrate:tk};function Hl(e,t,r,{o:{insert:n},m:o},i=2){i===0&&n(e.targetAnchor,t,r);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,f=i===2;if(f&&n(a,t,r),(!f||ps(u))&&l&16)for(let d=0;d<c.length;d++)o(c[d],t,r,2);f&&n(s,t,r)}function tk(e,t,r,n,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l}},c){const u=t.target=T0(t.props,l);if(u){const f=u._lpa||u.firstChild;if(t.shapeFlag&16)if(ps(t.props))t.anchor=c(a(e),t,s(e),r,n,o,i),t.targetAnchor=f;else{t.anchor=a(e);let d=f;for(;d;)if(d=a(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,u._lpa=t.targetAnchor&&a(t.targetAnchor);break}c(f,t,u,r,n,o,i)}NC(t)}return t.anchor&&a(t.anchor)}const Bu=ek;function NC(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r&&r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const ot=Symbol.for("v-fgt"),Ma=Symbol.for("v-txt"),yr=Symbol.for("v-cmt"),bc=Symbol.for("v-stc"),gs=[];let fn=null;function he(e=!1){gs.push(fn=e?null:[])}function rk(){gs.pop(),fn=gs[gs.length-1]||null}let Ms=1;function xm(e){Ms+=e}function HC(e){return e.dynamicChildren=Ms>0?fn||ra:null,rk(),Ms>0&&fn&&fn.push(e),e}function Fe(e,t,r,n,o,i){return HC(re(e,t,r,n,o,i,!0))}function rt(e,t,r,n,o){return HC(me(e,t,r,n,o,!0))}function zs(e){return e?e.__v_isVNode===!0:!1}function ei(e,t){return e.type===t.type&&e.key===t.key}const Ou="__vInternal",jC=({key:e})=>e??null,xc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ut(e)||Vt(e)||Qe(e)?{i:Zt,r:e,k:t,f:!!r}:e:null);function re(e,t=null,r=null,n=0,o=null,i=e===ot?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jC(t),ref:t&&xc(t),scopeId:Iu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Zt};return s?(cp(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=Ut(r)?8:16),Ms>0&&!a&&fn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&fn.push(l),l}const me=nk;function nk(e,t=null,r=null,n=0,o=null,i=!1){if((!e||e===CC)&&(e=yr),zs(e)){const s=tn(e,t,!0);return r&&cp(s,r),Ms>0&&!i&&fn&&(s.shapeFlag&6?fn[fn.indexOf(e)]=s:fn.push(s)),s.patchFlag|=-2,s}if(fk(e)&&(e=e.__vccOpts),t){t=ok(t);let{class:s,style:l}=t;s&&!Ut(s)&&(t.class=Kt(s)),$t(l)&&(dC(l)&&!Ge(l)&&(l=Jt({},l)),t.style=Jr(l))}const a=Ut(e)?1:x5(e)?128:J5(e)?64:$t(e)?4:Qe(e)?2:0;return re(e,t,r,n,o,a,i,!0)}function ok(e){return e?dC(e)||Ou in e?Jt({},e):e:null}function tn(e,t,r=!1){const{props:n,ref:o,patchFlag:i,children:a}=e,s=t?On(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&jC(s),ref:t&&t.ref?r&&o?Ge(o)?o.concat(xc(t)):[o,xc(t)]:xc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ot?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tn(e.ssContent),ssFallback:e.ssFallback&&tn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function pt(e=" ",t=0){return me(Ma,null,e,t)}function qle(e,t){const r=me(bc,null,e);return r.staticCount=t,r}function Ze(e="",t=!1){return t?(he(),rt(yr,null,e)):me(yr,null,e)}function En(e){return e==null||typeof e=="boolean"?me(yr):Ge(e)?me(ot,null,e.slice()):typeof e=="object"?yo(e):me(Ma,null,String(e))}function yo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tn(e)}function cp(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Ge(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),cp(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(Ou in t)?t._ctx=Zt:o===3&&Zt&&(Zt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:Zt},r=32):(t=String(t),n&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function On(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=Kt([t.class,n.class]));else if(o==="style")t.style=Jr([t.style,n.style]);else if(Su(o)){const i=t[o],a=n[o];a&&i!==a&&!(Ge(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=n[o])}return t}function yn(e,t,r,n=null){Qr(e,t,7,[r,n])}const ik=BC();let ak=0;function sk(e,t,r){const n=e.type,o=(t?t.appContext:e.appContext)||ik,i={uid:ak++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Zy(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:LC(n,o),emitsOptions:yC(n,o),emit:null,emitted:null,propsDefaults:Bt,inheritAttrs:n.inheritAttrs,ctx:Bt,data:Bt,props:Bt,attrs:Bt,slots:Bt,refs:Bt,setupState:Bt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=h5.bind(null,i),e.ce&&e.ce(i),i}let or=null;const Er=()=>or||Zt;let Gc,A0;{const e=Ky(),t=(r,n)=>{let o;return(o=e[r])||(o=e[r]=[]),o.push(n),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};Gc=t("__VUE_INSTANCE_SETTERS__",r=>or=r),A0=t("__VUE_SSR_SETTERS__",r=>fl=r)}const dl=e=>{const t=or;return Gc(e),e.scope.on(),()=>{e.scope.off(),Gc(t)}},ym=()=>{or&&or.scope.off(),Gc(null)};function WC(e){return e.vnode.shapeFlag&4}let fl=!1;function lk(e,t=!1){t&&A0(t);const{props:r,children:n}=e.vnode,o=WC(e);U5(e,r,o,t),q5(e,n);const i=o?ck(e,t):void 0;return t&&A0(!1),i}function ck(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=ha(new Proxy(e.ctx,B5));const{setup:n}=r;if(n){const o=e.setupContext=n.length>1?VC(e):null,i=dl(e);yi();const a=Ao(n,e,0,[e.props,o]);if(Ci(),i(),Gy(a)){if(a.then(ym,ym),t)return a.then(s=>{Cm(e,s,t)}).catch(s=>{cl(s,e,0)});e.asyncDep=a}else Cm(e,a,t)}else UC(e,t)}function Cm(e,t,r){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$t(t)&&(e.setupState=pC(t)),UC(e,r)}let wm;function UC(e,t,r){const n=e.type;if(!e.render){if(!t&&wm&&!n.render){const o=n.template||ap(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,c=Jt(Jt({isCustomElement:i,delimiters:s},a),l);n.render=wm(o,c)}}e.render=n.render||Hr}{const o=dl(e);yi();try{R5(e)}finally{Ci(),o()}}}function uk(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Br(e,"get","$attrs"),t[r]}}))}function VC(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return uk(e)},slots:e.slots,emit:e.emit,expose:t}}function Lu(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(pC(ha(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in hs)return hs[r](e)},has(t,r){return r in t||r in hs}}))}function dk(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function fk(e){return Qe(e)&&"__vccOpts"in e}const R=(e,t)=>e5(e,t,fl);function $(e,t,r){const n=arguments.length;return n===2?$t(t)&&!Ge(t)?zs(t)?me(e,null,[t]):me(e,t):me(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&zs(r)&&(r=[r]),me(e,t,r))}const hk="3.4.21";/**
* @vue/runtime-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const pk="http://www.w3.org/2000/svg",gk="http://www.w3.org/1998/Math/MathML",Co=typeof document<"u"?document:null,Sm=Co&&Co.createElement("template"),mk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t==="svg"?Co.createElementNS(pk,e):t==="mathml"?Co.createElementNS(gk,e):Co.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Co.createTextNode(e),createComment:e=>Co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Co.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,i){const a=r?r.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{Sm.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const s=Sm.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},so="transition",Ka="animation",ga=Symbol("_vtc"),_r=(e,{slots:t})=>$(E5,qC(e),t);_r.displayName="Transition";const GC={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},vk=_r.props=Jt({},EC,GC),Go=(e,t=[])=>{Ge(e)?e.forEach(r=>r(...t)):e&&e(...t)},_m=e=>e?Ge(e)?e.some(t=>t.length>1):e.length>1:!1;function qC(e){const t={};for(const D in e)D in GC||(t[D]=e[D]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,p=bk(o),g=p&&p[0],v=p&&p[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:y,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=m,onAppear:w=b,onAppearCancelled:k=y}=t,A=(D,B,j)=>{mo(D,B?u:s),mo(D,B?c:a),j&&j()},T=(D,B)=>{D._isLeaving=!1,mo(D,f),mo(D,h),mo(D,d),B&&B()},I=D=>(B,j)=>{const F=D?w:b,z=()=>A(B,D,j);Go(F,[B,z]),Em(()=>{mo(B,D?l:i),Vn(B,D?u:s),_m(F)||km(B,n,g,z)})};return Jt(t,{onBeforeEnter(D){Go(m,[D]),Vn(D,i),Vn(D,a)},onBeforeAppear(D){Go(C,[D]),Vn(D,l),Vn(D,c)},onEnter:I(!1),onAppear:I(!0),onLeave(D,B){D._isLeaving=!0;const j=()=>T(D,B);Vn(D,f),KC(),Vn(D,d),Em(()=>{D._isLeaving&&(mo(D,f),Vn(D,h),_m(x)||km(D,n,v,j))}),Go(x,[D,j])},onEnterCancelled(D){A(D,!1),Go(y,[D])},onAppearCancelled(D){A(D,!0),Go(k,[D])},onLeaveCancelled(D){T(D),Go(S,[D])}})}function bk(e){if(e==null)return null;if($t(e))return[Fd(e.enter),Fd(e.leave)];{const t=Fd(e);return[t,t]}}function Fd(e){return _8(e)}function Vn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ga]||(e[ga]=new Set)).add(t)}function mo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[ga];r&&(r.delete(t),r.size||(e[ga]=void 0))}function Em(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xk=0;function km(e,t,r,n){const o=e._endId=++xk,i=()=>{o===e._endId&&n()};if(r)return setTimeout(i,r);const{type:a,timeout:s,propCount:l}=YC(e,t);if(!a)return n();const c=a+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=h=>{h.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},s+1),e.addEventListener(c,d)}function YC(e,t){const r=window.getComputedStyle(e),n=p=>(r[p]||"").split(", "),o=n(`${so}Delay`),i=n(`${so}Duration`),a=Tm(o,i),s=n(`${Ka}Delay`),l=n(`${Ka}Duration`),c=Tm(s,l);let u=null,f=0,d=0;t===so?a>0&&(u=so,f=a,d=i.length):t===Ka?c>0&&(u=Ka,f=c,d=l.length):(f=Math.max(a,c),u=f>0?a>c?so:Ka:null,d=u?u===so?i.length:l.length:0);const h=u===so&&/\b(transform|all)(,|$)/.test(n(`${so}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function Tm(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Am(r)+Am(e[n])))}function Am(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function KC(){return document.body.offsetHeight}function yk(e,t,r){const n=e[ga];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const qc=Symbol("_vod"),XC=Symbol("_vsh"),gi={beforeMount(e,{value:t},{transition:r}){e[qc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Xa(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Xa(e,!0),n.enter(e)):n.leave(e,()=>{Xa(e,!1)}):Xa(e,t))},beforeUnmount(e,{value:t}){Xa(e,t)}};function Xa(e,t){e.style.display=t?e[qc]:"none",e[XC]=!t}const Ck=Symbol(""),wk=/(^|;)\s*display\s*:/;function Sk(e,t,r){const n=e.style,o=Ut(r);let i=!1;if(r&&!o){if(t)if(Ut(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();r[s]==null&&yc(n,s,"")}else for(const a in t)r[a]==null&&yc(n,a,"");for(const a in r)a==="display"&&(i=!0),yc(n,a,r[a])}else if(o){if(t!==r){const a=n[Ck];a&&(r+=";"+a),n.cssText=r,i=wk.test(r)}}else t&&e.removeAttribute("style");qc in e&&(e[qc]=i?n.display:"",e[XC]&&(n.display="none"))}const Pm=/\s*!important$/;function yc(e,t,r){if(Ge(r))r.forEach(n=>yc(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=_k(e,t);Pm.test(r)?e.setProperty(xi(n),r.replace(Pm,""),"important"):e[n]=r}}const $m=["Webkit","Moz","ms"],Md={};function _k(e,t){const r=Md[t];if(r)return r;let n=Bn(t);if(n!=="filter"&&n in e)return Md[t]=n;n=ku(n);for(let o=0;o<$m.length;o++){const i=$m[o]+n;if(i in e)return Md[t]=i}return t}const Im="http://www.w3.org/1999/xlink";function Ek(e,t,r,n,o){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(Im,t.slice(6,t.length)):e.setAttributeNS(Im,t,r);else{const i=D8(t);r==null||i&&!Xy(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}function kk(e,t,r,n,o,i,a){if(t==="innerHTML"||t==="textContent"){n&&a(n,o,i),e[t]=r??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const c=s==="OPTION"?e.getAttribute("value")||"":e.value,u=r??"";(c!==u||!("_value"in e))&&(e.value=u),r==null&&e.removeAttribute(t),e._value=r;return}let l=!1;if(r===""||r==null){const c=typeof e[t];c==="boolean"?r=Xy(r):r==null&&c==="string"?(r="",l=!0):c==="number"&&(r=0,l=!0)}try{e[t]=r}catch{}l&&e.removeAttribute(t)}function Vi(e,t,r,n){e.addEventListener(t,r,n)}function Tk(e,t,r,n){e.removeEventListener(t,r,n)}const Dm=Symbol("_vei");function Ak(e,t,r,n,o=null){const i=e[Dm]||(e[Dm]={}),a=i[t];if(n&&a)a.value=n;else{const[s,l]=Pk(t);if(n){const c=i[t]=Dk(n,o);Vi(e,s,c,l)}else a&&(Tk(e,s,a,l),i[t]=void 0)}}const Bm=/(?:Once|Passive|Capture)$/;function Pk(e){let t;if(Bm.test(e)){t={};let n;for(;n=e.match(Bm);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xi(e.slice(2)),t]}let zd=0;const $k=Promise.resolve(),Ik=()=>zd||($k.then(()=>zd=0),zd=Date.now());function Dk(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Qr(Bk(n,r.value),t,5,[n])};return r.value=e,r.attached=Ik(),r}function Bk(e,t){if(Ge(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const Om=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ok=(e,t,r,n,o,i,a,s,l)=>{const c=o==="svg";t==="class"?yk(e,n,c):t==="style"?Sk(e,r,n):Su(t)?Hh(t)||Ak(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lk(e,t,n,c))?kk(e,t,n,i,a,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ek(e,t,n,c))};function Lk(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Om(t)&&Qe(r));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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Om(t)&&Ut(r)?!1:t in e}const QC=new WeakMap,ZC=new WeakMap,Yc=Symbol("_moveCb"),Lm=Symbol("_enterCb"),JC={name:"TransitionGroup",props:Jt({},vk,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Er(),n=_C();let o,i;return ip(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!Hk(o[0].el,r.vnode.el,a))return;o.forEach(Mk),o.forEach(zk);const s=o.filter(Nk);KC(),s.forEach(l=>{const c=l.el,u=c.style;Vn(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[Yc]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[Yc]=null,mo(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=it(e),s=qC(a);let l=a.tag||ot;o=i,i=t.default?op(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&Rs(u,Ls(u,s,n,r))}if(o)for(let c=0;c<o.length;c++){const u=o[c];Rs(u,Ls(u,s,n,r)),QC.set(u,u.el.getBoundingClientRect())}return me(l,null,i)}}},Rk=e=>delete e.mode;JC.props;const Fk=JC;function Mk(e){const t=e.el;t[Yc]&&t[Yc](),t[Lm]&&t[Lm]()}function zk(e){ZC.set(e,e.el.getBoundingClientRect())}function Nk(e){const t=QC.get(e),r=ZC.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${o}px)`,i.transitionDuration="0s",e}}function Hk(e,t,r){const n=e.cloneNode(),o=e[ga];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=YC(n);return i.removeChild(n),a}const Rm=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ge(t)?r=>vc(t,r):t};function jk(e){e.target.composing=!0}function Fm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Nd=Symbol("_assign"),lo={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[Nd]=Rm(o);const i=n||o.props&&o.props.type==="number";Vi(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;r&&(s=s.trim()),i&&(s=v0(s)),e[Nd](s)}),r&&Vi(e,"change",()=>{e.value=e.value.trim()}),t||(Vi(e,"compositionstart",jk),Vi(e,"compositionend",Fm),Vi(e,"change",Fm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:o}},i){if(e[Nd]=Rm(i),e.composing)return;const a=o||e.type==="number"?v0(e.value):e.value,s=t??"";a!==s&&(document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===s)||(e.value=s))}},Wk=["ctrl","shift","alt","meta"],Uk={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)=>Wk.some(r=>e[`${r}Key`]&&!t.includes(r))},Yle=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(o,...i)=>{for(let a=0;a<t.length;a++){const s=Uk[t[a]];if(s&&s(o,t))return}return e(o,...i)})},Vk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Kle=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=o=>{if(!("key"in o))return;const i=xi(o.key);if(t.some(a=>a===i||Vk[a]===i))return e(o)})},Gk=Jt({patchProp:Ok},mk);let Mm;function ew(){return Mm||(Mm=K5(Gk))}const zm=(...e)=>{ew().render(...e)},qk=(...e)=>{const t=ew().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=Kk(n);if(!o)return;const i=t._component;!Qe(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=r(o,!1,Yk(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Yk(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Kk(e){return Ut(e)?document.querySelector(e):e}let Kc=[];const tw=new WeakMap;function Xk(){Kc.forEach(e=>e(...tw.get(e))),Kc=[]}function up(e,...t){tw.set(e,t),!Kc.includes(e)&&Kc.push(e)===1&&requestAnimationFrame(Xk)}function Ns(e){return e.composedPath()[0]||null}function Qk(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(r=>{if(r==="")return;const[n,o]=r.split(":");o===void 0?t[""]=n:t[n]=o}),t}function Li(e,t){var r;if(e==null)return;const n=Qk(e);if(t===void 0)return n[""];if(typeof t=="string")return(r=n[t])!==null&&r!==void 0?r:n[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in n)return n[i]}return n[""]}else{let o,i=-1;return Object.keys(n).forEach(a=>{const s=Number(a);!Number.isNaN(s)&&t>=s&&s>=i&&(i=s,o=n[a])}),o}}function Nm(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function qn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function hl(e,t){const r=e.trim().split(/\s+/g),n={top:r[0]};switch(r.length){case 1:n.right=r[0],n.bottom=r[0],n.left=r[0];break;case 2:n.right=r[1],n.left=r[1],n.bottom=r[0];break;case 3:n.right=r[1],n.bottom=r[2],n.left=r[1];break;case 4:n.right=r[1],n.bottom=r[2],n.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function Zk(e,t){const[r,n]=e.split(" ");return t?t==="row"?r:n:{row:r,col:n||r}}const Hm={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},za="^\\s*",Na="\\s*$",oi="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ii="([0-9A-Fa-f])",ai="([0-9A-Fa-f]{2})",Jk=new RegExp(`${za}rgb\\s*\\(${oi},${oi},${oi}\\)${Na}`),eT=new RegExp(`${za}rgba\\s*\\(${oi},${oi},${oi},${oi}\\)${Na}`),tT=new RegExp(`${za}#${ii}${ii}${ii}${Na}`),rT=new RegExp(`${za}#${ai}${ai}${ai}${Na}`),nT=new RegExp(`${za}#${ii}${ii}${ii}${ii}${Na}`),oT=new RegExp(`${za}#${ai}${ai}${ai}${ai}${Na}`);function Ar(e){return parseInt(e,16)}function Qn(e){try{let t;if(t=rT.exec(e))return[Ar(t[1]),Ar(t[2]),Ar(t[3]),1];if(t=Jk.exec(e))return[vr(t[1]),vr(t[5]),vr(t[9]),1];if(t=eT.exec(e))return[vr(t[1]),vr(t[5]),vr(t[9]),ms(t[13])];if(t=tT.exec(e))return[Ar(t[1]+t[1]),Ar(t[2]+t[2]),Ar(t[3]+t[3]),1];if(t=oT.exec(e))return[Ar(t[1]),Ar(t[2]),Ar(t[3]),ms(Ar(t[4])/255)];if(t=nT.exec(e))return[Ar(t[1]+t[1]),Ar(t[2]+t[2]),Ar(t[3]+t[3]),ms(Ar(t[4]+t[4])/255)];if(e in Hm)return Qn(Hm[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function iT(e){return e>1?1:e<0?0:e}function P0(e,t,r,n){return`rgba(${vr(e)}, ${vr(t)}, ${vr(r)}, ${iT(n)})`}function Hd(e,t,r,n,o){return vr((e*t*(1-n)+r*n)/o)}function Pe(e,t){Array.isArray(e)||(e=Qn(e)),Array.isArray(t)||(t=Qn(t));const r=e[3],n=t[3],o=ms(r+n-r*n);return P0(Hd(e[0],r,t[0],n,o),Hd(e[1],r,t[1],n,o),Hd(e[2],r,t[2],n,o),o)}function se(e,t){const[r,n,o,i=1]=Array.isArray(e)?e:Qn(e);return t.alpha?P0(r,n,o,t.alpha):P0(r,n,o,i)}function qt(e,t){const[r,n,o,i=1]=Array.isArray(e)?e:Qn(e),{lightness:a=1,alpha:s=1}=t;return aT([r*a,n*a,o*a,i*s])}function ms(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function vr(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function aT(e){const[t,r,n]=e;return 3 in e?`rgba(${vr(t)}, ${vr(r)}, ${vr(n)}, ${ms(e[3])})`:`rgba(${vr(t)}, ${vr(r)}, ${vr(n)}, 1)`}function Ru(e=8){return Math.random().toString(16).slice(2,2+e)}function sT(e,t){const r=[];for(let n=0;n<e;++n)r.push(t);return r}function dp(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function ma(e,t=[],r){const n={};return t.forEach(o=>{n[o]=e[o]}),Object.assign(n,r)}function fp(e,t=[],r){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,r)}function va(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(pt(String(n)));return}if(Array.isArray(n)){va(n,t,r);return}if(n.type===ot){if(n.children===null)return;Array.isArray(n.children)&&va(n.children,t,r)}else{if(n.type===yr&&t)return;r.push(n)}}}),r}function ar(e,...t){if(Array.isArray(e))e.forEach(r=>ar(r,...t));else return e(...t)}function ba(e){return Object.keys(e)}const Nr=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?pt(e):typeof e=="number"?pt(String(e)):null;function Hs(e,t){console.error(`[naive/${e}]: ${t}`)}function pl(e,t){throw new Error(`[naive/${e}]: ${t}`)}function $0(e,t="default",r=void 0){const n=e[t];if(!n)return Hs("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=va(n(r));return o.length===1?o[0]:(Hs("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Xle(e){return e}function gl(e){return e.some(t=>zs(t)?!(t.type===yr||t.type===ot&&!gl(t.children)):!0)?e:null}function Xc(e,t){return e&&gl(e())||t()}function lT(e,t,r){return e&&gl(e(t))||r(t)}function nr(e,t){const r=e&&gl(e());return t(r||null)}function I0(e){return!(e&&gl(e()))}function cT(e){var t;const r=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===gi);return!!(r&&r.value===!1)}const jm=pe({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),uT=/^(\d|\.)+$/,Wm=/(\d|\.)+/;function Cc(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(uT.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=Wm.exec(e);return o?e.replace(Wm,String((Number(o[0])+r)*t)):e}return e}function js(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function dT(e){let t=0;for(let r=0;r<e.length;++r)e[r]==="&"&&++t;return t}const rw=/\s*,(?![^(]*\))\s*/g,fT=/\s+/g;function hT(e,t){const r=[];return t.split(rw).forEach(n=>{let o=dT(n);if(o){if(o===1){e.forEach(a=>{r.push(n.replace("&",a))});return}}else{e.forEach(a=>{r.push((a&&a+" ")+n)});return}let i=[n];for(;o--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>r.push(a))}),r}function pT(e,t){const r=[];return t.split(rw).forEach(n=>{e.forEach(o=>{r.push((o&&o+" ")+n)})}),r}function gT(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?t=hT(t,r):t=pT(t,r))}),t.join(", ").replace(fT," ")}function Um(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Fu(e){return document.querySelector(`style[cssr-id="${e}"]`)}function mT(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function jl(e){return e?/^\s*@(s|m)/.test(e):!1}const vT=/[A-Z]/g;function nw(e){return e.replace(vT,t=>"-"+t.toLowerCase())}function bT(e,t=" "){return typeof e=="object"&&e!==null?` {
`+Object.entries(e).map(r=>t+` ${nw(r[0])}: ${r[1]};`).join(`
`)+`
`+t+"}":`: ${e};`}function xT(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function Vm(e,t,r,n){if(!t)return"";const o=xT(t,r,n);if(!o)return"";if(typeof o=="string")return`${e} {
${o}
}`;const i=Object.keys(o);if(i.length===0)return r.config.keepEmptyBlock?e+` {
}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=o[s];if(s==="raw"){a.push(`
`+l+`
`);return}s=nw(s),l!=null&&a.push(` ${s}${bT(l)}`)}),e&&a.push("}"),a.join(`
`)}function D0(e,t,r){e&&e.forEach(n=>{if(Array.isArray(n))D0(n,t,r);else if(typeof n=="function"){const o=n(t);Array.isArray(o)?D0(o,t,r):o&&r(o)}else n&&r(n)})}function ow(e,t,r,n,o,i){const a=e.$;let s="";if(!a||typeof a=="string")jl(a)?s=a:t.push(a);else if(typeof a=="function"){const u=a({context:n.context,props:o});jl(u)?s=u:t.push(u)}else if(a.before&&a.before(n.context),!a.$||typeof a.$=="string")jl(a.$)?s=a.$:t.push(a.$);else if(a.$){const u=a.$({context:n.context,props:o});jl(u)?s=u:t.push(u)}const l=gT(t),c=Vm(l,e.props,n,o);s?(r.push(`${s} {`),i&&c&&i.insertRule(`${s} {
${c}
}
`)):(i&&c&&i.insertRule(c),!i&&c.length&&r.push(c)),e.children&&D0(e.children,{context:n.context,props:o},u=>{if(typeof u=="string"){const f=Vm(l,{raw:u},n,o);i?i.insertRule(f):r.push(f)}else ow(u,t,r,n,o,i)}),t.pop(),s&&r.push("}"),a&&a.after&&a.after(n.context)}function iw(e,t,r,n=!1){const o=[];return ow(e,[],o,t,r,n?e.instance.__styleSheet:void 0),n?"":o.join(`
`)}function Ws(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function yT(e,t,r){const{els:n}=t;if(r===void 0)n.forEach(Um),t.els=[];else{const o=Fu(r);o&&n.includes(o)&&(Um(o),t.els=n.filter(i=>i!==o))}}function Gm(e,t){e.push(t)}function CT(e,t,r,n,o,i,a,s,l){if(i&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const d=window.__cssrContext;d[r]||(d[r]=!0,iw(t,e,n,i));return}let c;if(r===void 0&&(c=t.render(n),r=Ws(c)),l){l.adapter(r,c??t.render(n));return}const u=Fu(r);if(u!==null&&!a)return u;const f=u??mT(r);if(c===void 0&&(c=t.render(n)),f.textContent=c,u!==null)return u;if(s){const d=document.head.querySelector(`meta[name="${s}"]`);if(d)return document.head.insertBefore(f,d),Gm(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Gm(t.els,f),f}function wT(e){return iw(this,this.instance,e)}function ST(e={}){const{id:t,ssr:r,props:n,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e;return CT(this.instance,this,t,n,o,i,a,s,r)}function _T(e={}){const{id:t}=e;yT(this.instance,this,t)}const Wl=function(e,t,r,n){return{instance:e,$:t,props:r,children:n,els:[],render:wT,mount:ST,unmount:_T}},ET=function(e,t,r,n){return Array.isArray(t)?Wl(e,{$:null},null,t):Array.isArray(r)?Wl(e,t,null,r):Array.isArray(n)?Wl(e,t,r,n):Wl(e,t,r,null)};function aw(e={}){let t=null;const r={c:(...n)=>ET(r,...n),use:(n,...o)=>n.install(r,...o),find:Fu,context:{},config:e,get __styleSheet(){if(!t){const n=document.createElement("style");return document.head.appendChild(n),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function kT(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return Fu(e)!==null}function TT(e){let t=".",r="__",n="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(r=p),p=e.modifierPrefix,p&&(n=p)}const i={install(p){o=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function a(p){let g,v;return{before(m){g=m.bem.b,v=m.bem.els,m.bem.els=null},after(m){m.bem.b=g,m.bem.els=v},$({context:m,props:b}){return p=typeof p=="string"?p:p({context:m,props:b}),m.bem.b=p,`${(b==null?void 0:b.bPrefix)||t}${m.bem.b}`}}}function s(p){let g;return{before(v){g=v.bem.els},after(v){v.bem.els=g},$({context:v,props:m}){return p=typeof p=="string"?p:p({context:v,props:m}),v.bem.els=p.split(",").map(b=>b.trim()),v.bem.els.map(b=>`${(m==null?void 0:m.bPrefix)||t}${v.bem.b}${r}${b}`).join(", ")}}}function l(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const m=p.split(",").map(x=>x.trim());function b(x){return m.map(S=>`&${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${x!==void 0?`${r}${x}`:""}${n}${S}`).join(", ")}const y=g.bem.els;return y!==null?b(y[0]):b()}}}function c(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const m=g.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${m!==null&&m.length>0?`${r}${m[0]}`:""}${n}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(s(p[0]),p[1],p[2]),cM:(...p)=>o(l(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}const AT="n",Us=`.${AT}-`,PT="__",$T="--",sw=aw(),lw=TT({blockPrefix:Us,elementPrefix:PT,modifierPrefix:$T});sw.use(lw);const{c:Y,find:Qle}=sw,{cB:ne,cE:le,cM:ue,cNotM:xr}=lw;function Mu(e){return Y(({props:{bPrefix:t}})=>`${t||Us}modal, ${t||Us}drawer`,[e])}function hp(e){return Y(({props:{bPrefix:t}})=>`${t||Us}popover`,[e])}function cw(e){return Y(({props:{bPrefix:t}})=>`&${t||Us}modal`,e)}const IT=(...e)=>Y(">",[ne(...e)]);function we(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}let jd;function DT(){return jd===void 0&&(jd=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),jd}const eo=typeof document<"u"&&typeof window<"u",uw=new WeakSet;function Zle(e){uw.add(e)}function BT(e){return!uw.has(e)}function OT(e){const t=M(!!e.value);if(t.value)return en(t);const r=Je(e,n=>{n&&(t.value=!0,r())});return en(t)}function Dr(e){const t=R(e),r=M(t.value);return Je(t,n=>{r.value=n}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(n){e.set(n)}}}function pp(){return Er()!==null}const zu=typeof window<"u";let aa,vs;const LT=()=>{var e,t;aa=zu?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,vs=!1,aa!==void 0?aa.then(()=>{vs=!0}):vs=!0};LT();function RT(e){if(vs)return;let t=!1;_t(()=>{vs||aa==null||aa.then(()=>{t||e()})}),Ht(()=>{t=!0})}function wc(e){return e.composedPath()[0]}const FT={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function MT(e,t,r){if(e==="mousemoveoutside"){const n=o=>{t.contains(wc(o))||r(o)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const o=a=>{n=!t.contains(wc(a))},i=a=>{n&&(t.contains(wc(a))||r(a))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function dw(e,t,r){const n=FT[e];let o=n.get(t);o===void 0&&n.set(t,o=new WeakMap);let i=o.get(r);return i===void 0&&o.set(r,i=MT(e,t,r)),i}function zT(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const o=dw(e,t,r);return Object.keys(o).forEach(i=>{Xt(i,document,o[i],n)}),!0}return!1}function NT(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const o=dw(e,t,r);return Object.keys(o).forEach(i=>{At(i,document,o[i],n)}),!0}return!1}function HT(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function o(w,k,A){const T=w[k];return w[k]=function(){return A.apply(w,arguments),T.apply(w,arguments)},w}function i(w,k){w[k]=Event.prototype[k]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var w;return(w=a.get(this))!==null&&w!==void 0?w:null}function c(w,k){s!==void 0&&Object.defineProperty(w,"currentTarget",{configurable:!0,enumerable:!0,get:k??s.get})}const u={bubble:{},capture:{}},f={};function d(){const w=function(k){const{type:A,eventPhase:T,bubbles:I}=k,D=wc(k);if(T===2)return;const B=T===1?"capture":"bubble";let j=D;const F=[];for(;j===null&&(j=window),F.push(j),j!==window;)j=j.parentNode||null;const z=u.capture[A],V=u.bubble[A];if(o(k,"stopPropagation",r),o(k,"stopImmediatePropagation",n),c(k,l),B==="capture"){if(z===void 0)return;for(let oe=F.length-1;oe>=0&&!e.has(k);--oe){const fe=F[oe],ge=z.get(fe);if(ge!==void 0){a.set(k,fe);for(const U of ge){if(t.has(k))break;U(k)}}if(oe===0&&!I&&V!==void 0){const U=V.get(fe);if(U!==void 0)for(const X of U){if(t.has(k))break;X(k)}}}}else if(B==="bubble"){if(V===void 0)return;for(let oe=0;oe<F.length&&!e.has(k);++oe){const fe=F[oe],ge=V.get(fe);if(ge!==void 0){a.set(k,fe);for(const U of ge){if(t.has(k))break;U(k)}}}}i(k,"stopPropagation"),i(k,"stopImmediatePropagation"),c(k)};return w.displayName="evtdUnifiedHandler",w}function h(){const w=function(k){const{type:A,eventPhase:T}=k;if(T!==2)return;const I=f[A];I!==void 0&&I.forEach(D=>D(k))};return w.displayName="evtdUnifiedWindowEventHandler",w}const p=d(),g=h();function v(w,k){const A=u[w];return A[k]===void 0&&(A[k]=new Map,window.addEventListener(k,p,w==="capture")),A[k]}function m(w){return f[w]===void 0&&(f[w]=new Set,window.addEventListener(w,g)),f[w]}function b(w,k){let A=w.get(k);return A===void 0&&w.set(k,A=new Set),A}function y(w,k,A,T){const I=u[k][A];if(I!==void 0){const D=I.get(w);if(D!==void 0&&D.has(T))return!0}return!1}function x(w,k){const A=f[w];return!!(A!==void 0&&A.has(k))}function S(w,k,A,T){let I;if(typeof T=="object"&&T.once===!0?I=z=>{C(w,k,I,T),A(z)}:I=A,zT(w,k,I,T))return;const B=T===!0||typeof T=="object"&&T.capture===!0?"capture":"bubble",j=v(B,w),F=b(j,k);if(F.has(I)||F.add(I),k===window){const z=m(w);z.has(I)||z.add(I)}}function C(w,k,A,T){if(NT(w,k,A,T))return;const D=T===!0||typeof T=="object"&&T.capture===!0,B=D?"capture":"bubble",j=v(B,w),F=b(j,k);if(k===window&&!y(k,D?"bubble":"capture",w,A)&&x(w,A)){const V=f[w];V.delete(A),V.size===0&&(window.removeEventListener(w,g),f[w]=void 0)}F.has(A)&&F.delete(A),F.size===0&&j.delete(k),j.size===0&&(window.removeEventListener(w,p,B==="capture"),u[B][w]=void 0)}return{on:S,off:C}}const{on:Xt,off:At}=HT(),ls=M(null);function qm(e){if(e.clientX>0||e.clientY>0)ls.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect();r>0||n>0?ls.value={x:r+o/2,y:n+i/2}:ls.value={x:0,y:0}}else ls.value=null}}let Ul=0,Ym=!0;function fw(){if(!zu)return en(M(null));Ul===0&&Xt("click",document,qm,!0);const e=()=>{Ul+=1};return Ym&&(Ym=pp())?(bn(e),Ht(()=>{Ul-=1,Ul===0&&At("click",document,qm,!0)})):e(),en(ls)}const jT=M(void 0);let Vl=0;function Km(){jT.value=Date.now()}let Xm=!0;function hw(e){if(!zu)return en(M(!1));const t=M(!1);let r=null;function n(){r!==null&&window.clearTimeout(r)}function o(){n(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}Vl===0&&Xt("click",window,Km,!0);const i=()=>{Vl+=1,Xt("click",window,o,!0)};return Xm&&(Xm=pp())?(bn(i),Ht(()=>{Vl-=1,Vl===0&&At("click",window,Km,!0),At("click",window,o,!0),n()})):i(),en(t)}let Gl=0;const WT=typeof window<"u"&&window.matchMedia!==void 0,di=M(null);let dn,si;function Qc(e){e.matches&&(di.value="dark")}function Zc(e){e.matches&&(di.value="light")}function UT(){dn=window.matchMedia("(prefers-color-scheme: dark)"),si=window.matchMedia("(prefers-color-scheme: light)"),dn.matches?di.value="dark":si.matches?di.value="light":di.value=null,dn.addEventListener?(dn.addEventListener("change",Qc),si.addEventListener("change",Zc)):dn.addListener&&(dn.addListener(Qc),si.addListener(Zc))}function VT(){"removeEventListener"in dn?(dn.removeEventListener("change",Qc),si.removeEventListener("change",Zc)):"removeListener"in dn&&(dn.removeListener(Qc),si.removeListener(Zc)),dn=void 0,si=void 0}let Qm=!0;function GT(){return WT&&(Gl===0&&UT(),Qm&&(Qm=pp())&&(bn(()=>{Gl+=1}),Ht(()=>{Gl-=1,Gl===0&&VT()}))),en(di)}function Nu(e,t){return Je(e,r=>{r!==void 0&&(t.value=r)}),R(()=>e.value===void 0?t.value:e.value)}function Ha(){const e=M(!1);return _t(()=>{e.value=!0}),en(e)}function pw(e,t){return R(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}const qT=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function YT(){return qT}const KT={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function XT(e){return`(min-width: ${e}px)`}const Qa={};function QT(e=KT){if(!zu)return R(()=>[]);if(typeof window.matchMedia!="function")return R(()=>[]);const t=M({}),r=Object.keys(e),n=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return r.forEach(o=>{const i=e[o];let a,s;Qa[i]===void 0?(a=window.matchMedia(XT(i)),a.addEventListener?a.addEventListener("change",l=>{s.forEach(c=>{c(l,o)})}):a.addListener&&a.addListener(l=>{s.forEach(c=>{c(l,o)})}),s=new Set,Qa[i]={mql:a,cbs:s}):(a=Qa[i].mql,s=Qa[i].cbs),s.add(n),a.matches&&s.forEach(l=>{l(a,o)})}),Ht(()=>{r.forEach(o=>{const{cbs:i}=Qa[e[o]];i.has(n)&&i.delete(n)})}),R(()=>{const{value:o}=t;return r.filter(i=>o[i])})}const Jle="n-internal-select-menu",ZT="n-internal-select-menu-body",gp="n-modal-body",JT="n-modal-provider",gw="n-modal",mp="n-drawer-body",ece="n-drawer",vp="n-popover-body",mw="__disabled__";function xa(e){const t=ze(gp,null),r=ze(mp,null),n=ze(vp,null),o=ze(ZT,null),i=M();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};_t(()=>{Xt("fullscreenchange",document,a)}),Ht(()=>{At("fullscreenchange",document,a)})}return Dr(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?mw:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s??(i.value||"body")})}xa.tdkey=mw;xa.propTo={type:[String,Object,Boolean],default:void 0};let Zm=!1;function eA(){if(eo&&window.CSS&&!Zm&&(Zm=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}function B0(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);return n()}function O0(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(pt(String(n)));return}if(Array.isArray(n)){O0(n,t,r);return}if(n.type===ot){if(n.children===null)return;Array.isArray(n.children)&&O0(n.children,t,r)}else n.type!==yr&&r.push(n)}}),r}function Jm(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);const o=O0(n());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${r}] should have exactly one child.`)}let co=null;function vw(){if(co===null&&(co=document.getElementById("v-binder-view-measurer"),co===null)){co=document.createElement("div"),co.id="v-binder-view-measurer";const{style:e}=co;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(co)}return co.getBoundingClientRect()}function tA(e,t){const r=vw();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function Wd(e){const t=e.getBoundingClientRect(),r=vw();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function rA(e){return e.nodeType===9?null:e.parentNode}function bw(e){if(e===null)return null;const t=rA(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return bw(t)}const nA=pe({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ft("VBinder",(t=Er())===null||t===void 0?void 0:t.proxy);const r=ze("VBinder",null),n=M(null),o=m=>{n.value=m,r&&e.syncTargetWithParent&&r.setTargetRef(m)};let i=[];const a=()=>{let m=n.value;for(;m=bw(m),m!==null;)i.push(m);for(const b of i)Xt("scroll",b,f,!0)},s=()=>{for(const m of i)At("scroll",m,f,!0);i=[]},l=new Set,c=m=>{l.size===0&&a(),l.has(m)||l.add(m)},u=m=>{l.has(m)&&l.delete(m),l.size===0&&s()},f=()=>{up(d)},d=()=>{l.forEach(m=>m())},h=new Set,p=m=>{h.size===0&&Xt("resize",window,v),h.has(m)||h.add(m)},g=m=>{h.has(m)&&h.delete(m),h.size===0&&At("resize",window,v)},v=()=>{h.forEach(m=>m())};return Ht(()=>{At("resize",window,v),s()}),{targetRef:n,setTargetRef:o,addScrollListener:c,removeScrollListener:u,addResizeListener:p,removeResizeListener:g}},render(){return B0("binder",this.$slots)}}),oA=nA,iA=pe({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ze("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?lr(Jm("follower",this.$slots),[[t]]):Jm("follower",this.$slots)}}),Ri="@@mmoContext",aA={mounted(e,{value:t}){e[Ri]={handler:void 0},typeof t=="function"&&(e[Ri].handler=t,Xt("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[Ri];typeof t=="function"?r.handler?r.handler!==t&&(At("mousemoveoutside",e,r.handler),r.handler=t,Xt("mousemoveoutside",e,t)):(e[Ri].handler=t,Xt("mousemoveoutside",e,t)):r.handler&&(At("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[Ri];t&&At("mousemoveoutside",e,t),e[Ri].handler=void 0}},sA=aA,Fi="@@coContext",lA={mounted(e,{value:t,modifiers:r}){e[Fi]={handler:void 0},typeof t=="function"&&(e[Fi].handler=t,Xt("clickoutside",e,t,{capture:r.capture}))},updated(e,{value:t,modifiers:r}){const n=e[Fi];typeof t=="function"?n.handler?n.handler!==t&&(At("clickoutside",e,n.handler,{capture:r.capture}),n.handler=t,Xt("clickoutside",e,t,{capture:r.capture})):(e[Fi].handler=t,Xt("clickoutside",e,t,{capture:r.capture})):n.handler&&(At("clickoutside",e,n.handler,{capture:r.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:r}=e[Fi];r&&At("clickoutside",e,r,{capture:t.capture}),e[Fi].handler=void 0}},L0=lA;function cA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class uA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,r){const{elementZIndex:n}=this;if(r!==void 0){t.style.zIndex=`${r}`,n.delete(t);return}const{nextZIndex:o}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,n.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,r){const{elementZIndex:n}=this;n.has(t)?n.delete(t):r===void 0&&cA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((r,n)=>r[1]-n[1]),this.nextZIndex=2e3,t.forEach(r=>{const n=r[0],o=this.nextZIndex++;`${o}`!==n.style.zIndex&&(n.style.zIndex=`${o}`)})}}const Ud=new uA,Mi="@@ziContext",dA={mounted(e,t){const{value:r={}}=t,{zIndex:n,enabled:o}=r;e[Mi]={enabled:!!o,initialized:!1},o&&(Ud.ensureZIndex(e,n),e[Mi].initialized=!0)},updated(e,t){const{value:r={}}=t,{zIndex:n,enabled:o}=r,i=e[Mi].enabled;o&&!i&&(Ud.ensureZIndex(e,n),e[Mi].initialized=!0),e[Mi].enabled=!!o},unmounted(e,t){if(!e[Mi].initialized)return;const{value:r={}}=t,{zIndex:n}=r;Ud.unregister(e,n)}},Hu=dA,xw=Symbol("@css-render/vue3-ssr");function fA(e,t){return`<style cssr-id="${e}">
${t}
</style>`}function hA(e,t){const r=ze(xw,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:n,ids:o}=r;o.has(e)||n!==null&&(o.add(e),n.push(fA(e,t)))}const pA=typeof document<"u";function ml(){if(pA)return;const e=ze(xw,null);if(e!==null)return{adapter:hA,context:e}}function ev(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:ql}=aw(),gA="vueuc-style";function tv(e){return typeof e=="string"?document.querySelector(e):e()}const bp=pe({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:OT(Lt(e,"show")),mergedTo:R(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?B0("lazy-teleport",this.$slots):$(Bu,{disabled:this.disabled,to:this.mergedTo},B0("lazy-teleport",this.$slots)):null}}),Yl={top:"bottom",bottom:"top",left:"right",right:"left"},rv={start:"end",center:"center",end:"start"},Vd={top:"height",bottom:"height",left:"width",right:"width"},mA={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},vA={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},bA={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},nv={top:!0,bottom:!1,left:!0,right:!1},ov={top:"end",bottom:"start",left:"end",right:"start"};function xA(e,t,r,n,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const u=(h,p,g)=>{let v=0,m=0;const b=r[h]-t[p]-t[h];return b>0&&n&&(g?m=nv[p]?b:-b:v=nv[p]?b:-b),{left:v,top:m}},f=a==="left"||a==="right";if(l!=="center"){const h=bA[e],p=Yl[h],g=Vd[h];if(r[g]>t[g]){if(t[h]+t[g]<r[g]){const v=(r[g]-t[g])/2;t[h]<v||t[p]<v?t[h]<t[p]?(l=rv[s],c=u(g,p,f)):c=u(g,h,f):l="center"}}else r[g]<t[g]&&t[p]<0&&t[h]>t[p]&&(l=rv[s])}else{const h=a==="bottom"||a==="top"?"left":"top",p=Yl[h],g=Vd[h],v=(r[g]-t[g])/2;(t[h]<v||t[p]<v)&&(t[h]>t[p]?(l=ov[h],c=u(g,h,f)):(l=ov[p],c=u(g,p,f)))}let d=a;return t[a]<r[Vd[a]]&&t[a]<t[Yl[a]]&&(d=Yl[a]),{placement:l!=="center"?`${d}-${l}`:d,left:c.left,top:c.top}}function yA(e,t){return t?vA[e]:mA[e]}function CA(e,t,r,n,o,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left+r.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2)}px`,left:`${Math.round(r.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height)}px`,left:`${Math.round(r.left-t.left+r.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(r.top-t.top+n)}px`,left:`${Math.round(r.left-t.left+r.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(r.top-t.top+r.height/2+n)}px`,left:`${Math.round(r.left-t.left+r.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(r.top-t.top+r.height/2+n)}px`,left:`${Math.round(r.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(r.top-t.top+r.height+n)}px`,left:`${Math.round(r.left-t.left+r.width/2+o)}px`,transform:"translateX(-50%)"}}}const wA=ql([ql(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),ql(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[ql("> *",{pointerEvents:"all"})])]),SA=pe({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=ze("VBinder"),r=Dr(()=>e.enabled!==void 0?e.enabled:e.show),n=M(null),o=M(null),i=()=>{const{syncTrigger:d}=e;d.includes("scroll")&&t.addScrollListener(l),d.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};_t(()=>{r.value&&(l(),i())});const s=ml();wA.mount({id:"vueuc/binder",head:!0,anchorMetaName:gA,ssr:s}),Ht(()=>{a()}),RT(()=>{r.value&&l()});const l=()=>{if(!r.value)return;const d=n.value;if(d===null)return;const h=t.targetRef,{x:p,y:g,overlap:v}=e,m=p!==void 0&&g!==void 0?tA(p,g):Wd(h);d.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),d.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:b,minWidth:y,placement:x,internalShift:S,flip:C}=e;d.setAttribute("v-placement",x),v?d.setAttribute("v-overlap",""):d.removeAttribute("v-overlap");const{style:w}=d;b==="target"?w.width=`${m.width}px`:b!==void 0?w.width=b:w.width="",y==="target"?w.minWidth=`${m.width}px`:y!==void 0?w.minWidth=y:w.minWidth="";const k=Wd(d),A=Wd(o.value),{left:T,top:I,placement:D}=xA(x,m,k,S,C,v),B=yA(D,v),{left:j,top:F,transform:z}=CA(D,A,m,I,T,v);d.setAttribute("v-placement",D),d.style.setProperty("--v-offset-left",`${Math.round(T)}px`),d.style.setProperty("--v-offset-top",`${Math.round(I)}px`),d.style.transform=`translateX(${j}) translateY(${F}) ${z}`,d.style.setProperty("--v-transform-origin",B),d.style.transformOrigin=B};Je(r,d=>{d?(i(),c()):a()});const c=()=>{Qt().then(l).catch(d=>console.error(d))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(d=>{Je(Lt(e,d),l)}),["teleportDisabled"].forEach(d=>{Je(Lt(e,d),c)}),Je(Lt(e,"syncTrigger"),d=>{d.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),d.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const u=Ha(),f=Dr(()=>{const{to:d}=e;if(d!==void 0)return d;u.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:f,syncPosition:l}},render(){return $(bp,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=$("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[$("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?lr(r,[[Hu,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var fi=[],_A=function(){return fi.some(function(e){return e.activeTargets.length>0})},EA=function(){return fi.some(function(e){return e.skippedTargets.length>0})},iv="ResizeObserver loop completed with undelivered notifications.",kA=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:iv}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=iv),window.dispatchEvent(e)},Vs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Vs||(Vs={}));var hi=function(e){return Object.freeze(e)},TA=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,hi(this)}return e}(),yw=function(){function e(t,r,n,o){return this.x=t,this.y=r,this.width=n,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,hi(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:r,y:n,top:o,right:i,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),xp=function(e){return e instanceof SVGElement&&"getBBox"in e},Cw=function(e){if(xp(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},av=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},AA=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},bs=typeof window<"u"?window:{},Kl=new WeakMap,sv=/auto|scroll/,PA=/^tb|vertical/,$A=/msie|trident/i.test(bs.navigator&&bs.navigator.userAgent),Cn=function(e){return parseFloat(e||"0")},sa=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new TA((r?t:e)||0,(r?e:t)||0)},lv=hi({devicePixelContentBoxSize:sa(),borderBoxSize:sa(),contentBoxSize:sa(),contentRect:new yw(0,0,0,0)}),ww=function(e,t){if(t===void 0&&(t=!1),Kl.has(e)&&!t)return Kl.get(e);if(Cw(e))return Kl.set(e,lv),lv;var r=getComputedStyle(e),n=xp(e)&&e.ownerSVGElement&&e.getBBox(),o=!$A&&r.boxSizing==="border-box",i=PA.test(r.writingMode||""),a=!n&&sv.test(r.overflowY||""),s=!n&&sv.test(r.overflowX||""),l=n?0:Cn(r.paddingTop),c=n?0:Cn(r.paddingRight),u=n?0:Cn(r.paddingBottom),f=n?0:Cn(r.paddingLeft),d=n?0:Cn(r.borderTopWidth),h=n?0:Cn(r.borderRightWidth),p=n?0:Cn(r.borderBottomWidth),g=n?0:Cn(r.borderLeftWidth),v=f+c,m=l+u,b=g+h,y=d+p,x=s?e.offsetHeight-y-e.clientHeight:0,S=a?e.offsetWidth-b-e.clientWidth:0,C=o?v+b:0,w=o?m+y:0,k=n?n.width:Cn(r.width)-C-S,A=n?n.height:Cn(r.height)-w-x,T=k+v+S+b,I=A+m+x+y,D=hi({devicePixelContentBoxSize:sa(Math.round(k*devicePixelRatio),Math.round(A*devicePixelRatio),i),borderBoxSize:sa(T,I,i),contentBoxSize:sa(k,A,i),contentRect:new yw(f,l,k,A)});return Kl.set(e,D),D},Sw=function(e,t,r){var n=ww(e,r),o=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case Vs.DEVICE_PIXEL_CONTENT_BOX:return a;case Vs.BORDER_BOX:return o;default:return i}},IA=function(){function e(t){var r=ww(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=hi([r.borderBoxSize]),this.contentBoxSize=hi([r.contentBoxSize]),this.devicePixelContentBoxSize=hi([r.devicePixelContentBoxSize])}return e}(),_w=function(e){if(Cw(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},DA=function(){var e=1/0,t=[];fi.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var u=new IA(c.target),f=_w(c.target);s.push(u),c.lastReportedSize=Sw(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var o=n[r];o()}return e},cv=function(e){fi.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(o){o.isActive()&&(_w(o.target)>e?r.activeTargets.push(o):r.skippedTargets.push(o))})})},BA=function(){var e=0;for(cv(e);_A();)e=DA(),cv(e);return EA()&&kA(),e>0},Gd,Ew=[],OA=function(){return Ew.splice(0).forEach(function(e){return e()})},LA=function(e){if(!Gd){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return OA()}).observe(r,n),Gd=function(){r.textContent="".concat(t?t--:t++)}}Ew.push(e),Gd()},RA=function(e){LA(function(){requestAnimationFrame(e)})},Sc=0,FA=function(){return!!Sc},MA=250,zA={attributes:!0,characterData:!0,childList:!0,subtree:!0},uv=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],dv=function(e){return e===void 0&&(e=0),Date.now()+e},qd=!1,NA=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=MA),!qd){qd=!0;var n=dv(t);RA(function(){var o=!1;try{o=BA()}finally{if(qd=!1,t=n-dv(),!FA())return;o?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,zA)};document.body?r():bs.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),uv.forEach(function(r){return bs.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),uv.forEach(function(r){return bs.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),R0=new NA,fv=function(e){!Sc&&e>0&&R0.start(),Sc+=e,!Sc&&R0.stop()},HA=function(e){return!xp(e)&&!AA(e)&&getComputedStyle(e).display==="inline"},jA=function(){function e(t,r){this.target=t,this.observedBox=r||Vs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Sw(this.target,this.observedBox,!0);return HA(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),WA=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),Xl=new WeakMap,hv=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Ql=function(){function e(){}return e.connect=function(t,r){var n=new WA(t,r);Xl.set(t,n)},e.observe=function(t,r,n){var o=Xl.get(t),i=o.observationTargets.length===0;hv(o.observationTargets,r)<0&&(i&&fi.push(o),o.observationTargets.push(new jA(r,n&&n.box)),fv(1),R0.schedule())},e.unobserve=function(t,r){var n=Xl.get(t),o=hv(n.observationTargets,r),i=n.observationTargets.length===1;o>=0&&(i&&fi.splice(fi.indexOf(n),1),n.observationTargets.splice(o,1),fv(-1))},e.disconnect=function(t){var r=this,n=Xl.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),UA=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ql.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!av(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ql.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!av(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ql.unobserve(this,t)},e.prototype.disconnect=function(){Ql.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class VA{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||UA)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const n=this.elHandlersMap.get(r.target);n!==void 0&&n(r)}}registerHandler(t,r){this.elHandlersMap.set(t,r),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const pv=new VA,Jc=pe({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const r=Er().proxy;function n(o){const{onResize:i}=e;i!==void 0&&i(o)}_t(()=>{const o=r.$el;if(o===void 0){ev("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){ev("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(pv.registerHandler(o.nextElementSibling,n),t=!0)}),Ht(()=>{t&&pv.unregisterHandler(r.$el.nextElementSibling)})},render(){return pa(this.$slots,"default")}});function kw(e){return e instanceof HTMLElement}function Tw(e){for(let t=0;t<e.childNodes.length;t++){const r=e.childNodes[t];if(kw(r)&&(Pw(r)||Tw(r)))return!0}return!1}function Aw(e){for(let t=e.childNodes.length-1;t>=0;t--){const r=e.childNodes[t];if(kw(r)&&(Pw(r)||Aw(r)))return!0}return!1}function Pw(e){if(!GA(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function GA(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Za=[];const $w=pe({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Ru(),r=M(null),n=M(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return Za[Za.length-1]===t}function l(v){var m;v.code==="Escape"&&s()&&((m=e.onEsc)===null||m===void 0||m.call(e,v))}_t(()=>{Je(()=>e.active,v=>{v?(f(),Xt("keydown",document,l)):(At("keydown",document,l),o&&d())},{immediate:!0})}),Ht(()=>{At("keydown",document,l),o&&d()});function c(v){if(!i&&s()){const m=u();if(m===null||m.contains(Ns(v)))return;h("first")}}function u(){const v=r.value;if(v===null)return null;let m=v;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function f(){var v;if(!e.disabled){if(Za.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?h("first"):(v=tv(m))===null||v===void 0||v.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function d(){var v;if(e.disabled||(document.removeEventListener("focus",c,!0),Za=Za.filter(b=>b!==t),s()))return;const{finalFocusTo:m}=e;m!==void 0?(v=tv(m))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function h(v){if(s()&&e.active){const m=r.value,b=n.value;if(m!==null&&b!==null){const y=u();if(y==null||y===b){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const x=v==="first"?Tw(y):Aw(y);i=!1,x||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function p(v){if(i)return;const m=u();m!==null&&(v.relatedTarget!==null&&m.contains(v.relatedTarget)?h("last"):h("first"))}function g(v){i||(v.relatedTarget!==null&&v.relatedTarget===r.value?h("last"):h("first"))}return{focusableStartRef:r,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:r}=this;return $(ot,null,[$("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),$("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let zi=0,gv="",mv="",vv="",bv="";const xv=M("0px");function qA(e){if(typeof document>"u")return;const t=document.documentElement;let r,n=!1;const o=()=>{t.style.marginRight=gv,t.style.overflow=mv,t.style.overflowX=vv,t.style.overflowY=bv,xv.value="0px"};_t(()=>{r=Je(e,i=>{if(i){if(!zi){const a=window.innerWidth-t.offsetWidth;a>0&&(gv=t.style.marginRight,t.style.marginRight=`${a}px`,xv.value=`${a}px`),mv=t.style.overflow,vv=t.style.overflowX,bv=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,zi++}else zi--,zi||o(),n=!1},{immediate:!0})}),Ht(()=>{r==null||r(),n&&(zi--,zi||o(),n=!1)})}const yp=M(!1),yv=()=>{yp.value=!0},Cv=()=>{yp.value=!1};let Ja=0;const YA=()=>(eo&&(bn(()=>{Ja||(window.addEventListener("compositionstart",yv),window.addEventListener("compositionend",Cv)),Ja++}),Ht(()=>{Ja<=1?(window.removeEventListener("compositionstart",yv),window.removeEventListener("compositionend",Cv),Ja=0):Ja--})),yp);function Iw(e){const t={isDeactivated:!1};let r=!1;return TC(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),AC(()=>{t.isDeactivated=!0,r||(r=!0)}),t}const KA=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,t!==void 0&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)},wv="n-form-item";function Cp(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:n}={}){const o=ze(wv,null);ft(wv,null);const i=R(r?()=>r(o):()=>{const{size:l}=e;if(l)return l;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=R(n?()=>n(o):()=>{const{disabled:l}=e;return l!==void 0?l:o?o.disabled.value:!1}),s=R(()=>{const{status:l}=e;return l||(o==null?void 0:o.mergedValidationStatus.value)});return Ht(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var XA=typeof global=="object"&&global&&global.Object===Object&&global;const Dw=XA;var QA=typeof self=="object"&&self&&self.Object===Object&&self,ZA=Dw||QA||Function("return this")();const Fn=ZA;var JA=Fn.Symbol;const $o=JA;var Bw=Object.prototype,eP=Bw.hasOwnProperty,tP=Bw.toString,es=$o?$o.toStringTag:void 0;function rP(e){var t=eP.call(e,es),r=e[es];try{e[es]=void 0;var n=!0}catch{}var o=tP.call(e);return n&&(t?e[es]=r:delete e[es]),o}var nP=Object.prototype,oP=nP.toString;function iP(e){return oP.call(e)}var aP="[object Null]",sP="[object Undefined]",Sv=$o?$o.toStringTag:void 0;function Si(e){return e==null?e===void 0?sP:aP:Sv&&Sv in Object(e)?rP(e):iP(e)}function Io(e){return e!=null&&typeof e=="object"}var lP="[object Symbol]";function wp(e){return typeof e=="symbol"||Io(e)&&Si(e)==lP}function Ow(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var cP=Array.isArray;const rn=cP;var uP=1/0,_v=$o?$o.prototype:void 0,Ev=_v?_v.toString:void 0;function Lw(e){if(typeof e=="string")return e;if(rn(e))return Ow(e,Lw)+"";if(wp(e))return Ev?Ev.call(e):"";var t=e+"";return t=="0"&&1/e==-uP?"-0":t}function Lo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Sp(e){return e}var dP="[object AsyncFunction]",fP="[object Function]",hP="[object GeneratorFunction]",pP="[object Proxy]";function _p(e){if(!Lo(e))return!1;var t=Si(e);return t==fP||t==hP||t==dP||t==pP}var gP=Fn["__core-js_shared__"];const Yd=gP;var kv=function(){var e=/[^.]+$/.exec(Yd&&Yd.keys&&Yd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mP(e){return!!kv&&kv in e}var vP=Function.prototype,bP=vP.toString;function _i(e){if(e!=null){try{return bP.call(e)}catch{}try{return e+""}catch{}}return""}var xP=/[\\^$.*+?()[\]{}|]/g,yP=/^\[object .+?Constructor\]$/,CP=Function.prototype,wP=Object.prototype,SP=CP.toString,_P=wP.hasOwnProperty,EP=RegExp("^"+SP.call(_P).replace(xP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kP(e){if(!Lo(e)||mP(e))return!1;var t=_p(e)?EP:yP;return t.test(_i(e))}function TP(e,t){return e==null?void 0:e[t]}function Ei(e,t){var r=TP(e,t);return kP(r)?r:void 0}var AP=Ei(Fn,"WeakMap");const F0=AP;var Tv=Object.create,PP=function(){function e(){}return function(t){if(!Lo(t))return{};if(Tv)return Tv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const $P=PP;function IP(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function DP(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var BP=800,OP=16,LP=Date.now;function RP(e){var t=0,r=0;return function(){var n=LP(),o=OP-(n-r);if(r=n,o>0){if(++t>=BP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function FP(e){return function(){return e}}var MP=function(){try{var e=Ei(Object,"defineProperty");return e({},"",{}),e}catch{}}();const eu=MP;var zP=eu?function(e,t){return eu(e,"toString",{configurable:!0,enumerable:!1,value:FP(t),writable:!0})}:Sp;const NP=zP;var HP=RP(NP);const jP=HP;var WP=9007199254740991,UP=/^(?:0|[1-9]\d*)$/;function Ep(e,t){var r=typeof e;return t=t??WP,!!t&&(r=="number"||r!="symbol"&&UP.test(e))&&e>-1&&e%1==0&&e<t}function kp(e,t,r){t=="__proto__"&&eu?eu(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function vl(e,t){return e===t||e!==e&&t!==t}var VP=Object.prototype,GP=VP.hasOwnProperty;function qP(e,t,r){var n=e[t];(!(GP.call(e,t)&&vl(n,r))||r===void 0&&!(t in e))&&kp(e,t,r)}function YP(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),o?kp(r,s,l):qP(r,s,l)}return r}var Av=Math.max;function KP(e,t,r){return t=Av(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Av(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),IP(e,this,s)}}function XP(e,t){return jP(KP(e,t,Sp),e+"")}var QP=9007199254740991;function Tp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=QP}function ja(e){return e!=null&&Tp(e.length)&&!_p(e)}function ZP(e,t,r){if(!Lo(r))return!1;var n=typeof t;return(n=="number"?ja(r)&&Ep(t,r.length):n=="string"&&t in r)?vl(r[t],e):!1}function JP(e){return XP(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&ZP(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t})}var e6=Object.prototype;function Ap(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||e6;return e===r}function t6(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var r6="[object Arguments]";function Pv(e){return Io(e)&&Si(e)==r6}var Rw=Object.prototype,n6=Rw.hasOwnProperty,o6=Rw.propertyIsEnumerable,i6=Pv(function(){return arguments}())?Pv:function(e){return Io(e)&&n6.call(e,"callee")&&!o6.call(e,"callee")};const tu=i6;function a6(){return!1}var Fw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$v=Fw&&typeof module=="object"&&module&&!module.nodeType&&module,s6=$v&&$v.exports===Fw,Iv=s6?Fn.Buffer:void 0,l6=Iv?Iv.isBuffer:void 0,c6=l6||a6;const ru=c6;var u6="[object Arguments]",d6="[object Array]",f6="[object Boolean]",h6="[object Date]",p6="[object Error]",g6="[object Function]",m6="[object Map]",v6="[object Number]",b6="[object Object]",x6="[object RegExp]",y6="[object Set]",C6="[object String]",w6="[object WeakMap]",S6="[object ArrayBuffer]",_6="[object DataView]",E6="[object Float32Array]",k6="[object Float64Array]",T6="[object Int8Array]",A6="[object Int16Array]",P6="[object Int32Array]",$6="[object Uint8Array]",I6="[object Uint8ClampedArray]",D6="[object Uint16Array]",B6="[object Uint32Array]",It={};It[E6]=It[k6]=It[T6]=It[A6]=It[P6]=It[$6]=It[I6]=It[D6]=It[B6]=!0;It[u6]=It[d6]=It[S6]=It[f6]=It[_6]=It[h6]=It[p6]=It[g6]=It[m6]=It[v6]=It[b6]=It[x6]=It[y6]=It[C6]=It[w6]=!1;function O6(e){return Io(e)&&Tp(e.length)&&!!It[Si(e)]}function L6(e){return function(t){return e(t)}}var Mw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xs=Mw&&typeof module=="object"&&module&&!module.nodeType&&module,R6=xs&&xs.exports===Mw,Kd=R6&&Dw.process,F6=function(){try{var e=xs&&xs.require&&xs.require("util").types;return e||Kd&&Kd.binding&&Kd.binding("util")}catch{}}();const Dv=F6;var Bv=Dv&&Dv.isTypedArray,M6=Bv?L6(Bv):O6;const Pp=M6;var z6=Object.prototype,N6=z6.hasOwnProperty;function zw(e,t){var r=rn(e),n=!r&&tu(e),o=!r&&!n&&ru(e),i=!r&&!n&&!o&&Pp(e),a=r||n||o||i,s=a?t6(e.length,String):[],l=s.length;for(var c in e)(t||N6.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ep(c,l)))&&s.push(c);return s}function Nw(e,t){return function(r){return e(t(r))}}var H6=Nw(Object.keys,Object);const j6=H6;var W6=Object.prototype,U6=W6.hasOwnProperty;function V6(e){if(!Ap(e))return j6(e);var t=[];for(var r in Object(e))U6.call(e,r)&&r!="constructor"&&t.push(r);return t}function $p(e){return ja(e)?zw(e):V6(e)}function G6(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var q6=Object.prototype,Y6=q6.hasOwnProperty;function K6(e){if(!Lo(e))return G6(e);var t=Ap(e),r=[];for(var n in e)n=="constructor"&&(t||!Y6.call(e,n))||r.push(n);return r}function Hw(e){return ja(e)?zw(e,!0):K6(e)}var X6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q6=/^\w*$/;function Ip(e,t){if(rn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||wp(e)?!0:Q6.test(e)||!X6.test(e)||t!=null&&e in Object(t)}var Z6=Ei(Object,"create");const Gs=Z6;function J6(){this.__data__=Gs?Gs(null):{},this.size=0}function e$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var t$="__lodash_hash_undefined__",r$=Object.prototype,n$=r$.hasOwnProperty;function o$(e){var t=this.__data__;if(Gs){var r=t[e];return r===t$?void 0:r}return n$.call(t,e)?t[e]:void 0}var i$=Object.prototype,a$=i$.hasOwnProperty;function s$(e){var t=this.__data__;return Gs?t[e]!==void 0:a$.call(t,e)}var l$="__lodash_hash_undefined__";function c$(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Gs&&t===void 0?l$:t,this}function mi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mi.prototype.clear=J6;mi.prototype.delete=e$;mi.prototype.get=o$;mi.prototype.has=s$;mi.prototype.set=c$;function u$(){this.__data__=[],this.size=0}function ju(e,t){for(var r=e.length;r--;)if(vl(e[r][0],t))return r;return-1}var d$=Array.prototype,f$=d$.splice;function h$(e){var t=this.__data__,r=ju(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():f$.call(t,r,1),--this.size,!0}function p$(e){var t=this.__data__,r=ju(t,e);return r<0?void 0:t[r][1]}function g$(e){return ju(this.__data__,e)>-1}function m$(e,t){var r=this.__data__,n=ju(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function to(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}to.prototype.clear=u$;to.prototype.delete=h$;to.prototype.get=p$;to.prototype.has=g$;to.prototype.set=m$;var v$=Ei(Fn,"Map");const qs=v$;function b$(){this.size=0,this.__data__={hash:new mi,map:new(qs||to),string:new mi}}function x$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wu(e,t){var r=e.__data__;return x$(t)?r[typeof t=="string"?"string":"hash"]:r.map}function y$(e){var t=Wu(this,e).delete(e);return this.size-=t?1:0,t}function C$(e){return Wu(this,e).get(e)}function w$(e){return Wu(this,e).has(e)}function S$(e,t){var r=Wu(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ro(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ro.prototype.clear=b$;ro.prototype.delete=y$;ro.prototype.get=C$;ro.prototype.has=w$;ro.prototype.set=S$;var _$="Expected a function";function Dp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(_$);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Dp.Cache||ro),r}Dp.Cache=ro;var E$=500;function k$(e){var t=Dp(e,function(n){return r.size===E$&&r.clear(),n}),r=t.cache;return t}var T$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A$=/\\(\\)?/g,P$=k$(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(T$,function(r,n,o,i){t.push(o?i.replace(A$,"$1"):n||r)}),t});const $$=P$;function Uu(e){return e==null?"":Lw(e)}function jw(e,t){return rn(e)?e:Ip(e,t)?[e]:$$(Uu(e))}var I$=1/0;function Vu(e){if(typeof e=="string"||wp(e))return e;var t=e+"";return t=="0"&&1/e==-I$?"-0":t}function Ww(e,t){t=jw(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Vu(t[r++])];return r&&r==n?e:void 0}function D$(e,t,r){var n=e==null?void 0:Ww(e,t);return n===void 0?r:n}function B$(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var O$=Nw(Object.getPrototypeOf,Object);const Uw=O$;var L$="[object Object]",R$=Function.prototype,F$=Object.prototype,Vw=R$.toString,M$=F$.hasOwnProperty,z$=Vw.call(Object);function N$(e){if(!Io(e)||Si(e)!=L$)return!1;var t=Uw(e);if(t===null)return!0;var r=M$.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Vw.call(r)==z$}function H$(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function j$(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:H$(e,t,r)}var W$="\\ud800-\\udfff",U$="\\u0300-\\u036f",V$="\\ufe20-\\ufe2f",G$="\\u20d0-\\u20ff",q$=U$+V$+G$,Y$="\\ufe0e\\ufe0f",K$="\\u200d",X$=RegExp("["+K$+W$+q$+Y$+"]");function Gw(e){return X$.test(e)}function Q$(e){return e.split("")}var qw="\\ud800-\\udfff",Z$="\\u0300-\\u036f",J$="\\ufe20-\\ufe2f",eI="\\u20d0-\\u20ff",tI=Z$+J$+eI,rI="\\ufe0e\\ufe0f",nI="["+qw+"]",M0="["+tI+"]",z0="\\ud83c[\\udffb-\\udfff]",oI="(?:"+M0+"|"+z0+")",Yw="[^"+qw+"]",Kw="(?:\\ud83c[\\udde6-\\uddff]){2}",Xw="[\\ud800-\\udbff][\\udc00-\\udfff]",iI="\\u200d",Qw=oI+"?",Zw="["+rI+"]?",aI="(?:"+iI+"(?:"+[Yw,Kw,Xw].join("|")+")"+Zw+Qw+")*",sI=Zw+Qw+aI,lI="(?:"+[Yw+M0+"?",M0,Kw,Xw,nI].join("|")+")",cI=RegExp(z0+"(?="+z0+")|"+lI+sI,"g");function uI(e){return e.match(cI)||[]}function dI(e){return Gw(e)?uI(e):Q$(e)}function fI(e){return function(t){t=Uu(t);var r=Gw(t)?dI(t):void 0,n=r?r[0]:t.charAt(0),o=r?j$(r,1).join(""):t.slice(1);return n[e]()+o}}var hI=fI("toUpperCase");const pI=hI;function gI(e,t,r,n){var o=-1,i=e==null?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function mI(e){return function(t){return e==null?void 0:e[t]}}var vI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bI=mI(vI);const xI=bI;var yI=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,CI="\\u0300-\\u036f",wI="\\ufe20-\\ufe2f",SI="\\u20d0-\\u20ff",_I=CI+wI+SI,EI="["+_I+"]",kI=RegExp(EI,"g");function TI(e){return e=Uu(e),e&&e.replace(yI,xI).replace(kI,"")}var AI=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function PI(e){return e.match(AI)||[]}var $I=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function II(e){return $I.test(e)}var Jw="\\ud800-\\udfff",DI="\\u0300-\\u036f",BI="\\ufe20-\\ufe2f",OI="\\u20d0-\\u20ff",LI=DI+BI+OI,e2="\\u2700-\\u27bf",t2="a-z\\xdf-\\xf6\\xf8-\\xff",RI="\\xac\\xb1\\xd7\\xf7",FI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",MI="\\u2000-\\u206f",zI=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r2="A-Z\\xc0-\\xd6\\xd8-\\xde",NI="\\ufe0e\\ufe0f",n2=RI+FI+MI+zI,o2="[']",Ov="["+n2+"]",HI="["+LI+"]",i2="\\d+",jI="["+e2+"]",a2="["+t2+"]",s2="[^"+Jw+n2+i2+e2+t2+r2+"]",WI="\\ud83c[\\udffb-\\udfff]",UI="(?:"+HI+"|"+WI+")",VI="[^"+Jw+"]",l2="(?:\\ud83c[\\udde6-\\uddff]){2}",c2="[\\ud800-\\udbff][\\udc00-\\udfff]",Gi="["+r2+"]",GI="\\u200d",Lv="(?:"+a2+"|"+s2+")",qI="(?:"+Gi+"|"+s2+")",Rv="(?:"+o2+"(?:d|ll|m|re|s|t|ve))?",Fv="(?:"+o2+"(?:D|LL|M|RE|S|T|VE))?",u2=UI+"?",d2="["+NI+"]?",YI="(?:"+GI+"(?:"+[VI,l2,c2].join("|")+")"+d2+u2+")*",KI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",XI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QI=d2+u2+YI,ZI="(?:"+[jI,l2,c2].join("|")+")"+QI,JI=RegExp([Gi+"?"+a2+"+"+Rv+"(?="+[Ov,Gi,"$"].join("|")+")",qI+"+"+Fv+"(?="+[Ov,Gi+Lv,"$"].join("|")+")",Gi+"?"+Lv+"+"+Rv,Gi+"+"+Fv,XI,KI,i2,ZI].join("|"),"g");function eD(e){return e.match(JI)||[]}function tD(e,t,r){return e=Uu(e),t=r?void 0:t,t===void 0?II(e)?eD(e):PI(e):e.match(t)||[]}var rD="[']",nD=RegExp(rD,"g");function oD(e){return function(t){return gI(tD(TI(t).replace(nD,"")),e,"")}}function iD(){this.__data__=new to,this.size=0}function aD(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function sD(e){return this.__data__.get(e)}function lD(e){return this.__data__.has(e)}var cD=200;function uD(e,t){var r=this.__data__;if(r instanceof to){var n=r.__data__;if(!qs||n.length<cD-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ro(n)}return r.set(e,t),this.size=r.size,this}function Dn(e){var t=this.__data__=new to(e);this.size=t.size}Dn.prototype.clear=iD;Dn.prototype.delete=aD;Dn.prototype.get=sD;Dn.prototype.has=lD;Dn.prototype.set=uD;var f2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mv=f2&&typeof module=="object"&&module&&!module.nodeType&&module,dD=Mv&&Mv.exports===f2,zv=dD?Fn.Buffer:void 0,Nv=zv?zv.allocUnsafe:void 0;function fD(e,t){if(t)return e.slice();var r=e.length,n=Nv?Nv(r):new e.constructor(r);return e.copy(n),n}function hD(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function pD(){return[]}var gD=Object.prototype,mD=gD.propertyIsEnumerable,Hv=Object.getOwnPropertySymbols,vD=Hv?function(e){return e==null?[]:(e=Object(e),hD(Hv(e),function(t){return mD.call(e,t)}))}:pD;const bD=vD;function xD(e,t,r){var n=t(e);return rn(e)?n:B$(n,r(e))}function jv(e){return xD(e,$p,bD)}var yD=Ei(Fn,"DataView");const N0=yD;var CD=Ei(Fn,"Promise");const H0=CD;var wD=Ei(Fn,"Set");const j0=wD;var Wv="[object Map]",SD="[object Object]",Uv="[object Promise]",Vv="[object Set]",Gv="[object WeakMap]",qv="[object DataView]",_D=_i(N0),ED=_i(qs),kD=_i(H0),TD=_i(j0),AD=_i(F0),Qo=Si;(N0&&Qo(new N0(new ArrayBuffer(1)))!=qv||qs&&Qo(new qs)!=Wv||H0&&Qo(H0.resolve())!=Uv||j0&&Qo(new j0)!=Vv||F0&&Qo(new F0)!=Gv)&&(Qo=function(e){var t=Si(e),r=t==SD?e.constructor:void 0,n=r?_i(r):"";if(n)switch(n){case _D:return qv;case ED:return Wv;case kD:return Uv;case TD:return Vv;case AD:return Gv}return t});const Yv=Qo;var PD=Fn.Uint8Array;const nu=PD;function $D(e){var t=new e.constructor(e.byteLength);return new nu(t).set(new nu(e)),t}function ID(e,t){var r=t?$D(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function DD(e){return typeof e.constructor=="function"&&!Ap(e)?$P(Uw(e)):{}}var BD="__lodash_hash_undefined__";function OD(e){return this.__data__.set(e,BD),this}function LD(e){return this.__data__.has(e)}function ou(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ro;++t<r;)this.add(e[t])}ou.prototype.add=ou.prototype.push=OD;ou.prototype.has=LD;function RD(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function FD(e,t){return e.has(t)}var MD=1,zD=2;function h2(e,t,r,n,o,i){var a=r&MD,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=r&zD?new ou:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],g=t[f];if(n)var v=a?n(g,p,f,t,e,i):n(p,g,f,e,t,i);if(v!==void 0){if(v)continue;d=!1;break}if(h){if(!RD(t,function(m,b){if(!FD(h,b)&&(p===m||o(p,m,r,n,i)))return h.push(b)})){d=!1;break}}else if(!(p===g||o(p,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function ND(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function HD(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var jD=1,WD=2,UD="[object Boolean]",VD="[object Date]",GD="[object Error]",qD="[object Map]",YD="[object Number]",KD="[object RegExp]",XD="[object Set]",QD="[object String]",ZD="[object Symbol]",JD="[object ArrayBuffer]",eB="[object DataView]",Kv=$o?$o.prototype:void 0,Xd=Kv?Kv.valueOf:void 0;function tB(e,t,r,n,o,i,a){switch(r){case eB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JD:return!(e.byteLength!=t.byteLength||!i(new nu(e),new nu(t)));case UD:case VD:case YD:return vl(+e,+t);case GD:return e.name==t.name&&e.message==t.message;case KD:case QD:return e==t+"";case qD:var s=ND;case XD:var l=n&jD;if(s||(s=HD),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=WD,a.set(e,t);var u=h2(s(e),s(t),n,o,i,a);return a.delete(e),u;case ZD:if(Xd)return Xd.call(e)==Xd.call(t)}return!1}var rB=1,nB=Object.prototype,oB=nB.hasOwnProperty;function iB(e,t,r,n,o,i){var a=r&rB,s=jv(e),l=s.length,c=jv(t),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in t:oB.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=a;++f<l;){d=s[f];var m=e[d],b=t[d];if(n)var y=a?n(b,m,d,t,e,i):n(m,b,d,e,t,i);if(!(y===void 0?m===b||o(m,b,r,n,i):y)){g=!1;break}v||(v=d=="constructor")}if(g&&!v){var x=e.constructor,S=t.constructor;x!=S&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof S=="function"&&S instanceof S)&&(g=!1)}return i.delete(e),i.delete(t),g}var aB=1,Xv="[object Arguments]",Qv="[object Array]",Zl="[object Object]",sB=Object.prototype,Zv=sB.hasOwnProperty;function lB(e,t,r,n,o,i){var a=rn(e),s=rn(t),l=a?Qv:Yv(e),c=s?Qv:Yv(t);l=l==Xv?Zl:l,c=c==Xv?Zl:c;var u=l==Zl,f=c==Zl,d=l==c;if(d&&ru(e)){if(!ru(t))return!1;a=!0,u=!1}if(d&&!u)return i||(i=new Dn),a||Pp(e)?h2(e,t,r,n,o,i):tB(e,t,l,r,n,o,i);if(!(r&aB)){var h=u&&Zv.call(e,"__wrapped__"),p=f&&Zv.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,v=p?t.value():t;return i||(i=new Dn),o(g,v,r,n,i)}}return d?(i||(i=new Dn),iB(e,t,r,n,o,i)):!1}function Bp(e,t,r,n,o){return e===t?!0:e==null||t==null||!Io(e)&&!Io(t)?e!==e&&t!==t:lB(e,t,r,n,Bp,o)}var cB=1,uB=2;function dB(e,t,r,n){var o=r.length,i=o,a=!n;if(e==null)return!i;for(e=Object(e);o--;){var s=r[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Dn;if(n)var d=n(c,u,l,e,t,f);if(!(d===void 0?Bp(u,c,cB|uB,n,f):d))return!1}}return!0}function p2(e){return e===e&&!Lo(e)}function fB(e){for(var t=$p(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,p2(o)]}return t}function g2(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function hB(e){var t=fB(e);return t.length==1&&t[0][2]?g2(t[0][0],t[0][1]):function(r){return r===e||dB(r,e,t)}}function pB(e,t){return e!=null&&t in Object(e)}function gB(e,t,r){t=jw(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=Vu(t[n]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Tp(o)&&Ep(a,o)&&(rn(e)||tu(e)))}function mB(e,t){return e!=null&&gB(e,t,pB)}var vB=1,bB=2;function xB(e,t){return Ip(e)&&p2(t)?g2(Vu(e),t):function(r){var n=D$(r,e);return n===void 0&&n===t?mB(r,e):Bp(t,n,vB|bB)}}function yB(e){return function(t){return t==null?void 0:t[e]}}function CB(e){return function(t){return Ww(t,e)}}function wB(e){return Ip(e)?yB(Vu(e)):CB(e)}function SB(e){return typeof e=="function"?e:e==null?Sp:typeof e=="object"?rn(e)?xB(e[0],e[1]):hB(e):wB(e)}function _B(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++o];if(r(i[l],l,i)===!1)break}return t}}var EB=_B();const m2=EB;function kB(e,t){return e&&m2(e,t,$p)}function TB(e,t){return function(r,n){if(r==null)return r;if(!ja(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++i<o)&&n(a[i],i,a)!==!1;);return r}}var AB=TB(kB);const PB=AB;function W0(e,t,r){(r!==void 0&&!vl(e[t],r)||r===void 0&&!(t in e))&&kp(e,t,r)}function $B(e){return Io(e)&&ja(e)}function U0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function IB(e){return YP(e,Hw(e))}function DB(e,t,r,n,o,i,a){var s=U0(e,r),l=U0(t,r),c=a.get(l);if(c){W0(e,r,c);return}var u=i?i(s,l,r+"",e,t,a):void 0,f=u===void 0;if(f){var d=rn(l),h=!d&&ru(l),p=!d&&!h&&Pp(l);u=l,d||h||p?rn(s)?u=s:$B(s)?u=DP(s):h?(f=!1,u=fD(l,!0)):p?(f=!1,u=ID(l,!0)):u=[]:N$(l)||tu(l)?(u=s,tu(s)?u=IB(s):(!Lo(s)||_p(s))&&(u=DD(l))):f=!1}f&&(a.set(l,u),o(u,l,n,i,a),a.delete(l)),W0(e,r,u)}function v2(e,t,r,n,o){e!==t&&m2(t,function(i,a){if(o||(o=new Dn),Lo(i))DB(e,t,a,r,v2,n,o);else{var s=n?n(U0(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),W0(e,a,s)}},Hw)}function BB(e,t){var r=-1,n=ja(e)?Array(e.length):[];return PB(e,function(o,i,a){n[++r]=t(o,i,a)}),n}function OB(e,t){var r=rn(e)?Ow:BB;return r(e,SB(t))}var LB=oD(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const RB=LB;var FB=JP(function(e,t,r){v2(e,t,r)});const Xi=FB,Ro={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:MB,fontFamily:zB,lineHeight:NB}=Ro,b2=Y("body",`
margin: 0;
font-size: ${MB};
font-family: ${zB};
line-height: ${NB};
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
`,[Y("input",`
font-family: inherit;
font-size: inherit;
`)]),Ln="n-config-provider",Ys="naive-ui-style";function We(e,t,r,n,o,i){const a=ml(),s=ze(Ln,null);if(r){const c=()=>{const u=i==null?void 0:i.value;r.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Ys,ssr:a}),s!=null&&s.preflightStyleDisabled||b2.mount({id:"n-global",head:!0,anchorMetaName:Ys,ssr:a})};a?c():bn(c)}return R(()=>{var c;const{theme:{common:u,self:f,peers:d={}}={},themeOverrides:h={},builtinThemeOverrides:p={}}=o,{common:g,peers:v}=h,{common:m=void 0,[e]:{common:b=void 0,self:y=void 0,peers:x={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:S=void 0,[e]:C={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:w,peers:k={}}=C,A=Xi({},u||b||m||n.common,S,w,g),T=Xi((c=f||y||n.self)===null||c===void 0?void 0:c(A),p,C,h);return{common:A,self:T,peers:Xi({},n.peers,x,d),peerOverrides:Xi({},p.peers,k,v)}})}We.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Ks="n";function gt(e={},t={defaultBordered:!0}){const r=ze(Ln,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:R(()=>{var n,o;const{bordered:i}=e;return i!==void 0?i:(o=(n=r==null?void 0:r.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:r?r.mergedClsPrefixRef:Xn(Ks),namespaceRef:R(()=>r==null?void 0:r.mergedNamespaceRef.value)}}function tce(){const e=ze(Ln,null);return e?e.mergedClsPrefixRef:Xn(Ks)}const HB={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`${e}`,selected:e=>`已选 ${e}`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭Esc",tipOriginalSize:"缩放到原始尺寸"}},Jv=HB,jB={name:"zh-TW",global:{undo:"復原",redo:"重做",confirm:"確定",clear:"清除"},Popconfirm:{positiveText:"確定",negativeText:"取消"},Cascader:{placeholder:"請選擇",loading:"載入中",loadingRequiredMessage:e=>`載入全部 ${e} 的子節點後才可選擇`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy 年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"清除",now:"現在",confirm:"確定",selectTime:"選擇時間",selectDate:"選擇日期",datePlaceholder:"選擇日期",datetimePlaceholder:"選擇日期時間",monthPlaceholder:"選擇月份",yearPlaceholder:"選擇年份",quarterPlaceholder:"選擇季度",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日期",endDatePlaceholder:"結束日期",startDatetimePlaceholder:"開始日期時間",endDatetimePlaceholder:"結束日期時間",startMonthPlaceholder:"開始月份",endMonthPlaceholder:"結束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"選擇全部表格資料",uncheckTableAll:"取消選擇全部表格資料",confirm:"確定",clear:"重設"},LegacyTransfer:{sourceTitle:"來源",targetTitle:"目標"},Transfer:{selectAll:"全選",unselectAll:"取消全選",clearAll:"清除全部",total:e=>`${e}`,selected:e=>`已選 ${e}`},Empty:{description:"無資料"},Select:{placeholder:"請選擇"},TimePicker:{placeholder:"請選擇時間",positiveText:"確定",negativeText:"取消",now:"現在",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"頁"},DynamicTags:{add:"新增"},Log:{loading:"載入中"},Input:{placeholder:"請輸入"},InputNumber:{placeholder:"請輸入"},DynamicInput:{create:"新增"},ThemeEditor:{title:"主題編輯器",clearAllVars:"清除全部變數",clearSearch:"清除搜尋",filterCompName:"過濾組件名稱",filterVarName:"過濾變數名稱",import:"匯入",export:"匯出",restore:"恢復預設"},Image:{tipPrevious:"上一張(←)",tipNext:"下一張(→)",tipCounterclockwise:"向左旋轉",tipClockwise:"向右旋轉",tipZoomOut:"縮小",tipZoomIn:"放大",tipDownload:"下載",tipClose:"關閉Esc",tipOriginalSize:"縮放到原始尺寸"}},WB=jB,UB={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},x2=UB;var VB={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},GB=function(t,r,n){var o,i=VB[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?o+"内":o+"前":o};const qB=GB;function la(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var YB={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},KB={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},XB={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},QB={date:la({formats:YB,defaultWidth:"full"}),time:la({formats:KB,defaultWidth:"full"}),dateTime:la({formats:XB,defaultWidth:"full"})};const ZB=QB;function dt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function Rt(e){dt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||iu(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Rn(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var JB={};function bl(){return JB}function ya(e,t){var r,n,o,i,a,s,l,c;dt(1,arguments);var u=bl(),f=Rn((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&n!==void 0?n:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Rt(e),h=d.getUTCDay(),p=(h<f?7:0)+h-f;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function eO(e,t,r){dt(2,arguments);var n=ya(e,r),o=ya(t,r);return n.getTime()===o.getTime()}function e1(e,t,r){var n="eeee p";return eO(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var tO={lastWeek:e1,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:e1,other:"PP p"},rO=function(t,r,n,o){var i=tO[t];return typeof i=="function"?i(r,n,o):i};const nO=rO;function An(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return o[c]}}var oO={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},iO={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},aO={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},sO={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},lO={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},cO={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},uO=function(t,r){var n=Number(t);switch(r==null?void 0:r.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},dO={ordinalNumber:uO,era:An({values:oO,defaultWidth:"wide"}),quarter:An({values:iO,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:An({values:aO,defaultWidth:"wide"}),day:An({values:sO,defaultWidth:"wide"}),dayPeriod:An({values:lO,defaultWidth:"wide",formattingValues:cO,defaultFormattingWidth:"wide"})};const fO=dO;function Pn(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?pO(s,function(f){return f.test(a)}):hO(s,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function hO(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function pO(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function y2(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var gO=/^(第\s*)?\d+(日|时|分|秒)?/i,mO=/\d+/i,vO={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},bO={any:[/^(前)/i,/^(公元)/i]},xO={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},yO={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},CO={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},wO={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},SO={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},_O={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},EO={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},kO={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},TO={ordinalNumber:y2({matchPattern:gO,parsePattern:mO,valueCallback:function(t){return parseInt(t,10)}}),era:Pn({matchPatterns:vO,defaultMatchWidth:"wide",parsePatterns:bO,defaultParseWidth:"any"}),quarter:Pn({matchPatterns:xO,defaultMatchWidth:"wide",parsePatterns:yO,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Pn({matchPatterns:CO,defaultMatchWidth:"wide",parsePatterns:wO,defaultParseWidth:"any"}),day:Pn({matchPatterns:SO,defaultMatchWidth:"wide",parsePatterns:_O,defaultParseWidth:"any"}),dayPeriod:Pn({matchPatterns:EO,defaultMatchWidth:"any",parsePatterns:kO,defaultParseWidth:"any"})};const AO=TO;var PO={code:"zh-CN",formatDistance:qB,formatLong:ZB,formatRelative:nO,localize:fO,match:AO,options:{weekStartsOn:1,firstWeekContainsDate:4}};const $O=PO,IO={name:"zh-CN",locale:$O},DO=IO;var BO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},OO=function(t,r,n){var o,i=BO[t];return typeof i=="string"?o=i:r===1?o=i.one:o=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};const LO=OO;var RO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},FO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},MO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zO={date:la({formats:RO,defaultWidth:"full"}),time:la({formats:FO,defaultWidth:"full"}),dateTime:la({formats:MO,defaultWidth:"full"})};const NO=zO;var HO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jO=function(t,r,n,o){return HO[t]};const WO=jO;var UO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},VO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},GO={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},qO={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},YO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},KO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},XO=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},QO={ordinalNumber:XO,era:An({values:UO,defaultWidth:"wide"}),quarter:An({values:VO,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:An({values:GO,defaultWidth:"wide"}),day:An({values:qO,defaultWidth:"wide"}),dayPeriod:An({values:YO,defaultWidth:"wide",formattingValues:KO,defaultFormattingWidth:"wide"})};const ZO=QO;var JO=/^(\d+)(th|st|nd|rd)?/i,eL=/\d+/i,tL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rL={any:[/^b/i,/^(a|c)/i]},nL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oL={any:[/1/i,/2/i,/3/i,/4/i]},iL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dL={ordinalNumber:y2({matchPattern:JO,parsePattern:eL,valueCallback:function(t){return parseInt(t,10)}}),era:Pn({matchPatterns:tL,defaultMatchWidth:"wide",parsePatterns:rL,defaultParseWidth:"any"}),quarter:Pn({matchPatterns:nL,defaultMatchWidth:"wide",parsePatterns:oL,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Pn({matchPatterns:iL,defaultMatchWidth:"wide",parsePatterns:aL,defaultParseWidth:"any"}),day:Pn({matchPatterns:sL,defaultMatchWidth:"wide",parsePatterns:lL,defaultParseWidth:"any"}),dayPeriod:Pn({matchPatterns:cL,defaultMatchWidth:"any",parsePatterns:uL,defaultParseWidth:"any"})};const fL=dL;var hL={code:"en-US",formatDistance:LO,formatLong:NO,formatRelative:WO,localize:ZO,match:fL,options:{weekStartsOn:0,firstWeekContainsDate:1}};const C2=hL,pL={name:"en-US",locale:C2},gL=pL;function Jl(e,t){dt(2,arguments);var r=Rt(e),n=Rn(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function t1(e,t){dt(2,arguments);var r=Rt(e),n=Rn(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function mL(e,t){dt(2,arguments);var r=Rt(e).getTime(),n=Rn(t);return new Date(r+n)}function r1(e,t){var r,n,o,i,a,s,l,c;dt(1,arguments);var u=bl(),f=Rn((r=(n=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&n!==void 0?n:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Rt(e),h=d.getDay(),p=(h<f?7:0)+h-f;return d.setDate(d.getDate()-p),d.setHours(0,0,0,0),d}function vL(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function au(e){dt(1,arguments);var t=Rt(e);return t.setHours(0,0,0,0),t}function bL(e,t){dt(2,arguments);var r=au(e),n=au(t);return r.getTime()===n.getTime()}function xL(e){return dt(1,arguments),e instanceof Date||iu(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function yL(e){if(dt(1,arguments),!xL(e)&&typeof e!="number")return!1;var t=Rt(e);return!isNaN(Number(t))}function n1(e){dt(1,arguments);var t=Rt(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function _c(e){dt(1,arguments);var t=Rt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function CL(e,t){dt(2,arguments);var r=Rn(t);return mL(e,-r)}var wL=864e5;function SL(e){dt(1,arguments);var t=Rt(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),o=r-n;return Math.floor(o/wL)+1}function su(e){dt(1,arguments);var t=1,r=Rt(e),n=r.getUTCDay(),o=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-o),r.setUTCHours(0,0,0,0),r}function w2(e){dt(1,arguments);var t=Rt(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var o=su(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var a=su(i);return t.getTime()>=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function _L(e){dt(1,arguments);var t=w2(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=su(r);return n}var EL=6048e5;function kL(e){dt(1,arguments);var t=Rt(e),r=su(t).getTime()-_L(t).getTime();return Math.round(r/EL)+1}function S2(e,t){var r,n,o,i,a,s,l,c;dt(1,arguments);var u=Rt(e),f=u.getUTCFullYear(),d=bl(),h=Rn((r=(n=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,h),p.setUTCHours(0,0,0,0);var g=ya(p,t),v=new Date(0);v.setUTCFullYear(f,0,h),v.setUTCHours(0,0,0,0);var m=ya(v,t);return u.getTime()>=g.getTime()?f+1:u.getTime()>=m.getTime()?f:f-1}function TL(e,t){var r,n,o,i,a,s,l,c;dt(1,arguments);var u=bl(),f=Rn((r=(n=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&n!==void 0?n:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=S2(e,t),h=new Date(0);h.setUTCFullYear(d,0,f),h.setUTCHours(0,0,0,0);var p=ya(h,t);return p}var AL=6048e5;function PL(e,t){dt(1,arguments);var r=Rt(e),n=ya(r,t).getTime()-TL(r,t).getTime();return Math.round(n/AL)+1}function bt(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var $L={y:function(t,r){var n=t.getUTCFullYear(),o=n>0?n:1-n;return bt(r==="yy"?o%100:o,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):bt(n+1,2)},d:function(t,r){return bt(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return bt(t.getUTCHours()%12||12,r.length)},H:function(t,r){return bt(t.getUTCHours(),r.length)},m:function(t,r){return bt(t.getUTCMinutes(),r.length)},s:function(t,r){return bt(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,n-3));return bt(i,r.length)}};const uo=$L;var Ni={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},IL={G:function(t,r,n){var o=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return n.ordinalNumber(i,{unit:"year"})}return uo.y(t,r)},Y:function(t,r,n,o){var i=S2(t,o),a=i>0?i:1-i;if(r==="YY"){var s=a%100;return bt(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):bt(a,r.length)},R:function(t,r){var n=w2(t);return bt(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return bt(n,r.length)},Q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(o);case"QQ":return bt(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,r,n){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(o);case"qq":return bt(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,r,n){var o=t.getUTCMonth();switch(r){case"M":case"MM":return uo.M(t,r);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(t,r,n){var o=t.getUTCMonth();switch(r){case"L":return String(o+1);case"LL":return bt(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(t,r,n,o){var i=PL(t,o);return r==="wo"?n.ordinalNumber(i,{unit:"week"}):bt(i,r.length)},I:function(t,r,n){var o=kL(t);return r==="Io"?n.ordinalNumber(o,{unit:"week"}):bt(o,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):uo.d(t,r)},D:function(t,r,n){var o=SL(t);return r==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):bt(o,r.length)},E:function(t,r,n){var o=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(t,r,n,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return bt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,n,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return bt(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,n){var o=t.getUTCDay(),i=o===0?7:o;switch(r){case"i":return String(i);case"ii":return bt(i,r.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(t,r,n){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,r,n){var o=t.getUTCHours(),i;switch(o===12?i=Ni.noon:o===0?i=Ni.midnight:i=o/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,r,n){var o=t.getUTCHours(),i;switch(o>=17?i=Ni.evening:o>=12?i=Ni.afternoon:o>=4?i=Ni.morning:i=Ni.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return uo.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):uo.H(t,r)},K:function(t,r,n){var o=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(o,{unit:"hour"}):bt(o,r.length)},k:function(t,r,n){var o=t.getUTCHours();return o===0&&(o=24),r==="ko"?n.ordinalNumber(o,{unit:"hour"}):bt(o,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):uo.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):uo.s(t,r)},S:function(t,r){return uo.S(t,r)},X:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return i1(a);case"XXXX":case"XX":return Zo(a);case"XXXXX":case"XXX":default:return Zo(a,":")}},x:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"x":return i1(a);case"xxxx":case"xx":return Zo(a);case"xxxxx":case"xxx":default:return Zo(a,":")}},O:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+o1(a,":");case"OOOO":default:return"GMT"+Zo(a,":")}},z:function(t,r,n,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+o1(a,":");case"zzzz":default:return"GMT"+Zo(a,":")}},t:function(t,r,n,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return bt(a,r.length)},T:function(t,r,n,o){var i=o._originalDate||t,a=i.getTime();return bt(a,r.length)}};function o1(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),i=n%60;if(i===0)return r+String(o);var a=t||"";return r+String(o)+a+bt(i,2)}function i1(e,t){if(e%60===0){var r=e>0?"-":"+";return r+bt(Math.abs(e)/60,2)}return Zo(e,t)}function Zo(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e),i=bt(Math.floor(o/60),2),a=bt(o%60,2);return n+i+r+a}const DL=IL;var a1=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},_2=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},BL=function(t,r){var n=t.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return a1(t,r);var a;switch(o){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",a1(o,r)).replace("{{time}}",_2(i,r))},OL={p:_2,P:BL};const LL=OL;var RL=["D","DD"],FL=["YY","YYYY"];function ML(e){return RL.indexOf(e)!==-1}function zL(e){return FL.indexOf(e)!==-1}function s1(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var NL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jL=/^'([^]*?)'?$/,WL=/''/g,UL=/[a-zA-Z]/;function Qd(e,t,r){var n,o,i,a,s,l,c,u,f,d,h,p,g,v,m,b,y,x;dt(2,arguments);var S=String(t),C=bl(),w=(n=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:C.locale)!==null&&n!==void 0?n:C2,k=Rn((i=(a=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(c=r.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&s!==void 0?s:C.firstWeekContainsDate)!==null&&a!==void 0?a:(f=C.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=Rn((h=(p=(g=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(m=r.locale)===null||m===void 0||(b=m.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:C.weekStartsOn)!==null&&p!==void 0?p:(y=C.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!w.localize)throw new RangeError("locale must contain localize property");if(!w.formatLong)throw new RangeError("locale must contain formatLong property");var T=Rt(e);if(!yL(T))throw new RangeError("Invalid time value");var I=vL(T),D=CL(T,I),B={firstWeekContainsDate:k,weekStartsOn:A,locale:w,_originalDate:T},j=S.match(HL).map(function(F){var z=F[0];if(z==="p"||z==="P"){var V=LL[z];return V(F,w.formatLong)}return F}).join("").match(NL).map(function(F){if(F==="''")return"'";var z=F[0];if(z==="'")return VL(F);var V=DL[z];if(V)return!(r!=null&&r.useAdditionalWeekYearTokens)&&zL(F)&&s1(F,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ML(F)&&s1(F,t,String(e)),V(D,F,w.localize,B);if(z.match(UL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return F}).join("");return j}function VL(e){var t=e.match(jL);return t?t[1].replace(WL,"'"):e}function E2(e){dt(1,arguments);var t=Rt(e),r=t.getDate();return r}function GL(e){dt(1,arguments);var t=Rt(e),r=t.getDay();return r}function kn(e){dt(1,arguments);var t=Rt(e),r=t.getMonth();return r}function ti(e){dt(1,arguments);var t=Rt(e),r=t.getTime();return r}function wo(e){return dt(1,arguments),Rt(e).getFullYear()}function qL(e,t,r){dt(2,arguments);var n=r1(e,r),o=r1(t,r);return n.getTime()===o.getTime()}function Gu(e,t){dt(2,arguments);var r=Rt(e),n=Rt(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}function YL(e,t){dt(2,arguments);var r=n1(e),n=n1(t);return r.getTime()===n.getTime()}function KL(e,t){dt(2,arguments);var r=Rt(e),n=Rt(t);return r.getFullYear()===n.getFullYear()}function XL(e){return dt(1,arguments),Gu(Date.now(),e)}function k2(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ze(Ln,null)||{},n=R(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:x2[e]});return{dateLocaleRef:R(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:gL}),localeRef:n}}function xl(e,t,r){if(!t)return;const n=ml(),o=ze(Ln,null),i=()=>{const a=r.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Ys,props:{bPrefix:a?`.${a}-`:void 0},ssr:n}),o!=null&&o.preflightStyleDisabled||b2.mount({id:"n-global",head:!0,anchorMetaName:Ys,ssr:n})};n?i():bn(i)}function tr(e,t,r,n){var o;r||pl("useThemeClass","cssVarsRef is not passed");const i=(o=ze(Ln,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=M(""),s=ml();let l;const c=`__${e}`,u=()=>{let f=c;const d=t?t.value:void 0,h=i==null?void 0:i.value;h&&(f+="-"+h),d&&(f+="-"+d);const{themeOverrides:p,builtinThemeOverrides:g}=n;p&&(f+="-"+Ws(JSON.stringify(p))),g&&(f+="-"+Ws(JSON.stringify(g))),a.value=f,l=()=>{const v=r.value;let m="";for(const b in v)m+=`${b}: ${v[b]};`;Y(`.${f}`,m).mount({id:f,ssr:s}),l=void 0}};return Or(()=>{u()}),{themeClass:a,onRender:()=>{l==null||l()}}}function on(e,t,r){if(!t)return;const n=ml(),o=R(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{Or(()=>{const{value:a}=r,s=`${a}${e}Rtl`;if(kT(s,n))return;const{value:l}=o;l&&l.style.mount({id:s,head:!0,anchorMetaName:Ys,props:{bPrefix:a?`.${a}-`:void 0},ssr:n})})};return n?i():bn(i),o}function no(e,t){return pe({name:pI(e),setup(){var r;const n=(r=ze(Ln,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var o;const i=(o=n==null?void 0:n.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const QL=pe({name:"ChevronLeft",render(){return $("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),ZL=pe({name:"ChevronRight",render(){return $("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),JL=no("close",$("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},$("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$("g",{fill:"currentColor","fill-rule":"nonzero"},$("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),yl=no("error",$("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Ca=no("info",$("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Cl=no("success",$("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),wl=no("warning",$("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$("g",{"fill-rule":"nonzero"},$("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),eR=no("rotateClockwise",$("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),$("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),tR=no("rotateClockwise",$("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),$("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),rR=no("zoomIn",$("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),$("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),nR=no("zoomOut",$("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),$("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),oR=pe({name:"ResizeSmall",render(){return $("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},$("g",{fill:"none"},$("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),Op=pe({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=Ha();return()=>$(_r,{name:"icon-switch-transition",appear:r.value},t)}}),Lp=pe({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function n(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function o(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function a(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:s,width:l,appear:c,mode:u}=e,f=s?Fk:_r,d={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:r,onLeave:n,onAfterLeave:o};return s||(d.mode=u),$(f,d,t)}}}),iR=ne("base-icon",`
height: 1em;
width: 1em;
line-height: 1em;
text-align: center;
display: inline-block;
position: relative;
fill: currentColor;
transform: translateZ(0);
`,[Y("svg",`
height: 1em;
width: 1em;
`)]),dr=pe({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){xl("-base-icon",iR,Lt(e,"clsPrefix"))},render(){return $("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),aR=ne("base-close",`
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
background-color: transparent;
color: var(--n-close-icon-color);
border-radius: var(--n-close-border-radius);
height: var(--n-close-size);
width: var(--n-close-size);
font-size: var(--n-close-icon-size);
outline: none;
border: none;
position: relative;
padding: 0;
`,[ue("absolute",`
height: var(--n-close-icon-size);
width: var(--n-close-icon-size);
`),Y("&::before",`
content: "";
position: absolute;
width: var(--n-close-size);
height: var(--n-close-size);
left: 50%;
top: 50%;
transform: translateY(-50%) translateX(-50%);
transition: inherit;
border-radius: inherit;
`),xr("disabled",[Y("&:hover",`
color: var(--n-close-icon-color-hover);
`),Y("&:hover::before",`
background-color: var(--n-close-color-hover);
`),Y("&:focus::before",`
background-color: var(--n-close-color-hover);
`),Y("&:active",`
color: var(--n-close-icon-color-pressed);
`),Y("&:active::before",`
background-color: var(--n-close-color-pressed);
`)]),ue("disabled",`
cursor: not-allowed;
color: var(--n-close-icon-color-disabled);
background-color: transparent;
`),ue("round",[Y("&::before",`
border-radius: 50%;
`)])]),Wa=pe({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return xl("-base-close",aR,Lt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r,absolute:n,round:o,isButtonTag:i}=e;return $(i?"button":"div",{type:i?"button":void 0,tabindex:r||!e.focusable?-1:0,"aria-disabled":r,"aria-label":"close",role:i?void 0:"button",disabled:r,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,r&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},$(dr,{clsPrefix:t},{default:()=>$(JL,null)}))}}}),{cubicBezierEaseInOut:sR}=Ro;function lu({originalTransform:e="",left:t=0,top:r=0,transition:n=`all .3s ${sR} !important`}={}){return[Y("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),Y("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),Y("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:n})]}const lR=Y([Y("@keyframes rotator",`
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}`),ne("base-loading",`
position: relative;
line-height: 0;
width: 1em;
height: 1em;
`,[le("transition-wrapper",`
position: absolute;
width: 100%;
height: 100%;
`,[lu()]),le("placeholder",`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[lu({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),le("container",`
animation: rotator 3s linear infinite both;
`,[le("icon",`
height: 1em;
width: 1em;
`)])])]),Zd="1.6s",cR={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Rp=pe({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},cR),setup(e){xl("-base-loading",lR,Lt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:n,scale:o}=this,i=t/o;return $("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},$(Op,null,{default:()=>this.show?$("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},$("div",{class:`${e}-base-loading__container`},$("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},$("g",null,$("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Zd,fill:"freeze",repeatCount:"indefinite"}),$("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},$("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Zd,fill:"freeze",repeatCount:"indefinite"}),$("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Zd,fill:"freeze",repeatCount:"indefinite"})))))):$("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),ke={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},uR=Qn(ke.neutralBase),T2=Qn(ke.neutralInvertBase),dR="rgba("+T2.slice(0,3).join(", ")+", ";function ct(e){return dR+String(e)+")"}function fR(e){const t=Array.from(T2);return t[3]=Number(e),Pe(uR,t)}const hR=Object.assign(Object.assign({name:"common"},Ro),{baseColor:ke.neutralBase,primaryColor:ke.primaryDefault,primaryColorHover:ke.primaryHover,primaryColorPressed:ke.primaryActive,primaryColorSuppl:ke.primarySuppl,infoColor:ke.infoDefault,infoColorHover:ke.infoHover,infoColorPressed:ke.infoActive,infoColorSuppl:ke.infoSuppl,successColor:ke.successDefault,successColorHover:ke.successHover,successColorPressed:ke.successActive,successColorSuppl:ke.successSuppl,warningColor:ke.warningDefault,warningColorHover:ke.warningHover,warningColorPressed:ke.warningActive,warningColorSuppl:ke.warningSuppl,errorColor:ke.errorDefault,errorColorHover:ke.errorHover,errorColorPressed:ke.errorActive,errorColorSuppl:ke.errorSuppl,textColorBase:ke.neutralTextBase,textColor1:ct(ke.alpha1),textColor2:ct(ke.alpha2),textColor3:ct(ke.alpha3),textColorDisabled:ct(ke.alpha4),placeholderColor:ct(ke.alpha4),placeholderColorDisabled:ct(ke.alpha5),iconColor:ct(ke.alpha4),iconColorDisabled:ct(ke.alpha5),iconColorHover:ct(Number(ke.alpha4)*1.25),iconColorPressed:ct(Number(ke.alpha4)*.8),opacity1:ke.alpha1,opacity2:ke.alpha2,opacity3:ke.alpha3,opacity4:ke.alpha4,opacity5:ke.alpha5,dividerColor:ct(ke.alphaDivider),borderColor:ct(ke.alphaBorder),closeIconColorHover:ct(Number(ke.alphaClose)),closeIconColor:ct(Number(ke.alphaClose)),closeIconColorPressed:ct(Number(ke.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:ct(ke.alpha4),clearColorHover:qt(ct(ke.alpha4),{alpha:1.25}),clearColorPressed:qt(ct(ke.alpha4),{alpha:.8}),scrollbarColor:ct(ke.alphaScrollbar),scrollbarColorHover:ct(ke.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ct(ke.alphaProgressRail),railColor:ct(ke.alphaRail),popoverColor:ke.neutralPopover,tableColor:ke.neutralCard,cardColor:ke.neutralCard,modalColor:ke.neutralModal,bodyColor:ke.neutralBody,tagColor:fR(ke.alphaTag),avatarColor:ct(ke.alphaAvatar),invertedColor:ke.neutralBase,inputColor:ct(ke.alphaInput),codeColor:ct(ke.alphaCode),tabColor:ct(ke.alphaTab),actionColor:ct(ke.alphaAction),tableHeaderColor:ct(ke.alphaAction),hoverColor:ct(ke.alphaPending),tableColorHover:ct(ke.alphaTablePending),tableColorStriped:ct(ke.alphaTableStriped),pressedColor:ct(ke.alphaPressed),opacityDisabled:ke.alphaDisabled,inputColorDisabled:ct(ke.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),xe=hR,Me={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},pR=Qn(Me.neutralBase),A2=Qn(Me.neutralInvertBase),gR="rgba("+A2.slice(0,3).join(", ")+", ";function l1(e){return gR+String(e)+")"}function gr(e){const t=Array.from(A2);return t[3]=Number(e),Pe(pR,t)}const mR=Object.assign(Object.assign({name:"common"},Ro),{baseColor:Me.neutralBase,primaryColor:Me.primaryDefault,primaryColorHover:Me.primaryHover,primaryColorPressed:Me.primaryActive,primaryColorSuppl:Me.primarySuppl,infoColor:Me.infoDefault,infoColorHover:Me.infoHover,infoColorPressed:Me.infoActive,infoColorSuppl:Me.infoSuppl,successColor:Me.successDefault,successColorHover:Me.successHover,successColorPressed:Me.successActive,successColorSuppl:Me.successSuppl,warningColor:Me.warningDefault,warningColorHover:Me.warningHover,warningColorPressed:Me.warningActive,warningColorSuppl:Me.warningSuppl,errorColor:Me.errorDefault,errorColorHover:Me.errorHover,errorColorPressed:Me.errorActive,errorColorSuppl:Me.errorSuppl,textColorBase:Me.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:gr(Me.alpha4),placeholderColor:gr(Me.alpha4),placeholderColorDisabled:gr(Me.alpha5),iconColor:gr(Me.alpha4),iconColorHover:qt(gr(Me.alpha4),{lightness:.75}),iconColorPressed:qt(gr(Me.alpha4),{lightness:.9}),iconColorDisabled:gr(Me.alpha5),opacity1:Me.alpha1,opacity2:Me.alpha2,opacity3:Me.alpha3,opacity4:Me.alpha4,opacity5:Me.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:gr(Number(Me.alphaClose)),closeIconColorHover:gr(Number(Me.alphaClose)),closeIconColorPressed:gr(Number(Me.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:gr(Me.alpha4),clearColorHover:qt(gr(Me.alpha4),{lightness:.75}),clearColorPressed:qt(gr(Me.alpha4),{lightness:.9}),scrollbarColor:l1(Me.alphaScrollbar),scrollbarColorHover:l1(Me.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:gr(Me.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Me.neutralPopover,tableColor:Me.neutralCard,cardColor:Me.neutralCard,modalColor:Me.neutralModal,bodyColor:Me.neutralBody,tagColor:"#eee",avatarColor:gr(Me.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:gr(Me.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Me.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),be=mR,vR={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},P2=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},vR),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:n})},bR={name:"Empty",common:be,self:P2},oo=bR,xR={name:"Empty",common:xe,self:P2},ki=xR,$2=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},yR={name:"Scrollbar",common:be,self:$2},kr=yR,CR={name:"Scrollbar",common:xe,self:$2},Lr=CR,{cubicBezierEaseInOut:c1}=Ro;function wa({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:n=c1,leaveCubicBezier:o=c1}={}){return[Y(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),Y(`&.${e}-transition-leave-active`,{transition:`all ${r} ${o}!important`}),Y(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),Y(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const wR=ne("scrollbar",`
overflow: hidden;
position: relative;
z-index: auto;
height: 100%;
width: 100%;
`,[Y(">",[ne("scrollbar-container",`
width: 100%;
overflow: scroll;
height: 100%;
min-height: inherit;
max-height: inherit;
scrollbar-width: none;
`,[Y("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
width: 0;
height: 0;
display: none;
`),Y(">",[ne("scrollbar-content",`
box-sizing: border-box;
min-width: 100%;
`)])])]),Y(">, +",[ne("scrollbar-rail",`
position: absolute;
pointer-events: none;
user-select: none;
-webkit-user-select: none;
`,[ue("horizontal",`
left: 2px;
right: 2px;
bottom: 4px;
height: var(--n-scrollbar-height);
`,[Y(">",[le("scrollbar",`
height: var(--n-scrollbar-height);
border-radius: var(--n-scrollbar-border-radius);
right: 0;
`)])]),ue("vertical",`
right: 4px;
top: 2px;
bottom: 2px;
width: var(--n-scrollbar-width);
`,[Y(">",[le("scrollbar",`
width: var(--n-scrollbar-width);
border-radius: var(--n-scrollbar-border-radius);
bottom: 0;
`)])]),ue("disabled",[Y(">",[le("scrollbar","pointer-events: none;")])]),Y(">",[le("scrollbar",`
z-index: 1;
position: absolute;
cursor: pointer;
pointer-events: all;
background-color: var(--n-scrollbar-color);
transition: background-color .2s var(--n-scrollbar-bezier);
`,[wa(),Y("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),SR=Object.assign(Object.assign({},We.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),I2=pe({name:"Scrollbar",props:SR,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:n}=gt(e),o=on("Scrollbar",n,t),i=M(null),a=M(null),s=M(null),l=M(null),c=M(null),u=M(null),f=M(null),d=M(null),h=M(null),p=M(null),g=M(null),v=M(0),m=M(0),b=M(!1),y=M(!1);let x=!1,S=!1,C,w,k=0,A=0,T=0,I=0;const D=YT(),B=R(()=>{const{value:de}=d,{value:Ee}=u,{value:Ue}=p;return de===null||Ee===null||Ue===null?0:Math.min(de,Ue*de/Ee+e.size*1.5)}),j=R(()=>`${B.value}px`),F=R(()=>{const{value:de}=h,{value:Ee}=f,{value:Ue}=g;return de===null||Ee===null||Ue===null?0:Ue*de/Ee+e.size*1.5}),z=R(()=>`${F.value}px`),V=R(()=>{const{value:de}=d,{value:Ee}=v,{value:Ue}=u,{value:Ct}=p;if(de===null||Ue===null||Ct===null)return 0;{const jt=Ue-de;return jt?Ee/jt*(Ct-B.value):0}}),oe=R(()=>`${V.value}px`),fe=R(()=>{const{value:de}=h,{value:Ee}=m,{value:Ue}=f,{value:Ct}=g;if(de===null||Ue===null||Ct===null)return 0;{const jt=Ue-de;return jt?Ee/jt*(Ct-F.value):0}}),ge=R(()=>`${fe.value}px`),U=R(()=>{const{value:de}=d,{value:Ee}=u;return de!==null&&Ee!==null&&Ee>de}),X=R(()=>{const{value:de}=h,{value:Ee}=f;return de!==null&&Ee!==null&&Ee>de}),ae=R(()=>{const{trigger:de}=e;return de==="none"||b.value}),Z=R(()=>{const{trigger:de}=e;return de==="none"||y.value}),Be=R(()=>{const{container:de}=e;return de?de():a.value}),ye=R(()=>{const{content:de}=e;return de?de():s.value}),q=Iw(()=>{e.container||ve({top:v.value,left:m.value})}),te=()=>{q.isDeactivated||Te()},ie=de=>{if(q.isDeactivated)return;const{onResize:Ee}=e;Ee&&Ee(de),Te()},ve=(de,Ee)=>{if(!e.scrollable)return;if(typeof de=="number"){$e(de,Ee??0,0,!1,"auto");return}const{left:Ue,top:Ct,index:jt,elSize:pr,position:Ur,behavior:Ft,el:ln,debounce:Wo=!0}=de;(Ue!==void 0||Ct!==void 0)&&$e(Ue??0,Ct??0,0,!1,Ft),ln!==void 0?$e(0,ln.offsetTop,ln.offsetHeight,Wo,Ft):jt!==void 0&&pr!==void 0?$e(0,jt*pr,pr,Wo,Ft):Ur==="bottom"?$e(0,Number.MAX_SAFE_INTEGER,0,!1,Ft):Ur==="top"&&$e(0,0,0,!1,Ft)},Le=(de,Ee)=>{if(!e.scrollable)return;const{value:Ue}=Be;Ue&&(typeof de=="object"?Ue.scrollBy(de):Ue.scrollBy(de,Ee||0))};function $e(de,Ee,Ue,Ct,jt){const{value:pr}=Be;if(pr){if(Ct){const{scrollTop:Ur,offsetHeight:Ft}=pr;if(Ee>Ur){Ee+Ue<=Ur+Ft||pr.scrollTo({left:de,top:Ee+Ue-Ft,behavior:jt});return}}pr.scrollTo({left:de,top:Ee,behavior:jt})}}function _(){G(),K(),Te()}function E(){P()}function P(){O(),L()}function O(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{y.value=!1},e.duration)}function L(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{b.value=!1},e.duration)}function G(){C!==void 0&&window.clearTimeout(C),b.value=!0}function K(){w!==void 0&&window.clearTimeout(w),y.value=!0}function H(de){const{onScroll:Ee}=e;Ee&&Ee(de),ee()}function ee(){const{value:de}=Be;de&&(v.value=de.scrollTop,m.value=de.scrollLeft*(o!=null&&o.value?-1:1))}function Q(){const{value:de}=ye;de&&(u.value=de.offsetHeight,f.value=de.offsetWidth);const{value:Ee}=Be;Ee&&(d.value=Ee.offsetHeight,h.value=Ee.offsetWidth);const{value:Ue}=c,{value:Ct}=l;Ue&&(g.value=Ue.offsetWidth),Ct&&(p.value=Ct.offsetHeight)}function Ce(){const{value:de}=Be;de&&(v.value=de.scrollTop,m.value=de.scrollLeft*(o!=null&&o.value?-1:1),d.value=de.offsetHeight,h.value=de.offsetWidth,u.value=de.scrollHeight,f.value=de.scrollWidth);const{value:Ee}=c,{value:Ue}=l;Ee&&(g.value=Ee.offsetWidth),Ue&&(p.value=Ue.offsetHeight)}function Te(){e.scrollable&&(e.useUnifiedContainer?Ce():(Q(),ee()))}function Se(de){var Ee;return!(!((Ee=i.value)===null||Ee===void 0)&&Ee.contains(Ns(de)))}function W(de){de.preventDefault(),de.stopPropagation(),S=!0,Xt("mousemove",window,J,!0),Xt("mouseup",window,Oe,!0),A=m.value,T=o!=null&&o.value?window.innerWidth-de.clientX:de.clientX}function J(de){if(!S)return;C!==void 0&&window.clearTimeout(C),w!==void 0&&window.clearTimeout(w);const{value:Ee}=h,{value:Ue}=f,{value:Ct}=F;if(Ee===null||Ue===null)return;const pr=(o!=null&&o.value?window.innerWidth-de.clientX-T:de.clientX-T)*(Ue-Ee)/(Ee-Ct),Ur=Ue-Ee;let Ft=A+pr;Ft=Math.min(Ur,Ft),Ft=Math.max(Ft,0);const{value:ln}=Be;if(ln){ln.scrollLeft=Ft*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:Wo}=e;Wo&&Wo(Ft)}}function Oe(de){de.preventDefault(),de.stopPropagation(),At("mousemove",window,J,!0),At("mouseup",window,Oe,!0),S=!1,Te(),Se(de)&&P()}function He(de){de.preventDefault(),de.stopPropagation(),x=!0,Xt("mousemove",window,st,!0),Xt("mouseup",window,yt,!0),k=v.value,I=de.clientY}function st(de){if(!x)return;C!==void 0&&window.clearTimeout(C),w!==void 0&&window.clearTimeout(w);const{value:Ee}=d,{value:Ue}=u,{value:Ct}=B;if(Ee===null||Ue===null)return;const pr=(de.clientY-I)*(Ue-Ee)/(Ee-Ct),Ur=Ue-Ee;let Ft=k+pr;Ft=Math.min(Ur,Ft),Ft=Math.max(Ft,0);const{value:ln}=Be;ln&&(ln.scrollTop=Ft)}function yt(de){de.preventDefault(),de.stopPropagation(),At("mousemove",window,st,!0),At("mouseup",window,yt,!0),x=!1,Te(),Se(de)&&P()}Or(()=>{const{value:de}=X,{value:Ee}=U,{value:Ue}=t,{value:Ct}=c,{value:jt}=l;Ct&&(de?Ct.classList.remove(`${Ue}-scrollbar-rail--disabled`):Ct.classList.add(`${Ue}-scrollbar-rail--disabled`)),jt&&(Ee?jt.classList.remove(`${Ue}-scrollbar-rail--disabled`):jt.classList.add(`${Ue}-scrollbar-rail--disabled`))}),_t(()=>{e.container||Te()}),Ht(()=>{C!==void 0&&window.clearTimeout(C),w!==void 0&&window.clearTimeout(w),At("mousemove",window,st,!0),At("mouseup",window,yt,!0)});const Gt=We("Scrollbar","-scrollbar",wR,kr,e,t),Nn=R(()=>{const{common:{cubicBezierEaseInOut:de,scrollbarBorderRadius:Ee,scrollbarHeight:Ue,scrollbarWidth:Ct},self:{color:jt,colorHover:pr}}=Gt.value;return{"--n-scrollbar-bezier":de,"--n-scrollbar-color":jt,"--n-scrollbar-color-hover":pr,"--n-scrollbar-border-radius":Ee,"--n-scrollbar-width":Ct,"--n-scrollbar-height":Ue}}),hr=r?tr("scrollbar",void 0,Nn,e):void 0;return Object.assign(Object.assign({},{scrollTo:ve,scrollBy:Le,sync:Te,syncUnifiedContainer:Ce,handleMouseEnterWrapper:_,handleMouseLeaveWrapper:E}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:U,needXBar:X,yBarSizePx:j,xBarSizePx:z,yBarTopPx:oe,xBarLeftPx:ge,isShowXBar:ae,isShowYBar:Z,isIos:D,handleScroll:H,handleContentResize:te,handleContainerResize:ie,handleYScrollMouseDown:He,handleXScrollMouseDown:W,cssVars:r?void 0:Nn,themeClass:hr==null?void 0:hr.themeClass,onRender:hr==null?void 0:hr.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:n,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=(u,f)=>$("div",{ref:"yRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--vertical`,u],"data-scrollbar-rail":!0,style:[f||"",this.verticalRailStyle],"aria-hidden":!0},$(a?jm:_r,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?$("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var u,f;return(u=this.onRender)===null||u===void 0||u.call(this),$("div",On(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass,o&&`${r}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):$("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},$(Jc,{onResize:this.handleContentResize},{default:()=>$("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&$("div",{ref:"xRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},$(a?jm:_r,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?$("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?l():$(Jc,{onResize:this.handleContainerResize},{default:l});return i?$(ot,null,c,s(this.themeClass,this.cssVars)):c}}),qu=I2,_R=I2,ER={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},D2=e=>{const{borderRadius:t,popoverColor:r,textColor3:n,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:h,fontSizeHuge:p,heightSmall:g,heightMedium:v,heightLarge:m,heightHuge:b}=e;return Object.assign(Object.assign({},ER),{optionFontSizeSmall:f,optionFontSizeMedium:d,optionFontSizeLarge:h,optionFontSizeHuge:p,optionHeightSmall:g,optionHeightMedium:v,optionHeightLarge:m,optionHeightHuge:b,borderRadius:t,color:r,groupHeaderTextColor:n,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:l})},kR={name:"InternalSelectMenu",common:be,peers:{Scrollbar:kr,Empty:oo},self:D2},Sl=kR,TR={name:"InternalSelectMenu",common:xe,peers:{Scrollbar:Lr,Empty:ki},self:D2},_l=TR,{cubicBezierEaseIn:u1,cubicBezierEaseOut:d1}=Ro;function B2({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:n="",originalTransition:o=""}={}){return[Y("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${u1}, transform ${t} ${u1} ${o&&","+o}`}),Y("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${d1}, transform ${t} ${d1} ${o&&","+o}`}),Y("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${r})`}),Y("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const AR=ne("base-wave",`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: inherit;
`),PR=pe({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){xl("-base-wave",AR,Lt(e,"clsPrefix"));const t=M(null),r=M(!1);let n=null;return Ht(()=>{n!==null&&window.clearTimeout(n)}),{active:r,selfRef:t,play(){n!==null&&(window.clearTimeout(n),r.value=!1,n=null),Qt(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,r.value=!0,n=window.setTimeout(()=>{r.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return $("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),$R={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},O2=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},$R),{fontSize:i,borderRadius:o,color:r,dividerColor:a,textColor:n,boxShadow:t})},IR={name:"Popover",common:be,self:O2},Fo=IR,DR={name:"Popover",common:xe,self:O2},Ti=DR,Jd={top:"bottom",bottom:"top",left:"right",right:"left"},rr="var(--n-arrow-height) * 1.414",BR=Y([ne("popover",`
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
position: relative;
font-size: var(--n-font-size);
color: var(--n-text-color);
box-shadow: var(--n-box-shadow);
word-break: break-word;
`,[Y(">",[ne("scrollbar",`
height: inherit;
max-height: inherit;
`)]),xr("raw",`
background-color: var(--n-color);
border-radius: var(--n-border-radius);
`,[xr("scrollable",[xr("show-header-or-footer","padding: var(--n-padding);")])]),le("header",`
padding: var(--n-padding);
border-bottom: 1px solid var(--n-divider-color);
transition: border-color .3s var(--n-bezier);
`),le("footer",`
padding: var(--n-padding);
border-top: 1px solid var(--n-divider-color);
transition: border-color .3s var(--n-bezier);
`),ue("scrollable, show-header-or-footer",[le("content",`
padding: var(--n-padding);
`)])]),ne("popover-shared",`
transform-origin: inherit;
`,[ne("popover-arrow-wrapper",`
position: absolute;
overflow: hidden;
pointer-events: none;
`,[ne("popover-arrow",`
transition: background-color .3s var(--n-bezier);
position: absolute;
display: block;
width: calc(${rr});
height: calc(${rr});
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
transform: rotate(45deg);
background-color: var(--n-color);
pointer-events: all;
`)]),Y("&.popover-transition-enter-from, &.popover-transition-leave-to",`
opacity: 0;
transform: scale(.85);
`),Y("&.popover-transition-enter-to, &.popover-transition-leave-from",`
transform: scale(1);
opacity: 1;
`),Y("&.popover-transition-enter-active",`
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .15s var(--n-bezier-ease-out),
transform .15s var(--n-bezier-ease-out);
`),Y("&.popover-transition-leave-active",`
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .15s var(--n-bezier-ease-in),
transform .15s var(--n-bezier-ease-in);
`)]),Gr("top-start",`
top: calc(${rr} / -2);
left: calc(${Hn("top-start")} - var(--v-offset-left));
`),Gr("top",`
top: calc(${rr} / -2);
transform: translateX(calc(${rr} / -2)) rotate(45deg);
left: 50%;
`),Gr("top-end",`
top: calc(${rr} / -2);
right: calc(${Hn("top-end")} + var(--v-offset-left));
`),Gr("bottom-start",`
bottom: calc(${rr} / -2);
left: calc(${Hn("bottom-start")} - var(--v-offset-left));
`),Gr("bottom",`
bottom: calc(${rr} / -2);
transform: translateX(calc(${rr} / -2)) rotate(45deg);
left: 50%;
`),Gr("bottom-end",`
bottom: calc(${rr} / -2);
right: calc(${Hn("bottom-end")} + var(--v-offset-left));
`),Gr("left-start",`
left: calc(${rr} / -2);
top: calc(${Hn("left-start")} - var(--v-offset-top));
`),Gr("left",`
left: calc(${rr} / -2);
transform: translateY(calc(${rr} / -2)) rotate(45deg);
top: 50%;
`),Gr("left-end",`
left: calc(${rr} / -2);
bottom: calc(${Hn("left-end")} + var(--v-offset-top));
`),Gr("right-start",`
right: calc(${rr} / -2);
top: calc(${Hn("right-start")} - var(--v-offset-top));
`),Gr("right",`
right: calc(${rr} / -2);
transform: translateY(calc(${rr} / -2)) rotate(45deg);
top: 50%;
`),Gr("right-end",`
right: calc(${rr} / -2);
bottom: calc(${Hn("right-end")} + var(--v-offset-top));
`),...OB({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),n=r?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${n}, 0px)`} - ${rr}) / 2)`,l=Hn(o);return Y(`[v-placement="${o}"] >`,[ne("popover-shared",[ue("center-arrow",[ne("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Hn(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Gr(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Y(`[v-placement="${e}"] >`,[ne("popover-shared",`
margin-${Jd[r]}: var(--n-space);
`,[ue("show-arrow",`
margin-${Jd[r]}: var(--n-space-arrow);
`),ue("overlap",`
margin: 0;
`),IT("popover-arrow-wrapper",`
right: 0;
left: 0;
top: 0;
bottom: 0;
${r}: 100%;
${Jd[r]}: auto;
${n}
`,[ne("popover-arrow",t)])])])}const L2=Object.assign(Object.assign({},We.props),{to:xa.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),OR=({arrowClass:e,arrowStyle:t,arrowWrapperClass:r,arrowWrapperStyle:n,clsPrefix:o})=>$("div",{key:"__popover-arrow__",style:n,class:[`${o}-popover-arrow-wrapper`,r]},$("div",{class:[`${o}-popover-arrow`,e],style:t})),LR=pe({name:"PopoverBody",inheritAttrs:!1,props:L2,setup(e,{slots:t,attrs:r}){const{namespaceRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:i}=gt(e),a=We("Popover","-popover",BR,Fo,e,o),s=M(null),l=ze("NPopover"),c=M(null),u=M(e.show),f=M(!1);Or(()=>{const{show:w}=e;w&&!DT()&&!e.internalDeactivateImmediately&&(f.value=!0)});const d=R(()=>{const{trigger:w,onClickoutside:k}=e,A=[],{positionManuallyRef:{value:T}}=l;return T||(w==="click"&&!k&&A.push([L0,x,void 0,{capture:!0}]),w==="hover"&&A.push([sA,y])),k&&A.push([L0,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&A.push([gi,e.show]),A}),h=R(()=>{const w=e.width==="trigger"?void 0:Cc(e.width),k=[];w&&k.push({width:w});const{maxWidth:A,minWidth:T}=e;return A&&k.push({maxWidth:Cc(A)}),T&&k.push({maxWidth:Cc(T)}),i||k.push(p.value),k}),p=R(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:A},self:{space:T,spaceArrow:I,padding:D,fontSize:B,textColor:j,dividerColor:F,color:z,boxShadow:V,borderRadius:oe,arrowHeight:fe,arrowOffset:ge,arrowOffsetVertical:U}}=a.value;return{"--n-box-shadow":V,"--n-bezier":w,"--n-bezier-ease-in":k,"--n-bezier-ease-out":A,"--n-font-size":B,"--n-text-color":j,"--n-color":z,"--n-divider-color":F,"--n-border-radius":oe,"--n-arrow-height":fe,"--n-arrow-offset":ge,"--n-arrow-offset-vertical":U,"--n-padding":D,"--n-space":T,"--n-space-arrow":I}}),g=i?tr("popover",void 0,p,e):void 0;l.setBodyInstance({syncPosition:v}),Ht(()=>{l.setBodyInstance(null)}),Je(Lt(e,"show"),w=>{e.animated||(w?u.value=!0:u.value=!1)});function v(){var w;(w=s.value)===null||w===void 0||w.syncPosition()}function m(w){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(w)}function b(w){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(w)}function y(w){e.trigger==="hover"&&!S().contains(Ns(w))&&l.handleMouseMoveOutside(w)}function x(w){(e.trigger==="click"&&!S().contains(Ns(w))||e.onClickoutside)&&l.handleClickOutside(w)}function S(){return l.getTriggerElement()}ft(vp,c),ft(mp,null),ft(gp,null);function C(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let k;const A=l.internalRenderBodyRef.value,{value:T}=o;if(A)k=A([`${T}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],c,h.value,m,b);else{const{value:I}=l.extraClassRef,{internalTrapFocus:D}=e,B=!I0(t.header)||!I0(t.footer),j=()=>{var F,z;const V=B?$(ot,null,nr(t.header,ge=>ge?$("div",{class:[`${T}-popover__header`,e.headerClass],style:e.headerStyle},ge):null),nr(t.default,ge=>ge?$("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t):null),nr(t.footer,ge=>ge?$("div",{class:[`${T}-popover__footer`,e.footerClass],style:e.footerStyle},ge):null)):e.scrollable?(F=t.default)===null||F===void 0?void 0:F.call(t):$("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t),oe=e.scrollable?$(_R,{contentClass:B?void 0:`${T}-popover__content ${(z=e.contentClass)!==null&&z!==void 0?z:""}`,contentStyle:B?void 0:e.contentStyle},{default:()=>V}):V,fe=e.showArrow?OR({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:T}):null;return[oe,fe]};k=$("div",On({class:[`${T}-popover`,`${T}-popover-shared`,g==null?void 0:g.themeClass.value,I.map(F=>`${T}-${F}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:B,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:h.value,onKeydown:l.handleKeydown,onMouseenter:m,onMouseleave:b},r),D?$($w,{active:e.show,autoFocus:!0},{default:j}):j())}return lr(k,d.value)}return{displayed:f,namespace:n,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:xa(e),followerEnabled:u,renderContentNode:C}},render(){return $(SA,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===xa.tdkey},{default:()=>this.animated?$(_r,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),RR=Object.keys(L2),FR={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function MR(e,t,r){FR[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[n],i=r[n];o?e.props[n]=(...a)=>{o(...a),i(...a)}:e.props[n]=i})}const R2={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:xa.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},zR=Object.assign(Object.assign(Object.assign({},We.props),R2),{internalOnAfterLeave:Function,internalRenderBody:Function}),NR=pe({name:"Popover",inheritAttrs:!1,props:zR,__popover__:!0,setup(e){const t=Ha(),r=M(null),n=R(()=>e.show),o=M(e.defaultShow),i=Nu(n,o),a=Dr(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:F}=e;return!!(F!=null&&F())},l=()=>s()?!1:i.value,c=pw(e,["arrow","showArrow"]),u=R(()=>e.overlap?!1:c.value);let f=null;const d=M(null),h=M(null),p=Dr(()=>e.x!==void 0&&e.y!==void 0);function g(F){const{"onUpdate:show":z,onUpdateShow:V,onShow:oe,onHide:fe}=e;o.value=F,z&&ar(z,F),V&&ar(V,F),F&&oe&&ar(oe,!0),F&&fe&&ar(fe,!1)}function v(){f&&f.syncPosition()}function m(){const{value:F}=d;F&&(window.clearTimeout(F),d.value=null)}function b(){const{value:F}=h;F&&(window.clearTimeout(F),h.value=null)}function y(){const F=s();if(e.trigger==="focus"&&!F){if(l())return;g(!0)}}function x(){const F=s();if(e.trigger==="focus"&&!F){if(!l())return;g(!1)}}function S(){const F=s();if(e.trigger==="hover"&&!F){if(b(),d.value!==null||l())return;const z=()=>{g(!0),d.value=null},{delay:V}=e;V===0?z():d.value=window.setTimeout(z,V)}}function C(){const F=s();if(e.trigger==="hover"&&!F){if(m(),h.value!==null||!l())return;const z=()=>{g(!1),h.value=null},{duration:V}=e;V===0?z():h.value=window.setTimeout(z,V)}}function w(){C()}function k(F){var z;l()&&(e.trigger==="click"&&(m(),b(),g(!1)),(z=e.onClickoutside)===null||z===void 0||z.call(e,F))}function A(){if(e.trigger==="click"&&!s()){m(),b();const F=!l();g(F)}}function T(F){e.internalTrapFocus&&F.key==="Escape"&&(m(),b(),g(!1))}function I(F){o.value=F}function D(){var F;return(F=r.value)===null||F===void 0?void 0:F.targetRef}function B(F){f=F}return ft("NPopover",{getTriggerElement:D,handleKeydown:T,handleMouseEnter:S,handleMouseLeave:C,handleClickOutside:k,handleMouseMoveOutside:w,setBodyInstance:B,positionManuallyRef:p,isMountedRef:t,zIndexRef:Lt(e,"zIndex"),extraClassRef:Lt(e,"internalExtraClass"),internalRenderBodyRef:Lt(e,"internalRenderBody")}),Or(()=>{i.value&&s()&&g(!1)}),{binderInstRef:r,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:u,getMergedShow:l,setShow:I,handleClick:A,handleMouseEnter:S,handleMouseLeave:C,handleFocus:y,handleBlur:x,syncPosition:v}},render(){var e;const{positionManually:t,$slots:r}=this;let n,o=!1;if(!t&&(r.activator?n=$0(r,"activator"):n=$0(r,"trigger"),n)){n=tn(n),n=n.type===Ma?$("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)o=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(u=>{u.onBlur(c)})},onFocus:c=>{s.forEach(u=>{u.onFocus(c)})},onClick:c=>{s.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{s.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{s.forEach(u=>{u.onMouseleave(c)})}};MR(n,a?"nested":t?"manual":this.trigger,l)}}return $(oA,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?lr($("div",{style:{position:"fixed",inset:0}}),[[Hu,{enabled:i,zIndex:this.zIndex}]]):null,t?null:$(iA,null,{default:()=>n}),$(LR,ma(this.$props,RR,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),F2={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},HR={name:"Tag",common:xe,self(e){const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,tagColor:f,opacityDisabled:d,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:m,borderRadiusSmall:b,fontSizeMini:y,fontSizeTiny:x,fontSizeSmall:S,fontSizeMedium:C,heightMini:w,heightTiny:k,heightSmall:A,heightMedium:T,buttonColor2Hover:I,buttonColor2Pressed:D,fontWeightStrong:B}=e;return Object.assign(Object.assign({},F2),{closeBorderRadius:b,heightTiny:w,heightSmall:k,heightMedium:A,heightLarge:T,borderRadius:b,opacityDisabled:d,fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,fontWeightStrong:B,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:D,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:m,borderPrimary:`1px solid ${se(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:se(o,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:qt(o,{lightness:.7}),closeIconColorHoverPrimary:qt(o,{lightness:.7}),closeIconColorPressedPrimary:qt(o,{lightness:.7}),closeColorHoverPrimary:se(o,{alpha:.16}),closeColorPressedPrimary:se(o,{alpha:.12}),borderInfo:`1px solid ${se(i,{alpha:.3})}`,textColorInfo:i,colorInfo:se(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:qt(i,{alpha:.7}),closeIconColorHoverInfo:qt(i,{alpha:.7}),closeIconColorPressedInfo:qt(i,{alpha:.7}),closeColorHoverInfo:se(i,{alpha:.16}),closeColorPressedInfo:se(i,{alpha:.12}),borderSuccess:`1px solid ${se(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:se(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:qt(a,{alpha:.7}),closeIconColorHoverSuccess:qt(a,{alpha:.7}),closeIconColorPressedSuccess:qt(a,{alpha:.7}),closeColorHoverSuccess:se(a,{alpha:.16}),closeColorPressedSuccess:se(a,{alpha:.12}),borderWarning:`1px solid ${se(s,{alpha:.3})}`,textColorWarning:s,colorWarning:se(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:qt(s,{alpha:.7}),closeIconColorHoverWarning:qt(s,{alpha:.7}),closeIconColorPressedWarning:qt(s,{alpha:.7}),closeColorHoverWarning:se(s,{alpha:.16}),closeColorPressedWarning:se(s,{alpha:.11}),borderError:`1px solid ${se(l,{alpha:.3})}`,textColorError:l,colorError:se(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:qt(l,{alpha:.7}),closeIconColorHoverError:qt(l,{alpha:.7}),closeIconColorPressedError:qt(l,{alpha:.7}),closeColorHoverError:se(l,{alpha:.16}),closeColorPressedError:se(l,{alpha:.12})})}},M2=HR,jR=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,opacityDisabled:f,tagColor:d,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:v,fontSizeMini:m,fontSizeTiny:b,fontSizeSmall:y,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:w,heightMedium:k,closeColorHover:A,closeColorPressed:T,buttonColor2Hover:I,buttonColor2Pressed:D,fontWeightStrong:B}=e;return Object.assign(Object.assign({},F2),{closeBorderRadius:v,heightTiny:S,heightSmall:C,heightMedium:w,heightLarge:k,borderRadius:v,opacityDisabled:f,fontSizeTiny:m,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:x,fontWeightStrong:B,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:D,colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:A,closeColorPressed:T,borderPrimary:`1px solid ${se(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:se(o,{alpha:.12}),colorBorderedPrimary:se(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:se(o,{alpha:.12}),closeColorPressedPrimary:se(o,{alpha:.18}),borderInfo:`1px solid ${se(i,{alpha:.3})}`,textColorInfo:i,colorInfo:se(i,{alpha:.12}),colorBorderedInfo:se(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:se(i,{alpha:.12}),closeColorPressedInfo:se(i,{alpha:.18}),borderSuccess:`1px solid ${se(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:se(a,{alpha:.12}),colorBorderedSuccess:se(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:se(a,{alpha:.12}),closeColorPressedSuccess:se(a,{alpha:.18}),borderWarning:`1px solid ${se(s,{alpha:.35})}`,textColorWarning:s,colorWarning:se(s,{alpha:.15}),colorBorderedWarning:se(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:se(s,{alpha:.12}),closeColorPressedWarning:se(s,{alpha:.18}),borderError:`1px solid ${se(l,{alpha:.23})}`,textColorError:l,colorError:se(l,{alpha:.1}),colorBorderedError:se(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:se(l,{alpha:.12}),closeColorPressedError:se(l,{alpha:.18})})},WR={name:"Tag",common:be,self:jR},Fp=WR,UR={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},VR=ne("tag",`
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
white-space: nowrap;
position: relative;
box-sizing: border-box;
cursor: default;
display: inline-flex;
align-items: center;
flex-wrap: nowrap;
padding: var(--n-padding);
border-radius: var(--n-border-radius);
color: var(--n-text-color);
background-color: var(--n-color);
transition:
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
opacity .3s var(--n-bezier);
line-height: 1;
height: var(--n-height);
font-size: var(--n-font-size);
`,[ue("strong",`
font-weight: var(--n-font-weight-strong);
`),le("border",`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: inherit;
border: var(--n-border);
transition: border-color .3s var(--n-bezier);
`),le("icon",`
display: flex;
margin: 0 4px 0 0;
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
font-size: var(--n-avatar-size-override);
`),le("avatar",`
display: flex;
margin: 0 6px 0 0;
`),le("close",`
margin: var(--n-close-margin);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`),ue("round",`
padding: 0 calc(var(--n-height) / 3);
border-radius: calc(var(--n-height) / 2);
`,[le("icon",`
margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
`),le("avatar",`
margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
`),ue("closable",`
padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
`)]),ue("icon, avatar",[ue("round",`
padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
`)]),ue("disabled",`
cursor: not-allowed !important;
opacity: var(--n-opacity-disabled);
`),ue("checkable",`
cursor: pointer;
box-shadow: none;
color: var(--n-text-color-checkable);
background-color: var(--n-color-checkable);
`,[xr("disabled",[Y("&:hover","background-color: var(--n-color-hover-checkable);",[xr("checked","color: var(--n-text-color-hover-checkable);")]),Y("&:active","background-color: var(--n-color-pressed-checkable);",[xr("checked","color: var(--n-text-color-pressed-checkable);")])]),ue("checked",`
color: var(--n-text-color-checked);
background-color: var(--n-color-checked);
`,[xr("disabled",[Y("&:hover","background-color: var(--n-color-checked-hover);"),Y("&:active","background-color: var(--n-color-checked-pressed);")])])])]),GR=Object.assign(Object.assign(Object.assign({},We.props),UR),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),z2="n-tag",rce=pe({name:"Tag",props:GR,setup(e){const t=M(null),{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:i}=gt(e),a=We("Tag","-tag",VR,Fp,e,n);ft(z2,{roundRef:Lt(e,"round")});function s(h){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:g,onUpdateChecked:v,"onUpdate:checked":m}=e;v&&v(!p),m&&m(!p),g&&g(!p)}}function l(h){if(e.triggerClickOnClose||h.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&ar(p,h)}}const c={setTextContent(h){const{value:p}=t;p&&(p.textContent=h)}},u=on("Tag",i,n),f=R(()=>{const{type:h,size:p,color:{color:g,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:m},self:{padding:b,closeMargin:y,borderRadius:x,opacityDisabled:S,textColorCheckable:C,textColorHoverCheckable:w,textColorPressedCheckable:k,textColorChecked:A,colorCheckable:T,colorHoverCheckable:I,colorPressedCheckable:D,colorChecked:B,colorCheckedHover:j,colorCheckedPressed:F,closeBorderRadius:z,fontWeightStrong:V,[we("colorBordered",h)]:oe,[we("closeSize",p)]:fe,[we("closeIconSize",p)]:ge,[we("fontSize",p)]:U,[we("height",p)]:X,[we("color",h)]:ae,[we("textColor",h)]:Z,[we("border",h)]:Be,[we("closeIconColor",h)]:ye,[we("closeIconColorHover",h)]:q,[we("closeIconColorPressed",h)]:te,[we("closeColorHover",h)]:ie,[we("closeColorPressed",h)]:ve}}=a.value,Le=hl(y);return{"--n-font-weight-strong":V,"--n-avatar-size-override":`calc(${X} - 8px)`,"--n-bezier":m,"--n-border-radius":x,"--n-border":Be,"--n-close-icon-size":ge,"--n-close-color-pressed":ve,"--n-close-color-hover":ie,"--n-close-border-radius":z,"--n-close-icon-color":ye,"--n-close-icon-color-hover":q,"--n-close-icon-color-pressed":te,"--n-close-icon-color-disabled":ye,"--n-close-margin-top":Le.top,"--n-close-margin-right":Le.right,"--n-close-margin-bottom":Le.bottom,"--n-close-margin-left":Le.left,"--n-close-size":fe,"--n-color":g||(r.value?oe:ae),"--n-color-checkable":T,"--n-color-checked":B,"--n-color-checked-hover":j,"--n-color-checked-pressed":F,"--n-color-hover-checkable":I,"--n-color-pressed-checkable":D,"--n-font-size":U,"--n-height":X,"--n-opacity-disabled":S,"--n-padding":b,"--n-text-color":v||Z,"--n-text-color-checkable":C,"--n-text-color-checked":A,"--n-text-color-hover-checkable":w,"--n-text-color-pressed-checkable":k}}),d=o?tr("tag",R(()=>{let h="";const{type:p,size:g,color:{color:v,textColor:m}={}}=e;return h+=p[0],h+=g[0],v&&(h+=`a${js(v)}`),m&&(h+=`b${js(m)}`),r.value&&(h+="c"),h}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:n,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:l,cssVars:o?void 0:f,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:n,closable:o,color:{borderColor:i}={},round:a,onRender:s,$slots:l}=this;s==null||s();const c=nr(l.avatar,f=>f&&$("div",{class:`${r}-tag__avatar`},f)),u=nr(l.icon,f=>f&&$("div",{class:`${r}-tag__icon`},f));return $("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:n,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:a,[`${r}-tag--avatar`]:c,[`${r}-tag--icon`]:u,[`${r}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,$("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?$(Wa,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?$("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),N2={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},qR=e=>{const{borderRadius:t,textColor2:r,textColorDisabled:n,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:f,borderColor:d,iconColor:h,iconColorDisabled:p,clearColor:g,clearColorHover:v,clearColorPressed:m,placeholderColor:b,placeholderColorDisabled:y,fontSizeTiny:x,fontSizeSmall:S,fontSizeMedium:C,fontSizeLarge:w,heightTiny:k,heightSmall:A,heightMedium:T,heightLarge:I}=e;return Object.assign(Object.assign({},N2),{fontSizeTiny:x,fontSizeSmall:S,fontSizeMedium:C,fontSizeLarge:w,heightTiny:k,heightSmall:A,heightMedium:T,heightLarge:I,borderRadius:t,textColor:r,textColorDisabled:n,placeholderColor:b,placeholderColorDisabled:y,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${d}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${se(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${se(a,{alpha:.2})}`,caretColor:a,arrowColor:h,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${se(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${se(l,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${se(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${se(u,{alpha:.2})}`,colorActiveError:o,caretColorError:u,clearColor:g,clearColorHover:v,clearColorPressed:m})},YR={name:"InternalSelection",common:be,peers:{Popover:Fo},self:qR},Mp=YR,KR={name:"InternalSelection",common:xe,peers:{Popover:Ti},self(e){const{borderRadius:t,textColor2:r,textColorDisabled:n,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:f,iconColor:d,iconColorDisabled:h,clearColor:p,clearColorHover:g,clearColorPressed:v,placeholderColor:m,placeholderColorDisabled:b,fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,heightTiny:w,heightSmall:k,heightMedium:A,heightLarge:T}=e;return Object.assign(Object.assign({},N2),{fontSizeTiny:y,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,heightTiny:w,heightSmall:k,heightMedium:A,heightLarge:T,borderRadius:t,textColor:r,textColorDisabled:n,placeholderColor:m,placeholderColorDisabled:b,color:o,colorDisabled:i,colorActive:se(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${se(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${se(a,{alpha:.4})}`,caretColor:a,arrowColor:d,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${se(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${se(l,{alpha:.4})}`,colorActiveWarning:se(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${se(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${se(u,{alpha:.4})}`,colorActiveError:se(u,{alpha:.1}),caretColorError:u,clearColor:p,clearColorHover:g,clearColorPressed:v})}},zp=KR,{cubicBezierEaseInOut:fo}=Ro;function XR({duration:e=".2s",delay:t=".1s"}={}){return[Y("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),Y("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
opacity: 0!important;
margin-left: 0!important;
margin-right: 0!important;
`),Y("&.fade-in-width-expand-transition-leave-active",`
overflow: hidden;
transition:
opacity ${e} ${fo},
max-width ${e} ${fo} ${t},
margin-left ${e} ${fo} ${t},
margin-right ${e} ${fo} ${t};
`),Y("&.fade-in-width-expand-transition-enter-active",`
overflow: hidden;
transition:
opacity ${e} ${fo} ${t},
max-width ${e} ${fo},
margin-left ${e} ${fo},
margin-right ${e} ${fo};
`)]}const H2={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},QR={name:"Alert",common:xe,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:n,dividerColor:o,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,infoColorSuppl:h,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:v,fontSize:m}=e;return Object.assign(Object.assign({},H2),{fontSize:m,lineHeight:t,titleFontWeight:n,borderRadius:r,border:`1px solid ${o}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:r,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,borderInfo:`1px solid ${se(h,{alpha:.35})}`,colorInfo:se(h,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:h,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:f,closeIconColorPressedInfo:d,borderSuccess:`1px solid ${se(p,{alpha:.35})}`,colorSuccess:se(p,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:p,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:d,borderWarning:`1px solid ${se(g,{alpha:.35})}`,colorWarning:se(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:f,closeIconColorPressedWarning:d,borderError:`1px solid ${se(v,{alpha:.35})}`,colorError:se(v,{alpha:.25}),titleTextColorError:a,iconColorError:v,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:f,closeIconColorPressedError:d})}},ZR=QR,JR=e=>{const{lineHeight:t,borderRadius:r,fontWeightStrong:n,baseColor:o,dividerColor:i,actionColor:a,textColor1:s,textColor2:l,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:d,closeIconColorPressed:h,infoColor:p,successColor:g,warningColor:v,errorColor:m,fontSize:b}=e;return Object.assign(Object.assign({},H2),{fontSize:b,lineHeight:t,titleFontWeight:n,borderRadius:r,border:`1px solid ${i}`,color:a,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:r,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:d,closeIconColorPressed:h,borderInfo:`1px solid ${Pe(o,se(p,{alpha:.25}))}`,colorInfo:Pe(o,se(p,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:f,closeIconColorHoverInfo:d,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Pe(o,se(g,{alpha:.25}))}`,colorSuccess:Pe(o,se(g,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:g,contentTextColorSuccess:l,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:f,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Pe(o,se(v,{alpha:.33}))}`,colorWarning:Pe(o,se(v,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:f,closeIconColorHoverWarning:d,closeIconColorPressedWarning:h,borderError:`1px solid ${Pe(o,se(m,{alpha:.25}))}`,colorError:Pe(o,se(m,{alpha:.08})),titleTextColorError:s,iconColorError:m,contentTextColorError:l,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:f,closeIconColorHoverError:d,closeIconColorPressedError:h})},eF={name:"Alert",common:be,self:JR},j2=eF,{cubicBezierEaseInOut:wn,cubicBezierEaseOut:tF,cubicBezierEaseIn:rF}=Ro;function W2({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:n="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[Y(`&.fade-in-height-expand-transition-${c}-from,
&.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),Y(`&.fade-in-height-expand-transition-${c}-to,
&.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),Y(`&.fade-in-height-expand-transition-${c}-active`,`
overflow: ${e};
transition:
max-height ${t} ${wn} ${n},
opacity ${t} ${tF} ${n},
margin-top ${t} ${wn} ${n},
margin-bottom ${t} ${wn} ${n},
padding-top ${t} ${wn} ${n},
padding-bottom ${t} ${wn} ${n}
${r?","+r:""}
`),Y(`&.fade-in-height-expand-transition-${l}-active`,`
overflow: ${e};
transition:
max-height ${t} ${wn},
opacity ${t} ${rF},
margin-top ${t} ${wn},
margin-bottom ${t} ${wn},
padding-top ${t} ${wn},
padding-bottom ${t} ${wn}
${r?","+r:""}
`)]}const nF=ne("alert",`
line-height: var(--n-line-height);
border-radius: var(--n-border-radius);
position: relative;
transition: background-color .3s var(--n-bezier);
background-color: var(--n-color);
text-align: start;
word-break: break-word;
`,[le("border",`
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: border-color .3s var(--n-bezier);
border: var(--n-border);
pointer-events: none;
`),ue("closable",[ne("alert-body",[le("title",`
padding-right: 24px;
`)])]),le("icon",{color:"var(--n-icon-color)"}),ne("alert-body",{padding:"var(--n-padding)"},[le("title",{color:"var(--n-title-text-color)"}),le("content",{color:"var(--n-content-text-color)"})]),W2({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),le("icon",`
position: absolute;
left: 0;
top: 0;
align-items: center;
justify-content: center;
display: flex;
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
margin: var(--n-icon-margin);
`),le("close",`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
`),ue("show-icon",[ne("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),ue("right-adjust",[ne("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),ne("alert-body",`
border-radius: var(--n-border-radius);
transition: border-color .3s var(--n-bezier);
`,[le("title",`
transition: color .3s var(--n-bezier);
font-size: 16px;
line-height: 19px;
font-weight: var(--n-title-font-weight);
`,[Y("& +",[le("content",{marginTop:"9px"})])]),le("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),le("icon",{transition:"color .3s var(--n-bezier)"})]),oF=Object.assign(Object.assign({},We.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),iF=pe({name:"Alert",inheritAttrs:!1,props:oF,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=gt(e),i=We("Alert","-alert",nF,j2,e,t),a=on("Alert",o,t),s=R(()=>{const{common:{cubicBezierEaseInOut:h},self:p}=i.value,{fontSize:g,borderRadius:v,titleFontWeight:m,lineHeight:b,iconSize:y,iconMargin:x,iconMarginRtl:S,closeIconSize:C,closeBorderRadius:w,closeSize:k,closeMargin:A,closeMarginRtl:T,padding:I}=p,{type:D}=e,{left:B,right:j}=hl(x);return{"--n-bezier":h,"--n-color":p[we("color",D)],"--n-close-icon-size":C,"--n-close-border-radius":w,"--n-close-color-hover":p[we("closeColorHover",D)],"--n-close-color-pressed":p[we("closeColorPressed",D)],"--n-close-icon-color":p[we("closeIconColor",D)],"--n-close-icon-color-hover":p[we("closeIconColorHover",D)],"--n-close-icon-color-pressed":p[we("closeIconColorPressed",D)],"--n-icon-color":p[we("iconColor",D)],"--n-border":p[we("border",D)],"--n-title-text-color":p[we("titleTextColor",D)],"--n-content-text-color":p[we("contentTextColor",D)],"--n-line-height":b,"--n-border-radius":v,"--n-font-size":g,"--n-title-font-weight":m,"--n-icon-size":y,"--n-icon-margin":x,"--n-icon-margin-rtl":S,"--n-close-size":k,"--n-close-margin":A,"--n-close-margin-rtl":T,"--n-padding":I,"--n-icon-margin-left":B,"--n-icon-margin-right":j}}),l=n?tr("alert",R(()=>e.type[0]),s,e):void 0,c=M(!0),u=()=>{const{onAfterLeave:h,onAfterHide:p}=e;h&&h(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:r,visible:c,handleCloseClick:()=>{var h;Promise.resolve((h=e.onClose)===null||h===void 0?void 0:h.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),$(Lp,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:r}=this,n={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?$("div",Object.assign({},On(this.$attrs,n)),this.closable&&$(Wa,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&$("div",{class:`${t}-alert__border`}),this.showIcon&&$("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},Xc(r.icon,()=>[$(dr,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return $(Cl,null);case"info":return $(Ca,null);case"warning":return $(wl,null);case"error":return $(yl,null);default:return null}}})])),$("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},nr(r.header,o=>{const i=o||this.title;return i?$("div",{class:`${t}-alert-body__title`},i):null}),r.default&&$("div",{class:`${t}-alert-body__content`},r))):null}})}}),aF={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},U2=e=>{const{borderRadius:t,railColor:r,primaryColor:n,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},aF),{borderRadius:t,railColor:r,railColorActive:n,linkColor:se(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:n})},sF={name:"Anchor",common:be,self:U2},lF=sF,cF={name:"Anchor",common:xe,self:U2},uF=cF,dF=eo&&"chrome"in window;eo&&navigator.userAgent.includes("Firefox");const fF=eo&&navigator.userAgent.includes("Safari")&&!dF,V2={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},hF={name:"Input",common:xe,self(e){const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:f,borderRadius:d,lineHeight:h,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:m,heightTiny:b,heightSmall:y,heightMedium:x,heightLarge:S,clearColor:C,clearColorHover:w,clearColorPressed:k,placeholderColor:A,placeholderColorDisabled:T,iconColor:I,iconColorDisabled:D,iconColorHover:B,iconColorPressed:j}=e;return Object.assign(Object.assign({},V2),{countTextColorDisabled:n,countTextColor:r,heightTiny:b,heightSmall:y,heightMedium:x,heightLarge:S,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:m,lineHeight:h,lineHeightTextarea:h,borderRadius:d,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:o,placeholderColor:A,placeholderColorDisabled:T,color:a,colorDisabled:s,colorFocus:se(o,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${se(o,{alpha:.3})}`,loadingColor:o,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:se(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${se(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:se(u,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${se(u,{alpha:.3})}`,caretColorError:u,clearColor:C,clearColorHover:w,clearColorPressed:k,iconColor:I,iconColorDisabled:D,iconColorHover:B,iconColorPressed:j,suffixTextColor:t})}},an=hF,pF=e=>{const{textColor2:t,textColor3:r,textColorDisabled:n,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:u,errorColor:f,errorColorHover:d,borderRadius:h,lineHeight:p,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:m,fontSizeLarge:b,heightTiny:y,heightSmall:x,heightMedium:S,heightLarge:C,actionColor:w,clearColor:k,clearColorHover:A,clearColorPressed:T,placeholderColor:I,placeholderColorDisabled:D,iconColor:B,iconColorDisabled:j,iconColorHover:F,iconColorPressed:z}=e;return Object.assign(Object.assign({},V2),{countTextColorDisabled:n,countTextColor:r,heightTiny:y,heightSmall:x,heightMedium:S,heightLarge:C,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:m,fontSizeLarge:b,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:w,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:D,color:a,colorDisabled:s,colorFocus:a,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${se(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${se(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${d}`,colorFocusError:a,borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 0 2px ${se(f,{alpha:.2})}`,caretColorError:f,clearColor:k,clearColorHover:A,clearColorPressed:T,iconColor:B,iconColorDisabled:j,iconColorHover:F,iconColorPressed:z,suffixTextColor:t})},gF={name:"Input",common:be,self:pF},sn=gF;function G2(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const mF={name:"AutoComplete",common:be,peers:{InternalSelectMenu:Sl,Input:sn},self:G2},vF=mF,bF={name:"AutoComplete",common:xe,peers:{InternalSelectMenu:_l,Input:an},self:G2},xF=bF,q2=eo&&"loading"in document.createElement("img"),yF=(e={})=>{var t;const{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof r=="string"?document.querySelector(r):r)||document.documentElement})}},ef=new WeakMap,tf=new WeakMap,rf=new WeakMap,Y2=(e,t,r)=>{if(!e)return()=>{};const n=yF(t),{root:o}=n.options;let i;const a=ef.get(o);a?i=a:(i=new Map,ef.set(o,i));let s,l;i.has(n.hash)?(l=i.get(n.hash),l[1].has(e)||(s=l[0],l[1].add(e),s.observe(e))):(s=new IntersectionObserver(f=>{f.forEach(d=>{if(d.isIntersecting){const h=tf.get(d.target),p=rf.get(d.target);h&&h(),p&&(p.value=!0)}})},n.options),s.observe(e),l=[s,new Set([e])],i.set(n.hash,l));let c=!1;const u=()=>{c||(tf.delete(e),rf.delete(e),c=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&i.delete(n.hash),i.size||ef.delete(o))};return tf.set(e,u),rf.set(e,r),u},K2=e=>{const{borderRadius:t,avatarColor:r,cardColor:n,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:Pe(n,r),colorModal:Pe(u,r),colorPopover:Pe(f,r)}},CF={name:"Avatar",common:be,self:K2},Np=CF,wF={name:"Avatar",common:xe,self:K2},X2=wF,SF="n-avatar-group",_F=ne("avatar",`
width: var(--n-merged-size);
height: var(--n-merged-size);
color: #FFF;
font-size: var(--n-font-size);
display: inline-flex;
position: relative;
overflow: hidden;
text-align: center;
border: var(--n-border);
border-radius: var(--n-border-radius);
--n-merged-color: var(--n-color);
background-color: var(--n-merged-color);
transition:
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[Mu(Y("&","--n-merged-color: var(--n-color-modal);")),hp(Y("&","--n-merged-color: var(--n-color-popover);")),Y("img",`
width: 100%;
height: 100%;
`),le("text",`
white-space: nowrap;
display: inline-block;
position: absolute;
left: 50%;
top: 50%;
`),ne("icon",`
vertical-align: bottom;
font-size: calc(var(--n-merged-size) - 6px);
`),le("text","line-height: 1.25")]),EF=Object.assign(Object.assign({},We.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),kF=pe({name:"Avatar",props:EF,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=gt(e),n=M(!1);let o=null;const i=M(null),a=M(null),s=()=>{const{value:b}=i;if(b&&(o===null||o!==b.innerHTML)){o=b.innerHTML;const{value:y}=a;if(y){const{offsetWidth:x,offsetHeight:S}=y,{offsetWidth:C,offsetHeight:w}=b,k=.9,A=Math.min(x/C*k,S/w*k,1);b.style.transform=`translateX(-50%) translateY(-50%) scale(${A})`}}},l=ze(SF,null),c=R(()=>{const{size:b}=e;if(b)return b;const{size:y}=l||{};return y||"medium"}),u=We("Avatar","-avatar",_F,Np,e,t),f=ze(z2,null),d=R(()=>{if(l)return!0;const{round:b,circle:y}=e;return b!==void 0||y!==void 0?b||y:f?f.roundRef.value:!1}),h=R(()=>l?!0:e.bordered||!1),p=R(()=>{const b=c.value,y=d.value,x=h.value,{color:S}=e,{self:{borderRadius:C,fontSize:w,color:k,border:A,colorModal:T,colorPopover:I},common:{cubicBezierEaseInOut:D}}=u.value;let B;return typeof b=="number"?B=`${b}px`:B=u.value.self[we("height",b)],{"--n-font-size":w,"--n-border":x?A:"none","--n-border-radius":y?"50%":C,"--n-color":S||k,"--n-color-modal":S||T,"--n-color-popover":S||I,"--n-bezier":D,"--n-merged-size":`var(--n-avatar-size-override, ${B})`}}),g=r?tr("avatar",R(()=>{const b=c.value,y=d.value,x=h.value,{color:S}=e;let C="";return b&&(typeof b=="number"?C+=`a${b}`:C+=b[0]),y&&(C+="b"),x&&(C+="c"),S&&(C+=js(S)),C}),p,e):void 0,v=M(!e.lazy);_t(()=>{if(e.lazy&&e.intersectionObserverOptions){let b;const y=Or(()=>{b==null||b(),b=void 0,e.lazy&&(b=Y2(a.value,e.intersectionObserverOptions,v))});Ht(()=>{y(),b==null||b()})}}),Je(()=>{var b;return e.src||((b=e.imgProps)===null||b===void 0?void 0:b.src)},()=>{n.value=!1});const m=M(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:d,mergedClsPrefix:t,fitTextTransform:s,cssVars:r?void 0:p,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:n,shouldStartLoading:v,loaded:m,mergedOnError:b=>{if(!v.value)return;n.value=!0;const{onError:y,imgProps:{onError:x}={}}=e;y==null||y(b),x==null||x(b)},mergedOnLoad:b=>{const{onLoad:y,imgProps:{onLoad:x}={}}=e;y==null||y(b),x==null||x(b),m.value=!0}}},render(){var e,t;const{$slots:r,src:n,mergedClsPrefix:o,lazy:i,onRender:a,loaded:s,hasLoadError:l,imgProps:c={}}=this;a==null||a();let u;const f=!s&&!l&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?u=this.renderFallback?this.renderFallback():Xc(r.fallback,()=>[$("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):u=nr(r.default,d=>{if(d)return $(Jc,{onResize:this.fitTextTransform},{default:()=>$("span",{ref:"textRef",class:`${o}-avatar__text`},d)});if(n||c.src){const h=this.src||c.src;return $("img",Object.assign(Object.assign({},c),{loading:q2&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?h:void 0:h,"data-image-src":h,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},f?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),$("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},u,i&&f)}}),Q2=()=>({gap:"-12px"}),TF={name:"AvatarGroup",common:be,peers:{Avatar:Np},self:Q2},AF=TF,PF={name:"AvatarGroup",common:xe,peers:{Avatar:X2},self:Q2},$F=PF,Z2={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},IF={name:"BackTop",common:xe,self(e){const{popoverColor:t,textColor2:r,primaryColorHover:n,primaryColorPressed:o}=e;return Object.assign(Object.assign({},Z2),{color:t,textColor:r,iconColor:r,iconColorHover:n,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},DF=IF,BF=e=>{const{popoverColor:t,textColor2:r,primaryColorHover:n,primaryColorPressed:o}=e;return Object.assign(Object.assign({},Z2),{color:t,textColor:r,iconColor:r,iconColorHover:n,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},OF={name:"BackTop",common:be,self:BF},LF=OF,RF={name:"Badge",common:xe,self(e){const{errorColorSuppl:t,infoColorSuppl:r,successColorSuppl:n,warningColorSuppl:o,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:n,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}}},FF=RF,MF=e=>{const{errorColor:t,infoColor:r,successColor:n,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:n,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},zF={name:"Badge",common:be,self:MF},NF=zF,HF={fontWeightActive:"400"},J2=e=>{const{fontSize:t,textColor3:r,textColor2:n,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},HF),{fontSize:t,itemLineHeight:"1.25",itemTextColor:r,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:r})},jF={name:"Breadcrumb",common:be,self:J2},WF=jF,UF={name:"Breadcrumb",common:xe,self:J2},VF=UF;function qo(e){return Pe(e,[255,255,255,.16])}function ec(e){return Pe(e,[0,0,0,.12])}const eS="n-button-group",GF={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},tS=e=>{const{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:h,primaryColorPressed:p,borderColor:g,primaryColor:v,baseColor:m,infoColor:b,infoColorHover:y,infoColorPressed:x,successColor:S,successColorHover:C,successColorPressed:w,warningColor:k,warningColorHover:A,warningColorPressed:T,errorColor:I,errorColorHover:D,errorColorPressed:B,fontWeight:j,buttonColor2:F,buttonColor2Hover:z,buttonColor2Pressed:V,fontWeightStrong:oe}=e;return Object.assign(Object.assign({},GF),{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:F,colorSecondaryHover:z,colorSecondaryPressed:V,colorTertiary:F,colorTertiaryHover:z,colorTertiaryPressed:V,colorQuaternary:"#0000",colorQuaternaryHover:z,colorQuaternaryPressed:V,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:f,textColorText:f,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:f,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:v,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:v,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:f,textColorGhostPrimary:v,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:b,colorHoverInfo:y,colorPressedInfo:x,colorFocusInfo:y,colorDisabledInfo:b,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:b,textColorTextHoverInfo:y,textColorTextPressedInfo:x,textColorTextFocusInfo:y,textColorTextDisabledInfo:f,textColorGhostInfo:b,textColorGhostHoverInfo:y,textColorGhostPressedInfo:x,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:b,borderInfo:`1px solid ${b}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${b}`,rippleColorInfo:b,colorSuccess:S,colorHoverSuccess:C,colorPressedSuccess:w,colorFocusSuccess:C,colorDisabledSuccess:S,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:S,textColorTextHoverSuccess:C,textColorTextPressedSuccess:w,textColorTextFocusSuccess:C,textColorTextDisabledSuccess:f,textColorGhostSuccess:S,textColorGhostHoverSuccess:C,textColorGhostPressedSuccess:w,textColorGhostFocusSuccess:C,textColorGhostDisabledSuccess:S,borderSuccess:`1px solid ${S}`,borderHoverSuccess:`1px solid ${C}`,borderPressedSuccess:`1px solid ${w}`,borderFocusSuccess:`1px solid ${C}`,borderDisabledSuccess:`1px solid ${S}`,rippleColorSuccess:S,colorWarning:k,colorHoverWarning:A,colorPressedWarning:T,colorFocusWarning:A,colorDisabledWarning:k,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:k,textColorTextHoverWarning:A,textColorTextPressedWarning:T,textColorTextFocusWarning:A,textColorTextDisabledWarning:f,textColorGhostWarning:k,textColorGhostHoverWarning:A,textColorGhostPressedWarning:T,textColorGhostFocusWarning:A,textColorGhostDisabledWarning:k,borderWarning:`1px solid ${k}`,borderHoverWarning:`1px solid ${A}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${A}`,borderDisabledWarning:`1px solid ${k}`,rippleColorWarning:k,colorError:I,colorHoverError:D,colorPressedError:B,colorFocusError:D,colorDisabledError:I,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:I,textColorTextHoverError:D,textColorTextPressedError:B,textColorTextFocusError:D,textColorTextDisabledError:f,textColorGhostError:I,textColorGhostHoverError:D,textColorGhostPressedError:B,textColorGhostFocusError:D,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${D}`,borderPressedError:`1px solid ${B}`,borderFocusError:`1px solid ${D}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:j,fontWeightStrong:oe})},qF={name:"Button",common:be,self:tS},Tr=qF,YF={name:"Button",common:xe,self(e){const t=tS(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Rr=YF,KF=Y([ne("button",`
margin: 0;
font-weight: var(--n-font-weight);
line-height: 1;
font-family: inherit;
padding: var(--n-padding);
height: var(--n-height);
font-size: var(--n-font-size);
border-radius: var(--n-border-radius);
color: var(--n-text-color);
background-color: var(--n-color);
width: var(--n-width);
white-space: nowrap;
outline: none;
position: relative;
z-index: auto;
border: none;
display: inline-flex;
flex-wrap: nowrap;
flex-shrink: 0;
align-items: center;
justify-content: center;
user-select: none;
-webkit-user-select: none;
text-align: center;
cursor: pointer;
text-decoration: none;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[ue("color",[le("border",{borderColor:"var(--n-border-color)"}),ue("disabled",[le("border",{borderColor:"var(--n-border-color-disabled)"})]),xr("disabled",[Y("&:focus",[le("state-border",{borderColor:"var(--n-border-color-focus)"})]),Y("&:hover",[le("state-border",{borderColor:"var(--n-border-color-hover)"})]),Y("&:active",[le("state-border",{borderColor:"var(--n-border-color-pressed)"})]),ue("pressed",[le("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),ue("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[le("border",{border:"var(--n-border-disabled)"})]),xr("disabled",[Y("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[le("state-border",{border:"var(--n-border-focus)"})]),Y("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[le("state-border",{border:"var(--n-border-hover)"})]),Y("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[le("state-border",{border:"var(--n-border-pressed)"})]),ue("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[le("state-border",{border:"var(--n-border-pressed)"})])]),ue("loading","cursor: wait;"),ne("base-wave",`
pointer-events: none;
top: 0;
right: 0;
bottom: 0;
left: 0;
animation-iteration-count: 1;
animation-duration: var(--n-ripple-duration);
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
`,[ue("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),eo&&"MozBoxSizing"in document.createElement("div").style?Y("&::moz-focus-inner",{border:0}):null,le("border, state-border",`
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
border-radius: inherit;
transition: border-color .3s var(--n-bezier);
pointer-events: none;
`),le("border",{border:"var(--n-border)"}),le("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),le("icon",`
margin: var(--n-icon-margin);
margin-left: 0;
height: var(--n-icon-size);
width: var(--n-icon-size);
max-width: var(--n-icon-size);
font-size: var(--n-icon-size);
position: relative;
flex-shrink: 0;
`,[ne("icon-slot",`
height: var(--n-icon-size);
width: var(--n-icon-size);
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
`,[lu({top:"50%",originalTransform:"translateY(-50%)"})]),XR()]),le("content",`
display: flex;
align-items: center;
flex-wrap: nowrap;
min-width: 0;
`,[Y("~",[le("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),ue("block",`
display: flex;
width: 100%;
`),ue("dashed",[le("border, state-border",{borderStyle:"dashed !important"})]),ue("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),Y("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),Y("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),XF=Object.assign(Object.assign({},We.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!fF}}),rS=pe({name:"Button",props:XF,setup(e){const t=M(null),r=M(null),n=M(!1),o=Dr(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=ze(eS,{}),{mergedSizeRef:a}=Cp({},{defaultSize:"medium",mergedSize:x=>{const{size:S}=e;if(S)return S;const{size:C}=i;if(C)return C;const{mergedSize:w}=x||{};return w?w.value:"medium"}}),s=R(()=>e.focusable&&!e.disabled),l=x=>{var S;s.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&s.value&&((S=t.value)===null||S===void 0||S.focus({preventScroll:!0})))},c=x=>{var S;if(!e.disabled&&!e.loading){const{onClick:C}=e;C&&ar(C,x),e.text||(S=r.value)===null||S===void 0||S.play()}},u=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;n.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}n.value=!0}},d=()=>{n.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:p,mergedRtlRef:g}=gt(e),v=We("Button","-button",KF,Tr,e,p),m=on("Button",g,p),b=R(()=>{const x=v.value,{common:{cubicBezierEaseInOut:S,cubicBezierEaseOut:C},self:w}=x,{rippleDuration:k,opacityDisabled:A,fontWeight:T,fontWeightStrong:I}=w,D=a.value,{dashed:B,type:j,ghost:F,text:z,color:V,round:oe,circle:fe,textColor:ge,secondary:U,tertiary:X,quaternary:ae,strong:Z}=e,Be={"font-weight":Z?I:T};let ye={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const q=j==="tertiary",te=j==="default",ie=q?"default":j;if(z){const H=ge||V;ye={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":H||w[we("textColorText",ie)],"--n-text-color-hover":H?qo(H):w[we("textColorTextHover",ie)],"--n-text-color-pressed":H?ec(H):w[we("textColorTextPressed",ie)],"--n-text-color-focus":H?qo(H):w[we("textColorTextHover",ie)],"--n-text-color-disabled":H||w[we("textColorTextDisabled",ie)]}}else if(F||B){const H=ge||V;ye={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":V||w[we("rippleColor",ie)],"--n-text-color":H||w[we("textColorGhost",ie)],"--n-text-color-hover":H?qo(H):w[we("textColorGhostHover",ie)],"--n-text-color-pressed":H?ec(H):w[we("textColorGhostPressed",ie)],"--n-text-color-focus":H?qo(H):w[we("textColorGhostHover",ie)],"--n-text-color-disabled":H||w[we("textColorGhostDisabled",ie)]}}else if(U){const H=te?w.textColor:q?w.textColorTertiary:w[we("color",ie)],ee=V||H,Q=j!=="default"&&j!=="tertiary";ye={"--n-color":Q?se(ee,{alpha:Number(w.colorOpacitySecondary)}):w.colorSecondary,"--n-color-hover":Q?se(ee,{alpha:Number(w.colorOpacitySecondaryHover)}):w.colorSecondaryHover,"--n-color-pressed":Q?se(ee,{alpha:Number(w.colorOpacitySecondaryPressed)}):w.colorSecondaryPressed,"--n-color-focus":Q?se(ee,{alpha:Number(w.colorOpacitySecondaryHover)}):w.colorSecondaryHover,"--n-color-disabled":w.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ee,"--n-text-color-hover":ee,"--n-text-color-pressed":ee,"--n-text-color-focus":ee,"--n-text-color-disabled":ee}}else if(X||ae){const H=te?w.textColor:q?w.textColorTertiary:w[we("color",ie)],ee=V||H;X?(ye["--n-color"]=w.colorTertiary,ye["--n-color-hover"]=w.colorTertiaryHover,ye["--n-color-pressed"]=w.colorTertiaryPressed,ye["--n-color-focus"]=w.colorSecondaryHover,ye["--n-color-disabled"]=w.colorTertiary):(ye["--n-color"]=w.colorQuaternary,ye["--n-color-hover"]=w.colorQuaternaryHover,ye["--n-color-pressed"]=w.colorQuaternaryPressed,ye["--n-color-focus"]=w.colorQuaternaryHover,ye["--n-color-disabled"]=w.colorQuaternary),ye["--n-ripple-color"]="#0000",ye["--n-text-color"]=ee,ye["--n-text-color-hover"]=ee,ye["--n-text-color-pressed"]=ee,ye["--n-text-color-focus"]=ee,ye["--n-text-color-disabled"]=ee}else ye={"--n-color":V||w[we("color",ie)],"--n-color-hover":V?qo(V):w[we("colorHover",ie)],"--n-color-pressed":V?ec(V):w[we("colorPressed",ie)],"--n-color-focus":V?qo(V):w[we("colorFocus",ie)],"--n-color-disabled":V||w[we("colorDisabled",ie)],"--n-ripple-color":V||w[we("rippleColor",ie)],"--n-text-color":ge||(V?w.textColorPrimary:q?w.textColorTertiary:w[we("textColor",ie)]),"--n-text-color-hover":ge||(V?w.textColorHoverPrimary:w[we("textColorHover",ie)]),"--n-text-color-pressed":ge||(V?w.textColorPressedPrimary:w[we("textColorPressed",ie)]),"--n-text-color-focus":ge||(V?w.textColorFocusPrimary:w[we("textColorFocus",ie)]),"--n-text-color-disabled":ge||(V?w.textColorDisabledPrimary:w[we("textColorDisabled",ie)])};let ve={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};z?ve={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ve={"--n-border":w[we("border",ie)],"--n-border-hover":w[we("borderHover",ie)],"--n-border-pressed":w[we("borderPressed",ie)],"--n-border-focus":w[we("borderFocus",ie)],"--n-border-disabled":w[we("borderDisabled",ie)]};const{[we("height",D)]:Le,[we("fontSize",D)]:$e,[we("padding",D)]:_,[we("paddingRound",D)]:E,[we("iconSize",D)]:P,[we("borderRadius",D)]:O,[we("iconMargin",D)]:L,waveOpacity:G}=w,K={"--n-width":fe&&!z?Le:"initial","--n-height":z?"initial":Le,"--n-font-size":$e,"--n-padding":fe||z?"initial":oe?E:_,"--n-icon-size":P,"--n-icon-margin":L,"--n-border-radius":z?"initial":fe||oe?Le:O};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":S,"--n-bezier-ease-out":C,"--n-ripple-duration":k,"--n-opacity-disabled":A,"--n-wave-opacity":G},Be),ye),ve),K)}),y=h?tr("button",R(()=>{let x="";const{dashed:S,type:C,ghost:w,text:k,color:A,round:T,circle:I,textColor:D,secondary:B,tertiary:j,quaternary:F,strong:z}=e;S&&(x+="a"),w&&(x+="b"),k&&(x+="c"),T&&(x+="d"),I&&(x+="e"),B&&(x+="f"),j&&(x+="g"),F&&(x+="h"),z&&(x+="i"),A&&(x+="j"+js(A)),D&&(x+="k"+js(D));const{value:V}=a;return x+="l"+V[0],x+="m"+C[0],x}),b,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:p,mergedFocusable:s,mergedSize:a,showBorder:o,enterPressed:n,rtlEnabled:m,handleMousedown:l,handleKeydown:f,handleBlur:d,handleKeyup:u,handleClick:c,customColorCssVars:R(()=>{const{color:x}=e;if(!x)return null;const S=qo(x);return{"--n-border-color":x,"--n-border-color-hover":S,"--n-border-color-pressed":ec(x),"--n-border-color-focus":S,"--n-border-color-disabled":x}}),cssVars:h?void 0:b,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const n=nr(this.$slots.default,o=>o&&$("span",{class:`${e}-button__content`},o));return $(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,$(Lp,{width:!0},{default:()=>nr(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&$("span",{class:`${e}-button__icon`,style:{margin:I0(this.$slots.default)?"0":""}},$(Op,null,{default:()=>this.loading?$(Rp,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):$("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&n,this.text?null:$(PR,{ref:"waveElRef",clsPrefix:e}),this.showBorder?$("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?$("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),gn=rS,nce=rS,Mt="0!important",nS="-1px!important";function Hi(e){return ue(e+"-type",[Y("& +",[ne("button",{},[ue(e+"-type",[le("border",{borderLeftWidth:Mt}),le("state-border",{left:nS})])])])])}function ji(e){return ue(e+"-type",[Y("& +",[ne("button",[ue(e+"-type",[le("border",{borderTopWidth:Mt}),le("state-border",{top:nS})])])])])}const QF=ne("button-group",`
flex-wrap: nowrap;
display: inline-flex;
position: relative;
`,[xr("vertical",{flexDirection:"row"},[xr("rtl",[ne("button",[Y("&:first-child:not(:last-child)",`
margin-right: ${Mt};
border-top-right-radius: ${Mt};
border-bottom-right-radius: ${Mt};
`),Y("&:last-child:not(:first-child)",`
margin-left: ${Mt};
border-top-left-radius: ${Mt};
border-bottom-left-radius: ${Mt};
`),Y("&:not(:first-child):not(:last-child)",`
margin-left: ${Mt};
margin-right: ${Mt};
border-radius: ${Mt};
`),Hi("default"),ue("ghost",[Hi("primary"),Hi("info"),Hi("success"),Hi("warning"),Hi("error")])])])]),ue("vertical",{flexDirection:"column"},[ne("button",[Y("&:first-child:not(:last-child)",`
margin-bottom: ${Mt};
margin-left: ${Mt};
margin-right: ${Mt};
border-bottom-left-radius: ${Mt};
border-bottom-right-radius: ${Mt};
`),Y("&:last-child:not(:first-child)",`
margin-top: ${Mt};
margin-left: ${Mt};
margin-right: ${Mt};
border-top-left-radius: ${Mt};
border-top-right-radius: ${Mt};
`),Y("&:not(:first-child):not(:last-child)",`
margin: ${Mt};
border-radius: ${Mt};
`),ji("default"),ue("ghost",[ji("primary"),ji("info"),ji("success"),ji("warning"),ji("error")])])])]),ZF={size:{type:String,default:void 0},vertical:Boolean},JF=pe({name:"ButtonGroup",props:ZF,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=gt(e);return xl("-button-group",QF,t),ft(eS,e),{rtlEnabled:on("ButtonGroup",r,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return $("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),eM={date:bL,month:Gu,year:KL,quarter:YL};function tM(e){return(t,r)=>{const n=(e+1)%7;return qL(t,r,{weekStartsOn:n})}}function Yr(e,t,r,n=0){return(r==="week"?tM(n):eM[r])(e,t)}function nf(e,t,r,n,o,i){return o==="date"?rM(e,t,r,n):nM(e,t,r,n,i)}function rM(e,t,r,n){let o=!1,i=!1,a=!1;Array.isArray(r)&&(r[0]<e&&e<r[1]&&(o=!0),Yr(r[0],e,"date")&&(i=!0),Yr(r[1],e,"date")&&(a=!0));const s=r!==null&&(Array.isArray(r)?Yr(r[0],e,"date")||Yr(r[1],e,"date"):Yr(r,e,"date"));return{type:"date",dateObject:{date:E2(e),month:kn(e),year:wo(e)},inCurrentMonth:Gu(e,t),isCurrentDate:Yr(n,e,"date"),inSpan:o,inSelectedWeek:!1,startOfSpan:i,endOfSpan:a,selected:s,ts:ti(e)}}function nM(e,t,r,n,o){let i=!1,a=!1,s=!1;Array.isArray(r)&&(r[0]<e&&e<r[1]&&(i=!0),Yr(r[0],e,"week",o)&&(a=!0),Yr(r[1],e,"week",o)&&(s=!0));const l=r!==null&&(Array.isArray(r)?Yr(r[0],e,"week",o)||Yr(r[1],e,"week",o):Yr(r,e,"week",o));return{type:"date",dateObject:{date:E2(e),month:kn(e),year:wo(e)},inCurrentMonth:Gu(e,t),isCurrentDate:Yr(n,e,"date"),inSpan:i,startOfSpan:a,endOfSpan:s,selected:!1,inSelectedWeek:l,ts:ti(e)}}function oM(e,t,r,n,o=!1,i=!1){const a=i?"week":"date",s=kn(e);let l=ti(_c(e)),c=ti(Jl(l,-1));const u=[];let f=!o;for(;GL(c)!==n||f;)u.unshift(nf(c,e,t,r,a,n)),c=ti(Jl(c,-1)),f=!1;for(;kn(l)===s;)u.push(nf(l,e,t,r,a,n)),l=ti(Jl(l,1));const d=o?u.length<=28?28:u.length<=35?35:42:42;for(;u.length<d;)u.push(nf(l,e,t,r,a,n)),l=ti(Jl(l,1));return u}const iM={titleFontSize:"22px"},oS=e=>{const{borderRadius:t,fontSize:r,lineHeight:n,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:u,hoverColor:f,cardColor:d,modalColor:h,popoverColor:p}=e;return Object.assign(Object.assign({},iM),{borderRadius:t,borderColor:Pe(d,s),borderColorModal:Pe(h,s),borderColorPopover:Pe(p,s),textColor:o,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:r,lineHeight:n,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Pe(d,f),cellColorHoverModal:Pe(h,f),cellColorHoverPopover:Pe(p,f),cellColor:d,cellColorModal:h,cellColorPopover:p,barColor:c})},aM={name:"Calendar",common:be,peers:{Button:Tr},self:oS},iS=aM,sM={name:"Calendar",common:xe,peers:{Button:Rr},self:oS},lM=sM,cM=Y([ne("calendar",`
line-height: var(--n-line-height);
font-size: var(--n-font-size);
color: var(--n-text-color);
height: 720px;
display: flex;
flex-direction: column;
`,[ne("calendar-prev-btn",`
cursor: pointer;
`),ne("calendar-next-btn",`
cursor: pointer;
`),ne("calendar-header",`
display: flex;
align-items: center;
line-height: 1;
font-size: var(--n-title-font-size);
padding: 0 0 18px 0;
justify-content: space-between;
`,[le("title",`
color: var(--n-title-text-color);
font-weight: var(--n-title-font-weight);
transition: color .3s var(--n-bezier);
`),le("extra",`
display: flex;
align-items: center;
`)]),ne("calendar-dates",`
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
grid-auto-rows: 1fr;
border-radius: var(--n-border-radius);
flex: 1;
border-top: 1px solid;
border-left: 1px solid;
border-color: var(--n-border-color);
transition: border-color .3s var(--n-bezier);
`),ne("calendar-cell",`
box-sizing: border-box;
padding: 10px;
border-right: 1px solid;
border-bottom: 1px solid;
border-color: var(--n-border-color);
cursor: pointer;
position: relative;
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
`,[Y("&:nth-child(7)",`
border-top-right-radius: var(--n-border-radius);
`),Y("&:nth-last-child(7)",`
border-bottom-left-radius: var(--n-border-radius);
`),Y("&:last-child",`
border-bottom-right-radius: var(--n-border-radius);
`),Y("&:hover",`
background-color: var(--n-cell-color-hover);
`),le("bar",`
position: absolute;
left: 0;
right: 0;
bottom: -1px;
height: 3px;
background-color: #0000;
transition: background-color .3s var(--n-bezier);
`),ue("selected",[le("bar",`
background-color: var(--n-bar-color);
`)]),ne("calendar-date",`
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
color: var(--n-text-color);
`,[le("date",`
color: var(--n-text-color);
`)]),ue("disabled, other-month",`
color: var(--n-day-text-color);
`,[ne("calendar-date",[le("date",`
color: var(--n-day-text-color);
`)])]),ue("disabled",`
cursor: not-allowed;
`),ue("current",[ne("calendar-date",[le("date",`
color: var(--n-date-text-color-current);
background-color: var(--n-date-color-current);
`)])]),ne("calendar-date",`
position: relative;
line-height: 1;
display: flex;
align-items: center;
height: 1em;
justify-content: space-between;
padding-bottom: .75em;
`,[le("date",`
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-left: -0.4em;
width: 1.8em;
height: 1.8em;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
`),le("day",`
color: var(--n-day-text-color);
transition: color .3s var(--n-bezier);
`)])])]),Mu(ne("calendar",[ne("calendar-dates",`
border-color: var(--n-border-color-modal);
`),ne("calendar-cell",`
border-color: var(--n-border-color-modal);
`,[Y("&:hover",`
background-color: var(--n-cell-color-hover-modal);
`)])])),hp(ne("calendar",[ne("calendar-dates",`
border-color: var(--n-border-color-popover);
`),ne("calendar-cell",`
border-color: var(--n-border-color-popover);
`,[Y("&:hover",`
background-color: var(--n-cell-color-hover-popover);
`)])]))]),uM=Object.assign(Object.assign({},We.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),dM=pe({name:"Calendar",props:uM,setup(e){var t;const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=gt(e),o=We("Calendar","-calendar",cM,iS,e,r),{localeRef:i,dateLocaleRef:a}=k2("DatePicker"),s=Date.now(),l=M(_c((t=e.defaultValue)!==null&&t!==void 0?t:s).valueOf()),c=M(e.defaultValue||null),u=Nu(Lt(e,"value"),c);function f(m,b){const{onUpdateValue:y,"onUpdate:value":x}=e;y&&ar(y,m,b),x&&ar(x,m,b),c.value=m}function d(){var m;const b=t1(l.value,-1).valueOf();l.value=b,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:wo(b),month:kn(b)+1})}function h(){var m;const b=t1(l.value,1).valueOf();l.value=b,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:wo(b),month:kn(b)+1})}function p(){var m;const{value:b}=l,y=wo(b),x=kn(b),S=_c(s).valueOf();l.value=S;const C=wo(S),w=kn(S);(y!==C||x!==w)&&((m=e.onPanelChange)===null||m===void 0||m.call(e,{year:C,month:w+1}))}const g=R(()=>{const{common:{cubicBezierEaseInOut:m},self:{borderColor:b,borderColorModal:y,borderColorPopover:x,borderRadius:S,titleFontSize:C,textColor:w,titleFontWeight:k,titleTextColor:A,dayTextColor:T,fontSize:I,lineHeight:D,dateColorCurrent:B,dateTextColorCurrent:j,cellColorHover:F,cellColor:z,cellColorModal:V,barColor:oe,cellColorPopover:fe,cellColorHoverModal:ge,cellColorHoverPopover:U}}=o.value;return{"--n-bezier":m,"--n-border-color":b,"--n-border-color-modal":y,"--n-border-color-popover":x,"--n-border-radius":S,"--n-text-color":w,"--n-title-font-weight":k,"--n-title-font-size":C,"--n-title-text-color":A,"--n-day-text-color":T,"--n-font-size":I,"--n-line-height":D,"--n-date-color-current":B,"--n-date-text-color-current":j,"--n-cell-color":z,"--n-cell-color-modal":V,"--n-cell-color-popover":fe,"--n-cell-color-hover":F,"--n-cell-color-hover-modal":ge,"--n-cell-color-hover-popover":U,"--n-bar-color":oe}}),v=n?tr("calendar",void 0,g,e):void 0;return{mergedClsPrefix:r,locale:i,dateLocale:a,now:s,mergedValue:u,monthTs:l,dateItems:R(()=>oM(l.value,u.value,s,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:p,handlePrevClick:d,handleNextClick:h,mergedTheme:o,cssVars:n?void 0:g,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:r,cssVars:n,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:s,today:l},dateLocale:{locale:c},handleTodayClick:u,handlePrevClick:f,handleNextClick:d,onRender:h}=this;h==null||h();const p=o&&au(o).valueOf(),g=wo(r),v=kn(r)+1;return $("div",{class:[`${t}-calendar`,this.themeClass],style:n},$("div",{class:`${t}-calendar-header`},$("div",{class:`${t}-calendar-header__title`},lT(a.header,{year:g,month:v},()=>{const m=Qd(r,"MMMM",{locale:c});return[s?`${m} ${g}`:`${g} ${m}`]})),$("div",{class:`${t}-calendar-header__extra`},$(JF,null,{default:()=>$(ot,null,$(gn,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>$(dr,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>$(QL,null)})}),$(gn,{size:"small",onClick:u,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>l}),$(gn,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>$(dr,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>$(ZL,null)})}))}))),$("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:m,ts:b,inCurrentMonth:y,isCurrentDate:x},S)=>{var C;const{year:w,month:k,date:A}=m,T=Qd(b,"yyyy-MM-dd"),I=!y,D=(e==null?void 0:e(b))===!0,B=p===au(b).valueOf();return $("div",{key:`${v}-${S}`,class:[`${t}-calendar-cell`,D&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,D&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,B&&`${t}-calendar-cell--selected`],onClick:()=>{var j;if(D)return;const F=_c(b).valueOf();this.monthTs=F,I&&((j=this.onPanelChange)===null||j===void 0||j.call(this,{year:wo(F),month:kn(F)+1})),this.doUpdateValue(b,{year:w,month:k+1,date:A})}},$("div",{class:`${t}-calendar-date`},$("div",{class:`${t}-calendar-date__date`,title:T},A),S<7&&$("div",{class:`${t}-calendar-date__day`,title:T},Qd(b,"EEE",{locale:c}))),(C=a.default)===null||C===void 0?void 0:C.call(a,{year:w,month:k+1,date:A}),$("div",{class:`${t}-calendar-cell__bar`}))})))}}),aS=e=>{const{fontSize:t,boxShadow2:r,popoverColor:n,textColor2:o,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,dividerColor:h}=e;return{panelFontSize:t,boxShadow:r,color:n,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,dividerColor:h}},fM={name:"ColorPicker",common:be,peers:{Input:sn,Button:Tr},self:aS},hM=fM,pM={name:"ColorPicker",common:xe,peers:{Input:an,Button:Rr},self:aS},gM=pM,mM={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},sS=e=>{const{primaryColor:t,borderRadius:r,lineHeight:n,fontSize:o,cardColor:i,textColor2:a,textColor1:s,dividerColor:l,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:h,closeColorPressed:p,modalColor:g,boxShadow1:v,popoverColor:m,actionColor:b}=e;return Object.assign(Object.assign({},mM),{lineHeight:n,color:i,colorModal:g,colorPopover:m,colorTarget:t,colorEmbedded:b,colorEmbeddedModal:b,colorEmbeddedPopover:b,textColor:a,titleTextColor:s,borderColor:l,actionColor:b,titleFontWeight:c,closeColorHover:h,closeColorPressed:p,closeBorderRadius:r,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:v,borderRadius:r})},vM={name:"Card",common:be,self:sS},Hp=vM,bM={name:"Card",common:xe,self(e){const t=sS(e),{cardColor:r,modalColor:n,popoverColor:o}=e;return t.colorEmbedded=r,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=o,t}},lS=bM,xM=Y([ne("card",`
font-size: var(--n-font-size);
line-height: var(--n-line-height);
display: flex;
flex-direction: column;
width: 100%;
box-sizing: border-box;
position: relative;
border-radius: var(--n-border-radius);
background-color: var(--n-color);
color: var(--n-text-color);
word-break: break-word;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[cw({background:"var(--n-color-modal)"}),ue("hoverable",[Y("&:hover","box-shadow: var(--n-box-shadow);")]),ue("content-segmented",[Y(">",[le("content",{paddingTop:"var(--n-padding-bottom)"})])]),ue("content-soft-segmented",[Y(">",[le("content",`
margin: 0 var(--n-padding-left);
padding: var(--n-padding-bottom) 0;
`)])]),ue("footer-segmented",[Y(">",[le("footer",{paddingTop:"var(--n-padding-bottom)"})])]),ue("footer-soft-segmented",[Y(">",[le("footer",`
padding: var(--n-padding-bottom) 0;
margin: 0 var(--n-padding-left);
`)])]),Y(">",[ne("card-header",`
box-sizing: border-box;
display: flex;
align-items: center;
font-size: var(--n-title-font-size);
padding:
var(--n-padding-top)
var(--n-padding-left)
var(--n-padding-bottom)
var(--n-padding-left);
`,[le("main",`
font-weight: var(--n-title-font-weight);
transition: color .3s var(--n-bezier);
flex: 1;
min-width: 0;
color: var(--n-title-text-color);
`),le("extra",`
display: flex;
align-items: center;
font-size: var(--n-font-size);
font-weight: 400;
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`),le("close",`
margin: 0 0 0 8px;
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`)]),le("action",`
box-sizing: border-box;
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
background-clip: padding-box;
background-color: var(--n-action-color);
`),le("content","flex: 1; min-width: 0;"),le("content, footer",`
box-sizing: border-box;
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
font-size: var(--n-font-size);
`,[Y("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),le("action",`
background-color: var(--n-action-color);
padding: var(--n-padding-bottom) var(--n-padding-left);
border-bottom-left-radius: var(--n-border-radius);
border-bottom-right-radius: var(--n-border-radius);
`)]),ne("card-cover",`
overflow: hidden;
width: 100%;
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
`,[Y("img",`
display: block;
width: 100%;
`)]),ue("bordered",`
border: 1px solid var(--n-border-color);
`,[Y("&:target","border-color: var(--n-color-target);")]),ue("action-segmented",[Y(">",[le("action",[Y("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ue("content-segmented, content-soft-segmented",[Y(">",[le("content",{transition:"border-color 0.3s var(--n-bezier)"},[Y("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ue("footer-segmented, footer-soft-segmented",[Y(">",[le("footer",{transition:"border-color 0.3s var(--n-bezier)"},[Y("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ue("embedded",`
background-color: var(--n-color-embedded);
`)]),Mu(ne("card",`
background: var(--n-color-modal);
`,[ue("embedded",`
background-color: var(--n-color-embedded-modal);
`)])),hp(ne("card",`
background: var(--n-color-popover);
`,[ue("embedded",`
background-color: var(--n-color-embedded-popover);
`)]))]),jp={title:String,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},yM=ba(jp),CM=Object.assign(Object.assign({},We.props),jp),Yu=pe({name:"Card",props:CM,setup(e){const t=()=>{const{onClose:c}=e;c&&ar(c)},{inlineThemeDisabled:r,mergedClsPrefixRef:n,mergedRtlRef:o}=gt(e),i=We("Card","-card",xM,Hp,e,n),a=on("Card",o,n),s=R(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:d,textColor:h,titleTextColor:p,titleFontWeight:g,borderColor:v,actionColor:m,borderRadius:b,lineHeight:y,closeIconColor:x,closeIconColorHover:S,closeIconColorPressed:C,closeColorHover:w,closeColorPressed:k,closeBorderRadius:A,closeIconSize:T,closeSize:I,boxShadow:D,colorPopover:B,colorEmbedded:j,colorEmbeddedModal:F,colorEmbeddedPopover:z,[we("padding",c)]:V,[we("fontSize",c)]:oe,[we("titleFontSize",c)]:fe},common:{cubicBezierEaseInOut:ge}}=i.value,{top:U,left:X,bottom:ae}=hl(V);return{"--n-bezier":ge,"--n-border-radius":b,"--n-color":u,"--n-color-modal":f,"--n-color-popover":B,"--n-color-embedded":j,"--n-color-embedded-modal":F,"--n-color-embedded-popover":z,"--n-color-target":d,"--n-text-color":h,"--n-line-height":y,"--n-action-color":m,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":x,"--n-close-icon-color-hover":S,"--n-close-icon-color-pressed":C,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-border-color":v,"--n-box-shadow":D,"--n-padding-top":U,"--n-padding-bottom":ae,"--n-padding-left":X,"--n-font-size":oe,"--n-title-font-size":fe,"--n-close-size":I,"--n-close-icon-size":T,"--n-close-border-radius":A}}),l=r?tr("card",R(()=>e.size[0]),s,e):void 0;return{rtlEnabled:a,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:n,rtlEnabled:o,onRender:i,embedded:a,tag:s,$slots:l}=this;return i==null||i(),$(s,{class:[`${n}-card`,this.themeClass,a&&`${n}-card--embedded`,{[`${n}-card--rtl`]:o,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:r}],style:this.cssVars,role:this.role},nr(l.cover,c=>c&&$("div",{class:`${n}-card-cover`,role:"none"},c)),nr(l.header,c=>c||this.title||this.closable?$("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle},$("div",{class:`${n}-card-header__main`,role:"heading"},c||this.title),nr(l["header-extra"],u=>u&&$("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},u)),this.closable?$(Wa,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),nr(l.default,c=>c&&$("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)),nr(l.footer,c=>c&&[$("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},c)]),nr(l.action,c=>c&&$("div",{class:`${n}-card__action`,role:"none"},c)))}}),cS=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),wM={name:"Carousel",common:be,self:cS},SM=wM,_M={name:"Carousel",common:xe,self:cS},EM=_M,kM={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},uS=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:n,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadiusSmall:h,lineHeight:p}=e;return Object.assign(Object.assign({},kM),{labelLineHeight:p,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadius:h,color:t,colorChecked:l,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:n,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${se(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})},TM={name:"Checkbox",common:be,self:uS},Ua=TM,AM={name:"Checkbox",common:xe,self(e){const{cardColor:t}=e,r=uS(e);return r.color="#0000",r.checkMarkColor=t,r}},Va=AM,dS=e=>{const{borderRadius:t,boxShadow2:r,popoverColor:n,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:r,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:u,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},PM={name:"Cascader",common:be,peers:{InternalSelectMenu:Sl,InternalSelection:Mp,Scrollbar:kr,Checkbox:Ua,Empty:oo},self:dS},$M=PM,IM={name:"Cascader",common:xe,peers:{InternalSelectMenu:_l,InternalSelection:zp,Scrollbar:Lr,Checkbox:Va,Empty:oo},self:dS},DM=IM,BM={name:"Code",common:xe,self(e){const{textColor2:t,fontSize:r,fontWeightStrong:n,textColor3:o}=e;return{textColor:t,fontSize:r,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:o}}},fS=BM,OM=e=>{const{textColor2:t,fontSize:r,fontWeightStrong:n,textColor3:o}=e;return{textColor:t,fontSize:r,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},LM={name:"Code",common:be,self:OM},hS=LM,pS=e=>{const{fontWeight:t,textColor1:r,textColor2:n,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:r,titleTextColorDisabled:o,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:o,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},RM={name:"Collapse",common:be,self:pS},FM=RM,MM={name:"Collapse",common:xe,self:pS},zM=MM,gS=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},NM={name:"CollapseTransition",common:be,self:gS},HM=NM,jM={name:"CollapseTransition",common:xe,self:gS},WM=jM,UM={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:Ks},locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Hs("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},VM=pe({name:"ConfigProvider",alias:["App"],props:UM,setup(e){const t=ze(Ln,null),r=R(()=>{const{theme:p}=e;if(p===null)return;const g=t==null?void 0:t.mergedThemeRef.value;return p===void 0?g:g===void 0?p:Object.assign({},g,p)}),n=R(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const g=t==null?void 0:t.mergedThemeOverridesRef.value;return g===void 0?p:Xi({},g,p)}}}),o=Dr(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=Dr(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=R(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),s=R(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),l=R(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:Ks}),c=R(()=>{var p;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const m of g)v[m.name]=ha(m),(p=m.peers)===null||p===void 0||p.forEach(b=>{b.name in v||(v[b.name]=ha(b))});return v}),u=R(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),d=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),h=R(()=>{const{value:p}=r,{value:g}=n,v=g&&Object.keys(g).length!==0,m=p==null?void 0:p.name;return m?v?`${m}-${Ws(JSON.stringify(n.value))}`:m:v?Ws(JSON.stringify(n.value)):""});return ft(Ln,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:l,mergedLocaleRef:R(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:R(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:R(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:R(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:r,mergedThemeOverridesRef:n,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:o,mergedTheme:r,mergedThemeOverrides:n}},render(){var e,t,r,n;return this.abstract?(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r):$(this.as||this.tag,{class:`${this.mergedClsPrefix||Ks}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),GM={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},mS=pe({name:"Countdown",props:GM,setup(e){let t=null,r=0,n=!1;const o=M(0);Or(()=>{o.value=e.duration});let i=-1;function a(h){return e.duration-r+i-h}function s(h){const p=Math.floor(h/36e5),g=Math.floor(h%36e5/6e4),v=Math.floor(h%6e4/1e3),m=Math.floor(h%1e3);return{hours:p,minutes:g,seconds:v,milliseconds:m}}function l(h){const{hours:p,minutes:g,seconds:v,milliseconds:m}=h,{precision:b}=e;switch(b){case 0:return`${String(p).padStart(2,"0")}:${String(g).padStart(2,"0")}:${String(v).padStart(2,"0")}`;default:return`${String(p).padStart(2,"0")}:${String(g).padStart(2,"0")}:${String(v).padStart(2,"0")}.${String(Math.floor(m/(b===1?100:b===2?10:1))).padStart(b,"0")}`}}const c=()=>{var h;const{precision:p}=e,g=a(performance.now());if(g<=0){o.value=0,u(),n||(n=!0,(h=e.onFinish)===null||h===void 0||h.call(e));return}let v;switch(p){case 3:case 2:v=g%34;break;case 1:v=g%100;break;default:v=g%1e3}o.value=g,t=window.setTimeout(()=>{c()},v)},u=()=>{t!==null&&(window.clearTimeout(t),t=null)};_t(()=>{Or(()=>{if(e.active)i=performance.now(),c();else{const h=performance.now();i!==-1&&(r+=h-i),u()}})}),Ht(()=>{u()});function f(){o.value=e.duration,r=0,i=performance.now(),e.active&&n&&c(),n=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:s,getDisplayValue:l})},render(){const{render:e,precision:t,distance:r,getTimeInfo:n,getDisplayValue:o}=this;let i;switch(t){case 0:i=n(r+999),i.milliseconds=0;break;case 1:i=n(r+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=n(r+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=n(r)}return e?e(i):o(i)}}),qM={name:"Popselect",common:xe,peers:{Popover:Ti,InternalSelectMenu:_l}},vS=qM;function YM(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const KM={name:"Popselect",common:be,peers:{Popover:Fo,InternalSelectMenu:Sl},self:YM},bS=KM;function xS(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const XM={name:"Select",common:be,peers:{InternalSelection:Mp,InternalSelectMenu:Sl},self:xS},yS=XM,QM={name:"Select",common:xe,peers:{InternalSelection:zp,InternalSelectMenu:_l},self:xS},CS=QM,ZM={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},wS=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:n,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:f,heightTiny:d,heightSmall:h,heightMedium:p}=e;return Object.assign(Object.assign({},ZM),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:o,itemTextColorActive:r,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:d,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},JM={name:"Pagination",common:be,peers:{Select:yS,Input:sn,Popselect:bS},self:wS},SS=JM,e9={name:"Pagination",common:xe,peers:{Select:CS,Input:an,Popselect:vS},self(e){const{primaryColor:t,opacity3:r}=e,n=se(t,{alpha:Number(r)}),o=wS(e);return o.itemBorderActive=`1px solid ${n}`,o.itemBorderDisabled="1px solid #0000",o}},_S=e9,ES={padding:"8px 14px"},t9={name:"Tooltip",common:xe,peers:{Popover:Ti},self(e){const{borderRadius:t,boxShadow2:r,popoverColor:n,textColor2:o}=e;return Object.assign(Object.assign({},ES),{borderRadius:t,boxShadow:r,color:n,textColor:o})}},Ku=t9,r9=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},ES),{borderRadius:t,boxShadow:r,color:Pe(n,"rgba(0, 0, 0, .85)"),textColor:n})},n9={name:"Tooltip",common:be,peers:{Popover:Fo},self:r9},El=n9,o9={name:"Ellipsis",common:xe,peers:{Tooltip:Ku}},kS=o9,i9={name:"Ellipsis",common:be,peers:{Tooltip:El}},TS=i9,AS={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},a9={name:"Radio",common:xe,self(e){const{borderColor:t,primaryColor:r,baseColor:n,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:d,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},AS),{labelLineHeight:g,buttonHeightSmall:d,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${se(r,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:r,buttonColor:"#0000",buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${se(r,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${r}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},PS=a9,s9=e=>{const{borderColor:t,primaryColor:r,baseColor:n,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:d,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},AS),{labelLineHeight:g,buttonHeightSmall:d,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${se(r,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${se(r,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})},l9={name:"Radio",common:be,self:s9},Xu=l9,c9={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},$S=e=>{const{primaryColor:t,textColor2:r,dividerColor:n,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,heightSmall:d,heightMedium:h,heightLarge:p,heightHuge:g,textColor3:v,opacityDisabled:m}=e;return Object.assign(Object.assign({},c9),{optionHeightSmall:d,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:g,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:r,prefixColor:r,optionColorHover:o,optionColorActive:se(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})},u9={name:"Dropdown",common:be,peers:{Popover:Fo},self:$S},Wp=u9,d9={name:"Dropdown",common:xe,peers:{Popover:Ti},self(e){const{primaryColorSuppl:t,primaryColor:r,popoverColor:n}=e,o=$S(e);return o.colorInverted=n,o.optionColorActive=se(r,{alpha:.15}),o.optionColorActiveInverted=t,o.optionColorHoverInverted=t,o}},Up=d9,f9={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},IS=e=>{const{cardColor:t,modalColor:r,popoverColor:n,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:u,borderRadius:f,lineHeight:d,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,dividerColor:v,heightSmall:m,opacityDisabled:b,tableColorStriped:y}=e;return Object.assign(Object.assign({},f9),{actionDividerColor:v,lineHeight:d,borderRadius:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,borderColor:Pe(t,v),tdColorHover:Pe(t,s),tdColorStriped:Pe(t,y),thColor:Pe(t,a),thColorHover:Pe(Pe(t,a),s),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:u,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:Pe(r,v),tdColorHoverModal:Pe(r,s),tdColorStripedModal:Pe(r,y),thColorModal:Pe(r,a),thColorHoverModal:Pe(Pe(r,a),s),tdColorModal:r,borderColorPopover:Pe(n,v),tdColorHoverPopover:Pe(n,s),tdColorStripedPopover:Pe(n,y),thColorPopover:Pe(n,a),thColorHoverPopover:Pe(Pe(n,a),s),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:m,opacityLoading:b})},h9={name:"DataTable",common:be,peers:{Button:Tr,Checkbox:Ua,Radio:Xu,Pagination:SS,Scrollbar:kr,Empty:oo,Popover:Fo,Ellipsis:TS,Dropdown:Wp},self:IS},p9=h9,g9={name:"DataTable",common:xe,peers:{Button:Rr,Checkbox:Va,Radio:PS,Pagination:_S,Scrollbar:Lr,Empty:ki,Popover:Ti,Ellipsis:kS,Dropdown:Up},self(e){const t=IS(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},m9=g9,v9=Object.assign(Object.assign({},R2),We.props),Qi=pe({name:"Tooltip",props:v9,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=gt(e),r=We("Tooltip","-tooltip",void 0,El,e,t),n=M(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:r,popoverThemeOverrides:R(()=>r.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return $(NR,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),b9={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},DS="n-radio-group";function x9(e){const t=Cp(e,{mergedSize(b){const{size:y}=e;if(y!==void 0)return y;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return b?b.mergedSize.value:"medium"},mergedDisabled(b){return!!(e.disabled||a!=null&&a.disabledRef.value||b!=null&&b.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:n}=t,o=M(null),i=M(null),a=ze(DS,null),s=M(e.defaultChecked),l=Lt(e,"checked"),c=Nu(l,s),u=Dr(()=>a?a.valueRef.value===e.value:c.value),f=Dr(()=>{const{name:b}=e;if(b!==void 0)return b;if(a)return a.nameRef.value}),d=M(!1);function h(){if(a){const{doUpdateValue:b}=a,{value:y}=e;ar(b,y)}else{const{onUpdateChecked:b,"onUpdate:checked":y}=e,{nTriggerFormInput:x,nTriggerFormChange:S}=t;b&&ar(b,!0),y&&ar(y,!0),x(),S(),s.value=!0}}function p(){n.value||u.value||h()}function g(){p(),o.value&&(o.value.checked=u.value)}function v(){d.value=!1}function m(){d.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:gt(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:n,renderSafeChecked:u,focus:d,mergedSize:r,handleRadioInputChange:g,handleRadioInputBlur:v,handleRadioInputFocus:m}}const y9=ne("radio",`
line-height: var(--n-label-line-height);
outline: none;
position: relative;
user-select: none;
-webkit-user-select: none;
display: inline-flex;
align-items: flex-start;
flex-wrap: nowrap;
font-size: var(--n-font-size);
word-break: break-word;
`,[ue("checked",[le("dot",`
background-color: var(--n-color-active);
`)]),le("dot-wrapper",`
position: relative;
flex-shrink: 0;
flex-grow: 0;
width: var(--n-radio-size);
`),ne("radio-input",`
position: absolute;
border: 0;
border-radius: inherit;
left: 0;
right: 0;
top: 0;
bottom: 0;
opacity: 0;
z-index: 1;
cursor: pointer;
`),le("dot",`
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
height: var(--n-radio-size);
width: var(--n-radio-size);
background: var(--n-color);
box-shadow: var(--n-box-shadow);
border-radius: 50%;
transition:
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
`,[Y("&::before",`
content: "";
opacity: 0;
position: absolute;
left: 4px;
top: 4px;
height: calc(100% - 8px);
width: calc(100% - 8px);
border-radius: 50%;
transform: scale(.8);
background: var(--n-dot-color-active);
transition:
opacity .3s var(--n-bezier),
background-color .3s var(--n-bezier),
transform .3s var(--n-bezier);
`),ue("checked",{boxShadow:"var(--n-box-shadow-active)"},[Y("&::before",`
opacity: 1;
transform: scale(1);
`)])]),le("label",`
color: var(--n-text-color);
padding: var(--n-label-padding);
font-weight: var(--n-label-font-weight);
display: inline-block;
transition: color .3s var(--n-bezier);
`),xr("disabled",`
cursor: pointer;
`,[Y("&:hover",[le("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),ue("focus",[Y("&:not(:active)",[le("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),ue("disabled",`
cursor: not-allowed;
`,[le("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[Y("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),ue("checked",`
opacity: 1;
`)]),le("label",{color:"var(--n-text-color-disabled)"}),ne("radio-input",`
cursor: not-allowed;
`)])]),C9=Object.assign(Object.assign({},We.props),b9),w9=pe({name:"Radio",props:C9,setup(e){const t=x9(e),r=We("Radio","-radio",y9,Xu,e,t.mergedClsPrefix),n=R(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:f,boxShadowActive:d,boxShadowDisabled:h,boxShadowFocus:p,boxShadowHover:g,color:v,colorDisabled:m,colorActive:b,textColor:y,textColorDisabled:x,dotColorActive:S,dotColorDisabled:C,labelPadding:w,labelLineHeight:k,labelFontWeight:A,[we("fontSize",c)]:T,[we("radioSize",c)]:I}}=r.value;return{"--n-bezier":u,"--n-label-line-height":k,"--n-label-font-weight":A,"--n-box-shadow":f,"--n-box-shadow-active":d,"--n-box-shadow-disabled":h,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":v,"--n-color-active":b,"--n-color-disabled":m,"--n-dot-color-active":S,"--n-dot-color-disabled":C,"--n-font-size":T,"--n-radio-size":I,"--n-text-color":y,"--n-text-color-disabled":x,"--n-label-padding":w}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=gt(e),s=on("Radio",a,i),l=o?tr("radio",R(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:o?void 0:n,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:r,label:n}=this;return r==null||r(),$("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},$("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),$("div",{class:`${t}-radio__dot-wrapper`}," ",$("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),nr(e.default,o=>!o&&!n?null:$("div",{ref:"labelRef",class:`${t}-radio__label`},o||n)))}}),S9=ne("radio-group",`
display: inline-block;
font-size: var(--n-font-size);
`,[le("splitor",`
display: inline-block;
vertical-align: bottom;
width: 1px;
transition:
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier);
background: var(--n-button-border-color);
`,[ue("checked",{backgroundColor:"var(--n-button-border-color-active)"}),ue("disabled",{opacity:"var(--n-opacity-disabled)"})]),ue("button-group",`
white-space: nowrap;
height: var(--n-height);
line-height: var(--n-height);
`,[ne("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),le("splitor",{height:"var(--n-height)"})]),ne("radio-button",`
vertical-align: bottom;
outline: none;
position: relative;
user-select: none;
-webkit-user-select: none;
display: inline-block;
box-sizing: border-box;
padding-left: 14px;
padding-right: 14px;
white-space: nowrap;
transition:
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
background: var(--n-button-color);
color: var(--n-button-text-color);
border-top: 1px solid var(--n-button-border-color);
border-bottom: 1px solid var(--n-button-border-color);
`,[ne("radio-input",`
pointer-events: none;
position: absolute;
border: 0;
border-radius: inherit;
left: 0;
right: 0;
top: 0;
bottom: 0;
opacity: 0;
z-index: 1;
`),le("state-border",`
z-index: 1;
pointer-events: none;
position: absolute;
box-shadow: var(--n-button-box-shadow);
transition: box-shadow .3s var(--n-bezier);
left: -1px;
bottom: -1px;
right: -1px;
top: -1px;
`),Y("&:first-child",`
border-top-left-radius: var(--n-button-border-radius);
border-bottom-left-radius: var(--n-button-border-radius);
border-left: 1px solid var(--n-button-border-color);
`,[le("state-border",`
border-top-left-radius: var(--n-button-border-radius);
border-bottom-left-radius: var(--n-button-border-radius);
`)]),Y("&:last-child",`
border-top-right-radius: var(--n-button-border-radius);
border-bottom-right-radius: var(--n-button-border-radius);
border-right: 1px solid var(--n-button-border-color);
`,[le("state-border",`
border-top-right-radius: var(--n-button-border-radius);
border-bottom-right-radius: var(--n-button-border-radius);
`)]),xr("disabled",`
cursor: pointer;
`,[Y("&:hover",[le("state-border",`
transition: box-shadow .3s var(--n-bezier);
box-shadow: var(--n-button-box-shadow-hover);
`),xr("checked",{color:"var(--n-button-text-color-hover)"})]),ue("focus",[Y("&:not(:active)",[le("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),ue("checked",`
background: var(--n-button-color-active);
color: var(--n-button-text-color-active);
border-color: var(--n-button-border-color-active);
`),ue("disabled",`
cursor: not-allowed;
opacity: var(--n-opacity-disabled);
`)])]);function _9(e,t,r){var n;const o=[];let i=!1;for(let a=0;a<e.length;++a){const s=e[a],l=(n=s.type)===null||n===void 0?void 0:n.name;l==="RadioButton"&&(i=!0);const c=s.props;if(l!=="RadioButton"){o.push(s);continue}if(a===0)o.push(s);else{const u=o[o.length-1].props,f=t===u.value,d=u.disabled,h=t===c.value,p=c.disabled,g=(f?2:0)+(d?0:1),v=(h?2:0)+(p?0:1),m={[`${r}-radio-group__splitor--disabled`]:d,[`${r}-radio-group__splitor--checked`]:f},b={[`${r}-radio-group__splitor--disabled`]:p,[`${r}-radio-group__splitor--checked`]:h},y=g<v?b:m;o.push($("div",{class:[`${r}-radio-group__splitor`,y]}),s)}}return{children:o,isButtonGroup:i}}const E9=Object.assign(Object.assign({},We.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),k9=pe({name:"RadioGroup",props:E9,setup(e){const t=M(null),{mergedSizeRef:r,mergedDisabledRef:n,nTriggerFormChange:o,nTriggerFormInput:i,nTriggerFormBlur:a,nTriggerFormFocus:s}=Cp(e),{mergedClsPrefixRef:l,inlineThemeDisabled:c,mergedRtlRef:u}=gt(e),f=We("Radio","-radio-group",S9,Xu,e,l),d=M(e.defaultValue),h=Lt(e,"value"),p=Nu(h,d);function g(S){const{onUpdateValue:C,"onUpdate:value":w}=e;C&&ar(C,S),w&&ar(w,S),d.value=S,o(),i()}function v(S){const{value:C}=t;C&&(C.contains(S.relatedTarget)||s())}function m(S){const{value:C}=t;C&&(C.contains(S.relatedTarget)||a())}ft(DS,{mergedClsPrefixRef:l,nameRef:Lt(e,"name"),valueRef:p,disabledRef:n,mergedSizeRef:r,doUpdateValue:g});const b=on("Radio",u,l),y=R(()=>{const{value:S}=r,{common:{cubicBezierEaseInOut:C},self:{buttonBorderColor:w,buttonBorderColorActive:k,buttonBorderRadius:A,buttonBoxShadow:T,buttonBoxShadowFocus:I,buttonBoxShadowHover:D,buttonColor:B,buttonColorActive:j,buttonTextColor:F,buttonTextColorActive:z,buttonTextColorHover:V,opacityDisabled:oe,[we("buttonHeight",S)]:fe,[we("fontSize",S)]:ge}}=f.value;return{"--n-font-size":ge,"--n-bezier":C,"--n-button-border-color":w,"--n-button-border-color-active":k,"--n-button-border-radius":A,"--n-button-box-shadow":T,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":D,"--n-button-color":B,"--n-button-color-active":j,"--n-button-text-color":F,"--n-button-text-color-hover":V,"--n-button-text-color-active":z,"--n-height":fe,"--n-opacity-disabled":oe}}),x=c?tr("radio-group",R(()=>r.value[0]),y,e):void 0;return{selfElRef:t,rtlEnabled:b,mergedClsPrefix:l,mergedValue:p,handleFocusout:m,handleFocusin:v,cssVars:c?void 0:y,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:r,handleFocusin:n,handleFocusout:o}=this,{children:i,isButtonGroup:a}=_9(va(dp(this)),t,r);return(e=this.onRender)===null||e===void 0||e.call(this),$("div",{onFocusin:n,onFocusout:o,ref:"selfElRef",class:[`${r}-radio-group`,this.rtlEnabled&&`${r}-radio-group--rtl`,this.themeClass,a&&`${r}-radio-group--button-group`],style:this.cssVars},i)}}),BS=e=>{const{textColorBase:t,opacity1:r,opacity2:n,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:r,opacity2Depth:n,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},T9={name:"Icon",common:be,self:BS},OS=T9,A9={name:"Icon",common:xe,self:BS},P9=A9,$9=ne("icon",`
height: 1em;
width: 1em;
line-height: 1em;
text-align: center;
display: inline-block;
position: relative;
fill: currentColor;
transform: translateZ(0);
`,[ue("color-transition",{transition:"color .3s var(--n-bezier)"}),ue("depth",{color:"var(--n-color)"},[Y("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),Y("svg",{height:"1em",width:"1em"})]),I9=Object.assign(Object.assign({},We.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Sa=pe({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:I9,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=gt(e),n=We("Icon","-icon",$9,OS,e,t),o=R(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:s},self:l}=n.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:u}=l;return{"--n-bezier":s,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=r?tr("icon",R(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:R(()=>{const{size:a,color:s}=e;return{fontSize:Cc(a),color:s}}),cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:n,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Hs("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),$("i",On(this.$attrs,{role:"img",class:[`${n}-icon`,a,{[`${n}-icon--depth`]:r,[`${n}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?$(o):this.$slots)}}),D9={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},LS=e=>{const{popoverColor:t,textColor2:r,primaryColor:n,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},D9),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:r,itemTextColorActive:n,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:u})},B9={name:"TimePicker",common:be,peers:{Scrollbar:kr,Button:Tr,Input:sn},self:LS},RS=B9,O9={name:"TimePicker",common:xe,peers:{Scrollbar:Lr,Button:Rr,Input:an},self:LS},FS=O9,L9={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"},MS=e=>{const{hoverColor:t,fontSize:r,textColor2:n,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:u,dividerColor:f,boxShadow2:d,borderRadius:h,fontWeightStrong:p}=e;return Object.assign(Object.assign({},L9),{itemFontSize:r,calendarDaysFontSize:r,calendarTitleFontSize:r,itemTextColor:n,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:se(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:n,arrowColor:l,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:d,panelBorderRadius:h,calendarTitleFontWeight:p,scrollItemBorderRadius:h,iconColor:l,iconColorDisabled:c})},R9={name:"DatePicker",common:be,peers:{Input:sn,Button:Tr,TimePicker:RS,Scrollbar:kr},self:MS},F9=R9,M9={name:"DatePicker",common:xe,peers:{Input:an,Button:Rr,TimePicker:FS,Scrollbar:Lr},self(e){const{popoverColor:t,hoverColor:r,primaryColor:n}=e,o=MS(e);return o.itemColorDisabled=Pe(t,r),o.itemColorIncluded=se(n,{alpha:.15}),o.itemColorHover=Pe(t,r),o}},z9=M9;var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function N9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function H9(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}const j9={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},zS=e=>{const{tableHeaderColor:t,textColor2:r,textColor1:n,cardColor:o,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:h}=e;return Object.assign(Object.assign({},j9),{lineHeight:u,fontSizeSmall:f,fontSizeMedium:d,fontSizeLarge:h,titleTextColor:n,thColor:Pe(o,t),thColorModal:Pe(i,t),thColorPopover:Pe(a,t),thTextColor:n,thFontWeight:c,tdTextColor:r,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:Pe(o,s),borderColorModal:Pe(i,s),borderColorPopover:Pe(a,s),borderRadius:l})},W9={name:"Descriptions",common:be,self:zS},U9=W9,V9={name:"Descriptions",common:xe,self:zS},G9=V9,q9={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},NS=e=>{const{textColor1:t,textColor2:r,modalColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:h,dividerColor:p,borderRadius:g,fontWeightStrong:v,lineHeight:m,fontSize:b}=e;return Object.assign(Object.assign({},q9),{fontSize:b,lineHeight:m,border:`1px solid ${p}`,titleTextColor:t,textColor:r,color:n,closeColorHover:s,closeColorPressed:l,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:h,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:g,titleFontWeight:v})},Y9={name:"Dialog",common:be,peers:{Button:Tr},self:NS},Vp=Y9,K9={name:"Dialog",common:xe,peers:{Button:Rr},self:NS},HS=K9,Qu={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},jS=ba(Qu),X9=Y([ne("dialog",`
--n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
word-break: break-word;
line-height: var(--n-line-height);
position: relative;
background: var(--n-color);
color: var(--n-text-color);
box-sizing: border-box;
margin: auto;
border-radius: var(--n-border-radius);
padding: var(--n-padding);
transition:
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[le("icon",{color:"var(--n-icon-color)"}),ue("bordered",{border:"var(--n-border)"}),ue("icon-top",[le("close",{margin:"var(--n-close-margin)"}),le("icon",{margin:"var(--n-icon-margin)"}),le("content",{textAlign:"center"}),le("title",{justifyContent:"center"}),le("action",{justifyContent:"center"})]),ue("icon-left",[le("icon",{margin:"var(--n-icon-margin)"}),ue("closable",[le("title",`
padding-right: calc(var(--n-close-size) + 6px);
`)])]),le("close",`
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
z-index: 1;
`),le("content",`
font-size: var(--n-font-size);
margin: var(--n-content-margin);
position: relative;
word-break: break-word;
`,[ue("last","margin-bottom: 0;")]),le("action",`
display: flex;
justify-content: flex-end;
`,[Y("> *:not(:last-child)",`
margin-right: var(--n-action-space);
`)]),le("icon",`
font-size: var(--n-icon-size);
transition: color .3s var(--n-bezier);
`),le("title",`
transition: color .3s var(--n-bezier);
display: flex;
align-items: center;
font-size: var(--n-title-font-size);
font-weight: var(--n-title-font-weight);
color: var(--n-title-text-color);
`),ne("dialog-icon-container",`
display: flex;
justify-content: center;
`)]),Mu(ne("dialog",`
width: 446px;
max-width: calc(100vw - 32px);
`)),ne("dialog",[cw(`
width: 446px;
max-width: calc(100vw - 32px);
`)])]),Q9={default:()=>$(Ca,null),info:()=>$(Ca,null),success:()=>$(Cl,null),warning:()=>$(wl,null),error:()=>$(yl,null)},WS=pe({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},We.props),Qu),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=gt(e),i=on("Dialog",o,r),a=R(()=>{var h,p;const{iconPlacement:g}=e;return g||((p=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function s(h){const{onPositiveClick:p}=e;p&&p(h)}function l(h){const{onNegativeClick:p}=e;p&&p(h)}function c(){const{onClose:h}=e;h&&h()}const u=We("Dialog","-dialog",X9,Vp,e,r),f=R(()=>{const{type:h}=e,p=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:v,lineHeight:m,border:b,titleTextColor:y,textColor:x,color:S,closeBorderRadius:C,closeColorHover:w,closeColorPressed:k,closeIconColor:A,closeIconColorHover:T,closeIconColorPressed:I,closeIconSize:D,borderRadius:B,titleFontWeight:j,titleFontSize:F,padding:z,iconSize:V,actionSpace:oe,contentMargin:fe,closeSize:ge,[p==="top"?"iconMarginIconTop":"iconMargin"]:U,[p==="top"?"closeMarginIconTop":"closeMargin"]:X,[we("iconColor",h)]:ae}}=u.value,Z=hl(U);return{"--n-font-size":v,"--n-icon-color":ae,"--n-bezier":g,"--n-close-margin":X,"--n-icon-margin-top":Z.top,"--n-icon-margin-right":Z.right,"--n-icon-margin-bottom":Z.bottom,"--n-icon-margin-left":Z.left,"--n-icon-size":V,"--n-close-size":ge,"--n-close-icon-size":D,"--n-close-border-radius":C,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-close-icon-color":A,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":I,"--n-color":S,"--n-text-color":x,"--n-border-radius":B,"--n-padding":z,"--n-line-height":m,"--n-border":b,"--n-content-margin":fe,"--n-title-font-size":F,"--n-title-font-weight":j,"--n-title-text-color":y,"--n-action-space":oe}}),d=n?tr("dialog",R(()=>`${e.type[0]}${a.value[0]}`),f,e):void 0;return{mergedClsPrefix:r,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:l,handleCloseClick:c,cssVars:n?void 0:f,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:r,cssVars:n,closable:o,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:d,handlePositiveClick:h,handleNegativeClick:p,mergedTheme:g,loading:v,type:m,mergedClsPrefix:b}=this;(e=this.onRender)===null||e===void 0||e.call(this);const y=i?$(dr,{clsPrefix:b,class:`${b}-dialog__icon`},{default:()=>nr(this.$slots.icon,S=>S||(this.icon?Nr(this.icon):Q9[this.type]()))}):null,x=nr(this.$slots.action,S=>S||u||c||l?$("div",{class:`${b}-dialog__action`},S||(l?[Nr(l)]:[this.negativeText&&$(gn,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:p},d),{default:()=>Nr(this.negativeText)}),this.positiveText&&$(gn,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:v,loading:v,onClick:h},f),{default:()=>Nr(this.positiveText)})])):null);return $("div",{class:[`${b}-dialog`,this.themeClass,this.closable&&`${b}-dialog--closable`,`${b}-dialog--icon-${r}`,t&&`${b}-dialog--bordered`,this.rtlEnabled&&`${b}-dialog--rtl`],style:n,role:"dialog"},o?nr(this.$slots.close,S=>{const C=[`${b}-dialog__close`,this.rtlEnabled&&`${b}-dialog--rtl`];return S?$("div",{class:C},S):$(Wa,{clsPrefix:b,class:C,onClick:this.handleCloseClick})}):null,i&&r==="top"?$("div",{class:`${b}-dialog-icon-container`},y):null,$("div",{class:`${b}-dialog__title`},i&&r==="left"?y:null,Xc(this.$slots.header,()=>[Nr(a)])),$("div",{class:[`${b}-dialog__content`,x?"":`${b}-dialog__content--last`]},Xc(this.$slots.default,()=>[Nr(s)])),x)}}),US="n-dialog-provider",VS="n-dialog-api",Z9="n-dialog-reactive-list",GS=e=>{const{modalColor:t,textColor2:r,boxShadow3:n}=e;return{color:t,textColor:r,boxShadow:n}},J9={name:"Modal",common:be,peers:{Scrollbar:kr,Dialog:Vp,Card:Hp},self:GS},qS=J9,e7={name:"Modal",common:xe,peers:{Scrollbar:Lr,Dialog:HS,Card:lS},self:GS},t7=e7,Gp=Object.assign(Object.assign({},jp),Qu),r7=ba(Gp),n7=pe({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Gp),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=M(null),r=M(null),n=M(e.show),o=M(null),i=M(null);Je(Lt(e,"show"),v=>{v&&(n.value=!0)}),qA(R(()=>e.blockScroll&&n.value));const a=ze(gw);function s(){if(a.transformOriginRef.value==="center")return"";const{value:v}=o,{value:m}=i;if(v===null||m===null)return"";if(r.value){const b=r.value.containerScrollTop;return`${v}px ${m+b}px`}return""}function l(v){if(a.transformOriginRef.value==="center")return;const m=a.getMousePosition();if(!m||!r.value)return;const b=r.value.containerScrollTop,{offsetLeft:y,offsetTop:x}=v;if(m){const S=m.y,C=m.x;o.value=-(y-C),i.value=-(x-S-b)}v.style.transformOrigin=s()}function c(v){Qt(()=>{l(v)})}function u(v){v.style.transformOrigin=s(),e.onBeforeLeave()}function f(){n.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function d(){const{onClose:v}=e;v&&v()}function h(){e.onNegativeClick()}function p(){e.onPositiveClick()}const g=M(null);return Je(g,v=>{v&&Qt(()=>{const m=v.el;m&&t.value!==m&&(t.value=m)})}),ft(gp,t),ft(mp,null),ft(vp,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:r,displayed:n,childNodeRef:g,handlePositiveClick:p,handleNegativeClick:h,handleCloseClick:d,handleAfterLeave:f,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:r,handleAfterLeave:n,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=$0(e),!s){Hs("modal","default slot is empty");return}s=tn(s),s.props=On({class:`${a}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?lr($("div",{role:"none",class:`${a}-modal-body-wrapper`},$(qu,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),$($w,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return $(_r,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:r,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:o},{default:()=>{const u=[[gi,this.show]],{onClickoutside:f}=this;return f&&u.push([L0,this.onClickoutside,void 0,{capture:!0}]),lr(this.preset==="confirm"||this.preset==="dialog"?$(WS,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},ma(this.$props,jS),{"aria-modal":"true"}),e):this.preset==="card"?$(Yu,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},ma(this.$props,yM),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,u)}})}})]}})),[[gi,this.displayDirective==="if"||this.displayed||this.show]]):null}}),o7=Y([ne("modal-container",`
position: fixed;
left: 0;
top: 0;
height: 0;
width: 0;
display: flex;
`),ne("modal-mask",`
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, .4);
`,[wa({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),ne("modal-body-wrapper",`
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: visible;
`,[ne("modal-scroll-content",`
min-height: 100%;
display: flex;
position: relative;
`)]),ne("modal",`
position: relative;
align-self: center;
color: var(--n-text-color);
margin: auto;
box-shadow: var(--n-box-shadow);
`,[B2({duration:".25s",enterScale:".5"})])]),i7=Object.assign(Object.assign(Object.assign(Object.assign({},We.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Gp),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),Ai=pe({name:"Modal",inheritAttrs:!1,props:i7,setup(e){const t=M(null),{mergedClsPrefixRef:r,namespaceRef:n,inlineThemeDisabled:o}=gt(e),i=We("Modal","-modal",o7,qS,e,r),a=hw(64),s=fw(),l=Ha(),c=e.internalDialog?ze(US,null):null,u=e.internalModal?ze(JT,null):null,f=YA();function d(C){const{onUpdateShow:w,"onUpdate:show":k,onHide:A}=e;w&&ar(w,C),k&&ar(k,C),A&&!C&&A(C)}function h(){const{onClose:C}=e;C?Promise.resolve(C()).then(w=>{w!==!1&&d(!1)}):d(!1)}function p(){const{onPositiveClick:C}=e;C?Promise.resolve(C()).then(w=>{w!==!1&&d(!1)}):d(!1)}function g(){const{onNegativeClick:C}=e;C?Promise.resolve(C()).then(w=>{w!==!1&&d(!1)}):d(!1)}function v(){const{onBeforeLeave:C,onBeforeHide:w}=e;C&&ar(C),w&&w()}function m(){const{onAfterLeave:C,onAfterHide:w}=e;C&&ar(C),w&&w()}function b(C){var w;const{onMaskClick:k}=e;k&&k(C),e.maskClosable&&!((w=t.value)===null||w===void 0)&&w.contains(Ns(C))&&d(!1)}function y(C){var w;(w=e.onEsc)===null||w===void 0||w.call(e),e.show&&e.closeOnEsc&&BT(C)&&!f.value&&d(!1)}ft(gw,{getMousePosition:()=>{const C=c||u;if(C){const{clickedRef:w,clickedPositionRef:k}=C;if(w.value&&k.value)return k.value}return a.value?s.value:null},mergedClsPrefixRef:r,mergedThemeRef:i,isMountedRef:l,appearRef:Lt(e,"internalAppear"),transformOriginRef:Lt(e,"transformOrigin")});const x=R(()=>{const{common:{cubicBezierEaseOut:C},self:{boxShadow:w,color:k,textColor:A}}=i.value;return{"--n-bezier-ease-out":C,"--n-box-shadow":w,"--n-color":k,"--n-text-color":A}}),S=o?tr("theme-class",void 0,x,e):void 0;return{mergedClsPrefix:r,namespace:n,isMounted:l,containerRef:t,presetProps:R(()=>ma(e,r7)),handleEsc:y,handleAfterLeave:m,handleClickoutside:b,handleBeforeLeave:v,doUpdateShow:d,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:h,cssVars:o?void 0:x,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){const{mergedClsPrefix:e}=this;return $(bp,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:r}=this;return lr($("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},$(n7,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:r?void 0:this.handleClickoutside,renderMask:r?()=>{var n;return $(_r,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?$("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Hu,{zIndex:this.zIndex,enabled:this.show}]])}})}}),a7=Object.assign(Object.assign({},Qu),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),s7=pe({name:"DialogEnvironment",props:Object.assign(Object.assign({},a7),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=M(!0);function r(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:d}=e;u&&u(f),d&&d()}function n(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&l()}):l()}function o(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&l()}):l()}function a(u){const{onMaskClick:f,maskClosable:d}=e;f&&(f(u),d&&l())}function s(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:r,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:n,handleMaskClick:a,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:r,handleCloseClick:n,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return $(Ai,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>$(WS,Object.assign({},ma(this.$props,jS),{style:this.internalStyle,onClose:n,onNegativeClick:r,onPositiveClick:e}))})}}),l7={injectionKey:String,to:[String,Object]},c7=pe({name:"DialogProvider",props:l7,setup(){const e=M([]),t={};function r(s={}){const l=Ru(),c=nn(Object.assign(Object.assign({},s),{key:l,destroy:()=>{t[`n-dialog-${l}`].hide()}}));return e.value.push(c),c}const n=["info","success","warning","error"].map(s=>l=>r(Object.assign(Object.assign({},l),{type:s})));function o(s){const{value:l}=e;l.splice(l.findIndex(c=>c.key===s),1)}function i(){Object.values(t).forEach(s=>{s.hide()})}const a={create:r,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return ft(VS,a),ft(US,{clickedRef:hw(64),clickedPositionRef:fw()}),ft(Z9,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return $(ot,null,[this.dialogList.map(r=>$(s7,fp(r,["destroy","style"],{internalStyle:r.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${r.key}`]:this.dialogInstRefs[`n-dialog-${r.key}`]=n},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function YS(){const e=ze(VS,null);return e===null&&pl("use-dialog","No outer <n-dialog-provider /> founded."),e}const KS=e=>{const{textColor1:t,dividerColor:r,fontWeightStrong:n}=e;return{textColor:t,color:r,fontWeight:n}},u7={name:"Divider",common:be,self:KS},d7=u7,f7={name:"Divider",common:xe,self:KS},h7=f7,XS=e=>{const{modalColor:t,textColor1:r,textColor2:n,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:r,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:h,resizableTriggerColorHover:p}},p7={name:"Drawer",common:be,peers:{Scrollbar:kr},self:XS},g7=p7,m7={name:"Drawer",common:xe,peers:{Scrollbar:Lr},self:XS},v7=m7,QS={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},b7={name:"DynamicInput",common:xe,peers:{Input:an,Button:Rr},self(){return QS}},x7=b7,y7=()=>QS,C7={name:"DynamicInput",common:be,peers:{Input:sn,Button:Tr},self:y7},w7=C7,ZS={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},S7={name:"Space",self(){return ZS}},JS=S7,_7=()=>ZS,E7={name:"Space",self:_7},qp=E7;let of;const k7=()=>{if(!eo)return!0;if(of===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),of=t}return of},T7=Object.assign(Object.assign({},We.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Zu=pe({name:"Space",props:T7,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=gt(e),n=We("Space","-space",void 0,qp,e,t),o=on("Space",r,t);return{useGap:k7(),rtlEnabled:o,mergedClsPrefix:t,margin:R(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[we("gap",i)]:a}}=n.value,{row:s,col:l}=Zk(a);return{horizontal:Nm(l),vertical:Nm(s)}})}},render(){const{vertical:e,reverse:t,align:r,inline:n,justify:o,itemClass:i,itemStyle:a,margin:s,wrap:l,mergedClsPrefix:c,rtlEnabled:u,useGap:f,wrapItem:d,internalUseGap:h}=this,p=va(dp(this),!1);if(!p.length)return null;const g=`${s.horizontal}px`,v=`${s.horizontal/2}px`,m=`${s.vertical}px`,b=`${s.vertical/2}px`,y=p.length-1,x=o.startsWith("space-");return $("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:(()=>e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row")(),justifyContent:["start","end"].includes(o)?"flex-"+o:o,flexWrap:!l||e?"nowrap":"wrap",marginTop:f||e?"":`-${b}`,marginBottom:f||e?"":`-${b}`,alignItems:r,gap:f?`${s.vertical}px ${s.horizontal}px`:""}},!d&&(f||h)?p:p.map((S,C)=>S.type===yr?S:$("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},f?"":e?{marginBottom:C!==y?m:""}:u?{marginLeft:x?o==="space-between"&&C===y?"":v:C!==y?g:"",marginRight:x?o==="space-between"&&C===0?"":v:"",paddingTop:b,paddingBottom:b}:{marginRight:x?o==="space-between"&&C===y?"":v:C!==y?g:"",marginLeft:x?o==="space-between"&&C===0?"":v:"",paddingTop:b,paddingBottom:b}]},S)))}}),A7={name:"DynamicTags",common:xe,peers:{Input:an,Button:Rr,Tag:M2,Space:JS},self(){return{inputWidth:"64px"}}},P7=A7,$7={name:"DynamicTags",common:be,peers:{Input:sn,Button:Tr,Tag:Fp,Space:qp},self(){return{inputWidth:"64px"}}},I7=$7,D7={name:"Element",common:xe},B7=D7,O7={name:"Element",common:be},L7=O7,e_={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},R7={name:"Flex",self(){return e_}},F7=R7,M7=()=>e_,z7={name:"Flex",self:M7},N7=z7,H7={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},t_=e=>{const{heightSmall:t,heightMedium:r,heightLarge:n,textColor1:o,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},H7),{blankHeightSmall:t,blankHeightMedium:r,blankHeightLarge:n,lineHeight:s,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})},j7={name:"Form",common:be,self:t_},r_=j7,W7={name:"Form",common:xe,self:t_},U7=W7,V7=ne("form",[ue("inline",`
width: 100%;
display: inline-flex;
align-items: flex-start;
align-content: space-around;
`,[ne("form-item",{width:"auto",marginRight:"18px"},[Y("&:last-child",{marginRight:0})])])]),G7="n-form",q7="n-form-item-insts";var Y7=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const K7=Object.assign(Object.assign({},We.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),f1=pe({name:"Form",props:K7,setup(e){const{mergedClsPrefixRef:t}=gt(e);We("Form","-form",V7,r_,e,t);const r={},n=M(void 0),o=l=>{const c=n.value;(c===void 0||l>=c)&&(n.value=l)};function i(l,c=()=>!0){return Y7(this,void 0,void 0,function*(){return yield new Promise((u,f)=>{const d=[];for(const h of ba(r)){const p=r[h];for(const g of p)g.path&&d.push(g.internalValidate(null,c))}Promise.all(d).then(h=>{const p=h.some(m=>!m.valid),g=[],v=[];h.forEach(m=>{var b,y;!((b=m.errors)===null||b===void 0)&&b.length&&g.push(m.errors),!((y=m.warnings)===null||y===void 0)&&y.length&&v.push(m.warnings)}),l&&l(g.length?g:void 0,{warnings:v.length?v:void 0}),p?f(g.length?g:void 0):u({warnings:v.length?v:void 0})})})})}function a(){for(const l of ba(r)){const c=r[l];for(const u of c)u.restoreValidation()}}return ft(G7,{props:e,maxChildLabelWidthRef:n,deriveMaxChildLabelWidth:o}),ft(q7,{formItems:r}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return $("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}}),h1=1,n_="n-grid",o_=1,X7={span:{type:[Number,String],default:o_},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},p1=pe({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:X7,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:r,overflowRef:n,layoutShiftDisabledRef:o}=ze(n_),i=Er();return{overflow:n,itemStyle:r,layoutShiftDisabled:o,mergedXGap:R(()=>qn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=o_,privateShow:s=!0,privateColStart:l=void 0,privateOffset:c=0}=i.vnode.props,{value:u}=t,f=qn(u||0);return{display:s?"":"none",gridColumn:`${l??`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:r,offset:n,mergedXGap:o}=this;return $("div",{style:{gridColumn:`span ${r} / span ${r}`,marginLeft:n?`calc((100% - (${r} - 1) * ${o}) / ${r} * ${n} + ${o} * ${n})`:""}},this.$slots)}return $("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),Q7={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},i_=e=>{const{textColor2:t,successColor:r,infoColor:n,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:d,textColor3:h,borderRadius:p,fontWeightStrong:g,boxShadow2:v,lineHeight:m,fontSize:b}=e;return Object.assign(Object.assign({},Q7),{borderRadius:p,lineHeight:m,fontSize:b,headerFontWeight:g,iconColor:t,iconColorSuccess:r,iconColorInfo:n,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:u,closeColorPressed:f,headerTextColor:d,descriptionTextColor:h,actionTextColor:t,boxShadow:v})},Z7={name:"Notification",common:be,peers:{Scrollbar:kr},self:i_},a_=Z7,J7={name:"Notification",common:xe,peers:{Scrollbar:Lr},self:i_},ez=J7,tz={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},s_=e=>{const{textColor2:t,closeIconColor:r,closeIconColorHover:n,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:h,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},tz),{closeBorderRadius:h,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:f,closeColorHover:p,closeColorPressed:g,closeIconColor:r,closeIconColorHover:n,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:r,closeIconColorHoverInfo:n,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:r,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:r,closeIconColorHoverError:n,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:r,closeIconColorHoverWarning:n,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:r,closeIconColorHoverLoading:n,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:d,borderRadius:h})},rz={name:"Message",common:be,self:s_},l_=rz,nz={name:"Message",common:xe,self:s_},oz=nz,iz={name:"ButtonGroup",common:xe},az=iz,sz={name:"ButtonGroup",common:be},lz=sz,cz={name:"GradientText",common:xe,self(e){const{primaryColor:t,successColor:r,warningColor:n,errorColor:o,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:u,colorStartWarning:n,colorEndWarning:l,colorStartError:o,colorEndError:c,colorStartSuccess:r,colorEndSuccess:s}}},uz=cz,dz=e=>{const{primaryColor:t,successColor:r,warningColor:n,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:se(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:se(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:se(n,{alpha:.6}),colorEndWarning:n,colorStartError:se(o,{alpha:.6}),colorEndError:o,colorStartSuccess:se(r,{alpha:.6}),colorEndSuccess:r}},fz={name:"GradientText",common:be,self:dz},hz=fz,pz={name:"InputNumber",common:xe,peers:{Button:Rr,Input:an},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},gz=pz,mz=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},vz={name:"InputNumber",common:be,peers:{Button:Tr,Input:sn},self:mz},bz=vz,xz={name:"Layout",common:xe,peers:{Scrollbar:Lr},self(e){const{textColor2:t,bodyColor:r,popoverColor:n,cardColor:o,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:r,colorEmbedded:r,headerColor:o,headerColorInverted:o,footerColor:o,footerColorInverted:o,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:o,siderColorInverted:o,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Pe(r,a),siderToggleBarColorHover:Pe(r,s),__invertScrollbar:"false"}}},yz=xz,Cz=e=>{const{baseColor:t,textColor2:r,bodyColor:n,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:r,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:Pe(n,s),siderToggleBarColorHover:Pe(n,l),__invertScrollbar:"true"}},wz={name:"Layout",common:be,peers:{Scrollbar:kr},self:Cz},c_=wz,u_=e=>{const{textColor2:t,cardColor:r,modalColor:n,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:r,colorHover:l,colorModal:n,colorHoverModal:Pe(n,l),colorPopover:o,colorHoverPopover:Pe(o,l),borderColor:i,borderColorModal:Pe(n,i),borderColorPopover:Pe(o,i),borderRadius:a,fontSize:s}},Sz={name:"List",common:be,self:u_},_z=Sz,Ez={name:"List",common:xe,self:u_},kz=Ez,Tz={name:"LoadingBar",common:xe,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},Az=Tz,Pz=e=>{const{primaryColor:t,errorColor:r}=e;return{colorError:r,colorLoading:t,height:"2px"}},$z={name:"LoadingBar",common:be,self:Pz},d_=$z,Iz={name:"Log",common:xe,peers:{Scrollbar:Lr,Code:fS},self(e){const{textColor2:t,inputColor:r,fontSize:n,primaryColor:o}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:r,loaderBorder:"1px solid #0000",loadingColor:o}}},Dz=Iz,Bz=e=>{const{textColor2:t,modalColor:r,borderColor:n,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:r,loaderBorder:`1px solid ${n}`,loadingColor:i}},Oz={name:"Log",common:be,peers:{Scrollbar:kr,Code:hS},self:Bz},Lz=Oz,Rz={name:"Mention",common:xe,peers:{InternalSelectMenu:_l,Input:an},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},Fz=Rz,Mz=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},zz={name:"Mention",common:be,peers:{InternalSelectMenu:Sl,Input:sn},self:Mz},Nz=zz;function Hz(e,t,r,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:r,itemTextColorChildActiveInverted:r,itemTextColorChildActiveHoverInverted:r,itemTextColorActiveInverted:r,itemTextColorActiveHoverInverted:r,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:r,itemTextColorChildActiveHorizontalInverted:r,itemTextColorChildActiveHoverHorizontalInverted:r,itemTextColorActiveHorizontalInverted:r,itemTextColorActiveHoverHorizontalInverted:r,itemIconColorInverted:e,itemIconColorHoverInverted:r,itemIconColorActiveInverted:r,itemIconColorActiveHoverInverted:r,itemIconColorChildActiveInverted:r,itemIconColorChildActiveHoverInverted:r,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:r,itemIconColorActiveHorizontalInverted:r,itemIconColorActiveHoverHorizontalInverted:r,itemIconColorChildActiveHorizontalInverted:r,itemIconColorChildActiveHoverHorizontalInverted:r,arrowColorInverted:e,arrowColorHoverInverted:r,arrowColorActiveInverted:r,arrowColorActiveHoverInverted:r,arrowColorChildActiveInverted:r,arrowColorChildActiveHoverInverted:r,groupTextColorInverted:n}}const f_=e=>{const{borderRadius:t,textColor3:r,primaryColor:n,textColor2:o,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorHover:l,itemColorActive:se(n,{alpha:.1}),itemColorActiveHover:se(n,{alpha:.1}),itemColorActiveCollapsed:se(n,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},Hz("#BBB",n,"#FFF","#AAA"))},jz={name:"Menu",common:be,peers:{Tooltip:El,Dropdown:Wp},self:f_},Wz=jz,Uz={name:"Menu",common:xe,peers:{Tooltip:Ku,Dropdown:Up},self(e){const{primaryColor:t,primaryColorSuppl:r}=e,n=f_(e);return n.itemColorActive=se(t,{alpha:.15}),n.itemColorActiveHover=se(t,{alpha:.15}),n.itemColorActiveCollapsed=se(t,{alpha:.15}),n.itemColorActiveInverted=r,n.itemColorActiveHoverInverted=r,n.itemColorActiveCollapsedInverted=r,n}},Vz=Uz,Gz={titleFontSize:"18px",backSize:"22px"};function h_(e){const{textColor1:t,textColor2:r,textColor3:n,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},Gz),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:r,backColorHover:a,backColorPressed:s,subtitleTextColor:n})}const qz={name:"PageHeader",common:be,self:h_},Yz={name:"PageHeader",common:xe,self:h_},Kz={iconSize:"22px"},p_=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},Kz),{fontSize:t,iconColor:r})},Xz={name:"Popconfirm",common:be,peers:{Button:Tr,Popover:Fo},self:p_},Qz=Xz,Zz={name:"Popconfirm",common:xe,peers:{Button:Rr,Popover:Ti},self:p_},Jz=Zz,g_=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:o,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:n,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},eN={name:"Progress",common:be,self:g_},m_=eN,tN={name:"Progress",common:xe,self(e){const t=g_(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},v_=tN,rN={name:"Rate",common:xe,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},nN=rN,oN=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},iN={name:"Rate",common:be,self:oN},aN=iN,sN={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},b_=e=>{const{textColor2:t,textColor1:r,errorColor:n,successColor:o,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},sN),{lineHeight:s,titleFontWeight:l,titleTextColor:r,textColor:t,iconColorError:n,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},lN={name:"Result",common:be,self:b_},x_=lN,cN={name:"Result",common:xe,self:b_},uN=cN,y_={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},dN={name:"Slider",common:xe,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,modalColor:n,primaryColorSuppl:o,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},y_),{fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:u,handleColor:"#FFF",dotColor:s,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}},fN=dN,hN=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:o,baseColor:i,cardColor:a,modalColor:s,popoverColor:l,borderRadius:c,fontSize:u,opacityDisabled:f}=e;return Object.assign(Object.assign({},y_),{fontSize:u,markFontSize:u,railColor:n,railColorHover:n,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:s,dotColorPopover:l,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},pN={name:"Slider",common:be,self:hN},gN=pN,C_=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:n,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:r,sizeSmall:n,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}},mN={name:"Spin",common:be,self:C_},w_=mN,vN={name:"Spin",common:xe,self:C_},bN=vN,S_=e=>{const{textColor2:t,textColor3:r,fontSize:n,fontWeight:o}=e;return{labelFontSize:n,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},xN={name:"Statistic",common:be,self:S_},yN=xN,CN={name:"Statistic",common:xe,self:S_},wN=CN,SN={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},__=e=>{const{fontWeightStrong:t,baseColor:r,textColorDisabled:n,primaryColor:o,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},SN),{stepHeaderFontWeight:t,indicatorTextColorProcess:r,indicatorTextColorWait:n,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:n,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:o,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})},_N={name:"Steps",common:be,self:__},EN=_N,kN={name:"Steps",common:xe,self:__},TN=kN,E_={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},AN={name:"Switch",common:xe,self(e){const{primaryColorSuppl:t,opacityDisabled:r,borderRadius:n,primaryColor:o,textColor2:i,baseColor:a}=e,s="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},E_),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:r,railColor:s,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${se(o,{alpha:.3})}`})}},PN=AN,$N=e=>{const{primaryColor:t,opacityDisabled:r,borderRadius:n,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},E_),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:r,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${se(t,{alpha:.2})}`})},IN={name:"Switch",common:be,self:$N},DN=IN,BN={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},k_=e=>{const{dividerColor:t,cardColor:r,modalColor:n,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:u,lineHeight:f,fontSizeSmall:d,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},BN),{fontSizeSmall:d,fontSizeMedium:h,fontSizeLarge:p,lineHeight:f,borderRadius:c,borderColor:Pe(r,t),borderColorModal:Pe(n,t),borderColorPopover:Pe(o,t),tdColor:r,tdColorModal:n,tdColorPopover:o,tdColorStriped:Pe(r,a),tdColorStripedModal:Pe(n,a),tdColorStripedPopover:Pe(o,a),thColor:Pe(r,i),thColorModal:Pe(n,i),thColorPopover:Pe(o,i),thTextColor:s,tdTextColor:l,thFontWeight:u})},ON={name:"Table",common:be,self:k_},LN=ON,RN={name:"Table",common:xe,self:k_},FN=RN,MN={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},T_=e=>{const{textColor2:t,primaryColor:r,textColorDisabled:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:u,dividerColor:f,fontWeight:d,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:v}=e;return Object.assign(Object.assign({},MN),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:r,tabTextColorHoverLine:r,tabTextColorDisabledLine:n,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:h,tabTextColorActiveBar:r,tabTextColorHoverBar:r,tabTextColorDisabledBar:n,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:r,tabTextColorDisabledCard:n,barColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:p,tabColor:c,tabColorSegment:u,tabBorderColor:f,tabFontWeightActive:d,tabFontWeight:d,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:v})},zN={name:"Tabs",common:be,self:T_},NN=zN,HN={name:"Tabs",common:xe,self(e){const t=T_(e),{inputColor:r}=e;return t.colorSegment=r,t.tabColorSegment=r,t}},jN=HN,A_=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:n,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:r,titleFontWeight:n}},WN={name:"Thing",common:be,self:A_},UN=WN,VN={name:"Thing",common:xe,self:A_},GN=VN,P_={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},qN={name:"Timeline",common:xe,self(e){const{textColor3:t,infoColorSuppl:r,errorColorSuppl:n,successColorSuppl:o,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},P_),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:n,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},YN=qN,KN=e=>{const{textColor3:t,infoColor:r,errorColor:n,successColor:o,warningColor:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},P_),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:n,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})},XN={name:"Timeline",common:be,self:KN},QN=XN,$_={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},ZN={name:"Transfer",common:xe,peers:{Checkbox:Va,Scrollbar:Lr,Input:an,Empty:ki,Button:Rr},self(e){const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:n,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:d,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:v,closeIconColor:m,closeIconColorHover:b,closeIconColorPressed:y,dividerColor:x}=e;return Object.assign(Object.assign({},$_),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:n,fontSizeLarge:r,borderRadius:s,dividerColor:x,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:u,titleTextColorDisabled:f,extraTextColor:h,extraTextColorDisabled:f,itemTextColor:d,itemTextColorDisabled:f,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:v,closeIconColor:m,closeIconColorHover:b,closeIconColorPressed:y})}},JN=ZN,eH=e=>{const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:n,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:s,cardColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:d,textColor3:h,borderColor:p,hoverColor:g,closeColorHover:v,closeColorPressed:m,closeIconColor:b,closeIconColorHover:y,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},$_),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:n,fontSizeLarge:r,borderRadius:s,dividerColor:p,borderColor:p,listColor:l,headerColor:Pe(l,c),titleTextColor:u,titleTextColorDisabled:f,extraTextColor:h,extraTextColorDisabled:f,itemTextColor:d,itemTextColorDisabled:f,itemColorPending:g,titleFontWeight:t,closeColorHover:v,closeColorPressed:m,closeIconColor:b,closeIconColorHover:y,closeIconColorPressed:x})},tH={name:"Transfer",common:be,peers:{Checkbox:Ua,Scrollbar:kr,Input:sn,Empty:oo,Button:Tr},self:eH},rH=tH,I_=e=>{const{borderRadiusSmall:t,dividerColor:r,hoverColor:n,pressedColor:o,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:o,nodeColorActive:se(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:r}},nH={name:"Tree",common:be,peers:{Checkbox:Ua,Scrollbar:kr,Empty:oo},self:I_},D_=nH,oH={name:"Tree",common:xe,peers:{Checkbox:Va,Scrollbar:Lr,Empty:ki},self(e){const{primaryColor:t}=e,r=I_(e);return r.nodeColorActive=se(t,{alpha:.15}),r}},B_=oH,iH={name:"TreeSelect",common:xe,peers:{Tree:B_,Empty:ki,InternalSelection:zp}},aH=iH,sH=e=>{const{popoverColor:t,boxShadow2:r,borderRadius:n,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:r,menuBorderRadius:n,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},lH={name:"TreeSelect",common:be,peers:{Tree:D_,Empty:oo,InternalSelection:Mp},self:sH},cH=lH,uH={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},O_=e=>{const{primaryColor:t,textColor2:r,borderColor:n,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:f,warningColor:d,errorColor:h,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},uH),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:n,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:r,liLineHeight:o,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:r,pTextColor1Depth:c,pTextColor2Depth:r,pTextColor3Depth:u,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:h,headerBarColorWarning:d,headerBarColorSuccess:p,textColor:r,textColor1Depth:c,textColor2Depth:r,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:p,textColorWarning:d,textColorError:h,codeTextColor:r,codeColor:g,codeBorder:"1px solid #0000"})},dH={name:"Typography",common:be,self:O_},fH=dH,hH={name:"Typography",common:xe,self:O_},pH=hH,L_=e=>{const{iconColor:t,primaryColor:r,errorColor:n,textColor2:o,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:u,borderRadius:f,fontSize:d}=e;return{fontSize:d,lineHeight:u,borderRadius:f,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:c,itemColorHoverError:se(n,{alpha:.06}),itemTextColor:o,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}},gH={name:"Upload",common:be,peers:{Button:Tr,Progress:m_},self:L_},mH=gH,vH={name:"Upload",common:xe,peers:{Button:Rr,Progress:v_},self(e){const{errorColor:t}=e,r=L_(e);return r.itemColorHoverError=se(t,{alpha:.09}),r}},bH=vH,xH={name:"Watermark",common:xe,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},yH=xH,CH={name:"Watermark",common:be,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},wH=CH,SH={name:"Row",common:be},_H=SH,EH={name:"Row",common:xe},kH=EH,TH=e=>{const{popoverColor:t,dividerColor:r,borderRadius:n}=e;return{color:t,buttonBorderColor:r,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}},AH={name:"FloatButtonGroup",common:be,self:TH},PH=AH,$H={name:"FloatButton",common:xe,self(e){const{popoverColor:t,textColor2:r,buttonColor2Hover:n,buttonColor2Pressed:o,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,baseColor:l,borderRadius:c}=e;return{color:t,textColor:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:n,colorPressed:o,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColorPrimary:l,borderRadiusSquare:c}}},IH=$H,DH=e=>{const{popoverColor:t,textColor2:r,buttonColor2Hover:n,buttonColor2Pressed:o,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,borderRadius:l}=e;return{color:t,colorHover:n,colorPressed:o,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColor:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:l}},BH={name:"FloatButton",common:be,self:DH},OH=BH,LH=pe({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=ze(Ln,null),{body:t}=document,{style:r}=t;let n=!1,o=!0;bn(()=>{Or(()=>{var i,a;const{textColor2:s,fontSize:l,fontFamily:c,bodyColor:u,cubicBezierEaseInOut:f,lineHeight:d}=e?Xi({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||be,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):be;if(n||!t.hasAttribute("n-styled")){r.setProperty("-webkit-text-size-adjust","100%"),r.setProperty("-webkit-tap-highlight-color","transparent"),r.padding="0",r.margin="0",r.backgroundColor=u,r.color=s,r.fontSize=l,r.fontFamily=c,r.lineHeight=d;const h=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{r.transition=h},0):r.transition=h,t.setAttribute("n-styled",""),n=!0,o=!1}})}),wi(()=>{n&&t.removeAttribute("n-styled")})},render(){return null}}),RH={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},R_=24,af="__ssr__",FH={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:R_},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},g1=pe({name:"Grid",inheritAttrs:!1,props:FH,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:r}=gt(e),n=/^\d+$/,o=M(void 0),i=QT((r==null?void 0:r.value)||RH),a=Dr(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),s=R(()=>{if(a.value)return e.responsive==="self"?o.value:i.value}),l=Dr(()=>{var m;return(m=Number(Li(e.cols.toString(),s.value)))!==null&&m!==void 0?m:R_}),c=Dr(()=>Li(e.xGap.toString(),s.value)),u=Dr(()=>Li(e.yGap.toString(),s.value)),f=m=>{o.value=m.contentRect.width},d=m=>{up(f,m)},h=M(!1),p=R(()=>{if(e.responsive==="self")return d}),g=M(!1),v=M();return _t(()=>{const{value:m}=v;m&&m.hasAttribute(af)&&(m.removeAttribute(af),g.value=!0)}),ft(n_,{layoutShiftDisabledRef:Lt(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:Lt(e,"itemStyle"),xGapRef:c,overflowRef:h}),{isSsr:!eo,contentEl:v,mergedClsPrefix:t,style:R(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:qn(e.xGap),rowGap:qn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${l.value}, minmax(0, 1fr))`,columnGap:qn(c.value),rowGap:qn(u.value)}),isResponsive:a,responsiveQuery:s,responsiveCols:l,handleResize:p,overflow:h}},render(){if(this.layoutShiftDisabled)return $("div",On({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,r,n,o,i,a,s;this.overflow=!1;const l=va(dp(this)),c=[],{collapsed:u,collapsedRows:f,responsiveCols:d,responsiveQuery:h}=this;l.forEach(b=>{var y,x,S,C,w;if(((y=b==null?void 0:b.type)===null||y===void 0?void 0:y.__GRID_ITEM__)!==!0)return;if(cT(b)){const T=tn(b);T.props?T.props.privateShow=!1:T.props={privateShow:!1},c.push({child:T,rawChildSpan:0});return}b.dirs=((x=b.dirs)===null||x===void 0?void 0:x.filter(({dir:T})=>T!==gi))||null,((S=b.dirs)===null||S===void 0?void 0:S.length)===0&&(b.dirs=null);const k=tn(b),A=Number((w=Li((C=k.props)===null||C===void 0?void 0:C.span,h))!==null&&w!==void 0?w:h1);A!==0&&c.push({child:k,rawChildSpan:A})});let p=0;const g=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(g!=null&&g.props){const b=(r=g.props)===null||r===void 0?void 0:r.suffix;b!==void 0&&b!==!1&&(p=Number((o=Li((n=g.props)===null||n===void 0?void 0:n.span,h))!==null&&o!==void 0?o:h1),g.props.privateSpan=p,g.props.privateColStart=d+1-p,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let v=0,m=!1;for(const{child:b,rawChildSpan:y}of c){if(m&&(this.overflow=!0),!m){const x=Number((s=Li((a=b.props)===null||a===void 0?void 0:a.offset,h))!==null&&s!==void 0?s:0),S=Math.min(y+x,d);if(b.props?(b.props.privateSpan=S,b.props.privateOffset=x):b.props={privateSpan:S,privateOffset:x},u){const C=v%d;S+C>d&&(v+=d-C),S+v+p>f*d?m=!0:v+=S}}m&&(b.props?b.props.privateShow!==!0&&(b.props.privateShow=!1):b.props={privateShow:!1})}return $("div",On({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[af]:this.isSsr||void 0},this.$attrs),c.map(({child:b})=>b))};return this.isResponsive&&this.responsive==="self"?$(Jc,{onResize:this.handleResize},{default:e}):e()}}),F_=e=>{const{primaryColor:t,baseColor:r}=e;return{color:t,iconColor:r}},MH={name:"IconWrapper",common:be,self:F_},zH=MH,NH={name:"IconWrapper",common:xe,self:F_},HH=NH,M_=Object.assign(Object.assign({},We.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),z_="n-image";function jH(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const N_={name:"Image",common:be,peers:{Tooltip:El},self:jH},WH={name:"Image",common:xe,peers:{Tooltip:Ku},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},UH=$("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),VH=$("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),GH=$("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),qH=$("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},$("path",{fill:"currentColor",d:"M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"})),YH=Y([Y("body >",[ne("image-container","position: fixed;")]),ne("image-preview-container",`
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
`),ne("image-preview-overlay",`
z-index: -1;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0, 0, 0, .3);
`,[wa()]),ne("image-preview-toolbar",`
z-index: 1;
position: absolute;
left: 50%;
transform: translateX(-50%);
border-radius: var(--n-toolbar-border-radius);
height: 48px;
bottom: 40px;
padding: 0 12px;
background: var(--n-toolbar-color);
box-shadow: var(--n-toolbar-box-shadow);
color: var(--n-toolbar-icon-color);
transition: color .3s var(--n-bezier);
display: flex;
align-items: center;
`,[ne("base-icon",`
padding: 0 8px;
font-size: 28px;
cursor: pointer;
`),wa()]),ne("image-preview-wrapper",`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
pointer-events: none;
`,[B2()]),ne("image-preview",`
user-select: none;
-webkit-user-select: none;
pointer-events: all;
margin: auto;
max-height: calc(100vh - 32px);
max-width: calc(100vw - 32px);
transition: transform .3s var(--n-bezier);
`),ne("image",`
display: inline-flex;
max-height: 100%;
max-width: 100%;
`,[xr("preview-disabled",`
cursor: pointer;
`),Y("img",`
border-radius: inherit;
`)])]),tc=32,KH=pe({name:"ImagePreview",props:Object.assign(Object.assign({},M_),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=We("Image","-image",YH,N_,e,Lt(e,"clsPrefix"));let r=null;const n=M(null),o=M(null),i=M(void 0),a=M(!1),s=M(!1),{localeRef:l}=k2("Image");function c(){const{value:_}=o;if(!r||!_)return;const{style:E}=_,P=r.getBoundingClientRect(),O=P.left+P.width/2,L=P.top+P.height/2;E.transformOrigin=`${O}px ${L}px`}function u(_){var E,P;switch(_.key){case" ":_.preventDefault();break;case"ArrowLeft":(E=e.onPrev)===null||E===void 0||E.call(e);break;case"ArrowRight":(P=e.onNext)===null||P===void 0||P.call(e);break;case"Escape":ye();break}}Je(a,_=>{_?Xt("keydown",document,u):At("keydown",document,u)}),Ht(()=>{At("keydown",document,u)});let f=0,d=0,h=0,p=0,g=0,v=0,m=0,b=0,y=!1;function x(_){const{clientX:E,clientY:P}=_;h=E-f,p=P-d,up(Be)}function S(_){const{mouseUpClientX:E,mouseUpClientY:P,mouseDownClientX:O,mouseDownClientY:L}=_,G=O-E,K=L-P,H=`vertical${K>0?"Top":"Bottom"}`,ee=`horizontal${G>0?"Left":"Right"}`;return{moveVerticalDirection:H,moveHorizontalDirection:ee,deltaHorizontal:G,deltaVertical:K}}function C(_){const{value:E}=n;if(!E)return{offsetX:0,offsetY:0};const P=E.getBoundingClientRect(),{moveVerticalDirection:O,moveHorizontalDirection:L,deltaHorizontal:G,deltaVertical:K}=_||{};let H=0,ee=0;return P.width<=window.innerWidth?H=0:P.left>0?H=(P.width-window.innerWidth)/2:P.right<window.innerWidth?H=-(P.width-window.innerWidth)/2:L==="horizontalRight"?H=Math.min((P.width-window.innerWidth)/2,g-(G??0)):H=Math.max(-((P.width-window.innerWidth)/2),g-(G??0)),P.height<=window.innerHeight?ee=0:P.top>0?ee=(P.height-window.innerHeight)/2:P.bottom<window.innerHeight?ee=-(P.height-window.innerHeight)/2:O==="verticalBottom"?ee=Math.min((P.height-window.innerHeight)/2,v-(K??0)):ee=Math.max(-((P.height-window.innerHeight)/2),v-(K??0)),{offsetX:H,offsetY:ee}}function w(_){At("mousemove",document,x),At("mouseup",document,w);const{clientX:E,clientY:P}=_;y=!1;const O=S({mouseUpClientX:E,mouseUpClientY:P,mouseDownClientX:m,mouseDownClientY:b}),L=C(O);h=L.offsetX,p=L.offsetY,Be()}const k=ze(z_,null);function A(_){var E,P;if((P=(E=k==null?void 0:k.previewedImgPropsRef.value)===null||E===void 0?void 0:E.onMousedown)===null||P===void 0||P.call(E,_),_.button!==0)return;const{clientX:O,clientY:L}=_;y=!0,f=O-h,d=L-p,g=h,v=p,m=O,b=L,Be(),Xt("mousemove",document,x),Xt("mouseup",document,w)}function T(_){var E,P;(P=(E=k==null?void 0:k.previewedImgPropsRef.value)===null||E===void 0?void 0:E.onDblclick)===null||P===void 0||P.call(E,_);const O=U();B=B===O?1:O,Be()}const I=1.5;let D=0,B=1,j=0;function F(){B=1,D=0}function z(){var _;F(),j=0,(_=e.onPrev)===null||_===void 0||_.call(e)}function V(){var _;F(),j=0,(_=e.onNext)===null||_===void 0||_.call(e)}function oe(){j-=90,Be()}function fe(){j+=90,Be()}function ge(){const{value:_}=n;if(!_)return 1;const{innerWidth:E,innerHeight:P}=window,O=Math.max(1,_.naturalHeight/(P-tc)),L=Math.max(1,_.naturalWidth/(E-tc));return Math.max(3,O*2,L*2)}function U(){const{value:_}=n;if(!_)return 1;const{innerWidth:E,innerHeight:P}=window,O=_.naturalHeight/(P-tc),L=_.naturalWidth/(E-tc);return O<1&&L<1?1:Math.max(O,L)}function X(){const _=ge();B<_&&(D+=1,B=Math.min(_,Math.pow(I,D)),Be())}function ae(){if(B>.5){const _=B;D-=1,B=Math.max(.5,Math.pow(I,D));const E=_-B;Be(!1);const P=C();B+=E,Be(!1),B-=E,h=P.offsetX,p=P.offsetY,Be()}}function Z(){const _=i.value;_&&KA(_,void 0)}function Be(_=!0){var E;const{value:P}=n;if(!P)return;const{style:O}=P,L=Jr((E=k==null?void 0:k.previewedImgPropsRef.value)===null||E===void 0?void 0:E.style);let G="";if(typeof L=="string")G=L+";";else for(const H in L)G+=`${RB(H)}: ${L[H]};`;const K=`transform-origin: center; transform: translateX(${h}px) translateY(${p}px) rotate(${j}deg) scale(${B});`;y?O.cssText=G+"cursor: grabbing; transition: none;"+K:O.cssText=G+"cursor: grab;"+K+(_?"":"transition: none;"),_||P.offsetHeight}function ye(){a.value=!a.value,s.value=!0}function q(){B=U(),D=Math.ceil(Math.log(B)/Math.log(I)),h=0,p=0,Be()}const te={setPreviewSrc:_=>{i.value=_},setThumbnailEl:_=>{r=_},toggleShow:ye};function ie(_,E){if(e.showToolbarTooltip){const{value:P}=t;return $(Qi,{to:!1,theme:P.peers.Tooltip,themeOverrides:P.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[E],trigger:()=>_})}else return _}const ve=R(()=>{const{common:{cubicBezierEaseInOut:_},self:{toolbarIconColor:E,toolbarBorderRadius:P,toolbarBoxShadow:O,toolbarColor:L}}=t.value;return{"--n-bezier":_,"--n-toolbar-icon-color":E,"--n-toolbar-color":L,"--n-toolbar-border-radius":P,"--n-toolbar-box-shadow":O}}),{inlineThemeDisabled:Le}=gt(),$e=Le?tr("image-preview",void 0,ve,e):void 0;return Object.assign({previewRef:n,previewWrapperRef:o,previewSrc:i,show:a,appear:Ha(),displayed:s,previewedImgProps:k==null?void 0:k.previewedImgPropsRef,handleWheel(_){_.preventDefault()},handlePreviewMousedown:A,handlePreviewDblclick:T,syncTransformOrigin:c,handleAfterLeave:()=>{F(),j=0,s.value=!1},handleDragStart:_=>{var E,P;(P=(E=k==null?void 0:k.previewedImgPropsRef.value)===null||E===void 0?void 0:E.onDragstart)===null||P===void 0||P.call(E,_),_.preventDefault()},zoomIn:X,zoomOut:ae,handleDownloadClick:Z,rotateCounterclockwise:oe,rotateClockwise:fe,handleSwitchPrev:z,handleSwitchNext:V,withTooltip:ie,resizeToOrignalImageSize:q,cssVars:Le?void 0:ve,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender},te)},render(){var e,t;const{clsPrefix:r}=this;return $(ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),$(bp,{show:this.show},{default:()=>{var n;return this.show||this.displayed?((n=this.onRender)===null||n===void 0||n.call(this),lr($("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},$(_r,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?$("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?$(_r,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return $("div",{class:`${r}-image-preview-toolbar`},this.onPrev?$(ot,null,o($(dr,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>UH}),"tipPrevious"),o($(dr,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>VH}),"tipNext")):null,o($(dr,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>$(tR,null)}),"tipCounterclockwise"),o($(dr,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>$(eR,null)}),"tipClockwise"),o($(dr,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>$(oR,null)}),"tipOriginalSize"),o($(dr,{clsPrefix:r,onClick:this.zoomOut},{default:()=>$(nR,null)}),"tipZoomOut"),o($(dr,{clsPrefix:r,onClick:this.zoomIn},{default:()=>$(rR,null)}),"tipZoomIn"),o($(dr,{clsPrefix:r,onClick:this.handleDownloadClick},{default:()=>qH}),"tipDownload"),o($(dr,{clsPrefix:r,onClick:this.toggleShow},{default:()=>GH}),"tipClose"))}}):null,$(_r,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return lr($("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},$("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[gi,this.show]])}})),[[Hu,{enabled:this.show}]])):null}}))}}),XH="n-image-group",QH=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},M_),H_=pe({name:"Image",props:QH,inheritAttrs:!1,setup(e){const t=M(null),r=M(!1),n=M(null),o=ze(XH,null),{mergedClsPrefixRef:i}=o||gt(e),a={click:()=>{if(e.previewDisabled||r.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:u}=n;u&&(u.setPreviewSrc(c),u.setThumbnailEl(t.value),u.toggleShow())}},s=M(!e.lazy);_t(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),_t(()=>{if(e.lazy&&e.intersectionObserverOptions){let c;const u=Or(()=>{c==null||c(),c=void 0,c=Y2(t.value,e.intersectionObserverOptions,s)});Ht(()=>{u(),c==null||c()})}}),Or(()=>{var c;e.src||((c=e.imgProps)===null||c===void 0||c.src),r.value=!1});const l=M(!1);return ft(z_,{previewedImgPropsRef:Lt(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:n,imageRef:t,showError:r,shouldStartLoading:s,loaded:l,mergedOnClick:c=>{var u,f;a.click(),(f=(u=e.imgProps)===null||u===void 0?void 0:u.onClick)===null||f===void 0||f.call(u,c)},mergedOnError:c=>{if(!s.value)return;r.value=!0;const{onError:u,imgProps:{onError:f}={}}=e;u==null||u(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:u,imgProps:{onLoad:f}={}}=e;u==null||u(c),f==null||f(c),l.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:r,imgProps:n={},loaded:o,$attrs:i,lazy:a}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),l=this.src||n.src,c=$("img",Object.assign(Object.assign({},n),{ref:"imageRef",width:this.width||n.width,height:this.height||n.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?l:void 0:l,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:q2&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[n.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return $("div",Object.assign({},i,{role:"none",class:[i.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?c:$(KH,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&s)}}),oce="n-layout-sider",ZH={type:String,default:"static"},JH=ne("layout",`
color: var(--n-text-color);
background-color: var(--n-color);
box-sizing: border-box;
position: relative;
z-index: auto;
flex: auto;
overflow: hidden;
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[ne("layout-scroll-container",`
overflow-x: hidden;
box-sizing: border-box;
height: 100%;
`),ue("absolute-positioned",`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),ej={embedded:Boolean,position:ZH,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},tj="n-layout";function j_(e){return pe({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},We.props),ej),setup(t){const r=M(null),n=M(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=gt(t),a=We("Layout","-layout",JH,c_,t,o);function s(g,v){if(t.nativeScrollbar){const{value:m}=r;m&&(v===void 0?m.scrollTo(g):m.scrollTo(g,v))}else{const{value:m}=n;m&&m.scrollTo(g,v)}}ft(tj,t);let l=0,c=0;const u=g=>{var v;const m=g.target;l=m.scrollLeft,c=m.scrollTop,(v=t.onScroll)===null||v===void 0||v.call(t,g)};Iw(()=>{if(t.nativeScrollbar){const g=r.value;g&&(g.scrollTop=c,g.scrollLeft=l)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},d={scrollTo:s},h=R(()=>{const{common:{cubicBezierEaseInOut:g},self:v}=a.value;return{"--n-bezier":g,"--n-color":t.embedded?v.colorEmbedded:v.color,"--n-text-color":v.textColor}}),p=i?tr("layout",R(()=>t.embedded?"e":""),h,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:r,scrollbarInstRef:n,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:u,cssVars:i?void 0:h,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},d)},render(){var t;const{mergedClsPrefix:r,hasSider:n}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=n?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${r}-layout-content`,`${r}-layout`,`${r}-layout--${this.position}-positioned`];return $("div",{class:i,style:this.cssVars},this.nativeScrollbar?$("div",{ref:"scrollableElRef",class:[`${r}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):$(qu,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const ice=j_(!1),rj=j_(!0),W_={extraFontSize:"12px",width:"440px"},nj={name:"Transfer",common:xe,peers:{Checkbox:Va,Scrollbar:Lr,Input:an,Empty:ki,Button:Rr},self(e){const{iconColorDisabled:t,iconColor:r,fontWeight:n,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,inputColor:f,tableHeaderColor:d,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:v}=e;return Object.assign(Object.assign({},W_),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:u,borderColor:"#0000",listColor:f,headerColor:d,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:v,titleFontWeight:n,iconColor:r,iconColorDisabled:t})}},oj=nj,ij=e=>{const{fontWeight:t,iconColorDisabled:r,iconColor:n,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,cardColor:f,tableHeaderColor:d,textColor1:h,textColorDisabled:p,textColor2:g,borderColor:v,hoverColor:m}=e;return Object.assign(Object.assign({},W_),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:u,borderColor:v,listColor:f,headerColor:Pe(f,d),titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:v,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:m,titleFontWeight:t,iconColor:n,iconColorDisabled:r})},aj={name:"Transfer",common:be,peers:{Checkbox:Ua,Scrollbar:kr,Input:sn,Empty:oo,Button:Tr},self:ij},sj=aj,U_="n-loading-bar",V_="n-loading-bar-api",lj=ne("loading-bar-container",`
z-index: 5999;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 2px;
`,[wa({enterDuration:"0.3s",leaveDuration:"0.8s"}),ne("loading-bar",`
width: 100%;
transition:
max-width 4s linear,
background .2s linear;
height: var(--n-height);
`,[ue("starting",`
background: var(--n-color-loading);
`),ue("finishing",`
background: var(--n-color-loading);
transition:
max-width .2s linear,
background .2s linear;
`),ue("error",`
background: var(--n-color-error);
transition:
max-width .2s linear,
background .2s linear;
`)])]);var rc=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};function nc(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const cj=pe({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=gt(),{props:t,mergedClsPrefixRef:r}=ze(U_),n=M(null),o=M(!1),i=M(!1),a=M(!1),s=M(!1);let l=!1;const c=M(!1),u=R(()=>{const{loadingBarStyle:S}=t;return S?S[c.value?"error":"loading"]:""});function f(){return rc(this,void 0,void 0,function*(){o.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield Qt(),s.value=!1})}function d(S=0,C=80,w="starting"){return rc(this,void 0,void 0,function*(){if(i.value=!0,yield f(),l)return;a.value=!0,yield Qt();const k=n.value;k&&(k.style.maxWidth=`${S}%`,k.style.transition="none",k.offsetWidth,k.className=nc(w,r.value),k.style.transition="",k.style.maxWidth=`${C}%`)})}function h(){return rc(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield Qt()),l=!0;const S=n.value;S&&(S.className=nc("finishing",r.value),S.style.maxWidth="100%",S.offsetWidth,a.value=!1)})}function p(){if(!(l||c.value))if(!a.value)d(100,100,"error").then(()=>{c.value=!0;const S=n.value;S&&(S.className=nc("error",r.value),S.offsetWidth,a.value=!1)});else{c.value=!0;const S=n.value;if(!S)return;S.className=nc("error",r.value),S.style.maxWidth="100%",S.offsetWidth,a.value=!1}}function g(){o.value=!0}function v(){o.value=!1}function m(){return rc(this,void 0,void 0,function*(){yield f()})}const b=We("LoadingBar","-loading-bar",lj,d_,t,r),y=R(()=>{const{self:{height:S,colorError:C,colorLoading:w}}=b.value;return{"--n-height":S,"--n-color-loading":w,"--n-color-error":C}}),x=e?tr("loading-bar",void 0,y,t):void 0;return{mergedClsPrefix:r,loadingBarRef:n,started:i,loading:a,entering:o,transitionDisabled:s,start:d,error:p,finish:h,handleEnter:g,handleAfterEnter:v,handleAfterLeave:m,mergedLoadingBarStyle:u,cssVars:e?void 0:y,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return $(_r,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),lr($("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},$("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[gi,this.loading||!this.loading&&this.entering]])}})}}),uj=Object.assign(Object.assign({},We.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),dj=pe({name:"LoadingBarProvider",props:uj,setup(e){const t=Ha(),r=M(null),n={start(){var i;t.value?(i=r.value)===null||i===void 0||i.start():Qt(()=>{var a;(a=r.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=r.value)===null||i===void 0||i.error():Qt(()=>{var a;(a=r.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=r.value)===null||i===void 0||i.finish():Qt(()=>{var a;(a=r.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=gt(e);return ft(V_,n),ft(U_,{props:e,mergedClsPrefixRef:o}),Object.assign(n,{loadingBarRef:r})},render(){var e,t;return $(ot,null,$(Bu,{disabled:this.to===!1,to:this.to||"body"},$(cj,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function fj(){const e=ze(V_,null);return e===null&&pl("use-loading-bar","No outer <n-loading-bar-provider /> founded."),e}const G_={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},q_="n-message-api",Y_="n-message-provider",hj=Y([ne("message-wrapper",`
margin: var(--n-margin);
z-index: 0;
transform-origin: top center;
display: flex;
`,[W2({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),ne("message",`
box-sizing: border-box;
display: flex;
align-items: center;
transition:
color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
transform .3s var(--n-bezier),
margin-bottom .3s var(--n-bezier);
padding: var(--n-padding);
border-radius: var(--n-border-radius);
flex-wrap: nowrap;
overflow: hidden;
max-width: var(--n-max-width);
color: var(--n-text-color);
background-color: var(--n-color);
box-shadow: var(--n-box-shadow);
`,[le("content",`
display: inline-block;
line-height: var(--n-line-height);
font-size: var(--n-font-size);
`),le("icon",`
position: relative;
margin: var(--n-icon-margin);
height: var(--n-icon-size);
width: var(--n-icon-size);
font-size: var(--n-icon-size);
flex-shrink: 0;
`,[["default","info","success","warning","error","loading"].map(e=>ue(`${e}-type`,[Y("> *",`
color: var(--n-icon-color-${e});
transition: color .3s var(--n-bezier);
`)])),Y("> *",`
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
`,[lu()])]),le("close",`
margin: var(--n-close-margin);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
flex-shrink: 0;
`,[Y("&:hover",`
color: var(--n-close-icon-color-hover);
`),Y("&:active",`
color: var(--n-close-icon-color-pressed);
`)])]),ne("message-container",`
z-index: 6000;
position: fixed;
height: 0;
overflow: visible;
display: flex;
flex-direction: column;
align-items: center;
`,[ue("top",`
top: 12px;
left: 0;
right: 0;
`),ue("top-left",`
top: 12px;
left: 12px;
right: 0;
align-items: flex-start;
`),ue("top-right",`
top: 12px;
left: 0;
right: 12px;
align-items: flex-end;
`),ue("bottom",`
bottom: 4px;
left: 0;
right: 0;
justify-content: flex-end;
`),ue("bottom-left",`
bottom: 4px;
left: 12px;
right: 0;
justify-content: flex-end;
align-items: flex-start;
`),ue("bottom-right",`
bottom: 4px;
left: 0;
right: 12px;
justify-content: flex-end;
align-items: flex-end;
`)])]),pj={info:()=>$(Ca,null),success:()=>$(Cl,null),warning:()=>$(wl,null),error:()=>$(yl,null),default:()=>null},gj=pe({name:"Message",props:Object.assign(Object.assign({},G_),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:r}=gt(e),{props:n,mergedClsPrefixRef:o}=ze(Y_),i=on("Message",r,o),a=We("Message","-message",hj,l_,n,o),s=R(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:d,maxWidth:h,iconMargin:p,closeMargin:g,closeSize:v,iconSize:m,fontSize:b,lineHeight:y,borderRadius:x,iconColorInfo:S,iconColorSuccess:C,iconColorWarning:w,iconColorError:k,iconColorLoading:A,closeIconSize:T,closeBorderRadius:I,[we("textColor",c)]:D,[we("boxShadow",c)]:B,[we("color",c)]:j,[we("closeColorHover",c)]:F,[we("closeColorPressed",c)]:z,[we("closeIconColor",c)]:V,[we("closeIconColorPressed",c)]:oe,[we("closeIconColorHover",c)]:fe}}=a.value;return{"--n-bezier":u,"--n-margin":d,"--n-padding":f,"--n-max-width":h,"--n-font-size":b,"--n-icon-margin":p,"--n-icon-size":m,"--n-close-icon-size":T,"--n-close-border-radius":I,"--n-close-size":v,"--n-close-margin":g,"--n-text-color":D,"--n-color":j,"--n-box-shadow":B,"--n-icon-color-info":S,"--n-icon-color-success":C,"--n-icon-color-warning":w,"--n-icon-color-error":k,"--n-icon-color-loading":A,"--n-close-color-hover":F,"--n-close-color-pressed":z,"--n-close-icon-color":V,"--n-close-icon-color-pressed":oe,"--n-close-icon-color-hover":fe,"--n-line-height":y,"--n-border-radius":x}}),l=t?tr("message",R(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:n,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:r,content:n,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:u}=this;s==null||s();let f;return $("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):$("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=mj(l,t,o))&&u?$("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},$(Op,null,{default:()=>f})):null,$("div",{class:`${o}-message__content`},Nr(n)),r?$(Wa,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function mj(e,t,r){if(typeof e=="function")return e();{const n=t==="loading"?$(Rp,{clsPrefix:r,strokeWidth:24,scale:.85}):pj[t]();return n?$(dr,{clsPrefix:r,key:t},{default:()=>n}):null}}const vj=pe({name:"MessageEnvironment",props:Object.assign(Object.assign({},G_),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=M(!0);_t(()=>{n()});function n(){const{duration:u}=e;u&&(t=window.setTimeout(a,u))}function o(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&n()}function a(){const{onHide:u}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function s(){const{onClose:u}=e;u&&u(),a()}function l(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:d,internalKey:h}=e;u&&u(),f&&f(h),d&&d()}function c(){a()}return{show:r,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return $(Lp,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?$(gj,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),bj=Object.assign(Object.assign({},We.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),xj=pe({name:"MessageProvider",props:bj,setup(e){const{mergedClsPrefixRef:t}=gt(e),r=M([]),n=M({}),o={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};ft(Y_,{props:e,mergedClsPrefixRef:t}),ft(q_,o);function i(l,c){const u=Ru(),f=nn(Object.assign(Object.assign({},c),{content:l,key:u,destroy:()=>{var h;(h=n.value[u])===null||h===void 0||h.hide()}})),{max:d}=e;return d&&r.value.length>=d&&r.value.shift(),r.value.push(f),f}function a(l){r.value.splice(r.value.findIndex(c=>c.key===l),1),delete n.value[l]}function s(){Object.values(n.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:r,handleAfterLeave:a},o)},render(){var e,t,r;return $(ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?$(Bu,{to:(r=this.to)!==null&&r!==void 0?r:"body"},$("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>$(vj,Object.assign({ref:o=>{o&&(this.messageRefs[n.key]=o)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},fp(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}});function xn(){const e=ze(q_,null);return e===null&&pl("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Ju="n-notification-provider",yj=pe({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:r}=ze(Ju),n=M(null);return Or(()=>{var o,i;r.value>0?(o=n==null?void 0:n.value)===null||o===void 0||o.classList.add("transitioning"):(i=n==null?void 0:n.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:r}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:n,placement:o}=this;return $("div",{ref:"selfRef",class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`,`${r}-notification-container--${o}`]},t?$(qu,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),Cj={info:()=>$(Ca,null),success:()=>$(Cl,null),warning:()=>$(wl,null),error:()=>$(yl,null),default:()=>null},Yp={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},wj=ba(Yp),Sj=pe({name:"Notification",props:Yp,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,props:n}=ze(Ju),{inlineThemeDisabled:o,mergedRtlRef:i}=gt(),a=on("Notification",i,t),s=R(()=>{const{type:c}=e,{self:{color:u,textColor:f,closeIconColor:d,closeIconColorHover:h,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:v,actionTextColor:m,borderRadius:b,headerFontWeight:y,boxShadow:x,lineHeight:S,fontSize:C,closeMargin:w,closeSize:k,width:A,padding:T,closeIconSize:I,closeBorderRadius:D,closeColorHover:B,closeColorPressed:j,titleFontSize:F,metaFontSize:z,descriptionFontSize:V,[we("iconColor",c)]:oe},common:{cubicBezierEaseOut:fe,cubicBezierEaseIn:ge,cubicBezierEaseInOut:U}}=r.value,{left:X,right:ae,top:Z,bottom:Be}=hl(T);return{"--n-color":u,"--n-font-size":C,"--n-text-color":f,"--n-description-text-color":v,"--n-action-text-color":m,"--n-title-text-color":g,"--n-title-font-weight":y,"--n-bezier":U,"--n-bezier-ease-out":fe,"--n-bezier-ease-in":ge,"--n-border-radius":b,"--n-box-shadow":x,"--n-close-border-radius":D,"--n-close-color-hover":B,"--n-close-color-pressed":j,"--n-close-icon-color":d,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":p,"--n-line-height":S,"--n-icon-color":oe,"--n-close-margin":w,"--n-close-size":k,"--n-close-icon-size":I,"--n-width":A,"--n-padding-left":X,"--n-padding-right":ae,"--n-padding-top":Z,"--n-padding-bottom":Be,"--n-title-font-size":F,"--n-meta-font-size":z,"--n-description-font-size":V}}),l=o?tr("notification",R(()=>e.type[0]),s,n):void 0;return{mergedClsPrefix:t,showAvatar:R(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),$("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},$("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?$("div",{class:`${t}-notification__avatar`},this.avatar?Nr(this.avatar):this.type!=="default"?$(dr,{clsPrefix:t},{default:()=>Cj[this.type]()}):null):null,this.closable?$(Wa,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,$("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?$("div",{class:`${t}-notification-main__header`},Nr(this.title)):null,this.description?$("div",{class:`${t}-notification-main__description`},Nr(this.description)):null,this.content?$("pre",{class:`${t}-notification-main__content`},Nr(this.content)):null,this.meta||this.action?$("div",{class:`${t}-notification-main-footer`},this.meta?$("div",{class:`${t}-notification-main-footer__meta`},Nr(this.meta)):null,this.action?$("div",{class:`${t}-notification-main-footer__action`},Nr(this.action)):null):null)))}}),_j=Object.assign(Object.assign({},Yp),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Ej=pe({name:"NotificationEnvironment",props:Object.assign(Object.assign({},_j),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=ze(Ju),r=M(!0);let n=null;function o(){r.value=!1,n&&window.clearTimeout(n)}function i(p){t.value++,Qt(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:v}=e;g&&g(),v&&v()}function s(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function l(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:v,internalKey:m}=e;p&&p(),g(m),v&&v()}function u(){const{duration:p}=e;p&&(n=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&n!==null&&(window.clearTimeout(n),n=null)}function d(p){p.currentTarget===p.target&&u()}function h(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&o()}):o()}return _t(()=>{e.duration&&(n=window.setTimeout(o,e.duration))}),{show:r,hide:o,handleClose:h,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:d}},render(){return $(_r,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?$(Sj,Object.assign({},ma(this.$props,wj),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),kj=Y([ne("notification-container",`
z-index: 4000;
position: fixed;
overflow: visible;
display: flex;
flex-direction: column;
align-items: flex-end;
`,[Y(">",[ne("scrollbar",`
width: initial;
overflow: visible;
height: -moz-fit-content !important;
height: fit-content !important;
max-height: 100vh !important;
`,[Y(">",[ne("scrollbar-container",`
height: -moz-fit-content !important;
height: fit-content !important;
max-height: 100vh !important;
`,[ne("scrollbar-content",`
padding-top: 12px;
padding-bottom: 33px;
`)])])])]),ue("top, top-right, top-left",`
top: 12px;
`,[Y("&.transitioning >",[ne("scrollbar",[Y(">",[ne("scrollbar-container",`
min-height: 100vh !important;
`)])])])]),ue("bottom, bottom-right, bottom-left",`
bottom: 12px;
`,[Y(">",[ne("scrollbar",[Y(">",[ne("scrollbar-container",[ne("scrollbar-content",`
padding-bottom: 12px;
`)])])])]),ne("notification-wrapper",`
display: flex;
align-items: flex-end;
margin-bottom: 0;
margin-top: 12px;
`)]),ue("top, bottom",`
left: 50%;
transform: translateX(-50%);
`,[ne("notification-wrapper",[Y("&.notification-transition-enter-from, &.notification-transition-leave-to",`
transform: scale(0.85);
`),Y("&.notification-transition-leave-from, &.notification-transition-enter-to",`
transform: scale(1);
`)])]),ue("top",[ne("notification-wrapper",`
transform-origin: top center;
`)]),ue("bottom",[ne("notification-wrapper",`
transform-origin: bottom center;
`)]),ue("top-right, bottom-right",[ne("notification",`
margin-left: 28px;
margin-right: 16px;
`)]),ue("top-left, bottom-left",[ne("notification",`
margin-left: 16px;
margin-right: 28px;
`)]),ue("top-right",`
right: 0;
`,[oc("top-right")]),ue("top-left",`
left: 0;
`,[oc("top-left")]),ue("bottom-right",`
right: 0;
`,[oc("bottom-right")]),ue("bottom-left",`
left: 0;
`,[oc("bottom-left")]),ue("scrollable",[ue("top-right",`
top: 0;
`),ue("top-left",`
top: 0;
`),ue("bottom-right",`
bottom: 0;
`),ue("bottom-left",`
bottom: 0;
`)]),ne("notification-wrapper",`
margin-bottom: 12px;
`,[Y("&.notification-transition-enter-from, &.notification-transition-leave-to",`
opacity: 0;
margin-top: 0 !important;
margin-bottom: 0 !important;
`),Y("&.notification-transition-leave-from, &.notification-transition-enter-to",`
opacity: 1;
`),Y("&.notification-transition-leave-active",`
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
transform .3s var(--n-bezier-ease-in),
max-height .3s var(--n-bezier),
margin-top .3s linear,
margin-bottom .3s linear,
box-shadow .3s var(--n-bezier);
`),Y("&.notification-transition-enter-active",`
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
transform .3s var(--n-bezier-ease-out),
max-height .3s var(--n-bezier),
margin-top .3s linear,
margin-bottom .3s linear,
box-shadow .3s var(--n-bezier);
`)]),ne("notification",`
background-color: var(--n-color);
color: var(--n-text-color);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
font-family: inherit;
font-size: var(--n-font-size);
font-weight: 400;
position: relative;
display: flex;
overflow: hidden;
flex-shrink: 0;
padding-left: var(--n-padding-left);
padding-right: var(--n-padding-right);
width: var(--n-width);
max-width: calc(100vw - 16px - 16px);
border-radius: var(--n-border-radius);
box-shadow: var(--n-box-shadow);
box-sizing: border-box;
opacity: 1;
`,[le("avatar",[ne("icon",`
color: var(--n-icon-color);
`),ne("base-icon",`
color: var(--n-icon-color);
`)]),ue("show-avatar",[ne("notification-main",`
margin-left: 40px;
width: calc(100% - 40px);
`)]),ue("closable",[ne("notification-main",[Y("> *:first-child",`
padding-right: 20px;
`)]),le("close",`
position: absolute;
top: 0;
right: 0;
margin: var(--n-close-margin);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`)]),le("avatar",`
position: absolute;
top: var(--n-padding-top);
left: var(--n-padding-left);
width: 28px;
height: 28px;
font-size: 28px;
display: flex;
align-items: center;
justify-content: center;
`,[ne("icon","transition: color .3s var(--n-bezier);")]),ne("notification-main",`
padding-top: var(--n-padding-top);
padding-bottom: var(--n-padding-bottom);
box-sizing: border-box;
display: flex;
flex-direction: column;
margin-left: 8px;
width: calc(100% - 8px);
`,[ne("notification-main-footer",`
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12px;
`,[le("meta",`
font-size: var(--n-meta-font-size);
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-description-text-color);
`),le("action",`
cursor: pointer;
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-action-text-color);
`)]),le("header",`
font-weight: var(--n-title-font-weight);
font-size: var(--n-title-font-size);
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-title-text-color);
`),le("description",`
margin-top: 8px;
font-size: var(--n-description-font-size);
white-space: pre-wrap;
word-wrap: break-word;
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-description-text-color);
`),le("content",`
line-height: var(--n-line-height);
margin: 12px 0 0 0;
font-family: inherit;
white-space: pre-wrap;
word-wrap: break-word;
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-text-color);
`,[Y("&:first-child","margin: 0;")])])])])]);function oc(e){const r=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",n="0";return ne("notification-wrapper",[Y("&.notification-transition-enter-from, &.notification-transition-leave-to",`
transform: translate(${r}, 0);
`),Y("&.notification-transition-leave-from, &.notification-transition-enter-to",`
transform: translate(${n}, 0);
`)])}const K_="n-notification-api",Tj=Object.assign(Object.assign({},We.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),Aj=pe({name:"NotificationProvider",props:Tj,setup(e){const{mergedClsPrefixRef:t}=gt(e),r=M([]),n={},o=new Set;function i(h){const p=Ru(),g=()=>{o.add(p),n[p]&&n[p].hide()},v=nn(Object.assign(Object.assign({},h),{key:p,destroy:g,hide:g,deactivate:g})),{max:m}=e;if(m&&r.value.length-o.size>=m){let b=!1,y=0;for(const x of r.value){if(!o.has(x.key)){n[x.key]&&(x.destroy(),b=!0);break}y++}b||r.value.splice(y,1)}return r.value.push(v),v}const a=["info","success","warning","error"].map(h=>p=>i(Object.assign(Object.assign({},p),{type:h})));function s(h){o.delete(h),r.value.splice(r.value.findIndex(p=>p.key===h),1)}const l=We("Notification","-notification",kj,a_,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:d},u=M(0);ft(K_,c),ft(Ju,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:u});function f(h){return i(h)}function d(){Object.values(r.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:n,handleAfterLeave:s},c)},render(){var e,t,r;const{placement:n}=this;return $(ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?$(Bu,{to:(r=this.to)!==null&&r!==void 0?r:"body"},$(yj,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(o=>$(Ej,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},fp(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function Pj(){const e=ze(K_,null);return e===null&&pl("use-notification","No outer `n-notification-provider` found."),e}const $j={name:"QrCode",common:xe,self:e=>({borderRadius:e.borderRadius})},Ij=$j,Dj=e=>({borderRadius:e.borderRadius}),Bj={name:"QrCode",common:be,self:Dj},Oj=Bj,Lj=$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},$("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),$("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),$("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),$("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),$("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),$("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Rj=$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},$("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),$("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),$("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Fj=$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},$("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),$("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),$("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),$("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),$("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),$("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Mj=$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},$("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),$("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),zj=ne("result",`
color: var(--n-text-color);
line-height: var(--n-line-height);
font-size: var(--n-font-size);
transition:
color .3s var(--n-bezier);
`,[ne("result-icon",`
display: flex;
justify-content: center;
transition: color .3s var(--n-bezier);
`,[le("status-image",`
font-size: var(--n-icon-size);
width: 1em;
height: 1em;
`),ne("base-icon",`
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)]),ne("result-content",{marginTop:"24px"}),ne("result-footer",`
margin-top: 24px;
text-align: center;
`),ne("result-header",[le("title",`
margin-top: 16px;
font-weight: var(--n-title-font-weight);
transition: color .3s var(--n-bezier);
text-align: center;
color: var(--n-title-text-color);
font-size: var(--n-title-font-size);
`),le("description",`
margin-top: 4px;
text-align: center;
font-size: var(--n-font-size);
`)])]),Nj={403:()=>Mj,404:()=>Lj,418:()=>Fj,500:()=>Rj,info:()=>$(Ca,null),success:()=>$(Cl,null),warning:()=>$(wl,null),error:()=>$(yl,null)},Hj=Object.assign(Object.assign({},We.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),jj=pe({name:"Result",props:Hj,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=gt(e),n=We("Result","-result",zj,x_,e,t),o=R(()=>{const{size:a,status:s}=e,{common:{cubicBezierEaseInOut:l},self:{textColor:c,lineHeight:u,titleTextColor:f,titleFontWeight:d,[we("iconColor",s)]:h,[we("fontSize",a)]:p,[we("titleFontSize",a)]:g,[we("iconSize",a)]:v}}=n.value;return{"--n-bezier":l,"--n-font-size":p,"--n-icon-size":v,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":d,"--n-title-text-color":f,"--n-icon-color":h||""}}),i=r?tr("result",R(()=>{const{size:a,status:s}=e;let l="";return a&&(l+=a[0]),s&&(l+=s[0]),l}),o,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:r,mergedClsPrefix:n,onRender:o}=this;return o==null||o(),$("div",{class:[`${n}-result`,this.themeClass],style:this.cssVars},$("div",{class:`${n}-result-icon`},((e=r.icon)===null||e===void 0?void 0:e.call(r))||$(dr,{clsPrefix:n},{default:()=>Nj[t]()})),$("div",{class:`${n}-result-header`},this.title?$("div",{class:`${n}-result-header__title`},this.title):null,this.description?$("div",{class:`${n}-result-header__description`},this.description):null),r.default&&$("div",{class:`${n}-result-content`},r),r.footer&&$("div",{class:`${n}-result-footer`},r.footer()))}}),Wj=Object.assign(Object.assign({},We.props),{trigger:String,xScrollable:Boolean,onScroll:Function,size:Number}),Uj=pe({name:"Scrollbar",props:Wj,setup(){const e=M(null);return Object.assign(Object.assign({},{scrollTo:(...r)=>{var n;(n=e.value)===null||n===void 0||n.scrollTo(r[0],r[1])},scrollBy:(...r)=>{var n;(n=e.value)===null||n===void 0||n.scrollBy(r[0],r[1])}}),{scrollbarInstRef:e})},render(){return $(qu,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),Vj=Uj,Gj={name:"Skeleton",common:xe,self(e){const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:o}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:o,heightSmall:t,heightMedium:r,heightLarge:n}}},qj=e=>{const{heightSmall:t,heightMedium:r,heightLarge:n,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:r,heightLarge:n}},X_={name:"Skeleton",common:be,self:qj},Yj=Y([ne("skeleton",`
height: 1em;
width: 100%;
transition:
--n-color-start .3s var(--n-bezier),
--n-color-end .3s var(--n-bezier),
background-color .3s var(--n-bezier);
animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);
background-color: var(--n-color-start);
`),Y("@keyframes skeleton-loading",`
0% {
background: var(--n-color-start);
}
40% {
background: var(--n-color-end);
}
80% {
background: var(--n-color-start);
}
100% {
background: var(--n-color-start);
}
`)]),Kj=Object.assign(Object.assign({},We.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),vi=pe({name:"Skeleton",inheritAttrs:!1,props:Kj,setup(e){eA();const{mergedClsPrefixRef:t}=gt(e),r=We("Skeleton","-skeleton",Yj,X_,e,t);return{mergedClsPrefix:t,style:R(()=>{var n,o;const i=r.value,{common:{cubicBezierEaseInOut:a}}=i,s=i.self,{color:l,colorEnd:c,borderRadius:u}=s;let f;const{circle:d,sharp:h,round:p,width:g,height:v,size:m,text:b,animated:y}=e;m!==void 0&&(f=s[we("height",m)]);const x=d?(n=g??v)!==null&&n!==void 0?n:f:g,S=(o=d?g??v:v)!==null&&o!==void 0?o:f;return{display:b?"inline-block":"",verticalAlign:b?"-0.125em":"",borderRadius:d?"50%":p?"4096px":h?"":u,width:typeof x=="number"?qn(x):x,height:typeof S=="number"?qn(S):S,animation:y?"":"none","--n-bezier":a,"--n-color-start":l,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:r,$attrs:n}=this,o=$("div",On({class:`${r}-skeleton`,style:t},n));return e>1?$(ot,null,sT(e,null).map(i=>[o,`
`])):o}}),Xj=Y([Y("@keyframes spin-rotate",`
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
`),ne("spin-container",`
position: relative;
`,[ne("spin-body",`
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
`,[wa()])]),ne("spin-body",`
display: inline-flex;
align-items: center;
justify-content: center;
flex-direction: column;
`),ne("spin",`
display: inline-flex;
height: var(--n-size);
width: var(--n-size);
font-size: var(--n-size);
color: var(--n-color);
`,[ue("rotate",`
animation: spin-rotate 2s linear infinite;
`)]),ne("spin-description",`
display: inline-block;
font-size: var(--n-font-size);
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
margin-top: 8px;
`),ne("spin-content",`
opacity: 1;
transition: opacity .3s var(--n-bezier);
pointer-events: all;
`,[ue("spinning",`
user-select: none;
-webkit-user-select: none;
pointer-events: none;
opacity: var(--n-opacity-spinning);
`)])]),Qj={small:20,medium:18,large:16},Zj=Object.assign(Object.assign({},We.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),ed=pe({name:"Spin",props:Zj,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=gt(e),n=We("Spin","-spin",Xj,w_,e,t),o=R(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:c},self:u}=n.value,{opacitySpinning:f,color:d,textColor:h}=u,p=typeof l=="number"?qn(l):u[we("size",l)];return{"--n-bezier":c,"--n-opacity-spinning":f,"--n-size":p,"--n-color":d,"--n-text-color":h}}),i=r?tr("spin",R(()=>{const{size:l}=e;return typeof l=="number"?String(l):l[0]}),o,e):void 0,a=pw(e,["spinning","show"]),s=M(!1);return Or(l=>{let c;if(a.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{s.value=!0},u),l(()=>{clearTimeout(c)});return}}s.value=a.value}),{mergedClsPrefix:t,active:s,mergedStrokeWidth:R(()=>{const{strokeWidth:l}=e;if(l!==void 0)return l;const{size:c}=e;return Qj[typeof c=="number"?"medium":c]}),cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:r,mergedClsPrefix:n,description:o}=this,i=r.icon&&this.rotate,a=(o||r.description)&&$("div",{class:`${n}-spin-description`},o||((e=r.description)===null||e===void 0?void 0:e.call(r))),s=r.icon?$("div",{class:[`${n}-spin-body`,this.themeClass]},$("div",{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:r.default?"":this.cssVars},r.icon()),a):$("div",{class:[`${n}-spin-body`,this.themeClass]},$(Rp,{clsPrefix:n,style:r.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),r.default?$("div",{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},$("div",{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},r),$(_r,{name:"fade-in-transition"},{default:()=>this.active?s:null})):s}}),Jj={name:"Split",common:xe},eW=Jj,tW=e=>{const{primaryColorHover:t,borderColor:r}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:r}},rW={name:"Split",common:be,self:tW},nW=rW,Q_=()=>({}),oW={name:"Equation",common:be,self:Q_},iW=oW,aW={name:"Equation",common:xe,self:Q_},sW=aW,lW={name:"FloatButtonGroup",common:xe,self(e){const{popoverColor:t,dividerColor:r,borderRadius:n}=e;return{color:t,buttonBorderColor:r,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},cW=lW,Ec={name:"dark",common:xe,Alert:ZR,Anchor:uF,AutoComplete:xF,Avatar:X2,AvatarGroup:$F,BackTop:DF,Badge:FF,Breadcrumb:VF,Button:Rr,ButtonGroup:az,Calendar:lM,Card:lS,Carousel:EM,Cascader:DM,Checkbox:Va,Code:fS,Collapse:zM,CollapseTransition:WM,ColorPicker:gM,DataTable:m9,DatePicker:z9,Descriptions:G9,Dialog:HS,Divider:h7,Drawer:v7,Dropdown:Up,DynamicInput:x7,DynamicTags:P7,Element:B7,Empty:ki,Ellipsis:kS,Equation:sW,Flex:F7,Form:U7,GradientText:uz,Icon:P9,IconWrapper:HH,Image:WH,Input:an,InputNumber:gz,LegacyTransfer:oj,Layout:yz,List:kz,LoadingBar:Az,Log:Dz,Menu:Vz,Mention:Fz,Message:oz,Modal:t7,Notification:ez,PageHeader:Yz,Pagination:_S,Popconfirm:Jz,Popover:Ti,Popselect:vS,Progress:v_,QrCode:Ij,Radio:PS,Rate:nN,Result:uN,Row:kH,Scrollbar:Lr,Select:CS,Skeleton:Gj,Slider:fN,Space:JS,Spin:bN,Statistic:wN,Steps:TN,Switch:PN,Table:FN,Tabs:jN,Tag:M2,Thing:GN,TimePicker:FS,Timeline:YN,Tooltip:Ku,Transfer:JN,Tree:B_,TreeSelect:aH,Typography:pH,Upload:bH,Watermark:yH,Split:eW,FloatButton:IH,FloatButtonGroup:cW},sf={name:"light",common:be,Alert:j2,Anchor:lF,AutoComplete:vF,Avatar:Np,AvatarGroup:AF,BackTop:LF,Badge:NF,Breadcrumb:WF,Button:Tr,ButtonGroup:lz,Calendar:iS,Card:Hp,Carousel:SM,Cascader:$M,Checkbox:Ua,Code:hS,Collapse:FM,CollapseTransition:HM,ColorPicker:hM,DataTable:p9,DatePicker:F9,Descriptions:U9,Dialog:Vp,Divider:d7,Drawer:g7,Dropdown:Wp,DynamicInput:w7,DynamicTags:I7,Element:L7,Empty:oo,Equation:iW,Ellipsis:TS,Flex:N7,Form:r_,GradientText:hz,Icon:OS,IconWrapper:zH,Image:N_,Input:sn,InputNumber:bz,Layout:c_,LegacyTransfer:sj,List:_z,LoadingBar:d_,Log:Lz,Menu:Wz,Mention:Nz,Message:l_,Modal:qS,Notification:a_,PageHeader:qz,Pagination:SS,Popconfirm:Qz,Popover:Fo,Popselect:bS,Progress:m_,QrCode:Oj,Radio:Xu,Rate:aN,Row:_H,Result:x_,Scrollbar:kr,Skeleton:X_,Select:yS,Slider:gN,Space:qp,Spin:w_,Statistic:yN,Steps:EN,Switch:DN,Table:LN,Tabs:NN,Tag:Fp,Thing:UN,TimePicker:RS,Timeline:QN,Tooltip:El,Transfer:rH,Tree:D_,TreeSelect:cH,Typography:fH,Upload:mH,Watermark:wH,Split:nW,FloatButton:OH,FloatButtonGroup:PH};/*!
* Viewer.js v1.11.6
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-09-17T03:16:38.052Z
*/function m1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m1(Object(r),!0).forEach(function(n){fW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V0(e){"@babel/helpers - typeof";return V0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V0(e)}function uW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Z_(n.key),n)}}function dW(e,t,r){return t&&v1(e.prototype,t),r&&v1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fW(e,t,r){return t=Z_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hW(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z_(e){var t=hW(e,"string");return typeof t=="symbol"?t:String(t)}var b1={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},pW='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',td=typeof window<"u"&&typeof window.document<"u",Zn=td?window:{},ca=td&&Zn.document.documentElement?"ontouchstart"in Zn.document.documentElement:!1,Xp=td?"PointerEvent"in Zn:!1,tt="viewer",kc="move",J_="switch",cs="zoom",ic="".concat(tt,"-active"),gW="".concat(tt,"-close"),Tc="".concat(tt,"-fade"),G0="".concat(tt,"-fixed"),mW="".concat(tt,"-fullscreen"),x1="".concat(tt,"-fullscreen-exit"),ri="".concat(tt,"-hide"),vW="".concat(tt,"-hide-md-down"),bW="".concat(tt,"-hide-sm-down"),xW="".concat(tt,"-hide-xs-down"),qr="".concat(tt,"-in"),ys="".concat(tt,"-invisible"),ua="".concat(tt,"-loading"),yW="".concat(tt,"-move"),y1="".concat(tt,"-open"),Wi="".concat(tt,"-show"),Wt="".concat(tt,"-transition"),_a="click",q0="dblclick",C1="dragstart",w1="focusin",S1="keydown",Xr="load",pi="error",CW=ca?"touchend touchcancel":"mouseup",wW=ca?"touchmove":"mousemove",SW=ca?"touchstart":"mousedown",_1=Xp?"pointerdown":SW,E1=Xp?"pointermove":wW,k1=Xp?"pointerup pointercancel":CW,T1="resize",un="transitionend",A1="wheel",P1="ready",$1="show",I1="shown",D1="hide",B1="hidden",O1="view",Xs="viewed",L1="move",R1="moved",F1="rotate",M1="rotated",z1="scale",N1="scaled",H1="zoom",j1="zoomed",W1="play",U1="stop",cu="".concat(tt,"Action"),Qp=/\s\s*/,ac=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Qs(e){return typeof e=="string"}var _W=Number.isNaN||Zn.isNaN;function zt(e){return typeof e=="number"&&!_W(e)}function Zi(e){return typeof e>"u"}function Ea(e){return V0(e)==="object"&&e!==null}var EW=Object.prototype.hasOwnProperty;function Ji(e){if(!Ea(e))return!1;try{var t=e.constructor,r=t.prototype;return t&&r&&EW.call(r,"isPrototypeOf")}catch{return!1}}function wt(e){return typeof e=="function"}function Pt(e,t){if(e&&wt(t))if(Array.isArray(e)||zt(e.length)){var r=e.length,n;for(n=0;n<r&&t.call(e,e[n],n,e)!==!1;n+=1);}else Ea(e)&&Object.keys(e).forEach(function(o){t.call(e,e[o],o,e)});return e}var jr=Object.assign||function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return Ea(t)&&n.length>0&&n.forEach(function(i){Ea(i)&&Object.keys(i).forEach(function(a){t[a]=i[a]})}),t},kW=/^(?:width|height|left|top|marginLeft|marginTop)$/;function hn(e,t){var r=e.style;Pt(t,function(n,o){kW.test(o)&&zt(n)&&(n+="px"),r[o]=n})}function TW(e){return Qs(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}function qi(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function qe(e,t){if(!(!e||!t)){if(zt(e.length)){Pt(e,function(n){qe(n,t)});return}if(e.classList){e.classList.add(t);return}var r=e.className.trim();r?r.indexOf(t)<0&&(e.className="".concat(r," ").concat(t)):e.className=t}}function ht(e,t){if(!(!e||!t)){if(zt(e.length)){Pt(e,function(r){ht(r,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function Zs(e,t,r){if(t){if(zt(e.length)){Pt(e,function(n){Zs(n,t,r)});return}r?qe(e,t):ht(e,t)}}var AW=/([a-z\d])([A-Z])/g;function Zp(e){return e.replace(AW,"$1-$2").toLowerCase()}function ea(e,t){return Ea(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Zp(t)))}function Y0(e,t,r){Ea(r)?e[t]=r:e.dataset?e.dataset[t]=r:e.setAttribute("data-".concat(Zp(t)),r)}var eE=function(){var e=!1;if(td){var t=!1,r=function(){},n=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(i){t=i}});Zn.addEventListener("test",r,n),Zn.removeEventListener("test",r,n)}return e}();function St(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;t.trim().split(Qp).forEach(function(i){if(!eE){var a=e.listeners;a&&a[i]&&a[i][r]&&(o=a[i][r],delete a[i][r],Object.keys(a[i]).length===0&&delete a[i],Object.keys(a).length===0&&delete e.listeners)}e.removeEventListener(i,o,n)})}function Xe(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r;t.trim().split(Qp).forEach(function(i){if(n.once&&!eE){var a=e.listeners,s=a===void 0?{}:a;o=function(){delete s[i][r],e.removeEventListener(i,o,n);for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];r.apply(e,u)},s[i]||(s[i]={}),s[i][r]&&e.removeEventListener(i,s[i][r],n),s[i][r]=o,e.listeners=s}e.addEventListener(i,o,n)})}function Yt(e,t,r,n){var o;return wt(Event)&&wt(CustomEvent)?o=new CustomEvent(t,Kp({bubbles:!0,cancelable:!0,detail:r},n)):(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,!0,!0,r)),e.dispatchEvent(o)}function PW(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function Ac(e){var t=e.rotate,r=e.scaleX,n=e.scaleY,o=e.translateX,i=e.translateY,a=[];zt(o)&&o!==0&&a.push("translateX(".concat(o,"px)")),zt(i)&&i!==0&&a.push("translateY(".concat(i,"px)")),zt(t)&&t!==0&&a.push("rotate(".concat(t,"deg)")),zt(r)&&r!==1&&a.push("scaleX(".concat(r,")")),zt(n)&&n!==1&&a.push("scaleY(".concat(n,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function $W(e){return Qs(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var lf=Zn.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(Zn.navigator.userAgent);function tE(e,t,r){var n=document.createElement("img");if(e.naturalWidth&&!lf)return r(e.naturalWidth,e.naturalHeight),n;var o=document.body||document.documentElement;return n.onload=function(){r(n.width,n.height),lf||o.removeChild(n)},Pt(t.inheritedAttributes,function(i){var a=e.getAttribute(i);a!==null&&n.setAttribute(i,a)}),n.src=e.src,lf||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n)),n}function sc(e){switch(e){case 2:return xW;case 3:return bW;case 4:return vW;default:return""}}function IW(e){var t=Kp({},e),r=[];return Pt(e,function(n,o){delete t[o],Pt(t,function(i){var a=Math.abs(n.startX-i.startX),s=Math.abs(n.startY-i.startY),l=Math.abs(n.endX-i.endX),c=Math.abs(n.endY-i.endY),u=Math.sqrt(a*a+s*s),f=Math.sqrt(l*l+c*c),d=(f-u)/u;r.push(d)})}),r.sort(function(n,o){return Math.abs(n)<Math.abs(o)}),r[0]}function lc(e,t){var r=e.pageX,n=e.pageY,o={endX:r,endY:n};return t?o:Kp({timeStamp:Date.now(),startX:r,startY:n},o)}function DW(e){var t=0,r=0,n=0;return Pt(e,function(o){var i=o.startX,a=o.startY;t+=i,r+=a,n+=1}),t/=n,r/=n,{pageX:t,pageY:r}}var BW={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,r=t.body||t.documentElement;this.body=r,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=r.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(r).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,r=this.parent,n;t.inline&&(n={width:Math.max(r.offsetWidth,t.minWidth),height:Math.max(r.offsetHeight,t.minHeight)},this.parentData=n),(this.fulled||!n)&&(n=this.containerData),this.viewerData=jr({},n)},renderViewer:function(){this.options.inline&&!this.fulled&&hn(this.viewer,this.viewerData)},initList:function(){var t=this,r=this.element,n=this.options,o=this.list,i=[];o.innerHTML="",Pt(this.images,function(a,s){var l=a.src,c=a.alt||$W(l),u=t.getImageURL(a);if(l||u){var f=document.createElement("li"),d=document.createElement("img");Pt(n.inheritedAttributes,function(h){var p=a.getAttribute(h);p!==null&&d.setAttribute(h,p)}),n.navbar&&(d.src=l||u),d.alt=c,d.setAttribute("data-original-url",u||l),f.setAttribute("data-index",s),f.setAttribute("data-viewer-action","view"),f.setAttribute("role","button"),n.keyboard&&f.setAttribute("tabindex",0),f.appendChild(d),o.appendChild(f),i.push(f)}}),this.items=i,Pt(i,function(a){var s=a.firstElementChild,l,c;Y0(s,"filled",!0),n.loading&&qe(a,ua),Xe(s,Xr,l=function(f){St(s,pi,c),n.loading&&ht(a,ua),t.loadImage(f)},{once:!0}),Xe(s,pi,c=function(){St(s,Xr,l),n.loading&&ht(a,ua)},{once:!0})}),n.transition&&Xe(r,Xs,function(){qe(o,Wt)},{once:!0})},renderList:function(){var t=this.index,r=this.items[t];if(r){var n=r.nextElementSibling,o=parseInt(window.getComputedStyle(n||r).marginLeft,10),i=r.offsetWidth,a=i+o;hn(this.list,jr({width:a*this.length-o},Ac({translateX:(this.viewerData.width-i)/2-a*t})))}},resetList:function(){var t=this.list;t.innerHTML="",ht(t,Wt),hn(t,Ac({translateX:0}))},initImage:function(t){var r=this,n=this.options,o=this.image,i=this.viewerData,a=this.footer.offsetHeight,s=i.width,l=Math.max(i.height-a,a),c=this.imageData||{},u;this.imageInitializing={abort:function(){u.onload=null}},u=tE(o,n,function(f,d){var h=f/d,p=Math.max(0,Math.min(1,n.initialCoverage)),g=s,v=l;r.imageInitializing=!1,l*h>s?v=s/h:g=l*h,p=zt(p)?p:.9,g=Math.min(g*p,f),v=Math.min(v*p,d);var m=(s-g)/2,b=(l-v)/2,y={left:m,top:b,x:m,y:b,width:g,height:v,oldRatio:1,ratio:g/f,aspectRatio:h,naturalWidth:f,naturalHeight:d},x=jr({},y);n.rotatable&&(y.rotate=c.rotate||0,x.rotate=0),n.scalable&&(y.scaleX=c.scaleX||1,y.scaleY=c.scaleY||1,x.scaleX=1,x.scaleY=1),r.imageData=y,r.initialImageData=x,t&&t()})},renderImage:function(t){var r=this,n=this.image,o=this.imageData;if(hn(n,jr({width:o.width,height:o.height,marginLeft:o.x,marginTop:o.y},Ac(o))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&qi(n,Wt)){var i=function(){r.imageRendering=!1,t()};this.imageRendering={abort:function(){St(n,un,i)}},Xe(n,un,i,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},OW={bind:function(){var t=this.options,r=this.viewer,n=this.canvas,o=this.element.ownerDocument;Xe(r,_a,this.onClick=this.click.bind(this)),Xe(r,C1,this.onDragStart=this.dragstart.bind(this)),Xe(n,_1,this.onPointerDown=this.pointerdown.bind(this)),Xe(o,E1,this.onPointerMove=this.pointermove.bind(this)),Xe(o,k1,this.onPointerUp=this.pointerup.bind(this)),Xe(o,S1,this.onKeyDown=this.keydown.bind(this)),Xe(window,T1,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&Xe(r,A1,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&Xe(n,q0,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,r=this.viewer,n=this.canvas,o=this.element.ownerDocument;St(r,_a,this.onClick),St(r,C1,this.onDragStart),St(n,_1,this.onPointerDown),St(o,E1,this.onPointerMove),St(o,k1,this.onPointerUp),St(o,S1,this.onKeyDown),St(window,T1,this.onResize),t.zoomable&&t.zoomOnWheel&&St(r,A1,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&St(n,q0,this.onDblclick)}},LW={click:function(t){var r=this.options,n=this.imageData,o=t.target,i=ea(o,cu);switch(!i&&o.localName==="img"&&o.parentElement.localName==="li"&&(o=o.parentElement,i=ea(o,cu)),ca&&t.isTrusted&&o===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():r.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(ea(o,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(r.loop);break;case"play":this.play(r.fullscreen);break;case"next":this.next(r.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(ca&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var r=this.element,n=this.options,o=this.image,i=this.index,a=this.viewerData;ht(o,ys),n.loading&&ht(this.canvas,ua),o.style.cssText="height:0;"+"margin-left:".concat(a.width/2,"px;")+"margin-top:".concat(a.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Zs(o,yW,n.movable),Zs(o,Wt,n.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,wt(n.viewed)&&Xe(r,Xs,n.viewed,{once:!0}),Yt(r,Xs,{originalImage:t.images[i],index:i,image:o},{cancelable:!1})})})},loadImage:function(t){var r=t.target,n=r.parentNode,o=n.offsetWidth||30,i=n.offsetHeight||50,a=!!ea(r,"filled");tE(r,this.options,function(s,l){var c=s/l,u=o,f=i;i*c>o?a?u=i*c:f=o/c:a?f=o/c:u=i*c,hn(r,jr({width:u,height:f},Ac({translateX:(o-u)/2,translateY:(i-f)/2})))})},keydown:function(t){var r=this.options;if(r.keyboard){var n=t.keyCode||t.which||t.charCode;switch(n){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(n){case 27:this.played?this.stop():r.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(r.loop);break;case 38:t.preventDefault(),this.zoom(r.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(r.loop);break;case 40:t.preventDefault(),this.zoom(-r.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var r=this.options,n=this.pointers,o=t.buttons,i=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(zt(o)&&o!==1||zt(i)&&i!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?Pt(t.changedTouches,function(s){n[s.identifier]=lc(s)}):n[t.pointerId||0]=lc(t);var a=r.movable?kc:!1;r.zoomOnTouch&&r.zoomable&&Object.keys(n).length>1?a=cs:r.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(a=J_),r.transition&&(a===kc||a===cs)&&ht(this.image,Wt),this.action=a}},pointermove:function(t){var r=this.pointers,n=this.action;!this.viewed||!n||(t.preventDefault(),t.changedTouches?Pt(t.changedTouches,function(o){jr(r[o.identifier]||{},lc(o,!0))}):jr(r[t.pointerId||0]||{},lc(t,!0)),this.change(t))},pointerup:function(t){var r=this,n=this.options,o=this.action,i=this.pointers,a;t.changedTouches?Pt(t.changedTouches,function(s){a=i[s.identifier],delete i[s.identifier]}):(a=i[t.pointerId||0],delete i[t.pointerId||0]),o&&(t.preventDefault(),n.transition&&(o===kc||o===cs)&&qe(this.image,Wt),this.action=!1,ca&&o!==cs&&a&&Date.now()-a.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),n.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Yt(r.image,q0,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){r.imageClicked=!1},500)):(this.imageClicked=!1,n.backdrop&&n.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Yt(r.canvas,_a,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}Pt(this.player.getElementsByTagName("img"),function(r){Xe(r,Xr,t.loadImage.bind(t),{once:!0}),Yt(r,Xr)})}},wheel:function(t){var r=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,o=1;t.deltaY?o=t.deltaY>0?1:-1:t.wheelDelta?o=-t.wheelDelta/120:t.detail&&(o=t.detail>0?1:-1),this.zoom(-o*n,!0,null,t)}}},RW={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(wt(n.show)&&Xe(r,$1,n.show,{once:!0}),Yt(r,$1)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var o=this.viewer;if(ht(o,ri),o.setAttribute("role","dialog"),o.setAttribute("aria-labelledby",this.title.id),o.setAttribute("aria-modal",!0),o.removeAttribute("aria-hidden"),n.transition&&!t){var i=this.shown.bind(this);this.transitioning={abort:function(){St(o,un,i),ht(o,qr)}},qe(o,Wt),o.initialOffsetWidth=o.offsetWidth,Xe(o,un,i,{once:!0}),qe(o,qr)}else qe(o,qr),this.shown();return this},hide:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,o=this.options;if(o.inline||this.hiding||!(this.isShown||this.showing))return this;if(wt(o.hide)&&Xe(n,D1,o.hide,{once:!0}),Yt(n,D1)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,a=this.image,s=function(){ht(i,qr),t.hidden()};if(o.transition&&!r){var l=function u(f){f&&f.target===i&&(St(i,un,u),t.hidden())},c=function(){qi(i,Wt)?(Xe(i,un,l),ht(i,qr)):s()};this.transitioning={abort:function(){t.viewed&&qi(a,Wt)?St(a,un,c):qi(i,Wt)&&St(i,un,l)}},this.viewed&&qi(a,Wt)?(Xe(a,un,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else s();return this},view:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(r=Number(r)||0,this.hiding||this.played||r<0||r>=this.length||this.viewed&&r===this.index)return this;if(!this.isShown)return this.index=r,this.show();this.viewing&&this.viewing.abort();var n=this.element,o=this.options,i=this.title,a=this.canvas,s=this.items[r],l=s.querySelector("img"),c=ea(l,"originalUrl"),u=l.getAttribute("alt"),f=document.createElement("img");if(Pt(o.inheritedAttributes,function(v){var m=l.getAttribute(v);m!==null&&f.setAttribute(v,m)}),f.src=c,f.alt=u,wt(o.view)&&Xe(n,O1,o.view,{once:!0}),Yt(n,O1,{originalImage:this.images[r],index:r,image:f})===!1||!this.isShown||this.hiding||this.played)return this;var d=this.items[this.index];d&&(ht(d,ic),d.removeAttribute("aria-selected")),qe(s,ic),s.setAttribute("aria-selected",!0),o.focus&&s.focus(),this.image=f,this.viewed=!1,this.index=r,this.imageData={},qe(f,ys),o.loading&&qe(a,ua),a.innerHTML="",a.appendChild(f),this.renderList(),i.innerHTML="";var h=function(){var m=t.imageData,b=Array.isArray(o.title)?o.title[1]:o.title;i.innerHTML=TW(wt(b)?b.call(t,f,m):"".concat(u," (").concat(m.naturalWidth," × ").concat(m.naturalHeight,")"))},p,g;return Xe(n,Xs,h,{once:!0}),this.viewing={abort:function(){St(n,Xs,h),f.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(f.src="",St(f,Xr,p),t.timeout&&clearTimeout(t.timeout))}},f.complete?this.load():(Xe(f,Xr,p=function(){St(f,pi,g),t.load()},{once:!0}),Xe(f,pi,g=function(){St(f,Xr,p),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),ht(f,ys),o.loading&&ht(t.canvas,ua)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){ht(f,ys),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.index-1;return r<0&&(r=t?this.length-1:0),this.view(r),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.length-1,n=this.index+1;return n>r&&(n=t?0:r),this.view(n),this},move:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,n=this.imageData;return this.moveTo(Zi(t)?t:n.x+Number(t),Zi(r)?r:n.y+Number(r)),this},moveTo:function(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=this.element,a=this.options,s=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&a.movable){var l=s.x,c=s.y,u=!1;if(zt(t)?u=!0:t=l,zt(n)?u=!0:n=c,u){if(wt(a.move)&&Xe(i,L1,a.move,{once:!0}),Yt(i,L1,{x:t,y:n,oldX:l,oldY:c,originalEvent:o})===!1)return this;s.x=t,s.y=n,s.left=t,s.top=n,this.moving=!0,this.renderImage(function(){r.moving=!1,wt(a.moved)&&Xe(i,R1,a.moved,{once:!0}),Yt(i,R1,{x:t,y:n,oldX:l,oldY:c,originalEvent:o},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var r=this,n=this.element,o=this.options,i=this.imageData;if(t=Number(t),zt(t)&&this.viewed&&!this.played&&o.rotatable){var a=i.rotate;if(wt(o.rotate)&&Xe(n,F1,o.rotate,{once:!0}),Yt(n,F1,{degree:t,oldDegree:a})===!1)return this;i.rotate=t,this.rotating=!0,this.renderImage(function(){r.rotating=!1,wt(o.rotated)&&Xe(n,M1,o.rotated,{once:!0}),Yt(n,M1,{degree:t,oldDegree:a},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=this.element,i=this.options,a=this.imageData;if(t=Number(t),n=Number(n),this.viewed&&!this.played&&i.scalable){var s=a.scaleX,l=a.scaleY,c=!1;if(zt(t)?c=!0:t=s,zt(n)?c=!0:n=l,c){if(wt(i.scale)&&Xe(o,z1,i.scale,{once:!0}),Yt(o,z1,{scaleX:t,scaleY:n,oldScaleX:s,oldScaleY:l})===!1)return this;a.scaleX=t,a.scaleY=n,this.scaling=!0,this.renderImage(function(){r.scaling=!1,wt(i.scaled)&&Xe(o,N1,i.scaled,{once:!0}),Yt(o,N1,{scaleX:t,scaleY:n,oldScaleX:s,oldScaleY:l},{cancelable:!1})})}}return this},zoom:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(i.width*t/i.naturalWidth,r,n,o),this},zoomTo:function(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this.element,l=this.options,c=this.pointers,u=this.imageData,f=u.x,d=u.y,h=u.width,p=u.height,g=u.naturalWidth,v=u.naturalHeight;if(t=Math.max(0,t),zt(t)&&this.viewed&&!this.played&&(a||l.zoomable)){if(!a){var m=Math.max(.01,l.minZoomRatio),b=Math.min(100,l.maxZoomRatio);t=Math.min(Math.max(t,m),b)}if(i)switch(i.type){case"wheel":l.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var y=g*t,x=v*t,S=y-h,C=x-p,w=u.ratio;if(wt(l.zoom)&&Xe(s,H1,l.zoom,{once:!0}),Yt(s,H1,{ratio:t,oldRatio:w,originalEvent:i})===!1)return this;if(this.zooming=!0,i){var k=PW(this.viewer),A=c&&Object.keys(c).length>0?DW(c):{pageX:i.pageX,pageY:i.pageY};u.x-=S*((A.pageX-k.left-f)/h),u.y-=C*((A.pageY-k.top-d)/p)}else Ji(o)&&zt(o.x)&&zt(o.y)?(u.x-=S*((o.x-f)/h),u.y-=C*((o.y-d)/p)):(u.x-=S/2,u.y-=C/2);u.left=u.x,u.top=u.y,u.width=y,u.height=x,u.oldRatio=w,u.ratio=t,this.renderImage(function(){r.zooming=!1,wt(l.zoomed)&&Xe(s,j1,l.zoomed,{once:!0}),Yt(s,j1,{ratio:t,oldRatio:w,originalEvent:i},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var n=this.element,o=this.options;if(wt(o.play)&&Xe(n,W1,o.play,{once:!0}),Yt(n,W1)===!1)return this;var i=this.player,a=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=a,r&&this.requestFullscreen(r),qe(i,Wi),Pt(this.items,function(d,h){var p=d.querySelector("img"),g=document.createElement("img");g.src=ea(p,"originalUrl"),g.alt=p.getAttribute("alt"),g.referrerPolicy=p.referrerPolicy,l+=1,qe(g,Tc),Zs(g,Wt,o.transition),qi(d,ic)&&(qe(g,qr),c=h),s.push(g),Xe(g,Xr,a,{once:!0}),i.appendChild(g)}),zt(o.interval)&&o.interval>0){var u=function d(){clearTimeout(t.playing.timeout),ht(s[c],qr),c-=1,c=c>=0?c:l-1,qe(s[c],qr),t.playing.timeout=setTimeout(d,o.interval)},f=function d(){clearTimeout(t.playing.timeout),ht(s[c],qr),c+=1,c=c<l?c:0,qe(s[c],qr),t.playing.timeout=setTimeout(d,o.interval)};l>1&&(this.playing={prev:u,next:f,timeout:setTimeout(f,o.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var r=this.element,n=this.options;if(wt(n.stop)&&Xe(r,U1,n.stop,{once:!0}),Yt(r,U1)===!1)return this;var o=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,Pt(o.getElementsByTagName("img"),function(i){St(i,Xr,t.onLoadWhenPlay)}),ht(o,Wi),o.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,r=this.options,n=this.viewer,o=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!r.inline?this:(this.fulled=!0,this.open(),qe(this.button,x1),r.transition&&(ht(i,Wt),this.viewed&&ht(o,Wt)),qe(n,G0),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),hn(n,{zIndex:r.zIndex}),r.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=jr({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){r.transition&&setTimeout(function(){qe(o,Wt),qe(i,Wt)},0)})}),this)},exit:function(){var t=this,r=this.options,n=this.viewer,o=this.image,i=this.list;return!this.isShown||this.played||!this.fulled||!r.inline?this:(this.fulled=!1,this.close(),ht(this.button,x1),r.transition&&(ht(i,Wt),this.viewed&&ht(o,Wt)),r.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),ht(n,G0),hn(n,{zIndex:r.zIndexInline}),this.viewerData=jr({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){r.transition&&setTimeout(function(){qe(o,Wt),qe(i,Wt)},0)})}),this)},tooltip:function(){var t=this,r=this.options,n=this.tooltipBox,o=this.imageData;return!this.viewed||this.played||!r.tooltip?this:(n.textContent="".concat(Math.round(o.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):r.transition?(this.fading&&Yt(n,un),qe(n,Wi),qe(n,Tc),qe(n,Wt),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,qe(n,qr)):(qe(n,Wi),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){r.transition?(Xe(n,un,function(){ht(n,Wi),ht(n,Tc),ht(n,Wt),n.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),ht(n,qr),t.fading=!0):(ht(n,Wi),n.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=jr({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,r=this.element,n=this.options,o=this.isImg;if(o&&!r.parentNode)return this.destroy();var i=[];if(Pt(o?[r]:r.querySelectorAll("img"),function(c){wt(n.filter)?n.filter.call(t,c)&&i.push(c):t.getImageURL(c)&&i.push(c)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var a=[];if(Pt(this.items,function(c,u){var f=c.querySelector("img"),d=i[u];d&&f?(d.src!==f.src||d.alt!==f.alt)&&a.push(u):a.push(u)}),hn(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=a.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.items[this.index];qe(l,ic),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,r=this.options;return t[tt]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),r.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):r.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),r.inline||St(t,_a,this.onStart),t[tt]=void 0,this):this}},FW={getImageURL:function(t){var r=this.options.url;return Qs(r)?r=t.getAttribute(r):wt(r)?r=r.call(this,t):r="",r},enforceFocus:function(){var t=this;this.clearEnforceFocus(),Xe(document,w1,this.onFocusin=function(r){var n=t.viewer,o=r.target;if(!(o===document||o===n||n.contains(o))){for(;o;){if(o.getAttribute("tabindex")!==null||o.getAttribute("aria-modal")==="true")return;o=o.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(St(document,w1,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;qe(t,y1),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;ht(t,y1),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,r=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,r.focus&&(n.focus(),this.enforceFocus()),wt(r.shown)&&Xe(t,I1,r.shown,{once:!0}),Yt(t,I1)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,r=this.options,n=this.viewer;r.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),qe(n,ri),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(wt(r.hidden)&&Xe(t,B1,r.hidden,{once:!0}),Yt(t,B1,null,{cancelable:!1}))},requestFullscreen:function(t){var r=this.element.ownerDocument;if(this.fulled&&!(r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement)){var n=r.documentElement;n.requestFullscreen?Ji(t)?n.requestFullscreen(t):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var r=this.options,n=this.pointers,o=n[Object.keys(n)[0]];if(o){var i=o.endX-o.startX,a=o.endY-o.startY;switch(this.action){case kc:(i!==0||a!==0)&&(this.pointerMoved=!0,this.move(i,a,t));break;case cs:this.zoom(IW(n),!1,null,t);break;case J_:{this.action="switched";var s=Math.abs(i);s>1&&s>Math.abs(a)&&(this.pointers={},i>1?this.prev(r.loop):i<-1&&this.next(r.loop));break}}Pt(n,function(l){l.startX=l.endX,l.startY=l.endY})}},isSwitchable:function(){var t=this.imageData,r=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=r.width&&t.height<=r.height}},MW=Zn.Viewer,zW=function(e){return function(){return e+=1,e}}(-1),ka=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(uW(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=jr({},b1,Ji(r)&&r),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=zW(),this.init()}return dW(e,[{key:"init",value:function(){var r=this,n=this.element,o=this.options;if(!n[tt]){n[tt]=this,o.focus&&!o.keyboard&&(o.focus=!1);var i=n.localName==="img",a=[];if(Pt(i?[n]:n.querySelectorAll("img"),function(c){wt(o.filter)?o.filter.call(r,c)&&a.push(c):r.getImageURL(c)&&a.push(c)}),this.isImg=i,this.length=a.length,this.images=a,this.initBody(),Zi(document.createElement(tt).style.transition)&&(o.transition=!1),o.inline){var s=0,l=function(){if(s+=1,s===r.length){var u;r.initializing=!1,r.delaying={abort:function(){clearTimeout(u)}},u=setTimeout(function(){r.delaying=!1,r.build()},0)}};this.initializing={abort:function(){Pt(a,function(u){u.complete||(St(u,Xr,l),St(u,pi,l))})}},Pt(a,function(c){if(c.complete)l();else{var u,f;Xe(c,Xr,u=function(){St(c,pi,f),l()},{once:!0}),Xe(c,pi,f=function(){St(c,Xr,u),l()},{once:!0})}})}else Xe(n,_a,this.onStart=function(c){var u=c.target;u.localName==="img"&&(!wt(o.filter)||o.filter.call(r,u))&&r.view(r.images.indexOf(u))})}}},{key:"build",value:function(){if(!this.ready){var r=this.element,n=this.options,o=r.parentNode,i=document.createElement("div");i.innerHTML=pW;var a=i.querySelector(".".concat(tt,"-container")),s=a.querySelector(".".concat(tt,"-title")),l=a.querySelector(".".concat(tt,"-toolbar")),c=a.querySelector(".".concat(tt,"-navbar")),u=a.querySelector(".".concat(tt,"-button")),f=a.querySelector(".".concat(tt,"-canvas"));if(this.parent=o,this.viewer=a,this.title=s,this.toolbar=l,this.navbar=c,this.button=u,this.canvas=f,this.footer=a.querySelector(".".concat(tt,"-footer")),this.tooltipBox=a.querySelector(".".concat(tt,"-tooltip")),this.player=a.querySelector(".".concat(tt,"-player")),this.list=a.querySelector(".".concat(tt,"-list")),a.id="".concat(tt).concat(this.id),s.id="".concat(tt,"Title").concat(this.id),qe(s,n.title?sc(Array.isArray(n.title)?n.title[0]:n.title):ri),qe(c,n.navbar?sc(n.navbar):ri),Zs(u,ri,!n.button),n.keyboard&&u.setAttribute("tabindex",0),n.backdrop&&(qe(a,"".concat(tt,"-backdrop")),!n.inline&&n.backdrop!=="static"&&Y0(f,cu,"hide")),Qs(n.className)&&n.className&&n.className.split(Qp).forEach(function(y){qe(a,y)}),n.toolbar){var d=document.createElement("ul"),h=Ji(n.toolbar),p=ac.slice(0,3),g=ac.slice(7,9),v=ac.slice(9);h||qe(l,sc(n.toolbar)),Pt(h?n.toolbar:ac,function(y,x){var S=h&&Ji(y),C=h?Zp(x):y,w=S&&!Zi(y.show)?y.show:y;if(!(!w||!n.zoomable&&p.indexOf(C)!==-1||!n.rotatable&&g.indexOf(C)!==-1||!n.scalable&&v.indexOf(C)!==-1)){var k=S&&!Zi(y.size)?y.size:y,A=S&&!Zi(y.click)?y.click:y,T=document.createElement("li");n.keyboard&&T.setAttribute("tabindex",0),T.setAttribute("role","button"),qe(T,"".concat(tt,"-").concat(C)),wt(A)||Y0(T,cu,C),zt(w)&&qe(T,sc(w)),["small","large"].indexOf(k)!==-1?qe(T,"".concat(tt,"-").concat(k)):C==="play"&&qe(T,"".concat(tt,"-large")),wt(A)&&Xe(T,_a,A),d.appendChild(T)}}),l.appendChild(d)}else qe(l,ri);if(!n.rotatable){var m=l.querySelectorAll('li[class*="rotate"]');qe(m,ys),Pt(m,function(y){l.appendChild(y)})}if(n.inline)qe(u,mW),hn(a,{zIndex:n.zIndexInline}),window.getComputedStyle(o).position==="static"&&hn(o,{position:"relative"}),o.insertBefore(a,r.nextSibling);else{qe(u,gW),qe(a,G0),qe(a,Tc),qe(a,ri),hn(a,{zIndex:n.zIndex});var b=n.container;Qs(b)&&(b=r.ownerDocument.querySelector(b)),b||(b=this.body),b.appendChild(a)}if(n.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,wt(n.ready)&&Xe(r,P1,n.ready,{once:!0}),Yt(r,P1)===!1){this.ready=!1;return}this.ready&&n.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=MW,e}},{key:"setDefaults",value:function(r){jr(b1,Ji(r)&&r)}}]),e}();jr(ka.prototype,BW,OW,LW,RW,FW);/*!
* v-viewer v3.0.11
* https://github.com/mirari/v-viewer#readme
*
* Copyright 2022 mirari
* Released under the MIT license
*
* Date: 2022-10-25T08:49:33.301Z
*/var cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function NW(e){return e}var rE=NW;function HW(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var jW=HW,WW=jW,V1=Math.max;function UW(e,t,r){return t=V1(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=V1(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),WW(e,this,s)}}var VW=UW;function GW(e){return function(){return e}}var qW=GW,YW=typeof cc=="object"&&cc&&cc.Object===Object&&cc,nE=YW,KW=nE,XW=typeof self=="object"&&self&&self.Object===Object&&self,QW=KW||XW||Function("return this")(),rd=QW,ZW=rd,JW=ZW.Symbol,oE=JW,G1=oE,iE=Object.prototype,eU=iE.hasOwnProperty,tU=iE.toString,ts=G1?G1.toStringTag:void 0;function rU(e){var t=eU.call(e,ts),r=e[ts];try{e[ts]=void 0;var n=!0}catch{}var o=tU.call(e);return n&&(t?e[ts]=r:delete e[ts]),o}var nU=rU,oU=Object.prototype,iU=oU.toString;function aU(e){return iU.call(e)}var sU=aU,q1=oE,lU=nU,cU=sU,uU="[object Null]",dU="[object Undefined]",Y1=q1?q1.toStringTag:void 0;function fU(e){return e==null?e===void 0?dU:uU:Y1&&Y1 in Object(e)?lU(e):cU(e)}var nd=fU;function hU(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ga=hU,pU=nd,gU=Ga,mU="[object AsyncFunction]",vU="[object Function]",bU="[object GeneratorFunction]",xU="[object Proxy]";function yU(e){if(!gU(e))return!1;var t=pU(e);return t==vU||t==bU||t==mU||t==xU}var aE=yU,CU=rd,wU=CU["__core-js_shared__"],SU=wU,cf=SU,K1=function(){var e=/[^.]+$/.exec(cf&&cf.keys&&cf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _U(e){return!!K1&&K1 in e}var EU=_U,kU=Function.prototype,TU=kU.toString;function AU(e){if(e!=null){try{return TU.call(e)}catch{}try{return e+""}catch{}}return""}var PU=AU,$U=aE,IU=EU,DU=Ga,BU=PU,OU=/[\\^$.*+?()[\]{}|]/g,LU=/^\[object .+?Constructor\]$/,RU=Function.prototype,FU=Object.prototype,MU=RU.toString,zU=FU.hasOwnProperty,NU=RegExp("^"+MU.call(zU).replace(OU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HU(e){if(!DU(e)||IU(e))return!1;var t=$U(e)?NU:LU;return t.test(BU(e))}var jU=HU;function WU(e,t){return e==null?void 0:e[t]}var UU=WU,VU=jU,GU=UU;function qU(e,t){var r=GU(e,t);return VU(r)?r:void 0}var YU=qU,KU=YU,XU=function(){try{var e=KU(Object,"defineProperty");return e({},"",{}),e}catch{}}(),QU=XU,ZU=qW,X1=QU,JU=rE,eV=X1?function(e,t){return X1(e,"toString",{configurable:!0,enumerable:!1,value:ZU(t),writable:!0})}:JU,tV=eV,rV=800,nV=16,oV=Date.now;function iV(e){var t=0,r=0;return function(){var n=oV(),o=nV-(n-r);if(r=n,o>0){if(++t>=rV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var aV=iV,sV=tV,lV=aV,cV=lV(sV),uV=cV,dV=rE,fV=VW,hV=uV;function pV(e,t){return hV(fV(e,t,dV),e+"")}var gV=pV;function mV(e,t){return e===t||e!==e&&t!==t}var sE=mV,vV=9007199254740991;function bV(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vV}var lE=bV,xV=aE,yV=lE;function CV(e){return e!=null&&yV(e.length)&&!xV(e)}var cE=CV,wV=9007199254740991,SV=/^(?:0|[1-9]\d*)$/;function _V(e,t){var r=typeof e;return t=t??wV,!!t&&(r=="number"||r!="symbol"&&SV.test(e))&&e>-1&&e%1==0&&e<t}var uE=_V,EV=sE,kV=cE,TV=uE,AV=Ga;function PV(e,t,r){if(!AV(r))return!1;var n=typeof t;return(n=="number"?kV(r)&&TV(t,r.length):n=="string"&&t in r)?EV(r[t],e):!1}var $V=PV;function IV(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var DV=IV;function BV(e){return e!=null&&typeof e=="object"}var od=BV,OV=nd,LV=od,RV="[object Arguments]";function FV(e){return LV(e)&&OV(e)==RV}var MV=FV,Q1=MV,zV=od,dE=Object.prototype,NV=dE.hasOwnProperty,HV=dE.propertyIsEnumerable,jV=Q1(function(){return arguments}())?Q1:function(e){return zV(e)&&NV.call(e,"callee")&&!HV.call(e,"callee")},WV=jV,UV=Array.isArray,VV=UV,K0={exports:{}};function GV(){return!1}var qV=GV;(function(e,t){var r=rd,n=qV,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(K0,K0.exports);var YV=nd,KV=lE,XV=od,QV="[object Arguments]",ZV="[object Array]",JV="[object Boolean]",eG="[object Date]",tG="[object Error]",rG="[object Function]",nG="[object Map]",oG="[object Number]",iG="[object Object]",aG="[object RegExp]",sG="[object Set]",lG="[object String]",cG="[object WeakMap]",uG="[object ArrayBuffer]",dG="[object DataView]",fG="[object Float32Array]",hG="[object Float64Array]",pG="[object Int8Array]",gG="[object Int16Array]",mG="[object Int32Array]",vG="[object Uint8Array]",bG="[object Uint8ClampedArray]",xG="[object Uint16Array]",yG="[object Uint32Array]",Dt={};Dt[fG]=Dt[hG]=Dt[pG]=Dt[gG]=Dt[mG]=Dt[vG]=Dt[bG]=Dt[xG]=Dt[yG]=!0;Dt[QV]=Dt[ZV]=Dt[uG]=Dt[JV]=Dt[dG]=Dt[eG]=Dt[tG]=Dt[rG]=Dt[nG]=Dt[oG]=Dt[iG]=Dt[aG]=Dt[sG]=Dt[lG]=Dt[cG]=!1;function CG(e){return XV(e)&&KV(e.length)&&!!Dt[YV(e)]}var wG=CG;function SG(e){return function(t){return e(t)}}var _G=SG,X0={exports:{}};(function(e,t){var r=nE,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(X0,X0.exports);var EG=wG,kG=_G,Z1=X0.exports,J1=Z1&&Z1.isTypedArray,TG=J1?kG(J1):EG,AG=TG,PG=DV,$G=WV,IG=VV,DG=K0.exports,BG=uE,OG=AG,LG=Object.prototype,RG=LG.hasOwnProperty;function FG(e,t){var r=IG(e),n=!r&&$G(e),o=!r&&!n&&DG(e),i=!r&&!n&&!o&&OG(e),a=r||n||o||i,s=a?PG(e.length,String):[],l=s.length;for(var c in e)(t||RG.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||BG(c,l)))&&s.push(c);return s}var MG=FG,zG=Object.prototype;function NG(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zG;return e===r}var HG=NG;function jG(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var WG=jG,UG=Ga,VG=HG,GG=WG,qG=Object.prototype,YG=qG.hasOwnProperty;function KG(e){if(!UG(e))return GG(e);var t=VG(e),r=[];for(var n in e)n=="constructor"&&(t||!YG.call(e,n))||r.push(n);return r}var XG=KG,QG=MG,ZG=XG,JG=cE;function eq(e){return JG(e)?QG(e,!0):ZG(e)}var tq=eq,rq=gV,nq=sE,oq=$V,iq=tq,fE=Object.prototype,aq=fE.hasOwnProperty,sq=rq(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&oq(t[0],t[1],o)&&(n=1);++r<n;)for(var i=t[r],a=iq(i),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(u===void 0||nq(u,fE[c])&&!aq.call(e,c))&&(e[c]=i[c])}return e}),lq=sq;const cq=typeof window<"u"&&window!==null;hq();const uq=Object.prototype.propertyIsEnumerable,eb=Object.getOwnPropertySymbols;function Pc(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function dq(e){return typeof e=="object"?e===null:typeof e!="function"}function fq(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function hq(){return cq&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function pq(e,...t){if(!Pc(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof eb!="function")return e;for(const r of t){const n=eb(r);for(const o of n)uq.call(r,o)&&(e[o]=r[o])}return e}function hE(e,...t){let r=0;for(dq(e)&&(e=t[r++]),e||(e={});r<t.length;r++)if(Pc(t[r])){for(const n of Object.keys(t[r]))fq(n)&&(Pc(e[n])&&Pc(t[r][n])?hE(e[n],t[r][n]):e[n]=t[r][n]);pq(e,t[r])}return e}const gq=({images:e=[],options:t})=>{t=hE(t,{inline:!1});const r=document.createElement("div"),n=$("div",{style:{display:"none"},class:["__viewer-token"]},e.map(s=>$("img",typeof s=="string"?{src:s}:s)));zm(n,r);const o=r.firstElementChild;document.body.appendChild(o);const i=new ka(o,t),a=i.destroy.bind(i);return i.destroy=function(){return a(),zm(null,r),i},i.show(),o.addEventListener("hidden",function(){this.viewer===i&&i.destroy()}),i};var mq=rd,vq=function(){return mq.Date.now()},bq=vq,xq=/\s/;function yq(e){for(var t=e.length;t--&&xq.test(e.charAt(t)););return t}var Cq=yq,wq=Cq,Sq=/^\s+/;function _q(e){return e&&e.slice(0,wq(e)+1).replace(Sq,"")}var Eq=_q,kq=nd,Tq=od,Aq="[object Symbol]";function Pq(e){return typeof e=="symbol"||Tq(e)&&kq(e)==Aq}var $q=Pq,Iq=Eq,tb=Ga,Dq=$q,rb=0/0,Bq=/^[-+]0x[0-9a-f]+$/i,Oq=/^0b[01]+$/i,Lq=/^0o[0-7]+$/i,Rq=parseInt;function Fq(e){if(typeof e=="number")return e;if(Dq(e))return rb;if(tb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Iq(e);var r=Oq.test(e);return r||Lq.test(e)?Rq(e.slice(2),r?2:8):Bq.test(e)?rb:+e}var Mq=Fq,zq=Ga,uf=bq,nb=Mq,Nq="Expected a function",Hq=Math.max,jq=Math.min;function Wq(e,t,r){var n,o,i,a,s,l,c=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Nq);t=nb(t)||0,zq(r)&&(u=!!r.leading,f="maxWait"in r,i=f?Hq(nb(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(C){var w=n,k=o;return n=o=void 0,c=C,a=e.apply(k,w),a}function p(C){return c=C,s=setTimeout(m,t),u?h(C):a}function g(C){var w=C-l,k=C-c,A=t-w;return f?jq(A,i-k):A}function v(C){var w=C-l,k=C-c;return l===void 0||w>=t||w<0||f&&k>=i}function m(){var C=uf();if(v(C))return b(C);s=setTimeout(m,g(C))}function b(C){return s=void 0,d&&n?h(C):(n=o=void 0,a)}function y(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function x(){return s===void 0?a:b(uf())}function S(){var C=uf(),w=v(C);if(n=arguments,o=this,l=C,w){if(s===void 0)return p(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),a}return S.cancel=y,S.flush=x,S}var Uq=Wq;const Vq=({name:e="viewer",debug:t=!1}={})=>{async function r(f,d,h=!1,p=!1){await Qt(),!(p&&!n(f))&&(h||!f[`$${e}`]?(a(f),f[`$${e}`]=new ka(f,d),c("Viewer created")):(f[`$${e}`].update(),c("Viewer updated")))}function n(f){const d=f.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),h=d?d.join(""):void 0;return f.__viewerImageDiffCache===h?(c("Element change detected, but image(s) has not changed"),!1):(c("Image change detected"),f.__viewerImageDiffCache=h,!0)}function o(f,d,h,p){s(f);const g=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!g){c("Observer not supported");return}const v=new g(b=>{b.forEach(y=>{c(`Viewer mutation:${y.type}`),h(f,d,p,!0)})}),m={attributes:!0,childList:!0,characterData:!0,subtree:!0};v.observe(f,m),f.__viewerMutationObserver=v,c("Observer created")}function i(f,d,h,p){f.__viewerUnwatch=Je(()=>d.value,(g,v)=>{c("Change detected by watcher: ",d.value),p(f,g,!0,!1)},{deep:!0}),c("Watcher created, expression: ",d.value)}function a(f){f[`$${e}`]&&(f[`$${e}`].destroy(),delete f[`$${e}`],c("Viewer destroyed"))}function s(f){f.__viewerMutationObserver&&(f.__viewerMutationObserver.disconnect(),delete f.__viewerMutationObserver,c("observer destroyed"))}function l(f){f.__viewerUnwatch&&(f.__viewerUnwatch(),delete f.__viewerUnwatch,c("Watcher destroyed"))}function c(...f){t&&console.log(...f)}return{mounted(f,d,h){c("Viewer bind");const p=Uq(r,50);p(f,d.value),i(f,d,h,p),d.modifiers.static||o(f,d.value,p,d.modifiers.rebuild)},unmounted(f){c("Viewer unbind"),s(f),l(f),a(f)}}};var Gq=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const qq=pe({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(e,{emit:t}){let r;const n=M();function o(){r=new ka(n.value,e.options),t("inited",r)}function i(){r&&r.destroy()}function a(){i(),o()}function s(){r?(r.update(),t("inited",r)):o()}function l(){e.rebuild?a():s()}const c={deep:!0};return Je(()=>e.images,()=>Qt(()=>l()),c),Je(()=>e.trigger,()=>Qt(()=>l()),c),Je(()=>e.options,()=>Qt(()=>a()),c),_t(()=>o()),wi(()=>i()),{root:n,createViewer:o,rebuildViewer:a,updateViewer:s,destroyViewer:i}}}),Yq={ref:"root"};function Kq(e,t,r,n,o,i){return he(),Fe("div",Yq,[pa(e.$slots,"default",{images:e.images,options:e.options})],512)}var Xq=Gq(qq,[["render",Kq]]),Qq={install(e,{name:t="viewer",debug:r=!1,defaultOptions:n}={}){n&&ka.setDefaults(n),e.config.globalProperties[`$${t}Api`]=gq,e.component(t,lq(Xq,{name:t})),e.directive(t,Vq({name:t,debug:r}))},setDefaults(e){ka.setDefaults(e)}};/*!
* vue-router v4.3.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const Yi=typeof document<"u";function Zq(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const xt=Object.assign;function df(e,t){const r={};for(const n in t){const o=t[n];r[n]=mn(o)?o.map(e):e(o)}return r}const Cs=()=>{},mn=Array.isArray,pE=/#/g,Jq=/&/g,eY=/\//g,tY=/=/g,rY=/\?/g,gE=/\+/g,nY=/%5B/g,oY=/%5D/g,mE=/%5E/g,iY=/%60/g,vE=/%7B/g,aY=/%7C/g,bE=/%7D/g,sY=/%20/g;function Jp(e){return encodeURI(""+e).replace(aY,"|").replace(nY,"[").replace(oY,"]")}function lY(e){return Jp(e).replace(vE,"{").replace(bE,"}").replace(mE,"^")}function Q0(e){return Jp(e).replace(gE,"%2B").replace(sY,"+").replace(pE,"%23").replace(Jq,"%26").replace(iY,"`").replace(vE,"{").replace(bE,"}").replace(mE,"^")}function cY(e){return Q0(e).replace(tY,"%3D")}function uY(e){return Jp(e).replace(pE,"%23").replace(rY,"%3F")}function dY(e){return e==null?"":uY(e).replace(eY,"%2F")}function Js(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const fY=/\/$/,hY=e=>e.replace(fY,"");function ff(e,t,r="/"){let n,o={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),o=e(i)),s>-1&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=vY(n??t,r),{fullPath:n+(i&&"?")+i+a,path:n,query:o,hash:Js(a)}}function pY(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function ob(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gY(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Ta(t.matched[n],r.matched[o])&&xE(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ta(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!mY(e[r],t[r]))return!1;return!0}function mY(e,t){return mn(e)?ib(e,t):mn(t)?ib(t,e):e===t}function ib(e,t){return mn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function vY(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=r.length-1,a,s;for(a=0;a<n.length;a++)if(s=n[a],s!==".")if(s==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a).join("/")}var el;(function(e){e.pop="pop",e.push="push"})(el||(el={}));var ws;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ws||(ws={}));function bY(e){if(!e)if(Yi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hY(e)}const xY=/^[^#]+#/;function yY(e,t){return e.replace(xY,"#")+t}function CY(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const id=()=>({left:window.scrollX,top:window.scrollY});function wY(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=CY(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ab(e,t){return(history.state?history.state.position-t:-1)+e}const Z0=new Map;function SY(e,t){Z0.set(e,t)}function _Y(e){const t=Z0.get(e);return Z0.delete(e),t}let EY=()=>location.protocol+"//"+location.host;function yE(e,t){const{pathname:r,search:n,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),ob(l,"")}return ob(r,e)+n+o}function kY(e,t,r,n){let o=[],i=[],a=null;const s=({state:d})=>{const h=yE(e,location),p=r.value,g=t.value;let v=0;if(d){if(r.value=h,t.value=d,a&&a===p){a=null;return}v=g?d.position-g.position:0}else n(h);o.forEach(m=>{m(r.value,p,{delta:v,type:el.pop,direction:v?v>0?ws.forward:ws.back:ws.unknown})})};function l(){a=r.value}function c(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(xt({},d.state,{scroll:id()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function sb(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?id():null}}function TY(e){const{history:t,location:r}=window,n={value:yE(e,r)},o={value:t.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:EY()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(h){console.error(h),r[u?"replace":"assign"](d)}}function a(l,c){const u=xt({},t.state,sb(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});i(l,u,!0),n.value=l}function s(l,c){const u=xt({},o.value,t.state,{forward:l,scroll:id()});i(u.current,u,!0);const f=xt({},sb(n.value,l,null),{position:u.position+1},c);i(l,f,!1),n.value=l}return{location:n,state:o,push:s,replace:a}}function AY(e){e=bY(e);const t=TY(e),r=kY(e,t.state,t.location,t.replace);function n(i,a=!0){a||r.pauseListeners(),history.go(i)}const o=xt({location:"",base:e,go:n,createHref:yY.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function PY(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),AY(e)}function $Y(e){return typeof e=="string"||e&&typeof e=="object"}function CE(e){return typeof e=="string"||typeof e=="symbol"}const ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},wE=Symbol("");var lb;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(lb||(lb={}));function Aa(e,t){return xt(new Error,{type:e,[wE]:!0},t)}function jn(e,t){return e instanceof Error&&wE in e&&(t==null||!!(e.type&t))}const cb="[^/]+?",IY={sensitive:!1,strict:!1,start:!0,end:!0},DY=/[.+*?^${}()[\]/\\]/g;function BY(e,t){const r=xt({},IY,t),n=[];let o=r.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(o+="/");for(let f=0;f<c.length;f++){const d=c[f];let h=40+(r.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(DY,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:g,optional:v,regexp:m}=d;i.push({name:p,repeatable:g,optional:v});const b=m||cb;if(b!==cb){h+=10;try{new RegExp(`(${b})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+x.message)}}let y=g?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(y=v&&c.length<2?`(?:/${y})`:"/"+y),v&&(y+="?"),o+=y,h+=20,v&&(h+=-8),g&&(h+=-20),b===".*"&&(h+=-50)}u.push(h)}n.push(u)}if(r.strict&&r.end){const c=n.length-1;n[c][n[c].length-1]+=.7000000000000001}r.strict||(o+="/?"),r.end?o+="$":r.strict&&(o+="(?:/|$)");const a=new RegExp(o,r.sensitive?"":"i");function s(c){const u=c.match(a),f={};if(!u)return null;for(let d=1;d<u.length;d++){const h=u[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function l(c){let u="",f=!1;for(const d of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of d)if(h.type===0)u+=h.value;else if(h.type===1){const{value:p,repeatable:g,optional:v}=h,m=p in c?c[p]:"";if(mn(m)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=mn(m)?m.join("/"):m;if(!b)if(v)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=b}}return u||"/"}return{re:a,score:n,keys:i,parse:s,stringify:l}}function OY(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function LY(e,t){let r=0;const n=e.score,o=t.score;for(;r<n.length&&r<o.length;){const i=OY(n[r],o[r]);if(i)return i;r++}if(Math.abs(o.length-n.length)===1){if(ub(n))return 1;if(ub(o))return-1}return o.length-n.length}function ub(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const RY={type:0,value:""},FY=/[a-zA-Z0-9_]/;function MY(e){if(!e)return[[]];if(e==="/")return[[RY]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${c}": ${h}`)}let r=0,n=r;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,l,c="",u="";function f(){c&&(r===0?i.push({type:0,value:c}):r===1||r===2||r===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(c&&f(),a()):l===":"?(f(),r=1):d();break;case 4:d(),r=n;break;case 1:l==="("?r=2:FY.test(l)?d():(f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:r=3:u+=l;break;case 3:f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,u="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${c}"`),f(),a(),o}function zY(e,t,r){const n=BY(MY(e.path),r),o=xt(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function NY(e,t){const r=[],n=new Map;t=hb({strict:!1,end:!0,sensitive:!1},t);function o(u){return n.get(u)}function i(u,f,d){const h=!d,p=HY(u);p.aliasOf=d&&d.record;const g=hb(t,u),v=[p];if("alias"in u){const y=typeof u.alias=="string"?[u.alias]:u.alias;for(const x of y)v.push(xt({},p,{components:d?d.record.components:p.components,path:x,aliasOf:d?d.record:p}))}let m,b;for(const y of v){const{path:x}=y;if(f&&x[0]!=="/"){const S=f.record.path,C=S[S.length-1]==="/"?"":"/";y.path=f.record.path+(x&&C+x)}if(m=zY(y,f,g),d?d.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),h&&u.name&&!fb(m)&&a(u.name)),p.children){const S=p.children;for(let C=0;C<S.length;C++)i(S[C],m,d&&d.children[C])}d=d||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return b?()=>{a(b)}:Cs}function a(u){if(CE(u)){const f=n.get(u);f&&(n.delete(u),r.splice(r.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=r.indexOf(u);f>-1&&(r.splice(f,1),u.record.name&&n.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function s(){return r}function l(u){let f=0;for(;f<r.length&&LY(u,r[f])>=0&&(u.record.path!==r[f].record.path||!SE(u,r[f]));)f++;r.splice(f,0,u),u.record.name&&!fb(u)&&n.set(u.record.name,u)}function c(u,f){let d,h={},p,g;if("name"in u&&u.name){if(d=n.get(u.name),!d)throw Aa(1,{location:u});g=d.record.name,h=xt(db(f.params,d.keys.filter(b=>!b.optional).concat(d.parent?d.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),u.params&&db(u.params,d.keys.map(b=>b.name))),p=d.stringify(h)}else if(u.path!=null)p=u.path,d=r.find(b=>b.re.test(p)),d&&(h=d.parse(p),g=d.record.name);else{if(d=f.name?n.get(f.name):r.find(b=>b.re.test(f.path)),!d)throw Aa(1,{location:u,currentLocation:f});g=d.record.name,h=xt({},f.params,u.params),p=d.stringify(h)}const v=[];let m=d;for(;m;)v.unshift(m.record),m=m.parent;return{name:g,path:p,params:h,matched:v,meta:WY(v)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function db(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function HY(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:jY(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function jY(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function fb(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function WY(e){return e.reduce((t,r)=>xt(t,r.meta),{})}function hb(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function SE(e,t){return t.children.some(r=>r===e||SE(e,r))}function UY(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const i=n[o].replace(gE," "),a=i.indexOf("="),s=Js(a<0?i:i.slice(0,a)),l=a<0?null:Js(i.slice(a+1));if(s in t){let c=t[s];mn(c)||(c=t[s]=[c]),c.push(l)}else t[s]=l}return t}function pb(e){let t="";for(let r in e){const n=e[r];if(r=cY(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(mn(n)?n.map(i=>i&&Q0(i)):[n&&Q0(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function VY(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=mn(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const GY=Symbol(""),gb=Symbol(""),ad=Symbol(""),eg=Symbol(""),J0=Symbol("");function rs(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function So(e,t,r,n,o,i=a=>a()){const a=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const c=d=>{d===!1?l(Aa(4,{from:r,to:t})):d instanceof Error?l(d):$Y(d)?l(Aa(2,{from:t,to:d})):(a&&n.enterCallbacks[o]===a&&typeof d=="function"&&a.push(d),s())},u=i(()=>e.call(n&&n.instances[o],t,r,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function hf(e,t,r,n,o=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(qY(l)){const u=(l.__vccOpts||l)[t];u&&i.push(So(u,r,n,a,s,o))}else{let c=l();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const f=Zq(u)?u.default:u;a.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&So(h,r,n,a,s,o)()}))}}return i}function qY(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function mb(e){const t=ze(ad),r=ze(eg),n=R(()=>t.resolve(N(e.to))),o=R(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],f=r.matched;if(!u||!f.length)return-1;const d=f.findIndex(Ta.bind(null,u));if(d>-1)return d;const h=vb(l[c-2]);return c>1&&vb(u)===h&&f[f.length-1].path!==h?f.findIndex(Ta.bind(null,l[c-2])):d}),i=R(()=>o.value>-1&&XY(r.params,n.value.params)),a=R(()=>o.value>-1&&o.value===r.matched.length-1&&xE(r.params,n.value.params));function s(l={}){return KY(l)?t[N(e.replace)?"replace":"push"](N(e.to)).catch(Cs):Promise.resolve()}return{route:n,href:R(()=>n.value.href),isActive:i,isExactActive:a,navigate:s}}const YY=pe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:mb,setup(e,{slots:t}){const r=nn(mb(e)),{options:n}=ze(ad),o=R(()=>({[bb(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[bb(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:$("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}}),_E=YY;function KY(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function XY(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!mn(o)||o.length!==n.length||n.some((i,a)=>i!==o[a]))return!1}return!0}function vb(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const bb=(e,t,r)=>e??t??r,QY=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=ze(J0),o=R(()=>e.route||n.value),i=ze(gb,0),a=R(()=>{let c=N(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),s=R(()=>o.value.matched[a.value]);ft(gb,R(()=>a.value+1)),ft(GY,s),ft(J0,o);const l=M();return Je(()=>[l.value,s.value,e.name],([c,u,f],[d,h,p])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Ta(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=s.value,d=f&&f.components[u];if(!d)return xb(r.default,{Component:d,route:c});const h=f.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,v=$(d,xt({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return xb(r.default,{Component:v,route:c})||v}}});function xb(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const ZY=QY;function JY(e){const t=NY(e.routes,e),r=e.parseQuery||UY,n=e.stringifyQuery||pb,o=e.history,i=rs(),a=rs(),s=rs(),l=Xn(ho);let c=ho;Yi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=df.bind(null,q=>""+q),f=df.bind(null,dY),d=df.bind(null,Js);function h(q,te){let ie,ve;return CE(q)?(ie=t.getRecordMatcher(q),ve=te):ve=q,t.addRoute(ve,ie)}function p(q){const te=t.getRecordMatcher(q);te&&t.removeRoute(te)}function g(){return t.getRoutes().map(q=>q.record)}function v(q){return!!t.getRecordMatcher(q)}function m(q,te){if(te=xt({},te||l.value),typeof q=="string"){const E=ff(r,q,te.path),P=t.resolve({path:E.path},te),O=o.createHref(E.fullPath);return xt(E,P,{params:d(P.params),hash:Js(E.hash),redirectedFrom:void 0,href:O})}let ie;if(q.path!=null)ie=xt({},q,{path:ff(r,q.path,te.path).path});else{const E=xt({},q.params);for(const P in E)E[P]==null&&delete E[P];ie=xt({},q,{params:f(E)}),te.params=f(te.params)}const ve=t.resolve(ie,te),Le=q.hash||"";ve.params=u(d(ve.params));const $e=pY(n,xt({},q,{hash:lY(Le),path:ve.path})),_=o.createHref($e);return xt({fullPath:$e,hash:Le,query:n===pb?VY(q.query):q.query||{}},ve,{redirectedFrom:void 0,href:_})}function b(q){return typeof q=="string"?ff(r,q,l.value.path):xt({},q)}function y(q,te){if(c!==q)return Aa(8,{from:te,to:q})}function x(q){return w(q)}function S(q){return x(xt(b(q),{replace:!0}))}function C(q){const te=q.matched[q.matched.length-1];if(te&&te.redirect){const{redirect:ie}=te;let ve=typeof ie=="function"?ie(q):ie;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=b(ve):{path:ve},ve.params={}),xt({query:q.query,hash:q.hash,params:ve.path!=null?{}:q.params},ve)}}function w(q,te){const ie=c=m(q),ve=l.value,Le=q.state,$e=q.force,_=q.replace===!0,E=C(ie);if(E)return w(xt(b(E),{state:typeof E=="object"?xt({},Le,E.state):Le,force:$e,replace:_}),te||ie);const P=ie;P.redirectedFrom=te;let O;return!$e&&gY(n,ve,ie)&&(O=Aa(16,{to:P,from:ve}),U(ve,ve,!0,!1)),(O?Promise.resolve(O):T(P,ve)).catch(L=>jn(L)?jn(L,2)?L:ge(L):oe(L,P,ve)).then(L=>{if(L){if(jn(L,2))return w(xt({replace:_},b(L.to),{state:typeof L.to=="object"?xt({},Le,L.to.state):Le,force:$e}),te||P)}else L=D(P,ve,!0,_,Le);return I(P,ve,L),L})}function k(q,te){const ie=y(q,te);return ie?Promise.reject(ie):Promise.resolve()}function A(q){const te=Z.values().next().value;return te&&typeof te.runWithContext=="function"?te.runWithContext(q):q()}function T(q,te){let ie;const[ve,Le,$e]=eK(q,te);ie=hf(ve.reverse(),"beforeRouteLeave",q,te);for(const E of ve)E.leaveGuards.forEach(P=>{ie.push(So(P,q,te))});const _=k.bind(null,q,te);return ie.push(_),ye(ie).then(()=>{ie=[];for(const E of i.list())ie.push(So(E,q,te));return ie.push(_),ye(ie)}).then(()=>{ie=hf(Le,"beforeRouteUpdate",q,te);for(const E of Le)E.updateGuards.forEach(P=>{ie.push(So(P,q,te))});return ie.push(_),ye(ie)}).then(()=>{ie=[];for(const E of $e)if(E.beforeEnter)if(mn(E.beforeEnter))for(const P of E.beforeEnter)ie.push(So(P,q,te));else ie.push(So(E.beforeEnter,q,te));return ie.push(_),ye(ie)}).then(()=>(q.matched.forEach(E=>E.enterCallbacks={}),ie=hf($e,"beforeRouteEnter",q,te,A),ie.push(_),ye(ie))).then(()=>{ie=[];for(const E of a.list())ie.push(So(E,q,te));return ie.push(_),ye(ie)}).catch(E=>jn(E,8)?E:Promise.reject(E))}function I(q,te,ie){s.list().forEach(ve=>A(()=>ve(q,te,ie)))}function D(q,te,ie,ve,Le){const $e=y(q,te);if($e)return $e;const _=te===ho,E=Yi?history.state:{};ie&&(ve||_?o.replace(q.fullPath,xt({scroll:_&&E&&E.scroll},Le)):o.push(q.fullPath,Le)),l.value=q,U(q,te,ie,_),ge()}let B;function j(){B||(B=o.listen((q,te,ie)=>{if(!Be.listening)return;const ve=m(q),Le=C(ve);if(Le){w(xt(Le,{replace:!0}),ve).catch(Cs);return}c=ve;const $e=l.value;Yi&&SY(ab($e.fullPath,ie.delta),id()),T(ve,$e).catch(_=>jn(_,12)?_:jn(_,2)?(w(_.to,ve).then(E=>{jn(E,20)&&!ie.delta&&ie.type===el.pop&&o.go(-1,!1)}).catch(Cs),Promise.reject()):(ie.delta&&o.go(-ie.delta,!1),oe(_,ve,$e))).then(_=>{_=_||D(ve,$e,!1),_&&(ie.delta&&!jn(_,8)?o.go(-ie.delta,!1):ie.type===el.pop&&jn(_,20)&&o.go(-1,!1)),I(ve,$e,_)}).catch(Cs)}))}let F=rs(),z=rs(),V;function oe(q,te,ie){ge(q);const ve=z.list();return ve.length?ve.forEach(Le=>Le(q,te,ie)):console.error(q),Promise.reject(q)}function fe(){return V&&l.value!==ho?Promise.resolve():new Promise((q,te)=>{F.add([q,te])})}function ge(q){return V||(V=!q,j(),F.list().forEach(([te,ie])=>q?ie(q):te()),F.reset()),q}function U(q,te,ie,ve){const{scrollBehavior:Le}=e;if(!Yi||!Le)return Promise.resolve();const $e=!ie&&_Y(ab(q.fullPath,0))||(ve||!ie)&&history.state&&history.state.scroll||null;return Qt().then(()=>Le(q,te,$e)).then(_=>_&&wY(_)).catch(_=>oe(_,q,te))}const X=q=>o.go(q);let ae;const Z=new Set,Be={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,hasRoute:v,getRoutes:g,resolve:m,options:e,push:x,replace:S,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:z.add,isReady:fe,install(q){const te=this;q.component("RouterLink",_E),q.component("RouterView",ZY),q.config.globalProperties.$router=te,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>N(l)}),Yi&&!ae&&l.value===ho&&(ae=!0,x(o.location).catch(Le=>{}));const ie={};for(const Le in ho)Object.defineProperty(ie,Le,{get:()=>l.value[Le],enumerable:!0});q.provide(ad,te),q.provide(eg,uC(ie)),q.provide(J0,l);const ve=q.unmount;Z.add(q),q.unmount=function(){Z.delete(q),Z.size<1&&(c=ho,B&&B(),B=null,l.value=ho,ae=!1,V=!1),ve()}}};function ye(q){return q.reduce((te,ie)=>te.then(()=>A(ie)),Promise.resolve())}return Be}function eK(e,t){const r=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(c=>Ta(c,s))?n.push(s):r.push(s));const l=e.matched[a];l&&(t.matched.find(c=>Ta(c,l))||o.push(l))}return[r,n,o]}function sd(){return ze(ad)}function tg(){return ze(eg)}var EE={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ye,function(){return function(r){var n={};function o(i){if(n[i])return n[i].exports;var a=n[i]={i,l:!1,exports:{}};return r[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=r,o.c=n,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:s})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var l in i)o.d(s,l,(function(c){return i[c]}).bind(null,l));return s},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=0)}([function(r,n,o){var i,a,s=o(1)(),l=o(3),c=o(4),u=o(6),f=function(){var d=new c;return i=d.getResult(),a=new u,this};f.prototype={getSoftwareVersion:function(){return"0.1.11"},getBrowserData:function(){return i},getFingerprint:function(){var d="|",h=i.ua,p=this.getScreenPrint(),g=this.getPlugins(),v=this.getFonts(),m=this.isLocalStorage(),b=this.isSessionStorage(),y=this.getTimeZone(),x=this.getLanguage(),S=this.getSystemLanguage(),C=this.isCookie(),w=this.getCanvasPrint();return l(h+d+p+d+g+d+v+d+m+d+b+d+y+d+x+d+S+d+C+d+w,256)},getCustomFingerprint:function(){for(var d="|",h="",p=0;p<arguments.length;p++)h+=arguments[p]+d;return l(h,256)},getUserAgent:function(){return i.ua},getUserAgentLowerCase:function(){return i.ua.toLowerCase()},getBrowser:function(){return i.browser.name},getBrowserVersion:function(){return i.browser.version},getBrowserMajorVersion:function(){return i.browser.major},isIE:function(){return/IE/i.test(i.browser.name)},isChrome:function(){return/Chrome/i.test(i.browser.name)},isFirefox:function(){return/Firefox/i.test(i.browser.name)},isSafari:function(){return/Safari/i.test(i.browser.name)},isMobileSafari:function(){return/Mobile\sSafari/i.test(i.browser.name)},isOpera:function(){return/Opera/i.test(i.browser.name)},getEngine:function(){return i.engine.name},getEngineVersion:function(){return i.engine.version},getOS:function(){return i.os.name},getOSVersion:function(){return i.os.version},isWindows:function(){return/Windows/i.test(i.os.name)},isMac:function(){return/Mac/i.test(i.os.name)},isLinux:function(){return/Linux/i.test(i.os.name)},isUbuntu:function(){return/Ubuntu/i.test(i.os.name)},isSolaris:function(){return/Solaris/i.test(i.os.name)},getDevice:function(){return i.device.model},getDeviceType:function(){return i.device.type},getDeviceVendor:function(){return i.device.vendor},getCPU:function(){return i.cpu.architecture},isMobile:function(){var d=i.ua||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(d)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(d.substr(0,4))},isMobileMajor:function(){return this.isMobileAndroid()||this.isMobileBlackBerry()||this.isMobileIOS()||this.isMobileOpera()||this.isMobileWindows()},isMobileAndroid:function(){return!!i.ua.match(/Android/i)},isMobileOpera:function(){return!!i.ua.match(/Opera Mini/i)},isMobileWindows:function(){return!!i.ua.match(/IEMobile/i)},isMobileBlackBerry:function(){return!!i.ua.match(/BlackBerry/i)},isMobileIOS:function(){return!!i.ua.match(/iPhone|iPad|iPod/i)},isIphone:function(){return!!i.ua.match(/iPhone/i)},isIpad:function(){return!!i.ua.match(/iPad/i)},isIpod:function(){return!!i.ua.match(/iPod/i)},getScreenPrint:function(){return"Current Resolution: "+this.getCurrentResolution()+", Available Resolution: "+this.getAvailableResolution()+", Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()},getColorDepth:function(){return screen.colorDepth},getCurrentResolution:function(){return screen.width+"x"+screen.height},getAvailableResolution:function(){return screen.availWidth+"x"+screen.availHeight},getDeviceXDPI:function(){return screen.deviceXDPI},getDeviceYDPI:function(){return screen.deviceYDPI},getPlugins:function(){for(var d="",h=0;h<navigator.plugins.length;h++)h==navigator.plugins.length-1?d+=navigator.plugins[h].name:d+=navigator.plugins[h].name+", ";return d},isJava:function(){return navigator.javaEnabled()},getJavaVersion:function(){throw new Error("Please use client.java.js or client.js if you need this functionality!")},isFlash:function(){return!!navigator.plugins["Shockwave Flash"]},getFlashVersion:function(){throw new Error("Please use client.flash.js or client.js if you need this functionality!")},isSilverlight:function(){return!!navigator.plugins["Silverlight Plug-In"]},getSilverlightVersion:function(){return this.isSilverlight()?navigator.plugins["Silverlight Plug-In"].description:""},isMimeTypes:function(){return!(!navigator.mimeTypes||!navigator.mimeTypes.length)},getMimeTypes:function(){var d="";if(navigator.mimeTypes)for(var h=0;h<navigator.mimeTypes.length;h++)h==navigator.mimeTypes.length-1?d+=navigator.mimeTypes[h].description:d+=navigator.mimeTypes[h].description+", ";return d},isFont:function(d){return a.detect(d)},getFonts:function(){for(var d=["Abadi MT Condensed Light","Adobe Fangsong Std","Adobe Hebrew","Adobe Ming Std","Agency FB","Aharoni","Andalus","Angsana New","AngsanaUPC","Aparajita","Arab","Arabic Transparent","Arabic Typesetting","Arial Baltic","Arial Black","Arial CE","Arial CYR","Arial Greek","Arial TUR","Arial","Batang","BatangChe","Bauhaus 93","Bell MT","Bitstream Vera Serif","Bodoni MT","Bookman Old Style","Braggadocio","Broadway","Browallia New","BrowalliaUPC","Calibri Light","Calibri","Californian FB","Cambria Math","Cambria","Candara","Castellar","Casual","Centaur","Century Gothic","Chalkduster","Colonna MT","Comic Sans MS","Consolas","Constantia","Copperplate Gothic Light","Corbel","Cordia New","CordiaUPC","Courier New Baltic","Courier New CE","Courier New CYR","Courier New Greek","Courier New TUR","Courier New","DFKai-SB","DaunPenh","David","DejaVu LGC Sans Mono","Desdemona","DilleniaUPC","DokChampa","Dotum","DotumChe","Ebrima","Engravers MT","Eras Bold ITC","Estrangelo Edessa","EucrosiaUPC","Euphemia","Eurostile","FangSong","Forte","FrankRuehl","Franklin Gothic Heavy","Franklin Gothic Medium","FreesiaUPC","French Script MT","Gabriola","Gautami","Georgia","Gigi","Gisha","Goudy Old Style","Gulim","GulimChe","GungSeo","Gungsuh","GungsuhChe","Haettenschweiler","Harrington","Hei S","HeiT","Heisei Kaku Gothic","Hiragino Sans GB","Impact","Informal Roman","IrisUPC","Iskoola Pota","JasmineUPC","KacstOne","KaiTi","Kalinga","Kartika","Khmer UI","Kino MT","KodchiangUPC","Kokila","Kozuka Gothic Pr6N","Lao UI","Latha","Leelawadee","Levenim MT","LilyUPC","Lohit Gujarati","Loma","Lucida Bright","Lucida Console","Lucida Fax","Lucida Sans Unicode","MS Gothic","MS Mincho","MS PGothic","MS PMincho","MS Reference Sans Serif","MS UI Gothic","MV Boli","Magneto","Malgun Gothic","Mangal","Marlett","Matura MT Script Capitals","Meiryo UI","Meiryo","Menlo","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU-ExtB","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","Miriam Fixed","Miriam","Mongolian Baiti","MoolBoran","NSimSun","Narkisim","News Gothic MT","Niagara Solid","Nyala","PMingLiU","PMingLiU-ExtB","Palace Script MT","Palatino Linotype","Papyrus","Perpetua","Plantagenet Cherokee","Playbill","Prelude Bold","Prelude Condensed Bold","Prelude Condensed Medium","Prelude Medium","PreludeCompressedWGL Black","PreludeCompressedWGL Bold","PreludeCompressedWGL Light","PreludeCompressedWGL Medium","PreludeCondensedWGL Black","PreludeCondensedWGL Bold","PreludeCondensedWGL Light","PreludeCondensedWGL Medium","PreludeWGL Black","PreludeWGL Bold","PreludeWGL Light","PreludeWGL Medium","Raavi","Rachana","Rockwell","Rod","Sakkal Majalla","Sawasdee","Script MT Bold","Segoe Print","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Segoe UI","Shonar Bangla","Showcard Gothic","Shruti","SimHei","SimSun","SimSun-ExtB","Simplified Arabic Fixed","Simplified Arabic","Snap ITC","Sylfaen","Symbol","Tahoma","Times New Roman Baltic","Times New Roman CE","Times New Roman CYR","Times New Roman Greek","Times New Roman TUR","Times New Roman","TlwgMono","Traditional Arabic","Trebuchet MS","Tunga","Tw Cen MT Condensed Extra Bold","Ubuntu","Umpush","Univers","Utopia","Utsaah","Vani","Verdana","Vijaya","Vladimir Script","Vrinda","Webdings","Wide Latin","Wingdings"],h="",p=0;p<d.length;p++)a.detect(d[p])&&(h+=p==d.length-1?d[p]:d[p]+", ");return h},isLocalStorage:function(){try{return!!s.localStorage}catch{return!0}},isSessionStorage:function(){try{return!!s.sessionStorage}catch{return!0}},isCookie:function(){return navigator.cookieEnabled},getTimeZone:function(){var d,h;return d=new Date,(h=String(-d.getTimezoneOffset()/60))<0?"-"+("0"+(h*=-1)).slice(-2):"+"+("0"+h).slice(-2)},getLanguage:function(){return navigator.language},getSystemLanguage:function(){return navigator.systemLanguage||window.navigator.language},isCanvas:function(){var d=document.createElement("canvas");try{return!(!d.getContext||!d.getContext("2d"))}catch{return!1}},getCanvasPrint:function(){var d,h=document.createElement("canvas");try{d=h.getContext("2d")}catch{return""}var p="ClientJS,org <canvas> 1.0";return d.textBaseline="top",d.font="14px 'Arial'",d.textBaseline="alphabetic",d.fillStyle="#f60",d.fillRect(125,1,62,20),d.fillStyle="#069",d.fillText(p,2,15),d.fillStyle="rgba(102, 204, 0, 0.7)",d.fillText(p,4,17),h.toDataURL()}},n.ClientJS=f},function(r,n,o){var i=o(2);r.exports=function(){return typeof Ye=="object"&&Ye&&Ye.Math===Math&&Ye.Array===Array?Ye:i}},function(r,n,o){typeof self<"u"?r.exports=self:typeof window<"u"?r.exports=window:r.exports=Function("return this")()},function(r,n,o){r.exports=function(i,a){var s,l,c,u,f,d,h,p;for(s=3&i.length,l=i.length-s,c=a,f=3432918353,d=461845907,p=0;p<l;)h=255&i.charCodeAt(p)|(255&i.charCodeAt(++p))<<8|(255&i.charCodeAt(++p))<<16|(255&i.charCodeAt(++p))<<24,++p,c=27492+(65535&(u=5*(65535&(c=(c^=h=(65535&(h=(h=(65535&h)*f+(((h>>>16)*f&65535)<<16)&4294967295)<<15|h>>>17))*d+(((h>>>16)*d&65535)<<16)&4294967295)<<13|c>>>19))+((5*(c>>>16)&65535)<<16)&4294967295))+((58964+(u>>>16)&65535)<<16);switch(h=0,s){case 3:h^=(255&i.charCodeAt(p+2))<<16;case 2:h^=(255&i.charCodeAt(p+1))<<8;case 1:c^=h=(65535&(h=(h=(65535&(h^=255&i.charCodeAt(p)))*f+(((h>>>16)*f&65535)<<16)&4294967295)<<15|h>>>17))*d+(((h>>>16)*d&65535)<<16)&4294967295}return c^=i.length,c=2246822507*(65535&(c^=c>>>16))+((2246822507*(c>>>16)&65535)<<16)&4294967295,c=3266489909*(65535&(c^=c>>>13))+((3266489909*(c>>>16)&65535)<<16)&4294967295,(c^=c>>>16)>>>0}},function(r,n,o){var i;(function(a,s){var l="function",c="undefined",u="object",f="string",d="model",h="name",p="type",g="vendor",v="version",m="architecture",b="console",y="mobile",x="tablet",S="smarttv",C="wearable",w="embedded",k="Amazon",A="Apple",T="ASUS",I="BlackBerry",D="Firefox",B="Google",j="Huawei",F="LG",z="Microsoft",V="Motorola",oe="Opera",fe="Samsung",ge="Sony",U="Xiaomi",X="Zebra",ae="Facebook",Z=function(P){var O={};for(var L in P)O[P[L].toUpperCase()]=P[L];return O},Be=function(P,O){return typeof P===f&&ye(O).indexOf(ye(P))!==-1},ye=function(P){return P.toLowerCase()},q=function(P,O){if(typeof P===f)return P=P.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof O===c?P:P.substring(0,255)},te=function(P,O){for(var L,G,K,H,ee,Q,Ce=0;Ce<O.length&&!ee;){var Te=O[Ce],Se=O[Ce+1];for(L=G=0;L<Te.length&&!ee;)if(ee=Te[L++].exec(P))for(K=0;K<Se.length;K++)Q=ee[++G],typeof(H=Se[K])===u&&H.length>0?H.length==2?typeof H[1]==l?this[H[0]]=H[1].call(this,Q):this[H[0]]=H[1]:H.length==3?typeof H[1]!==l||H[1].exec&&H[1].test?this[H[0]]=Q?Q.replace(H[1],H[2]):s:this[H[0]]=Q?H[1].call(this,Q,H[2]):s:H.length==4&&(this[H[0]]=Q?H[3].call(this,Q.replace(H[1],H[2])):s):this[H]=Q||s;Ce+=2}},ie=function(P,O){for(var L in O)if(typeof O[L]===u&&O[L].length>0){for(var G=0;G<O[L].length;G++)if(Be(O[L][G],P))return L==="?"?s:L}else if(Be(O[L],P))return L==="?"?s:L;return P},ve={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Le={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,v],[/opios[\/ ]+([\w\.]+)/i],[v,[h,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[v,[h,oe]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[h,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[h,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[v,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[h,"IE"]],[/yabrowser\/([\w\.]+)/i],[v,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure Browser"],v],[/\bfocus\/([\w\.]+)/i],[v,[h,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[v,[h,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[h,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[h,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[v,[h,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 Browser"],v],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,ae],v],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[h,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[h,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,"Chrome WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[h,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,v],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[v,[h,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[v,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[v,ie,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[h,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[h,v]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,ye]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",ye]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,ye]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[g,fe],[p,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[g,fe],[p,y]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[g,A],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[g,A],[p,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[g,j],[p,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[d,[g,j],[p,y]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[g,U],[p,y]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[g,U],[p,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[d,[g,"OPPO"],[p,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[g,"Vivo"],[p,y]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[g,"Realme"],[p,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[g,V],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[g,V],[p,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[g,F],[p,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[g,F],[p,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[g,"Lenovo"],[p,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[g,"Nokia"],[p,y]],[/(pixel c)\b/i],[d,[g,B],[p,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[g,B],[p,y]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[g,ge],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[g,ge],[p,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[g,"OnePlus"],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[g,k],[p,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[g,k],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,g,[p,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[g,I],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[g,T],[p,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[g,T],[p,y]],[/(nexus 9)/i],[d,[g,"HTC"],[p,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[g,[d,/_/g," "],[p,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[g,"Acer"],[p,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[g,"Meizu"],[p,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[g,"Sharp"],[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,d,[p,y]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,d,[p,x]],[/(surface duo)/i],[d,[g,z],[p,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[g,"Fairphone"],[p,y]],[/(u304aa)/i],[d,[g,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[d,[g,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[d,[g,"RCA"],[p,x]],[/\b(venue[\d ]{2,7}) b/i],[d,[g,"Dell"],[p,x]],[/\b(q(?:mv|ta)\w+) b/i],[d,[g,"Verizon"],[p,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[g,"Barnes & Noble"],[p,x]],[/\b(tm\d{3}\w+) b/i],[d,[g,"NuVision"],[p,x]],[/\b(k88) b/i],[d,[g,"ZTE"],[p,x]],[/\b(nx\d{3}j) b/i],[d,[g,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[d,[g,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[d,[g,"Swiss"],[p,x]],[/\b((zeki)?tb.*\b) b/i],[d,[g,"Zeki"],[p,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],d,[p,x]],[/\b(ns-?\w{0,9}) b/i],[d,[g,"Insignia"],[p,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[g,"NextBook"],[p,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],d,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],d,[p,y]],[/\b(ph-1) /i],[d,[g,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[g,"Envizen"],[p,x]],[/\b(trio[-\w\. ]+) b/i],[d,[g,"MachSpeed"],[p,x]],[/\btu_(1491) b/i],[d,[g,"Rotor"],[p,x]],[/(shield[\w ]+) b/i],[d,[g,"Nvidia"],[p,x]],[/(sprint) (\w+)/i],[g,d,[p,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[g,z],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[g,X],[p,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[g,X],[p,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,d,[p,b]],[/droid.+; (shield) bui/i],[d,[g,"Nvidia"],[p,b]],[/(playstation [345portablevi]+)/i],[d,[g,ge],[p,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[g,z],[p,b]],[/smart-tv.+(samsung)/i],[g,[p,S]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[g,fe],[p,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,F],[p,S]],[/(apple) ?tv/i],[g,[d,"Apple TV"],[p,S]],[/crkey/i],[[d,"Chromecast"],[g,B],[p,S]],[/droid.+aft(\w)( bui|\))/i],[d,[g,k],[p,S]],[/\(dtv[\);].+(aquos)/i],[d,[g,"Sharp"],[p,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[g,q],[d,q],[p,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,S]],[/((pebble))app/i],[g,d,[p,C]],[/droid.+; (glass) \d/i],[d,[g,B],[p,C]],[/droid.+; (wt63?0{2,3})\)/i],[d,[g,X],[p,C]],[/(quest( 2)?)/i],[d,[g,ae],[p,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[p,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,x]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[p,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[h,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[v,ie,ve]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[v,ie,ve]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,"Mac OS"],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[v,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,v],[/\(bb(10);/i],[v,[h,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[h,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[h,"webOS"]],[/crkey\/([\d\.]+)/i],[v,[h,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[h,"Chromium OS"],v],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,v],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[h,v]]},$e=function(P,O){if(typeof P===u&&(O=P,P=s),!(this instanceof $e))return new $e(P,O).getResult();var L=P||(typeof a!==c&&a.navigator&&a.navigator.userAgent?a.navigator.userAgent:""),G=O?function(K,H){var ee={};for(var Q in K)H[Q]&&H[Q].length%2==0?ee[Q]=H[Q].concat(K[Q]):ee[Q]=K[Q];return ee}(Le,O):Le;return this.getBrowser=function(){var K,H={};return H.name=s,H.version=s,te.call(H,L,G.browser),H.major=typeof(K=H.version)===f?K.replace(/[^\d\.]/g,"").split(".")[0]:s,H},this.getCPU=function(){var K={};return K.architecture=s,te.call(K,L,G.cpu),K},this.getDevice=function(){var K={};return K.vendor=s,K.model=s,K.type=s,te.call(K,L,G.device),K},this.getEngine=function(){var K={};return K.name=s,K.version=s,te.call(K,L,G.engine),K},this.getOS=function(){var K={};return K.name=s,K.version=s,te.call(K,L,G.os),K},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return L},this.setUA=function(K){return L=typeof K===f&&K.length>255?q(K,255):K,this},this.setUA(L),this};$e.VERSION="0.7.30",$e.BROWSER=Z([h,v,"major"]),$e.CPU=Z([m]),$e.DEVICE=Z([d,g,p,b,y,S,x,C,w]),$e.ENGINE=$e.OS=Z([h,v]),typeof n!==c?(typeof r!==c&&r.exports&&(n=r.exports=$e),n.UAParser=$e):o(5)?(i=(function(){return $e}).call(n,o,n,r))===s||(r.exports=i):typeof a!==c&&(a.UAParser=$e);var _=typeof a!==c&&(a.jQuery||a.Zepto);if(_&&!_.ua){var E=new $e;_.ua=E.getResult(),_.ua.get=function(){return E.getUA()},_.ua.set=function(P){E.setUA(P);var O=E.getResult();for(var L in O)_.ua[L]=O[L]}}})(typeof window=="object"?window:this)},function(r,n){(function(o){r.exports=o}).call(this,{})},function(r,n){r.exports=function(){var o=["monospace","sans-serif","serif"],i=document.getElementsByTagName("body")[0],a=document.createElement("span");a.style.fontSize="72px",a.innerHTML="mmmmmmmmmmlli";var s={},l={};for(var c in o)a.style.fontFamily=o[c],i.appendChild(a),s[o[c]]=a.offsetWidth,l[o[c]]=a.offsetHeight,i.removeChild(a);this.detect=function(u){var f=!1;for(var d in o){a.style.fontFamily=u+","+o[d],i.appendChild(a);var h=a.offsetWidth!=s[o[d]]||a.offsetHeight!=l[o[d]];i.removeChild(a),f=f||h}return f}}}])})})(EE);var tK=EE.exports,kE={exports:{}};function rK(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pf={exports:{}};const nK={},oK=Object.freeze(Object.defineProperty({__proto__:null,default:nK},Symbol.toStringTag,{value:"Module"})),iK=H9(oK);var yb;function at(){return yb||(yb=1,function(e,t){(function(r,n){e.exports=n()})(Ye,function(){var r=r||function(n,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Ye<"u"&&Ye.crypto&&(i=Ye.crypto),!i&&typeof rK=="function")try{i=iK}catch{}var a=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function b(){}return function(y){var x;return b.prototype=y,x=new b,b.prototype=null,x}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(b){var y=s(this);return b&&y.mixIn(b),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var y in b)b.hasOwnProperty(y)&&(this[y]=b[y]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=u.extend({init:function(b,y){b=this.words=b||[],y!=o?this.sigBytes=y:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var y=this.words,x=b.words,S=this.sigBytes,C=b.sigBytes;if(this.clamp(),S%4)for(var w=0;w<C;w++){var k=x[w>>>2]>>>24-w%4*8&255;y[S+w>>>2]|=k<<24-(S+w)%4*8}else for(var A=0;A<C;A+=4)y[S+A>>>2]=x[A>>>2];return this.sigBytes+=C,this},clamp:function(){var b=this.words,y=this.sigBytes;b[y>>>2]&=4294967295<<32-y%4*8,b.length=n.ceil(y/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var y=[],x=0;x<b;x+=4)y.push(a());return new f.init(y,b)}}),d=l.enc={},h=d.Hex={stringify:function(b){for(var y=b.words,x=b.sigBytes,S=[],C=0;C<x;C++){var w=y[C>>>2]>>>24-C%4*8&255;S.push((w>>>4).toString(16)),S.push((w&15).toString(16))}return S.join("")},parse:function(b){for(var y=b.length,x=[],S=0;S<y;S+=2)x[S>>>3]|=parseInt(b.substr(S,2),16)<<24-S%8*4;return new f.init(x,y/2)}},p=d.Latin1={stringify:function(b){for(var y=b.words,x=b.sigBytes,S=[],C=0;C<x;C++){var w=y[C>>>2]>>>24-C%4*8&255;S.push(String.fromCharCode(w))}return S.join("")},parse:function(b){for(var y=b.length,x=[],S=0;S<y;S++)x[S>>>2]|=(b.charCodeAt(S)&255)<<24-S%4*8;return new f.init(x,y)}},g=d.Utf8={stringify:function(b){try{return decodeURIComponent(escape(p.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return p.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var y,x=this._data,S=x.words,C=x.sigBytes,w=this.blockSize,k=w*4,A=C/k;b?A=n.ceil(A):A=n.max((A|0)-this._minBufferSize,0);var T=A*w,I=n.min(T*4,C);if(T){for(var D=0;D<T;D+=w)this._doProcessBlock(S,D);y=S.splice(0,T),x.sigBytes-=I}return new f.init(y,I)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(b){return function(y,x){return new b.init(x).finalize(y)}},_createHmacHelper:function(b){return function(y,x){return new m.HMAC.init(b,x).finalize(y)}}});var m=l.algo={};return l}(Math);return r})}(pf)),pf.exports}var gf={exports:{}},Cb;function ld(){return Cb||(Cb=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){return function(n){var o=r,i=o.lib,a=i.Base,s=i.WordArray,l=o.x64={};l.Word=a.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=a.extend({init:function(c,u){c=this.words=c||[],u!=n?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,f=[],d=0;d<u;d++){var h=c[d];f.push(h.high),f.push(h.low)}return s.create(f,this.sigBytes)},clone:function(){for(var c=a.clone.call(this),u=c.words=this.words.slice(0),f=u.length,d=0;d<f;d++)u[d]=u[d].clone();return c}})}(),r})}(gf)),gf.exports}var mf={exports:{}},wb;function aK(){return wb||(wb=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,i=o.WordArray,a=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],f=0;f<c;f++)u[f>>>2]|=l[f]<<24-f%4*8;a.call(this,u,c)}else a.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})}(mf)),mf.exports}var vf={exports:{}},Sb;function sK(){return Sb||(Sb=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d<u;d+=2){var h=c[d>>>2]>>>16-d%4*8&65535;f.push(String.fromCharCode(h))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f<c;f++)u[f>>>1]|=l.charCodeAt(f)<<16-f%2*16;return i.create(u,c*2)}},a.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,f=[],d=0;d<u;d+=2){var h=s(c[d>>>2]>>>16-d%4*8&65535);f.push(String.fromCharCode(h))}return f.join("")},parse:function(l){for(var c=l.length,u=[],f=0;f<c;f++)u[f>>>1]|=s(l.charCodeAt(f)<<16-f%2*16);return i.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(vf)),vf.exports}var bf={exports:{}},_b;function Pi(){return _b||(_b=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,f=this._map;l.clamp();for(var d=[],h=0;h<u;h+=3)for(var p=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,v=c[h+2>>>2]>>>24-(h+2)%4*8&255,m=p<<16|g<<8|v,b=0;b<4&&h+b*.75<u;b++)d.push(f.charAt(m>>>6*(3-b)&63));var y=f.charAt(64);if(y)for(;d.length%4;)d.push(y);return d.join("")},parse:function(l){var c=l.length,u=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d<u.length;d++)f[u.charCodeAt(d)]=d}var h=u.charAt(64);if(h){var p=l.indexOf(h);p!==-1&&(c=p)}return s(l,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var f=[],d=0,h=0;h<c;h++)if(h%4){var p=u[l.charCodeAt(h-1)]<<h%4*2,g=u[l.charCodeAt(h)]>>>6-h%4*2,v=p|g;f[d>>>2]|=v<<24-d%4*8,d++}return i.create(f,d)}}(),r.enc.Base64})}(bf)),bf.exports}var xf={exports:{}},Eb;function lK(){return Eb||(Eb=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,f=l.sigBytes,d=c?this._safe_map:this._map;l.clamp();for(var h=[],p=0;p<f;p+=3)for(var g=u[p>>>2]>>>24-p%4*8&255,v=u[p+1>>>2]>>>24-(p+1)%4*8&255,m=u[p+2>>>2]>>>24-(p+2)%4*8&255,b=g<<16|v<<8|m,y=0;y<4&&p+y*.75<f;y++)h.push(d.charAt(b>>>6*(3-y)&63));var x=d.charAt(64);if(x)for(;h.length%4;)h.push(x);return h.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,f=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<f.length;h++)d[f.charCodeAt(h)]=h}var p=f.charAt(64);if(p){var g=l.indexOf(p);g!==-1&&(u=g)}return s(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var f=[],d=0,h=0;h<c;h++)if(h%4){var p=u[l.charCodeAt(h-1)]<<h%4*2,g=u[l.charCodeAt(h)]>>>6-h%4*2,v=p|g;f[d>>>2]|=v<<24-d%4*8,d++}return i.create(f,d)}}(),r.enc.Base64url})}(xf)),xf.exports}var yf={exports:{}},kb;function $i(){return kb||(kb=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=n.abs(n.sin(g+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var m=0;m<16;m++){var b=v+m,y=g[b];g[b]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var x=this._hash.words,S=g[v+0],C=g[v+1],w=g[v+2],k=g[v+3],A=g[v+4],T=g[v+5],I=g[v+6],D=g[v+7],B=g[v+8],j=g[v+9],F=g[v+10],z=g[v+11],V=g[v+12],oe=g[v+13],fe=g[v+14],ge=g[v+15],U=x[0],X=x[1],ae=x[2],Z=x[3];U=f(U,X,ae,Z,S,7,c[0]),Z=f(Z,U,X,ae,C,12,c[1]),ae=f(ae,Z,U,X,w,17,c[2]),X=f(X,ae,Z,U,k,22,c[3]),U=f(U,X,ae,Z,A,7,c[4]),Z=f(Z,U,X,ae,T,12,c[5]),ae=f(ae,Z,U,X,I,17,c[6]),X=f(X,ae,Z,U,D,22,c[7]),U=f(U,X,ae,Z,B,7,c[8]),Z=f(Z,U,X,ae,j,12,c[9]),ae=f(ae,Z,U,X,F,17,c[10]),X=f(X,ae,Z,U,z,22,c[11]),U=f(U,X,ae,Z,V,7,c[12]),Z=f(Z,U,X,ae,oe,12,c[13]),ae=f(ae,Z,U,X,fe,17,c[14]),X=f(X,ae,Z,U,ge,22,c[15]),U=d(U,X,ae,Z,C,5,c[16]),Z=d(Z,U,X,ae,I,9,c[17]),ae=d(ae,Z,U,X,z,14,c[18]),X=d(X,ae,Z,U,S,20,c[19]),U=d(U,X,ae,Z,T,5,c[20]),Z=d(Z,U,X,ae,F,9,c[21]),ae=d(ae,Z,U,X,ge,14,c[22]),X=d(X,ae,Z,U,A,20,c[23]),U=d(U,X,ae,Z,j,5,c[24]),Z=d(Z,U,X,ae,fe,9,c[25]),ae=d(ae,Z,U,X,k,14,c[26]),X=d(X,ae,Z,U,B,20,c[27]),U=d(U,X,ae,Z,oe,5,c[28]),Z=d(Z,U,X,ae,w,9,c[29]),ae=d(ae,Z,U,X,D,14,c[30]),X=d(X,ae,Z,U,V,20,c[31]),U=h(U,X,ae,Z,T,4,c[32]),Z=h(Z,U,X,ae,B,11,c[33]),ae=h(ae,Z,U,X,z,16,c[34]),X=h(X,ae,Z,U,fe,23,c[35]),U=h(U,X,ae,Z,C,4,c[36]),Z=h(Z,U,X,ae,A,11,c[37]),ae=h(ae,Z,U,X,D,16,c[38]),X=h(X,ae,Z,U,F,23,c[39]),U=h(U,X,ae,Z,oe,4,c[40]),Z=h(Z,U,X,ae,S,11,c[41]),ae=h(ae,Z,U,X,k,16,c[42]),X=h(X,ae,Z,U,I,23,c[43]),U=h(U,X,ae,Z,j,4,c[44]),Z=h(Z,U,X,ae,V,11,c[45]),ae=h(ae,Z,U,X,ge,16,c[46]),X=h(X,ae,Z,U,w,23,c[47]),U=p(U,X,ae,Z,S,6,c[48]),Z=p(Z,U,X,ae,D,10,c[49]),ae=p(ae,Z,U,X,fe,15,c[50]),X=p(X,ae,Z,U,T,21,c[51]),U=p(U,X,ae,Z,V,6,c[52]),Z=p(Z,U,X,ae,k,10,c[53]),ae=p(ae,Z,U,X,F,15,c[54]),X=p(X,ae,Z,U,C,21,c[55]),U=p(U,X,ae,Z,B,6,c[56]),Z=p(Z,U,X,ae,ge,10,c[57]),ae=p(ae,Z,U,X,I,15,c[58]),X=p(X,ae,Z,U,oe,21,c[59]),U=p(U,X,ae,Z,A,6,c[60]),Z=p(Z,U,X,ae,z,10,c[61]),ae=p(ae,Z,U,X,w,15,c[62]),X=p(X,ae,Z,U,j,21,c[63]),x[0]=x[0]+U|0,x[1]=x[1]+X|0,x[2]=x[2]+ae|0,x[3]=x[3]+Z|0},_doFinalize:function(){var g=this._data,v=g.words,m=this._nDataBytes*8,b=g.sigBytes*8;v[b>>>5]|=128<<24-b%32;var y=n.floor(m/4294967296),x=m;v[(b+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var S=this._hash,C=S.words,w=0;w<4;w++){var k=C[w];C[w]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return S},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});function f(g,v,m,b,y,x,S){var C=g+(v&m|~v&b)+y+S;return(C<<x|C>>>32-x)+v}function d(g,v,m,b,y,x,S){var C=g+(v&b|m&~b)+y+S;return(C<<x|C>>>32-x)+v}function h(g,v,m,b,y,x,S){var C=g+(v^m^b)+y+S;return(C<<x|C>>>32-x)+v}function p(g,v,m,b,y,x,S){var C=g+(m^(v|~b))+y+S;return(C<<x|C>>>32-x)+v}o.MD5=s._createHelper(u),o.HmacMD5=s._createHmacHelper(u)}(Math),r.MD5})}(yf)),yf.exports}var Cf={exports:{}},Tb;function TE(){return Tb||(Tb=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=o.Hasher,s=n.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var d=this._hash.words,h=d[0],p=d[1],g=d[2],v=d[3],m=d[4],b=0;b<80;b++){if(b<16)l[b]=u[f+b]|0;else{var y=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=y<<1|y>>>31}var x=(h<<5|h>>>27)+m+l[b];b<20?x+=(p&g|~p&v)+1518500249:b<40?x+=(p^g^v)+1859775393:b<60?x+=(p&g|p&v|g&v)-1894007588:x+=(p^g^v)-899497514,m=v,v=g,g=p<<30|p>>>2,p=h,h=x}d[0]=d[0]+h|0,d[1]=d[1]+p|0,d[2]=d[2]+g|0,d[3]=d[3]+v|0,d[4]=d[4]+m|0},_doFinalize:function(){var u=this._data,f=u.words,d=this._nDataBytes*8,h=u.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),f[(h+64>>>9<<4)+15]=d,u.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var u=a.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c)}(),r.SHA1})}(Cf)),Cf.exports}var wf={exports:{}},Ab;function rg(){return Ab||(Ab=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=[],u=[];(function(){function h(m){for(var b=n.sqrt(m),y=2;y<=b;y++)if(!(m%y))return!1;return!0}function p(m){return(m-(m|0))*4294967296|0}for(var g=2,v=0;v<64;)h(g)&&(v<8&&(c[v]=p(n.pow(g,1/2))),u[v]=p(n.pow(g,1/3)),v++),g++})();var f=[],d=l.SHA256=s.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(h,p){for(var g=this._hash.words,v=g[0],m=g[1],b=g[2],y=g[3],x=g[4],S=g[5],C=g[6],w=g[7],k=0;k<64;k++){if(k<16)f[k]=h[p+k]|0;else{var A=f[k-15],T=(A<<25|A>>>7)^(A<<14|A>>>18)^A>>>3,I=f[k-2],D=(I<<15|I>>>17)^(I<<13|I>>>19)^I>>>10;f[k]=T+f[k-7]+D+f[k-16]}var B=x&S^~x&C,j=v&m^v&b^m&b,F=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),z=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),V=w+z+B+u[k]+f[k],oe=F+j;w=C,C=S,S=x,x=y+V|0,y=b,b=m,m=v,v=V+oe|0}g[0]=g[0]+v|0,g[1]=g[1]+m|0,g[2]=g[2]+b|0,g[3]=g[3]+y|0,g[4]=g[4]+x|0,g[5]=g[5]+S|0,g[6]=g[6]+C|0,g[7]=g[7]+w|0},_doFinalize:function(){var h=this._data,p=h.words,g=this._nDataBytes*8,v=h.sigBytes*8;return p[v>>>5]|=128<<24-v%32,p[(v+64>>>9<<4)+14]=n.floor(g/4294967296),p[(v+64>>>9<<4)+15]=g,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});o.SHA256=s._createHelper(d),o.HmacSHA256=s._createHmacHelper(d)}(Math),r.SHA256})}(wf)),wf.exports}var Sf={exports:{}},Pb;function cK(){return Pb||(Pb=1,function(e,t){(function(r,n,o){e.exports=n(at(),rg())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.algo,s=a.SHA256,l=a.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(Sf)),Sf.exports}var _f={exports:{}},$b;function AE(){return $b||($b=1,function(e,t){(function(r,n,o){e.exports=n(at(),ld())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.Hasher,a=n.x64,s=a.Word,l=a.WordArray,c=n.algo;function u(){return s.create.apply(s,arguments)}var f=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var p=0;p<80;p++)d[p]=u()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(p,g){for(var v=this._hash.words,m=v[0],b=v[1],y=v[2],x=v[3],S=v[4],C=v[5],w=v[6],k=v[7],A=m.high,T=m.low,I=b.high,D=b.low,B=y.high,j=y.low,F=x.high,z=x.low,V=S.high,oe=S.low,fe=C.high,ge=C.low,U=w.high,X=w.low,ae=k.high,Z=k.low,Be=A,ye=T,q=I,te=D,ie=B,ve=j,Le=F,$e=z,_=V,E=oe,P=fe,O=ge,L=U,G=X,K=ae,H=Z,ee=0;ee<80;ee++){var Q,Ce,Te=d[ee];if(ee<16)Ce=Te.high=p[g+ee*2]|0,Q=Te.low=p[g+ee*2+1]|0;else{var Se=d[ee-15],W=Se.high,J=Se.low,Oe=(W>>>1|J<<31)^(W>>>8|J<<24)^W>>>7,He=(J>>>1|W<<31)^(J>>>8|W<<24)^(J>>>7|W<<25),st=d[ee-2],yt=st.high,Gt=st.low,Nn=(yt>>>19|Gt<<13)^(yt<<3|Gt>>>29)^yt>>>6,hr=(Gt>>>19|yt<<13)^(Gt<<3|yt>>>29)^(Gt>>>6|yt<<26),Oi=d[ee-7],de=Oi.high,Ee=Oi.low,Ue=d[ee-16],Ct=Ue.high,jt=Ue.low;Q=He+Ee,Ce=Oe+de+(Q>>>0<He>>>0?1:0),Q=Q+hr,Ce=Ce+Nn+(Q>>>0<hr>>>0?1:0),Q=Q+jt,Ce=Ce+Ct+(Q>>>0<jt>>>0?1:0),Te.high=Ce,Te.low=Q}var pr=_&P^~_&L,Ur=E&O^~E&G,Ft=Be&q^Be&ie^q&ie,ln=ye&te^ye&ve^te&ve,Wo=(Be>>>28|ye<<4)^(Be<<30|ye>>>2)^(Be<<25|ye>>>7),Gg=(ye>>>28|Be<<4)^(ye<<30|Be>>>2)^(ye<<25|Be>>>7),h8=(_>>>14|E<<18)^(_>>>18|E<<14)^(_<<23|E>>>9),p8=(E>>>14|_<<18)^(E>>>18|_<<14)^(E<<23|_>>>9),qg=f[ee],g8=qg.high,Yg=qg.low,Fr=H+p8,io=K+h8+(Fr>>>0<H>>>0?1:0),Fr=Fr+Ur,io=io+pr+(Fr>>>0<Ur>>>0?1:0),Fr=Fr+Yg,io=io+g8+(Fr>>>0<Yg>>>0?1:0),Fr=Fr+Q,io=io+Ce+(Fr>>>0<Q>>>0?1:0),Kg=Gg+ln,m8=Wo+Ft+(Kg>>>0<Gg>>>0?1:0);K=L,H=G,L=P,G=O,P=_,O=E,E=$e+Fr|0,_=Le+io+(E>>>0<$e>>>0?1:0)|0,Le=ie,$e=ve,ie=q,ve=te,q=Be,te=ye,ye=Fr+Kg|0,Be=io+m8+(ye>>>0<Fr>>>0?1:0)|0}T=m.low=T+ye,m.high=A+Be+(T>>>0<ye>>>0?1:0),D=b.low=D+te,b.high=I+q+(D>>>0<te>>>0?1:0),j=y.low=j+ve,y.high=B+ie+(j>>>0<ve>>>0?1:0),z=x.low=z+$e,x.high=F+Le+(z>>>0<$e>>>0?1:0),oe=S.low=oe+E,S.high=V+_+(oe>>>0<E>>>0?1:0),ge=C.low=ge+O,C.high=fe+P+(ge>>>0<O>>>0?1:0),X=w.low=X+G,w.high=U+L+(X>>>0<G>>>0?1:0),Z=k.low=Z+H,k.high=ae+K+(Z>>>0<H>>>0?1:0)},_doFinalize:function(){var p=this._data,g=p.words,v=this._nDataBytes*8,m=p.sigBytes*8;g[m>>>5]|=128<<24-m%32,g[(m+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(m+128>>>10<<5)+31]=v,p.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var p=i.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:1024/32});n.SHA512=i._createHelper(h),n.HmacSHA512=i._createHmacHelper(h)}(),r.SHA512})}(_f)),_f.exports}var Ef={exports:{}},Ib;function uK(){return Ib||(Ib=1,function(e,t){(function(r,n,o){e.exports=n(at(),ld(),AE())})(Ye,function(r){return function(){var n=r,o=n.x64,i=o.Word,a=o.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c)}(),r.SHA384})}(Ef)),Ef.exports}var kf={exports:{}},Db;function dK(){return Db||(Db=1,function(e,t){(function(r,n,o){e.exports=n(at(),ld())})(Ye,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.x64,c=l.Word,u=o.algo,f=[],d=[],h=[];(function(){for(var v=1,m=0,b=0;b<24;b++){f[v+5*m]=(b+1)*(b+2)/2%64;var y=m%5,x=(2*v+3*m)%5;v=y,m=x}for(var v=0;v<5;v++)for(var m=0;m<5;m++)d[v+5*m]=m+(2*v+3*m)%5*5;for(var S=1,C=0;C<24;C++){for(var w=0,k=0,A=0;A<7;A++){if(S&1){var T=(1<<A)-1;T<32?k^=1<<T:w^=1<<T-32}S&128?S=S<<1^113:S<<=1}h[C]=c.create(w,k)}})();var p=[];(function(){for(var v=0;v<25;v++)p[v]=c.create()})();var g=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],m=0;m<25;m++)v[m]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,m){for(var b=this._state,y=this.blockSize/2,x=0;x<y;x++){var S=v[m+2*x],C=v[m+2*x+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var w=b[x];w.high^=C,w.low^=S}for(var k=0;k<24;k++){for(var A=0;A<5;A++){for(var T=0,I=0,D=0;D<5;D++){var w=b[A+5*D];T^=w.high,I^=w.low}var B=p[A];B.high=T,B.low=I}for(var A=0;A<5;A++)for(var j=p[(A+4)%5],F=p[(A+1)%5],z=F.high,V=F.low,T=j.high^(z<<1|V>>>31),I=j.low^(V<<1|z>>>31),D=0;D<5;D++){var w=b[A+5*D];w.high^=T,w.low^=I}for(var oe=1;oe<25;oe++){var T,I,w=b[oe],fe=w.high,ge=w.low,U=f[oe];U<32?(T=fe<<U|ge>>>32-U,I=ge<<U|fe>>>32-U):(T=ge<<U-32|fe>>>64-U,I=fe<<U-32|ge>>>64-U);var X=p[d[oe]];X.high=T,X.low=I}var ae=p[0],Z=b[0];ae.high=Z.high,ae.low=Z.low;for(var A=0;A<5;A++)for(var D=0;D<5;D++){var oe=A+5*D,w=b[oe],Be=p[oe],ye=p[(A+1)%5+5*D],q=p[(A+2)%5+5*D];w.high=Be.high^~ye.high&q.high,w.low=Be.low^~ye.low&q.low}var w=b[0],te=h[k];w.high^=te.high,w.low^=te.low}},_doFinalize:function(){var v=this._data,m=v.words;this._nDataBytes*8;var b=v.sigBytes*8,y=this.blockSize*32;m[b>>>5]|=1<<24-b%32,m[(n.ceil((b+1)/y)*y>>>5)-1]|=128,v.sigBytes=m.length*4,this._process();for(var x=this._state,S=this.cfg.outputLength/8,C=S/8,w=[],k=0;k<C;k++){var A=x[k],T=A.high,I=A.low;T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,w.push(I),w.push(T)}return new a.init(w,S)},clone:function(){for(var v=s.clone.call(this),m=v._state=this._state.slice(0),b=0;b<25;b++)m[b]=m[b].clone();return v}});o.SHA3=s._createHelper(g),o.HmacSHA3=s._createHmacHelper(g)}(Math),r.SHA3})}(kf)),kf.exports}var Tf={exports:{}},Bb;function fK(){return Bb||(Bb=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=a.create([0,1518500249,1859775393,2400959708,2840853838]),p=a.create([1352829926,1548603684,1836072691,2053994217,0]),g=l.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,w){for(var k=0;k<16;k++){var A=w+k,T=C[A];C[A]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var I=this._hash.words,D=h.words,B=p.words,j=c.words,F=u.words,z=f.words,V=d.words,oe,fe,ge,U,X,ae,Z,Be,ye,q;ae=oe=I[0],Z=fe=I[1],Be=ge=I[2],ye=U=I[3],q=X=I[4];for(var te,k=0;k<80;k+=1)te=oe+C[w+j[k]]|0,k<16?te+=v(fe,ge,U)+D[0]:k<32?te+=m(fe,ge,U)+D[1]:k<48?te+=b(fe,ge,U)+D[2]:k<64?te+=y(fe,ge,U)+D[3]:te+=x(fe,ge,U)+D[4],te=te|0,te=S(te,z[k]),te=te+X|0,oe=X,X=U,U=S(ge,10),ge=fe,fe=te,te=ae+C[w+F[k]]|0,k<16?te+=x(Z,Be,ye)+B[0]:k<32?te+=y(Z,Be,ye)+B[1]:k<48?te+=b(Z,Be,ye)+B[2]:k<64?te+=m(Z,Be,ye)+B[3]:te+=v(Z,Be,ye)+B[4],te=te|0,te=S(te,V[k]),te=te+q|0,ae=q,q=ye,ye=S(Be,10),Be=Z,Z=te;te=I[1]+ge+ye|0,I[1]=I[2]+U+q|0,I[2]=I[3]+X+ae|0,I[3]=I[4]+oe+Z|0,I[4]=I[0]+fe+Be|0,I[0]=te},_doFinalize:function(){var C=this._data,w=C.words,k=this._nDataBytes*8,A=C.sigBytes*8;w[A>>>5]|=128<<24-A%32,w[(A+64>>>9<<4)+14]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,C.sigBytes=(w.length+1)*4,this._process();for(var T=this._hash,I=T.words,D=0;D<5;D++){var B=I[D];I[D]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}return T},clone:function(){var C=s.clone.call(this);return C._hash=this._hash.clone(),C}});function v(C,w,k){return C^w^k}function m(C,w,k){return C&w|~C&k}function b(C,w,k){return(C|~w)^k}function y(C,w,k){return C&k|w&~k}function x(C,w,k){return C^(w|~k)}function S(C,w){return C<<w|C>>>32-w}o.RIPEMD160=s._createHelper(g),o.HmacRIPEMD160=s._createHmacHelper(g)}(),r.RIPEMD160})}(Tf)),Tf.exports}var Af={exports:{}},Ob;function ng(){return Ob||(Ob=1,function(e,t){(function(r,n){e.exports=n(at())})(Ye,function(r){(function(){var n=r,o=n.lib,i=o.Base,a=n.enc,s=a.Utf8,l=n.algo;l.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var f=c.blockSize,d=f*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),p=this._iKey=u.clone(),g=h.words,v=p.words,m=0;m<f;m++)g[m]^=1549556828,v[m]^=909522486;h.sigBytes=p.sigBytes=d,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,f=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(f));return d}})})()})}(Af)),Af.exports}var Pf={exports:{}},Lb;function hK(){return Lb||(Lb=1,function(e,t){(function(r,n,o){e.exports=n(at(),rg(),ng())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.Base,a=o.WordArray,s=n.algo,l=s.SHA256,c=s.HMAC,u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,d){for(var h=this.cfg,p=c.create(h.hasher,f),g=a.create(),v=a.create([1]),m=g.words,b=v.words,y=h.keySize,x=h.iterations;m.length<y;){var S=p.update(d).finalize(v);p.reset();for(var C=S.words,w=C.length,k=S,A=1;A<x;A++){k=p.finalize(k),p.reset();for(var T=k.words,I=0;I<w;I++)C[I]^=T[I]}g.concat(S),b[0]++}return g.sigBytes=y*4,g}});n.PBKDF2=function(f,d,h){return u.create(h).compute(f,d)}}(),r.PBKDF2})}(Pf)),Pf.exports}var $f={exports:{}},Rb;function Mo(){return Rb||(Rb=1,function(e,t){(function(r,n,o){e.exports=n(at(),TE(),ng())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.Base,a=o.WordArray,s=n.algo,l=s.MD5,c=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,f){for(var d,h=this.cfg,p=h.hasher.create(),g=a.create(),v=g.words,m=h.keySize,b=h.iterations;v.length<m;){d&&p.update(d),d=p.update(u).finalize(f),p.reset();for(var y=1;y<b;y++)d=p.finalize(d),p.reset();g.concat(d)}return g.sigBytes=m*4,g}});n.EvpKDF=function(u,f,d){return c.create(d).compute(u,f)}}(),r.EvpKDF})}($f)),$f.exports}var If={exports:{}},Fb;function ur(){return Fb||(Fb=1,function(e,t){(function(r,n,o){e.exports=n(at(),Mo())})(Ye,function(r){r.lib.Cipher||function(n){var o=r,i=o.lib,a=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,c=o.enc;c.Utf8;var u=c.Base64,f=o.algo,d=f.EvpKDF,h=i.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(T,I){return this.create(this._ENC_XFORM_MODE,T,I)},createDecryptor:function(T,I){return this.create(this._DEC_XFORM_MODE,T,I)},init:function(T,I,D){this.cfg=this.cfg.extend(D),this._xformMode=T,this._key=I,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var I=this._doFinalize();return I},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(I){return typeof I=="string"?A:C}return function(I){return{encrypt:function(D,B,j){return T(B).encrypt(I,D,B,j)},decrypt:function(D,B,j){return T(B).decrypt(I,D,B,j)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var p=o.mode={},g=i.BlockCipherMode=a.extend({createEncryptor:function(T,I){return this.Encryptor.create(T,I)},createDecryptor:function(T,I){return this.Decryptor.create(T,I)},init:function(T,I){this._cipher=T,this._iv=I}}),v=p.CBC=function(){var T=g.extend();T.Encryptor=T.extend({processBlock:function(D,B){var j=this._cipher,F=j.blockSize;I.call(this,D,B,F),j.encryptBlock(D,B),this._prevBlock=D.slice(B,B+F)}}),T.Decryptor=T.extend({processBlock:function(D,B){var j=this._cipher,F=j.blockSize,z=D.slice(B,B+F);j.decryptBlock(D,B),I.call(this,D,B,F),this._prevBlock=z}});function I(D,B,j){var F,z=this._iv;z?(F=z,this._iv=n):F=this._prevBlock;for(var V=0;V<j;V++)D[B+V]^=F[V]}return T}(),m=o.pad={},b=m.Pkcs7={pad:function(T,I){for(var D=I*4,B=D-T.sigBytes%D,j=B<<24|B<<16|B<<8|B,F=[],z=0;z<B;z+=4)F.push(j);var V=s.create(F,B);T.concat(V)},unpad:function(T){var I=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=I}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:b}),reset:function(){var T;h.reset.call(this);var I=this.cfg,D=I.iv,B=I.mode;this._xformMode==this._ENC_XFORM_MODE?T=B.createEncryptor:(T=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,D&&D.words):(this._mode=T.call(B,this,D&&D.words),this._mode.__creator=T)},_doProcessBlock:function(T,I){this._mode.processBlock(T,I)},_doFinalize:function(){var T,I=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(I.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),I.unpad(T)),T},blockSize:128/32});var y=i.CipherParams=a.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),x=o.format={},S=x.OpenSSL={stringify:function(T){var I,D=T.ciphertext,B=T.salt;return B?I=s.create([1398893684,1701076831]).concat(B).concat(D):I=D,I.toString(u)},parse:function(T){var I,D=u.parse(T),B=D.words;return B[0]==1398893684&&B[1]==1701076831&&(I=s.create(B.slice(2,4)),B.splice(0,4),D.sigBytes-=16),y.create({ciphertext:D,salt:I})}},C=i.SerializableCipher=a.extend({cfg:a.extend({format:S}),encrypt:function(T,I,D,B){B=this.cfg.extend(B);var j=T.createEncryptor(D,B),F=j.finalize(I),z=j.cfg;return y.create({ciphertext:F,key:D,iv:z.iv,algorithm:T,mode:z.mode,padding:z.padding,blockSize:T.blockSize,formatter:B.format})},decrypt:function(T,I,D,B){B=this.cfg.extend(B),I=this._parse(I,B.format);var j=T.createDecryptor(D,B).finalize(I.ciphertext);return j},_parse:function(T,I){return typeof T=="string"?I.parse(T,this):T}}),w=o.kdf={},k=w.OpenSSL={execute:function(T,I,D,B,j){if(B||(B=s.random(64/8)),j)var F=d.create({keySize:I+D,hasher:j}).compute(T,B);else var F=d.create({keySize:I+D}).compute(T,B);var z=s.create(F.words.slice(I),D*4);return F.sigBytes=I*4,y.create({key:F,iv:z,salt:B})}},A=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:k}),encrypt:function(T,I,D,B){B=this.cfg.extend(B);var j=B.kdf.execute(D,T.keySize,T.ivSize,B.salt,B.hasher);B.iv=j.iv;var F=C.encrypt.call(this,T,I,j.key,B);return F.mixIn(j),F},decrypt:function(T,I,D,B){B=this.cfg.extend(B),I=this._parse(I,B.format);var j=B.kdf.execute(D,T.keySize,T.ivSize,I.salt,B.hasher);B.iv=j.iv;var F=C.decrypt.call(this,T,I,j.key,B);return F}})}()})}(If)),If.exports}var Df={exports:{}},Mb;function pK(){return Mb||(Mb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,a){var s=this._cipher,l=s.blockSize;o.call(this,i,a,l,s),this._prevBlock=i.slice(a,a+l)}}),n.Decryptor=n.extend({processBlock:function(i,a){var s=this._cipher,l=s.blockSize,c=i.slice(a,a+l);o.call(this,i,a,l,s),this._prevBlock=c}});function o(i,a,s,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var f=0;f<s;f++)i[a+f]^=c[f]}return n}(),r.mode.CFB})}(Df)),Df.exports}var Bf={exports:{}},zb;function gK(){return zb||(zb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(i,a){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var f=u.slice(0);s.encryptBlock(f,0),u[l-1]=u[l-1]+1|0;for(var d=0;d<l;d++)i[a+d]^=f[d]}});return n.Decryptor=o,n}(),r.mode.CTR})}(Bf)),Bf.exports}var Of={exports:{}},Nb;function mK(){return Nb||(Nb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function o(s){if((s>>24&255)===255){var l=s>>16&255,c=s>>8&255,u=s&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,s=0,s+=l<<16,s+=c<<8,s+=u}else s+=1<<24;return s}function i(s){return(s[0]=o(s[0]))===0&&(s[1]=o(s[1])),s}var a=n.Encryptor=n.extend({processBlock:function(s,l){var c=this._cipher,u=c.blockSize,f=this._iv,d=this._counter;f&&(d=this._counter=f.slice(0),this._iv=void 0),i(d);var h=d.slice(0);c.encryptBlock(h,0);for(var p=0;p<u;p++)s[l+p]^=h[p]}});return n.Decryptor=a,n}(),r.mode.CTRGladman})}(Of)),Of.exports}var Lf={exports:{}},Hb;function vK(){return Hb||(Hb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(i,a){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(u,0);for(var f=0;f<l;f++)i[a+f]^=u[f]}});return n.Decryptor=o,n}(),r.mode.OFB})}(Lf)),Lf.exports}var Rf={exports:{}},jb;function bK(){return jb||(jb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(o,i){this._cipher.encryptBlock(o,i)}}),n.Decryptor=n.extend({processBlock:function(o,i){this._cipher.decryptBlock(o,i)}}),n}(),r.mode.ECB})}(Rf)),Rf.exports}var Ff={exports:{}},Wb;function xK(){return Wb||(Wb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.pad.AnsiX923={pad:function(n,o){var i=n.sigBytes,a=o*4,s=a-i%a,l=i+s-1;n.clamp(),n.words[l>>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Ansix923})}(Ff)),Ff.exports}var Mf={exports:{}},Ub;function yK(){return Ub||(Ub=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.pad.Iso10126={pad:function(n,o){var i=o*4,a=i-n.sigBytes%i;n.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Iso10126})}(Mf)),Mf.exports}var zf={exports:{}},Vb;function CK(){return Vb||(Vb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.pad.Iso97971={pad:function(n,o){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,o)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(zf)),zf.exports}var Nf={exports:{}},Gb;function wK(){return Gb||(Gb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.pad.ZeroPadding={pad:function(n,o){var i=o*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var o=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(o[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},r.pad.ZeroPadding})}(Nf)),Nf.exports}var Hf={exports:{}},qb;function SK(){return qb||(qb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Hf)),Hf.exports}var jf={exports:{}},Yb;function _K(){return Yb||(Yb=1,function(e,t){(function(r,n,o){e.exports=n(at(),ur())})(Ye,function(r){return function(n){var o=r,i=o.lib,a=i.CipherParams,s=o.enc,l=s.Hex,c=o.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var f=l.parse(u);return a.create({ciphertext:f})}}}(),r.format.Hex})}(jf)),jf.exports}var Wf={exports:{}},Kb;function EK(){return Kb||(Kb=1,function(e,t){(function(r,n,o){e.exports=n(at(),Pi(),$i(),Mo(),ur())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.BlockCipher,a=n.algo,s=[],l=[],c=[],u=[],f=[],d=[],h=[],p=[],g=[],v=[];(function(){for(var y=[],x=0;x<256;x++)x<128?y[x]=x<<1:y[x]=x<<1^283;for(var S=0,C=0,x=0;x<256;x++){var w=C^C<<1^C<<2^C<<3^C<<4;w=w>>>8^w&255^99,s[S]=w,l[w]=S;var k=y[S],A=y[k],T=y[A],I=y[w]*257^w*16843008;c[S]=I<<24|I>>>8,u[S]=I<<16|I>>>16,f[S]=I<<8|I>>>24,d[S]=I;var I=T*16843009^A*65537^k*257^S*16843008;h[w]=I<<24|I>>>8,p[w]=I<<16|I>>>16,g[w]=I<<8|I>>>24,v[w]=I,S?(S=k^y[y[y[T^k]]],C^=y[y[C]]):S=C=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],b=a.AES=i.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,S=x.words,C=x.sigBytes/4,w=this._nRounds=C+6,k=(w+1)*4,A=this._keySchedule=[],T=0;T<k;T++)T<C?A[T]=S[T]:(y=A[T-1],T%C?C>6&&T%C==4&&(y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255]):(y=y<<8|y>>>24,y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255],y^=m[T/C|0]<<24),A[T]=A[T-C]^y);for(var I=this._invKeySchedule=[],D=0;D<k;D++){var T=k-D;if(D%4)var y=A[T];else var y=A[T-4];D<4||T<=4?I[D]=y:I[D]=h[s[y>>>24]]^p[s[y>>>16&255]]^g[s[y>>>8&255]]^v[s[y&255]]}}},encryptBlock:function(y,x){this._doCryptBlock(y,x,this._keySchedule,c,u,f,d,s)},decryptBlock:function(y,x){var S=y[x+1];y[x+1]=y[x+3],y[x+3]=S,this._doCryptBlock(y,x,this._invKeySchedule,h,p,g,v,l);var S=y[x+1];y[x+1]=y[x+3],y[x+3]=S},_doCryptBlock:function(y,x,S,C,w,k,A,T){for(var I=this._nRounds,D=y[x]^S[0],B=y[x+1]^S[1],j=y[x+2]^S[2],F=y[x+3]^S[3],z=4,V=1;V<I;V++){var oe=C[D>>>24]^w[B>>>16&255]^k[j>>>8&255]^A[F&255]^S[z++],fe=C[B>>>24]^w[j>>>16&255]^k[F>>>8&255]^A[D&255]^S[z++],ge=C[j>>>24]^w[F>>>16&255]^k[D>>>8&255]^A[B&255]^S[z++],U=C[F>>>24]^w[D>>>16&255]^k[B>>>8&255]^A[j&255]^S[z++];D=oe,B=fe,j=ge,F=U}var oe=(T[D>>>24]<<24|T[B>>>16&255]<<16|T[j>>>8&255]<<8|T[F&255])^S[z++],fe=(T[B>>>24]<<24|T[j>>>16&255]<<16|T[F>>>8&255]<<8|T[D&255])^S[z++],ge=(T[j>>>24]<<24|T[F>>>16&255]<<16|T[D>>>8&255]<<8|T[B&255])^S[z++],U=(T[F>>>24]<<24|T[D>>>16&255]<<16|T[B>>>8&255]<<8|T[j&255])^S[z++];y[x]=oe,y[x+1]=fe,y[x+2]=ge,y[x+3]=U},keySize:256/32});n.AES=i._createHelper(b)}(),r.AES})}(Wf)),Wf.exports}var Uf={exports:{}},Xb;function kK(){return Xb||(Xb=1,function(e,t){(function(r,n,o){e.exports=n(at(),Pi(),$i(),Mo(),ur())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=o.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=s.DES=a.extend({_doReset:function(){for(var m=this._key,b=m.words,y=[],x=0;x<56;x++){var S=l[x]-1;y[x]=b[S>>>5]>>>31-S%32&1}for(var C=this._subKeys=[],w=0;w<16;w++){for(var k=C[w]=[],A=u[w],x=0;x<24;x++)k[x/6|0]|=y[(c[x]-1+A)%28]<<31-x%6,k[4+(x/6|0)]|=y[28+(c[x+24]-1+A)%28]<<31-x%6;k[0]=k[0]<<1|k[0]>>>31;for(var x=1;x<7;x++)k[x]=k[x]>>>(x-1)*4+3;k[7]=k[7]<<5|k[7]>>>27}for(var T=this._invSubKeys=[],x=0;x<16;x++)T[x]=C[15-x]},encryptBlock:function(m,b){this._doCryptBlock(m,b,this._subKeys)},decryptBlock:function(m,b){this._doCryptBlock(m,b,this._invSubKeys)},_doCryptBlock:function(m,b,y){this._lBlock=m[b],this._rBlock=m[b+1],p.call(this,4,252645135),p.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),p.call(this,1,1431655765);for(var x=0;x<16;x++){for(var S=y[x],C=this._lBlock,w=this._rBlock,k=0,A=0;A<8;A++)k|=f[A][((w^S[A])&d[A])>>>0];this._lBlock=w,this._rBlock=C^k}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,p.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),m[b]=this._lBlock,m[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function p(m,b){var y=(this._lBlock>>>m^this._rBlock)&b;this._rBlock^=y,this._lBlock^=y<<m}function g(m,b){var y=(this._rBlock>>>m^this._lBlock)&b;this._lBlock^=y,this._rBlock^=y<<m}n.DES=a._createHelper(h);var v=s.TripleDES=a.extend({_doReset:function(){var m=this._key,b=m.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=b.slice(0,2),x=b.length<4?b.slice(0,2):b.slice(2,4),S=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(y)),this._des2=h.createEncryptor(i.create(x)),this._des3=h.createEncryptor(i.create(S))},encryptBlock:function(m,b){this._des1.encryptBlock(m,b),this._des2.decryptBlock(m,b),this._des3.encryptBlock(m,b)},decryptBlock:function(m,b){this._des3.decryptBlock(m,b),this._des2.encryptBlock(m,b),this._des1.decryptBlock(m,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=a._createHelper(v)}(),r.TripleDES})}(Uf)),Uf.exports}var Vf={exports:{}},Qb;function TK(){return Qb||(Qb=1,function(e,t){(function(r,n,o){e.exports=n(at(),Pi(),$i(),Mo(),ur())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,a=n.algo,s=a.RC4=i.extend({_doReset:function(){for(var u=this._key,f=u.words,d=u.sigBytes,h=this._S=[],p=0;p<256;p++)h[p]=p;for(var p=0,g=0;p<256;p++){var v=p%d,m=f[v>>>2]>>>24-v%4*8&255;g=(g+h[p]+m)%256;var b=h[p];h[p]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,f=this._i,d=this._j,h=0,p=0;p<4;p++){f=(f+1)%256,d=(d+u[f])%256;var g=u[f];u[f]=u[d],u[d]=g,h|=u[(u[f]+u[d])%256]<<24-p*8}return this._i=f,this._j=d,h}n.RC4=i._createHelper(s);var c=a.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});n.RC4Drop=i._createHelper(c)}(),r.RC4})}(Vf)),Vf.exports}var Gf={exports:{}},Zb;function AK(){return Zb||(Zb=1,function(e,t){(function(r,n,o){e.exports=n(at(),Pi(),$i(),Mo(),ur())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,a=n.algo,s=[],l=[],c=[],u=a.Rabbit=i.extend({_doReset:function(){for(var d=this._key.words,h=this.cfg.iv,p=0;p<4;p++)d[p]=(d[p]<<8|d[p]>>>24)&16711935|(d[p]<<24|d[p]>>>8)&4278255360;var g=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)v[p]^=g[p+4&7];if(h){var m=h.words,b=m[0],y=m[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,C=x>>>16|S&4294901760,w=S<<16|x&65535;v[0]^=x,v[1]^=C,v[2]^=S,v[3]^=w,v[4]^=x,v[5]^=C,v[6]^=S,v[7]^=w;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(d,h){var p=this._X;f.call(this),s[0]=p[0]^p[5]>>>16^p[3]<<16,s[1]=p[2]^p[7]>>>16^p[5]<<16,s[2]=p[4]^p[1]>>>16^p[7]<<16,s[3]=p[6]^p[3]>>>16^p[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,d[h+g]^=s[g]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,h=this._C,p=0;p<8;p++)l[p]=h[p];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<l[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<l[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<l[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<l[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<l[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<l[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<l[6]>>>0?1:0)|0,this._b=h[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var g=d[p]+h[p],v=g&65535,m=g>>>16,b=((v*v>>>17)+v*m>>>15)+m*m,y=((g&4294901760)*g|0)+((g&65535)*g|0);c[p]=b^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=i._createHelper(u)}(),r.Rabbit})}(Gf)),Gf.exports}var qf={exports:{}},Jb;function PK(){return Jb||(Jb=1,function(e,t){(function(r,n,o){e.exports=n(at(),Pi(),$i(),Mo(),ur())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,a=n.algo,s=[],l=[],c=[],u=a.RabbitLegacy=i.extend({_doReset:function(){var d=this._key.words,h=this.cfg.iv,p=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var v=0;v<4;v++)f.call(this);for(var v=0;v<8;v++)g[v]^=p[v+4&7];if(h){var m=h.words,b=m[0],y=m[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,C=x>>>16|S&4294901760,w=S<<16|x&65535;g[0]^=x,g[1]^=C,g[2]^=S,g[3]^=w,g[4]^=x,g[5]^=C,g[6]^=S,g[7]^=w;for(var v=0;v<4;v++)f.call(this)}},_doProcessBlock:function(d,h){var p=this._X;f.call(this),s[0]=p[0]^p[5]>>>16^p[3]<<16,s[1]=p[2]^p[7]>>>16^p[5]<<16,s[2]=p[4]^p[1]>>>16^p[7]<<16,s[3]=p[6]^p[3]>>>16^p[1]<<16;for(var g=0;g<4;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360,d[h+g]^=s[g]},blockSize:128/32,ivSize:64/32});function f(){for(var d=this._X,h=this._C,p=0;p<8;p++)l[p]=h[p];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<l[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<l[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<l[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<l[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<l[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<l[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<l[6]>>>0?1:0)|0,this._b=h[7]>>>0<l[7]>>>0?1:0;for(var p=0;p<8;p++){var g=d[p]+h[p],v=g&65535,m=g>>>16,b=((v*v>>>17)+v*m>>>15)+m*m,y=((g&4294901760)*g|0)+((g&65535)*g|0);c[p]=b^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=i._createHelper(u)}(),r.RabbitLegacy})}(qf)),qf.exports}var Yf={exports:{}},ex;function $K(){return ex||(ex=1,function(e,t){(function(r,n,o){e.exports=n(at(),Pi(),$i(),Mo(),ur())})(Ye,function(r){return function(){var n=r,o=n.lib,i=o.BlockCipher,a=n.algo;const s=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(v,m){let b=m>>24&255,y=m>>16&255,x=m>>8&255,S=m&255,C=v.sbox[0][b]+v.sbox[1][y];return C=C^v.sbox[2][x],C=C+v.sbox[3][S],C}function d(v,m,b){let y=m,x=b,S;for(let C=0;C<s;++C)y=y^v.pbox[C],x=f(v,y)^x,S=y,y=x,x=S;return S=y,y=x,x=S,x=x^v.pbox[s],y=y^v.pbox[s+1],{left:y,right:x}}function h(v,m,b){let y=m,x=b,S;for(let C=s+1;C>1;--C)y=y^v.pbox[C],x=f(v,y)^x,S=y,y=x,x=S;return S=y,y=x,x=S,x=x^v.pbox[1],y=y^v.pbox[0],{left:y,right:x}}function p(v,m,b){for(let w=0;w<4;w++){v.sbox[w]=[];for(let k=0;k<256;k++)v.sbox[w][k]=c[w][k]}let y=0;for(let w=0;w<s+2;w++)v.pbox[w]=l[w]^m[y],y++,y>=b&&(y=0);let x=0,S=0,C=0;for(let w=0;w<s+2;w+=2)C=d(v,x,S),x=C.left,S=C.right,v.pbox[w]=x,v.pbox[w+1]=S;for(let w=0;w<4;w++)for(let k=0;k<256;k+=2)C=d(v,x,S),x=C.left,S=C.right,v.sbox[w][k]=x,v.sbox[w][k+1]=S;return!0}var g=a.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,m=v.words,b=v.sigBytes/4;p(u,m,b)}},encryptBlock:function(v,m){var b=d(u,v[m],v[m+1]);v[m]=b.left,v[m+1]=b.right},decryptBlock:function(v,m){var b=h(u,v[m],v[m+1]);v[m]=b.left,v[m+1]=b.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=i._createHelper(g)}(),r.Blowfish})}(Yf)),Yf.exports}(function(e,t){(function(r,n,o){e.exports=n(at(),ld(),aK(),sK(),Pi(),lK(),$i(),TE(),rg(),cK(),AE(),uK(),dK(),fK(),ng(),hK(),Mo(),ur(),pK(),gK(),mK(),vK(),bK(),xK(),yK(),CK(),wK(),SK(),_K(),EK(),kK(),TK(),AK(),PK(),$K())})(Ye,function(r){return r})})(kE);var IK=kE.exports;const eh=N9(IK),PE="__CRYPTO_SECRET__";function DK(e){const t=JSON.stringify(e);return eh.AES.encrypt(t,PE).toString()}function BK(e){const r=eh.AES.decrypt(e,PE).toString(eh.enc.Utf8);return r?JSON.parse(r):null}function $E(e){const{expire:r,crypto:n}=Object.assign({expire:604800,crypto:!0},e);function o(l,c){const u={data:c,expire:r!==null?new Date().getTime()+r*1e3:null},f=n?DK(u):JSON.stringify(u);window.localStorage.setItem(l,f)}function i(l){const c=window.localStorage.getItem(l);if(c){let u=null;try{u=n?BK(c):JSON.parse(c)}catch{}if(u){const{data:f,expire:d}=u;if(d===null||d>=Date.now())return f}return a(l),null}}function a(l){window.localStorage.removeItem(l)}function s(){window.localStorage.clear()}return{set:o,get:i,remove:a,clear:s}}$E();const Nt=$E({expire:null,crypto:!1}),tx=pe({__name:"Button",emits:["click"],setup(e,{emit:t}){const r=t;function n(){r("click")}return(o,i)=>(he(),Fe("button",{class:"flex items-center justify-center w-10 h-8 transition rounded-md hover:bg-neutral-100 dark:hover:bg-[#414755]",onClick:n},[pa(o.$slots,"default")]))}}),OK={key:0},LK={key:1},RK=pe({__name:"index",props:{tooltip:{default:""},placement:{default:"bottom"}},emits:["click"],setup(e,{emit:t}){const r=e,n=t,o=R(()=>!!r.tooltip);function i(){n("click")}return(a,s)=>o.value?(he(),Fe("div",OK,[me(N(Qi),{placement:a.placement,trigger:"hover"},{trigger:De(()=>[me(tx,{onClick:i},{default:De(()=>[pa(a.$slots,"default")]),_:3})]),default:De(()=>[pt(" "+Re(a.tooltip),1)]),_:3},8,["placement"])])):(he(),Fe("div",LK,[me(tx,{onClick:i},{default:De(()=>[pa(a.$slots,"default")]),_:3})]))}}),FK=pe({__name:"index",setup(e){function t(){window.$loadingBar=fj(),window.$dialog=YS(),window.$message=xn(),window.$notification=Pj()}const r=pe({name:"NaiveProviderContent",setup(){t()},render(){return $("div")}});return(n,o)=>(he(),rt(N(dj),null,{default:De(()=>[me(N(c7),null,{default:De(()=>[me(N(Aj),null,{default:De(()=>[me(N(xj),null,{default:De(()=>[pa(n.$slots,"default"),me(N(r))]),_:3})]),_:3})]),_:3})]),_:3}))}}),Ss=/^[a-z0-9]+(-[a-z0-9]+)*$/,cd=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:n,prefix:l,name:s};return t&&!$c(c)?null:c}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!$c(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:i};return t&&!$c(s,r)?null:s}return null},$c=(e,t)=>e?!!((e.provider===""||e.provider.match(Ss))&&(t&&e.prefix===""||e.prefix.match(Ss))&&e.name.match(Ss)):!1,IE=Object.freeze({left:0,top:0,width:16,height:16}),uu=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ud=Object.freeze({...IE,...uu}),th=Object.freeze({...ud,body:"",hidden:!1});function MK(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function rx(e,t){const r=MK(e,t);for(const n in th)n in uu?n in e&&!(n in r)&&(r[n]=uu[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function zK(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(r[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=n[a]&&n[a].parent,l=s&&i(s);l&&(o[a]=[s].concat(l))}return o[a]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(i),o}function NK(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=rx(n[s]||o[s],i)}return a(t),r.forEach(a),rx(e,i)}function DE(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=zK(e);for(const o in n){const i=n[o];i&&(t(o,NK(e,o,i)),r.push(o))}return r}const HK={provider:"",aliases:{},not_found:{},...IE};function Kf(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function BE(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Kf(e,HK))return null;const r=t.icons;for(const o in r){const i=r[o];if(!o.match(Ss)||typeof i.body!="string"||!Kf(i,th))return null}const n=t.aliases||Object.create(null);for(const o in n){const i=n[o],a=i.parent;if(!o.match(Ss)||typeof a!="string"||!r[a]&&!n[a]||!Kf(i,th))return null}return t}const nx=Object.create(null);function jK(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function bi(e,t){const r=nx[e]||(nx[e]=Object.create(null));return r[t]||(r[t]=jK(e,t))}function og(e,t){return BE(t)?DE(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function WK(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let tl=!1;function OE(e){return typeof e=="boolean"&&(tl=e),tl}function UK(e){const t=typeof e=="string"?cd(e,!0,tl):e;if(t){const r=bi(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function VK(e,t){const r=cd(e,!0,tl);if(!r)return!1;const n=bi(r.provider,r.prefix);return WK(n,r.name,t)}function GK(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),tl&&!t&&!e.prefix){let o=!1;return BE(e)&&(e.prefix="",DE(e,(i,a)=>{a&&VK(i,a)&&(o=!0)})),o}const r=e.prefix;if(!$c({provider:t,prefix:r,name:"a"}))return!1;const n=bi(t,r);return!!og(n,e)}const LE=Object.freeze({width:null,height:null}),RE=Object.freeze({...LE,...uu}),qK=/(-?[0-9.]*[0-9]+[0-9.]*)/g,YK=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ox(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(qK);if(n===null||!n.length)return e;const o=[];let i=n.shift(),a=YK.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*r)/r)}else o.push(i);if(i=n.shift(),i===void 0)return o.join("");a=!a}}const KK=e=>e==="unset"||e==="undefined"||e==="none";function XK(e,t){const r={...ud,...e},n={...RE,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(p=>{const g=[],v=p.hFlip,m=p.vFlip;let b=p.rotate;v?m?b+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):m&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let y;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:y=o.height/2+o.top,g.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,g.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}b%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),g.length&&(i='<g transform="'+g.join(" ")+'">'+i+"</g>")});const a=n.width,s=n.height,l=o.width,c=o.height;let u,f;a===null?(f=s===null?"1em":s==="auto"?c:s,u=ox(f,l/c)):(u=a==="auto"?l:a,f=s===null?ox(u,c/l):s==="auto"?c:s);const d={},h=(p,g)=>{KK(g)||(d[p]=g.toString())};return h("width",u),h("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:d,body:i}}const QK=/\sid="(\S+)"/g,ZK="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let JK=0;function eX(e,t=ZK){const r=[];let n;for(;n=QK.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(i=>{const a=typeof t=="function"?t(i):t+(JK++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const rh=Object.create(null);function tX(e,t){rh[e]=t}function nh(e){return rh[e]||rh[""]}function ig(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ag=Object.create(null),ns=["https://api.simplesvg.com","https://api.unisvg.com"],Ic=[];for(;ns.length>0;)ns.length===1||Math.random()>.5?Ic.push(ns.shift()):Ic.push(ns.pop());ag[""]=ig({resources:["https://api.iconify.design"].concat(Ic)});function rX(e,t){const r=ig(t);return r===null?!1:(ag[e]=r,!0)}function sg(e){return ag[e]}const nX=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ix=nX();function oX(e,t){const r=sg(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";n=r.maxURL-o-r.path.length-i.length}return n}function iX(e){return e===404}const aX=(e,t,r)=>{const n=[],o=oX(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return r.forEach((l,c)=>{s+=l.length+1,s>=o&&c>0&&(n.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=l.length),a.icons.push(l)}),n.push(a),n};function sX(e){if(typeof e=="string"){const t=sg(e);if(t)return t.path}return"/"}const lX=(e,t,r)=>{if(!ix){r("abort",424);return}let n=sX(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});n+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let o=503;ix(e+n).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{r(iX(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?r("abort",i):r("next",o)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",o)})},cX={prepare:aX,send:lX};function uX(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const i=o.provider,a=o.prefix,s=o.name,l=r[i]||(r[i]=Object.create(null)),c=l[a]||(l[a]=bi(i,a));let u;s in c.icons?u=t.loaded:a===""||c.missing.has(s)?u=t.missing:u=t.pending;const f={provider:i,prefix:a,name:s};u.push(f)}),t}function FE(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function dX(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])a.loaded.push({provider:n,prefix:o,name:c});else if(e.missing.has(c))a.missing.push({provider:n,prefix:o,name:c});else return r=!0,!0;return!1}),a.pending.length!==s&&(r||FE([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let fX=0;function hX(e,t,r){const n=fX++,o=FE.bind(null,r,n);if(!t.pending.length)return o;const i={id:n,icons:t,callback:e,abort:o};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function pX(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const i=typeof o=="string"?cd(o,t,r):o;i&&n.push(i)}),n}var gX={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function mX(e,t,r,n){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let C=e.resources.slice(0);for(a=[];C.length>1;){const w=Math.floor(Math.random()*C.length);a.push(C[w]),C=C.slice(0,w).concat(C.slice(w+1))}a=a.concat(C)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l="pending",c=0,u,f=null,d=[],h=[];typeof n=="function"&&h.push(n);function p(){f&&(clearTimeout(f),f=null)}function g(){l==="pending"&&(l="aborted"),p(),d.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),d=[]}function v(C,w){w&&(h=[]),typeof C=="function"&&h.push(C)}function m(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:v,abort:g}}function b(){l="failed",h.forEach(C=>{C(void 0,u)})}function y(){d.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),d=[]}function x(C,w,k){const A=w!=="success";switch(d=d.filter(T=>T!==C),l){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(w==="abort"){u=k,b();return}if(A){u=k,d.length||(a.length?S():b());return}if(p(),y(),!e.random){const T=e.resources.indexOf(C.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(k)})}function S(){if(l!=="pending")return;p();const C=a.shift();if(C===void 0){if(d.length){f=setTimeout(()=>{p(),l==="pending"&&(y(),b())},e.timeout);return}b();return}const w={status:"pending",resource:C,callback:(k,A)=>{x(w,k,A)}};d.push(w),c++,f=setTimeout(S,e.rotate),r(C,t,w.callback)}return setTimeout(S),m}function ME(e){const t={...gX,...e};let r=[];function n(){r=r.filter(s=>s().status==="pending")}function o(s,l,c){const u=mX(t,s,l,(f,d)=>{n(),c&&c(f,d)});return r.push(u),u}function i(s){return r.find(l=>s(l))||null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function ax(){}const Xf=Object.create(null);function vX(e){if(!Xf[e]){const t=sg(e);if(!t)return;const r=ME(t),n={config:t,redundancy:r};Xf[e]=n}return Xf[e]}function bX(e,t,r){let n,o;if(typeof e=="string"){const i=nh(e);if(!i)return r(void 0,424),ax;o=i.send;const a=vX(e);a&&(n=a.redundancy)}else{const i=ig(e);if(i){n=ME(i);const a=e.resources?e.resources[0]:"",s=nh(a);s&&(o=s.send)}}return!n||!o?(r(void 0,424),ax):n.query(t,o,r)().abort}const sx="iconify2",rl="iconify",zE=rl+"-count",lx=rl+"-version",NE=36e5,xX=168;function oh(e,t){try{return e.getItem(t)}catch{}}function lg(e,t,r){try{return e.setItem(t,r),!0}catch{}}function cx(e,t){try{e.removeItem(t)}catch{}}function ih(e,t){return lg(e,zE,t.toString())}function ah(e){return parseInt(oh(e,zE))||0}const dd={local:!0,session:!0},HE={local:new Set,session:new Set};let cg=!1;function yX(e){cg=e}let uc=typeof window>"u"?{}:window;function jE(e){const t=e+"Storage";try{if(uc&&uc[t]&&typeof uc[t].length=="number")return uc[t]}catch{}dd[e]=!1}function WE(e,t){const r=jE(e);if(!r)return;const n=oh(r,lx);if(n!==sx){if(n){const s=ah(r);for(let l=0;l<s;l++)cx(r,rl+l.toString())}lg(r,lx,sx),ih(r,0);return}const o=Math.floor(Date.now()/NE)-xX,i=s=>{const l=rl+s.toString(),c=oh(r,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}cx(r,l)}};let a=ah(r);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,ih(r,a)):HE[e].add(s))}function UE(){if(!cg){yX(!0);for(const e in dd)WE(e,t=>{const r=t.data,n=t.provider,o=r.prefix,i=bi(n,o);if(!og(i,r).length)return!1;const a=r.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function CX(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in dd)WE(n,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function wX(e,t){cg||UE();function r(n){let o;if(!dd[n]||!(o=jE(n)))return;const i=HE[n];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=ah(o),!ih(o,a+1))return;const s={cached:Math.floor(Date.now()/NE),provider:e.provider,data:t};return lg(o,rl+a.toString(),JSON.stringify(s))}t.lastModified&&!CX(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function ux(){}function SX(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,dX(e)}))}function _X(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=nh(r)))return;i.prepare(r,n,o).forEach(s=>{bX(r,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=og(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),wX(e,l)}catch(c){console.error(c)}SX(e)})})}))}const EX=(e,t)=>{const r=pX(e,!0,OE()),n=uX(r);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,ux)}),()=>{l=!1}}const o=Object.create(null),i=[];let a,s;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===a)return;a=c,s=u,i.push(bi(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=bi(c,u),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[c][u].push(f))}),i.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&_X(l,o[c][u])}),t?hX(t,n,i):ux};function kX(e,t){const r={...e};for(const n in t){const o=t[n],i=typeof o;n in LE?(o===null||o&&(i==="string"||i==="number"))&&(r[n]=o):i===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const TX=/[\s,]+/;function AX(e,t){t.split(TX).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function PX(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-r.length));return isNaN(i)?0:(i=i/o,i%1===0?n(i):0)}}return t}function $X(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function IX(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function DX(e){return"data:image/svg+xml,"+IX(e)}function BX(e){return'url("'+DX(e)+'")'}const dx={...RE,inline:!1},OX={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},LX={display:"inline-block"},sh={backgroundColor:"currentColor"},VE={backgroundColor:"transparent"},fx={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},hx={webkitMask:sh,mask:sh,background:VE};for(const e in hx){const t=hx[e];for(const r in fx)t[e+r]=fx[r]}const Dc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Dc[e+"-flip"]=t,Dc[e.slice(0,1)+"-flip"]=t,Dc[e+"Flip"]=t});function px(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const gx=(e,t)=>{const r=kX(dx,t),n={...OX},o=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let g in t){const v=t[g];if(v!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[g]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&AX(r,v);break;case"color":i.color=v;break;case"rotate":typeof v=="string"?r[g]=PX(v):typeof v=="number"&&(r[g]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const m=Dc[g];m?(v===!0||v==="true"||v===1)&&(r[m]=!0):dx[g]===void 0&&(n[g]=v)}}}const l=XK(e,r),c=l.attributes;if(r.inline&&(i.verticalAlign="-0.125em"),o==="svg"){n.style={...i,...s},Object.assign(n,c);let g=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=eX(l.body,v?()=>v+"ID"+g++:"iconifyVue"),$("svg",n)}const{body:u,width:f,height:d}=e,h=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),p=$X(u,{...c,width:f+"",height:d+""});return n.style={...i,"--svg":BX(p),width:px(c.width),height:px(c.height),...LX,...h?sh:VE,...s},$("span",n)};OE(!0);tX("",cX);if(typeof document<"u"&&typeof window<"u"){UE();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!GK(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;rX(r,o)||console.error(n)}catch{console.error(n)}}}}const RX={...ud,body:""},FX=pe({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=cd(e,!1,!0))===null)return this.abortLoading(),null;const n=UK(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:EX([r],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const o=["iconify"];return r.prefix!==""&&o.push("iconify--"+r.prefix),r.provider!==""&&o.push("iconify--"+r.provider),{data:n,classes:o}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return gx(RX,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),gx({...ud,...t.data},r)}}),_s=pe({__name:"index",props:{icon:{}},setup(e){const t=L5(),r=R(()=>({class:t.class||"",style:t.style||"width: 1em, height: 1em"}));return(n,o)=>(he(),rt(N(FX),On({icon:n.icon},r.value),null,16,["icon"]))}}),MX="modulepreload",zX=function(e){return"/"+e},mx={},Mr=function(t,r,n){if(!r||r.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=zX(i),i in mx)return;mx[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let u=o.length-1;u>=0;u--){const f=o[u];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":MX,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var NX=!1;/*!
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let GE;const fd=e=>GE=e,qE=Symbol();function lh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Es;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Es||(Es={}));function HX(){const e=Uh(!0),t=e.run(()=>M({}));let r=[],n=[];const o=ha({install(i){fd(o),o._a=i,i.provide(qE,o),i.config.globalProperties.$pinia=o,n.forEach(a=>r.push(a)),n=[]},use(i){return!this._a&&!NX?n.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const YE=()=>{};function vx(e,t,r,n=YE){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!r&&Tu()&&Vh(o),o}function Ui(e,...t){e.slice().forEach(r=>{r(...t)})}const jX=e=>e();function ch(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,n)=>e.set(n,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],o=e[r];lh(o)&&lh(n)&&e.hasOwnProperty(r)&&!Vt(n)&&!To(n)?e[r]=ch(o,n):e[r]=n}return e}const WX=Symbol();function UX(e){return!lh(e)||!e.hasOwnProperty(WX)}const{assign:vo}=Object;function VX(e){return!!(Vt(e)&&e.effect)}function GX(e,t,r,n){const{state:o,actions:i,getters:a}=t,s=r.state.value[e];let l;function c(){s||(r.state.value[e]=o?o():{});const u=i5(r.state.value[e]);return vo(u,i,Object.keys(a||{}).reduce((f,d)=>(f[d]=ha(R(()=>{fd(r);const h=r._s.get(e);return a[d].call(h,h)})),f),{}))}return l=KE(e,c,t,r,n,!0),l}function KE(e,t,r={},n,o,i){let a;const s=vo({actions:{}},r),l={deep:!0};let c,u,f=[],d=[],h;const p=n.state.value[e];!i&&!p&&(n.state.value[e]={}),M({});let g;function v(k){let A;c=u=!1,typeof k=="function"?(k(n.state.value[e]),A={type:Es.patchFunction,storeId:e,events:h}):(ch(n.state.value[e],k),A={type:Es.patchObject,payload:k,storeId:e,events:h});const T=g=Symbol();Qt().then(()=>{g===T&&(c=!0)}),u=!0,Ui(f,A,n.state.value[e])}const m=i?function(){const{state:A}=r,T=A?A():{};this.$patch(I=>{vo(I,T)})}:YE;function b(){a.stop(),f=[],d=[],n._s.delete(e)}function y(k,A){return function(){fd(n);const T=Array.from(arguments),I=[],D=[];function B(z){I.push(z)}function j(z){D.push(z)}Ui(d,{args:T,name:k,store:S,after:B,onError:j});let F;try{F=A.apply(this&&this.$id===e?this:S,T)}catch(z){throw Ui(D,z),z}return F instanceof Promise?F.then(z=>(Ui(I,z),z)).catch(z=>(Ui(D,z),Promise.reject(z))):(Ui(I,F),F)}}const x={_p:n,$id:e,$onAction:vx.bind(null,d),$patch:v,$reset:m,$subscribe(k,A={}){const T=vx(f,k,A.detached,()=>I()),I=a.run(()=>Je(()=>n.state.value[e],D=>{(A.flush==="sync"?u:c)&&k({storeId:e,type:Es.direct,events:h},D)},vo({},l,A)));return T},$dispose:b},S=nn(x);n._s.set(e,S);const w=(n._a&&n._a.runWithContext||jX)(()=>n._e.run(()=>(a=Uh()).run(t)));for(const k in w){const A=w[k];if(Vt(A)&&!VX(A)||To(A))i||(p&&UX(A)&&(Vt(A)?A.value=p[k]:ch(A,p[k])),n.state.value[e][k]=A);else if(typeof A=="function"){const T=y(k,A);w[k]=T,s.actions[k]=A}}return vo(S,w),vo(it(S),w),Object.defineProperty(S,"$state",{get:()=>n.state.value[e],set:k=>{v(A=>{vo(A,k)})}}),n._p.forEach(k=>{vo(S,a.run(()=>k({store:S,app:n._a,pinia:n,options:s})))}),p&&i&&r.hydrate&&r.hydrate(S.$state,p),c=!0,u=!0,S}function Ii(e,t,r){let n,o;const i=typeof t=="function";typeof e=="string"?(n=e,o=i?r:t):(o=e,n=e.id);function a(s,l){const c=W5();return s=s||(c?ze(qE,null):null),s&&fd(s),s=GE,s._s.has(n)||(i?KE(n,t,o,s):GX(n,o,s)),s._s.get(n)}return a.$id=n,a}function qX(){return typeof process<"u"&&(process==null?void 0:process.type)==="renderer"?"electron":typeof wx<"u"?"wechat":typeof window<"u"&&window.matchMedia("(display-mode: standalone)").matches?"webApp":/(Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent)?"mobile":"webBrowser"}const XE="appSetting";function YX(){return{siderCollapsed:!1,theme:"auto",language:"zh-CN",env:qX()}}function KX(){const e=Nt.get(XE);return{...YX(),...e}}function XX(e){Nt.set(XE,e)}const Di=Ii("app-store",{state:()=>KX(),actions:{setSiderCollapsed(e){this.siderCollapsed=e,this.recordState()},setTheme(e){localStorage.theme=e,this.theme=e,window.theme=e,this.recordState()},setLanguage(e){this.language!==e&&(this.language=e,this.recordState())},recordState(){XX(this.$state)},setEnv(){const e=/micromessenger/i.test(navigator.userAgent),t=navigator.userAgent.includes("Electron"),r=/(iPhone|iPad|iPod|Android|webOS|BlackBerry|Windows Phone)/i.test(navigator.userAgent);e?this.env="wechat":t?this.env="electron":r?this.env="mobile":!e&&!t&&(this.env="web")}}});function QX(){return Di(xd)}function QE(e,t){return function(){return e.apply(t,arguments)}}const{toString:ZX}=Object.prototype,{getPrototypeOf:ug}=Object,hd=(e=>t=>{const r=ZX.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Mn=e=>(e=e.toLowerCase(),t=>hd(t)===e),pd=e=>t=>typeof t===e,{isArray:qa}=Array,nl=pd("undefined");function JX(e){return e!==null&&!nl(e)&&e.constructor!==null&&!nl(e.constructor)&&Zr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ZE=Mn("ArrayBuffer");function eQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ZE(e.buffer),t}const tQ=pd("string"),Zr=pd("function"),JE=pd("number"),gd=e=>e!==null&&typeof e=="object",rQ=e=>e===!0||e===!1,Bc=e=>{if(hd(e)!=="object")return!1;const t=ug(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nQ=Mn("Date"),oQ=Mn("File"),iQ=Mn("Blob"),aQ=Mn("FileList"),sQ=e=>gd(e)&&Zr(e.pipe),lQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Zr(e.append)&&((t=hd(e))==="formdata"||t==="object"&&Zr(e.toString)&&e.toString()==="[object FormData]"))},cQ=Mn("URLSearchParams"),uQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),qa(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function e4(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const t4=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),r4=e=>!nl(e)&&e!==t4;function uh(){const{caseless:e}=r4(this)&&this||{},t={},r=(n,o)=>{const i=e&&e4(t,o)||o;Bc(t[i])&&Bc(n)?t[i]=uh(t[i],n):Bc(n)?t[i]=uh({},n):qa(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&kl(arguments[n],r);return t}const dQ=(e,t,r,{allOwnKeys:n}={})=>(kl(t,(o,i)=>{r&&Zr(o)?e[i]=QE(o,r):e[i]=o},{allOwnKeys:n}),e),fQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hQ=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},pQ=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&ug(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},gQ=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},mQ=e=>{if(!e)return null;if(qa(e))return e;let t=e.length;if(!JE(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},vQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ug(Uint8Array)),bQ=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},xQ=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},yQ=Mn("HTMLFormElement"),CQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),bx=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),wQ=Mn("RegExp"),n4=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};kl(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},SQ=e=>{n4(e,(t,r)=>{if(Zr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Zr(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_Q=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return qa(e)?n(e):n(String(e).split(t)),r},EQ=()=>{},kQ=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Qf="abcdefghijklmnopqrstuvwxyz",xx="0123456789",o4={DIGIT:xx,ALPHA:Qf,ALPHA_DIGIT:Qf+Qf.toUpperCase()+xx},TQ=(e=16,t=o4.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function AQ(e){return!!(e&&Zr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const PQ=e=>{const t=new Array(10),r=(n,o)=>{if(gd(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=qa(n)?[]:{};return kl(n,(a,s)=>{const l=r(a,o+1);!nl(l)&&(i[s]=l)}),t[o]=void 0,i}}return n};return r(e,0)},$Q=Mn("AsyncFunction"),IQ=e=>e&&(gd(e)||Zr(e))&&Zr(e.then)&&Zr(e.catch),ce={isArray:qa,isArrayBuffer:ZE,isBuffer:JX,isFormData:lQ,isArrayBufferView:eQ,isString:tQ,isNumber:JE,isBoolean:rQ,isObject:gd,isPlainObject:Bc,isUndefined:nl,isDate:nQ,isFile:oQ,isBlob:iQ,isRegExp:wQ,isFunction:Zr,isStream:sQ,isURLSearchParams:cQ,isTypedArray:vQ,isFileList:aQ,forEach:kl,merge:uh,extend:dQ,trim:uQ,stripBOM:fQ,inherits:hQ,toFlatObject:pQ,kindOf:hd,kindOfTest:Mn,endsWith:gQ,toArray:mQ,forEachEntry:bQ,matchAll:xQ,isHTMLForm:yQ,hasOwnProperty:bx,hasOwnProp:bx,reduceDescriptors:n4,freezeMethods:SQ,toObjectSet:_Q,toCamelCase:CQ,noop:EQ,toFiniteNumber:kQ,findKey:e4,global:t4,isContextDefined:r4,ALPHABET:o4,generateString:TQ,isSpecCompliantForm:AQ,toJSONObject:PQ,isAsyncFn:$Q,isThenable:IQ};function lt(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}ce.inherits(lt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const i4=lt.prototype,a4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{a4[e]={value:e}});Object.defineProperties(lt,a4);Object.defineProperty(i4,"isAxiosError",{value:!0});lt.from=(e,t,r,n,o,i)=>{const a=Object.create(i4);return ce.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),lt.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const DQ=null;function dh(e){return ce.isPlainObject(e)||ce.isArray(e)}function s4(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function yx(e,t,r){return e?e.concat(t).map(function(o,i){return o=s4(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function BQ(e){return ce.isArray(e)&&!e.some(dh)}const OQ=ce.toFlatObject(ce,{},null,function(t){return/^is[A-Z]/.test(t)});function md(e,t,r){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=ce.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!ce.isUndefined(v[g])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ce.isDate(p))return p.toISOString();if(!l&&ce.isBlob(p))throw new lt("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(p)||ce.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,v){let m=p;if(p&&!v&&typeof p=="object"){if(ce.endsWith(g,"{}"))g=n?g:g.slice(0,-2),p=JSON.stringify(p);else if(ce.isArray(p)&&BQ(p)||(ce.isFileList(p)||ce.endsWith(g,"[]"))&&(m=ce.toArray(p)))return g=s4(g),m.forEach(function(y,x){!(ce.isUndefined(y)||y===null)&&t.append(a===!0?yx([g],x,i):a===null?g:g+"[]",c(y))}),!1}return dh(p)?!0:(t.append(yx(v,g,i),c(p)),!1)}const f=[],d=Object.assign(OQ,{defaultVisitor:u,convertValue:c,isVisitable:dh});function h(p,g){if(!ce.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),ce.forEach(p,function(m,b){(!(ce.isUndefined(m)||m===null)&&o.call(t,m,ce.isString(b)?b.trim():b,g,d))===!0&&h(m,g?g.concat(b):[b])}),f.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Cx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function dg(e,t){this._pairs=[],e&&md(e,this,t)}const l4=dg.prototype;l4.append=function(t,r){this._pairs.push([t,r])};l4.toString=function(t){const r=t?function(n){return t.call(this,n,Cx)}:Cx;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function LQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function c4(e,t,r){if(!t)return e;const n=r&&r.encode||LQ,o=r&&r.serialize;let i;if(o?i=o(t,r):i=ce.isURLSearchParams(t)?t.toString():new dg(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class RQ{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ce.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Sx=RQ,u4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FQ=typeof URLSearchParams<"u"?URLSearchParams:dg,MQ=typeof FormData<"u"?FormData:null,zQ=typeof Blob<"u"?Blob:null,NQ={isBrowser:!0,classes:{URLSearchParams:FQ,FormData:MQ,Blob:zQ},protocols:["http","https","file","blob","url","data"]},d4=typeof window<"u"&&typeof document<"u",HQ=(e=>d4&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jQ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),WQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:d4,hasStandardBrowserEnv:HQ,hasStandardBrowserWebWorkerEnv:jQ},Symbol.toStringTag,{value:"Module"})),$n={...WQ,...NQ};function UQ(e,t){return md(e,new $n.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return $n.isNode&&ce.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function VQ(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function GQ(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function f4(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=r.length;return a=!a&&ce.isArray(o)?o.length:a,l?(ce.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!ce.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&ce.isArray(o[a])&&(o[a]=GQ(o[a])),!s)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const r={};return ce.forEachEntry(e,(n,o)=>{t(VQ(n),o,r,0)}),r}return null}function qQ(e,t,r){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const fg={transitional:u4,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=ce.isObject(t);if(i&&ce.isHTMLForm(t)&&(t=new FormData(t)),ce.isFormData(t))return o?JSON.stringify(f4(t)):t;if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t))return t;if(ce.isArrayBufferView(t))return t.buffer;if(ce.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return UQ(t,this.formSerializer).toString();if((s=ce.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return md(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),qQ(t)):t}],transformResponse:[function(t){const r=this.transitional||fg.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&ce.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?lt.from(s,lt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$n.classes.FormData,Blob:$n.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{fg.headers[e]={}});const hg=fg,YQ=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),KQ=e=>{const t={};let r,n,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&YQ[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},_x=Symbol("internals");function os(e){return e&&String(e).trim().toLowerCase()}function Oc(e){return e===!1||e==null?e:ce.isArray(e)?e.map(Oc):String(e)}function XQ(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const QQ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zf(e,t,r,n,o){if(ce.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!ce.isString(t)){if(ce.isString(n))return t.indexOf(n)!==-1;if(ce.isRegExp(n))return n.test(t)}}function ZQ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function JQ(e,t){const r=ce.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}class vd{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,l,c){const u=os(l);if(!u)throw new Error("header name must be a non-empty string");const f=ce.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Oc(s))}const a=(s,l)=>ce.forEach(s,(c,u)=>i(c,u,l));return ce.isPlainObject(t)||t instanceof this.constructor?a(t,r):ce.isString(t)&&(t=t.trim())&&!QQ(t)?a(KQ(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=os(t),t){const n=ce.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return XQ(o);if(ce.isFunction(r))return r.call(this,o,n);if(ce.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=os(t),t){const n=ce.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Zf(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=os(a),a){const s=ce.findKey(n,a);s&&(!r||Zf(n,n[s],s,r))&&(delete n[s],o=!0)}}return ce.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Zf(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return ce.forEach(this,(o,i)=>{const a=ce.findKey(n,i);if(a){r[a]=Oc(o),delete r[i];return}const s=t?ZQ(i):String(i).trim();s!==i&&delete r[i],r[s]=Oc(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return ce.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&ce.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[_x]=this[_x]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=os(a);n[s]||(JQ(o,a),n[s]=!0)}return ce.isArray(t)?t.forEach(i):i(t),this}}vd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(vd.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});ce.freezeMethods(vd);const Kn=vd;function Jf(e,t){const r=this||hg,n=t||r,o=Kn.from(n.headers);let i=n.data;return ce.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function h4(e){return!!(e&&e.__CANCEL__)}function Tl(e,t,r){lt.call(this,e??"canceled",lt.ERR_CANCELED,t,r),this.name="CanceledError"}ce.inherits(Tl,lt,{__CANCEL__:!0});function eZ(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new lt("Request failed with status code "+r.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const tZ=$n.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];ce.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),ce.isString(n)&&a.push("path="+n),ce.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nZ(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function p4(e,t){return e&&!rZ(t)?nZ(e,t):t}const oZ=$n.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(a){const s=ce.isString(a)?o(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function iZ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function aZ(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];a||(a=c),r[o]=l,n[o]=c;let f=i,d=0;for(;f!==o;)d+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function Ex(e,t){let r=0;const n=aZ(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,l=n(s),c=i<=a;r=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&c?(a-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const sZ=typeof XMLHttpRequest<"u",lZ=sZ&&function(e){return new Promise(function(r,n){let o=e.data;const i=Kn.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(ce.isFormData(o)){if($n.hasStandardBrowserEnv||$n.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[g,...v]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...v].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+v))}const d=p4(e.baseURL,e.url);f.open(e.method.toUpperCase(),c4(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const g=Kn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};eZ(function(y){r(y),c()},function(y){n(y),c()},m),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(n(new lt("Request aborted",lt.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new lt("Network Error",lt.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||u4;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),n(new lt(v,m.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,e,f)),f=null},$n.hasStandardBrowserEnv&&(s&&ce.isFunction(s)&&(s=s(e)),s||s!==!1&&oZ(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&tZ.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&ce.forEach(i.toJSON(),function(v,m){f.setRequestHeader(m,v)}),ce.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),a&&a!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",Ex(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Ex(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{f&&(n(!g||g.type?new Tl(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=iZ(d);if(p&&$n.protocols.indexOf(p)===-1){n(new lt("Unsupported protocol "+p+":",lt.ERR_BAD_REQUEST,e));return}f.send(o||null)})},fh={http:DQ,xhr:lZ};ce.forEach(fh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kx=e=>`- ${e}`,cZ=e=>ce.isFunction(e)||e===null||e===!1,g4={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!cZ(r)&&(n=fh[(a=String(r)).toLowerCase()],n===void 0))throw new lt(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(kx).join(`
`):" "+kx(i[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:fh};function e0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tl(null,e)}function Tx(e){return e0(e),e.headers=Kn.from(e.headers),e.data=Jf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),g4.getAdapter(e.adapter||hg.adapter)(e).then(function(n){return e0(e),n.data=Jf.call(e,e.transformResponse,n),n.headers=Kn.from(n.headers),n},function(n){return h4(n)||(e0(e),n&&n.response&&(n.response.data=Jf.call(e,e.transformResponse,n.response),n.response.headers=Kn.from(n.response.headers))),Promise.reject(n)})}const Ax=e=>e instanceof Kn?e.toJSON():e;function Pa(e,t){t=t||{};const r={};function n(c,u,f){return ce.isPlainObject(c)&&ce.isPlainObject(u)?ce.merge.call({caseless:f},c,u):ce.isPlainObject(u)?ce.merge({},u):ce.isArray(u)?u.slice():u}function o(c,u,f){if(ce.isUndefined(u)){if(!ce.isUndefined(c))return n(void 0,c,f)}else return n(c,u,f)}function i(c,u){if(!ce.isUndefined(u))return n(void 0,u)}function a(c,u){if(ce.isUndefined(u)){if(!ce.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,f){if(f in t)return n(c,u);if(f in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(Ax(c),Ax(u),!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,d=f(e[u],t[u],u);ce.isUndefined(d)&&f!==s||(r[u]=d)}),r}const m4="1.6.7",pg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pg[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Px={};pg.transitional=function(t,r,n){function o(i,a){return"[Axios v"+m4+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new lt(o(a," has been removed"+(r?" in "+r:"")),lt.ERR_DEPRECATED);return r&&!Px[a]&&(Px[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};function uZ(e,t,r){if(typeof e!="object")throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new lt("option "+i+" must be "+l,lt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new lt("Unknown option "+i,lt.ERR_BAD_OPTION)}}const hh={assertOptions:uZ,validators:pg},po=hh.validators;class du{constructor(t){this.defaults=t,this.interceptors={request:new Sx,response:new Sx}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Pa(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&hh.assertOptions(n,{silentJSONParsing:po.transitional(po.boolean),forcedJSONParsing:po.transitional(po.boolean),clarifyTimeoutError:po.transitional(po.boolean)},!1),o!=null&&(ce.isFunction(o)?r.paramsSerializer={serialize:o}:hh.assertOptions(o,{encode:po.function,serialize:po.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&ce.merge(i.common,i[r.method]);i&&ce.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Kn.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,d;if(!l){const p=[Tx.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),d=p.length,u=Promise.resolve(r);f<d;)u=u.then(p[f++],p[f++]);return u}d=s.length;let h=r;for(f=0;f<d;){const p=s[f++],g=s[f++];try{h=p(h)}catch(v){g.call(this,v);break}}try{u=Tx.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=Pa(this.defaults,t);const r=p4(t.baseURL,t.url);return c4(r,t.params,t.paramsSerializer)}}ce.forEach(["delete","get","head","options"],function(t){du.prototype[t]=function(r,n){return this.request(Pa(n||{},{method:t,url:r,data:(n||{}).data}))}});ce.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(Pa(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}du.prototype[t]=r(),du.prototype[t+"Form"]=r(!0)});const Lc=du;class gg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new Tl(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new gg(function(o){t=o}),cancel:t}}}const dZ=gg;function fZ(e){return function(r){return e.apply(null,r)}}function hZ(e){return ce.isObject(e)&&e.isAxiosError===!0}const ph={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ph).forEach(([e,t])=>{ph[t]=e});const pZ=ph;function v4(e){const t=new Lc(e),r=QE(Lc.prototype.request,t);return ce.extend(r,Lc.prototype,t,{allOwnKeys:!0}),ce.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return v4(Pa(e,o))},r}const er=v4(hg);er.Axios=Lc;er.CanceledError=Tl;er.CancelToken=dZ;er.isCancel=h4;er.VERSION=m4;er.toFormData=md;er.AxiosError=lt;er.Cancel=er.CanceledError;er.all=function(t){return Promise.all(t)};er.spread=fZ;er.isAxiosError=hZ;er.mergeConfig=Pa;er.AxiosHeaders=Kn;er.formToJSON=e=>f4(ce.isHTMLForm(e)?new FormData(e):e);er.getAdapter=g4.getAdapter;er.HttpStatusCode=pZ;er.default=er;const gZ=er,fu=gZ.create({baseURL:"/api",timeout:2400*1e3});fu.interceptors.request.use(e=>{var o;const t=Cr().token,r=(o=bd())==null?void 0:o.fingerprint,n=window.location.origin;return e.headers["X-Website-Domain"]=n,r&&(e.headers.Fingerprint=r),t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e.response));fu.interceptors.response.use(e=>{if([200,201].includes(e.status))return e;throw new Error(e.status.toString())},e=>Promise.reject(e));let $x=0;const mZ=["/chatlog/chatList","/group/query"];function vZ(e){return e?mZ.some(t=>e.includes(t)):!1}function b4({url:e,data:t,method:r,headers:n,onDownloadProgress:o,signal:i,beforeRequest:a,afterRequest:s}){const l=f=>{const d=Cr(),{code:h}=f.data;return h>=200&&h<300||!h?f.data:(h===401&&(d.removeToken(),window.location.reload()),Promise.reject(f.data))},c=f=>{var g,v,m,b,y,x;const d=Cr();let h="";if((g=f.response)!=null&&g.data&&(h=f.response.data),s==null||s(),((v=f==null?void 0:f.response)==null?void 0:v.status)===401){if(d.removeToken(),!vZ((m=f==null?void 0:f.request)==null?void 0:m.responseURL)){d.loadInit&&d.setLoginDialog(!0);const S=((b=f.response.data)==null?void 0:b.message)||"请先登录后再进行使用!";Date.now()-$x>3e3&&window.$message.error(S)}$x=Date.now()}else h&&!(h!=null&&h.success)&&window.$message.error((h==null?void 0:h.message)||"请求接口错误!");throw new Error(((x=(y=f.response)==null?void 0:y.data)==null?void 0:x.message)||f||"Error")};a==null||a(),r=r||"GET";const u=Object.assign(typeof t=="function"?t():t??{},{});return r==="GET"?fu.get(e,{params:u,signal:i,onDownloadProgress:o}).then(l,c):fu.post(e,u,{headers:n,signal:i,onDownloadProgress:o}).then(l,c)}function kt({url:e,data:t,method:r="GET",onDownloadProgress:n,signal:o,beforeRequest:i,afterRequest:a}){return b4({url:e,method:r,data:t,onDownloadProgress:n,signal:o,beforeRequest:i,afterRequest:a})}function mt({url:e,data:t,method:r="POST",headers:n,onDownloadProgress:o,signal:i,beforeRequest:a,afterRequest:s}){return b4({url:e,method:r,data:t,headers:n,onDownloadProgress:o,signal:i,beforeRequest:a,afterRequest:s})}function bZ(e){return mt({url:"/group/create",data:e})}function xZ(){return kt({url:"/group/query"})}function yZ(e){return mt({url:"/group/update",data:e})}function CZ(e){return mt({url:"/group/del",data:e})}function wZ(e){return mt({url:"/group/delAll",data:e})}const gh="chatStorage";function SZ(){return{active:0,usingContext:!0,usingNetwork:!1,groupList:[],chatList:[],chatPreList:[],groupKeyWord:"",baseConfig:null}}function _Z(){const e=Nt.get(gh);return{...SZ(),...e}}function EZ({active:e}){Nt.set(gh,{...Nt.get(gh),active:e})}function kZ(e){return e.map(t=>{const{name:r,childList:n,id:o}=t;return{label:r,value:o,children:n.map(i=>({label:i.title,value:i.prompt}))}})}function TZ(e){return mt({url:"/chatlog/del",data:e})}function AZ(e){return mt({url:"/chatlog/delByGroupId",data:e})}function PZ(e){return kt({url:"/chatlog/chatList",data:e})}function ace(e){return mt({url:"/chatgpt/chat-process",data:{model:e.model,modelName:e.modelName,modelType:e.modelType,prompt:e.prompt,fileInfo:e==null?void 0:e.fileInfo,extraParam:e==null?void 0:e.extraParam,appId:e==null?void 0:e.appId,options:e.options,action:e==null?void 0:e.action,customId:e==null?void 0:e.customId,drawId:e==null?void 0:e.drawId},signal:e.signal,onDownloadProgress:e.onDownloadProgress})}function sce(e){return mt({url:"/chatgpt/tts-process",data:e})}function $Z(){return kt({url:"/auth/getInfo"})}function IZ(e){return mt({url:"/auth/register",data:e})}function DZ(e){return mt({url:"/auth/login",data:e})}function lce(e){return mt({url:"/user/update",data:e})}function cce(e){return mt({url:"/auth/updatePassword",data:e})}function uce(e){return mt({url:"/chatgpt/chat-sync",data:{prompt:e.prompt,options:e.options},signal:e.signal,onDownloadProgress:e.onDownloadProgress})}function dce(e){return mt({url:"/chatgpt/chat-mind",data:{prompt:e.prompt,options:e.options},signal:e.signal,onDownloadProgress:e.onDownloadProgress})}function fce(e){return mt({url:"/chatgpt/mj-fy",data:{prompt:e.prompt,options:e.options},signal:e.signal,onDownloadProgress:e.onDownloadProgress})}function hce(e){return kt({url:"/midjourney/drawList",data:e})}function pce(){return kt({url:"/midjourney/queryPrompts"})}function gce(e){return kt({url:"/midjourney/getFullPrompt",data:e})}function mce(e){return mt({url:"/midjourney/delete",data:e})}function vce(e){return kt({url:"/midjourney/getList",data:e})}function BZ(e){return mt({url:"/auth/captcha",data:e})}function OZ(e){return mt({url:"/auth/sendCode",data:e})}function bce(){return kt({url:"/chatgpt/queryChatBoxFrontend"})}function LZ(){return kt({url:"/chatgpt/queryChatPreList"})}function xce(){return kt({url:"/models/list"})}function RZ(){return kt({url:"/models/baseConfig"})}const x4=Ii("chat-store",{state:()=>_Z(),getters:{activeConfig:e=>{var o;const t=e.active;if(!t)return{};const r=(o=e.groupList.find(i=>i.uuid===t))==null?void 0:o.config;return r?JSON.parse(r):e.baseConfig},activeGroupAppId:e=>{var r;const t=e.active;return t?(r=e.groupList.find(n=>n.uuid===t))==null?void 0:r.appId:null},activeModel(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.model},activeModelName(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.modelName},activeModelAvatar(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.modelAvatar},activeModelDeductType(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.deductType},activeModelKeyType(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.keyType},activeModelFileUpload(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.isFileUpload},activeModelPrice(e){var t,r;return(r=(t=this.activeConfig)==null?void 0:t.modelInfo)==null?void 0:r.deduct}},actions:{setGroupKeyWord(e){this.groupKeyWord=e},getChatByGroupInfo(){if(this.active)return this.groupList.find(e=>e.uuid===this.active)||{}},getConfigFromUuid(e){var t;return(t=this.groupList.find(r=>r.uuid===e))==null?void 0:t.config},async addNewChatGroup(e=0,t){const r=await bZ({appId:e,modelConfig:t}),{id:n}=r.data;this.chatList=[],await this.setActiveGroup(n),await this.queryMyGroup(),this.recordState()},async getBaseModelConfig(){const e=await RZ();this.baseConfig=e==null?void 0:e.data},async queryMyGroup(){const e=await xZ();this.groupList=[...e.data.map(t=>{const{id:r,title:n,isSticky:o,createdAt:i,updatedAt:a,appId:s,config:l,appLogo:c,isFixedModel:u,isGpts:f}=t;return{uuid:r,title:n,isEdit:!1,appId:s,config:l,isSticky:o,appLogo:c,createdAt:i,isFixedModel:u,isGpts:f,updatedAt:new Date(a).getTime()}})],this.active||this.groupList.length&&this.setActiveGroup(this.groupList[0].uuid),this.recordState()},async updateGroupInfo(e){await yZ(e),await this.queryMyGroup()},async setActiveGroup(e){this.active=e,this.active?await this.queryActiveChatLogList():this.chatList=[],this.groupList.forEach(t=>t.isEdit=!1),this.recordState()},async deleteGroup(e){const t=this.groupList.findIndex(n=>n.uuid===e.uuid),{uuid:r}=e;await CZ({groupId:r}),await this.queryMyGroup(),this.groupList.length===0&&await this.setActiveGroup(0),t>0&&t<this.groupList.length&&await this.setActiveGroup(this.groupList[t].uuid),t===0&&this.groupList.length>0&&await this.setActiveGroup(this.groupList[0].uuid),(t>this.groupList.length||t===0&&this.groupList.length===0)&&await this.setActiveGroup(0),t>0&&t===this.groupList.length&&await this.setActiveGroup(this.groupList[t-1].uuid),this.recordState()},async delAllGroup(){!this.active||!this.groupList.length||(await wZ(),await this.queryMyGroup(),this.groupList.length===0?await this.setActiveGroup(0):await this.setActiveGroup(this.groupList[0].uuid))},async queryActiveChatLogList(){if(!this.active||Number(this.active)===0)return;const e=await PZ({groupId:this.active});this.chatList=e.data,this.recordState()},addGroupChat(e){this.chatList=[...this.chatList,e]},updateGroupChat(e,t){this.chatList[e]={...this.chatList[e],...t}},updateGroupChatSome(e,t){this.chatList[e]={...this.chatList[e],...t}},async deleteChatById(e){e&&(await TZ({id:e}),await this.queryActiveChatLogList())},async queryChatPre(){const e=await LZ();e.data&&(this.chatPreList=kZ(e.data))},setUsingContext(e){this.usingContext=e,this.recordState()},setUsingNetwork(e){this.usingNetwork=e,this.recordState()},async clearChatByGroupId(){this.active&&(await AZ({groupId:this.active}),await this.queryActiveChatLogList())},recordState(){EZ(this.$state)},clearChat(){this.chatList=[],this.groupList=[],this.active=0,this.recordState()}}}),y4="promptStore";function FZ(){return Nt.get(y4)??{promptList:[]}}function MZ(e){Nt.set(y4,e)}Ii("prompt-store",{state:()=>FZ(),actions:{updatePromptList(e){this.$patch({promptList:e}),MZ({promptList:e})},getPromptList(){return this.$state}}});const mg="settingsStorage";function C4(){return{systemMessage:""}}function zZ(){const e=Nt.get(mg);return{...C4(),...e}}function NZ(e){Nt.set(mg,e)}function HZ(){Nt.remove(mg)}Ii("setting-store",{state:()=>zZ(),actions:{updateSetting(e){this.$state={...this.$state,...e},this.recordState()},resetSetting(){this.$state=C4(),HZ()},recordState(){NZ(this.$state)}}});function yce(e){return kt({url:"/balance/rechargeLog",data:e})}function jZ(){return kt({url:"/balance/query"})}function Cce(){return kt({url:"/balance/getVisitorCount"})}function wce(){return mt({url:"/balance/inheritVisitorData"})}function WZ(e){return kt({url:"/config/queryFronet",data:e})}function w4(e){return kt({url:"/menu/list",data:e})}const vg="SECRET_TOKEN";function UZ(){return Nt.get(vg)}function VZ(e){return Nt.set(vg,e)}function t0(){return Nt.remove(vg)}const Cr=Ii("auth-store",{state:()=>({token:UZ(),loginDialog:!1,globalConfigLoading:!0,userInfo:{},userBalance:{},globalConfig:{},loadInit:!1}),getters:{isLogin:e=>!!e.token},actions:{async getUserInfo(){try{this.loadInit||await this.getglobalConfig();const e=await $Z();if(!e)return Promise.resolve(e);const{data:t}=e,{userInfo:r,userBalance:n}=t;return this.userInfo={...r},this.userBalance={...n},Promise.resolve(t)}catch(e){return Promise.reject(e)}},updateUserBalance(e){this.userBalance=e},async getUserBalance(){const e=await jZ(),{success:t,data:r}=e;t&&(this.userBalance=r)},async getglobalConfig(e=""){const t=await WZ({domain:e});this.globalConfig=t.data,this.globalConfigLoading=!1,this.loadInit=!0},setToken(e){this.token=e,VZ(e)},removeToken(){this.token=void 0,t0()},setLoginDialog(e){this.loginDialog=e},logOut(){this.token=void 0,t0(),this.userInfo={},this.userBalance={},x4().clearChat()},updatePasswordSuccess(){this.token=void 0,t0(),this.userInfo={},this.userBalance={},this.loginDialog=!0}}});function GZ(){return Cr(xd)}const bd=Ii("global-store",{state:()=>({payDialog:!1,goodsDialog:!1,noticeDialog:!1,bindWxDialog:!1,signInDialog:!1,modelDialog:!1,isChatIn:!1,fingerprint:0,model:Nt.get("model")||3,orderInfo:{},iframeUrl:"",clipboardText:""}),actions:{updateClipboardText(e){this.clipboardText=e},updateFingerprint(e){let t=e;t>2147483647&&(t=Number(t.toString().slice(-9)),t=Number(String(Number(t)))),Nt.set("fingerprint",t),this.fingerprint=t},updateIframeUrl(e){this.iframeUrl=e},updatePayDialog(e){this.payDialog=e},updateIsChatIn(e){this.isChatIn=e},updateGoodsDialog(e){this.goodsDialog=e},updateBindwxDialog(e){this.bindWxDialog=e},updateSignInDialog(e){this.signInDialog=e},updateNoticeDialog(e){this.noticeDialog=e},updateOrderInfo(e){this.orderInfo=e},updateModel(e){Nt.set("model",e),this.model=e}}});function zo(){return bd(xd)}function Sce(){return kt({url:"/app/queryCats"})}function _ce(){return kt({url:"/app/list"})}function qZ(){return kt({url:"/app/mineApps"})}function Ece(e){return mt({url:"/app/collect",data:e})}function kce(e){return kt({url:"/app/queryOneCat",data:e})}const Tce=Ii("app-cat-store",{state:()=>({catId:0,mineApps:[]}),actions:{setCatId(e){this.catId=e},async queryMineApps(){var t;const e=await qZ();this.mineApps=((t=e==null?void 0:e.data)==null?void 0:t.rows)||[]}}}),xd=HX();function YZ(e){e.use(xd)}const KZ="/assets/avatar-e985e5ec.png";var Ix;const S4=typeof window<"u";S4&&((Ix=window==null?void 0:window.navigator)!=null&&Ix.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function XZ(e){return e}function QZ(e,t){var r;if(typeof e=="number")return e+t;const n=((r=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:r[0])||"",o=e.slice(n.length),i=parseFloat(n)+t;return Number.isNaN(i)?e:i+o}function ZZ(e){return Tu()?(Vh(e),!0):!1}function JZ(e){return typeof e=="function"?R(e):M(e)}function eJ(e,t=!0){Er()?_t(e):t?e():Qt(e)}const _4=S4?window:void 0;function tJ(e,t=!1){const r=M(),n=()=>r.value=!!e();return n(),eJ(n,t),r}function is(e,t={}){const{window:r=_4}=t,n=tJ(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let o;const i=M(!1),a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},s=()=>{n.value&&(a(),o=r.matchMedia(JZ(e).value),i.value=o.matches,"addEventListener"in o?o.addEventListener("change",s):o.addListener(s))};return Or(s),ZZ(()=>a()),i}const rJ={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var nJ=Object.defineProperty,Dx=Object.getOwnPropertySymbols,oJ=Object.prototype.hasOwnProperty,iJ=Object.prototype.propertyIsEnumerable,Bx=(e,t,r)=>t in e?nJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aJ=(e,t)=>{for(var r in t||(t={}))oJ.call(t,r)&&Bx(e,r,t[r]);if(Dx)for(var r of Dx(t))iJ.call(t,r)&&Bx(e,r,t[r]);return e};function sJ(e,t={}){function r(s,l){let c=e[s];return l!=null&&(c=QZ(c,l)),typeof c=="number"&&(c=`${c}px`),c}const{window:n=_4}=t;function o(s){return n?n.matchMedia(s).matches:!1}const i=s=>is(`(min-width: ${r(s)})`,t),a=Object.keys(e).reduce((s,l)=>(Object.defineProperty(s,l,{get:()=>i(l),enumerable:!0,configurable:!0}),s),{});return aJ({greater(s){return is(`(min-width: ${r(s,.1)})`,t)},greaterOrEqual:i,smaller(s){return is(`(max-width: ${r(s,-.1)})`,t)},smallerOrEqual(s){return is(`(max-width: ${r(s)})`,t)},between(s,l){return is(`(min-width: ${r(s)}) and (max-width: ${r(l,-.1)})`,t)},isGreater(s){return o(`(min-width: ${r(s,.1)})`)},isGreaterOrEqual(s){return o(`(min-width: ${r(s)})`)},isSmaller(s){return o(`(max-width: ${r(s,-.1)})`)},isSmallerOrEqual(s){return o(`(max-width: ${r(s)})`)},isInBetween(s,l){return o(`(min-width: ${r(s)}) and (max-width: ${r(l,-.1)})`)}},a)}const Ox=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lx="__vueuse_ssr_handlers__";Ox[Lx]=Ox[Lx]||{};var Rx;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Rx||(Rx={}));var lJ=Object.defineProperty,Fx=Object.getOwnPropertySymbols,cJ=Object.prototype.hasOwnProperty,uJ=Object.prototype.propertyIsEnumerable,Mx=(e,t,r)=>t in e?lJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dJ=(e,t)=>{for(var r in t||(t={}))cJ.call(t,r)&&Mx(e,r,t[r]);if(Fx)for(var r of Fx(t))uJ.call(t,r)&&Mx(e,r,t[r]);return e};const fJ={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};dJ({linear:XZ},fJ);function vn(){const e=sJ(rJ),t=e.smaller("sm"),r=e.smaller("md"),n=e.smaller("lg"),o=e.smaller("xl");return{isMobile:t,isSmallMd:r,isSmallLg:n,isSmallXl:o}}/*!
* shared v9.10.1
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/const hu=typeof window<"u",No=(e,t=!1)=>t?Symbol.for(e):Symbol(e),hJ=(e,t,r)=>pJ({l:e,k:t,s:r}),pJ=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ir=e=>typeof e=="number"&&isFinite(e),gJ=e=>k4(e)==="[object Date]",Do=e=>k4(e)==="[object RegExp]",yd=e=>Ke(e)&&Object.keys(e).length===0,fr=Object.assign;let zx;const Gn=()=>zx||(zx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Nx(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const mJ=Object.prototype.hasOwnProperty;function pu(e,t){return mJ.call(e,t)}const Ot=Array.isArray,Tt=e=>typeof e=="function",_e=e=>typeof e=="string",nt=e=>typeof e=="boolean",vt=e=>e!==null&&typeof e=="object",vJ=e=>vt(e)&&Tt(e.then)&&Tt(e.catch),E4=Object.prototype.toString,k4=e=>E4.call(e),Ke=e=>{if(!vt(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},bJ=e=>e==null?"":Ot(e)||Ke(e)&&e.toString===E4?JSON.stringify(e,null,2):String(e);function xJ(e,t=""){return e.reduce((r,n,o)=>o===0?r+n:r+t+n,"")}function bg(e){let t=e;return()=>++t}function yJ(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const dc=e=>!vt(e)||Ot(e);function Rc(e,t){if(dc(e)||dc(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:o}=r.pop();Object.keys(n).forEach(i=>{dc(n[i])||dc(o[i])?o[i]=n[i]:r.push({src:n[i],des:o[i]})})}}/*!
* message-compiler v9.10.1
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/function CJ(e,t,r){return{line:e,column:t,offset:r}}function mh(e,t,r){const n={start:e,end:t};return r!=null&&(n.source=r),n}const wJ=/\{([0-9a-zA-Z]+)\}/g;function SJ(e,...t){return t.length===1&&_J(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(wJ,(r,n)=>t.hasOwnProperty(n)?t[n]:"")}const T4=Object.assign,Hx=e=>typeof e=="string",_J=e=>e!==null&&typeof e=="object";function A4(e,t=""){return e.reduce((r,n,o)=>o===0?r+n:r+t+n,"")}const Ve={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},EJ={[Ve.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ve.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ve.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ve.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ve.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ve.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ve.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ve.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ve.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ve.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ve.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ve.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ve.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ve.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ve.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ve.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ya(e,t,r={}){const{domain:n,messages:o,args:i}=r,a=SJ((o||EJ)[e]||"",...i||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=n,s}function kJ(e){throw e}const Wn=" ",TJ="\r",Sr=`
`,AJ=String.fromCharCode(8232),PJ=String.fromCharCode(8233);function $J(e){const t=e;let r=0,n=1,o=1,i=0;const a=w=>t[w]===TJ&&t[w+1]===Sr,s=w=>t[w]===Sr,l=w=>t[w]===PJ,c=w=>t[w]===AJ,u=w=>a(w)||s(w)||l(w)||c(w),f=()=>r,d=()=>n,h=()=>o,p=()=>i,g=w=>a(w)||l(w)||c(w)?Sr:t[w],v=()=>g(r),m=()=>g(r+i);function b(){return i=0,u(r)&&(n++,o=0),a(r)&&r++,r++,o++,t[r]}function y(){return a(r+i)&&i++,i++,t[r+i]}function x(){r=0,n=1,o=1,i=0}function S(w=0){i=w}function C(){const w=r+i;for(;w!==r;)b();i=0}return{index:f,line:d,column:h,peekOffset:p,charAt:g,currentChar:v,currentPeek:m,next:b,peek:y,reset:x,resetPeek:S,skipToPeek:C}}const go=void 0,IJ=".",jx="'",DJ="tokenizer";function BJ(e,t={}){const r=t.location!==!1,n=$J(e),o=()=>n.index(),i=()=>CJ(n.line(),n.column(),n.index()),a=i(),s=o(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(_,E,P,...O){const L=c();if(E.column+=P,E.offset+=P,u){const G=r?mh(L.startLoc,E):null,K=Ya(_,G,{domain:DJ,args:O});u(K)}}function d(_,E,P){_.endLoc=i(),_.currentType=E;const O={type:E};return r&&(O.loc=mh(_.startLoc,_.endLoc)),P!=null&&(O.value=P),O}const h=_=>d(_,14);function p(_,E){return _.currentChar()===E?(_.next(),E):(f(Ve.EXPECTED_TOKEN,i(),0,E),"")}function g(_){let E="";for(;_.currentPeek()===Wn||_.currentPeek()===Sr;)E+=_.currentPeek(),_.peek();return E}function v(_){const E=g(_);return _.skipToPeek(),E}function m(_){if(_===go)return!1;const E=_.charCodeAt(0);return E>=97&&E<=122||E>=65&&E<=90||E===95}function b(_){if(_===go)return!1;const E=_.charCodeAt(0);return E>=48&&E<=57}function y(_,E){const{currentType:P}=E;if(P!==2)return!1;g(_);const O=m(_.currentPeek());return _.resetPeek(),O}function x(_,E){const{currentType:P}=E;if(P!==2)return!1;g(_);const O=_.currentPeek()==="-"?_.peek():_.currentPeek(),L=b(O);return _.resetPeek(),L}function S(_,E){const{currentType:P}=E;if(P!==2)return!1;g(_);const O=_.currentPeek()===jx;return _.resetPeek(),O}function C(_,E){const{currentType:P}=E;if(P!==8)return!1;g(_);const O=_.currentPeek()===".";return _.resetPeek(),O}function w(_,E){const{currentType:P}=E;if(P!==9)return!1;g(_);const O=m(_.currentPeek());return _.resetPeek(),O}function k(_,E){const{currentType:P}=E;if(!(P===8||P===12))return!1;g(_);const O=_.currentPeek()===":";return _.resetPeek(),O}function A(_,E){const{currentType:P}=E;if(P!==10)return!1;const O=()=>{const G=_.currentPeek();return G==="{"?m(_.peek()):G==="@"||G==="%"||G==="|"||G===":"||G==="."||G===Wn||!G?!1:G===Sr?(_.peek(),O()):m(G)},L=O();return _.resetPeek(),L}function T(_){g(_);const E=_.currentPeek()==="|";return _.resetPeek(),E}function I(_){const E=g(_),P=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:P,hasSpace:E.length>0}}function D(_,E=!0){const P=(L=!1,G="",K=!1)=>{const H=_.currentPeek();return H==="{"?G==="%"?!1:L:H==="@"||!H?G==="%"?!0:L:H==="%"?(_.peek(),P(L,"%",!0)):H==="|"?G==="%"||K?!0:!(G===Wn||G===Sr):H===Wn?(_.peek(),P(!0,Wn,K)):H===Sr?(_.peek(),P(!0,Sr,K)):!0},O=P();return E&&_.resetPeek(),O}function B(_,E){const P=_.currentChar();return P===go?go:E(P)?(_.next(),P):null}function j(_){return B(_,P=>{const O=P.charCodeAt(0);return O>=97&&O<=122||O>=65&&O<=90||O>=48&&O<=57||O===95||O===36})}function F(_){return B(_,P=>{const O=P.charCodeAt(0);return O>=48&&O<=57})}function z(_){return B(_,P=>{const O=P.charCodeAt(0);return O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102})}function V(_){let E="",P="";for(;E=F(_);)P+=E;return P}function oe(_){v(_);const E=_.currentChar();return E!=="%"&&f(Ve.EXPECTED_TOKEN,i(),0,E),_.next(),"%"}function fe(_){let E="";for(;;){const P=_.currentChar();if(P==="{"||P==="}"||P==="@"||P==="|"||!P)break;if(P==="%")if(D(_))E+=P,_.next();else break;else if(P===Wn||P===Sr)if(D(_))E+=P,_.next();else{if(T(_))break;E+=P,_.next()}else E+=P,_.next()}return E}function ge(_){v(_);let E="",P="";for(;E=j(_);)P+=E;return _.currentChar()===go&&f(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),P}function U(_){v(_);let E="";return _.currentChar()==="-"?(_.next(),E+=`-${V(_)}`):E+=V(_),_.currentChar()===go&&f(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),E}function X(_){v(_),p(_,"'");let E="",P="";const O=G=>G!==jx&&G!==Sr;for(;E=B(_,O);)E==="\\"?P+=ae(_):P+=E;const L=_.currentChar();return L===Sr||L===go?(f(Ve.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),L===Sr&&(_.next(),p(_,"'")),P):(p(_,"'"),P)}function ae(_){const E=_.currentChar();switch(E){case"\\":case"'":return _.next(),`\\${E}`;case"u":return Z(_,E,4);case"U":return Z(_,E,6);default:return f(Ve.UNKNOWN_ESCAPE_SEQUENCE,i(),0,E),""}}function Z(_,E,P){p(_,E);let O="";for(let L=0;L<P;L++){const G=z(_);if(!G){f(Ve.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${E}${O}${_.currentChar()}`);break}O+=G}return`\\${E}${O}`}function Be(_){v(_);let E="",P="";const O=L=>L!=="{"&&L!=="}"&&L!==Wn&&L!==Sr;for(;E=B(_,O);)P+=E;return P}function ye(_){let E="",P="";for(;E=j(_);)P+=E;return P}function q(_){const E=(P=!1,O)=>{const L=_.currentChar();return L==="{"||L==="%"||L==="@"||L==="|"||L==="("||L===")"||!L||L===Wn?O:L===Sr||L===IJ?(O+=L,_.next(),E(P,O)):(O+=L,_.next(),E(!0,O))};return E(!1,"")}function te(_){v(_);const E=p(_,"|");return v(_),E}function ie(_,E){let P=null;switch(_.currentChar()){case"{":return E.braceNest>=1&&f(Ve.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),P=d(E,2,"{"),v(_),E.braceNest++,P;case"}":return E.braceNest>0&&E.currentType===2&&f(Ve.EMPTY_PLACEHOLDER,i(),0),_.next(),P=d(E,3,"}"),E.braceNest--,E.braceNest>0&&v(_),E.inLinked&&E.braceNest===0&&(E.inLinked=!1),P;case"@":return E.braceNest>0&&f(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),P=ve(_,E)||h(E),E.braceNest=0,P;default:let L=!0,G=!0,K=!0;if(T(_))return E.braceNest>0&&f(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),P=d(E,1,te(_)),E.braceNest=0,E.inLinked=!1,P;if(E.braceNest>0&&(E.currentType===5||E.currentType===6||E.currentType===7))return f(Ve.UNTERMINATED_CLOSING_BRACE,i(),0),E.braceNest=0,Le(_,E);if(L=y(_,E))return P=d(E,5,ge(_)),v(_),P;if(G=x(_,E))return P=d(E,6,U(_)),v(_),P;if(K=S(_,E))return P=d(E,7,X(_)),v(_),P;if(!L&&!G&&!K)return P=d(E,13,Be(_)),f(Ve.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,P.value),v(_),P;break}return P}function ve(_,E){const{currentType:P}=E;let O=null;const L=_.currentChar();switch((P===8||P===9||P===12||P===10)&&(L===Sr||L===Wn)&&f(Ve.INVALID_LINKED_FORMAT,i(),0),L){case"@":return _.next(),O=d(E,8,"@"),E.inLinked=!0,O;case".":return v(_),_.next(),d(E,9,".");case":":return v(_),_.next(),d(E,10,":");default:return T(_)?(O=d(E,1,te(_)),E.braceNest=0,E.inLinked=!1,O):C(_,E)||k(_,E)?(v(_),ve(_,E)):w(_,E)?(v(_),d(E,12,ye(_))):A(_,E)?(v(_),L==="{"?ie(_,E)||O:d(E,11,q(_))):(P===8&&f(Ve.INVALID_LINKED_FORMAT,i(),0),E.braceNest=0,E.inLinked=!1,Le(_,E))}}function Le(_,E){let P={type:14};if(E.braceNest>0)return ie(_,E)||h(E);if(E.inLinked)return ve(_,E)||h(E);switch(_.currentChar()){case"{":return ie(_,E)||h(E);case"}":return f(Ve.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),d(E,3,"}");case"@":return ve(_,E)||h(E);default:if(T(_))return P=d(E,1,te(_)),E.braceNest=0,E.inLinked=!1,P;const{isModulo:L,hasSpace:G}=I(_);if(L)return G?d(E,0,fe(_)):d(E,4,oe(_));if(D(_))return d(E,0,fe(_));break}return P}function $e(){const{currentType:_,offset:E,startLoc:P,endLoc:O}=l;return l.lastType=_,l.lastOffset=E,l.lastStartLoc=P,l.lastEndLoc=O,l.offset=o(),l.startLoc=i(),n.currentChar()===go?d(l,14):Le(n,l)}return{nextToken:$e,currentOffset:o,currentPosition:i,context:c}}const OJ="parser",LJ=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function RJ(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"<22>"}}}function FJ(e={}){const t=e.location!==!1,{onError:r}=e;function n(m,b,y,x,...S){const C=m.currentPosition();if(C.offset+=x,C.column+=x,r){const w=t?mh(y,C):null,k=Ya(b,w,{domain:OJ,args:S});r(k)}}function o(m,b,y){const x={type:m};return t&&(x.start=b,x.end=b,x.loc={start:y,end:y}),x}function i(m,b,y,x){x&&(m.type=x),t&&(m.end=b,m.loc&&(m.loc.end=y))}function a(m,b){const y=m.context(),x=o(3,y.offset,y.startLoc);return x.value=b,i(x,m.currentOffset(),m.currentPosition()),x}function s(m,b){const y=m.context(),{lastOffset:x,lastStartLoc:S}=y,C=o(5,x,S);return C.index=parseInt(b,10),m.nextToken(),i(C,m.currentOffset(),m.currentPosition()),C}function l(m,b){const y=m.context(),{lastOffset:x,lastStartLoc:S}=y,C=o(4,x,S);return C.key=b,m.nextToken(),i(C,m.currentOffset(),m.currentPosition()),C}function c(m,b){const y=m.context(),{lastOffset:x,lastStartLoc:S}=y,C=o(9,x,S);return C.value=b.replace(LJ,RJ),m.nextToken(),i(C,m.currentOffset(),m.currentPosition()),C}function u(m){const b=m.nextToken(),y=m.context(),{lastOffset:x,lastStartLoc:S}=y,C=o(8,x,S);return b.type!==12?(n(m,Ve.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),C.value="",i(C,x,S),{nextConsumeToken:b,node:C}):(b.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn(b)),C.value=b.value||"",i(C,m.currentOffset(),m.currentPosition()),{node:C})}function f(m,b){const y=m.context(),x=o(7,y.offset,y.startLoc);return x.value=b,i(x,m.currentOffset(),m.currentPosition()),x}function d(m){const b=m.context(),y=o(6,b.offset,b.startLoc);let x=m.nextToken();if(x.type===9){const S=u(m);y.modifier=S.node,x=S.nextConsumeToken||m.nextToken()}switch(x.type!==10&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(x)),x=m.nextToken(),x.type===2&&(x=m.nextToken()),x.type){case 11:x.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(x)),y.key=f(m,x.value||"");break;case 5:x.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(x)),y.key=l(m,x.value||"");break;case 6:x.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(x)),y.key=s(m,x.value||"");break;case 7:x.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(x)),y.key=c(m,x.value||"");break;default:n(m,Ve.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const S=m.context(),C=o(7,S.offset,S.startLoc);return C.value="",i(C,S.offset,S.startLoc),y.key=C,i(y,S.offset,S.startLoc),{nextConsumeToken:x,node:y}}return i(y,m.currentOffset(),m.currentPosition()),{node:y}}function h(m){const b=m.context(),y=b.currentType===1?m.currentOffset():b.offset,x=b.currentType===1?b.endLoc:b.startLoc,S=o(2,y,x);S.items=[];let C=null;do{const A=C||m.nextToken();switch(C=null,A.type){case 0:A.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(A)),S.items.push(a(m,A.value||""));break;case 6:A.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(A)),S.items.push(s(m,A.value||""));break;case 5:A.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(A)),S.items.push(l(m,A.value||""));break;case 7:A.value==null&&n(m,Ve.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Sn(A)),S.items.push(c(m,A.value||""));break;case 8:const T=d(m);S.items.push(T.node),C=T.nextConsumeToken||null;break}}while(b.currentType!==14&&b.currentType!==1);const w=b.currentType===1?b.lastOffset:m.currentOffset(),k=b.currentType===1?b.lastEndLoc:m.currentPosition();return i(S,w,k),S}function p(m,b,y,x){const S=m.context();let C=x.items.length===0;const w=o(1,b,y);w.cases=[],w.cases.push(x);do{const k=h(m);C||(C=k.items.length===0),w.cases.push(k)}while(S.currentType!==14);return C&&n(m,Ve.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),i(w,m.currentOffset(),m.currentPosition()),w}function g(m){const b=m.context(),{offset:y,startLoc:x}=b,S=h(m);return b.currentType===14?S:p(m,y,x,S)}function v(m){const b=BJ(m,T4({},e)),y=b.context(),x=o(0,y.offset,y.startLoc);return t&&x.loc&&(x.loc.source=m),x.body=g(b),e.onCacheKey&&(x.cacheKey=e.onCacheKey(m)),y.currentType!==14&&n(b,Ve.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,m[y.offset]||""),i(x,b.currentOffset(),b.currentPosition()),x}return{parse:v}}function Sn(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function MJ(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function Wx(e,t){for(let r=0;r<e.length;r++)xg(e[r],t)}function xg(e,t){switch(e.type){case 1:Wx(e.cases,t),t.helper("plural");break;case 2:Wx(e.items,t);break;case 6:xg(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function zJ(e,t={}){const r=MJ(e);r.helper("normalize"),e.body&&xg(e.body,r);const n=r.context();e.helpers=Array.from(n.helpers)}function NJ(e){const t=e.body;return t.type===2?Ux(t):t.cases.forEach(r=>Ux(r)),e}function Ux(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;r<e.items.length;r++){const n=e.items[r];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=A4(t);for(let r=0;r<e.items.length;r++){const n=e.items[r];(n.type===3||n.type===9)&&delete n.value}}}}const HJ="minifier";function Ki(e){switch(e.t=e.type,e.type){case 0:const t=e;Ki(t.body),t.b=t.body,delete t.body;break;case 1:const r=e,n=r.cases;for(let u=0;u<n.length;u++)Ki(n[u]);r.c=n,delete r.cases;break;case 2:const o=e,i=o.items;for(let u=0;u<i.length;u++)Ki(i[u]);o.i=i,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const a=e;a.value&&(a.v=a.value,delete a.value);break;case 6:const s=e;Ki(s.key),s.k=s.key,delete s.key,s.modifier&&(Ki(s.modifier),s.m=s.modifier,delete s.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const c=e;c.k=c.key,delete c.key;break;default:throw Ya(Ve.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:HJ,args:[e.type]})}delete e.type}const jJ="parser";function WJ(e,t){const{sourceMap:r,filename:n,breakLineCode:o,needIndent:i}=t,a=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;function c(v,m){s.code+=v}function u(v,m=!0){const b=m?o:"";c(i?b+" ".repeat(v):b)}function f(v=!0){const m=++s.indentLevel;v&&u(m)}function d(v=!0){const m=--s.indentLevel;v&&u(m)}function h(){u(s.indentLevel)}return{context:l,push:c,indent:f,deindent:d,newline:h,helper:v=>`_${v}`,needIndent:()=>s.needIndent}}function UJ(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),$a(e,t.key),t.modifier?(e.push(", "),$a(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function VJ(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const o=t.items.length;for(let i=0;i<o&&($a(e,t.items[i]),i!==o-1);i++)e.push(", ");e.deindent(n()),e.push("])")}function GJ(e,t){const{helper:r,needIndent:n}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(n());const o=t.cases.length;for(let i=0;i<o&&($a(e,t.cases[i]),i!==o-1);i++)e.push(", ");e.deindent(n()),e.push("])")}}function qJ(e,t){t.body?$a(e,t.body):e.push("null")}function $a(e,t){const{helper:r}=e;switch(t.type){case 0:qJ(e,t);break;case 1:GJ(e,t);break;case 2:VJ(e,t);break;case 6:UJ(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Ya(Ve.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:jJ,args:[t.type]})}}const YJ=(e,t={})=>{const r=Hx(t.mode)?t.mode:"normal",n=Hx(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
`,a=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=WJ(e,{mode:r,filename:n,sourceMap:o,breakLineCode:i,needIndent:a});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${A4(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),$a(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function KJ(e,t={}){const r=T4({},t),n=!!r.jit,o=!!r.minify,i=r.optimize==null?!0:r.optimize,s=FJ(r).parse(e);return n?(i&&NJ(s),o&&Ki(s),{ast:s,code:""}):(zJ(s,r),YJ(s,r))}/*!
* core-base v9.10.1
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/function XJ(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Gn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Gn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Gn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ho=[];Ho[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ho[1]={w:[1],".":[2],"[":[4],o:[7]};Ho[2]={w:[2],i:[3,0],0:[3,0]};Ho[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ho[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ho[5]={"'":[4,0],o:8,l:[5,0]};Ho[6]={'"':[4,0],o:8,l:[6,0]};const QJ=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ZJ(e){return QJ.test(e)}function JJ(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function eee(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function tee(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ZJ(t)?JJ(t):"*"+t}function ree(e){const t=[];let r=-1,n=0,o=0,i,a,s,l,c,u,f;const d=[];d[0]=()=>{a===void 0?a=s:a+=s},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,n=4,d[0]();else{if(o=0,a===void 0||(a=tee(a),a===!1))return!1;d[1]()}};function h(){const p=e[r+1];if(n===5&&p==="'"||n===6&&p==='"')return r++,s="\\"+p,d[0](),!0}for(;n!==null;)if(r++,i=e[r],!(i==="\\"&&h())){if(l=eee(i),f=Ho[n],c=f[l]||f.l||8,c===8||(n=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(s=i,u()===!1))))return;if(n===7)return t}}const Vx=new Map;function nee(e,t){return vt(e)?e[t]:null}function oee(e,t){if(!vt(e))return null;let r=Vx.get(t);if(r||(r=ree(t),r&&Vx.set(t,r)),!r)return null;const n=r.length;let o=e,i=0;for(;i<n;){const a=o[r[i]];if(a===void 0||Tt(o))return null;o=a,i++}return o}const iee=e=>e,aee=e=>"",see="text",lee=e=>e.length===0?"":xJ(e),cee=bJ;function Gx(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function uee(e){const t=ir(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ir(e.named.count)||ir(e.named.n))?ir(e.named.count)?e.named.count:ir(e.named.n)?e.named.n:t:t}function dee(e,t){t.count||(t.count=e),t.n||(t.n=e)}function fee(e={}){const t=e.locale,r=uee(e),n=vt(e.pluralRules)&&_e(t)&&Tt(e.pluralRules[t])?e.pluralRules[t]:Gx,o=vt(e.pluralRules)&&_e(t)&&Tt(e.pluralRules[t])?Gx:void 0,i=m=>m[n(r,m.length,o)],a=e.list||[],s=m=>a[m],l=e.named||{};ir(e.pluralIndex)&&dee(r,l);const c=m=>l[m];function u(m){const b=Tt(e.messages)?e.messages(m):vt(e.messages)?e.messages[m]:!1;return b||(e.parent?e.parent.message(m):aee)}const f=m=>e.modifiers?e.modifiers[m]:iee,d=Ke(e.processor)&&Tt(e.processor.normalize)?e.processor.normalize:lee,h=Ke(e.processor)&&Tt(e.processor.interpolate)?e.processor.interpolate:cee,p=Ke(e.processor)&&_e(e.processor.type)?e.processor.type:see,v={list:s,named:c,plural:i,linked:(m,...b)=>{const[y,x]=b;let S="text",C="";b.length===1?vt(y)?(C=y.modifier||C,S=y.type||S):_e(y)&&(C=y||C):b.length===2&&(_e(y)&&(C=y||C),_e(x)&&(S=x||S));const w=u(m)(v),k=S==="vnode"&&Ot(w)&&C?w[0]:w;return C?f(C)(k,S):k},message:u,type:p,interpolate:h,normalize:d,values:fr({},a,l)};return v}let ol=null;function hee(e){ol=e}function pee(e,t,r){ol&&ol.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const gee=mee("function:translate");function mee(e){return t=>ol&&ol.emit(e,t)}const vee={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},P4=Ve.__EXTEND_POINT__,Yo=bg(P4),pn={INVALID_ARGUMENT:P4,INVALID_DATE_ARGUMENT:Yo(),INVALID_ISO_DATE_ARGUMENT:Yo(),NOT_SUPPORT_NON_STRING_MESSAGE:Yo(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Yo(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Yo(),NOT_SUPPORT_LOCALE_TYPE:Yo(),__EXTEND_POINT__:Yo()};function In(e){return Ya(e,null,void 0)}function yg(e,t){return t.locale!=null?qx(t.locale):qx(e.locale)}let r0;function qx(e){if(_e(e))return e;if(Tt(e)){if(e.resolvedOnce&&r0!=null)return r0;if(e.constructor.name==="Function"){const t=e();if(vJ(t))throw In(pn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return r0=t}else throw In(pn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw In(pn.NOT_SUPPORT_LOCALE_TYPE)}function bee(e,t,r){return[...new Set([r,...Ot(t)?t:vt(t)?Object.keys(t):_e(t)?[t]:[r]])]}function $4(e,t,r){const n=_e(r)?r:Ia,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(n);if(!i){i=[];let a=[r];for(;Ot(a);)a=Yx(i,a,t);const s=Ot(t)||!Ke(t)?t:t.default?t.default:null;a=_e(s)?[s]:s,Ot(a)&&Yx(i,a,!1),o.__localeChainCache.set(n,i)}return i}function Yx(e,t,r){let n=!0;for(let o=0;o<t.length&&nt(n);o++){const i=t[o];_e(i)&&(n=xee(e,t[o],r))}return n}function xee(e,t,r){let n;const o=t.split("-");do{const i=o.join("-");n=yee(e,i,r),o.splice(-1,1)}while(o.length&&n===!0);return n}function yee(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(Ot(r)||Ke(r))&&r[o]&&(n=r[o])}return n}const Cee="9.10.1",Cd=-1,Ia="en-US",Kx="",Xx=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function wee(){return{upper:(e,t)=>t==="text"&&_e(e)?e.toUpperCase():t==="vnode"&&vt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&_e(e)?e.toLowerCase():t==="vnode"&&vt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&_e(e)?Xx(e):t==="vnode"&&vt(e)&&"__v_isVNode"in e?Xx(e.children):e}}let I4;function Qx(e){I4=e}let D4;function See(e){D4=e}let B4;function _ee(e){B4=e}let O4=null;const Eee=e=>{O4=e},kee=()=>O4;let L4=null;const Zx=e=>{L4=e},Tee=()=>L4;let Jx=0;function Aee(e={}){const t=Tt(e.onWarn)?e.onWarn:yJ,r=_e(e.version)?e.version:Cee,n=_e(e.locale)||Tt(e.locale)?e.locale:Ia,o=Tt(n)?Ia:n,i=Ot(e.fallbackLocale)||Ke(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,a=Ke(e.messages)?e.messages:{[o]:{}},s=Ke(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Ke(e.numberFormats)?e.numberFormats:{[o]:{}},c=fr({},e.modifiers||{},wee()),u=e.pluralRules||{},f=Tt(e.missing)?e.missing:null,d=nt(e.missingWarn)||Do(e.missingWarn)?e.missingWarn:!0,h=nt(e.fallbackWarn)||Do(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,v=Tt(e.postTranslation)?e.postTranslation:null,m=Ke(e.processor)?e.processor:null,b=nt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,x=Tt(e.messageCompiler)?e.messageCompiler:I4,S=Tt(e.messageResolver)?e.messageResolver:D4||nee,C=Tt(e.localeFallbacker)?e.localeFallbacker:B4||bee,w=vt(e.fallbackContext)?e.fallbackContext:void 0,k=e,A=vt(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,T=vt(k.__numberFormatters)?k.__numberFormatters:new Map,I=vt(k.__meta)?k.__meta:{};Jx++;const D={version:r,cid:Jx,locale:n,fallbackLocale:i,messages:a,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:v,processor:m,warnHtmlMessage:b,escapeParameter:y,messageCompiler:x,messageResolver:S,localeFallbacker:C,fallbackContext:w,onWarn:t,__meta:I};return D.datetimeFormats=s,D.numberFormats=l,D.__datetimeFormatters=A,D.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&pee(D,r,I),D}function Cg(e,t,r,n,o){const{missing:i,onWarn:a}=e;if(i!==null){const s=i(e,r,t,o);return _e(s)?s:t}else return t}function as(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function n0(e){return r=>Pee(r,e)}function Pee(e,t){const r=t.b||t.body;if((r.t||r.type)===1){const n=r,o=n.c||n.cases;return e.plural(o.reduce((i,a)=>[...i,ey(e,a)],[]))}else return ey(e,r)}function ey(e,t){const r=t.s||t.static;if(r)return e.type==="text"?r:e.normalize([r]);{const n=(t.i||t.items).reduce((o,i)=>[...o,vh(e,i)],[]);return e.normalize(n)}}function vh(e,t){const r=t.t||t.type;switch(r){case 3:const n=t;return n.v||n.value;case 9:const o=t;return o.v||o.value;case 4:const i=t;return e.interpolate(e.named(i.k||i.key));case 5:const a=t;return e.interpolate(e.list(a.i!=null?a.i:a.index));case 6:const s=t,l=s.m||s.modifier;return e.linked(vh(e,s.k||s.key),l?vh(e,l):void 0,e.type);case 7:const c=t;return c.v||c.value;case 8:const u=t;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${r}`)}}const R4=e=>e;let ta=Object.create(null);const Da=e=>vt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function F4(e,t={}){let r=!1;const n=t.onError||kJ;return t.onError=o=>{r=!0,n(o)},{...KJ(e,t),detectError:r}}const $ee=(e,t)=>{if(!_e(e))throw In(pn.NOT_SUPPORT_NON_STRING_MESSAGE);{nt(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||R4)(e),o=ta[n];if(o)return o;const{code:i,detectError:a}=F4(e,t),s=new Function(`return ${i}`)();return a?s:ta[n]=s}};function Iee(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&_e(e)){nt(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||R4)(e),o=ta[n];if(o)return o;const{ast:i,detectError:a}=F4(e,{...t,location:!1,jit:!0}),s=n0(i);return a?s:ta[n]=s}else{const r=e.cacheKey;if(r){const n=ta[r];return n||(ta[r]=n0(e))}else return n0(e)}}const ty=()=>"",Kr=e=>Tt(e);function ry(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:o,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,c]=bh(...t),u=nt(c.missingWarn)?c.missingWarn:e.missingWarn,f=nt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=nt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,p=_e(c.default)||nt(c.default)?nt(c.default)?i?l:()=>l:c.default:r?i?l:()=>l:"",g=r||p!=="",v=yg(e,c);d&&Dee(c);let[m,b,y]=h?[l,v,s[v]||{}]:M4(e,l,v,a,f,u),x=m,S=l;if(!h&&!(_e(x)||Da(x)||Kr(x))&&g&&(x=p,S=x),!h&&(!(_e(x)||Da(x)||Kr(x))||!_e(b)))return o?Cd:l;let C=!1;const w=()=>{C=!0},k=Kr(x)?x:z4(e,l,b,x,S,w);if(C)return x;const A=Lee(e,b,y,c),T=fee(A),I=Bee(e,k,T),D=n?n(I,l):I;if(__INTLIFY_PROD_DEVTOOLS__){const B={timestamp:Date.now(),key:_e(l)?l:Kr(x)?x.key:"",locale:b||(Kr(x)?x.locale:""),format:_e(x)?x:Kr(x)?x.source:"",message:D};B.meta=fr({},e.__meta,kee()||{}),gee(B)}return D}function Dee(e){Ot(e.list)?e.list=e.list.map(t=>_e(t)?Nx(t):t):vt(e.named)&&Object.keys(e.named).forEach(t=>{_e(e.named[t])&&(e.named[t]=Nx(e.named[t]))})}function M4(e,t,r,n,o,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,u=c(e,n,r);let f={},d,h=null;const p="translate";for(let g=0;g<u.length&&(d=u[g],f=a[d]||{},(h=l(f,t))===null&&(h=f[t]),!(_e(h)||Da(h)||Kr(h)));g++){const v=Cg(e,t,d,i,p);v!==t&&(h=v)}return[h,d,f]}function z4(e,t,r,n,o,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Kr(n)){const c=n;return c.locale=c.locale||r,c.key=c.key||t,c}if(a==null){const c=()=>n;return c.locale=r,c.key=t,c}const l=a(n,Oee(e,r,o,n,s,i));return l.locale=r,l.key=t,l.source=n,l}function Bee(e,t,r){return t(r)}function bh(...e){const[t,r,n]=e,o={};if(!_e(t)&&!ir(t)&&!Kr(t)&&!Da(t))throw In(pn.INVALID_ARGUMENT);const i=ir(t)?String(t):(Kr(t),t);return ir(r)?o.plural=r:_e(r)?o.default=r:Ke(r)&&!yd(r)?o.named=r:Ot(r)&&(o.list=r),ir(n)?o.plural=n:_e(n)?o.default=n:Ke(n)&&fr(o,n),[i,o]}function Oee(e,t,r,n,o,i){return{locale:t,key:r,warnHtmlMessage:o,onError:a=>{throw i&&i(a),a},onCacheKey:a=>hJ(t,r,a)}}function Lee(e,t,r,n){const{modifiers:o,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d={locale:t,modifiers:o,pluralRules:i,messages:h=>{let p=a(r,h);if(p==null&&u){const[,,g]=M4(u,h,t,s,l,c);p=a(g,h)}if(_e(p)||Da(p)){let g=!1;const m=z4(e,h,t,p,h,()=>{g=!0});return g?ty:m}else return Kr(p)?p:ty}};return e.processor&&(d.processor=e.processor),n.list&&(d.list=n.list),n.named&&(d.named=n.named),ir(n.plural)&&(d.pluralIndex=n.plural),d}function ny(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,c,u,f]=xh(...t),d=nt(u.missingWarn)?u.missingWarn:e.missingWarn;nt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=yg(e,u),g=a(e,o,p);if(!_e(l)||l==="")return new Intl.DateTimeFormat(p,f).format(c);let v={},m,b=null;const y="datetime format";for(let C=0;C<g.length&&(m=g[C],v=r[m]||{},b=v[l],!Ke(b));C++)Cg(e,l,m,d,y);if(!Ke(b)||!_e(m))return n?Cd:l;let x=`${m}__${l}`;yd(f)||(x=`${x}__${JSON.stringify(f)}`);let S=s.get(x);return S||(S=new Intl.DateTimeFormat(m,fr({},b,f)),s.set(x,S)),h?S.formatToParts(c):S.format(c)}const N4=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function xh(...e){const[t,r,n,o]=e,i={};let a={},s;if(_e(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw In(pn.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(c);try{s.toISOString()}catch{throw In(pn.INVALID_ISO_DATE_ARGUMENT)}}else if(gJ(t)){if(isNaN(t.getTime()))throw In(pn.INVALID_DATE_ARGUMENT);s=t}else if(ir(t))s=t;else throw In(pn.INVALID_ARGUMENT);return _e(r)?i.key=r:Ke(r)&&Object.keys(r).forEach(l=>{N4.includes(l)?a[l]=r[l]:i[l]=r[l]}),_e(n)?i.locale=n:Ke(n)&&(a=n),Ke(o)&&(a=o),[i.key||"",s,i,a]}function oy(e,t,r){const n=e;for(const o in r){const i=`${t}__${o}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function iy(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,c,u,f]=yh(...t),d=nt(u.missingWarn)?u.missingWarn:e.missingWarn;nt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=yg(e,u),g=a(e,o,p);if(!_e(l)||l==="")return new Intl.NumberFormat(p,f).format(c);let v={},m,b=null;const y="number format";for(let C=0;C<g.length&&(m=g[C],v=r[m]||{},b=v[l],!Ke(b));C++)Cg(e,l,m,d,y);if(!Ke(b)||!_e(m))return n?Cd:l;let x=`${m}__${l}`;yd(f)||(x=`${x}__${JSON.stringify(f)}`);let S=s.get(x);return S||(S=new Intl.NumberFormat(m,fr({},b,f)),s.set(x,S)),h?S.formatToParts(c):S.format(c)}const H4=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function yh(...e){const[t,r,n,o]=e,i={};let a={};if(!ir(t))throw In(pn.INVALID_ARGUMENT);const s=t;return _e(r)?i.key=r:Ke(r)&&Object.keys(r).forEach(l=>{H4.includes(l)?a[l]=r[l]:i[l]=r[l]}),_e(n)?i.locale=n:Ke(n)&&(a=n),Ke(o)&&(a=o),[i.key||"",s,i,a]}function ay(e,t,r){const n=e;for(const o in r){const i=`${t}__${o}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}XJ();/*!
* vue-i18n v9.10.1
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/const Ree="9.10.1";function Fee(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Gn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Gn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Gn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Gn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Gn().__INTLIFY_PROD_DEVTOOLS__=!1)}const j4=vee.__EXTEND_POINT__,Un=bg(j4);Un(),Un(),Un(),Un(),Un(),Un(),Un(),Un(),Un();const W4=pn.__EXTEND_POINT__,Pr=bg(W4),sr={UNEXPECTED_RETURN_TYPE:W4,INVALID_ARGUMENT:Pr(),MUST_BE_CALL_SETUP_TOP:Pr(),NOT_INSTALLED:Pr(),NOT_AVAILABLE_IN_LEGACY_MODE:Pr(),REQUIRED_VALUE:Pr(),INVALID_VALUE:Pr(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Pr(),NOT_INSTALLED_WITH_PROVIDE:Pr(),UNEXPECTED_ERROR:Pr(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Pr(),BRIDGE_SUPPORT_VUE_2_ONLY:Pr(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Pr(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Pr(),__EXTEND_POINT__:Pr()};function cr(e,...t){return Ya(e,null,void 0)}const Ch=No("__translateVNode"),wh=No("__datetimeParts"),Sh=No("__numberParts"),U4=No("__setPluralRules"),V4=No("__injectWithOption"),_h=No("__dispose");function il(e){if(!vt(e))return e;for(const t in e)if(pu(e,t))if(!t.includes("."))vt(e[t])&&il(e[t]);else{const r=t.split("."),n=r.length-1;let o=e,i=!1;for(let a=0;a<n;a++){if(r[a]in o||(o[r[a]]={}),!vt(o[r[a]])){i=!0;break}o=o[r[a]]}i||(o[r[n]]=e[t],delete e[t]),vt(o[r[n]])&&il(o[r[n]])}return e}function wd(e,t){const{messages:r,__i18n:n,messageResolver:o,flatJson:i}=t,a=Ke(r)?r:Ot(n)?{}:{[e]:{}};if(Ot(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||{},Rc(c,a[l])):Rc(c,a)}else _e(s)&&Rc(JSON.parse(s),a)}),o==null&&i)for(const s in a)pu(a,s)&&il(a[s]);return a}function G4(e){return e.type}function q4(e,t,r){let n=vt(t.messages)?t.messages:{};"__i18nGlobal"in r&&(n=wd(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const o=Object.keys(n);o.length&&o.forEach(i=>{e.mergeLocaleMessage(i,n[i])});{if(vt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(vt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function sy(e){return me(Ma,null,e,0)}const ly="__INTLIFY_META__",cy=()=>[],Mee=()=>!1;let uy=0;function dy(e){return(t,r,n,o)=>e(r,n,Er()||void 0,o)}const zee=()=>{const e=Er();let t=null;return e&&(t=G4(e)[ly])?{[ly]:t}:null};function wg(e={},t){const{__root:r,__injectWithOption:n}=e,o=r===void 0,i=e.flatJson,a=hu?M:Xn,s=!!e.translateExistCompatible;let l=nt(e.inheritLocale)?e.inheritLocale:!0;const c=a(r&&l?r.locale.value:_e(e.locale)?e.locale:Ia),u=a(r&&l?r.fallbackLocale.value:_e(e.fallbackLocale)||Ot(e.fallbackLocale)||Ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),f=a(wd(c.value,e)),d=a(Ke(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=a(Ke(e.numberFormats)?e.numberFormats:{[c.value]:{}});let p=r?r.missingWarn:nt(e.missingWarn)||Do(e.missingWarn)?e.missingWarn:!0,g=r?r.fallbackWarn:nt(e.fallbackWarn)||Do(e.fallbackWarn)?e.fallbackWarn:!0,v=r?r.fallbackRoot:nt(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,b=Tt(e.missing)?e.missing:null,y=Tt(e.missing)?dy(e.missing):null,x=Tt(e.postTranslation)?e.postTranslation:null,S=r?r.warnHtmlMessage:nt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter;const w=r?r.modifiers:Ke(e.modifiers)?e.modifiers:{};let k=e.pluralRules||r&&r.pluralRules,A;A=(()=>{o&&Zx(null);const W={version:Ree,locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:w,pluralRules:k,missing:y===null?void 0:y,missingWarn:p,fallbackWarn:g,fallbackFormat:m,unresolving:!0,postTranslation:x===null?void 0:x,warnHtmlMessage:S,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};W.datetimeFormats=d.value,W.numberFormats=h.value,W.__datetimeFormatters=Ke(A)?A.__datetimeFormatters:void 0,W.__numberFormatters=Ke(A)?A.__numberFormatters:void 0;const J=Aee(W);return o&&Zx(J),J})(),as(A,c.value,u.value);function I(){return[c.value,u.value,f.value,d.value,h.value]}const D=R({get:()=>c.value,set:W=>{c.value=W,A.locale=c.value}}),B=R({get:()=>u.value,set:W=>{u.value=W,A.fallbackLocale=u.value,as(A,c.value,W)}}),j=R(()=>f.value),F=R(()=>d.value),z=R(()=>h.value);function V(){return Tt(x)?x:null}function oe(W){x=W,A.postTranslation=W}function fe(){return b}function ge(W){W!==null&&(y=dy(W)),b=W,A.missing=y}const U=(W,J,Oe,He,st,yt)=>{I();let Gt;try{__INTLIFY_PROD_DEVTOOLS__,o||(A.fallbackContext=r?Tee():void 0),Gt=W(A)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(A.fallbackContext=void 0)}if(Oe!=="translate exists"&&ir(Gt)&&Gt===Cd||Oe==="translate exists"&&!Gt){const[Nn,hr]=J();return r&&v?He(r):st(Nn)}else{if(yt(Gt))return Gt;throw cr(sr.UNEXPECTED_RETURN_TYPE)}};function X(...W){return U(J=>Reflect.apply(ry,null,[J,...W]),()=>bh(...W),"translate",J=>Reflect.apply(J.t,J,[...W]),J=>J,J=>_e(J))}function ae(...W){const[J,Oe,He]=W;if(He&&!vt(He))throw cr(sr.INVALID_ARGUMENT);return X(J,Oe,fr({resolvedMessage:!0},He||{}))}function Z(...W){return U(J=>Reflect.apply(ny,null,[J,...W]),()=>xh(...W),"datetime format",J=>Reflect.apply(J.d,J,[...W]),()=>Kx,J=>_e(J))}function Be(...W){return U(J=>Reflect.apply(iy,null,[J,...W]),()=>yh(...W),"number format",J=>Reflect.apply(J.n,J,[...W]),()=>Kx,J=>_e(J))}function ye(W){return W.map(J=>_e(J)||ir(J)||nt(J)?sy(String(J)):J)}const te={normalize:ye,interpolate:W=>W,type:"vnode"};function ie(...W){return U(J=>{let Oe;const He=J;try{He.processor=te,Oe=Reflect.apply(ry,null,[He,...W])}finally{He.processor=null}return Oe},()=>bh(...W),"translate",J=>J[Ch](...W),J=>[sy(J)],J=>Ot(J))}function ve(...W){return U(J=>Reflect.apply(iy,null,[J,...W]),()=>yh(...W),"number format",J=>J[Sh](...W),cy,J=>_e(J)||Ot(J))}function Le(...W){return U(J=>Reflect.apply(ny,null,[J,...W]),()=>xh(...W),"datetime format",J=>J[wh](...W),cy,J=>_e(J)||Ot(J))}function $e(W){k=W,A.pluralRules=k}function _(W,J){return U(()=>{if(!W)return!1;const Oe=_e(J)?J:c.value,He=O(Oe),st=A.messageResolver(He,W);return s?st!=null:Da(st)||Kr(st)||_e(st)},()=>[W],"translate exists",Oe=>Reflect.apply(Oe.te,Oe,[W,J]),Mee,Oe=>nt(Oe))}function E(W){let J=null;const Oe=$4(A,u.value,c.value);for(let He=0;He<Oe.length;He++){const st=f.value[Oe[He]]||{},yt=A.messageResolver(st,W);if(yt!=null){J=yt;break}}return J}function P(W){const J=E(W);return J??(r?r.tm(W)||{}:{})}function O(W){return f.value[W]||{}}function L(W,J){if(i){const Oe={[W]:J};for(const He in Oe)pu(Oe,He)&&il(Oe[He]);J=Oe[W]}f.value[W]=J,A.messages=f.value}function G(W,J){f.value[W]=f.value[W]||{};const Oe={[W]:J};if(i)for(const He in Oe)pu(Oe,He)&&il(Oe[He]);J=Oe[W],Rc(J,f.value[W]),A.messages=f.value}function K(W){return d.value[W]||{}}function H(W,J){d.value[W]=J,A.datetimeFormats=d.value,oy(A,W,J)}function ee(W,J){d.value[W]=fr(d.value[W]||{},J),A.datetimeFormats=d.value,oy(A,W,J)}function Q(W){return h.value[W]||{}}function Ce(W,J){h.value[W]=J,A.numberFormats=h.value,ay(A,W,J)}function Te(W,J){h.value[W]=fr(h.value[W]||{},J),A.numberFormats=h.value,ay(A,W,J)}uy++,r&&hu&&(Je(r.locale,W=>{l&&(c.value=W,A.locale=W,as(A,c.value,u.value))}),Je(r.fallbackLocale,W=>{l&&(u.value=W,A.fallbackLocale=W,as(A,c.value,u.value))}));const Se={id:uy,locale:D,fallbackLocale:B,get inheritLocale(){return l},set inheritLocale(W){l=W,W&&r&&(c.value=r.locale.value,u.value=r.fallbackLocale.value,as(A,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:j,get modifiers(){return w},get pluralRules(){return k||{}},get isGlobal(){return o},get missingWarn(){return p},set missingWarn(W){p=W,A.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(W){g=W,A.fallbackWarn=g},get fallbackRoot(){return v},set fallbackRoot(W){v=W},get fallbackFormat(){return m},set fallbackFormat(W){m=W,A.fallbackFormat=m},get warnHtmlMessage(){return S},set warnHtmlMessage(W){S=W,A.warnHtmlMessage=W},get escapeParameter(){return C},set escapeParameter(W){C=W,A.escapeParameter=W},t:X,getLocaleMessage:O,setLocaleMessage:L,mergeLocaleMessage:G,getPostTranslationHandler:V,setPostTranslationHandler:oe,getMissingHandler:fe,setMissingHandler:ge,[U4]:$e};return Se.datetimeFormats=F,Se.numberFormats=z,Se.rt=ae,Se.te=_,Se.tm=P,Se.d=Z,Se.n=Be,Se.getDateTimeFormat=K,Se.setDateTimeFormat=H,Se.mergeDateTimeFormat=ee,Se.getNumberFormat=Q,Se.setNumberFormat=Ce,Se.mergeNumberFormat=Te,Se[V4]=n,Se[Ch]=ie,Se[wh]=Le,Se[Sh]=ve,Se}function Nee(e){const t=_e(e.locale)?e.locale:Ia,r=_e(e.fallbackLocale)||Ot(e.fallbackLocale)||Ke(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=Tt(e.missing)?e.missing:void 0,o=nt(e.silentTranslationWarn)||Do(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=nt(e.silentFallbackWarn)||Do(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=nt(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Ke(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Tt(e.postTranslation)?e.postTranslation:void 0,f=_e(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,h=nt(e.sync)?e.sync:!0;let p=e.messages;if(Ke(e.sharedMessages)){const C=e.sharedMessages;p=Object.keys(C).reduce((k,A)=>{const T=k[A]||(k[A]={});return fr(T,C[A]),k},p||{})}const{__i18n:g,__root:v,__injectWithOption:m}=e,b=e.datetimeFormats,y=e.numberFormats,x=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:r,messages:p,flatJson:x,datetimeFormats:b,numberFormats:y,missing:n,missingWarn:o,fallbackWarn:i,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:h,translateExistCompatible:S,__i18n:g,__root:v,__injectWithOption:m}}function Eh(e={},t){{const r=wg(Nee(e)),{__extender:n}=e,o={id:r.id,get locale(){return r.locale.value},set locale(i){r.locale.value=i},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(i){r.fallbackLocale.value=i},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return r.getMissingHandler()},set missing(i){r.setMissingHandler(i)},get silentTranslationWarn(){return nt(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(i){r.missingWarn=nt(i)?!i:i},get silentFallbackWarn(){return nt(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(i){r.fallbackWarn=nt(i)?!i:i},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(i){r.fallbackFormat=i},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(i){r.setPostTranslationHandler(i)},get sync(){return r.inheritLocale},set sync(i){r.inheritLocale=i},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){r.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(i){r.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...i){const[a,s,l]=i,c={};let u=null,f=null;if(!_e(a))throw cr(sr.INVALID_ARGUMENT);const d=a;return _e(s)?c.locale=s:Ot(s)?u=s:Ke(s)&&(f=s),Ot(l)?u=l:Ke(l)&&(f=l),Reflect.apply(r.t,r,[d,u||f||{},c])},rt(...i){return Reflect.apply(r.rt,r,[...i])},tc(...i){const[a,s,l]=i,c={plural:1};let u=null,f=null;if(!_e(a))throw cr(sr.INVALID_ARGUMENT);const d=a;return _e(s)?c.locale=s:ir(s)?c.plural=s:Ot(s)?u=s:Ke(s)&&(f=s),_e(l)?c.locale=l:Ot(l)?u=l:Ke(l)&&(f=l),Reflect.apply(r.t,r,[d,u||f||{},c])},te(i,a){return r.te(i,a)},tm(i){return r.tm(i)},getLocaleMessage(i){return r.getLocaleMessage(i)},setLocaleMessage(i,a){r.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){r.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(r.d,r,[...i])},getDateTimeFormat(i){return r.getDateTimeFormat(i)},setDateTimeFormat(i,a){r.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){r.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(r.n,r,[...i])},getNumberFormat(i){return r.getNumberFormat(i)},setNumberFormat(i,a){r.setNumberFormat(i,a)},mergeNumberFormat(i,a){r.mergeNumberFormat(i,a)},getChoiceIndex(i,a){return-1}};return o.__extender=n,o}}const Sg={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Hee({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,o)=>[...n,...o.type===ot?o.children:[o]],[]):t.reduce((r,n)=>{const o=e[n];return o&&(r[n]=o()),r},{})}function Y4(e){return ot}const jee=pe({name:"i18n-t",props:fr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ir(e)||!isNaN(e)}},Sg),setup(e,t){const{slots:r,attrs:n}=t,o=e.i18n||Sd({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(f=>f!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=_e(e.plural)?+e.plural:e.plural);const s=Hee(t,i),l=o[Ch](e.keypath,s,a),c=fr({},n),u=_e(e.tag)||vt(e.tag)?e.tag:Y4();return $(u,c,l)}}}),fy=jee;function Wee(e){return Ot(e)&&!_e(e[0])}function K4(e,t,r,n){const{slots:o,attrs:i}=t;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),_e(e.format)?a.key=e.format:vt(e.format)&&(_e(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((d,h)=>r.includes(h)?fr({},d,{[h]:e.format[h]}):d,{}));const l=n(e.value,a,s);let c=[a.key];Ot(l)?c=l.map((d,h)=>{const p=o[d.type],g=p?p({[d.type]:d.value,index:h,parts:l}):[d.value];return Wee(g)&&(g[0].key=`${d.type}-${h}`),g}):_e(l)&&(c=[l]);const u=fr({},i),f=_e(e.tag)||vt(e.tag)?e.tag:Y4();return $(f,u,c)}}const Uee=pe({name:"i18n-n",props:fr({value:{type:Number,required:!0},format:{type:[String,Object]}},Sg),setup(e,t){const r=e.i18n||Sd({useScope:"parent",__useComponent:!0});return K4(e,t,H4,(...n)=>r[Sh](...n))}}),hy=Uee,Vee=pe({name:"i18n-d",props:fr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Sg),setup(e,t){const r=e.i18n||Sd({useScope:"parent",__useComponent:!0});return K4(e,t,N4,(...n)=>r[wh](...n))}}),py=Vee;function Gee(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function qee(e){const t=a=>{const{instance:s,modifiers:l,value:c}=a;if(!s||!s.$)throw cr(sr.UNEXPECTED_ERROR);const u=Gee(e,s.$),f=gy(c);return[Reflect.apply(u.t,u,[...my(f)]),u]};return{created:(a,s)=>{const[l,c]=t(s);hu&&e.global===c&&(a.__i18nWatcher=Je(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{hu&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,c=gy(s);a.textContent=Reflect.apply(l.t,l,[...my(c)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function gy(e){if(_e(e))return{path:e};if(Ke(e)){if(!("path"in e))throw cr(sr.REQUIRED_VALUE,"path");return e}else throw cr(sr.INVALID_VALUE)}function my(e){const{path:t,locale:r,args:n,choice:o,plural:i}=e,a={},s=n||{};return _e(r)&&(a.locale=r),ir(o)&&(a.plural=o),ir(i)&&(a.plural=i),[t,s,a]}function Yee(e,t,...r){const n=Ke(r[0])?r[0]:{},o=!!n.useI18nComponentName;(nt(n.globalInstall)?n.globalInstall:!0)&&([o?"i18n":fy.name,"I18nT"].forEach(a=>e.component(a,fy)),[hy.name,"I18nN"].forEach(a=>e.component(a,hy)),[py.name,"I18nD"].forEach(a=>e.component(a,py))),e.directive("t",qee(t))}function Kee(e,t,r){return{beforeCreate(){const n=Er();if(!n)throw cr(sr.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const i=o.i18n;if(o.__i18n&&(i.__i18n=o.__i18n),i.__root=t,this===this.$root)this.$i18n=vy(e,i);else{i.__injectWithOption=!0,i.__extender=r.__vueI18nExtend,this.$i18n=Eh(i);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=vy(e,o);else{this.$i18n=Eh({__i18n:o.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&q4(t,o,o),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,a)=>this.$i18n.te(i,a),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),r.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=Er();if(!n)throw cr(sr.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),r.__deleteInstance(n),delete this.$i18n}}}function vy(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[U4](t.pluralizationRules||e.pluralizationRules);const r=wd(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const Xee=No("global-vue-i18n");function Qee(e={},t){const r=__VUE_I18N_LEGACY_API__&&nt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=nt(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&r?!!e.allowComposition:!0,i=new Map,[a,s]=Zee(e,r),l=No("");function c(d){return i.get(d)||null}function u(d,h){i.set(d,h)}function f(d){i.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return o},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,d),Ke(p[0])){const m=p[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let g=null;!r&&n&&(g=ste(h,d.global)),__VUE_I18N_FULL_INSTALL__&&Yee(h,d,...p),__VUE_I18N_LEGACY_API__&&r&&h.mixin(Kee(s,s.__composer,d));const v=h.unmount;h.unmount=()=>{g&&g(),d.dispose(),v()}},get global(){return s},dispose(){a.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:f};return d}}function Sd(e={}){const t=Er();if(t==null)throw cr(sr.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw cr(sr.NOT_INSTALLED);const r=Jee(t),n=tte(r),o=G4(t),i=ete(e,o);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!e.__useComponent){if(!r.allowComposition)throw cr(sr.NOT_AVAILABLE_IN_LEGACY_MODE);return ite(t,i,n,e)}if(i==="global")return q4(n,e,o),n;if(i==="parent"){let l=rte(r,t,e.__useComponent);return l==null&&(l=n),l}const a=r;let s=a.__getInstance(t);if(s==null){const l=fr({},e);"__i18n"in o&&(l.__i18n=o.__i18n),n&&(l.__root=n),s=wg(l),a.__composerExtend&&(s[_h]=a.__composerExtend(s)),ote(a,t,s),a.__setInstance(t,s)}return s}function Zee(e,t,r){const n=Uh();{const o=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Eh(e)):n.run(()=>wg(e));if(o==null)throw cr(sr.UNEXPECTED_ERROR);return[n,o]}}function Jee(e){{const t=ze(e.isCE?Xee:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw cr(e.isCE?sr.NOT_INSTALLED_WITH_PROVIDE:sr.UNEXPECTED_ERROR);return t}}function ete(e,t){return yd(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function tte(e){return e.mode==="composition"?e.global:e.global.__composer}function rte(e,t,r=!1){let n=null;const o=t.root;let i=nte(t,r);for(;i!=null;){const a=e;if(e.mode==="composition")n=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(n=s.__composer,r&&n&&!n[V4]&&(n=null))}if(n!=null||o===i)break;i=i.parent}return n}function nte(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function ote(e,t,r){_t(()=>{},t),wi(()=>{const n=r;e.__deleteInstance(t);const o=n[_h];o&&(o(),delete n[_h])},t)}function ite(e,t,r,n={}){const o=t==="local",i=Xn(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw cr(sr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=nt(n.inheritLocale)?n.inheritLocale:!_e(n.locale),s=M(!o||a?r.locale.value:_e(n.locale)?n.locale:Ia),l=M(!o||a?r.fallbackLocale.value:_e(n.fallbackLocale)||Ot(n.fallbackLocale)||Ke(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),c=M(wd(s.value,n)),u=M(Ke(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),f=M(Ke(n.numberFormats)?n.numberFormats:{[s.value]:{}}),d=o?r.missingWarn:nt(n.missingWarn)||Do(n.missingWarn)?n.missingWarn:!0,h=o?r.fallbackWarn:nt(n.fallbackWarn)||Do(n.fallbackWarn)?n.fallbackWarn:!0,p=o?r.fallbackRoot:nt(n.fallbackRoot)?n.fallbackRoot:!0,g=!!n.fallbackFormat,v=Tt(n.missing)?n.missing:null,m=Tt(n.postTranslation)?n.postTranslation:null,b=o?r.warnHtmlMessage:nt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,y=!!n.escapeParameter,x=o?r.modifiers:Ke(n.modifiers)?n.modifiers:{},S=n.pluralRules||o&&r.pluralRules;function C(){return[s.value,l.value,c.value,u.value,f.value]}const w=R({get:()=>i.value?i.value.locale.value:s.value,set:E=>{i.value&&(i.value.locale.value=E),s.value=E}}),k=R({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:E=>{i.value&&(i.value.fallbackLocale.value=E),l.value=E}}),A=R(()=>i.value?i.value.messages.value:c.value),T=R(()=>u.value),I=R(()=>f.value);function D(){return i.value?i.value.getPostTranslationHandler():m}function B(E){i.value&&i.value.setPostTranslationHandler(E)}function j(){return i.value?i.value.getMissingHandler():v}function F(E){i.value&&i.value.setMissingHandler(E)}function z(E){return C(),E()}function V(...E){return i.value?z(()=>Reflect.apply(i.value.t,null,[...E])):z(()=>"")}function oe(...E){return i.value?Reflect.apply(i.value.rt,null,[...E]):""}function fe(...E){return i.value?z(()=>Reflect.apply(i.value.d,null,[...E])):z(()=>"")}function ge(...E){return i.value?z(()=>Reflect.apply(i.value.n,null,[...E])):z(()=>"")}function U(E){return i.value?i.value.tm(E):{}}function X(E,P){return i.value?i.value.te(E,P):!1}function ae(E){return i.value?i.value.getLocaleMessage(E):{}}function Z(E,P){i.value&&(i.value.setLocaleMessage(E,P),c.value[E]=P)}function Be(E,P){i.value&&i.value.mergeLocaleMessage(E,P)}function ye(E){return i.value?i.value.getDateTimeFormat(E):{}}function q(E,P){i.value&&(i.value.setDateTimeFormat(E,P),u.value[E]=P)}function te(E,P){i.value&&i.value.mergeDateTimeFormat(E,P)}function ie(E){return i.value?i.value.getNumberFormat(E):{}}function ve(E,P){i.value&&(i.value.setNumberFormat(E,P),f.value[E]=P)}function Le(E,P){i.value&&i.value.mergeNumberFormat(E,P)}const $e={get id(){return i.value?i.value.id:-1},locale:w,fallbackLocale:k,messages:A,datetimeFormats:T,numberFormats:I,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(E){i.value&&(i.value.inheritLocale=E)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:x},get pluralRules(){return i.value?i.value.pluralRules:S},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:d},set missingWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(E){i.value&&(i.value.missingWarn=E)},get fallbackRoot(){return i.value?i.value.fallbackRoot:p},set fallbackRoot(E){i.value&&(i.value.fallbackRoot=E)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(E){i.value&&(i.value.fallbackFormat=E)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:b},set warnHtmlMessage(E){i.value&&(i.value.warnHtmlMessage=E)},get escapeParameter(){return i.value?i.value.escapeParameter:y},set escapeParameter(E){i.value&&(i.value.escapeParameter=E)},t:V,getPostTranslationHandler:D,setPostTranslationHandler:B,getMissingHandler:j,setMissingHandler:F,rt:oe,d:fe,n:ge,tm:U,te:X,getLocaleMessage:ae,setLocaleMessage:Z,mergeLocaleMessage:Be,getDateTimeFormat:ye,setDateTimeFormat:q,mergeDateTimeFormat:te,getNumberFormat:ie,setNumberFormat:ve,mergeNumberFormat:Le};function _(E){E.locale.value=s.value,E.fallbackLocale.value=l.value,Object.keys(c.value).forEach(P=>{E.mergeLocaleMessage(P,c.value[P])}),Object.keys(u.value).forEach(P=>{E.mergeDateTimeFormat(P,u.value[P])}),Object.keys(f.value).forEach(P=>{E.mergeNumberFormat(P,f.value[P])}),E.escapeParameter=y,E.fallbackFormat=g,E.fallbackRoot=p,E.fallbackWarn=h,E.missingWarn=d,E.warnHtmlMessage=b}return bn(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw cr(sr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const E=i.value=e.proxy.$i18n.__composer;t==="global"?(s.value=E.locale.value,l.value=E.fallbackLocale.value,c.value=E.messages.value,u.value=E.datetimeFormats.value,f.value=E.numberFormats.value):o&&_(E)}),$e}const ate=["locale","fallbackLocale","availableLocales"],by=["t","rt","d","n","tm","te"];function ste(e,t){const r=Object.create(null);return ate.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i)throw cr(sr.UNEXPECTED_ERROR);const a=Vt(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,o,a)}),e.config.globalProperties.$i18n=r,by.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i||!i.value)throw cr(sr.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,i)}),()=>{delete e.config.globalProperties.$i18n,by.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}Fee();__INTLIFY_JIT_COMPILATION__?Qx(Iee):Qx($ee);See(oee);_ee($4);if(__INTLIFY_PROD_DEVTOOLS__){const e=Gn();e.__INTLIFY__=!0,hee(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const lte={language:"en",common:{add:"Add",addSuccess:"Add Success",edit:"Edit",editSuccess:"Edit Success",delete:"Delete",deleteSuccess:"Delete Success",save:"Save",saveSuccess:"Save Success",reset:"Reset",action:"Action",export:"Export",exportSuccess:"Export Success",import:"Import",importSuccess:"Import Success",clear:"Clear",clearSuccess:"Clear Success",yes:"Yes",no:"No",update:"Update",download:"Download",noData:"No Data",wrong:"Something went wrong, please try again later.",success:"Success",failed:"Failed",verify:"Verify",unauthorizedTips:"Unauthorized, please verify first.",confirm:"Confirm",cancel:"Cancel"},chat:{newChatButton:"New Chat",placeholder:"Ask me anything...(Shift + Enter = line break)",placeholderMobile:"Ask me anything...",copy:"Copy",copied:"Copied",copyCode:"Copy Code",clearChat:"Clear Chat",clearChatConfirm:"Are you sure to clear this chat?",exportImage:"Export Image",exportImageConfirm:"Are you sure to export this chat to png?",exportSuccess:"Export Success",exportFailed:"Export Failed",usingContext:"Context Mode",turnOnContext:"In the current mode, sending messages will carry previous chat records.",turnOffContext:"In the current mode, sending messages will not carry previous chat records.",deleteMessage:"Delete Message",deleteMessageConfirm:"Are you sure to delete this message?",deleteHistoryConfirm:"Are you sure to clear this history?",clearHistoryConfirm:"Are you sure to clear chat history?",preview:"Preview",showRawText:"Show as raw text",size:"Size:",generatedContentDisclaimer:"AI can make mistakes. Consider checking important information. All rights reserved ©",square1:"Square [1:1]",illustration:"Illustration [4:3]",wallpaper:"Wallpaper [16:9]",media:"Media [3:4]",poster:"Poster [9:16]",square:"Square",landscape:"Landscape",portrait:"Portrait",chatDialogue:"Chat Dialogue",startNewConversationPrompt:"Click the button below to start a new conversation",newConversation:"New Conversation",networkModeEnabledContextInvalid:"Network mode enabled, context invalidated!",networkModeDisabled:"Network mode disabled!",pointsMall:"Points Mall",toggleTheme:"Toggle Theme",signInReward:"Sign-In Reward",networkMode:"Network Mode",searchHistoryConversations:"Search History Conversations",announcement:"Announcement",clear:"Clear",remaining:"",ordinaryPoints:"Ordinary Points",advancedPoints:"Advanced Points",drawingPoints:"Drawing Points",points:"Points",clearConversation:"Clear Conversation",clearAllNonFavoriteConversations:"Clear all non-favorite conversations?",more:"More",collapse:"Collapse",myApps:"My Apps",appSquare:"App Square",favorites:"Favorites",todayConversations:"Today",Conversations:"",historyConversations:"History",favoriteConversations:"Favorite",unfavorite:"Unfavorite",rename:"Rename",deleteConversation:"Delete",me:"You",onlineSearch:"Online Search",mindMap:"Mind Map",fileAnalysis:"File Analysis",delete:"Delete",regenerate:"Regenerate",pause:"Pause",loading:"Loading...",readAloud:"Read Aloud",U1:"🔍 U1",U2:"🔍 U2",U3:"🔍 U3",U4:"🔍 U4",V1:"🪄 V1",V2:"🪄 V2",V3:"🪄 V3",V4:"🪄 V4",panLeft:"⬅️ Pan Left",panRight:"➡️ Pan Right",panUp:"⬆️ Pan Up",panDown:"⬇️ Pan Down",zoomIn15x:"↔️ Zoom 1.5x",zoomIn2x:"↔️ Zoom 2x",minorTransform:"Vary(Subtle)",strongTransform:"Vary(Strong)",enlargeImage:"Enlarge image {order}",transformImage:"Transform image {order}",expandDrawing:"Expand drawing",advancedTransform:"Advanced transform",translateImage:"Translate image",enlargeImagePrefix:"Enlarge image ",enlargeImageSuffix:"",transformImagePrefix:"Transform image ",transformImageSuffix:"",imageToImage:"Image to Image",faceConsistency:"Face Consistency",styleConsistency:"Style Consistency",selectAppOrTopic:"Select an application or topic for quick conversation"},app:{sampleTemplate:"Sample Template",exploreInfinitePossibilities:"Explore infinite possibilities, create a smart future with AI",searchAppNameQuickFind:"Search app names, quick find applications...",allCategories:"All Categories",noModelConfigured:"No specific application model has been configured by the administrator, please contact them to set it up~"},setting:{setting:"Setting",general:"General",advanced:"Advanced",config:"Config",avatarLink:"Avatar Link",name:"Name",description:"Description",role:"Role",resetUserInfo:"Reset UserInfo",chatHistory:"ChatHistory",theme:"Theme",language:"Language",api:"API",reverseProxy:"Reverse Proxy",timeout:"Timeout",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API Balance",sign:"Signature"},store:{siderButton:"Prompt Store",local:"Local",online:"Online",title:"Title",description:"Description",clearStoreConfirm:"Whether to clear the data?",importPlaceholder:"Please paste the JSON data here",addRepeatTitleTips:"Title duplicate, please re-enter",addRepeatContentTips:"Content duplicate: {msg}, please re-enter",editRepeatTitleTips:"Title conflict, please revise",editRepeatContentTips:"Content conflict {msg} , please re-modify",importError:"Key value mismatch",importRepeatTitle:"Title repeatedly skipped: {msg}",importRepeatContent:"Content is repeatedly skipped: {msg}",onlineImportWarning:"Note: Please check the JSON file source!",downloadError:"Please check the network status and JSON file validity"},draw:{use:"Use",download:"Download",delete:"Delete",zoom:"Zoom:",U1:"U1",U2:"U2",U3:"U3",U4:"U4",regenerateOnce:"Regenerate",transform:"Transform:",V1:"V1",V2:"V2",V3:"V3",V4:"V4",pan:"Pan:",panLeft:"⬅️",panRight:"➡️",panUp:"⬆️",panDown:"⬇️",transformZoom:"Zoom Transform",zoom1_5x:"Zoom 1.5x",zoom2x:"Zoom 2x",minorTransform:"Minor Transform",strongTransform:"Strong Transform",regionalRedraw:"Regional Redraw",regionalRedraw1:"Regional Redraw (Select the Area to Change)",submitTask:"Submit Task",selectSuiteForZoom:"Action: Select a suite to zoom",selectSuiteForTransform:"Action: Select a suite for transformation",regeneratingImage:"Action: Regenerating the image",drawingInProgress:"Action: Rapid drawing in progress...",tryDifferentPrompt:"Execute: Try a different prompt!",statusWaiting:"Waiting",statusDrawing:"Drawing",statusSuccess:"Success",statusFailure:"Failure",statusTimeout:"Timeout",downloadImageTitle:"Download Image",downloadImageContent:"Download the current image",downloadButtonText:"Download",cancelButtonText:"Cancel",deleteRecordTitle:"Delete Record",deleteRecordContent:"Delete the current drawing record?",deleteButtonText:"Delete",submitZoomDrawingSuccess:"Zoom drawing task submitted successfully, please wait for it to finish!",submitRedrawSuccess:"Redraw task submitted successfully, please wait for it to finish!",submitTransformDrawingSuccess:"Transform drawing task submitted successfully, please wait for it to finish!",submitEnlargeDrawingSuccess:"Enlarge drawing task submitted successfully, please wait for it to finish!",submitAdvancedTransformDrawingSuccess:"Advanced transform drawing task submitted successfully, please wait for it to finish!",submitRegionalRedrawSuccess:"Regional redraw task submitted successfully, please wait for it to finish!",drawingRecordDeleted:"Drawing record has been deleted!",queueing:"Queueing...",drawing:"Drawing...",storing:"Storing image...",drawingFailed:"Drawing Failed",pointsRefunded:"Points Refunded!",submitDrawingTaskSuccess:"Drawing task submitted successfully, please wait for it to finish!",defaultStyle:"Default Style",expressiveStyle:"Expressive Style",cuteStyle:"Cute Style",scenicStyle:"Scenic Style",standardQuality:"Standard",generalQuality:"General",highDefinitionQuality:"High Definition",ultraHighDefinitionQuality:"Ultra High Definition",enterDescription:"Please enter descriptive words!",optimizationFailed:"Optimization failed!",professionalDrawing:"Professional Drawing",parameterExplanation:"Parameter Explanation: Generate image size ratio",imageSize:"Image Size",modelSelection:"Model Selection",tooltipMJ:"MJ: General-purpose realistic model",tooltipNIJI:"NIJI: Anime style, suitable for 2D models",version:"Version",style:"Style",parameters:"Parameters",parametersTooltip:"Use parameters wisely to achieve more ideal results!",quality:"Quality",chaos:"Chaos",chaosDescription:"Value range: 0-100, --chaos or --c",chaosExplanation:"Chaos level, can be understood as the space for AI to think outside the box",chaosAdvice:"The smaller the value, the more reliable, with the default of 0 being the most precise",stylization:"Stylization",stylizationDescription:"Stylization: --stylize or --s, range 1-1000",parameterExplanation1:"Parameter explanation: The higher the number, the richer and more artistic the visual presentation",setting:"Setting",carryParameters:"Carry Parameters",autoCarryParameters:"Whether to automatically carry parameters",carryOn:"On: Carries the parameters we have configured",carryOff:"Off: Uses the parameters we customize in the command",imageToImage:"Image to Image",clickOrDrag:"Click or drag an image here to use as input",supportFormats:"Supports PNG and JPG formats",remainingPoints:"Remaining Points",refresh:"Refresh",accountInfo:"Account Information",points:"Points",paintingSingleUse:"Painting:",imageGenerationSingleUse:"Generation:",enlargementSingleUse:"Enlargement:",submitDrawingTask:"Enter keywords, submit drawing task",optimize:"Optimize",enterDrawingKeywords:"Enter drawing keywords. For example: A colorful cat, cute, cartoon",unnecessaryElements:"Unnecessary Elements",exclusionPrompt:"Example: Generate a room image, but exclude the bed, you can fill in 'bed'!",workingContents:"Working Contents",currentTasks:"Current tasks in progress",goToAIDrawingSquare:"Click to go to the AI Drawing Square",tasksInProgress:"tasks are currently in progress. Please wait patiently for the drawing to complete. You can visit other pages and return later to see the results!",myDrawings:"My Drawings",aiDrawingSquare:"AI Drawing Square",sizeAdjustment:"Size Adjustment",keywordSearchPlaceholder:"Prompt Keyword Search"},pay:{membershipMarket:"Membership Market",sizeAdjustment:"Size Adjustment",memberPackage:"Limited Time Member Package",permanentAddOnCard:"Permanent Add-On Card",baseModelQuota:"Base Model Quota",advancedModelQuota:"Advanced Model Quota",MJDrawingQuota:"MJ Drawing Quota",packageValidity:"Package Validity",days:"days",permanent:"Permanent",points:"Points",welcomeTipMobile:"Explore freely, welcome to our online store!",welcomeTipDesktop:"Explore freely, welcome to our online store, thank you for choosing us, let's start a delightful shopping journey together!",paymentNotEnabled:"Payment has not been enabled by the admin!",purchaseSuccess:"Purchase successful, enjoy your product!",paymentNotComplete:"You have not completed the payment yet!",wechat:"WeChat",alipay:"Alipay",wechatPay:"WeChat Pay",alipayPay:"Alipay Pay",paymentSuccess:"Congratulations, your payment was successful. Enjoy your purchase!",paymentTimeout:"Payment timeout, please place your order again!",productPayment:"Product Payment",amountDue:"Amount Due:",packageName:"Package Name:",packageDescription:"Package Description:",siteAdminEnabledRedirect:"The site administrator has enabled redirect payment",clickToPay:"Click to Proceed to Payment",completePaymentWithin:"Please complete the payment within",timeToCompletePayment:"!",open:"Open",scanToPay:"Scan to Pay"},mindmap:{title:"Mind Map",yourNeeds:"Your Needs?",inputPlaceholder:"Please enter a brief description of the content you want to generate, AI will produce a complete markdown content and its mind map for you!",generateMindMapButton:"Generate Mind Map",contentRequirements:"Content Requirements",tryDemoButton:"Try a Demo",usageCredits:"Base credits per use: 1",exportHTML:"Export HTML",exportPNG:"Export PNG",exportSVG:"Export SVG"},usercenter:{defaultSignature:"I am an AI robot based on deep learning and natural language processing technologies, aimed at providing users with efficient, accurate, and personalized intelligent services.",syncComplete:"Data synchronization completed",personalCenter:"Personal Center",logOut:"Log Out",myUsageRecord:"My Usage Record on This Site",basicModelCredits:"Basic Model Credits:",advancedModelCredits:"Advanced Model Credits:",basicModelUsage:"Basic Model Usage:",advancedModelUsage:"Advanced Model Usage:",drawingUsageCredits:"Drawing Usage Credits:",bindWeChat:"Bind WeChat:",clickToBindWeChat:"Click to Bind WeChat",weChatBound:"WeChat Bound",syncVisitorData:"Click to Sync Visitor Data",points:"Points",membershipExpiration:"Membership Expiration Date:",editInfoDescription:"Edit personal information, view more details",myDetails:"My Details",myWallet:"My Wallet",basicInfo:"Basic Information",userBasicSettings:"User Basic Settings",avatarPlaceholder:"Please enter your avatar URL",usernamePlaceholder:"Edit your username",signaturePlaceholder:"Edit your signature",passwordManagement:"Password Management",inviteBenefits:"Invite for Benefits",clickToLogin:"Log In",notLoggedIn:"Not Logged In",avatar:"Avatar",username:"Username",email:"Email",inviteeStatus:"Invitee Status",inviteTime:"Invite Time",rewardStatus:"Reward Status",certified:"Certified",notActivated:"Not Activated",rewardReceived:"Reward Received",waitingConfirmation:"Waiting for Confirmation",linkGeneratedSuccess:"Invitation link generated successfully",generateLinkFirst:"Please generate your exclusive invitation link first!",linkCopiedSuccess:"Exclusive invitation link copied successfully!",copyNotSupported:"Automatic copying is not supported on this device, please copy manually!",inviteForBenefits:"Invite Users, Earn Benefits!",myInviteCode:"My Invitation Code",generateInviteCode:"Generate Exclusive Invite Code",copyInviteLink:"Copy Exclusive Invite Link",inviteOneUser:"Inviting a user grants",basicModelCredits1:"basic model credits+",advancedModelCredits1:"advanced model credits+",mjDrawingCredits:"MJ drawing credits",receiveInvitation:"Invited users receive",creditsEnd:"credits",invitationRecord:"Invitation Record",passwordMinLength:"The minimum password length is 6 characters",passwordMaxLength:"The maximum password length is 30 characters",enterPassword:"Please enter a password",reenterPassword:"Please re-enter your password",passwordsNotMatch:"The passwords do not match",passwordUpdateSuccess:"Password updated successfully, please log in again!",changeYourPassword:"Change Your Password",oldPassword:"Old Password",newPassword:"New Password",confirmPassword:"Confirm Password",reloginAfterPasswordChange:"You will need to log in again after updating your password!",updateYourPassword:"Update Your Password",passwordRequirements:"Password Requirements",newPasswordInstructions:"To create a new password, you must meet all the following requirements:",minimumCharacters:"At least 6 characters",maximumCharacters:"No more than 30 characters",requireNumber:"Must contain at least one number",orderNumber:"Order Number",rechargeType:"Recharge Type",basicModelQuota:"Basic Model Quota",advancedModelQuota:"Advanced Model Quota",mjDrawingQuota:"MJ Drawing Quota",validity:"Validity",rechargeTime:"Recharge Time",enterCardSecret:"Please enter the card secret first!",cardRedeemSuccess:"Card redeemed successfully, enjoy your use!",userWalletBalance:"User Wallet Balance",basicModelBalance:"Basic Model Balance",creditUsageNote:"Each conversation consumes different credits depending on the model!",advancedModelBalance:"Advanced Model Balance",modelConsumptionNote:"Each conversation consumes different credits depending on the model!",mjDrawingBalance:"MJ Drawing Balance",drawingConsumptionNote:"Different credits are consumed based on drawing actions!",cardRecharge:"Card Recharge",enterCardDetails:"Please paste or enter your card details!",exchange:"Exchange",buyCardSecret:"Buy Card Secret",rechargeRecords:"Recharge Records",packagePurchase:"Package Purchase",buyPackage:"Buy Package"},siderBar:{signInReward:"Sign-in Reward",themeSwitch:"Theme Switch",personalCenter:"Personal Center",loginAccount:"Log In Account"},notice:{doNotRemind24h:"Do not remind again for 24 hours"},login:{enterUsername:"Please enter your username",usernameLength:"Username must be between 2 and 30 characters",enterPassword:"Please enter your password",passwordLength:"Password must be between 6 and 30 characters",enterEmail:"Please enter your email address",emailValid:"Please enter a valid email address",enterCaptcha:"Please enter the captcha",emailPhone:"Email / Phone",email:"Email",phone:"Phone",registrationSuccess:"Account registration successful, start your experience!",loginSuccess:"Account login successful, start your experience!",registerTitle:"Register",enterContact:"Please provide your ",enterCode:"Please enter the verification code",sendVerificationCode:"Send Verification Code",optionalInvitationCode:"Invitation Code [Optional]",registerAccount:"Register Account",alreadyHaveAccount:"Already have an account?",goToLogin:"Go to Login",password:"Password",enterYourPassword:"Please enter your password",rememberAccount:"Remember account",forgotPassword:"Forgot password?",loginAccount:"Log In Account",noAccount:"Dont have an account?",register:"Register",orUse:"or use",scanLogin:"Scan to Log In",wechatLogin:"WeChat Login",wechatScanFailed:"Failed WeChat QR code login? Use",useWechatScan:"Use WeChat to Scan and Log In"},share:{orderAmount:"Order Amount",productType:"Product Type",status:"Status",commissionRate:"Commission Rate",commission:"Commission",orderTime:"Order Time",purchasePackage:"Purchase Package",accounted:"Accounted",generateInviteCodeSuccess:"Invitation code generated successfully",withdrawalTime:"Withdrawal Time",withdrawalAmount:"Withdrawal Amount",withdrawalChannel:"Withdrawal Channel",withdrawalStatus:"Withdrawal Status",withdrawalRemarks:"Withdrawal Remarks",auditor:"Auditor",alipay:"Alipay",wechat:"WeChat",paid:"Paid",rejected:"Rejected",inReview:"In Review",avatar:"Avatar",username:"Username",email:"Email",inviteeStatus:"Invitee Status",registered:"Registered",pendingActivation:"Pending Activation",registrationTime:"Registration Time",lastLogin:"Last Login",requestInviteCodeFirst:"Please request your invitation code first",linkCopiedSuccess:"Share link copied successfully",title:"Referral Program",description:"Join us and share in success! Welcome to our distribution page, become our partner and create a bright future together!",defaultSalesOutletName:"Rookie Referral Officer",myReferrals:"My Referrals",currencyUnit:"Yuan",remainingAmount:"Remaining Withdrawable Amount",withdrawingAmount:"Amount in Withdrawal",withdrawNow:"Withdraw Now",minimumWithdrawalPrefix:"Minimum",minimumWithdrawalSuffix:"Yuan Withdrawable",purchaseOrderCount:"Purchase Order Count",promotionLinkVisits:"Promotion Link Visits",registeredUsers:"Registered Users",referralEarnings:"Referral Earnings",referralEarningsDescription:"Commission amount returned after referred users register and buy products",percentage:"Percentage",applyForAdvancedAgent:"Apply to Become an Advanced Agent",contactAdminForAdvancedAgent:"Contact the site owner to apply for an advanced agent to enjoy high commissions",joinAsPartner:"Join Us as a Partner",partnerDescription:"Join us as a partner to co-operate the community, win-win cooperation!",winTogether:"Win Together, Advance Together",referralLink:"Referral Link:",apply:"Apply",referralRecordsTab:"Referral Records",withdrawalRecordsTab:"Withdrawal Records",registeredUsersTab:"Registered Users",inviteFriends:"Invite friends, gift meal cards, and enjoy recharge commissions!",inviteLink:"Invite Link",copy:"Copy",inviteBenefits1:"Both parties enjoy a certain amount of permanent card rewards when inviting friends.",inviteBenefits2Prefix:"Earn a ",inviteBenefits2Suffix:"% commission on your friend's recharge amount.",enterWithdrawalAmount:"Please enter your withdrawal amount!",selectWithdrawalChannel:"Please select your withdrawal channel!",enterContactInfo:"Please provide your contact information and remark!",optionalRemark:"If there are any special circumstances, please remark!",withdrawalSuccess:"Withdrawal application successful, please wait for approval!",withdrawalApplicationForm:"Withdrawal Application Form",contactInformation:"Contact Information",withdrawalRemark:"Withdrawal Remark",enterWithdrawalRemark:"Please enter your withdrawal remarks",applyWithdrawal:"Apply for Withdrawal"},goods:{purchaseSuccess:"Purchase successful, enjoy your item!",paymentNotSuccessful:"You have not completed the payment yet!",orderConfirmationTitle:"Order Confirmation",orderConfirmationContent:"Welcome to purchase, are you sure you want to buy ",thinkAgain:"Let me think again",confirmPurchase:"Confirm Purchase",paymentNotEnabled:"Payment has not been enabled by the administrator!",selectProducts:"Select Products",basicModelQuota:"Basic Model Quota",advancedModelQuota:"Advanced Model Quota",drawingQuota:"Drawing Quota",buyPackage:"Buy Package"},rechargeTypes:{1:"Registration Bonus",2:"Invitation Bonus",3:"Referring Others Bonus",4:"Purchase via Card Code",5:"Admin Bonus",6:"QR Code Purchase",7:"MJ Drawing Failure Refund",8:"Sign-in Reward"},orderStatus:{0:"Not Paid",1:"Paid",2:"Payment Failed",3:"Payment Timeout"},messages:{logoutSuccess:"Successfully logged out!"}},cte={language:"中文",common:{add:"添加",addSuccess:"添加成功",edit:"编辑",editSuccess:"编辑成功",delete:"删除",deleteSuccess:"删除成功",update:"修改",saveSuccess:"保存成功",updateUserSuccess:"修改用户信息成功",reset:"重置",action:"操作",export:"导出",exportSuccess:"导出成功",import:"导入",importSuccess:"导入成功",clear:"清空",clearSuccess:"清空成功",yes:"是",no:"否",download:"下载",noData:"暂无数据",wrong:"好像出错了,请稍后再试。",success:"操作成功",failed:"操作失败",verify:"验证",unauthorizedTips:"未经授权,请先进行验证。",confirm:"确认",cancel:"取消"},chat:{newChatButton:"新建聊天",placeholder:"来说点什么吧...Shift + Enter = 换行)",placeholderMobile:"来说点什么...",copy:"复制",copied:"复制成功",copyCode:"复制代码",clearChat:"清空会话",clearChatConfirm:"是否清空会话?",exportImage:"保存会话到图片",exportImageConfirm:"是否将会话保存为图片?",exportSuccess:"保存成功",exportFailed:"保存失败",usingContext:"上下文模式",turnOnContext:"当前模式下, 发送消息会携带之前的聊天记录",turnOffContext:"当前模式下, 发送消息不会携带之前的聊天记录",deleteMessage:"删除消息",deleteMessageConfirm:"删除此条对话?",deleteHistoryConfirm:"确定删除此记录?",clearHistoryConfirm:"确定清空聊天记录?",preview:"预览",showRawText:"显示原文",size:"尺寸:",generatedContentDisclaimer:"AI 生成内容仅供参考,不代表本平台立场。版权所有 ©",square1:"方形1:1",illustration:"配图4:3",wallpaper:"壁纸16:9",media:"媒体3:4",poster:"海报9:16",square:"方形",landscape:"宽屏",portrait:"垂直",chatDialogue:"对话聊天",startNewConversationPrompt:"点击下方按钮,开始一个新的对话吧",newConversation:"新对话",networkModeEnabledContextInvalid:"已开启联网模式、上下文状态失效!",networkModeDisabled:"已关闭联网模式!",pointsMall:"积分商城",toggleTheme:"切换主题",signInReward:"签到奖励",networkMode:"联网模式",searchHistoryConversations:"搜索历史对话",announcement:"网站公告",clear:"清空对话",remaining:"剩余:",ordinaryPoints:"普通积分",advancedPoints:"高级积分",drawingPoints:"绘画积分",points:"积分",clearConversation:"清空对话",clearAllNonFavoriteConversations:"清空所有非收藏的对话?",more:"更多",collapse:"折叠",myApps:"我的应用",appSquare:"应用广场",favorites:"收藏",todayConversations:"今日对话",historyConversations:"历史对话",favoriteConversations:"收藏对话",unfavorite:"取消收藏",rename:"重命名",deleteConversation:"删除对话",me:"我",onlineSearch:"联网搜索",mindMap:"思维导图",fileAnalysis:"文件分析",delete:"删除",regenerate:"重新生成",pause:"暂停",loading:"加载中...",readAloud:"朗读",U1:"🔍 放大左上",U2:"🔍 放大右上",U3:"🔍 放大左下",U4:"🔍 放大右下",V1:"🪄 变换左上",V2:"🪄 变换右上",V3:"🪄 变换左下",V4:"🪄 变换右下",panLeft:"⬅️ 向左平移",panRight:"➡️ 向右平移",panUp:"⬆️ 向上平移",panDown:"⬇️ 向下平移",zoomIn15x:"↔️ 扩图1.5倍",zoomIn2x:"↔️ 扩图2倍",minorTransform:"🖌️ 微变换",strongTransform:"🖌️ 强变换",enlargeImagePrefix:"放大第",enlargeImageSuffix:"张图片",transformImagePrefix:"变换第",transformImageSuffix:"张图片",expandDrawing:"扩图绘制",advancedTransform:"高级变换",translateImage:"平移图片",imageToImage:"图生图",faceConsistency:"人脸一致",styleConsistency:"风格一致",selectAppOrTopic:"选择应用或话题快速对话"},app:{sampleTemplate:"示例模板",exploreInfinitePossibilities:"探索无限可能,与 AI 一同开创智慧未来",searchAppNameQuickFind:"搜索应用名称、快速查找应用...",allCategories:"全部分类",noModelConfigured:"管理员未配置特定应用模型、请联系管理员配置~"},setting:{setting:"设置",general:"总览",advanced:"高级",personalInfo:"个人信息",avatarLink:"头像链接",name:"用户名称",sign:"用户签名",role:"角色设定",resetUserInfo:"重置用户信息",chatHistory:"聊天记录",theme:"主题",language:"语言",api:"API",reverseProxy:"反向代理",timeout:"超时",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API余额"},store:{siderButton:"提示词商店",local:"本地",online:"在线",title:"标题",description:"描述",clearStoreConfirm:"是否清空数据?",importPlaceholder:"请粘贴 JSON 数据到此处",addRepeatTitleTips:"标题重复,请重新输入",addRepeatContentTips:"内容重复:{msg},请重新输入",editRepeatTitleTips:"标题冲突,请重新修改",editRepeatContentTips:"内容冲突{msg} ,请重新修改",importError:"键值不匹配",importRepeatTitle:"标题重复跳过:{msg}",importRepeatContent:"内容重复跳过:{msg}",onlineImportWarning:"注意:请检查 JSON 文件来源!",downloadError:"请检查网络状态与 JSON 文件有效性"},draw:{use:"使用",download:"下载",delete:"删除",zoom:"放大:",U1:"左上",U2:"右上",U3:"左下",U4:"右下",regenerateOnce:"重新生成一次",transform:"变换:",V1:"左上",V2:"右上",V3:"左下",V4:"右下",pan:"平移:",panLeft:"向左",panRight:"向右",panUp:"向上",panDown:"向下",transformZoom:"扩图变换:",zoom1_5x:"扩图1.5倍",zoom2x:"扩图2倍",minorTransform:"微变换",strongTransform:"强变换",regionalRedraw:"区域重绘",regionalRedraw1:"区域重绘(框选要改变的区域)",submitTask:"提交任务",selectSuiteForZoom:"操作:选中套图进行放大",selectSuiteForTransform:"操作:选中套图进行变换",regeneratingImage:"操作:正在对图片重新生成一次",drawingInProgress:"操作:正在火速绘制中...",tryDifferentPrompt:"执行:换个提示词重新试试吧!",statusWaiting:"等待中",statusDrawing:"绘制中",statusSuccess:"成功",statusFailure:"失败",statusTimeout:"超时",downloadImageTitle:"下载图片",downloadImageContent:"下载当前图片",downloadButtonText:"下载",cancelButtonText:"取消",deleteRecordTitle:"删除记录",deleteRecordContent:"删除当前绘制记录?",deleteButtonText:"删除",submitZoomDrawingSuccess:"提交放大绘制任务成功、请等待绘制结束!",submitRedrawSuccess:"提交重新绘制任务成功、请等待绘制结束!",submitTransformDrawingSuccess:"提交变换绘制任务成功、请等待绘制结束!",submitEnlargeDrawingSuccess:"提交扩图任务成功、请等待绘制结束!",submitAdvancedTransformDrawingSuccess:"提交高级变换绘制任务成功、请等待绘制结束!",submitRegionalRedrawSuccess:"提交区域重绘任务成功、请等待绘制结束!",drawingRecordDeleted:"绘制记录已删除!",queueing:"排队中...",drawing:"正在绘制...",storing:"图片存储中...",drawingFailed:"绘制失败",pointsRefunded:"积分已退还!",submitDrawingTaskSuccess:"提交绘制任务成功、请等待绘制结束!",defaultStyle:"默认风格",expressiveStyle:"表现力风格",cuteStyle:"可爱风格",scenicStyle:"景观风格",standardQuality:"普通",generalQuality:"一般",highDefinitionQuality:"高清",ultraHighDefinitionQuality:"超高清",enterDescription:"请输入描述词!",optimizationFailed:"优化失败了!",professionalDrawing:"专业绘图",parameterExplanation:"参数释义:生成图片尺寸比例",imageSize:"图片尺寸",modelSelection:"模型选择",tooltipMJ:"MJ: 偏真实通用模型",tooltipNIJI:"NIJI: 偏动漫风格、适用于二次元模型",version:"版本",style:"风格",parameters:"参数",parametersTooltip:"合理使用参数绘制更为理想的结果!",quality:"品质",chaos:"混乱",chaosDescription:"取值范围0-100、 --chaos 或 --c",chaosExplanation:"混乱级别可以理解为让AI天马行空的空间",chaosAdvice:"值越小越可靠、默认0最为精准",stylization:"风格化",stylizationDescription:"风格化:--stylize 或 --s范围 1-1000",parameterExplanation1:"参数释义:数值越高,画面表现也会更具丰富性和艺术性",setting:"设定",carryParameters:"携带参数",autoCarryParameters:"是否自动携带参数",carryOn:"打开:携带上述我们配置的参数",carryOff:"关闭:使用指令中的我们自定义的参数",imageToImage:"以图生图",clickOrDrag:"点击或拖拽一个图片到这里作为输入",supportFormats:"支持PNG和JPG格式",remainingPoints:"剩余积分",refresh:"刷新",accountInfo:"账户信息",points:"积分",paintingSingleUse:"绘画单次消耗:",imageGenerationSingleUse:"图生图单次消耗:",enlargementSingleUse:"放大单次消耗:",submitDrawingTask:"输入关键词,提交绘制任务",optimize:"优化",enterDrawingKeywords:"输入绘图关键词。例如:一只五颜六色的猫,可爱,卡通",unnecessaryElements:"不需要的元素",exclusionPrompt:"例生成房间图片、但是不要床、你可以填bed",workingContents:"工作中的内容",currentTasks:"当前系统进行中任务",goToAIDrawingSquare:"点击前往 AI 绘画广场",tasksInProgress:"个任务正在进行中、请耐心等候绘制完成、您可以前往其他页面稍后回来查看结果!",myDrawings:"我的绘图",aiDrawingSquare:"AI绘画广场",sizeAdjustment:"尺寸调整",keywordSearchPlaceholder:"prompt关键词搜索"},pay:{membershipMarket:"会员商场",sizeAdjustment:"尺寸调整",memberPackage:"会员限时套餐",permanentAddOnCard:"叠加永久次卡",baseModelQuota:"基础模型额度",advancedModelQuota:"高级模型额度",MJDrawingQuota:"MJ绘画额度",packageValidity:"套餐有效期",days:"天",permanent:"永久",points:"积分",welcomeTipMobile:"尽情探索,欢迎光临我们的在线商店!",welcomeTipDesktop:"尽情探索,欢迎光临我们的在线商店、感谢您选择我们、让我们一同开启愉悦的购物之旅!",paymentNotEnabled:"管理员还未开启支付!",purchaseSuccess:"购买成功、祝您使用愉快!",paymentNotComplete:"您还没有支付成功哟!",wechat:"微信",alipay:"支付宝",wechatPay:"微信支付",alipayPay:"支付宝支付",paymentSuccess:"恭喜你支付成功、祝您使用愉快!",paymentTimeout:"支付超时,请重新下单!",productPayment:"商品支付",amountDue:"需要支付:",packageName:"套餐名称:",packageDescription:"套餐描述:",siteAdminEnabledRedirect:"当前站长开通了跳转支付",clickToPay:"点击前往支付",completePaymentWithin:"请在",timeToCompletePayment:"时间内完成支付!",open:"打开",scanToPay:"扫码支付"},mindmap:{title:"思维导图",yourNeeds:"您的需求?",inputPlaceholder:"请输入您想要生成内容的简单描述、AI将为您输出一份完整的markdown内容及其思维导图!",generateMindMapButton:"智能生成生成思维导图",contentRequirements:"内容需求",tryDemoButton:"试试示例",usageCredits:"每次使用消耗基础积分: 1",exportHTML:"导出HTML",exportPNG:"导出PNG",exportSVG:"导出SVG"},usercenter:{defaultSignature:"我是一台基于深度学习和自然语言处理技术的 AI 机器人,旨在为用户提供高效、精准、个性化的智能服务。",syncComplete:"已同步数据完成",personalCenter:"个人中心",logOut:"退出登录",myUsageRecord:"我在本站的使用记录",basicModelCredits:"基础模型积分:",advancedModelCredits:"高级模型积分:",basicModelUsage:"基础模型使用:",advancedModelUsage:"高级模型使用:",drawingUsageCredits:"绘画使用积分:",bindWeChat:"绑定微信:",clickToBindWeChat:"点击绑定微信",weChatBound:"已绑定微信",syncVisitorData:"点击同步访客数据",points:"积分",membershipExpiration:"会员过期时间:",editInfoDescription:"编辑个人信息、查看更多详情",myDetails:"我的详情",myWallet:"我的钱包",basicInfo:"基础信息",userBasicSettings:"用户基础设置",avatarPlaceholder:"请填写头像地址",usernamePlaceholder:"请编辑您的用户名",signaturePlaceholder:"请编辑您的签名",passwordManagement:"密码管理",inviteBenefits:"邀请得福利",clickToLogin:"点击登入",notLoggedIn:"未登录",avatar:"头像",username:"用户名称",email:"用户邮箱",inviteeStatus:"受邀人状态",inviteTime:"邀请时间",rewardStatus:"获得奖励状态",certified:"已认证",notActivated:"未激活",rewardReceived:"已领取邀请奖励",waitingConfirmation:"等待受邀人确认",linkGeneratedSuccess:"生成邀请链接成功",generateLinkFirst:"请先生成您的专属邀请链接!",linkCopiedSuccess:"复制专属邀请链接成功!",copyNotSupported:"当前设置不支持自动复制、手动复制吧!",inviteForBenefits:"邀用户、得福利!",myInviteCode:"我的邀请码",generateInviteCode:"生成专属邀请码",copyInviteLink:"复制专属邀请链接",inviteOneUser:"邀请一位用户赠送",basicModelCredits1:"积分基础模型额度+",advancedModelCredits1:"积分高级模型额度+",mjDrawingCredits:"MJ绘画积分额度",receiveInvitation:"收到邀请用户获得",creditsEnd:"积分",invitationRecord:"邀请记录",passwordMinLength:"密码最短长度为6位数",passwordMaxLength:"密码最长长度为30位数",enterPassword:"请输入密码",reenterPassword:"请再次输入密码",passwordsNotMatch:"两次密码输入不一致",passwordUpdateSuccess:"密码更新成功、请重新登录系统!",changeYourPassword:"变更您的密码",oldPassword:"旧密码",newPassword:"新密码",confirmPassword:"确认密码",reloginAfterPasswordChange:"更新密码完成后将重新登录!",updateYourPassword:"更新您的密码",passwordRequirements:"密码要求",newPasswordInstructions:"要创建一个新的密码,你必须满足以下所有要求。",minimumCharacters:"最少6个字符",maximumCharacters:"最多30个字符",requireNumber:"至少带有一个数字",orderNumber:"订单编号",rechargeType:"充值类型",basicModelQuota:"基础模型额度",advancedModelQuota:"高级模型额度",mjDrawingQuota:"MJ绘画额度",validity:"有效期",rechargeTime:"充值时间",enterCardSecret:"请先填写卡密!",cardRedeemSuccess:"卡密兑换成功、祝您使用愉快!",userWalletBalance:"用户钱包余额",basicModelBalance:"基础模型余额",creditUsageNote:"每次对话根据模型消费不同积分!",advancedModelBalance:"高级模型余额",modelConsumptionNote:"每次对话根据模型消费不同积分!",mjDrawingBalance:"MJ绘画余额",drawingConsumptionNote:"根据画图动作消耗不同的积分!",cardRecharge:"卡密充值",enterCardDetails:"请粘贴或填写您的卡密信息!",exchange:"兑换",buyCardSecret:"购买卡密",rechargeRecords:"充值记录",packagePurchase:"套餐购买",buyPackage:"购买套餐"},siderBar:{signInReward:"签到奖励",themeSwitch:"主题切换",personalCenter:"个人中心",loginAccount:"登录账户"},notice:{doNotRemind24h:"24小时不再提示"},login:{enterUsername:"请输入用户名",usernameLength:"用户名长度应为 2 到 30 个字符",enterPassword:"请输入密码",passwordLength:"密码长度应为 6 到 30 个字符",enterEmail:"请输入邮箱地址",emailValid:"请输入正确的邮箱地址",enterCaptcha:"请填写图形验证码",emailPhone:"邮箱 / 手机号",email:"邮箱",phone:"手机号",registrationSuccess:"账户注册成功、开始体验吧!",loginSuccess:"账户登录成功、开始体验吧!",registerTitle:"注册",enterContact:"请填写您的",enterCode:"请填写验证码",sendVerificationCode:"发送验证码",optionalInvitationCode:"邀请码[非必填]",registerAccount:"注册账户",alreadyHaveAccount:"已经有帐号?",goToLogin:"去登录",password:"密码",enterYourPassword:"请输入您的账户密码",rememberAccount:"记住帐号",forgotPassword:"忘记密码?",loginAccount:"登录账户",noAccount:"还没有帐号?",register:"去注册",orUse:"或使用",scanLogin:"扫码登录",wechatLogin:"微信登录",wechatScanFailed:"微信扫码登录失败?使用",useWechatScan:"使用微信扫码登录"},share:{orderAmount:"订单金额",productType:"商品类型",status:"状态",commissionRate:"佣金比例",commission:"佣金",orderTime:"订购时间",purchasePackage:"购买套餐",accounted:"已入账",generateInviteCodeSuccess:"生成邀请码成功",withdrawalTime:"提现时间",withdrawalAmount:"提现金额",withdrawalChannel:"提现渠道",withdrawalStatus:"提现状态",withdrawalRemarks:"提现备注",auditor:"审核人",alipay:"支付宝",wechat:"微信",paid:"已打款",rejected:"被拒绝",inReview:"审核中",avatar:"头像",username:"用户名",email:"邮箱",inviteeStatus:"受邀人状态",registered:"已注册",pendingActivation:"待激活",registrationTime:"注册时间",lastLogin:"最后登录",requestInviteCodeFirst:"请先申请你的邀请码",linkCopiedSuccess:"复制推荐链接成功",title:"推介计划",description:"加入我们,共享成功!欢迎来到我们的分销页面,成为我们的合作伙伴,一同开创美好未来!",defaultSalesOutletName:"新秀推荐官",myReferrals:"我的推介",currencyUnit:"元",remainingAmount:"剩余可提金额",withdrawingAmount:"提现中金额",withdrawNow:"立即提现",minimumWithdrawalPrefix:"最低",minimumWithdrawalSuffix:"元可提现",purchaseOrderCount:"购买订单数量",promotionLinkVisits:"推广链接访问次数",registeredUsers:"注册用户",referralEarnings:"推介收益",referralEarningsDescription:"推介的用户注册购买产品后返佣金额",percentage:"百分比",applyForAdvancedAgent:"申请成为高级代理",contactAdminForAdvancedAgent:"联系站长申请高级代理可享超高返佣",joinAsPartner:"加入我们成为合伙人",partnerDescription:"加入我们成为合伙人共同运营社区、合作双赢!",winTogether:"合作共赢,携手共进",referralLink:"推荐链接:",apply:"申请",referralRecordsTab:"推介记录",withdrawalRecordsTab:"提现记录",registeredUsersTab:"注册用户",inviteFriends:"邀好友、赠套餐卡密、享充值返佣!",inviteLink:"邀请链接",copy:"复制",inviteBenefits1:"邀请好友双方都可享受一定额度的永久次卡奖励",inviteBenefits2Prefix:"邀请好友充值,您可获得充值金额的",inviteBenefits2Suffix:"%返佣",enterWithdrawalAmount:"请填写你的提款金额!",selectWithdrawalChannel:"请选择你的提款渠道!",enterContactInfo:"请填写您的联系方式并备注!",optionalRemark:"如有特殊情况、请备注说明!",withdrawalSuccess:"申请提现成功、请耐心等待审核!",withdrawalApplicationForm:"提款申请表",contactInformation:"联系方式",withdrawalRemark:"提款备注",enterWithdrawalRemark:"请填写你的提款备注!",applyWithdrawal:"申 请 提 现"},goods:{purchaseSuccess:"购买成功、祝您使用愉快!",paymentNotSuccessful:"您还没有支付成功哟!",orderConfirmationTitle:"订单确认",orderConfirmationContent:"欢迎选购、确定购买",thinkAgain:"我再想想",confirmPurchase:"确认购买",paymentNotEnabled:"管理员还未开启支付!",selectProducts:"选购商品",basicModelQuota:"基础模型额度",advancedModelQuota:"高级模型额度",drawingQuota:"绘画额度",buyPackage:"购买套餐"},rechargeTypes:{1:"注册赠送",2:"受邀请赠送",3:"邀请他人赠送",4:"购买卡密充值",5:"管理员赠送",6:"扫码购买充值",7:"MJ绘画失败退款",8:"签到奖励"},orderStatus:{0:"未支付",1:"已支付",2:"支付失败",3:"支付超时"},messages:{logoutSuccess:"登出账户成功!"}},ute={common:{add:"新增",addSuccess:"新增成功",edit:"編輯",editSuccess:"編輯成功",delete:"刪除",deleteSuccess:"刪除成功",save:"儲存",saveSuccess:"儲存成功",reset:"重設",action:"操作",export:"匯出",exportSuccess:"匯出成功",import:"匯入",importSuccess:"匯入成功",clear:"清除",clearSuccess:"清除成功",yes:"是",no:"否",confirm:"確認",download:"下載",noData:"目前無資料",wrong:"發生錯誤,請稍後再試。",success:"操作成功",failed:"操作失敗",verify:"驗證",unauthorizedTips:"未經授權,請先進行驗證。"},chat:{newChatButton:"新建對話",placeholder:"來說點什麼...Shift + Enter = 換行)",placeholderMobile:"來說點什麼...",copy:"複製",copied:"複製成功",copyCode:"複製代碼",clearChat:"清除對話",clearChatConfirm:"是否清空對話?",exportImage:"儲存對話為圖片",exportImageConfirm:"是否將對話儲存為圖片?",exportSuccess:"儲存成功",exportFailed:"儲存失敗",usingContext:"上下文模式",turnOnContext:"啟用上下文模式,在此模式下,發送訊息會包含之前的聊天記錄。",turnOffContext:"關閉上下文模式,在此模式下,發送訊息不會包含之前的聊天記錄。",deleteMessage:"刪除訊息",deleteMessageConfirm:"是否刪除此訊息?",deleteHistoryConfirm:"確定刪除此紀錄?",clearHistoryConfirm:"確定清除紀錄?",preview:"預覽",showRawText:"顯示原文"},setting:{setting:"設定",general:"總覽",advanced:"高級",config:"設定",avatarLink:"頭貼連結",name:"名稱",description:"描述",role:"角色設定",resetUserInfo:"重設使用者資訊",chatHistory:"紀錄",theme:"主題",language:"語言",api:"API",reverseProxy:"反向代理",timeout:"逾時",socks:"Socks",httpsProxy:"HTTPS Proxy",balance:"API余額"},store:{siderButton:"提示詞商店",local:"本機",online:"線上",title:"標題",description:"描述",clearStoreConfirm:"是否清除資料?",importPlaceholder:"請將 JSON 資料貼在此處",addRepeatTitleTips:"標題重複,請重新輸入",addRepeatContentTips:"內容重複:{msg},請重新輸入",editRepeatTitleTips:"標題衝突,請重新修改",editRepeatContentTips:"內容衝突{msg} ,請重新修改",importError:"鍵值不符合",importRepeatTitle:"因標題重複跳過:{msg}",importRepeatContent:"因內容重複跳過:{msg}",onlineImportWarning:"注意:請檢查 JSON 檔案來源!",downloadError:"請檢查網路狀態與 JSON 檔案有效性"}},dte=QX(),fte=localStorage.getItem("appLanguage"),hte=fte||dte.language||"zh-CN",X4=Qee({locale:hte,fallbackLocale:"en-US",allowComposition:!0,messages:{"en-US":lte,"zh-CN":cte,"zh-TW":ute}}),Ae=X4.global.t;function pte(e){e.use(X4)}function gte(){const e=Di(),t=GT(),r=R(()=>e.theme==="auto"?t.value==="dark":e.theme==="dark"),n=R(()=>r.value?Ec:void 0),o=R(()=>r.value?{common:{}}:{common:{primaryColor:"#409eff"}}),i={common:{primaryColor:"#5A91FCFF",primaryColorHover:"#3074F8FF",primaryColorPressed:"#3671E4FF",baseColor:"#ffffff"},Switch:{railColorActive:"#5A91FCFF"},Layout:{}},a={common:{primaryColor:"#5A91FCFF",primaryColorHover:"#3074F8FF",primaryColorPressed:"#3671E4FF"},Skeleton:{color:"#F4F3F3FF",colorEnd:"#F1F0F0FF"},Layout:{}};return Je(()=>r.value,s=>{s?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},{immediate:!0}),{theme:n,themeOverrides:o,lightThemeOverrides:a,darkThemeOverrides:i}}function mte(){const e=Di();return{naiveUILocale:R(()=>{switch(e.language){case"en-US":return x2;case"zh-CN":return Jv;case"zh-TW":return WB;default:return Jv}})}}const vte=pe({__name:"App",setup(e){const t=new tK.ClientJS,r=x4(),n=t.getFingerprint(),o=Cr(),i=zo(),a=sd();i.updateFingerprint(n);const{theme:s,lightThemeOverrides:l,darkThemeOverrides:c}=gte(),{language:u}=mte(),f=R(()=>{var x;return(x=o.globalConfig)==null?void 0:x.clientHomePath}),d=R(()=>{var x;return((x=o.globalConfig)==null?void 0:x.clientFavoIconPath)||"/favicon.svg"}),h=R(()=>{var x;return Number((x=o.globalConfig)==null?void 0:x.isAutoOpenNotice)===1});async function p(){var w;const x=((w=o.globalConfig)==null?void 0:w.baiduCode)||"";if(!x)return;const S=document.createElement("script"),C=x.replace(/<script[\s\S]*?>([\s\S]*?)<\/script>/gi,"$1");S.innerHTML=C,document.head.appendChild(S)}function g(){var x;document.title=((x=o.globalConfig)==null?void 0:x.siteName)||"AI"}const v=R(()=>s.value?c:l);function m(){f.value&&a.push(f.value)}function b(){const x=Nt.get("showNotice");(!x&&h.value||Date.now()>Number(x)&&h.value)&&i.updateNoticeDialog(!0)}const y=document.createElement("link");return y.rel="shortcut icon",y.href=d.value,y.type="image/svg+xml",document.getElementsByTagName("head")[0].appendChild(y),_t(async()=>{m(),await r.getBaseModelConfig(),p(),g(),b()}),(x,S)=>{const C=Uc("RouterView");return he(),rt(N(VM),{class:"h-full",theme:N(s),"theme-overrides":v.value,locale:N(u),"date-locale":N(DO),"preflight-style-disabled":""},{default:De(()=>[me(N(FK),null,{default:De(()=>[me(C)]),_:1}),me(N(LH))]),_:1},8,["theme","theme-overrides","locale","date-locale"])}}});function bte(){const e=document.createElement("meta");e.name="naive-ui-style",document.head.appendChild(e)}function xte(){bte()}const yte=()=>{var r,n,o,i,a,s;const e=document.createElement("style"),t=`
::-webkit-scrollbar {
background-color: transparent;
width: ${(r=sf.Scrollbar.common)==null?void 0:r.scrollbarWidth};
}
::-webkit-scrollbar-thumb {
background-color: ${(n=sf.Scrollbar.common)==null?void 0:n.scrollbarColor};
border-radius: ${(o=sf.Scrollbar.common)==null?void 0:o.scrollbarBorderRadius};
}
html.dark ::-webkit-scrollbar {
background-color: transparent;
width: ${(i=Ec.Scrollbar.common)==null?void 0:i.scrollbarWidth};
}
html.dark ::-webkit-scrollbar-thumb {
background-color: ${(a=Ec.Scrollbar.common)==null?void 0:a.scrollbarColor};
border-radius: ${(s=Ec.Scrollbar.common)==null?void 0:s.scrollbarBorderRadius};
}
`;e.innerHTML=t,document.head.appendChild(e)};function _g(e){return Tu()?(Vh(e),!0):!1}function Eg(e){return typeof e=="function"?e():N(e)}const Q4=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Cte=e=>e!=null,wte=Object.prototype.toString,gu=e=>wte.call(e)==="[object Object]",ks=()=>{};function Ste(e){return e||Er()}function _te(...e){if(e.length!==1)return Lt(...e);const t=e[0];return typeof t=="function"?en(o5(()=>({get:t,set:ks}))):M(t)}function Ete(e,t){Ste(t)&&wi(e,t)}function kte(...e){let t,r,n;if(typeof e[0]=="string"?([r,...n]=e,t=window.require?window.require("electron").ipcRenderer:void 0):[t,r,...n]=e,!t)throw new Error("please provide IpcRenderer module or enable nodeIntegration");const o=Xn(null);return t.invoke(r,...n).then(i=>{o.value=i}),o}function Tte(...e){let t,r,n;if(typeof e[0]=="string"?([r,n]=e,t=window.require?window.require("electron").ipcRenderer:void 0):[t,r,n]=e,!t)throw new Error("please provide IpcRenderer module or enable nodeIntegration");return _g(()=>{t.removeListener(r,n)}),t.on(r,n)}function Ate(e){return(t,...r)=>{const n=Xn(null);return n.value=e.sendSync(t,...r),n}}function Pte(e){if(e||(e=window==null?void 0:window.require("electron").ipcRenderer),!e)throw new Error("provide IpcRenderer module or enable nodeIntegration");return{on:(t,r)=>Tte(t,r),once:e.once.bind(e),removeListener:e.removeListener.bind(e),removeAllListeners:e.removeAllListeners.bind(e),send:e.send,invoke:(t,...r)=>kte(e,t,...r),sendSync:Ate(e),postMessage:e.postMessage,sendTo:e.sendTo,sendToHost:e.sendToHost}}const $te={class:"wrapper"},Ite={key:0,class:"btn disabled"},Dte=pe({__name:"macTablebar",props:{title:{}},setup(e){const t=Pte(),r=M(!1),n=bd(),o=()=>{t.send("check-window-maximized")},i=(u,f)=>{r.value=f};_t(()=>{t.on("window-maximized-status",i),t.on("clipboard-content",c),o()}),wi(()=>{t.removeListener("window-maximized-status",i)});const a=()=>{t.invoke("closeWindow")},s=()=>{t.invoke(r.value?"unmaximizeWindow":"maxmizeWindow"),r.value=!r.value},l=()=>{t.invoke("minimizeWindow")},c=(u,f)=>{n.updateClipboardText(f)};return(u,f)=>(he(),Fe("div",$te,[re("div",{class:"btn close-btn",onClick:a}),r.value?(he(),Fe("div",Ite)):Ze("",!0),r.value?Ze("",!0):(he(),Fe("div",{key:1,class:"btn min-btn",onClick:l})),re("div",{class:"btn max-btn",onClick:s})]))}});const kg=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Bte=kg(Dte,[["__scopeId","data-v-a0547cf5"]]),Ote={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Lte=re("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),Rte=re("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1),Fte=[Lte,Rte],Tg=pe({name:"CloseOutline",render:function(t,r){return he(),Fe("svg",Ote,Fte)}}),Mte={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},zte=re("path",{d:"M53.12 199.94l400-151.39a8 8 0 0 1 10.33 10.33l-151.39 400a8 8 0 0 1-15-.34l-67.4-166.09a16 16 0 0 0-10.11-10.11L53.46 215a8 8 0 0 1-.34-15.06z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Nte=re("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M460 52L227 285"},null,-1),Hte=[zte,Nte],Z4=pe({name:"PaperPlaneOutline",render:function(t,r){return he(),Fe("svg",Mte,Hte)}}),jte={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Wte=re("path",{d:"M376 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Ute=re("path",{d:"M288 304c-87 0-175.3 48-191.64 138.6c-2 10.92 4.21 21.4 15.65 21.4H464c11.44 0 17.62-10.48 15.65-21.4C463.3 352 375 304 288 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),Vte=re("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M88 176v112"},null,-1),Gte=re("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M144 232H32"},null,-1),qte=[Wte,Ute,Vte,Gte],Yte=pe({name:"PersonAddOutline",render:function(t,r){return he(),Fe("svg",jte,qte)}}),Kte={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Xte=re("path",{d:"M376 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Qte=re("path",{d:"M288 304c-87 0-175.3 48-191.64 138.6c-2 10.92 4.21 21.4 15.65 21.4H464c11.44 0 17.62-10.48 15.65-21.4C463.3 352 375 304 288 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),Zte=re("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M144 232H32"},null,-1),Jte=[Xte,Qte,Zte],ere=pe({name:"PersonRemoveOutline",render:function(t,r){return he(),Fe("svg",Kte,Jte)}}),tre="/logo.ico",rre=["src"],nre=pe({__name:"Logo",setup(e){const t=Cr(),r=R(()=>t.globalConfig.clientLogoPath),n=R(()=>t.globalConfig.clientHomePath||"/"),{isMobile:o}=vn(),i=R(()=>o.value?["py-2","w-8","ml-3"]:["py-4","px-2","w-full"]);return(a,s)=>(he(),rt(N(_E),{to:n.value},{default:De(()=>[r.value?Ze("",!0):(he(),Fe("img",{key:0,src:tre,class:Kt([i.value,"cursor-pointer px-0 dark:border-[#ffffff17] border-#ebebeb-400"]),alt:""},null,2)),r.value?(he(),Fe("img",{key:1,src:r.value,class:Kt([i.value,"cursor-pointer px-0 dark:border-[#ffffff17] border-#ebebeb-400"]),alt:""},null,10,rre)):Ze("",!0)]),_:1},8,["to"]))}}),ore={class:"px-2 w-full ele-drag"},ire={class:"flex h-full flex-col items-center space-y-3"},are=["onClick"],sre={class:"flex flex-col justify-between items-center"},lre=pe({__name:"index",setup(e){const t=k5(()=>Mr(()=>import("./index-c53889db.js"),["assets/index-c53889db.js","assets/Input-4816b01d.js","assets/Select-b45c26f7.js","assets/Tabs-d30e51ae.js","assets/Add-1eab33c9.js"])),{t:r,locale:n}=Sd(),o=Di(),i=Cr(),a=zo();xn();const s=M(null);o.setEnv();const l=R(()=>i.userInfo.avatar),c=tg(),u=sd(),f=M(!1),d=R(()=>i.isLogin),h=R(()=>o.theme==="dark"),p=R(()=>o.env),g=Xn(Yte);Xn(ere);async function v(){const V=await w4({menuPlatform:1});V.success&&(m.value=V.data,Qt(()=>{F()}))}const m=M([]),b=M(!1);_t(()=>{v()});const y=R(()=>{var V;return Number((V=i.globalConfig)==null?void 0:V.signInStatus)===1});function x(){d.value?i.logOut():i.setLoginDialog(!0)}function S(){const V=h.value?"light":"dark";o.setTheme(V)}const{isMobile:C}=vn(),w=R(()=>c.path);function k(V){u.push({name:V})}const A=R(()=>C.value?{paddingBottom:"env(safe-area-inset-bottom)"}:{}),T=R(()=>C.value?["flex-rol","w-full","border-0"]:["flex-col","w-sider","h-full","border-r"]),I=R(()=>C.value?["flex","flex-rol","items-center","pt-0","w-full"]:["flex","flex-col","pt-1","items-center"]),D=R(()=>a.iframeUrl);function B(V){const{menuPath:oe,isJump:fe,menuIframeUrl:ge,isNeedAuth:U}=V;if(U&&!d.value){i.setLoginDialog(!0);return}if(a.updateIframeUrl(""),oe)return u.push({path:oe});fe?window.open(ge):(a.updateIframeUrl(ge),u.push({path:"/extend"}))}function j(){if(!d.value){i.setLoginDialog(!0);return}a.updateSignInDialog(!0)}function F(){if(!s.value)return;const{clientHeight:V=0,scrollHeight:oe=0}=s.value;b.value=oe>V}function z(V){const{menuIframeUrl:oe,menuPath:fe}=V;if(oe)return oe===D.value;if(fe)return fe===w.value}return Je(C,V=>{o.setSiderCollapsed(V)},{immediate:!0,flush:"post"}),(V,oe)=>(he(),Fe(ot,null,[re("div",{class:Kt(["flex min-w-sm bg-gray-50 pb-2 dark:bg-gray-900 border-gray-100 dark:border-gray-800",T.value]),style:Jr(A.value)},[p.value==="electron"?(he(),rt(Bte,{key:0})):Ze("",!0),re("div",ore,[me(nre)]),re("main",{ref_key:"track",ref:s,class:Kt(["flex-1 flex-grow-1 mb-5 overflow-auto",I.value])},[me(N(Vj),{size:1},{default:De(()=>[re("div",ire,[(he(!0),Fe(ot,null,Fs(m.value,fe=>(he(),Fe("div",{key:fe.menuName,class:Kt(["flex justify-center flex-col items-center",N(C)?"mt-0":"mt-3"]),onClick:ge=>B(fe)},[me(N(Qi),{trigger:"hover",placement:"right"},{trigger:De(()=>[re("div",{class:Kt(["relative flex items-center justify-center h-10 w-10 rounded-md cursor-pointer duration-300",[z(fe)?["bg-white","text-primary-600","dark:bg-gray-800","dark:text-white"]:["bg-gray-50","dark:bg-gray-900","dark:text-gray-400"],"hover:bg-white","hover:text-primary-600","dark:hover:bg-gray-800","dark:hover:text-white"]])},[me(N(_s),{icon:fe.menuIcon,class:"text-2xl"},null,8,["icon"])],2)]),default:De(()=>[pt(" "+Re(fe.menuTipText),1)]),_:2},1024)],10,are))),128))])]),_:1})],2),re("div",sre,[!N(C)&&y.value?(he(),rt(N(Qi),{key:0,trigger:"hover",placement:"right"},{trigger:De(()=>[me(N(_s),{class:"text-xl cursor-pointer mb-5",icon:"mynaui:gift",onClick:j})]),default:De(()=>[pt(" "+Re(N(r)("siderBar.signInReward")),1)]),_:1})):Ze("",!0),N(C)?Ze("",!0):(he(),rt(N(Qi),{key:1,trigger:"hover",placement:"right"},{trigger:De(()=>[me(N(_s),{class:"text-xl cursor-pointer mb-5",icon:h.value?"line-md:sunny-outline-to-moon-transition":"line-md:moon-to-sunny-outline-transition",onClick:S},null,8,["icon"])]),default:De(()=>[pt(" "+Re(N(r)("siderBar.themeSwitch")),1)]),_:1})),d.value?(he(),rt(N(Qi),{key:2,trigger:"hover",placement:"right"},{trigger:De(()=>[me(N(kF),{size:42,src:l.value,round:"",bordered:"","fallback-src":N(KZ),class:"cursor-pointer",onClick:oe[0]||(oe[0]=fe=>k("UserCenter"))},null,8,["src","fallback-src"])]),default:De(()=>[pt(" "+Re(N(r)("siderBar.personalCenter")),1)]),_:1})):Ze("",!0),d.value?Ze("",!0):(he(),rt(N(RK),{key:3,label:N(r)("siderBar.loginAccount"),placement:N(C)?"bottom":"right",class:Kt(N(C)?"mb-0":"mb-5"),onClick:x},{default:De(()=>[me(N(Sa),{size:"20",color:"#555"},{default:De(()=>[(he(),rt(wC(g.value)))]),_:1})]),_:1},8,["label","placement","class"]))])],6),f.value?(he(),rt(N(t),{key:0,visible:f.value,"onUpdate:visible":oe[1]||(oe[1]=fe=>f.value=fe)},null,8,["visible"])):Ze("",!0)],64))}});const cre={class:"bg-white dark:bg-[#25272c]"},ure=["onClick"],dre={class:"inline-block text-xl"},fre={class:"text-xs"},hre=pe({__name:"index",setup(e){const t=M([]),r=xn();async function n(){const h=await w4({menuPlatform:0});h.success&&(t.value=h.data)}const o=zo(),i=sd(),a=tg(),s=R(()=>a.path),l=Cr(),c=R(()=>o.iframeUrl),u=R(()=>l.isLogin);function f(h,p){h.stopPropagation();const{menuPath:g,isJump:v,menuIframeUrl:m,isNeedAuth:b}=p;if(b&&!u.value){r.warning("请先登录后访问!"),l.setLoginDialog(!0);return}if(o.updateIframeUrl(""),g)return i.replace({path:g});v?window.open(m):(o.updateIframeUrl(m),i.push({path:"/extend"}))}function d(h){const{menuIframeUrl:p,menuPath:g}=h;if(p)return p===c.value;if(g)return g===s.value}return bn(()=>{n()}),(h,p)=>(he(),Fe("footer",cre,[re("div",{class:"grid border-t py-1 dark:border-t-neutral-800 grid-cols-2",style:Jr({gridTemplateColumns:`repeat(${t.value.length}, minmax(0, 1fr))`})},[(he(!0),Fe(ot,null,Fs(t.value,g=>(he(),Fe("a",{key:g.id,class:Kt([[d(g)?"text-[#3076fd] dark:text-[#3076fd]":""],"cursor-pointer text-center leading-4"]),onClick:v=>f(v,g)},[re("span",dre,[me(N(_s),{icon:g.menuIcon,class:"mb-1 inline-block text-lg"},null,8,["icon"])]),re("p",fre,Re(g.menuTipText),1)],10,ure))),128))],4)]))}});var pre={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function gre(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function mre(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],i=t.theme||r.theme;switch(i){case"outline":o.push(typeof n[0]=="string"?n[0]:"currentColor"),o.push("none"),o.push(typeof n[0]=="string"?n[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof n[0]=="string"?n[0]:"currentColor"),o.push(typeof n[0]=="string"?n[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof n[0]=="string"?n[0]:"currentColor"),o.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),o.push(typeof n[0]=="string"?n[0]:"currentColor"),o.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof n[0]=="string"?n[0]:"currentColor"),o.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),o.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),o.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:o,id:e}}var vre=Symbol("icon-context");function bre(e,t,r){var n={name:"icon-"+e,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","spin"],setup:function(i){var a=gre(),s=ze(vre,pre);return function(){var l=i.size,c=i.strokeWidth,u=i.strokeLinecap,f=i.strokeLinejoin,d=i.theme,h=i.fill,p=i.spin,g=mre(a,{size:l,strokeWidth:c,strokeLinecap:u,strokeLinejoin:f,theme:d,fill:h},s),v=[s.prefix+"-icon"];return v.push(s.prefix+"-icon-"+e),t&&s.rtl&&v.push(s.prefix+"-icon-rtl"),p&&v.push(s.prefix+"-icon-spin"),me("span",{class:v.join(" ")},[r(g)])}}};return n}const xre=bre("close",!1,function(e){return me("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[me("path",{d:"M8 8L40 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),me("path",{d:"M8 40L40 8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])}),yre={class:"sm:mx-auto sm:w-full sm:max-w-sm"},Cre={class:"mb-8 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900 dark:text-gray-300"},wre={class:"mt-0"},Sre=["placeholder"],_re={class:"mt-4"},Ere=["placeholder"],kre={class:"mt-4 flex relative"},Tre=["placeholder"],Are=["innerHTML"],Pre={class:"mt-4 relative"},$re=["placeholder"],Ire=["disabled","loading"],Dre={class:"mt-4 flex"},Bre=["placeholder"],Ore={class:"mt-4"},Lre=["placeholder"],Rre={key:0,class:"mt-0 mb-5 text-center text-sm text-gray-500 dark:text-gray-400"},Fre={class:"sm:mx-auto sm:w-full sm:max-w-sm"},Mre={class:"mb-8 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900 dark:text-gray-300"},zre={class:"mt-4"},Nre={for:"username",class:"block text-sm font-medium leading-6 text-gray-900 dark:text-gray-300"},Hre={class:"mt-2"},jre=["placeholder"],Wre={class:"mt-4"},Ure={for:"username",class:"block text-sm font-medium leading-6 text-gray-900 dark:text-gray-300"},Vre={class:"mt-2"},Gre=["placeholder"],qre={class:"flex items-center justify-between my-3"},Yre={class:"flex items-center"},Kre=re("input",{id:"remember-me",name:"remember-me",type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600"},null,-1),Xre={for:"remember-me",class:"ml-3 block text-sm leading-6 text-gray-500 dark:text-gray-400"},Qre={key:0,class:"mt-0 mb-5 text-center text-sm text-gray-500 dark:text-gray-400"},Zre={key:0},Jre=pe({__name:"Email",emits:["changeLoginType"],setup(e,{emit:t}){const r=t,n=Di(),o=M(null),i=xn(),a=M(!0),s=M(!1),l=Cr(),c=M(""),u=R(()=>n.theme),f=M(0),d=l.globalConfig.siteName,{isMobile:h}=vn();R(()=>l.globalConfig.isVerifyEmail?Number(l.globalConfig.isVerifyEmail):1);const p=R(()=>u.value==="dark"?"#6b7280":"#fff"),g=M({username:"",password:"",contact:"",invitedBy:"",captchaCode:"",captchaId:null,code:""}),v=M({username:"",password:"",contact:"",invitedBy:""}),m={username:[{required:!0,message:Ae("login.enterUsername"),trigger:"blur"},{min:2,max:30,message:Ae("login.usernameLength"),trigger:"blur"}],password:[{required:!0,message:Ae("login.enterPassword"),trigger:"blur"},{min:6,max:30,message:Ae("login.passwordLength"),trigger:"blur"}],email:[{required:!0,message:Ae("login.enterEmail"),trigger:"blur"},{type:"email",message:Ae("login.emailValid"),trigger:["blur","change"]}],captchaCode:[{required:!0,message:Ae("login.enterCaptcha"),trigger:"blur"}]},b=R(()=>Number(l.globalConfig.wechatRegisterStatus)===1),y=R(()=>Number(l.globalConfig.phoneLoginStatus)===1);R(()=>Number(l.globalConfig.emailRegisterStatus)===1);const x=R(()=>Number(l.globalConfig.emailLoginStatus)===1),S=R(()=>{if(x.value&&y.value)return Ae("login.emailPhone");if(x.value)return Ae("login.email");if(y.value)return Ae("login.phone")});function C(){f.value>0&&setTimeout(()=>{f.value--,C()},1e3)}async function w(){var T;(T=o.value)==null||T.validate(async I=>{if(!I)try{const{username:D,contact:B,captchaCode:j,captchaId:F}=g.value,z={username:D,contact:B,captchaCode:j,captchaId:F};let V;V=await OZ(z),A();const{success:oe,message:fe}=V;oe?(i.success(V.data),f.value=60,C()):i.error(fe)}catch{A()}})}function k(){var T;(T=o.value)==null||T.validate(async I=>{if(!I)try{s.value=!0;const D=a.value?DZ:IZ,B=a.value?{username:v.value.username,password:v.value.password}:g.value,j=await D(B);s.value=!1,A();const{success:F,message:z}=j;if(!F)return i.error(z);if(a.value)i.success(Ae("login.loginSuccess")),l.setToken(j.data),l.getUserInfo(),l.setLoginDialog(!1),Nt.remove("invitedBy");else{i.success(Ae("login.registrationSuccess"));const{contact:V,password:oe}=g.value;v.value.username=V,v.value.password=oe,a.value=!a.value}}catch{A(),s.value=!1}})}async function A(){const T=await BZ({color:p.value});c.value=T.data.svgCode,g.value.captchaId=T.data.code}return _t(()=>{const T=Nt.get("invitedBy");T&&(g.value.invitedBy=T),A()}),(T,I)=>(he(),Fe("div",{class:Kt(["flex w-full flex-col h-full",N(h)?"px-5 py-10":"px-10 py-20"])},[a.value?Ze("",!0):(he(),rt(N(f1),{key:0,ref_key:"formRef",ref:o,model:g.value,rules:m,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging"},{default:De(()=>[re("div",yre,[re("h2",Cre,Re(N(d))+" "+Re(N(Ae)("login.registerTitle")),1)]),re("div",wre,[lr(re("input",{id:"username",type:"text","onUpdate:modelValue":I[0]||(I[0]=D=>g.value.username=D),placeholder:N(Ae)("login.enterUsername"),class:"block w-full rounded-md border-0 py-1.5 px-3 text-gray-900 shadow-sm dark:text-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6 dark:bg-gray-800 dark:focus:ring-gray-400"},null,8,Sre),[[lo,g.value.username]])]),re("div",_re,[lr(re("input",{id:"username",type:"password","onUpdate:modelValue":I[1]||(I[1]=D=>g.value.password=D),placeholder:N(Ae)("login.enterPassword"),class:"block w-full rounded-md border-0 py-1.5 px-3 text-gray-900 shadow-sm dark:text-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6 dark:bg-gray-800 dark:focus:ring-gray-400"},null,8,Ere),[[lo,g.value.password]])]),re("div",kre,[lr(re("input",{id:"username",type:"text","onUpdate:modelValue":I[2]||(I[2]=D=>g.value.captchaCode=D),placeholder:N(Ae)("login.enterCaptcha"),class:"flex-1 block w-full rounded-md border-0 py-1.5 px-3 text-gray-900 shadow-sm dark:text-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6 dark:bg-gray-800 dark:focus:ring-gray-400 pl-3 pr-16"},null,8,Tre),[[lo,g.value.captchaCode]]),c.value?(he(),Fe("div",{key:0,class:"absolute right-1 top-1/2 transform -translate-y-1/2 cursor-pointer bg-transparent rounded-md",style:{height:"90%",top:"55%",transform:"translateY(-50%)"},onClick:A,innerHTML:c.value},null,8,Are)):Ze("",!0)]),re("div",Pre,[lr(re("input",{id:"username",type:"text","onUpdate:modelValue":I[3]||(I[3]=D=>g.value.contact=D),placeholder:N(Ae)("login.enterContact")+S.value,class:"block w-full rounded-md border-0 py-1.5 px-2 text-gray-900 shadow-sm dark:text-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6 dark:bg-gray-800 dark:focus:ring-gray-400 pl-3 pr-12"},null,8,$re),[[lo,g.value.contact]]),re("button",{block:"",class:"absolute right-0 top-1/2 transform -translate-y-1/2 flex justify-center rounded-r-md bg-primary-500 px-2 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-primary-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",disabled:s.value,loading:s.value,onClick:w},Re(N(Ae)("login.sendVerificationCode")),9,Ire)]),re("div",Dre,[lr(re("input",{id:"username",type:"text","onUpdate:modelValue":I[4]||(I[4]=D=>g.value.code=D),placeholder:N(Ae)("login.enterCode"),class:"flex-1 block w-full rounded-md border-0 py-1.5 px-3 text-gray-900 shadow-sm dark:text-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6 dark:bg-gray-800 dark:focus:ring-gray-400"},null,8,Bre),[[lo,g.value.code]])]),re("div",Ore,[lr(re("input",{id:"username",type:"text","onUpdate:modelValue":I[5]||(I[5]=D=>g.value.invitedBy=D),placeholder:N(Ae)("login.optionalInvitationCode"),class:"block w-full rounded-md border-0 py-1.5 px-3 text-gray-900 shadow-sm dark:text-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6 dark:bg-gray-800 dark:focus:ring-gray-400"},null,8,Lre),[[lo,g.value.invitedBy]])]),re("div",null,[re("button",{onClick:k,type:"submit",class:"flex w-full my-5 justify-center rounded-md bg-primary-500 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-primary-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},Re(N(Ae)("login.registerAccount")),1)]),x.value||y.value?(he(),Fe("p",Rre,[pt(Re(N(Ae)("login.alreadyHaveAccount"))+" ",1),re("a",{href:"#",class:"font-semibold leading-6 text-primary-600 hover:text-primary-500 dark:text-primary-500 dark:hover:text-primary-600",onClick:I[6]||(I[6]=D=>a.value=!a.value)},Re(N(Ae)("login.goToLogin")),1)])):Ze("",!0)]),_:1},8,["model"])),a.value?(he(),rt(N(f1),{key:1,size:"large",ref_key:"formRef",ref:o,model:v.value,rules:m,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging"},{default:De(()=>[re("div",Fre,[re("h2",Mre,Re(N(d))+" 登录 ",1)]),re("div",zre,[re("label",Nre,Re(S.value),1),re("div",Hre,[lr(re("input",{id:"username",type:"text","onUpdate:modelValue":I[7]||(I[7]=D=>v.value.username=D),placeholder:N(Ae)("login.enterUsername"),class:"block w-full rounded-md border-0 py-1.5 px-3 text-gray-900 shadow-sm dark:text-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6 dark:bg-gray-800 dark:focus:ring-gray-400"},null,8,jre),[[lo,v.value.username]])])]),re("div",Wre,[re("label",Ure,Re(N(Ae)("login.password")),1),re("div",Vre,[lr(re("input",{id:"password",type:"password","onUpdate:modelValue":I[8]||(I[8]=D=>v.value.password=D),placeholder:N(Ae)("login.enterYourPassword"),class:"block w-full rounded-md border-0 py-1.5 px-3 text-gray-900 shadow-sm dark:text-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-300 sm:text-sm sm:leading-6 dark:bg-gray-800 dark:focus:ring-gray-400"},null,8,Gre),[[lo,v.value.password]])])]),re("div",qre,[re("div",Yre,[Kre,re("label",Xre,Re(N(Ae)("login.rememberAccount")),1)])]),re("div",null,[re("button",{onClick:k,type:"submit",class:"flex w-full my-5 justify-center rounded-md bg-primary-500 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-primary-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},Re(N(Ae)("login.loginAccount")),1)]),x.value||y.value?(he(),Fe("p",Qre,[pt(Re(N(Ae)("login.noAccount"))+" ",1),re("a",{href:"#",class:"font-semibold leading-6 text-primary-600 hover:text-primary-500 dark:text-primary-500 dark:hover:text-primary-600",onClick:I[9]||(I[9]=D=>a.value=!a.value)},Re(N(Ae)("login.register")),1),b.value?(he(),Fe("div",Zre,[pt(Re(N(Ae)("login.orUse")),1),re("a",{href:"#",class:"font-semibold leading-6 text-primary-600 hover:text-primary-500 dark:text-primary-500 dark:hover:text-primary-600",onClick:I[10]||(I[10]=D=>r("changeLoginType","wechat"))},Re(N(Ae)("login.scanLogin")),1)])):Ze("",!0)])):Ze("",!0)]),_:1},8,["model"])):Ze("",!0)],2))}});function Ace(){return mt({url:"/user/genInviteCode"})}function Pce(e){return kt({url:"/user/inviteRecord",data:e})}function ene(e){return mt({url:"/official/getQRSceneStr",data:e})}function J4(e){return kt({url:"/official/getQRCode",data:e})}function tne(e){return mt({url:"/official/loginBySceneStr",data:e})}function rne(e){return mt({url:"/official/loginByCode",data:e})}function nne(e){return mt({url:"/official/getJsapiTicket",data:e})}function one(){return mt({url:"/official/getQRSceneStrByBind"})}function ine(e){return mt({url:"/official/bindWxBySceneStr",data:e})}function ane(e){return mt({url:"/official/getRedirectUrl",data:e})}function sne(e){return kt({url:"/user/inviteLink",data:e})}const lne={class:"sm:mx-auto sm:w-full sm:max-w-sm"},cne={class:"pt-5 pb-10 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900 dark:text-gray-300"},une={key:3,class:"mt-10 mb-5 text-center text-sm text-gray-500 dark:text-gray-400"},dne={key:4,class:"mt-10 mb-5 text-center text-sm text-gray-500 dark:text-gray-400"},fne=pe({__name:"Wechat",emits:["changeLoginType"],setup(e,{emit:t}){const r=M(),n=M(),o=t,i=M(""),a=M(""),s=M(!1),l=xn(),c=Cr(),u=M(),{isMobile:f}=vn(),d=R(()=>Number(c.globalConfig.phoneLoginStatus)===1),h=R(()=>Number(c.globalConfig.emailLoginStatus)===1),p=R(()=>{if(h.value&&d.value)return Ae("login.emailPhone");if(h.value)return Ae("login.email");if(d.value)return Ae("login.phone")});function g(x){return new Promise((S,C)=>{const w=new Image;w.onload=()=>S(w),w.onerror=C,w.src=x})}async function v(){const x={invitedBy:Nt.get("invitedBy")},S=await ene(x);S.success&&(a.value=S.data,b())}async function m(){if(!a.value)return;const x=await tne({sceneStr:a.value});x.data&&(clearInterval(r.value),l.success(Ae("login.loginSuccess")),c.setToken(x.data),c.getUserInfo(),c.setLoginDialog(!1),Nt.remove("invitedBy"))}async function b(){const x=await J4({sceneStr:a.value});x.success&&(s.value=!0,await g(x.data),i.value=x.data,r.value=setInterval(()=>{m()},1e3))}function y(){var x;v(),(x=u.value)==null||x.reset()}return _t(()=>{y(),n.value!==null&&clearInterval(n.value),n.value=setInterval(y,6e4)}),Ht(()=>{r.value!==null&&clearInterval(r.value),n.value!==null&&clearInterval(n.value)}),(x,S)=>(he(),Fe("div",{class:Kt(["w-full h-full flex flex-col items-center",N(f)?"px-10 py-10":"px-14 py-20"])},[re("div",lne,[re("h2",cne,Re(N(Ae)("login.wechatLogin")),1)]),i.value?(he(),rt(N(H_),{key:0,"preview-disabled":"",class:"w-[220px] h-[220px] select-none",src:i.value},null,8,["src"])):(he(),rt(N(vi),{key:1,height:"220px",width:"220px",animated:""})),i.value?Ze("",!0):(he(),rt(N(ed),{key:2,size:"large",class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"})),h.value||d.value?(he(),Fe("p",une,[pt(Re(N(Ae)("login.wechatScanFailed"))+" ",1),re("a",{href:"#",class:"font-semibold leading-6 text-primary-600 hover:text-primary-500 dark:text-primary-500 dark:hover:text-primary-600",onClick:S[0]||(S[0]=C=>o("changeLoginType","email"))},Re(p.value),1)])):(he(),Fe("p",dne,Re(N(Ae)("login.useWechatScan")),1))],2))}});const hne={key:0,class:"flex-1 bg-white flex justify-center items-center dark:bg-[#34373c] h-[600px]"},pne={key:1,class:"bg-white dark:bg-gray-800 shadow rounded-lg"},gne=pe({__name:"Login",props:{visible:{type:Boolean}},setup(e){let t;const r=Cr(),n=M(!1),o=M(""),i=M(""),a=M(null),s=M(!0),l=M("email"),{isMobile:c}=vn();R(()=>r.globalConfig.clientLogoPath);const u=R(()=>Number(r.globalConfig.emailLoginStatus)===1),f=R(()=>Number(r.globalConfig.wechatRegisterStatus)===1),d=R(()=>Number(r.globalConfig.phoneLoginStatus)===1),h=R(()=>!f.value&&!d.value&&!u.value);function p(){f.value||(s.value=!1,d.value&&v("phone"),u.value&&v("email"))}function g(){clearInterval(t),o.value="",i.value="",n.value=!1}function v(m){m==="wechat"?s.value=!0:(s.value=!1,l.value=m,Qt(()=>{var b;(b=a.value)==null||b.syncBarPosition()}))}return(m,b)=>(he(),rt(N(Ai),{show:m.visible,"on-after-enter":p,"on-after-leave":g,"transform-origin":"center",style:Jr(N(c)?{width:"95%"}:{width:"25rem",height:"35rem"})},{default:De(()=>[re("div",null,[me(N(xre),{size:"18",class:"absolute top-3 right-3 cursor-pointer z-30",onClick:b[0]||(b[0]=y=>N(r).setLoginDialog(!1))}),re("div",null,[h.value?(he(),Fe("div",hne,[me(N(jj),{size:"small",status:"403",title:"网站已经关闭注册通道",description:"请联系管理员开通吧"},{footer:De(()=>[me(N(gn),{size:"small",onClick:b[1]||(b[1]=y=>N(r).setLoginDialog(!1))},{default:De(()=>[pt(" 知道了 ")]),_:1})]),_:1})])):Ze("",!0),h.value?Ze("",!0):(he(),Fe("div",pne,[f.value&&s.value?(he(),rt(fne,{key:0,onChangeLoginType:v})):(he(),rt(Jre,{key:1,onChangeLoginType:v}))]))])])]),_:1},8,["show","style"]))}});function e3(e){return mt({url:"/order/buy",data:e})}function mne(e){return kt({url:"/order/queryByOrderId",data:e})}const xy="/assets/alipay-eab94eb8.png",yy="/assets/wxpay-2d8f84af.png";var Al={},vne=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},t3={},Wr={};let Ag;const bne=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Wr.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Wr.getSymbolTotalCodewords=function(t){return bne[t]};Wr.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Wr.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ag=t};Wr.isKanjiModeEnabled=function(){return typeof Ag<"u"};Wr.toSJIS=function(t){return Ag(t)};var _d={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,o){if(e.isValid(n))return n;try{return t(n)}catch{return o}}})(_d);function r3(){this.buffer=[],this.length=0}r3.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var xne=r3;function Pl(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Pl.prototype.set=function(e,t,r,n){const o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)};Pl.prototype.get=function(e,t){return this.data[e*this.size+t]};Pl.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};Pl.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var yne=Pl,n3={};(function(e){const t=Wr.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const o=Math.floor(n/7)+2,i=t(n),a=i===145?26:Math.ceil((i-13)/(2*o-2))*2,s=[i-7];for(let l=1;l<o-1;l++)s[l]=s[l-1]-a;return s.push(6),s.reverse()},e.getPositions=function(n){const o=[],i=e.getRowColCoords(n),a=i.length;for(let s=0;s<a;s++)for(let l=0;l<a;l++)s===0&&l===0||s===0&&l===a-1||s===a-1&&l===0||o.push([i[s],i[l]]);return o}})(n3);var o3={};const Cne=Wr.getSymbolSize,Cy=7;o3.getPositions=function(t){const r=Cne(t);return[[0,0],[r-Cy,0],[0,r-Cy]]};var i3={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let a=0,s=0,l=0,c=null,u=null;for(let f=0;f<i;f++){s=l=0,c=u=null;for(let d=0;d<i;d++){let h=o.get(f,d);h===c?s++:(s>=5&&(a+=t.N1+(s-5)),c=h,s=1),h=o.get(d,f),h===u?l++:(l>=5&&(a+=t.N1+(l-5)),u=h,l=1)}s>=5&&(a+=t.N1+(s-5)),l>=5&&(a+=t.N1+(l-5))}return a},e.getPenaltyN2=function(o){const i=o.size;let a=0;for(let s=0;s<i-1;s++)for(let l=0;l<i-1;l++){const c=o.get(s,l)+o.get(s,l+1)+o.get(s+1,l)+o.get(s+1,l+1);(c===4||c===0)&&a++}return a*t.N2},e.getPenaltyN3=function(o){const i=o.size;let a=0,s=0,l=0;for(let c=0;c<i;c++){s=l=0;for(let u=0;u<i;u++)s=s<<1&2047|o.get(c,u),u>=10&&(s===1488||s===93)&&a++,l=l<<1&2047|o.get(u,c),u>=10&&(l===1488||l===93)&&a++}return a*t.N3},e.getPenaltyN4=function(o){let i=0;const a=o.data.length;for(let l=0;l<a;l++)i+=o.data[l];return Math.abs(Math.ceil(i*100/a/5)-10)*t.N4};function r(n,o,i){switch(n){case e.Patterns.PATTERN000:return(o+i)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(o+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return o*i%2+o*i%3===0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2===0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(o,i){const a=i.size;for(let s=0;s<a;s++)for(let l=0;l<a;l++)i.isReserved(l,s)||i.xor(l,s,r(o,l,s))},e.getBestMask=function(o,i){const a=Object.keys(e.Patterns).length;let s=0,l=1/0;for(let c=0;c<a;c++){i(c),e.applyMask(c,o);const u=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(c,o),u<l&&(l=u,s=c)}return s}})(i3);var Ed={};const _o=_d,fc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],hc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Ed.getBlocksCount=function(t,r){switch(r){case _o.L:return fc[(t-1)*4+0];case _o.M:return fc[(t-1)*4+1];case _o.Q:return fc[(t-1)*4+2];case _o.H:return fc[(t-1)*4+3];default:return}};Ed.getTotalCodewordsCount=function(t,r){switch(r){case _o.L:return hc[(t-1)*4+0];case _o.M:return hc[(t-1)*4+1];case _o.Q:return hc[(t-1)*4+2];case _o.H:return hc[(t-1)*4+3];default:return}};var a3={},kd={};const Ts=new Uint8Array(512),mu=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)Ts[r]=t,mu[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)Ts[r]=Ts[r-255]})();kd.log=function(t){if(t<1)throw new Error("log("+t+")");return mu[t]};kd.exp=function(t){return Ts[t]};kd.mul=function(t,r){return t===0||r===0?0:Ts[mu[t]+mu[r]]};(function(e){const t=kd;e.mul=function(n,o){const i=new Uint8Array(n.length+o.length-1);for(let a=0;a<n.length;a++)for(let s=0;s<o.length;s++)i[a+s]^=t.mul(n[a],o[s]);return i},e.mod=function(n,o){let i=new Uint8Array(n);for(;i.length-o.length>=0;){const a=i[0];for(let l=0;l<o.length;l++)i[l]^=t.mul(o[l],a);let s=0;for(;s<i.length&&i[s]===0;)s++;i=i.slice(s)}return i},e.generateECPolynomial=function(n){let o=new Uint8Array([1]);for(let i=0;i<n;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}})(a3);const s3=a3;function Pg(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Pg.prototype.initialize=function(t){this.degree=t,this.genPoly=s3.generateECPolynomial(this.degree)};Pg.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const n=s3.mod(r,this.genPoly),o=this.degree-n.length;if(o>0){const i=new Uint8Array(this.degree);return i.set(n,o),i}return n};var wne=Pg,l3={},jo={},$g={};$g.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var zn={};const c3="[0-9]+",Sne="[A-Z $%*+\\-./:]+";let al="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";al=al.replace(/u/g,"\\u");const _ne="(?:(?![A-Z0-9 $%*+\\-./:]|"+al+`)(?:.|[\r
]))+`;zn.KANJI=new RegExp(al,"g");zn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");zn.BYTE=new RegExp(_ne,"g");zn.NUMERIC=new RegExp(c3,"g");zn.ALPHANUMERIC=new RegExp(Sne,"g");const Ene=new RegExp("^"+al+"$"),kne=new RegExp("^"+c3+"$"),Tne=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");zn.testKanji=function(t){return Ene.test(t)};zn.testNumeric=function(t){return kne.test(t)};zn.testAlphanumeric=function(t){return Tne.test(t)};(function(e){const t=$g,r=zn;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function n(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(i,a){if(e.isValid(i))return i;try{return n(i)}catch{return a}}})(jo);(function(e){const t=Wr,r=Ed,n=_d,o=jo,i=$g,a=7973,s=t.getBCHDigit(a);function l(d,h,p){for(let g=1;g<=40;g++)if(h<=e.getCapacity(g,p,d))return g}function c(d,h){return o.getCharCountIndicator(d,h)+4}function u(d,h){let p=0;return d.forEach(function(g){const v=c(g.mode,h);p+=v+g.getBitsLength()}),p}function f(d,h){for(let p=1;p<=40;p++)if(u(d,p)<=e.getCapacity(p,h,o.MIXED))return p}e.from=function(h,p){return i.isValid(h)?parseInt(h,10):p},e.getCapacity=function(h,p,g){if(!i.isValid(h))throw new Error("Invalid QR Code version");typeof g>"u"&&(g=o.BYTE);const v=t.getSymbolTotalCodewords(h),m=r.getTotalCodewordsCount(h,p),b=(v-m)*8;if(g===o.MIXED)return b;const y=b-c(g,h);switch(g){case o.NUMERIC:return Math.floor(y/10*3);case o.ALPHANUMERIC:return Math.floor(y/11*2);case o.KANJI:return Math.floor(y/13);case o.BYTE:default:return Math.floor(y/8)}},e.getBestVersionForData=function(h,p){let g;const v=n.from(p,n.M);if(Array.isArray(h)){if(h.length>1)return f(h,v);if(h.length===0)return 1;g=h[0]}else g=h;return l(g.mode,g.getLength(),v)},e.getEncodedBits=function(h){if(!i.isValid(h)||h<7)throw new Error("Invalid QR Code version");let p=h<<12;for(;t.getBCHDigit(p)-s>=0;)p^=a<<t.getBCHDigit(p)-s;return h<<12|p}})(l3);var u3={};const kh=Wr,d3=1335,Ane=21522,wy=kh.getBCHDigit(d3);u3.getEncodedBits=function(t,r){const n=t.bit<<3|r;let o=n<<10;for(;kh.getBCHDigit(o)-wy>=0;)o^=d3<<kh.getBCHDigit(o)-wy;return(n<<10|o)^Ane};var f3={};const Pne=jo;function Ba(e){this.mode=Pne.NUMERIC,this.data=e.toString()}Ba.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Ba.prototype.getLength=function(){return this.data.length};Ba.prototype.getBitsLength=function(){return Ba.getBitsLength(this.data.length)};Ba.prototype.write=function(t){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),t.put(o,10);const i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),t.put(o,i*3+1))};var $ne=Ba;const Ine=jo,o0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Oa(e){this.mode=Ine.ALPHANUMERIC,this.data=e}Oa.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Oa.prototype.getLength=function(){return this.data.length};Oa.prototype.getBitsLength=function(){return Oa.getBitsLength(this.data.length)};Oa.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=o0.indexOf(this.data[r])*45;n+=o0.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(o0.indexOf(this.data[r]),6)};var Dne=Oa,Bne=function(t){for(var r=[],n=t.length,o=0;o<n;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var a=t.charCodeAt(o+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const One=Bne,Lne=jo;function La(e){this.mode=Lne.BYTE,typeof e=="string"&&(e=One(e)),this.data=new Uint8Array(e)}La.getBitsLength=function(t){return t*8};La.prototype.getLength=function(){return this.data.length};La.prototype.getBitsLength=function(){return La.getBitsLength(this.data.length)};La.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var Rne=La;const Fne=jo,Mne=Wr;function Ra(e){this.mode=Fne.KANJI,this.data=e}Ra.getBitsLength=function(t){return t*13};Ra.prototype.getLength=function(){return this.data.length};Ra.prototype.getBitsLength=function(){return Ra.getBitsLength(this.data.length)};Ra.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=Mne.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var zne=Ra,h3={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,n,o){var i={},a={};a[n]=0;var s=t.PriorityQueue.make();s.push(n,0);for(var l,c,u,f,d,h,p,g,v;!s.empty();){l=s.pop(),c=l.value,f=l.cost,d=r[c]||{};for(u in d)d.hasOwnProperty(u)&&(h=d[u],p=f+h,g=a[u],v=typeof a[u]>"u",(v||g>p)&&(a[u]=p,s.push(u,p),i[u]=c))}if(typeof o<"u"&&typeof a[o]>"u"){var m=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(m)}return i},extract_shortest_path_from_predecessor_list:function(r,n){for(var o=[],i=n;i;)o.push(i),r[i],i=r[i];return o.reverse(),o},find_path:function(r,n,o){var i=t.single_source_shortest_paths(r,n,o);return t.extract_shortest_path_from_predecessor_list(i,o)},PriorityQueue:{make:function(r){var n=t.PriorityQueue,o={},i;r=r||{};for(i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);return o.queue=[],o.sorter=r.sorter||n.default_sorter,o},default_sorter:function(r,n){return r.cost-n.cost},push:function(r,n){var o={value:r,cost:n};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(h3);var Nne=h3.exports;(function(e){const t=jo,r=$ne,n=Dne,o=Rne,i=zne,a=zn,s=Wr,l=Nne;function c(m){return unescape(encodeURIComponent(m)).length}function u(m,b,y){const x=[];let S;for(;(S=m.exec(y))!==null;)x.push({data:S[0],index:S.index,mode:b,length:S[0].length});return x}function f(m){const b=u(a.NUMERIC,t.NUMERIC,m),y=u(a.ALPHANUMERIC,t.ALPHANUMERIC,m);let x,S;return s.isKanjiModeEnabled()?(x=u(a.BYTE,t.BYTE,m),S=u(a.KANJI,t.KANJI,m)):(x=u(a.BYTE_KANJI,t.BYTE,m),S=[]),b.concat(y,x,S).sort(function(w,k){return w.index-k.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function d(m,b){switch(b){case t.NUMERIC:return r.getBitsLength(m);case t.ALPHANUMERIC:return n.getBitsLength(m);case t.KANJI:return i.getBitsLength(m);case t.BYTE:return o.getBitsLength(m)}}function h(m){return m.reduce(function(b,y){const x=b.length-1>=0?b[b.length-1]:null;return x&&x.mode===y.mode?(b[b.length-1].data+=y.data,b):(b.push(y),b)},[])}function p(m){const b=[];for(let y=0;y<m.length;y++){const x=m[y];switch(x.mode){case t.NUMERIC:b.push([x,{data:x.data,mode:t.ALPHANUMERIC,length:x.length},{data:x.data,mode:t.BYTE,length:x.length}]);break;case t.ALPHANUMERIC:b.push([x,{data:x.data,mode:t.BYTE,length:x.length}]);break;case t.KANJI:b.push([x,{data:x.data,mode:t.BYTE,length:c(x.data)}]);break;case t.BYTE:b.push([{data:x.data,mode:t.BYTE,length:c(x.data)}])}}return b}function g(m,b){const y={},x={start:{}};let S=["start"];for(let C=0;C<m.length;C++){const w=m[C],k=[];for(let A=0;A<w.length;A++){const T=w[A],I=""+C+A;k.push(I),y[I]={node:T,lastCount:0},x[I]={};for(let D=0;D<S.length;D++){const B=S[D];y[B]&&y[B].node.mode===T.mode?(x[B][I]=d(y[B].lastCount+T.length,T.mode)-d(y[B].lastCount,T.mode),y[B].lastCount+=T.length):(y[B]&&(y[B].lastCount=T.length),x[B][I]=d(T.length,T.mode)+4+t.getCharCountIndicator(T.mode,b))}}S=k}for(let C=0;C<S.length;C++)x[S[C]].end=0;return{map:x,table:y}}function v(m,b){let y;const x=t.getBestModeForData(m);if(y=t.from(b,x),y!==t.BYTE&&y.bit<x.bit)throw new Error('"'+m+'" cannot be encoded with mode '+t.toString(y)+`.
Suggested mode is: `+t.toString(x));switch(y===t.KANJI&&!s.isKanjiModeEnabled()&&(y=t.BYTE),y){case t.NUMERIC:return new r(m);case t.ALPHANUMERIC:return new n(m);case t.KANJI:return new i(m);case t.BYTE:return new o(m)}}e.fromArray=function(b){return b.reduce(function(y,x){return typeof x=="string"?y.push(v(x,null)):x.data&&y.push(v(x.data,x.mode)),y},[])},e.fromString=function(b,y){const x=f(b,s.isKanjiModeEnabled()),S=p(x),C=g(S,y),w=l.find_path(C.map,"start","end"),k=[];for(let A=1;A<w.length-1;A++)k.push(C.table[w[A]].node);return e.fromArray(h(k))},e.rawSplit=function(b){return e.fromArray(f(b,s.isKanjiModeEnabled()))}})(f3);const Td=Wr,i0=_d,Hne=xne,jne=yne,Wne=n3,Une=o3,Th=i3,Ah=Ed,Vne=wne,vu=l3,Gne=u3,qne=jo,a0=f3;function Yne(e,t){const r=e.size,n=Une.getPositions(t);for(let o=0;o<n.length;o++){const i=n[o][0],a=n[o][1];for(let s=-1;s<=7;s++)if(!(i+s<=-1||r<=i+s))for(let l=-1;l<=7;l++)a+l<=-1||r<=a+l||(s>=0&&s<=6&&(l===0||l===6)||l>=0&&l<=6&&(s===0||s===6)||s>=2&&s<=4&&l>=2&&l<=4?e.set(i+s,a+l,!0,!0):e.set(i+s,a+l,!1,!0))}}function Kne(e){const t=e.size;for(let r=8;r<t-8;r++){const n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function Xne(e,t){const r=Wne.getPositions(t);for(let n=0;n<r.length;n++){const o=r[n][0],i=r[n][1];for(let a=-2;a<=2;a++)for(let s=-2;s<=2;s++)a===-2||a===2||s===-2||s===2||a===0&&s===0?e.set(o+a,i+s,!0,!0):e.set(o+a,i+s,!1,!0)}}function Qne(e,t){const r=e.size,n=vu.getEncodedBits(t);let o,i,a;for(let s=0;s<18;s++)o=Math.floor(s/3),i=s%3+r-8-3,a=(n>>s&1)===1,e.set(o,i,a,!0),e.set(i,o,a,!0)}function s0(e,t,r){const n=e.size,o=Gne.getEncodedBits(t,r);let i,a;for(i=0;i<15;i++)a=(o>>i&1)===1,i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(n-15+i,8,a,!0),i<8?e.set(8,n-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(n-8,8,1,!0)}function Zne(e,t){const r=e.size;let n=-1,o=r-1,i=7,a=0;for(let s=r-1;s>0;s-=2)for(s===6&&s--;;){for(let l=0;l<2;l++)if(!e.isReserved(o,s-l)){let c=!1;a<t.length&&(c=(t[a]>>>i&1)===1),e.set(o,s-l,c),i--,i===-1&&(a++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function Jne(e,t,r){const n=new Hne;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),qne.getCharCountIndicator(l.mode,e)),l.write(n)});const o=Td.getSymbolTotalCodewords(e),i=Ah.getTotalCodewordsCount(e,t),a=(o-i)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const s=(a-n.getLengthInBits())/8;for(let l=0;l<s;l++)n.put(l%2?17:236,8);return eoe(n,e,t)}function eoe(e,t,r){const n=Td.getSymbolTotalCodewords(t),o=Ah.getTotalCodewordsCount(t,r),i=n-o,a=Ah.getBlocksCount(t,r),s=n%a,l=a-s,c=Math.floor(n/a),u=Math.floor(i/a),f=u+1,d=c-u,h=new Vne(d);let p=0;const g=new Array(a),v=new Array(a);let m=0;const b=new Uint8Array(e.buffer);for(let w=0;w<a;w++){const k=w<l?u:f;g[w]=b.slice(p,p+k),v[w]=h.encode(g[w]),p+=k,m=Math.max(m,k)}const y=new Uint8Array(n);let x=0,S,C;for(S=0;S<m;S++)for(C=0;C<a;C++)S<g[C].length&&(y[x++]=g[C][S]);for(S=0;S<d;S++)for(C=0;C<a;C++)y[x++]=v[C][S];return y}function toe(e,t,r,n){let o;if(Array.isArray(e))o=a0.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const u=a0.rawSplit(e);c=vu.getBestVersionForData(u,r)}o=a0.fromString(e,c||40)}else throw new Error("Invalid data");const i=vu.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+i+`.
`);const a=Jne(t,r,o),s=Td.getSymbolSize(t),l=new jne(s);return Yne(l,t),Kne(l),Xne(l,t),s0(l,r,0),t>=7&&Qne(l,t),Zne(l,a),isNaN(n)&&(n=Th.getBestMask(l,s0.bind(null,l,r))),Th.applyMask(n,l),s0(l,r,n),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:n,segments:o}}t3.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=i0.M,o,i;return typeof r<"u"&&(n=i0.from(r.errorCorrectionLevel,i0.M),o=vu.from(r.version),i=Th.from(r.maskPattern),r.toSJISFunc&&Td.setToSJISFunction(r.toSJISFunc)),toe(t,o,n,i)};var p3={},Ig={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let n=r.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+r);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const o=parseInt(n.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const o=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:i,scale:i?4:a,margin:o,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,o){return o.width&&o.width>=n+o.margin*2?o.width/(n+o.margin*2):o.scale},e.getImageWidth=function(n,o){const i=e.getScale(n,o);return Math.floor((n+o.margin*2)*i)},e.qrToImageData=function(n,o,i){const a=o.modules.size,s=o.modules.data,l=e.getScale(a,i),c=Math.floor((a+i.margin*2)*l),u=i.margin*l,f=[i.color.light,i.color.dark];for(let d=0;d<c;d++)for(let h=0;h<c;h++){let p=(d*c+h)*4,g=i.color.light;if(d>=u&&h>=u&&d<c-u&&h<c-u){const v=Math.floor((d-u)/l),m=Math.floor((h-u)/l);g=f[s[v*a+m]?1:0]}n[p++]=g.r,n[p++]=g.g,n[p++]=g.b,n[p]=g.a}}})(Ig);(function(e){const t=Ig;function r(o,i,a){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=a,i.width=a,i.style.height=a+"px",i.style.width=a+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,a,s){let l=s,c=a;typeof l>"u"&&(!a||!a.getContext)&&(l=a,a=void 0),a||(c=n()),l=t.getOptions(l);const u=t.getImageWidth(i.modules.size,l),f=c.getContext("2d"),d=f.createImageData(u,u);return t.qrToImageData(d.data,i,l),r(f,c,u),f.putImageData(d,0,0),c},e.renderToDataURL=function(i,a,s){let l=s;typeof l>"u"&&(!a||!a.getContext)&&(l=a,a=void 0),l||(l={});const c=e.render(i,a,l),u=l.type||"image/png",f=l.rendererOpts||{};return c.toDataURL(u,f.quality)}})(p3);var g3={};const roe=Ig;function Sy(e,t){const r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function l0(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function noe(e,t,r){let n="",o=0,i=!1,a=0;for(let s=0;s<e.length;s++){const l=Math.floor(s%t),c=Math.floor(s/t);!l&&!i&&(i=!0),e[s]?(a++,s>0&&l>0&&e[s-1]||(n+=i?l0("M",l+r,.5+c+r):l0("m",o,0),o=0,i=!1),l+1<t&&e[s+1]||(n+=l0("h",a),a=0)):o++}return n}g3.render=function(t,r,n){const o=roe.getOptions(r),i=t.modules.size,a=t.modules.data,s=i+o.margin*2,l=o.color.light.a?"<path "+Sy(o.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",c="<path "+Sy(o.color.dark,"stroke")+' d="'+noe(a,i,o.margin)+'"/>',u='viewBox="0 0 '+s+" "+s+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+u+' shape-rendering="crispEdges">'+l+c+`</svg>
`;return typeof n=="function"&&n(null,d),d};const ooe=vne,Ph=t3,m3=p3,ioe=g3;function Dg(e,t,r,n,o){const i=[].slice.call(arguments,1),a=i.length,s=typeof i[a-1]=="function";if(!s&&!ooe())throw new Error("Callback required as last argument");if(s){if(a<2)throw new Error("Too few arguments provided");a===2?(o=r,r=t,t=n=void 0):a===3&&(t.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(r=t,t=n=void 0):a===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(l,c){try{const u=Ph.create(r,n);l(e(u,t,n))}catch(u){c(u)}})}try{const l=Ph.create(r,n);o(null,e(l,t,n))}catch(l){o(l)}}Al.create=Ph.create;Al.toCanvas=Dg.bind(null,m3.render);Al.toDataURL=Dg.bind(null,m3.renderToDataURL);Al.toString=Dg.bind(null,function(e,t,r){return ioe.render(e,r)});function aoe(e,t){const r=_te(e),n=M("");return Je(r,async o=>{r.value&&Q4&&(n.value=await Al.toDataURL(o,t))},{immediate:!0}),n}const soe=["src"],loe=pe({__name:"index",props:{value:{default:""},size:{default:160},color:{default:"#000"},backgroundColor:{default:"#FFF"},bordered:{type:Boolean,default:!0},borderColor:{default:"#0505050f"},scale:{default:8},errorLevel:{default:"H"}},setup(e){const t=e,r=aoe(t.value,{errorCorrectionLevel:t.errorLevel,type:"image/png",quality:1,margin:3,scale:t.scale,color:{dark:t.color,light:t.backgroundColor}});return(n,o)=>(he(),Fe("div",{class:Kt(["m-qrcode",{bordered:n.bordered}]),style:Jr(`width: ${n.size}px; height: ${n.size}px; border-color: ${n.borderColor};`)},[re("img",{src:N(r),class:"u-qrcode",alt:"QRCode"},null,8,soe)],6))}});const _y=kg(loe,[["__scopeId","data-v-56c01def"]]),coe={class:"p-4 bg-white rounded dark:bg-slate-800"},uoe={class:"flex text-xl font-bold mb-[20px] bg-currentflex items-center"},doe={class:"ml-[8px]"},foe={class:"p-4"},hoe={class:"whitespace-nowrap font-bold"},poe={class:"text-xl text-[red] font-bold"},goe={class:"mt-2 flex"},moe={class:"whitespace-nowrap font-bold"},voe={class:"ml-2"},boe={class:"mt-2 flex"},xoe={class:"whitespace-nowrap font-bold"},yoe={class:"ml-2"},Coe={class:"flex items-center justify-center my-3 relative"},woe=["src"],Soe=["src"],_oe={class:"mb-10 mt-5 text-base"},Eoe=["src"],koe=["src"],Toe={key:0,class:"flex items-center justify-center text-lg"},Aoe={class:"w-[60px] inline-block text-[red] text-left"},Poe={class:"flex items-center"},$oe=["src"],Ioe=1e3,Doe=pe({__name:"PayDialog",props:{visible:{type:Boolean}},setup(e){const{isMobile:t}=vn(),r=Cr(),n=bd(),o=xn(),i=M(!0),a=M("wxpay"),s=R(()=>{var D;const I=window.navigator.userAgent.toLowerCase();return I.match(/MicroMessenger/i)&&((D=I==null?void 0:I.match(/MicroMessenger/i))==null?void 0:D[0])==="micromessenger"}),l=R(()=>{const{payHupiStatus:I,payEpayStatus:D,payMpayStatus:B,payWechatStatus:j,payLtzfStatus:F}=r.globalConfig;return Number(j)===1?"wechat":Number(D)===1?"epay":Number(B)===1?"mpay":Number(I)===1?"hupi":Number(F)===1?"ltzf":null}),c=R(()=>{const{payEpayChannel:I,payMpayChannel:D}=r.globalConfig;return l.value==="mpay"?D?JSON.parse(D):[]:l.value==="epay"?I?JSON.parse(I):[]:l.value==="wechat"?["wxpay"]:l.value==="hupi"?["wxpay"]:l.value==="ltzf"?["wxpay"]:[]}),u=R(()=>a.value==="wxpay"?Ae("pay.wechat"):Ae("pay.alipay")),f=M(),d=R(()=>{const{payEpayApiPayUrl:I}=r.globalConfig;return l.value==="epay"&&I.includes("submit")||l.value==="mpay"});Je(a,()=>{var I;w(),(I=f.value)==null||I.reset()});const h=M("");let p;const g=R(()=>[{label:Ae("pay.wechatPay"),value:"wxpay",icon:yy,payChannel:"wxpay"},{label:Ae("pay.alipayPay"),value:"alipay",icon:xy,payChannel:"alipay"}].filter(I=>c.value.includes(I.payChannel))),v=async()=>{if(!h.value)return;const I=await mne({orderId:h.value}),{success:D,data:B}=I;if(D){const{status:j}=B;j===1&&(clearInterval(p),o.success(Ae("pay.paymentSuccess")),i.value=!1,r.getUserInfo(),setTimeout(()=>{n.updatePayDialog(!1)},2e3))}},m=R(()=>n==null?void 0:n.orderInfo),b=M(""),y=M(!0),x=M(!0),S=M("");function C(){n.updateOrderInfo({}),clearInterval(p)}async function w(){!d.value&&(y.value=!0),d.value&&(x.value=!0);let I=null;I=a.value,l.value==="wechat"&&(I=s.value?"jsapi":"native");try{const D=await e3({goodsId:m.value.pkgInfo.id,payType:I}),{data:B,success:j,message:F}=D;if(!j)return o.error(F);const{url_qrcode:z,orderId:V,redirectUrl:oe}=B;S.value=oe,h.value=V,b.value=z,y.value=!1,x.value=!1}catch{n.updatePayDialog(!1),y.value=!1,x.value=!1}}function k(){window.open(S.value)}async function A(){await w(),p=setInterval(()=>{v()},Ioe)}function T(){o.error(Ae("pay.paymentTimeout")),clearInterval(p),n.updatePayDialog(!1)}return(I,D)=>(he(),rt(N(Ai),{show:I.visible,style:{width:"90%","max-width":"750px"},"on-after-enter":A,"on-after-leave":C},{default:De(()=>{var B,j,F;return[re("div",coe,[re("div",{class:"flex justify-between",onClick:D[0]||(D[0]=z=>N(n).updatePayDialog(!1))},[re("div",uoe,[me(N(Sa),{size:"25",color:"#0e7a0d"},{default:De(()=>[me(N(Z4))]),_:1}),re("span",doe,Re(N(Ae)("pay.productPayment")),1)]),me(N(Sa),{size:"20",color:"#0e7a0d",class:"cursor-pointer"},{default:De(()=>[me(N(Tg))]),_:1})]),re("div",foe,[re("div",null,[re("span",hoe,Re(N(Ae)("pay.amountDue")),1),re("i",poe,Re(`${(B=m.value.pkgInfo)==null?void 0:B.price}`),1)]),re("div",goe,[re("span",moe,Re(N(Ae)("pay.packageName")),1),re("span",voe,Re((j=m.value.pkgInfo)==null?void 0:j.name),1)]),re("div",boe,[re("span",xoe,Re(N(Ae)("pay.packageDescription")),1),re("span",yoe,Re((F=m.value.pkgInfo)==null?void 0:F.des),1)]),re("div",{class:Kt(["flex justify-center",[N(t)?"flex-col":"flex-row",d.value?"flex-row-reverse":""]])},[re("div",null,[re("div",Coe,[y.value&&!d.value?(he(),rt(N(ed),{key:0,size:"large",class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"})):Ze("",!0),y.value?(he(),rt(N(vi),{key:1,width:240,height:240,sharp:!1,size:"medium"})):Ze("",!0),l.value==="epay"&&!y.value&&!x.value&&!d.value?(he(),rt(_y,{key:2,value:b.value,size:240},null,8,["value"])):Ze("",!0),a.value==="wxpay"&&!y.value&&!d.value?(he(),Fe("img",{key:3,src:N(yy),class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 w-10 bg-[#fff]"},null,8,woe)):Ze("",!0),a.value==="alipay"&&!y.value&&!d.value?(he(),Fe("img",{key:4,src:N(xy),class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 w-10 bg-[#fff]"},null,8,Soe)):Ze("",!0),l.value==="wechat"&&!y.value?(he(),rt(_y,{key:5,value:b.value,size:240},null,8,["value"])):Ze("",!0),d.value?(he(),Fe("div",{key:6,class:Kt(["flex flex-col",[d.value&&N(t)?"ml-0":"ml-20"]])},[re("span",_oe,Re(N(Ae)("pay.siteAdminEnabledRedirect")),1),d.value?(he(),rt(N(gn),{key:0,type:"primary",ghost:"",disabled:x.value,loading:x.value,onClick:k},{default:De(()=>[pt(Re(N(Ae)("pay.clickToPay")),1)]),_:1},8,["disabled","loading"])):Ze("",!0)],2)):Ze("",!0),l.value==="hupi"&&!x.value?(he(),Fe("iframe",{key:7,class:"w-[280px] h-[280px] scale-90",src:b.value,frameborder:"0"},null,8,Eoe)):Ze("",!0),l.value==="ltzf"&&!x.value?(he(),Fe("img",{key:8,src:b.value,class:"w-[280px] h-[280px] scale-90",alt:"QRCode"},null,8,koe)):Ze("",!0)]),d.value?Ze("",!0):(he(),Fe("span",Toe,Re(N(Ae)("pay.open"))+" "+Re(u.value)+" "+Re(N(Ae)("pay.scanToPay")),1))]),re("div",{class:Kt(["flex flex-col",[N(t)?"w-full ":" ml-10 w-[200] "]])},[re("div",{style:{"white-space":"nowrap"},class:Kt(["mt-6 w-full text-center font-bold text-sm",[N(t)?"mb-2":"mb-10"]])},[pt(Re(N(Ae)("pay.completePaymentWithin"))+" ",1),re("span",Aoe,[me(N(mS),{ref_key:"countdownRef",ref:f,active:i.value,duration:300*1e3,"on-finish":T},null,8,["active"])]),pt(" "+Re(N(Ae)("pay.timeToCompletePayment")),1)],2),me(N(k9),{value:a.value,"onUpdate:value":D[1]||(D[1]=z=>a.value=z),name:"radiogroup",class:"flex"},{default:De(()=>[me(N(Zu),{vertical:!N(t),justify:"center",size:N(t)?10:35,class:"w-full"},{default:De(()=>[(he(!0),Fe(ot,null,Fs(g.value,z=>(he(),rt(N(w9),{key:z.value,value:z.value},{default:De(()=>[re("div",Poe,[re("img",{class:"h-4 object-contain mr-2",src:z.icon,alt:""},null,8,$oe),pt(" "+Re(z.label),1)])]),_:2},1032,["value"]))),128))]),_:1},8,["vertical","size"])]),_:1},8,["value"])],2)],2)])])]}),_:1},8,["show"]))}});function $ce(e){return mt({url:"/crami/useCrami",data:e})}function Boe(e){return kt({url:"/crami/queryAllPackage",data:e})}const Ooe="/assets/preferential-0ee5bc79.png",Loe={class:"p-4 bg-white rounded dark:bg-slate-800 max-h-4/5"},Roe={class:"flex cursor-pointer justify-between"},Foe={class:"text-xl"},Moe={key:0,class:"p-4"},zoe={class:"relative"},Noe=["src"],Hoe=["src"],joe={class:"flex justify-between items-end min-h-28"},Woe={class:"text-sm font-bold mr-1 w-[120px]"},Uoe={class:"font-bold"},Voe={class:"flex justify-between items-end min-h-28"},Goe={class:"text-sm font-bold mr-1 w-[120px]"},qoe={class:"font-bold"},Yoe={class:"flex justify-between items-end min-h-28"},Koe={class:"text-sm font-bold mr-1 w-[120px]"},Xoe={class:"font-bold"},Qoe={class:"flex justify-between items-end mt-5"},Zoe={class:"text-xl text-[red] font-bold"},Joe={key:1,class:"p-4"},eie=pe({__name:"GoodsDialog",props:{visible:{type:Boolean}},setup(e){const t=Cr(),r=zo(),n=M(!0),{isSmallMd:o}=vn(),i=M([]),a=xn(),s=YS(),l=M(!1),c=R(()=>{var x;const y=window.navigator.userAgent.toLowerCase();return y.match(/MicroMessenger/i)&&((x=y==null?void 0:y.match(/MicroMessenger/i))==null?void 0:x[0])==="micromessenger"}),u=R(()=>{const{payHupiStatus:y,payEpayStatus:x,payMpayStatus:S,payWechatStatus:C,payLtzfStatus:w}=t.globalConfig;return Number(C)===1?"wechat":Number(S)===1?"mpay":Number(y)===1?"hupi":Number(x)===1?"epay":Number(w)===1?"ltzf":null}),f=R(()=>{const{payEpayChannel:y,payMpayChannel:x}=t.globalConfig;return u.value==="mpay"?x?JSON.parse(x):[]:u.value==="epay"?y?JSON.parse(y):[]:u.value==="wechat"?["wxpay"]:u.value==="hupi"?["wxpay"]:u.value==="ltzf"?["wxpay"]:[]});function d(){m(),c.value&&p()}function h(){i.value=[],n.value=!0}async function p(){const y=window.location.href.replace(/#.*$/,""),x=await nne({url:y}),{appId:S,nonceStr:C,timestamp:w,signature:k}=x.data;S&&(wx.config({debug:!1,appId:S,timestamp:w,nonceStr:C,signature:k,jsApiList:["chooseWXPay"]}),wx.ready(()=>{}),wx.error(()=>{}))}function g(y){const{appId:x,timeStamp:S,nonceStr:C,package:w,signType:k,paySign:A}=y;WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:x,timeStamp:S,nonceStr:C,package:w,signType:k,paySign:A},T=>{T.err_msg==="get_brand_wcpay_request:ok"?(a.success(Ae("goods.purchaseSuccess")),setTimeout(()=>{t.getUserInfo(),r.updateGoodsDialog(!1)},500)):a.success(Ae("goods.paymentNotSuccessful"))})}async function v(y){if(!l.value){if(c.value&&u.value==="wechat"&&Number(t.globalConfig.payWechatStatus)===1){if(typeof WeixinJSBridge>"u")document.addEventListener?document.addEventListener("WeixinJSBridgeReady",g,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",g),document.attachEvent("onWeixinJSBridgeReady",g));else{const x=await e3({goodsId:y.id,payType:"jsapi"}),{success:S,data:C}=x;S&&g(C)}return}r.updateOrderInfo({pkgInfo:y}),r.updateGoodsDialog(!1),r.updatePayDialog(!0)}}async function m(){n.value=!0;try{const y=await Boe({status:1,size:30});i.value=y.data.rows,n.value=!1}catch{n.value=!1}}function b(y){const{name:x}=y;s.success({title:Ae("goods.orderConfirmationTitle"),content:Ae("goods.orderConfirmationContent")+x,negativeText:Ae("goods.thinkAgain"),positiveText:Ae("goods.confirmPurchase"),onPositiveClick:()=>{f.value.length||a.warning(Ae("goods.paymentNotEnabled")),v(y)}})}return(y,x)=>(he(),rt(N(Ai),{show:y.visible,style:Jr({maxWidth:`${i.value.length>4?1200:i.value.length*250}px`,minWidth:N(o)?"100%":"1000px"}),"on-after-enter":d,"on-after-leave":h},{default:De(()=>[re("div",Loe,[re("div",Roe,[re("span",Foe,Re(N(Ae)("goods.selectProducts")),1),me(N(Sa),{size:"20",color:"#0e7a0d",onClick:x[0]||(x[0]=S=>N(r).updateGoodsDialog(!1))},{default:De(()=>[me(N(Tg))]),_:1})]),n.value?Ze("",!0):(he(),Fe("div",Moe,[me(N(g1),{"x-gap":15,"y-gap":15,cols:N(o)?1:i.value.length>4?4:i.value.length,class:"mt-3"},{default:De(()=>[(he(!0),Fe(ot,null,Fs(i.value,(S,C)=>(he(),rt(N(p1),{key:C},{default:De(()=>[me(N(Yu),{size:"small",embedded:""},{header:De(()=>[re("div",zoe,[re("b",null,Re(S.name),1),S.extraReward===1?(he(),Fe("img",{key:0,src:N(Ooe),class:"w-8 absolute -right-4 -top-3"},null,8,Noe)):Ze("",!0)])]),cover:De(()=>[re("img",{src:S.coverImg,class:"h-[130px] object-cover"},null,8,Hoe)]),default:De(()=>[re("div",null,[re("p",null,Re(S.des),1),re("div",joe,[re("span",Woe,Re(N(Ae)("goods.basicModelQuota")),1),re("span",Uoe,Re(S.model3Count),1)]),re("div",Voe,[re("span",Goe,Re(N(Ae)("goods.advancedModelQuota")),1),re("span",qoe,Re(S.model4Count),1)]),re("div",Yoe,[re("span",Koe,Re(N(Ae)("goods.drawingQuota")),1),re("span",Xoe,Re(S.drawMjCount),1)]),re("div",Qoe,[re("i",Zoe,Re(`${S.price}`),1),me(N(gn),{type:"primary",dashed:"",size:"small",onClick:w=>b(S)},{default:De(()=>[pt(Re(N(Ae)("goods.buyPackage")),1)]),_:2},1032,["onClick"])])])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["cols"])])),n.value?(he(),Fe("div",Joe,[me(N(g1),{"x-gap":15,"y-gap":15,cols:N(o)?1:4,class:"mt-3"},{default:De(()=>[(he(),Fe(ot,null,Fs(4,S=>me(N(p1),{key:S},{default:De(()=>[me(N(Zu),{vertical:""},{default:De(()=>[me(N(vi),{height:"130px",width:"100%"}),me(N(vi),{height:"210px",width:"100%",sharp:!1})]),_:1})]),_:2},1024)),64))]),_:1},8,["cols"])])):Ze("",!0)])]),_:1},8,["show","style"]))}});function tie(){return kt({url:"/config/notice"})}function v3(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Bi=v3();function rie(e){Bi=e}const b3=/[&<>"']/,nie=new RegExp(b3.source,"g"),x3=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,oie=new RegExp(x3.source,"g"),iie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ey=e=>iie[e];function mr(e,t){if(t){if(b3.test(e))return e.replace(nie,Ey)}else if(x3.test(e))return e.replace(oie,Ey);return e}const aie=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function y3(e){return e.replace(aie,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const sie=/(^|[^\[])\^/g;function Et(e,t){e=typeof e=="string"?e:e.source,t=t||"";const r={replace:(n,o)=>(o=o.source||o,o=o.replace(sie,"$1"),e=e.replace(n,o),r),getRegex:()=>new RegExp(e,t)};return r}const lie=/[^\w:]/g,cie=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ky(e,t,r){if(e){let n;try{n=decodeURIComponent(y3(r)).replace(lie,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}t&&!cie.test(r)&&(r=hie(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const pc={},uie=/^[^:]+:\/*[^/]*$/,die=/^([^:]+:)[\s\S]*$/,fie=/^([^:]+:\/*[^/]*)[\s\S]*$/;function hie(e,t){pc[" "+e]||(uie.test(e)?pc[" "+e]=e+"/":pc[" "+e]=Fc(e,"/",!0)),e=pc[" "+e];const r=e.indexOf(":")===-1;return t.substring(0,2)==="//"?r?t:e.replace(die,"$1")+t:t.charAt(0)==="/"?r?t:e.replace(fie,"$1")+t:e+t}const bu={exec:function(){}};function Ty(e,t){const r=e.replace(/\|/g,(i,a,s)=>{let l=!1,c=a;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),n=r.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function Fc(e,t,r){const n=e.length;if(n===0)return"";let o=0;for(;o<n;){const i=e.charAt(n-o-1);if(i===t&&!r)o++;else if(i!==t&&r)o++;else break}return e.slice(0,n-o)}function pie(e,t){if(e.indexOf(t[1])===-1)return-1;const r=e.length;let n=0,o=0;for(;o<r;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return-1}function gie(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ay(e,t){if(t<1)return"";let r="";for(;t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function Py(e,t,r,n){const o=t.href,i=t.title?mr(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;const s={type:"link",raw:r,href:o,title:i,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,s}return{type:"image",raw:r,href:o,title:i,text:mr(a)}}function mie(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const n=r[1];return t.split(`
`).map(o=>{const i=o.match(/^\s+/);if(i===null)return o;const[a]=i;return a.length>=n.length?o.slice(n.length):o}).join(`
`)}class Bg{constructor(t){this.options=t||Bi}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Fc(n,`
`)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const n=r[0],o=mie(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){const o=Fc(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){const n=r[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:i,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n,o,i,a,s,l,c,u,f,d,h,p,g=r[1].trim();const v=g.length>1,m={type:"list",raw:"",ordered:v,start:v?+g.slice(0,-1):"",loose:!1,items:[]};g=v?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=v?g:"[*+-]");const b=new RegExp(`^( {0,3}${g})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(p=!1,!(!(r=b.exec(t))||this.rules.block.hr.test(t)));){if(n=r[0],t=t.substring(n.length),u=r[2].split(`
`,1)[0].replace(/^\t+/,x=>" ".repeat(3*x.length)),f=t.split(`
`,1)[0],this.options.pedantic?(a=2,h=u.trimLeft()):(a=r[2].search(/[^ ]/),a=a>4?1:a,h=u.slice(a),a+=r[1].length),l=!1,!u&&/^ *$/.test(f)&&(n+=f+`
`,t=t.substring(f.length+1),p=!0),!p){const x=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),S=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),C=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),w=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;t&&(d=t.split(`
`,1)[0],f=d,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(C.test(f)||w.test(f)||x.test(f)||S.test(t)));){if(f.search(/[^ ]/)>=a||!f.trim())h+=`
`+f.slice(a);else{if(l||u.search(/[^ ]/)>=4||C.test(u)||w.test(u)||S.test(u))break;h+=`
`+f}!l&&!f.trim()&&(l=!0),n+=d+`
`,t=t.substring(d.length+1),u=f.slice(a)}}m.loose||(c?m.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(h),o&&(i=o[0]!=="[ ] ",h=h.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!o,checked:i,loose:!1,text:h}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=h.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(s=0;s<y;s++)if(this.lexer.state.top=!1,m.items[s].tokens=this.lexer.blockTokens(m.items[s].text,[]),!m.loose){const x=m.items[s].tokens.filter(C=>C.type==="space"),S=x.length>0&&x.some(C=>/\n.*\n/.test(C.raw));m.loose=S}if(m.loose)for(s=0;s<y;s++)m.items[s].loose=!0;return m}}html(t){const r=this.rules.block.html.exec(t);if(r){const n={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(r[0]):mr(r[0]);n.type="paragraph",n.text=o,n.tokens=this.lexer.inline(o)}return n}}def(t){const r=this.rules.block.def.exec(t);if(r){const n=r[1].toLowerCase().replace(/\s+/g," "),o=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:i}}}table(t){const r=this.rules.block.table.exec(t);if(r){const n={type:"table",header:Ty(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(n.header.length===n.align.length){n.raw=r[0];let o=n.align.length,i,a,s,l;for(i=0;i<o;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(o=n.rows.length,i=0;i<o;i++)n.rows[i]=Ty(n.rows[i],n.header.length).map(c=>({text:c}));for(o=n.header.length,a=0;a<o;a++)n.header[a].tokens=this.lexer.inline(n.header[a].text);for(o=n.rows.length,a=0;a<o;a++)for(l=n.rows[a],s=0;s<l.length;s++)l[s].tokens=this.lexer.inline(l[s].text);return n}}}lheading(t){const r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){const r=this.rules.block.paragraph.exec(t);if(r){const n=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:mr(r[1])}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):mr(r[0]):r[0]}}link(t){const r=this.rules.inline.link.exec(t);if(r){const n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const a=Fc(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{const a=pie(r[2],"()");if(a>-1){const l=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);a&&(o=a[1],i=a[3])}else i=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),Py(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){const i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Py(n,o,n[0],this.lexer)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=o[1]||o[2]||"";if(!i||i&&(n===""||this.rules.inline.punctuation.exec(n))){const a=o[0].length-1;let s,l,c=a,u=0;const f=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(f.lastIndex=0,r=r.slice(-1*t.length+a);(o=f.exec(r))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(l=s.length,o[3]||o[4]){c+=l;continue}else if((o[5]||o[6])&&a%3&&!((a+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const d=t.slice(0,a+o.index+(o[0].length-s.length)+l);if(Math.min(a,l)%2){const p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}const h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){const r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," ");const o=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return o&&i&&(n=n.substring(1,n.length-1)),n=mr(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t,r){const n=this.rules.inline.autolink.exec(t);if(n){let o,i;return n[2]==="@"?(o=mr(this.options.mangle?r(n[1]):n[1]),i="mailto:"+o):(o=mr(n[1]),i=o),{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(t,r){let n;if(n=this.rules.inline.url.exec(t)){let o,i;if(n[2]==="@")o=mr(this.options.mangle?r(n[0]):n[0]),i="mailto:"+o;else{let a;do a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(a!==n[0]);o=mr(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t,r){const n=this.rules.inline.text.exec(t);if(n){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):mr(n[0]):n[0]:o=mr(this.options.smartypants?r(n[0]):n[0]),{type:"text",raw:n[0],text:o}}}}const Ne={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:bu,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ne._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Ne._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Ne.def=Et(Ne.def).replace("label",Ne._label).replace("title",Ne._title).getRegex();Ne.bullet=/(?:[*+-]|\d{1,9}[.)])/;Ne.listItemStart=Et(/^( *)(bull) */).replace("bull",Ne.bullet).getRegex();Ne.list=Et(Ne.list).replace(/bull/g,Ne.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ne.def.source+")").getRegex();Ne._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Ne._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;Ne.html=Et(Ne.html,"i").replace("comment",Ne._comment).replace("tag",Ne._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Ne.paragraph=Et(Ne._paragraph).replace("hr",Ne.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ne._tag).getRegex();Ne.blockquote=Et(Ne.blockquote).replace("paragraph",Ne.paragraph).getRegex();Ne.normal={...Ne};Ne.gfm={...Ne.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};Ne.gfm.table=Et(Ne.gfm.table).replace("hr",Ne.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ne._tag).getRegex();Ne.gfm.paragraph=Et(Ne._paragraph).replace("hr",Ne.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ne.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ne._tag).getRegex();Ne.pedantic={...Ne.normal,html:Et(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ne._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:bu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Et(Ne.normal._paragraph).replace("hr",Ne.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ne.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ie={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:bu,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:bu,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ie._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";Ie.punctuation=Et(Ie.punctuation).replace(/punctuation/g,Ie._punctuation).getRegex();Ie.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;Ie.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;Ie._comment=Et(Ne._comment).replace("(?:-->|$)","-->").getRegex();Ie.emStrong.lDelim=Et(Ie.emStrong.lDelim).replace(/punct/g,Ie._punctuation).getRegex();Ie.emStrong.rDelimAst=Et(Ie.emStrong.rDelimAst,"g").replace(/punct/g,Ie._punctuation).getRegex();Ie.emStrong.rDelimUnd=Et(Ie.emStrong.rDelimUnd,"g").replace(/punct/g,Ie._punctuation).getRegex();Ie._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;Ie._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Ie._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;Ie.autolink=Et(Ie.autolink).replace("scheme",Ie._scheme).replace("email",Ie._email).getRegex();Ie._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Ie.tag=Et(Ie.tag).replace("comment",Ie._comment).replace("attribute",Ie._attribute).getRegex();Ie._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Ie._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Ie._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Ie.link=Et(Ie.link).replace("label",Ie._label).replace("href",Ie._href).replace("title",Ie._title).getRegex();Ie.reflink=Et(Ie.reflink).replace("label",Ie._label).replace("ref",Ne._label).getRegex();Ie.nolink=Et(Ie.nolink).replace("ref",Ne._label).getRegex();Ie.reflinkSearch=Et(Ie.reflinkSearch,"g").replace("reflink",Ie.reflink).replace("nolink",Ie.nolink).getRegex();Ie.normal={...Ie};Ie.pedantic={...Ie.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Et(/^!?\[(label)\]\((.*?)\)/).replace("label",Ie._label).getRegex(),reflink:Et(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ie._label).getRegex()};Ie.gfm={...Ie.normal,escape:Et(Ie.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};Ie.gfm.url=Et(Ie.gfm.url,"i").replace("email",Ie.gfm._extended_email).getRegex();Ie.breaks={...Ie.gfm,br:Et(Ie.br).replace("{2,}","*").getRegex(),text:Et(Ie.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function vie(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function $y(e){let t="",r,n;const o=e.length;for(r=0;r<o;r++)n=e.charCodeAt(r),Math.random()>.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t}class Bo{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Bi,this.options.tokenizer=this.options.tokenizer||new Bg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:Ne.normal,inline:Ie.normal};this.options.pedantic?(r.block=Ne.pedantic,r.inline=Ie.pedantic):this.options.gfm&&(r.block=Ne.gfm,this.options.breaks?r.inline=Ie.breaks:r.inline=Ie.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ne,inline:Ie}}static lex(t,r){return new Bo(r).lex(t)}static lexInline(t,r){return new Bo(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(s,l,c)=>l+" ".repeat(c.length));let n,o,i,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(n=s.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
`+n.raw,o.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
`+n.raw,o.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const l=t.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),typeof c=="number"&&c>=0&&(s=Math.min(s,c))}),s<1/0&&s>=0&&(i=t.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){o=r[r.length-1],a&&o.type==="paragraph"?(o.raw+=`
`+n.raw,o.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),a=i.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
`+n.raw,o.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(t){const s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,o,i,a=t,s,l,c;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+Ay("a",s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,s.index)+"["+Ay("a",s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,s.index+s[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,a,c)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t,$y)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t,$y))){t=t.substring(n.raw.length),r.push(n);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const f=t.slice(1);let d;this.options.extensions.startInline.forEach(function(h){d=h.call({lexer:this},f),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(i=t.substring(0,u+1))}if(n=this.tokenizer.inlineText(i,vie)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),l=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return r}}class Og{constructor(t){this.options=t||Bi}code(t,r,n){const o=(r||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(t,o);i!=null&&i!==t&&(n=!0,t=i)}return t=t.replace(/\n$/,"")+`
`,o?'<pre><code class="'+this.options.langPrefix+mr(o)+'">'+(n?t:mr(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:mr(t,!0))+`</code></pre>
`}blockquote(t){return`<blockquote>
${t}</blockquote>
`}html(t){return t}heading(t,r,n,o){if(this.options.headerIds){const i=this.options.headerPrefix+o.slug(n);return`<h${r} id="${i}">${t}</h${r}>
`}return`<h${r}>${t}</h${r}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(t,r,n){const o=r?"ol":"ul",i=r&&n!==1?' start="'+n+'"':"";return"<"+o+i+`>
`+t+"</"+o+`>
`}listitem(t){return`<li>${t}</li>
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow(t){return`<tr>
${t}</tr>
`}tablecell(t,r){const n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){if(t=ky(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let o='<a href="'+t+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image(t,r,n){if(t=ky(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let o=`<img src="${t}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(t){return t}}class C3{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}}class w3{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,r){let n=t,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[t];do o++,n=t+"-"+o;while(this.seen.hasOwnProperty(n))}return r||(this.seen[t]=o,this.seen[n]=0),n}slug(t,r={}){const n=this.serialize(t);return this.getNextSafeSlug(n,r.dryrun)}}class Oo{constructor(t){this.options=t||Bi,this.options.renderer=this.options.renderer||new Og,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new C3,this.slugger=new w3}static parse(t,r){return new Oo(r).parse(t)}static parseInline(t,r){return new Oo(r).parseInline(t)}parse(t,r=!0){let n="",o,i,a,s,l,c,u,f,d,h,p,g,v,m,b,y,x,S,C;const w=t.length;for(o=0;o<w;o++){if(h=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(C=this.options.extensions.renderers[h.type].call({parser:this},h),C!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type))){n+=C||"";continue}switch(h.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(h.tokens),h.depth,y3(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(h.text,h.lang,h.escaped);continue}case"table":{for(f="",u="",s=h.header.length,i=0;i<s;i++)u+=this.renderer.tablecell(this.parseInline(h.header[i].tokens),{header:!0,align:h.align[i]});for(f+=this.renderer.tablerow(u),d="",s=h.rows.length,i=0;i<s;i++){for(c=h.rows[i],u="",l=c.length,a=0;a<l;a++)u+=this.renderer.tablecell(this.parseInline(c[a].tokens),{header:!1,align:h.align[a]});d+=this.renderer.tablerow(u)}n+=this.renderer.table(f,d);continue}case"blockquote":{d=this.parse(h.tokens),n+=this.renderer.blockquote(d);continue}case"list":{for(p=h.ordered,g=h.start,v=h.loose,s=h.items.length,d="",i=0;i<s;i++)b=h.items[i],y=b.checked,x=b.task,m="",b.task&&(S=this.renderer.checkbox(y),v?b.tokens.length>0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=S+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=S+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:S}):m+=S),m+=this.parse(b.tokens,v),d+=this.renderer.listitem(m,x,y);n+=this.renderer.list(d,p,g);continue}case"html":{n+=this.renderer.html(h.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(h.tokens));continue}case"text":{for(d=h.tokens?this.parseInline(h.tokens):h.text;o+1<w&&t[o+1].type==="text";)h=t[++o],d+=`
`+(h.tokens?this.parseInline(h.tokens):h.text);n+=r?this.renderer.paragraph(d):d;continue}default:{const k='Token with "'+h.type+'" type was not found.';if(this.options.silent){console.error(k);return}else throw new Error(k)}}}return n}parseInline(t,r){r=r||this.renderer;let n="",o,i,a;const s=t.length;for(o=0;o<s;o++){if(i=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(a=this.options.extensions.renderers[i.type].call({parser:this},i),a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){n+=a||"";continue}switch(i.type){case"escape":{n+=r.text(i.text);break}case"html":{n+=r.html(i.text);break}case"link":{n+=r.link(i.href,i.title,this.parseInline(i.tokens,r));break}case"image":{n+=r.image(i.href,i.title,i.text);break}case"strong":{n+=r.strong(this.parseInline(i.tokens,r));break}case"em":{n+=r.em(this.parseInline(i.tokens,r));break}case"codespan":{n+=r.codespan(i.text);break}case"br":{n+=r.br();break}case"del":{n+=r.del(this.parseInline(i.tokens,r));break}case"text":{n+=r.text(i.text);break}default:{const l='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(l);return}else throw new Error(l)}}}return n}}class xu{constructor(t){this.options=t||Bi}preprocess(t){return t}postprocess(t){return t}}Xg(xu,"passThroughHooks",new Set(["preprocess","postprocess"]));function bie(e,t,r){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const o="<p>An error occurred:</p><pre>"+mr(n.message+"",!0)+"</pre>";if(t)return Promise.resolve(o);if(r){r(null,o);return}return o}if(t)return Promise.reject(n);if(r){r(n);return}throw n}}function S3(e,t){return(r,n,o)=>{typeof n=="function"&&(o=n,n=null);const i={...n};n={...je.defaults,...i};const a=bie(n.silent,n.async,o);if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(gie(n),n.hooks&&(n.hooks.options=n),o){const s=n.highlight;let l;try{n.hooks&&(r=n.hooks.preprocess(r)),l=e(r,n)}catch(f){return a(f)}const c=function(f){let d;if(!f)try{n.walkTokens&&je.walkTokens(l,n.walkTokens),d=t(l,n),n.hooks&&(d=n.hooks.postprocess(d))}catch(h){f=h}return n.highlight=s,f?a(f):o(null,d)};if(!s||s.length<3||(delete n.highlight,!l.length))return c();let u=0;je.walkTokens(l,function(f){f.type==="code"&&(u++,setTimeout(()=>{s(f.text,f.lang,function(d,h){if(d)return c(d);h!=null&&h!==f.text&&(f.text=h,f.escaped=!0),u--,u===0&&c()})},0))}),u===0&&c();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(s=>e(s,n)).then(s=>n.walkTokens?Promise.all(je.walkTokens(s,n.walkTokens)).then(()=>s):s).then(s=>t(s,n)).then(s=>n.hooks?n.hooks.postprocess(s):s).catch(a);try{n.hooks&&(r=n.hooks.preprocess(r));const s=e(r,n);n.walkTokens&&je.walkTokens(s,n.walkTokens);let l=t(s,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(s){return a(s)}}}function je(e,t,r){return S3(Bo.lex,Oo.parse)(e,t,r)}je.options=je.setOptions=function(e){return je.defaults={...je.defaults,...e},rie(je.defaults),je};je.getDefaults=v3;je.defaults=Bi;je.use=function(...e){const t=je.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(r=>{const n={...r};if(n.async=je.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const i=t.renderers[o.name];i?t.renderers[o.name]=function(...a){let s=o.renderer.apply(this,a);return s===!1&&(s=i.apply(this,a)),s}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),n.extensions=t),r.renderer){const o=je.defaults.renderer||new Og;for(const i in r.renderer){const a=o[i];o[i]=(...s)=>{let l=r.renderer[i].apply(o,s);return l===!1&&(l=a.apply(o,s)),l}}n.renderer=o}if(r.tokenizer){const o=je.defaults.tokenizer||new Bg;for(const i in r.tokenizer){const a=o[i];o[i]=(...s)=>{let l=r.tokenizer[i].apply(o,s);return l===!1&&(l=a.apply(o,s)),l}}n.tokenizer=o}if(r.hooks){const o=je.defaults.hooks||new xu;for(const i in r.hooks){const a=o[i];xu.passThroughHooks.has(i)?o[i]=s=>{if(je.defaults.async)return Promise.resolve(r.hooks[i].call(o,s)).then(c=>a.call(o,c));const l=r.hooks[i].call(o,s);return a.call(o,l)}:o[i]=(...s)=>{let l=r.hooks[i].apply(o,s);return l===!1&&(l=a.apply(o,s)),l}}n.hooks=o}if(r.walkTokens){const o=je.defaults.walkTokens;n.walkTokens=function(i){let a=[];return a.push(r.walkTokens.call(this,i)),o&&(a=a.concat(o.call(this,i))),a}}je.setOptions(n)})};je.walkTokens=function(e,t){let r=[];for(const n of e)switch(r=r.concat(t.call(je,n)),n.type){case"table":{for(const o of n.header)r=r.concat(je.walkTokens(o.tokens,t));for(const o of n.rows)for(const i of o)r=r.concat(je.walkTokens(i.tokens,t));break}case"list":{r=r.concat(je.walkTokens(n.items,t));break}default:je.defaults.extensions&&je.defaults.extensions.childTokens&&je.defaults.extensions.childTokens[n.type]?je.defaults.extensions.childTokens[n.type].forEach(function(o){r=r.concat(je.walkTokens(n[o],t))}):n.tokens&&(r=r.concat(je.walkTokens(n.tokens,t)))}return r};je.parseInline=S3(Bo.lexInline,Oo.parseInline);je.Parser=Oo;je.parser=Oo.parse;je.Renderer=Og;je.TextRenderer=C3;je.Lexer=Bo;je.lexer=Bo.lex;je.Tokenizer=Bg;je.Slugger=w3;je.Hooks=xu;je.parse=je;je.options;je.setOptions;je.use;je.walkTokens;je.parseInline;Oo.parse;Bo.lex;const xie={key:0,class:"px-[20px]"},yie={key:1,class:"text-xl"},Cie={key:0,class:"px-[20px]"},wie=["innerHTML"],Sie={class:"flex justify-end py-3 px-5"},_ie=pe({__name:"NoticeDialog",props:{visible:{type:Boolean}},setup(e){const t=M({noticeInfo:"",noticeTitle:""}),r=Di(),n=zo(),o=M(!0),i=R(()=>r.theme==="dark"),{isSmallLg:a}=vn(),s=R(()=>r.theme),l=R(()=>t.value.noticeInfo?je(t.value.noticeInfo):"");function c(){o.value=!0}function u(){n.updateNoticeDialog(!1)}async function f(){const p=await tie(),{success:g,data:v}=p;g&&(t.value=v)}async function d(){await f(),o.value=!1}function h(){n.updateNoticeDialog(!1),Nt.set("showNotice",Date.now()+24*60*60*1e3)}return(p,g)=>(he(),rt(N(Ai),{show:p.visible,class:"p-0 noticeDialog",style:Jr({maxWidth:"780px",minWidth:N(a)?"100%":"780px"}),"on-after-enter":d,"on-after-leave":c},{default:De(()=>[me(N(Zu),{vertical:""},{default:De(()=>[me(N(Yu),{closable:"",onClose:u},{header:De(()=>[o.value?(he(),Fe("div",xie,[me(N(vi),{text:"",width:"30%"})])):(he(),Fe("span",yie,Re(t.value.noticeTitle),1))]),default:De(()=>[o.value?(he(),Fe("div",Cie,[me(N(vi),{text:"",repeat:10})])):(he(),Fe("div",{key:1,class:Kt([[i.value?"text-[#fff]":"text-[#000]","pb-5"],"p-[20px] markdown-body max-h-[500px] overflow-y-auto overflow-x-hidden"]),style:Jr({background:s.value==="dark"?"#2c2c32":"#fff"}),innerHTML:l.value},null,14,wie)),re("div",Sie,[me(N(gn),{type:"primary",onClick:h},{default:De(()=>[re("span",null,Re(N(Ae)("notice.doNotRemind24h")),1)]),_:1})])]),_:1})]),_:1})]),_:1},8,["show","style"]))}});const Eie=kg(_ie,[["__scopeId","data-v-1037e82d"]]),kie={class:"p-5 bg-white rounded dark:bg-slate-800"},Tie={class:"flex text-xl font-bold mb-[20px] bg-currentflex items-center"},Aie=re("span",{class:"ml-[8px]"},"绑定微信账户",-1),Pie={style:{"white-space":"nowrap"},class:"w-full text-center font-bold text-sm py-5"},$ie={class:"w-[55px] inline-block text-[red] text-left"},Iie={class:"my-2 flex justify-center relative"},Die=re("span",{class:"flex items-center justify-center text-base py-5"}," 打开微信扫码绑定账户 ",-1),Bie=pe({__name:"BindWx",props:{visible:{type:Boolean}},setup(e){const t=zo();let r;const n=M(),o=Cr(),i=M(!1),a=M(""),s=M(""),l=xn();async function c(){const g=await one();g.success&&(s.value=g.data,u())}async function u(){const g=await J4({sceneStr:s.value});g.success&&(i.value=!0,a.value=g.data,r=setInterval(()=>{f()},1e3))}async function f(){if(!s.value)return;const g=await ine({sceneStr:s.value});if(g.data){clearInterval(r);const{status:v,msg:m}=g.data;v?l.success(m):l.error(m),o.getUserInfo(),t.updateBindwxDialog(!1)}}function d(){var g;clearInterval(r),c(),(g=n.value)==null||g.reset()}function h(){c()}function p(){clearInterval(r),a.value="",s.value="",i.value=!1}return(g,v)=>(he(),rt(N(Ai),{show:g.visible,style:{width:"90%","max-width":"700px"},"on-after-enter":h,"on-after-leave":p},{default:De(()=>[re("div",kie,[re("div",{class:"absolute top-3 right-3 cursor-pointer",onClick:v[0]||(v[0]=m=>N(t).updateBindwxDialog(!1))},[me(N(Sa),{size:"20",color:"#0e7a0d"},{default:De(()=>[me(N(Tg))]),_:1})]),re("div",Tie,[me(N(Sa),{size:"25",color:"#0e7a0d"},{default:De(()=>[me(N(Z4))]),_:1}),Aie]),re("div",null,[re("div",Pie,[re("p",null,[pt(" 请在 "),re("span",$ie,[me(N(mS),{ref_key:"countdownRef",ref:n,active:i.value,duration:120*1e3,"on-finish":d},null,8,["active"])]),pt(" 时间内完成绑定 ")])]),re("div",Iie,[a.value?(he(),rt(N(H_),{key:0,"preview-disabled":"",width:"230",src:a.value},null,8,["src"])):(he(),rt(N(vi),{key:1,height:"230px",width:"230px"})),a.value?Ze("",!0):(he(),rt(N(ed),{key:2,size:"large",class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"}))]),Die])])]),_:1},8,["show"]))}});function Oie(){return mt({url:"/signin/sign"})}function Lie(){return kt({url:"/signin/signinLog"})}const Rie={class:"text-base"},Fie={class:"text-[red]"},Mie={key:0},zie={class:"text-[red]"},Nie={key:1},Hie={class:"ml-2 text-[red]"},jie={key:2},Wie={class:"ml-2 text-[red]"},Uie={key:0,class:"flex items-center w-full mt-2"},Vie={key:0,class:"ml-2 text-xs"},Gie={key:0,class:"flex mt-3 w-full mt-14"},qie={key:1,class:"flex mt-8 w-full mt-14"},Yie=pe({__name:"SignInDialog",props:{visible:{type:Boolean}},setup(e){const t=Cr(),r=zo(),n=M(!1),{isMobile:o}=vn(),i=M([]),a=xn(),{isSmallLg:s}=vn(),l=void 0,c=M(!1);function u(){n.value=!1}function f(){r.updateSignInDialog(!1)}function d(C){return!XL(C)}const h=R(()=>t.userInfo.consecutiveDays),p=R(()=>{var C;return Number((C=t.globalConfig)==null?void 0:C.signInModel3Count)||0}),g=R(()=>{var C;return Number((C=t.globalConfig)==null?void 0:C.signInModel4Count)||0}),v=R(()=>{var C;return Number((C=t.globalConfig)==null?void 0:C.signInMjDrawToken)||0});function m(C,w){if(!i.value.length)return!1;const k=`${new Date().getFullYear()}-${C.toString().padStart(2,"0")}-${w.toString().padStart(2,"0")}`,A=i.value.find(T=>T.signInDate===k);return A?A==null?void 0:A.isSigned:!1}const b=R(()=>{if(n.value)return!1;const C=new Date().getMonth()+1,w=new Date().getDate();return!m(C,w)});async function y(){try{n.value=!0;const C=await Lie();i.value=C.data,n.value=!1}catch{n.value=!1}}async function x(){try{c.value=!0,(await Oie()).success&&a.success("签到成功!"),y(),t.getUserInfo(),c.value=!1}catch{c.value=!1}}async function S(){y()}return(C,w)=>(he(),rt(N(Ai),{show:C.visible,style:Jr({maxWidth:"650px",minWidth:N(s)?"100%":"650px"}),"on-after-enter":S,"on-after-leave":u},{default:De(()=>[me(N(Zu),{vertical:""},{default:De(()=>[me(N(Yu),{closable:"",onClose:f},{header:De(()=>[re("span",Rie,[pt("签到奖励 "),re("span",null,[pt("(已连续签到"),re("b",Fie,Re(h.value),1),pt("天)")])])]),default:De(()=>[me(N(iF),{class:"mb-5 p-0 !bg-[#ccddff]","show-icon":!1,type:"primary"},{default:De(()=>[pt(" 每日签到赠送: "),p.value>0?(he(),Fe("span",Mie,[re("b",zie,Re(p.value),1),pt("积分基础模型对话额度")])):Ze("",!0),g.value>0?(he(),Fe("span",Nie,[re("b",Hie,Re(g.value),1),pt("积分高级模型对话额度")])):Ze("",!0),v.value>0?(he(),Fe("span",jie,[re("b",Wie,Re(v.value),1),pt("点绘画积分额度")])):Ze("",!0)]),_:1}),me(N(ed),{show:n.value},{default:De(()=>[me(N(dM),{value:N(l),"onUpdate:value":w[0]||(w[0]=k=>Vt(l)?l.value=k:null),style:{height:"420px"},"is-date-disabled":d},{default:De(({month:k,date:A})=>[m(k,A)?(he(),Fe("div",Uie,[me(N(_s),{icon:"heroicons:gift",class:"text-xl text-[#5A91FC]"}),N(o)?Ze("",!0):(he(),Fe("span",Vie,"已签到"))])):Ze("",!0)]),_:1},8,["value"])]),_:1},8,["show"]),b.value?(he(),Fe("div",Gie,[me(N(gn),{style:{width:"100%"},type:"primary",round:"",loading:c.value,onClick:x},{default:De(()=>[pt(" 今日尚未签到、点击签到 ")]),_:1},8,["loading"])])):Ze("",!0),b.value?Ze("",!0):(he(),Fe("div",qie,[me(N(gn),{style:{width:"100%"},type:"primary",round:"",loading:c.value},{default:De(()=>[pt(" 今日已成功签到 ")]),_:1},8,["loading"])]))]),_:1})]),_:1})]),_:1},8,["show","style"]))}});const Kie={class:"h-full dark:bg-gray-900 transition-all p-0"},Xie={class:"h-full overflow-hidden"},Qie=pe({__name:"index",setup(e){const t=Cr(),r=tg(),n=sd(),o=zo(),i=Di(),a=xn(),s=R(()=>o.payDialog),l=R(()=>o.goodsDialog),c=R(()=>o.noticeDialog),u=R(()=>o.bindWxDialog),f=R(()=>o.signInDialog),d=R(()=>o.modelDialog),{isMobile:h}=vn(),p=R(()=>t.loginDialog),g=R(()=>i.theme);R(()=>g.value==="dark"?"#24272e":"#fff");const v=R(()=>t.isLogin),m=R(()=>{var k;return Number((k=t.globalConfig)==null?void 0:k.wechatSilentLoginStatus)===1}),b=R(()=>{var k;return(k=t.globalConfig)==null?void 0:k.clientHomePath});function y(){const{token:k}=r.query;if(k){t.setToken(k);const A=r.name;n.replace({name:A,query:{}}),a.success("账户登录成功、开始体验吧!"),t.getUserInfo()}}async function x(){if(b.value||!m.value||v.value)return;const A=new URLSearchParams(window.location.search).getAll("code"),T=A.length>0?A[A.length-1]:null;if(T){const I=await rne({code:T});if(I.success){t.setToken(I.data),t.getUserInfo(),t.setLoginDialog(!1);const D=window.location.href.split("?")[0]+window.location.search.replace(new RegExp("([&?])code=[^&]*","g"),"$1").replace(/^&/,"?");window.history.replaceState(null,"",D)}}else{const I=window.location.href.split("#")[0],D=await ane({url:I});D.success&&(window.location.href=D.data)}}function S(){var A;const k=window.navigator.userAgent.toLowerCase();k.match(/MicroMessenger/i)&&((A=k==null?void 0:k.match(/MicroMessenger/i))==null?void 0:A[0])==="micromessenger"&&x()}_t(()=>{S(),y()});const C=R(()=>h.value?["rounded-none","shadow-none"]:["dark:border-neutral-800"]),w=R(()=>h.value?["flex-col"]:["dark:border-neutral-800"]);return(k,A)=>{const T=Uc("RouterView"),I=Uc("ModelDialog");return he(),Fe("div",Kie,[re("div",Xie,[re("div",{class:Kt(["z-40 transition flex h-full relative",w.value])},[N(h)?Ze("",!0):(he(),rt(lre,{key:0})),me(N(rj),{class:Kt(["h-full",C.value]),style:{flex:"1"}},{default:De(()=>[me(T,null,{default:De(({Component:D,route:B})=>[(he(),rt(wC(D),{key:B.fullPath}))]),_:1})]),_:1},8,["class"]),N(h)?(he(),rt(hre,{key:1})):Ze("",!0)],2),me(gne,{visible:p.value},null,8,["visible"]),me(Doe,{visible:s.value},null,8,["visible"]),me(eie,{visible:l.value},null,8,["visible"]),me(Eie,{visible:c.value},null,8,["visible"]),me(Bie,{visible:u.value},null,8,["visible"]),me(Yie,{visible:f.value},null,8,["visible"]),me(I,{visible:d.value},null,8,["visible"])])])}}});function Zie(e){e.beforeEach(async(t,r,n)=>{var a,s;const{inVitecode:o}=t.query;o&&Nt.set("invitedBy",o),o&&(await sne({code:o}),e.replace({path:t.path,query:{}})),(a=window.$loadingBar)==null||a.start();const i=GZ();if(i.userInfo.username){const l=(s=i.globalConfig)==null?void 0:s.clientMenuList,c=l?JSON.parse(l):[];c.length&&!c.includes(t.name)&&["Chat","Draw","Midjourney"].includes(t.name)&&(i.globalConfig.clientHomePath&&i.globalConfig.clientHomePath!==""?n({path:i.globalConfig.clientHomePath}):n()),n()}else try{if(i.token&&await i.getUserInfo(),i.globalConfigLoading){let l=`${window.location.protocol}//${window.location.hostname}`;window.location.port&&(l+=`:${window.location.port}`),await i.getglobalConfig(l),i.globalConfig.clientHomePath?n({path:i.globalConfig.clientHomePath}):n()}t.path==="/500"?n({path:"/"}):n()}catch{t.path==="/500"?n({path:"/"}):n()}}),e.afterEach(t=>{var r;(r=window.$loadingBar)==null||r.finish()})}const Jie=[{path:"/",name:"Layout",component:Qie,redirect:"/chat",children:[{path:"/market",name:"Market",component:()=>Mr(()=>import("./index-1aea7a12.js"),["assets/index-1aea7a12.js","assets/index-c94da121.js","assets/Input-4816b01d.js","assets/index-128e54c5.css"])},{path:"/midjourney",name:"Midjourney",component:()=>Mr(()=>import("./index-671f050d.js"),["assets/index-671f050d.js","assets/Loading-05848be1.js","assets/Loading-fd6d8c86.css","assets/Input-4816b01d.js","assets/InputNumber-8169024b.js","assets/Add-1eab33c9.js","assets/Select-b45c26f7.js","assets/index-82c86423.css"])},{path:"/chat",name:"Chat",component:()=>Mr(()=>import("./chat-7ac51a07.js"),["assets/chat-7ac51a07.js","assets/Loading-05848be1.js","assets/Loading-fd6d8c86.css","assets/index.esm-75698fae.js","assets/index-c94da121.js","assets/index.vue_vue_type_script_setup_true_lang-470ccb3e.js","assets/LayoutSider-0c83106f.js","assets/chat-c19dad35.css"])},{path:"chatStore",name:"ChatStore",component:()=>Mr(()=>import("./chatStore-7c2b419e.js"),["assets/chatStore-7c2b419e.js","assets/index.vue_vue_type_script_setup_true_lang-470ccb3e.js","assets/LayoutSider-0c83106f.js","assets/chatStore-f68b3e01.css"])},{path:"user-center",name:"UserCenter",component:()=>Mr(()=>import("./index-9c69c5a3.js"),["assets/index-9c69c5a3.js","assets/titleBar.vue_vue_type_script_setup_true_lang-c8a01297.js","assets/FormItem-6d94e26d.js","assets/Input-4816b01d.js","assets/Select-b45c26f7.js","assets/LayoutSider-0c83106f.js","assets/Tabs-d30e51ae.js","assets/Add-1eab33c9.js"])},{path:"app-store",name:"AppStore",component:()=>Mr(()=>import("./chatStore-7c2b419e.js"),["assets/chatStore-7c2b419e.js","assets/index.vue_vue_type_script_setup_true_lang-470ccb3e.js","assets/LayoutSider-0c83106f.js","assets/chatStore-f68b3e01.css"])},{path:"pay",name:"Pay",component:()=>Mr(()=>import("./index-2168999b.js"),["assets/index-2168999b.js","assets/titleBar.vue_vue_type_script_setup_true_lang-c8a01297.js","assets/Tabs-d30e51ae.js","assets/Add-1eab33c9.js","assets/index-fed7b4ac.css"])},{path:"mind",name:"Mind",component:()=>Mr(()=>import("./index-140c57ab.js"),["assets/index-140c57ab.js","assets/index.esm-75698fae.js","assets/Input-4816b01d.js"])},{path:"share",name:"Share",component:()=>Mr(()=>import("./index-82b5d920.js"),["assets/index-82b5d920.js","assets/titleBar.vue_vue_type_script_setup_true_lang-c8a01297.js","assets/index-c94da121.js","assets/FormItem-6d94e26d.js","assets/Input-4816b01d.js","assets/Select-b45c26f7.js","assets/InputNumber-8169024b.js","assets/Add-1eab33c9.js","assets/Tabs-d30e51ae.js","assets/index-e70b4848.css"])},{path:"extend",name:"Extend",component:()=>Mr(()=>import("./index-03106b46.js"),["assets/index-03106b46.js","assets/index-da1c3968.css"])}]},{path:"/404",name:"404",component:()=>Mr(()=>import("./index-80bdf7ce.js"),[])},{path:"/500",name:"500",component:()=>Mr(()=>import("./index-ed13e5d6.js"),["assets/index-ed13e5d6.js","assets/index-404bb920.css"])},{path:"/:pathMatch(.*)*",name:"notFound",redirect:"/404"}],$h=JY({history:PY(),routes:Jie,scrollBehavior:()=>({left:0,top:0})});Zie($h);async function eae(e){e.use($h),await $h.isReady()}function c0(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ih(e,t,r=".",n){if(!c0(t))return Ih(e,{},r,n);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(n&&n(o,i,a,r)||(Array.isArray(a)&&Array.isArray(o[i])?o[i]=[...a,...o[i]]:c0(a)&&c0(o[i])?o[i]=Ih(a,o[i],(r?`${r}.`:"")+i.toString(),n):o[i]=a))}return o}function tae(e){return(...t)=>t.reduce((r,n)=>Ih(r,n,"",e),{})}const rae=tae();function As(e){var t;const r=Eg(e);return(t=r==null?void 0:r.$el)!=null?t:r}const _3=Q4?window:void 0;function cn(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=_3):[t,r,n,o]=e,!t)return ks;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],a=()=>{i.forEach(u=>u()),i.length=0},s=(u,f,d,h)=>(u.addEventListener(f,d,h),()=>u.removeEventListener(f,d,h)),l=Je(()=>[As(t),Eg(o)],([u,f])=>{if(a(),!u)return;const d=gu(f)?{...f}:f;i.push(...r.flatMap(h=>n.map(p=>s(u,h,p,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return _g(c),c}function nae(){const e=M(!1),t=Er();return t&&_t(()=>{e.value=!0},t),e}function oae(e){const t=nae();return R(()=>(t.value,!!e()))}function iae(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:i=.1,window:a=_3,immediate:s=!0}=r,l=oae(()=>a&&"IntersectionObserver"in a),c=R(()=>{const p=Eg(e);return(Array.isArray(p)?p:[p]).map(As).filter(Cte)});let u=ks;const f=M(s),d=l.value?Je(()=>[c.value,As(n),f.value],([p,g])=>{if(u(),!f.value||!p.length)return;const v=new IntersectionObserver(t,{root:As(g),rootMargin:o,threshold:i});p.forEach(m=>m&&v.observe(m)),u=()=>{v.disconnect(),u=ks}},{immediate:s,flush:"post"}):ks,h=()=>{u(),d(),f.value=!1};return _g(h),{isSupported:l,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:h}}const E3=1/60*1e3,aae=typeof performance<"u"?()=>performance.now():()=>Date.now(),k3=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(aae()),E3);function sae(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const f=u&&o,d=f?t:r;return c&&a.add(l),d.indexOf(l)===-1&&(d.push(l),f&&o&&(n=t.length)),l},cancel:l=>{const c=r.indexOf(l);c!==-1&&r.splice(c,1),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c<n;c++){const u=t[c];u(l),a.has(u)&&(s.schedule(u),e())}o=!1,i&&(i=!1,s.process(l))}};return s}const lae=40;let Dh=!0,sl=!1,Bh=!1;const da={delta:0,timestamp:0},$l=["read","update","preRender","render","postRender"],Ad=$l.reduce((e,t)=>(e[t]=sae(()=>sl=!0),e),{}),Oh=$l.reduce((e,t)=>{const r=Ad[t];return e[t]=(n,o=!1,i=!1)=>(sl||dae(),r.schedule(n,o,i)),e},{}),cae=$l.reduce((e,t)=>(e[t]=Ad[t].cancel,e),{});$l.reduce((e,t)=>(e[t]=()=>Ad[t].process(da),e),{});const uae=e=>Ad[e].process(da),T3=e=>{sl=!1,da.delta=Dh?E3:Math.max(Math.min(e-da.timestamp,lae),1),da.timestamp=e,Bh=!0,$l.forEach(uae),Bh=!1,sl&&(Dh=!1,k3(T3))},dae=()=>{sl=!0,Dh=!0,Bh||k3(T3)},A3=()=>da;function P3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var fae=function(){},Iy=function(){};const Lh=(e,t,r)=>Math.min(Math.max(r,e),t),u0=.001,hae=.01,Dy=10,pae=.05,gae=1;function mae({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;fae(e<=Dy*1e3);let a=1-t;a=Lh(pae,gae,a),e=Lh(hae,Dy,e/1e3),a<1?(o=c=>{const u=c*a,f=u*e,d=u-r,h=Rh(c,a),p=Math.exp(-f);return u0-d/h*p},i=c=>{const f=c*a*e,d=f*r+r,h=Math.pow(a,2)*Math.pow(c,2)*e,p=Math.exp(-f),g=Rh(Math.pow(c,2),a);return(-o(c)+u0>0?-1:1)*((d-h)*p)/g}):(o=c=>{const u=Math.exp(-c*e),f=(c-r)*e+1;return-u0+u*f},i=c=>{const u=Math.exp(-c*e),f=(r-c)*(e*e);return u*f});const s=5/e,l=bae(o,i,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}const vae=12;function bae(e,t,r){let n=r;for(let o=1;o<vae;o++)n=n-e(n)/t(n);return n}function Rh(e,t){return e*Math.sqrt(1-t*t)}const xae=["duration","bounce"],yae=["stiffness","damping","mass"];function By(e,t){return t.some(r=>e[r]!==void 0)}function Cae(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!By(e,yae)&&By(e,xae)){const r=mae(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Lg(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=P3(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:f,isResolvedFromDuration:d}=Cae(i),h=Oy,p=Oy;function g(){const v=u?-(u/1e3):0,m=r-t,b=l/(2*Math.sqrt(s*c)),y=Math.sqrt(s/c)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),b<1){const x=Rh(y,b);h=S=>{const C=Math.exp(-b*y*S);return r-C*((v+b*y*m)/x*Math.sin(x*S)+m*Math.cos(x*S))},p=S=>{const C=Math.exp(-b*y*S);return b*y*C*(Math.sin(x*S)*(v+b*y*m)/x+m*Math.cos(x*S))-C*(Math.cos(x*S)*(v+b*y*m)-x*m*Math.sin(x*S))}}else if(b===1)h=x=>r-Math.exp(-y*x)*(m+(v+y*m)*x);else{const x=y*Math.sqrt(b*b-1);h=S=>{const C=Math.exp(-b*y*S),w=Math.min(x*S,300);return r-C*((v+b*y*m)*Math.sinh(w)+x*m*Math.cosh(w))/x}}}return g(),{next:v=>{const m=h(v);if(d)a.done=v>=f;else{const b=p(v)*1e3,y=Math.abs(b)<=n,x=Math.abs(r-m)<=o;a.done=y&&x}return a.value=a.done?r:m,a},flipTarget:()=>{u=-u,[t,r]=[r,t],g()}}}Lg.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Oy=e=>0,$3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Rg=(e,t,r)=>-r*e+r*t+e,I3=(e,t)=>r=>Math.max(Math.min(r,t),e),Ps=e=>e%1?Number(e.toFixed(5)):e,ll=/(-)?([\d]*\.?[\d])+/g,Fh=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,wae=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Il(e){return typeof e=="string"}const Dl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$s=Object.assign(Object.assign({},Dl),{transform:I3(0,1)}),gc=Object.assign(Object.assign({},Dl),{default:1}),Fg=e=>({test:t=>Il(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ko=Fg("deg"),Is=Fg("%"),et=Fg("px"),Ly=Object.assign(Object.assign({},Is),{parse:e=>Is.parse(e)/100,transform:e=>Is.transform(e*100)}),Mg=(e,t)=>r=>!!(Il(r)&&wae.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),D3=(e,t,r)=>n=>{if(!Il(n))return n;const[o,i,a,s]=n.match(ll);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},li={test:Mg("hsl","hue"),parse:D3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Is.transform(Ps(t))+", "+Is.transform(Ps(r))+", "+Ps($s.transform(n))+")"},Sae=I3(0,255),d0=Object.assign(Object.assign({},Dl),{transform:e=>Math.round(Sae(e))}),Eo={test:Mg("rgb","red"),parse:D3("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+d0.transform(e)+", "+d0.transform(t)+", "+d0.transform(r)+", "+Ps($s.transform(n))+")"};function _ae(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Mh={test:Mg("#"),parse:_ae,transform:Eo.transform},Ir={test:e=>Eo.test(e)||Mh.test(e)||li.test(e),parse:e=>Eo.test(e)?Eo.parse(e):li.test(e)?li.parse(e):Mh.parse(e),transform:e=>Il(e)?e:e.hasOwnProperty("red")?Eo.transform(e):li.transform(e)},B3="${c}",O3="${n}";function Eae(e){var t,r,n,o;return isNaN(e)&&Il(e)&&((r=(t=e.match(ll))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(Fh))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function L3(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(Fh);n&&(r=n.length,e=e.replace(Fh,B3),t.push(...n.map(Ir.parse)));const o=e.match(ll);return o&&(e=e.replace(ll,O3),t.push(...o.map(Dl.parse))),{values:t,numColors:r,tokenised:e}}function R3(e){return L3(e).values}function F3(e){const{values:t,numColors:r,tokenised:n}=L3(e),o=t.length;return i=>{let a=n;for(let s=0;s<o;s++)a=a.replace(s<r?B3:O3,s<r?Ir.transform(i[s]):Ps(i[s]));return a}}const kae=e=>typeof e=="number"?0:e;function Tae(e){const t=R3(e);return F3(e)(t.map(kae))}const Bl={test:Eae,parse:R3,createTransformer:F3,getAnimatableNone:Tae},Aae=new Set(["brightness","contrast","saturate","opacity"]);function Pae(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ll)||[];if(!n)return e;const o=r.replace(n,"");let i=Aae.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const $ae=/([a-z-]*)\(.*?\)/g,zh=Object.assign(Object.assign({},Bl),{getAnimatableNone:e=>{const t=e.match($ae);return t?t.map(Pae).join(" "):e}});function f0(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ry({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=f0(l,s,e+1/3),i=f0(l,s,e),a=f0(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const Iae=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},Dae=[Mh,Eo,li],Fy=e=>Dae.find(t=>t.test(e)),M3=(e,t)=>{let r=Fy(e),n=Fy(t),o=r.parse(e),i=n.parse(t);r===li&&(o=Ry(o),r=Eo),n===li&&(i=Ry(i),n=Eo);const a=Object.assign({},o);return s=>{for(const l in a)l!=="alpha"&&(a[l]=Iae(o[l],i[l],s));return a.alpha=Rg(o.alpha,i.alpha,s),r.transform(a)}},Bae=e=>typeof e=="number",Oae=(e,t)=>r=>t(e(r)),z3=(...e)=>e.reduce(Oae);function N3(e,t){return Bae(e)?r=>Rg(e,t,r):Ir.test(e)?M3(e,t):j3(e,t)}const H3=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>N3(i,t[a]));return i=>{for(let a=0;a<n;a++)r[a]=o[a](i);return r}},Lae=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=N3(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function My(e){const t=Bl.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a<r;a++)n||typeof t[a]=="number"?n++:t[a].hue!==void 0?i++:o++;return{parsed:t,numNumbers:n,numRGB:o,numHSL:i}}const j3=(e,t)=>{const r=Bl.createTransformer(t),n=My(e),o=My(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?z3(H3(n.parsed,o.parsed),r):a=>`${a>0?t:e}`},Rae=(e,t)=>r=>Rg(e,t,r);function Fae(e){if(typeof e=="number")return Rae;if(typeof e=="string")return Ir.test(e)?M3:j3;if(Array.isArray(e))return H3;if(typeof e=="object")return Lae}function Mae(e,t,r){const n=[],o=r||Fae(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]:t;s=z3(l,s)}n.push(s)}return n}function zae([e,t],[r]){return n=>r($3(e,t,n))}function Nae(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let l=1;for(;l<r&&!(e[l]>o||l===n);l++);i=l-1}const s=$3(e[i],e[i+1],o);return t[i](s)}}function W3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Iy(i===t.length),Iy(!n||!Array.isArray(n)||n.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=Mae(t,n,o),s=i===2?zae(e,a):Nae(e,a);return r?l=>s(Lh(e[0],e[i-1],l)):s}const Pd=e=>t=>1-e(1-t),zg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hae=e=>t=>Math.pow(t,e),U3=e=>t=>t*t*((e+1)*t-e),jae=e=>{const t=U3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},V3=1.525,Wae=4/11,Uae=8/11,Vae=9/10,G3=e=>e,Ng=Hae(2),Gae=Pd(Ng),q3=zg(Ng),Y3=e=>1-Math.sin(Math.acos(e)),K3=Pd(Y3),qae=zg(K3),Hg=U3(V3),Yae=Pd(Hg),Kae=zg(Hg),Xae=jae(V3),Qae=4356/361,Zae=35442/1805,Jae=16061/1805,yu=e=>{if(e===1||e===0)return e;const t=e*e;return e<Wae?7.5625*t:e<Uae?9.075*t-9.9*e+3.4:e<Vae?Qae*t-Zae*e+Jae:10.8*e*e-20.52*e+10.72},ese=Pd(yu),tse=e=>e<.5?.5*(1-yu(1-e*2)):.5*yu(e*2-1)+.5;function rse(e,t){return e.map(()=>t||q3).splice(0,e.length-1)}function nse(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function ose(e,t){return e.map(r=>r*t)}function Mc({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=ose(n&&n.length===a.length?n:nse(a),o);function l(){return W3(s,a,{ease:Array.isArray(r)?r:rse(a,r)})}let c=l();return{next:u=>(i.value=c(u),i.done=u>=o,i),flipTarget:()=>{a.reverse(),c=l()}}}function ise({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=r*e;const l=t+s,c=i===void 0?l:i(l);return c!==l&&(s=c-t),{next:u=>{const f=-s*Math.exp(-u/n);return a.done=!(f>o||f<-o),a.value=a.done?c:c+f,a},flipTarget:()=>{}}}const zy={keyframes:Mc,spring:Lg,decay:ise};function ase(e){if(Array.isArray(e.to))return Mc;if(zy[e.type])return zy[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Mc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Lg:Mc}function X3(e,t,r=0){return e-t-r}function sse(e,t,r=0,n=!0){return n?X3(t+-e,t,r):t-(e-t)+r}function lse(e,t,r,n){return n?e>=t+r:e<=-r}const cse=e=>{const t=({delta:r})=>e(r);return{start:()=>Oh.update(t,!0),stop:()=>cae.update(t)}};function Q3(e){var t,r,{from:n,autoplay:o=!0,driver:i=cse,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:f,onComplete:d,onRepeat:h,onUpdate:p}=e,g=P3(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:v}=g,m,b=0,y=g.duration,x,S=!1,C=!0,w;const k=ase(g);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,v)&&(w=W3([0,100],[n,v],{clamp:!1}),n=0,v=100);const A=k(Object.assign(Object.assign({},g),{from:n,to:v}));function T(){b++,l==="reverse"?(C=b%2===0,a=sse(a,y,c,C)):(a=X3(a,y,c),l==="mirror"&&A.flipTarget()),S=!1,h&&h()}function I(){m.stop(),d&&d()}function D(j){if(C||(j=-j),a+=j,!S){const F=A.next(Math.max(0,a));x=F.value,w&&(x=w(x)),S=C?F.done:a<=0}p==null||p(x),S&&(b===0&&(y??(y=a)),b<s?lse(a,y,c,C)&&T():I())}function B(){u==null||u(),m=i(D),m.start()}return o&&B(),{stop:()=>{f==null||f(),m.stop()}}}function Z3(e,t){return t?e*(1e3/t):0}function use({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:f,onComplete:d,onStop:h}){let p;function g(y){return r!==void 0&&y<r||n!==void 0&&y>n}function v(y){return r===void 0?n:n===void 0||Math.abs(r-y)<Math.abs(n-y)?r:n}function m(y){p==null||p.stop(),p=Q3(Object.assign(Object.assign({},y),{driver:u,onUpdate:x=>{var S;f==null||f(x),(S=y.onUpdate)===null||S===void 0||S.call(y,x)},onComplete:d,onStop:h}))}function b(y){m(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},y))}if(g(e))b({from:e,velocity:t,to:v(e)});else{let y=o*t+e;typeof c<"u"&&(y=c(y));const x=v(y),S=x===r?-1:1;let C,w;const k=A=>{C=w,w=A,t=Z3(A-C,A3().delta),(S===1&&A>x||S===-1&&A<x)&&b({from:A,to:x,velocity:t})};m({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:c,onUpdate:g(y)?k:void 0})}return{stop:()=>p==null?void 0:p.stop()}}const J3=(e,t)=>1-3*t+3*e,e8=(e,t)=>3*t-6*e,t8=e=>3*e,Cu=(e,t,r)=>((J3(t,r)*e+e8(t,r))*e+t8(t))*e,r8=(e,t,r)=>3*J3(t,r)*e*e+2*e8(t,r)*e+t8(t),dse=1e-7,fse=10;function hse(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=Cu(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>dse&&++s<fse);return a}const pse=8,gse=.001;function mse(e,t,r,n){for(let o=0;o<pse;++o){const i=r8(t,r,n);if(i===0)return t;const a=Cu(t,r,n)-e;t-=a/i}return t}const zc=11,mc=1/(zc-1);function vse(e,t,r,n){if(e===t&&r===n)return G3;const o=new Float32Array(zc);for(let a=0;a<zc;++a)o[a]=Cu(a*mc,e,r);function i(a){let s=0,l=1;const c=zc-1;for(;l!==c&&o[l]<=a;++l)s+=mc;--l;const u=(a-o[l])/(o[l+1]-o[l]),f=s+u*mc,d=r8(f,e,r);return d>=gse?mse(a,f,e,r):d===0?f:hse(a,s,s+mc,e,r)}return a=>a===0||a===1?a:Cu(i(a),t,n)}const h0={};var bse=Object.defineProperty,xse=(e,t,r)=>t in e?bse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yse=(e,t,r)=>(xse(e,typeof t!="symbol"?t+"":t,r),r);class Cse{constructor(){yse(this,"subscriptions",new Set)}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,r,n){if(this.subscriptions.size)for(const o of this.subscriptions)o(t,r,n)}clear(){this.subscriptions.clear()}}var wse=Object.defineProperty,Sse=(e,t,r)=>t in e?wse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_n=(e,t,r)=>(Sse(e,typeof t!="symbol"?t+"":t,r),r);function Ny(e){return!isNaN(parseFloat(e))}class _se{constructor(t){_n(this,"current"),_n(this,"prev"),_n(this,"timeDelta",0),_n(this,"lastUpdated",0),_n(this,"updateSubscribers",new Cse),_n(this,"stopAnimation"),_n(this,"canTrackVelocity",!1),_n(this,"updateAndNotify",r=>{this.prev=this.current,this.current=r;const{delta:n,timestamp:o}=A3();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o),Oh.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),_n(this,"scheduleVelocityCheck",()=>Oh.postRender(this.velocityCheck)),_n(this,"velocityCheck",({timestamp:r})=>{this.canTrackVelocity||(this.canTrackVelocity=Ny(this.current)),r!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=t,this.canTrackVelocity=Ny(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Z3(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{const{stop:n}=t(r);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function Ese(e){return new _se(e)}const{isArray:kse}=Array;function Tse(){const e=M({}),t=n=>{const o=i=>{e.value[i]&&(e.value[i].stop(),e.value[i].destroy(),delete e.value[i])};n?kse(n)?n.forEach(o):o(n):Object.keys(e.value).forEach(o)},r=(n,o,i)=>{if(e.value[n])return e.value[n];const a=Ese(o);return a.onChange(s=>i[n]=s),e.value[n]=a,a};return Ete(t),{motionValues:e,get:r,stop:t}}function Ase(e){return Array.isArray(e)}function Xo(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function p0(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function Pse(e){return{type:"spring",stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function g0(){return{type:"keyframes",ease:"linear",duration:300}}function $se(e){return{type:"keyframes",duration:800,values:e}}const Hy={default:Pse,x:Xo,y:Xo,z:Xo,rotate:Xo,rotateX:Xo,rotateY:Xo,rotateZ:Xo,scaleX:p0,scaleY:p0,scale:p0,backgroundColor:g0,color:g0,opacity:g0};function n8(e,t){let r;return Ase(t)?r=$se:r=Hy[e]||Hy.default,{to:t,...r(t)}}const jy={...Dl,transform:Math.round},o8={color:Ir,backgroundColor:Ir,outlineColor:Ir,fill:Ir,stroke:Ir,borderColor:Ir,borderTopColor:Ir,borderRightColor:Ir,borderBottomColor:Ir,borderLeftColor:Ir,borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:Ko,rotateX:Ko,rotateY:Ko,rotateZ:Ko,scale:gc,scaleX:gc,scaleY:gc,scaleZ:gc,skew:Ko,skewX:Ko,skewY:Ko,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:$s,originX:Ly,originY:Ly,originZ:et,zIndex:jy,filter:zh,WebkitFilter:zh,fillOpacity:$s,strokeOpacity:$s,numOctaves:jy},jg=e=>o8[e];function i8(e,t){return t&&typeof e=="number"&&t.transform?t.transform(e):e}function Ise(e,t){let r=jg(e);return r!==zh&&(r=Bl),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Dse={linear:G3,easeIn:Ng,easeInOut:q3,easeOut:Gae,circIn:Y3,circInOut:qae,circOut:K3,backIn:Hg,backInOut:Kae,backOut:Yae,anticipate:Xae,bounceIn:ese,bounceInOut:tse,bounceOut:yu};function Wy(e){if(Array.isArray(e)){const[t,r,n,o]=e;return vse(t,r,n,o)}else if(typeof e=="string")return Dse[e];return e}function Bse(e){return Array.isArray(e)&&typeof e[0]!="number"}function Uy(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Bl.test(t)&&!t.startsWith("url("))}function Ose(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Lse({ease:e,times:t,delay:r,...n}){const o={...n};return t&&(o.offset=t),e&&(o.ease=Bse(e)?e.map(Wy):Wy(e)),r&&(o.elapsed=-r),o}function Rse(e,t,r){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),Ose(t),Fse(e)||(e={...e,...n8(r,t.to)}),{...t,...Lse(e)}}function Fse({delay:e,repeat:t,repeatType:r,repeatDelay:n,from:o,...i}){return!!Object.keys(i).length}function Mse(e,t){return e[t]||e.default||e}function zse(e,t,r,n,o){const i=Mse(n,e);let a=i.from===null||i.from===void 0?t.get():i.from;const s=Uy(e,r);a==="none"&&s&&typeof r=="string"&&(a=Ise(e,r));const l=Uy(e,a);function c(f){const d={from:a,to:r,velocity:n.velocity?n.velocity:t.getVelocity(),onUpdate:h=>t.set(h)};return i.type==="inertia"||i.type==="decay"?use({...d,...i}):Q3({...Rse(i,d,e),onUpdate:h=>{d.onUpdate(h),i.onUpdate&&i.onUpdate(h)},onComplete:()=>{n.onComplete&&n.onComplete(),o&&o(),f&&f()}})}function u(f){return t.set(r),n.onComplete&&n.onComplete(),o&&o(),f&&f(),{stop:()=>{}}}return!l||!s||i.type===!1?u:c}function Nse(){const{motionValues:e,stop:t,get:r}=Tse();return{motionValues:e,stop:t,push:(o,i,a,s={},l)=>{const c=a[o],u=r(o,c,a);if(s&&s.immediate){u.set(i);return}const f=zse(o,u,i,s,l);u.start(f)}}}function Hse(e,t={},{motionValues:r,push:n,stop:o}=Nse()){const i=N(t),a=M(!1);Je(r,f=>{a.value=Object.values(f).filter(d=>d.isAnimating()).length>0},{immediate:!0,deep:!0});const s=f=>{if(!i||!i[f])throw new Error(`The variant ${f} does not exist.`);return i[f]},l=f=>(typeof f=="string"&&(f=s(f)),Promise.all(Object.entries(f).map(([d,h])=>{if(d!=="transition")return new Promise(p=>n(d,h,e,f.transition||n8(d,f[d]),p))}).filter(Boolean)));return{isAnimating:a,apply:l,set:f=>{const d=gu(f)?f:s(f);Object.entries(d).forEach(([h,p])=>{h!=="transition"&&n(h,p,e,{immediate:!0})})},leave:async f=>{let d;if(i&&(i.leave&&(d=i.leave),!i.leave&&i.initial&&(d=i.initial)),!d){f();return}await l(d),f()},stop:o}}const Wg=typeof window<"u",jse=()=>Wg&&window.onpointerdown===null,Wse=()=>Wg&&window.ontouchstart===null,Use=()=>Wg&&window.onmousedown===null;function Vse({target:e,state:t,variants:r,apply:n}){const o=N(r),i=M(!1),a=M(!1),s=M(!1),l=R(()=>{let u=[];return o&&(o.hovered&&(u=[...u,...Object.keys(o.hovered)]),o.tapped&&(u=[...u,...Object.keys(o.tapped)]),o.focused&&(u=[...u,...Object.keys(o.focused)])),u}),c=R(()=>{const u={};Object.assign(u,t.value),i.value&&o.hovered&&Object.assign(u,o.hovered),a.value&&o.tapped&&Object.assign(u,o.tapped),s.value&&o.focused&&Object.assign(u,o.focused);for(const f in u)l.value.includes(f)||delete u[f];return u});o.hovered&&(cn(e,"mouseenter",()=>i.value=!0),cn(e,"mouseleave",()=>{i.value=!1,a.value=!1}),cn(e,"mouseout",()=>{i.value=!1,a.value=!1})),o.tapped&&(Use()&&(cn(e,"mousedown",()=>a.value=!0),cn(e,"mouseup",()=>a.value=!1)),jse()&&(cn(e,"pointerdown",()=>a.value=!0),cn(e,"pointerup",()=>a.value=!1)),Wse()&&(cn(e,"touchstart",()=>a.value=!0),cn(e,"touchend",()=>a.value=!1))),o.focused&&(cn(e,"focus",()=>s.value=!0),cn(e,"blur",()=>s.value=!1)),Je(c,n)}function Gse({set:e,target:t,variants:r,variant:n}){const o=N(r);Je(()=>t,()=>{o&&(o.initial&&e("initial"),o.enter&&(n.value="enter"))},{immediate:!0,flush:"pre"})}function qse({state:e,apply:t}){Je(e,r=>{r&&t(r)},{immediate:!0})}function a8({target:e,variants:t,variant:r}){const n=N(t);n&&(n.visible||n.visibleOnce)&&iae(e,([{isIntersecting:o}])=>{n.visible?o?r.value="visible":r.value="initial":n.visibleOnce&&(o&&r.value!=="visibleOnce"?r.value="visibleOnce":r.value||(r.value="initial"))})}function Yse(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&Gse(e),t.syncVariants&&qse(e),t.visibilityHooks&&a8(e),t.eventListeners&&Vse(e)}function s8(e={}){const t=nn({...e}),r=M({});return Je(t,()=>{const n={};for(const[o,i]of Object.entries(t)){const a=jg(o),s=i8(i,a);n[o]=s}r.value=n},{immediate:!0,deep:!0}),{state:t,style:r}}function Ug(e,t){Je(()=>As(e),r=>{r&&t(r)},{immediate:!0})}const Kse={x:"translateX",y:"translateY",z:"translateZ"};function l8(e={},t=!0){const r=nn({...e}),n=M("");return Je(r,o=>{let i="",a=!1;if(t&&(o.x||o.y||o.z)){const s=[o.x||0,o.y||0,o.z||0].map(et.transform).join(",");i+=`translate3d(${s}) `,a=!0}for(const[s,l]of Object.entries(o)){if(t&&(s==="x"||s==="y"||s==="z"))continue;const c=jg(s),u=i8(l,c);i+=`${Kse[s]||s}(${u}) `}t&&!a&&(i+="translateZ(0px) "),n.value=i.trim()},{immediate:!0,deep:!0}),{state:r,transform:n}}const Xse=["","X","Y","Z"],Qse=["perspective","translate","scale","rotate","skew"],c8=["transformPerspective","x","y","z"];Qse.forEach(e=>{Xse.forEach(t=>{const r=e+t;c8.push(r)})});const Zse=new Set(c8);function Vg(e){return Zse.has(e)}const Jse=new Set(["originX","originY","originZ"]);function u8(e){return Jse.has(e)}function ele(e){const t={},r={};return Object.entries(e).forEach(([n,o])=>{Vg(n)||u8(n)?t[n]=o:r[n]=o}),{transform:t,style:r}}function d8(e){const{transform:t,style:r}=ele(e),{transform:n}=l8(t),{style:o}=s8(r);return n.value&&(o.value.transform=n.value),o.value}function tle(e,t){let r,n;const{state:o,style:i}=s8();return Ug(e,a=>{n=a;for(const s of Object.keys(o8))a.style[s]===null||a.style[s]===""||Vg(s)||u8(s)||(o[s]=a.style[s]);r&&Object.entries(r).forEach(([s,l])=>a.style[s]=l),t&&t(o)}),Je(i,a=>{if(!n){r=a;return}for(const s in a)n.style[s]=a[s]},{immediate:!0}),{style:o}}function rle(e){const t=e.trim().split(/\) |\)/);if(t.length===1)return{};const r=n=>n.endsWith("px")||n.endsWith("deg")?parseFloat(n):isNaN(Number(n))?Number(n):n;return t.reduce((n,o)=>{if(!o)return n;const[i,a]=o.split("("),l=a.split(",").map(u=>r(u.endsWith(")")?u.replace(")",""):u.trim())),c=l.length===1?l[0]:l;return{...n,[i]:c}},{})}function nle(e,t){Object.entries(rle(t)).forEach(([r,n])=>{const o=["x","y","z"];if(r==="translate3d"){if(n===0){o.forEach(i=>e[i]=0);return}n.forEach((i,a)=>e[o[a]]=i);return}if(n=parseFloat(n),r==="translateX"){e.x=n;return}if(r==="translateY"){e.y=n;return}if(r==="translateZ"){e.z=n;return}e[r]=n})}function ole(e,t){let r,n;const{state:o,transform:i}=l8();return Ug(e,a=>{n=a,a.style.transform&&nle(o,a.style.transform),r&&(a.style.transform=r),t&&t(o)}),Je(i,a=>{if(!n){r=a;return}n.style.transform=a},{immediate:!0}),{transform:o}}function ile(e,t){const r=nn({}),n=a=>Object.entries(a).forEach(([s,l])=>r[s]=l),{style:o}=tle(e,n),{transform:i}=ole(e,n);return Je(r,a=>{Object.entries(a).forEach(([s,l])=>{const c=Vg(s)?i:o;c[s]&&c[s]===l||(c[s]=l)})},{immediate:!0,deep:!0}),Ug(e,()=>t&&n(t)),{motionProperties:r,style:o,transform:i}}function ale(e={}){const t=N(e),r=M();return{state:R(()=>{if(r.value)return t[r.value]}),variant:r}}function f8(e,t={},r){const{motionProperties:n}=ile(e),{variant:o,state:i}=ale(t),a=Hse(n,t),s={target:e,variant:o,variants:t,state:i,motionProperties:n,...a};return Yse(s,r),s}const sle=["initial","enter","leave","visible","visible-once","visibleOnce","hovered","tapped","focused","delay"];function lle(e,t){const r=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};r&&(r.variants&&gu(r.variants)&&(t.value={...t.value,...r.variants}),sle.forEach(n=>{if(n==="delay"){if(r&&r[n]&&typeof r[n]=="number"){const o=r[n];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={delay:o,...t.value.enter.transition}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={delay:o,...t.value.visible.transition}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={delay:o,...t.value.visibleOnce.transition}))}return}if(r&&r[n]&&gu(r[n])){const o=r[n];n==="visible-once"&&(n="visibleOnce"),t.value[n]=o}}))}function m0(e){return{created:(n,o,i)=>{const a=o.value&&typeof o.value=="string"?o.value:i.key;a&&h0[a]&&h0[a].stop();const s=M(e||{});typeof o.value=="object"&&(s.value=o.value),lle(i,s);const c=f8(n,s,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});n.motionInstance=c,a&&(h0[a]=c)},mounted:(n,o,i)=>{n.motionInstance&&a8(n.motionInstance)},getSSRProps(n,o){let{initial:i}=n.value||o&&(o==null?void 0:o.props)||{};i=N(i);const a=rae((e==null?void 0:e.initial)||{},i||{});return!a||Object.keys(a).length===0?void 0:{style:d8(a)}}}}const cle={initial:{opacity:0},enter:{opacity:1}},ule={initial:{opacity:0},visible:{opacity:1}},dle={initial:{opacity:0},visibleOnce:{opacity:1}},fle={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},hle={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},ple={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},gle={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},mle={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},vle={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},ble={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},xle={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},yle={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},Cle={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},wle={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},Sle={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},_le={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},Ele={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},kle={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},Tle={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},Ale={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},Ple={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},$le={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},Ile={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},Dle={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},Ble={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},Ole={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},Lle={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},Rle={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},Fle={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},Mle={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Nh={__proto__:null,fade:cle,fadeVisible:ule,fadeVisibleOnce:dle,pop:fle,popVisible:hle,popVisibleOnce:ple,rollBottom:_le,rollLeft:gle,rollRight:ble,rollTop:Cle,rollVisibleBottom:Ele,rollVisibleLeft:mle,rollVisibleOnceBottom:kle,rollVisibleOnceLeft:vle,rollVisibleOnceRight:yle,rollVisibleOnceTop:Sle,rollVisibleRight:xle,rollVisibleTop:wle,slideBottom:Rle,slideLeft:Tle,slideRight:$le,slideTop:Ble,slideVisibleBottom:Fle,slideVisibleLeft:Ale,slideVisibleOnceBottom:Mle,slideVisibleOnceLeft:Ple,slideVisibleOnceRight:Dle,slideVisibleOnceTop:Lle,slideVisibleRight:Ile,slideVisibleTop:Ole},zle=pe({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(e){var s;const t=O5(),r=nn({});if(!e.is&&!t.default)return()=>$("div",{});const n=R(()=>{let l;return e.preset&&(l=Nh[e.preset]),l}),o=R(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused})),i=R(()=>{const l={...o.value,...n.value||{},...e.variants||{}};return e.delay&&(l.enter.transition={...l.enter.transition},l.enter.transition.delay=parseInt(e.delay)),l}),a=R(()=>{if(!e.is)return;let l=e.is;return typeof a.value=="string"&&!$8(l)&&(l=Uc(l)),l});if(((s=process==null?void 0:process.env)==null?void 0:s.NODE_ENV)==="development"||process!=null&&process.dev){const l=c=>{var u;(u=c.variants)!=null&&u.initial&&c.set("initial"),setTimeout(()=>{var f,d,h;(f=c.variants)!=null&&f.enter&&c.apply("enter"),(d=c.variants)!=null&&d.visible&&c.apply("visible"),(h=c.variants)!=null&&h.visibleOnce&&c.apply("visibleOnce")},10)};ip(()=>Object.entries(r).forEach(([c,u])=>l(u)))}return{slots:t,component:a,motionConfig:i,instances:r}},render({slots:e,motionConfig:t,instances:r,component:n}){var s;const o=d8(t.initial||{}),i=(l,c)=>(l.props||(l.props={}),l.props.style=o,l.props.onVnodeMounted=({el:u})=>{const f=f8(u,t);r[c]=f},l);if(n){const l=$(n,void 0,e);return i(l,0),l}return(((s=e.default)==null?void 0:s.call(e))||[]).map((l,c)=>i(l,c))}});function Nle(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",r="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",n=new RegExp(t.split("").join("|"),"g");return e.toString().replace(/[A-Z]/g,o=>`-${o}`).toLowerCase().replace(/\s+/g,"-").replace(n,o=>r.charAt(t.indexOf(o))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const Hle={install(e,t){if(e.directive("motion",m0()),e.component("Motion",zle),!t||t&&!t.excludePresets)for(const r in Nh){const n=Nh[r];e.directive(`motion-${Nle(r)}`,m0(n))}if(t&&t.directives)for(const r in t.directives){const n=t.directives[r];!n.initial&&__DEV__&&console.warn(`Your directive v-motion-${r} is missing initial variant!`),e.directive(`motion-${r}`,m0(n))}}};window.$message=xn();async function jle(){const e=qk(vte);e.directive("focus",{mounted(t){t.focus()}}),e.use(Qq),e.use(Hle),xte(),yte(),YZ(e),pte(e),await eae(e),e.mount("#app")}jle();export{vce as $,ar as A,Xt as B,At as C,Qt as D,he as E,Fe as F,re as G,Cr as H,Er as I,xn as J,sd as K,_t as L,wi as M,Jr as N,ot as O,Fs as P,me as Q,De as R,Re as S,_r as T,rt as U,oA as V,Yle as W,N as X,NR as Y,Ze as Z,_s as _,ne as a,Ece as a$,Ae as a0,Sa as a1,lu as a2,xr as a3,DN as a4,we as a5,qn as a6,Nm as a7,I0 as a8,nr as a9,Kt as aA,pce as aB,hce as aC,gce as aD,fce as aE,Vj as aF,bre as aG,x4 as aH,N9 as aI,H9 as aJ,ze as aK,ip as aL,sce as aM,Or as aN,bce as aO,kce as aP,zo as aQ,yZ as aR,xce as aS,ft as aT,lo as aU,ace as aV,$h as aW,ice as aX,Tce as aY,Fk as aZ,_ce as a_,Op as aa,Rp as ab,kt as ac,mt as ad,pa as ae,Uc as af,wC as ag,lr as ah,gi as ai,On as aj,Di as ak,YS as al,pt as am,rce as an,gn as ao,Qi as ap,Zu as aq,H_ as ar,Ai as as,gZ as at,mce as au,Ule as av,Vle as aw,kg as ax,tg as ay,vn as az,ue as b,nce as b$,Sce as b0,w4 as b1,rj as b2,tn as b3,Gle as b4,ece as b5,on as b6,L0 as b7,qA as b8,$w as b9,yce as bA,$ce as bB,Boe as bC,Cce as bD,vi as bE,wce as bF,lce as bG,dr as bH,ZL as bI,tj as bJ,Iw as bK,oce as bL,c_ as bM,ZH as bN,e3 as bO,dce as bP,JF as bQ,Fn as bR,Uu as bS,xl as bT,sn as bU,k2 as bV,Tg as bW,_y as bX,bz as bY,Dr as bZ,Qn as b_,qu as ba,mp as bb,vp as bc,gp as bd,Ro as be,wa as bf,g7 as bg,Cc as bh,YA as bi,Hu as bj,bp as bk,BT as bl,pl as bm,Wa as bn,KZ as bo,kF as bp,Ye as bq,nn as br,Pce as bs,g1 as bt,p1 as bu,Yu as bv,Ace as bw,f1 as bx,Kle as by,cce as bz,Y as c,fF as c$,pp as c0,bn as c1,en as c2,Xle as c3,Ua as c4,Ru as c5,bS as c6,ba as c7,ma as c8,fp as c9,wl as cA,Qz as cB,ed as cC,ml as cD,gA as cE,TC as cF,ql as cG,pv as cH,oo as cI,Ln as cJ,Jle as cK,Sl as cL,hl as cM,ZT as cN,Mp as cO,jm as cP,yS as cQ,pw as cR,Ns as cS,Zle as cT,wp as cU,Lo as cV,NN as cW,va as cX,RT as cY,no as cZ,lT as c_,R2 as ca,SS as cb,tce as cc,TS as cd,AC as ce,k9 as cf,w9 as cg,Nr as ch,Hs as ci,OR as cj,_R as ck,Wp as cl,D$ as cm,Jc as cn,Ys as co,sT as cp,up as cq,p9 as cr,KA as cs,G7 as ct,q7 as cu,r_ as cv,wv as cw,uce as cx,UZ as cy,qle as cz,le as d,hp as e,B2 as f,pe as g,We as h,Mu as i,Cp as j,R as k,Nu as l,Ht as m,tr as n,A5 as o,Ha as p,xa as q,M as r,gN as s,Lt as t,gt as u,$ as v,Je as w,iA as x,Xc as y,SA as z};