@inpageedit/core 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +2 -2
  2. package/dist/{ActionButton-BhcZX7rl.js → ActionButton-DkQu8dfH.js} +2 -2
  3. package/dist/{ActionButton-BhcZX7rl.js.map → ActionButton-DkQu8dfH.js.map} +1 -1
  4. package/dist/InPageEdit.d.ts +8 -3
  5. package/dist/{CheckBox-B7zLOm55.js → InputBox-B-BAGjgs.js} +11 -11
  6. package/dist/InputBox-B-BAGjgs.js.map +1 -0
  7. package/dist/{PluginPreferencesUI-CqQKXQkn.js → PluginPreferencesUI-CHdAGK8T.js} +6 -5
  8. package/dist/{PluginPreferencesUI-CqQKXQkn.js.map → PluginPreferencesUI-CHdAGK8T.js.map} +1 -1
  9. package/dist/{RadioBox-Dl-VRoW0.js → RadioBox-CQ9xz5nk.js} +2 -2
  10. package/dist/{RadioBox-Dl-VRoW0.js.map → RadioBox-CQ9xz5nk.js.map} +1 -1
  11. package/dist/components/index.d.ts +8 -0
  12. package/dist/components/index.js +79 -0
  13. package/dist/components/index.js.map +1 -0
  14. package/dist/{index-CL0NhE5n.js → index-B02kaEy5.js} +5 -4
  15. package/dist/{index-CL0NhE5n.js.map → index-B02kaEy5.js.map} +1 -1
  16. package/dist/{index-BEDkPsz1.js → index-BIFsoDor.js} +18 -17
  17. package/dist/{index-BEDkPsz1.js.map → index-BIFsoDor.js.map} +1 -1
  18. package/dist/{index-Hed2P8uH.js → index-C6PwuH_U.js} +18 -17
  19. package/dist/{index-Hed2P8uH.js.map → index-C6PwuH_U.js.map} +1 -1
  20. package/dist/{index-LoZLvK3o.js → index-CavCnbOz.js} +20 -19
  21. package/dist/{index-LoZLvK3o.js.map → index-CavCnbOz.js.map} +1 -1
  22. package/dist/{index-sORwn1Vt.js → index-D1nQg-aN.js} +10 -9
  23. package/dist/{index-sORwn1Vt.js.map → index-D1nQg-aN.js.map} +1 -1
  24. package/dist/index-D3QOS3-Q.js +348 -0
  25. package/dist/index-D3QOS3-Q.js.map +1 -0
  26. package/dist/{index-Bz4cBa1Z.js → index-Do5exwYg.js} +36 -35
  27. package/dist/{index-Bz4cBa1Z.js.map → index-Do5exwYg.js.map} +1 -1
  28. package/dist/{index-DA5i7w02.js → index-vjK9PEyV.js} +9 -8
  29. package/dist/{index-DA5i7w02.js.map → index-vjK9PEyV.js.map} +1 -1
  30. package/dist/{index-Bi1eJIjL.js → index-wYcxrK6G.js} +2 -2
  31. package/dist/{index-Bi1eJIjL.js.map → index-wYcxrK6G.js.map} +1 -1
  32. package/dist/index.d.ts +16 -1
  33. package/dist/index.js +5120 -5
  34. package/dist/index.js.map +1 -1
  35. package/dist/plugins/BasePlugin.d.ts +2 -2
  36. package/dist/services/ApiService.d.ts +1 -1
  37. package/dist/services/ResourceLoaderService.d.ts +3 -2
  38. package/dist/services/SiteMetadataService.d.ts +1 -1
  39. package/dist/style.css +1 -1
  40. package/lib/i18n/languages.json +1527 -0
  41. package/lib/index.umd.js +2666 -0
  42. package/lib/style.css +1 -0
  43. package/package.json +55 -9
  44. package/dist/CheckBox-B7zLOm55.js.map +0 -1
  45. package/dist/index-CuEf9G7f.js +0 -5459
  46. package/dist/index-CuEf9G7f.js.map +0 -1
  47. /package/dist/components/TabView/{TabView.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,2666 @@
1
+ (function(vt,Ut){typeof exports=="object"&&typeof module<"u"?Ut(exports):typeof define=="function"&&define.amd?define(["exports"],Ut):(vt=typeof globalThis<"u"?globalThis:vt||self,Ut(vt.InPageEditBundle={}))})(this,function(vt){"use strict";var i5=Object.defineProperty;var Ax=vt=>{throw TypeError(vt)};var a5=(vt,Ut,Mn)=>Ut in vt?i5(vt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):vt[Ut]=Mn;var xe=(vt,Ut,Mn)=>a5(vt,typeof Ut!="symbol"?Ut+"":Ut,Mn),pp=(vt,Ut,Mn)=>Ut.has(vt)||Ax("Cannot "+Mn);var Mx=(vt,Ut,Mn)=>(pp(vt,Ut,"read from private field"),Mn?Mn.call(vt):Ut.get(vt)),mp=(vt,Ut,Mn)=>Ut.has(vt)?Ax("Cannot add the same private member more than once"):Ut instanceof WeakSet?Ut.add(vt):Ut.set(vt,Mn),Ix=(vt,Ut,Mn,ut)=>(pp(vt,Ut,"write to private field"),ut?ut.call(vt,Mn):Ut.set(vt,Mn),Mn),_u=(vt,Ut,Mn)=>(pp(vt,Ut,"access private method"),Mn);var Ir,Xa,Qi,Qa,Za,Ja,es,An,Pr,Zi,ts,ns,rs,os,ci,zx,Bx,Nx,ul;const Ut=()=>{let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}};Promise.withResolvers||(Promise.withResolvers=Ut);var Mn=Object.defineProperty,ut=(e,t)=>Mn(e,"name",{value:t,configurable:!0});function Lx(){}ut(Lx,"noop");function Sn(e){return e==null}ut(Sn,"isNullable");function Hx(e){return!Sn(e)}ut(Hx,"isNonNullable");function vl(e){return e&&typeof e=="object"&&!Array.isArray(e)}ut(vl,"isPlainObject");function vp(e,t){return Object.fromEntries(Object.entries(e).filter(([n,r])=>t(n,r)))}ut(vp,"filterKeys");function mo(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}ut(mo,"mapValues");function gp(e,t,n){if(!t)return{...e};const r={};for(const o of t)(n||e[o]!==void 0)&&(r[o]=e[o]);return r}ut(gp,"pick");function Vx(e,t){if(!t)return{...e};const n={...e};for(const r of t)Reflect.deleteProperty(n,r);return n}ut(Vx,"omit");function Ln(e,t,n){return Object.defineProperty(e,t,{writable:!0,value:n,enumerable:!1})}ut(Ln,"defineProperty");function jx(e,t){return t.every(n=>e.includes(n))}ut(jx,"contain");function Wx(e,t){return e.filter(n=>t.includes(n))}ut(Wx,"intersection");function Ux(e,t){return e.filter(n=>!t.includes(n))}ut(Ux,"difference");function qx(e,t){return Array.from(new Set([...e,...t]))}ut(qx,"union");function Yx(e){return[...new Set(e)]}ut(Yx,"deduplicate");function qr(e,t){const n=e?.indexOf(t);return n>=0?(e.splice(n,1),!0):!1}ut(qr,"remove");function Gx(e){return Array.isArray(e)?e:Sn(e)?[]:[e]}ut(Gx,"makeArray");function Ao(e,t){return arguments.length===1?n=>Ao(e,n):e in globalThis&&t instanceof globalThis[e]||Object.prototype.toString.call(t).slice(8,-1)===e}ut(Ao,"is");function as(e){return Ao("ArrayBuffer",e)||Ao("SharedArrayBuffer",e)}ut(as,"isArrayBufferLike");function bp(e){return as(e)||ArrayBuffer.isView(e)}ut(bp,"isArrayBufferSource");var Yr;(e=>{e.is=as,e.isSource=bp;function t(a){return ArrayBuffer.isView(a)?a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength):a}e.fromSource=t,ut(t,"fromSource");function n(a){if(typeof Buffer<"u")return Buffer.from(a).toString("base64");let s="";const l=new Uint8Array(a);for(let c=0;c<l.byteLength;c++)s+=String.fromCharCode(l[c]);return btoa(s)}e.toBase64=n,ut(n,"toBase64");function r(a){return typeof Buffer<"u"?t(Buffer.from(a,"base64")):Uint8Array.from(atob(a),s=>s.charCodeAt(0))}e.fromBase64=r,ut(r,"fromBase64");function o(a){return typeof Buffer<"u"?Buffer.from(a).toString("hex"):Array.from(new Uint8Array(a),s=>s.toString(16).padStart(2,"0")).join("")}e.toHex=o,ut(o,"toHex");function i(a){if(typeof Buffer<"u")return t(Buffer.from(a,"hex"));const s=a.length%2===0?a:a.slice(0,a.length-1),l=[];for(let c=0;c<s.length;c+=2)l.push(parseInt(`${s[c]}${s[c+1]}`,16));return Uint8Array.from(l).buffer}e.fromHex=i,ut(i,"fromHex")})(Yr||(Yr={})),Yr.fromBase64,Yr.toBase64,Yr.fromHex,Yr.toHex;function gl(e,t=new Map){if(!e||typeof e!="object")return e;if(Ao("Date",e))return new Date(e.valueOf());if(Ao("RegExp",e))return new RegExp(e.source,e.flags);if(as(e))return e.slice(0);if(ArrayBuffer.isView(e))return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);const n=t.get(e);if(n)return n;if(Array.isArray(e)){const o=[];return t.set(e,o),e.forEach((i,a)=>{o[a]=Reflect.apply(gl,null,[i,t])}),o}const r=Object.create(Object.getPrototypeOf(e));t.set(e,r);for(const o of Reflect.ownKeys(e)){const i={...Reflect.getOwnPropertyDescriptor(e,o)};"value"in i&&(i.value=Reflect.apply(gl,null,[i.value,t])),Reflect.defineProperty(r,o,i)}return r}ut(gl,"clone");function di(e,t,n){if(e===t||!n&&Sn(e)&&Sn(t))return!0;if(typeof e!=typeof t||typeof e!="object"||!e||!t)return!1;function r(o,i){return o(e)?o(t)?i(e,t):!1:o(t)?!1:void 0}return ut(r,"check"),r(Array.isArray,(o,i)=>o.length===i.length&&o.every((a,s)=>di(a,i[s])))??r(Ao("Date"),(o,i)=>o.valueOf()===i.valueOf())??r(Ao("RegExp"),(o,i)=>o.source===i.source&&o.flags===i.flags)??r(as,(o,i)=>{if(o.byteLength!==i.byteLength)return!1;const a=new Uint8Array(o),s=new Uint8Array(i);for(let l=0;l<a.length;l++)if(a[l]!==s[l])return!1;return!0})??Object.keys({...e,...t}).every(o=>di(e[o],t[o],n))}ut(di,"deepEqual");function Kx(e){return e.charAt(0).toUpperCase()+e.slice(1)}ut(Kx,"capitalize");function Xx(e){return e.charAt(0).toLowerCase()+e.slice(1)}ut(Xx,"uncapitalize");function Qx(e){return e.replace(/[_-][a-z]/g,t=>t.slice(1).toUpperCase())}ut(Qx,"camelCase");function ku(e,t,n){const r=[];let o=0;for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);if(a>=65&&a<=90){if(o===1){const s=e.charCodeAt(i+1);s>=97&&s<=122&&r.push(n),r.push(a+32)}else o!==0&&r.push(n),r.push(a+32);o=1}else a>=97&&a<=122?(r.push(a),o=2):t.includes(a)?(o!==0&&r.push(n),o=0):r.push(a)}return String.fromCharCode(...r)}ut(ku,"tokenize");function Zx(e){return ku(e,[45,95],45)}ut(Zx,"paramCase");function Jx(e){return ku(e,[45,95],95)}ut(Jx,"snakeCase");function e1(e){return typeof e!="string"?`[${e.toString()}]`:/^[a-z_$][\w$]*$/i.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}ut(e1,"formatProperty");function yp(e){return e.replace(/\/$/,"")}ut(yp,"trimSlash");function t1(e){return e.startsWith("/")||(e="/"+e),yp(e)}ut(t1,"sanitize");var bl;(e=>{e.millisecond=1,e.second=1e3,e.minute=e.second*60,e.hour=e.minute*60,e.day=e.hour*24,e.week=e.day*7;let t=new Date().getTimezoneOffset();function n(m){t=m}e.setTimezoneOffset=n,ut(n,"setTimezoneOffset");function r(){return t}e.getTimezoneOffset=r,ut(r,"getTimezoneOffset");function o(m=new Date,f){return typeof m=="number"&&(m=new Date(m)),f===void 0&&(f=t),Math.floor((m.valueOf()/e.minute-f)/1440)}e.getDateNumber=o,ut(o,"getDateNumber");function i(m,f){const y=new Date(m*e.day);return f===void 0&&(f=t),new Date(+y+f*e.minute)}e.fromDateNumber=i,ut(i,"fromDateNumber");const a=/\d+(?:\.\d+)?/.source,s=new RegExp(`^${["w(?:eek(?:s)?)?","d(?:ay(?:s)?)?","h(?:our(?:s)?)?","m(?:in(?:ute)?(?:s)?)?","s(?:ec(?:ond)?(?:s)?)?"].map(m=>`(${a}${m})?`).join("")}$`);function l(m){const f=s.exec(m);return f?(parseFloat(f[1])*e.week||0)+(parseFloat(f[2])*e.day||0)+(parseFloat(f[3])*e.hour||0)+(parseFloat(f[4])*e.minute||0)+(parseFloat(f[5])*e.second||0):0}e.parseTime=l,ut(l,"parseTime");function c(m){const f=l(m);return f?m=Date.now()+f:/^\d{1,2}(:\d{1,2}){1,2}$/.test(m)?m=`${new Date().toLocaleDateString()}-${m}`:/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(m)&&(m=`${new Date().getFullYear()}-${m}`),m?new Date(m):new Date}e.parseDate=c,ut(c,"parseDate");function u(m){const f=Math.abs(m);return f>=e.day-e.hour/2?Math.round(m/e.day)+"d":f>=e.hour-e.minute/2?Math.round(m/e.hour)+"h":f>=e.minute-e.second/2?Math.round(m/e.minute)+"m":f>=e.second?Math.round(m/e.second)+"s":m+"ms"}e.format=u,ut(u,"format");function d(m,f=2){return m.toString().padStart(f,"0")}e.toDigits=d,ut(d,"toDigits");function p(m,f=new Date){return m.replace("yyyy",f.getFullYear().toString()).replace("yy",f.getFullYear().toString().slice(2)).replace("MM",d(f.getMonth()+1)).replace("dd",d(f.getDate())).replace("hh",d(f.getHours())).replace("mm",d(f.getMinutes())).replace("ss",d(f.getSeconds())).replace("SSS",d(f.getMilliseconds(),3))}e.template=p,ut(p,"template")})(bl||(bl={}));var n1=Object.defineProperty,pt=(e,t)=>n1(e,"name",{value:t,configurable:!0}),Ke={shadow:Symbol.for("cordis.shadow"),receiver:Symbol.for("cordis.receiver"),original:Symbol.for("cordis.original"),store:Symbol.for("cordis.store"),events:Symbol.for("cordis.events"),static:Symbol.for("cordis.static"),filter:Symbol.for("cordis.filter"),expose:Symbol.for("cordis.expose"),isolate:Symbol.for("cordis.isolate"),internal:Symbol.for("cordis.internal"),intercept:Symbol.for("cordis.intercept"),setup:Symbol.for("cordis.setup"),invoke:Symbol.for("cordis.invoke"),extend:Symbol.for("cordis.extend"),tracker:Symbol.for("cordis.tracker"),provide:Symbol.for("cordis.provide"),immediate:Symbol.for("cordis.immediate")},r1=function*(){}.constructor,wp=async function*(){}.constructor;function Pu(e){return!(!e.prototype||e instanceof r1||wp!==Function&&e instanceof wp)}pt(Pu,"isConstructor");function ss(e,t){const n=e.Config||e.schema;return n&&e.schema!==!1&&(t=n(t)),t??{}}pt(ss,"resolveConfig");function xp(e){return[Map,Set,Date,Promise].some(t=>e instanceof t)}pt(xp,"isUnproxyable");function Tu(e,t){if(e===Object.prototype)return t;const n=Object.create(Tu(Object.getPrototypeOf(e),t));for(const r of Reflect.ownKeys(e))Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r));return n}pt(Tu,"joinPrototype");function $u(e){return e&&(typeof e=="object"||typeof e=="function")}pt($u,"isObject");function Gr(e,t,n){if(!$u(t))return t;if(Object.hasOwn(t,Ke.shadow))return Object.getPrototypeOf(t);const r=t[Ke.tracker];return r?wl(e,t,r,n):t}pt(Gr,"getTraceable");function ls(e,t){return t?new Proxy(e,{get:pt((n,r,o)=>r in t&&r!=="constructor"?Reflect.get(t,r,o):Reflect.get(n,r,o),"get"),set:pt((n,r,o,i)=>r in t&&r!=="constructor"?Reflect.set(t,r,o,i):Reflect.set(n,r,o,i),"set")}):e}pt(ls,"withProps");function yl(e,t,n){return ls(e,Object.defineProperty(Object.create(null),t,{value:n,writable:!1}))}pt(yl,"withProp");function Ru(e,t,n,r){if(!n)return r;const o=Reflect.getOwnPropertyDescriptor(t,n)?.value;return o?yl(r,n,e.extend({[Ke.shadow]:o})):r}pt(Ru,"createShadow");function Cp(e,t,n,r){return new Proxy(t,{apply:pt((o,i,a)=>(i===n&&(i=r),a=a.map(s=>typeof s!="function"||s[Ke.original]?s:new Proxy(s,{get:pt((l,c,u)=>{if(c===Ke.original)return l;const d=Reflect.get(l,c,u);return c==="toString"&&d===Function.prototype.toString?function(...p){return Reflect.apply(d,this===u?l:this,p)}:d},"get"),apply:pt((l,c,u)=>Reflect.apply(l,Gr(e,c),u.map(d=>Gr(e,d))),"apply"),construct:pt((l,c,u)=>Reflect.construct(l,c.map(d=>Gr(e,d)),u),"construct")})),Gr(e,Reflect.apply(o,i,a))),"apply")})}pt(Cp,"createShadowMethod");function wl(e,t,n,r){e[Ke.shadow]&&(e=Object.getPrototypeOf(e));const o=new Proxy(t,{get:pt((i,a,s)=>{if(a===Ke.original)return i;if(a===n.property)return e;if(typeof a=="symbol")return Reflect.get(i,a,s);if(n.associate&&e[Ke.internal][`${n.associate}.${a}`])return Reflect.get(e,`${n.associate}.${a}`,yl(e,Ke.receiver,s));const l=Ru(e,i,n.property,s),c=Reflect.get(i,a,l),u=c?.[Ke.tracker];return u?wl(e,c,u):!r&&typeof c=="function"?Cp(e,c,s,l):c},"get"),set:pt((i,a,s,l)=>{if(a===Ke.original||a===n.property)return!1;if(typeof a=="symbol")return Reflect.set(i,a,s,l);if(n.associate&&e[Ke.internal][`${n.associate}.${a}`])return Reflect.set(e,`${n.associate}.${a}`,s,yl(e,Ke.receiver,l));const c=Ru(e,i,n.property,l);return Reflect.set(i,a,s,c)},"set"),apply:pt((i,a,s)=>Ou(o,i,a,s),"apply")});return o}pt(wl,"createTraceable");function Ou(e,t,n,r){return t[Ke.invoke]?t[Ke.invoke].apply(e,r):Reflect.apply(t,n,r)}pt(Ou,"applyTraceable");function Eu(e,t,n){const r=pt(function(...o){const i=wl(r.ctx,r,n);return Ou(i,r,this,o)},"self");return Ln(r,"name",e),Object.setPrototypeOf(r,t)}pt(Eu,"createCallable");var o1=(Ir=class{constructor(t){this.ctx=t,Ln(this,Ke.tracker,{associate:"reflect",property:"ctx"}),this._mixin("reflect",["get","set","provide","accessor","mixin","alias"]),this._mixin("scope",["config","runtime","effect","collect","accept","decline"]),this._mixin("registry",["using","inject","plugin"]),this._mixin("lifecycle",["on","once","parallel","emit","serial","bail","start","stop"])}static resolveInject(t,n){let r=t[Ke.internal][n];for(;r?.type==="alias";)n=r.name,r=t[Ke.internal][n];return[n,r]}static checkInject(t,n,r){if(t=t[Ke.shadow]??t,["prototype","then","registry","lifecycle"].includes(n)||n[0]==="$"||n[0]==="_"||!t.runtime.plugin||t.bail(t,"internal/inject",n))return;const o=r.stack.split(`
2
+ `);o.splice(1,1),r.stack=o.join(`
3
+ `),t.emit(t,"internal/warning",r)}get(t){if(this.ctx[Ke.internal][t]?.type!=="service")return;const r=this.ctx[Ke.isolate][t],o=this.ctx[Ke.store][r]?.value;return Gr(this.ctx,o)}set(t,n){this.provide(t);const r=this.ctx[Ke.isolate][t],o=this.ctx[Ke.store][r]?.value;n??(n=void 0);let i=pt(()=>{},"dispose");if(o===n)return i;if(!Sn(n)&&!Sn(o))throw new Error(`service ${t} has been registered`);const a=this.ctx;Sn(n)||(i=a.effect(()=>()=>{a.set(t,void 0)})),xp(n)&&a.emit(a,"internal/warning",new Error(`service ${t} is an unproxyable object, which may lead to unexpected behavior`));const s=Object.create(a);return s[Ke.filter]=l=>a[Ke.isolate][t]===l[Ke.isolate][t],a.emit(s,"internal/before-service",t,n),a[Ke.store][r]={value:n,source:a},a.emit(s,"internal/service",t,o),i}provide(t,n,r){const o=this.ctx.root[Ke.internal];if(t in o)return;const i=Symbol(t);o[t]={type:"service",builtin:r},this.ctx.root[Ke.isolate][t]=i,$u(n)&&(this.ctx[Ke.store][i]={value:n,source:null},Ln(n,Ke.tracker,{associate:t,property:"ctx"}))}_accessor(t,n){const r=this.ctx.root[Ke.internal];return t in r?()=>{}:(r[t]={type:"accessor",...n},()=>delete this.ctx.root[Ke.isolate][t])}accessor(t,n){this.ctx.scope.effect(()=>this._accessor(t,n))}alias(t,n){const r=this.ctx.root[Ke.internal];if(!(t in r))for(const o of n)r[o]||(r[o]={type:"alias",name:t})}_mixin(t,n){const r=Array.isArray(n)?n.map(a=>[a,a]):Object.entries(n),o=typeof t=="string"?a=>a[t]:()=>t,i=r.map(([a,s])=>this._accessor(s,{get(l){const c=o(this);if(Sn(c))return c;const u=l?ls(l,c):c,d=Reflect.get(c,a,u);return typeof d!="function"?d:d.bind(u??c)},set(l,c){const u=o(this),d=c?ls(c,u):u;return Reflect.set(u,a,l,d)}}));return()=>i.forEach(a=>a())}mixin(t,n){this.ctx.scope.effect(()=>this._mixin(t,n))}trace(t){return Gr(this.ctx,t)}bind(t){return new Proxy(t,{apply:pt((n,r,o)=>n.apply(this.trace(r),o.map(i=>this.trace(i))),"apply")})}},pt(Ir,"ReflectService"),xe(Ir,"handler",{get:pt((t,n,r)=>{if(typeof n!="string")return Reflect.get(t,n,r);if(Reflect.has(t,n))return Gr(r,Reflect.get(t,n,r),!0);const[o,i]=Ir.resolveInject(t,n),a=new Error(`property ${o} is not registered, declare it as \`inject\` to suppress this warning`);return i?i.type==="accessor"?i.get.call(r,r[Ke.receiver]):(i.builtin||Ir.checkInject(r,o,a),r.reflect.get(o)):(Ir.checkInject(r,o,a),Reflect.get(t,o,r))},"get"),set:pt((t,n,r,o)=>{if(typeof n!="string")return Reflect.set(t,n,r,o);const[i,a]=Ir.resolveInject(t,n);return a?a.type==="accessor"?a.set?a.set.call(o,r,o[Ke.receiver]):!1:(o.reflect.set(i,r),!0):Reflect.set(t,i,r,o)},"set"),has:pt((t,n)=>{if(typeof n!="string")return Reflect.has(t,n);if(Reflect.has(t,n))return!0;const[,r]=Ir.resolveInject(t,n);return!!r},"has")}),Ir),Du=o1;function Fu(e){return e!==null&&e!==!1&&e!==void 0}pt(Fu,"isBailed");var i1=(Xa=class{constructor(t){xe(this,"isActive",!1);xe(this,"_tasks",new Set);xe(this,"_hooks",{});this.ctx=t,Ln(this,Ke.tracker,{associate:"lifecycle",property:"ctx"}),Ln(this.on("internal/listener",function(r,o,i){const a=i.prepend?"unshift":"push";if(r==="ready")return this.lifecycle.isActive?(this.scope.ensure(async()=>o()),()=>!1):void 0;if(r==="dispose")return this.scope.disposables[a](o),Ln(o,"name","event <dispose>"),()=>qr(this.scope.disposables,o);if(r==="fork")return this.scope.runtime.forkables[a](o),this.scope.collect("event <fork>",()=>qr(this.scope.runtime.forkables,o))}),Hn.static,t.scope);for(const r of["info","error","warning"])Ln(this.on(`internal/${r}`,(o,...i)=>{this._hooks[`internal/${r}`].length>1||console.info(o,...i)}),Hn.static,t.scope);Ln(this.on("internal/before-service",function(r){for(const o of this.registry.values()){if(!o.inject[r]?.required)continue;const i=o.isReusable?o.children:[o];for(const a of i)this[Ke.filter](a.ctx)&&(a.updateStatus(),a.reset())}},{global:!0}),Hn.static,t.scope),Ln(this.on("internal/service",function(r){for(const o of this.registry.values()){if(!o.inject[r]?.required)continue;const i=o.isReusable?o.children:[o];for(const a of i)this[Ke.filter](a.ctx)&&a.start()}},{global:!0}),Hn.static,t.scope);const n=pt((r,o)=>{if(!r.runtime.plugin)return!1;for(const i in r.runtime.inject)if(o===Du.resolveInject(r.ctx,i)[0])return!0;return n(r.parent.scope,o)},"checkInject");Ln(this.on("internal/inject",function(r){return n(this.scope,r)},{global:!0}),Hn.static,t.scope)}async flush(){for(;this._tasks.size;)await Promise.all(Array.from(this._tasks))}filterHooks(t,n){return n=Gr(this.ctx,n),t.slice().filter(r=>{const o=n?.[Hn.filter];return r.global||!o||o.call(n,r.ctx)})}*dispatch(t,n){const r=typeof n[0]=="object"||typeof n[0]=="function"?n.shift():null,o=n.shift();o!=="internal/event"&&this.emit("internal/event",t,o,n,r);for(const i of this.filterHooks(this._hooks[o]||[],r))yield i.callback.apply(r,n)}async parallel(...t){await Promise.all(this.dispatch("emit",t))}emit(...t){Array.from(this.dispatch("emit",t))}async serial(...t){for await(const n of this.dispatch("serial",t))if(Fu(n))return n}bail(...t){for(const n of this.dispatch("bail",t))if(Fu(n))return n}register(t,n,r,o){const i=o.prepend?"unshift":"push";return n[i]({ctx:this.ctx,callback:r,...o}),this.ctx.state.collect(t,()=>this.unregister(n,r))}unregister(t,n){const r=t.findIndex(o=>o.callback===n);if(r>=0)return t.splice(r,1),!0}on(t,n,r){var s;typeof r!="object"&&(r={prepend:r}),this.ctx.scope.assertActive(),n=this.ctx.reflect.bind(n);const o=this.bail(this.ctx,"internal/listener",t,n,r);if(o)return o;const i=(s=this._hooks)[t]||(s[t]=[]),a=typeof t=="string"?`event <${t}>`:"event (Symbol)";return this.register(a,i,n,r)}once(t,n,r){const o=this.on(t,function(...i){return o(),n.apply(this,i)},r);return o}async start(){this.isActive=!0;const t=this._hooks.ready||[];for(;t.length;){const{ctx:n,callback:r}=t.shift();n.scope.ensure(async()=>r())}await this.flush()}async stop(){this.isActive=!1,this.ctx.scope.reset()}},pt(Xa,"Lifecycle"),Xa),a1=i1,Au=(Qi=class extends Error{constructor(t,n){super(n??Qi.Code[t]),this.code=t}},pt(Qi,"CordisError"),Qi);(e=>{e.Code={INACTIVE_EFFECT:"cannot create effect on inactive context"}})(Au||(Au={}));var Sp=(Qa=class{constructor(t,n){xe(this,"uid");xe(this,"ctx");xe(this,"disposables",[]);xe(this,"error");xe(this,"status",0);xe(this,"isActive",!1);xe(this,"context");xe(this,"proxy");xe(this,"acceptors",[]);xe(this,"tasks",new Set);xe(this,"hasError",!1);this.parent=t,this.config=n,this.uid=t.registry?t.registry.counter:0,this.ctx=this.context=t.extend({scope:this}),this.proxy=new Proxy({},{get:pt((r,o)=>Reflect.get(this.config,o),"get")})}get _config(){return this.runtime.isReactive?this.proxy:this.config}assertActive(){if(!(this.uid!==null||this.isActive))throw new Au("INACTIVE_EFFECT")}effect(t,n){this.assertActive();const r=Pu(t)?new t(this.ctx,n):t(this.ctx,n);let o=!1;const i=typeof r=="function"?r:r.dispose.bind(r),a=pt((...s)=>{if(!o)return o=!0,qr(this.disposables,a),i(...s)},"wrapped");return this.disposables.push(a),typeof r=="function"?a:(r.dispose=a,r)}collect(t,n){const r=Ln(()=>(qr(this.disposables,r),n()),"name",t);return this.disposables.push(r),r}restart(){this.reset(),this.error=null,this.hasError=!1,this.status=0,this.start()}_getStatus(){return this.uid===null?4:this.hasError?3:this.tasks.size?1:this.ready?2:0}updateStatus(t){const n=this.status;t?.(),this.status=this._getStatus(),n!==this.status&&this.context.emit("internal/status",this,n)}ensure(t){const n=t().catch(r=>{this.context.emit(this.ctx,"internal/error",r),this.cancel(r)}).finally(()=>{this.updateStatus(()=>this.tasks.delete(n)),this.context.events._tasks.delete(n)});this.updateStatus(()=>this.tasks.add(n)),this.context.events._tasks.add(n)}cancel(t){this.error=t,this.updateStatus(()=>this.hasError=!0),this.reset()}get ready(){return Object.entries(this.runtime.inject).every(([t,n])=>!n.required||!Sn(this.ctx.get(t)))}reset(){this.isActive=!1,this.disposables=this.disposables.splice(0).filter(t=>{if(this.uid!==null&&t[Hn.static]===this)return!0;(async()=>t())().catch(n=>{this.context.emit(this.ctx,"internal/error",n)})})}init(t){this.config?this.start():this.cancel(t)}start(){if(!this.ready||this.isActive||this.uid===null)return!0;this.isActive=!0,this.updateStatus(()=>this.hasError=!1)}accept(...t){const r={keys:Array.isArray(t[0])?t.shift():null,callback:t[0],...t[1]};return this.effect(()=>(this.acceptors.push(r),r.immediate&&r.callback?.(this.config),()=>qr(this.acceptors,r)))}decline(t){return this.accept(t,()=>!0)}checkUpdate(t,n){if(n||!this.config)return[!0,!0];if(n===!1)return[!1,!1];const r=Object.create(null),o=pt(c=>{const u=r[c]??(r[c]=!di(this.config[c],t[c]));return a||(a=u),u},"checkPropertyUpdate"),i=new Set;let a=!1,s=!1,l=this.runtime.isReactive||null;for(const{keys:c,callback:u,passive:d}of this.acceptors){if(!c)l||(l=!d);else if(d)c?.forEach(m=>i.add(m));else{let m=!1;for(const f of c)m||(m=o(f));if(!m)continue}u?.(t)&&(s=!0)}for(const c in{...this.config,...t})if(l!==!1&&!(c in r)&&!i.has(c)){const u=o(c);l===null&&(s||(s=u))}return[a,s]}},pt(Qa,"EffectScope"),Qa),s1=(Za=class extends Sp{constructor(n,r,o,i){super(n,o);xe(this,"dispose");this.runtime=r,this.dispose=Ln(n.scope.collect(`fork <${n.runtime.name}>`,()=>{this.uid=null,this.reset(),this.context.emit("internal/fork",this);const a=qr(r.disposables,this.dispose);return qr(r.children,this)&&!r.children.length&&n.registry.delete(r.plugin),a}),Hn.static,r),r.children.push(this),r.disposables.push(this.dispose),this.context.emit("internal/fork",this),this.init(i)}start(){if(super.start())return!0;for(const n of this.runtime.forkables)this.ensure(async()=>n(this.context,this._config))}update(n,r){const o=this.config,i=this.runtime.isForkable?this:this.runtime;if(i.config!==o)return;let a;try{a=ss(this.runtime.plugin,n)}catch(c){return this.context.emit("internal/error",c),this.cancel(c)}const[s,l]=i.checkUpdate(a,r);this.context.emit("internal/before-update",this,n),this.config=a,i.config=a,s&&this.context.emit("internal/update",this,o),l&&i.restart()}},pt(Za,"ForkScope"),Za),_p=(Ja=class extends Sp{constructor(n,r,o,i){super(n,o);xe(this,"value");xe(this,"runtime",this);xe(this,"schema");xe(this,"name");xe(this,"inject",Object.create(null));xe(this,"forkables",[]);xe(this,"children",[]);xe(this,"isReusable",!1);xe(this,"isReactive",!1);xe(this,"apply",pt((n,r)=>{if(typeof this.plugin!="function")return this.plugin.apply(n,r);if(Pu(this.plugin)){const o=new this.plugin(n,r),i=o[Hn.expose];return i&&n.set(i,o),o.fork&&this.forkables.push(o.fork.bind(o)),o}else return this.plugin(n,r)},"apply"));this.plugin=r,r?(this.setup(),this.init(i)):(this.name="root",this.isActive=!0)}get isForkable(){return this.forkables.length>0}fork(n,r,o){return new s1(n,this,r,o)}dispose(){return this.uid=null,this.reset(),this.context.emit("internal/runtime",this),!0}setup(){const{name:n}=this.plugin;n&&n!=="apply"&&(this.name=n),this.schema=this.plugin.Config||this.plugin.schema,this.inject=cr.resolve(this.plugin.using||this.plugin.inject),this.isReusable=this.plugin.reusable,this.isReactive=this.plugin.reactive,this.context.emit("internal/runtime",this),this.isReusable&&this.forkables.push(this.apply)}reset(){super.reset();for(const n of this.children)n.reset()}start(){if(super.start())return!0;!this.isReusable&&this.plugin&&this.ensure(async()=>this.value=this.apply(this.ctx,this._config));for(const n of this.children)n.start()}update(n,r){if(this.isForkable){const c=new Error(`attempting to update forkable plugin "${this.plugin.name}", which may lead to unexpected behavior`);this.context.emit(this.ctx,"internal/warning",c)}const o=this.config;let i;try{i=ss(this.runtime.plugin||this.context.constructor,n)}catch(c){return this.context.emit("internal/error",c),this.cancel(c)}const[a,s]=this.checkUpdate(i,r),l=this.children.find(c=>c.config===o);this.config=i,l&&(this.context.emit("internal/before-update",l,n),l.config=i,a&&this.context.emit("internal/update",l,o)),s&&this.restart()}},pt(Ja,"MainScope"),Ja);function kp(e){return e&&typeof e=="object"&&typeof e.apply=="function"}pt(kp,"isApplicable");function cr(e){return function(t,n){if(n.kind==="class")t.inject=e;else if(n.kind==="method")n.addInitializer(function(){const r=this[Ke.tracker]?.property;if(!r)throw new Error("missing context tracker");this[r].inject(e,o=>{t.call(ls(this,{[r]:o}))})});else throw new Error("@Inject can only be used on class or class methods")}}pt(cr,"Inject"),(e=>{function t(n){if(!n)return{};if(Array.isArray(n))return Object.fromEntries(n.map(a=>[a,{required:!0}]));const{required:r,optional:o,...i}=n;return Array.isArray(r)&&Object.assign(i,Object.fromEntries(r.map(a=>[a,{required:!0}]))),Array.isArray(o)&&Object.assign(i,Object.fromEntries(o.map(a=>[a,{required:!1}]))),i}e.resolve=t,pt(t,"resolve")})(cr||(cr={}));var l1=(es=class{constructor(t,n){xe(this,"_counter",0);xe(this,"_internal",new Map);xe(this,"context");this.ctx=t,Ln(this,Ke.tracker,{associate:"registry",property:"ctx"}),this.context=t;const r=new _p(t,null,n);t.scope=r,r.ctx=t,this.set(null,r)}get counter(){return++this._counter}get size(){return this._internal.size}resolve(t,n=!1){if(t===null||typeof t=="function")return t;if(kp(t))return t.apply;if(n)throw new Error('invalid plugin, expect function or object with an "apply" method, received '+typeof t)}get(t){const n=this.resolve(t);return n&&this._internal.get(n)}has(t){const n=this.resolve(t);return!!n&&this._internal.has(n)}set(t,n){const r=this.resolve(t);this._internal.set(r,n)}delete(t){const n=this.resolve(t),r=n&&this._internal.get(n);if(r)return this._internal.delete(n),r.dispose(),r}keys(){return this._internal.keys()}values(){return this._internal.values()}entries(){return this._internal.entries()}forEach(t){return this._internal.forEach(t)}using(t,n){return this.inject(t,n)}inject(t,n){return this.plugin({inject:t,apply:n,name:n.name})}plugin(t,n,r){if(this.resolve(t,!0),this.ctx.scope.assertActive(),!r)try{n=ss(t,n)}catch(i){this.context.emit(this.ctx,"internal/error",i),r=i,n=null}let o=this.get(t);return o?(o.isForkable||this.context.emit(this.ctx,"internal/warning",new Error(`duplicate plugin detected: ${t.name}`)),o.fork(this.ctx,n,r)):(o=new _p(this.ctx,t,n,r),this.set(t,o),o.fork(this.ctx,n,r))}},pt(es,"Registry"),es),c1=l1,Hn=(An=class{static is(t){return!!t?.[An.is]}static associate(t,n){return t}constructor(t){t=ss(this.constructor,t),this[Ke.store]=Object.create(null),this[Ke.isolate]=Object.create(null),this[Ke.internal]=Object.create(null),this[Ke.intercept]=Object.create(null);const n=new Proxy(this,Du.handler);n.root=n,n.reflect=new Du(n),n.registry=new c1(n,t),n.lifecycle=new a1(n);const r=pt(o=>{if(o){r(Object.getPrototypeOf(o));for(const i of Object.getOwnPropertyNames(o)){const a=o[i].prototype?.constructor;a&&(n[o[i].key]=new a(n,t),Ln(n[o[i].key],"ctx",n))}}},"attach");return r(this[Ke.internal]),n}[Symbol.for("nodejs.util.inspect.custom")](){return`Context <${this.name}>`}get name(){let t=this.runtime;for(;t&&!t.name;)t=t.parent.runtime;return t?.name}get events(){return this.lifecycle}get state(){return this.scope}extend(t={}){const n=Reflect.getOwnPropertyDescriptor(this,Ke.shadow)?.value,r=Object.assign(Object.create(Gr(this,this)),t);return n?Object.assign(Object.create(r),{[Ke.shadow]:n}):r}isolate(t,n){const r=Object.create(this[Ke.isolate]);return r[t]=n??Symbol(t),this.extend({[Ke.isolate]:r})}intercept(t,n){const r=Object.create(this[Ke.intercept]);return r[t]=n,this.extend({[Ke.intercept]:r})}},pt(An,"Context"),xe(An,"store",Ke.store),xe(An,"events",Ke.events),xe(An,"static",Ke.static),xe(An,"filter",Ke.filter),xe(An,"expose",Ke.expose),xe(An,"isolate",Ke.isolate),xe(An,"internal",Ke.internal),xe(An,"intercept",Ke.intercept),xe(An,"origin","ctx"),xe(An,"current","ctx"),An.is[Symbol.toPrimitive]=()=>Symbol.for("cordis.is"),An.prototype[An.is]=!0,An);Hn.prototype[Hn.internal]=Object.create(null);var ta=(Pr=class{constructor(...t){xe(this,"ctx");xe(this,"name");xe(this,"config");let n,r,o,i;Hn.is(t[0])?(n=t[0],typeof t[1]=="string"?(r=t[1],o=t[2]):i=t[1]):i=t[0],r??(r=this.constructor[Ke.provide]),o??(o=this.constructor[Ke.immediate]);let a=this;const s={associate:r,property:"ctx"};return a[Ke.invoke]&&(a=Eu(r,Tu(Object.getPrototypeOf(this),Function.prototype),s)),n?a.ctx=n:a[Ke.setup](),a.name=r,a.config=i,Ln(a,Ke.tracker,s),a.ctx.provide(r),a.ctx.runtime.name=r,o&&(n?a[Ke.expose]=r:a.ctx.set(r,a)),a.ctx.on("ready",async()=>{await Promise.resolve(),await a.start(),o||a.ctx.set(r,a)}),a.ctx.on("dispose",()=>a.stop()),a}start(){}stop(){}[Ke.filter](t){return t[Ke.isolate][this.name]===this.ctx[Ke.isolate][this.name]}[Ke.setup](){this.ctx=new Hn}[Ke.extend](t){let n;return this[Pr.invoke]?n=Eu(this.name,this,this[Ke.tracker]):n=Object.create(this),Object.assign(n,t)}static[Symbol.hasInstance](t){let n=t.constructor;for(;n;){if(n=n.prototype?.constructor,n===this)return!0;n=Object.getPrototypeOf(n)}return!1}},pt(Pr,"Service"),xe(Pr,"setup",Ke.setup),xe(Pr,"invoke",Ke.invoke),xe(Pr,"extend",Ke.extend),xe(Pr,"tracker",Ke.tracker),xe(Pr,"provide",Ke.provide),xe(Pr,"immediate",Ke.immediate),Pr),na=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function u1(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Mu,Tp;function d1(){if(Tp)return Mu;Tp=1;function e(){const n=/(Chrome|Chromium)\/(?<chromeVersion>\d+)\./.exec(navigator.userAgent);if(n)return Number.parseInt(n.groups.chromeVersion,10)}const t=e()>=69?{level:1,hasBasic:!0,has256:!1,has16m:!1}:!1;return Mu={stdout:t,stderr:t},Mu}var $p=d1();const f1=u1(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Iu,Rp;function h1(){if(Rp)return Iu;Rp=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,r=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,s=o&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,c=l?WeakMap.prototype.has:null,u=typeof WeakSet=="function"&&WeakSet.prototype,d=u?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,m=p?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,y=Object.prototype.toString,S=Function.prototype.toString,w=String.prototype.match,k=String.prototype.slice,b=String.prototype.replace,v=String.prototype.toUpperCase,g=String.prototype.toLowerCase,C=RegExp.prototype.test,x=Array.prototype.concat,T=Array.prototype.join,P=Array.prototype.slice,O=Math.floor,U=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,te=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ie=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===te||!0)?Symbol.toStringTag:null,pe=Object.prototype.propertyIsEnumerable,ce=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(_){return _.__proto__}:null);function ge(_,E){if(_===1/0||_===-1/0||_!==_||_&&_>-1e3&&_<1e3||C.call(/e/,E))return E;var ve=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof _=="number"){var Me=_<0?-O(-_):O(_);if(Me!==_){var Oe=String(Me),j=k.call(E,Oe.length+1);return b.call(Oe,ve,"$&_")+"."+b.call(b.call(j,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(E,ve,"$&_")}var Ae=f1,Re=Ae.custom,Ee=ne(Re)?Re:null,ue={__proto__:null,double:'"',single:"'"},_e={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Iu=function _(E,ve,Me,Oe){var j=ve||{};if(W(j,"quoteStyle")&&!W(ue,j.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(j,"maxStringLength")&&(typeof j.maxStringLength=="number"?j.maxStringLength<0&&j.maxStringLength!==1/0:j.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ce=W(j,"customInspect")?j.customInspect:!0;if(typeof Ce!="boolean"&&Ce!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(j,"indent")&&j.indent!==null&&j.indent!==" "&&!(parseInt(j.indent,10)===j.indent&&j.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(j,"numericSeparator")&&typeof j.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ie=j.numericSeparator;if(typeof E>"u")return"undefined";if(E===null)return"null";if(typeof E=="boolean")return E?"true":"false";if(typeof E=="string")return Q(E,j);if(typeof E=="number"){if(E===0)return 1/0/E>0?"0":"-0";var Ue=String(E);return Ie?ge(E,Ue):Ue}if(typeof E=="bigint"){var Ct=String(E)+"n";return Ie?ge(E,Ct):Ct}var Mt=typeof j.depth>"u"?5:j.depth;if(typeof Me>"u"&&(Me=0),Me>=Mt&&Mt>0&&typeof E=="object")return Ye(E)?"[Array]":"[Object]";var le=Ot(j,Me);if(typeof Oe>"u")Oe=[];else if(L(Oe,E)>=0)return"[Circular]";function $e(jn,gr,Ur){if(gr&&(Oe=P.call(Oe),Oe.push(gr)),Ur){var zr={depth:j.depth};return W(j,"quoteStyle")&&(zr.quoteStyle=j.quoteStyle),_(jn,zr,Me+1,Oe)}return _(jn,j,Me+1,Oe)}if(typeof E=="function"&&!Ne(E)){var Ge=he(E),ct=bt(E,$e);return"[Function"+(Ge?": "+Ge:" (anonymous)")+"]"+(ct.length>0?" { "+T.call(ct,", ")+" }":"")}if(ne(E)){var Bt=te?b.call(String(E),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(E);return typeof E=="object"&&!te?Qe(Bt):Bt}if(we(E)){for(var _t="<"+g.call(String(E.nodeName)),$t=E.attributes||[],J=0;J<$t.length;J++)_t+=" "+$t[J].name+"="+me(De($t[J].value),"double",j);return _t+=">",E.childNodes&&E.childNodes.length&&(_t+="..."),_t+="</"+g.call(String(E.nodeName))+">",_t}if(Ye(E)){if(E.length===0)return"[]";var Se=bt(E,$e);return le&&!ot(Se)?"["+Et(Se,le)+"]":"[ "+T.call(Se,", ")+" ]"}if(it(E)){var et=bt(E,$e);return!("cause"in Error.prototype)&&"cause"in E&&!pe.call(E,"cause")?"{ ["+String(E)+"] "+T.call(x.call("[cause]: "+$e(E.cause),et),", ")+" }":et.length===0?"["+String(E)+"]":"{ ["+String(E)+"] "+T.call(et,", ")+" }"}if(typeof E=="object"&&Ce){if(Ee&&typeof E[Ee]=="function"&&Ae)return Ae(E,{depth:Mt-Me});if(Ce!=="symbol"&&typeof E.inspect=="function")return E.inspect()}if(V(E)){var xt=[];return r&&r.call(E,function(jn,gr){xt.push($e(gr,E,!0)+" => "+$e(jn,E))}),st("Map",n.call(E),xt,le)}if(B(E)){var Dt=[];return s&&s.call(E,function(jn){Dt.push($e(jn,E))}),st("Set",a.call(E),Dt,le)}if(fe(E))return at("WeakMap");if(Y(E))return at("WeakSet");if(N(E))return at("WeakRef");if(F(E))return Qe($e(Number(E)));if(be(E))return Qe($e(U.call(E)));if(H(E))return Qe(f.call(E));if(Ze(E))return Qe($e(String(E)));if(typeof window<"u"&&E===window)return"{ [object Window] }";if(typeof globalThis<"u"&&E===globalThis||typeof na<"u"&&E===na)return"{ [object globalThis] }";if(!tt(E)&&!Ne(E)){var yt=bt(E,$e),xn=ce?ce(E)===Object.prototype:E instanceof Object||E.constructor===Object,$n=E instanceof Object?"":"null prototype",tn=!xn&&ie&&Object(E)===E&&ie in E?k.call(de(E),8,-1):$n?"Object":"",lr=xn||typeof E.constructor!="function"?"":E.constructor.name?E.constructor.name+" ":"",Qn=lr+(tn||$n?"["+T.call(x.call([],tn||[],$n||[]),": ")+"] ":"");return yt.length===0?Qn+"{}":le?Qn+"{"+Et(yt,le)+"}":Qn+"{ "+T.call(yt,", ")+" }"}return String(E)};function me(_,E,ve){var Me=ve.quoteStyle||E,Oe=ue[Me];return Oe+_+Oe}function De(_){return b.call(String(_),/"/g,"&quot;")}function ke(_){return!ie||!(typeof _=="object"&&(ie in _||typeof _[ie]<"u"))}function Ye(_){return de(_)==="[object Array]"&&ke(_)}function tt(_){return de(_)==="[object Date]"&&ke(_)}function Ne(_){return de(_)==="[object RegExp]"&&ke(_)}function it(_){return de(_)==="[object Error]"&&ke(_)}function Ze(_){return de(_)==="[object String]"&&ke(_)}function F(_){return de(_)==="[object Number]"&&ke(_)}function H(_){return de(_)==="[object Boolean]"&&ke(_)}function ne(_){if(te)return _&&typeof _=="object"&&_ instanceof Symbol;if(typeof _=="symbol")return!0;if(!_||typeof _!="object"||!I)return!1;try{return I.call(_),!0}catch{}return!1}function be(_){if(!_||typeof _!="object"||!U)return!1;try{return U.call(_),!0}catch{}return!1}var ye=Object.prototype.hasOwnProperty||function(_){return _ in this};function W(_,E){return ye.call(_,E)}function de(_){return y.call(_)}function he(_){if(_.name)return _.name;var E=w.call(S.call(_),/^function\s*([\w$]+)/);return E?E[1]:null}function L(_,E){if(_.indexOf)return _.indexOf(E);for(var ve=0,Me=_.length;ve<Me;ve++)if(_[ve]===E)return ve;return-1}function V(_){if(!n||!_||typeof _!="object")return!1;try{n.call(_);try{a.call(_)}catch{return!0}return _ instanceof Map}catch{}return!1}function fe(_){if(!c||!_||typeof _!="object")return!1;try{c.call(_,c);try{d.call(_,d)}catch{return!0}return _ instanceof WeakMap}catch{}return!1}function N(_){if(!m||!_||typeof _!="object")return!1;try{return m.call(_),!0}catch{}return!1}function B(_){if(!a||!_||typeof _!="object")return!1;try{a.call(_);try{n.call(_)}catch{return!0}return _ instanceof Set}catch{}return!1}function Y(_){if(!d||!_||typeof _!="object")return!1;try{d.call(_,d);try{c.call(_,c)}catch{return!0}return _ instanceof WeakSet}catch{}return!1}function we(_){return!_||typeof _!="object"?!1:typeof HTMLElement<"u"&&_ instanceof HTMLElement?!0:typeof _.nodeName=="string"&&typeof _.getAttribute=="function"}function Q(_,E){if(_.length>E.maxStringLength){var ve=_.length-E.maxStringLength,Me="... "+ve+" more character"+(ve>1?"s":"");return Q(k.call(_,0,E.maxStringLength),E)+Me}var Oe=_e[E.quoteStyle||"single"];Oe.lastIndex=0;var j=b.call(b.call(_,Oe,"\\$1"),/[\x00-\x1f]/g,Te);return me(j,"single",E)}function Te(_){var E=_.charCodeAt(0),ve={8:"b",9:"t",10:"n",12:"f",13:"r"}[E];return ve?"\\"+ve:"\\x"+(E<16?"0":"")+v.call(E.toString(16))}function Qe(_){return"Object("+_+")"}function at(_){return _+" { ? }"}function st(_,E,ve,Me){var Oe=Me?Et(ve,Me):T.call(ve,", ");return _+" ("+E+") {"+Oe+"}"}function ot(_){for(var E=0;E<_.length;E++)if(L(_[E],`
4
+ `)>=0)return!1;return!0}function Ot(_,E){var ve;if(_.indent===" ")ve=" ";else if(typeof _.indent=="number"&&_.indent>0)ve=T.call(Array(_.indent+1)," ");else return null;return{base:ve,prev:T.call(Array(E+1),ve)}}function Et(_,E){if(_.length===0)return"";var ve=`
5
+ `+E.prev+E.base;return ve+T.call(_,","+ve)+`
6
+ `+E.prev}function bt(_,E){var ve=Ye(_),Me=[];if(ve){Me.length=_.length;for(var Oe=0;Oe<_.length;Oe++)Me[Oe]=W(_,Oe)?E(_[Oe],_):""}var j=typeof D=="function"?D(_):[],Ce;if(te){Ce={};for(var Ie=0;Ie<j.length;Ie++)Ce["$"+j[Ie]]=j[Ie]}for(var Ue in _)W(_,Ue)&&(ve&&String(Number(Ue))===Ue&&Ue<_.length||te&&Ce["$"+Ue]instanceof Symbol||(C.call(/[^\w$]/,Ue)?Me.push(E(Ue,_)+": "+E(_[Ue],_)):Me.push(Ue+": "+E(_[Ue],_))));if(typeof D=="function")for(var Ct=0;Ct<j.length;Ct++)pe.call(_,j[Ct])&&Me.push("["+E(j[Ct])+"]: "+E(_[j[Ct]],_));return Me}return Iu}var p1=h1();const m1=Pp(p1);var v1=Object.create,zu=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,Op=Object.getOwnPropertyNames,b1=Object.getPrototypeOf,y1=Object.prototype.hasOwnProperty,xl=(e,t)=>zu(e,"name",{value:t,configurable:!0}),Ep=(e,t)=>function(){return t||(0,e[Op(e)[0]])((t={exports:{}}).exports,t),t.exports},w1=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Op(t))!y1.call(e,o)&&o!==n&&zu(e,o,{get:()=>t[o],enumerable:!(r=g1(t,o))||r.enumerable});return e},x1=(e,t,n)=>(n=e!=null?v1(b1(e)):{},w1(!e||!e.__esModule?zu(n,"default",{value:e,enumerable:!0}):n,e)),C1=Ep({"src/shared.ts"(e,t){var a;var n=[6,2,3,4,5,1],r=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221];function o(s){return s instanceof Error&&Array.isArray(s.errors)}xl(o,"isAggregateError");var i=(a=class{constructor(l,c){xe(this,"extend",xl(l=>new a(`${this.name}:${l}`,this.meta),"extend"));xe(this,"warning",xl((l,...c)=>{this.warn(l,...c)},"warning"));this.name=l,this.meta=c,this.createMethod("success",a.SUCCESS),this.createMethod("error",a.ERROR),this.createMethod("info",a.INFO),this.createMethod("warn",a.WARN),this.createMethod("debug",a.DEBUG)}static format(l,c){this.formatters[l]=c}static color(l,c,u,d=""){return l.colors?`\x1B[3${c<8?c:"8;5;"+c}${l.colors>=2?d:""}m${u}\x1B[0m`:""+u}static code(l,c){let u=0;for(let p=0;p<l.length;p++)u=(u<<3)-u+l.charCodeAt(p)+13,u|=0;const d=c.colors?c.colors>=2?r:n:[];return d[Math.abs(u)%d.length]}static render(l,c){const u=`[${c.type[0].toUpperCase()}]`,d=" ".repeat(l.label?.margin??1);let p=3+d.length,m="";l.showTime&&(p+=l.showTime.length+d.length,m+=a.color(l,8,bl.template(l.showTime))+d);const f=a.code(c.name,l),y=a.color(l,f,c.name,";1"),S=(l.label?.width??0)+y.length-c.name.length;if(l.label?.align==="right"?(m+=y.padStart(S)+d+u+d,p+=(l.label.width??0)+d.length):m+=u+d+y.padEnd(S)+d,m+=c.content.replace(/\n/g,`
7
+ `+" ".repeat(p)),l.showDiff&&l.timestamp){const w=c.timestamp-l.timestamp;m+=a.color(l,f," +"+bl.format(w))}return m}createMethod(l,c){this[l]=(...u)=>{if(u.length===1&&u[0]instanceof Error){if(u[0].cause)this[l](u[0].cause);else if(o(u[0])){u[0].errors.forEach(m=>this[l](m));return}}const d=++a.id,p=Date.now();for(const m of a.targets){if(this.getLevel(m)<c)continue;const f=this.format(m,...u),y={id:d,type:l,level:c,name:this.name,meta:this.meta,content:f,timestamp:p};if(m.record)m.record(y);else{const{print:S=console.log}=m;S(a.render(m,y))}m.timestamp=p}}}format(l,...c){c[0]instanceof Error?(c[0]=c[0].stack||c[0].message,c.unshift("%s")):typeof c[0]!="string"&&c.unshift("%o");let u=c.shift();u=u.replace(/%([a-zA-Z%])/g,(p,m)=>{if(p==="%%")return"%";const f=a.formatters[m];if(typeof f=="function"){const y=c.shift();return f(y,l,this)}return p});for(let p of c)typeof p=="object"&&p&&(p=a.formatters.o(p,l,this)),u+=" "+p;const{maxLength:d=10240}=l;return u.split(/\r?\n/g).map(p=>p.slice(0,d)+(p.length>d?"...":"")).join(`
8
+ `)}getLevel(l){const c=this.name.split(":");let u=l?.levels||a.levels;do u=u[c.shift()]??u.base;while(c.length&&typeof u=="object");return u}get level(){return this.getLevel()}set level(l){const c=this.name.split(":");let u=a.levels;for(;c.length>1;){const d=c.shift(),p=u[d];typeof p=="object"?u=p:u=u[d]={base:p??u.base}}u[c[0]]=l}},xl(a,"Logger"),xe(a,"SILENT",0),xe(a,"SUCCESS",1),xe(a,"ERROR",1),xe(a,"INFO",2),xe(a,"WARN",2),xe(a,"DEBUG",3),xe(a,"id",0),xe(a,"targets",[{colors:$p.stdout&&$p.stdout.level,print(l){console.log(l)}}]),xe(a,"formatters",Object.create(null)),xe(a,"levels",{base:2}),a);i.format("s",s=>s),i.format("d",s=>+s),i.format("j",s=>JSON.stringify(s)),i.format("c",(s,l,c)=>i.color(l,i.code(c.name,l),s)),i.format("C",(s,l)=>i.color(l,15,s,";1")),t.exports=i}}),S1=Ep({"src/browser.ts"(e,t){var n=x1(C1());n.default.format("o",(r,o)=>m1(r,{depth:1/0}).replace(/\s*\n\s*/g," ")),t.exports=n.default}});const _1=S1();var k1=Object.defineProperty,P1=(e,t)=>k1(e,"name",{value:t,configurable:!0}),T1=(Zi=class extends ta{constructor(t){super(t,"logger",!0),t.on("internal/info",function(n,...r){this.logger("app").info(n,...r)}),t.on("internal/error",function(n,...r){this.logger("app").error(n,...r)}),t.on("internal/warning",function(n,...r){this.logger("app").warn(n,...r)})}[ta.invoke](t){return new _1(t,Ln({},"ctx",this.ctx))}},P1(Zi,"LoggerService"),(()=>{for(const t of["success","error","info","warn","debug","extend"])Zi.prototype[t]=function(...n){return this(this.ctx.name)[t](...n)}})(),Zi),$1=Object.defineProperty,R1=Object.getOwnPropertyNames,At=(e,t)=>$1(e,"name",{value:t,configurable:!0}),O1=(e,t)=>function(){return t||(0,e[R1(e)[0]])((t={exports:{}}).exports,t),t.exports},E1=O1({"src/index.ts"(e,t){var k;var n=Symbol.for("schemastery"),r=Symbol.for("ValidationError");globalThis.__schemastery_index__??(globalThis.__schemastery_index__=0);var o=(k=class extends TypeError{constructor(g,C){let x="$";for(const T of C.path||[])typeof T=="string"?x+="."+T:typeof T=="number"?x+="["+T+"]":typeof T=="symbol"&&(x+=`[Symbol(${T.toString()})]`);x.startsWith(".")&&(x=x.slice(1));super((x==="$"?"":`${x} `)+g);xe(this,"name","ValidationError");this.options=C}static is(g){return!!g?.[r]}},At(k,"ValidationError"),k);Object.defineProperty(o.prototype,r,{value:!0});var i=At(function(b){const v=At(function(g,C={}){return i.resolve(g,v,C)[0]},"schema");if(b.refs){const g=mo(b.refs,x=>new i(x)),C=At(x=>g[x],"getRef");for(const x in g){const T=g[x];T.sKey=C(T.sKey),T.inner=C(T.inner),T.list=T.list&&T.list.map(C),T.dict=T.dict&&mo(T.dict,C)}return g[b.uid]}if(Object.assign(v,b),typeof v.callback=="string")try{v.callback=new Function("return "+v.callback)()}catch{}return Object.defineProperty(v,"uid",{value:globalThis.__schemastery_index__++}),Object.setPrototypeOf(v,i.prototype),v.meta||(v.meta={}),v.toString=v.toString.bind(v),v},"Schema");i.prototype=Object.create(Function.prototype),i.prototype[n]=!0,i.ValidationError=o;var a;i.prototype.toJSON=At(function(){var g;if(a)return a[g=this.uid]??(a[g]=JSON.parse(JSON.stringify({...this}))),this.uid;a={[this.uid]:{...this}},a[this.uid]=JSON.parse(JSON.stringify({...this}));const v={uid:this.uid,refs:a};return a=void 0,v},"toJSON"),i.prototype.set=At(function(v,g){return this.dict[v]=g,this},"set"),i.prototype.push=At(function(v){return this.list.push(v),this},"push");function s(b,v){const g=typeof b=="string"?{"":b}:{...b};for(const C in v){const x=v[C];x?.$description||x?.$desc?g[C]=x.$description||x.$desc:typeof x=="string"&&(g[C]=x)}return g}At(s,"mergeDesc");function l(b){return b?.$value??b?.$inner}At(l,"getInner");function c(b){return vp(b??{},v=>!v.startsWith("$"))}At(c,"extractKeys"),i.prototype.i18n=At(function(v){const g=i(this),C=s(g.meta.description,v);return Object.keys(C).length&&(g.meta.description=C),g.dict&&(g.dict=mo(g.dict,(x,T)=>x.i18n(mo(v,P=>l(P)?.[T]??P?.[T])))),g.list&&(g.list=g.list.map((x,T)=>x.i18n(mo(v,(P={})=>Array.isArray(l(P))?l(P)[T]:Array.isArray(P)?P[T]:c(P))))),g.inner&&(g.inner=g.inner.i18n(mo(v,x=>l(x)?l(x):c(x)))),g.sKey&&(g.sKey=g.sKey.i18n(mo(v,x=>x?.$key))),g},"i18n"),i.prototype.extra=At(function(v,g){const C=i(this);return C.meta={...C.meta,[v]:g},C},"extra");for(const b of["required","disabled","collapse","hidden","loose"])Object.assign(i.prototype,{[b](v=!0){const g=i(this);return g.meta={...g.meta,[b]:v},g}});i.prototype.deprecated=At(function(){var g;const v=i(this);return(g=v.meta).badges||(g.badges=[]),v.meta.badges.push({text:"deprecated",type:"danger"}),v},"deprecated"),i.prototype.experimental=At(function(){var g;const v=i(this);return(g=v.meta).badges||(g.badges=[]),v.meta.badges.push({text:"experimental",type:"warning"}),v},"experimental"),i.prototype.pattern=At(function(v){const g=i(this),C=gp(v,["source","flags"]);return g.meta={...g.meta,pattern:C},g},"pattern"),i.prototype.simplify=At(function(v){if(di(v,this.meta.default,this.type==="dict"))return null;if(Sn(v))return v;if(this.type==="object"||this.type==="dict"){const g={};for(const C in v){const T=(this.type==="object"?this.dict[C]:this.inner)?.simplify(v[C]);(this.type==="dict"||!Sn(T))&&(g[C]=T)}return di(g,this.meta.default,this.type==="dict")?null:g}else if(this.type==="array"||this.type==="tuple"){const g=[];return v.forEach((C,x)=>{const T=this.type==="array"?this.inner:this.list[x],P=T?T.simplify(C):C;g.push(P)}),g}else if(this.type==="intersect"){const g={};for(const C of this.list)Object.assign(g,C.simplify(v));return g}else if(this.type==="union")for(const g of this.list)try{return i.resolve(v,g,{}),g.simplify(v)}catch{}return v},"simplify"),i.prototype.toString=At(function(v){return S[this.type]?.(this,v)??`Schema<${this.type}>`},"toString"),i.prototype.role=At(function(b,v){const g=i(this);return g.meta={...g.meta,role:b,extra:v},g},"role");for(const b of["default","link","comment","description","max","min","step"])Object.assign(i.prototype,{[b](v){const g=i(this);return g.meta={...g.meta,[b]:v},g}});var u={};i.extend=At(function(v,g){u[v]=g},"extend"),i.resolve=At(function(v,g,C={},x=!1){if(!g)return[v];if(C.ignore?.(v,g))return[v];if(Sn(v)&&g.type!=="lazy"){if(g.meta.required)throw new o("missing required value",C);let P=g,O=g.meta.default;for(;P?.type==="intersect"&&Sn(O);)P=P.list[0],O=P?.meta.default;if(Sn(O))return[v];v=gl(O)}const T=u[g.type];if(!T)throw new o(`unsupported type "${g.type}"`,C);try{return T(v,g,C,x)}catch(P){if(!g.meta.loose)throw P;return[g.meta.default]}},"resolve"),i.from=At(function(v){if(Sn(v))return i.any();if(["string","number","boolean"].includes(typeof v))return i.const(v).required();if(v[n])return v;if(typeof v=="function")switch(v){case String:return i.string().required();case Number:return i.number().required();case Boolean:return i.boolean().required();case Function:return i.function().required();default:return i.is(v).required()}else throw new TypeError(`cannot infer schema from ${v}`)},"from"),i.lazy=At(function(v){const g=At(()=>(C.inner[n]||(C.inner=C.builder(),C.inner.meta={...C.meta,...C.inner.meta}),C.inner.toJSON()),"toJSON"),C=new i({type:"lazy",builder:v,inner:{toJSON:g}});return C},"lazy"),i.natural=At(function(){return i.number().step(1).min(0)},"natural"),i.percent=At(function(){return i.number().step(.01).min(0).max(1).role("slider")},"percent"),i.date=At(function(){return i.union([i.is(Date),i.transform(i.string().role("datetime"),(v,g)=>{const C=new Date(v);if(isNaN(+C))throw new o(`invalid date "${v}"`,g);return C},!0)])},"date"),i.regExp=At(function(v=""){return i.union([i.is(RegExp),i.transform(i.string().role("regexp",{flag:v}),(g,C)=>{try{return new RegExp(g,v)}catch(x){throw new o(x.message,C)}},!0)])},"regExp"),i.arrayBuffer=At(function(v){return i.union([i.is(ArrayBuffer),i.is(SharedArrayBuffer),i.transform(i.any(),(g,C)=>{if(Yr.isSource(g))return Yr.fromSource(g);throw new o(`expected ArrayBufferSource but got ${g}`,C)},!0),...v?[i.transform(i.string(),(g,C)=>{try{return v==="base64"?Yr.fromBase64(g):Yr.fromHex(g)}catch(x){throw new o(x.message,C)}},!0)]:[]])},"arrayBuffer"),i.extend("lazy",(b,v,g,C)=>(v.inner[n]||(v.inner=v.builder(),v.inner.meta={...v.meta,...v.inner.meta}),i.resolve(b,v.inner,g,C))),i.extend("any",b=>[b]),i.extend("never",(b,v,g)=>{throw new o(`expected nullable but got ${b}`,g)}),i.extend("const",(b,{value:v},g)=>{if(di(b,v))return[v];throw new o(`expected ${v} but got ${b}`,g)});function d(b,v,g,C,x=!1){const{max:T=1/0,min:P=-1/0}=v;if(b>T)throw new o(`expected ${g} <= ${T} but got ${b}`,C);if(b<P&&!x)throw new o(`expected ${g} >= ${P} but got ${b}`,C)}At(d,"checkWithinRange"),i.extend("string",(b,{meta:v},g)=>{if(typeof b!="string")throw new o(`expected string but got ${b}`,g);if(v.pattern){const C=new RegExp(v.pattern.source,v.pattern.flags);if(!C.test(b))throw new o(`expect string to match regexp ${C}`,g)}return d(b.length,v,"string length",g),[b]});function p(b,v){const g=b.toString();if(g.includes("e"))return b*Math.pow(10,v);const C=g.indexOf(".");if(C===-1)return b*Math.pow(10,v);const x=g.slice(C+1),T=g.slice(0,C);return x.length<=v?+(T+x.padEnd(v,"0")):+(T+x.slice(0,v)+"."+x.slice(v))}At(p,"decimalShift");function m(b,v,g){if(g=Math.abs(g),!/^\d+\.\d+$/.test(g.toString()))return(b-v)%g===0;const C=g.toString().indexOf("."),x=g.toString().slice(C+1).length;return Math.abs(p(b,x)-p(v,x))%p(g,x)===0}At(m,"isMultipleOf"),i.extend("number",(b,{meta:v},g)=>{if(typeof b!="number")throw new o(`expected number but got ${b}`,g);d(b,v,"number",g);const{step:C}=v;if(C&&!m(b,v.min??0,C))throw new o(`expected number multiple of ${C} but got ${b}`,g);return[b]}),i.extend("boolean",(b,v,g)=>{if(typeof b=="boolean")return[b];throw new o(`expected boolean but got ${b}`,g)}),i.extend("bitset",(b,{bits:v,meta:g},C)=>{let x=0,T=[];if(typeof b=="number"){x=b;for(const P in v)b&v[P]&&T.push(P)}else if(Array.isArray(b)){T=b;for(const P of T){if(typeof P!="string")throw new o(`expected string but got ${P}`,C);P in v&&(x|=v[P])}}else throw new o(`expected number or array but got ${b}`,C);return x===g.default?[x]:[x,T]}),i.extend("function",(b,v,g)=>{if(typeof b=="function")return[b];throw new o(`expected function but got ${b}`,g)}),i.extend("is",(b,{constructor:v},g)=>{if(typeof v=="function"){if(b instanceof v)return[b];throw new o(`expected ${v.name} but got ${b}`,g)}else{if(Sn(b))throw new o(`expected ${v} but got ${b}`,g);let C=Object.getPrototypeOf(b);for(;C;){if(C.constructor?.name===v)return[b];C=Object.getPrototypeOf(C)}throw new o(`expected ${v} but got ${b}`,g)}});function f(b,v,g,C){try{const[x,T]=i.resolve(b[v],g,{...C,path:[...C.path||[],v]});return T!==void 0&&(b[v]=T),x}catch(x){if(!C?.autofix)throw x;return delete b[v],g.meta.default}}At(f,"property"),i.extend("array",(b,{inner:v,meta:g},C)=>{if(!Array.isArray(b))throw new o(`expected array but got ${b}`,C);return d(b.length,g,"array length",C,!Sn(v.meta.default)),[b.map((x,T)=>f(b,T,v,C))]}),i.extend("dict",(b,{inner:v,sKey:g},C,x)=>{if(!vl(b))throw new o(`expected object but got ${b}`,C);const T={};for(const P in b){let O;try{O=i.resolve(P,g,C)[0]}catch(U){if(x)continue;throw U}T[O]=f(b,P,v,C),b[O]=b[P],P!==O&&delete b[P]}return[T]}),i.extend("tuple",(b,{list:v},g,C)=>{if(!Array.isArray(b))throw new o(`expected array but got ${b}`,g);const x=v.map((T,P)=>f(b,P,T,g));return C?[x]:(x.push(...b.slice(v.length)),[x])});function y(b,v){for(const g in v)g in b||(b[g]=v[g])}At(y,"merge"),i.extend("object",(b,{dict:v},g,C)=>{if(!vl(b))throw new o(`expected object but got ${b}`,g);const x={};for(const T in v){const P=f(b,T,v[T],g);(!Sn(P)||T in b)&&(x[T]=P)}return C||y(x,b),[x]}),i.extend("union",(b,{list:v,toString:g},C,x)=>{for(const T of v)try{return i.resolve(b,T,C,x)}catch{}throw new o(`expected ${g()} but got ${JSON.stringify(b)}`,C)}),i.extend("intersect",(b,{list:v,toString:g},C,x)=>{let T;for(const P of v){const O=i.resolve(b,P,C,!0)[0];if(!Sn(O))if(Sn(T))T=O;else{if(typeof T!=typeof O)throw new o(`expected ${g()} but got ${JSON.stringify(b)}`,C);if(typeof O=="object")y(T??(T={}),O);else if(T!==O)throw new o(`expected ${g()} but got ${JSON.stringify(b)}`,C)}}return!x&&vl(b)&&y(T,b),[T]}),i.extend("transform",(b,{inner:v,callback:g,preserve:C},x)=>{const[T,P=b]=i.resolve(b,v,x,!0);return C?[g(T)]:[g(T),g(P)]});var S={};function w(b,v,g){S[b]=g,Object.assign(i,{[b](...C){const x=new i({type:b});return v.forEach((T,P)=>{switch(T){case"sKey":x.sKey=C[P]??i.string();break;case"inner":x.inner=i.from(C[P]);break;case"list":x.list=C[P].map(i.from);break;case"dict":x.dict=mo(C[P],i.from);break;case"bits":{x.bits={};for(const O in C[P])typeof C[P][O]=="number"&&(x.bits[O]=C[P][O]);break}case"callback":{const O=x.callback=C[P];O.toJSON||(O.toJSON=()=>O.toString());break}case"constructor":{const O=x.constructor=C[P];typeof O=="function"&&(O.toJSON||(O.toJSON=()=>O.name));break}default:x[T]=C[P]}}),b==="object"||b==="dict"?x.meta.default={}:b==="array"||b==="tuple"?x.meta.default=[]:b==="bitset"&&(x.meta.default=0),x}})}At(w,"defineMethod"),w("is",["constructor"],({constructor:b})=>typeof b=="function"?b.name:b),w("any",[],()=>"any"),w("never",[],()=>"never"),w("const",["value"],({value:b})=>typeof b=="string"?JSON.stringify(b):b),w("string",[],()=>"string"),w("number",[],()=>"number"),w("boolean",[],()=>"boolean"),w("bitset",["bits"],()=>"bitset"),w("function",[],()=>"function"),w("array",["inner"],({inner:b})=>`${b.toString(!0)}[]`),w("dict",["inner","sKey"],({inner:b,sKey:v})=>`{ [key: ${v.toString()}]: ${b.toString()} }`),w("tuple",["list"],({list:b})=>`[${b.map(v=>v.toString()).join(", ")}]`),w("object",["dict"],({dict:b})=>Object.keys(b).length===0?"{}":`{ ${Object.entries(b).map(([v,g])=>`${v}${g.meta.required?"":"?"}: ${g.toString()}`).join(", ")} }`),w("union",["list"],({list:b},v)=>{const g=b.map(({toString:C})=>C()).join(" | ");return v?`(${g})`:g}),w("intersect",["list"],({list:b})=>`${b.map(v=>v.toString(!0)).join(" & ")}`),w("transform",["inner","callback","preserve"],({inner:b},v)=>b.toString(v)),t.exports=i}});const dn=E1();var D1=Object.defineProperty,F1=(e,t)=>D1(e,"name",{value:t,configurable:!0}),Dp=Symbol("cordis.schema.order"),A1=(ts=class{constructor(t){xe(this,"_data",dn.intersect([]));this.ctx=t,Ln(this,ta.tracker,{property:"ctx"})}extend(t,n=0){const r=this._data.list.findIndex(o=>o[Dp]<n);return t[Dp]=n,this.ctx.effect(()=>(r>=0?this._data.list.splice(r,0,t):this._data.list.push(t),this.ctx.emit("internal/service-schema"),()=>{qr(this._data.list,t),this.ctx.emit("internal/service-schema")}))}toJSON(){return this._data.toJSON()}},F1(ts,"SchemaService"),ts),M1=Object.defineProperty,Cl=(e,t)=>M1(e,"name",{value:t,configurable:!0}),I1=(ns=class extends ta{constructor(t){super(t,"timer",!0),t.mixin("timer",["setTimeout","setInterval","sleep","throttle","debounce"])}setTimeout(t,n){const r=this[Hn.current].effect(()=>{const o=setTimeout(()=>{r(),t()},n);return()=>clearTimeout(o)});return r}setInterval(t,n){return this[Hn.current].effect(()=>{const r=setInterval(t,n);return()=>clearInterval(r)})}sleep(t){const n=this[Hn.current];return new Promise((r,o)=>{const i=this.setTimeout(()=>{i(),a(),r()},t),a=n.on("dispose",()=>{i(),a(),o(new Error("Context has been disposed"))})})}createWrapper(t,n=!1){const r=this[Hn.current];r.scope.assertActive();let o;const i=Cl(()=>{n=!0,qr(r.scope.disposables,i),clearTimeout(o)},"dispose"),a=Cl((...s)=>{clearTimeout(o),o=t(s,()=>!n&&r.scope.isActive)},"wrapper");return a.dispose=i,r.scope.disposables.push(i),a}throttle(t,n,r){let o=-1/0;const i=Cl((...a)=>{o=Date.now(),t(...a)},"execute");return this.createWrapper((a,s)=>{const l=Date.now(),c=n-(l-o);if(c<=0)i(...a);else if(s())return setTimeout(i,c,...a)},r)}debounce(t,n){return this.createWrapper((r,o)=>{if(o())return setTimeout(t,n,...r)})}},Cl(ns,"TimerService"),ns),z1=Object.defineProperty,Bu=(e,t)=>z1(e,"name",{value:t,configurable:!0}),Fp=(rs=class extends Hn{constructor(n){super(n);xe(this,"baseDir");this.baseDir=globalThis.process?.cwd?.()||"",this.provide("logger",void 0,!0),this.provide("timer",void 0,!0),this.plugin(T1),this.plugin(I1)}},Bu(rs,"Context"),rs),ra=(os=class extends ta{constructor(...n){super(...n);xe(this,"logger");xe(this,"schema");this.logger=this.ctx.logger(this.name),this.schema=new A1(this.ctx)}[ta.setup](){this.ctx=new Fp}},Bu(os,"Service"),os);function B1(){}Bu(B1,"default");var yr=(e=>(e.BODY_USED="BODY_USED",e.NO_BODY_READER="NO_BODY_READER",e.TIMEOUT="TIMEOUT",e.NETWORK_ERROR="NETWORK_ERROR",e.BODY_NOT_ALLOWED="BODY_NOT_ALLOWED",e.HOOK_CONTEXT_CHANGED="HOOK_CONTEXT_CHANGED",e.ABORTED_BY_HOOK="ABORTED_BY_HOOK",e.INVALID_HOOK_CALLBACK="INVALID_HOOK_CALLBACK",e.UNEXPECTED_HOOK_RETURN="UNEXPECTED_HOOK_RETURN",e))(yr||{});class ur extends Error{constructor(t,n,r,o){super(n,o),this.code=t,this.context=r,this.name="FexiosError"}}class N1 extends ur{constructor(t,n,r){super(n.statusText,t,void 0,r),this.response=n,this.name="FexiosResponseError"}}function L1(e,t=2048){if(!(e instanceof Uint8Array))throw new TypeError("Input must be a Uint8Array");if(e.length===0)return!0;const n=Math.min(Math.max(e.length,256),t),r=e.slice(0,n);if(H1(r))return!1;const o=V1(r);if(o.nullByteRatio>.05||o.highByteRatio>.95)return!1;const i=["utf-8","utf-16le","utf-16be","iso-8859-1"];let a=-1,s=!1;for(const l of i)try{const c=new TextDecoder(l,{fatal:!0}).decode(r),u=j1(c);u>a&&(a=u,s=u>.7)}catch{continue}return s}function H1(e){if(e.length<4)return!1;const t=[[137,80,78,71],[255,216,255],[71,73,70],[37,80,68,70],[80,75,3,4],[80,75,5,6],[80,75,7,8],[127,69,76,70],[77,90],[202,254,186,190],[0,0,1,0],[82,73,70,70]];for(const n of t)if(e.length>=n.length){let r=!0;for(let o=0;o<n.length;o++)if(e[o]!==n[o]){r=!1;break}if(r)return!0}return!1}function V1(e){let t=0,n=0,r=0;for(const o of e)o===0&&t++,o>127&&n++,(o<32&&o!==9&&o!==10&&o!==13||o===127)&&r++;return{nullByteRatio:t/e.length,highByteRatio:n/e.length,controlCharRatio:r/e.length}}function j1(e){if(e.length===0)return 1;let t=1,n=0;for(let o=0;o<e.length;o++){const i=e[o].charCodeAt(0);i>=32&&i<=126||i===9||i===10||i===13||i===32?n++:i>127&&i<65534?!W1(i)&&!U1(i)&&n++:t-=.1}const r=n/e.length;return t*=r,q1(e)&&(t*=1.1),Math.max(0,Math.min(1,t))}function W1(e){return e>=0&&e<=31||e>=127&&e<=159}function U1(e){return e>=57344&&e<=63743||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function q1(e){return[/\b\w+\b/,/[.!?]+\s/,/\s+/,/[a-zA-Z]{3,}/,/[\u4e00-\u9fa5]+/,/\d+/].some(t=>t.test(e))}function Nu(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Ap(e,t={}){const n={};return Object.entries(e).forEach(([r,o])=>{o!=null&&(t.dropEmptyString&&o===""||(n[r]=o))}),n}class cs{constructor(t,n,r){this.rawResponse=t,this.data=n,this.ok=t.ok,this.status=t.status,this.statusText=t.statusText,this.headers=t.headers,Object.entries(r||{}).forEach(([o,i])=>{this[o]=i})}}async function Y1(e,t,n){var r;if(e.bodyUsed)throw new ur(yr.BODY_USED,"Response body has already been used or locked");const o=e.headers.get("content-type")||"",i=Number(e.headers.get("content-length"))||0,a=(l,c)=>c==="json"||l.startsWith("application/json"),s=(l,c,u)=>u==="blob"||l.startsWith("image/")&&!l.startsWith("image/svg")||l.startsWith("video/")||l.startsWith("audio/")||!L1(c);if((e.status===101||e.status===426||e.headers.get("upgrade"))&&typeof globalThis.WebSocket<"u"){const l=new WebSocket(e.url);return await new Promise((c,u)=>{l.onopen=c,l.onerror=u}),new cs(e,l,{ok:!0,status:101,statusText:"Switching Protocols"})}else if(o.startsWith("text/event-stream")&&!["text","json"].includes(t||"")&&typeof globalThis.EventSource<"u"){const l=new EventSource(e.url);return await new Promise((c,u)=>{l.onopen=c,l.onerror=u}),new cs(e,l)}else{if(t==="stream")return new cs(e,e.body);{const l=(r=e.clone().body)==null?void 0:r.getReader();if(!l)throw new ur(yr.NO_BODY_READER,"Failed to get ReadableStream from response body");let c=new Uint8Array;for(;;){const{done:d,value:p}=await l.read();if(d)break;if(p&&(c=new Uint8Array([...c,...p]),n&&i>0)){const m=Math.min(c.length/i,1);n(m,c)}}const u=new cs(e,void 0);if(t==="arrayBuffer")return u.data=c.buffer,u;if(a(o,t))try{const d=new TextDecoder().decode(c);u.data=JSON.parse(d)}catch{}if(typeof u.data!="string"&&s(o,c,t)?u.data=new Blob([c],{type:e.headers.get("content-type")||void 0}):u.data=new TextDecoder().decode(c),typeof u.data=="string"&&t!=="text"){const d=u.data.trim(),p=d[0],m=d[d.length-1];if(p==="{"&&m==="}"||p==="["&&m==="]")try{u.data=JSON.parse(u.data)}catch{}}if(typeof u.data>"u"&&(u.data=c.length>0?c:void 0),u.ok)return u;throw new N1(`Request failed with status code ${e.status}`,u)}}}class G1{static makeSearchParams(t){const n=new URLSearchParams;return Object.entries(t).forEach(([r,o])=>{Array.isArray(o)?o.forEach(i=>n.append(r,String(i))):n.set(r,String(o))}),n}static makeQueryString(t){return this.makeSearchParams(t).toString()}}function K1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lu,Mp;function X1(){if(Mp)return Lu;Mp=1;function e(t){var n=this.constructor.prototype[t],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,this.constructor.prototype),Object.getOwnPropertyNames(n).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(n,o))}),r}return e.prototype=Object.create(Function.prototype),Lu=e,Lu}var Q1=X1();const Z1=K1(Q1);class oa extends Z1{constructor(t={}){super("request"),this.baseConfigs=t,this.hooks=[],this.DEFAULT_CONFIGS={baseURL:"",timeout:60*1e3,credentials:"same-origin",headers:{},query:{},responseType:void 0},this.ALL_METHODS=["get","post","put","patch","delete","head","options","trace"],this.METHODS_WITHOUT_BODY=["get","head","options","trace"],this.interceptors={request:this.createInterceptor("beforeRequest"),response:this.createInterceptor("afterResponse")},this.create=oa.create,this.dropUndefinedAndNull=Ap,this.checkIsPlainObject=Nu,this.ALL_METHODS.forEach(this.createMethodShortcut.bind(this))}async request(t,n){var r,o,i,a;let s=n=n||{};typeof t=="string"||t instanceof URL?s.url=t.toString():typeof t=="object"&&(s={...t,...s}),s=await this.emit("beforeInit",s);const l=n.baseURL||this.baseConfigs.baseURL||((r=globalThis.location)==null?void 0:r.href),c=l?new URL(l,(o=globalThis.location)==null?void 0:o.href):void 0,u=new URL(s.url.toString(),c);s.url=u.href,s.baseURL=c?c.href:u.origin,s.headers=this.mergeHeaders(this.baseConfigs.headers,n.headers);const d=c?.searchParams,p=new URLSearchParams(u.searchParams);if(u.search="",s.url=u.href,s.query=this.mergeQuery(d,this.baseConfigs.query,p,n.query),u.search=G1.makeQueryString(s.query),s.url=u.toString(),this.METHODS_WITHOUT_BODY.includes((i=s.method)==null?void 0:i.toLocaleLowerCase())&&s.body)throw new ur(yr.BODY_NOT_ALLOWED,`Request method "${s.method}" does not allow body`);s=await this.emit("beforeRequest",s);let m;typeof s.body<"u"&&s.body!==null&&(s.body instanceof Blob||s.body instanceof FormData||s.body instanceof URLSearchParams?m=s.body:typeof s.body=="object"&&s.body!==null?(m=JSON.stringify(s.body),s.headers["content-type"]="application/json"):m=s.body),!((a=n.headers)!=null&&a["content-type"])&&m&&(m instanceof FormData||m instanceof URLSearchParams?delete s.headers["content-type"]:typeof m=="string"&&typeof s.body=="object"?s.headers["content-type"]="application/json":m instanceof Blob&&(s.headers["content-type"]=m.type)),s.body=m,s=await this.emit("afterBodyTransformed",s);const f=s.abortController||globalThis.AbortController?new AbortController:void 0,y=new Request(s.url,{method:s.method||"GET",credentials:s.credentials,cache:s.cache,mode:s.mode,headers:s.headers,body:s.body,signal:f?.signal});s.rawRequest=y,s=await this.emit("beforeActualFetch",s);const S=s.timeout||this.baseConfigs.timeout||60*1e3;if(s.url.startsWith("ws"))try{const k=new WebSocket(s.url);return await new Promise((b,v)=>{const g=setTimeout(()=>{v(new ur(yr.TIMEOUT,`WebSocket connection timed out after ${S}ms`,s))},S);k.onopen=()=>{clearTimeout(g),b()},k.onerror=C=>{clearTimeout(g),v(new ur(yr.NETWORK_ERROR,"WebSocket connection failed",s))},k.onclose=C=>{C.code!==1e3&&(clearTimeout(g),v(new ur(yr.NETWORK_ERROR,`WebSocket closed with code ${C.code}`,s)))}}),s.rawResponse=new Response,s.response=new cs(s.rawResponse,k,{ok:!0,status:101,statusText:"Switching Protocols"}),s.data=k,s.headers=new Headers,this.emit("afterResponse",s)}catch(k){throw k instanceof ur?k:new ur(yr.NETWORK_ERROR,`WebSocket creation failed: ${k}`,s)}let w;try{f&&(w=setTimeout(()=>{f.abort()},S));const k=await fetch(s.rawRequest).catch(b=>{throw w&&clearTimeout(w),f!=null&&f.signal.aborted?new ur(yr.TIMEOUT,`Request timed out after ${S}ms`,s):new ur(yr.NETWORK_ERROR,b.message,s)});return w&&clearTimeout(w),s.rawResponse=k,s.response=await Y1(k,s.responseType,(b,v)=>{var g;(g=n?.onProgress)==null||g.call(n,b,v)}),s.data=s.response.data,s.headers=s.response.headers,this.emit("afterResponse",s)}catch(k){throw w&&clearTimeout(w),k}}mergeQuery(t,...n){const r={},o=i=>{i&&(Nu(i)?Object.entries(i).forEach(([a,s])=>{s==null?delete r[a]:Array.isArray(s)?(a.endsWith("[]"),r[a]=s.map(String)):r[a]=String(s)}):new URLSearchParams(i).forEach((a,s)=>{r[s]=a}))};return o(t),n.forEach(o),r}mergeHeaders(t,...n){const r={},o=new Headers(t);for(const i of n)if(i!=null)if(Nu(i)){const a=Ap(i);if(Object.keys(a).length===0)continue;new Headers(a).forEach((s,l)=>{o.set(l,s)})}else new Headers(i).forEach((a,s)=>{o.set(s,a)});return o.forEach((i,a)=>{r[a]=i}),r}async emit(t,n){const r=this.hooks.filter(o=>o.event===t);try{let o=0;for(const i of r){const a=`${t}#${i.action.name||`anonymous#${o}`}`,s=Symbol("FexiosHookContext");n[s]=s;const l=await i.action.call(this,n);if(l===!1)throw new ur(yr.ABORTED_BY_HOOK,`Request aborted by hook "${a}"`,n);if(typeof l=="object"&&l[s]===s)n=l;else{const c=globalThis["".concat("console")];try{throw new ur(yr.HOOK_CONTEXT_CHANGED,`Hook "${a}" should return the original FexiosContext or return false to abort the request, but got "${l}".`)}catch(u){c.warn(u.stack||u)}}delete n[s],o++}}catch(o){return Promise.reject(o)}return n}on(t,n,r=!1){if(typeof n!="function")throw new ur(yr.INVALID_HOOK_CALLBACK,`Hook should be a function, but got "${typeof n}"`);return this.hooks[r?"unshift":"push"]({event:t,action:n}),this}off(t,n){return t==="*"||!t?this.hooks=this.hooks.filter(r=>r.action!==n):this.hooks=this.hooks.filter(r=>r.event!==t||r.action!==n),this}createInterceptor(t){return{handlers:()=>this.hooks.filter(n=>n.event===t).map(n=>n.action),use:(n,r=!1)=>this.on(t,n,r),clear:()=>{this.hooks=this.hooks.filter(n=>n.event!==t)}}}createMethodShortcut(t){return Object.defineProperty(this,t,{value:(n,r,o)=>(this.METHODS_WITHOUT_BODY.includes(t.toLocaleLowerCase())?o=r:(o=o||{},o.body=r),this.request(n,{...o,method:t}))}),this}extends(t){const n=new oa({...this.baseConfigs,...t});return n.hooks=[...this.hooks],n}static create(t){return new oa(t)}}/**
9
+ * Fexios
10
+ * @desc Fetch based HTTP client with similar API to axios for browser and Node.js
11
+ *
12
+ * @license MIT
13
+ * @author dragon-fish <dragon-fish@qq.com>
14
+ */const J1=oa.create,Ip=J1();typeof globalThis<"u"?globalThis.fexios=Ip:typeof window<"u"&&(window.fexios=Ip);/**
15
+ * MediaWiki Api
16
+ * Provides the API call methods similar to `mw.Api` at non-mw environments
17
+ *
18
+ * @author Dragon-Fish <dragon-fish@qq.com>
19
+ * @license MIT
20
+ */const zp=class ui{constructor(t,n,r){if(this.baseURL=t,this.version="5.0.0",!t&&typeof window=="object"&&window.mediaWiki){const{wgServer:o,wgScriptPath:i}=window.mediaWiki?.config?.get(["wgServer","wgScriptPath"])||{};typeof o=="string"&&typeof i=="string"&&(t=`${o}${i}/api.php`)}if(typeof t!="string")throw new Error("baseURL is undefined");this.baseURL=t,this.tokens={},this.defaultParams={...ui.INIT_DEFAULT_PARAMS,...r},this.defaultOptions={responseType:"json",...n},this.request=ui.createRequestHandler(this.baseURL)}setBaseURL(t){return this.request.baseConfigs.baseURL=t,this}static normalizeParamValue(t){return Array.isArray(t)?t.join("|"):typeof t=="boolean"?t?"1":void 0:typeof t=="number"?""+t:t}static createRequestHandler(t){const n=new oa({baseURL:t,responseType:"json"});return n.on("beforeInit",r=>{if(r.method?.toLowerCase()!=="post")return r;if(typeof r.body=="object"&&r.body!==null&&!(r.body instanceof URLSearchParams)&&!(r.body instanceof FormData)){const o=r.body;Object.keys(o).forEach(i=>{const a=ui.normalizeParamValue(o[i]);typeof a>"u"||a===null?delete o[i]:a!==o[i]&&(o[i]=a)}),r.body=new URLSearchParams(r.body)}if(globalThis.FormData&&r.body instanceof FormData||r.body instanceof URLSearchParams){const o=r.body;o.forEach((a,s)=>{const l=ui.normalizeParamValue(a);typeof l>"u"||l===null?o.delete(s):l!==a&&o.set(s,l)});const i=new URLSearchParams(r.query);!i.has("format")&&i.set("format",""+(o.get("format")||"json")),!i.has("formatversion")&&i.set("formatversion",""+(o.get("formatversion")||"2")),o.has("origin")&&i.set("origin",""+o.get("origin")),r.query=Object.fromEntries(i.entries()),o.has("action")&&(r.query.action=""+o.get("action"))}return r}),n.on("beforeInit",r=>{r.query=r.query;for(const o in r.query){const i=ui.normalizeParamValue(r.query[o]);typeof i>"u"||i===null?delete r.query[o]:i!==r.query[o]&&(r.query[o]=""+i)}return r}),n.on("beforeRequest",r=>{const o=new URL(r.url),i=o.searchParams;if(globalThis.location&&(!i.has("origin")&&location.origin!==new URL(t).origin?(i.set("origin",location.origin),n.baseConfigs.credentials="include",n.baseConfigs.mode="cors"):location.origin===new URL(t).origin&&(i.delete("origin"),n.baseConfigs.credentials=void 0,n.baseConfigs.mode=void 0)),o.searchParams.has("origin")){const a=encodeURIComponent(o.searchParams.get("origin")||"").replace(/\./g,"%2E");r.query={},o.searchParams.delete("origin"),r.url=`${o}${o.search?"&":"?"}origin=${a}`}return r}),n}get(t,n){return this.request.get("",{...this.defaultOptions,query:{...this.defaultParams,...this.defaultOptions.query,...t},...n})}post(t,n){return this.request.post("",t,{...this.defaultOptions,query:{...this.defaultParams,...this.defaultOptions.query},...n})}async login(t,n,r,o){if(this.defaultOptions.credentials="include",o=o||{},o.retry??(o.retry=3),o.retry<1)throw new ia("LOGIN_RETRY_LIMIT_EXCEEDED","The limit of the number of times to automatically re-login has been exceeded");let i;try{const a=await this.postWithToken("login",{action:"login",lgname:t,lgpassword:n,...r},{tokenName:"lgtoken",...o});if(a?.data?.login)i=a.data;else throw a}catch(a){if(a instanceof ia)throw a;if(a?.ok===!1)return this.login(t,n,r,{...o,noCache:!0,retry:o.retry-1});throw new ia("HTTP_ERROR","The server returns an error, but it doesn't seem to be caused by MediaWiki",a)}if(i?.login?.result!=="Success")throw new ia("LOGIN_FAILED",i?.login?.reason?.text||i?.login?.result||"Login failed with unknown reason",i);return i.login}async getUserInfo(){const{data:t}=await this.get({action:"query",meta:"userinfo",uiprop:["groups","rights","blockinfo"]});return t?.query?.userinfo}async getTokens(t=["csrf"]){this.defaultOptions.credentials="include";const{data:n}=await this.get({action:"query",meta:"tokens",type:t});return this.tokens={...this.tokens,...n.query.tokens},this.tokens}async token(t="csrf",n=!1){return(!this.tokens[`${t}token`]||n)&&(delete this.tokens[`${t}token`],await this.getTokens([t])),this.tokens[`${t}token`]}async postWithToken(t,n,r){const{tokenName:o="token",retry:i=3,noCache:a=!1}=r||{};if(i<1)throw new ia("TOKEN_RETRY_LIMIT_EXCEEDED","The limit of the number of times to automatically re-acquire the token has been exceeded");const s=await this.token(t,a),l=()=>this.postWithToken(t,n,{tokenName:o,retry:i-1,noCache:!0});return this.post({[o]:s,...n}).then(c=>{const u=c.data;return ui.isBadTokenError(u)?l():c}).catch(c=>{const u=c.data;if(ui.isBadTokenError(u)||c?.ok===!1)return l();if(typeof u=="object"&&u!==null)return Promise.reject(u);throw new ia("HTTP_ERROR","The server returns an error, but it doesn’t seem to be caused by MediaWiki",c)})}postWithEditToken(t){return this.postWithToken("csrf",t)}static isBadTokenError(t){return t?.error?.code==="badtoken"||t?.errors?.some(n=>n.code==="badtoken")||["NeedToken","WrongToken"].includes(t?.login?.result)}async getMessages(t,n="zh",r){const{data:o}=await this.get({action:"query",meta:"allmessages",ammessages:t,amlang:n,...r}),i={};return o.query.allmessages.forEach(function(a){a.missing||(i[a.name]=a.content)}),i}async parseWikitext(t,n,r,o){const{data:i}=await this.post({action:"parse",title:n,text:t,...r},o);return i.parse.text}};zp.INIT_DEFAULT_PARAMS={action:"query",errorformat:"plaintext",format:"json",formatversion:2};let eC=zp;class ia extends Error{constructor(t,n="",r){super(),this.code=t,this.message=n,this.cause=r,this.name="WikiSaikouError"}}/**
21
+ * MediaWiki Api
22
+ * Provides the API call methods similar to `mw.Api` at non-mw environments
23
+ *
24
+ * @author Dragon-Fish <dragon-fish@qq.com>
25
+ * @license MIT
26
+ */class Bp extends eC{}class tC{constructor(t,n){this.ctx=t;let r=typeof n?.baseURL=="string"?n.baseURL:n?.baseURL?.toString();r?.startsWith("/")&&(r=new URL(r,location.origin).href);const o=new Bp(r,{headers:{"x-api-user-agent":`InPageEdit-NEXT ${t.version}`}});t.set("api",o)}}class nC extends ra{constructor(t){super(t,"resourceLoader",!0),this.ctx=t}stop(){}loadScript(t,n){if(!t)return Promise.resolve(null);const r=`script:${t}`,o=document.querySelector(`[data-ipe="${r}"]`);return o?Promise.resolve(o):new Promise((a,s)=>{const l=document.createElement("script");l.src=t,l.dataset.ipe=r,n&&Object.entries(n).forEach(([c,u])=>{typeof u>"u"||u===!1||u===null?l.removeAttribute(c):l.setAttribute(c,u)}),document.body.appendChild(l),l.onload=()=>a(l),l.onerror=c=>s(c)})}loadStyle(t,n){if(!t)return Promise.resolve(null);const r=`style:${t}`,o=document.querySelector(`[data-ipe="${r}"]`);return o?Promise.resolve(o):new Promise((a,s)=>{const l=document.createElement("link");l.rel="stylesheet",l.href=t,l.dataset.ipe=r,n&&Object.entries(n).forEach(([u,d])=>{typeof d>"u"||d===!1||d===null?l.removeAttribute(u):l.setAttribute(u,d)}),(document.querySelector('meta[name="ipe-styles"]')||(()=>{const u=document.createElement("meta");return u.id="ipe-styles",u.name="ipe-styles",document.head.insertAdjacentElement("afterbegin",u),u})()).before(l),l.onload=()=>a(l),l.onerror=u=>s(u)})}resolveImportPath(t){if(t.startsWith("http")||t.startsWith("//"))return t;const n=document.currentScript?.src;if(!n)return`https://unpkg.com/mediawiki-inpageedit@latest/dist/${t}`;const r=new URL(n);return r.pathname.endsWith(".js")||(r.pathname=r.pathname+"/"),new URL(t,r.toString()).toString()}}const Sl=Object.keys;function rC(e){return typeof e=="boolean"}function oC(e){return e&&typeof e.nodeType=="number"}function Hu(e){return typeof e=="string"}function Np(e){return typeof e=="number"}function fi(e){return typeof e=="object"?e!==null:us(e)}function us(e){return typeof e=="function"}function iC(e){return!!(e&&e.isComponent)}function aC(e){return fi(e)&&typeof e.length=="number"&&typeof e.nodeType!="number"}function Vu(e,t){if(e)for(const n of Sl(e))t(e[n],n)}function sC(e){return fi(e)&&"current"in e}const ju={animationIterationCount:0,borderImageOutset:0,borderImageSlice:0,borderImageWidth:0,boxFlex:0,boxFlexGroup:0,boxOrdinalGroup:0,columnCount:0,columns:0,flex:0,flexGrow:0,flexPositive:0,flexShrink:0,flexNegative:0,flexOrder:0,gridArea:0,gridRow:0,gridRowEnd:0,gridRowSpan:0,gridRowStart:0,gridColumn:0,gridColumnEnd:0,gridColumnSpan:0,gridColumnStart:0,fontWeight:0,lineClamp:0,lineHeight:0,opacity:0,order:0,orphans:0,tabSize:0,widows:0,zIndex:0,zoom:0,fillOpacity:0,floodOpacity:0,stopOpacity:0,strokeDasharray:0,strokeDashoffset:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0};function lC(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}const cC=["Webkit","ms","Moz","O"];Sl(ju).forEach(e=>{cC.forEach(t=>{ju[lC(t,e)]=0})});const uC=Symbol.for("jsx-dom:type");var Lp=function(e){return e.ShadowRoot="ShadowRoot",e}(Lp||{});function dC(e){return e!=null&&e[uC]===Lp.ShadowRoot}const fC="http://www.w3.org/2000/svg",hC="http://www.w3.org/1999/xlink",pC="http://www.w3.org/XML/1998/namespace";function Hp(e){return!rC(e)&&e!=null}function Wu(e){return Array.isArray(e)?e.map(Wu).filter(Boolean).join(" "):fi(e)?Symbol.iterator in e?Wu(Array.from(e)):Sl(e).filter(t=>e[t]).join(" "):Hp(e)?""+e:""}const mC={animate:0,circle:0,clipPath:0,defs:0,desc:0,ellipse:0,feBlend:0,feColorMatrix:0,feComponentTransfer:0,feComposite:0,feConvolveMatrix:0,feDiffuseLighting:0,feDisplacementMap:0,feDistantLight:0,feFlood:0,feFuncA:0,feFuncB:0,feFuncG:0,feFuncR:0,feGaussianBlur:0,feImage:0,feMerge:0,feMergeNode:0,feMorphology:0,feOffset:0,fePointLight:0,feSpecularLighting:0,feSpotLight:0,feTile:0,feTurbulence:0,filter:0,foreignObject:0,g:0,image:0,line:0,linearGradient:0,marker:0,mask:0,metadata:0,path:0,pattern:0,polygon:0,polyline:0,radialGradient:0,rect:0,stop:0,svg:0,switch:0,symbol:0,text:0,textPath:0,tspan:0,use:0,view:0},vC=/^(a(ll|t|u)|base[FP]|c(al|lipPathU|on)|di|ed|ex|filter[RU]|g(lyphR|r)|ke|l(en|im)|ma(rker[HUW]|s)|n|pat|pr|point[^e]|re[^n]|s[puy]|st[^or]|ta|textL|vi|xC|y|z)/;function _l(e){const t=document.createDocumentFragment();return kl(e.children,t),t}function gC(e,t,n){t={...t,children:n};const r=new e(t),o=r.render();return"ref"in t&&Uu(t.ref,r),o}function oe(e,t){let{children:n,...r}=t;!r.namespaceURI&&mC[e]===0&&(r={...r,namespaceURI:fC});let o;if(Hu(e)){if(o=r.namespaceURI?document.createElementNS(r.namespaceURI,e):document.createElement(e),wC(r,o),kl(n,o),o instanceof window.HTMLSelectElement&&r.value!=null)if(r.multiple===!0&&Array.isArray(r.value)){const i=r.value.map(a=>String(a));o.querySelectorAll("option").forEach(a=>a.selected=i.includes(a.value))}else o.value=r.value;Uu(r.ref,o)}else if(us(e))fi(e.defaultProps)&&(r={...e.defaultProps,...r}),o=iC(e)?gC(e,r,n):e({...r,children:n});else throw new TypeError(`Invalid JSX element type: ${e}`);return o}function Uu(e,t){sC(e)?e.current=t:us(e)&&e(t)}function kl(e,t){if(aC(e))bC(e,t);else if(Hu(e)||Np(e))qu(document.createTextNode(e),t);else if(e===null)qu(document.createComment(""),t);else if(oC(e))qu(e,t);else if(dC(e)){const n=t.attachShadow(e.attr);kl(e.children,n),Uu(e.ref,n)}}function bC(e,t){for(const n of[...e])kl(n,t);return t}function qu(e,t){t instanceof window.HTMLTemplateElement?t.content.appendChild(e):t.appendChild(e)}function Pl(e,t){return e.replace(/[A-Z]/g,n=>t+n.toLowerCase())}function Vp(e,t){t==null||t===!1||(Array.isArray(t)?t.forEach(n=>Vp(e,n)):Hu(t)?e.setAttribute("style",t):fi(t)&&Vu(t,(n,r)=>{r.indexOf("-")===0?e.style.setProperty(r,n):Np(n)&&ju[r]!==0?e.style[r]=n+"px":e.style[r]=n}))}function yC(e,t,n){switch(e){case"xlinkActuate":case"xlinkArcrole":case"xlinkHref":case"xlinkRole":case"xlinkShow":case"xlinkTitle":case"xlinkType":jp(n,hC,Pl(e,":"),t);return;case"xmlnsXlink":aa(n,Pl(e,":"),t);return;case"xmlBase":case"xmlLang":case"xmlSpace":jp(n,pC,Pl(e,":"),t);return}switch(e){case"htmlFor":aa(n,"for",t);return;case"dataset":Vu(t,(r,o)=>{r!=null&&(n.dataset[o]=r)});return;case"innerHTML":case"innerText":case"textContent":Hp(t)&&(n[e]=t);return;case"dangerouslySetInnerHTML":fi(t)&&(n.innerHTML=t.__html);return;case"value":if(t==null||n instanceof window.HTMLSelectElement)return;if(n instanceof window.HTMLTextAreaElement){n.value=t;return}break;case"spellCheck":n.spellcheck=t;return;case"class":case"className":us(t)?t(n):aa(n,"class",Wu(t));return;case"ref":case"namespaceURI":return;case"style":Vp(n,t);return;case"on":case"onCapture":Vu(t,(r,o)=>{n.addEventListener(o,r,e==="onCapture")});return}if(us(t)){if(e[0]==="o"&&e[1]==="n"){let r=e.toLowerCase();const o=r.endsWith("capture");if(r==="ondoubleclick"?r="ondblclick":o&&r==="ondoubleclickcapture"&&(r="ondblclickcapture"),!o&&n[r]===null)n[r]=t;else if(o)n.addEventListener(r.substring(2,r.length-7),t,!0);else{let i;r in window?i=r.substring(2):i=r[2]+e.slice(3),n.addEventListener(i,t)}}}else fi(t)?n[e]=t:t===!0?aa(n,e,""):t!==!1&&t!=null&&(n instanceof SVGElement&&!vC.test(e)?aa(n,Pl(e,"-"),t):aa(n,e,t))}function aa(e,t,n){e.setAttribute(t,n)}function jp(e,t,n,r){e.setAttributeNS(t,n,r)}function wC(e,t){for(const n of Sl(e))yC(n,e[n],t);return t}var sa=(e=>(e.ANALYTICS_API_BASE="https://analytics.ipe.wiki/api",e.ANALYTICS_DASH_URL="https://analytics.ipe.wiki",e.GITHUB_URL="https://github.com/inpageedit/inpageedit-v2",e.HOME_URL="https://www.ipe.wiki/",e.PLUGIN_CDN_BASE="https://ipe-plugins.js.org",e.PLUGIN_HOME_URL="https://github.com/inpageedit/Plugins",e.SPECIAL_NOTICE_JSON="https://ipe-plugins.js.org/specialNotice.json",e.UPDATE_LOGS_URL="https://www.ipe.wiki/update/",e))(sa||{});const xC={ipe_progress:"_ipe_progress_so6hn_1"},hi=e=>{const t=e.indeterminate??!0,n=oe("div",{class:`${xC.ipe_progress}`,"data-indeterminate":`${t}`,style:{width:"100%","--progress":e.progress?`${e.progress}%`:"0%"},...e});return n.setProgress=r=>{typeof r=="number"?(n.dataset.indeterminate="false",n.style.setProperty("--progress",`${r}%`)):(n.dataset.indeterminate="true",n.style.setProperty("--progress","0%"))},n},cp=class cp{constructor(t){this.ctx=t,this.start(),this.ctx.on("dispose",()=>{this.stop()})}start(){const{promise:t,resolve:n}=Promise.withResolvers();return window.ssi_modal&&typeof window.ssi_modal.show=="function"?n(window.ssi_modal):(this.ctx.resourceLoader.loadStyle(`${sa.PLUGIN_CDN_BASE}/lib/ssi-modal/ssi-modal.css`),this.ctx.resourceLoader.loadScript(`${sa.PLUGIN_CDN_BASE}/lib/ssi-modal/ssi-modal.js`,{async:""}).then(()=>{n(window.ssi_modal)})),t.then(r=>{this.hackSsiModal(r),this.ctx.set("modal",r),this.modal=r})}stop(){this.modal?.closeAll()}hackSsiModal(t){const n=this,r=t.proto.init;t.proto.init=function(){var a;return console.log("init",this),(a=this.options).className||(a.className=""),this.options.className+=" in-page-edit theme-ipe",r.call(this)};const o=t.proto.show;t.proto.show=function(){return n.ctx.emit("modal/show",{modal:this}),o.call(this)};const i=t.proto.close;return t.proto.close=function(){return n.ctx.emit("modal/close",{modal:this}),i.call(this)},t.proto.setLoadingState=function(a){if(this.get$window().toggleClass("loading",a),a){const s=this.get$window().find("input:not([disabled]),button:not([disabled])");this.get$modal().data("inputsAndButtons",s),s.prop("disabled",!0),this.get$window().append(oe("div",{id:"ssi-modalLoadingWrapper",style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.5)",zIndex:2e3},children:oe(hi,{style:{width:"80%",maxWidth:"800px"}})}))}else{this.get$window().find("#ssi-modalLoadingWrapper").remove();const s=this.get$modal().data("inputsAndButtons");s&&s.prop("disabled",!1)}},t}};cp.inject=["resourceLoader"];let Yu=cp;function Tl(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 Gu={exports:{}};/*!
27
+ localForage -- Offline Storage, Improved
28
+ Version 1.10.0
29
+ https://localforage.github.io/localForage
30
+ (c) 2013-2017 Mozilla, Apache License 2.0
31
+ */var Wp;function CC(){return Wp||(Wp=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function a(c,u){if(!o[c]){if(!r[c]){var d=typeof Tl=="function"&&Tl;if(!u&&d)return d(c,!0);if(s)return s(c,!0);var p=new Error("Cannot find module '"+c+"'");throw p.code="MODULE_NOT_FOUND",p}var m=o[c]={exports:{}};r[c][0].call(m.exports,function(f){var y=r[c][1][f];return a(y||f)},m,m.exports,n,r,o,i)}return o[c].exports}for(var s=typeof Tl=="function"&&Tl,l=0;l<i.length;l++)a(i[l]);return a}({1:[function(n,r,o){(function(i){var a=i.MutationObserver||i.WebKitMutationObserver,s;if(a){var l=0,c=new a(f),u=i.document.createTextNode("");c.observe(u,{characterData:!0}),s=function(){u.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var d=new i.MessageChannel;d.port1.onmessage=f,s=function(){d.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?s=function(){var S=i.document.createElement("script");S.onreadystatechange=function(){f(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},i.document.documentElement.appendChild(S)}:s=function(){setTimeout(f,0)};var p,m=[];function f(){p=!0;for(var S,w,k=m.length;k;){for(w=m,m=[],S=-1;++S<k;)w[S]();k=m.length}p=!1}r.exports=y;function y(S){m.push(S)===1&&!p&&s()}}).call(this,typeof na<"u"?na:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function a(){}var s={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];r.exports=d;function d(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,g!==a&&y(this,g)}d.prototype.catch=function(g){return this.then(null,g)},d.prototype.then=function(g,C){if(typeof g!="function"&&this.state===c||typeof C!="function"&&this.state===l)return this;var x=new this.constructor(a);if(this.state!==u){var T=this.state===c?g:C;m(x,T,this.outcome)}else this.queue.push(new p(x,g,C));return x};function p(g,C,x){this.promise=g,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof x=="function"&&(this.onRejected=x,this.callRejected=this.otherCallRejected)}p.prototype.callFulfilled=function(g){s.resolve(this.promise,g)},p.prototype.otherCallFulfilled=function(g){m(this.promise,this.onFulfilled,g)},p.prototype.callRejected=function(g){s.reject(this.promise,g)},p.prototype.otherCallRejected=function(g){m(this.promise,this.onRejected,g)};function m(g,C,x){i(function(){var T;try{T=C(x)}catch(P){return s.reject(g,P)}T===g?s.reject(g,new TypeError("Cannot resolve promise with itself")):s.resolve(g,T)})}s.resolve=function(g,C){var x=S(f,C);if(x.status==="error")return s.reject(g,x.value);var T=x.value;if(T)y(g,T);else{g.state=c,g.outcome=C;for(var P=-1,O=g.queue.length;++P<O;)g.queue[P].callFulfilled(C)}return g},s.reject=function(g,C){g.state=l,g.outcome=C;for(var x=-1,T=g.queue.length;++x<T;)g.queue[x].callRejected(C);return g};function f(g){var C=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof C=="function")return function(){C.apply(g,arguments)}}function y(g,C){var x=!1;function T(D){x||(x=!0,s.reject(g,D))}function P(D){x||(x=!0,s.resolve(g,D))}function O(){C(P,T)}var U=S(O);U.status==="error"&&T(U.value)}function S(g,C){var x={};try{x.value=g(C),x.status="success"}catch(T){x.status="error",x.value=T}return x}d.resolve=w;function w(g){return g instanceof this?g:s.resolve(new this(a),g)}d.reject=k;function k(g){var C=new this(a);return s.reject(C,g)}d.all=b;function b(g){var C=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=g.length,T=!1;if(!x)return this.resolve([]);for(var P=new Array(x),O=0,U=-1,D=new this(a);++U<x;)I(g[U],U);return D;function I(te,ie){C.resolve(te).then(pe,function(ce){T||(T=!0,s.reject(D,ce))});function pe(ce){P[ie]=ce,++O===x&&!T&&(T=!0,s.resolve(D,P))}}}d.race=v;function v(g){var C=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var x=g.length,T=!1;if(!x)return this.resolve([]);for(var P=-1,O=new this(a);++P<x;)U(g[P]);return O;function U(D){C.resolve(D).then(function(I){T||(T=!0,s.resolve(O,I))},function(I){T||(T=!0,s.reject(O,I))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof na<"u"?na:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R};function a(R,q){if(!(R instanceof q))throw new TypeError("Cannot call a class as a function")}function s(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=s();function c(){try{if(!l||!l.open)return!1;var R=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),q=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!R||q)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function u(R,q){R=R||[],q=q||{};try{return new Blob(R,q)}catch(ee){if(ee.name!=="TypeError")throw ee;for(var M=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,re=new M,ae=0;ae<R.length;ae+=1)re.append(R[ae]);return re.getBlob(q.type)}}typeof Promise>"u"&&n(3);var d=Promise;function p(R,q){q&&R.then(function(M){q(null,M)},function(M){q(M)})}function m(R,q,M){typeof q=="function"&&R.then(q),typeof M=="function"&&R.catch(M)}function f(R){return typeof R!="string"&&(console.warn(R+" used as a key, but it is not a string."),R=String(R)),R}function y(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var S="local-forage-detect-blob-support",w=void 0,k={},b=Object.prototype.toString,v="readonly",g="readwrite";function C(R){for(var q=R.length,M=new ArrayBuffer(q),re=new Uint8Array(M),ae=0;ae<q;ae++)re[ae]=R.charCodeAt(ae);return M}function x(R){return new d(function(q){var M=R.transaction(S,g),re=u([""]);M.objectStore(S).put(re,"key"),M.onabort=function(ae){ae.preventDefault(),ae.stopPropagation(),q(!1)},M.oncomplete=function(){var ae=navigator.userAgent.match(/Chrome\/(\d+)/),ee=navigator.userAgent.match(/Edge\//);q(ee||!ae||parseInt(ae[1],10)>=43)}}).catch(function(){return!1})}function T(R){return typeof w=="boolean"?d.resolve(w):x(R).then(function(q){return w=q,w})}function P(R){var q=k[R.name],M={};M.promise=new d(function(re,ae){M.resolve=re,M.reject=ae}),q.deferredOperations.push(M),q.dbReady?q.dbReady=q.dbReady.then(function(){return M.promise}):q.dbReady=M.promise}function O(R){var q=k[R.name],M=q.deferredOperations.pop();if(M)return M.resolve(),M.promise}function U(R,q){var M=k[R.name],re=M.deferredOperations.pop();if(re)return re.reject(q),re.promise}function D(R,q){return new d(function(M,re){if(k[R.name]=k[R.name]||ue(),R.db)if(q)P(R),R.db.close();else return M(R.db);var ae=[R.name];q&&ae.push(R.version);var ee=l.open.apply(l,ae);q&&(ee.onupgradeneeded=function(Pe){var ze=ee.result;try{ze.createObjectStore(R.storeName),Pe.oldVersion<=1&&ze.createObjectStore(S)}catch(He){if(He.name==="ConstraintError")console.warn('The database "'+R.name+'" has been upgraded from version '+Pe.oldVersion+" to version "+Pe.newVersion+', but the storage "'+R.storeName+'" already exists.');else throw He}}),ee.onerror=function(Pe){Pe.preventDefault(),re(ee.error)},ee.onsuccess=function(){var Pe=ee.result;Pe.onversionchange=function(ze){ze.target.close()},M(Pe),O(R)}})}function I(R){return D(R,!1)}function te(R){return D(R,!0)}function ie(R,q){if(!R.db)return!0;var M=!R.db.objectStoreNames.contains(R.storeName),re=R.version<R.db.version,ae=R.version>R.db.version;if(re&&(R.version!==q&&console.warn('The database "'+R.name+`" can't be downgraded from version `+R.db.version+" to version "+R.version+"."),R.version=R.db.version),ae||M){if(M){var ee=R.db.version+1;ee>R.version&&(R.version=ee)}return!0}return!1}function pe(R){return new d(function(q,M){var re=new FileReader;re.onerror=M,re.onloadend=function(ae){var ee=btoa(ae.target.result||"");q({__local_forage_encoded_blob:!0,data:ee,type:R.type})},re.readAsBinaryString(R)})}function ce(R){var q=C(atob(R.data));return u([q],{type:R.type})}function ge(R){return R&&R.__local_forage_encoded_blob}function Ae(R){var q=this,M=q._initReady().then(function(){var re=k[q._dbInfo.name];if(re&&re.dbReady)return re.dbReady});return m(M,R,R),M}function Re(R){P(R);for(var q=k[R.name],M=q.forages,re=0;re<M.length;re++){var ae=M[re];ae._dbInfo.db&&(ae._dbInfo.db.close(),ae._dbInfo.db=null)}return R.db=null,I(R).then(function(ee){return R.db=ee,ie(R)?te(R):ee}).then(function(ee){R.db=q.db=ee;for(var Pe=0;Pe<M.length;Pe++)M[Pe]._dbInfo.db=ee}).catch(function(ee){throw U(R,ee),ee})}function Ee(R,q,M,re){re===void 0&&(re=1);try{var ae=R.db.transaction(R.storeName,q);M(null,ae)}catch(ee){if(re>0&&(!R.db||ee.name==="InvalidStateError"||ee.name==="NotFoundError"))return d.resolve().then(function(){if(!R.db||ee.name==="NotFoundError"&&!R.db.objectStoreNames.contains(R.storeName)&&R.version<=R.db.version)return R.db&&(R.version=R.db.version+1),te(R)}).then(function(){return Re(R).then(function(){Ee(R,q,M,re-1)})}).catch(M);M(ee)}}function ue(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function _e(R){var q=this,M={db:null};if(R)for(var re in R)M[re]=R[re];var ae=k[M.name];ae||(ae=ue(),k[M.name]=ae),ae.forages.push(q),q._initReady||(q._initReady=q.ready,q.ready=Ae);var ee=[];function Pe(){return d.resolve()}for(var ze=0;ze<ae.forages.length;ze++){var He=ae.forages[ze];He!==q&&ee.push(He._initReady().catch(Pe))}var Ve=ae.forages.slice(0);return d.all(ee).then(function(){return M.db=ae.db,I(M)}).then(function(We){return M.db=We,ie(M,q._defaultConfig.version)?te(M):We}).then(function(We){M.db=ae.db=We,q._dbInfo=M;for(var nt=0;nt<Ve.length;nt++){var kt=Ve[nt];kt!==q&&(kt._dbInfo.db=M.db,kt._dbInfo.version=M.version)}})}function me(R,q){var M=this;R=f(R);var re=new d(function(ae,ee){M.ready().then(function(){Ee(M._dbInfo,v,function(Pe,ze){if(Pe)return ee(Pe);try{var He=ze.objectStore(M._dbInfo.storeName),Ve=He.get(R);Ve.onsuccess=function(){var We=Ve.result;We===void 0&&(We=null),ge(We)&&(We=ce(We)),ae(We)},Ve.onerror=function(){ee(Ve.error)}}catch(We){ee(We)}})}).catch(ee)});return p(re,q),re}function De(R,q){var M=this,re=new d(function(ae,ee){M.ready().then(function(){Ee(M._dbInfo,v,function(Pe,ze){if(Pe)return ee(Pe);try{var He=ze.objectStore(M._dbInfo.storeName),Ve=He.openCursor(),We=1;Ve.onsuccess=function(){var nt=Ve.result;if(nt){var kt=nt.value;ge(kt)&&(kt=ce(kt));var Nt=R(kt,nt.key,We++);Nt!==void 0?ae(Nt):nt.continue()}else ae()},Ve.onerror=function(){ee(Ve.error)}}catch(nt){ee(nt)}})}).catch(ee)});return p(re,q),re}function ke(R,q,M){var re=this;R=f(R);var ae=new d(function(ee,Pe){var ze;re.ready().then(function(){return ze=re._dbInfo,b.call(q)==="[object Blob]"?T(ze.db).then(function(He){return He?q:pe(q)}):q}).then(function(He){Ee(re._dbInfo,g,function(Ve,We){if(Ve)return Pe(Ve);try{var nt=We.objectStore(re._dbInfo.storeName);He===null&&(He=void 0);var kt=nt.put(He,R);We.oncomplete=function(){He===void 0&&(He=null),ee(He)},We.onabort=We.onerror=function(){var Nt=kt.error?kt.error:kt.transaction.error;Pe(Nt)}}catch(Nt){Pe(Nt)}})}).catch(Pe)});return p(ae,M),ae}function Ye(R,q){var M=this;R=f(R);var re=new d(function(ae,ee){M.ready().then(function(){Ee(M._dbInfo,g,function(Pe,ze){if(Pe)return ee(Pe);try{var He=ze.objectStore(M._dbInfo.storeName),Ve=He.delete(R);ze.oncomplete=function(){ae()},ze.onerror=function(){ee(Ve.error)},ze.onabort=function(){var We=Ve.error?Ve.error:Ve.transaction.error;ee(We)}}catch(We){ee(We)}})}).catch(ee)});return p(re,q),re}function tt(R){var q=this,M=new d(function(re,ae){q.ready().then(function(){Ee(q._dbInfo,g,function(ee,Pe){if(ee)return ae(ee);try{var ze=Pe.objectStore(q._dbInfo.storeName),He=ze.clear();Pe.oncomplete=function(){re()},Pe.onabort=Pe.onerror=function(){var Ve=He.error?He.error:He.transaction.error;ae(Ve)}}catch(Ve){ae(Ve)}})}).catch(ae)});return p(M,R),M}function Ne(R){var q=this,M=new d(function(re,ae){q.ready().then(function(){Ee(q._dbInfo,v,function(ee,Pe){if(ee)return ae(ee);try{var ze=Pe.objectStore(q._dbInfo.storeName),He=ze.count();He.onsuccess=function(){re(He.result)},He.onerror=function(){ae(He.error)}}catch(Ve){ae(Ve)}})}).catch(ae)});return p(M,R),M}function it(R,q){var M=this,re=new d(function(ae,ee){if(R<0){ae(null);return}M.ready().then(function(){Ee(M._dbInfo,v,function(Pe,ze){if(Pe)return ee(Pe);try{var He=ze.objectStore(M._dbInfo.storeName),Ve=!1,We=He.openKeyCursor();We.onsuccess=function(){var nt=We.result;if(!nt){ae(null);return}R===0||Ve?ae(nt.key):(Ve=!0,nt.advance(R))},We.onerror=function(){ee(We.error)}}catch(nt){ee(nt)}})}).catch(ee)});return p(re,q),re}function Ze(R){var q=this,M=new d(function(re,ae){q.ready().then(function(){Ee(q._dbInfo,v,function(ee,Pe){if(ee)return ae(ee);try{var ze=Pe.objectStore(q._dbInfo.storeName),He=ze.openKeyCursor(),Ve=[];He.onsuccess=function(){var We=He.result;if(!We){re(Ve);return}Ve.push(We.key),We.continue()},He.onerror=function(){ae(He.error)}}catch(We){ae(We)}})}).catch(ae)});return p(M,R),M}function F(R,q){q=y.apply(this,arguments);var M=this.config();R=typeof R!="function"&&R||{},R.name||(R.name=R.name||M.name,R.storeName=R.storeName||M.storeName);var re=this,ae;if(!R.name)ae=d.reject("Invalid arguments");else{var ee=R.name===M.name&&re._dbInfo.db,Pe=ee?d.resolve(re._dbInfo.db):I(R).then(function(ze){var He=k[R.name],Ve=He.forages;He.db=ze;for(var We=0;We<Ve.length;We++)Ve[We]._dbInfo.db=ze;return ze});R.storeName?ae=Pe.then(function(ze){if(ze.objectStoreNames.contains(R.storeName)){var He=ze.version+1;P(R);var Ve=k[R.name],We=Ve.forages;ze.close();for(var nt=0;nt<We.length;nt++){var kt=We[nt];kt._dbInfo.db=null,kt._dbInfo.version=He}var Nt=new d(function(Vt,Cn){var bn=l.open(R.name,He);bn.onerror=function(br){var ea=bn.result;ea.close(),Cn(br)},bn.onupgradeneeded=function(){var br=bn.result;br.deleteObjectStore(R.storeName)},bn.onsuccess=function(){var br=bn.result;br.close(),Vt(br)}});return Nt.then(function(Vt){Ve.db=Vt;for(var Cn=0;Cn<We.length;Cn++){var bn=We[Cn];bn._dbInfo.db=Vt,O(bn._dbInfo)}}).catch(function(Vt){throw(U(R,Vt)||d.resolve()).catch(function(){}),Vt})}}):ae=Pe.then(function(ze){P(R);var He=k[R.name],Ve=He.forages;ze.close();for(var We=0;We<Ve.length;We++){var nt=Ve[We];nt._dbInfo.db=null}var kt=new d(function(Nt,Vt){var Cn=l.deleteDatabase(R.name);Cn.onerror=function(){var bn=Cn.result;bn&&bn.close(),Vt(Cn.error)},Cn.onblocked=function(){console.warn('dropInstance blocked for database "'+R.name+'" until all open connections are closed')},Cn.onsuccess=function(){var bn=Cn.result;bn&&bn.close(),Nt(bn)}});return kt.then(function(Nt){He.db=Nt;for(var Vt=0;Vt<Ve.length;Vt++){var Cn=Ve[Vt];O(Cn._dbInfo)}}).catch(function(Nt){throw(U(R,Nt)||d.resolve()).catch(function(){}),Nt})})}return p(ae,q),ae}var H={_driver:"asyncStorage",_initStorage:_e,_support:c(),iterate:De,getItem:me,setItem:ke,removeItem:Ye,clear:tt,length:Ne,key:it,keys:Ze,dropInstance:F};function ne(){return typeof openDatabase=="function"}var be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye="~~local_forage_type~",W=/^~~local_forage_type~([^~]+)~/,de="__lfsc__:",he=de.length,L="arbf",V="blob",fe="si08",N="ui08",B="uic8",Y="si16",we="si32",Q="ur16",Te="ui32",Qe="fl32",at="fl64",st=he+L.length,ot=Object.prototype.toString;function Ot(R){var q=R.length*.75,M=R.length,re,ae=0,ee,Pe,ze,He;R[R.length-1]==="="&&(q--,R[R.length-2]==="="&&q--);var Ve=new ArrayBuffer(q),We=new Uint8Array(Ve);for(re=0;re<M;re+=4)ee=be.indexOf(R[re]),Pe=be.indexOf(R[re+1]),ze=be.indexOf(R[re+2]),He=be.indexOf(R[re+3]),We[ae++]=ee<<2|Pe>>4,We[ae++]=(Pe&15)<<4|ze>>2,We[ae++]=(ze&3)<<6|He&63;return Ve}function Et(R){var q=new Uint8Array(R),M="",re;for(re=0;re<q.length;re+=3)M+=be[q[re]>>2],M+=be[(q[re]&3)<<4|q[re+1]>>4],M+=be[(q[re+1]&15)<<2|q[re+2]>>6],M+=be[q[re+2]&63];return q.length%3===2?M=M.substring(0,M.length-1)+"=":q.length%3===1&&(M=M.substring(0,M.length-2)+"=="),M}function bt(R,q){var M="";if(R&&(M=ot.call(R)),R&&(M==="[object ArrayBuffer]"||R.buffer&&ot.call(R.buffer)==="[object ArrayBuffer]")){var re,ae=de;R instanceof ArrayBuffer?(re=R,ae+=L):(re=R.buffer,M==="[object Int8Array]"?ae+=fe:M==="[object Uint8Array]"?ae+=N:M==="[object Uint8ClampedArray]"?ae+=B:M==="[object Int16Array]"?ae+=Y:M==="[object Uint16Array]"?ae+=Q:M==="[object Int32Array]"?ae+=we:M==="[object Uint32Array]"?ae+=Te:M==="[object Float32Array]"?ae+=Qe:M==="[object Float64Array]"?ae+=at:q(new Error("Failed to get type for BinaryArray"))),q(ae+Et(re))}else if(M==="[object Blob]"){var ee=new FileReader;ee.onload=function(){var Pe=ye+R.type+"~"+Et(this.result);q(de+V+Pe)},ee.readAsArrayBuffer(R)}else try{q(JSON.stringify(R))}catch(Pe){console.error("Couldn't convert value into a JSON string: ",R),q(null,Pe)}}function _(R){if(R.substring(0,he)!==de)return JSON.parse(R);var q=R.substring(st),M=R.substring(he,st),re;if(M===V&&W.test(q)){var ae=q.match(W);re=ae[1],q=q.substring(ae[0].length)}var ee=Ot(q);switch(M){case L:return ee;case V:return u([ee],{type:re});case fe:return new Int8Array(ee);case N:return new Uint8Array(ee);case B:return new Uint8ClampedArray(ee);case Y:return new Int16Array(ee);case Q:return new Uint16Array(ee);case we:return new Int32Array(ee);case Te:return new Uint32Array(ee);case Qe:return new Float32Array(ee);case at:return new Float64Array(ee);default:throw new Error("Unkown type: "+M)}}var E={serialize:bt,deserialize:_,stringToBuffer:Ot,bufferToString:Et};function ve(R,q,M,re){R.executeSql("CREATE TABLE IF NOT EXISTS "+q.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],M,re)}function Me(R){var q=this,M={db:null};if(R)for(var re in R)M[re]=typeof R[re]!="string"?R[re].toString():R[re];var ae=new d(function(ee,Pe){try{M.db=openDatabase(M.name,String(M.version),M.description,M.size)}catch(ze){return Pe(ze)}M.db.transaction(function(ze){ve(ze,M,function(){q._dbInfo=M,ee()},function(He,Ve){Pe(Ve)})},Pe)});return M.serializer=E,ae}function Oe(R,q,M,re,ae,ee){R.executeSql(M,re,ae,function(Pe,ze){ze.code===ze.SYNTAX_ERR?Pe.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[q.storeName],function(He,Ve){Ve.rows.length?ee(He,ze):ve(He,q,function(){He.executeSql(M,re,ae,ee)},ee)},ee):ee(Pe,ze)},ee)}function j(R,q){var M=this;R=f(R);var re=new d(function(ae,ee){M.ready().then(function(){var Pe=M._dbInfo;Pe.db.transaction(function(ze){Oe(ze,Pe,"SELECT * FROM "+Pe.storeName+" WHERE key = ? LIMIT 1",[R],function(He,Ve){var We=Ve.rows.length?Ve.rows.item(0).value:null;We&&(We=Pe.serializer.deserialize(We)),ae(We)},function(He,Ve){ee(Ve)})})}).catch(ee)});return p(re,q),re}function Ce(R,q){var M=this,re=new d(function(ae,ee){M.ready().then(function(){var Pe=M._dbInfo;Pe.db.transaction(function(ze){Oe(ze,Pe,"SELECT * FROM "+Pe.storeName,[],function(He,Ve){for(var We=Ve.rows,nt=We.length,kt=0;kt<nt;kt++){var Nt=We.item(kt),Vt=Nt.value;if(Vt&&(Vt=Pe.serializer.deserialize(Vt)),Vt=R(Vt,Nt.key,kt+1),Vt!==void 0){ae(Vt);return}}ae()},function(He,Ve){ee(Ve)})})}).catch(ee)});return p(re,q),re}function Ie(R,q,M,re){var ae=this;R=f(R);var ee=new d(function(Pe,ze){ae.ready().then(function(){q===void 0&&(q=null);var He=q,Ve=ae._dbInfo;Ve.serializer.serialize(q,function(We,nt){nt?ze(nt):Ve.db.transaction(function(kt){Oe(kt,Ve,"INSERT OR REPLACE INTO "+Ve.storeName+" (key, value) VALUES (?, ?)",[R,We],function(){Pe(He)},function(Nt,Vt){ze(Vt)})},function(kt){if(kt.code===kt.QUOTA_ERR){if(re>0){Pe(Ie.apply(ae,[R,He,M,re-1]));return}ze(kt)}})})}).catch(ze)});return p(ee,M),ee}function Ue(R,q,M){return Ie.apply(this,[R,q,M,1])}function Ct(R,q){var M=this;R=f(R);var re=new d(function(ae,ee){M.ready().then(function(){var Pe=M._dbInfo;Pe.db.transaction(function(ze){Oe(ze,Pe,"DELETE FROM "+Pe.storeName+" WHERE key = ?",[R],function(){ae()},function(He,Ve){ee(Ve)})})}).catch(ee)});return p(re,q),re}function Mt(R){var q=this,M=new d(function(re,ae){q.ready().then(function(){var ee=q._dbInfo;ee.db.transaction(function(Pe){Oe(Pe,ee,"DELETE FROM "+ee.storeName,[],function(){re()},function(ze,He){ae(He)})})}).catch(ae)});return p(M,R),M}function le(R){var q=this,M=new d(function(re,ae){q.ready().then(function(){var ee=q._dbInfo;ee.db.transaction(function(Pe){Oe(Pe,ee,"SELECT COUNT(key) as c FROM "+ee.storeName,[],function(ze,He){var Ve=He.rows.item(0).c;re(Ve)},function(ze,He){ae(He)})})}).catch(ae)});return p(M,R),M}function $e(R,q){var M=this,re=new d(function(ae,ee){M.ready().then(function(){var Pe=M._dbInfo;Pe.db.transaction(function(ze){Oe(ze,Pe,"SELECT key FROM "+Pe.storeName+" WHERE id = ? LIMIT 1",[R+1],function(He,Ve){var We=Ve.rows.length?Ve.rows.item(0).key:null;ae(We)},function(He,Ve){ee(Ve)})})}).catch(ee)});return p(re,q),re}function Ge(R){var q=this,M=new d(function(re,ae){q.ready().then(function(){var ee=q._dbInfo;ee.db.transaction(function(Pe){Oe(Pe,ee,"SELECT key FROM "+ee.storeName,[],function(ze,He){for(var Ve=[],We=0;We<He.rows.length;We++)Ve.push(He.rows.item(We).key);re(Ve)},function(ze,He){ae(He)})})}).catch(ae)});return p(M,R),M}function ct(R){return new d(function(q,M){R.transaction(function(re){re.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(ae,ee){for(var Pe=[],ze=0;ze<ee.rows.length;ze++)Pe.push(ee.rows.item(ze).name);q({db:R,storeNames:Pe})},function(ae,ee){M(ee)})},function(re){M(re)})})}function Bt(R,q){q=y.apply(this,arguments);var M=this.config();R=typeof R!="function"&&R||{},R.name||(R.name=R.name||M.name,R.storeName=R.storeName||M.storeName);var re=this,ae;return R.name?ae=new d(function(ee){var Pe;R.name===M.name?Pe=re._dbInfo.db:Pe=openDatabase(R.name,"","",0),R.storeName?ee({db:Pe,storeNames:[R.storeName]}):ee(ct(Pe))}).then(function(ee){return new d(function(Pe,ze){ee.db.transaction(function(He){function Ve(Nt){return new d(function(Vt,Cn){He.executeSql("DROP TABLE IF EXISTS "+Nt,[],function(){Vt()},function(bn,br){Cn(br)})})}for(var We=[],nt=0,kt=ee.storeNames.length;nt<kt;nt++)We.push(Ve(ee.storeNames[nt]));d.all(We).then(function(){Pe()}).catch(function(Nt){ze(Nt)})},function(He){ze(He)})})}):ae=d.reject("Invalid arguments"),p(ae,q),ae}var _t={_driver:"webSQLStorage",_initStorage:Me,_support:ne(),iterate:Ce,getItem:j,setItem:Ue,removeItem:Ct,clear:Mt,length:le,key:$e,keys:Ge,dropInstance:Bt};function $t(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function J(R,q){var M=R.name+"/";return R.storeName!==q.storeName&&(M+=R.storeName+"/"),M}function Se(){var R="_localforage_support_test";try{return localStorage.setItem(R,!0),localStorage.removeItem(R),!1}catch{return!0}}function et(){return!Se()||localStorage.length>0}function xt(R){var q=this,M={};if(R)for(var re in R)M[re]=R[re];return M.keyPrefix=J(R,q._defaultConfig),et()?(q._dbInfo=M,M.serializer=E,d.resolve()):d.reject()}function Dt(R){var q=this,M=q.ready().then(function(){for(var re=q._dbInfo.keyPrefix,ae=localStorage.length-1;ae>=0;ae--){var ee=localStorage.key(ae);ee.indexOf(re)===0&&localStorage.removeItem(ee)}});return p(M,R),M}function yt(R,q){var M=this;R=f(R);var re=M.ready().then(function(){var ae=M._dbInfo,ee=localStorage.getItem(ae.keyPrefix+R);return ee&&(ee=ae.serializer.deserialize(ee)),ee});return p(re,q),re}function xn(R,q){var M=this,re=M.ready().then(function(){for(var ae=M._dbInfo,ee=ae.keyPrefix,Pe=ee.length,ze=localStorage.length,He=1,Ve=0;Ve<ze;Ve++){var We=localStorage.key(Ve);if(We.indexOf(ee)===0){var nt=localStorage.getItem(We);if(nt&&(nt=ae.serializer.deserialize(nt)),nt=R(nt,We.substring(Pe),He++),nt!==void 0)return nt}}});return p(re,q),re}function $n(R,q){var M=this,re=M.ready().then(function(){var ae=M._dbInfo,ee;try{ee=localStorage.key(R)}catch{ee=null}return ee&&(ee=ee.substring(ae.keyPrefix.length)),ee});return p(re,q),re}function tn(R){var q=this,M=q.ready().then(function(){for(var re=q._dbInfo,ae=localStorage.length,ee=[],Pe=0;Pe<ae;Pe++){var ze=localStorage.key(Pe);ze.indexOf(re.keyPrefix)===0&&ee.push(ze.substring(re.keyPrefix.length))}return ee});return p(M,R),M}function lr(R){var q=this,M=q.keys().then(function(re){return re.length});return p(M,R),M}function Qn(R,q){var M=this;R=f(R);var re=M.ready().then(function(){var ae=M._dbInfo;localStorage.removeItem(ae.keyPrefix+R)});return p(re,q),re}function jn(R,q,M){var re=this;R=f(R);var ae=re.ready().then(function(){q===void 0&&(q=null);var ee=q;return new d(function(Pe,ze){var He=re._dbInfo;He.serializer.serialize(q,function(Ve,We){if(We)ze(We);else try{localStorage.setItem(He.keyPrefix+R,Ve),Pe(ee)}catch(nt){(nt.name==="QuotaExceededError"||nt.name==="NS_ERROR_DOM_QUOTA_REACHED")&&ze(nt),ze(nt)}})})});return p(ae,M),ae}function gr(R,q){if(q=y.apply(this,arguments),R=typeof R!="function"&&R||{},!R.name){var M=this.config();R.name=R.name||M.name,R.storeName=R.storeName||M.storeName}var re=this,ae;return R.name?ae=new d(function(ee){R.storeName?ee(J(R,re._defaultConfig)):ee(R.name+"/")}).then(function(ee){for(var Pe=localStorage.length-1;Pe>=0;Pe--){var ze=localStorage.key(Pe);ze.indexOf(ee)===0&&localStorage.removeItem(ze)}}):ae=d.reject("Invalid arguments"),p(ae,q),ae}var Ur={_driver:"localStorageWrapper",_initStorage:xt,_support:$t(),iterate:xn,getItem:yt,setItem:jn,removeItem:Qn,clear:Dt,length:lr,key:$n,keys:tn,dropInstance:gr},zr=function(q,M){return q===M||typeof q=="number"&&typeof M=="number"&&isNaN(q)&&isNaN(M)},se=function(q,M){for(var re=q.length,ae=0;ae<re;){if(zr(q[ae],M))return!0;ae++}return!1},je=Array.isArray||function(R){return Object.prototype.toString.call(R)==="[object Array]"},Je={},Zt={},Nn={INDEXEDDB:H,WEBSQL:_t,LOCALSTORAGE:Ur},nn=[Nn.INDEXEDDB._driver,Nn.WEBSQL._driver,Nn.LOCALSTORAGE._driver],Br=["dropInstance"],po=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Br),Fo={description:"",driver:nn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function dl(R,q){R[q]=function(){var M=arguments;return R.ready().then(function(){return R[q].apply(R,M)})}}function Ji(){for(var R=1;R<arguments.length;R++){var q=arguments[R];if(q)for(var M in q)q.hasOwnProperty(M)&&(je(q[M])?arguments[0][M]=q[M].slice():arguments[0][M]=q[M])}return arguments[0]}var fl=function(){function R(q){a(this,R);for(var M in Nn)if(Nn.hasOwnProperty(M)){var re=Nn[M],ae=re._driver;this[M]=ae,Je[ae]||this.defineDriver(re)}this._defaultConfig=Ji({},Fo),this._config=Ji({},this._defaultConfig,q),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return R.prototype.config=function(M){if((typeof M>"u"?"undefined":i(M))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var re in M){if(re==="storeName"&&(M[re]=M[re].replace(/\W/g,"_")),re==="version"&&typeof M[re]!="number")return new Error("Database version must be a number.");this._config[re]=M[re]}return"driver"in M&&M.driver?this.setDriver(this._config.driver):!0}else return typeof M=="string"?this._config[M]:this._config},R.prototype.defineDriver=function(M,re,ae){var ee=new d(function(Pe,ze){try{var He=M._driver,Ve=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!M._driver){ze(Ve);return}for(var We=po.concat("_initStorage"),nt=0,kt=We.length;nt<kt;nt++){var Nt=We[nt],Vt=!se(Br,Nt);if((Vt||M[Nt])&&typeof M[Nt]!="function"){ze(Ve);return}}var Cn=function(){for(var ea=function(r5){return function(){var o5=new Error("Method "+r5+" is not implemented by the current driver"),Fx=d.reject(o5);return p(Fx,arguments[arguments.length-1]),Fx}},pl=0,hp=Br.length;pl<hp;pl++){var ml=Br[pl];M[ml]||(M[ml]=ea(ml))}};Cn();var bn=function(ea){Je[He]&&console.info("Redefining LocalForage driver: "+He),Je[He]=M,Zt[He]=ea,Pe()};"_support"in M?M._support&&typeof M._support=="function"?M._support().then(bn,ze):bn(!!M._support):bn(!0)}catch(br){ze(br)}});return m(ee,re,ae),ee},R.prototype.driver=function(){return this._driver||null},R.prototype.getDriver=function(M,re,ae){var ee=Je[M]?d.resolve(Je[M]):d.reject(new Error("Driver not found."));return m(ee,re,ae),ee},R.prototype.getSerializer=function(M){var re=d.resolve(E);return m(re,M),re},R.prototype.ready=function(M){var re=this,ae=re._driverSet.then(function(){return re._ready===null&&(re._ready=re._initDriver()),re._ready});return m(ae,M,M),ae},R.prototype.setDriver=function(M,re,ae){var ee=this;je(M)||(M=[M]);var Pe=this._getSupportedDrivers(M);function ze(){ee._config.driver=ee.driver()}function He(nt){return ee._extend(nt),ze(),ee._ready=ee._initStorage(ee._config),ee._ready}function Ve(nt){return function(){var kt=0;function Nt(){for(;kt<nt.length;){var Vt=nt[kt];return kt++,ee._dbInfo=null,ee._ready=null,ee.getDriver(Vt).then(He).catch(Nt)}ze();var Cn=new Error("No available storage method found.");return ee._driverSet=d.reject(Cn),ee._driverSet}return Nt()}}var We=this._driverSet!==null?this._driverSet.catch(function(){return d.resolve()}):d.resolve();return this._driverSet=We.then(function(){var nt=Pe[0];return ee._dbInfo=null,ee._ready=null,ee.getDriver(nt).then(function(kt){ee._driver=kt._driver,ze(),ee._wrapLibraryMethodsWithReady(),ee._initDriver=Ve(Pe)})}).catch(function(){ze();var nt=new Error("No available storage method found.");return ee._driverSet=d.reject(nt),ee._driverSet}),m(this._driverSet,re,ae),this._driverSet},R.prototype.supports=function(M){return!!Zt[M]},R.prototype._extend=function(M){Ji(this,M)},R.prototype._getSupportedDrivers=function(M){for(var re=[],ae=0,ee=M.length;ae<ee;ae++){var Pe=M[ae];this.supports(Pe)&&re.push(Pe)}return re},R.prototype._wrapLibraryMethodsWithReady=function(){for(var M=0,re=po.length;M<re;M++)dl(this,po[M])},R.prototype.createInstance=function(M){return new R(M)},R}(),hl=new fl;r.exports=hl},{3:3}]},{},[4])(4)})}(Gu)),Gu.exports}var SC=CC();const Up=Pp(SC);class _C extends ra{constructor(t){super(t,"storage",!1),t.set("localforage",Up)}get StorageManager(){return $l}createDatabse(t,n,r){return new $l("InPageEdit",t,n,r)}}const is=class is{constructor(t,n,r=is.DEFAULT_TTL,o){this.dbName=t,this.storeName=n,this.ttl=r,this.version=o,this.db=is.createDatabase(t,n),this.keys=this.db.keys.bind(this.db)}static createDatabase(t,n){const r=`${t}:${n}`;if(this._cached_db_instances.has(r))return this._cached_db_instances.get(r);const o=Up.createInstance({name:t,storeName:n});return this._cached_db_instances.set(r,o),o}async get(t,n=this.ttl,r){const o=await this.loadFromDB(t),i=this.checkIfExpired(o,n);if(!o||i){if(typeof r=="function"){const a=await r();return this.set(t,a).then(()=>a)}return null}return o.value}async set(t,n){return n===null||typeof n>"u"?this.delete(t):this.db.setItem(t,{time:Date.now(),value:n,version:this.version})}async has(t,n=this.ttl){const r=await this.loadFromDB(t),o=this.checkIfExpired(r,n);return r!==null&&!o}async delete(t){return this.db.removeItem(t)}async iterate(t){return await this.db.iterate((n,r)=>{t(n.value,r)})}async loadFromDB(t){const n=await this.db.getItem(t);if(!n)return null;if(typeof n.time!="number"||typeof n.value>"u"){try{this.delete(t)}catch{}return null}if(typeof this.version=="number"&&n.version!==this.version){try{this.delete(t)}catch{}return null}return n}checkIfExpired(t,n=this.ttl){return t?Date.now()-t.time>n:!1}async clear(){return await this.db.clear(),this}};is.DEFAULT_TTL=1/0,is._cached_db_instances=new Map;let $l=is;var kC=Object.create,Ku=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,qp=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Yp=e=>{throw TypeError(e)},TC=(e,t,n)=>t in e?Ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$C=(e,t)=>Ku(e,"name",{value:t,configurable:!0}),RC=e=>[,,,kC(e?.[qp("metadata")]??null)],OC=["class","method","getter","setter","accessor","field","value","get","set"],Gp=e=>e!==void 0&&typeof e!="function"?Yp("Function expected"):e,EC=(e,t,n,r,o)=>({kind:OC[e],name:t,metadata:r,addInitializer:i=>n._?Yp("Already initialized"):o.push(Gp(i||null))}),DC=(e,t)=>TC(t,qp("metadata"),e[3]),FC=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},AC=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&PC(o,n));$C(o,n);for(var f=r.length-1;f>=0;f--)l=EC(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,Gp(a)&&(o=a);return DC(e,o),m&&Ku(o,n,m),u?c^4?i:m:o},Kp,Xu,Xp;Kp=[cr(["api","storage"])];class Rl extends(Xp=ra){constructor(t){super(t,"sitemeta",!1),this.ctx=t,this._data=void 0,this.siteIdentity=void 0,this.CACHE_TTL=1e3*60*60*24,this.VERSION=2,this.db=void 0,this.queryData={meta:"siteinfo|userinfo",siprop:"general|specialpagealiases|namespacealiases|namespaces|magicwords",uiprop:"groups|rights|blockinfo|options"},this.db=t.storage.createDatabse("sitemeta",this.CACHE_TTL,this.VERSION)}get api(){return this.ctx.api}get mwConfig(){return mw.config.values}async start(){const t=await this.fetchFromCache();if(t){this.ctx.logger("SiteMetadataService").info("Using cached metadata"),this._data=t;return}const n=await this.fetchFromApi();this.saveToCache(n),this._data=n}async computeSiteIdentity(){if(this.siteIdentity)return this.siteIdentity;let t;if(!window.mw?.config)t=new URL(location.href).origin;else{const{wgServer:n,wgArticlePath:r}=window.mw.config.get();t=`${n}${r}`}return this.siteIdentity=t,this.siteIdentity}async fetchFromApi(){return this.api.get({action:"query",...this.queryData}).then(({data:t})=>{if(typeof t?.query?.general>"u")throw new Error("Invalid siteinfo");return t.query}).catch(t=>(this.ctx.logger.error("[InPageEdit]","fetchMetadata error",t),Promise.reject(t)))}async fetchFromCache(){const t=await this.computeSiteIdentity();return this.db.get(t)}async saveToCache(t){const n=await this.computeSiteIdentity();return this.db.set(n,t)}get _raw(){return this._data}get siteInfo(){return this._data.general}get specialPageAliases(){return this._data.specialpagealiases}get namespaceAliases(){return this._data.namespacealiases}get namespaces(){return this._data.namespaces}get namespaceMap(){const t=Object.values(this.namespaces).map(n=>({id:n.id,canonical:n.canonical,aliases:this.namespaceAliases.filter(r=>r.id===n.id).map(r=>r.alias)})).sort((n,r)=>n.id-r.id);return Reflect.defineProperty(this,"namespaceMap",{value:t,writable:!1,configurable:!1,enumerable:!0}),t}get magicWords(){return this._data.magicwords}get userInfo(){return this._data.userinfo}get userOptions(){return this.userInfo.options}get isUserBlocked(){return this.userInfo.blockedbyid&&this.userInfo.blockexpiry&&new Date(this.userInfo.blockexpiry).getTime()>Date.now()}get userGroups(){return this.userInfo.groups}get userRights(){return this.userInfo.rights}hasRight(t){return this.userRights.includes(t)}hasAnyRight(...t){return t.some(n=>this.hasRight(n))}hasEveryRights(...t){return t.every(n=>this.hasRight(n))}inGroup(t){return this.userGroups.includes(t)}inAnyGroup(...t){return this.userGroups.some(n=>t.includes(n))}getBlockInfo(){return this.isUserBlocked?{blockid:this.userInfo.blockid,blockedby:this.userInfo.blockedbyid,blockedbyid:this.userInfo.blockedbyid,blockreason:this.userInfo.blockreason,blockedtimestamp:this.userInfo.blockedtimestamp,blockexpiry:this.userInfo.blockexpiry}:null}}Xu=RC(Xp),Rl=AC(Xu,0,"SiteMetadataService",Kp,Rl),FC(Xu,1,Rl);const Cu=class Cu{constructor(t,n){this.pageInfo={...Cu.DEFAULT_PAGE_INFO,...t},this.api=n||new Bp}async getPageInfo(t){const{data:{query:{pages:[n]}}}=await this.api.get({action:"query",prop:"info|templates|transcludedin|images|pageimages|revisions",inprop:"protection|url|varianttitles",intestactions:"edit|move|delete",tllimit:"max",tilimit:"max",imlimit:"max",piprop:"thumbnail|name|original",pithumbsize:"200",pilimit:"max",rvprop:"ids|timestamp|flags|comment|user|content",...t});return n.revisions?.forEach(r=>{if(typeof r.slots=="object"){const o=r.slots.main;o&&(r.content=o.content,r.contentmodel=o.contentmodel,r.contentformat=o.contentformat)}}),n}async parse(t){return this.api.post({action:"parse",page:this.pageInfo.title,prop:"text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties|parsewarnings",...t})}async preview(t,n){return this.parse({action:"parse",page:void 0,title:this.title,text:t,pst:1,preview:1,disableeditsection:1,disablelimitreport:1,...n})}async edit(t,n){const{text:r,prependtext:o,appendtext:i,summary:a="",watchlist:s="preferences"}=t;return this.api.postWithEditToken({action:"edit",title:this.title,starttimestamp:this.pageInfo.touched,basetimestamp:this.revisions[0]?.timestamp,text:r,prependtext:o,appendtext:i,summary:a,watchlist:s,...n})}async createOnly(t,n){return this.edit(t,{createonly:1,...n})}async delete(t,n){return this.api.postWithEditToken({action:"delete",pageid:this.pageInfo.pageid,reason:t,...n})}async moveTo(t,n,r){return this.api.postWithEditToken({action:"move",from:this.pageInfo.title,to:t,reason:n,movetalk:1,movesubpages:1,...r})}userCan(t){return this.pageInfo?.actions?.[t]}userCanEdit(){return this.userCan("edit")}async refetch(){const t=await this.getPageInfo({pageids:this.pageInfo.pageid,titles:this.pageInfo.title}),n=(this.pageInfo.revisions||[]).concat(t.revisions||[]).sort((r,o)=>r.revid-o.revid).reduce((r,o)=>(r.find(i=>i.revid===o.revid)||r.push(o),r),[]);return this.pageInfo=t,this.pageInfo.revisions=n,this}get pageid(){return this.pageInfo.pageid}get title(){return this.pageInfo.title}get ns(){return this.pageInfo.ns}get contentmodel(){return this.pageInfo.contentmodel}get fullurl(){return this.pageInfo.fullurl}get canonicalurl(){return this.pageInfo.canonicalurl}get editurl(){return this.pageInfo.editurl}get revisions(){return this.pageInfo.revisions||[]}get templates(){return this.pageInfo.templates||[]}get images(){return this.pageInfo.images||[]}};Cu.DEFAULT_PAGE_INFO={pageid:0,ns:0,title:"",contentmodel:"wikitext",pagelanguage:"",pagelanguagehtmlcode:"",pagelanguagedir:"ltr",touched:new Date().toISOString(),lastrevid:0,length:0,protection:[],restrictiontypes:[],fullurl:"",canonicalurl:"",editurl:"",varianttitles:{},actions:{edit:!0,move:!1,delete:!1},revisions:[],templates:[],images:[]};let ds=Cu;const up=class up extends ra{constructor(t){super(t,"wikiPage",!0),this.ctx=t}get WikiPage(){return ds}async createInstance(t){const{data:{query:{pages:[n]}}}=await this.ctx.api.get({action:"query",prop:"info|templates|transcludedin|images|pageimages|revisions",inprop:"protection|url|varianttitles",intestactions:"edit|move|delete",tllimit:"max",tilimit:"max",imlimit:"max",piprop:"thumbnail|name|original",pithumbsize:"200",pilimit:"max",rvprop:"ids|timestamp|user|userid|content",...t});return new ds(n,this.ctx.api)}async newFromTitle(t,n=!1,r){return this.createInstance({titles:t,converttitles:n,rvsection:r})}async newFromPageId(t,n){return this.createInstance({pageids:t,rvsection:n})}async newFromRevision(t,n){return this.createInstance({revids:t,rvsection:n})}newBlankPage(t={}){return new ds(t,this.ctx.api)}};up.inject=["api"];let Qu=up;/**
32
+ * ✏️ InPageEdit NEXT
33
+ *
34
+ * 🚀 Modular, Extensible Supercharged Plugin for MediaWiki
35
+ *
36
+ * @author dragon-fish <dragon-fish@qq.com>
37
+ * @license MIT
38
+ * @see https://github.com/inpageedit/inpageedit-next
39
+ */const Su=class Su extends Fp{constructor(n){super();mp(this,ci);this.Endpoints=sa,this.Schema=dn,this.version="0.2.0",this.config={...Su.DEFAULT_CONFIG,...n},_u(this,ci,zx).call(this),_u(this,ci,Bx).call(this),_u(this,ci,Nx).call(this)}async useScope(n){const{promise:r,resolve:o}=Ut();return this.inject(n,i=>{o(i)}),r}};ci=new WeakSet,zx=async function(){this.plugin(tC,{baseURL:this.config.baseURL}),this.plugin(nC),this.plugin(Yu),this.plugin(_C),this.plugin(Rl),this.plugin(Qu)},Bx=async function(){[Promise.resolve().then(()=>GC).then(({PluginPreferences:r})=>r),Promise.resolve().then(()=>mS).then(({PluginQuickEdit:r})=>r),Promise.resolve().then(()=>PS).then(({PluginQuickMove:r})=>r),Promise.resolve().then(()=>zS).then(({PluginQuickPreview:r})=>r),Promise.resolve().then(()=>P_).then(({PluginQuickDiff:r})=>r),Promise.resolve().then(()=>T_).then(({PluginQuickRedirect:r})=>r),Promise.resolve().then(()=>B_).then(({PluginToolbox:r})=>r)].forEach(async r=>{this.plugin(await r)})},Nx=async function(){this.inject(["resourceLoader"],n=>{n.resourceLoader.loadStyle((void 0)("./style.css")),n.resourceLoader.loadStyle(`${sa.PLUGIN_CDN_BASE}/skins/ipe-default.css`)})},Su.DEFAULT_CONFIG={baseURL:"",legacyPreferences:{}};let pi=Su;function MC(e){return e.charAt(0).toLowerCase()+e.slice(1)}function IC(e){return MC(e).replace(/-/g,"_").replace(/.[A-Z]+/g,t=>t[0]+"_"+t.slice(1).toLowerCase())}class Kr{constructor(t,n=void 0,r){mp(this,ul);this.ctx=t,this.disposeHandlers=[],this.name=r||this.constructor.name,this.config=n||{};const{promise:o,resolve:i,reject:a}=Promise.withResolvers();queueMicrotask(()=>{try{const s=this.start();s&&typeof s.then=="function"?s.then(()=>i()).catch(l=>{this.logger.error("Plugin start failed",l),a(l)}):i()}catch(s){this.logger.error("Plugin start threw synchronously",s),a(s)}o.then(()=>{this.logger.info("Plugin started")}),o.catch(s=>{this.logger.error("Plugin start failed",s),this.ctx.scope.dispose()})}),this.ctx.once("dispose",()=>{this.disposeHandlers.forEach(s=>s(this.ctx)),this.stop(),this.logger.info("Plugin disposed")})}start(){}stop(){}addDisposeHandler(t){this.disposeHandlers.push(t)}removeDisposeHandler(t){this.disposeHandlers=this.disposeHandlers.filter(n=>n!==t)}set name(t){Ix(this,ul,IC(t).toUpperCase())}get name(){return Mx(this,ul)}get logger(){return this.ctx.logger(this.name)}}ul=new WeakMap,window.RLQ||(window.RLQ=[]),window.__IPE_MODULES__||(window.__IPE_MODULES__=[]),window.RLQ.push(zC);async function zC(){typeof window?.ipe?.stop=="function"&&(console.warn("[InPageEdit] Plugin already loaded, disposing..."),await window.ipe.stop());const e=window.InPageEdit||{},t=new pi({baseURL:window.mw?.util.wikiScript("api"),legacyPreferences:e?.myPreferences||{}});if(window.InPageEdit=pi,window.ipe=t,window.mw.hook("InPageEdit.ready").fire(t),await t.start(),Array.isArray(window.__IPE_MODULES__)){const n=[];for(;window.__IPE_MODULES__.length;)try{const r=window.__IPE_MODULES__.shift();typeof r=="function"&&r?.(t),n.push(r)}catch(r){console.error("[InPageEdit] Failed to initialize module:",r)}window.__IPE_MODULES__={push:r=>{typeof r=="function"&&r(t),n.push(r)}},t.on("dispose",()=>{window.__IPE_MODULES__=n})}t.logger("AUTOLOAD").info(`${sa.HOME_URL}
40
+ ____ ____ ______ ___ __
41
+ / _/___ / __ \\____ _____ ____ / ____/___/ (_) /_
42
+ / // __ \\/ /_/ / __ \`/ __ \`/ _ \\/ __/ / __ / / __/
43
+ _/ // / / / ____/ /_/ / /_/ / __/ /___/ /_/ / / /_
44
+ /___/_/ /_/_/ \\__,_/\\__, /\\___/_____/\\__,_/_/\\__/
45
+ /____/ v`+t.version)}const Ol=({type:e,link:t,target:n,buttonProps:r,anchorProps:o,children:i})=>{const a=oe("button",{className:`theme-ipe ipe-action-button btn btn-${e||"default"}`,"data-href":t,...r,children:i});return t?oe("a",{className:"theme-ipe ipe-action-button ipe-link-button",href:t,target:n,...o,children:a}):a};var BC=Object.create,Zu=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,Qp=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Zp=e=>{throw TypeError(e)},LC=(e,t,n)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HC=(e,t)=>Zu(e,"name",{value:t,configurable:!0}),VC=e=>[,,,BC(e?.[Qp("metadata")]??null)],jC=["class","method","getter","setter","accessor","field","value","get","set"],Jp=e=>e!==void 0&&typeof e!="function"?Zp("Function expected"):e,WC=(e,t,n,r,o)=>({kind:jC[e],name:t,metadata:r,addInitializer:i=>n._?Zp("Already initialized"):o.push(Jp(i||null))}),UC=(e,t)=>LC(t,Qp("metadata"),e[3]),qC=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},YC=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&NC(o,n));HC(o,n);for(var f=r.length-1;f>=0;f--)l=WC(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,Jp(a)&&(o=a);return UC(e,o),m&&Zu(o,n,m),u?c^4?i:m:o},em,Ju,tm;em=[cr(["sitemeta","storage"])];class El extends(tm=Kr){constructor(t){super(t,{},"preferences"),this.ctx=t,this.db=void 0,this.customRegistries=[],this.categoryDefinitions=[],this._defaultPreferences={},this.db=t.storage.createDatabse("preferences",1/0),this.ctx.set("preferences",this)}async start(){this.defineCategory({name:"general",label:"General",description:"General settings"}),this.defineCategory({name:"edit",label:"Editing",description:"Settings related to editing content"}),this.defineCategory({name:"about",label:"About",description:"About InPageEdit",index:99}),this.registerCustomConfig("about",dn.object({about:dn.string().role("html-info").description(oe("div",{className:"prose",children:[oe("h2",{children:"✏️ InPageEdit NEXT"}),oe("i",{children:["v",this.ctx.version]}),oe("h2",{children:"Portal"}),oe("div",{style:"display: flex; flex-direction: column; gap: 1rem",children:[oe(Ol,{link:"https://www.ipe.wiki",buttonProps:{style:{display:"block",width:"100%"}},children:"Official Website & Help Center"}),oe(Ol,{link:"https://www.ipe.wiki/update/",buttonProps:{style:{display:"block",width:"100%"}},children:"Update Logs"})]}),oe("h2",{children:"Join us"}),oe("ul",{children:[oe("li",{children:[oe("strong",{children:"GitHub"}),":"," ",oe("a",{href:"https://github.com/inpageedit/inpageedit-next",target:"_blank",children:"inpageedit/inpageedit-next"})]}),oe("li",{children:[oe("strong",{children:"QQ Group"}),": 1026023666"]})]}),oe("hr",{}),oe("p",{children:"🚀 Modular, Extensible Supercharged Plugin for MediaWiki."}),oe("p",{children:"InPageEdit-NEXT Copyright © 2025-present dragon-fish"})]}).outerHTML).default("")}).description(""),"about",{}),Promise.resolve().then(()=>n5).then(t=>{const n=this.ctx.plugin(t.PluginPreferencesUI);this.addDisposeHandler(()=>{n.dispose()})})}get(t,n){return n||(n=()=>{const o=this.getDefaultValue(t);return this.logger.info("default value used",o),o}),this.db.get(t,void 0,n)}getDefaultValue(t){var n;return(n=this._defaultPreferences)[t]??(n[t]=this.loadDefaultConfigs()[t])}set(t,n){const r=this.getDefaultValue(t);return n===r?this.db.delete(t):this.db.set(t,n)}async getAll(){const t=this.loadDefaultConfigs();return await this.db.iterate((n,r)=>{t[r]=n}),t}loadDefaultConfigs(){const t={};return this.getConfigRegistries().forEach(n=>{n.defaults&&Object.entries(n.defaults).forEach(([r,o])=>{t[r]=o,this._defaultPreferences[r]=o})}),t}registerCustomConfig(t,n,r,o){return this.customRegistries.push({name:t,schema:n,category:r,defaults:o}),this}getConfigRegistries(t){return Array.from(this.ctx.registry.entries()).map(([n,r])=>n===null?{name:"root",schema:pi?.PreferencesSchema||null,defaults:pi?.PreferencesDefaults||{}}:{name:n.name,schema:n?.PreferencesSchema||null,defaults:n?.PreferencesDefaults||{}}).filter(n=>n.schema!==null).map(n=>({...n,category:n.schema.meta.category||"general"})).concat(this.customRegistries).filter(n=>!t||n.category===t)}defineCategory(t){const n=this.categoryDefinitions.findIndex(r=>r.name===t.name);return n<0?this.categoryDefinitions.push(t):this.categoryDefinitions[n]=t,this.categoryDefinitions.sort((r,o)=>(r.index??0)-(o.index??0)),this}getConfigCategories(){return this.categoryDefinitions}}Ju=VC(tm),El=YC(Ju,0,"PluginPreferences",em,El),qC(Ju,1,El);const GC=Object.freeze(Object.defineProperty({__proto__:null,get PluginPreferences(){return El}},Symbol.toStringTag,{value:"Module"}));var Tr=(e=>(e.preferences="preferences",e.watch="watch",e.unwatch="unwatch",e.nochange="nochange",e))(Tr||{});function Dl(e,t){return function(n){return n.PreferencesSchema=e,n.PreferencesDefaults=t,n}}var KC=Object.create,ed=Object.defineProperty,XC=Object.getOwnPropertyDescriptor,nm=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),rm=e=>{throw TypeError(e)},QC=(e,t,n)=>t in e?ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZC=(e,t)=>ed(e,"name",{value:t,configurable:!0}),JC=e=>[,,,KC(e?.[nm("metadata")]??null)],eS=["class","method","getter","setter","accessor","field","value","get","set"],om=e=>e!==void 0&&typeof e!="function"?rm("Function expected"):e,tS=(e,t,n,r,o)=>({kind:eS[e],name:t,metadata:r,addInitializer:i=>n._?rm("Already initialized"):o.push(om(i||null))}),nS=(e,t)=>QC(t,nm("metadata"),e[3]),rS=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},oS=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&XC(o,n));ZC(o,n);for(var f=r.length-1;f>=0;f--)l=tS(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,om(a)&&(o=a);return nS(e,o),m&&ed(o,n,m),u?c^4?i:m:o},im,td,am;im=[cr(["sitemeta","quickEdit"]),Dl(dn.object({redLinkEdit:dn.boolean().description("Show quick edit entry after red links").default(!0)}).description("In-article quick edit links"),{redLinkEdit:!0})];class Fl extends(am=Kr){constructor(t){const n=t.sitemeta.mwConfig,r=n.wgArticlePath.replace("$1",""),o=`${location.protocol}//${n.wgServer.split("//")[1]}`;super(t,{wikiBaseUrl:o,wikiArticlePath:r,wikiArticleBaseUrl:`${o}${r}`,wikiScriptBaseUrl:`${o}${n.wgScriptPath}`,linkClassName:"ipe-quickEdit__in-article-link"},"QuickEditInArticleLinks")}async start(){mw.hook("wikipage.content").add(()=>{document.querySelectorAll("#mw-content-text a[href]").forEach(n=>{const r=this.checkEditAnchor(n);if(!r||n.dataset.ipeQuickEditLink)return;const o=oe("a",{href:`#/IPE/quickEdit/${r.title}`,className:this.config.linkClassName,style:{userSelect:"none",marginLeft:"0.2em",verticalAlign:"middle"},onClick:i=>{i.preventDefault(),this.ctx.quickEdit(r)},children:oe("svg",{style:"width: 1em; height: 1em",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-pencil-bolt",children:[oe("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),oe("path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4"}),oe("path",{d:"M13.5 6.5l4 4"}),oe("path",{d:"M19 16l-2 3h4l-2 3"})]})});n.insertAdjacentElement("afterend",o),n.dataset.ipeQuickEditLink="true"})})}stop(){document.querySelectorAll(`.${this.config.linkClassName}`).forEach(t=>t.remove())}checkEditAnchor(t){if(!(t instanceof HTMLAnchorElement))return null;const n=t.href||"";if(!n.startsWith(this.config.wikiArticleBaseUrl)&&!n.startsWith(this.config.wikiScriptBaseUrl))return null;const r=new URL(n),o=r.searchParams,i=o.get("action")||"view",a=o.get("title")||decodeURI(r.pathname.substring(this.config.wikiArticlePath.length))||"",s=o.get("section")?.replace(/^T-/,"")||void 0,l=o.get("oldid");if(!a||a.endsWith(".php")||!["edit","editsource","editredlink","submit"].includes(i)||o.get("undo")||o.get("preload"))return null;let c;return s==="new"?c="new":s&&/^\d+$/.test(s)&&(c=parseInt(s,10)),{title:a,section:c,revision:parseInt(""+l,10)||0,createOnly:!!o.get("redlink")}}}td=JC(am),Fl=oS(td,0,"PluginQuickEditInArticleLinks",im,Fl),rS(td,1,Fl);const Al={mbox:"_mbox_v5fz5_1",title:"_title_v5fz5_12",content:"_content_v5fz5_19",close:"_close_v5fz5_27"},sm=e=>{const{type:t="default",title:n,content:r,closeable:o=!0,titleProps:i,contentProps:a,children:s,...l}=e;let c=n;typeof n>"u"&&t!=="default"&&(c=t[0].toUpperCase()+t.slice(1).toLowerCase());const u=async()=>{if(!d)return Promise.resolve();const{promise:p,resolve:m}=Promise.withResolvers();return d.animate([{opacity:"1",height:d.clientHeight+"px"},{opacity:"0",height:"0px",margin:"0px"}],{duration:300,easing:"ease"}).addEventListener("finish",()=>{d.remove(),m()}),p},d=oe("div",{className:`theme-ipe ipe-mbox mbox-type-${t||"default"} ${Al.mbox}`,...l,children:[c&&oe("div",{className:`ipe-mbox-title ${Al.title}`,...i,children:c}),oe("div",{className:`ipe-mbox-content ${Al.content}`,...a,children:s||r}),o&&oe("a",{onClick:u,className:`ipe-mbox-close ${Al.close}`,children:"×"})]});return d.close=u,d},nd=e=>{const{label:t,id:n,name:r,value:o,disabled:i,labelProps:a,inputProps:s,...l}=e;return oe("div",{className:"theme-ipe ipe-input-box",...l,children:[oe("label",{htmlFor:n,style:{display:"block"},...a,children:t}),oe("input",{id:n,name:r,value:o,disabled:i,style:{width:"100%"},...s})]})},lm=e=>{const{id:t,name:n,value:r,label:o,inputProps:i,labelProps:a,children:s,...l}=e;return oe("label",{className:"theme-ipe ipe-radio-box",...l,children:[oe("input",{type:"radio",id:t,name:n,value:r,...i}),oe("span",{className:"ipe-checkbox-box"}),oe("span",{...a,children:o||s})]})},la=e=>{const{id:t,name:n,label:r,checked:o,inputProps:i,labelProps:a,children:s,...l}=e;return oe("label",{className:"theme-ipe ipe-checkbox",...l,children:[oe("input",{type:"checkbox",id:t,name:n,checked:o,...i}),oe("span",{className:"ipe-checkbox-box"}),oe("span",{...a,children:r||s})]})},cm=()=>{},um=(e=0)=>new Promise(t=>setTimeout(t,e));var iS=Object.create,rd=Object.defineProperty,aS=Object.getOwnPropertyDescriptor,dm=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),fm=e=>{throw TypeError(e)},sS=(e,t,n)=>t in e?rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lS=(e,t)=>rd(e,"name",{value:t,configurable:!0}),cS=e=>[,,,iS(e?.[dm("metadata")]??null)],uS=["class","method","getter","setter","accessor","field","value","get","set"],hm=e=>e!==void 0&&typeof e!="function"?fm("Function expected"):e,dS=(e,t,n,r,o)=>({kind:uS[e],name:t,metadata:r,addInitializer:i=>n._?fm("Already initialized"):o.push(hm(i||null))}),fS=(e,t)=>sS(t,dm("metadata"),e[3]),hS=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},pS=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&aS(o,n));lS(o,n);for(var f=r.length-1;f>=0;f--)l=dS(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,hm(a)&&(o=a);return fS(e,o),m&&rd(o,n,m),u?c^4?i:m:o},pm,od,mm;pm=[cr(["api","wikiPage","modal","preferences"]),Dl(dn.object({editSummary:dn.string().description("Default edit summary for quick edits").default("[IPE-NEXT] Quick edit"),editMinor:dn.boolean().description("Whether to mark the edit as minor").default(!1),outSideClose:dn.boolean().description("Whether to close the modal outside").default(!0),watchList:dn.union([dn.const(Tr.preferences).description("Follow my preferences"),dn.const(Tr.nochange).description("Keep the current watchlist status"),dn.const(Tr.watch).description("Add the page to watchlist"),dn.const(Tr.unwatch).description("Remove the page from watchlist")]).description("Watchlist options").default(Tr.preferences)}).description("Quick edit options").extra("category","edit"),{editSummary:"[IPE-NEXT] Quick edit",editMinor:!1,outSideClose:!0,watchList:Tr.preferences})];class Ml extends(mm=Kr){constructor(t){super(t,{},"quick-edit"),this.ctx=t,this.DEFAULT_OPTIONS={title:"",pageId:0,revision:0,section:void 0,editMinor:!1,editSummary:"",createOnly:!1,reloadAfterSave:!0}}start(){this.ctx.root.set("quickEdit",this.quickEdit.bind(this)),this.ctx.inject(["toolbox"],t=>{this.injectToolbox(t),t.on("dispose",()=>{this.removeToolbox(t)})}),this.ctx.plugin(Fl)}async quickEdit(t){typeof t>"u"?t={}:typeof t=="string"&&(t={title:t}),t?.page&&(t.title=t.page,delete t.page),!t.title&&!t.pageId&&!t.revision&&(this.logger.warn("None of the title, pageId or revision provided. Using defaults."),t={...t,title:mw.config.get("wgPageName"),pageId:mw.config.get("wgArticleId"),revision:mw.config.get("wgRevisionId")});const n=await this.ctx.preferences.get("outSideClose"),r=await this.ctx.preferences.get("watchList"),o=typeof t.editSummary=="string"?t.editSummary:await this.ctx.preferences.get("editSummary"),i=typeof t.editMinor=="boolean"?t.editMinor:await this.ctx.preferences.get("editMinor"),a={...this.DEFAULT_OPTIONS,editSummary:o,editMinor:i,...t};a.editSummary||(a.editSummary=await this.ctx.preferences.get("editSummary")||""),a||this.ctx.emit("quickEdit/initOptions",{ctx:this.ctx,options:a});const s=this.ctx.modal.createObject({className:"in-page-edit ipe-quickEdit ipe-editor",sizeClass:"large",outSideClose:n}).init();s.setTitle(oe(_l,{children:["Loading: ",oe("u",{children:a.title})]})),s.setContent(oe("section",{className:"ipe-quickEdit-loading",style:{height:"70vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:oe(hi,{})})),s.setButtons([{side:"right",type:"button",className:"btn btn-danger btn-secondary",label:"Cancel",method(){s.close()}}]),s.show(),this.ctx.emit("quickEdit/showModal",{ctx:this.ctx,modal:s,options:a});let l;try{l=await this.getWikiPageFromPayload(a)}catch(d){s.close(),this.ctx.modal.notify("error",{title:"Error",content:d instanceof Error?d.message:String(d)});return}s.setTitle(oe(_l,{children:["Quick ",l.pageInfo.pageid===0?"Create":"Edit",":"," ",oe("u",{children:l.pageInfo.title})]}));const c=oe("form",{className:"ipe-quickEdit-form",children:[l.pageInfo.pageid===0&&oe(sm,{title:"Attention",type:"important",children:oe("p",{children:"This page does not exist."})}),oe("textarea",{className:"editArea",name:"text",id:"wpTextbox1",children:l.revisions[0]?.content||""}),oe("div",{class:"ipe-quickEdit-options",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[oe(nd,{label:"Summary",id:"summary",name:"summary",value:a.editSummary}),oe("div",{children:[oe("label",{htmlFor:"watchlist",style:{display:"block"},children:"Watchlist"}),oe("div",{style:{display:"flex",gap:"1rem"},children:[Tr.preferences,Tr.nochange,Tr.watch,Tr.unwatch].map(d=>oe(lm,{name:"watchlist",value:d,inputProps:{checked:r===d},children:d},d))})]}),oe("div",{style:{display:"flex",gap:"1rem"},children:[oe(la,{name:"minor",id:"minor",checked:a.editMinor,children:"Minor edit"}),oe(la,{name:"reloadAfterSave",id:"reloadAfterSave",checked:a.reloadAfterSave,children:"Reload after save"})]})]}),!1]});s.setContent(c);const u=s.generateButton({side:"left",className:"btn btn-primary submit-btn",label:"Submit",method:()=>{const d=new FormData(c);console.info(l,c,{text:d.get("text"),summary:d.get("summary"),minor:d.get("minor")==="on"}),s.setLoadingState(!0),this.handleSubmit({ctx:this.ctx,modal:s,wikiPage:l,options:a},{text:d.get("text"),summary:d.get("summary"),minor:d.get("minor")==="on"}).then(async()=>{s.setOptions({beforeClose:cm}),s.close(),this.ctx.modal.notify("success",{title:"Submission Successful",content:"Your changes have been saved."}),d.get("reloadAfterSave")&&(await um(500),location.reload())}).catch(p=>{this.ctx.modal.notify("error",{title:"Submission Error",content:p instanceof Error?p.message:String(p)}),s.setLoadingState(!1)})}});s.get$buttons("leftButtons").prepend(u),s.setOptions({beforeClose:()=>{const d=l.revisions[0]?.content||"";return(c.querySelector("textarea")?.value||"")===d?!0:(this.ctx.modal.confirm({className:"in-page-edit",title:"Unsaved Changes",content:"All edit contents will be lost after closing the modal. Are you sure you want to close?",center:!0,okBtn:{label:"Give Up",className:"btn btn-danger"},cancelBtn:{label:"Continue",className:"btn"}},m=>(m&&(s.setOptions({beforeClose:cm}),s.close()),!0)),!1)}}),this.ctx.emit("quickEdit/wikiPage",{ctx:this.ctx,options:a,modal:s,wikiPage:l})}handleSubmit(t,n){const r=n.summary||"",o=n.text||"",i=n.minor||!1,a=n.createonly||!1,s=n.watchlist||Tr.nochange;return t.wikiPage.edit({summary:r,text:o,watchlist:s},{minor:i,createonly:a})}injectToolbox(t){t.toolbox.addButton({id:"quick-edit",group:"group1",index:0,icon:oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-edit",children:[oe("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),oe("path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1"}),oe("path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z"}),oe("path",{d:"M16 5l3 3"})]}),tooltip:"Edit this page quickly",onClick:()=>this.quickEdit()})}async getWikiPageFromPayload(t){if(t.revision)return this.ctx.wikiPage.newFromRevision(t.revision,t.section);if(t.pageId)return this.ctx.wikiPage.newFromPageId(t.pageId,t.section);if(t.title)return this.ctx.wikiPage.newFromTitle(t.title,!1,t.section);throw new Error("Invalid payload")}removeToolbox(t){t.toolbox.removeButton("quick-edit")}}od=cS(mm),Ml=pS(od,0,"PluginQuickEdit",pm,Ml),hS(od,1,Ml);const mS=Object.freeze(Object.defineProperty({__proto__:null,get PluginQuickEdit(){return Ml}},Symbol.toStringTag,{value:"Module"})),fs={twinSwapInput:"_twinSwapInput_1gdgl_9",inputWrapper:"_inputWrapper_1gdgl_23",inputLeft:"_inputLeft_1gdgl_27",inputRight:"_inputRight_1gdgl_30",swapButton:"_swapButton_1gdgl_46"},vm=e=>{const{inputs:t,enableSwap:n=!0,...r}=e,o=t?.length===2?t:[t?.[0]??{},t?.[1]??{}],i=[null,null];let a=0,s=null,l=null;const c=()=>i.some(f=>f&&f.disabled),u=()=>{if(!i[0]||!i[1]||c())return;const f=i[0],y=i[1],S=f.value,w=y.value;f.value=w,y.value=S,f.dispatchEvent(new Event("change")),y.dispatchEvent(new Event("change")),a++,l&&(l.style.transform=`rotateY(${a*-180}deg)`,l.style.transition="transform 200ms ease")},d=f=>{if(!s)return;const y=f??!s.disabled;s.disabled=!y,y&&i.forEach(S=>{S&&(S.disabled=!1)})},p=oe("button",{type:"button","aria-label":"Swap values",onClick:u,disabled:c()||!n,ref:f=>s=f,children:oe("svg",{ref:f=>l=f,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon-tabler icons-tabler-outline icon-tabler-transfer",children:[oe("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),oe("path",{d:"M20 10h-16l5.5 -6"}),oe("path",{d:"M4 14h16l-5.5 6"})]})}),m=oe("div",{className:`twin-swap-input ${fs.twinSwapInput}`,...r,children:[o.map((f,y)=>{const{label:S,id:w,name:k,value:b,disabled:v,inputProps:g}=f,C=y===0,x=w||k;return oe("div",{className:`${fs.inputWrapper} ${C?fs.inputLeft:fs.inputRight}`,children:[S&&oe("label",{htmlFor:x,children:S}),oe("input",{ref:T=>i[y]=T,type:"text",id:x,name:k,value:b,disabled:v,...g})]})}),oe("div",{className:fs.swapButton,children:p})]});return m.swap=u,m.toggleEnableSwap=d,m};var vS=Object.create,id=Object.defineProperty,gS=Object.getOwnPropertyDescriptor,gm=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),bm=e=>{throw TypeError(e)},bS=(e,t,n)=>t in e?id(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yS=(e,t)=>id(e,"name",{value:t,configurable:!0}),wS=e=>[,,,vS(e?.[gm("metadata")]??null)],xS=["class","method","getter","setter","accessor","field","value","get","set"],ym=e=>e!==void 0&&typeof e!="function"?bm("Function expected"):e,CS=(e,t,n,r,o)=>({kind:xS[e],name:t,metadata:r,addInitializer:i=>n._?bm("Already initialized"):o.push(ym(i||null))}),SS=(e,t)=>bS(t,gm("metadata"),e[3]),_S=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},kS=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&gS(o,n));yS(o,n);for(var f=r.length-1;f>=0;f--)l=CS(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,ym(a)&&(o=a);return SS(e,o),m&&id(o,n,m),u?c^4?i:m:o},wm,ad,xm;wm=[cr(["modal","sitemeta"])];class Il extends(xm=Kr){constructor(t){super(t,{},"quick-move"),this.ctx=t,t.set("quickMove",this.quickMove.bind(this)),t.set("movePage",this.movePage.bind(this))}start(){this.ctx.inject(["toolbox"],t=>{this.injectToolbox(t)})}injectToolbox(t){const n=window.mw?.config.get("wgPageName")||"",r=window.mw?.config.get("wgIsProbablyEditable");t.toolbox.addButton({id:"quick-move",icon:oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-forms",children:[oe("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),oe("path",{d:"M12 3a3 3 0 0 0 -3 3v12a3 3 0 0 0 3 3"}),oe("path",{d:"M6 3a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3"}),oe("path",{d:"M13 7h7a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-7"}),oe("path",{d:"M5 7h-1a1 1 0 0 0 -1 1v8a1 1 0 0 0 1 1h1"}),oe("path",{d:"M17 12h.01"}),oe("path",{d:"M13 12h.01"})]}),tooltip:"Quick Move",group:"group2",onClick:()=>{this.quickMove(r?{lockFromField:!0,from:n}:{})}})}quickMove(t){const n=this.ctx.modal.createObject({title:"Quick Move",content:oe(hi,{}),className:"quick-move",sizeClass:"medium",center:!0}).init();let r=null;return n.setContent(oe("form",{ref:o=>r=o,style:{display:"flex",flexDirection:"column",gap:"1rem"},onSubmit:o=>{o.preventDefault();const i=new FormData(r),a={from:i.get("from"),to:i.get("to"),reason:i.get("reason")||"",movetalk:i.get("movetalk")==="on",movesubpages:i.get("movesubpages")==="on",noredirect:i.get("noredirect")==="on"};n.setLoadingState(!0),this.movePage(a).then(()=>{location.reload()}).catch(s=>{n.setLoadingState(!1),this.ctx.modal.notify("error",{title:"Failed to move",content:s instanceof Error?s.message:String(s)})})},children:[oe(vm,{inputs:[{label:"Move from",name:"from",value:t?.from},{label:"Move to",name:"to",value:t?.to}]}),oe("div",{children:oe(la,{name:"movetalk",id:"movetalk",checked:t?.movetalk,children:"Move talk page"})}),oe("div",{children:oe(la,{name:"movesubpages",id:"movesubpages",checked:t?.movesubpages,children:"Move subpage(s) (up to 100)"})}),this.ctx.sitemeta.hasRight("suppressredirect")&&oe("div",{children:oe(la,{name:"noredirect",id:"noredirect",checked:t?.noredirect,children:"Move without leaving a redirect"})}),oe(nd,{label:"Reason",id:"reason",name:"reason",value:t?.reason}),oe("div",{children:oe(Ol,{type:"primary",buttonProps:{style:{width:"100%"}},children:"Move"})})]})),n.show()}async movePage(t){const{from:n,to:r,reason:o="",...i}=t;if(!n||!r)throw new Error("From and to titles are required.");if(n===r)throw new Error("From and to titles cannot be the same.");return(await this.ctx.wikiPage.newFromTitle(n)).moveTo(r,o,i)}}ad=wS(xm),Il=kS(ad,0,"PluginQuickMove",wm,Il),_S(ad,1,Il);const PS=Object.freeze(Object.defineProperty({__proto__:null,get PluginQuickMove(){return Il}},Symbol.toStringTag,{value:"Module"}));var TS=Object.create,sd=Object.defineProperty,$S=Object.getOwnPropertyDescriptor,Cm=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Sm=e=>{throw TypeError(e)},RS=(e,t,n)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OS=(e,t)=>sd(e,"name",{value:t,configurable:!0}),ES=e=>[,,,TS(e?.[Cm("metadata")]??null)],DS=["class","method","getter","setter","accessor","field","value","get","set"],_m=e=>e!==void 0&&typeof e!="function"?Sm("Function expected"):e,FS=(e,t,n,r,o)=>({kind:DS[e],name:t,metadata:r,addInitializer:i=>n._?Sm("Already initialized"):o.push(_m(i||null))}),AS=(e,t)=>RS(t,Cm("metadata"),e[3]),MS=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},IS=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&$S(o,n));OS(o,n);for(var f=r.length-1;f>=0;f--)l=FS(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,_m(a)&&(o=a);return AS(e,o),m&&sd(o,n,m),u?c^4?i:m:o},km,ld,Pm;km=[cr(["api","wikiPage","modal"])];class zl extends(Pm=Kr){constructor(t){super(t,{},"quickPreview"),this.ctx=t}start(){this.ctx.set("quickPreview",this.quickPreview.bind(this)),this.ctx.on("quickEdit/wikiPage",this.injectQuickEdit.bind(this))}stop(){this.ctx.off("quickEdit/wikiPage",this.injectQuickEdit.bind(this))}injectQuickEdit({ctx:t,modal:n,wikiPage:r}){n.setButtons([{label:"Preview",side:"left",className:"btn btn-secondary",method:()=>{this.quickPreview(n.get$content().find("textarea.editArea").val()||"",void 0,r)}}])}async quickPreview(t,n,r){r||(r=this.ctx.wikiPage.newBlankPage({title:"API"}));const o=this.ctx.modal.createObject({className:"in-page-edit ipe-quickPreview",sizeClass:"large"}).init();o.setTitle("Preview loading..."),o.setContent(oe("section",{children:oe(hi,{})})),o.show(),this.ctx.emit("quickPreview/showModal",{ctx:this.ctx,text:t,modal:o,wikiPage:r});const{data:{parse:i}}=await r.preview(t,n);o.setTitle(`Preview - ${i.title}`);let a=null;o.setContent(oe("section",{children:oe("div",{ref:s=>a=s,className:"mw-parser-output",innerHTML:i.text})})),window.mw?.hook("wikipage.content").fire($(a)),this.ctx.emit("quickPreview/loaded",{ctx:this.ctx,modal:o,wikiPage:r,text:t,parseData:i})}}ld=ES(Pm),zl=IS(ld,0,"PluginQuickPreview",km,zl),MS(ld,1,zl);const zS=Object.freeze(Object.defineProperty({__proto__:null,get PluginQuickPreview(){return zl}},Symbol.toStringTag,{value:"Module"}));class vo{diff(t,n,r={}){let o;typeof r=="function"?(o=r,r={}):"callback"in r&&(o=r.callback);const i=this.castInput(t,r),a=this.castInput(n,r),s=this.removeEmpty(this.tokenize(i,r)),l=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(s,l,r,o)}diffWithOptionsObj(t,n,r,o){var i;const a=k=>{if(k=this.postProcess(k,r),o){setTimeout(function(){o(k)},0);return}else return k},s=n.length,l=t.length;let c=1,u=s+l;r.maxEditLength!=null&&(u=Math.min(u,r.maxEditLength));const d=(i=r.timeout)!==null&&i!==void 0?i:1/0,p=Date.now()+d,m=[{oldPos:-1,lastComponent:void 0}];let f=this.extractCommon(m[0],n,t,0,r);if(m[0].oldPos+1>=l&&f+1>=s)return a(this.buildValues(m[0].lastComponent,n,t));let y=-1/0,S=1/0;const w=()=>{for(let k=Math.max(y,-c);k<=Math.min(S,c);k+=2){let b;const v=m[k-1],g=m[k+1];v&&(m[k-1]=void 0);let C=!1;if(g){const T=g.oldPos-k;C=g&&0<=T&&T<s}const x=v&&v.oldPos+1<l;if(!C&&!x){m[k]=void 0;continue}if(!x||C&&v.oldPos<g.oldPos?b=this.addToPath(g,!0,!1,0,r):b=this.addToPath(v,!1,!0,1,r),f=this.extractCommon(b,n,t,k,r),b.oldPos+1>=l&&f+1>=s)return a(this.buildValues(b.lastComponent,n,t))||!0;m[k]=b,b.oldPos+1>=l&&(S=Math.min(S,k-1)),f+1>=s&&(y=Math.max(y,k+1))}c++};if(o)(function k(){setTimeout(function(){if(c>u||Date.now()>p)return o(void 0);w()||k()},0)})();else for(;c<=u&&Date.now()<=p;){const k=w();if(k)return k}}addToPath(t,n,r,o,i){const a=t.lastComponent;return a&&!i.oneChangePerToken&&a.added===n&&a.removed===r?{oldPos:t.oldPos+o,lastComponent:{count:a.count+1,added:n,removed:r,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:n,removed:r,previousComponent:a}}}extractCommon(t,n,r,o,i){const a=n.length,s=r.length;let l=t.oldPos,c=l-o,u=0;for(;c+1<a&&l+1<s&&this.equals(r[l+1],n[c+1],i);)c++,l++,u++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return u&&!i.oneChangePerToken&&(t.lastComponent={count:u,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,c}equals(t,n,r){return r.comparator?r.comparator(t,n):t===n||!!r.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,r){const o=[];let i;for(;t;)o.push(t),i=t.previousComponent,delete t.previousComponent,t=i;o.reverse();const a=o.length;let s=0,l=0,c=0;for(;s<a;s++){const u=o[s];if(u.removed)u.value=this.join(r.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let d=n.slice(l,l+u.count);d=d.map(function(p,m){const f=r[c+m];return f.length>p.length?f:p}),u.value=this.join(d)}else u.value=this.join(n.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}return o}}class BS extends vo{}const Tm=new BS;function $m(e,t,n){return Tm.diff(e,t,n)}function Rm(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function Om(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function cd(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function ud(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function hs(e,t){return cd(e,t,"")}function Bl(e,t){return ud(e,t,"")}function Em(e,t){return t.slice(0,NS(e,t))}function NS(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);const o=Array(r);let i=0;o[0]=0;for(let a=1;a<r;a++){for(t[a]==t[i]?o[a]=o[i]:o[a]=i;i>0&&t[a]!=t[i];)i=o[i];t[a]==t[i]&&i++}i=0;for(let a=n;a<e.length;a++){for(;i>0&&e[a]!=t[i];)i=o[i];e[a]==t[i]&&i++}return i}function LS(e){return e.includes(`\r
46
+ `)&&!e.startsWith(`
47
+ `)&&!e.match(/[^\r]\n/)}function HS(e){return!e.includes(`\r
48
+ `)&&e.includes(`
49
+ `)}function ps(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function Mo(e){const t=e.match(/^\s*/);return t?t[0]:""}const Nl="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",VS=new RegExp(`[${Nl}]+|\\s+|[^${Nl}]`,"ug");class jS extends vo{equals(t,n,r){return r.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase()),t.trim()===n.trim()}tokenize(t,n={}){let r;if(n.intlSegmenter){const a=n.intlSegmenter;if(a.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(a.segment(t),s=>s.segment)}else r=t.match(VS)||[];const o=[];let i=null;return r.forEach(a=>{/\s/.test(a)?i==null?o.push(a):o.push(o.pop()+a):i!=null&&/\s/.test(i)?o[o.length-1]==i?o.push(o.pop()+a):o.push(i+a):o.push(a),i=a}),o}join(t){return t.map((n,r)=>r==0?n:n.replace(/^\s+/,"")).join("")}postProcess(t,n){if(!t||n.oneChangePerToken)return t;let r=null,o=null,i=null;return t.forEach(a=>{a.added?o=a:a.removed?i=a:((o||i)&&Am(r,i,o,a),r=a,o=null,i=null)}),(o||i)&&Am(r,i,o,null),t}}const Dm=new jS;function Fm(e,t,n){return n?.ignoreWhitespace!=null&&!n.ignoreWhitespace?dd(e,t,n):Dm.diff(e,t,n)}function Am(e,t,n,r){if(t&&n){const o=Mo(t.value),i=ps(t.value),a=Mo(n.value),s=ps(n.value);if(e){const l=Rm(o,a);e.value=ud(e.value,a,l),t.value=hs(t.value,l),n.value=hs(n.value,l)}if(r){const l=Om(i,s);r.value=cd(r.value,s,l),t.value=Bl(t.value,l),n.value=Bl(n.value,l)}}else if(n){if(e){const o=Mo(n.value);n.value=n.value.substring(o.length)}if(r){const o=Mo(r.value);r.value=r.value.substring(o.length)}}else if(e&&r){const o=Mo(r.value),i=Mo(t.value),a=ps(t.value),s=Rm(o,i);t.value=hs(t.value,s);const l=Om(hs(o,s),a);t.value=Bl(t.value,l),r.value=cd(r.value,o,l),e.value=ud(e.value,o,o.slice(0,o.length-l.length))}else if(r){const o=Mo(r.value),i=ps(t.value),a=Em(i,o);t.value=Bl(t.value,a)}else if(e){const o=ps(e.value),i=Mo(t.value),a=Em(o,i);t.value=hs(t.value,a)}}class WS extends vo{tokenize(t){const n=new RegExp(`(\\r?\\n)|[${Nl}]+|[^\\S\\n\\r]+|[^${Nl}]`,"ug");return t.match(n)||[]}}const Mm=new WS;function dd(e,t,n){return Mm.diff(e,t,n)}function US(e,t){if(typeof e=="function")t.callback=e;else if(e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}class qS extends vo{constructor(){super(...arguments),this.tokenize=zm}equals(t,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!t.includes(`
50
+ `))&&(t=t.trim()),(!r.newlineIsToken||!n.includes(`
51
+ `))&&(n=n.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(t.endsWith(`
52
+ `)&&(t=t.slice(0,-1)),n.endsWith(`
53
+ `)&&(n=n.slice(0,-1))),super.equals(t,n,r)}}const fd=new qS;function Ll(e,t,n){return fd.diff(e,t,n)}function Im(e,t,n){return n=US(n,{ignoreWhitespace:!0}),fd.diff(e,t,n)}function zm(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
54
+ `));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let o=0;o<r.length;o++){const i=r[o];o%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function YS(e){return e=="."||e=="!"||e=="?"}class GS extends vo{tokenize(t){var n;const r=[];let o=0;for(let i=0;i<t.length;i++){if(i==t.length-1){r.push(t.slice(o));break}if(YS(t[i])&&t[i+1].match(/\s/)){for(r.push(t.slice(o,i+1)),i=o=i+1;!((n=t[i+1])===null||n===void 0)&&n.match(/\s/);)i++;r.push(t.slice(o,i+1)),o=i+1}}return r}}const Bm=new GS;function Nm(e,t,n){return Bm.diff(e,t,n)}class KS extends vo{tokenize(t){return t.split(/([{}:;,]|\s+)/)}}const Lm=new KS;function Hm(e,t,n){return Lm.diff(e,t,n)}class XS extends vo{constructor(){super(...arguments),this.tokenize=zm}get useLongestToken(){return!0}castInput(t,n){const{undefinedReplacement:r,stringifyReplacer:o=(i,a)=>typeof a>"u"?r:a}=n;return typeof t=="string"?t:JSON.stringify(Hl(t,null,null,o),null," ")}equals(t,n,r){return super.equals(t.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"),r)}}const Vm=new XS;function jm(e,t,n){return Vm.diff(e,t,n)}function Hl(e,t,n,r,o){t=t||[],n=n||[],r&&(e=r(o===void 0?"":o,e));let i;for(i=0;i<t.length;i+=1)if(t[i]===e)return n[i];let a;if(Object.prototype.toString.call(e)==="[object Array]"){for(t.push(e),a=new Array(e.length),n.push(a),i=0;i<e.length;i+=1)a[i]=Hl(e[i],t,n,r,String(i));return t.pop(),n.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),typeof e=="object"&&e!==null){t.push(e),a={},n.push(a);const s=[];let l;for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&s.push(l);for(s.sort(),i=0;i<s.length;i+=1)l=s[i],a[l]=Hl(e[l],t,n,r,l);t.pop(),n.pop()}else a=e;return a}class QS extends vo{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}}const Wm=new QS;function Um(e,t,n){return Wm.diff(e,t,n)}function qm(e){return Array.isArray(e)?e.map(t=>qm(t)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(t=>Object.assign(Object.assign({},t),{lines:t.lines.map((n,r)=>{var o;return n.startsWith("\\")||n.endsWith("\r")||!((o=t.lines[r+1])===null||o===void 0)&&o.startsWith("\\")?n:n+"\r"})}))})}function Ym(e){return Array.isArray(e)?e.map(t=>Ym(t)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(t=>Object.assign(Object.assign({},t),{lines:t.lines.map(n=>n.endsWith("\r")?n.substring(0,n.length-1):n)}))})}function ZS(e){return Array.isArray(e)||(e=[e]),!e.some(t=>t.hunks.some(n=>n.lines.some(r=>!r.startsWith("\\")&&r.endsWith("\r"))))}function JS(e){return Array.isArray(e)||(e=[e]),e.some(t=>t.hunks.some(n=>n.lines.some(r=>r.endsWith("\r"))))&&e.every(t=>t.hunks.every(n=>n.lines.every((r,o)=>{var i;return r.startsWith("\\")||r.endsWith("\r")||((i=n.lines[o+1])===null||i===void 0?void 0:i.startsWith("\\"))})))}function hd(e){const t=e.split(/\n/),n=[];let r=0;function o(){const s={};for(n.push(s);r<t.length;){const l=t[r];if(/^(---|\+\+\+|@@)\s/.test(l))break;const c=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(l);c&&(s.index=c[1]),r++}for(i(s),i(s),s.hunks=[];r<t.length;){const l=t[r];if(/^(Index:\s|diff\s|---\s|\+\+\+\s|===================================================================)/.test(l))break;if(/^@@/.test(l))s.hunks.push(a());else{if(l)throw new Error("Unknown line "+(r+1)+" "+JSON.stringify(l));r++}}}function i(s){const l=/^(---|\+\+\+)\s+(.*)\r?$/.exec(t[r]);if(l){const c=l[2].split(" ",2),u=(c[1]||"").trim();let d=c[0].replace(/\\\\/g,"\\");/^".*"$/.test(d)&&(d=d.substr(1,d.length-2)),l[1]==="---"?(s.oldFileName=d,s.oldHeader=u):(s.newFileName=d,s.newHeader=u),r++}}function a(){var s;const l=r,c=t[r++],u=c.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),d={oldStart:+u[1],oldLines:typeof u[2]>"u"?1:+u[2],newStart:+u[3],newLines:typeof u[4]>"u"?1:+u[4],lines:[]};d.oldLines===0&&(d.oldStart+=1),d.newLines===0&&(d.newStart+=1);let p=0,m=0;for(;r<t.length&&(m<d.oldLines||p<d.newLines||!((s=t[r])===null||s===void 0)&&s.startsWith("\\"));r++){const f=t[r].length==0&&r!=t.length-1?" ":t[r][0];if(f==="+"||f==="-"||f===" "||f==="\\")d.lines.push(t[r]),f==="+"?p++:f==="-"?m++:f===" "&&(p++,m++);else throw new Error(`Hunk at line ${l+1} contained invalid line ${t[r]}`)}if(!p&&d.newLines===1&&(d.newLines=0),!m&&d.oldLines===1&&(d.oldLines=0),p!==d.newLines)throw new Error("Added line count did not match for hunk at line "+(l+1));if(m!==d.oldLines)throw new Error("Removed line count did not match for hunk at line "+(l+1));return d}for(;r<t.length;)o();return n}function e_(e,t,n){let r=!0,o=!1,i=!1,a=1;return function s(){if(r&&!i){if(o?a++:r=!1,e+a<=n)return e+a;i=!0}if(!o)return i||(r=!0),t<=e-a?e-a++:(o=!0,s())}}function Gm(e,t,n={}){let r;if(typeof t=="string"?r=hd(t):Array.isArray(t)?r=t:r=[t],r.length>1)throw new Error("applyPatch only works with a single input.");return t_(e,r[0],n)}function t_(e,t,n={}){(n.autoConvertLineEndings||n.autoConvertLineEndings==null)&&(LS(e)&&ZS(t)?t=qm(t):HS(e)&&JS(t)&&(t=Ym(t)));const r=e.split(`
55
+ `),o=t.hunks,i=n.compareLine||((f,y,S,w)=>y===w),a=n.fuzzFactor||0;let s=0;if(a<0||!Number.isInteger(a))throw new Error("fuzzFactor must be a non-negative integer");if(!o.length)return e;let l="",c=!1,u=!1;for(let f=0;f<o[o.length-1].lines.length;f++){const y=o[o.length-1].lines[f];y[0]=="\\"&&(l[0]=="+"?c=!0:l[0]=="-"&&(u=!0)),l=y}if(c){if(u){if(!a&&r[r.length-1]=="")return!1}else if(r[r.length-1]=="")r.pop();else if(!a)return!1}else if(u){if(r[r.length-1]!="")r.push("");else if(!a)return!1}function d(f,y,S,w=0,k=!0,b=[],v=0){let g=0,C=!1;for(;w<f.length;w++){const x=f[w],T=x.length>0?x[0]:" ",P=x.length>0?x.substr(1):x;if(T==="-")if(i(y+1,r[y],T,P))y++,g=0;else return!S||r[y]==null?null:(b[v]=r[y],d(f,y+1,S-1,w,!1,b,v+1));if(T==="+"){if(!k)return null;b[v]=P,v++,g=0,C=!0}if(T===" ")if(g++,b[v]=r[y],i(y+1,r[y],T,P))v++,k=!0,C=!1,y++;else return C||!S?null:r[y]&&(d(f,y+1,S-1,w+1,!1,b,v+1)||d(f,y+1,S-1,w,!1,b,v+1))||d(f,y,S-1,w+1,!1,b,v)}return v-=g,y-=g,b.length=v,{patchedLines:b,oldLineLastI:y-1}}const p=[];let m=0;for(let f=0;f<o.length;f++){const y=o[f];let S;const w=r.length-y.oldLines+a;let k;for(let b=0;b<=a;b++){k=y.oldStart+m-1;const v=e_(k,s,w);for(;k!==void 0&&(S=d(y.lines,k,b),!S);k=v());if(S)break}if(!S)return!1;for(let b=s;b<k;b++)p.push(r[b]);for(let b=0;b<S.patchedLines.length;b++){const v=S.patchedLines[b];p.push(v)}s=S.oldLineLastI+1,m=k+1-y.oldStart}for(let f=s;f<r.length;f++)p.push(r[f]);return p.join(`
56
+ `)}function n_(e,t){const n=typeof e=="string"?hd(e):e;let r=0;function o(){const i=n[r++];if(!i)return t.complete();t.loadFile(i,function(a,s){if(a)return t.complete(a);const l=Gm(s,i,t);t.patched(i,l,function(c){if(c)return t.complete(c);o()})})}o()}function Km(e){return Array.isArray(e)?e.map(t=>Km(t)).reverse():Object.assign(Object.assign({},e),{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(t=>({oldLines:t.newLines,oldStart:t.newStart,newLines:t.oldLines,newStart:t.oldStart,lines:t.lines.map(n=>n.startsWith("-")?`+${n.slice(1)}`:n.startsWith("+")?`-${n.slice(1)}`:n)}))})}function pd(e,t,n,r,o,i,a){let s;a?typeof a=="function"?s={callback:a}:s=a:s={},typeof s.context>"u"&&(s.context=4);const l=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){const{callback:u}=s;Ll(n,r,Object.assign(Object.assign({},s),{callback:d=>{const p=c(d);u(p)}}))}else return c(Ll(n,r,s));function c(u){if(!u)return;u.push({value:"",lines:[]});function d(k){return k.map(function(b){return" "+b})}const p=[];let m=0,f=0,y=[],S=1,w=1;for(let k=0;k<u.length;k++){const b=u[k],v=b.lines||o_(b.value);if(b.lines=v,b.added||b.removed){if(!m){const g=u[k-1];m=S,f=w,g&&(y=l>0?d(g.lines.slice(-l)):[],m-=y.length,f-=y.length)}for(const g of v)y.push((b.added?"+":"-")+g);b.added?w+=v.length:S+=v.length}else{if(m)if(v.length<=l*2&&k<u.length-2)for(const g of d(v))y.push(g);else{const g=Math.min(v.length,l);for(const x of d(v.slice(0,g)))y.push(x);const C={oldStart:m,oldLines:S-m+g,newStart:f,newLines:w-f+g,lines:y};p.push(C),m=0,f=0,y=[]}S+=v.length,w+=v.length}}for(const k of p)for(let b=0;b<k.lines.length;b++)k.lines[b].endsWith(`
57
+ `)?k.lines[b]=k.lines[b].slice(0,-1):(k.lines.splice(b+1,0,"\"),b++);return{oldFileName:e,newFileName:t,oldHeader:o,newHeader:i,hunks:p}}}function Vl(e){if(Array.isArray(e))return e.map(Vl).join(`
58
+ `);const t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(let n=0;n<e.hunks.length;n++){const r=e.hunks[n];r.oldLines===0&&(r.oldStart-=1),r.newLines===0&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@");for(const o of r.lines)t.push(o)}return t.join(`
59
+ `)+`
60
+ `}function md(e,t,n,r,o,i,a){if(typeof a=="function"&&(a={callback:a}),a?.callback){const{callback:s}=a;pd(e,t,n,r,o,i,Object.assign(Object.assign({},a),{callback:l=>{s(l?Vl(l):void 0)}}))}else{const s=pd(e,t,n,r,o,i,a);return s?Vl(s):void 0}}function r_(e,t,n,r,o,i){return md(e,e,t,n,r,o,i)}function o_(e){const t=e.endsWith(`
61
+ `),n=e.split(`
62
+ `).map(r=>r+`
63
+ `);return t?n.pop():n.push(n.pop().slice(0,-1)),n}function i_(e){const t=[];let n,r;for(let o=0;o<e.length;o++)n=e[o],n.added?r=1:n.removed?r=-1:r=0,t.push([r,n.value]);return t}function a_(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(s_(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")}function s_(e){let t=e;return t=t.replace(/&/g,"&amp;"),t=t.replace(/</g,"&lt;"),t=t.replace(/>/g,"&gt;"),t=t.replace(/"/g,"&quot;"),t}const l_=Object.freeze(Object.defineProperty({__proto__:null,Diff:vo,applyPatch:Gm,applyPatches:n_,arrayDiff:Wm,canonicalize:Hl,characterDiff:Tm,convertChangesToDMP:i_,convertChangesToXML:a_,createPatch:r_,createTwoFilesPatch:md,cssDiff:Lm,diffArrays:Um,diffChars:$m,diffCss:Hm,diffJson:jm,diffLines:Ll,diffSentences:Nm,diffTrimmedLines:Im,diffWords:Fm,diffWordsWithSpace:dd,formatPatch:Vl,jsonDiff:Vm,lineDiff:fd,parsePatch:hd,reversePatch:Km,sentenceDiff:Bm,structuredPatch:pd,wordDiff:Dm,wordsWithSpaceDiff:Mm},Symbol.toStringTag,{value:"Module"}));class c_{constructor(t){this.ctx=t,this.JsDiff=l_,this.diffChars=$m,this.diffWords=Fm,this.diffWordsWithSpace=dd,this.diffLines=Ll,this.diffTrimmedLines=Im,this.diffSentences=Nm,this.diffCss=Hm,this.diffJson=jm,this.diffArrays=Um,this.createTwoFilesPatch=md,this.ctx.set("jsdiff",this)}}const u_={"diff-container":"_diff-container_lq0si_2"},d_=e=>{let{user:t,target:n}=e;const r=window.mw?.config?.get("wgArticlePath")||"/$1",o=i=>r.replace("$1",i);return oe("span",{className:"mw-userlinks",children:[oe("a",{href:o(`User:${t}`),className:"mw-userlink",target:n,children:t})," ",oe("span",{className:"mw-usertoollinks",children:["(",oe("a",{href:o(`User_talk:${t}`),className:"mw-usertoollinks-talk",target:n,children:"talk"})," | ",oe("a",{href:o(`Special:Contributions/${t}`),className:"mw-usertoollinks-contribs",target:n,children:"contribs"})," | ",oe("a",{href:o(`Special:Block/${t}`),className:"mw-usertoollinks-block",target:n,children:"block"}),")"]})]})},f_=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"medium"}).format,Xm=e=>{let t=["diff-title"];return e.type==="from"?t.push("diff-otitle"):e.type==="to"&&t.push("diff-ntitle"),!e.pageid||!e.userid?oe("td",{colSpan:2,className:t,children:oe("div",{className:"mw-diff-title--title",children:e.type==="from"?"Original content":e.type==="to"?"Your content":""})}):oe("td",{colSpan:2,className:t,children:[oe("div",{className:"mw-diff-title--title",children:e.pagetitle||e.timestamp}),oe("div",{className:"mw-diff-title--user",children:e.username&&oe(d_,{user:e.username,target:"_blank"})}),oe("div",{className:"mw-diff-title--timestamp",children:e.timestamp&&f_(new Date(e.timestamp))}),oe("div",{className:"mw-diff-title--comment",children:e.parsedcomment&&oe(_l,{children:["(",oe("i",{innerHTML:e.parsedcomment}),")"]})}),oe("div",{className:"mw-diff-title--navigation"})]})},h_=e=>{const{data:t,...n}=e,r=oe("table",{className:"theme-ipe diff diff-type-table","data-mw":"interface",...n,children:[oe("colgroup",{children:[oe("col",{className:"diff-marker"}),oe("col",{className:"diff-content"}),oe("col",{className:"diff-marker"}),oe("col",{className:"diff-content"})]}),oe("tbody",{children:[oe("tr",{children:[oe(Xm,{type:"from",pageid:t.fromid,pagetitle:t.fromtitle,revid:t.fromrevid,size:t.fromsize,timestamp:t.fromtimestamp,username:t.fromuser,userid:t.fromuserid,comment:t.fromcomment,parsedcomment:t.fromparsedcomment}),oe(Xm,{type:"to",pageid:t.toid,pagetitle:t.totitle,revid:t.torevid,size:t.tosize,timestamp:t.totimestamp,username:t.touser,userid:t.touserid,comment:t.tocomment,parsedcomment:t.toparsedcomment})]}),oe("div",{id:"diffbody"}),oe("tr",{className:"diff-size",style:{textAlign:"center"},children:[oe("td",{colSpan:2,className:"diff-size-old",children:t.fromsize!==void 0&&`${t.fromsize} bytes`}),oe("td",{colSpan:2,className:"diff-size-new",children:t.tosize!==void 0&&`${t.tosize} bytes`})]})]})]});return r.querySelector("#diffbody").outerHTML=t.body||oe("tr",{children:oe("td",{colSpan:4,children:oe("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"5rem"},children:oe("i",{children:"No changes"})})})}).outerHTML,r},p_=(e,t=document)=>t.querySelector(e),m_=(e,t=document)=>t.querySelectorAll(e);var v_=Object.create,vd=Object.defineProperty,g_=Object.getOwnPropertyDescriptor,Qm=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Zm=e=>{throw TypeError(e)},b_=(e,t,n)=>t in e?vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y_=(e,t)=>vd(e,"name",{value:t,configurable:!0}),w_=e=>[,,,v_(e?.[Qm("metadata")]??null)],x_=["class","method","getter","setter","accessor","field","value","get","set"],Jm=e=>e!==void 0&&typeof e!="function"?Zm("Function expected"):e,C_=(e,t,n,r,o)=>({kind:x_[e],name:t,metadata:r,addInitializer:i=>n._?Zm("Already initialized"):o.push(Jm(i||null))}),S_=(e,t)=>b_(t,Qm("metadata"),e[3]),__=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},k_=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&g_(o,n));y_(o,n);for(var f=r.length-1;f>=0;f--)l=C_(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,Jm(a)&&(o=a);return S_(e,o),m&&vd(o,n,m),u?c^4?i:m:o},ev,gd,tv;const nv=["diffChars","diffWords","diffSentences","diffLines","createTwoFilesPatch"];ev=[cr(["jsdiff"]),Dl(dn.object({"quickDiff.preferredCompareMode":dn.union([dn.const("jsDiff"),dn.const("mwApi")]).description("The preferred comparison mode for quick diff").default("mwApi"),"quickDiff.jsDiff.defaultType":dn.union(nv.map(e=>dn.const(e))).description("The default diff type for JsDiff").default("diffSentences")}).description("Quick Diff Preferences"),{"quickDiff.preferredCompareMode":"mwApi","quickDiff.jsDiff.defaultType":"diffSentences"})];class jl extends(tv=Kr){constructor(t){super(t,{},"quick-diff"),this.ctx=t,this.VALID_DIFF_TYPES=nv,this.COMPARE_API_DEFAULT_OPTIONS={prop:["comment","diff","diffsize","ids","parsedcomment","size","timestamp","title","user"].join("|"),difftype:"table"}}start(){this.ctx.set("quickDiff",this),this.ctx.on("quickEdit/wikiPage",this.injectQuickEdit.bind(this)),window.RLQ.push(this.injectHistoryPage.bind(this))}stop(){this.ctx.off("quickEdit/wikiPage",this.injectQuickEdit.bind(this))}injectHistoryPage(){const t=p_("#mw-history-compare");if(!t)return;m_(".mw-history-compareselectedversions-button",t).forEach(r=>{r.after(oe("button",{className:"cdx-button",onClick:o=>{o.preventDefault();const i=new FormData(t),a=Number(i.get("oldid"))||0,s=Number(i.get("diff"))||0;if(!i.get("title")||!a||!s)return this.logger.warn("Missing title or revision IDs");this.comparePages({fromrev:a,torev:s})},children:"Quick Diff"}))})}injectQuickEdit({modal:t,wikiPage:n}){t.setButtons([{label:"Diff",side:"left",className:"btn btn-secondary",method:()=>{const r=n.title,o=n.revisions?.[0]?.content||"",i=t.get$content().find('textarea[name="text"]').prop("value")||"";return this.comparePages({fromtitle:r,fromtext:o,totitle:r,totext:i})}}])}simpleTextDiff(t,n){const r=this.ctx.modal.show({title:"Quick Diff",className:"in-page-edit ipe-quickDiff"});r.show();const o=oe("pre",{className:u_["diff-container"]}),i=oe("div",{style:{display:"flex",gap:"1em"},children:this.VALID_DIFF_TYPES.map((a,s)=>oe(lm,{name:"diffType",value:a,label:a,inputProps:{checked:s===0}}))});r.setContent(oe("section",{children:[i,o]})),i.querySelectorAll('input[name="diffType"]').forEach(a=>{a.addEventListener("change",()=>{const s=this.renderJsDiff(t,n,a.value);o.textContent="",o.appendChild(s)})}),i.querySelector('input[name="diffType"]').dispatchEvent(new Event("change"))}renderJsDiff(t,n,r="diffSentences"){const o=document.createDocumentFragment();let i;if(r==="createTwoFilesPatch"){let a=!1;i=this.ctx.jsdiff.createTwoFilesPatch("original.txt","modified.txt",t,n).split(`
64
+ `).map(function(s){const l={value:s+`
65
+ `};return s.startsWith("@@")?(l.chunkHeader=!0,a=!0):a&&(s.startsWith("-")?l.removed=!0:s.startsWith("+")&&(l.added=!0)),l})}else{const a=this.ctx.jsdiff[r];if(!a)throw new Error(`Missing DiffEngine for ${r}`);i=a(t,n)}if(!Array.isArray(i))throw new Error("Missing diff result");for(let a=0;a<i.length;a++){if(i[a].added&&i[a+1]&&i[a+1].removed){const l=i[a];i[a]=i[a+1],i[a+1]=l}let s;i[a].removed?(s=document.createElement("del"),s.appendChild(document.createTextNode(i[a].value))):i[a].added?(s=document.createElement("ins"),s.appendChild(document.createTextNode(i[a].value))):i[a].chunkHeader?(s=document.createElement("span"),s.setAttribute("class","chunk-header"),s.appendChild(document.createTextNode(i[a].value))):s=document.createTextNode(i[a].value),o.appendChild(s)}return o}comparePages(t){const n=this.ctx.modal.createObject({title:"Loading diff...",content:oe(hi,{}),className:"quick-diff"}).init();return window.mw&&mw.loader.getState("mediawiki.diff.styles")!=="ready"&&mw.loader.load(["mediawiki.diff.styles"]),this.ctx.api.post({...this.COMPARE_API_DEFAULT_OPTIONS,...t,action:"compare",format:"json",formatversion:2}).then(r=>{if(r.data?.error||r.data?.errors){const i=[r.data?.error,...r.data?.errors||[]].filter(Boolean);throw new Error(i.map(a=>a.info).join(`
66
+ `),{cause:r})}if(!r.data.compare)throw new Error("No compare data received",{cause:r});const{data:{compare:o}}=r;n.setTitle(o.fromtitle&&o.totitle?`${o.fromtitle} ⇔ ${o.totitle}`:"Differences"),n.setContent(oe("section",{children:oe(h_,{data:o})}))}).catch(r=>{n.setContent(oe(sm,{title:"Failed to load diff",type:"error",children:oe("pre",{children:r instanceof Error?r.message:String(r)})}))}),n.show()}}gd=w_(tv),jl=k_(gd,0,"PluginQuickDiffCore",ev,jl),__(gd,1,jl);const dp=class dp extends Kr{constructor(t){super(t,{},"quick-diff-loader"),this.ctx=t,t.plugin(c_),t.plugin(jl)}};dp.inject=["api","wikiPage","modal"];let bd=dp;const P_=Object.freeze(Object.defineProperty({__proto__:null,PluginQuickDiff:bd},Symbol.toStringTag,{value:"Module"})),fp=class fp extends Kr{constructor(t){super(t,{},"quick-redirect"),this.ctx=t}start(){this.ctx.set("quickRedirect",this.quickRedirect.bind(this)),this.ctx.set("redirectPage",this.redirectPage.bind(this));const t=window.mw?.config.get("wgPageName")||"",n=window.mw?.config.get("wgIsProbablyEditable");this.ctx.inject(["toolbox"],r=>{this.ctx=r,r.toolbox.addButton({id:"quick-redirect",icon:oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-file-symlink",children:[oe("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),oe("path",{d:"M4 21v-4a3 3 0 0 1 3 -3h5"}),oe("path",{d:"M9 17l3 -3l-3 -3"}),oe("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),oe("path",{d:"M5 11v-6a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-9.5"})]}),tooltip:"Quick Redirect",group:"group1",onClick:()=>{this.quickRedirect(n?{to:t}:{})}}),this.addDisposeHandler(o=>{o.toolbox.removeButton("quick-redirect")})})}stop(){}quickRedirect(t){const n=this.ctx.modal.createObject({title:"Quick Redirect",content:oe(hi,{}),className:"quick-redirect",sizeClass:"medium",center:!0}).init();let r=null;return n.setContent(oe("form",{ref:o=>r=o,style:{display:"flex",flexDirection:"column",gap:"1rem"},onSubmit:o=>{o.preventDefault();const i=new FormData(r),a={from:i.get("from"),to:i.get("to"),reason:i.get("reason")||"",overwrite:i.get("overwrite")==="on"};n.setLoadingState(!0),this.redirectPage(a).then(s=>{n.close(),this.ctx.modal.notify("success",{title:"Redirect successful",content:"The redirect has been created."})}).catch(s=>{n.setLoadingState(!1),this.ctx.modal.notify("error",{title:"Failed to redirect",content:s instanceof Error?s.message:String(s)})})},children:[oe(vm,{inputs:[{label:"From",name:"from",value:t?.from},{label:"To",name:"to",value:t?.to}]}),oe(nd,{label:"Reason",id:"reason",name:"reason",value:t?.reason}),oe("div",{children:oe(la,{name:"overwrite",id:"overwrite",checked:t?.overwrite,children:"Force create redirect even if the from page already exists"})}),oe(Ol,{type:"primary",buttonProps:{style:{width:"100%"}},children:"Create Redirect"})]})),n.show()}async redirectPage(t){const{from:n,to:r,reason:o="",overwrite:i=!1}=t,a=await this.ctx.wikiPage.newBlankPage({title:n}),s=`#REDIRECT [[:${r}]]`,l=await a.edit({text:s,summary:o},{createonly:!i});if(l.data?.errors)throw new Error(l.data.errors[0].text,{cause:l});return l}};fp.inject=["api","wikiPage","modal"];let yd=fp;const T_=Object.freeze(Object.defineProperty({__proto__:null,PluginQuickRedirect:yd},Symbol.toStringTag,{value:"Module"}));var $_=Object.create,wd=Object.defineProperty,R_=Object.getOwnPropertyDescriptor,rv=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ov=e=>{throw TypeError(e)},O_=(e,t,n)=>t in e?wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E_=(e,t)=>wd(e,"name",{value:t,configurable:!0}),D_=e=>[,,,$_(e?.[rv("metadata")]??null)],F_=["class","method","getter","setter","accessor","field","value","get","set"],iv=e=>e!==void 0&&typeof e!="function"?ov("Function expected"):e,A_=(e,t,n,r,o)=>({kind:F_[e],name:t,metadata:r,addInitializer:i=>n._?ov("Already initialized"):o.push(iv(i||null))}),M_=(e,t)=>O_(t,rv("metadata"),e[3]),I_=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},z_=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&R_(o,n));E_(o,n);for(var f=r.length-1;f>=0;f--)l=A_(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,iv(a)&&(o=a);return M_(e,o),m&&wd(o,n,m),u?c^4?i:m:o},av,xd,sv;av=[Dl(dn.object({toolboxAlwaysShow:dn.boolean().description("Make the toolbox opened by default").default(!1)}),{toolboxAlwaysShow:!1}),cr(["preferences"])];class Wl extends(sv=ra){constructor(t){super(t,"toolbox",!1),this.ctx=t,this.container=void 0,this.forceShow=!1}async start(){mw&&mw.config.get("wgIsArticle")===!1&&!this.forceShow?this.container=this.createIndicatorForNotArticlePage():this.container=this.createToolbox(),document.body.appendChild(this.container),await um(0),this.ctx.preferences.get("toolboxAlwaysShow").then(t=>{t&&(this.container.querySelector("#toolbox-toggle")?.classList.add("opened"),this.container.querySelectorAll(".btn-group").forEach(n=>{n.classList.add("opened")}))})}stop(){this.container?.remove()}createToolbox(){const n=oe("div",{id:"ipe-edit-toolbox",children:[oe("ul",{className:"btn-group group1",style:{display:"flex",flexDirection:"column"}}),oe("ul",{className:"btn-group group2",style:{display:"flex",flexDirection:"row"}}),oe("button",{className:"ipe-toolbox-btn",id:"toolbox-toggle",onClick:function(r){const o=this.classList.contains("opened");this.classList.toggle("opened",!o),n.querySelectorAll(".btn-group").forEach(i=>{i.classList.toggle("opened",!o)})},children:oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-plus",children:[oe("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),oe("path",{d:"M12 5l0 14"}),oe("path",{d:"M5 12l14 0"})]})})]});return n}createIndicatorForNotArticlePage(){return oe("div",{id:"ipe-edit-toolbox",children:oe("div",{id:"ipe-toolbox-placeholder",style:"width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #3f51b5; color: #fff; pointer-events: none;",children:oe("svg",{style:"width: 0.5em; height: 0.5em; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-check",children:[oe("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),oe("path",{d:"M5 12l5 5l10 -10"})]})})})}normalizeButtonId(t){return t||(t=Math.random().toString(36).substring(2,8)),`ipe-toolbox__${t.trim()}`.replace(/\s\.#/g,"-")}addButton(t){let{id:n,group:r,icon:o,tooltip:i,buttonProps:a,onClick:s,index:l}=t;n=this.normalizeButtonId(n);const c=this.container.querySelector(`#${n}`);c&&(this.ctx.logger("toolbox").warn(`Button with id ${n} already exists, replacing it.`),c.remove());let u=null;if(typeof r>"u"||r==="auto"){const p=this.container.querySelector(".btn-group.group1"),m=this.container.querySelector(".btn-group.group2"),f=p?.children.length||0,y=m?.children.length||0;u=f<=y?p:m}else u=this.container.querySelector(`.btn-group.${r}`);if(!u)throw new Error(`Button group ${r} not found`);const d=oe("li",{class:"btn-tip-group",id:n,onClick:s,children:[oe("div",{class:"btn-tip",children:i}),oe("button",{id:`${n}-btn`,class:"ipe-toolbox-btn",...a,children:o})]});return typeof l=="number"?l<=0?u.prepend(d):l>=u.children.length?u.appendChild(d):u.children[l]?.before(d):u.appendChild(d),this.ctx.emit("toolbox/button/added",{ctx:this.ctx,button:d}),d}removeButton(t){this.container.querySelector(`.ipe-toolbox-btn#${t}`)?.remove(),this.ctx.emit("toolbox/button/removed",{ctx:this.ctx,id:t})}}xd=D_(sv),Wl=z_(xd,0,"PluginToolbox",av,Wl),I_(xd,1,Wl);const B_=Object.freeze(Object.defineProperty({__proto__:null,get PluginToolbox(){return Wl}},Symbol.toStringTag,{value:"Module"}));/**
67
+ * @vue/shared v3.5.21
68
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
69
+ * @license MIT
70
+ **/function Cd(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Jt={},ca=[],Xr=()=>{},lv=()=>!1,Ul=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sd=e=>e.startsWith("onUpdate:"),In=Object.assign,_d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},N_=Object.prototype.hasOwnProperty,jt=(e,t)=>N_.call(e,t),dt=Array.isArray,ua=e=>ql(e)==="[object Map]",cv=e=>ql(e)==="[object Set]",gt=e=>typeof e=="function",fn=e=>typeof e=="string",go=e=>typeof e=="symbol",rn=e=>e!==null&&typeof e=="object",uv=e=>(rn(e)||gt(e))&&gt(e.then)&&gt(e.catch),dv=Object.prototype.toString,ql=e=>dv.call(e),L_=e=>ql(e).slice(8,-1),fv=e=>ql(e)==="[object Object]",kd=e=>fn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ms=Cd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},H_=/-\w/g,$r=Yl(e=>e.replace(H_,t=>t.slice(1).toUpperCase())),V_=/\B([A-Z])/g,mi=Yl(e=>e.replace(V_,"-$1").toLowerCase()),Gl=Yl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pd=Yl(e=>e?`on${Gl(e)}`:""),Io=(e,t)=>!Object.is(e,t),Td=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},hv=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},j_=e=>{const t=parseFloat(e);return isNaN(t)?e:t},W_=e=>{const t=fn(e)?Number(e):NaN;return isNaN(t)?e:t};let pv;const Kl=()=>pv||(pv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $d(e){if(dt(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=fn(r)?G_(r):$d(r);if(o)for(const i in o)t[i]=o[i]}return t}else if(fn(e)||rn(e))return e}const U_=/;(?![^(]*\))/g,q_=/:([^]+)/,Y_=/\/\*[^]*?\*\//g;function G_(e){const t={};return e.replace(Y_,"").split(U_).forEach(n=>{if(n){const r=n.split(q_);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Xl(e){let t="";if(fn(e))t=e;else if(dt(e))for(let n=0;n<e.length;n++){const r=Xl(e[n]);r&&(t+=r+" ")}else if(rn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const K_=Cd("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function mv(e){return!!e||e===""}const vv=e=>!!(e&&e.__v_isRef===!0),zo=e=>fn(e)?e:e==null?"":dt(e)||rn(e)&&(e.toString===dv||!gt(e.toString))?vv(e)?zo(e.value):JSON.stringify(e,gv,2):String(e),gv=(e,t)=>vv(t)?gv(e,t.value):ua(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[Rd(r,i)+" =>"]=o,n),{})}:cv(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Rd(n))}:go(t)?Rd(t):rn(t)&&!dt(t)&&!fv(t)?String(t):t,Rd=(e,t="")=>{var n;return go(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
71
+ * @vue/reactivity v3.5.21
72
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
73
+ * @license MIT
74
+ **/let dr;class X_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=dr,!t&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=dr;try{return dr=this,t()}finally{dr=n}}}on(){++this._on===1&&(this.prevScope=dr,dr=this)}off(){this._on>0&&--this._on===0&&(dr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=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}}}function Q_(){return dr}let on;const Od=new WeakSet;class bv{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,dr&&dr.active&&dr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Od.has(this)&&(Od.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wv(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,kv(this),xv(this);const t=on,n=Nr;on=this,Nr=!0;try{return this.fn()}finally{Cv(this),on=t,Nr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ad(t);this.deps=this.depsTail=void 0,kv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Od.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Fd(this)&&this.run()}get dirty(){return Fd(this)}}let yv=0,vs,gs;function wv(e,t=!1){if(e.flags|=8,t){e.next=gs,gs=e;return}e.next=vs,vs=e}function Ed(){yv++}function Dd(){if(--yv>0)return;if(gs){let t=gs;for(gs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vs;){let t=vs;for(vs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function xv(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Cv(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Ad(r),Z_(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Fd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Sv(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Sv(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===bs)||(e.globalVersion=bs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Fd(e))))return;e.flags|=2;const t=e.dep,n=on,r=Nr;on=e,Nr=!0;try{xv(e);const o=e.fn(e._value);(t.version===0||Io(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{on=n,Nr=r,Cv(e),e.flags&=-3}}function Ad(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ad(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Z_(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Nr=!0;const _v=[];function Qr(){_v.push(Nr),Nr=!1}function Zr(){const e=_v.pop();Nr=e===void 0?!0:e}function kv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=on;on=void 0;try{t()}finally{on=n}}}let bs=0;class J_{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Md{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!on||!Nr||on===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==on)n=this.activeLink=new J_(on,this),on.deps?(n.prevDep=on.depsTail,on.depsTail.nextDep=n,on.depsTail=n):on.deps=on.depsTail=n,Pv(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=on.depsTail,n.nextDep=void 0,on.depsTail.nextDep=n,on.depsTail=n,on.deps===n&&(on.deps=r)}return n}trigger(t){this.version++,bs++,this.notify(t)}notify(t){Ed();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Dd()}}}function Pv(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Pv(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ql=new WeakMap,vi=Symbol(""),Id=Symbol(""),ys=Symbol("");function Zn(e,t,n){if(Nr&&on){let r=Ql.get(e);r||Ql.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Md),o.map=r,o.key=n),o.track()}}function bo(e,t,n,r,o,i){const a=Ql.get(e);if(!a){bs++;return}const s=l=>{l&&l.trigger()};if(Ed(),t==="clear")a.forEach(s);else{const l=dt(e),c=l&&kd(n);if(l&&n==="length"){const u=Number(r);a.forEach((d,p)=>{(p==="length"||p===ys||!go(p)&&p>=u)&&s(d)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),c&&s(a.get(ys)),t){case"add":l?c&&s(a.get("length")):(s(a.get(vi)),ua(e)&&s(a.get(Id)));break;case"delete":l||(s(a.get(vi)),ua(e)&&s(a.get(Id)));break;case"set":ua(e)&&s(a.get(vi));break}}Dd()}function ek(e,t){const n=Ql.get(e);return n&&n.get(t)}function da(e){const t=Pt(e);return t===e?t:(Zn(t,"iterate",ys),Rr(e)?t:t.map(Wn))}function Zl(e){return Zn(e=Pt(e),"iterate",ys),e}const tk={__proto__:null,[Symbol.iterator](){return zd(this,Symbol.iterator,Wn)},concat(...e){return da(this).concat(...e.map(t=>dt(t)?da(t):t))},entries(){return zd(this,"entries",e=>(e[1]=Wn(e[1]),e))},every(e,t){return yo(this,"every",e,t,void 0,arguments)},filter(e,t){return yo(this,"filter",e,t,n=>n.map(Wn),arguments)},find(e,t){return yo(this,"find",e,t,Wn,arguments)},findIndex(e,t){return yo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return yo(this,"findLast",e,t,Wn,arguments)},findLastIndex(e,t){return yo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return yo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bd(this,"includes",e)},indexOf(...e){return Bd(this,"indexOf",e)},join(e){return da(this).join(e)},lastIndexOf(...e){return Bd(this,"lastIndexOf",e)},map(e,t){return yo(this,"map",e,t,void 0,arguments)},pop(){return ws(this,"pop")},push(...e){return ws(this,"push",e)},reduce(e,...t){return Tv(this,"reduce",e,t)},reduceRight(e,...t){return Tv(this,"reduceRight",e,t)},shift(){return ws(this,"shift")},some(e,t){return yo(this,"some",e,t,void 0,arguments)},splice(...e){return ws(this,"splice",e)},toReversed(){return da(this).toReversed()},toSorted(e){return da(this).toSorted(e)},toSpliced(...e){return da(this).toSpliced(...e)},unshift(...e){return ws(this,"unshift",e)},values(){return zd(this,"values",Wn)}};function zd(e,t,n){const r=Zl(e),o=r[t]();return r!==e&&!Rr(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=n(i.value)),i}),o}const nk=Array.prototype;function yo(e,t,n,r,o,i){const a=Zl(e),s=a!==e&&!Rr(e),l=a[t];if(l!==nk[t]){const d=l.apply(e,i);return s?Wn(d):d}let c=n;a!==e&&(s?c=function(d,p){return n.call(this,Wn(d),p,e)}:n.length>2&&(c=function(d,p){return n.call(this,d,p,e)}));const u=l.call(a,c,r);return s&&o?o(u):u}function Tv(e,t,n,r){const o=Zl(e);let i=n;return o!==e&&(Rr(e)?n.length>3&&(i=function(a,s,l){return n.call(this,a,s,l,e)}):i=function(a,s,l){return n.call(this,a,Wn(s),l,e)}),o[t](i,...r)}function Bd(e,t,n){const r=Pt(e);Zn(r,"iterate",ys);const o=r[t](...n);return(o===-1||o===!1)&&pa(n[0])?(n[0]=Pt(n[0]),r[t](...n)):o}function ws(e,t,n=[]){Qr(),Ed();const r=Pt(e)[t].apply(e,n);return Dd(),Zr(),r}const rk=Cd("__proto__,__v_isRef,__isVue"),$v=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(go));function ok(e){go(e)||(e=String(e));const t=Pt(this);return Zn(t,"has",e),t.hasOwnProperty(e)}class Rv{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?Mv:Av:i?Fv:Dv).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=dt(t);if(!o){let l;if(a&&(l=tk[n]))return l;if(n==="hasOwnProperty")return ok}const s=Reflect.get(t,n,Rn(t)?t:r);return(go(n)?$v.has(n):rk(n))||(o||Zn(t,"get",n),i)?s:Rn(s)?a&&kd(n)?s:s.value:rn(s)?o?fa(s):nc(s):s}}class Ov extends Rv{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const l=Bo(i);if(!Rr(r)&&!Bo(r)&&(i=Pt(i),r=Pt(r)),!dt(t)&&Rn(i)&&!Rn(r))return l||(i.value=r),!0}const a=dt(t)&&kd(n)?Number(n)<t.length:jt(t,n),s=Reflect.set(t,n,r,Rn(t)?t:o);return t===Pt(o)&&(a?Io(r,i)&&bo(t,"set",n,r):bo(t,"add",n,r)),s}deleteProperty(t,n){const r=jt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&bo(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!go(n)||!$v.has(n))&&Zn(t,"has",n),r}ownKeys(t){return Zn(t,"iterate",dt(t)?"length":vi),Reflect.ownKeys(t)}}class Ev extends Rv{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ik=new Ov,ak=new Ev,sk=new Ov(!0),lk=new Ev(!0),Nd=e=>e,Jl=e=>Reflect.getPrototypeOf(e);function ck(e,t,n){return function(...r){const o=this.__v_raw,i=Pt(o),a=ua(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=o[e](...r),u=n?Nd:t?oc:Wn;return!t&&Zn(i,"iterate",l?Id:vi),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:s?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function ec(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uk(e,t){const n={get(o){const i=this.__v_raw,a=Pt(i),s=Pt(o);e||(Io(o,s)&&Zn(a,"get",o),Zn(a,"get",s));const{has:l}=Jl(a),c=t?Nd:e?oc:Wn;if(l.call(a,o))return c(i.get(o));if(l.call(a,s))return c(i.get(s));i!==a&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Zn(Pt(o),"iterate",vi),o.size},has(o){const i=this.__v_raw,a=Pt(i),s=Pt(o);return e||(Io(o,s)&&Zn(a,"has",o),Zn(a,"has",s)),o===s?i.has(o):i.has(o)||i.has(s)},forEach(o,i){const a=this,s=a.__v_raw,l=Pt(s),c=t?Nd:e?oc:Wn;return!e&&Zn(l,"iterate",vi),s.forEach((u,d)=>o.call(i,c(u),c(d),a))}};return In(n,e?{add:ec("add"),set:ec("set"),delete:ec("delete"),clear:ec("clear")}:{add(o){!t&&!Rr(o)&&!Bo(o)&&(o=Pt(o));const i=Pt(this);return Jl(i).has.call(i,o)||(i.add(o),bo(i,"add",o,o)),this},set(o,i){!t&&!Rr(i)&&!Bo(i)&&(i=Pt(i));const a=Pt(this),{has:s,get:l}=Jl(a);let c=s.call(a,o);c||(o=Pt(o),c=s.call(a,o));const u=l.call(a,o);return a.set(o,i),c?Io(i,u)&&bo(a,"set",o,i):bo(a,"add",o,i),this},delete(o){const i=Pt(this),{has:a,get:s}=Jl(i);let l=a.call(i,o);l||(o=Pt(o),l=a.call(i,o)),s&&s.call(i,o);const c=i.delete(o);return l&&bo(i,"delete",o,void 0),c},clear(){const o=Pt(this),i=o.size!==0,a=o.clear();return i&&bo(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ck(o,e,t)}),n}function tc(e,t){const n=uk(e,t);return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(jt(n,o)&&o in r?n:r,o,i)}const dk={get:tc(!1,!1)},fk={get:tc(!1,!0)},hk={get:tc(!0,!1)},pk={get:tc(!0,!0)},Dv=new WeakMap,Fv=new WeakMap,Av=new WeakMap,Mv=new WeakMap;function mk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vk(e){return e.__v_skip||!Object.isExtensible(e)?0:mk(L_(e))}function nc(e){return Bo(e)?e:rc(e,!1,ik,dk,Dv)}function gk(e){return rc(e,!1,sk,fk,Fv)}function fa(e){return rc(e,!0,ak,hk,Av)}function w5(e){return rc(e,!0,lk,pk,Mv)}function rc(e,t,n,r,o){if(!rn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=vk(e);if(i===0)return e;const a=o.get(e);if(a)return a;const s=new Proxy(e,i===2?r:n);return o.set(e,s),s}function ha(e){return Bo(e)?ha(e.__v_raw):!!(e&&e.__v_isReactive)}function Bo(e){return!!(e&&e.__v_isReadonly)}function Rr(e){return!!(e&&e.__v_isShallow)}function pa(e){return e?!!e.__v_raw:!1}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function bk(e){return!jt(e,"__v_skip")&&Object.isExtensible(e)&&hv(e,"__v_skip",!0),e}const Wn=e=>rn(e)?nc(e):e,oc=e=>rn(e)?fa(e):e;function Rn(e){return e?e.__v_isRef===!0:!1}function K(e){return Iv(e,!1)}function yk(e){return Iv(e,!0)}function Iv(e,t){return Rn(e)?e:new wk(e,t)}class wk{constructor(t,n){this.dep=new Md,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Pt(t),this._value=n?t:Wn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Rr(t)||Bo(t);t=r?t:Pt(t),Io(t,n)&&(this._rawValue=t,this._value=r?t:Wn(t),this.dep.trigger())}}function Tt(e){return Rn(e)?e.value:e}const xk={get:(e,t,n)=>t==="__v_raw"?e:Tt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Rn(o)&&!Rn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function zv(e){return ha(e)?e:new Proxy(e,xk)}class Ck{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ek(Pt(this._object),this._key)}}class Sk{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Xe(e,t,n){return Rn(e)?e:gt(e)?new Sk(e):rn(e)&&arguments.length>1?_k(e,t,n):K(e)}function _k(e,t,n){const r=e[t];return Rn(r)?r:new Ck(e,t,n)}class kk{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Md(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&on!==this)return wv(this,!0),!0}get value(){const t=this.dep.track();return Sv(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Pk(e,t,n=!1){let r,o;return gt(e)?r=e:(r=e.get,o=e.set),new kk(r,o,n)}const ic={},ac=new WeakMap;let gi;function Tk(e,t=!1,n=gi){if(n){let r=ac.get(n);r||ac.set(n,r=[]),r.push(e)}}function $k(e,t,n=Jt){const{immediate:r,deep:o,once:i,scheduler:a,augmentJob:s,call:l}=n,c=v=>o?v:Rr(v)||o===!1||o===0?wo(v,1):wo(v);let u,d,p,m,f=!1,y=!1;if(Rn(e)?(d=()=>e.value,f=Rr(e)):ha(e)?(d=()=>c(e),f=!0):dt(e)?(y=!0,f=e.some(v=>ha(v)||Rr(v)),d=()=>e.map(v=>{if(Rn(v))return v.value;if(ha(v))return c(v);if(gt(v))return l?l(v,2):v()})):gt(e)?t?d=l?()=>l(e,2):e:d=()=>{if(p){Qr();try{p()}finally{Zr()}}const v=gi;gi=u;try{return l?l(e,3,[m]):e(m)}finally{gi=v}}:d=Xr,t&&o){const v=d,g=o===!0?1/0:o;d=()=>wo(v(),g)}const S=Q_(),w=()=>{u.stop(),S&&S.active&&_d(S.effects,u)};if(i&&t){const v=t;t=(...g)=>{v(...g),w()}}let k=y?new Array(e.length).fill(ic):ic;const b=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const g=u.run();if(o||f||(y?g.some((C,x)=>Io(C,k[x])):Io(g,k))){p&&p();const C=gi;gi=u;try{const x=[g,k===ic?void 0:y&&k[0]===ic?[]:k,m];k=g,l?l(t,3,x):t(...x)}finally{gi=C}}}else u.run()};return s&&s(b),u=new bv(d),u.scheduler=a?()=>a(b,!1):b,m=v=>Tk(v,!1,u),p=u.onStop=()=>{const v=ac.get(u);if(v){if(l)l(v,4);else for(const g of v)g();ac.delete(u)}},t?r?b(!0):k=u.run():a?a(b.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function wo(e,t=1/0,n){if(t<=0||!rn(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Rn(e))wo(e.value,t,n);else if(dt(e))for(let r=0;r<e.length;r++)wo(e[r],t,n);else if(cv(e)||ua(e))e.forEach(r=>{wo(r,t,n)});else if(fv(e)){for(const r in e)wo(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wo(e[r],t,n)}return e}/**
75
+ * @vue/runtime-core v3.5.21
76
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
77
+ * @license MIT
78
+ **/const xs=[];let Ld=!1;function x5(e,...t){if(Ld)return;Ld=!0,Qr();const n=xs.length?xs[xs.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=Rk();if(r)ma(r,n,11,[e+t.map(i=>{var a,s;return(s=(a=i.toString)==null?void 0:a.call(i))!=null?s:JSON.stringify(i)}).join(""),n&&n.proxy,o.map(({vnode:i})=>`at <${Ug(n,i.type)}>`).join(`
79
+ `),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push(`
80
+ `,...Ok(o)),console.warn(...i)}Zr(),Ld=!1}function Rk(){let e=xs[xs.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Ok(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
81
+ `],...Ek(n))}),t}function Ek({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${Ug(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...Dk(e.props),i]:[o+i]}function Dk(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Bv(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Bv(e,t,n){return fn(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Rn(t)?(t=Bv(e,Pt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):gt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Pt(t),n?t:[`${e}=`,t])}function ma(e,t,n,r){try{return r?e(...r):e()}catch(o){sc(o,t,n)}}function Lr(e,t,n,r){if(gt(e)){const o=ma(e,t,n,r);return o&&uv(o)&&o.catch(i=>{sc(i,t,n)}),o}if(dt(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Lr(e[i],t,n,r));return o}}function sc(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Jt;if(t){let s=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const u=s.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}s=s.parent}if(i){Qr(),ma(i,null,10,[e,l,c]),Zr();return}}Fk(e,n,o,r,a)}function Fk(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const rr=[];let Jr=-1;const va=[];let No=null,ga=0;const Nv=Promise.resolve();let lc=null;function On(e){const t=lc||Nv;return e?t.then(this?e.bind(this):e):t}function Ak(e){let t=Jr+1,n=rr.length;for(;t<n;){const r=t+n>>>1,o=rr[r],i=Cs(o);i<e||i===e&&o.flags&2?t=r+1:n=r}return t}function Hd(e){if(!(e.flags&1)){const t=Cs(e),n=rr[rr.length-1];!n||!(e.flags&2)&&t>=Cs(n)?rr.push(e):rr.splice(Ak(t),0,e),e.flags|=1,Lv()}}function Lv(){lc||(lc=Nv.then(jv))}function Mk(e){dt(e)?va.push(...e):No&&e.id===-1?No.splice(ga+1,0,e):e.flags&1||(va.push(e),e.flags|=1),Lv()}function Hv(e,t,n=Jr+1){for(;n<rr.length;n++){const r=rr[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;rr.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Vv(e){if(va.length){const t=[...new Set(va)].sort((n,r)=>Cs(n)-Cs(r));if(va.length=0,No){No.push(...t);return}for(No=t,ga=0;ga<No.length;ga++){const n=No[ga];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}No=null,ga=0}}const Cs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function jv(e){try{for(Jr=0;Jr<rr.length;Jr++){const t=rr[Jr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ma(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Jr<rr.length;Jr++){const t=rr[Jr];t&&(t.flags&=-2)}Jr=-1,rr.length=0,Vv(),lc=null,(rr.length||va.length)&&jv()}}let Un=null,Wv=null;function cc(e){const t=Un;return Un=e,Wv=e&&e.type.__scopeId||null,t}function Kt(e,t=Un,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&yc(-1);const i=cc(t);let a;try{a=e(...o)}finally{cc(i),r._d&&yc(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Hr(e,t){if(Un===null)return e;const n=Cc(Un),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,s,l=Jt]=t[o];i&&(gt(i)&&(i={mounted:i,updated:i}),i.deep&&wo(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function bi(e,t,n,r){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[r];l&&(Qr(),Lr(l,n,8,[e.el,s,e,t]),Zr())}}const Uv=Symbol("_vte"),qv=e=>e.__isTeleport,Ss=e=>e&&(e.disabled||e.disabled===""),Yv=e=>e&&(e.defer||e.defer===""),Gv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Kv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Vd=(e,t)=>{const n=e&&e.to;return fn(n)?t?t(n):null:n},Xv={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,c){const{mc:u,pc:d,pbc:p,o:{insert:m,querySelector:f,createText:y,createComment:S}}=c,w=Ss(t.props);let{shapeFlag:k,children:b,dynamicChildren:v}=t;if(e==null){const g=t.el=y(""),C=t.anchor=y("");m(g,n,r),m(C,n,r);const x=(P,O)=>{k&16&&(o&&o.isCE&&(o.ce._teleportTarget=P),u(b,P,O,o,i,a,s,l))},T=()=>{const P=t.target=Vd(t.props,f),O=Qv(P,t,y,m);P&&(a!=="svg"&&Gv(P)?a="svg":a!=="mathml"&&Kv(P)&&(a="mathml"),w||(x(P,O),dc(t,!1)))};w&&(x(n,C),dc(t,!0)),Yv(t.props)?(t.el.__isMounted=!1,ir(()=>{T(),delete t.el.__isMounted},i)):T()}else{if(Yv(t.props)&&e.el.__isMounted===!1){ir(()=>{Xv.process(e,t,n,r,o,i,a,s,l,c)},i);return}t.el=e.el,t.targetStart=e.targetStart;const g=t.anchor=e.anchor,C=t.target=e.target,x=t.targetAnchor=e.targetAnchor,T=Ss(e.props),P=T?n:C,O=T?g:x;if(a==="svg"||Gv(C)?a="svg":(a==="mathml"||Kv(C))&&(a="mathml"),v?(p(e.dynamicChildren,v,P,o,i,a,s),nf(e,t,!0)):l||d(e,t,P,O,o,i,a,s,!1),w)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):uc(t,n,g,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=Vd(t.props,f);U&&uc(t,U,null,c,0)}else T&&uc(t,C,x,c,1);dc(t,w)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(o(c),o(u)),i&&o(l),a&16){const m=i||!Ss(p);for(let f=0;f<s.length;f++){const y=s[f];r(y,t,n,m,!!y.dynamicChildren)}}},move:uc,hydrate:Ik};function uc(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=i===2;if(d&&r(a,t,n),(!d||Ss(u))&&l&16)for(let p=0;p<c.length;p++)o(c[p],t,n,2);d&&r(s,t,n)}function Ik(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:c,createText:u}},d){function p(y,S,w,k){S.anchor=d(a(y),S,s(y),n,r,o,i),S.targetStart=w,S.targetAnchor=k}const m=t.target=Vd(t.props,l),f=Ss(t.props);if(m){const y=m._lpa||m.firstChild;if(t.shapeFlag&16)if(f)p(e,t,y,y&&a(y));else{t.anchor=a(e);let S=y;for(;S;){if(S&&S.nodeType===8){if(S.data==="teleport start anchor")t.targetStart=S;else if(S.data==="teleport anchor"){t.targetAnchor=S,m._lpa=t.targetAnchor&&a(t.targetAnchor);break}}S=a(S)}t.targetAnchor||Qv(m,t,u,c),d(y&&a(y),t,m,n,r,o,i)}dc(t,f)}else f&&t.shapeFlag&16&&p(e,t,e,a(e));return t.anchor&&a(t.anchor)}const zk=Xv;function dc(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Qv(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[Uv]=i,e&&(r(o,e),r(i,e)),i}const xo=Symbol("_leaveCb"),fc=Symbol("_enterCb");function Zv(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return En(()=>{e.isMounted=!0}),qn(()=>{e.isUnmounting=!0}),e}const Or=[Function,Array],Jv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Or,onEnter:Or,onAfterEnter:Or,onEnterCancelled:Or,onBeforeLeave:Or,onLeave:Or,onAfterLeave:Or,onLeaveCancelled:Or,onBeforeAppear:Or,onAppear:Or,onAfterAppear:Or,onAppearCancelled:Or},eg=e=>{const t=e.subTree;return t.component?eg(t.component):t},Bk={name:"BaseTransition",props:Jv,setup(e,{slots:t}){const n=Ho(),r=Zv();return()=>{const o=t.default&&Wd(t.default(),!0);if(!o||!o.length)return;const i=tg(o),a=Pt(e),{mode:s}=a;if(r.isLeaving)return jd(i);const l=rg(i);if(!l)return jd(i);let c=_s(l,a,r,n,d=>c=d);l.type!==Dn&&yi(l,c);let u=n.subTree&&rg(n.subTree);if(u&&u.type!==Dn&&!Si(u,l)&&eg(n).type!==Dn){let d=_s(u,a,r,n);if(yi(u,d),s==="out-in"&&l.type!==Dn)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},jd(i);s==="in-out"&&l.type!==Dn?d.delayLeave=(p,m,f)=>{const y=ng(r,u);y[String(u.key)]=u,p[xo]=()=>{m(),p[xo]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{f(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function tg(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Dn){t=n;break}}return t}const Nk=Bk;function ng(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function _s(e,t,n,r,o){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:f,onLeaveCancelled:y,onBeforeAppear:S,onAppear:w,onAfterAppear:k,onAppearCancelled:b}=t,v=String(e.key),g=ng(n,e),C=(P,O)=>{P&&Lr(P,r,9,O)},x=(P,O)=>{const U=O[1];C(P,O),dt(P)?P.every(D=>D.length<=1)&&U():P.length<=1&&U()},T={mode:a,persisted:s,beforeEnter(P){let O=l;if(!n.isMounted)if(i)O=S||l;else return;P[xo]&&P[xo](!0);const U=g[v];U&&Si(e,U)&&U.el[xo]&&U.el[xo](),C(O,[P])},enter(P){let O=c,U=u,D=d;if(!n.isMounted)if(i)O=w||c,U=k||u,D=b||d;else return;let I=!1;const te=P[fc]=ie=>{I||(I=!0,ie?C(D,[P]):C(U,[P]),T.delayedLeave&&T.delayedLeave(),P[fc]=void 0)};O?x(O,[P,te]):te()},leave(P,O){const U=String(e.key);if(P[fc]&&P[fc](!0),n.isUnmounting)return O();C(p,[P]);let D=!1;const I=P[xo]=te=>{D||(D=!0,O(),te?C(y,[P]):C(f,[P]),P[xo]=void 0,g[U]===e&&delete g[U])};g[U]=e,m?x(m,[P,I]):I()},clone(P){const O=_s(P,t,n,r,o);return o&&o(O),O}};return T}function jd(e){if(pc(e))return e=eo(e),e.children=null,e}function rg(e){if(!pc(e))return qv(e.type)&&e.children?tg(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&gt(n.default))return n.default()}}function yi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,yi(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 Wd(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Wt?(a.patchFlag&128&&o++,r=r.concat(Wd(a.children,t,s))):(t||a.type!==Dn)&&r.push(s!=null?eo(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Le(e,t){return gt(e)?In({name:e.name},t,{setup:e}):e}function og(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const hc=new WeakMap;function ks(e,t,n,r,o=!1){if(dt(e)){e.forEach((f,y)=>ks(f,t&&(dt(t)?t[y]:t),n,r,o));return}if(ba(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ks(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Cc(r.component):r.el,a=o?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===Jt?s.refs={}:s.refs,d=s.setupState,p=Pt(d),m=d===Jt?lv:f=>jt(p,f);if(c!=null&&c!==l){if(ig(t),fn(c))u[c]=null,m(c)&&(d[c]=null);else if(Rn(c)){c.value=null;const f=t;f.k&&(u[f.k]=null)}}if(gt(l))ma(l,s,12,[a,u]);else{const f=fn(l),y=Rn(l);if(f||y){const S=()=>{if(e.f){const w=f?m(l)?d[l]:u[l]:l.value;if(o)dt(w)&&_d(w,i);else if(dt(w))w.includes(i)||w.push(i);else if(f)u[l]=[i],m(l)&&(d[l]=u[l]);else{const k=[i];l.value=k,e.k&&(u[e.k]=k)}}else f?(u[l]=a,m(l)&&(d[l]=a)):y&&(l.value=a,e.k&&(u[e.k]=a))};if(a){const w=()=>{S(),hc.delete(e)};w.id=-1,hc.set(e,w),ir(w,n)}else ig(e),S()}}}function ig(e){const t=hc.get(e);t&&(t.flags|=8,hc.delete(e))}Kl().requestIdleCallback,Kl().cancelIdleCallback;const ba=e=>!!e.type.__asyncLoader,pc=e=>e.type.__isKeepAlive;function Ud(e,t){ag(e,"a",t)}function qd(e,t){ag(e,"da",t)}function ag(e,t,n=Jn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(mc(t,r,n),n){let o=n.parent;for(;o&&o.parent;)pc(o.parent.vnode)&&Lk(r,t,n,o),o=o.parent}}function Lk(e,t,n,r){const o=mc(t,e,r,!0);cg(()=>{_d(r[t],o)},n)}function mc(e,t,n=Jn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Qr();const s=Es(n),l=Lr(t,n,e,a);return s(),Zr(),l});return r?o.unshift(i):o.push(i),i}}const Co=e=>(t,n=Jn)=>{(!Ds||e==="sp")&&mc(e,(...r)=>t(...r),n)},wi=Co("bm"),En=Co("m"),sg=Co("bu"),lg=Co("u"),qn=Co("bum"),cg=Co("um"),Hk=Co("sp"),Vk=Co("rtg"),jk=Co("rtc");function Wk(e,t=Jn){mc("ec",e,t)}const ug="components";function Uk(e,t){return fg(ug,e,!0,t)||e}const dg=Symbol.for("v-ndc");function vc(e){return fn(e)?fg(ug,e,!1)||e:e||dg}function fg(e,t,n=!0,r=!1){const o=Un||Jn;if(o){const i=o.type;{const s=Wg(i,!1);if(s&&(s===t||s===$r(t)||s===Gl($r(t))))return i}const a=hg(o[e]||i[e],t)||hg(o.appContext[e],t);return!a&&r?i:a}}function hg(e,t){return e&&(e[t]||e[$r(t)]||e[Gl($r(t))])}function xi(e,t,n,r){let o;const i=n,a=dt(e);if(a||fn(e)){const s=a&&ha(e);let l=!1,c=!1;s&&(l=!Rr(e),c=Bo(e),e=Zl(e)),o=new Array(e.length);for(let u=0,d=e.length;u<d;u++)o[u]=t(l?c?oc(Wn(e[u])):Wn(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let s=0;s<e;s++)o[s]=t(s+1,s,void 0,i)}else if(rn(e))if(e[Symbol.iterator])o=Array.from(e,(s,l)=>t(s,l,void 0,i));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,c=s.length;l<c;l++){const u=s[l];o[l]=t(e[u],u,l,i)}}else o=[];return o}function qk(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(dt(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function Yd(e,t,n={},r,o){if(Un.ce||Un.parent&&ba(Un.parent)&&Un.parent.ce)return t!=="default"&&(n.name=t),ft(),an(Wt,null,[It("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),ft();const a=i&&pg(i(n)),s=n.key||a&&a.key,l=an(Wt,{key:(s&&!go(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function pg(e){return e.some(t=>wa(t)?!(t.type===Dn||t.type===Wt&&!pg(t.children)):!0)?e:null}const Gd=e=>e?Hg(e)?Cc(e):Gd(e.parent):null,Ps=In(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=>Gd(e.parent),$root:e=>Gd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bg(e),$forceUpdate:e=>e.f||(e.f=()=>{Hd(e.update)}),$nextTick:e=>e.n||(e.n=On.bind(e.proxy)),$watch:e=>hP.bind(e)}),Kd=(e,t)=>e!==Jt&&!e.__isScriptSetup&&jt(e,t),Yk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const m=a[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Kd(r,t))return a[t]=1,r[t];if(o!==Jt&&jt(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&jt(c,t))return a[t]=3,i[t];if(n!==Jt&&jt(n,t))return a[t]=4,n[t];Xd&&(a[t]=0)}}const u=Ps[t];let d,p;if(u)return t==="$attrs"&&Zn(e.attrs,"get",""),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==Jt&&jt(n,t))return a[t]=4,n[t];if(p=l.config.globalProperties,jt(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Kd(o,t)?(o[t]=n,!0):r!==Jt&&jt(r,t)?(r[t]=n,!0):jt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i,type:a}},s){let l,c;return!!(n[s]||e!==Jt&&s[0]!=="$"&&jt(e,s)||Kd(t,s)||(l=i[0])&&jt(l,s)||jt(r,s)||jt(Ps,s)||jt(o.config.globalProperties,s)||(c=a.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:jt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mg(e){return dt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Xd=!0;function Gk(e){const t=bg(e),n=e.proxy,r=e.ctx;Xd=!1,t.beforeCreate&&vg(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:m,updated:f,activated:y,deactivated:S,beforeDestroy:w,beforeUnmount:k,destroyed:b,unmounted:v,render:g,renderTracked:C,renderTriggered:x,errorCaptured:T,serverPrefetch:P,expose:O,inheritAttrs:U,components:D,directives:I,filters:te}=t;if(c&&Kk(c,r,null),a)for(const ce in a){const ge=a[ce];gt(ge)&&(r[ce]=ge.bind(n))}if(o){const ce=o.call(n,n);rn(ce)&&(e.data=nc(ce))}if(Xd=!0,i)for(const ce in i){const ge=i[ce],Ae=gt(ge)?ge.bind(n,n):gt(ge.get)?ge.get.bind(n,n):Xr,Re=!gt(ge)&&gt(ge.set)?ge.set.bind(n):Xr,Ee=z({get:Ae,set:Re});Object.defineProperty(r,ce,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:ue=>Ee.value=ue})}if(s)for(const ce in s)gg(s[ce],r,n,ce);if(l){const ce=gt(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(ge=>{_n(ge,ce[ge])})}u&&vg(u,e,"c");function pe(ce,ge){dt(ge)?ge.forEach(Ae=>ce(Ae.bind(n))):ge&&ce(ge.bind(n))}if(pe(wi,d),pe(En,p),pe(sg,m),pe(lg,f),pe(Ud,y),pe(qd,S),pe(Wk,T),pe(jk,C),pe(Vk,x),pe(qn,k),pe(cg,v),pe(Hk,P),dt(O))if(O.length){const ce=e.exposed||(e.exposed={});O.forEach(ge=>{Object.defineProperty(ce,ge,{get:()=>n[ge],set:Ae=>n[ge]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});g&&e.render===Xr&&(e.render=g),U!=null&&(e.inheritAttrs=U),D&&(e.components=D),I&&(e.directives=I),P&&og(e)}function Kk(e,t,n=Xr){dt(e)&&(e=Qd(e));for(const r in e){const o=e[r];let i;rn(o)?"default"in o?i=wt(o.from||r,o.default,!0):i=wt(o.from||r):i=wt(o),Rn(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function vg(e,t,n){Lr(dt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function gg(e,t,n,r){let o=r.includes(".")?Fg(n,r):()=>n[r];if(fn(e)){const i=t[e];gt(i)&&St(o,i)}else if(gt(e))St(o,e.bind(n));else if(rn(e))if(dt(e))e.forEach(i=>gg(i,t,n,r));else{const i=gt(e.handler)?e.handler.bind(n):t[e.handler];gt(i)&&St(o,i,e)}}function bg(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>gc(l,c,a,!0)),gc(l,t,a)),rn(t)&&i.set(t,l),l}function gc(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&gc(e,i,n,!0),o&&o.forEach(a=>gc(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=Xk[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const Xk={data:yg,props:wg,emits:wg,methods:Ts,computed:Ts,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:Ts,directives:Ts,watch:Zk,provide:yg,inject:Qk};function yg(e,t){return t?e?function(){return In(gt(e)?e.call(this,this):e,gt(t)?t.call(this,this):t)}:t:e}function Qk(e,t){return Ts(Qd(e),Qd(t))}function Qd(e){if(dt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function or(e,t){return e?[...new Set([].concat(e,t))]:t}function Ts(e,t){return e?In(Object.create(null),e,t):t}function wg(e,t){return e?dt(e)&&dt(t)?[...new Set([...e,...t])]:In(Object.create(null),mg(e),mg(t??{})):t}function Zk(e,t){if(!e)return t;if(!t)return e;const n=In(Object.create(null),e);for(const r in t)n[r]=or(e[r],t[r]);return n}function xg(){return{app:null,config:{isNativeTag:lv,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 Jk=0;function eP(e,t){return function(r,o=null){gt(r)||(r=In({},r)),o!=null&&!rn(o)&&(o=null);const i=xg(),a=new WeakSet,s=[];let l=!1;const c=i.app={_uid:Jk++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:MP,get config(){return i.config},set config(u){},use(u,...d){return a.has(u)||(u&&gt(u.install)?(a.add(u),u.install(c,...d)):gt(u)&&(a.add(u),u(c,...d))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,d){return d?(i.components[u]=d,c):i.components[u]},directive(u,d){return d?(i.directives[u]=d,c):i.directives[u]},mount(u,d,p){if(!l){const m=c._ceVNode||It(r,o);return m.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(m,u,p),l=!0,c._container=u,u.__vue_app__=c,Cc(m.component)}},onUnmount(u){s.push(u)},unmount(){l&&(Lr(s,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return i.provides[u]=d,c},runWithContext(u){const d=ya;ya=c;try{return u()}finally{ya=d}}};return c}}let ya=null;function _n(e,t){if(Jn){let n=Jn.provides;const r=Jn.parent&&Jn.parent.provides;r===n&&(n=Jn.provides=Object.create(r)),n[e]=t}}function wt(e,t,n=!1){const r=Ho();if(r||ya){let o=ya?ya._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&gt(t)?t.call(r&&r.proxy):t}}const Cg={},Sg=()=>Object.create(Cg),_g=e=>Object.getPrototypeOf(e)===Cg;function tP(e,t,n,r=!1){const o={},i=Sg();e.propsDefaults=Object.create(null),kg(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:gk(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function nP(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=Pt(o),[l]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(bc(e.emitsOptions,p))continue;const m=t[p];if(l)if(jt(i,p))m!==i[p]&&(i[p]=m,c=!0);else{const f=$r(p);o[f]=Zd(l,s,f,m,e,!1)}else m!==i[p]&&(i[p]=m,c=!0)}}}else{kg(e,t,o,i)&&(c=!0);let u;for(const d in s)(!t||!jt(t,d)&&((u=mi(d))===d||!jt(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(o[d]=Zd(l,s,d,void 0,e,!0)):delete o[d]);if(i!==s)for(const d in i)(!t||!jt(t,d))&&(delete i[d],c=!0)}c&&bo(e.attrs,"set","")}function kg(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(ms(l))continue;const c=t[l];let u;o&&jt(o,u=$r(l))?!i||!i.includes(u)?n[u]=c:(s||(s={}))[u]=c:bc(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,a=!0)}if(i){const l=Pt(n),c=s||Jt;for(let u=0;u<i.length;u++){const d=i[u];n[d]=Zd(o,l,d,c[d],e,!jt(c,d))}}return a}function Zd(e,t,n,r,o,i){const a=e[n];if(a!=null){const s=jt(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&gt(l)){const{propsDefaults:c}=o;if(n in c)r=c[n];else{const u=Es(o);r=c[n]=l.call(null,t),u()}}else r=l;o.ce&&o.ce._setProp(n,r)}a[0]&&(i&&!s?r=!1:a[1]&&(r===""||r===mi(n))&&(r=!0))}return r}const rP=new WeakMap;function Pg(e,t,n=!1){const r=n?rP:t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},s=[];let l=!1;if(!gt(e)){const u=d=>{l=!0;const[p,m]=Pg(d,t,!0);In(a,p),m&&s.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return rn(e)&&r.set(e,ca),ca;if(dt(i))for(let u=0;u<i.length;u++){const d=$r(i[u]);Tg(d)&&(a[d]=Jt)}else if(i)for(const u in i){const d=$r(u);if(Tg(d)){const p=i[u],m=a[d]=dt(p)||gt(p)?{type:p}:In({},p),f=m.type;let y=!1,S=!0;if(dt(f))for(let w=0;w<f.length;++w){const k=f[w],b=gt(k)&&k.name;if(b==="Boolean"){y=!0;break}else b==="String"&&(S=!1)}else y=gt(f)&&f.name==="Boolean";m[0]=y,m[1]=S,(y||jt(m,"default"))&&s.push(d)}}const c=[a,s];return rn(e)&&r.set(e,c),c}function Tg(e){return e[0]!=="$"&&!ms(e)}const Jd=e=>e==="_"||e==="_ctx"||e==="$stable",ef=e=>dt(e)?e.map(to):[to(e)],oP=(e,t,n)=>{if(t._n)return t;const r=Kt((...o)=>ef(t(...o)),n);return r._c=!1,r},$g=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Jd(o))continue;const i=e[o];if(gt(i))t[o]=oP(o,i,r);else if(i!=null){const a=ef(i);t[o]=()=>a}}},Rg=(e,t)=>{const n=ef(t);e.slots.default=()=>n},Og=(e,t,n)=>{for(const r in t)(n||!Jd(r))&&(e[r]=t[r])},iP=(e,t,n)=>{const r=e.slots=Sg();if(e.vnode.shapeFlag&32){const o=t._;o?(Og(r,t,n),n&&hv(r,"_",o,!0)):$g(t,r)}else t&&Rg(e,t)},aP=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Jt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:Og(o,t,n):(i=!t.$stable,$g(t,o)),a=t}else t&&(Rg(e,t),a={default:1});if(i)for(const s in o)!Jd(s)&&a[s]==null&&delete o[s]},ir=xP;function sP(e){return lP(e)}function lP(e,t){const n=Kl();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:m=Xr,insertStaticContent:f}=e,y=(F,H,ne,be=null,ye=null,W=null,de=void 0,he=null,L=!!H.dynamicChildren)=>{if(F===H)return;F&&!Si(F,H)&&(be=Ye(F),ue(F,ye,W,!0),F=null),H.patchFlag===-2&&(L=!1,H.dynamicChildren=null);const{type:V,ref:fe,shapeFlag:N}=H;switch(V){case $s:S(F,H,ne,be);break;case Dn:w(F,H,ne,be);break;case of:F==null&&k(H,ne,be,de);break;case Wt:D(F,H,ne,be,ye,W,de,he,L);break;default:N&1?g(F,H,ne,be,ye,W,de,he,L):N&6?I(F,H,ne,be,ye,W,de,he,L):(N&64||N&128)&&V.process(F,H,ne,be,ye,W,de,he,L,it)}fe!=null&&ye?ks(fe,F&&F.ref,W,H||F,!H):fe==null&&F&&F.ref!=null&&ks(F.ref,null,W,F,!0)},S=(F,H,ne,be)=>{if(F==null)r(H.el=s(H.children),ne,be);else{const ye=H.el=F.el;H.children!==F.children&&c(ye,H.children)}},w=(F,H,ne,be)=>{F==null?r(H.el=l(H.children||""),ne,be):H.el=F.el},k=(F,H,ne,be)=>{[F.el,F.anchor]=f(F.children,H,ne,be,F.el,F.anchor)},b=({el:F,anchor:H},ne,be)=>{let ye;for(;F&&F!==H;)ye=p(F),r(F,ne,be),F=ye;r(H,ne,be)},v=({el:F,anchor:H})=>{let ne;for(;F&&F!==H;)ne=p(F),o(F),F=ne;o(H)},g=(F,H,ne,be,ye,W,de,he,L)=>{H.type==="svg"?de="svg":H.type==="math"&&(de="mathml"),F==null?C(H,ne,be,ye,W,de,he,L):P(F,H,ye,W,de,he,L)},C=(F,H,ne,be,ye,W,de,he)=>{let L,V;const{props:fe,shapeFlag:N,transition:B,dirs:Y}=F;if(L=F.el=a(F.type,W,fe&&fe.is,fe),N&8?u(L,F.children):N&16&&T(F.children,L,null,be,ye,tf(F,W),de,he),Y&&bi(F,null,be,"created"),x(L,F,F.scopeId,de,be),fe){for(const Q in fe)Q!=="value"&&!ms(Q)&&i(L,Q,null,fe[Q],W,be);"value"in fe&&i(L,"value",null,fe.value,W),(V=fe.onVnodeBeforeMount)&&no(V,be,F)}Y&&bi(F,null,be,"beforeMount");const we=cP(ye,B);we&&B.beforeEnter(L),r(L,H,ne),((V=fe&&fe.onVnodeMounted)||we||Y)&&ir(()=>{V&&no(V,be,F),we&&B.enter(L),Y&&bi(F,null,be,"mounted")},ye)},x=(F,H,ne,be,ye)=>{if(ne&&m(F,ne),be)for(let W=0;W<be.length;W++)m(F,be[W]);if(ye){let W=ye.subTree;if(H===W||zg(W.type)&&(W.ssContent===H||W.ssFallback===H)){const de=ye.vnode;x(F,de,de.scopeId,de.slotScopeIds,ye.parent)}}},T=(F,H,ne,be,ye,W,de,he,L=0)=>{for(let V=L;V<F.length;V++){const fe=F[V]=he?Lo(F[V]):to(F[V]);y(null,fe,H,ne,be,ye,W,de,he)}},P=(F,H,ne,be,ye,W,de)=>{const he=H.el=F.el;let{patchFlag:L,dynamicChildren:V,dirs:fe}=H;L|=F.patchFlag&16;const N=F.props||Jt,B=H.props||Jt;let Y;if(ne&&Ci(ne,!1),(Y=B.onVnodeBeforeUpdate)&&no(Y,ne,H,F),fe&&bi(H,F,ne,"beforeUpdate"),ne&&Ci(ne,!0),(N.innerHTML&&B.innerHTML==null||N.textContent&&B.textContent==null)&&u(he,""),V?O(F.dynamicChildren,V,he,ne,be,tf(H,ye),W):de||ge(F,H,he,null,ne,be,tf(H,ye),W,!1),L>0){if(L&16)U(he,N,B,ne,ye);else if(L&2&&N.class!==B.class&&i(he,"class",null,B.class,ye),L&4&&i(he,"style",N.style,B.style,ye),L&8){const we=H.dynamicProps;for(let Q=0;Q<we.length;Q++){const Te=we[Q],Qe=N[Te],at=B[Te];(at!==Qe||Te==="value")&&i(he,Te,Qe,at,ye,ne)}}L&1&&F.children!==H.children&&u(he,H.children)}else!de&&V==null&&U(he,N,B,ne,ye);((Y=B.onVnodeUpdated)||fe)&&ir(()=>{Y&&no(Y,ne,H,F),fe&&bi(H,F,ne,"updated")},be)},O=(F,H,ne,be,ye,W,de)=>{for(let he=0;he<H.length;he++){const L=F[he],V=H[he],fe=L.el&&(L.type===Wt||!Si(L,V)||L.shapeFlag&198)?d(L.el):ne;y(L,V,fe,null,be,ye,W,de,!0)}},U=(F,H,ne,be,ye)=>{if(H!==ne){if(H!==Jt)for(const W in H)!ms(W)&&!(W in ne)&&i(F,W,H[W],null,ye,be);for(const W in ne){if(ms(W))continue;const de=ne[W],he=H[W];de!==he&&W!=="value"&&i(F,W,he,de,ye,be)}"value"in ne&&i(F,"value",H.value,ne.value,ye)}},D=(F,H,ne,be,ye,W,de,he,L)=>{const V=H.el=F?F.el:s(""),fe=H.anchor=F?F.anchor:s("");let{patchFlag:N,dynamicChildren:B,slotScopeIds:Y}=H;Y&&(he=he?he.concat(Y):Y),F==null?(r(V,ne,be),r(fe,ne,be),T(H.children||[],ne,fe,ye,W,de,he,L)):N>0&&N&64&&B&&F.dynamicChildren?(O(F.dynamicChildren,B,ne,ye,W,de,he),(H.key!=null||ye&&H===ye.subTree)&&nf(F,H,!0)):ge(F,H,ne,fe,ye,W,de,he,L)},I=(F,H,ne,be,ye,W,de,he,L)=>{H.slotScopeIds=he,F==null?H.shapeFlag&512?ye.ctx.activate(H,ne,be,de,L):te(H,ne,be,ye,W,de,L):ie(F,H,L)},te=(F,H,ne,be,ye,W,de)=>{const he=F.component=TP(F,be,ye);if(pc(F)&&(he.ctx.renderer=it),$P(he,!1,de),he.asyncDep){if(ye&&ye.registerDep(he,pe,de),!F.el){const L=he.subTree=It(Dn);w(null,L,H,ne),F.placeholder=L.el}}else pe(he,F,H,ne,ye,W,de)},ie=(F,H,ne)=>{const be=H.component=F.component;if(yP(F,H,ne))if(be.asyncDep&&!be.asyncResolved){ce(be,H,ne);return}else be.next=H,be.update();else H.el=F.el,be.vnode=H},pe=(F,H,ne,be,ye,W,de)=>{const he=()=>{if(F.isMounted){let{next:N,bu:B,u:Y,parent:we,vnode:Q}=F;{const ot=Eg(F);if(ot){N&&(N.el=Q.el,ce(F,N,de)),ot.asyncDep.then(()=>{F.isUnmounted||he()});return}}let Te=N,Qe;Ci(F,!1),N?(N.el=Q.el,ce(F,N,de)):N=Q,B&&Td(B),(Qe=N.props&&N.props.onVnodeBeforeUpdate)&&no(Qe,we,N,Q),Ci(F,!0);const at=Mg(F),st=F.subTree;F.subTree=at,y(st,at,d(st.el),Ye(st),F,ye,W),N.el=at.el,Te===null&&wP(F,at.el),Y&&ir(Y,ye),(Qe=N.props&&N.props.onVnodeUpdated)&&ir(()=>no(Qe,we,N,Q),ye)}else{let N;const{el:B,props:Y}=H,{bm:we,m:Q,parent:Te,root:Qe,type:at}=F,st=ba(H);Ci(F,!1),we&&Td(we),!st&&(N=Y&&Y.onVnodeBeforeMount)&&no(N,Te,H),Ci(F,!0);{Qe.ce&&Qe.ce._def.shadowRoot!==!1&&Qe.ce._injectChildStyle(at);const ot=F.subTree=Mg(F);y(null,ot,ne,be,F,ye,W),H.el=ot.el}if(Q&&ir(Q,ye),!st&&(N=Y&&Y.onVnodeMounted)){const ot=H;ir(()=>no(N,Te,ot),ye)}(H.shapeFlag&256||Te&&ba(Te.vnode)&&Te.vnode.shapeFlag&256)&&F.a&&ir(F.a,ye),F.isMounted=!0,H=ne=be=null}};F.scope.on();const L=F.effect=new bv(he);F.scope.off();const V=F.update=L.run.bind(L),fe=F.job=L.runIfDirty.bind(L);fe.i=F,fe.id=F.uid,L.scheduler=()=>Hd(fe),Ci(F,!0),V()},ce=(F,H,ne)=>{H.component=F;const be=F.vnode.props;F.vnode=H,F.next=null,nP(F,H.props,be,ne),aP(F,H.children,ne),Qr(),Hv(F),Zr()},ge=(F,H,ne,be,ye,W,de,he,L=!1)=>{const V=F&&F.children,fe=F?F.shapeFlag:0,N=H.children,{patchFlag:B,shapeFlag:Y}=H;if(B>0){if(B&128){Re(V,N,ne,be,ye,W,de,he,L);return}else if(B&256){Ae(V,N,ne,be,ye,W,de,he,L);return}}Y&8?(fe&16&&ke(V,ye,W),N!==V&&u(ne,N)):fe&16?Y&16?Re(V,N,ne,be,ye,W,de,he,L):ke(V,ye,W,!0):(fe&8&&u(ne,""),Y&16&&T(N,ne,be,ye,W,de,he,L))},Ae=(F,H,ne,be,ye,W,de,he,L)=>{F=F||ca,H=H||ca;const V=F.length,fe=H.length,N=Math.min(V,fe);let B;for(B=0;B<N;B++){const Y=H[B]=L?Lo(H[B]):to(H[B]);y(F[B],Y,ne,null,ye,W,de,he,L)}V>fe?ke(F,ye,W,!0,!1,N):T(H,ne,be,ye,W,de,he,L,N)},Re=(F,H,ne,be,ye,W,de,he,L)=>{let V=0;const fe=H.length;let N=F.length-1,B=fe-1;for(;V<=N&&V<=B;){const Y=F[V],we=H[V]=L?Lo(H[V]):to(H[V]);if(Si(Y,we))y(Y,we,ne,null,ye,W,de,he,L);else break;V++}for(;V<=N&&V<=B;){const Y=F[N],we=H[B]=L?Lo(H[B]):to(H[B]);if(Si(Y,we))y(Y,we,ne,null,ye,W,de,he,L);else break;N--,B--}if(V>N){if(V<=B){const Y=B+1,we=Y<fe?H[Y].el:be;for(;V<=B;)y(null,H[V]=L?Lo(H[V]):to(H[V]),ne,we,ye,W,de,he,L),V++}}else if(V>B)for(;V<=N;)ue(F[V],ye,W,!0),V++;else{const Y=V,we=V,Q=new Map;for(V=we;V<=B;V++){const bt=H[V]=L?Lo(H[V]):to(H[V]);bt.key!=null&&Q.set(bt.key,V)}let Te,Qe=0;const at=B-we+1;let st=!1,ot=0;const Ot=new Array(at);for(V=0;V<at;V++)Ot[V]=0;for(V=Y;V<=N;V++){const bt=F[V];if(Qe>=at){ue(bt,ye,W,!0);continue}let _;if(bt.key!=null)_=Q.get(bt.key);else for(Te=we;Te<=B;Te++)if(Ot[Te-we]===0&&Si(bt,H[Te])){_=Te;break}_===void 0?ue(bt,ye,W,!0):(Ot[_-we]=V+1,_>=ot?ot=_:st=!0,y(bt,H[_],ne,null,ye,W,de,he,L),Qe++)}const Et=st?uP(Ot):ca;for(Te=Et.length-1,V=at-1;V>=0;V--){const bt=we+V,_=H[bt],E=H[bt+1],ve=bt+1<fe?E.el||E.placeholder:be;Ot[V]===0?y(null,_,ne,ve,ye,W,de,he,L):st&&(Te<0||V!==Et[Te]?Ee(_,ne,ve,2):Te--)}}},Ee=(F,H,ne,be,ye=null)=>{const{el:W,type:de,transition:he,children:L,shapeFlag:V}=F;if(V&6){Ee(F.component.subTree,H,ne,be);return}if(V&128){F.suspense.move(H,ne,be);return}if(V&64){de.move(F,H,ne,it);return}if(de===Wt){r(W,H,ne);for(let N=0;N<L.length;N++)Ee(L[N],H,ne,be);r(F.anchor,H,ne);return}if(de===of){b(F,H,ne);return}if(be!==2&&V&1&&he)if(be===0)he.beforeEnter(W),r(W,H,ne),ir(()=>he.enter(W),ye);else{const{leave:N,delayLeave:B,afterLeave:Y}=he,we=()=>{F.ctx.isUnmounted?o(W):r(W,H,ne)},Q=()=>{W._isLeaving&&W[xo](!0),N(W,()=>{we(),Y&&Y()})};B?B(W,we,Q):Q()}else r(W,H,ne)},ue=(F,H,ne,be=!1,ye=!1)=>{const{type:W,props:de,ref:he,children:L,dynamicChildren:V,shapeFlag:fe,patchFlag:N,dirs:B,cacheIndex:Y}=F;if(N===-2&&(ye=!1),he!=null&&(Qr(),ks(he,null,ne,F,!0),Zr()),Y!=null&&(H.renderCache[Y]=void 0),fe&256){H.ctx.deactivate(F);return}const we=fe&1&&B,Q=!ba(F);let Te;if(Q&&(Te=de&&de.onVnodeBeforeUnmount)&&no(Te,H,F),fe&6)De(F.component,ne,be);else{if(fe&128){F.suspense.unmount(ne,be);return}we&&bi(F,null,H,"beforeUnmount"),fe&64?F.type.remove(F,H,ne,it,be):V&&!V.hasOnce&&(W!==Wt||N>0&&N&64)?ke(V,H,ne,!1,!0):(W===Wt&&N&384||!ye&&fe&16)&&ke(L,H,ne),be&&_e(F)}(Q&&(Te=de&&de.onVnodeUnmounted)||we)&&ir(()=>{Te&&no(Te,H,F),we&&bi(F,null,H,"unmounted")},ne)},_e=F=>{const{type:H,el:ne,anchor:be,transition:ye}=F;if(H===Wt){me(ne,be);return}if(H===of){v(F);return}const W=()=>{o(ne),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(F.shapeFlag&1&&ye&&!ye.persisted){const{leave:de,delayLeave:he}=ye,L=()=>de(ne,W);he?he(F.el,W,L):L()}else W()},me=(F,H)=>{let ne;for(;F!==H;)ne=p(F),o(F),F=ne;o(H)},De=(F,H,ne)=>{const{bum:be,scope:ye,job:W,subTree:de,um:he,m:L,a:V}=F;Dg(L),Dg(V),be&&Td(be),ye.stop(),W&&(W.flags|=8,ue(de,F,H,ne)),he&&ir(he,H),ir(()=>{F.isUnmounted=!0},H)},ke=(F,H,ne,be=!1,ye=!1,W=0)=>{for(let de=W;de<F.length;de++)ue(F[de],H,ne,be,ye)},Ye=F=>{if(F.shapeFlag&6)return Ye(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const H=p(F.anchor||F.el),ne=H&&H[Uv];return ne?p(ne):H};let tt=!1;const Ne=(F,H,ne)=>{F==null?H._vnode&&ue(H._vnode,null,null,!0):y(H._vnode||null,F,H,null,null,null,ne),H._vnode=F,tt||(tt=!0,Hv(),Vv(),tt=!1)},it={p:y,um:ue,m:Ee,r:_e,mt:te,mc:T,pc:ge,pbc:O,n:Ye,o:e};return{render:Ne,hydrate:void 0,createApp:eP(Ne)}}function tf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ci({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function cP(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nf(e,t,n=!1){const r=e.children,o=t.children;if(dt(r)&&dt(o))for(let i=0;i<r.length;i++){const a=r[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=Lo(o[i]),s.el=a.el),!n&&s.patchFlag!==-2&&nf(a,s)),s.type===$s&&s.patchFlag!==-1&&(s.el=a.el),s.type===Dn&&!s.el&&(s.el=a.el)}}function uP(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<c?i=s+1:a=s;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Eg(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Eg(t)}function Dg(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const dP=Symbol.for("v-scx"),fP=()=>wt(dP);function Vr(e,t){return rf(e,null,t)}function St(e,t,n){return rf(e,t,n)}function rf(e,t,n=Jt){const{immediate:r,deep:o,flush:i,once:a}=n,s=In({},n),l=t&&r||!t&&i!=="post";let c;if(Ds){if(i==="sync"){const m=fP();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=Xr,m.resume=Xr,m.pause=Xr,m}}const u=Jn;s.call=(m,f,y)=>Lr(m,u,f,y);let d=!1;i==="post"?s.scheduler=m=>{ir(m,u&&u.suspense)}:i!=="sync"&&(d=!0,s.scheduler=(m,f)=>{f?m():Hd(m)}),s.augmentJob=m=>{t&&(m.flags|=4),d&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const p=$k(e,t,s);return Ds&&(c?c.push(p):l&&p()),p}function hP(e,t,n){const r=this.proxy,o=fn(e)?e.includes(".")?Fg(r,e):()=>r[e]:e.bind(r,r);let i;gt(t)?i=t:(i=t.handler,n=t);const a=Es(this),s=rf(o,i.bind(r),n);return a(),s}function Fg(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const pP=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$r(t)}Modifiers`]||e[`${mi(t)}Modifiers`];function mP(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Jt;let o=n;const i=t.startsWith("update:"),a=i&&pP(r,t.slice(7));a&&(a.trim&&(o=n.map(u=>fn(u)?u.trim():u)),a.number&&(o=n.map(j_)));let s,l=r[s=Pd(t)]||r[s=Pd($r(t))];!l&&i&&(l=r[s=Pd(mi(t))]),l&&Lr(l,e,6,o);const c=r[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Lr(c,e,6,o)}}const vP=new WeakMap;function Ag(e,t,n=!1){const r=n?vP:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!gt(e)){const l=c=>{const u=Ag(c,t,!0);u&&(s=!0,In(a,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(rn(e)&&r.set(e,null),null):(dt(i)?i.forEach(l=>a[l]=null):In(a,i),rn(e)&&r.set(e,a),a)}function bc(e,t){return!e||!Ul(t)?!1:(t=t.slice(2).replace(/Once$/,""),jt(e,t[0].toLowerCase()+t.slice(1))||jt(e,mi(t))||jt(e,t))}function C5(){}function Mg(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:p,setupState:m,ctx:f,inheritAttrs:y}=e,S=cc(e);let w,k;try{if(n.shapeFlag&4){const v=o||r,g=v;w=to(c.call(g,v,u,d,m,p,f)),k=s}else{const v=t;w=to(v.length>1?v(d,{attrs:s,slots:a,emit:l}):v(d,null)),k=t.props?s:gP(s)}}catch(v){Rs.length=0,sc(v,e,1),w=It(Dn)}let b=w;if(k&&y!==!1){const v=Object.keys(k),{shapeFlag:g}=b;v.length&&g&7&&(i&&v.some(Sd)&&(k=bP(k,i)),b=eo(b,k,!1,!0))}return n.dirs&&(b=eo(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&yi(b,n.transition),w=b,cc(S),w}const gP=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ul(n))&&((t||(t={}))[n]=e[n]);return t},bP=(e,t)=>{const n={};for(const r in e)(!Sd(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function yP(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ig(r,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(a[p]!==r[p]&&!bc(c,p))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?Ig(r,a,c):!0:!!a;return!1}function Ig(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!bc(n,i))return!0}return!1}function wP({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const zg=e=>e.__isSuspense;function xP(e,t){t&&t.pendingBranch?dt(e)?t.effects.push(...e):t.effects.push(e):Mk(e)}const Wt=Symbol.for("v-fgt"),$s=Symbol.for("v-txt"),Dn=Symbol.for("v-cmt"),of=Symbol.for("v-stc"),Rs=[];let wr=null;function ft(e=!1){Rs.push(wr=e?null:[])}function CP(){Rs.pop(),wr=Rs[Rs.length-1]||null}let Os=1;function yc(e,t=!1){Os+=e,e<0&&wr&&t&&(wr.hasOnce=!0)}function Bg(e){return e.dynamicChildren=Os>0?wr||ca:null,CP(),Os>0&&wr&&wr.push(e),e}function yn(e,t,n,r,o,i){return Bg(So(e,t,n,r,o,i,!0))}function an(e,t,n,r,o){return Bg(It(e,t,n,r,o,!0))}function wa(e){return e?e.__v_isVNode===!0:!1}function Si(e,t){return e.type===t.type&&e.key===t.key}const Ng=({key:e})=>e??null,wc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?fn(e)||Rn(e)||gt(e)?{i:Un,r:e,k:t,f:!!n}:e:null);function So(e,t=null,n=null,r=0,o=null,i=e===Wt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ng(t),ref:t&&wc(t),scopeId:Wv,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Un};return s?(af(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=fn(n)?8:16),Os>0&&!a&&wr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&wr.push(l),l}const It=SP;function SP(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===dg)&&(e=Dn),wa(e)){const s=eo(e,t,!0);return n&&af(s,n),Os>0&&!i&&wr&&(s.shapeFlag&6?wr[wr.indexOf(e)]=s:wr.push(s)),s.patchFlag=-2,s}if(AP(e)&&(e=e.__vccOpts),t){t=_P(t);let{class:s,style:l}=t;s&&!fn(s)&&(t.class=Xl(s)),rn(l)&&(pa(l)&&!dt(l)&&(l=In({},l)),t.style=$d(l))}const a=fn(e)?1:zg(e)?128:qv(e)?64:rn(e)?4:gt(e)?2:0;return So(e,t,n,r,o,a,i,!0)}function _P(e){return e?pa(e)||_g(e)?In({},e):e:null}function eo(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:a,children:s,transition:l}=e,c=t?xa(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ng(c),ref:t&&t.ref?n&&i?dt(i)?i.concat(wc(t)):[i,wc(t)]:wc(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Wt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&eo(e.ssContent),ssFallback:e.ssFallback&&eo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&yi(u,l.clone(u)),u}function xr(e=" ",t=0){return It($s,null,e,t)}function _o(e="",t=!1){return t?(ft(),an(Dn,null,e)):It(Dn,null,e)}function to(e){return e==null||typeof e=="boolean"?It(Dn):dt(e)?It(Wt,null,e.slice()):wa(e)?Lo(e):It($s,null,String(e))}function Lo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:eo(e)}function af(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(dt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),af(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!_g(t)?t._ctx=Un:o===3&&Un&&(Un.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else gt(t)?(t={default:t,_ctx:Un},n=32):(t=String(t),r&64?(n=16,t=[xr(t)]):n=8);e.children=t,e.shapeFlag|=n}function xa(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Xl([t.class,r.class]));else if(o==="style")t.style=$d([t.style,r.style]);else if(Ul(o)){const i=t[o],a=r[o];a&&i!==a&&!(dt(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=r[o])}return t}function no(e,t,n,r=null){Lr(e,t,7,[n,r])}const kP=xg();let PP=0;function TP(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kP,i={uid:PP++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new X_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pg(r,o),emitsOptions:Ag(r,o),emit:null,emitted:null,propsDefaults:Jt,inheritAttrs:r.inheritAttrs,ctx:Jt,data:Jt,props:Jt,attrs:Jt,slots:Jt,refs:Jt,setupState:Jt,setupContext:null,suspense:n,suspenseId:n?n.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=mP.bind(null,i),e.ce&&e.ce(i),i}let Jn=null;const Ho=()=>Jn||Un;let xc,sf;{const e=Kl(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};xc=t("__VUE_INSTANCE_SETTERS__",n=>Jn=n),sf=t("__VUE_SSR_SETTERS__",n=>Ds=n)}const Es=e=>{const t=Jn;return xc(e),e.scope.on(),()=>{e.scope.off(),xc(t)}},Lg=()=>{Jn&&Jn.scope.off(),xc(null)};function Hg(e){return e.vnode.shapeFlag&4}let Ds=!1;function $P(e,t=!1,n=!1){t&&sf(t);const{props:r,children:o}=e.vnode,i=Hg(e);tP(e,r,i,t),iP(e,o,n||t);const a=i?RP(e,t):void 0;return t&&sf(!1),a}function RP(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Yk);const{setup:r}=n;if(r){Qr();const o=e.setupContext=r.length>1?EP(e):null,i=Es(e),a=ma(r,e,0,[e.props,o]),s=uv(a);if(Zr(),i(),(s||e.sp)&&!ba(e)&&og(e),s){if(a.then(Lg,Lg),t)return a.then(l=>{Vg(e,l)}).catch(l=>{sc(l,e,0)});e.asyncDep=a}else Vg(e,a)}else jg(e)}function Vg(e,t,n){gt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:rn(t)&&(e.setupState=zv(t)),jg(e)}function jg(e,t,n){const r=e.type;e.render||(e.render=r.render||Xr);{const o=Es(e);Qr();try{Gk(e)}finally{Zr(),o()}}}const OP={get(e,t){return Zn(e,"get",""),e[t]}};function EP(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,OP),slots:e.slots,emit:e.emit,expose:t}}function Cc(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(zv(bk(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ps)return Ps[n](e)},has(t,n){return n in t||n in Ps}})):e.proxy}const DP=/(?:^|[-_])\w/g,FP=e=>e.replace(DP,t=>t.toUpperCase()).replace(/[-_]/g,"");function Wg(e,t=!0){return gt(e)?e.displayName||e.name:e.name||t&&e.__name}function Ug(e,t,n=!1){let r=Wg(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=i=>{for(const a in i)if(i[a]===t)return a};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?FP(r):n?"App":"Anonymous"}function AP(e){return gt(e)&&"__vccOpts"in e}const z=(e,t)=>Pk(e,t,Ds);function h(e,t,n){const r=(i,a,s)=>{yc(-1);try{return It(i,a,s)}finally{yc(1)}},o=arguments.length;return o===2?rn(t)&&!dt(t)?wa(t)?r(e,null,[t]):r(e,t):r(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&wa(n)&&(n=[n]),r(e,t,n))}const MP="3.5.21";/**
82
+ * @vue/runtime-dom v3.5.21
83
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
84
+ * @license MIT
85
+ **/let lf;const qg=typeof window<"u"&&window.trustedTypes;if(qg)try{lf=qg.createPolicy("vue",{createHTML:e=>e})}catch{}const Yg=lf?e=>lf.createHTML(e):e=>e,IP="http://www.w3.org/2000/svg",zP="http://www.w3.org/1998/Math/MathML",ko=typeof document<"u"?document:null,Gg=ko&&ko.createElement("template"),BP={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?ko.createElementNS(IP,e):t==="mathml"?ko.createElementNS(zP,e):n?ko.createElement(e,{is:n}):ko.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>ko.createTextNode(e),createComment:e=>ko.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ko.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Gg.innerHTML=Yg(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=Gg.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vo="transition",Fs="animation",Ca=Symbol("_vtc"),Kg={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},Xg=In({},Jv,Kg),Cr=(e=>(e.displayName="Transition",e.props=Xg,e))((e,{slots:t})=>h(Nk,Zg(e),t)),_i=(e,t=[])=>{dt(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qg=e=>e?dt(e)?e.some(t=>t.length>1):e.length>1:!1;function Zg(e){const t={};for(const D in e)D in Kg||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,f=NP(o),y=f&&f[0],S=f&&f[1],{onBeforeEnter:w,onEnter:k,onEnterCancelled:b,onLeave:v,onLeaveCancelled:g,onBeforeAppear:C=w,onAppear:x=k,onAppearCancelled:T=b}=t,P=(D,I,te,ie)=>{D._enterCancelled=ie,jo(D,I?u:s),jo(D,I?c:a),te&&te()},O=(D,I)=>{D._isLeaving=!1,jo(D,d),jo(D,m),jo(D,p),I&&I()},U=D=>(I,te)=>{const ie=D?x:k,pe=()=>P(I,D,te);_i(ie,[I,pe]),Jg(()=>{jo(I,D?l:i),ro(I,D?u:s),Qg(ie)||eb(I,r,y,pe)})};return In(t,{onBeforeEnter(D){_i(w,[D]),ro(D,i),ro(D,a)},onBeforeAppear(D){_i(C,[D]),ro(D,l),ro(D,c)},onEnter:U(!1),onAppear:U(!0),onLeave(D,I){D._isLeaving=!0;const te=()=>O(D,I);ro(D,d),D._enterCancelled?(ro(D,p),uf()):(uf(),ro(D,p)),Jg(()=>{D._isLeaving&&(jo(D,d),ro(D,m),Qg(v)||eb(D,r,S,te))}),_i(v,[D,te])},onEnterCancelled(D){P(D,!1,void 0,!0),_i(b,[D])},onAppearCancelled(D){P(D,!0,void 0,!0),_i(T,[D])},onLeaveCancelled(D){O(D),_i(g,[D])}})}function NP(e){if(e==null)return null;if(rn(e))return[cf(e.enter),cf(e.leave)];{const t=cf(e);return[t,t]}}function cf(e){return W_(e)}function ro(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ca]||(e[Ca]=new Set)).add(t)}function jo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ca];n&&(n.delete(t),n.size||(e[Ca]=void 0))}function Jg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let LP=0;function eb(e,t,n,r){const o=e._endId=++LP,i=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=tb(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=m=>{m.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},s+1),e.addEventListener(c,p)}function tb(e,t){const n=window.getComputedStyle(e),r=f=>(n[f]||"").split(", "),o=r(`${Vo}Delay`),i=r(`${Vo}Duration`),a=nb(o,i),s=r(`${Fs}Delay`),l=r(`${Fs}Duration`),c=nb(s,l);let u=null,d=0,p=0;t===Vo?a>0&&(u=Vo,d=a,p=i.length):t===Fs?c>0&&(u=Fs,d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?Vo:Fs:null,p=u?u===Vo?i.length:l.length:0);const m=u===Vo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Vo}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:m}}function nb(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>rb(n)+rb(e[r])))}function rb(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function uf(){return document.body.offsetHeight}function HP(e,t,n){const r=e[Ca];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Sc=Symbol("_vod"),ob=Symbol("_vsh"),_c={name:"show",beforeMount(e,{value:t},{transition:n}){e[Sc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):As(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),As(e,!0),r.enter(e)):r.leave(e,()=>{As(e,!1)}):As(e,t))},beforeUnmount(e,{value:t}){As(e,t)}};function As(e,t){e.style.display=t?e[Sc]:"none",e[ob]=!t}const VP=Symbol(""),jP=/(?:^|;)\s*display\s*:/;function WP(e,t,n){const r=e.style,o=fn(n);let i=!1;if(n&&!o){if(t)if(fn(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&kc(r,s,"")}else for(const a in t)n[a]==null&&kc(r,a,"");for(const a in n)a==="display"&&(i=!0),kc(r,a,n[a])}else if(o){if(t!==n){const a=r[VP];a&&(n+=";"+a),r.cssText=n,i=jP.test(n)}}else t&&e.removeAttribute("style");Sc in e&&(e[Sc]=i?r.display:"",e[ob]&&(r.display="none"))}const ib=/\s*!important$/;function kc(e,t,n){if(dt(n))n.forEach(r=>kc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=UP(e,t);ib.test(n)?e.setProperty(mi(r),n.replace(ib,""),"important"):e[r]=n}}const ab=["Webkit","Moz","ms"],df={};function UP(e,t){const n=df[t];if(n)return n;let r=$r(t);if(r!=="filter"&&r in e)return df[t]=r;r=Gl(r);for(let o=0;o<ab.length;o++){const i=ab[o]+r;if(i in e)return df[t]=i}return t}const sb="http://www.w3.org/1999/xlink";function lb(e,t,n,r,o,i=K_(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(sb,t.slice(6,t.length)):e.setAttributeNS(sb,t,n):n==null||i&&!mv(n)?e.removeAttribute(t):e.setAttribute(t,i?"":go(n)?String(n):n)}function cb(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Yg(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const s=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=mv(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(o||t)}function qP(e,t,n,r){e.addEventListener(t,n,r)}function YP(e,t,n,r){e.removeEventListener(t,n,r)}const ub=Symbol("_vei");function GP(e,t,n,r,o=null){const i=e[ub]||(e[ub]={}),a=i[t];if(r&&a)a.value=r;else{const[s,l]=KP(t);if(r){const c=i[t]=ZP(r,o);qP(e,s,c,l)}else a&&(YP(e,s,a,l),i[t]=void 0)}}const db=/(?:Once|Passive|Capture)$/;function KP(e){let t;if(db.test(e)){t={};let r;for(;r=e.match(db);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mi(e.slice(2)),t]}let ff=0;const XP=Promise.resolve(),QP=()=>ff||(XP.then(()=>ff=0),ff=Date.now());function ZP(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Lr(JP(r,n.value),t,5,[r])};return n.value=e,n.attached=QP(),n}function JP(e,t){if(dt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const fb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,eT=(e,t,n,r,o,i)=>{const a=o==="svg";t==="class"?HP(e,r,a):t==="style"?WP(e,n,r):Ul(t)?Sd(t)||GP(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tT(e,t,r,a))?(cb(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&lb(e,t,r,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!fn(r))?cb(e,$r(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),lb(e,t,r,a))};function tT(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&fb(t)&&gt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 fb(t)&&fn(n)?!1:t in e}const hb=new WeakMap,pb=new WeakMap,Pc=Symbol("_moveCb"),mb=Symbol("_enterCb"),vb=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:In({},Xg,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ho(),r=Zv();let o,i;return lg(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!iT(o[0].el,n.vnode.el,a)){o=[];return}o.forEach(nT),o.forEach(rT);const s=o.filter(oT);uf(),s.forEach(l=>{const c=l.el,u=c.style;ro(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Pc]=p=>{p&&p.target!==c||(!p||p.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[Pc]=null,jo(c,a))};c.addEventListener("transitionend",d)}),o=[]}),()=>{const a=Pt(e),s=Zg(a);let l=a.tag||Wt;if(o=[],i)for(let c=0;c<i.length;c++){const u=i[c];u.el&&u.el instanceof Element&&(o.push(u),yi(u,_s(u,s,r,n)),hb.set(u,u.el.getBoundingClientRect()))}i=t.default?Wd(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&yi(u,_s(u,s,r,n))}return It(l,null,i)}}});function nT(e){const t=e.el;t[Pc]&&t[Pc](),t[mb]&&t[mb]()}function rT(e){pb.set(e,e.el.getBoundingClientRect())}function oT(e){const t=hb.get(e),n=pb.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function iT(e,t,n){const r=e.cloneNode(),o=e[Ca];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=tb(r);return i.removeChild(r),a}const aT=In({patchProp:eT},BP);let gb;function sT(){return gb||(gb=sP(aT))}const lT=(...e)=>{const t=sT().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=uT(r);if(!o)return;const i=t._component;!gt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,cT(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function cT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function uT(e){return fn(e)?document.querySelector(e):e}const hf=Symbol("IPEInjectKey"),dT=(e,t)=>(t?t.provide(hf,e):_n(hf,e),e),fT=()=>wt(hf);function hT(e){let t=".",n="__",r="--",o;if(e){let f=e.blockPrefix;f&&(t=f),f=e.elementPrefix,f&&(n=f),f=e.modifierPrefix,f&&(r=f)}const i={install(f){o=f.c;const y=f.context;y.bem={},y.bem.b=null,y.bem.els=null}};function a(f){let y,S;return{before(w){y=w.bem.b,S=w.bem.els,w.bem.els=null},after(w){w.bem.b=y,w.bem.els=S},$({context:w,props:k}){return f=typeof f=="string"?f:f({context:w,props:k}),w.bem.b=f,`${k?.bPrefix||t}${w.bem.b}`}}}function s(f){let y;return{before(S){y=S.bem.els},after(S){S.bem.els=y},$({context:S,props:w}){return f=typeof f=="string"?f:f({context:S,props:w}),S.bem.els=f.split(",").map(k=>k.trim()),S.bem.els.map(k=>`${w?.bPrefix||t}${S.bem.b}${n}${k}`).join(", ")}}}function l(f){return{$({context:y,props:S}){f=typeof f=="string"?f:f({context:y,props:S});const w=f.split(",").map(v=>v.trim());function k(v){return w.map(g=>`&${S?.bPrefix||t}${y.bem.b}${v!==void 0?`${n}${v}`:""}${r}${g}`).join(", ")}const b=y.bem.els;return b!==null?k(b[0]):k()}}}function c(f){return{$({context:y,props:S}){f=typeof f=="string"?f:f({context:y,props:S});const w=y.bem.els;return`&:not(${S?.bPrefix||t}${y.bem.b}${w!==null&&w.length>0?`${n}${w[0]}`:""}${r}${f})`}}}return Object.assign(i,{cB:(...f)=>o(a(f[0]),f[1],f[2]),cE:(...f)=>o(s(f[0]),f[1],f[2]),cM:(...f)=>o(l(f[0]),f[1],f[2]),cNotM:(...f)=>o(c(f[0]),f[1],f[2])}),i}function pT(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const bb=/\s*,(?![^(]*\))\s*/g,mT=/\s+/g;function vT(e,t){const n=[];return t.split(bb).forEach(r=>{let o=pT(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>n.push(a))}),n}function gT(e,t){const n=[];return t.split(bb).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function bT(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=vT(t,n):t=gT(t,n))}),t.join(", ").replace(mT," ")}function yb(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Tc(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function yT(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function $c(e){return e?/^\s*@(s|m)/.test(e):!1}const wT=/[A-Z]/g;function wb(e){return e.replace(wT,t=>"-"+t.toLowerCase())}function xT(e,t=" "){return typeof e=="object"&&e!==null?` {
86
+ `+Object.entries(e).map(n=>t+` ${wb(n[0])}: ${n[1]};`).join(`
87
+ `)+`
88
+ `+t+"}":`: ${e};`}function CT(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function xb(e,t,n,r){if(!t)return"";const o=CT(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
89
+ ${o}
90
+ }`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` {
91
+ }`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=o[s];if(s==="raw"){a.push(`
92
+ `+l+`
93
+ `);return}s=wb(s),l!=null&&a.push(` ${s}${xT(l)}`)}),e&&a.push("}"),a.join(`
94
+ `)}function pf(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))pf(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?pf(o,t,n):o&&n(o)}else r&&n(r)})}function Cb(e,t,n,r,o){const i=e.$;let a="";if(!i||typeof i=="string")$c(i)?a=i:t.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:o});$c(c)?a=c:t.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")$c(i.$)?a=i.$:t.push(i.$);else if(i.$){const c=i.$({context:r.context,props:o});$c(c)?a=c:t.push(c)}const s=bT(t),l=xb(s,e.props,r,o);a?n.push(`${a} {`):l.length&&n.push(l),e.children&&pf(e.children,{context:r.context,props:o},c=>{if(typeof c=="string"){const u=xb(s,{raw:c},r,o);n.push(u)}else Cb(c,t,n,r,o)}),t.pop(),a&&n.push("}"),i&&i.after&&i.after(r.context)}function ST(e,t,n){const r=[];return Cb(e,[],r,t,n),r.join(`
95
+
96
+ `)}function mf(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 _T(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(yb),t.els=[];else{const i=Tc(n,r);i&&o.includes(i)&&(yb(i),t.els=o.filter(a=>a!==i))}}function Sb(e,t){e.push(t)}function kT(e,t,n,r,o,i,a,s,l){let c;if(n===void 0&&(c=t.render(r),n=mf(c)),l){l.adapter(n,c??t.render(r));return}s===void 0&&(s=document.head);const u=Tc(n,s);if(u!==null&&!i)return u;const d=u??yT(n);if(c===void 0&&(c=t.render(r)),d.textContent=c,u!==null)return u;if(a){const p=s.querySelector(`meta[name="${a}"]`);if(p)return s.insertBefore(d,p),Sb(t.els,d),d}return o?s.insertBefore(d,s.querySelector("style, link")):s.appendChild(d),Sb(t.els,d),d}function PT(e){return ST(this,this.instance,e)}function TT(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:i=!1,anchorMetaName:a,parent:s}=e;return kT(this.instance,this,t,r,o,i,a,s,n)}function $T(e={}){const{id:t,parent:n}=e;_T(this.instance,this,t,n)}const Rc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:PT,mount:TT,unmount:$T}},RT=function(e,t,n,r){return Array.isArray(t)?Rc(e,{$:null},null,t):Array.isArray(n)?Rc(e,t,null,n):Array.isArray(r)?Rc(e,t,n,r):Rc(e,t,n,null)};function _b(e={}){const t={c:(...n)=>RT(t,...n),use:(n,...r)=>n.install(t,...r),find:Tc,context:{},config:e};return t}function OT(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Tc(e)!==null}const Oc=".n-",ET="__",DT="--",kb=_b(),Pb=hT({blockPrefix:Oc,elementPrefix:ET,modifierPrefix:DT});kb.use(Pb);const{c:G,find:T5}=kb,{cB:A,cE:X,cM:Z,cNotM:zt}=Pb;function Tb(e){return G(({props:{bPrefix:t}})=>`${t||Oc}modal, ${t||Oc}drawer`,[e])}function $b(e){return G(({props:{bPrefix:t}})=>`${t||Oc}popover`,[e])}const FT=(...e)=>G(">",[A(...e)]);function Be(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}let Ec=[];const Rb=new WeakMap;function AT(){Ec.forEach(e=>e(...Rb.get(e))),Ec=[]}function Ob(e,...t){Rb.set(e,t),!Ec.includes(e)&&Ec.push(e)===1&&requestAnimationFrame(AT)}function ki(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Po(e){return e.composedPath()[0]||null}function Yn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Wo(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function er(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function MT(e,t){const[n,r]=e.split(" ");return{row:n,col:r||n}}const Eb={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function IT(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function zT(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const oo="^\\s*",io="\\s*$",Uo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Sr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Pi="([0-9A-Fa-f])",Ti="([0-9A-Fa-f]{2})",Db=new RegExp(`${oo}hsl\\s*\\(${Sr},${Uo},${Uo}\\)${io}`),Fb=new RegExp(`${oo}hsv\\s*\\(${Sr},${Uo},${Uo}\\)${io}`),Ab=new RegExp(`${oo}hsla\\s*\\(${Sr},${Uo},${Uo},${Sr}\\)${io}`),Mb=new RegExp(`${oo}hsva\\s*\\(${Sr},${Uo},${Uo},${Sr}\\)${io}`),BT=new RegExp(`${oo}rgb\\s*\\(${Sr},${Sr},${Sr}\\)${io}`),NT=new RegExp(`${oo}rgba\\s*\\(${Sr},${Sr},${Sr},${Sr}\\)${io}`),LT=new RegExp(`${oo}#${Pi}${Pi}${Pi}${io}`),HT=new RegExp(`${oo}#${Ti}${Ti}${Ti}${io}`),VT=new RegExp(`${oo}#${Pi}${Pi}${Pi}${Pi}${io}`),jT=new RegExp(`${oo}#${Ti}${Ti}${Ti}${Ti}${io}`);function fr(e){return parseInt(e,16)}function WT(e){try{let t;if(t=Ab.exec(e))return[Fc(t[1]),Yo(t[5]),Yo(t[9]),$i(t[13])];if(t=Db.exec(e))return[Fc(t[1]),Yo(t[5]),Yo(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function UT(e){try{let t;if(t=Mb.exec(e))return[Fc(t[1]),Yo(t[5]),Yo(t[9]),$i(t[13])];if(t=Fb.exec(e))return[Fc(t[1]),Yo(t[5]),Yo(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function qo(e){try{let t;if(t=HT.exec(e))return[fr(t[1]),fr(t[2]),fr(t[3]),1];if(t=BT.exec(e))return[tr(t[1]),tr(t[5]),tr(t[9]),1];if(t=NT.exec(e))return[tr(t[1]),tr(t[5]),tr(t[9]),$i(t[13])];if(t=LT.exec(e))return[fr(t[1]+t[1]),fr(t[2]+t[2]),fr(t[3]+t[3]),1];if(t=jT.exec(e))return[fr(t[1]),fr(t[2]),fr(t[3]),$i(fr(t[4])/255)];if(t=VT.exec(e))return[fr(t[1]+t[1]),fr(t[2]+t[2]),fr(t[3]+t[3]),$i(fr(t[4]+t[4])/255)];if(e in Eb)return qo(Eb[e]);if(Db.test(e)||Ab.test(e)){const[n,r,o,i]=WT(e);return[...zT(n,r,o),i]}else if(Fb.test(e)||Mb.test(e)){const[n,r,o,i]=UT(e);return[...IT(n,r,o),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function qT(e){return e>1?1:e<0?0:e}function vf(e,t,n,r){return`rgba(${tr(e)}, ${tr(t)}, ${tr(n)}, ${qT(r)})`}function gf(e,t,n,r,o){return tr((e*t*(1-r)+n*r)/o)}function bf(e,t){Array.isArray(e)||(e=qo(e)),Array.isArray(t)||(t=qo(t));const n=e[3],r=t[3],o=$i(n+r-n*r);return vf(gf(e[0],n,t[0],r,o),gf(e[1],n,t[1],r,o),gf(e[2],n,t[2],r,o),o)}function ht(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:qo(e);return typeof t.alpha=="number"?vf(n,r,o,t.alpha):vf(n,r,o,i)}function Dc(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:qo(e),{lightness:a=1,alpha:s=1}=t;return YT([n*a,r*a,o*a,i*s])}function $i(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Fc(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function tr(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Yo(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function YT(e){const[t,n,r]=e;return 3 in e?`rgba(${tr(t)}, ${tr(n)}, ${tr(r)}, ${$i(e[3])})`:`rgba(${tr(t)}, ${tr(n)}, ${tr(r)}, 1)`}function Ms(e=8){return Math.random().toString(16).slice(2,2+e)}function Ac(e){return e.composedPath()[0]}const GT={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function KT(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Ac(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Ac(a))},i=a=>{r&&(t.contains(Ac(a))||n(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 Ib(e,t,n){const r=GT[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=KT(e,t,n)),i}function XT(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Ib(e,t,n);return Object.keys(o).forEach(i=>{sn(i,document,o[i],r)}),!0}return!1}function QT(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Ib(e,t,n);return Object.keys(o).forEach(i=>{en(i,document,o[i],r)}),!0}return!1}function ZT(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(x,T,P){const O=x[T];return x[T]=function(){return P.apply(x,arguments),O.apply(x,arguments)},x}function i(x,T){x[T]=Event.prototype[T]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var x;return(x=a.get(this))!==null&&x!==void 0?x:null}function c(x,T){s!==void 0&&Object.defineProperty(x,"currentTarget",{configurable:!0,enumerable:!0,get:T??s.get})}const u={bubble:{},capture:{}},d={};function p(){const x=function(T){const{type:P,eventPhase:O,bubbles:U}=T,D=Ac(T);if(O===2)return;const I=O===1?"capture":"bubble";let te=D;const ie=[];for(;te===null&&(te=window),ie.push(te),te!==window;)te=te.parentNode||null;const pe=u.capture[P],ce=u.bubble[P];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,l),I==="capture"){if(pe===void 0)return;for(let ge=ie.length-1;ge>=0&&!e.has(T);--ge){const Ae=ie[ge],Re=pe.get(Ae);if(Re!==void 0){a.set(T,Ae);for(const Ee of Re){if(t.has(T))break;Ee(T)}}if(ge===0&&!U&&ce!==void 0){const Ee=ce.get(Ae);if(Ee!==void 0)for(const ue of Ee){if(t.has(T))break;ue(T)}}}}else if(I==="bubble"){if(ce===void 0)return;for(let ge=0;ge<ie.length&&!e.has(T);++ge){const Ae=ie[ge],Re=ce.get(Ae);if(Re!==void 0){a.set(T,Ae);for(const Ee of Re){if(t.has(T))break;Ee(T)}}}}i(T,"stopPropagation"),i(T,"stopImmediatePropagation"),c(T)};return x.displayName="evtdUnifiedHandler",x}function m(){const x=function(T){const{type:P,eventPhase:O}=T;if(O!==2)return;const U=d[P];U!==void 0&&U.forEach(D=>D(T))};return x.displayName="evtdUnifiedWindowEventHandler",x}const f=p(),y=m();function S(x,T){const P=u[x];return P[T]===void 0&&(P[T]=new Map,window.addEventListener(T,f,x==="capture")),P[T]}function w(x){return d[x]===void 0&&(d[x]=new Set,window.addEventListener(x,y)),d[x]}function k(x,T){let P=x.get(T);return P===void 0&&x.set(T,P=new Set),P}function b(x,T,P,O){const U=u[T][P];if(U!==void 0){const D=U.get(x);if(D!==void 0&&D.has(O))return!0}return!1}function v(x,T){const P=d[x];return!!(P!==void 0&&P.has(T))}function g(x,T,P,O){let U;if(typeof O=="object"&&O.once===!0?U=pe=>{C(x,T,U,O),P(pe)}:U=P,XT(x,T,U,O))return;const I=O===!0||typeof O=="object"&&O.capture===!0?"capture":"bubble",te=S(I,x),ie=k(te,T);if(ie.has(U)||ie.add(U),T===window){const pe=w(x);pe.has(U)||pe.add(U)}}function C(x,T,P,O){if(QT(x,T,P,O))return;const D=O===!0||typeof O=="object"&&O.capture===!0,I=D?"capture":"bubble",te=S(I,x),ie=k(te,T);if(T===window&&!b(T,D?"bubble":"capture",x,P)&&v(x,P)){const ce=d[x];ce.delete(P),ce.size===0&&(window.removeEventListener(x,y),d[x]=void 0)}ie.has(P)&&ie.delete(P),ie.size===0&&te.delete(T),te.size===0&&(window.removeEventListener(x,f,I==="capture"),u[I][x]=void 0)}return{on:g,off:C}}const{on:sn,off:en}=ZT();function JT(e){const t=K(!!e.value);if(t.value)return fa(t);const n=St(e,r=>{r&&(t.value=!0,n())});return fa(t)}function cn(e){const t=z(e),n=K(t.value);return St(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function e$(){return Ho()!==null}const t$=typeof window<"u";let Sa,Is;(()=>{var e,t;Sa=t$?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Is=!1,Sa!==void 0?Sa.then(()=>{Is=!0}):Is=!0})();function zb(e){if(Is)return;let t=!1;En(()=>{Is||Sa?.then(()=>{t||e()})}),qn(()=>{t=!0})}function Vn(e,t){return St(e,n=>{n!==void 0&&(t.value=n)}),z(()=>e.value===void 0?t.value:e.value)}function Go(){const e=K(!1);return En(()=>{e.value=!0}),fa(e)}function zs(e,t){return z(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const n$=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function r$(){return n$}function Bb(e={},t){const n=nc({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=l=>{switch(l.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==l.key)return;const u=r[c];if(typeof u=="function")u(l);else{const{stop:d=!1,prevent:p=!1}=u;d&&l.stopPropagation(),p&&l.preventDefault(),u.handler(l)}})},a=l=>{switch(l.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==l.key)return;const u=o[c];if(typeof u=="function")u(l);else{const{stop:d=!1,prevent:p=!1}=u;d&&l.stopPropagation(),p&&l.preventDefault(),u.handler(l)}})},s=()=>{sn("keydown",document,i),sn("keyup",document,a)};return e$()?(wi(s),qn(()=>{en("keydown",document,i),en("keyup",document,a)})):s(),fa(n)}function R5(e){return e}const yf="n-internal-select-menu",Nb="n-internal-select-menu-body",Lb="n-drawer-body",Hb="n-modal-body",Vb="n-popover-body",jb="__disabled__";function kn(e){const t=wt(Hb,null),n=wt(Lb,null),r=wt(Vb,null),o=wt(Nb,null),i=K();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};En(()=>{sn("fullscreenchange",document,a)}),qn(()=>{en("fullscreenchange",document,a)})}return cn(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?jb:s===!0?i.value||"body":s:t?.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:s??(i.value||"body")})}kn.tdkey=jb,kn.propTo={type:[String,Object,Boolean],default:void 0};function o$(e,t,n){var r;const o=wt(e,null);if(o===null)return;const i=(r=Ho())===null||r===void 0?void 0:r.proxy;St(n,a),a(n.value),qn(()=>{a(void 0,n.value)});function a(c,u){if(!o)return;const d=o[t];u!==void 0&&s(d,u),c!==void 0&&l(d,c)}function s(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(d=>d===i),1)}function l(c,u){c[u]||(c[u]=[]),~c[u].findIndex(d=>d===i)||c[u].push(i)}}const _a=typeof document<"u"&&typeof window<"u";let Wb=!1;function i$(){if(_a&&window.CSS&&!Wb&&(Wb=!0,"registerProperty"in 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 a$(e){const t={isDeactivated:!1};let n=!1;return Ud(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),qd(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function wf(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function xf(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(xr(String(r)));return}if(Array.isArray(r)){xf(r,t,n);return}if(r.type===Wt){if(r.children===null)return;Array.isArray(r.children)&&xf(r.children,t,n)}else r.type!==Dn&&n.push(r)}}),n}function Ub(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=xf(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Ko=null;function qb(){if(Ko===null&&(Ko=document.getElementById("v-binder-view-measurer"),Ko===null)){Ko=document.createElement("div"),Ko.id="v-binder-view-measurer";const{style:e}=Ko;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ko)}return Ko.getBoundingClientRect()}function s$(e,t){const n=qb();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Cf(e){const t=e.getBoundingClientRect(),n=qb();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function l$(e){return e.nodeType===9?null:e.parentNode}function Yb(e){if(e===null)return null;const t=l$(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Yb(t)}const Ri=Le({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;_n("VBinder",(t=Ho())===null||t===void 0?void 0:t.proxy);const n=wt("VBinder",null),r=K(null),o=w=>{r.value=w,n&&e.syncTargetWithParent&&n.setTargetRef(w)};let i=[];const a=()=>{let w=r.value;for(;w=Yb(w),w!==null;)i.push(w);for(const k of i)sn("scroll",k,d,!0)},s=()=>{for(const w of i)en("scroll",w,d,!0);i=[]},l=new Set,c=w=>{l.size===0&&a(),l.has(w)||l.add(w)},u=w=>{l.has(w)&&l.delete(w),l.size===0&&s()},d=()=>{Ob(p)},p=()=>{l.forEach(w=>w())},m=new Set,f=w=>{m.size===0&&sn("resize",window,S),m.has(w)||m.add(w)},y=w=>{m.has(w)&&m.delete(w),m.size===0&&en("resize",window,S)},S=()=>{m.forEach(w=>w())};return qn(()=>{en("resize",window,S),s()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:u,addResizeListener:f,removeResizeListener:y}},render(){return wf("binder",this.$slots)}}),Oi=Le({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=wt("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Hr(Ub("follower",this.$slots),[[t]]):Ub("follower",this.$slots)}}),ka="@@mmoContext",c$={mounted(e,{value:t}){e[ka]={handler:void 0},typeof t=="function"&&(e[ka].handler=t,sn("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[ka];typeof t=="function"?n.handler?n.handler!==t&&(en("mousemoveoutside",e,n.handler),n.handler=t,sn("mousemoveoutside",e,t)):(e[ka].handler=t,sn("mousemoveoutside",e,t)):n.handler&&(en("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[ka];t&&en("mousemoveoutside",e,t),e[ka].handler=void 0}},Pa="@@coContext",Xo={mounted(e,{value:t,modifiers:n}){e[Pa]={handler:void 0},typeof t=="function"&&(e[Pa].handler=t,sn("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Pa];typeof t=="function"?r.handler?r.handler!==t&&(en("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,sn("clickoutside",e,t,{capture:n.capture})):(e[Pa].handler=t,sn("clickoutside",e,t,{capture:n.capture})):r.handler&&(en("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Pa];n&&en("clickoutside",e,n,{capture:t.capture}),e[Pa].handler=void 0}};function u$(e,t){console.error(`[vdirs/${e}]: ${t}`)}class d${constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&u$("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((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const Sf=new d$,Ta="@@ziContext",Gb={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Ta]={enabled:!!o,initialized:!1},o&&(Sf.ensureZIndex(e,r),e[Ta].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Ta].enabled;o&&!i&&(Sf.ensureZIndex(e,r),e[Ta].initialized=!0),e[Ta].enabled=!!o},unmounted(e,t){if(!e[Ta].initialized)return;const{value:n={}}=t,{zIndex:r}=n;Sf.unregister(e,r)}},f$="@css-render/vue3-ssr";function h$(e,t){return`<style cssr-id="${e}">
97
+ ${t}
98
+ </style>`}function p$(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(h$(e,t)))}const m$=typeof document<"u";function Qo(){if(m$)return;const e=wt(f$,null);if(e!==null)return{adapter:(t,n)=>p$(t,n,e),context:e}}function Kb(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:ao}=_b(),Mc="vueuc-style";function Xb(e){return e&-e}class Qb{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;o<t+1;++o)r[o]=0;this.ft=r}add(t,n){if(n===0)return;const{l:r,ft:o}=this;for(t+=1;t<=r;)o[t]+=n,t+=Xb(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:n,min:r,l:o}=this;if(t>o)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=Xb(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i<t){if(n===o)return this.sum(n+1)<=t?n+1:o;n=o}else return o}return n}}function Zb(e){return typeof e=="string"?document.querySelector(e):e()||null}const v$=Le({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:JT(Xe(e,"show")),mergedTo:z(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?wf("lazy-teleport",this.$slots):h(zk,{disabled:this.disabled,to:this.mergedTo},wf("lazy-teleport",this.$slots)):null}}),Ic={top:"bottom",bottom:"top",left:"right",right:"left"},Jb={start:"end",center:"center",end:"start"},_f={top:"height",bottom:"height",left:"width",right:"width"},g$={"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"},b$={"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"},y$={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},e0={top:!0,bottom:!1,left:!0,right:!1},t0={top:"end",bottom:"start",left:"end",right:"start"};function w$(e,t,n,r,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=(m,f,y)=>{let S=0,w=0;const k=n[m]-t[f]-t[m];return k>0&&r&&(y?w=e0[f]?k:-k:S=e0[f]?k:-k),{left:S,top:w}},d=a==="left"||a==="right";if(l!=="center"){const m=y$[e],f=Ic[m],y=_f[m];if(n[y]>t[y]){if(t[m]+t[y]<n[y]){const S=(n[y]-t[y])/2;t[m]<S||t[f]<S?t[m]<t[f]?(l=Jb[s],c=u(y,f,d)):c=u(y,m,d):l="center"}}else n[y]<t[y]&&t[f]<0&&t[m]>t[f]&&(l=Jb[s])}else{const m=a==="bottom"||a==="top"?"left":"top",f=Ic[m],y=_f[m],S=(n[y]-t[y])/2;(t[m]<S||t[f]<S)&&(t[m]>t[f]?(l=t0[m],c=u(y,m,d)):(l=t0[f],c=u(y,f,d)))}let p=a;return t[a]<n[_f[a]]&&t[a]<t[Ic[a]]&&(p=Ic[a]),{placement:l!=="center"?`${p}-${l}`:p,left:c.left,top:c.top}}function x$(e,t){return t?b$[e]:g$[e]}function C$(e,t,n,r,o,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}const S$=ao([ao(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),ao(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[ao("> *",{pointerEvents:"all"})])]),Ei=Le({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=wt("VBinder"),n=cn(()=>e.enabled!==void 0?e.enabled:e.show),r=K(null),o=K(null),i=()=>{const{syncTrigger:p}=e;p.includes("scroll")&&t.addScrollListener(l),p.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};En(()=>{n.value&&(l(),i())});const s=Qo();S$.mount({id:"vueuc/binder",head:!0,anchorMetaName:Mc,ssr:s}),qn(()=>{a()}),zb(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const p=r.value;if(p===null)return;const m=t.targetRef,{x:f,y,overlap:S}=e,w=f!==void 0&&y!==void 0?s$(f,y):Cf(m);p.style.setProperty("--v-target-width",`${Math.round(w.width)}px`),p.style.setProperty("--v-target-height",`${Math.round(w.height)}px`);const{width:k,minWidth:b,placement:v,internalShift:g,flip:C}=e;p.setAttribute("v-placement",v),S?p.setAttribute("v-overlap",""):p.removeAttribute("v-overlap");const{style:x}=p;k==="target"?x.width=`${w.width}px`:k!==void 0?x.width=k:x.width="",b==="target"?x.minWidth=`${w.width}px`:b!==void 0?x.minWidth=b:x.minWidth="";const T=Cf(p),P=Cf(o.value),{left:O,top:U,placement:D}=w$(v,w,T,g,C,S),I=x$(D,S),{left:te,top:ie,transform:pe}=C$(D,P,w,U,O,S);p.setAttribute("v-placement",D),p.style.setProperty("--v-offset-left",`${Math.round(O)}px`),p.style.setProperty("--v-offset-top",`${Math.round(U)}px`),p.style.transform=`translateX(${te}) translateY(${ie}) ${pe}`,p.style.setProperty("--v-transform-origin",I),p.style.transformOrigin=I};St(n,p=>{p?(i(),c()):a()});const c=()=>{On().then(l).catch(p=>console.error(p))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(p=>{St(Xe(e,p),l)}),["teleportDisabled"].forEach(p=>{St(Xe(e,p),c)}),St(Xe(e,"syncTrigger"),p=>{p.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),p.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const u=Go(),d=cn(()=>{const{to:p}=e;if(p!==void 0)return p;u.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:d,syncPosition:l}},render(){return h(v$,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[h("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?Hr(n,[[Gb,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Di=[],_$=function(){return Di.some(function(e){return e.activeTargets.length>0})},k$=function(){return Di.some(function(e){return e.skippedTargets.length>0})},n0="ResizeObserver loop completed with undelivered notifications.",P$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:n0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=n0),window.dispatchEvent(e)},Bs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Bs||(Bs={}));var Fi=function(e){return Object.freeze(e)},T$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Fi(this)}return e}(),r0=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Fi(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,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}(),kf=function(e){return e instanceof SVGElement&&"getBBox"in e},o0=function(e){if(kf(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},i0=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},$$=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},Ns=typeof window<"u"?window:{},zc=new WeakMap,a0=/auto|scroll/,R$=/^tb|vertical/,O$=/msie|trident/i.test(Ns.navigator&&Ns.navigator.userAgent),so=function(e){return parseFloat(e||"0")},$a=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new T$((n?t:e)||0,(n?e:t)||0)},s0=Fi({devicePixelContentBoxSize:$a(),borderBoxSize:$a(),contentBoxSize:$a(),contentRect:new r0(0,0,0,0)}),l0=function(e,t){if(t===void 0&&(t=!1),zc.has(e)&&!t)return zc.get(e);if(o0(e))return zc.set(e,s0),s0;var n=getComputedStyle(e),r=kf(e)&&e.ownerSVGElement&&e.getBBox(),o=!O$&&n.boxSizing==="border-box",i=R$.test(n.writingMode||""),a=!r&&a0.test(n.overflowY||""),s=!r&&a0.test(n.overflowX||""),l=r?0:so(n.paddingTop),c=r?0:so(n.paddingRight),u=r?0:so(n.paddingBottom),d=r?0:so(n.paddingLeft),p=r?0:so(n.borderTopWidth),m=r?0:so(n.borderRightWidth),f=r?0:so(n.borderBottomWidth),y=r?0:so(n.borderLeftWidth),S=d+c,w=l+u,k=y+m,b=p+f,v=s?e.offsetHeight-b-e.clientHeight:0,g=a?e.offsetWidth-k-e.clientWidth:0,C=o?S+k:0,x=o?w+b:0,T=r?r.width:so(n.width)-C-g,P=r?r.height:so(n.height)-x-v,O=T+S+g+k,U=P+w+v+b,D=Fi({devicePixelContentBoxSize:$a(Math.round(T*devicePixelRatio),Math.round(P*devicePixelRatio),i),borderBoxSize:$a(O,U,i),contentBoxSize:$a(T,P,i),contentRect:new r0(d,l,T,P)});return zc.set(e,D),D},c0=function(e,t,n){var r=l0(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Bs.DEVICE_PIXEL_CONTENT_BOX:return a;case Bs.BORDER_BOX:return o;default:return i}},E$=function(){function e(t){var n=l0(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Fi([n.borderBoxSize]),this.contentBoxSize=Fi([n.contentBoxSize]),this.devicePixelContentBoxSize=Fi([n.devicePixelContentBoxSize])}return e}(),u0=function(e){if(o0(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},D$=function(){var e=1/0,t=[];Di.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var u=new E$(c.target),d=u0(c.target);s.push(u),c.lastReportedSize=c0(c.target,c.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},d0=function(e){Di.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(u0(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},F$=function(){var e=0;for(d0(e);_$();)e=D$(),d0(e);return k$()&&P$(),e>0},Pf,f0=[],A$=function(){return f0.splice(0).forEach(function(e){return e()})},M$=function(e){if(!Pf){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return A$()}).observe(n,r),Pf=function(){n.textContent="".concat(t?t--:t++)}}f0.push(e),Pf()},I$=function(e){M$(function(){requestAnimationFrame(e)})},Bc=0,z$=function(){return!!Bc},B$=250,N$={attributes:!0,characterData:!0,childList:!0,subtree:!0},h0=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],p0=function(e){return e===void 0&&(e=0),Date.now()+e},Tf=!1,L$=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=B$),!Tf){Tf=!0;var r=p0(t);I$(function(){var o=!1;try{o=F$()}finally{if(Tf=!1,t=r-p0(),!z$())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,N$)};document.body?n():Ns.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),h0.forEach(function(n){return Ns.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),h0.forEach(function(n){return Ns.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),$f=new L$,m0=function(e){!Bc&&e>0&&$f.start(),Bc+=e,!Bc&&$f.stop()},H$=function(e){return!kf(e)&&!$$(e)&&getComputedStyle(e).display==="inline"},V$=function(){function e(t,n){this.target=t,this.observedBox=n||Bs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=c0(this.target,this.observedBox,!0);return H$(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),j$=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Nc=new WeakMap,v0=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Lc=function(){function e(){}return e.connect=function(t,n){var r=new j$(t,n);Nc.set(t,r)},e.observe=function(t,n,r){var o=Nc.get(t),i=o.observationTargets.length===0;v0(o.observationTargets,n)<0&&(i&&Di.push(o),o.observationTargets.push(new V$(n,r&&r.box)),m0(1),$f.schedule())},e.unobserve=function(t,n){var r=Nc.get(t),o=v0(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Di.splice(Di.indexOf(r),1),r.observationTargets.splice(o,1),m0(-1))},e.disconnect=function(t){var n=this,r=Nc.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),W$=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.");Lc.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!i0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Lc.observe(this,t,n)},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(!i0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Lc.unobserve(this,t)},e.prototype.disconnect=function(){Lc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class U${constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||W$)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Ls=new U$,Zo=Le({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Ho().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}En(()=>{const o=n.$el;if(o===void 0){Kb("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Kb("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Ls.registerHandler(o.nextElementSibling,r),t=!0)}),qn(()=>{t&&Ls.unregisterHandler(n.$el.nextElementSibling)})},render(){return Yd(this.$slots,"default")}});let Hc;function q$(){return typeof document>"u"?!1:(Hc===void 0&&("matchMedia"in window?Hc=window.matchMedia("(pointer:coarse)").matches:Hc=!1),Hc)}let Rf;function g0(){return typeof document>"u"?1:(Rf===void 0&&(Rf="chrome"in window?window.devicePixelRatio:1),Rf)}const b0="VVirtualListXScroll";function Y$({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){const r=K(0),o=K(0),i=z(()=>{const c=e.value;if(c.length===0)return null;const u=new Qb(c.length,0);return c.forEach((d,p)=>{u.add(p,d.width)}),u}),a=cn(()=>{const c=i.value;return c!==null?Math.max(c.getBound(o.value)-1,0):0}),s=c=>{const u=i.value;return u!==null?u.sum(c):0},l=cn(()=>{const c=i.value;return c!==null?Math.min(c.getBound(o.value+r.value)+1,e.value.length-1):0});return _n(b0,{startIndexRef:a,endIndexRef:l,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:s}),{listWidthRef:r,scrollLeftRef:o}}const y0=Le({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:o,renderItemWithColsRef:i}=wt(b0);return{startIndex:e,endIndex:t,columns:n,renderCol:o,renderItemWithCols:i,getLeft:r}},render(){const{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:o,getLeft:i,item:a}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:a,getLeft:i});if(r!=null){const s=[];for(let l=e;l<=t;++l){const c=n[l];s.push(r({column:c,left:i(l),item:a}))}return s}return null}}),G$=ao(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[ao("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[ao("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Vc=Le({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Qo();G$.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Mc,ssr:t}),En(()=>{const{defaultScrollIndex:I,defaultScrollKey:te}=e;I!=null?S({index:I}):te!=null&&S({key:te})});let n=!1,r=!1;Ud(()=>{if(n=!1,!r){r=!0;return}S({top:m.value,left:a.value})}),qd(()=>{n=!0,r||(r=!0)});const o=cn(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let I=0;return e.columns.forEach(te=>{I+=te.width}),I}),i=z(()=>{const I=new Map,{keyField:te}=e;return e.items.forEach((ie,pe)=>{I.set(ie[te],pe)}),I}),{scrollLeftRef:a,listWidthRef:s}=Y$({columnsRef:Xe(e,"columns"),renderColRef:Xe(e,"renderCol"),renderItemWithColsRef:Xe(e,"renderItemWithCols")}),l=K(null),c=K(void 0),u=new Map,d=z(()=>{const{items:I,itemSize:te,keyField:ie}=e,pe=new Qb(I.length,te);return I.forEach((ce,ge)=>{const Ae=ce[ie],Re=u.get(Ae);Re!==void 0&&pe.add(ge,Re)}),pe}),p=K(0),m=K(0),f=cn(()=>Math.max(d.value.getBound(m.value-Yn(e.paddingTop))-1,0)),y=z(()=>{const{value:I}=c;if(I===void 0)return[];const{items:te,itemSize:ie}=e,pe=f.value,ce=Math.min(pe+Math.ceil(I/ie+1),te.length-1),ge=[];for(let Ae=pe;Ae<=ce;++Ae)ge.push(te[Ae]);return ge}),S=(I,te)=>{if(typeof I=="number"){v(I,te,"auto");return}const{left:ie,top:pe,index:ce,key:ge,position:Ae,behavior:Re,debounce:Ee=!0}=I;if(ie!==void 0||pe!==void 0)v(ie,pe,Re);else if(ce!==void 0)b(ce,Re,Ee);else if(ge!==void 0){const ue=i.value.get(ge);ue!==void 0&&b(ue,Re,Ee)}else Ae==="bottom"?v(0,Number.MAX_SAFE_INTEGER,Re):Ae==="top"&&v(0,0,Re)};let w,k=null;function b(I,te,ie){const{value:pe}=d,ce=pe.sum(I)+Yn(e.paddingTop);if(!ie)l.value.scrollTo({left:0,top:ce,behavior:te});else{w=I,k!==null&&window.clearTimeout(k),k=window.setTimeout(()=>{w=void 0,k=null},16);const{scrollTop:ge,offsetHeight:Ae}=l.value;if(ce>ge){const Re=pe.get(I);ce+Re<=ge+Ae||l.value.scrollTo({left:0,top:ce+Re-Ae,behavior:te})}else l.value.scrollTo({left:0,top:ce,behavior:te})}}function v(I,te,ie){l.value.scrollTo({left:I,top:te,behavior:ie})}function g(I,te){var ie,pe,ce;if(n||e.ignoreItemResize||D(te.target))return;const{value:ge}=d,Ae=i.value.get(I),Re=ge.get(Ae),Ee=(ce=(pe=(ie=te.borderBoxSize)===null||ie===void 0?void 0:ie[0])===null||pe===void 0?void 0:pe.blockSize)!==null&&ce!==void 0?ce:te.contentRect.height;if(Ee===Re)return;Ee-e.itemSize===0?u.delete(I):u.set(I,Ee-e.itemSize);const _e=Ee-Re;if(_e===0)return;ge.add(Ae,_e);const me=l.value;if(me!=null){if(w===void 0){const De=ge.sum(Ae);me.scrollTop>De&&me.scrollBy(0,_e)}else if(Ae<w)me.scrollBy(0,_e);else if(Ae===w){const De=ge.sum(Ae);Ee+De>me.scrollTop+me.offsetHeight&&me.scrollBy(0,_e)}U()}p.value++}const C=!q$();let x=!1;function T(I){var te;(te=e.onScroll)===null||te===void 0||te.call(e,I),(!C||!x)&&U()}function P(I){var te;if((te=e.onWheel)===null||te===void 0||te.call(e,I),C){const ie=l.value;if(ie!=null){if(I.deltaX===0&&(ie.scrollTop===0&&I.deltaY<=0||ie.scrollTop+ie.offsetHeight>=ie.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),ie.scrollTop+=I.deltaY/g0(),ie.scrollLeft+=I.deltaX/g0(),U(),x=!0,Ob(()=>{x=!1})}}}function O(I){if(n||D(I.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(I.contentRect.height===c.value)return}else if(I.contentRect.height===c.value&&I.contentRect.width===s.value)return;c.value=I.contentRect.height,s.value=I.contentRect.width;const{onResize:te}=e;te!==void 0&&te(I)}function U(){const{value:I}=l;I!=null&&(m.value=I.scrollTop,a.value=I.scrollLeft)}function D(I){let te=I;for(;te!==null;){if(te.style.display==="none")return!0;te=te.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:z(()=>{const{itemResizable:I}=e,te=Wo(d.value.sum());return p.value,[e.itemsStyle,{boxSizing:"content-box",width:Wo(o.value),height:I?"":te,minHeight:I?te:"",paddingTop:Wo(e.paddingTop),paddingBottom:Wo(e.paddingBottom)}]}),visibleItemsStyle:z(()=>(p.value,{transform:`translateY(${Wo(d.value.sum(f.value))})`})),viewportItems:y,listElRef:l,itemsElRef:K(null),scrollTo:S,handleListResize:O,handleListScroll:T,handleListWheel:P,handleItemResize:g}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return h(Zo,{onResize:this.handleListResize},{default:()=>{var o,i;return h("div",xa(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[h(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:a,renderItemWithCols:s}=this;return this.viewportItems.map(l=>{const c=l[t],u=n.get(c),d=a!=null?h(y0,{index:u,item:l}):void 0,p=s!=null?h(y0,{index:u,item:l}):void 0,m=this.$slots.default({item:l,renderedCols:d,renderedItemWithCols:p,index:u})[0];return e?h(Zo,{key:c,onResize:f=>this.handleItemResize(c,f)},{default:()=>m}):(m.key=c,m)})}})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),K$=ao(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[ao("&::-webkit-scrollbar",{width:0,height:0})]),X$=Le({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=K(null);function t(o){!(o.currentTarget.offsetWidth<o.currentTarget.scrollWidth)||o.deltaY===0||(o.currentTarget.scrollLeft+=o.deltaY+o.deltaX,o.preventDefault())}const n=Qo();return K$.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Mc,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...o){var i;(i=e.value)===null||i===void 0||i.scrollTo(...o)}})},render(){return h("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}}),To="v-hidden",Q$=ao("[v-hidden]",{display:"none!important"}),w0=Le({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=K(null),r=K(null);function o(a){const{value:s}=n,{getCounter:l,getTail:c}=e;let u;if(l!==void 0?u=l():u=r.value,!s||!u)return;u.hasAttribute(To)&&u.removeAttribute(To);const{children:d}=s;if(a.showAllItemsBeforeCalculate)for(const b of d)b.hasAttribute(To)&&b.removeAttribute(To);const p=s.offsetWidth,m=[],f=t.tail?c?.():null;let y=f?f.offsetWidth:0,S=!1;const w=s.children.length-(t.tail?1:0);for(let b=0;b<w-1;++b){if(b<0)continue;const v=d[b];if(S){v.hasAttribute(To)||v.setAttribute(To,"");continue}else v.hasAttribute(To)&&v.removeAttribute(To);const g=v.offsetWidth;if(y+=g,m[b]=g,y>p){const{updateCounter:C}=e;for(let x=b;x>=0;--x){const T=w-1-x;C!==void 0?C(T):u.textContent=`${T}`;const P=u.offsetWidth;if(y-=m[x],y+P<=p||x===0){S=!0,b=x-1,f&&(b===-1?(f.style.maxWidth=`${p-P}px`,f.style.boxSizing="border-box"):f.style.maxWidth="");const{onUpdateCount:O}=e;O&&O(T);break}}}}const{onUpdateOverflow:k}=e;S?k!==void 0&&k(!0):(k!==void 0&&k(!1),u.setAttribute(To,""))}const i=Qo();return Q$.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Mc,ssr:i}),En(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return On(()=>this.sync({showAllItemsBeforeCalculate:!1})),h("div",{class:"v-overflow",ref:"selfRef"},[Yd(e,"default"),e.counter?e.counter():h("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function x0(e){return e instanceof HTMLElement}function C0(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(x0(n)&&(_0(n)||C0(n)))return!0}return!1}function S0(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(x0(n)&&(_0(n)||S0(n)))return!0}return!1}function _0(e){if(!Z$(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Z$(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"SELECT":case"TEXTAREA":return!0;default:return!1}}let Hs=[];const J$=Le({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Ms(),n=K(null),r=K(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return Hs[Hs.length-1]===t}function l(S){var w;S.code==="Escape"&&s()&&((w=e.onEsc)===null||w===void 0||w.call(e,S))}En(()=>{St(()=>e.active,S=>{S?(d(),sn("keydown",document,l)):(en("keydown",document,l),o&&p())},{immediate:!0})}),qn(()=>{en("keydown",document,l),o&&p()});function c(S){if(!i&&s()){const w=u();if(w===null||w.contains(Po(S)))return;m("first")}}function u(){const S=n.value;if(S===null)return null;let w=S;for(;w=w.nextSibling,!(w===null||w instanceof Element&&w.tagName==="DIV"););return w}function d(){var S;if(!e.disabled){if(Hs.push(t),e.autoFocus){const{initialFocusTo:w}=e;w===void 0?m("first"):(S=Zb(w))===null||S===void 0||S.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function p(){var S;if(e.disabled||(document.removeEventListener("focus",c,!0),Hs=Hs.filter(k=>k!==t),s()))return;const{finalFocusTo:w}=e;w!==void 0?(S=Zb(w))===null||S===void 0||S.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function m(S){if(s()&&e.active){const w=n.value,k=r.value;if(w!==null&&k!==null){const b=u();if(b==null||b===k){i=!0,w.focus({preventScroll:!0}),i=!1;return}i=!0;const v=S==="first"?C0(b):S0(b);i=!1,v||(i=!0,w.focus({preventScroll:!0}),i=!1)}}}function f(S){if(i)return;const w=u();w!==null&&(S.relatedTarget!==null&&w.contains(S.relatedTarget)?m("last"):m("first"))}function y(S){i||(S.relatedTarget!==null&&S.relatedTarget===n.value?m("last"):m("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:f,handleEndFocus:y}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return h(Wt,null,[h("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),h("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function k0(e,t){t&&(En(()=>{const{value:n}=e;n&&Ls.registerHandler(n,t)}),St(e,(n,r)=>{r&&Ls.unregisterHandler(r)},{deep:!1}),qn(()=>{const{value:n}=e;n&&Ls.unregisterHandler(n)}))}function jc(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const eR=/^(\d|\.)+$/,P0=/(\d|\.)+/;function Jo(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(eR.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=P0.exec(e);return o?e.replace(P0,String((Number(o[0])+n)*t)):e}return e}function T0(e){const{left:t,right:n,top:r,bottom:o}=er(e);return`${r} ${t} ${o} ${n}`}let Of;function tR(){return Of===void 0&&(Of=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Of}const nR=new WeakSet;function Vs(e){nR.add(e)}function $0(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}const rR={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function oR(e){const t=rR[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}function Ai(e,t){console.error(`[naive/${e}]: ${t}`)}function R0(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Fe(e,...t){if(Array.isArray(e))e.forEach(n=>Fe(n,...t));else return e(...t)}function $o(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(xr(String(r)));return}if(Array.isArray(r)){$o(r,t,n);return}if(r.type===Wt){if(r.children===null)return;Array.isArray(r.children)&&$o(r.children,t,n)}else{if(r.type===Dn&&t)return;n.push(r)}}}),n}function iR(e,t="default",n=void 0){const r=e[t];if(!r)return Ai("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=$o(r(n));return o.length===1?o[0]:(Ai("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function aR(e,t,n){if(!t)return null;const r=$o(t(n));return r.length===1?r[0]:(Ai("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function O0(e,t="default",n=[]){const o=e.$slots[t];return o===void 0?n:o()}function sR(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Ef(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function lR(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Mi(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?xr(e):typeof e=="number"?xr(String(e)):null}function js(e){return e.some(t=>wa(t)?!(t.type===Dn||t.type===Wt&&!js(t.children)):!0)?e:null}function Rt(e,t){return e&&js(e())||t()}function Gn(e,t,n){return e&&js(e(t))||n(t)}function qt(e,t){const n=e&&js(e());return t(n||null)}function Ra(e){return!(e&&js(e()))}const Df=Le({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Ii="n-config-provider",cR="n";function Lt(e={},t={defaultBordered:!0}){const n=wt(Ii,null);return{inlineThemeDisabled:n?.inlineThemeDisabled,mergedRtlRef:n?.mergedRtlRef,mergedComponentPropsRef:n?.mergedComponentPropsRef,mergedBreakpointsRef:n?.mergedBreakpointsRef,mergedBorderedRef:z(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n?.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:yk(cR),namespaceRef:z(()=>n?.mergedNamespaceRef.value)}}function Xt(e,t,n,r){n||R0("useThemeClass","cssVarsRef is not passed");const o=wt(Ii,null),i=o?.mergedThemeHashRef,a=o?.styleMountTarget,s=K(""),l=Qo();let c;const u=`__${e}`,d=()=>{let p=u;const m=t?t.value:void 0,f=i?.value;f&&(p+=`-${f}`),m&&(p+=`-${m}`);const{themeOverrides:y,builtinThemeOverrides:S}=r;y&&(p+=`-${mf(JSON.stringify(y))}`),S&&(p+=`-${mf(JSON.stringify(S))}`),s.value=p,c=()=>{const w=n.value;let k="";for(const b in w)k+=`${b}: ${w[b]};`;G(`.${p}`,k).mount({id:p,ssr:l,parent:a}),c=void 0}};return Vr(()=>{d()}),{themeClass:s,onRender:()=>{c?.()}}}const Wc="n-form-item";function hr(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=wt(Wc,null);_n(Wc,null);const i=z(n?()=>n(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=z(r?()=>r(o):()=>{const{disabled:l}=e;return l!==void 0?l:o?o.disabled.value:!1}),s=z(()=>{const{status:l}=e;return l||o?.mergedValidationStatus.value});return qn(()=>{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()}}}const uR={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"},Heatmap:{less:"less",more:"more",monthFormat:"MMM",weekdayFormat:"eee"}};function Ff(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Ws(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n?.width?String(n.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n?.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}function Us(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?fR(s,d=>d.test(a)):dR(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function dR(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function fR(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hR(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}function mt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}let pR={};function Oa(){return pR}function jr(e,t){const n=Oa(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=mt(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function mR(e,t,n){const r=jr(e,n),o=jr(t,n);return+r==+o}const vR={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"}},gR=(e,t,n)=>{let r;const o=vR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},bR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yR=(e,t,n,r)=>bR[e],wR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xR={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},CR={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"]},SR={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"]},_R={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"}},kR={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"}},PR={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ws({values:wR,defaultWidth:"wide"}),quarter:Ws({values:xR,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ws({values:CR,defaultWidth:"wide"}),day:Ws({values:SR,defaultWidth:"wide"}),dayPeriod:Ws({values:_R,defaultWidth:"wide",formattingValues:kR,defaultFormattingWidth:"wide"})},TR=/^(\d+)(th|st|nd|rd)?/i,$R=/\d+/i,RR={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},OR={any:[/^b/i,/^(a|c)/i]},ER={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},DR={any:[/1/i,/2/i,/3/i,/4/i]},FR={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},AR={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]},MR={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},IR={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]},zR={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},BR={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}},NR={ordinalNumber:hR({matchPattern:TR,parsePattern:$R,valueCallback:e=>parseInt(e,10)}),era:Us({matchPatterns:RR,defaultMatchWidth:"wide",parsePatterns:OR,defaultParseWidth:"any"}),quarter:Us({matchPatterns:ER,defaultMatchWidth:"wide",parsePatterns:DR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Us({matchPatterns:FR,defaultMatchWidth:"wide",parsePatterns:AR,defaultParseWidth:"any"}),day:Us({matchPatterns:MR,defaultMatchWidth:"wide",parsePatterns:IR,defaultParseWidth:"any"}),dayPeriod:Us({matchPatterns:zR,defaultMatchWidth:"any",parsePatterns:BR,defaultParseWidth:"any"})},LR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},HR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},VR={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jR={date:Ff({formats:LR,defaultWidth:"full"}),time:Ff({formats:HR,defaultWidth:"full"}),dateTime:Ff({formats:VR,defaultWidth:"full"})},Af={code:"en-US",formatDistance:gR,formatLong:jR,formatRelative:yR,localize:PR,match:NR,options:{weekStartsOn:0,firstWeekContainsDate:1}},WR={name:"en-US",locale:Af};var E0=typeof global=="object"&&global&&global.Object===Object&&global,UR=typeof self=="object"&&self&&self.Object===Object&&self,Wr=E0||UR||Function("return this")(),ei=Wr.Symbol,D0=Object.prototype,qR=D0.hasOwnProperty,YR=D0.toString,qs=ei?ei.toStringTag:void 0;function GR(e){var t=qR.call(e,qs),n=e[qs];try{e[qs]=void 0;var r=!0}catch{}var o=YR.call(e);return r&&(t?e[qs]=n:delete e[qs]),o}var KR=Object.prototype,XR=KR.toString;function QR(e){return XR.call(e)}var ZR="[object Null]",JR="[object Undefined]",F0=ei?ei.toStringTag:void 0;function zi(e){return e==null?e===void 0?JR:ZR:F0&&F0 in Object(e)?GR(e):QR(e)}function ti(e){return e!=null&&typeof e=="object"}var e2="[object Symbol]";function Uc(e){return typeof e=="symbol"||ti(e)&&zi(e)==e2}function A0(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Er=Array.isArray,M0=ei?ei.prototype:void 0,I0=M0?M0.toString:void 0;function z0(e){if(typeof e=="string")return e;if(Er(e))return A0(e,z0)+"";if(Uc(e))return I0?I0.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var t2=/\s/;function n2(e){for(var t=e.length;t--&&t2.test(e.charAt(t)););return t}var r2=/^\s+/;function o2(e){return e&&e.slice(0,n2(e)+1).replace(r2,"")}function Dr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var B0=NaN,i2=/^[-+]0x[0-9a-f]+$/i,a2=/^0b[01]+$/i,s2=/^0o[0-7]+$/i,l2=parseInt;function N0(e){if(typeof e=="number")return e;if(Uc(e))return B0;if(Dr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Dr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=o2(e);var n=a2.test(e);return n||s2.test(e)?l2(e.slice(2),n?2:8):i2.test(e)?B0:+e}function Mf(e){return e}var c2="[object AsyncFunction]",u2="[object Function]",d2="[object GeneratorFunction]",f2="[object Proxy]";function If(e){if(!Dr(e))return!1;var t=zi(e);return t==u2||t==d2||t==c2||t==f2}var zf=Wr["__core-js_shared__"],L0=function(){var e=/[^.]+$/.exec(zf&&zf.keys&&zf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function h2(e){return!!L0&&L0 in e}var p2=Function.prototype,m2=p2.toString;function Bi(e){if(e!=null){try{return m2.call(e)}catch{}try{return e+""}catch{}}return""}var v2=/[\\^$.*+?()[\]{}|]/g,g2=/^\[object .+?Constructor\]$/,b2=Function.prototype,y2=Object.prototype,w2=b2.toString,x2=y2.hasOwnProperty,C2=RegExp("^"+w2.call(x2).replace(v2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S2(e){if(!Dr(e)||h2(e))return!1;var t=If(e)?C2:g2;return t.test(Bi(e))}function _2(e,t){return e?.[t]}function Ni(e,t){var n=_2(e,t);return S2(n)?n:void 0}var Bf=Ni(Wr,"WeakMap"),H0=Object.create,k2=function(){function e(){}return function(t){if(!Dr(t))return{};if(H0)return H0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function P2(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function T2(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var $2=800,R2=16,O2=Date.now;function E2(e){var t=0,n=0;return function(){var r=O2(),o=R2-(r-n);if(n=r,o>0){if(++t>=$2)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function D2(e){return function(){return e}}var qc=function(){try{var e=Ni(Object,"defineProperty");return e({},"",{}),e}catch{}}(),F2=qc?function(e,t){return qc(e,"toString",{configurable:!0,enumerable:!1,value:D2(t),writable:!0})}:Mf,A2=E2(F2),M2=9007199254740991,I2=/^(?:0|[1-9]\d*)$/;function Nf(e,t){var n=typeof e;return t=t??M2,!!t&&(n=="number"||n!="symbol"&&I2.test(e))&&e>-1&&e%1==0&&e<t}function Lf(e,t,n){t=="__proto__"&&qc?qc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ys(e,t){return e===t||e!==e&&t!==t}var z2=Object.prototype,B2=z2.hasOwnProperty;function N2(e,t,n){var r=e[t];(!(B2.call(e,t)&&Ys(r,n))||n===void 0&&!(t in e))&&Lf(e,t,n)}function L2(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),o?Lf(n,s,l):N2(n,s,l)}return n}var V0=Math.max;function H2(e,t,n){return t=V0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=V0(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),P2(e,this,s)}}function V2(e,t){return A2(H2(e,t,Mf),e+"")}var j2=9007199254740991;function Hf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j2}function Ea(e){return e!=null&&Hf(e.length)&&!If(e)}function W2(e,t,n){if(!Dr(n))return!1;var r=typeof t;return(r=="number"?Ea(n)&&Nf(t,n.length):r=="string"&&t in n)?Ys(n[t],e):!1}function U2(e){return V2(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&W2(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var q2=Object.prototype;function Vf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||q2;return e===n}function Y2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var G2="[object Arguments]";function j0(e){return ti(e)&&zi(e)==G2}var W0=Object.prototype,K2=W0.hasOwnProperty,X2=W0.propertyIsEnumerable,Yc=j0(function(){return arguments}())?j0:function(e){return ti(e)&&K2.call(e,"callee")&&!X2.call(e,"callee")};function Q2(){return!1}var U0=typeof vt=="object"&&vt&&!vt.nodeType&&vt,q0=U0&&typeof module=="object"&&module&&!module.nodeType&&module,Z2=q0&&q0.exports===U0,Y0=Z2?Wr.Buffer:void 0,J2=Y0?Y0.isBuffer:void 0,Gc=J2||Q2,eO="[object Arguments]",tO="[object Array]",nO="[object Boolean]",rO="[object Date]",oO="[object Error]",iO="[object Function]",aO="[object Map]",sO="[object Number]",lO="[object Object]",cO="[object RegExp]",uO="[object Set]",dO="[object String]",fO="[object WeakMap]",hO="[object ArrayBuffer]",pO="[object DataView]",mO="[object Float32Array]",vO="[object Float64Array]",gO="[object Int8Array]",bO="[object Int16Array]",yO="[object Int32Array]",wO="[object Uint8Array]",xO="[object Uint8ClampedArray]",CO="[object Uint16Array]",SO="[object Uint32Array]",un={};un[mO]=un[vO]=un[gO]=un[bO]=un[yO]=un[wO]=un[xO]=un[CO]=un[SO]=!0,un[eO]=un[tO]=un[hO]=un[nO]=un[pO]=un[rO]=un[oO]=un[iO]=un[aO]=un[sO]=un[lO]=un[cO]=un[uO]=un[dO]=un[fO]=!1;function _O(e){return ti(e)&&Hf(e.length)&&!!un[zi(e)]}function kO(e){return function(t){return e(t)}}var G0=typeof vt=="object"&&vt&&!vt.nodeType&&vt,Gs=G0&&typeof module=="object"&&module&&!module.nodeType&&module,PO=Gs&&Gs.exports===G0,jf=PO&&E0.process,K0=function(){try{var e=Gs&&Gs.require&&Gs.require("util").types;return e||jf&&jf.binding&&jf.binding("util")}catch{}}(),X0=K0&&K0.isTypedArray,Wf=X0?kO(X0):_O,TO=Object.prototype,$O=TO.hasOwnProperty;function Q0(e,t){var n=Er(e),r=!n&&Yc(e),o=!n&&!r&&Gc(e),i=!n&&!r&&!o&&Wf(e),a=n||r||o||i,s=a?Y2(e.length,String):[],l=s.length;for(var c in e)(t||$O.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Nf(c,l)))&&s.push(c);return s}function Z0(e,t){return function(n){return e(t(n))}}var RO=Z0(Object.keys,Object),OO=Object.prototype,EO=OO.hasOwnProperty;function DO(e){if(!Vf(e))return RO(e);var t=[];for(var n in Object(e))EO.call(e,n)&&n!="constructor"&&t.push(n);return t}function Uf(e){return Ea(e)?Q0(e):DO(e)}function FO(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var AO=Object.prototype,MO=AO.hasOwnProperty;function IO(e){if(!Dr(e))return FO(e);var t=Vf(e),n=[];for(var r in e)r=="constructor"&&(t||!MO.call(e,r))||n.push(r);return n}function J0(e){return Ea(e)?Q0(e,!0):IO(e)}var zO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BO=/^\w*$/;function qf(e,t){if(Er(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Uc(e)?!0:BO.test(e)||!zO.test(e)||t!=null&&e in Object(t)}var Ks=Ni(Object,"create");function NO(){this.__data__=Ks?Ks(null):{},this.size=0}function LO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HO="__lodash_hash_undefined__",VO=Object.prototype,jO=VO.hasOwnProperty;function WO(e){var t=this.__data__;if(Ks){var n=t[e];return n===HO?void 0:n}return jO.call(t,e)?t[e]:void 0}var UO=Object.prototype,qO=UO.hasOwnProperty;function YO(e){var t=this.__data__;return Ks?t[e]!==void 0:qO.call(t,e)}var GO="__lodash_hash_undefined__";function KO(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ks&&t===void 0?GO:t,this}function Li(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Li.prototype.clear=NO,Li.prototype.delete=LO,Li.prototype.get=WO,Li.prototype.has=YO,Li.prototype.set=KO;function XO(){this.__data__=[],this.size=0}function Kc(e,t){for(var n=e.length;n--;)if(Ys(e[n][0],t))return n;return-1}var QO=Array.prototype,ZO=QO.splice;function JO(e){var t=this.__data__,n=Kc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ZO.call(t,n,1),--this.size,!0}function eE(e){var t=this.__data__,n=Kc(t,e);return n<0?void 0:t[n][1]}function tE(e){return Kc(this.__data__,e)>-1}function nE(e,t){var n=this.__data__,r=Kc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ro(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ro.prototype.clear=XO,Ro.prototype.delete=JO,Ro.prototype.get=eE,Ro.prototype.has=tE,Ro.prototype.set=nE;var Xs=Ni(Wr,"Map");function rE(){this.size=0,this.__data__={hash:new Li,map:new(Xs||Ro),string:new Li}}function oE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Xc(e,t){var n=e.__data__;return oE(t)?n[typeof t=="string"?"string":"hash"]:n.map}function iE(e){var t=Xc(this,e).delete(e);return this.size-=t?1:0,t}function aE(e){return Xc(this,e).get(e)}function sE(e){return Xc(this,e).has(e)}function lE(e,t){var n=Xc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Oo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Oo.prototype.clear=rE,Oo.prototype.delete=iE,Oo.prototype.get=aE,Oo.prototype.has=sE,Oo.prototype.set=lE;var cE="Expected a function";function Yf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cE);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Yf.Cache||Oo),n}Yf.Cache=Oo;var uE=500;function dE(e){var t=Yf(e,function(r){return n.size===uE&&n.clear(),r}),n=t.cache;return t}var fE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hE=/\\(\\)?/g,pE=dE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fE,function(n,r,o,i){t.push(o?i.replace(hE,"$1"):r||n)}),t});function ey(e){return e==null?"":z0(e)}function ty(e,t){return Er(e)?e:qf(e,t)?[e]:pE(ey(e))}function Qc(e){if(typeof e=="string"||Uc(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ny(e,t){t=ty(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Qc(t[n++])];return n&&n==r?e:void 0}function Gf(e,t,n){var r=e==null?void 0:ny(e,t);return r===void 0?n:r}function mE(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ry=Z0(Object.getPrototypeOf,Object),vE="[object Object]",gE=Function.prototype,bE=Object.prototype,oy=gE.toString,yE=bE.hasOwnProperty,wE=oy.call(Object);function xE(e){if(!ti(e)||zi(e)!=vE)return!1;var t=ry(e);if(t===null)return!0;var n=yE.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&oy.call(n)==wE}function CE(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function SE(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:CE(e,t,n)}var _E="\\ud800-\\udfff",kE="\\u0300-\\u036f",PE="\\ufe20-\\ufe2f",TE="\\u20d0-\\u20ff",$E=kE+PE+TE,RE="\\ufe0e\\ufe0f",OE="\\u200d",EE=RegExp("["+OE+_E+$E+RE+"]");function iy(e){return EE.test(e)}function DE(e){return e.split("")}var ay="\\ud800-\\udfff",FE="\\u0300-\\u036f",AE="\\ufe20-\\ufe2f",ME="\\u20d0-\\u20ff",IE=FE+AE+ME,zE="\\ufe0e\\ufe0f",BE="["+ay+"]",Kf="["+IE+"]",Xf="\\ud83c[\\udffb-\\udfff]",NE="(?:"+Kf+"|"+Xf+")",sy="[^"+ay+"]",ly="(?:\\ud83c[\\udde6-\\uddff]){2}",cy="[\\ud800-\\udbff][\\udc00-\\udfff]",LE="\\u200d",uy=NE+"?",dy="["+zE+"]?",HE="(?:"+LE+"(?:"+[sy,ly,cy].join("|")+")"+dy+uy+")*",VE=dy+uy+HE,jE="(?:"+[sy+Kf+"?",Kf,ly,cy,BE].join("|")+")",WE=RegExp(Xf+"(?="+Xf+")|"+jE+VE,"g");function UE(e){return e.match(WE)||[]}function qE(e){return iy(e)?UE(e):DE(e)}function YE(e){return function(t){t=ey(t);var n=iy(t)?qE(t):void 0,r=n?n[0]:t.charAt(0),o=n?SE(n,1).join(""):t.slice(1);return r[e]()+o}}var GE=YE("toUpperCase");function KE(){this.__data__=new Ro,this.size=0}function XE(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function QE(e){return this.__data__.get(e)}function ZE(e){return this.__data__.has(e)}var JE=200;function eD(e,t){var n=this.__data__;if(n instanceof Ro){var r=n.__data__;if(!Xs||r.length<JE-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Oo(r)}return n.set(e,t),this.size=n.size,this}function lo(e){var t=this.__data__=new Ro(e);this.size=t.size}lo.prototype.clear=KE,lo.prototype.delete=XE,lo.prototype.get=QE,lo.prototype.has=ZE,lo.prototype.set=eD;var fy=typeof vt=="object"&&vt&&!vt.nodeType&&vt,hy=fy&&typeof module=="object"&&module&&!module.nodeType&&module,tD=hy&&hy.exports===fy,py=tD?Wr.Buffer:void 0;py&&py.allocUnsafe;function nD(e,t){return e.slice()}function rD(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function oD(){return[]}var iD=Object.prototype,aD=iD.propertyIsEnumerable,my=Object.getOwnPropertySymbols,sD=my?function(e){return e==null?[]:(e=Object(e),rD(my(e),function(t){return aD.call(e,t)}))}:oD;function lD(e,t,n){var r=t(e);return Er(e)?r:mE(r,n(e))}function vy(e){return lD(e,Uf,sD)}var Qf=Ni(Wr,"DataView"),Zf=Ni(Wr,"Promise"),Jf=Ni(Wr,"Set"),gy="[object Map]",cD="[object Object]",by="[object Promise]",yy="[object Set]",wy="[object WeakMap]",xy="[object DataView]",uD=Bi(Qf),dD=Bi(Xs),fD=Bi(Zf),hD=Bi(Jf),pD=Bi(Bf),ni=zi;(Qf&&ni(new Qf(new ArrayBuffer(1)))!=xy||Xs&&ni(new Xs)!=gy||Zf&&ni(Zf.resolve())!=by||Jf&&ni(new Jf)!=yy||Bf&&ni(new Bf)!=wy)&&(ni=function(e){var t=zi(e),n=t==cD?e.constructor:void 0,r=n?Bi(n):"";if(r)switch(r){case uD:return xy;case dD:return gy;case fD:return by;case hD:return yy;case pD:return wy}return t});var Zc=Wr.Uint8Array;function mD(e){var t=new e.constructor(e.byteLength);return new Zc(t).set(new Zc(e)),t}function vD(e,t){var n=mD(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function gD(e){return typeof e.constructor=="function"&&!Vf(e)?k2(ry(e)):{}}var bD="__lodash_hash_undefined__";function yD(e){return this.__data__.set(e,bD),this}function wD(e){return this.__data__.has(e)}function Jc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Oo;++t<n;)this.add(e[t])}Jc.prototype.add=Jc.prototype.push=yD,Jc.prototype.has=wD;function xD(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function CD(e,t){return e.has(t)}var SD=1,_D=2;function Cy(e,t,n,r,o,i){var a=n&SD,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 d=-1,p=!0,m=n&_D?new Jc:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var f=e[d],y=t[d];if(r)var S=a?r(y,f,d,t,e,i):r(f,y,d,e,t,i);if(S!==void 0){if(S)continue;p=!1;break}if(m){if(!xD(t,function(w,k){if(!CD(m,k)&&(f===w||o(f,w,n,r,i)))return m.push(k)})){p=!1;break}}else if(!(f===y||o(f,y,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function kD(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function PD(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var TD=1,$D=2,RD="[object Boolean]",OD="[object Date]",ED="[object Error]",DD="[object Map]",FD="[object Number]",AD="[object RegExp]",MD="[object Set]",ID="[object String]",zD="[object Symbol]",BD="[object ArrayBuffer]",ND="[object DataView]",Sy=ei?ei.prototype:void 0,eh=Sy?Sy.valueOf:void 0;function LD(e,t,n,r,o,i,a){switch(n){case ND:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case BD:return!(e.byteLength!=t.byteLength||!i(new Zc(e),new Zc(t)));case RD:case OD:case FD:return Ys(+e,+t);case ED:return e.name==t.name&&e.message==t.message;case AD:case ID:return e==t+"";case DD:var s=kD;case MD:var l=r&TD;if(s||(s=PD),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=$D,a.set(e,t);var u=Cy(s(e),s(t),r,o,i,a);return a.delete(e),u;case zD:if(eh)return eh.call(e)==eh.call(t)}return!1}var HD=1,VD=Object.prototype,jD=VD.hasOwnProperty;function WD(e,t,n,r,o,i){var a=n&HD,s=vy(e),l=s.length,c=vy(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:jD.call(t,p)))return!1}var m=i.get(e),f=i.get(t);if(m&&f)return m==t&&f==e;var y=!0;i.set(e,t),i.set(t,e);for(var S=a;++d<l;){p=s[d];var w=e[p],k=t[p];if(r)var b=a?r(k,w,p,t,e,i):r(w,k,p,e,t,i);if(!(b===void 0?w===k||o(w,k,n,r,i):b)){y=!1;break}S||(S=p=="constructor")}if(y&&!S){var v=e.constructor,g=t.constructor;v!=g&&"constructor"in e&&"constructor"in t&&!(typeof v=="function"&&v instanceof v&&typeof g=="function"&&g instanceof g)&&(y=!1)}return i.delete(e),i.delete(t),y}var UD=1,_y="[object Arguments]",ky="[object Array]",eu="[object Object]",qD=Object.prototype,Py=qD.hasOwnProperty;function YD(e,t,n,r,o,i){var a=Er(e),s=Er(t),l=a?ky:ni(e),c=s?ky:ni(t);l=l==_y?eu:l,c=c==_y?eu:c;var u=l==eu,d=c==eu,p=l==c;if(p&&Gc(e)){if(!Gc(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new lo),a||Wf(e)?Cy(e,t,n,r,o,i):LD(e,t,l,n,r,o,i);if(!(n&UD)){var m=u&&Py.call(e,"__wrapped__"),f=d&&Py.call(t,"__wrapped__");if(m||f){var y=m?e.value():e,S=f?t.value():t;return i||(i=new lo),o(y,S,n,r,i)}}return p?(i||(i=new lo),WD(e,t,n,r,o,i)):!1}function th(e,t,n,r,o){return e===t?!0:e==null||t==null||!ti(e)&&!ti(t)?e!==e&&t!==t:YD(e,t,n,r,th,o)}var GD=1,KD=2;function XD(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var s=a[0],l=e[s],c=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var u=new lo,d;if(!(d===void 0?th(c,l,GD|KD,r,u):d))return!1}}return!0}function Ty(e){return e===e&&!Dr(e)}function QD(e){for(var t=Uf(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ty(o)]}return t}function $y(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function ZD(e){var t=QD(e);return t.length==1&&t[0][2]?$y(t[0][0],t[0][1]):function(n){return n===e||XD(n,e,t)}}function JD(e,t){return e!=null&&t in Object(e)}function eF(e,t,n){t=ty(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Qc(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Hf(o)&&Nf(a,o)&&(Er(e)||Yc(e)))}function tF(e,t){return e!=null&&eF(e,t,JD)}var nF=1,rF=2;function oF(e,t){return qf(e)&&Ty(t)?$y(Qc(e),t):function(n){var r=Gf(n,e);return r===void 0&&r===t?tF(n,e):th(t,r,nF|rF)}}function iF(e){return function(t){return t?.[e]}}function aF(e){return function(t){return ny(t,e)}}function sF(e){return qf(e)?iF(Qc(e)):aF(e)}function lF(e){return typeof e=="function"?e:e==null?Mf:typeof e=="object"?Er(e)?oF(e[0],e[1]):ZD(e):sF(e)}function cF(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return t}}var Ry=cF();function uF(e,t){return e&&Ry(e,t,Uf)}function dF(e,t){return function(n,r){if(n==null)return n;if(!Ea(n))return e(n,r);for(var o=n.length,i=-1,a=Object(n);++i<o&&r(a[i],i,a)!==!1;);return n}}var fF=dF(uF),nh=function(){return Wr.Date.now()},hF="Expected a function",pF=Math.max,mF=Math.min;function vF(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(hF);t=N0(t)||0,Dr(n)&&(u=!!n.leading,d="maxWait"in n,i=d?pF(N0(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function m(C){var x=r,T=o;return r=o=void 0,c=C,a=e.apply(T,x),a}function f(C){return c=C,s=setTimeout(w,t),u?m(C):a}function y(C){var x=C-l,T=C-c,P=t-x;return d?mF(P,i-T):P}function S(C){var x=C-l,T=C-c;return l===void 0||x>=t||x<0||d&&T>=i}function w(){var C=nh();if(S(C))return k(C);s=setTimeout(w,y(C))}function k(C){return s=void 0,p&&r?m(C):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function v(){return s===void 0?a:k(nh())}function g(){var C=nh(),x=S(C);if(r=arguments,o=this,l=C,x){if(s===void 0)return f(l);if(d)return clearTimeout(s),s=setTimeout(w,t),m(l)}return s===void 0&&(s=setTimeout(w,t)),a}return g.cancel=b,g.flush=v,g}function rh(e,t,n){(n!==void 0&&!Ys(e[t],n)||n===void 0&&!(t in e))&&Lf(e,t,n)}function gF(e){return ti(e)&&Ea(e)}function oh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function bF(e){return L2(e,J0(e))}function yF(e,t,n,r,o,i,a){var s=oh(e,n),l=oh(t,n),c=a.get(l);if(c){rh(e,n,c);return}var u=i?i(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var p=Er(l),m=!p&&Gc(l),f=!p&&!m&&Wf(l);u=l,p||m||f?Er(s)?u=s:gF(s)?u=T2(s):m?(d=!1,u=nD(l)):f?(d=!1,u=vD(l)):u=[]:xE(l)||Yc(l)?(u=s,Yc(s)?u=bF(s):(!Dr(s)||If(s))&&(u=gD(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l)),rh(e,n,u)}function Oy(e,t,n,r,o){e!==t&&Ry(t,function(i,a){if(o||(o=new lo),Dr(i))yF(e,t,a,n,Oy,r,o);else{var s=r?r(oh(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),rh(e,a,s)}},J0)}function wF(e,t){var n=-1,r=Ea(e)?Array(e.length):[];return fF(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function xF(e,t){var n=Er(e)?A0:wF;return n(e,lF(t))}var tu=U2(function(e,t,n){Oy(e,t,n)}),CF="Expected a function";function SF(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(CF);return Dr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),vF(e,t,{leading:r,maxWait:t,trailing:o})}function co(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=wt(Ii,null)||{},r=z(()=>{var i,a;return(a=(i=t?.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:uR[e]});return{dateLocaleRef:z(()=>{var i;return(i=n?.value)!==null&&i!==void 0?i:WR}),localeRef:r}}const Qs="naive-ui-style";function pr(e,t,n){if(!t)return;const r=Qo(),o=z(()=>{const{value:s}=t;if(!s)return;const l=s[e];if(l)return l}),i=wt(Ii,null),a=()=>{Vr(()=>{const{value:s}=n,l=`${s}${e}Rtl`;if(OT(l,r))return;const{value:c}=o;c&&c.style.mount({id:l,head:!0,anchorMetaName:Qs,props:{bPrefix:s?`.${s}-`:void 0},ssr:r,parent:i?.styleMountTarget})})};return r?a():wi(a),o}const Hi={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:_F,fontFamily:kF,lineHeight:PF}=Hi,Ey=G("body",`
99
+ margin: 0;
100
+ font-size: ${_F};
101
+ font-family: ${kF};
102
+ line-height: ${PF};
103
+ -webkit-text-size-adjust: 100%;
104
+ -webkit-tap-highlight-color: transparent;
105
+ `,[G("input",`
106
+ font-family: inherit;
107
+ font-size: inherit;
108
+ `)]);function ri(e,t,n){if(!t)return;const r=Qo(),o=wt(Ii,null),i=()=>{const a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Qs,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:o?.styleMountTarget}),o?.preflightStyleDisabled||Ey.mount({id:"n-global",head:!0,anchorMetaName:Qs,ssr:r,parent:o?.styleMountTarget})};r?i():wi(i)}function E5(e){return e}function rt(e,t,n,r,o,i){const a=Qo(),s=wt(Ii,null);if(n){const c=()=>{const u=i?.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Qs,ssr:a,parent:s?.styleMountTarget}),s?.preflightStyleDisabled||Ey.mount({id:"n-global",head:!0,anchorMetaName:Qs,ssr:a,parent:s?.styleMountTarget})};a?c():wi(c)}return z(()=>{var c;const{theme:{common:u,self:d,peers:p={}}={},themeOverrides:m={},builtinThemeOverrides:f={}}=o,{common:y,peers:S}=m,{common:w=void 0,[e]:{common:k=void 0,self:b=void 0,peers:v={}}={}}=s?.mergedThemeRef.value||{},{common:g=void 0,[e]:C={}}=s?.mergedThemeOverridesRef.value||{},{common:x,peers:T={}}=C,P=tu({},u||k||w||r.common,g,x,y),O=tu((c=d||b||r.self)===null||c===void 0?void 0:c(P),f,C,m);return{common:P,self:O,peers:tu({},r.peers,v,p),peerOverrides:tu({},f.peers,T,S)}})}rt.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const TF=A("base-icon",`
109
+ height: 1em;
110
+ width: 1em;
111
+ line-height: 1em;
112
+ text-align: center;
113
+ display: inline-block;
114
+ position: relative;
115
+ fill: currentColor;
116
+ `,[G("svg",`
117
+ height: 1em;
118
+ width: 1em;
119
+ `)]),Fn=Le({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){ri("-base-icon",TF,Xe(e,"clsPrefix"))},render(){return h("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)}}),Zs=Le({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Go();return()=>h(Cr,{name:"icon-switch-transition",appear:n.value},t)}}),Js=Le({name:"Add",render(){return h("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),$F=Le({name:"ArrowDown",render(){return h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),RF=Le({name:"ArrowUp",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},h("g",{fill:"none"},h("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function el(e,t){const n=Le({render(){return t()}});return Le({name:GE(e),setup(){var r;const o=(r=wt(Ii,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var i;const a=(i=o?.value)===null||i===void 0?void 0:i[e];return a?a():h(n,null)}}})}const Da=Le({name:"Backward",render(){return h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),OF=Le({name:"Checkmark",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},h("g",{fill:"none"},h("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),EF=Le({name:"ChevronDown",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),DF=el("clear",()=>h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),FF=el("close",()=>h("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),Dy=el("date",()=>h("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),AF=Le({name:"Empty",render(){return h("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),h("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),MF=Le({name:"Eye",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),h("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),IF=Le({name:"EyeOff",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),h("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),h("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),h("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),h("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Fa=Le({name:"FastBackward",render(){return h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Aa=Le({name:"FastForward",render(){return h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),Ma=Le({name:"Forward",render(){return h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Fy=Le({name:"Remove",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
120
+ fill: none;
121
+ stroke: currentColor;
122
+ stroke-linecap: round;
123
+ stroke-linejoin: round;
124
+ stroke-width: 32px;
125
+ `}))}}),zF=el("time",()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:`
126
+ fill: none;
127
+ stroke: currentColor;
128
+ stroke-miterlimit: 10;
129
+ stroke-width: 32px;
130
+ `}),h("polyline",{points:"256 128 256 272 352 272",style:`
131
+ fill: none;
132
+ stroke: currentColor;
133
+ stroke-linecap: round;
134
+ stroke-linejoin: round;
135
+ stroke-width: 32px;
136
+ `}))),BF=el("to",()=>h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),{cubicBezierEaseInOut:NF}=Hi;function Vi({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${NF} !important`}={}){return[G("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),G("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),G("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const LF=A("base-clear",`
137
+ flex-shrink: 0;
138
+ height: 1em;
139
+ width: 1em;
140
+ position: relative;
141
+ `,[G(">",[X("clear",`
142
+ font-size: var(--n-clear-size);
143
+ height: 1em;
144
+ width: 1em;
145
+ cursor: pointer;
146
+ color: var(--n-clear-color);
147
+ transition: color .3s var(--n-bezier);
148
+ display: flex;
149
+ `,[G("&:hover",`
150
+ color: var(--n-clear-color-hover)!important;
151
+ `),G("&:active",`
152
+ color: var(--n-clear-color-pressed)!important;
153
+ `)]),X("placeholder",`
154
+ display: flex;
155
+ `),X("clear, placeholder",`
156
+ position: absolute;
157
+ left: 50%;
158
+ top: 50%;
159
+ transform: translateX(-50%) translateY(-50%);
160
+ `,[Vi({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),ih=Le({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ri("-base-clear",LF,Xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return h("div",{class:`${e}-base-clear`},h(Zs,null,{default:()=>{var t,n;return this.show?h("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Rt(this.$slots.icon,()=>[h(Fn,{clsPrefix:e},{default:()=>h(DF,null)})])):h("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),HF=A("base-close",`
161
+ display: flex;
162
+ align-items: center;
163
+ justify-content: center;
164
+ cursor: pointer;
165
+ background-color: transparent;
166
+ color: var(--n-close-icon-color);
167
+ border-radius: var(--n-close-border-radius);
168
+ height: var(--n-close-size);
169
+ width: var(--n-close-size);
170
+ font-size: var(--n-close-icon-size);
171
+ outline: none;
172
+ border: none;
173
+ position: relative;
174
+ padding: 0;
175
+ `,[Z("absolute",`
176
+ height: var(--n-close-icon-size);
177
+ width: var(--n-close-icon-size);
178
+ `),G("&::before",`
179
+ content: "";
180
+ position: absolute;
181
+ width: var(--n-close-size);
182
+ height: var(--n-close-size);
183
+ left: 50%;
184
+ top: 50%;
185
+ transform: translateY(-50%) translateX(-50%);
186
+ transition: inherit;
187
+ border-radius: inherit;
188
+ `),zt("disabled",[G("&:hover",`
189
+ color: var(--n-close-icon-color-hover);
190
+ `),G("&:hover::before",`
191
+ background-color: var(--n-close-color-hover);
192
+ `),G("&:focus::before",`
193
+ background-color: var(--n-close-color-hover);
194
+ `),G("&:active",`
195
+ color: var(--n-close-icon-color-pressed);
196
+ `),G("&:active::before",`
197
+ background-color: var(--n-close-color-pressed);
198
+ `)]),Z("disabled",`
199
+ cursor: not-allowed;
200
+ color: var(--n-close-icon-color-disabled);
201
+ background-color: transparent;
202
+ `),Z("round",[G("&::before",`
203
+ border-radius: 50%;
204
+ `)])]),Ay=Le({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 ri("-base-close",HF,Xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return h(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},h(Fn,{clsPrefix:t},{default:()=>h(FF,null)}))}}}),VF=Le({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function r(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,d=s?vb:Cr,p={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o};return s||(p.mode=u),h(d,p,t)}}}),oi=Le({props:{onFocus:Function,onBlur:Function},setup(e){return()=>h("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),jF=G([G("@keyframes rotator",`
205
+ 0% {
206
+ -webkit-transform: rotate(0deg);
207
+ transform: rotate(0deg);
208
+ }
209
+ 100% {
210
+ -webkit-transform: rotate(360deg);
211
+ transform: rotate(360deg);
212
+ }`),A("base-loading",`
213
+ position: relative;
214
+ line-height: 0;
215
+ width: 1em;
216
+ height: 1em;
217
+ `,[X("transition-wrapper",`
218
+ position: absolute;
219
+ width: 100%;
220
+ height: 100%;
221
+ `,[Vi()]),X("placeholder",`
222
+ position: absolute;
223
+ left: 50%;
224
+ top: 50%;
225
+ transform: translateX(-50%) translateY(-50%);
226
+ `,[Vi({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),X("container",`
227
+ animation: rotator 3s linear infinite both;
228
+ `,[X("icon",`
229
+ height: 1em;
230
+ width: 1em;
231
+ `)])])]),ah="1.6s",nu=Le({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}},{strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}}),setup(e){ri("-base-loading",jF,Xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return h("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},h(Zs,null,{default:()=>this.show?h("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},h("div",{class:`${e}-base-loading__container`},h("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},h("g",null,h("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:ah,fill:"freeze",repeatCount:"indefinite"}),h("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},h("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:ah,fill:"freeze",repeatCount:"indefinite"}),h("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:ah,fill:"freeze",repeatCount:"indefinite"})))))):h("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:My}=Hi;function WF({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=My,leaveCubicBezier:o=My}={}){return[G(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),G(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),G(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),G(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const lt={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",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",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"},UF=qo(lt.neutralBase),Iy=qo(lt.neutralInvertBase),qF=`rgba(${Iy.slice(0,3).join(", ")}, `;function zy(e){return`${qF+String(e)})`}function nr(e){const t=Array.from(Iy);return t[3]=Number(e),bf(UF,t)}const hn=Object.assign(Object.assign({name:"common"},Hi),{baseColor:lt.neutralBase,primaryColor:lt.primaryDefault,primaryColorHover:lt.primaryHover,primaryColorPressed:lt.primaryActive,primaryColorSuppl:lt.primarySuppl,infoColor:lt.infoDefault,infoColorHover:lt.infoHover,infoColorPressed:lt.infoActive,infoColorSuppl:lt.infoSuppl,successColor:lt.successDefault,successColorHover:lt.successHover,successColorPressed:lt.successActive,successColorSuppl:lt.successSuppl,warningColor:lt.warningDefault,warningColorHover:lt.warningHover,warningColorPressed:lt.warningActive,warningColorSuppl:lt.warningSuppl,errorColor:lt.errorDefault,errorColorHover:lt.errorHover,errorColorPressed:lt.errorActive,errorColorSuppl:lt.errorSuppl,textColorBase:lt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:nr(lt.alpha4),placeholderColor:nr(lt.alpha4),placeholderColorDisabled:nr(lt.alpha5),iconColor:nr(lt.alpha4),iconColorHover:Dc(nr(lt.alpha4),{lightness:.75}),iconColorPressed:Dc(nr(lt.alpha4),{lightness:.9}),iconColorDisabled:nr(lt.alpha5),opacity1:lt.alpha1,opacity2:lt.alpha2,opacity3:lt.alpha3,opacity4:lt.alpha4,opacity5:lt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:nr(Number(lt.alphaClose)),closeIconColorHover:nr(Number(lt.alphaClose)),closeIconColorPressed:nr(Number(lt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:nr(lt.alpha4),clearColorHover:Dc(nr(lt.alpha4),{lightness:.75}),clearColorPressed:Dc(nr(lt.alpha4),{lightness:.9}),scrollbarColor:zy(lt.alphaScrollbar),scrollbarColorHover:zy(lt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:nr(lt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:lt.neutralPopover,tableColor:lt.neutralCard,cardColor:lt.neutralCard,modalColor:lt.neutralModal,bodyColor:lt.neutralBody,tagColor:"#eee",avatarColor:nr(lt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:nr(lt.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:lt.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)"}),YF={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function GF(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:o,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},YF),{height:r,width:o,borderRadius:i,color:t,colorHover:n})}const Ia={name:"Scrollbar",common:hn,self:GF},KF=A("scrollbar",`
232
+ overflow: hidden;
233
+ position: relative;
234
+ z-index: auto;
235
+ height: 100%;
236
+ width: 100%;
237
+ `,[G(">",[A("scrollbar-container",`
238
+ width: 100%;
239
+ overflow: scroll;
240
+ height: 100%;
241
+ min-height: inherit;
242
+ max-height: inherit;
243
+ scrollbar-width: none;
244
+ `,[G("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
245
+ width: 0;
246
+ height: 0;
247
+ display: none;
248
+ `),G(">",[A("scrollbar-content",`
249
+ box-sizing: border-box;
250
+ min-width: 100%;
251
+ `)])])]),G(">, +",[A("scrollbar-rail",`
252
+ position: absolute;
253
+ pointer-events: none;
254
+ user-select: none;
255
+ background: var(--n-scrollbar-rail-color);
256
+ -webkit-user-select: none;
257
+ `,[Z("horizontal",`
258
+ height: var(--n-scrollbar-height);
259
+ `,[G(">",[X("scrollbar",`
260
+ height: var(--n-scrollbar-height);
261
+ border-radius: var(--n-scrollbar-border-radius);
262
+ right: 0;
263
+ `)])]),Z("horizontal--top",`
264
+ top: var(--n-scrollbar-rail-top-horizontal-top);
265
+ right: var(--n-scrollbar-rail-right-horizontal-top);
266
+ bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
267
+ left: var(--n-scrollbar-rail-left-horizontal-top);
268
+ `),Z("horizontal--bottom",`
269
+ top: var(--n-scrollbar-rail-top-horizontal-bottom);
270
+ right: var(--n-scrollbar-rail-right-horizontal-bottom);
271
+ bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
272
+ left: var(--n-scrollbar-rail-left-horizontal-bottom);
273
+ `),Z("vertical",`
274
+ width: var(--n-scrollbar-width);
275
+ `,[G(">",[X("scrollbar",`
276
+ width: var(--n-scrollbar-width);
277
+ border-radius: var(--n-scrollbar-border-radius);
278
+ bottom: 0;
279
+ `)])]),Z("vertical--left",`
280
+ top: var(--n-scrollbar-rail-top-vertical-left);
281
+ right: var(--n-scrollbar-rail-right-vertical-left);
282
+ bottom: var(--n-scrollbar-rail-bottom-vertical-left);
283
+ left: var(--n-scrollbar-rail-left-vertical-left);
284
+ `),Z("vertical--right",`
285
+ top: var(--n-scrollbar-rail-top-vertical-right);
286
+ right: var(--n-scrollbar-rail-right-vertical-right);
287
+ bottom: var(--n-scrollbar-rail-bottom-vertical-right);
288
+ left: var(--n-scrollbar-rail-left-vertical-right);
289
+ `),Z("disabled",[G(">",[X("scrollbar","pointer-events: none;")])]),G(">",[X("scrollbar",`
290
+ z-index: 1;
291
+ position: absolute;
292
+ cursor: pointer;
293
+ pointer-events: all;
294
+ background-color: var(--n-scrollbar-color);
295
+ transition: background-color .2s var(--n-scrollbar-bezier);
296
+ `,[WF(),G("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),XF=Object.assign(Object.assign({},rt.props),{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,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),mr=Le({name:"Scrollbar",props:XF,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Lt(e),o=pr("Scrollbar",r,t),i=K(null),a=K(null),s=K(null),l=K(null),c=K(null),u=K(null),d=K(null),p=K(null),m=K(null),f=K(null),y=K(null),S=K(0),w=K(0),k=K(!1),b=K(!1);let v=!1,g=!1,C,x,T=0,P=0,O=0,U=0;const D=r$(),I=rt("Scrollbar","-scrollbar",KF,Ia,e,t),te=z(()=>{const{value:_}=p,{value:E}=u,{value:ve}=f;return _===null||E===null||ve===null?0:Math.min(_,ve*_/E+Yn(I.value.self.width)*1.5)}),ie=z(()=>`${te.value}px`),pe=z(()=>{const{value:_}=m,{value:E}=d,{value:ve}=y;return _===null||E===null||ve===null?0:ve*_/E+Yn(I.value.self.height)*1.5}),ce=z(()=>`${pe.value}px`),ge=z(()=>{const{value:_}=p,{value:E}=S,{value:ve}=u,{value:Me}=f;if(_===null||ve===null||Me===null)return 0;{const Oe=ve-_;return Oe?E/Oe*(Me-te.value):0}}),Ae=z(()=>`${ge.value}px`),Re=z(()=>{const{value:_}=m,{value:E}=w,{value:ve}=d,{value:Me}=y;if(_===null||ve===null||Me===null)return 0;{const Oe=ve-_;return Oe?E/Oe*(Me-pe.value):0}}),Ee=z(()=>`${Re.value}px`),ue=z(()=>{const{value:_}=p,{value:E}=u;return _!==null&&E!==null&&E>_}),_e=z(()=>{const{value:_}=m,{value:E}=d;return _!==null&&E!==null&&E>_}),me=z(()=>{const{trigger:_}=e;return _==="none"||k.value}),De=z(()=>{const{trigger:_}=e;return _==="none"||b.value}),ke=z(()=>{const{container:_}=e;return _?_():a.value}),Ye=z(()=>{const{content:_}=e;return _?_():s.value}),tt=(_,E)=>{if(!e.scrollable)return;if(typeof _=="number"){H(_,E??0,0,!1,"auto");return}const{left:ve,top:Me,index:Oe,elSize:j,position:Ce,behavior:Ie,el:Ue,debounce:Ct=!0}=_;(ve!==void 0||Me!==void 0)&&H(ve??0,Me??0,0,!1,Ie),Ue!==void 0?H(0,Ue.offsetTop,Ue.offsetHeight,Ct,Ie):Oe!==void 0&&j!==void 0?H(0,Oe*j,j,Ct,Ie):Ce==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,Ie):Ce==="top"&&H(0,0,0,!1,Ie)},Ne=a$(()=>{e.container||tt({top:S.value,left:w.value})}),it=()=>{Ne.isDeactivated||Y()},Ze=_=>{if(Ne.isDeactivated)return;const{onResize:E}=e;E&&E(_),Y()},F=(_,E)=>{if(!e.scrollable)return;const{value:ve}=ke;ve&&(typeof _=="object"?ve.scrollBy(_):ve.scrollBy(_,E||0))};function H(_,E,ve,Me,Oe){const{value:j}=ke;if(j){if(Me){const{scrollTop:Ce,offsetHeight:Ie}=j;if(E>Ce){E+ve<=Ce+Ie||j.scrollTo({left:_,top:E+ve-Ie,behavior:Oe});return}}j.scrollTo({left:_,top:E,behavior:Oe})}}function ne(){he(),L(),Y()}function be(){ye()}function ye(){W(),de()}function W(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{b.value=!1},e.duration)}function de(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{k.value=!1},e.duration)}function he(){C!==void 0&&window.clearTimeout(C),k.value=!0}function L(){x!==void 0&&window.clearTimeout(x),b.value=!0}function V(_){const{onScroll:E}=e;E&&E(_),fe()}function fe(){const{value:_}=ke;_&&(S.value=_.scrollTop,w.value=_.scrollLeft*(o?.value?-1:1))}function N(){const{value:_}=Ye;_&&(u.value=_.offsetHeight,d.value=_.offsetWidth);const{value:E}=ke;E&&(p.value=E.offsetHeight,m.value=E.offsetWidth);const{value:ve}=c,{value:Me}=l;ve&&(y.value=ve.offsetWidth),Me&&(f.value=Me.offsetHeight)}function B(){const{value:_}=ke;_&&(S.value=_.scrollTop,w.value=_.scrollLeft*(o?.value?-1:1),p.value=_.offsetHeight,m.value=_.offsetWidth,u.value=_.scrollHeight,d.value=_.scrollWidth);const{value:E}=c,{value:ve}=l;E&&(y.value=E.offsetWidth),ve&&(f.value=ve.offsetHeight)}function Y(){e.scrollable&&(e.useUnifiedContainer?B():(N(),fe()))}function we(_){var E;return!(!((E=i.value)===null||E===void 0)&&E.contains(Po(_)))}function Q(_){_.preventDefault(),_.stopPropagation(),g=!0,sn("mousemove",window,Te,!0),sn("mouseup",window,Qe,!0),P=w.value,O=o?.value?window.innerWidth-_.clientX:_.clientX}function Te(_){if(!g)return;C!==void 0&&window.clearTimeout(C),x!==void 0&&window.clearTimeout(x);const{value:E}=m,{value:ve}=d,{value:Me}=pe;if(E===null||ve===null)return;const j=(o?.value?window.innerWidth-_.clientX-O:_.clientX-O)*(ve-E)/(E-Me),Ce=ve-E;let Ie=P+j;Ie=Math.min(Ce,Ie),Ie=Math.max(Ie,0);const{value:Ue}=ke;if(Ue){Ue.scrollLeft=Ie*(o?.value?-1:1);const{internalOnUpdateScrollLeft:Ct}=e;Ct&&Ct(Ie)}}function Qe(_){_.preventDefault(),_.stopPropagation(),en("mousemove",window,Te,!0),en("mouseup",window,Qe,!0),g=!1,Y(),we(_)&&ye()}function at(_){_.preventDefault(),_.stopPropagation(),v=!0,sn("mousemove",window,st,!0),sn("mouseup",window,ot,!0),T=S.value,U=_.clientY}function st(_){if(!v)return;C!==void 0&&window.clearTimeout(C),x!==void 0&&window.clearTimeout(x);const{value:E}=p,{value:ve}=u,{value:Me}=te;if(E===null||ve===null)return;const j=(_.clientY-U)*(ve-E)/(E-Me),Ce=ve-E;let Ie=T+j;Ie=Math.min(Ce,Ie),Ie=Math.max(Ie,0);const{value:Ue}=ke;Ue&&(Ue.scrollTop=Ie)}function ot(_){_.preventDefault(),_.stopPropagation(),en("mousemove",window,st,!0),en("mouseup",window,ot,!0),v=!1,Y(),we(_)&&ye()}Vr(()=>{const{value:_}=_e,{value:E}=ue,{value:ve}=t,{value:Me}=c,{value:Oe}=l;Me&&(_?Me.classList.remove(`${ve}-scrollbar-rail--disabled`):Me.classList.add(`${ve}-scrollbar-rail--disabled`)),Oe&&(E?Oe.classList.remove(`${ve}-scrollbar-rail--disabled`):Oe.classList.add(`${ve}-scrollbar-rail--disabled`))}),En(()=>{e.container||Y()}),qn(()=>{C!==void 0&&window.clearTimeout(C),x!==void 0&&window.clearTimeout(x),en("mousemove",window,st,!0),en("mouseup",window,ot,!0)});const Ot=z(()=>{const{common:{cubicBezierEaseInOut:_},self:{color:E,colorHover:ve,height:Me,width:Oe,borderRadius:j,railInsetHorizontalTop:Ce,railInsetHorizontalBottom:Ie,railInsetVerticalRight:Ue,railInsetVerticalLeft:Ct,railColor:Mt}}=I.value,{top:le,right:$e,bottom:Ge,left:ct}=er(Ce),{top:Bt,right:_t,bottom:$t,left:J}=er(Ie),{top:Se,right:et,bottom:xt,left:Dt}=er(o?.value?T0(Ue):Ue),{top:yt,right:xn,bottom:$n,left:tn}=er(o?.value?T0(Ct):Ct);return{"--n-scrollbar-bezier":_,"--n-scrollbar-color":E,"--n-scrollbar-color-hover":ve,"--n-scrollbar-border-radius":j,"--n-scrollbar-width":Oe,"--n-scrollbar-height":Me,"--n-scrollbar-rail-top-horizontal-top":le,"--n-scrollbar-rail-right-horizontal-top":$e,"--n-scrollbar-rail-bottom-horizontal-top":Ge,"--n-scrollbar-rail-left-horizontal-top":ct,"--n-scrollbar-rail-top-horizontal-bottom":Bt,"--n-scrollbar-rail-right-horizontal-bottom":_t,"--n-scrollbar-rail-bottom-horizontal-bottom":$t,"--n-scrollbar-rail-left-horizontal-bottom":J,"--n-scrollbar-rail-top-vertical-right":Se,"--n-scrollbar-rail-right-vertical-right":et,"--n-scrollbar-rail-bottom-vertical-right":xt,"--n-scrollbar-rail-left-vertical-right":Dt,"--n-scrollbar-rail-top-vertical-left":yt,"--n-scrollbar-rail-right-vertical-left":xn,"--n-scrollbar-rail-bottom-vertical-left":$n,"--n-scrollbar-rail-left-vertical-left":tn,"--n-scrollbar-rail-color":Mt}}),Et=n?Xt("scrollbar",void 0,Ot,e):void 0;return Object.assign(Object.assign({},{scrollTo:tt,scrollBy:F,sync:Y,syncUnifiedContainer:B,handleMouseEnterWrapper:ne,handleMouseLeaveWrapper:be}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:S,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:ue,needXBar:_e,yBarSizePx:ie,xBarSizePx:ce,yBarTopPx:Ae,xBarLeftPx:Ee,isShowXBar:me,isShowYBar:De,isIos:D,handleScroll:V,handleContentResize:it,handleContainerResize:Ze,handleYScrollMouseDown:at,handleXScrollMouseDown:Q,cssVars:n?void 0:Ot,themeClass:Et?.themeClass,onRender:Et?.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i,yPlacement:a,xPlacement:s,xScrollable:l}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",u=(m,f)=>h("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,`${n}-scrollbar-rail--vertical--${a}`,m],"data-scrollbar-rail":!0,style:[f||"",this.verticalRailStyle],"aria-hidden":!0},h(c?Df:Cr,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?h("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),d=()=>{var m,f;return(m=this.onRender)===null||m===void 0||m.call(this),h("div",xa(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):h("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},h(Zo,{onResize:this.handleContentResize},{default:()=>h("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:u(void 0,void 0),l&&h("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`,`${n}-scrollbar-rail--horizontal--${s}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},h(c?Df:Cr,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?h("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},p=this.container?d():h(Zo,{onResize:this.handleContainerResize},{default:d});return i?h(Wt,null,p,u(this.themeClass,this.cssVars)):p}}),QF=mr;function By(e){return Array.isArray(e)?e:[e]}const sh={STOP:"STOP"};function Ny(e,t){const n=t(e);e.children!==void 0&&n!==sh.STOP&&e.children.forEach(r=>Ny(r,t))}function ZF(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function JF(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function eA(e){return e.children}function tA(e){return e.key}function nA(){return!1}function rA(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function oA(e){return e.disabled===!0}function iA(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function lh(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function ch(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function aA(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function sA(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function lA(e){return e?.type==="group"}function cA(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class uA extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function dA(e,t,n,r){return ru(t.concat(e),n,r,!1)}function fA(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function hA(e,t,n,r){const o=ru(t,n,r,!1),i=ru(e,n,r,!0),a=fA(e,n),s=[];return o.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>o.delete(l)),o}function uh(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:aA(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:sA(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let d;o!==void 0?d=hA(o,n,t,c):r!==void 0?d=dA(r,n,t,c):d=ru(n,t,c,!1);const p=l==="parent",m=l==="child"||s,f=d,y=new Set,S=Math.max.apply(null,Array.from(u.keys()));for(let w=S;w>=0;w-=1){const k=w===0,b=u.get(w);for(const v of b){if(v.isLeaf)continue;const{key:g,shallowLoaded:C}=v;if(m&&C&&v.children.forEach(O=>{!O.disabled&&!O.isLeaf&&O.shallowLoaded&&f.has(O.key)&&f.delete(O.key)}),v.disabled||!C)continue;let x=!0,T=!1,P=!0;for(const O of v.children){const U=O.key;if(!O.disabled){if(P&&(P=!1),f.has(U))T=!0;else if(y.has(U)){T=!0,x=!1;break}else if(x=!1,T)break}}x&&!P?(p&&v.children.forEach(O=>{!O.disabled&&f.has(O.key)&&f.delete(O.key)}),f.add(g)):T&&y.add(g),k&&m&&f.has(g)&&f.delete(g)}}return{checkedKeys:Array.from(f),indeterminateKeys:Array.from(y)}}function ru(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach(l=>{const c=o.get(l);c!==void 0&&Ny(c,u=>{if(u.disabled)return sh.STOP;const{key:d}=u;if(!a.has(d)&&(a.add(d),s.add(d),iA(u.rawNode,i))){if(r)return sh.STOP;if(!n)throw new uA}})}),s}function pA(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return s.treeNode=null,s;for(;a;)!a.ignored&&(t||!a.isGroup)&&s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),n||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function mA(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function vA(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function Ly(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?gA:vA,i={reverse:t==="prev"};let a=!1,s=null;function l(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const u=dh(c,i);u!==null?s=u:l(o(c,n))}else{const u=o(c,!1);if(u!==null)l(u);else{const d=bA(c);d?.isGroup?l(o(d,n)):n&&l(o(c,!0))}}}}return l(e),s}function gA(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function bA(e){return e.parent}function dh(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,s=n?-1:1;for(let l=i;l!==a;l+=s){const c=r[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const u=dh(c,t);if(u!==null)return u}else return c}}return null}const yA={getChild(){return this.ignored?null:dh(this)},getParent(){const{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Ly(this,"next",e)},getPrev(e={}){return Ly(this,"prev",e)}};function wA(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function xA(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function Hy(e,t,n,r,o,i=null,a=0){const s=[];return e.forEach((l,c)=>{var u;const d=Object.create(r);if(d.rawNode=l,d.siblings=s,d.level=a,d.index=c,d.isFirstChild=c===0,d.isLastChild=c+1===e.length,d.parent=i,!d.ignored){const p=o(l);Array.isArray(p)&&(d.children=Hy(p,t,n,r,o,d,a+1))}s.push(d),t.set(d.key,d),n.has(a)||n.set(a,[]),(u=n.get(a))===null||u===void 0||u.push(d)}),s}function Vy(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=oA,getIgnored:a=nA,getIsGroup:s=lA,getKey:l=tA}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:eA,u=t.ignoreEmptyChildren?v=>{const g=c(v);return Array.isArray(g)?g.length?g:null:g}:c,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return JF(this.rawNode,u)},get shallowLoaded(){return rA(this.rawNode,u)},get ignored(){return a(this.rawNode)},contains(v){return xA(this,v)}},yA),p=Hy(e,r,o,d,u);function m(v){if(v==null)return null;const g=r.get(v);return g&&!g.isGroup&&!g.ignored?g:null}function f(v){if(v==null)return null;const g=r.get(v);return g&&!g.ignored?g:null}function y(v,g){const C=f(v);return C?C.getPrev(g):null}function S(v,g){const C=f(v);return C?C.getNext(g):null}function w(v){const g=f(v);return g?g.getParent():null}function k(v){const g=f(v);return g?g.getChild():null}const b={treeNodes:p,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:u,getFlattenedNodes(v){return wA(p,v)},getNode:m,getPrev:y,getNext:S,getParent:w,getChild:k,getFirstAvailableNode(){return mA(p)},getPath(v,g={}){return pA(v,g,b)},getCheckedKeys(v,g={}){const{cascade:C=!0,leafOnly:x=!1,checkStrategy:T="all",allowNotLoaded:P=!1}=g;return uh({checkedKeys:lh(v),indeterminateKeys:ch(v),cascade:C,leafOnly:x,checkStrategy:T,allowNotLoaded:P},b)},check(v,g,C={}){const{cascade:x=!0,leafOnly:T=!1,checkStrategy:P="all",allowNotLoaded:O=!1}=C;return uh({checkedKeys:lh(g),indeterminateKeys:ch(g),keysToCheck:v==null?[]:By(v),cascade:x,leafOnly:T,checkStrategy:P,allowNotLoaded:O},b)},uncheck(v,g,C={}){const{cascade:x=!0,leafOnly:T=!1,checkStrategy:P="all",allowNotLoaded:O=!1}=C;return uh({checkedKeys:lh(g),indeterminateKeys:ch(g),keysToUncheck:v==null?[]:By(v),cascade:x,leafOnly:T,checkStrategy:P,allowNotLoaded:O},b)},getNonLeafKeys(v={}){return ZF(p,v)}};return b}const CA={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function SA(e){const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:o,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l}=e;return Object.assign(Object.assign({},CA),{fontSizeTiny:o,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})}const jy={name:"Empty",common:hn,self:SA},_A=A("empty",`
297
+ display: flex;
298
+ flex-direction: column;
299
+ align-items: center;
300
+ font-size: var(--n-font-size);
301
+ `,[X("icon",`
302
+ width: var(--n-icon-size);
303
+ height: var(--n-icon-size);
304
+ font-size: var(--n-icon-size);
305
+ line-height: var(--n-icon-size);
306
+ color: var(--n-icon-color);
307
+ transition:
308
+ color .3s var(--n-bezier);
309
+ `,[G("+",[X("description",`
310
+ margin-top: 8px;
311
+ `)])]),X("description",`
312
+ transition: color .3s var(--n-bezier);
313
+ color: var(--n-text-color);
314
+ `),X("extra",`
315
+ text-align: center;
316
+ transition: color .3s var(--n-bezier);
317
+ margin-top: 12px;
318
+ color: var(--n-extra-text-color);
319
+ `)]),kA=Object.assign(Object.assign({},rt.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),PA=Le({name:"Empty",props:kA,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=Lt(e),o=rt("Empty","-empty",_A,jy,e,t),{localeRef:i}=co("Empty"),a=z(()=>{var u,d,p;return(u=e.description)!==null&&u!==void 0?u:(p=(d=r?.value)===null||d===void 0?void 0:d.Empty)===null||p===void 0?void 0:p.description}),s=z(()=>{var u,d;return((d=(u=r?.value)===null||u===void 0?void 0:u.Empty)===null||d===void 0?void 0:d.renderIcon)||(()=>h(AF,null))}),l=z(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:d},self:{[Be("iconSize",u)]:p,[Be("fontSize",u)]:m,textColor:f,iconColor:y,extraTextColor:S}}=o.value;return{"--n-icon-size":p,"--n-font-size":m,"--n-bezier":d,"--n-text-color":f,"--n-icon-color":y,"--n-extra-text-color":S}}),c=n?Xt("empty",z(()=>{let u="";const{size:d}=e;return u+=d[0],u}),l,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:z(()=>a.value||i.value.description),cssVars:n?void 0:l,themeClass:c?.themeClass,onRender:c?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n?.(),h("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?h("div",{class:`${t}-empty__icon`},e.icon?e.icon():h(Fn,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?h("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?h("div",{class:`${t}-empty__extra`},e.extra()):null)}}),TA={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function $A(e){const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeTiny:d,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:f,fontSizeHuge:y,heightTiny:S,heightSmall:w,heightMedium:k,heightLarge:b,heightHuge:v}=e;return Object.assign(Object.assign({},TA),{optionFontSizeTiny:d,optionFontSizeSmall:p,optionFontSizeMedium:m,optionFontSizeLarge:f,optionFontSizeHuge:y,optionHeightTiny:S,optionHeightSmall:w,optionHeightMedium:k,optionHeightLarge:b,optionHeightHuge:v,borderRadius:t,color:n,groupHeaderTextColor:r,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})}const fh={name:"InternalSelectMenu",common:hn,peers:{Scrollbar:Ia,Empty:jy},self:$A},Wy=Le({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=wt(yf);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r?.(o),a=t?t(o,!1):Mi(o[this.labelField],o,!1),s=h("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i?.class]}),a);return o.render?o.render({node:s,option:o}):n?n({node:s,option:o,selected:!1}):s}});function RA(e,t){return h(Cr,{name:"fade-in-scale-up-transition"},{default:()=>e?h(Fn,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>h(OF)}):null})}const Uy=Le({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:s,valueFieldRef:l,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:d,handleOptionMouseEnter:p}=wt(yf),m=cn(()=>{const{value:w}=n;return w?e.tmNode.key===w.key:!1});function f(w){const{tmNode:k}=e;k.disabled||d(w,k)}function y(w){const{tmNode:k}=e;k.disabled||p(w,k)}function S(w){const{tmNode:k}=e,{value:b}=m;k.disabled||b||p(w,k)}return{multiple:r,isGrouped:cn(()=>{const{tmNode:w}=e,{parent:k}=w;return k&&k.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:m,isSelected:cn(()=>{const{value:w}=t,{value:k}=r;if(w===null)return!1;const b=e.tmNode.rawNode[l.value];if(k){const{value:v}=o;return v.has(b)}else return w===b}),labelField:s,renderLabel:i,renderOption:a,handleMouseMove:S,handleMouseEnter:y,handleClick:f}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:s,renderLabel:l,handleClick:c,handleMouseEnter:u,handleMouseMove:d}=this,p=RA(n,e),m=l?[l(t,n),i&&p]:[Mi(t[this.labelField],t,n),i&&p],f=a?.(t),y=h("div",Object.assign({},f,{class:[`${e}-base-select-option`,t.class,f?.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[f?.style||"",t.style||""],onClick:Ef([c,f?.onClick]),onMouseenter:Ef([u,f?.onMouseenter]),onMousemove:Ef([d,f?.onMousemove])}),h("div",{class:`${e}-base-select-option__content`},m));return t.render?t.render({node:y,option:t,selected:n}):s?s({node:y,option:t,selected:n}):y}}),{cubicBezierEaseIn:qy,cubicBezierEaseOut:Yy}=Hi;function ji({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[G("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${qy}, transform ${t} ${qy} ${o&&`,${o}`}`}),G("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Yy}, transform ${t} ${Yy} ${o&&`,${o}`}`}),G("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),G("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const OA=A("base-select-menu",`
320
+ line-height: 1.5;
321
+ outline: none;
322
+ z-index: 0;
323
+ position: relative;
324
+ border-radius: var(--n-border-radius);
325
+ transition:
326
+ background-color .3s var(--n-bezier),
327
+ box-shadow .3s var(--n-bezier);
328
+ background-color: var(--n-color);
329
+ `,[A("scrollbar",`
330
+ max-height: var(--n-height);
331
+ `),A("virtual-list",`
332
+ max-height: var(--n-height);
333
+ `),A("base-select-option",`
334
+ min-height: var(--n-option-height);
335
+ font-size: var(--n-option-font-size);
336
+ display: flex;
337
+ align-items: center;
338
+ `,[X("content",`
339
+ z-index: 1;
340
+ white-space: nowrap;
341
+ text-overflow: ellipsis;
342
+ overflow: hidden;
343
+ `)]),A("base-select-group-header",`
344
+ min-height: var(--n-option-height);
345
+ font-size: .93em;
346
+ display: flex;
347
+ align-items: center;
348
+ `),A("base-select-menu-option-wrapper",`
349
+ position: relative;
350
+ width: 100%;
351
+ `),X("loading, empty",`
352
+ display: flex;
353
+ padding: 12px 32px;
354
+ flex: 1;
355
+ justify-content: center;
356
+ `),X("loading",`
357
+ color: var(--n-loading-color);
358
+ font-size: var(--n-loading-size);
359
+ `),X("header",`
360
+ padding: 8px var(--n-option-padding-left);
361
+ font-size: var(--n-option-font-size);
362
+ transition:
363
+ color .3s var(--n-bezier),
364
+ border-color .3s var(--n-bezier);
365
+ border-bottom: 1px solid var(--n-action-divider-color);
366
+ color: var(--n-action-text-color);
367
+ `),X("action",`
368
+ padding: 8px var(--n-option-padding-left);
369
+ font-size: var(--n-option-font-size);
370
+ transition:
371
+ color .3s var(--n-bezier),
372
+ border-color .3s var(--n-bezier);
373
+ border-top: 1px solid var(--n-action-divider-color);
374
+ color: var(--n-action-text-color);
375
+ `),A("base-select-group-header",`
376
+ position: relative;
377
+ cursor: default;
378
+ padding: var(--n-option-padding);
379
+ color: var(--n-group-header-text-color);
380
+ `),A("base-select-option",`
381
+ cursor: pointer;
382
+ position: relative;
383
+ padding: var(--n-option-padding);
384
+ transition:
385
+ color .3s var(--n-bezier),
386
+ opacity .3s var(--n-bezier);
387
+ box-sizing: border-box;
388
+ color: var(--n-option-text-color);
389
+ opacity: 1;
390
+ `,[Z("show-checkmark",`
391
+ padding-right: calc(var(--n-option-padding-right) + 20px);
392
+ `),G("&::before",`
393
+ content: "";
394
+ position: absolute;
395
+ left: 4px;
396
+ right: 4px;
397
+ top: 0;
398
+ bottom: 0;
399
+ border-radius: var(--n-border-radius);
400
+ transition: background-color .3s var(--n-bezier);
401
+ `),G("&:active",`
402
+ color: var(--n-option-text-color-pressed);
403
+ `),Z("grouped",`
404
+ padding-left: calc(var(--n-option-padding-left) * 1.5);
405
+ `),Z("pending",[G("&::before",`
406
+ background-color: var(--n-option-color-pending);
407
+ `)]),Z("selected",`
408
+ color: var(--n-option-text-color-active);
409
+ `,[G("&::before",`
410
+ background-color: var(--n-option-color-active);
411
+ `),Z("pending",[G("&::before",`
412
+ background-color: var(--n-option-color-active-pending);
413
+ `)])]),Z("disabled",`
414
+ cursor: not-allowed;
415
+ `,[zt("selected",`
416
+ color: var(--n-option-text-color-disabled);
417
+ `),Z("selected",`
418
+ opacity: var(--n-option-opacity-disabled);
419
+ `)]),X("check",`
420
+ font-size: 16px;
421
+ position: absolute;
422
+ right: calc(var(--n-option-padding-right) - 4px);
423
+ top: calc(50% - 7px);
424
+ color: var(--n-option-check-color);
425
+ transition: color .3s var(--n-bezier);
426
+ `,[ji({enterScale:"0.5"})])])]),Gy=Le({name:"InternalSelectMenu",props:Object.assign(Object.assign({},rt.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Lt(e),r=pr("InternalSelectMenu",n,t),o=rt("InternalSelectMenu","-internal-select-menu",OA,fh,e,Xe(e,"clsPrefix")),i=K(null),a=K(null),s=K(null),l=z(()=>e.treeMate.getFlattenedNodes()),c=z(()=>cA(l.value)),u=K(null);function d(){const{treeMate:ue}=e;let _e=null;const{value:me}=e;me===null?_e=ue.getFirstAvailableNode():(e.multiple?_e=ue.getNode((me||[])[(me||[]).length-1]):_e=ue.getNode(me),(!_e||_e.disabled)&&(_e=ue.getFirstAvailableNode())),te(_e||null)}function p(){const{value:ue}=u;ue&&!e.treeMate.getNode(ue.key)&&(u.value=null)}let m;St(()=>e.show,ue=>{ue?m=St(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?d():p(),On(ie)):p()},{immediate:!0}):m?.()},{immediate:!0}),qn(()=>{m?.()});const f=z(()=>Yn(o.value.self[Be("optionHeight",e.size)])),y=z(()=>er(o.value.self[Be("padding",e.size)])),S=z(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),w=z(()=>{const ue=l.value;return ue&&ue.length===0});function k(ue){const{onToggle:_e}=e;_e&&_e(ue)}function b(ue){const{onScroll:_e}=e;_e&&_e(ue)}function v(ue){var _e;(_e=s.value)===null||_e===void 0||_e.sync(),b(ue)}function g(){var ue;(ue=s.value)===null||ue===void 0||ue.sync()}function C(){const{value:ue}=u;return ue||null}function x(ue,_e){_e.disabled||te(_e,!1)}function T(ue,_e){_e.disabled||k(_e)}function P(ue){var _e;ki(ue,"action")||(_e=e.onKeyup)===null||_e===void 0||_e.call(e,ue)}function O(ue){var _e;ki(ue,"action")||(_e=e.onKeydown)===null||_e===void 0||_e.call(e,ue)}function U(ue){var _e;(_e=e.onMousedown)===null||_e===void 0||_e.call(e,ue),!e.focusable&&ue.preventDefault()}function D(){const{value:ue}=u;ue&&te(ue.getNext({loop:!0}),!0)}function I(){const{value:ue}=u;ue&&te(ue.getPrev({loop:!0}),!0)}function te(ue,_e=!1){u.value=ue,_e&&ie()}function ie(){var ue,_e;const me=u.value;if(!me)return;const De=c.value(me.key);De!==null&&(e.virtualScroll?(ue=a.value)===null||ue===void 0||ue.scrollTo({index:De}):(_e=s.value)===null||_e===void 0||_e.scrollTo({index:De,elSize:f.value}))}function pe(ue){var _e,me;!((_e=i.value)===null||_e===void 0)&&_e.contains(ue.target)&&((me=e.onFocus)===null||me===void 0||me.call(e,ue))}function ce(ue){var _e,me;!((_e=i.value)===null||_e===void 0)&&_e.contains(ue.relatedTarget)||(me=e.onBlur)===null||me===void 0||me.call(e,ue)}_n(yf,{handleOptionMouseEnter:x,handleOptionClick:T,valueSetRef:S,pendingTmNodeRef:u,nodePropsRef:Xe(e,"nodeProps"),showCheckmarkRef:Xe(e,"showCheckmark"),multipleRef:Xe(e,"multiple"),valueRef:Xe(e,"value"),renderLabelRef:Xe(e,"renderLabel"),renderOptionRef:Xe(e,"renderOption"),labelFieldRef:Xe(e,"labelField"),valueFieldRef:Xe(e,"valueField")}),_n(Nb,i),En(()=>{const{value:ue}=s;ue&&ue.sync()});const ge=z(()=>{const{size:ue}=e,{common:{cubicBezierEaseInOut:_e},self:{height:me,borderRadius:De,color:ke,groupHeaderTextColor:Ye,actionDividerColor:tt,optionTextColorPressed:Ne,optionTextColor:it,optionTextColorDisabled:Ze,optionTextColorActive:F,optionOpacityDisabled:H,optionCheckColor:ne,actionTextColor:be,optionColorPending:ye,optionColorActive:W,loadingColor:de,loadingSize:he,optionColorActivePending:L,[Be("optionFontSize",ue)]:V,[Be("optionHeight",ue)]:fe,[Be("optionPadding",ue)]:N}}=o.value;return{"--n-height":me,"--n-action-divider-color":tt,"--n-action-text-color":be,"--n-bezier":_e,"--n-border-radius":De,"--n-color":ke,"--n-option-font-size":V,"--n-group-header-text-color":Ye,"--n-option-check-color":ne,"--n-option-color-pending":ye,"--n-option-color-active":W,"--n-option-color-active-pending":L,"--n-option-height":fe,"--n-option-opacity-disabled":H,"--n-option-text-color":it,"--n-option-text-color-active":F,"--n-option-text-color-disabled":Ze,"--n-option-text-color-pressed":Ne,"--n-option-padding":N,"--n-option-padding-left":er(N,"left"),"--n-option-padding-right":er(N,"right"),"--n-loading-color":de,"--n-loading-size":he}}),{inlineThemeDisabled:Ae}=e,Re=Ae?Xt("internal-select-menu",z(()=>e.size[0]),ge,e):void 0,Ee={selfRef:i,next:D,prev:I,getPendingTmNode:C};return k0(i,e.onResize),Object.assign({mergedTheme:o,mergedClsPrefix:t,rtlEnabled:r,virtualListRef:a,scrollbarRef:s,itemSize:f,padding:y,flattenedNodes:l,empty:w,virtualListContainer(){const{value:ue}=a;return ue?.listElRef},virtualListContent(){const{value:ue}=a;return ue?.itemsElRef},doScroll:b,handleFocusin:pe,handleFocusout:ce,handleKeyUp:P,handleKeyDown:O,handleMouseDown:U,handleVirtualListResize:g,handleVirtualListScroll:v,cssVars:Ae?void 0:ge,themeClass:Re?.themeClass,onRender:Re?.onRender},Ee)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i?.(),h("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,this.rtlEnabled&&`${n}-base-select-menu--rtl`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},qt(e.header,a=>a&&h("div",{class:`${n}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?h("div",{class:`${n}-base-select-menu__loading`},h(nu,{clsPrefix:n,strokeWidth:20})):this.empty?h("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},Rt(e.empty,()=>[h(PA,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty,size:this.size})])):h(mr,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?h(Vc,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?h(Wy,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:h(Uy,{clsPrefix:n,key:a.key,tmNode:a})}):h("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?h(Wy,{key:a.key,clsPrefix:n,tmNode:a}):h(Uy,{clsPrefix:n,key:a.key,tmNode:a})))}),qt(e.action,a=>a&&[h("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),h(oi,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),EA={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function DA(e){const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},EA),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}const Ky={name:"Popover",common:hn,peers:{Scrollbar:Ia},self:DA},hh={top:"bottom",bottom:"top",left:"right",right:"left"},zn="var(--n-arrow-height) * 1.414",FA=G([A("popover",`
427
+ transition:
428
+ box-shadow .3s var(--n-bezier),
429
+ background-color .3s var(--n-bezier),
430
+ color .3s var(--n-bezier);
431
+ position: relative;
432
+ font-size: var(--n-font-size);
433
+ color: var(--n-text-color);
434
+ box-shadow: var(--n-box-shadow);
435
+ word-break: break-word;
436
+ `,[G(">",[A("scrollbar",`
437
+ height: inherit;
438
+ max-height: inherit;
439
+ `)]),zt("raw",`
440
+ background-color: var(--n-color);
441
+ border-radius: var(--n-border-radius);
442
+ `,[zt("scrollable",[zt("show-header-or-footer","padding: var(--n-padding);")])]),X("header",`
443
+ padding: var(--n-padding);
444
+ border-bottom: 1px solid var(--n-divider-color);
445
+ transition: border-color .3s var(--n-bezier);
446
+ `),X("footer",`
447
+ padding: var(--n-padding);
448
+ border-top: 1px solid var(--n-divider-color);
449
+ transition: border-color .3s var(--n-bezier);
450
+ `),Z("scrollable, show-header-or-footer",[X("content",`
451
+ padding: var(--n-padding);
452
+ `)])]),A("popover-shared",`
453
+ transform-origin: inherit;
454
+ `,[A("popover-arrow-wrapper",`
455
+ position: absolute;
456
+ overflow: hidden;
457
+ pointer-events: none;
458
+ `,[A("popover-arrow",`
459
+ transition: background-color .3s var(--n-bezier);
460
+ position: absolute;
461
+ display: block;
462
+ width: calc(${zn});
463
+ height: calc(${zn});
464
+ box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
465
+ transform: rotate(45deg);
466
+ background-color: var(--n-color);
467
+ pointer-events: all;
468
+ `)]),G("&.popover-transition-enter-from, &.popover-transition-leave-to",`
469
+ opacity: 0;
470
+ transform: scale(.85);
471
+ `),G("&.popover-transition-enter-to, &.popover-transition-leave-from",`
472
+ transform: scale(1);
473
+ opacity: 1;
474
+ `),G("&.popover-transition-enter-active",`
475
+ transition:
476
+ box-shadow .3s var(--n-bezier),
477
+ background-color .3s var(--n-bezier),
478
+ color .3s var(--n-bezier),
479
+ opacity .15s var(--n-bezier-ease-out),
480
+ transform .15s var(--n-bezier-ease-out);
481
+ `),G("&.popover-transition-leave-active",`
482
+ transition:
483
+ box-shadow .3s var(--n-bezier),
484
+ background-color .3s var(--n-bezier),
485
+ color .3s var(--n-bezier),
486
+ opacity .15s var(--n-bezier-ease-in),
487
+ transform .15s var(--n-bezier-ease-in);
488
+ `)]),Fr("top-start",`
489
+ top: calc(${zn} / -2);
490
+ left: calc(${Eo("top-start")} - var(--v-offset-left));
491
+ `),Fr("top",`
492
+ top: calc(${zn} / -2);
493
+ transform: translateX(calc(${zn} / -2)) rotate(45deg);
494
+ left: 50%;
495
+ `),Fr("top-end",`
496
+ top: calc(${zn} / -2);
497
+ right: calc(${Eo("top-end")} + var(--v-offset-left));
498
+ `),Fr("bottom-start",`
499
+ bottom: calc(${zn} / -2);
500
+ left: calc(${Eo("bottom-start")} - var(--v-offset-left));
501
+ `),Fr("bottom",`
502
+ bottom: calc(${zn} / -2);
503
+ transform: translateX(calc(${zn} / -2)) rotate(45deg);
504
+ left: 50%;
505
+ `),Fr("bottom-end",`
506
+ bottom: calc(${zn} / -2);
507
+ right: calc(${Eo("bottom-end")} + var(--v-offset-left));
508
+ `),Fr("left-start",`
509
+ left: calc(${zn} / -2);
510
+ top: calc(${Eo("left-start")} - var(--v-offset-top));
511
+ `),Fr("left",`
512
+ left: calc(${zn} / -2);
513
+ transform: translateY(calc(${zn} / -2)) rotate(45deg);
514
+ top: 50%;
515
+ `),Fr("left-end",`
516
+ left: calc(${zn} / -2);
517
+ bottom: calc(${Eo("left-end")} + var(--v-offset-top));
518
+ `),Fr("right-start",`
519
+ right: calc(${zn} / -2);
520
+ top: calc(${Eo("right-start")} - var(--v-offset-top));
521
+ `),Fr("right",`
522
+ right: calc(${zn} / -2);
523
+ transform: translateY(calc(${zn} / -2)) rotate(45deg);
524
+ top: 50%;
525
+ `),Fr("right-end",`
526
+ right: calc(${zn} / -2);
527
+ bottom: calc(${Eo("right-end")} + var(--v-offset-top));
528
+ `),...xF({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${r}, 0px)`} - ${zn}) / 2)`,l=Eo(o);return G(`[v-placement="${o}"] >`,[A("popover-shared",[Z("center-arrow",[A("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Eo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Fr(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return G(`[v-placement="${e}"] >`,[A("popover-shared",`
529
+ margin-${hh[n]}: var(--n-space);
530
+ `,[Z("show-arrow",`
531
+ margin-${hh[n]}: var(--n-space-arrow);
532
+ `),Z("overlap",`
533
+ margin: 0;
534
+ `),FT("popover-arrow-wrapper",`
535
+ right: 0;
536
+ left: 0;
537
+ top: 0;
538
+ bottom: 0;
539
+ ${n}: 100%;
540
+ ${hh[n]}: auto;
541
+ ${r}
542
+ `,[A("popover-arrow",t)])])])}const Xy=Object.assign(Object.assign({},rt.props),{to:kn.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});function AA({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:o}){return h("div",{key:"__popover-arrow__",style:r,class:[`${o}-popover-arrow-wrapper`,n]},h("div",{class:[`${o}-popover-arrow`,e],style:t}))}const MA=Le({name:"PopoverBody",inheritAttrs:!1,props:Xy,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i,mergedRtlRef:a}=Lt(e),s=rt("Popover","-popover",FA,Ky,e,o),l=pr("Popover",a,o),c=K(null),u=wt("NPopover"),d=K(null),p=K(e.show),m=K(!1);Vr(()=>{const{show:P}=e;P&&!tR()&&!e.internalDeactivateImmediately&&(m.value=!0)});const f=z(()=>{const{trigger:P,onClickoutside:O}=e,U=[],{positionManuallyRef:{value:D}}=u;return D||(P==="click"&&!O&&U.push([Xo,C,void 0,{capture:!0}]),P==="hover"&&U.push([c$,g])),O&&U.push([Xo,C,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&m.value)&&U.push([_c,e.show]),U}),y=z(()=>{const{common:{cubicBezierEaseInOut:P,cubicBezierEaseIn:O,cubicBezierEaseOut:U},self:{space:D,spaceArrow:I,padding:te,fontSize:ie,textColor:pe,dividerColor:ce,color:ge,boxShadow:Ae,borderRadius:Re,arrowHeight:Ee,arrowOffset:ue,arrowOffsetVertical:_e}}=s.value;return{"--n-box-shadow":Ae,"--n-bezier":P,"--n-bezier-ease-in":O,"--n-bezier-ease-out":U,"--n-font-size":ie,"--n-text-color":pe,"--n-color":ge,"--n-divider-color":ce,"--n-border-radius":Re,"--n-arrow-height":Ee,"--n-arrow-offset":ue,"--n-arrow-offset-vertical":_e,"--n-padding":te,"--n-space":D,"--n-space-arrow":I}}),S=z(()=>{const P=e.width==="trigger"?void 0:Jo(e.width),O=[];P&&O.push({width:P});const{maxWidth:U,minWidth:D}=e;return U&&O.push({maxWidth:Jo(U)}),D&&O.push({maxWidth:Jo(D)}),i||O.push(y.value),O}),w=i?Xt("popover",void 0,y,e):void 0;u.setBodyInstance({syncPosition:k}),qn(()=>{u.setBodyInstance(null)}),St(Xe(e,"show"),P=>{e.animated||(P?p.value=!0:p.value=!1)});function k(){var P;(P=c.value)===null||P===void 0||P.syncPosition()}function b(P){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&u.handleMouseEnter(P)}function v(P){e.trigger==="hover"&&e.keepAliveOnHover&&u.handleMouseLeave(P)}function g(P){e.trigger==="hover"&&!x().contains(Po(P))&&u.handleMouseMoveOutside(P)}function C(P){(e.trigger==="click"&&!x().contains(Po(P))||e.onClickoutside)&&u.handleClickOutside(P)}function x(){return u.getTriggerElement()}_n(Vb,d),_n(Lb,null),_n(Hb,null);function T(){if(w?.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&m.value))return null;let O;const U=u.internalRenderBodyRef.value,{value:D}=o;if(U)O=U([`${D}-popover-shared`,l?.value&&`${D}-popover--rtl`,w?.themeClass.value,e.overlap&&`${D}-popover-shared--overlap`,e.showArrow&&`${D}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${D}-popover-shared--center-arrow`],d,S.value,b,v);else{const{value:I}=u.extraClassRef,{internalTrapFocus:te}=e,ie=!Ra(t.header)||!Ra(t.footer),pe=()=>{var ce,ge;const Ae=ie?h(Wt,null,qt(t.header,ue=>ue?h("div",{class:[`${D}-popover__header`,e.headerClass],style:e.headerStyle},ue):null),qt(t.default,ue=>ue?h("div",{class:[`${D}-popover__content`,e.contentClass],style:e.contentStyle},t):null),qt(t.footer,ue=>ue?h("div",{class:[`${D}-popover__footer`,e.footerClass],style:e.footerStyle},ue):null)):e.scrollable?(ce=t.default)===null||ce===void 0?void 0:ce.call(t):h("div",{class:[`${D}-popover__content`,e.contentClass],style:e.contentStyle},t),Re=e.scrollable?h(QF,{themeOverrides:s.value.peerOverrides.Scrollbar,theme:s.value.peers.Scrollbar,contentClass:ie?void 0:`${D}-popover__content ${(ge=e.contentClass)!==null&&ge!==void 0?ge:""}`,contentStyle:ie?void 0:e.contentStyle},{default:()=>Ae}):Ae,Ee=e.showArrow?AA({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:D}):null;return[Re,Ee]};O=h("div",xa({class:[`${D}-popover`,`${D}-popover-shared`,l?.value&&`${D}-popover--rtl`,w?.themeClass.value,I.map(ce=>`${D}-${ce}`),{[`${D}-popover--scrollable`]:e.scrollable,[`${D}-popover--show-header-or-footer`]:ie,[`${D}-popover--raw`]:e.raw,[`${D}-popover-shared--overlap`]:e.overlap,[`${D}-popover-shared--show-arrow`]:e.showArrow,[`${D}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:d,style:S.value,onKeydown:u.handleKeydown,onMouseenter:b,onMouseleave:v},n),te?h(J$,{active:e.show,autoFocus:!0},{default:pe}):pe())}return Hr(O,f.value)}return{displayed:m,namespace:r,isMounted:u.isMountedRef,zIndex:u.zIndexRef,followerRef:c,adjustedTo:kn(e),followerEnabled:p,renderContentNode:T}},render(){return h(Ei,{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===kn.tdkey},{default:()=>this.animated?h(Cr,{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()})}}),IA=Object.keys(Xy),zA={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function BA(e,t,n){zA[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const NA={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:kn.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},LA=Object.assign(Object.assign(Object.assign({},rt.props),NA),{internalOnAfterLeave:Function,internalRenderBody:Function}),Qy=Le({name:"Popover",inheritAttrs:!1,props:LA,slots:Object,__popover__:!0,setup(e){const t=Go(),n=K(null),r=z(()=>e.show),o=K(e.defaultShow),i=Vn(r,o),a=cn(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:ie}=e;return!!ie?.()},l=()=>s()?!1:i.value,c=zs(e,["arrow","showArrow"]),u=z(()=>e.overlap?!1:c.value);let d=null;const p=K(null),m=K(null),f=cn(()=>e.x!==void 0&&e.y!==void 0);function y(ie){const{"onUpdate:show":pe,onUpdateShow:ce,onShow:ge,onHide:Ae}=e;o.value=ie,pe&&Fe(pe,ie),ce&&Fe(ce,ie),ie&&ge&&Fe(ge,!0),ie&&Ae&&Fe(Ae,!1)}function S(){d&&d.syncPosition()}function w(){const{value:ie}=p;ie&&(window.clearTimeout(ie),p.value=null)}function k(){const{value:ie}=m;ie&&(window.clearTimeout(ie),m.value=null)}function b(){const ie=s();if(e.trigger==="focus"&&!ie){if(l())return;y(!0)}}function v(){const ie=s();if(e.trigger==="focus"&&!ie){if(!l())return;y(!1)}}function g(){const ie=s();if(e.trigger==="hover"&&!ie){if(k(),p.value!==null||l())return;const pe=()=>{y(!0),p.value=null},{delay:ce}=e;ce===0?pe():p.value=window.setTimeout(pe,ce)}}function C(){const ie=s();if(e.trigger==="hover"&&!ie){if(w(),m.value!==null||!l())return;const pe=()=>{y(!1),m.value=null},{duration:ce}=e;ce===0?pe():m.value=window.setTimeout(pe,ce)}}function x(){C()}function T(ie){var pe;l()&&(e.trigger==="click"&&(w(),k(),y(!1)),(pe=e.onClickoutside)===null||pe===void 0||pe.call(e,ie))}function P(){if(e.trigger==="click"&&!s()){w(),k();const ie=!l();y(ie)}}function O(ie){e.internalTrapFocus&&ie.key==="Escape"&&(w(),k(),y(!1))}function U(ie){o.value=ie}function D(){var ie;return(ie=n.value)===null||ie===void 0?void 0:ie.targetRef}function I(ie){d=ie}return _n("NPopover",{getTriggerElement:D,handleKeydown:O,handleMouseEnter:g,handleMouseLeave:C,handleClickOutside:T,handleMouseMoveOutside:x,setBodyInstance:I,positionManuallyRef:f,isMountedRef:t,zIndexRef:Xe(e,"zIndex"),extraClassRef:Xe(e,"internalExtraClass"),internalRenderBodyRef:Xe(e,"internalRenderBody")}),Vr(()=>{i.value&&s()&&y(!1)}),{binderInstRef:n,positionManually:f,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:u,getMergedShow:l,setShow:U,handleClick:P,handleMouseEnter:g,handleMouseLeave:C,handleFocus:b,handleBlur:v,syncPosition:S}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(r=iR(n,"trigger"),r)){r=eo(r),r=r.type===$s?h("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.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)})}};BA(r,a?"nested":t?"manual":this.trigger,l)}}return h(Ri,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?Hr(h("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[Gb,{enabled:i,zIndex:this.zIndex}]]):null,t?null:h(Oi,null,{default:()=>r}),h(MA,sR(this.$props,IA,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)}})]}})}}),HA={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};function VA(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,opacityDisabled:d,tagColor:p,closeIconColor:m,closeIconColorHover:f,closeIconColorPressed:y,borderRadiusSmall:S,fontSizeMini:w,fontSizeTiny:k,fontSizeSmall:b,fontSizeMedium:v,heightMini:g,heightTiny:C,heightSmall:x,heightMedium:T,closeColorHover:P,closeColorPressed:O,buttonColor2Hover:U,buttonColor2Pressed:D,fontWeightStrong:I}=e;return Object.assign(Object.assign({},HA),{closeBorderRadius:S,heightTiny:g,heightSmall:C,heightMedium:x,heightLarge:T,borderRadius:S,opacityDisabled:d,fontSizeTiny:w,fontSizeSmall:k,fontSizeMedium:b,fontSizeLarge:v,fontWeightStrong:I,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:U,colorPressedCheckable:D,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:p,colorBordered:"rgb(250, 250, 252)",closeIconColor:m,closeIconColorHover:f,closeIconColorPressed:y,closeColorHover:P,closeColorPressed:O,borderPrimary:`1px solid ${ht(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:ht(o,{alpha:.12}),colorBorderedPrimary:ht(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:ht(o,{alpha:.12}),closeColorPressedPrimary:ht(o,{alpha:.18}),borderInfo:`1px solid ${ht(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ht(i,{alpha:.12}),colorBorderedInfo:ht(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ht(i,{alpha:.12}),closeColorPressedInfo:ht(i,{alpha:.18}),borderSuccess:`1px solid ${ht(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ht(a,{alpha:.12}),colorBorderedSuccess:ht(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:ht(a,{alpha:.12}),closeColorPressedSuccess:ht(a,{alpha:.18}),borderWarning:`1px solid ${ht(s,{alpha:.35})}`,textColorWarning:s,colorWarning:ht(s,{alpha:.15}),colorBorderedWarning:ht(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:ht(s,{alpha:.12}),closeColorPressedWarning:ht(s,{alpha:.18}),borderError:`1px solid ${ht(l,{alpha:.23})}`,textColorError:l,colorError:ht(l,{alpha:.1}),colorBorderedError:ht(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:ht(l,{alpha:.12}),closeColorPressedError:ht(l,{alpha:.18})})}const Zy={name:"Tag",common:hn,self:VA},Jy={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},jA=A("tag",`
543
+ --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
544
+ white-space: nowrap;
545
+ position: relative;
546
+ box-sizing: border-box;
547
+ cursor: default;
548
+ display: inline-flex;
549
+ align-items: center;
550
+ flex-wrap: nowrap;
551
+ padding: var(--n-padding);
552
+ border-radius: var(--n-border-radius);
553
+ color: var(--n-text-color);
554
+ background-color: var(--n-color);
555
+ transition:
556
+ border-color .3s var(--n-bezier),
557
+ background-color .3s var(--n-bezier),
558
+ color .3s var(--n-bezier),
559
+ box-shadow .3s var(--n-bezier),
560
+ opacity .3s var(--n-bezier);
561
+ line-height: 1;
562
+ height: var(--n-height);
563
+ font-size: var(--n-font-size);
564
+ `,[Z("strong",`
565
+ font-weight: var(--n-font-weight-strong);
566
+ `),X("border",`
567
+ pointer-events: none;
568
+ position: absolute;
569
+ left: 0;
570
+ right: 0;
571
+ top: 0;
572
+ bottom: 0;
573
+ border-radius: inherit;
574
+ border: var(--n-border);
575
+ transition: border-color .3s var(--n-bezier);
576
+ `),X("icon",`
577
+ display: flex;
578
+ margin: 0 4px 0 0;
579
+ color: var(--n-text-color);
580
+ transition: color .3s var(--n-bezier);
581
+ font-size: var(--n-avatar-size-override);
582
+ `),X("avatar",`
583
+ display: flex;
584
+ margin: 0 6px 0 0;
585
+ `),X("close",`
586
+ margin: var(--n-close-margin);
587
+ transition:
588
+ background-color .3s var(--n-bezier),
589
+ color .3s var(--n-bezier);
590
+ `),Z("round",`
591
+ padding: 0 calc(var(--n-height) / 3);
592
+ border-radius: calc(var(--n-height) / 2);
593
+ `,[X("icon",`
594
+ margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
595
+ `),X("avatar",`
596
+ margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
597
+ `),Z("closable",`
598
+ padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
599
+ `)]),Z("icon, avatar",[Z("round",`
600
+ padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
601
+ `)]),Z("disabled",`
602
+ cursor: not-allowed !important;
603
+ opacity: var(--n-opacity-disabled);
604
+ `),Z("checkable",`
605
+ cursor: pointer;
606
+ box-shadow: none;
607
+ color: var(--n-text-color-checkable);
608
+ background-color: var(--n-color-checkable);
609
+ `,[zt("disabled",[G("&:hover","background-color: var(--n-color-hover-checkable);",[zt("checked","color: var(--n-text-color-hover-checkable);")]),G("&:active","background-color: var(--n-color-pressed-checkable);",[zt("checked","color: var(--n-text-color-pressed-checkable);")])]),Z("checked",`
610
+ color: var(--n-text-color-checked);
611
+ background-color: var(--n-color-checked);
612
+ `,[zt("disabled",[G("&:hover","background-color: var(--n-color-checked-hover);"),G("&:active","background-color: var(--n-color-checked-pressed);")])])])]),WA=Object.assign(Object.assign(Object.assign({},rt.props),Jy),{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}),UA="n-tag",za=Le({name:"Tag",props:WA,slots:Object,setup(e){const t=K(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=Lt(e),a=rt("Tag","-tag",jA,Zy,e,r);_n(UA,{roundRef:Xe(e,"round")});function s(){if(!e.disabled&&e.checkable){const{checked:m,onCheckedChange:f,onUpdateChecked:y,"onUpdate:checked":S}=e;y&&y(!m),S&&S(!m),f&&f(!m)}}function l(m){if(e.triggerClickOnClose||m.stopPropagation(),!e.disabled){const{onClose:f}=e;f&&Fe(f,m)}}const c={setTextContent(m){const{value:f}=t;f&&(f.textContent=m)}},u=pr("Tag",i,r),d=z(()=>{const{type:m,size:f,color:{color:y,textColor:S}={}}=e,{common:{cubicBezierEaseInOut:w},self:{padding:k,closeMargin:b,borderRadius:v,opacityDisabled:g,textColorCheckable:C,textColorHoverCheckable:x,textColorPressedCheckable:T,textColorChecked:P,colorCheckable:O,colorHoverCheckable:U,colorPressedCheckable:D,colorChecked:I,colorCheckedHover:te,colorCheckedPressed:ie,closeBorderRadius:pe,fontWeightStrong:ce,[Be("colorBordered",m)]:ge,[Be("closeSize",f)]:Ae,[Be("closeIconSize",f)]:Re,[Be("fontSize",f)]:Ee,[Be("height",f)]:ue,[Be("color",m)]:_e,[Be("textColor",m)]:me,[Be("border",m)]:De,[Be("closeIconColor",m)]:ke,[Be("closeIconColorHover",m)]:Ye,[Be("closeIconColorPressed",m)]:tt,[Be("closeColorHover",m)]:Ne,[Be("closeColorPressed",m)]:it}}=a.value,Ze=er(b);return{"--n-font-weight-strong":ce,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":w,"--n-border-radius":v,"--n-border":De,"--n-close-icon-size":Re,"--n-close-color-pressed":it,"--n-close-color-hover":Ne,"--n-close-border-radius":pe,"--n-close-icon-color":ke,"--n-close-icon-color-hover":Ye,"--n-close-icon-color-pressed":tt,"--n-close-icon-color-disabled":ke,"--n-close-margin-top":Ze.top,"--n-close-margin-right":Ze.right,"--n-close-margin-bottom":Ze.bottom,"--n-close-margin-left":Ze.left,"--n-close-size":Ae,"--n-color":y||(n.value?ge:_e),"--n-color-checkable":O,"--n-color-checked":I,"--n-color-checked-hover":te,"--n-color-checked-pressed":ie,"--n-color-hover-checkable":U,"--n-color-pressed-checkable":D,"--n-font-size":Ee,"--n-height":ue,"--n-opacity-disabled":g,"--n-padding":k,"--n-text-color":S||me,"--n-text-color-checkable":C,"--n-text-color-checked":P,"--n-text-color-hover-checkable":x,"--n-text-color-pressed-checkable":T}}),p=o?Xt("tag",z(()=>{let m="";const{type:f,size:y,color:{color:S,textColor:w}={}}=e;return m+=f[0],m+=y[0],S&&(m+=`a${jc(S)}`),w&&(m+=`b${jc(w)}`),n.value&&(m+="c"),m}),d,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:s,handleCloseClick:l,cssVars:o?void 0:d,themeClass:p?.themeClass,onRender:p?.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:s,$slots:l}=this;s?.();const c=qt(l.avatar,d=>d&&h("div",{class:`${n}-tag__avatar`},d)),u=qt(l.icon,d=>d&&h("div",{class:`${n}-tag__icon`},d));return h("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:u,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,h("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?h(Ay,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?h("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),ew=Le({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return h(nu,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?h(ih,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>h(Fn,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>Rt(t.default,()=>[h(EF,null)])})}):null})}}}),qA={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function YA(e){const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderColor:p,iconColor:m,iconColorDisabled:f,clearColor:y,clearColorHover:S,clearColorPressed:w,placeholderColor:k,placeholderColorDisabled:b,fontSizeTiny:v,fontSizeSmall:g,fontSizeMedium:C,fontSizeLarge:x,heightTiny:T,heightSmall:P,heightMedium:O,heightLarge:U,fontWeight:D}=e;return Object.assign(Object.assign({},qA),{fontSizeTiny:v,fontSizeSmall:g,fontSizeMedium:C,fontSizeLarge:x,heightTiny:T,heightSmall:P,heightMedium:O,heightLarge:U,borderRadius:t,fontWeight:D,textColor:n,textColorDisabled:r,placeholderColor:k,placeholderColorDisabled:b,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${p}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ht(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ht(a,{alpha:.2})}`,caretColor:a,arrowColor:m,arrowColorDisabled:f,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 ${ht(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ht(l,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ht(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ht(u,{alpha:.2})}`,colorActiveError:o,caretColorError:u,clearColor:y,clearColorHover:S,clearColorPressed:w})}const tw={name:"InternalSelection",common:hn,peers:{Popover:Ky},self:YA},GA=G([A("base-selection",`
613
+ --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
614
+ --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
615
+ position: relative;
616
+ z-index: auto;
617
+ box-shadow: none;
618
+ width: 100%;
619
+ max-width: 100%;
620
+ display: inline-block;
621
+ vertical-align: bottom;
622
+ border-radius: var(--n-border-radius);
623
+ min-height: var(--n-height);
624
+ line-height: 1.5;
625
+ font-size: var(--n-font-size);
626
+ `,[A("base-loading",`
627
+ color: var(--n-loading-color);
628
+ `),A("base-selection-tags","min-height: var(--n-height);"),X("border, state-border",`
629
+ position: absolute;
630
+ left: 0;
631
+ right: 0;
632
+ top: 0;
633
+ bottom: 0;
634
+ pointer-events: none;
635
+ border: var(--n-border);
636
+ border-radius: inherit;
637
+ transition:
638
+ box-shadow .3s var(--n-bezier),
639
+ border-color .3s var(--n-bezier);
640
+ `),X("state-border",`
641
+ z-index: 1;
642
+ border-color: #0000;
643
+ `),A("base-suffix",`
644
+ cursor: pointer;
645
+ position: absolute;
646
+ top: 50%;
647
+ transform: translateY(-50%);
648
+ right: 10px;
649
+ `,[X("arrow",`
650
+ font-size: var(--n-arrow-size);
651
+ color: var(--n-arrow-color);
652
+ transition: color .3s var(--n-bezier);
653
+ `)]),A("base-selection-overlay",`
654
+ display: flex;
655
+ align-items: center;
656
+ white-space: nowrap;
657
+ pointer-events: none;
658
+ position: absolute;
659
+ top: 0;
660
+ right: 0;
661
+ bottom: 0;
662
+ left: 0;
663
+ padding: var(--n-padding-single);
664
+ transition: color .3s var(--n-bezier);
665
+ `,[X("wrapper",`
666
+ flex-basis: 0;
667
+ flex-grow: 1;
668
+ overflow: hidden;
669
+ text-overflow: ellipsis;
670
+ `)]),A("base-selection-placeholder",`
671
+ color: var(--n-placeholder-color);
672
+ `,[X("inner",`
673
+ max-width: 100%;
674
+ overflow: hidden;
675
+ `)]),A("base-selection-tags",`
676
+ cursor: pointer;
677
+ outline: none;
678
+ box-sizing: border-box;
679
+ position: relative;
680
+ z-index: auto;
681
+ display: flex;
682
+ padding: var(--n-padding-multiple);
683
+ flex-wrap: wrap;
684
+ align-items: center;
685
+ width: 100%;
686
+ vertical-align: bottom;
687
+ background-color: var(--n-color);
688
+ border-radius: inherit;
689
+ transition:
690
+ color .3s var(--n-bezier),
691
+ box-shadow .3s var(--n-bezier),
692
+ background-color .3s var(--n-bezier);
693
+ `),A("base-selection-label",`
694
+ height: var(--n-height);
695
+ display: inline-flex;
696
+ width: 100%;
697
+ vertical-align: bottom;
698
+ cursor: pointer;
699
+ outline: none;
700
+ z-index: auto;
701
+ box-sizing: border-box;
702
+ position: relative;
703
+ transition:
704
+ color .3s var(--n-bezier),
705
+ box-shadow .3s var(--n-bezier),
706
+ background-color .3s var(--n-bezier);
707
+ border-radius: inherit;
708
+ background-color: var(--n-color);
709
+ align-items: center;
710
+ `,[A("base-selection-input",`
711
+ font-size: inherit;
712
+ line-height: inherit;
713
+ outline: none;
714
+ cursor: pointer;
715
+ box-sizing: border-box;
716
+ border:none;
717
+ width: 100%;
718
+ padding: var(--n-padding-single);
719
+ background-color: #0000;
720
+ color: var(--n-text-color);
721
+ transition: color .3s var(--n-bezier);
722
+ caret-color: var(--n-caret-color);
723
+ `,[X("content",`
724
+ text-overflow: ellipsis;
725
+ overflow: hidden;
726
+ white-space: nowrap;
727
+ `)]),X("render-label",`
728
+ color: var(--n-text-color);
729
+ `)]),zt("disabled",[G("&:hover",[X("state-border",`
730
+ box-shadow: var(--n-box-shadow-hover);
731
+ border: var(--n-border-hover);
732
+ `)]),Z("focus",[X("state-border",`
733
+ box-shadow: var(--n-box-shadow-focus);
734
+ border: var(--n-border-focus);
735
+ `)]),Z("active",[X("state-border",`
736
+ box-shadow: var(--n-box-shadow-active);
737
+ border: var(--n-border-active);
738
+ `),A("base-selection-label","background-color: var(--n-color-active);"),A("base-selection-tags","background-color: var(--n-color-active);")])]),Z("disabled","cursor: not-allowed;",[X("arrow",`
739
+ color: var(--n-arrow-color-disabled);
740
+ `),A("base-selection-label",`
741
+ cursor: not-allowed;
742
+ background-color: var(--n-color-disabled);
743
+ `,[A("base-selection-input",`
744
+ cursor: not-allowed;
745
+ color: var(--n-text-color-disabled);
746
+ `),X("render-label",`
747
+ color: var(--n-text-color-disabled);
748
+ `)]),A("base-selection-tags",`
749
+ cursor: not-allowed;
750
+ background-color: var(--n-color-disabled);
751
+ `),A("base-selection-placeholder",`
752
+ cursor: not-allowed;
753
+ color: var(--n-placeholder-color-disabled);
754
+ `)]),A("base-selection-input-tag",`
755
+ height: calc(var(--n-height) - 6px);
756
+ line-height: calc(var(--n-height) - 6px);
757
+ outline: none;
758
+ display: none;
759
+ position: relative;
760
+ margin-bottom: 3px;
761
+ max-width: 100%;
762
+ vertical-align: bottom;
763
+ `,[X("input",`
764
+ font-size: inherit;
765
+ font-family: inherit;
766
+ min-width: 1px;
767
+ padding: 0;
768
+ background-color: #0000;
769
+ outline: none;
770
+ border: none;
771
+ max-width: 100%;
772
+ overflow: hidden;
773
+ width: 1em;
774
+ line-height: inherit;
775
+ cursor: pointer;
776
+ color: var(--n-text-color);
777
+ caret-color: var(--n-caret-color);
778
+ `),X("mirror",`
779
+ position: absolute;
780
+ left: 0;
781
+ top: 0;
782
+ white-space: pre;
783
+ visibility: hidden;
784
+ user-select: none;
785
+ -webkit-user-select: none;
786
+ opacity: 0;
787
+ `)]),["warning","error"].map(e=>Z(`${e}-status`,[X("state-border",`border: var(--n-border-${e});`),zt("disabled",[G("&:hover",[X("state-border",`
788
+ box-shadow: var(--n-box-shadow-hover-${e});
789
+ border: var(--n-border-hover-${e});
790
+ `)]),Z("active",[X("state-border",`
791
+ box-shadow: var(--n-box-shadow-active-${e});
792
+ border: var(--n-border-active-${e});
793
+ `),A("base-selection-label",`background-color: var(--n-color-active-${e});`),A("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),Z("focus",[X("state-border",`
794
+ box-shadow: var(--n-box-shadow-focus-${e});
795
+ border: var(--n-border-focus-${e});
796
+ `)])])]))]),A("base-selection-popover",`
797
+ margin-bottom: -3px;
798
+ display: flex;
799
+ flex-wrap: wrap;
800
+ margin-right: -8px;
801
+ `),A("base-selection-tag-wrapper",`
802
+ max-width: 100%;
803
+ display: inline-flex;
804
+ padding: 0 7px 3px 0;
805
+ `,[G("&:last-child","padding-right: 0;"),A("tag",`
806
+ font-size: 14px;
807
+ max-width: 100%;
808
+ `,[X("content",`
809
+ line-height: 1.25;
810
+ text-overflow: ellipsis;
811
+ overflow: hidden;
812
+ `)])])]),KA=Le({name:"InternalSelection",props:Object.assign(Object.assign({},rt.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Lt(e),r=pr("InternalSelection",n,t),o=K(null),i=K(null),a=K(null),s=K(null),l=K(null),c=K(null),u=K(null),d=K(null),p=K(null),m=K(null),f=K(!1),y=K(!1),S=K(!1),w=rt("InternalSelection","-internal-selection",GA,tw,e,Xe(e,"clsPrefix")),k=z(()=>e.clearable&&!e.disabled&&(S.value||e.active)),b=z(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Mi(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),v=z(()=>{const B=e.selectedOption;if(B)return B[e.labelField]}),g=z(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var B;const{value:Y}=o;if(Y){const{value:we}=i;we&&(we.style.width=`${Y.offsetWidth}px`,e.maxTagCount!=="responsive"&&((B=p.value)===null||B===void 0||B.sync({showAllItemsBeforeCalculate:!1})))}}function x(){const{value:B}=m;B&&(B.style.display="none")}function T(){const{value:B}=m;B&&(B.style.display="inline-block")}St(Xe(e,"active"),B=>{B||x()}),St(Xe(e,"pattern"),()=>{e.multiple&&On(C)});function P(B){const{onFocus:Y}=e;Y&&Y(B)}function O(B){const{onBlur:Y}=e;Y&&Y(B)}function U(B){const{onDeleteOption:Y}=e;Y&&Y(B)}function D(B){const{onClear:Y}=e;Y&&Y(B)}function I(B){const{onPatternInput:Y}=e;Y&&Y(B)}function te(B){var Y;(!B.relatedTarget||!(!((Y=a.value)===null||Y===void 0)&&Y.contains(B.relatedTarget)))&&P(B)}function ie(B){var Y;!((Y=a.value)===null||Y===void 0)&&Y.contains(B.relatedTarget)||O(B)}function pe(B){D(B)}function ce(){S.value=!0}function ge(){S.value=!1}function Ae(B){!e.active||!e.filterable||B.target!==i.value&&B.preventDefault()}function Re(B){U(B)}const Ee=K(!1);function ue(B){if(B.key==="Backspace"&&!Ee.value&&!e.pattern.length){const{selectedOptions:Y}=e;Y?.length&&Re(Y[Y.length-1])}}let _e=null;function me(B){const{value:Y}=o;if(Y){const we=B.target.value;Y.textContent=we,C()}e.ignoreComposition&&Ee.value?_e=B:I(B)}function De(){Ee.value=!0}function ke(){Ee.value=!1,e.ignoreComposition&&I(_e),_e=null}function Ye(B){var Y;y.value=!0,(Y=e.onPatternFocus)===null||Y===void 0||Y.call(e,B)}function tt(B){var Y;y.value=!1,(Y=e.onPatternBlur)===null||Y===void 0||Y.call(e,B)}function Ne(){var B,Y;if(e.filterable)y.value=!1,(B=c.value)===null||B===void 0||B.blur(),(Y=i.value)===null||Y===void 0||Y.blur();else if(e.multiple){const{value:we}=s;we?.blur()}else{const{value:we}=l;we?.blur()}}function it(){var B,Y,we;e.filterable?(y.value=!1,(B=c.value)===null||B===void 0||B.focus()):e.multiple?(Y=s.value)===null||Y===void 0||Y.focus():(we=l.value)===null||we===void 0||we.focus()}function Ze(){const{value:B}=i;B&&(T(),B.focus())}function F(){const{value:B}=i;B&&B.blur()}function H(B){const{value:Y}=u;Y&&Y.setTextContent(`+${B}`)}function ne(){const{value:B}=d;return B}function be(){return i.value}let ye=null;function W(){ye!==null&&window.clearTimeout(ye)}function de(){e.active||(W(),ye=window.setTimeout(()=>{g.value&&(f.value=!0)},100))}function he(){W()}function L(B){B||(W(),f.value=!1)}St(g,B=>{B||(f.value=!1)}),En(()=>{Vr(()=>{const B=c.value;B&&(e.disabled?B.removeAttribute("tabindex"):B.tabIndex=y.value?-1:0)})}),k0(a,e.onResize);const{inlineThemeDisabled:V}=e,fe=z(()=>{const{size:B}=e,{common:{cubicBezierEaseInOut:Y},self:{fontWeight:we,borderRadius:Q,color:Te,placeholderColor:Qe,textColor:at,paddingSingle:st,paddingMultiple:ot,caretColor:Ot,colorDisabled:Et,textColorDisabled:bt,placeholderColorDisabled:_,colorActive:E,boxShadowFocus:ve,boxShadowActive:Me,boxShadowHover:Oe,border:j,borderFocus:Ce,borderHover:Ie,borderActive:Ue,arrowColor:Ct,arrowColorDisabled:Mt,loadingColor:le,colorActiveWarning:$e,boxShadowFocusWarning:Ge,boxShadowActiveWarning:ct,boxShadowHoverWarning:Bt,borderWarning:_t,borderFocusWarning:$t,borderHoverWarning:J,borderActiveWarning:Se,colorActiveError:et,boxShadowFocusError:xt,boxShadowActiveError:Dt,boxShadowHoverError:yt,borderError:xn,borderFocusError:$n,borderHoverError:tn,borderActiveError:lr,clearColor:Qn,clearColorHover:jn,clearColorPressed:gr,clearSize:Ur,arrowSize:zr,[Be("height",B)]:se,[Be("fontSize",B)]:je}}=w.value,Je=er(st),Zt=er(ot);return{"--n-bezier":Y,"--n-border":j,"--n-border-active":Ue,"--n-border-focus":Ce,"--n-border-hover":Ie,"--n-border-radius":Q,"--n-box-shadow-active":Me,"--n-box-shadow-focus":ve,"--n-box-shadow-hover":Oe,"--n-caret-color":Ot,"--n-color":Te,"--n-color-active":E,"--n-color-disabled":Et,"--n-font-size":je,"--n-height":se,"--n-padding-single-top":Je.top,"--n-padding-multiple-top":Zt.top,"--n-padding-single-right":Je.right,"--n-padding-multiple-right":Zt.right,"--n-padding-single-left":Je.left,"--n-padding-multiple-left":Zt.left,"--n-padding-single-bottom":Je.bottom,"--n-padding-multiple-bottom":Zt.bottom,"--n-placeholder-color":Qe,"--n-placeholder-color-disabled":_,"--n-text-color":at,"--n-text-color-disabled":bt,"--n-arrow-color":Ct,"--n-arrow-color-disabled":Mt,"--n-loading-color":le,"--n-color-active-warning":$e,"--n-box-shadow-focus-warning":Ge,"--n-box-shadow-active-warning":ct,"--n-box-shadow-hover-warning":Bt,"--n-border-warning":_t,"--n-border-focus-warning":$t,"--n-border-hover-warning":J,"--n-border-active-warning":Se,"--n-color-active-error":et,"--n-box-shadow-focus-error":xt,"--n-box-shadow-active-error":Dt,"--n-box-shadow-hover-error":yt,"--n-border-error":xn,"--n-border-focus-error":$n,"--n-border-hover-error":tn,"--n-border-active-error":lr,"--n-clear-size":Ur,"--n-clear-color":Qn,"--n-clear-color-hover":jn,"--n-clear-color-pressed":gr,"--n-arrow-size":zr,"--n-font-weight":we}}),N=V?Xt("internal-selection",z(()=>e.size[0]),fe,e):void 0;return{mergedTheme:w,mergedClearable:k,mergedClsPrefix:t,rtlEnabled:r,patternInputFocused:y,filterablePlaceholder:b,label:v,selected:g,showTagsPanel:f,isComposing:Ee,counterRef:u,counterWrapperRef:d,patternInputMirrorRef:o,patternInputRef:i,selfRef:a,multipleElRef:s,singleElRef:l,patternInputWrapperRef:c,overflowRef:p,inputTagElRef:m,handleMouseDown:Ae,handleFocusin:te,handleClear:pe,handleMouseEnter:ce,handleMouseLeave:ge,handleDeleteOption:Re,handlePatternKeyDown:ue,handlePatternInputInput:me,handlePatternInputBlur:tt,handlePatternInputFocus:Ye,handleMouseEnterCounter:de,handleMouseLeaveCounter:he,handleFocusout:ie,handleCompositionEnd:ke,handleCompositionStart:De,onPopoverUpdateShow:L,focus:it,focusInput:Ze,blur:Ne,blurInput:F,updateCounter:H,getCounter:ne,getTail:be,renderLabel:e.renderLabel,cssVars:V?void 0:fe,themeClass:N?.themeClass,onRender:N?.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:s,ellipsisTagPopoverProps:l,onRender:c,renderTag:u,renderLabel:d}=this;c?.();const p=i==="responsive",m=typeof i=="number",f=p||m,y=h(Df,null,{default:()=>h(ew,{clsPrefix:s,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var w,k;return(k=(w=this.$slots).arrow)===null||k===void 0?void 0:k.call(w)}})});let S;if(t){const{labelField:w}=this,k=I=>h("div",{class:`${s}-base-selection-tag-wrapper`,key:I.value},u?u({option:I,handleClose:()=>{this.handleDeleteOption(I)}}):h(za,{size:n,closable:!I.disabled,disabled:r,onClose:()=>{this.handleDeleteOption(I)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(I,!0):Mi(I[w],I,!0)})),b=()=>(m?this.selectedOptions.slice(0,i):this.selectedOptions).map(k),v=o?h("div",{class:`${s}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},h("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${s}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),h("span",{ref:"patternInputMirrorRef",class:`${s}-base-selection-input-tag__mirror`},this.pattern)):null,g=p?()=>h("div",{class:`${s}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},h(za,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let C;if(m){const I=this.selectedOptions.length-i;I>0&&(C=h("div",{class:`${s}-base-selection-tag-wrapper`,key:"__counter__"},h(za,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${I}`})))}const x=p?o?h(w0,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:b,counter:g,tail:()=>v}):h(w0,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:b,counter:g}):m&&C?b().concat(C):b(),T=f?()=>h("div",{class:`${s}-base-selection-popover`},p?b():this.selectedOptions.map(k)):void 0,P=f?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},l):null,U=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?h("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`},h("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)):null,D=o?h("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-tags`},x,p?null:v,y):h("div",{ref:"multipleElRef",class:`${s}-base-selection-tags`,tabindex:r?void 0:0},x,y);S=h(Wt,null,f?h(Qy,Object.assign({},P,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>D,default:T}):D,U)}else if(o){const w=this.pattern||this.isComposing,k=this.active?!w:!this.selected,b=this.active?!1:this.selected;S=h("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-label`,title:this.patternInputFocused?void 0:$0(this.label)},h("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${s}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),b?h("div",{class:`${s}-base-selection-label__render-label ${s}-base-selection-overlay`,key:"input"},h("div",{class:`${s}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Mi(this.label,this.selectedOption,!0))):null,k?h("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},h("div",{class:`${s}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,y)}else S=h("div",{ref:"singleElRef",class:`${s}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?h("div",{class:`${s}-base-selection-input`,title:$0(this.label),key:"input"},h("div",{class:`${s}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Mi(this.label,this.selectedOption,!0))):h("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},h("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)),y);return h("div",{ref:"selfRef",class:[`${s}-base-selection`,this.rtlEnabled&&`${s}-base-selection--rtl`,this.themeClass,e&&`${s}-base-selection--${e}-status`,{[`${s}-base-selection--active`]:this.active,[`${s}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${s}-base-selection--disabled`]:this.disabled,[`${s}-base-selection--multiple`]:this.multiple,[`${s}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},S,a?h("div",{class:`${s}-base-selection__border`}):null,a?h("div",{class:`${s}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:ii}=Hi;function XA({duration:e=".2s",delay:t=".1s"}={}){return[G("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),G("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
813
+ opacity: 0!important;
814
+ margin-left: 0!important;
815
+ margin-right: 0!important;
816
+ `),G("&.fade-in-width-expand-transition-leave-active",`
817
+ overflow: hidden;
818
+ transition:
819
+ opacity ${e} ${ii},
820
+ max-width ${e} ${ii} ${t},
821
+ margin-left ${e} ${ii} ${t},
822
+ margin-right ${e} ${ii} ${t};
823
+ `),G("&.fade-in-width-expand-transition-enter-active",`
824
+ overflow: hidden;
825
+ transition:
826
+ opacity ${e} ${ii} ${t},
827
+ max-width ${e} ${ii},
828
+ margin-left ${e} ${ii},
829
+ margin-right ${e} ${ii};
830
+ `)]}const QA=A("base-wave",`
831
+ position: absolute;
832
+ left: 0;
833
+ right: 0;
834
+ top: 0;
835
+ bottom: 0;
836
+ border-radius: inherit;
837
+ `),ZA=Le({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ri("-base-wave",QA,Xe(e,"clsPrefix"));const t=K(null),n=K(!1);let r=null;return qn(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),On(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return h("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),JA=_a&&"chrome"in window;_a&&navigator.userAgent.includes("Firefox");const nw=_a&&navigator.userAgent.includes("Safari")&&!JA,eM={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function tM(e){const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:u,errorColor:d,errorColorHover:p,borderRadius:m,lineHeight:f,fontSizeTiny:y,fontSizeSmall:S,fontSizeMedium:w,fontSizeLarge:k,heightTiny:b,heightSmall:v,heightMedium:g,heightLarge:C,actionColor:x,clearColor:T,clearColorHover:P,clearColorPressed:O,placeholderColor:U,placeholderColorDisabled:D,iconColor:I,iconColorDisabled:te,iconColorHover:ie,iconColorPressed:pe,fontWeight:ce}=e;return Object.assign(Object.assign({},eM),{fontWeight:ce,countTextColorDisabled:r,countTextColor:n,heightTiny:b,heightSmall:v,heightMedium:g,heightLarge:C,fontSizeTiny:y,fontSizeSmall:S,fontSizeMedium:w,fontSizeLarge:k,lineHeight:f,lineHeightTextarea:f,borderRadius:m,iconSize:"16px",groupLabelColor:x,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:U,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 ${ht(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 ${ht(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${p}`,colorFocusError:a,borderFocusError:`1px solid ${p}`,boxShadowFocusError:`0 0 0 2px ${ht(d,{alpha:.2})}`,caretColorError:d,clearColor:T,clearColorHover:P,clearColorPressed:O,iconColor:I,iconColorDisabled:te,iconColorHover:ie,iconColorPressed:pe,suffixTextColor:t})}const Wi={name:"Input",common:hn,peers:{Scrollbar:Ia},self:tM},rw="n-input",nM=A("input",`
838
+ max-width: 100%;
839
+ cursor: text;
840
+ line-height: 1.5;
841
+ z-index: auto;
842
+ outline: none;
843
+ box-sizing: border-box;
844
+ position: relative;
845
+ display: inline-flex;
846
+ border-radius: var(--n-border-radius);
847
+ background-color: var(--n-color);
848
+ transition: background-color .3s var(--n-bezier);
849
+ font-size: var(--n-font-size);
850
+ font-weight: var(--n-font-weight);
851
+ --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
852
+ `,[X("input, textarea",`
853
+ overflow: hidden;
854
+ flex-grow: 1;
855
+ position: relative;
856
+ `),X("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
857
+ box-sizing: border-box;
858
+ font-size: inherit;
859
+ line-height: 1.5;
860
+ font-family: inherit;
861
+ border: none;
862
+ outline: none;
863
+ background-color: #0000;
864
+ text-align: inherit;
865
+ transition:
866
+ -webkit-text-fill-color .3s var(--n-bezier),
867
+ caret-color .3s var(--n-bezier),
868
+ color .3s var(--n-bezier),
869
+ text-decoration-color .3s var(--n-bezier);
870
+ `),X("input-el, textarea-el",`
871
+ -webkit-appearance: none;
872
+ scrollbar-width: none;
873
+ width: 100%;
874
+ min-width: 0;
875
+ text-decoration-color: var(--n-text-decoration-color);
876
+ color: var(--n-text-color);
877
+ caret-color: var(--n-caret-color);
878
+ background-color: transparent;
879
+ `,[G("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
880
+ width: 0;
881
+ height: 0;
882
+ display: none;
883
+ `),G("&::placeholder",`
884
+ color: #0000;
885
+ -webkit-text-fill-color: transparent !important;
886
+ `),G("&:-webkit-autofill ~",[X("placeholder","display: none;")])]),Z("round",[zt("textarea","border-radius: calc(var(--n-height) / 2);")]),X("placeholder",`
887
+ pointer-events: none;
888
+ position: absolute;
889
+ left: 0;
890
+ right: 0;
891
+ top: 0;
892
+ bottom: 0;
893
+ overflow: hidden;
894
+ color: var(--n-placeholder-color);
895
+ `,[G("span",`
896
+ width: 100%;
897
+ display: inline-block;
898
+ `)]),Z("textarea",[X("placeholder","overflow: visible;")]),zt("autosize","width: 100%;"),Z("autosize",[X("textarea-el, input-el",`
899
+ position: absolute;
900
+ top: 0;
901
+ left: 0;
902
+ height: 100%;
903
+ `)]),A("input-wrapper",`
904
+ overflow: hidden;
905
+ display: inline-flex;
906
+ flex-grow: 1;
907
+ position: relative;
908
+ padding-left: var(--n-padding-left);
909
+ padding-right: var(--n-padding-right);
910
+ `),X("input-mirror",`
911
+ padding: 0;
912
+ height: var(--n-height);
913
+ line-height: var(--n-height);
914
+ overflow: hidden;
915
+ visibility: hidden;
916
+ position: static;
917
+ white-space: pre;
918
+ pointer-events: none;
919
+ `),X("input-el",`
920
+ padding: 0;
921
+ height: var(--n-height);
922
+ line-height: var(--n-height);
923
+ `,[G("&[type=password]::-ms-reveal","display: none;"),G("+",[X("placeholder",`
924
+ display: flex;
925
+ align-items: center;
926
+ `)])]),zt("textarea",[X("placeholder","white-space: nowrap;")]),X("eye",`
927
+ display: flex;
928
+ align-items: center;
929
+ justify-content: center;
930
+ transition: color .3s var(--n-bezier);
931
+ `),Z("textarea","width: 100%;",[A("input-word-count",`
932
+ position: absolute;
933
+ right: var(--n-padding-right);
934
+ bottom: var(--n-padding-vertical);
935
+ `),Z("resizable",[A("input-wrapper",`
936
+ resize: vertical;
937
+ min-height: var(--n-height);
938
+ `)]),X("textarea-el, textarea-mirror, placeholder",`
939
+ height: 100%;
940
+ padding-left: 0;
941
+ padding-right: 0;
942
+ padding-top: var(--n-padding-vertical);
943
+ padding-bottom: var(--n-padding-vertical);
944
+ word-break: break-word;
945
+ display: inline-block;
946
+ vertical-align: bottom;
947
+ box-sizing: border-box;
948
+ line-height: var(--n-line-height-textarea);
949
+ margin: 0;
950
+ resize: none;
951
+ white-space: pre-wrap;
952
+ scroll-padding-block-end: var(--n-padding-vertical);
953
+ `),X("textarea-mirror",`
954
+ width: 100%;
955
+ pointer-events: none;
956
+ overflow: hidden;
957
+ visibility: hidden;
958
+ position: static;
959
+ white-space: pre-wrap;
960
+ overflow-wrap: break-word;
961
+ `)]),Z("pair",[X("input-el, placeholder","text-align: center;"),X("separator",`
962
+ display: flex;
963
+ align-items: center;
964
+ transition: color .3s var(--n-bezier);
965
+ color: var(--n-text-color);
966
+ white-space: nowrap;
967
+ `,[A("icon",`
968
+ color: var(--n-icon-color);
969
+ `),A("base-icon",`
970
+ color: var(--n-icon-color);
971
+ `)])]),Z("disabled",`
972
+ cursor: not-allowed;
973
+ background-color: var(--n-color-disabled);
974
+ `,[X("border","border: var(--n-border-disabled);"),X("input-el, textarea-el",`
975
+ cursor: not-allowed;
976
+ color: var(--n-text-color-disabled);
977
+ text-decoration-color: var(--n-text-color-disabled);
978
+ `),X("placeholder","color: var(--n-placeholder-color-disabled);"),X("separator","color: var(--n-text-color-disabled);",[A("icon",`
979
+ color: var(--n-icon-color-disabled);
980
+ `),A("base-icon",`
981
+ color: var(--n-icon-color-disabled);
982
+ `)]),A("input-word-count",`
983
+ color: var(--n-count-text-color-disabled);
984
+ `),X("suffix, prefix","color: var(--n-text-color-disabled);",[A("icon",`
985
+ color: var(--n-icon-color-disabled);
986
+ `),A("internal-icon",`
987
+ color: var(--n-icon-color-disabled);
988
+ `)])]),zt("disabled",[X("eye",`
989
+ color: var(--n-icon-color);
990
+ cursor: pointer;
991
+ `,[G("&:hover",`
992
+ color: var(--n-icon-color-hover);
993
+ `),G("&:active",`
994
+ color: var(--n-icon-color-pressed);
995
+ `)]),G("&:hover",[X("state-border","border: var(--n-border-hover);")]),Z("focus","background-color: var(--n-color-focus);",[X("state-border",`
996
+ border: var(--n-border-focus);
997
+ box-shadow: var(--n-box-shadow-focus);
998
+ `)])]),X("border, state-border",`
999
+ box-sizing: border-box;
1000
+ position: absolute;
1001
+ left: 0;
1002
+ right: 0;
1003
+ top: 0;
1004
+ bottom: 0;
1005
+ pointer-events: none;
1006
+ border-radius: inherit;
1007
+ border: var(--n-border);
1008
+ transition:
1009
+ box-shadow .3s var(--n-bezier),
1010
+ border-color .3s var(--n-bezier);
1011
+ `),X("state-border",`
1012
+ border-color: #0000;
1013
+ z-index: 1;
1014
+ `),X("prefix","margin-right: 4px;"),X("suffix",`
1015
+ margin-left: 4px;
1016
+ `),X("suffix, prefix",`
1017
+ transition: color .3s var(--n-bezier);
1018
+ flex-wrap: nowrap;
1019
+ flex-shrink: 0;
1020
+ line-height: var(--n-height);
1021
+ white-space: nowrap;
1022
+ display: inline-flex;
1023
+ align-items: center;
1024
+ justify-content: center;
1025
+ color: var(--n-suffix-text-color);
1026
+ `,[A("base-loading",`
1027
+ font-size: var(--n-icon-size);
1028
+ margin: 0 2px;
1029
+ color: var(--n-loading-color);
1030
+ `),A("base-clear",`
1031
+ font-size: var(--n-icon-size);
1032
+ `,[X("placeholder",[A("base-icon",`
1033
+ transition: color .3s var(--n-bezier);
1034
+ color: var(--n-icon-color);
1035
+ font-size: var(--n-icon-size);
1036
+ `)])]),G(">",[A("icon",`
1037
+ transition: color .3s var(--n-bezier);
1038
+ color: var(--n-icon-color);
1039
+ font-size: var(--n-icon-size);
1040
+ `)]),A("base-icon",`
1041
+ font-size: var(--n-icon-size);
1042
+ `)]),A("input-word-count",`
1043
+ pointer-events: none;
1044
+ line-height: 1.5;
1045
+ font-size: .85em;
1046
+ color: var(--n-count-text-color);
1047
+ transition: color .3s var(--n-bezier);
1048
+ margin-left: 4px;
1049
+ font-variant: tabular-nums;
1050
+ `),["warning","error"].map(e=>Z(`${e}-status`,[zt("disabled",[A("base-loading",`
1051
+ color: var(--n-loading-color-${e})
1052
+ `),X("input-el, textarea-el",`
1053
+ caret-color: var(--n-caret-color-${e});
1054
+ `),X("state-border",`
1055
+ border: var(--n-border-${e});
1056
+ `),G("&:hover",[X("state-border",`
1057
+ border: var(--n-border-hover-${e});
1058
+ `)]),G("&:focus",`
1059
+ background-color: var(--n-color-focus-${e});
1060
+ `,[X("state-border",`
1061
+ box-shadow: var(--n-box-shadow-focus-${e});
1062
+ border: var(--n-border-focus-${e});
1063
+ `)]),Z("focus",`
1064
+ background-color: var(--n-color-focus-${e});
1065
+ `,[X("state-border",`
1066
+ box-shadow: var(--n-box-shadow-focus-${e});
1067
+ border: var(--n-border-focus-${e});
1068
+ `)])])]))]),rM=A("input",[Z("disabled",[X("input-el, textarea-el",`
1069
+ -webkit-text-fill-color: var(--n-text-color-disabled);
1070
+ `)])]);function oM(e){let t=0;for(const n of e)t++;return t}function ou(e){return e===""||e==null}function iM(e){const t=K(null);function n(){const{value:i}=e;if(!i?.focus){o();return}const{selectionStart:a,selectionEnd:s,value:l}=i;if(a==null||s==null){o();return}t.value={start:a,end:s,beforeText:l.slice(0,a),afterText:l.slice(s)}}function r(){var i;const{value:a}=t,{value:s}=e;if(!a||!s)return;const{value:l}=s,{start:c,beforeText:u,afterText:d}=a;let p=l.length;if(l.endsWith(d))p=l.length-d.length;else if(l.startsWith(u))p=u.length;else{const m=u[c-1],f=l.indexOf(m,c-1);f!==-1&&(p=f+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,p,p)}function o(){t.value=null}return St(e,o),{recordCursor:n,restoreCursor:r}}const ow=Le({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=wt(rw),a=z(()=>{const{value:s}=n;return s===null||Array.isArray(s)?0:(i.value||oM)(s)});return()=>{const{value:s}=r,{value:l}=n;return h("span",{class:`${o.value}-input-word-count`},Gn(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[s===void 0?a.value:`${a.value} / ${s}`]))}}}),aM=Object.assign(Object.assign({},rt.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),_r=Le({name:"Input",props:aM,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Lt(e),i=rt("Input","-input",nM,Wi,e,t);nw&&ri("-input-safari",rM,t);const a=K(null),s=K(null),l=K(null),c=K(null),u=K(null),d=K(null),p=K(null),m=iM(p),f=K(null),{localeRef:y}=co("Input"),S=K(e.defaultValue),w=Xe(e,"value"),k=Vn(w,S),b=hr(e),{mergedSizeRef:v,mergedDisabledRef:g,mergedStatusRef:C}=b,x=K(!1),T=K(!1),P=K(!1),O=K(!1);let U=null;const D=z(()=>{const{placeholder:J,pair:Se}=e;return Se?Array.isArray(J)?J:J===void 0?["",""]:[J,J]:J===void 0?[y.value.placeholder]:[J]}),I=z(()=>{const{value:J}=P,{value:Se}=k,{value:et}=D;return!J&&(ou(Se)||Array.isArray(Se)&&ou(Se[0]))&&et[0]}),te=z(()=>{const{value:J}=P,{value:Se}=k,{value:et}=D;return!J&&et[1]&&(ou(Se)||Array.isArray(Se)&&ou(Se[1]))}),ie=cn(()=>e.internalForceFocus||x.value),pe=cn(()=>{if(g.value||e.readonly||!e.clearable||!ie.value&&!T.value)return!1;const{value:J}=k,{value:Se}=ie;return e.pair?!!(Array.isArray(J)&&(J[0]||J[1]))&&(T.value||Se):!!J&&(T.value||Se)}),ce=z(()=>{const{showPasswordOn:J}=e;if(J)return J;if(e.showPasswordToggle)return"click"}),ge=K(!1),Ae=z(()=>{const{textDecoration:J}=e;return J?Array.isArray(J)?J.map(Se=>({textDecoration:Se})):[{textDecoration:J}]:["",""]}),Re=K(void 0),Ee=()=>{var J,Se;if(e.type==="textarea"){const{autosize:et}=e;if(et&&(Re.value=(Se=(J=f.value)===null||J===void 0?void 0:J.$el)===null||Se===void 0?void 0:Se.offsetWidth),!s.value||typeof et=="boolean")return;const{paddingTop:xt,paddingBottom:Dt,lineHeight:yt}=window.getComputedStyle(s.value),xn=Number(xt.slice(0,-2)),$n=Number(Dt.slice(0,-2)),tn=Number(yt.slice(0,-2)),{value:lr}=l;if(!lr)return;if(et.minRows){const Qn=Math.max(et.minRows,1),jn=`${xn+$n+tn*Qn}px`;lr.style.minHeight=jn}if(et.maxRows){const Qn=`${xn+$n+tn*et.maxRows}px`;lr.style.maxHeight=Qn}}},ue=z(()=>{const{maxlength:J}=e;return J===void 0?void 0:Number(J)});En(()=>{const{value:J}=k;Array.isArray(J)||Ue(J)});const _e=Ho().proxy;function me(J,Se){const{onUpdateValue:et,"onUpdate:value":xt,onInput:Dt}=e,{nTriggerFormInput:yt}=b;et&&Fe(et,J,Se),xt&&Fe(xt,J,Se),Dt&&Fe(Dt,J,Se),S.value=J,yt()}function De(J,Se){const{onChange:et}=e,{nTriggerFormChange:xt}=b;et&&Fe(et,J,Se),S.value=J,xt()}function ke(J){const{onBlur:Se}=e,{nTriggerFormBlur:et}=b;Se&&Fe(Se,J),et()}function Ye(J){const{onFocus:Se}=e,{nTriggerFormFocus:et}=b;Se&&Fe(Se,J),et()}function tt(J){const{onClear:Se}=e;Se&&Fe(Se,J)}function Ne(J){const{onInputBlur:Se}=e;Se&&Fe(Se,J)}function it(J){const{onInputFocus:Se}=e;Se&&Fe(Se,J)}function Ze(){const{onDeactivate:J}=e;J&&Fe(J)}function F(){const{onActivate:J}=e;J&&Fe(J)}function H(J){const{onClick:Se}=e;Se&&Fe(Se,J)}function ne(J){const{onWrapperFocus:Se}=e;Se&&Fe(Se,J)}function be(J){const{onWrapperBlur:Se}=e;Se&&Fe(Se,J)}function ye(){P.value=!0}function W(J){P.value=!1,J.target===d.value?de(J,1):de(J,0)}function de(J,Se=0,et="input"){const xt=J.target.value;if(Ue(xt),J instanceof InputEvent&&!J.isComposing&&(P.value=!1),e.type==="textarea"){const{value:yt}=f;yt&&yt.syncUnifiedContainer()}if(U=xt,P.value)return;m.recordCursor();const Dt=he(xt);if(Dt)if(!e.pair)et==="input"?me(xt,{source:Se}):De(xt,{source:Se});else{let{value:yt}=k;Array.isArray(yt)?yt=[yt[0],yt[1]]:yt=["",""],yt[Se]=xt,et==="input"?me(yt,{source:Se}):De(yt,{source:Se})}_e.$forceUpdate(),Dt||On(m.restoreCursor)}function he(J){const{countGraphemes:Se,maxlength:et,minlength:xt}=e;if(Se){let yt;if(et!==void 0&&(yt===void 0&&(yt=Se(J)),yt>Number(et))||xt!==void 0&&(yt===void 0&&(yt=Se(J)),yt<Number(et)))return!1}const{allowInput:Dt}=e;return typeof Dt=="function"?Dt(J):!0}function L(J){Ne(J),J.relatedTarget===a.value&&Ze(),J.relatedTarget!==null&&(J.relatedTarget===u.value||J.relatedTarget===d.value||J.relatedTarget===s.value)||(O.value=!1),B(J,"blur"),p.value=null}function V(J,Se){it(J),x.value=!0,O.value=!0,F(),B(J,"focus"),Se===0?p.value=u.value:Se===1?p.value=d.value:Se===2&&(p.value=s.value)}function fe(J){e.passivelyActivated&&(be(J),B(J,"blur"))}function N(J){e.passivelyActivated&&(x.value=!0,ne(J),B(J,"focus"))}function B(J,Se){J.relatedTarget!==null&&(J.relatedTarget===u.value||J.relatedTarget===d.value||J.relatedTarget===s.value||J.relatedTarget===a.value)||(Se==="focus"?(Ye(J),x.value=!0):Se==="blur"&&(ke(J),x.value=!1))}function Y(J,Se){de(J,Se,"change")}function we(J){H(J)}function Q(J){tt(J),Te()}function Te(){e.pair?(me(["",""],{source:"clear"}),De(["",""],{source:"clear"})):(me("",{source:"clear"}),De("",{source:"clear"}))}function Qe(J){const{onMousedown:Se}=e;Se&&Se(J);const{tagName:et}=J.target;if(et!=="INPUT"&&et!=="TEXTAREA"){if(e.resizable){const{value:xt}=a;if(xt){const{left:Dt,top:yt,width:xn,height:$n}=xt.getBoundingClientRect(),tn=14;if(Dt+xn-tn<J.clientX&&J.clientX<Dt+xn&&yt+$n-tn<J.clientY&&J.clientY<yt+$n)return}}J.preventDefault(),x.value||ve()}}function at(){var J;T.value=!0,e.type==="textarea"&&((J=f.value)===null||J===void 0||J.handleMouseEnterWrapper())}function st(){var J;T.value=!1,e.type==="textarea"&&((J=f.value)===null||J===void 0||J.handleMouseLeaveWrapper())}function ot(){g.value||ce.value==="click"&&(ge.value=!ge.value)}function Ot(J){if(g.value)return;J.preventDefault();const Se=xt=>{xt.preventDefault(),en("mouseup",document,Se)};if(sn("mouseup",document,Se),ce.value!=="mousedown")return;ge.value=!0;const et=()=>{ge.value=!1,en("mouseup",document,et)};sn("mouseup",document,et)}function Et(J){e.onKeyup&&Fe(e.onKeyup,J)}function bt(J){switch(e.onKeydown&&Fe(e.onKeydown,J),J.key){case"Escape":E();break;case"Enter":_(J);break}}function _(J){var Se,et;if(e.passivelyActivated){const{value:xt}=O;if(xt){e.internalDeactivateOnEnter&&E();return}J.preventDefault(),e.type==="textarea"?(Se=s.value)===null||Se===void 0||Se.focus():(et=u.value)===null||et===void 0||et.focus()}}function E(){e.passivelyActivated&&(O.value=!1,On(()=>{var J;(J=a.value)===null||J===void 0||J.focus()}))}function ve(){var J,Se,et;g.value||(e.passivelyActivated?(J=a.value)===null||J===void 0||J.focus():((Se=s.value)===null||Se===void 0||Se.focus(),(et=u.value)===null||et===void 0||et.focus()))}function Me(){var J;!((J=a.value)===null||J===void 0)&&J.contains(document.activeElement)&&document.activeElement.blur()}function Oe(){var J,Se;(J=s.value)===null||J===void 0||J.select(),(Se=u.value)===null||Se===void 0||Se.select()}function j(){g.value||(s.value?s.value.focus():u.value&&u.value.focus())}function Ce(){const{value:J}=a;J?.contains(document.activeElement)&&J!==document.activeElement&&E()}function Ie(J){if(e.type==="textarea"){const{value:Se}=s;Se?.scrollTo(J)}else{const{value:Se}=u;Se?.scrollTo(J)}}function Ue(J){const{type:Se,pair:et,autosize:xt}=e;if(!et&&xt)if(Se==="textarea"){const{value:Dt}=l;Dt&&(Dt.textContent=`${J??""}\r
1071
+ `)}else{const{value:Dt}=c;Dt&&(J?Dt.textContent=J:Dt.innerHTML="&nbsp;")}}function Ct(){Ee()}const Mt=K({top:"0"});function le(J){var Se;const{scrollTop:et}=J.target;Mt.value.top=`${-et}px`,(Se=f.value)===null||Se===void 0||Se.syncUnifiedContainer()}let $e=null;Vr(()=>{const{autosize:J,type:Se}=e;J&&Se==="textarea"?$e=St(k,et=>{!Array.isArray(et)&&et!==U&&Ue(et)}):$e?.()});let Ge=null;Vr(()=>{e.type==="textarea"?Ge=St(k,J=>{var Se;!Array.isArray(J)&&J!==U&&((Se=f.value)===null||Se===void 0||Se.syncUnifiedContainer())}):Ge?.()}),_n(rw,{mergedValueRef:k,maxlengthRef:ue,mergedClsPrefixRef:t,countGraphemesRef:Xe(e,"countGraphemes")});const ct={wrapperElRef:a,inputElRef:u,textareaElRef:s,isCompositing:P,clear:Te,focus:ve,blur:Me,select:Oe,deactivate:Ce,activate:j,scrollTo:Ie},Bt=pr("Input",o,t),_t=z(()=>{const{value:J}=v,{common:{cubicBezierEaseInOut:Se},self:{color:et,borderRadius:xt,textColor:Dt,caretColor:yt,caretColorError:xn,caretColorWarning:$n,textDecorationColor:tn,border:lr,borderDisabled:Qn,borderHover:jn,borderFocus:gr,placeholderColor:Ur,placeholderColorDisabled:zr,lineHeightTextarea:se,colorDisabled:je,colorFocus:Je,textColorDisabled:Zt,boxShadowFocus:Nn,iconSize:nn,colorFocusWarning:Br,boxShadowFocusWarning:po,borderWarning:Fo,borderFocusWarning:dl,borderHoverWarning:Ji,colorFocusError:fl,boxShadowFocusError:hl,borderError:R,borderFocusError:q,borderHoverError:M,clearSize:re,clearColor:ae,clearColorHover:ee,clearColorPressed:Pe,iconColor:ze,iconColorDisabled:He,suffixTextColor:Ve,countTextColor:We,countTextColorDisabled:nt,iconColorHover:kt,iconColorPressed:Nt,loadingColor:Vt,loadingColorError:Cn,loadingColorWarning:bn,fontWeight:br,[Be("padding",J)]:ea,[Be("fontSize",J)]:pl,[Be("height",J)]:hp}}=i.value,{left:ml,right:Dx}=er(ea);return{"--n-bezier":Se,"--n-count-text-color":We,"--n-count-text-color-disabled":nt,"--n-color":et,"--n-font-size":pl,"--n-font-weight":br,"--n-border-radius":xt,"--n-height":hp,"--n-padding-left":ml,"--n-padding-right":Dx,"--n-text-color":Dt,"--n-caret-color":yt,"--n-text-decoration-color":tn,"--n-border":lr,"--n-border-disabled":Qn,"--n-border-hover":jn,"--n-border-focus":gr,"--n-placeholder-color":Ur,"--n-placeholder-color-disabled":zr,"--n-icon-size":nn,"--n-line-height-textarea":se,"--n-color-disabled":je,"--n-color-focus":Je,"--n-text-color-disabled":Zt,"--n-box-shadow-focus":Nn,"--n-loading-color":Vt,"--n-caret-color-warning":$n,"--n-color-focus-warning":Br,"--n-box-shadow-focus-warning":po,"--n-border-warning":Fo,"--n-border-focus-warning":dl,"--n-border-hover-warning":Ji,"--n-loading-color-warning":bn,"--n-caret-color-error":xn,"--n-color-focus-error":fl,"--n-box-shadow-focus-error":hl,"--n-border-error":R,"--n-border-focus-error":q,"--n-border-hover-error":M,"--n-loading-color-error":Cn,"--n-clear-color":ae,"--n-clear-size":re,"--n-clear-color-hover":ee,"--n-clear-color-pressed":Pe,"--n-icon-color":ze,"--n-icon-color-hover":kt,"--n-icon-color-pressed":Nt,"--n-icon-color-disabled":He,"--n-suffix-text-color":Ve}}),$t=r?Xt("input",z(()=>{const{value:J}=v;return J[0]}),_t,e):void 0;return Object.assign(Object.assign({},ct),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:f,rtlEnabled:Bt,uncontrolledValue:S,mergedValue:k,passwordVisible:ge,mergedPlaceholder:D,showPlaceholder1:I,showPlaceholder2:te,mergedFocus:ie,isComposing:P,activated:O,showClearButton:pe,mergedSize:v,mergedDisabled:g,textDecorationStyle:Ae,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:ce,placeholderStyle:Mt,mergedStatus:C,textAreaScrollContainerWidth:Re,handleTextAreaScroll:le,handleCompositionStart:ye,handleCompositionEnd:W,handleInput:de,handleInputBlur:L,handleInputFocus:V,handleWrapperBlur:fe,handleWrapperFocus:N,handleMouseEnter:at,handleMouseLeave:st,handleMouseDown:Qe,handleChange:Y,handleClick:we,handleClear:Q,handlePasswordToggleClick:ot,handlePasswordToggleMousedown:Ot,handleWrapperKeydown:bt,handleWrapperKeyup:Et,handleTextAreaMirrorResize:Ct,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:r?void 0:_t,themeClass:$t?.themeClass,onRender:$t?.onRender})},render(){var e,t,n,r,o,i,a;const{mergedClsPrefix:s,mergedStatus:l,themeClass:c,type:u,countGraphemes:d,onRender:p}=this,m=this.$slots;return p?.(),h("div",{ref:"wrapperElRef",class:[`${s}-input`,c,l&&`${s}-input--${l}-status`,{[`${s}-input--rtl`]:this.rtlEnabled,[`${s}-input--disabled`]:this.mergedDisabled,[`${s}-input--textarea`]:u==="textarea",[`${s}-input--resizable`]:this.resizable&&!this.autosize,[`${s}-input--autosize`]:this.autosize,[`${s}-input--round`]:this.round&&u!=="textarea",[`${s}-input--pair`]:this.pair,[`${s}-input--focus`]:this.mergedFocus,[`${s}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},h("div",{class:`${s}-input-wrapper`},qt(m.prefix,f=>f&&h("div",{class:`${s}-input__prefix`},f)),u==="textarea"?h(mr,{ref:"textareaScrollbarInstRef",class:`${s}-input__textarea`,container:this.getTextareaScrollContainer,theme:(t=(e=this.theme)===null||e===void 0?void 0:e.peers)===null||t===void 0?void 0:t.Scrollbar,themeOverrides:(r=(n=this.themeOverrides)===null||n===void 0?void 0:n.peers)===null||r===void 0?void 0:r.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var f,y;const{textAreaScrollContainerWidth:S}=this,w={width:this.autosize&&S&&`${S}px`};return h(Wt,null,h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${s}-input__textarea-el`,(f=this.inputProps)===null||f===void 0?void 0:f.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(y=this.inputProps)===null||y===void 0?void 0:y.style,w],onBlur:this.handleInputBlur,onFocus:k=>{this.handleInputFocus(k,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?h("div",{class:`${s}-input__placeholder`,style:[this.placeholderStyle,w],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?h(Zo,{onResize:this.handleTextAreaMirrorResize},{default:()=>h("div",{ref:"textareaMirrorElRef",class:`${s}-input__textarea-mirror`,key:"mirror"})}):null)}}):h("div",{class:`${s}-input__input`},h("input",Object.assign({type:u==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":u},this.inputProps,{ref:"inputElRef",class:[`${s}-input__input-el`,(o=this.inputProps)===null||o===void 0?void 0:o.class],style:[this.textDecorationStyle[0],(i=this.inputProps)===null||i===void 0?void 0:i.style],tabindex:this.passivelyActivated&&!this.activated?-1:(a=this.inputProps)===null||a===void 0?void 0:a.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:f=>{this.handleInputFocus(f,0)},onInput:f=>{this.handleInput(f,0)},onChange:f=>{this.handleChange(f,0)}})),this.showPlaceholder1?h("div",{class:`${s}-input__placeholder`},h("span",null,this.mergedPlaceholder[0])):null,this.autosize?h("div",{class:`${s}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&qt(m.suffix,f=>f||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?h("div",{class:`${s}-input__suffix`},[qt(m["clear-icon-placeholder"],y=>(this.clearable||y)&&h(ih,{clsPrefix:s,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>y,icon:()=>{var S,w;return(w=(S=this.$slots)["clear-icon"])===null||w===void 0?void 0:w.call(S)}})),this.internalLoadingBeforeSuffix?null:f,this.loading!==void 0?h(ew,{clsPrefix:s,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?f:null,this.showCount&&this.type!=="textarea"?h(ow,null,{default:y=>{var S;const{renderCount:w}=this;return w?w(y):(S=m.count)===null||S===void 0?void 0:S.call(m,y)}}):null,this.mergedShowPasswordOn&&this.type==="password"?h("div",{class:`${s}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Rt(m["password-visible-icon"],()=>[h(Fn,{clsPrefix:s},{default:()=>h(MF,null)})]):Rt(m["password-invisible-icon"],()=>[h(Fn,{clsPrefix:s},{default:()=>h(IF,null)})])):null]):null)),this.pair?h("span",{class:`${s}-input__separator`},Rt(m.separator,()=>[this.separator])):null,this.pair?h("div",{class:`${s}-input-wrapper`},h("div",{class:`${s}-input__input`},h("input",{ref:"inputEl2Ref",type:this.type,class:`${s}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:f=>{this.handleInputFocus(f,1)},onInput:f=>{this.handleInput(f,1)},onChange:f=>{this.handleChange(f,1)}}),this.showPlaceholder2?h("div",{class:`${s}-input__placeholder`},h("span",null,this.mergedPlaceholder[1])):null),qt(m.suffix,f=>(this.clearable||f)&&h("div",{class:`${s}-input__suffix`},[this.clearable&&h(ih,{clsPrefix:s,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var y;return(y=m["clear-icon"])===null||y===void 0?void 0:y.call(m)},placeholder:()=>{var y;return(y=m["clear-icon-placeholder"])===null||y===void 0?void 0:y.call(m)}}),f]))):null,this.mergedBordered?h("div",{class:`${s}-input__border`}):null,this.mergedBordered?h("div",{class:`${s}-input__state-border`}):null,this.showCount&&u==="textarea"?h(ow,null,{default:f=>{var y;const{renderCount:S}=this;return S?S(f):(y=m.count)===null||y===void 0?void 0:y.call(m,f)}}):null)}}),sM=A("input-group",`
1072
+ display: inline-flex;
1073
+ width: 100%;
1074
+ flex-wrap: nowrap;
1075
+ vertical-align: bottom;
1076
+ `,[G(">",[A("input",[G("&:not(:last-child)",`
1077
+ border-top-right-radius: 0!important;
1078
+ border-bottom-right-radius: 0!important;
1079
+ `),G("&:not(:first-child)",`
1080
+ border-top-left-radius: 0!important;
1081
+ border-bottom-left-radius: 0!important;
1082
+ margin-left: -1px!important;
1083
+ `)]),A("button",[G("&:not(:last-child)",`
1084
+ border-top-right-radius: 0!important;
1085
+ border-bottom-right-radius: 0!important;
1086
+ `,[X("state-border, border",`
1087
+ border-top-right-radius: 0!important;
1088
+ border-bottom-right-radius: 0!important;
1089
+ `)]),G("&:not(:first-child)",`
1090
+ border-top-left-radius: 0!important;
1091
+ border-bottom-left-radius: 0!important;
1092
+ `,[X("state-border, border",`
1093
+ border-top-left-radius: 0!important;
1094
+ border-bottom-left-radius: 0!important;
1095
+ `)])]),G("*",[G("&:not(:last-child)",`
1096
+ border-top-right-radius: 0!important;
1097
+ border-bottom-right-radius: 0!important;
1098
+ `,[G(">",[A("input",`
1099
+ border-top-right-radius: 0!important;
1100
+ border-bottom-right-radius: 0!important;
1101
+ `),A("base-selection",[A("base-selection-label",`
1102
+ border-top-right-radius: 0!important;
1103
+ border-bottom-right-radius: 0!important;
1104
+ `),A("base-selection-tags",`
1105
+ border-top-right-radius: 0!important;
1106
+ border-bottom-right-radius: 0!important;
1107
+ `),X("box-shadow, border, state-border",`
1108
+ border-top-right-radius: 0!important;
1109
+ border-bottom-right-radius: 0!important;
1110
+ `)])])]),G("&:not(:first-child)",`
1111
+ margin-left: -1px!important;
1112
+ border-top-left-radius: 0!important;
1113
+ border-bottom-left-radius: 0!important;
1114
+ `,[G(">",[A("input",`
1115
+ border-top-left-radius: 0!important;
1116
+ border-bottom-left-radius: 0!important;
1117
+ `),A("base-selection",[A("base-selection-label",`
1118
+ border-top-left-radius: 0!important;
1119
+ border-bottom-left-radius: 0!important;
1120
+ `),A("base-selection-tags",`
1121
+ border-top-left-radius: 0!important;
1122
+ border-bottom-left-radius: 0!important;
1123
+ `),X("box-shadow, border, state-border",`
1124
+ border-top-left-radius: 0!important;
1125
+ border-bottom-left-radius: 0!important;
1126
+ `)])])])])])]),lM=Le({name:"InputGroup",props:{},setup(e){const{mergedClsPrefixRef:t}=Lt(e);return ri("-input-group",sM,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return h("div",{class:`${e}-input-group`},this.$slots)}});function iu(e){return e.type==="group"}function iw(e){return e.type==="ignored"}function ph(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function aw(e,t){return{getIsGroup:iu,getIgnored:iw,getKey(r){return iu(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function cM(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const s of i)if(iu(s)){const l=o(s[r]);l.length&&a.push(Object.assign({},s,{[r]:l}))}else{if(iw(s))continue;t(n,s)&&a.push(s)}return a}return o(e)}function uM(e,t,n){const r=new Map;return e.forEach(o=>{iu(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}function dM(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const fM={name:"AutoComplete",common:hn,peers:{InternalSelectMenu:fh,Input:Wi},self:dM},hM=G([A("auto-complete",`
1127
+ z-index: auto;
1128
+ position: relative;
1129
+ display: inline-flex;
1130
+ width: 100%;
1131
+ `),A("auto-complete-menu",`
1132
+ margin: 4px 0;
1133
+ box-shadow: var(--n-menu-box-shadow);
1134
+ `,[ji({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]);function pM(e){return e.map(sw)}function sw(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>sw(o))}:e}const mM=Object.assign(Object.assign({},rt.props),{to:kn.propTo,menuProps:Object,append:Boolean,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,showEmpty:Boolean,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),vM=Le({name:"AutoComplete",props:mM,slots:Object,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=Lt(e),i=hr(e),{mergedSizeRef:a,mergedDisabledRef:s,mergedStatusRef:l}=i,c=K(null),u=K(null),d=K(e.defaultValue),p=Xe(e,"value"),m=Vn(p,d),f=K(!1),y=K(!1),S=rt("AutoComplete","-auto-complete",hM,fM,e,r),w=z(()=>pM(e.options)),k=z(()=>{const{getShow:me}=e;return me?me(m.value||""):!!m.value}),b=z(()=>k.value&&f.value&&(e.showEmpty?!0:!!w.value.length)),v=z(()=>Vy(w.value,aw("value","children")));function g(me){const{"onUpdate:value":De,onUpdateValue:ke,onInput:Ye}=e,{nTriggerFormInput:tt,nTriggerFormChange:Ne}=i;ke&&Fe(ke,me),De&&Fe(De,me),Ye&&Fe(Ye,me),d.value=me,tt(),Ne()}function C(me){const{onSelect:De}=e,{nTriggerFormInput:ke,nTriggerFormChange:Ye}=i;De&&Fe(De,me),ke(),Ye()}function x(me){const{onBlur:De}=e,{nTriggerFormBlur:ke}=i;De&&Fe(De,me),ke()}function T(me){const{onFocus:De}=e,{nTriggerFormFocus:ke}=i;De&&Fe(De,me),ke()}function P(){y.value=!0}function O(){window.setTimeout(()=>{y.value=!1},0)}function U(me){var De,ke,Ye;switch(me.key){case"Enter":if(!y.value){const tt=(De=u.value)===null||De===void 0?void 0:De.getPendingTmNode();tt&&(D(tt.rawNode),me.preventDefault())}break;case"ArrowDown":(ke=u.value)===null||ke===void 0||ke.next();break;case"ArrowUp":(Ye=u.value)===null||Ye===void 0||Ye.prev();break}}function D(me){me?.value!==void 0&&(C(me.value),e.clearAfterSelect?g(null):me.label!==void 0&&g(e.append?`${m.value}${me.label}`:me.label),f.value=!1,e.blurAfterSelect&&Ae())}function I(){g(null)}function te(me){f.value=!0,T(me)}function ie(me){f.value=!1,x(me)}function pe(me){f.value=!0,g(me)}function ce(me){D(me.rawNode)}function ge(me){var De;!((De=c.value)===null||De===void 0)&&De.contains(Po(me))||(f.value=!1)}function Ae(){var me,De;!((me=c.value)===null||me===void 0)&&me.contains(document.activeElement)&&((De=document.activeElement)===null||De===void 0||De.blur())}const Re=z(()=>{const{common:{cubicBezierEaseInOut:me},self:{menuBoxShadow:De}}=S.value;return{"--n-menu-box-shadow":De,"--n-bezier":me}}),Ee=o?Xt("auto-complete",void 0,Re,e):void 0,ue=K(null),_e={focus:()=>{var me;(me=ue.value)===null||me===void 0||me.focus()},blur:()=>{var me;(me=ue.value)===null||me===void 0||me.blur()}};return{focus:_e.focus,blur:_e.blur,inputInstRef:ue,uncontrolledValue:d,mergedValue:m,isMounted:Go(),adjustedTo:kn(e),menuInstRef:u,triggerElRef:c,treeMate:v,mergedSize:a,mergedDisabled:s,active:b,mergedStatus:l,handleClear:I,handleFocus:te,handleBlur:ie,handleInput:pe,handleToggle:ce,handleClickOutsideMenu:ge,handleCompositionStart:P,handleCompositionEnd:O,handleKeyDown:U,mergedTheme:S,cssVars:o?void 0:Re,themeClass:Ee?.themeClass,onRender:Ee?.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return h("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},h(Ri,null,{default:()=>[h(Oi,null,{default:()=>{const t=this.$slots.default;if(t)return aR("default",t,{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return h(_r,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),h(Ei,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===kn.tdkey,placement:this.placement,width:"target"},{default:()=>h(Cr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return Hr(h(Gy,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n?.class],style:[n?.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle}),{empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}}),[[Xo,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}});function Ui(e){return bf(e,[255,255,255,.16])}function au(e){return bf(e,[0,0,0,.12])}const lw="n-button-group",gM={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"};function bM(e){const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:p,primaryColorHover:m,primaryColorPressed:f,borderColor:y,primaryColor:S,baseColor:w,infoColor:k,infoColorHover:b,infoColorPressed:v,successColor:g,successColorHover:C,successColorPressed:x,warningColor:T,warningColorHover:P,warningColorPressed:O,errorColor:U,errorColorHover:D,errorColorPressed:I,fontWeight:te,buttonColor2:ie,buttonColor2Hover:pe,buttonColor2Pressed:ce,fontWeightStrong:ge}=e;return Object.assign(Object.assign({},gM),{heightTiny:t,heightSmall:n,heightMedium:r,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:ie,colorSecondaryHover:pe,colorSecondaryPressed:ce,colorTertiary:ie,colorTertiaryHover:pe,colorTertiaryPressed:ce,colorQuaternary:"#0000",colorQuaternaryHover:pe,colorQuaternaryPressed:ce,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:p,textColorHover:m,textColorPressed:f,textColorFocus:m,textColorDisabled:d,textColorText:d,textColorTextHover:m,textColorTextPressed:f,textColorTextFocus:m,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:m,textColorGhostPressed:f,textColorGhostFocus:m,textColorGhostDisabled:d,border:`1px solid ${y}`,borderHover:`1px solid ${m}`,borderPressed:`1px solid ${f}`,borderFocus:`1px solid ${m}`,borderDisabled:`1px solid ${y}`,rippleColor:S,colorPrimary:S,colorHoverPrimary:m,colorPressedPrimary:f,colorFocusPrimary:m,colorDisabledPrimary:S,textColorPrimary:w,textColorHoverPrimary:w,textColorPressedPrimary:w,textColorFocusPrimary:w,textColorDisabledPrimary:w,textColorTextPrimary:S,textColorTextHoverPrimary:m,textColorTextPressedPrimary:f,textColorTextFocusPrimary:m,textColorTextDisabledPrimary:d,textColorGhostPrimary:S,textColorGhostHoverPrimary:m,textColorGhostPressedPrimary:f,textColorGhostFocusPrimary:m,textColorGhostDisabledPrimary:S,borderPrimary:`1px solid ${S}`,borderHoverPrimary:`1px solid ${m}`,borderPressedPrimary:`1px solid ${f}`,borderFocusPrimary:`1px solid ${m}`,borderDisabledPrimary:`1px solid ${S}`,rippleColorPrimary:S,colorInfo:k,colorHoverInfo:b,colorPressedInfo:v,colorFocusInfo:b,colorDisabledInfo:k,textColorInfo:w,textColorHoverInfo:w,textColorPressedInfo:w,textColorFocusInfo:w,textColorDisabledInfo:w,textColorTextInfo:k,textColorTextHoverInfo:b,textColorTextPressedInfo:v,textColorTextFocusInfo:b,textColorTextDisabledInfo:d,textColorGhostInfo:k,textColorGhostHoverInfo:b,textColorGhostPressedInfo:v,textColorGhostFocusInfo:b,textColorGhostDisabledInfo:k,borderInfo:`1px solid ${k}`,borderHoverInfo:`1px solid ${b}`,borderPressedInfo:`1px solid ${v}`,borderFocusInfo:`1px solid ${b}`,borderDisabledInfo:`1px solid ${k}`,rippleColorInfo:k,colorSuccess:g,colorHoverSuccess:C,colorPressedSuccess:x,colorFocusSuccess:C,colorDisabledSuccess:g,textColorSuccess:w,textColorHoverSuccess:w,textColorPressedSuccess:w,textColorFocusSuccess:w,textColorDisabledSuccess:w,textColorTextSuccess:g,textColorTextHoverSuccess:C,textColorTextPressedSuccess:x,textColorTextFocusSuccess:C,textColorTextDisabledSuccess:d,textColorGhostSuccess:g,textColorGhostHoverSuccess:C,textColorGhostPressedSuccess:x,textColorGhostFocusSuccess:C,textColorGhostDisabledSuccess:g,borderSuccess:`1px solid ${g}`,borderHoverSuccess:`1px solid ${C}`,borderPressedSuccess:`1px solid ${x}`,borderFocusSuccess:`1px solid ${C}`,borderDisabledSuccess:`1px solid ${g}`,rippleColorSuccess:g,colorWarning:T,colorHoverWarning:P,colorPressedWarning:O,colorFocusWarning:P,colorDisabledWarning:T,textColorWarning:w,textColorHoverWarning:w,textColorPressedWarning:w,textColorFocusWarning:w,textColorDisabledWarning:w,textColorTextWarning:T,textColorTextHoverWarning:P,textColorTextPressedWarning:O,textColorTextFocusWarning:P,textColorTextDisabledWarning:d,textColorGhostWarning:T,textColorGhostHoverWarning:P,textColorGhostPressedWarning:O,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${O}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:U,colorHoverError:D,colorPressedError:I,colorFocusError:D,colorDisabledError:U,textColorError:w,textColorHoverError:w,textColorPressedError:w,textColorFocusError:w,textColorDisabledError:w,textColorTextError:U,textColorTextHoverError:D,textColorTextPressedError:I,textColorTextFocusError:D,textColorTextDisabledError:d,textColorGhostError:U,textColorGhostHoverError:D,textColorGhostPressedError:I,textColorGhostFocusError:D,textColorGhostDisabledError:U,borderError:`1px solid ${U}`,borderHoverError:`1px solid ${D}`,borderPressedError:`1px solid ${I}`,borderFocusError:`1px solid ${D}`,borderDisabledError:`1px solid ${U}`,rippleColorError:U,waveOpacity:"0.6",fontWeight:te,fontWeightStrong:ge})}const Ba={name:"Button",common:hn,self:bM},yM=G([A("button",`
1135
+ margin: 0;
1136
+ font-weight: var(--n-font-weight);
1137
+ line-height: 1;
1138
+ font-family: inherit;
1139
+ padding: var(--n-padding);
1140
+ height: var(--n-height);
1141
+ font-size: var(--n-font-size);
1142
+ border-radius: var(--n-border-radius);
1143
+ color: var(--n-text-color);
1144
+ background-color: var(--n-color);
1145
+ width: var(--n-width);
1146
+ white-space: nowrap;
1147
+ outline: none;
1148
+ position: relative;
1149
+ z-index: auto;
1150
+ border: none;
1151
+ display: inline-flex;
1152
+ flex-wrap: nowrap;
1153
+ flex-shrink: 0;
1154
+ align-items: center;
1155
+ justify-content: center;
1156
+ user-select: none;
1157
+ -webkit-user-select: none;
1158
+ text-align: center;
1159
+ cursor: pointer;
1160
+ text-decoration: none;
1161
+ transition:
1162
+ color .3s var(--n-bezier),
1163
+ background-color .3s var(--n-bezier),
1164
+ opacity .3s var(--n-bezier),
1165
+ border-color .3s var(--n-bezier);
1166
+ `,[Z("color",[X("border",{borderColor:"var(--n-border-color)"}),Z("disabled",[X("border",{borderColor:"var(--n-border-color-disabled)"})]),zt("disabled",[G("&:focus",[X("state-border",{borderColor:"var(--n-border-color-focus)"})]),G("&:hover",[X("state-border",{borderColor:"var(--n-border-color-hover)"})]),G("&:active",[X("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Z("pressed",[X("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Z("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[X("border",{border:"var(--n-border-disabled)"})]),zt("disabled",[G("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[X("state-border",{border:"var(--n-border-focus)"})]),G("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[X("state-border",{border:"var(--n-border-hover)"})]),G("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[X("state-border",{border:"var(--n-border-pressed)"})]),Z("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[X("state-border",{border:"var(--n-border-pressed)"})])]),Z("loading","cursor: wait;"),A("base-wave",`
1167
+ pointer-events: none;
1168
+ top: 0;
1169
+ right: 0;
1170
+ bottom: 0;
1171
+ left: 0;
1172
+ animation-iteration-count: 1;
1173
+ animation-duration: var(--n-ripple-duration);
1174
+ animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
1175
+ `,[Z("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),_a&&"MozBoxSizing"in document.createElement("div").style?G("&::moz-focus-inner",{border:0}):null,X("border, state-border",`
1176
+ position: absolute;
1177
+ left: 0;
1178
+ top: 0;
1179
+ right: 0;
1180
+ bottom: 0;
1181
+ border-radius: inherit;
1182
+ transition: border-color .3s var(--n-bezier);
1183
+ pointer-events: none;
1184
+ `),X("border",{border:"var(--n-border)"}),X("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),X("icon",`
1185
+ margin: var(--n-icon-margin);
1186
+ margin-left: 0;
1187
+ height: var(--n-icon-size);
1188
+ width: var(--n-icon-size);
1189
+ max-width: var(--n-icon-size);
1190
+ font-size: var(--n-icon-size);
1191
+ position: relative;
1192
+ flex-shrink: 0;
1193
+ `,[A("icon-slot",`
1194
+ height: var(--n-icon-size);
1195
+ width: var(--n-icon-size);
1196
+ position: absolute;
1197
+ left: 0;
1198
+ top: 50%;
1199
+ transform: translateY(-50%);
1200
+ display: flex;
1201
+ align-items: center;
1202
+ justify-content: center;
1203
+ `,[Vi({top:"50%",originalTransform:"translateY(-50%)"})]),XA()]),X("content",`
1204
+ display: flex;
1205
+ align-items: center;
1206
+ flex-wrap: nowrap;
1207
+ min-width: 0;
1208
+ `,[G("~",[X("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Z("block",`
1209
+ display: flex;
1210
+ width: 100%;
1211
+ `),Z("dashed",[X("border, state-border",{borderStyle:"dashed !important"})]),Z("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),G("@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)"}}),G("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),wM=Object.assign(Object.assign({},rt.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:!nw}}),mn=Le({name:"Button",props:wM,slots:Object,setup(e){const t=K(null),n=K(null),r=K(!1),o=cn(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=wt(lw,{}),{mergedSizeRef:a}=hr({},{defaultSize:"medium",mergedSize:v=>{const{size:g}=e;if(g)return g;const{size:C}=i;if(C)return C;const{mergedSize:x}=v||{};return x?x.value:"medium"}}),s=z(()=>e.focusable&&!e.disabled),l=v=>{var g;s.value||v.preventDefault(),!e.nativeFocusBehavior&&(v.preventDefault(),!e.disabled&&s.value&&((g=t.value)===null||g===void 0||g.focus({preventScroll:!0})))},c=v=>{var g;if(!e.disabled&&!e.loading){const{onClick:C}=e;C&&Fe(C,v),e.text||(g=n.value)===null||g===void 0||g.play()}},u=v=>{switch(v.key){case"Enter":if(!e.keyboard)return;r.value=!1}},d=v=>{switch(v.key){case"Enter":if(!e.keyboard||e.loading){v.preventDefault();return}r.value=!0}},p=()=>{r.value=!1},{inlineThemeDisabled:m,mergedClsPrefixRef:f,mergedRtlRef:y}=Lt(e),S=rt("Button","-button",yM,Ba,e,f),w=pr("Button",y,f),k=z(()=>{const v=S.value,{common:{cubicBezierEaseInOut:g,cubicBezierEaseOut:C},self:x}=v,{rippleDuration:T,opacityDisabled:P,fontWeight:O,fontWeightStrong:U}=x,D=a.value,{dashed:I,type:te,ghost:ie,text:pe,color:ce,round:ge,circle:Ae,textColor:Re,secondary:Ee,tertiary:ue,quaternary:_e,strong:me}=e,De={"--n-font-weight":me?U:O};let ke={"--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 Ye=te==="tertiary",tt=te==="default",Ne=Ye?"default":te;if(pe){const L=Re||ce;ke={"--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":L||x[Be("textColorText",Ne)],"--n-text-color-hover":L?Ui(L):x[Be("textColorTextHover",Ne)],"--n-text-color-pressed":L?au(L):x[Be("textColorTextPressed",Ne)],"--n-text-color-focus":L?Ui(L):x[Be("textColorTextHover",Ne)],"--n-text-color-disabled":L||x[Be("textColorTextDisabled",Ne)]}}else if(ie||I){const L=Re||ce;ke={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":ce||x[Be("rippleColor",Ne)],"--n-text-color":L||x[Be("textColorGhost",Ne)],"--n-text-color-hover":L?Ui(L):x[Be("textColorGhostHover",Ne)],"--n-text-color-pressed":L?au(L):x[Be("textColorGhostPressed",Ne)],"--n-text-color-focus":L?Ui(L):x[Be("textColorGhostHover",Ne)],"--n-text-color-disabled":L||x[Be("textColorGhostDisabled",Ne)]}}else if(Ee){const L=tt?x.textColor:Ye?x.textColorTertiary:x[Be("color",Ne)],V=ce||L,fe=te!=="default"&&te!=="tertiary";ke={"--n-color":fe?ht(V,{alpha:Number(x.colorOpacitySecondary)}):x.colorSecondary,"--n-color-hover":fe?ht(V,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-pressed":fe?ht(V,{alpha:Number(x.colorOpacitySecondaryPressed)}):x.colorSecondaryPressed,"--n-color-focus":fe?ht(V,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-disabled":x.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":V,"--n-text-color-hover":V,"--n-text-color-pressed":V,"--n-text-color-focus":V,"--n-text-color-disabled":V}}else if(ue||_e){const L=tt?x.textColor:Ye?x.textColorTertiary:x[Be("color",Ne)],V=ce||L;ue?(ke["--n-color"]=x.colorTertiary,ke["--n-color-hover"]=x.colorTertiaryHover,ke["--n-color-pressed"]=x.colorTertiaryPressed,ke["--n-color-focus"]=x.colorSecondaryHover,ke["--n-color-disabled"]=x.colorTertiary):(ke["--n-color"]=x.colorQuaternary,ke["--n-color-hover"]=x.colorQuaternaryHover,ke["--n-color-pressed"]=x.colorQuaternaryPressed,ke["--n-color-focus"]=x.colorQuaternaryHover,ke["--n-color-disabled"]=x.colorQuaternary),ke["--n-ripple-color"]="#0000",ke["--n-text-color"]=V,ke["--n-text-color-hover"]=V,ke["--n-text-color-pressed"]=V,ke["--n-text-color-focus"]=V,ke["--n-text-color-disabled"]=V}else ke={"--n-color":ce||x[Be("color",Ne)],"--n-color-hover":ce?Ui(ce):x[Be("colorHover",Ne)],"--n-color-pressed":ce?au(ce):x[Be("colorPressed",Ne)],"--n-color-focus":ce?Ui(ce):x[Be("colorFocus",Ne)],"--n-color-disabled":ce||x[Be("colorDisabled",Ne)],"--n-ripple-color":ce||x[Be("rippleColor",Ne)],"--n-text-color":Re||(ce?x.textColorPrimary:Ye?x.textColorTertiary:x[Be("textColor",Ne)]),"--n-text-color-hover":Re||(ce?x.textColorHoverPrimary:x[Be("textColorHover",Ne)]),"--n-text-color-pressed":Re||(ce?x.textColorPressedPrimary:x[Be("textColorPressed",Ne)]),"--n-text-color-focus":Re||(ce?x.textColorFocusPrimary:x[Be("textColorFocus",Ne)]),"--n-text-color-disabled":Re||(ce?x.textColorDisabledPrimary:x[Be("textColorDisabled",Ne)])};let it={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};pe?it={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:it={"--n-border":x[Be("border",Ne)],"--n-border-hover":x[Be("borderHover",Ne)],"--n-border-pressed":x[Be("borderPressed",Ne)],"--n-border-focus":x[Be("borderFocus",Ne)],"--n-border-disabled":x[Be("borderDisabled",Ne)]};const{[Be("height",D)]:Ze,[Be("fontSize",D)]:F,[Be("padding",D)]:H,[Be("paddingRound",D)]:ne,[Be("iconSize",D)]:be,[Be("borderRadius",D)]:ye,[Be("iconMargin",D)]:W,waveOpacity:de}=x,he={"--n-width":Ae&&!pe?Ze:"initial","--n-height":pe?"initial":Ze,"--n-font-size":F,"--n-padding":Ae||pe?"initial":ge?ne:H,"--n-icon-size":be,"--n-icon-margin":W,"--n-border-radius":pe?"initial":Ae||ge?Ze:ye};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":g,"--n-bezier-ease-out":C,"--n-ripple-duration":T,"--n-opacity-disabled":P,"--n-wave-opacity":de},De),ke),it),he)}),b=m?Xt("button",z(()=>{let v="";const{dashed:g,type:C,ghost:x,text:T,color:P,round:O,circle:U,textColor:D,secondary:I,tertiary:te,quaternary:ie,strong:pe}=e;g&&(v+="a"),x&&(v+="b"),T&&(v+="c"),O&&(v+="d"),U&&(v+="e"),I&&(v+="f"),te&&(v+="g"),ie&&(v+="h"),pe&&(v+="i"),P&&(v+=`j${jc(P)}`),D&&(v+=`k${jc(D)}`);const{value:ce}=a;return v+=`l${ce[0]}`,v+=`m${C[0]}`,v}),k,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:f,mergedFocusable:s,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:w,handleMousedown:l,handleKeydown:d,handleBlur:p,handleKeyup:u,handleClick:c,customColorCssVars:z(()=>{const{color:v}=e;if(!v)return null;const g=Ui(v);return{"--n-border-color":v,"--n-border-color-hover":g,"--n-border-color-pressed":au(v),"--n-border-color-focus":g,"--n-border-color-disabled":v}}),cssVars:m?void 0:k,themeClass:b?.themeClass,onRender:b?.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();const r=qt(this.$slots.default,o=>o&&h("span",{class:`${e}-button__content`},o));return h(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"&&r,h(VF,{width:!0},{default:()=>qt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&h("span",{class:`${e}-button__icon`,style:{margin:Ra(this.$slots.default)?"0":""}},h(Zs,null,{default:()=>this.loading?h(nu,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):h("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:h(ZA,{ref:"waveElRef",clsPrefix:e}),this.showBorder?h("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?h("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),uo=mn,vn="0!important",cw="-1px!important";function Na(e){return Z(`${e}-type`,[G("& +",[A("button",{},[Z(`${e}-type`,[X("border",{borderLeftWidth:vn}),X("state-border",{left:cw})])])])])}function La(e){return Z(`${e}-type`,[G("& +",[A("button",[Z(`${e}-type`,[X("border",{borderTopWidth:vn}),X("state-border",{top:cw})])])])])}const xM=A("button-group",`
1212
+ flex-wrap: nowrap;
1213
+ display: inline-flex;
1214
+ position: relative;
1215
+ `,[zt("vertical",{flexDirection:"row"},[zt("rtl",[A("button",[G("&:first-child:not(:last-child)",`
1216
+ margin-right: ${vn};
1217
+ border-top-right-radius: ${vn};
1218
+ border-bottom-right-radius: ${vn};
1219
+ `),G("&:last-child:not(:first-child)",`
1220
+ margin-left: ${vn};
1221
+ border-top-left-radius: ${vn};
1222
+ border-bottom-left-radius: ${vn};
1223
+ `),G("&:not(:first-child):not(:last-child)",`
1224
+ margin-left: ${vn};
1225
+ margin-right: ${vn};
1226
+ border-radius: ${vn};
1227
+ `),Na("default"),Z("ghost",[Na("primary"),Na("info"),Na("success"),Na("warning"),Na("error")])])])]),Z("vertical",{flexDirection:"column"},[A("button",[G("&:first-child:not(:last-child)",`
1228
+ margin-bottom: ${vn};
1229
+ margin-left: ${vn};
1230
+ margin-right: ${vn};
1231
+ border-bottom-left-radius: ${vn};
1232
+ border-bottom-right-radius: ${vn};
1233
+ `),G("&:last-child:not(:first-child)",`
1234
+ margin-top: ${vn};
1235
+ margin-left: ${vn};
1236
+ margin-right: ${vn};
1237
+ border-top-left-radius: ${vn};
1238
+ border-top-right-radius: ${vn};
1239
+ `),G("&:not(:first-child):not(:last-child)",`
1240
+ margin: ${vn};
1241
+ border-radius: ${vn};
1242
+ `),La("default"),Z("ghost",[La("primary"),La("info"),La("success"),La("warning"),La("error")])])])]),CM=Le({name:"ButtonGroup",props:{size:{type:String,default:void 0},vertical:Boolean},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Lt(e);return ri("-button-group",xM,t),_n(lw,e),{rtlEnabled:pr("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return h("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}});function Qt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Ha(e,t){const n=mt(e);return isNaN(t)?Qt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Kn(e,t){const n=mt(e);if(isNaN(t))return Qt(e,NaN);if(!t)return n;const r=n.getDate(),o=Qt(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const i=o.getDate();return r>=i?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}const uw=6048e5,SM=864e5,_M=6e4,kM=36e5,PM=1e3;function Va(e){return jr(e,{weekStartsOn:1})}function dw(e){const t=mt(e),n=t.getFullYear(),r=Qt(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=Va(r),i=Qt(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=Va(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function ja(e){const t=mt(e);return t.setHours(0,0,0,0),t}function su(e){const t=mt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function TM(e,t){const n=ja(e),r=ja(t),o=+n-su(n),i=+r-su(r);return Math.round((o-i)/SM)}function $M(e){const t=dw(e),n=Qt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Va(n)}function RM(e,t){const n=t*3;return Kn(e,n)}function mh(e,t){return Kn(e,t*12)}function OM(e,t){const n=ja(e),r=ja(t);return+n==+r}function EM(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ar(e){if(!EM(e)&&typeof e!="number")return!1;const t=mt(e);return!isNaN(Number(t))}function DM(e){const t=mt(e);return Math.trunc(t.getMonth()/3)+1}function FM(e){const t=mt(e);return t.setSeconds(0,0),t}function tl(e){const t=mt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Do(e){const t=mt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function nl(e){const t=mt(e),n=Qt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function AM(e){const t=mt(e);return TM(t,nl(t))+1}function fw(e){const t=mt(e),n=+Va(t)-+$M(t);return Math.round(n/uw)+1}function vh(e,t){const n=mt(e),r=n.getFullYear(),o=Oa(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Qt(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=jr(a,t),l=Qt(e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=jr(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function MM(e,t){const n=Oa(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=vh(e,t),i=Qt(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),jr(i,t)}function hw(e,t){const n=mt(e),r=+jr(n,t)-+MM(n,t);return Math.round(r/uw)+1}function Yt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ai={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Yt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Yt(n+1,2)},d(e,t){return Yt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){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(e,t){return Yt(e.getHours()%12||12,t.length)},H(e,t){return Yt(e.getHours(),t.length)},m(e,t){return Yt(e.getMinutes(),t.length)},s(e,t){return Yt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Yt(o,t.length)}},Wa={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pw={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ai.y(e,t)},Y:function(e,t,n,r){const o=vh(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return Yt(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Yt(i,t.length)},R:function(e,t){const n=dw(e);return Yt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Yt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Yt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Yt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ai.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Yt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=hw(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Yt(o,t.length)},I:function(e,t,n){const r=fw(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Yt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ai.d(e,t)},D:function(e,t,n){const r=AM(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Yt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Yt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});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"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Yt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Yt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Wa.noon:r===0?o=Wa.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Wa.evening:r>=12?o=Wa.afternoon:r>=4?o=Wa.morning:o=Wa.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ai.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ai.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Yt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Yt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ai.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ai.s(e,t)},S:function(e,t){return ai.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gw(r);case"XXXX":case"XX":return qi(r);case"XXXXX":case"XXX":default:return qi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gw(r);case"xxxx":case"xx":return qi(r);case"xxxxx":case"xxx":default:return qi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vw(r,":");case"OOOO":default:return"GMT"+qi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vw(r,":");case"zzzz":default:return"GMT"+qi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Yt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Yt(r,t.length)}};function vw(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+Yt(i,2)}function gw(e,t){return e%60===0?(e>0?"-":"+")+Yt(Math.abs(e)/60,2):qi(e,t)}function qi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Yt(Math.trunc(r/60),2),i=Yt(r%60,2);return n+o+t+i}const bw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},yw=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},gh={p:yw,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return bw(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",bw(r,t)).replace("{{time}}",yw(o,t))}},IM=/^D+$/,zM=/^Y+$/,BM=["D","DD","YY","YYYY"];function ww(e){return IM.test(e)}function xw(e){return zM.test(e)}function bh(e,t,n){const r=NM(e,t,n);if(console.warn(r),BM.includes(e))throw new RangeError(r)}function NM(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const LM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VM=/^'([^]*?)'?$/,jM=/''/g,WM=/[a-zA-Z]/;function Gt(e,t,n){const r=Oa(),o=n?.locale??r.locale??Af,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=mt(e);if(!Ar(s))throw new RangeError("Invalid time value");let l=t.match(HM).map(u=>{const d=u[0];if(d==="p"||d==="P"){const p=gh[d];return p(u,o.formatLong)}return u}).join("").match(LM).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:UM(u)};if(pw[d])return{isToken:!0,value:u};if(d.match(WM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&xw(d)||!n?.useAdditionalDayOfYearTokens&&ww(d))&&bh(d,t,String(e));const p=pw[d[0]];return p(s,d,o.localize,c)}).join("")}function UM(e){const t=e.match(VM);return t?t[1].replace(jM,"'"):e}function Mr(e){return mt(e).getDate()}function qM(e){return mt(e).getDay()}function YM(e){const t=mt(e),n=t.getFullYear(),r=t.getMonth(),o=Qt(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Cw(){return Object.assign({},Oa())}function si(e){return mt(e).getHours()}function GM(e){let n=mt(e).getDay();return n===0&&(n=7),n}function KM(e){return mt(e).getMilliseconds()}function lu(e){return mt(e).getMinutes()}function ln(e){return mt(e).getMonth()}function cu(e){return mt(e).getSeconds()}function qe(e){return mt(e).getTime()}function pn(e){return mt(e).getFullYear()}function XM(e,t){const n=t instanceof Date?Qt(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const QM=10;class Sw{constructor(){xe(this,"subPriority",0)}validate(t,n){return!0}}class ZM extends Sw{constructor(t,n,r,o,i){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=o,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class JM extends Sw{constructor(){super(...arguments);xe(this,"priority",QM);xe(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Qt(n,XM(n,Date))}}class Ht{run(t,n,r,o){const i=this.parse(t,n,r,o);return i?{setter:new ZM(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}}class eI extends Ht{constructor(){super(...arguments);xe(this,"priority",140);xe(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"});case"GGGGG":return o.era(n,{width:"narrow"});case"GGGG":default:return o.era(n,{width:"wide"})||o.era(n,{width:"abbreviated"})||o.era(n,{width:"narrow"})}}set(n,r,o){return r.era=o,n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}const Pn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},fo={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Tn(e,t){return e&&{value:t(e.value),rest:e.rest}}function gn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ho(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*kM+i*_M+a*PM),rest:t.slice(n[0].length)}}function _w(e){return gn(Pn.anyDigitsSigned,e)}function wn(e,t){switch(e){case 1:return gn(Pn.singleDigit,t);case 2:return gn(Pn.twoDigits,t);case 3:return gn(Pn.threeDigits,t);case 4:return gn(Pn.fourDigits,t);default:return gn(new RegExp("^\\d{1,"+e+"}"),t)}}function uu(e,t){switch(e){case 1:return gn(Pn.singleDigitSigned,t);case 2:return gn(Pn.twoDigitsSigned,t);case 3:return gn(Pn.threeDigitsSigned,t);case 4:return gn(Pn.fourDigitsSigned,t);default:return gn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function yh(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function kw(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const i=r+50,a=Math.trunc(i/100)*100,s=e>=i%100;o=e+a-(s?100:0)}return n?o:1-o}function Pw(e){return e%400===0||e%4===0&&e%100!==0}class tI extends Ht{constructor(){super(...arguments);xe(this,"priority",130);xe(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,o){const i=a=>({year:a,isTwoDigitYear:r==="yy"});switch(r){case"y":return Tn(wn(4,n),i);case"yo":return Tn(o.ordinalNumber(n,{unit:"year"}),i);default:return Tn(wn(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o){const i=n.getFullYear();if(o.isTwoDigitYear){const s=kw(o.year,i);return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}const a=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}class nI extends Ht{constructor(){super(...arguments);xe(this,"priority",130);xe(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,o){const i=a=>({year:a,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Tn(wn(4,n),i);case"Yo":return Tn(o.ordinalNumber(n,{unit:"year"}),i);default:return Tn(wn(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,o,i){const a=vh(n,i);if(o.isTwoDigitYear){const l=kw(o.year,a);return n.setFullYear(l,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),jr(n,i)}const s=!("era"in r)||r.era===1?o.year:1-o.year;return n.setFullYear(s,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),jr(n,i)}}class rI extends Ht{constructor(){super(...arguments);xe(this,"priority",130);xe(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return uu(r==="R"?4:r.length,n)}set(n,r,o){const i=Qt(n,0);return i.setFullYear(o,0,4),i.setHours(0,0,0,0),Va(i)}}class oI extends Ht{constructor(){super(...arguments);xe(this,"priority",130);xe(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return uu(r==="u"?4:r.length,n)}set(n,r,o){return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class iI extends Ht{constructor(){super(...arguments);xe(this,"priority",120);xe(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"Q":case"QQ":return wn(r.length,n);case"Qo":return o.ordinalNumber(n,{unit:"quarter"});case"QQQ":return o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(n,{width:"wide",context:"formatting"})||o.quarter(n,{width:"abbreviated",context:"formatting"})||o.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class aI extends Ht{constructor(){super(...arguments);xe(this,"priority",120);xe(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"q":case"qq":return wn(r.length,n);case"qo":return o.ordinalNumber(n,{unit:"quarter"});case"qqq":return o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(n,{width:"wide",context:"standalone"})||o.quarter(n,{width:"abbreviated",context:"standalone"})||o.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,o){return n.setMonth((o-1)*3,1),n.setHours(0,0,0,0),n}}class sI extends Ht{constructor(){super(...arguments);xe(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);xe(this,"priority",110)}parse(n,r,o){const i=a=>a-1;switch(r){case"M":return Tn(gn(Pn.month,n),i);case"MM":return Tn(wn(2,n),i);case"Mo":return Tn(o.ordinalNumber(n,{unit:"month"}),i);case"MMM":return o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(n,{width:"wide",context:"formatting"})||o.month(n,{width:"abbreviated",context:"formatting"})||o.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}class lI extends Ht{constructor(){super(...arguments);xe(this,"priority",110);xe(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,o){const i=a=>a-1;switch(r){case"L":return Tn(gn(Pn.month,n),i);case"LL":return Tn(wn(2,n),i);case"Lo":return Tn(o.ordinalNumber(n,{unit:"month"}),i);case"LLL":return o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(n,{width:"wide",context:"standalone"})||o.month(n,{width:"abbreviated",context:"standalone"})||o.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.setMonth(o,1),n.setHours(0,0,0,0),n}}function cI(e,t,n){const r=mt(e),o=hw(r,n)-t;return r.setDate(r.getDate()-o*7),r}class uI extends Ht{constructor(){super(...arguments);xe(this,"priority",100);xe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,o){switch(r){case"w":return gn(Pn.week,n);case"wo":return o.ordinalNumber(n,{unit:"week"});default:return wn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o,i){return jr(cI(n,o,i),i)}}function dI(e,t){const n=mt(e),r=fw(n)-t;return n.setDate(n.getDate()-r*7),n}class fI extends Ht{constructor(){super(...arguments);xe(this,"priority",100);xe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,o){switch(r){case"I":return gn(Pn.week,n);case"Io":return o.ordinalNumber(n,{unit:"week"});default:return wn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,o){return Va(dI(n,o))}}const hI=[31,28,31,30,31,30,31,31,30,31,30,31],pI=[31,29,31,30,31,30,31,31,30,31,30,31];class mI extends Ht{constructor(){super(...arguments);xe(this,"priority",90);xe(this,"subPriority",1);xe(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"d":return gn(Pn.date,n);case"do":return o.ordinalNumber(n,{unit:"date"});default:return wn(r.length,n)}}validate(n,r){const o=n.getFullYear(),i=Pw(o),a=n.getMonth();return i?r>=1&&r<=pI[a]:r>=1&&r<=hI[a]}set(n,r,o){return n.setDate(o),n.setHours(0,0,0,0),n}}class vI extends Ht{constructor(){super(...arguments);xe(this,"priority",90);xe(this,"subpriority",1);xe(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,o){switch(r){case"D":case"DD":return gn(Pn.dayOfYear,n);case"Do":return o.ordinalNumber(n,{unit:"date"});default:return wn(r.length,n)}}validate(n,r){const o=n.getFullYear();return Pw(o)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,o){return n.setMonth(0,o),n.setHours(0,0,0,0),n}}function wh(e,t,n){const r=Oa(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=mt(e),a=i.getDay(),l=(t%7+7)%7,c=7-o,u=t<0||t>6?t-(a+c)%7:(l+c)%7-(a+c)%7;return Ha(i,u)}class gI extends Ht{constructor(){super(...arguments);xe(this,"priority",90);xe(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=wh(n,o,i),n.setHours(0,0,0,0),n}}class bI extends Ht{constructor(){super(...arguments);xe(this,"priority",90);xe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,o,i){const a=s=>{const l=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Tn(wn(r.length,n),a);case"eo":return Tn(o.ordinalNumber(n,{unit:"day"}),a);case"eee":return o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=wh(n,o,i),n.setHours(0,0,0,0),n}}class yI extends Ht{constructor(){super(...arguments);xe(this,"priority",90);xe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,o,i){const a=s=>{const l=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Tn(wn(r.length,n),a);case"co":return Tn(o.ordinalNumber(n,{unit:"day"}),a);case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(n,{width:"wide",context:"standalone"})||o.day(n,{width:"abbreviated",context:"standalone"})||o.day(n,{width:"short",context:"standalone"})||o.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,o,i){return n=wh(n,o,i),n.setHours(0,0,0,0),n}}function wI(e,t){const n=mt(e),r=GM(n),o=t-r;return Ha(n,o)}class xI extends Ht{constructor(){super(...arguments);xe(this,"priority",90);xe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,o){const i=a=>a===0?7:a;switch(r){case"i":case"ii":return wn(r.length,n);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return Tn(o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return Tn(o.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Tn(o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return Tn(o.day(n,{width:"wide",context:"formatting"})||o.day(n,{width:"abbreviated",context:"formatting"})||o.day(n,{width:"short",context:"formatting"})||o.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,r){return r>=1&&r<=7}set(n,r,o){return n=wI(n,o),n.setHours(0,0,0,0),n}}class CI extends Ht{constructor(){super(...arguments);xe(this,"priority",80);xe(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(yh(o),0,0,0),n}}class SI extends Ht{constructor(){super(...arguments);xe(this,"priority",80);xe(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(yh(o),0,0,0),n}}class _I extends Ht{constructor(){super(...arguments);xe(this,"priority",80);xe(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(n,{width:"wide",context:"formatting"})||o.dayPeriod(n,{width:"abbreviated",context:"formatting"})||o.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,o){return n.setHours(yh(o),0,0,0),n}}class kI extends Ht{constructor(){super(...arguments);xe(this,"priority",70);xe(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,o){switch(r){case"h":return gn(Pn.hour12h,n);case"ho":return o.ordinalNumber(n,{unit:"hour"});default:return wn(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,o){const i=n.getHours()>=12;return i&&o<12?n.setHours(o+12,0,0,0):!i&&o===12?n.setHours(0,0,0,0):n.setHours(o,0,0,0),n}}class PI extends Ht{constructor(){super(...arguments);xe(this,"priority",70);xe(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,o){switch(r){case"H":return gn(Pn.hour23h,n);case"Ho":return o.ordinalNumber(n,{unit:"hour"});default:return wn(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,o){return n.setHours(o,0,0,0),n}}class TI extends Ht{constructor(){super(...arguments);xe(this,"priority",70);xe(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,o){switch(r){case"K":return gn(Pn.hour11h,n);case"Ko":return o.ordinalNumber(n,{unit:"hour"});default:return wn(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,o){return n.getHours()>=12&&o<12?n.setHours(o+12,0,0,0):n.setHours(o,0,0,0),n}}class $I extends Ht{constructor(){super(...arguments);xe(this,"priority",70);xe(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,o){switch(r){case"k":return gn(Pn.hour24h,n);case"ko":return o.ordinalNumber(n,{unit:"hour"});default:return wn(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,o){const i=o<=24?o%24:o;return n.setHours(i,0,0,0),n}}class RI extends Ht{constructor(){super(...arguments);xe(this,"priority",60);xe(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"m":return gn(Pn.minute,n);case"mo":return o.ordinalNumber(n,{unit:"minute"});default:return wn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setMinutes(o,0,0),n}}class OI extends Ht{constructor(){super(...arguments);xe(this,"priority",50);xe(this,"incompatibleTokens",["t","T"])}parse(n,r,o){switch(r){case"s":return gn(Pn.second,n);case"so":return o.ordinalNumber(n,{unit:"second"});default:return wn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,o){return n.setSeconds(o,0),n}}class EI extends Ht{constructor(){super(...arguments);xe(this,"priority",30);xe(this,"incompatibleTokens",["t","T"])}parse(n,r){const o=i=>Math.trunc(i*Math.pow(10,-r.length+3));return Tn(wn(r.length,n),o)}set(n,r,o){return n.setMilliseconds(o),n}}class DI extends Ht{constructor(){super(...arguments);xe(this,"priority",10);xe(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return ho(fo.basicOptionalMinutes,n);case"XX":return ho(fo.basic,n);case"XXXX":return ho(fo.basicOptionalSeconds,n);case"XXXXX":return ho(fo.extendedOptionalSeconds,n);case"XXX":default:return ho(fo.extended,n)}}set(n,r,o){return r.timestampIsSet?n:Qt(n,n.getTime()-su(n)-o)}}class FI extends Ht{constructor(){super(...arguments);xe(this,"priority",10);xe(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return ho(fo.basicOptionalMinutes,n);case"xx":return ho(fo.basic,n);case"xxxx":return ho(fo.basicOptionalSeconds,n);case"xxxxx":return ho(fo.extendedOptionalSeconds,n);case"xxx":default:return ho(fo.extended,n)}}set(n,r,o){return r.timestampIsSet?n:Qt(n,n.getTime()-su(n)-o)}}class AI extends Ht{constructor(){super(...arguments);xe(this,"priority",40);xe(this,"incompatibleTokens","*")}parse(n){return _w(n)}set(n,r,o){return[Qt(n,o*1e3),{timestampIsSet:!0}]}}class MI extends Ht{constructor(){super(...arguments);xe(this,"priority",20);xe(this,"incompatibleTokens","*")}parse(n){return _w(n)}set(n,r,o){return[Qt(n,o),{timestampIsSet:!0}]}}const II={G:new eI,y:new tI,Y:new nI,R:new rI,u:new oI,Q:new iI,q:new aI,M:new sI,L:new lI,w:new uI,I:new fI,d:new mI,D:new vI,E:new gI,e:new bI,c:new yI,i:new xI,a:new CI,b:new SI,B:new _I,h:new kI,H:new PI,K:new TI,k:new $I,m:new RI,s:new OI,S:new EI,X:new DI,x:new FI,t:new AI,T:new MI},zI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NI=/^'([^]*?)'?$/,LI=/''/g,HI=/\S/,VI=/[a-zA-Z]/;function jI(e,t,n,r){const o=Cw(),i=r?.locale??o.locale??Af,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(t==="")return e===""?mt(n):Qt(n,NaN);const l={firstWeekContainsDate:a,weekStartsOn:s,locale:i},c=[new JM],u=t.match(BI).map(y=>{const S=y[0];if(S in gh){const w=gh[S];return w(y,i.formatLong)}return y}).join("").match(zI),d=[];for(let y of u){!r?.useAdditionalWeekYearTokens&&xw(y)&&bh(y,t,e),!r?.useAdditionalDayOfYearTokens&&ww(y)&&bh(y,t,e);const S=y[0],w=II[S];if(w){const{incompatibleTokens:k}=w;if(Array.isArray(k)){const v=d.find(g=>k.includes(g.token)||g.token===S);if(v)throw new RangeError(`The format string mustn't contain \`${v.fullToken}\` and \`${y}\` at the same time`)}else if(w.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${y}\` and any other token at the same time`);d.push({token:S,fullToken:y});const b=w.run(e,y,i.match,l);if(!b)return Qt(n,NaN);c.push(b.setter),e=b.rest}else{if(S.match(VI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(y==="''"?y="'":S==="'"&&(y=WI(y)),e.indexOf(y)===0)e=e.slice(y.length);else return Qt(n,NaN)}}if(e.length>0&&HI.test(e))return Qt(n,NaN);const p=c.map(y=>y.priority).sort((y,S)=>S-y).filter((y,S,w)=>w.indexOf(y)===S).map(y=>c.filter(S=>S.priority===y).sort((S,w)=>w.subPriority-S.subPriority)).map(y=>y[0]);let m=mt(n);if(isNaN(m.getTime()))return Qt(n,NaN);const f={};for(const y of p){if(!y.validate(m,l))return Qt(n,NaN);const S=y.set(m,f,l);Array.isArray(S)?(m=S[0],Object.assign(f,S[1])):m=S}return Qt(n,m)}function WI(e){return e.match(NI)[1].replace(LI,"'")}function UI(e){const t=mt(e);return t.setMinutes(0,0,0),t}function rl(e,t){const n=mt(e),r=mt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Tw(e,t){const n=tl(e),r=tl(t);return+n==+r}function xh(e){const t=mt(e);return t.setMilliseconds(0),t}function $w(e,t){const n=mt(e),r=mt(t);return n.getFullYear()===r.getFullYear()}function Ch(e,t){const n=mt(e),r=n.getFullYear(),o=n.getDate(),i=Qt(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const a=YM(i);return n.setMonth(t,Math.min(o,a)),n}function Xn(e,t){let n=mt(e);return isNaN(+n)?Qt(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Ch(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function Yi(e,t){const n=mt(e);return n.setHours(t),n}function Sh(e,t){const n=mt(e);return n.setMinutes(t),n}function qI(e,t){const n=mt(e),r=Math.trunc(n.getMonth()/3)+1,o=t-r;return Ch(n,n.getMonth()+o*3)}function _h(e,t){const n=mt(e);return n.setSeconds(t),n}function kh(e,t){const n=mt(e);return isNaN(+n)?Qt(e,NaN):(n.setFullYear(t),n)}const YI={date:OM,month:rl,year:$w,quarter:Tw};function GI(e){return(t,n)=>{const r=KI(e);return mR(t,n,{weekStartsOn:r})}}function KI(e){return(e+1)%7}function ar(e,t,n,r=0){return(n==="week"?GI(r):YI[n])(e,t)}function Ph(e,t,n,r,o,i){return o==="date"?XI(e,t,n,r):QI(e,t,n,r,i)}function XI(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]<e&&e<n[1]&&(o=!0),ar(n[0],e,"date")&&(i=!0),ar(n[1],e,"date")&&(a=!0));const s=n!==null&&(Array.isArray(n)?ar(n[0],e,"date")||ar(n[1],e,"date"):ar(n,e,"date"));return{type:"date",dateObject:{date:Mr(e),month:ln(e),year:pn(e)},inCurrentMonth:rl(e,t),isCurrentDate:ar(r,e,"date"),inSpan:o,inSelectedWeek:!1,startOfSpan:i,endOfSpan:a,selected:s,ts:qe(e)}}function Rw(e,t,n){const r=new Date(2e3,e,1).getTime();return Gt(r,t,{locale:n})}function Ow(e,t,n){const r=new Date(e,1,1).getTime();return Gt(r,t,{locale:n})}function Ew(e,t,n){const r=new Date(2e3,e*3-2,1).getTime();return Gt(r,t,{locale:n})}function QI(e,t,n,r,o){let i=!1,a=!1,s=!1;Array.isArray(n)&&(n[0]<e&&e<n[1]&&(i=!0),ar(n[0],e,"week",o)&&(a=!0),ar(n[1],e,"week",o)&&(s=!0));const l=n!==null&&(Array.isArray(n)?ar(n[0],e,"week",o)||ar(n[1],e,"week",o):ar(n,e,"week",o));return{type:"date",dateObject:{date:Mr(e),month:ln(e),year:pn(e)},inCurrentMonth:rl(e,t),isCurrentDate:ar(r,e,"date"),inSpan:i,startOfSpan:a,endOfSpan:s,selected:!1,inSelectedWeek:l,ts:qe(e)}}function ZI(e,t,n,{monthFormat:r}){return{type:"month",monthFormat:r,dateObject:{month:ln(e),year:pn(e)},isCurrent:rl(n,e),selected:t!==null&&ar(t,e,"month"),ts:qe(e)}}function JI(e,t,n,{yearFormat:r}){return{type:"year",yearFormat:r,dateObject:{year:pn(e)},isCurrent:$w(n,e),selected:t!==null&&ar(t,e,"year"),ts:qe(e)}}function ez(e,t,n,{quarterFormat:r}){return{type:"quarter",quarterFormat:r,dateObject:{quarter:DM(e),year:pn(e)},isCurrent:Tw(n,e),selected:t!==null&&ar(t,e,"quarter"),ts:qe(e)}}function Th(e,t,n,r,o=!1,i=!1){const a=i?"week":"date",s=ln(e);let l=qe(Do(e)),c=qe(Ha(l,-1));const u=[];let d=!o;for(;qM(c)!==r||d;)u.unshift(Ph(c,e,t,n,a,r)),c=qe(Ha(c,-1)),d=!1;for(;ln(l)===s;)u.push(Ph(l,e,t,n,a,r)),l=qe(Ha(l,1));const p=o?u.length<=28?28:u.length<=35?35:42:42;for(;u.length<p;)u.push(Ph(l,e,t,n,a,r)),l=qe(Ha(l,1));return u}function $h(e,t,n,r){const o=[],i=nl(e);for(let a=0;a<12;a++)o.push(ZI(qe(Kn(i,a)),t,n,r));return o}function Rh(e,t,n,r){const o=[],i=nl(e);for(let a=0;a<4;a++)o.push(ez(qe(RM(i,a)),t,n,r));return o}function Oh(e,t,n,r){const o=r.value,i=[],a=nl(kh(new Date,o[0]));for(let s=0;s<o[1]-o[0];s++)i.push(JI(qe(mh(a,s)),e,t,n));return i}function vr(e,t,n,r){const o=jI(e,t,n,r);return Ar(o)?Gt(o,t,r)===e?o:new Date(Number.NaN):o}function du(e){if(e===void 0)return;if(typeof e=="number")return e;const[t,n,r]=e.split(":");return{hours:Number(t),minutes:Number(n),seconds:Number(r)}}function Ua(e,t){return Array.isArray(e)?e[t==="start"?0:1]:null}const tz={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function nz(e){const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:p,borderRadiusSmall:m,lineHeight:f}=e;return Object.assign(Object.assign({},tz),{labelLineHeight:f,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:p,borderRadius:m,color:t,colorChecked:l,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,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 ${ht(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const rz={common:hn,self:nz},Dw="n-checkbox-group",Fw=Le({name:"CheckboxGroup",props:{min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},setup(e){const{mergedClsPrefixRef:t}=Lt(e),n=hr(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=K(e.defaultValue),a=z(()=>e.value),s=Vn(a,i),l=z(()=>{var d;return((d=s.value)===null||d===void 0?void 0:d.length)||0}),c=z(()=>Array.isArray(s.value)?new Set(s.value):new Set);function u(d,p){const{nTriggerFormInput:m,nTriggerFormChange:f}=n,{onChange:y,"onUpdate:value":S,onUpdateValue:w}=e;if(Array.isArray(s.value)){const k=Array.from(s.value),b=k.findIndex(v=>v===p);d?~b||(k.push(p),w&&Fe(w,k,{actionType:"check",value:p}),S&&Fe(S,k,{actionType:"check",value:p}),m(),f(),i.value=k,y&&Fe(y,k)):~b&&(k.splice(b,1),w&&Fe(w,k,{actionType:"uncheck",value:p}),S&&Fe(S,k,{actionType:"uncheck",value:p}),y&&Fe(y,k),i.value=k,m(),f())}else d?(w&&Fe(w,[p],{actionType:"check",value:p}),S&&Fe(S,[p],{actionType:"check",value:p}),y&&Fe(y,[p]),i.value=[p],m(),f()):(w&&Fe(w,[],{actionType:"uncheck",value:p}),S&&Fe(S,[],{actionType:"uncheck",value:p}),y&&Fe(y,[]),i.value=[],m(),f())}return _n(Dw,{checkedCountRef:l,maxRef:Xe(e,"max"),minRef:Xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return h("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),oz=()=>h("svg",{viewBox:"0 0 64 64",class:"check-icon"},h("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),iz=()=>h("svg",{viewBox:"0 0 100 100",class:"line-icon"},h("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),az=G([A("checkbox",`
1243
+ font-size: var(--n-font-size);
1244
+ outline: none;
1245
+ cursor: pointer;
1246
+ display: inline-flex;
1247
+ flex-wrap: nowrap;
1248
+ align-items: flex-start;
1249
+ word-break: break-word;
1250
+ line-height: var(--n-size);
1251
+ --n-merged-color-table: var(--n-color-table);
1252
+ `,[Z("show-label","line-height: var(--n-label-line-height);"),G("&:hover",[A("checkbox-box",[X("border","border: var(--n-border-checked);")])]),G("&:focus:not(:active)",[A("checkbox-box",[X("border",`
1253
+ border: var(--n-border-focus);
1254
+ box-shadow: var(--n-box-shadow-focus);
1255
+ `)])]),Z("inside-table",[A("checkbox-box",`
1256
+ background-color: var(--n-merged-color-table);
1257
+ `)]),Z("checked",[A("checkbox-box",`
1258
+ background-color: var(--n-color-checked);
1259
+ `,[A("checkbox-icon",[G(".check-icon",`
1260
+ opacity: 1;
1261
+ transform: scale(1);
1262
+ `)])])]),Z("indeterminate",[A("checkbox-box",[A("checkbox-icon",[G(".check-icon",`
1263
+ opacity: 0;
1264
+ transform: scale(.5);
1265
+ `),G(".line-icon",`
1266
+ opacity: 1;
1267
+ transform: scale(1);
1268
+ `)])])]),Z("checked, indeterminate",[G("&:focus:not(:active)",[A("checkbox-box",[X("border",`
1269
+ border: var(--n-border-checked);
1270
+ box-shadow: var(--n-box-shadow-focus);
1271
+ `)])]),A("checkbox-box",`
1272
+ background-color: var(--n-color-checked);
1273
+ border-left: 0;
1274
+ border-top: 0;
1275
+ `,[X("border",{border:"var(--n-border-checked)"})])]),Z("disabled",{cursor:"not-allowed"},[Z("checked",[A("checkbox-box",`
1276
+ background-color: var(--n-color-disabled-checked);
1277
+ `,[X("border",{border:"var(--n-border-disabled-checked)"}),A("checkbox-icon",[G(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),A("checkbox-box",`
1278
+ background-color: var(--n-color-disabled);
1279
+ `,[X("border",`
1280
+ border: var(--n-border-disabled);
1281
+ `),A("checkbox-icon",[G(".check-icon, .line-icon",`
1282
+ fill: var(--n-check-mark-color-disabled);
1283
+ `)])]),X("label",`
1284
+ color: var(--n-text-color-disabled);
1285
+ `)]),A("checkbox-box-wrapper",`
1286
+ position: relative;
1287
+ width: var(--n-size);
1288
+ flex-shrink: 0;
1289
+ flex-grow: 0;
1290
+ user-select: none;
1291
+ -webkit-user-select: none;
1292
+ `),A("checkbox-box",`
1293
+ position: absolute;
1294
+ left: 0;
1295
+ top: 50%;
1296
+ transform: translateY(-50%);
1297
+ height: var(--n-size);
1298
+ width: var(--n-size);
1299
+ display: inline-block;
1300
+ box-sizing: border-box;
1301
+ border-radius: var(--n-border-radius);
1302
+ background-color: var(--n-color);
1303
+ transition: background-color 0.3s var(--n-bezier);
1304
+ `,[X("border",`
1305
+ transition:
1306
+ border-color .3s var(--n-bezier),
1307
+ box-shadow .3s var(--n-bezier);
1308
+ border-radius: inherit;
1309
+ position: absolute;
1310
+ left: 0;
1311
+ right: 0;
1312
+ top: 0;
1313
+ bottom: 0;
1314
+ border: var(--n-border);
1315
+ `),A("checkbox-icon",`
1316
+ display: flex;
1317
+ align-items: center;
1318
+ justify-content: center;
1319
+ position: absolute;
1320
+ left: 1px;
1321
+ right: 1px;
1322
+ top: 1px;
1323
+ bottom: 1px;
1324
+ `,[G(".check-icon, .line-icon",`
1325
+ width: 100%;
1326
+ fill: var(--n-check-mark-color);
1327
+ opacity: 0;
1328
+ transform: scale(0.5);
1329
+ transform-origin: center;
1330
+ transition:
1331
+ fill 0.3s var(--n-bezier),
1332
+ transform 0.3s var(--n-bezier),
1333
+ opacity 0.3s var(--n-bezier),
1334
+ border-color 0.3s var(--n-bezier);
1335
+ `),Vi({left:"1px",top:"1px"})])]),X("label",`
1336
+ color: var(--n-text-color);
1337
+ transition: color .3s var(--n-bezier);
1338
+ user-select: none;
1339
+ -webkit-user-select: none;
1340
+ padding: var(--n-label-padding);
1341
+ font-weight: var(--n-label-font-weight);
1342
+ `,[G("&:empty",{display:"none"})])]),Tb(A("checkbox",`
1343
+ --n-merged-color-table: var(--n-color-table-modal);
1344
+ `)),$b(A("checkbox",`
1345
+ --n-merged-color-table: var(--n-color-table-popover);
1346
+ `))]),sz=Object.assign(Object.assign({},rt.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),lz=Le({name:"Checkbox",props:sz,setup(e){const t=wt(Dw,null),n=K(null),{mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=Lt(e),a=K(e.defaultChecked),s=Xe(e,"checked"),l=Vn(s,a),c=cn(()=>{if(t){const C=t.valueSetRef.value;return C&&e.value!==void 0?C.has(e.value):!1}else return l.value===e.checkedValue}),u=hr(e,{mergedSize(C){const{size:x}=e;if(x!==void 0)return x;if(t){const{value:T}=t.mergedSizeRef;if(T!==void 0)return T}if(C){const{mergedSize:T}=C;if(T!==void 0)return T.value}return"medium"},mergedDisabled(C){const{disabled:x}=e;if(x!==void 0)return x;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:P}=t;if(T!==void 0&&P.value>=T&&!c.value)return!0;const{minRef:{value:O}}=t;if(O!==void 0&&P.value<=O&&c.value)return!0}return C?C.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:p}=u,m=rt("Checkbox","-checkbox",az,rz,e,r);function f(C){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:x,"onUpdate:checked":T,onUpdateChecked:P}=e,{nTriggerFormInput:O,nTriggerFormChange:U}=u,D=c.value?e.uncheckedValue:e.checkedValue;T&&Fe(T,D,C),P&&Fe(P,D,C),x&&Fe(x,D,C),O(),U(),a.value=D}}function y(C){d.value||f(C)}function S(C){if(!d.value)switch(C.key){case" ":case"Enter":f(C)}}function w(C){switch(C.key){case" ":C.preventDefault()}}const k={focus:()=>{var C;(C=n.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=n.value)===null||C===void 0||C.blur()}},b=pr("Checkbox",i,r),v=z(()=>{const{value:C}=p,{common:{cubicBezierEaseInOut:x},self:{borderRadius:T,color:P,colorChecked:O,colorDisabled:U,colorTableHeader:D,colorTableHeaderModal:I,colorTableHeaderPopover:te,checkMarkColor:ie,checkMarkColorDisabled:pe,border:ce,borderFocus:ge,borderDisabled:Ae,borderChecked:Re,boxShadowFocus:Ee,textColor:ue,textColorDisabled:_e,checkMarkColorDisabledChecked:me,colorDisabledChecked:De,borderDisabledChecked:ke,labelPadding:Ye,labelLineHeight:tt,labelFontWeight:Ne,[Be("fontSize",C)]:it,[Be("size",C)]:Ze}}=m.value;return{"--n-label-line-height":tt,"--n-label-font-weight":Ne,"--n-size":Ze,"--n-bezier":x,"--n-border-radius":T,"--n-border":ce,"--n-border-checked":Re,"--n-border-focus":ge,"--n-border-disabled":Ae,"--n-border-disabled-checked":ke,"--n-box-shadow-focus":Ee,"--n-color":P,"--n-color-checked":O,"--n-color-table":D,"--n-color-table-modal":I,"--n-color-table-popover":te,"--n-color-disabled":U,"--n-color-disabled-checked":De,"--n-text-color":ue,"--n-text-color-disabled":_e,"--n-check-mark-color":ie,"--n-check-mark-color-disabled":pe,"--n-check-mark-color-disabled-checked":me,"--n-font-size":it,"--n-label-padding":Ye}}),g=o?Xt("checkbox",z(()=>p.value[0]),v,e):void 0;return Object.assign(u,k,{rtlEnabled:b,selfRef:n,mergedClsPrefix:r,mergedDisabled:d,renderedChecked:c,mergedTheme:m,labelId:Ms(),handleClick:y,handleKeyUp:S,handleKeyDown:w,cssVars:o?void 0:v,themeClass:g?.themeClass,onRender:g?.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:s,label:l,mergedClsPrefix:c,focusable:u,handleKeyUp:d,handleKeyDown:p,handleClick:m}=this;(e=this.onRender)===null||e===void 0||e.call(this);const f=qt(t.default,y=>l||y?h("span",{class:`${c}-checkbox__label`,id:s},l||y):null);return h("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,f&&`${c}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":s,style:a,onKeyup:d,onKeydown:p,onClick:m,onMousedown:()=>{sn("selectstart",window,y=>{y.preventDefault()},{once:!0})}},h("div",{class:`${c}-checkbox-box-wrapper`}," ",h("div",{class:`${c}-checkbox-box`},h(Zs,null,{default:()=>this.indeterminate?h("div",{key:"indeterminate",class:`${c}-checkbox-icon`},iz()):h("div",{key:"check",class:`${c}-checkbox-icon`},oz())}),h("div",{class:`${c}-checkbox-box__border`}))),f)}});function cz(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const uz={name:"Select",common:hn,peers:{InternalSelection:tw,InternalSelectMenu:fh},self:cz},dz=G([A("select",`
1347
+ z-index: auto;
1348
+ outline: none;
1349
+ width: 100%;
1350
+ position: relative;
1351
+ font-weight: var(--n-font-weight);
1352
+ `),A("select-menu",`
1353
+ margin: 4px 0;
1354
+ box-shadow: var(--n-menu-box-shadow);
1355
+ `,[ji({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),fz=Object.assign(Object.assign({},rt.props),{to:kn.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),hz=Le({name:"Select",props:fz,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=Lt(e),i=rt("Select","-select",dz,uz,e,t),a=K(e.defaultValue),s=Xe(e,"value"),l=Vn(s,a),c=K(!1),u=K(""),d=zs(e,["items","options"]),p=K([]),m=K([]),f=z(()=>m.value.concat(p.value).concat(d.value)),y=z(()=>{const{filter:_}=e;if(_)return _;const{labelField:E,valueField:ve}=e;return(Me,Oe)=>{if(!Oe)return!1;const j=Oe[E];if(typeof j=="string")return ph(Me,j);const Ce=Oe[ve];return typeof Ce=="string"?ph(Me,Ce):typeof Ce=="number"?ph(Me,String(Ce)):!1}}),S=z(()=>{if(e.remote)return d.value;{const{value:_}=f,{value:E}=u;return!E.length||!e.filterable?_:cM(_,y.value,E,e.childrenField)}}),w=z(()=>{const{valueField:_,childrenField:E}=e,ve=aw(_,E);return Vy(S.value,ve)}),k=z(()=>uM(f.value,e.valueField,e.childrenField)),b=K(!1),v=Vn(Xe(e,"show"),b),g=K(null),C=K(null),x=K(null),{localeRef:T}=co("Select"),P=z(()=>{var _;return(_=e.placeholder)!==null&&_!==void 0?_:T.value.placeholder}),O=[],U=K(new Map),D=z(()=>{const{fallbackOption:_}=e;if(_===void 0){const{labelField:E,valueField:ve}=e;return Me=>({[E]:String(Me),[ve]:Me})}return _===!1?!1:E=>Object.assign(_(E),{value:E})});function I(_){const E=e.remote,{value:ve}=U,{value:Me}=k,{value:Oe}=D,j=[];return _.forEach(Ce=>{if(Me.has(Ce))j.push(Me.get(Ce));else if(E&&ve.has(Ce))j.push(ve.get(Ce));else if(Oe){const Ie=Oe(Ce);Ie&&j.push(Ie)}}),j}const te=z(()=>{if(e.multiple){const{value:_}=l;return Array.isArray(_)?I(_):[]}return null}),ie=z(()=>{const{value:_}=l;return!e.multiple&&!Array.isArray(_)?_===null?null:I([_])[0]||null:null}),pe=hr(e),{mergedSizeRef:ce,mergedDisabledRef:ge,mergedStatusRef:Ae}=pe;function Re(_,E){const{onChange:ve,"onUpdate:value":Me,onUpdateValue:Oe}=e,{nTriggerFormChange:j,nTriggerFormInput:Ce}=pe;ve&&Fe(ve,_,E),Oe&&Fe(Oe,_,E),Me&&Fe(Me,_,E),a.value=_,j(),Ce()}function Ee(_){const{onBlur:E}=e,{nTriggerFormBlur:ve}=pe;E&&Fe(E,_),ve()}function ue(){const{onClear:_}=e;_&&Fe(_)}function _e(_){const{onFocus:E,showOnFocus:ve}=e,{nTriggerFormFocus:Me}=pe;E&&Fe(E,_),Me(),ve&&tt()}function me(_){const{onSearch:E}=e;E&&Fe(E,_)}function De(_){const{onScroll:E}=e;E&&Fe(E,_)}function ke(){var _;const{remote:E,multiple:ve}=e;if(E){const{value:Me}=U;if(ve){const{valueField:Oe}=e;(_=te.value)===null||_===void 0||_.forEach(j=>{Me.set(j[Oe],j)})}else{const Oe=ie.value;Oe&&Me.set(Oe[e.valueField],Oe)}}}function Ye(_){const{onUpdateShow:E,"onUpdate:show":ve}=e;E&&Fe(E,_),ve&&Fe(ve,_),b.value=_}function tt(){ge.value||(Ye(!0),b.value=!0,e.filterable&&st())}function Ne(){Ye(!1)}function it(){u.value="",m.value=O}const Ze=K(!1);function F(){e.filterable&&(Ze.value=!0)}function H(){e.filterable&&(Ze.value=!1,v.value||it())}function ne(){ge.value||(v.value?e.filterable?st():Ne():tt())}function be(_){var E,ve;!((ve=(E=x.value)===null||E===void 0?void 0:E.selfRef)===null||ve===void 0)&&ve.contains(_.relatedTarget)||(c.value=!1,Ee(_),Ne())}function ye(_){_e(_),c.value=!0}function W(){c.value=!0}function de(_){var E;!((E=g.value)===null||E===void 0)&&E.$el.contains(_.relatedTarget)||(c.value=!1,Ee(_),Ne())}function he(){var _;(_=g.value)===null||_===void 0||_.focus(),Ne()}function L(_){var E;v.value&&(!((E=g.value)===null||E===void 0)&&E.$el.contains(Po(_))||Ne())}function V(_){if(!Array.isArray(_))return[];if(D.value)return Array.from(_);{const{remote:E}=e,{value:ve}=k;if(E){const{value:Me}=U;return _.filter(Oe=>ve.has(Oe)||Me.has(Oe))}else return _.filter(Me=>ve.has(Me))}}function fe(_){N(_.rawNode)}function N(_){if(ge.value)return;const{tag:E,remote:ve,clearFilterAfterSelect:Me,valueField:Oe}=e;if(E&&!ve){const{value:j}=m,Ce=j[0]||null;if(Ce){const Ie=p.value;Ie.length?Ie.push(Ce):p.value=[Ce],m.value=O}}if(ve&&U.value.set(_[Oe],_),e.multiple){const j=V(l.value),Ce=j.findIndex(Ie=>Ie===_[Oe]);if(~Ce){if(j.splice(Ce,1),E&&!ve){const Ie=B(_[Oe]);~Ie&&(p.value.splice(Ie,1),Me&&(u.value=""))}}else j.push(_[Oe]),Me&&(u.value="");Re(j,I(j))}else{if(E&&!ve){const j=B(_[Oe]);~j?p.value=[p.value[j]]:p.value=O}at(),Ne(),Re(_[Oe],_)}}function B(_){return p.value.findIndex(ve=>ve[e.valueField]===_)}function Y(_){v.value||tt();const{value:E}=_.target;u.value=E;const{tag:ve,remote:Me}=e;if(me(E),ve&&!Me){if(!E){m.value=O;return}const{onCreate:Oe}=e,j=Oe?Oe(E):{[e.labelField]:E,[e.valueField]:E},{valueField:Ce,labelField:Ie}=e;d.value.some(Ue=>Ue[Ce]===j[Ce]||Ue[Ie]===j[Ie])||p.value.some(Ue=>Ue[Ce]===j[Ce]||Ue[Ie]===j[Ie])?m.value=O:m.value=[j]}}function we(_){_.stopPropagation();const{multiple:E}=e;!E&&e.filterable&&Ne(),ue(),E?Re([],[]):Re(null,null)}function Q(_){!ki(_,"action")&&!ki(_,"empty")&&!ki(_,"header")&&_.preventDefault()}function Te(_){De(_)}function Qe(_){var E,ve,Me,Oe,j;if(!e.keyboard){_.preventDefault();return}switch(_.key){case" ":if(e.filterable)break;_.preventDefault();case"Enter":if(!(!((E=g.value)===null||E===void 0)&&E.isComposing)){if(v.value){const Ce=(ve=x.value)===null||ve===void 0?void 0:ve.getPendingTmNode();Ce?fe(Ce):e.filterable||(Ne(),at())}else if(tt(),e.tag&&Ze.value){const Ce=m.value[0];if(Ce){const Ie=Ce[e.valueField],{value:Ue}=l;e.multiple&&Array.isArray(Ue)&&Ue.includes(Ie)||N(Ce)}}}_.preventDefault();break;case"ArrowUp":if(_.preventDefault(),e.loading)return;v.value&&((Me=x.value)===null||Me===void 0||Me.prev());break;case"ArrowDown":if(_.preventDefault(),e.loading)return;v.value?(Oe=x.value)===null||Oe===void 0||Oe.next():tt();break;case"Escape":v.value&&(Vs(_),Ne()),(j=g.value)===null||j===void 0||j.focus();break}}function at(){var _;(_=g.value)===null||_===void 0||_.focus()}function st(){var _;(_=g.value)===null||_===void 0||_.focusInput()}function ot(){var _;v.value&&((_=C.value)===null||_===void 0||_.syncPosition())}ke(),St(Xe(e,"options"),ke);const Ot={focus:()=>{var _;(_=g.value)===null||_===void 0||_.focus()},focusInput:()=>{var _;(_=g.value)===null||_===void 0||_.focusInput()},blur:()=>{var _;(_=g.value)===null||_===void 0||_.blur()},blurInput:()=>{var _;(_=g.value)===null||_===void 0||_.blurInput()}},Et=z(()=>{const{self:{menuBoxShadow:_}}=i.value;return{"--n-menu-box-shadow":_}}),bt=o?Xt("select",void 0,Et,e):void 0;return Object.assign(Object.assign({},Ot),{mergedStatus:Ae,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:w,isMounted:Go(),triggerRef:g,menuRef:x,pattern:u,uncontrolledShow:b,mergedShow:v,adjustedTo:kn(e),uncontrolledValue:a,mergedValue:l,followerRef:C,localizedPlaceholder:P,selectedOption:ie,selectedOptions:te,mergedSize:ce,mergedDisabled:ge,focused:c,activeWithoutMenuOpen:Ze,inlineThemeDisabled:o,onTriggerInputFocus:F,onTriggerInputBlur:H,handleTriggerOrMenuResize:ot,handleMenuFocus:W,handleMenuBlur:de,handleMenuTabOut:he,handleTriggerClick:ne,handleToggle:fe,handleDeleteOption:N,handlePatternInput:Y,handleClear:we,handleTriggerBlur:be,handleTriggerFocus:ye,handleKeydown:Qe,handleMenuAfterLeave:it,handleMenuClickOutside:L,handleMenuScroll:Te,handleMenuKeydown:Qe,handleMenuMousedown:Q,mergedTheme:i,cssVars:o?void 0:Et,themeClass:bt?.themeClass,onRender:bt?.onRender})},render(){return h("div",{class:`${this.mergedClsPrefix}-select`},h(Ri,null,{default:()=>[h(Oi,null,{default:()=>h(KA,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),h(Ei,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===kn.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>h(Cr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),Hr(h(Gy,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},header:()=>{var r,o;return[(o=(r=this.$slots).header)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[_c,this.mergedShow],[Xo,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Xo,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),pz={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function mz(e){const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:p,heightMedium:m,heightLarge:f,lineHeight:y}=e;return Object.assign(Object.assign({},pz),{labelLineHeight:y,buttonHeightSmall:p,buttonHeightMedium:m,buttonHeightLarge:f,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ht(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ht(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}const Aw={common:hn,self:mz},vz=A("radio",`
1356
+ line-height: var(--n-label-line-height);
1357
+ outline: none;
1358
+ position: relative;
1359
+ user-select: none;
1360
+ -webkit-user-select: none;
1361
+ display: inline-flex;
1362
+ align-items: flex-start;
1363
+ flex-wrap: nowrap;
1364
+ font-size: var(--n-font-size);
1365
+ word-break: break-word;
1366
+ `,[Z("checked",[X("dot",`
1367
+ background-color: var(--n-color-active);
1368
+ `)]),X("dot-wrapper",`
1369
+ position: relative;
1370
+ flex-shrink: 0;
1371
+ flex-grow: 0;
1372
+ width: var(--n-radio-size);
1373
+ `),A("radio-input",`
1374
+ position: absolute;
1375
+ border: 0;
1376
+ width: 0;
1377
+ height: 0;
1378
+ opacity: 0;
1379
+ margin: 0;
1380
+ `),X("dot",`
1381
+ position: absolute;
1382
+ top: 50%;
1383
+ left: 0;
1384
+ transform: translateY(-50%);
1385
+ height: var(--n-radio-size);
1386
+ width: var(--n-radio-size);
1387
+ background: var(--n-color);
1388
+ box-shadow: var(--n-box-shadow);
1389
+ border-radius: 50%;
1390
+ transition:
1391
+ background-color .3s var(--n-bezier),
1392
+ box-shadow .3s var(--n-bezier);
1393
+ `,[G("&::before",`
1394
+ content: "";
1395
+ opacity: 0;
1396
+ position: absolute;
1397
+ left: 4px;
1398
+ top: 4px;
1399
+ height: calc(100% - 8px);
1400
+ width: calc(100% - 8px);
1401
+ border-radius: 50%;
1402
+ transform: scale(.8);
1403
+ background: var(--n-dot-color-active);
1404
+ transition:
1405
+ opacity .3s var(--n-bezier),
1406
+ background-color .3s var(--n-bezier),
1407
+ transform .3s var(--n-bezier);
1408
+ `),Z("checked",{boxShadow:"var(--n-box-shadow-active)"},[G("&::before",`
1409
+ opacity: 1;
1410
+ transform: scale(1);
1411
+ `)])]),X("label",`
1412
+ color: var(--n-text-color);
1413
+ padding: var(--n-label-padding);
1414
+ font-weight: var(--n-label-font-weight);
1415
+ display: inline-block;
1416
+ transition: color .3s var(--n-bezier);
1417
+ `),zt("disabled",`
1418
+ cursor: pointer;
1419
+ `,[G("&:hover",[X("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),Z("focus",[G("&:not(:active)",[X("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),Z("disabled",`
1420
+ cursor: not-allowed;
1421
+ `,[X("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[G("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),Z("checked",`
1422
+ opacity: 1;
1423
+ `)]),X("label",{color:"var(--n-text-color-disabled)"}),A("radio-input",`
1424
+ cursor: not-allowed;
1425
+ `)])]),gz={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}},Mw="n-radio-group";function bz(e){const t=wt(Mw,null),n=hr(e,{mergedSize(k){const{size:b}=e;if(b!==void 0)return b;if(t){const{mergedSizeRef:{value:v}}=t;if(v!==void 0)return v}return k?k.mergedSize.value:"medium"},mergedDisabled(k){return!!(e.disabled||t?.disabledRef.value||k?.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=K(null),a=K(null),s=K(e.defaultChecked),l=Xe(e,"checked"),c=Vn(l,s),u=cn(()=>t?t.valueRef.value===e.value:c.value),d=cn(()=>{const{name:k}=e;if(k!==void 0)return k;if(t)return t.nameRef.value}),p=K(!1);function m(){if(t){const{doUpdateValue:k}=t,{value:b}=e;Fe(k,b)}else{const{onUpdateChecked:k,"onUpdate:checked":b}=e,{nTriggerFormInput:v,nTriggerFormChange:g}=n;k&&Fe(k,!0),b&&Fe(b,!0),v(),g(),s.value=!0}}function f(){o.value||u.value||m()}function y(){f(),i.value&&(i.value.checked=u.value)}function S(){p.value=!1}function w(){p.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:Lt(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:d,mergedDisabled:o,renderSafeChecked:u,focus:p,mergedSize:r,handleRadioInputChange:y,handleRadioInputBlur:S,handleRadioInputFocus:w}}const yz=Object.assign(Object.assign({},rt.props),gz),wz=Le({name:"Radio",props:yz,setup(e){const t=bz(e),n=rt("Radio","-radio",vz,Aw,e,t.mergedClsPrefix),r=z(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:d,boxShadowActive:p,boxShadowDisabled:m,boxShadowFocus:f,boxShadowHover:y,color:S,colorDisabled:w,colorActive:k,textColor:b,textColorDisabled:v,dotColorActive:g,dotColorDisabled:C,labelPadding:x,labelLineHeight:T,labelFontWeight:P,[Be("fontSize",c)]:O,[Be("radioSize",c)]:U}}=n.value;return{"--n-bezier":u,"--n-label-line-height":T,"--n-label-font-weight":P,"--n-box-shadow":d,"--n-box-shadow-active":p,"--n-box-shadow-disabled":m,"--n-box-shadow-focus":f,"--n-box-shadow-hover":y,"--n-color":S,"--n-color-active":k,"--n-color-disabled":w,"--n-dot-color-active":g,"--n-dot-color-disabled":C,"--n-font-size":O,"--n-radio-size":U,"--n-text-color":b,"--n-text-color-disabled":v,"--n-label-padding":x}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=Lt(e),s=pr("Radio",a,i),l=o?Xt("radio",z(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:o?void 0:r,themeClass:l?.themeClass,onRender:l?.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n?.(),h("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},h("div",{class:`${t}-radio__dot-wrapper`}," ",h("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]}),h("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})),qt(e.default,o=>!o&&!r?null:h("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),xz=A("radio-group",`
1426
+ display: inline-block;
1427
+ font-size: var(--n-font-size);
1428
+ `,[X("splitor",`
1429
+ display: inline-block;
1430
+ vertical-align: bottom;
1431
+ width: 1px;
1432
+ transition:
1433
+ background-color .3s var(--n-bezier),
1434
+ opacity .3s var(--n-bezier);
1435
+ background: var(--n-button-border-color);
1436
+ `,[Z("checked",{backgroundColor:"var(--n-button-border-color-active)"}),Z("disabled",{opacity:"var(--n-opacity-disabled)"})]),Z("button-group",`
1437
+ white-space: nowrap;
1438
+ height: var(--n-height);
1439
+ line-height: var(--n-height);
1440
+ `,[A("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),X("splitor",{height:"var(--n-height)"})]),A("radio-button",`
1441
+ vertical-align: bottom;
1442
+ outline: none;
1443
+ position: relative;
1444
+ user-select: none;
1445
+ -webkit-user-select: none;
1446
+ display: inline-block;
1447
+ box-sizing: border-box;
1448
+ padding-left: 14px;
1449
+ padding-right: 14px;
1450
+ white-space: nowrap;
1451
+ transition:
1452
+ background-color .3s var(--n-bezier),
1453
+ opacity .3s var(--n-bezier),
1454
+ border-color .3s var(--n-bezier),
1455
+ color .3s var(--n-bezier);
1456
+ background: var(--n-button-color);
1457
+ color: var(--n-button-text-color);
1458
+ border-top: 1px solid var(--n-button-border-color);
1459
+ border-bottom: 1px solid var(--n-button-border-color);
1460
+ `,[A("radio-input",`
1461
+ pointer-events: none;
1462
+ position: absolute;
1463
+ border: 0;
1464
+ border-radius: inherit;
1465
+ left: 0;
1466
+ right: 0;
1467
+ top: 0;
1468
+ bottom: 0;
1469
+ opacity: 0;
1470
+ z-index: 1;
1471
+ `),X("state-border",`
1472
+ z-index: 1;
1473
+ pointer-events: none;
1474
+ position: absolute;
1475
+ box-shadow: var(--n-button-box-shadow);
1476
+ transition: box-shadow .3s var(--n-bezier);
1477
+ left: -1px;
1478
+ bottom: -1px;
1479
+ right: -1px;
1480
+ top: -1px;
1481
+ `),G("&:first-child",`
1482
+ border-top-left-radius: var(--n-button-border-radius);
1483
+ border-bottom-left-radius: var(--n-button-border-radius);
1484
+ border-left: 1px solid var(--n-button-border-color);
1485
+ `,[X("state-border",`
1486
+ border-top-left-radius: var(--n-button-border-radius);
1487
+ border-bottom-left-radius: var(--n-button-border-radius);
1488
+ `)]),G("&:last-child",`
1489
+ border-top-right-radius: var(--n-button-border-radius);
1490
+ border-bottom-right-radius: var(--n-button-border-radius);
1491
+ border-right: 1px solid var(--n-button-border-color);
1492
+ `,[X("state-border",`
1493
+ border-top-right-radius: var(--n-button-border-radius);
1494
+ border-bottom-right-radius: var(--n-button-border-radius);
1495
+ `)]),zt("disabled",`
1496
+ cursor: pointer;
1497
+ `,[G("&:hover",[X("state-border",`
1498
+ transition: box-shadow .3s var(--n-bezier);
1499
+ box-shadow: var(--n-button-box-shadow-hover);
1500
+ `),zt("checked",{color:"var(--n-button-text-color-hover)"})]),Z("focus",[G("&:not(:active)",[X("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),Z("checked",`
1501
+ background: var(--n-button-color-active);
1502
+ color: var(--n-button-text-color-active);
1503
+ border-color: var(--n-button-border-color-active);
1504
+ `),Z("disabled",`
1505
+ cursor: not-allowed;
1506
+ opacity: var(--n-opacity-disabled);
1507
+ `)])]);function Cz(e,t,n){var r;const o=[];let i=!1;for(let a=0;a<e.length;++a){const s=e[a],l=(r=s.type)===null||r===void 0?void 0:r.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,d=t===u.value,p=u.disabled,m=t===c.value,f=c.disabled,y=(d?2:0)+(p?0:1),S=(m?2:0)+(f?0:1),w={[`${n}-radio-group__splitor--disabled`]:p,[`${n}-radio-group__splitor--checked`]:d},k={[`${n}-radio-group__splitor--disabled`]:f,[`${n}-radio-group__splitor--checked`]:m},b=y<S?k:w;o.push(h("div",{class:[`${n}-radio-group__splitor`,b]}),s)}}return{children:o,isButtonGroup:i}}const Sz=Object.assign(Object.assign({},rt.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]}),_z=Le({name:"RadioGroup",props:Sz,setup(e){const t=K(null),{mergedSizeRef:n,mergedDisabledRef:r,nTriggerFormChange:o,nTriggerFormInput:i,nTriggerFormBlur:a,nTriggerFormFocus:s}=hr(e),{mergedClsPrefixRef:l,inlineThemeDisabled:c,mergedRtlRef:u}=Lt(e),d=rt("Radio","-radio-group",xz,Aw,e,l),p=K(e.defaultValue),m=Xe(e,"value"),f=Vn(m,p);function y(g){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&Fe(C,g),x&&Fe(x,g),p.value=g,o(),i()}function S(g){const{value:C}=t;C&&(C.contains(g.relatedTarget)||s())}function w(g){const{value:C}=t;C&&(C.contains(g.relatedTarget)||a())}_n(Mw,{mergedClsPrefixRef:l,nameRef:Xe(e,"name"),valueRef:f,disabledRef:r,mergedSizeRef:n,doUpdateValue:y});const k=pr("Radio",u,l),b=z(()=>{const{value:g}=n,{common:{cubicBezierEaseInOut:C},self:{buttonBorderColor:x,buttonBorderColorActive:T,buttonBorderRadius:P,buttonBoxShadow:O,buttonBoxShadowFocus:U,buttonBoxShadowHover:D,buttonColor:I,buttonColorActive:te,buttonTextColor:ie,buttonTextColorActive:pe,buttonTextColorHover:ce,opacityDisabled:ge,[Be("buttonHeight",g)]:Ae,[Be("fontSize",g)]:Re}}=d.value;return{"--n-font-size":Re,"--n-bezier":C,"--n-button-border-color":x,"--n-button-border-color-active":T,"--n-button-border-radius":P,"--n-button-box-shadow":O,"--n-button-box-shadow-focus":U,"--n-button-box-shadow-hover":D,"--n-button-color":I,"--n-button-color-active":te,"--n-button-text-color":ie,"--n-button-text-color-hover":ce,"--n-button-text-color-active":pe,"--n-height":Ae,"--n-opacity-disabled":ge}}),v=c?Xt("radio-group",z(()=>n.value[0]),b,e):void 0;return{selfElRef:t,rtlEnabled:k,mergedClsPrefix:l,mergedValue:f,handleFocusout:w,handleFocusin:S,cssVars:c?void 0:b,themeClass:v?.themeClass,onRender:v?.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=Cz($o(O0(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),h("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}});function kz(e){const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}}const Pz={common:hn,self:kz},Tz=A("icon",`
1508
+ height: 1em;
1509
+ width: 1em;
1510
+ line-height: 1em;
1511
+ text-align: center;
1512
+ display: inline-block;
1513
+ position: relative;
1514
+ fill: currentColor;
1515
+ `,[Z("color-transition",{transition:"color .3s var(--n-bezier)"}),Z("depth",{color:"var(--n-color)"},[G("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),G("svg",{height:"1em",width:"1em"})]),$z=Object.assign(Object.assign({},rt.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),Iw=Le({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:$z,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Lt(e),r=rt("Icon","-icon",Tz,Pz,e,t),o=z(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:s},self:l}=r.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=n?Xt("icon",z(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:z(()=>{const{size:a,color:s}=e;return{fontSize:Jo(a),color:s}}),cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t?.$options)===null||e===void 0)&&e._n_icon__&&Ai("icon","don't wrap `n-icon` inside `n-icon`"),i?.(),h("i",xa(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?h(o):this.$slots)}}),Rz={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Oz(e){const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},Rz),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:u})}const zw={name:"TimePicker",common:hn,peers:{Scrollbar:Ia,Button:Ba,Input:Wi},self:Oz},Ez={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"};function Dz(e){const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:u,dividerColor:d,boxShadow2:p,borderRadius:m,fontWeightStrong:f}=e;return Object.assign(Object.assign({},Ez),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:ht(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:r,arrowColor:l,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:p,panelBorderRadius:m,calendarTitleFontWeight:f,scrollItemBorderRadius:m,iconColor:l,iconColorDisabled:c})}const Fz={name:"DatePicker",common:hn,peers:{Input:Wi,Button:Ba,TimePicker:zw,Scrollbar:Ia},self:Dz},fu="n-date-picker",Gi=40,Bw={active:Boolean,dateFormat:String,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,required:!0},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},timePickerFormat:{type:String,value:"HH:mm:ss"},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],inputReadonly:Boolean,onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onKeydown:Function,actions:Array,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean,onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function};function Nw(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=wt(fu),s=z(()=>({locale:t.value.locale})),l=K(null),c=Bb();function u(){const{onClear:D}=e;D&&D()}function d(){const{onConfirm:D,value:I}=e;D&&D(I)}function p(D,I){const{onUpdateValue:te}=e;te(D,I)}function m(D=!1){const{onClose:I}=e;I&&I(D)}function f(){const{onTabOut:D}=e;D&&D()}function y(){p(null,!0),m(!0),u()}function S(){f()}function w(){(e.active||e.panel)&&On(()=>{const{value:D}=l;if(!D)return;const I=D.querySelectorAll("[data-n-date]");I.forEach(te=>{te.classList.add("transition-disabled")}),D.offsetWidth,I.forEach(te=>{te.classList.remove("transition-disabled")})})}function k(D){D.key==="Tab"&&D.target===l.value&&c.shift&&(D.preventDefault(),f())}function b(D){const{value:I}=l;c.tab&&D.target===I&&I?.contains(D.relatedTarget)&&f()}let v=null,g=!1;function C(){v=e.value,g=!0}function x(){g=!1}function T(){g&&(p(v,!1),g=!1)}function P(D){return typeof D=="function"?D():D}const O=K(!1);function U(){O.value=!O.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:s,timePickerSize:n,timePickerProps:r,selfRef:l,locale:o,doConfirm:d,doClose:m,doUpdateValue:p,doTabOut:f,handleClearClick:y,handleFocusDetectorFocus:S,disableTransitionOneTick:w,handlePanelKeyDown:k,handlePanelFocus:b,cachePendingValue:C,clearPendingValue:x,restorePendingValue:T,getShortcutValue:P,handleShortcutMouseleave:T,showMonthYearPanel:O,handleOpenQuickSelectMonthPanel:U}}const Eh=Object.assign(Object.assign({},Bw),{defaultCalendarStartTime:Number,actions:{type:Array,default:()=>["now","clear","confirm"]}});function Dh(e,t){var n;const r=Nw(e),{isValueInvalidRef:o,isDateDisabledRef:i,isDateInvalidRef:a,isTimeInvalidRef:s,isDateTimeInvalidRef:l,isHourDisabledRef:c,isMinuteDisabledRef:u,isSecondDisabledRef:d,localeRef:p,firstDayOfWeekRef:m,datePickerSlots:f,yearFormatRef:y,monthFormatRef:S,quarterFormatRef:w,yearRangeRef:k}=wt(fu),b={isValueInvalid:o,isDateDisabled:i,isDateInvalid:a,isTimeInvalid:s,isDateTimeInvalid:l,isHourDisabled:c,isMinuteDisabled:u,isSecondDisabled:d},v=z(()=>e.dateFormat||p.value.dateFormat),g=z(()=>e.calendarDayFormat||p.value.dayFormat),C=K(e.value===null||Array.isArray(e.value)?"":Gt(e.value,v.value)),x=K(e.value===null||Array.isArray(e.value)?(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Date.now():e.value),T=K(null),P=K(null),O=K(null),U=K(Date.now()),D=z(()=>{var Q;return Th(x.value,e.value,U.value,(Q=m.value)!==null&&Q!==void 0?Q:p.value.firstDayOfWeek,!1,t==="week")}),I=z(()=>{const{value:Q}=e;return $h(x.value,Array.isArray(Q)?null:Q,U.value,{monthFormat:S.value})}),te=z(()=>{const{value:Q}=e;return Oh(Array.isArray(Q)?null:Q,U.value,{yearFormat:y.value},k)}),ie=z(()=>{const{value:Q}=e;return Rh(x.value,Array.isArray(Q)?null:Q,U.value,{quarterFormat:w.value})}),pe=z(()=>D.value.slice(0,7).map(Q=>{const{ts:Te}=Q;return Gt(Te,g.value,r.dateFnsOptions.value)})),ce=z(()=>Gt(x.value,e.calendarHeaderMonthFormat||p.value.monthFormat,r.dateFnsOptions.value)),ge=z(()=>Gt(x.value,e.calendarHeaderYearFormat||p.value.yearFormat,r.dateFnsOptions.value)),Ae=z(()=>{var Q;return(Q=e.calendarHeaderMonthBeforeYear)!==null&&Q!==void 0?Q:p.value.monthBeforeYear});St(x,(Q,Te)=>{(t==="date"||t==="datetime")&&(rl(Q,Te)||r.disableTransitionOneTick())}),St(z(()=>e.value),Q=>{Q!==null&&!Array.isArray(Q)?(C.value=Gt(Q,v.value,r.dateFnsOptions.value),x.value=Q):C.value=""});function Re(Q){var Te;if(t==="datetime")return qe(xh(Q));if(t==="month")return qe(Do(Q));if(t==="year")return qe(nl(Q));if(t==="quarter")return qe(tl(Q));if(t==="week"){const Qe=(((Te=m.value)!==null&&Te!==void 0?Te:p.value.firstDayOfWeek)+1)%7;return qe(jr(Q,{weekStartsOn:Qe}))}return qe(ja(Q))}function Ee(Q,Te){const{isDateDisabled:{value:Qe}}=b;return Qe?Qe(Q,Te):!1}function ue(Q){const Te=vr(Q,v.value,new Date,r.dateFnsOptions.value);if(Ar(Te)){if(e.value===null)r.doUpdateValue(qe(Re(Date.now())),e.panel);else if(!Array.isArray(e.value)){const Qe=Xn(e.value,{year:pn(Te),month:ln(Te),date:Mr(Te)});r.doUpdateValue(qe(Re(qe(Qe))),e.panel)}}else C.value=Q}function _e(){const Q=vr(C.value,v.value,new Date,r.dateFnsOptions.value);if(Ar(Q)){if(e.value===null)r.doUpdateValue(qe(Re(Date.now())),!1);else if(!Array.isArray(e.value)){const Te=Xn(e.value,{year:pn(Q),month:ln(Q),date:Mr(Q)});r.doUpdateValue(qe(Re(qe(Te))),!1)}}else F()}function me(){r.doUpdateValue(null,!0),C.value="",r.doClose(!0),r.handleClearClick()}function De(){r.doUpdateValue(qe(Re(Date.now())),!0);const Q=Date.now();x.value=Q,r.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(r.disableTransitionOneTick(),Y(Q))}const ke=K(null);function Ye(Q){Q.type==="date"&&t==="week"&&(ke.value=Re(qe(Q.ts)))}function tt(Q){return Q.type==="date"&&t==="week"?Re(qe(Q.ts))===ke.value:!1}function Ne(Q){if(Ee(Q.ts,Q.type==="date"?{type:"date",year:Q.dateObject.year,month:Q.dateObject.month,date:Q.dateObject.date}:Q.type==="month"?{type:"month",year:Q.dateObject.year,month:Q.dateObject.month}:Q.type==="year"?{type:"year",year:Q.dateObject.year}:{type:"quarter",year:Q.dateObject.year,quarter:Q.dateObject.quarter}))return;let Te;if(e.value!==null&&!Array.isArray(e.value)?Te=e.value:Te=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const Qe=du(e.defaultTime);Qe&&(Te=qe(Xn(Te,Qe)))}switch(Te=qe(Q.type==="quarter"&&Q.dateObject.quarter?qI(kh(Te,Q.dateObject.year),Q.dateObject.quarter):Xn(Te,Q.dateObject)),r.doUpdateValue(Re(Te),e.panel||t==="date"||t==="week"||t==="year"),t){case"date":case"week":r.doClose();break;case"year":e.panel&&r.disableTransitionOneTick(),r.doClose();break;case"month":r.disableTransitionOneTick(),Y(Te);break;case"quarter":r.disableTransitionOneTick(),Y(Te);break}}function it(Q,Te){let Qe;e.value!==null&&!Array.isArray(e.value)?Qe=e.value:Qe=Date.now(),Qe=qe(Q.type==="month"?Ch(Qe,Q.dateObject.month):kh(Qe,Q.dateObject.year)),Te(Qe),Y(Qe)}function Ze(Q){x.value=Q}function F(Q){if(e.value===null||Array.isArray(e.value)){C.value="";return}Q===void 0&&(Q=e.value),C.value=Gt(Q,v.value,r.dateFnsOptions.value)}function H(){b.isDateInvalid.value||b.isTimeInvalid.value||(r.doConfirm(),ne())}function ne(){e.active&&r.doClose()}function be(){var Q;x.value=qe(mh(x.value,1)),(Q=e.onNextYear)===null||Q===void 0||Q.call(e)}function ye(){var Q;x.value=qe(mh(x.value,-1)),(Q=e.onPrevYear)===null||Q===void 0||Q.call(e)}function W(){var Q;x.value=qe(Kn(x.value,1)),(Q=e.onNextMonth)===null||Q===void 0||Q.call(e)}function de(){var Q;x.value=qe(Kn(x.value,-1)),(Q=e.onPrevMonth)===null||Q===void 0||Q.call(e)}function he(){const{value:Q}=T;return Q?.listElRef||null}function L(){const{value:Q}=T;return Q?.itemsElRef||null}function V(){var Q;(Q=P.value)===null||Q===void 0||Q.sync()}function fe(Q){Q!==null&&r.doUpdateValue(Q,e.panel)}function N(Q){r.cachePendingValue();const Te=r.getShortcutValue(Q);typeof Te=="number"&&r.doUpdateValue(Te,!1)}function B(Q){const Te=r.getShortcutValue(Q);typeof Te=="number"&&(r.doUpdateValue(Te,e.panel),r.clearPendingValue(),H())}function Y(Q){const{value:Te}=e;if(O.value){const Qe=ln(Q===void 0?Te===null?Date.now():Te:Q);O.value.scrollTo({top:Qe*Gi})}if(T.value){const Qe=pn(Q===void 0?Te===null?Date.now():Te:Q)-k.value[0];T.value.scrollTo({top:Qe*Gi})}}const we={monthScrollbarRef:O,yearScrollbarRef:P,yearVlRef:T};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:D,monthArray:I,yearArray:te,quarterArray:ie,calendarYear:ge,calendarMonth:ce,weekdays:pe,calendarMonthBeforeYear:Ae,mergedIsDateDisabled:Ee,nextYear:be,prevYear:ye,nextMonth:W,prevMonth:de,handleNowClick:De,handleConfirmClick:H,handleSingleShortcutMouseenter:N,handleSingleShortcutClick:B},b),r),we),{handleDateClick:Ne,handleDateInputBlur:_e,handleDateInput:ue,handleDateMouseEnter:Ye,isWeekHovered:tt,handleTimePickerChange:fe,clearSelectedDateTime:me,virtualListContainer:he,virtualListContent:L,handleVirtualListScroll:V,timePickerSize:r.timePickerSize,dateInputValue:C,datePickerSlots:f,handleQuickMonthClick:it,justifyColumnsScrollState:Y,calendarValue:x,onUpdateCalendarValue:Ze})}const Lw=Le({name:"MonthPanel",props:Object.assign(Object.assign({},Eh),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=Dh(e,e.type),{dateLocaleRef:n}=co("DatePicker"),r=a=>{switch(a.type){case"year":return Ow(a.dateObject.year,a.yearFormat,n.value.locale);case"month":return Rw(a.dateObject.month,a.monthFormat,n.value.locale);case"quarter":return Ew(a.dateObject.quarter,a.quarterFormat,n.value.locale)}},{useAsQuickJump:o}=e,i=(a,s,l)=>{const{mergedIsDateDisabled:c,handleDateClick:u,handleQuickMonthClick:d}=t;return h("div",{"data-n-date":!0,key:s,class:[`${l}-date-panel-month-calendar__picker-col-item`,a.isCurrent&&`${l}-date-panel-month-calendar__picker-col-item--current`,a.selected&&`${l}-date-panel-month-calendar__picker-col-item--selected`,!o&&c(a.ts,a.type==="year"?{type:"year",year:a.dateObject.year}:a.type==="month"?{type:"month",year:a.dateObject.year,month:a.dateObject.month}:a.type==="quarter"?{type:"month",year:a.dateObject.year,month:a.dateObject.quarter}:null)&&`${l}-date-panel-month-calendar__picker-col-item--disabled`],onClick:()=>{o?d(a,p=>{e.onUpdateValue(p,!1)}):u(a)}},r(a))};return En(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:i})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a?.(),h("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},h("div",{class:`${e}-date-panel-month-calendar`},h(mr,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(Vc,{ref:"yearVlRef",items:this.yearArray,itemSize:Gi,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:s,index:l})=>o(s,l,e)})}),i==="month"||i==="quarter"?h("div",{class:`${e}-date-panel-month-calendar__picker-col`},h(mr,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((s,l)=>o(s,l,e)),h("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),qt(this.datePickerSlots.footer,s=>s?h("div",{class:`${e}-date-panel-footer`},s):null),r?.length||n?h("div",{class:`${e}-date-panel-actions`},h("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(s=>{const l=n[s];return Array.isArray(l)?null:h(uo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(l)},onClick:()=>{this.handleSingleShortcutClick(l)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),h("div",{class:`${e}-date-panel-actions__suffix`},r?.includes("clear")?Gn(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[h(mn,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,r?.includes("now")?Gn(this.datePickerSlots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[h(mn,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,r?.includes("confirm")?Gn(this.datePickerSlots.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[h(mn,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,h(oi,{onFocus:this.handleFocusDetectorFocus}))}}),qa=Le({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},monthYearSeparator:{type:String,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=K(null),t=K(null),n=K(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(Po(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return h("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},h(Ri,null,{default:()=>[h(Oi,null,{default:()=>h("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth,this.monthYearSeparator,this.calendarYear]:[this.calendarYear,this.monthYearSeparator,this.calendarMonth])}),h(Ei,{show:this.show,teleportDisabled:!0},{default:()=>h(Cr,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?Hr(h(Lw,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],calendarHeaderMonthYearSeparator:this.monthYearSeparator,type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[Xo,e,void 0,{capture:!0}]]):null})})]}))}}),Az=Le({name:"DatePanel",props:Object.assign(Object.assign({},Eh),{type:{type:String,required:!0}}),setup(e){return Dh(e,e.type)},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,datePickerSlots:s,type:l}=this;return a?.(),h("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--${l}`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},h("div",{class:`${r}-date-panel-calendar`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},Rt(s["prev-year"],()=>[h(Fa,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},Rt(s["prev-month"],()=>[h(Da,null)])),h(qa,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},Rt(s["next-month"],()=>[h(Ma,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},Rt(s["next-year"],()=>[h(Aa,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>h("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),h("div",{class:`${r}-date-panel-dates`},this.dateArray.map((c,u)=>h("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(c.ts,{type:"date",year:c.dateObject.year,month:c.dateObject.month,date:c.dateObject.date}),[`${r}-date-panel-date--week-hovered`]:this.isWeekHovered(c),[`${r}-date-panel-date--week-selected`]:c.inSelectedWeek}],onClick:()=>{this.handleDateClick(c)},onMouseenter:()=>{this.handleDateMouseEnter(c)}},h("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?h("div",{class:`${r}-date-panel-actions`},h("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)?null:h(uo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(u)},onClick:()=>{this.handleSingleShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c})})),h("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?Gn(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[h(mn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?Gn(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[h(mn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null)):null,h(oi,{onFocus:this.handleFocusDetectorFocus}))}}),Fh=Object.assign(Object.assign({},Bw),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function Ah(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:s,isEndMinuteDisabledRef:l,isStartSecondDisabledRef:c,isEndSecondDisabledRef:u,isStartDateInvalidRef:d,isEndDateInvalidRef:p,isStartTimeInvalidRef:m,isEndTimeInvalidRef:f,isStartValueInvalidRef:y,isEndValueInvalidRef:S,isRangeInvalidRef:w,localeRef:k,rangesRef:b,closeOnSelectRef:v,updateValueOnCloseRef:g,firstDayOfWeekRef:C,datePickerSlots:x,monthFormatRef:T,yearFormatRef:P,quarterFormatRef:O,yearRangeRef:U}=wt(fu),D={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:s,isEndMinuteDisabled:l,isStartSecondDisabled:c,isEndSecondDisabled:u,isStartDateInvalid:d,isEndDateInvalid:p,isStartTimeInvalid:m,isEndTimeInvalid:f,isStartValueInvalid:y,isEndValueInvalid:S,isRangeInvalid:w},I=Nw(e),te=K(null),ie=K(null),pe=K(null),ce=K(null),ge=K(null),Ae=K(null),Re=K(null),Ee=K(null),{value:ue}=e,_e=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(ue)&&typeof ue[0]=="number"?ue[0]:Date.now(),me=K(_e),De=K((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(ue)&&typeof ue[1]=="number"?ue[1]:qe(Kn(_e,1)));ot(!0);const ke=K(Date.now()),Ye=K(!1),tt=K(0),Ne=z(()=>e.dateFormat||k.value.dateFormat),it=z(()=>e.calendarDayFormat||k.value.dayFormat),Ze=K(Array.isArray(ue)?Gt(ue[0],Ne.value,I.dateFnsOptions.value):""),F=K(Array.isArray(ue)?Gt(ue[1],Ne.value,I.dateFnsOptions.value):""),H=z(()=>Ye.value?"end":"start"),ne=z(()=>{var se;return Th(me.value,e.value,ke.value,(se=C.value)!==null&&se!==void 0?se:k.value.firstDayOfWeek)}),be=z(()=>{var se;return Th(De.value,e.value,ke.value,(se=C.value)!==null&&se!==void 0?se:k.value.firstDayOfWeek)}),ye=z(()=>ne.value.slice(0,7).map(se=>{const{ts:je}=se;return Gt(je,it.value,I.dateFnsOptions.value)})),W=z(()=>Gt(me.value,e.calendarHeaderMonthFormat||k.value.monthFormat,I.dateFnsOptions.value)),de=z(()=>Gt(De.value,e.calendarHeaderMonthFormat||k.value.monthFormat,I.dateFnsOptions.value)),he=z(()=>Gt(me.value,e.calendarHeaderYearFormat||k.value.yearFormat,I.dateFnsOptions.value)),L=z(()=>Gt(De.value,e.calendarHeaderYearFormat||k.value.yearFormat,I.dateFnsOptions.value)),V=z(()=>{const{value:se}=e;return Array.isArray(se)?se[0]:null}),fe=z(()=>{const{value:se}=e;return Array.isArray(se)?se[1]:null}),N=z(()=>{const{shortcuts:se}=e;return se||b.value}),B=z(()=>Oh(Ua(e.value,"start"),ke.value,{yearFormat:P.value},U)),Y=z(()=>Oh(Ua(e.value,"end"),ke.value,{yearFormat:P.value},U)),we=z(()=>{const se=Ua(e.value,"start");return Rh(se??Date.now(),se,ke.value,{quarterFormat:O.value})}),Q=z(()=>{const se=Ua(e.value,"end");return Rh(se??Date.now(),se,ke.value,{quarterFormat:O.value})}),Te=z(()=>{const se=Ua(e.value,"start");return $h(se??Date.now(),se,ke.value,{monthFormat:T.value})}),Qe=z(()=>{const se=Ua(e.value,"end");return $h(se??Date.now(),se,ke.value,{monthFormat:T.value})}),at=z(()=>{var se;return(se=e.calendarHeaderMonthBeforeYear)!==null&&se!==void 0?se:k.value.monthBeforeYear});St(z(()=>e.value),se=>{if(se!==null&&Array.isArray(se)){const[je,Je]=se;Ze.value=Gt(je,Ne.value,I.dateFnsOptions.value),F.value=Gt(Je,Ne.value,I.dateFnsOptions.value),Ye.value||Ue(se)}else Ze.value="",F.value=""});function st(se,je){(t==="daterange"||t==="datetimerange")&&(pn(se)!==pn(je)||ln(se)!==ln(je))&&I.disableTransitionOneTick()}St(me,st),St(De,st);function ot(se){const je=Do(me.value),Je=Do(De.value);(e.bindCalendarMonths||je>=Je)&&(se?De.value=qe(Kn(je,1)):me.value=qe(Kn(Je,-1)))}function Ot(){me.value=qe(Kn(me.value,12)),ot(!0)}function Et(){me.value=qe(Kn(me.value,-12)),ot(!0)}function bt(){me.value=qe(Kn(me.value,1)),ot(!0)}function _(){me.value=qe(Kn(me.value,-1)),ot(!0)}function E(){De.value=qe(Kn(De.value,12)),ot(!1)}function ve(){De.value=qe(Kn(De.value,-12)),ot(!1)}function Me(){De.value=qe(Kn(De.value,1)),ot(!1)}function Oe(){De.value=qe(Kn(De.value,-1)),ot(!1)}function j(se){me.value=se,ot(!0)}function Ce(se){De.value=se,ot(!1)}function Ie(se){const je=o.value;if(!je)return!1;if(!Array.isArray(e.value)||H.value==="start")return je(se,"start",null);{const{value:Je}=tt;return se<tt.value?je(se,"start",[Je,Je]):je(se,"end",[Je,Je])}}function Ue(se){if(se===null)return;const[je,Je]=se;me.value=je,Do(Je)<=Do(je)?De.value=qe(Do(Kn(je,1))):De.value=qe(Do(Je))}function Ct(se){if(!Ye.value)Ye.value=!0,tt.value=se.ts,Bt(se.ts,se.ts,"done");else{Ye.value=!1;const{value:je}=e;e.panel&&Array.isArray(je)?Bt(je[0],je[1],"done"):v.value&&t==="daterange"&&(g.value?$e():le())}}function Mt(se){if(Ye.value){if(Ie(se.ts))return;se.ts>=tt.value?Bt(tt.value,se.ts,"wipPreview"):Bt(se.ts,tt.value,"wipPreview")}}function le(){w.value||(I.doConfirm(),$e())}function $e(){Ye.value=!1,e.active&&I.doClose()}function Ge(se){typeof se!="number"&&(se=qe(se)),e.value===null?I.doUpdateValue([se,se],e.panel):Array.isArray(e.value)&&I.doUpdateValue([se,Math.max(e.value[1],se)],e.panel)}function ct(se){typeof se!="number"&&(se=qe(se)),e.value===null?I.doUpdateValue([se,se],e.panel):Array.isArray(e.value)&&I.doUpdateValue([Math.min(e.value[0],se),se],e.panel)}function Bt(se,je,Je){if(typeof se!="number"&&(se=qe(se)),Je!=="shortcutPreview"&&Je!=="shortcutDone"){let Zt,Nn;if(t==="datetimerange"){const{defaultTime:nn}=e;Array.isArray(nn)?(Zt=du(nn[0]),Nn=du(nn[1])):(Zt=du(nn),Nn=Zt)}Zt&&(se=qe(Xn(se,Zt))),Nn&&(je=qe(Xn(je,Nn)))}I.doUpdateValue([se,je],e.panel&&(Je==="done"||Je==="shortcutDone"))}function _t(se){return qe(t==="datetimerange"?xh(se):t==="monthrange"?Do(se):ja(se))}function $t(se){const je=vr(se,Ne.value,new Date,I.dateFnsOptions.value);if(Ar(je))if(e.value){if(Array.isArray(e.value)){const Je=Xn(e.value[0],{year:pn(je),month:ln(je),date:Mr(je)});Ge(_t(qe(Je)))}}else{const Je=Xn(new Date,{year:pn(je),month:ln(je),date:Mr(je)});Ge(_t(qe(Je)))}else Ze.value=se}function J(se){const je=vr(se,Ne.value,new Date,I.dateFnsOptions.value);if(Ar(je)){if(e.value===null){const Je=Xn(new Date,{year:pn(je),month:ln(je),date:Mr(je)});ct(_t(qe(Je)))}else if(Array.isArray(e.value)){const Je=Xn(e.value[1],{year:pn(je),month:ln(je),date:Mr(je)});ct(_t(qe(Je)))}}else F.value=se}function Se(){const se=vr(Ze.value,Ne.value,new Date,I.dateFnsOptions.value),{value:je}=e;if(Ar(se)){if(je===null){const Je=Xn(new Date,{year:pn(se),month:ln(se),date:Mr(se)});Ge(_t(qe(Je)))}else if(Array.isArray(je)){const Je=Xn(je[0],{year:pn(se),month:ln(se),date:Mr(se)});Ge(_t(qe(Je)))}}else xt()}function et(){const se=vr(F.value,Ne.value,new Date,I.dateFnsOptions.value),{value:je}=e;if(Ar(se)){if(je===null){const Je=Xn(new Date,{year:pn(se),month:ln(se),date:Mr(se)});ct(_t(qe(Je)))}else if(Array.isArray(je)){const Je=Xn(je[1],{year:pn(se),month:ln(se),date:Mr(se)});ct(_t(qe(Je)))}}else xt()}function xt(se){const{value:je}=e;if(je===null||!Array.isArray(je)){Ze.value="",F.value="";return}se===void 0&&(se=je),Ze.value=Gt(se[0],Ne.value,I.dateFnsOptions.value),F.value=Gt(se[1],Ne.value,I.dateFnsOptions.value)}function Dt(se){se!==null&&Ge(se)}function yt(se){se!==null&&ct(se)}function xn(se){I.cachePendingValue();const je=I.getShortcutValue(se);Array.isArray(je)&&Bt(je[0],je[1],"shortcutPreview")}function $n(se){const je=I.getShortcutValue(se);Array.isArray(je)&&(Bt(je[0],je[1],"shortcutDone"),I.clearPendingValue(),le())}function tn(se,je){const Je=se===void 0?e.value:se;if(se===void 0||je==="start"){if(Re.value){const Zt=Array.isArray(Je)?ln(Je[0]):ln(Date.now());Re.value.scrollTo({debounce:!1,index:Zt,elSize:Gi})}if(ge.value){const Zt=(Array.isArray(Je)?pn(Je[0]):pn(Date.now()))-U.value[0];ge.value.scrollTo({index:Zt,debounce:!1})}}if(se===void 0||je==="end"){if(Ee.value){const Zt=Array.isArray(Je)?ln(Je[1]):ln(Date.now());Ee.value.scrollTo({debounce:!1,index:Zt,elSize:Gi})}if(Ae.value){const Zt=(Array.isArray(Je)?pn(Je[1]):pn(Date.now()))-U.value[0];Ae.value.scrollTo({index:Zt,debounce:!1})}}}function lr(se,je){const{value:Je}=e,Zt=!Array.isArray(Je),Nn=se.type==="year"&&t!=="yearrange"?Zt?Xn(se.ts,{month:ln(t==="quarterrange"?tl(new Date):new Date)}).valueOf():Xn(se.ts,{month:ln(t==="quarterrange"?tl(Je[je==="start"?0:1]):Je[je==="start"?0:1])}).valueOf():se.ts;if(Zt){const po=_t(Nn),Fo=[po,po];I.doUpdateValue(Fo,e.panel),tn(Fo,"start"),tn(Fo,"end"),I.disableTransitionOneTick();return}const nn=[Je[0],Je[1]];let Br=!1;switch(je==="start"?(nn[0]=_t(Nn),nn[0]>nn[1]&&(nn[1]=nn[0],Br=!0)):(nn[1]=_t(Nn),nn[0]>nn[1]&&(nn[0]=nn[1],Br=!0)),I.doUpdateValue(nn,e.panel),t){case"monthrange":case"quarterrange":I.disableTransitionOneTick(),Br?(tn(nn,"start"),tn(nn,"end")):tn(nn,je);break;case"yearrange":I.disableTransitionOneTick(),tn(nn,"start"),tn(nn,"end")}}function Qn(){var se;(se=pe.value)===null||se===void 0||se.sync()}function jn(){var se;(se=ce.value)===null||se===void 0||se.sync()}function gr(se){var je,Je;return se==="start"?((je=ge.value)===null||je===void 0?void 0:je.listElRef)||null:((Je=Ae.value)===null||Je===void 0?void 0:Je.listElRef)||null}function Ur(se){var je,Je;return se==="start"?((je=ge.value)===null||je===void 0?void 0:je.itemsElRef)||null:((Je=Ae.value)===null||Je===void 0?void 0:Je.itemsElRef)||null}const zr={startYearVlRef:ge,endYearVlRef:Ae,startMonthScrollbarRef:Re,endMonthScrollbarRef:Ee,startYearScrollbarRef:pe,endYearScrollbarRef:ce};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:te,endDatesElRef:ie,handleDateClick:Ct,handleColItemClick:lr,handleDateMouseEnter:Mt,handleConfirmClick:le,startCalendarPrevYear:Et,startCalendarPrevMonth:_,startCalendarNextYear:Ot,startCalendarNextMonth:bt,endCalendarPrevYear:ve,endCalendarPrevMonth:Oe,endCalendarNextMonth:Me,endCalendarNextYear:E,mergedIsDateDisabled:Ie,changeStartEndTime:Bt,ranges:b,calendarMonthBeforeYear:at,startCalendarMonth:W,startCalendarYear:he,endCalendarMonth:de,endCalendarYear:L,weekdays:ye,startDateArray:ne,endDateArray:be,startYearArray:B,startMonthArray:Te,startQuarterArray:we,endYearArray:Y,endMonthArray:Qe,endQuarterArray:Q,isSelecting:Ye,handleRangeShortcutMouseenter:xn,handleRangeShortcutClick:$n},I),D),zr),{startDateDisplayString:Ze,endDateInput:F,timePickerSize:I.timePickerSize,startTimeValue:V,endTimeValue:fe,datePickerSlots:x,shortcuts:N,startCalendarDateTime:me,endCalendarDateTime:De,justifyColumnsScrollState:tn,handleFocusDetectorFocus:I.handleFocusDetectorFocus,handleStartTimePickerChange:Dt,handleEndTimePickerChange:yt,handleStartDateInput:$t,handleStartDateInputBlur:Se,handleEndDateInput:J,handleEndDateInputBlur:et,handleStartYearVlScroll:Qn,handleEndYearVlScroll:jn,virtualListContainer:gr,virtualListContent:Ur,onUpdateStartCalendarValue:j,onUpdateEndCalendarValue:Ce})}const Mz=Le({name:"DateRangePanel",props:Fh,setup(e){return Ah(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,datePickerSlots:s}=this;return a?.(),h("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},Rt(s["prev-year"],()=>[h(Fa,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},Rt(s["prev-month"],()=>[h(Da,null)])),h(qa,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},Rt(s["next-month"],()=>[h(Ma,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},Rt(s["next-year"],()=>[h(Aa,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(l=>h("div",{key:l,class:`${r}-date-panel-weekdays__day`},l))),h("div",{class:`${r}-date-panel__divider`}),h("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((l,c)=>h("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!l.inCurrentMonth,[`${r}-date-panel-date--current`]:l.isCurrentDate,[`${r}-date-panel-date--selected`]:l.selected,[`${r}-date-panel-date--covered`]:l.inSpan,[`${r}-date-panel-date--start`]:l.startOfSpan,[`${r}-date-panel-date--end`]:l.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(l.ts)}],onClick:()=>{this.handleDateClick(l)},onMouseenter:()=>{this.handleDateMouseEnter(l)}},h("div",{class:`${r}-date-panel-date__trigger`}),l.dateObject.date,l.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)))),h("div",{class:`${r}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},Rt(s["prev-year"],()=>[h(Fa,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},Rt(s["prev-month"],()=>[h(Da,null)])),h(qa,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},Rt(s["next-month"],()=>[h(Ma,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},Rt(s["next-year"],()=>[h(Aa,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(l=>h("div",{key:l,class:`${r}-date-panel-weekdays__day`},l))),h("div",{class:`${r}-date-panel__divider`}),h("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((l,c)=>h("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!l.inCurrentMonth,[`${r}-date-panel-date--current`]:l.isCurrentDate,[`${r}-date-panel-date--selected`]:l.selected,[`${r}-date-panel-date--covered`]:l.inSpan,[`${r}-date-panel-date--start`]:l.startOfSpan,[`${r}-date-panel-date--end`]:l.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(l.ts)}],onClick:()=>{this.handleDateClick(l)},onMouseenter:()=>{this.handleDateMouseEnter(l)}},h("div",{class:`${r}-date-panel-date__trigger`}),l.dateObject.date,l.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?h("div",{class:`${r}-date-panel-actions`},h("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(l=>{const c=i[l];return Array.isArray(c)||typeof c=="function"?h(uo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l}):null})),h("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?Gn(s.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[h(mn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?Gn(s.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[h(mn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,h(oi,{onFocus:this.handleFocusDetectorFocus}))}});function Hw(e,t,n){const r=Cw(),o=Bz(e,n.timeZone,n.locale??r.locale);return"formatToParts"in o?Iz(o,t):zz(o,t)}function Iz(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function zz(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function Bz(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Nz(e,t){const n=Wz(t);return"formatToParts"in n?Hz(n,e):Vz(n,e)}const Lz={year:0,month:1,day:2,hour:3,minute:4,second:5};function Hz(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const i=Lz[n[o].type];i!==void 0&&(r[i]=parseInt(n[o].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function Vz(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Mh={},Vw=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),jz=Vw==="06/25/2014, 00:00:00"||Vw==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Wz(e){return Mh[e]||(Mh[e]=jz?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Mh[e]}function jw(e,t,n,r,o,i,a){const s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,i,a),s}const Ww=36e5,Uz=6e4,Ih={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function zh(e,t,n){if(!e)return 0;let r=Ih.timezoneZ.exec(e);if(r)return 0;let o,i;if(r=Ih.timezoneHH.exec(e),r)return o=parseInt(r[1],10),Uw(o)?-(o*Ww):NaN;if(r=Ih.timezoneHHMM.exec(e),r){o=parseInt(r[2],10);const a=parseInt(r[3],10);return Uw(o,a)?(i=Math.abs(o)*Ww+a*Uz,r[1]==="+"?-i:i):NaN}if(Gz(e)){t=new Date(t||Date.now());const a=n?t:qz(t),s=Bh(a,e);return-(n?s:Yz(t,s,e))}return NaN}function qz(e){return jw(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Bh(e,t){const n=Nz(e,t),r=jw(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let o=e.getTime();const i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function Yz(e,t,n){let o=e.getTime()-t;const i=Bh(new Date(o),n);if(t===i)return t;o-=i-t;const a=Bh(new Date(o),n);return i===a?i:Math.max(i,a)}function Uw(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const qw={};function Gz(e){if(qw[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),qw[e]=!0,!0}catch{return!1}}const Kz=60*1e3,Xz={X:function(e,t,n){const r=Nh(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return Yw(r);case"XXXX":case"XX":return Ya(r);case"XXXXX":case"XXX":default:return Ya(r,":")}},x:function(e,t,n){const r=Nh(n.timeZone,e);switch(t){case"x":return Yw(r);case"xxxx":case"xx":return Ya(r);case"xxxxx":case"xxx":default:return Ya(r,":")}},O:function(e,t,n){const r=Nh(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Qz(r,":");case"OOOO":default:return"GMT"+Ya(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return Hw("short",e,n);case"zzzz":default:return Hw("long",e,n)}}};function Nh(e,t){const n=e?zh(e,t,!0)/Kz:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function hu(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function Ya(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=hu(Math.floor(r/60),2),i=hu(Math.floor(r%60),2);return n+o+t+i}function Yw(e,t){return e%60===0?(e>0?"-":"+")+hu(Math.abs(e)/60,2):Ya(e,t)}function Qz(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+hu(i,2)}function Gw(e){const 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-+t}const Zz=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Lh=36e5,Kw=6e4,Jz=2,sr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Zz};function Xw(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?Jz:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=e3(e),{year:o,restDateString:i}=t3(r.date,n),a=n3(i,o);if(a===null||isNaN(a.getTime()))return new Date(NaN);if(a){const s=a.getTime();let l=0,c;if(r.time&&(l=r3(r.time),l===null||isNaN(l)))return new Date(NaN);if(r.timeZone||t.timeZone){if(c=zh(r.timeZone||t.timeZone,new Date(s+l)),isNaN(c))return new Date(NaN)}else c=Gw(new Date(s+l)),c=Gw(new Date(s+l+c));return new Date(s+l+c)}else return new Date(NaN)}function e3(e){const t={};let n=sr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=sr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=sr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function t3(e,t){if(e){const n=sr.YYY[t],r=sr.YYYYY[t];let o=sr.YYYY.exec(e)||r.exec(e);if(o){const i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=sr.YY.exec(e)||n.exec(e),o){const i=o[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function n3(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=sr.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,Jw(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=sr.DDD.exec(e),i){n=new Date(0);const a=parseInt(i[1],10);return a3(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(i=sr.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const a=parseInt(i[2],10);return Jw(t,r,a)?(n.setUTCFullYear(t,r,a),n):new Date(NaN)}if(i=sr.Www.exec(e),i)return o=parseInt(i[1],10)-1,ex(o)?Qw(t,o):new Date(NaN);if(i=sr.WwwD.exec(e),i){o=parseInt(i[1],10)-1;const a=parseInt(i[2],10)-1;return ex(o,a)?Qw(t,o,a):new Date(NaN)}return null}function r3(e){let t,n,r=sr.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),Hh(t)?t%24*Lh:NaN;if(r=sr.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Hh(t,n)?t%24*Lh+n*Kw:NaN;if(r=sr.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return Hh(t,n,o)?t%24*Lh+n*Kw+o*1e3:NaN}return null}function Qw(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const o3=[31,28,31,30,31,30,31,31,30,31,30,31],i3=[31,29,31,30,31,30,31,31,30,31,30,31];function Zw(e){return e%400===0||e%4===0&&e%100!==0}function Jw(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=Zw(e);if(r&&n>i3[t]||!r&&n>o3[t])return!1}return!0}function a3(e,t){if(t<1)return!1;const n=Zw(e);return!(n&&t>366||!n&&t>365)}function ex(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Hh(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const s3=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function l3(e,t,n={}){t=String(t);const r=t.match(s3);if(r){const o=Xw(n.originalDate||e,n);t=r.reduce(function(i,a){if(a[0]==="'")return i;const s=i.indexOf(a),l=i[s-1]==="'",c=i.replace(a,"'"+Xz[a[0]](o,a,n)+"'");return l?c.substring(0,s-1)+c.substring(s+1):c},t)}return Gt(e,t,n)}function c3(e,t,n){e=Xw(e,n);const r=zh(t,e,!0),o=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}function u3(e,t,n,r){return r={...r,timeZone:t,originalDate:e},l3(c3(e,t,{timeZone:r.timeZone}),n,r)}const tx="n-time-picker",pu=Le({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:[Number,String],default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,s=e===a;return h("div",{key:o,"data-active":s?"":null,class:[`${n}-time-picker-col__item`,s&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>{t(a)}:void 0},o)})}}),ol={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Vh(e){return`00${e}`.slice(-2)}function il(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Vh(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Vh(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Vh(r===12?12:r-12)):e}function mu(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function d3(e,t,n){const r=il(ol[t],n).map(Number);let o,i;for(let a=0;a<r.length;++a){const s=r[a];if(s===e)return s;if(s>e){i=s;break}o=s}return o===void 0?(i||R0("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function f3(e){return si(e)<12?"am":"pm"}const h3=Le({name:"TimePickerPanel",props:{actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,clearText:String,nowText:String,confirmText:String,transitionDisabled:Boolean,onClearClick:Function,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=wt(tx),r=z(()=>{const{isHourDisabled:s,hours:l,use12Hours:c,amPmValue:u}=e;if(c){const d=u??f3(Date.now());return il(ol.hours,l,d).map(p=>{const m=Number(p),f=d==="pm"&&m!==12?m+12:m;return{label:p,value:f,disabled:s?s(f):!1}})}else return il(ol.hours,l).map(d=>({label:d,value:Number(d),disabled:s?s(Number(d)):!1}))}),o=z(()=>{const{isMinuteDisabled:s,minutes:l}=e;return il(ol.minutes,l).map(c=>({label:c,value:Number(c),disabled:s?s(Number(c),e.hourValue):!1}))}),i=z(()=>{const{isSecondDisabled:s,seconds:l}=e;return il(ol.seconds,l).map(c=>({label:c,value:Number(c),disabled:s?s(Number(c),e.minuteValue,e.hourValue):!1}))}),a=z(()=>{const{isHourDisabled:s}=e;let l=!0,c=!0;for(let u=0;u<12;++u)if(!s?.(u)){l=!1;break}for(let u=12;u<24;++u)if(!s?.(u)){c=!1;break}return[{label:"AM",value:"am",disabled:l},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:K(null),minuteScrollRef:K(null),secondScrollRef:K(null),amPmScrollRef:K(null)}},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i}=this;return h("div",{tabindex:0,class:`${o}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},h("div",{class:`${o}-time-picker-cols`},this.showHour?h("div",{class:[`${o}-time-picker-col`,this.isHourInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},h(mr,{ref:"hourScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[h(pu,{clsPrefix:o,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),h("div",{class:`${o}-time-picker-col__padding`})]})):null,this.showMinute?h("div",{class:[`${o}-time-picker-col`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${o}-time-picker-col--invalid`]},h(mr,{ref:"minuteScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[h(pu,{clsPrefix:o,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),h("div",{class:`${o}-time-picker-col__padding`})]})):null,this.showSecond?h("div",{class:[`${o}-time-picker-col`,this.isSecondInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},h(mr,{ref:"secondScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[h(pu,{clsPrefix:o,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),h("div",{class:`${o}-time-picker-col__padding`})]})):null,this.use12Hours?h("div",{class:[`${o}-time-picker-col`,this.isAmPmInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},h(mr,{ref:"amPmScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[h(pu,{clsPrefix:o,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),h("div",{class:`${o}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?h("div",{class:`${o}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?h(mn,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.onClearClick},{default:()=>this.clearText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?h(mn,{size:"tiny",theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?h(mn,{size:"tiny",type:"primary",class:`${o}-time-picker-actions__confirm`,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,h(oi,{onFocus:this.onFocusDetectorFocus}))}}),p3=G([A("time-picker",`
1516
+ z-index: auto;
1517
+ position: relative;
1518
+ `,[A("time-picker-icon",`
1519
+ color: var(--n-icon-color-override);
1520
+ transition: color .3s var(--n-bezier);
1521
+ `),Z("disabled",[A("time-picker-icon",`
1522
+ color: var(--n-icon-color-disabled-override);
1523
+ `)])]),A("time-picker-panel",`
1524
+ transition:
1525
+ box-shadow .3s var(--n-bezier),
1526
+ background-color .3s var(--n-bezier);
1527
+ outline: none;
1528
+ font-size: var(--n-item-font-size);
1529
+ border-radius: var(--n-border-radius);
1530
+ margin: 4px 0;
1531
+ min-width: 104px;
1532
+ overflow: hidden;
1533
+ background-color: var(--n-panel-color);
1534
+ box-shadow: var(--n-panel-box-shadow);
1535
+ `,[ji(),A("time-picker-actions",`
1536
+ padding: var(--n-panel-action-padding);
1537
+ align-items: center;
1538
+ display: flex;
1539
+ justify-content: space-evenly;
1540
+ `),A("time-picker-cols",`
1541
+ height: calc(var(--n-item-height) * 6);
1542
+ display: flex;
1543
+ position: relative;
1544
+ transition: border-color .3s var(--n-bezier);
1545
+ border-bottom: 1px solid var(--n-panel-divider-color);
1546
+ `),A("time-picker-col",`
1547
+ flex-grow: 1;
1548
+ min-width: var(--n-item-width);
1549
+ height: calc(var(--n-item-height) * 6);
1550
+ flex-direction: column;
1551
+ transition: box-shadow .3s var(--n-bezier);
1552
+ `,[Z("transition-disabled",[X("item","transition: none;",[G("&::before","transition: none;")])]),X("padding",`
1553
+ height: calc(var(--n-item-height) * 5);
1554
+ `),G("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[X("item",[G("&::before","left: 4px;")])]),X("item",`
1555
+ cursor: pointer;
1556
+ height: var(--n-item-height);
1557
+ display: flex;
1558
+ align-items: center;
1559
+ justify-content: center;
1560
+ transition:
1561
+ color .3s var(--n-bezier),
1562
+ background-color .3s var(--n-bezier),
1563
+ opacity .3s var(--n-bezier),
1564
+ text-decoration-color .3s var(--n-bezier);
1565
+ background: #0000;
1566
+ text-decoration-color: #0000;
1567
+ color: var(--n-item-text-color);
1568
+ z-index: 0;
1569
+ box-sizing: border-box;
1570
+ padding-top: 4px;
1571
+ position: relative;
1572
+ `,[G("&::before",`
1573
+ content: "";
1574
+ transition: background-color .3s var(--n-bezier);
1575
+ z-index: -1;
1576
+ position: absolute;
1577
+ left: 0;
1578
+ right: 4px;
1579
+ top: 4px;
1580
+ bottom: 0;
1581
+ border-radius: var(--n-item-border-radius);
1582
+ `),zt("disabled",[G("&:hover::before",`
1583
+ background-color: var(--n-item-color-hover);
1584
+ `)]),Z("active",`
1585
+ color: var(--n-item-text-color-active);
1586
+ `,[G("&::before",`
1587
+ background-color: var(--n-item-color-hover);
1588
+ `)]),Z("disabled",`
1589
+ opacity: var(--n-item-opacity-disabled);
1590
+ cursor: not-allowed;
1591
+ `)]),Z("invalid",[X("item",[Z("active",`
1592
+ text-decoration: line-through;
1593
+ text-decoration-color: var(--n-item-text-color-active);
1594
+ `)])])])])]);function jh(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const m3=Object.assign(Object.assign({},rt.props),{to:kn.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>jh(e,23)},minutes:{type:[Number,Array],validator:e=>jh(e,59)},seconds:{type:[Number,Array],validator:e=>jh(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Wh=Le({name:"TimePicker",props:m3,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=Lt(e),{localeRef:i,dateLocaleRef:a}=co("TimePicker"),s=hr(e),{mergedSizeRef:l,mergedDisabledRef:c,mergedStatusRef:u}=s,d=rt("TimePicker","-time-picker",p3,zw,e,n),p=Bb(),m=K(null),f=K(null),y=z(()=>({locale:a.value.locale}));function S(le){return le===null?null:vr(le,e.valueFormat||e.format,new Date,y.value).getTime()}const{defaultValue:w,defaultFormattedValue:k}=e,b=K(k!==void 0?S(k):w),v=z(()=>{const{formattedValue:le}=e;if(le!==void 0)return S(le);const{value:$e}=e;return $e!==void 0?$e:b.value}),g=z(()=>{const{timeZone:le}=e;return le?($e,Ge,ct)=>u3($e,le,Ge,ct):($e,Ge,ct)=>Gt($e,Ge,ct)}),C=K("");St(()=>e.timeZone,()=>{const le=v.value;C.value=le===null?"":g.value(le,e.format,y.value)},{immediate:!0});const x=K(!1),T=Xe(e,"show"),P=Vn(T,x),O=K(v.value),U=K(!1),D=z(()=>i.value.clear),I=z(()=>i.value.now),te=z(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),ie=z(()=>i.value.negativeText),pe=z(()=>i.value.positiveText),ce=z(()=>/H|h|K|k/.test(e.format)),ge=z(()=>e.format.includes("m")),Ae=z(()=>e.format.includes("s")),Re=z(()=>{const{value:le}=v;return le===null?null:Number(g.value(le,"HH",y.value))}),Ee=z(()=>{const{value:le}=v;return le===null?null:Number(g.value(le,"mm",y.value))}),ue=z(()=>{const{value:le}=v;return le===null?null:Number(g.value(le,"ss",y.value))}),_e=z(()=>{const{isHourDisabled:le}=e;return Re.value===null?!1:mu(Re.value,"hours",e.hours)?le?le(Re.value):!1:!0}),me=z(()=>{const{value:le}=Ee,{value:$e}=Re;if(le===null||$e===null)return!1;if(!mu(le,"minutes",e.minutes))return!0;const{isMinuteDisabled:Ge}=e;return Ge?Ge(le,$e):!1}),De=z(()=>{const{value:le}=Ee,{value:$e}=Re,{value:Ge}=ue;if(Ge===null||le===null||$e===null)return!1;if(!mu(Ge,"seconds",e.seconds))return!0;const{isSecondDisabled:ct}=e;return ct?ct(Ge,le,$e):!1}),ke=z(()=>_e.value||me.value||De.value),Ye=z(()=>e.format.length+4),tt=z(()=>{const{value:le}=v;return le===null?null:si(le)<12?"am":"pm"});function Ne(le,$e){const{onUpdateFormattedValue:Ge,"onUpdate:formattedValue":ct}=e;Ge&&Fe(Ge,le,$e),ct&&Fe(ct,le,$e)}function it(le){return le===null?null:g.value(le,e.valueFormat||e.format)}function Ze(le){const{onUpdateValue:$e,"onUpdate:value":Ge,onChange:ct}=e,{nTriggerFormChange:Bt,nTriggerFormInput:_t}=s,$t=it(le);$e&&Fe($e,le,$t),Ge&&Fe(Ge,le,$t),ct&&Fe(ct,le,$t),Ne($t,le),b.value=le,Bt(),_t()}function F(le){const{onFocus:$e}=e,{nTriggerFormFocus:Ge}=s;$e&&Fe($e,le),Ge()}function H(le){const{onBlur:$e}=e,{nTriggerFormBlur:Ge}=s;$e&&Fe($e,le),Ge()}function ne(){const{onConfirm:le}=e;le&&Fe(le,v.value,it(v.value))}function be(le){var $e;le.stopPropagation(),Ze(null),we(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ye(){_({returnFocus:!0})}function W(){Ze(null),we(null),_({returnFocus:!0})}function de(le){le.key==="Escape"&&P.value&&Vs(le)}function he(le){var $e;switch(le.key){case"Escape":P.value&&(Vs(le),_({returnFocus:!0}));break;case"Tab":p.shift&&le.target===(($e=f.value)===null||$e===void 0?void 0:$e.$el)&&(le.preventDefault(),_({returnFocus:!0}));break}}function L(){U.value=!0,On(()=>{U.value=!1})}function V(le){c.value||ki(le,"clear")||P.value||Et()}function fe(le){typeof le!="string"&&(v.value===null?Ze(qe(Yi(UI(new Date),le))):Ze(qe(Yi(v.value,le))))}function N(le){typeof le!="string"&&(v.value===null?Ze(qe(Sh(FM(new Date),le))):Ze(qe(Sh(v.value,le))))}function B(le){typeof le!="string"&&(v.value===null?Ze(qe(_h(xh(new Date),le))):Ze(qe(_h(v.value,le))))}function Y(le){const{value:$e}=v;if($e===null){const Ge=new Date,ct=si(Ge);le==="pm"&&ct<12?Ze(qe(Yi(Ge,ct+12))):le==="am"&&ct>=12&&Ze(qe(Yi(Ge,ct-12))),Ze(qe(Ge))}else{const Ge=si($e);le==="pm"&&Ge<12?Ze(qe(Yi($e,Ge+12))):le==="am"&&Ge>=12&&Ze(qe(Yi($e,Ge-12)))}}function we(le){le===void 0&&(le=v.value),le===null?C.value="":C.value=g.value(le,e.format,y.value)}function Q(le){Ot(le)||F(le)}function Te(le){var $e;if(!Ot(le))if(P.value){const Ge=($e=f.value)===null||$e===void 0?void 0:$e.$el;Ge?.contains(le.relatedTarget)||(we(),H(le),_({returnFocus:!1}))}else we(),H(le)}function Qe(){c.value||P.value||Et()}function at(){c.value||(we(),_({returnFocus:!1}))}function st(){if(!f.value)return;const{hourScrollRef:le,minuteScrollRef:$e,secondScrollRef:Ge,amPmScrollRef:ct}=f.value;[le,$e,Ge,ct].forEach(Bt=>{var _t;if(!Bt)return;const $t=(_t=Bt.contentRef)===null||_t===void 0?void 0:_t.querySelector("[data-active]");$t&&Bt.scrollTo({top:$t.offsetTop})})}function ot(le){x.value=le;const{onUpdateShow:$e,"onUpdate:show":Ge}=e;$e&&Fe($e,le),Ge&&Fe(Ge,le)}function Ot(le){var $e,Ge,ct;return!!(!((Ge=($e=m.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||Ge===void 0)&&Ge.contains(le.relatedTarget)||!((ct=f.value)===null||ct===void 0)&&ct.$el.contains(le.relatedTarget))}function Et(){O.value=v.value,ot(!0),On(st)}function bt(le){var $e,Ge;P.value&&!(!((Ge=($e=m.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||Ge===void 0)&&Ge.contains(Po(le)))&&_({returnFocus:!1})}function _({returnFocus:le}){var $e;P.value&&(ot(!1),le&&(($e=m.value)===null||$e===void 0||$e.focus()))}function E(le){if(le===""){Ze(null);return}const $e=vr(le,e.format,new Date,y.value);if(C.value=le,Ar($e)){const{value:Ge}=v;if(Ge!==null){const ct=Xn(Ge,{hours:si($e),minutes:lu($e),seconds:cu($e),milliseconds:KM($e)});Ze(qe(ct))}else Ze(qe($e))}}function ve(){Ze(O.value),ot(!1)}function Me(){const le=new Date,$e={hours:si,minutes:lu,seconds:cu},[Ge,ct,Bt]=["hours","minutes","seconds"].map($t=>!e[$t]||mu($e[$t](le),$t,e[$t])?$e[$t](le):d3($e[$t](le),$t,e[$t])),_t=_h(Sh(Yi(v.value?v.value:qe(le),Ge),ct),Bt);Ze(qe(_t))}function Oe(){we(),ne(),_({returnFocus:!0})}function j(le){Ot(le)||(we(),H(le),_({returnFocus:!1}))}St(v,le=>{we(le),L(),On(st)}),St(P,()=>{ke.value&&Ze(O.value)}),_n(tx,{mergedThemeRef:d,mergedClsPrefixRef:n});const Ce={focus:()=>{var le;(le=m.value)===null||le===void 0||le.focus()},blur:()=>{var le;(le=m.value)===null||le===void 0||le.blur()}},Ie=z(()=>{const{common:{cubicBezierEaseInOut:le},self:{iconColor:$e,iconColorDisabled:Ge}}=d.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":Ge,"--n-bezier":le}}),Ue=o?Xt("time-picker-trigger",void 0,Ie,e):void 0,Ct=z(()=>{const{self:{panelColor:le,itemTextColor:$e,itemTextColorActive:Ge,itemColorHover:ct,panelDividerColor:Bt,panelBoxShadow:_t,itemOpacityDisabled:$t,borderRadius:J,itemFontSize:Se,itemWidth:et,itemHeight:xt,panelActionPadding:Dt,itemBorderRadius:yt},common:{cubicBezierEaseInOut:xn}}=d.value;return{"--n-bezier":xn,"--n-border-radius":J,"--n-item-color-hover":ct,"--n-item-font-size":Se,"--n-item-height":xt,"--n-item-opacity-disabled":$t,"--n-item-text-color":$e,"--n-item-text-color-active":Ge,"--n-item-width":et,"--n-panel-action-padding":Dt,"--n-panel-box-shadow":_t,"--n-panel-color":le,"--n-panel-divider-color":Bt,"--n-item-border-radius":yt}}),Mt=o?Xt("time-picker",void 0,Ct,e):void 0;return{focus:Ce.focus,blur:Ce.blur,mergedStatus:u,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:b,mergedValue:v,isMounted:Go(),inputInstRef:m,panelInstRef:f,adjustedTo:kn(e),mergedShow:P,localizedClear:D,localizedNow:I,localizedPlaceholder:te,localizedNegativeText:ie,localizedPositiveText:pe,hourInFormat:ce,minuteInFormat:ge,secondInFormat:Ae,mergedAttrSize:Ye,displayTimeString:C,mergedSize:l,mergedDisabled:c,isValueInvalid:ke,isHourInvalid:_e,isMinuteInvalid:me,isSecondInvalid:De,transitionDisabled:U,hourValue:Re,minuteValue:Ee,secondValue:ue,amPmValue:tt,handleInputKeydown:de,handleTimeInputFocus:Q,handleTimeInputBlur:Te,handleNowClick:Me,handleConfirmClick:Oe,handleTimeInputUpdateValue:E,handleMenuFocusOut:j,handleCancelClick:ve,handleClickOutside:bt,handleTimeInputActivate:Qe,handleTimeInputDeactivate:at,handleHourClick:fe,handleMinuteClick:N,handleSecondClick:B,handleAmPmClick:Y,handleTimeInputClear:be,handleFocusDetectorFocus:ye,handleMenuKeydown:he,handleTriggerClick:V,mergedTheme:d,triggerCssVars:o?void 0:Ie,triggerThemeClass:Ue?.themeClass,triggerOnRender:Ue?.onRender,cssVars:o?void 0:Ct,themeClass:Mt?.themeClass,onRender:Mt?.onRender,clearSelectedValue:W}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n?.(),h("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},h(Ri,null,{default:()=>[h(Oi,null,{default:()=>h(_r,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>h(Fn,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():h(zF,null)})}:null)}),h(Ei,{teleportDisabled:this.adjustedTo===kn.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>h(Cr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),Hr(h(h3,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,clearText:this.localizedClear,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onClearClick:this.clearSelectedValue,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[Xo,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),v3=Le({name:"DateTimePanel",props:Eh,setup(e){return Dh(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:s,datePickerSlots:l,onRender:c}=this;return c?.(),h("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{class:`${o}-date-panel-header`},h(_r,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),h(Wh,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timePickerFormat},Array.isArray(s)?void 0:s,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),h("div",{class:`${o}-date-panel-calendar`},h("div",{class:`${o}-date-panel-month`},h("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},Rt(l["prev-year"],()=>[h(Fa,null)])),h("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},Rt(l["prev-month"],()=>[h(Da,null)])),h(qa,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),h("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},Rt(l["next-month"],()=>[h(Ma,null)])),h("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},Rt(l["next-year"],()=>[h(Aa,null)]))),h("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(u=>h("div",{key:u,class:`${o}-date-panel-weekdays__day`},u))),h("div",{class:`${o}-date-panel-dates`},this.dateArray.map((u,d)=>h("div",{"data-n-date":!0,key:d,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:u.isCurrentDate,[`${o}-date-panel-date--selected`]:u.selected,[`${o}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(u.ts,{type:"date",year:u.dateObject.year,month:u.dateObject.month,date:u.dateObject.date})}],onClick:()=>{this.handleDateClick(u)}},h("div",{class:`${o}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?h("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||a?h("div",{class:`${o}-date-panel-actions`},h("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(u=>{const d=a[u];return Array.isArray(d)?null:h(uo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(d)},onClick:()=>{this.handleSingleShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u})})),h("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?Gn(this.datePickerSlots.clear,{onClear:this.clearSelectedDateTime,text:this.locale.clear},()=>[h(mn,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?Gn(l.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[h(mn,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?Gn(l.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[h(mn,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,h(oi,{onFocus:this.handleFocusDetectorFocus}))}}),g3=Le({name:"DateTimeRangePanel",props:Fh,setup(e){return Ah(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:s,datePickerSlots:l}=this;return s?.(),h("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{class:`${r}-date-panel-header`},h(_r,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),h(Wh,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),h(_r,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),h(Wh,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),h("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},Rt(l["prev-year"],()=>[h(Fa,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},Rt(l["prev-month"],()=>[h(Da,null)])),h(qa,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},Rt(l["next-month"],()=>[h(Ma,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},Rt(l["next-year"],()=>[h(Aa,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>h("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),h("div",{class:`${r}-date-panel__divider`}),h("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,u)=>{const d=this.mergedIsDateDisabled(c.ts);return h("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:d}],onClick:d?void 0:()=>{this.handleDateClick(c)},onMouseenter:d?void 0:()=>{this.handleDateMouseEnter(c)}},h("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)}))),h("div",{class:`${r}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},Rt(l["prev-year"],()=>[h(Fa,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},Rt(l["prev-month"],()=>[h(Da,null)])),h(qa,{monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,monthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},Rt(l["next-month"],()=>[h(Ma,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},Rt(l["next-year"],()=>[h(Aa,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>h("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),h("div",{class:`${r}-date-panel__divider`}),h("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,u)=>{const d=this.mergedIsDateDisabled(c.ts);return h("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:d}],onClick:d?void 0:()=>{this.handleDateClick(c)},onMouseenter:d?void 0:()=>{this.handleDateMouseEnter(c)}},h("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?h("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?h("div",{class:`${r}-date-panel-actions`},h("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)||typeof u=="function"?h(uo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),h("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?Gn(l.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[h(mn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?Gn(l.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[h(mn,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,h(oi,{onFocus:this.handleFocusDetectorFocus}))}}),b3=Le({name:"MonthRangePanel",props:Object.assign(Object.assign({},Fh),{type:{type:String,required:!0}}),setup(e){const t=Ah(e,e.type),{dateLocaleRef:n}=co("DatePicker"),r=(o,i,a,s)=>{const{handleColItemClick:l}=t;return h("div",{"data-n-date":!0,key:i,class:[`${a}-date-panel-month-calendar__picker-col-item`,o.isCurrent&&`${a}-date-panel-month-calendar__picker-col-item--current`,o.selected&&`${a}-date-panel-month-calendar__picker-col-item--selected`,!1],onClick:()=>{l(o,s)}},o.type==="month"?Rw(o.dateObject.month,o.monthFormat,n.value.locale):o.type==="quarter"?Ew(o.dateObject.quarter,o.quarterFormat,n.value.locale):Ow(o.dateObject.year,o.yearFormat,n.value.locale))};return En(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:r})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:s,onRender:l}=this;return l?.(),h("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},h("div",{class:`${r}-date-panel-month-calendar`},h(mr,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(Vc,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Gi,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>s(c,u,r,"start")})}),a==="monthrange"||a==="quarterrange"?h("div",{class:`${r}-date-panel-month-calendar__picker-col`},h(mr,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,u)=>s(c,u,r,"start")),a==="monthrange"&&h("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),h("div",{class:`${r}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},h("div",{class:`${r}-date-panel-month-calendar`},h(mr,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(Vc,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Gi,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>s(c,u,r,"end")})}),a==="monthrange"||a==="quarterrange"?h("div",{class:`${r}-date-panel-month-calendar__picker-col`},h(mr,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,u)=>s(c,u,r,"end")),a==="monthrange"&&h("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),qt(this.datePickerSlots.footer,c=>c?h("div",{class:`${r}-date-panel-footer`},c):null),!((e=this.actions)===null||e===void 0)&&e.length||i?h("div",{class:`${r}-date-panel-actions`},h("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)||typeof u=="function"?h(uo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),h("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?Gn(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[h(uo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?Gn(this.datePickerSlots.confirm,{disabled:this.isRangeInvalid,onConfirm:this.handleConfirmClick,text:this.locale.confirm},()=>[h(uo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,h(oi,{onFocus:this.handleFocusDetectorFocus}))}}),y3=Object.assign(Object.assign({},rt.props),{to:kn.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,default:" "},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timePickerFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,monthFormat:{type:String,default:"M"},yearFormat:{type:String,default:"y"},quarterFormat:{type:String,default:"'Q'Q"},yearRange:{type:Array,default:()=>[1901,2100]},"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function,onChange:[Function,Array]}),w3=G([A("date-picker",`
1595
+ position: relative;
1596
+ z-index: auto;
1597
+ `,[A("date-picker-icon",`
1598
+ color: var(--n-icon-color-override);
1599
+ transition: color .3s var(--n-bezier);
1600
+ `),A("icon",`
1601
+ color: var(--n-icon-color-override);
1602
+ transition: color .3s var(--n-bezier);
1603
+ `),Z("disabled",[A("date-picker-icon",`
1604
+ color: var(--n-icon-color-disabled-override);
1605
+ `),A("icon",`
1606
+ color: var(--n-icon-color-disabled-override);
1607
+ `)])]),A("date-panel",`
1608
+ width: fit-content;
1609
+ outline: none;
1610
+ margin: 4px 0;
1611
+ display: grid;
1612
+ grid-template-columns: 0fr;
1613
+ border-radius: var(--n-panel-border-radius);
1614
+ background-color: var(--n-panel-color);
1615
+ color: var(--n-panel-text-color);
1616
+ user-select: none;
1617
+ `,[ji(),Z("shadow",`
1618
+ box-shadow: var(--n-panel-box-shadow);
1619
+ `),A("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[Z("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),A("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[X("picker-col",`
1620
+ min-width: var(--n-scroll-item-width);
1621
+ height: calc(var(--n-scroll-item-height) * 6);
1622
+ user-select: none;
1623
+ -webkit-user-select: none;
1624
+ `,[G("&:first-child",`
1625
+ min-width: calc(var(--n-scroll-item-width) + 4px);
1626
+ `,[X("picker-col-item",[G("&::before","left: 4px;")])]),X("padding",`
1627
+ height: calc(var(--n-scroll-item-height) * 5)
1628
+ `)]),X("picker-col-item",`
1629
+ z-index: 0;
1630
+ cursor: pointer;
1631
+ height: var(--n-scroll-item-height);
1632
+ box-sizing: border-box;
1633
+ padding-top: 4px;
1634
+ display: flex;
1635
+ align-items: center;
1636
+ justify-content: center;
1637
+ position: relative;
1638
+ transition:
1639
+ color .3s var(--n-bezier),
1640
+ background-color .3s var(--n-bezier);
1641
+ background: #0000;
1642
+ color: var(--n-item-text-color);
1643
+ `,[G("&::before",`
1644
+ z-index: -1;
1645
+ content: "";
1646
+ position: absolute;
1647
+ left: 0;
1648
+ right: 4px;
1649
+ top: 4px;
1650
+ bottom: 0;
1651
+ border-radius: var(--n-scroll-item-border-radius);
1652
+ transition:
1653
+ background-color .3s var(--n-bezier);
1654
+ `),zt("disabled",[G("&:hover::before",`
1655
+ background-color: var(--n-item-color-hover);
1656
+ `),Z("selected",`
1657
+ color: var(--n-item-color-active);
1658
+ `,[G("&::before","background-color: var(--n-item-color-hover);")])]),Z("disabled",`
1659
+ color: var(--n-item-text-color-disabled);
1660
+ cursor: not-allowed;
1661
+ `,[Z("selected",[G("&::before",`
1662
+ background-color: var(--n-item-color-disabled);
1663
+ `)])])])]),Z("date",{gridTemplateAreas:`
1664
+ "left-calendar"
1665
+ "footer"
1666
+ "action"
1667
+ `}),Z("week",{gridTemplateAreas:`
1668
+ "left-calendar"
1669
+ "footer"
1670
+ "action"
1671
+ `}),Z("daterange",{gridTemplateAreas:`
1672
+ "left-calendar divider right-calendar"
1673
+ "footer footer footer"
1674
+ "action action action"
1675
+ `}),Z("datetime",{gridTemplateAreas:`
1676
+ "header"
1677
+ "left-calendar"
1678
+ "footer"
1679
+ "action"
1680
+ `}),Z("datetimerange",{gridTemplateAreas:`
1681
+ "header header header"
1682
+ "left-calendar divider right-calendar"
1683
+ "footer footer footer"
1684
+ "action action action"
1685
+ `}),Z("month",{gridTemplateAreas:`
1686
+ "left-calendar"
1687
+ "footer"
1688
+ "action"
1689
+ `}),A("date-panel-footer",{gridArea:"footer"}),A("date-panel-actions",{gridArea:"action"}),A("date-panel-header",{gridArea:"header"}),A("date-panel-header",`
1690
+ box-sizing: border-box;
1691
+ width: 100%;
1692
+ align-items: center;
1693
+ padding: var(--n-panel-header-padding);
1694
+ display: flex;
1695
+ justify-content: space-between;
1696
+ border-bottom: 1px solid var(--n-panel-header-divider-color);
1697
+ `,[G(">",[G("*:not(:last-child)",{marginRight:"10px"}),G("*",{flex:1,width:0}),A("time-picker",{zIndex:1})])]),A("date-panel-month",`
1698
+ box-sizing: border-box;
1699
+ display: grid;
1700
+ grid-template-columns: var(--n-calendar-title-grid-template-columns);
1701
+ align-items: center;
1702
+ justify-items: center;
1703
+ padding: var(--n-calendar-title-padding);
1704
+ height: var(--n-calendar-title-height);
1705
+ `,[X("prev, next, fast-prev, fast-next",`
1706
+ line-height: 0;
1707
+ cursor: pointer;
1708
+ width: var(--n-arrow-size);
1709
+ height: var(--n-arrow-size);
1710
+ color: var(--n-arrow-color);
1711
+ `),X("month-year",`
1712
+ user-select: none;
1713
+ -webkit-user-select: none;
1714
+ flex-grow: 1;
1715
+ position: relative;
1716
+ `,[X("text",`
1717
+ font-size: var(--n-calendar-title-font-size);
1718
+ line-height: var(--n-calendar-title-font-size);
1719
+ font-weight: var(--n-calendar-title-font-weight);
1720
+ padding: 6px 8px;
1721
+ text-align: center;
1722
+ color: var(--n-calendar-title-text-color);
1723
+ cursor: pointer;
1724
+ transition: background-color .3s var(--n-bezier);
1725
+ border-radius: var(--n-panel-border-radius);
1726
+ `,[Z("active",`
1727
+ background-color: var(--n-calendar-title-color-hover);
1728
+ `),G("&:hover",`
1729
+ background-color: var(--n-calendar-title-color-hover);
1730
+ `)])])]),A("date-panel-weekdays",`
1731
+ display: grid;
1732
+ margin: auto;
1733
+ grid-template-columns: repeat(7, var(--n-item-cell-width));
1734
+ grid-template-rows: repeat(1, var(--n-item-cell-height));
1735
+ align-items: center;
1736
+ justify-items: center;
1737
+ margin-bottom: 4px;
1738
+ border-bottom: 1px solid var(--n-calendar-days-divider-color);
1739
+ `,[X("day",`
1740
+ white-space: nowrap;
1741
+ user-select: none;
1742
+ -webkit-user-select: none;
1743
+ line-height: 15px;
1744
+ width: var(--n-item-size);
1745
+ text-align: center;
1746
+ font-size: var(--n-calendar-days-font-size);
1747
+ color: var(--n-item-text-color);
1748
+ display: flex;
1749
+ align-items: center;
1750
+ justify-content: center;
1751
+ `)]),A("date-panel-dates",`
1752
+ margin: auto;
1753
+ display: grid;
1754
+ grid-template-columns: repeat(7, var(--n-item-cell-width));
1755
+ grid-template-rows: repeat(6, var(--n-item-cell-height));
1756
+ align-items: center;
1757
+ justify-items: center;
1758
+ flex-wrap: wrap;
1759
+ `,[A("date-panel-date",`
1760
+ user-select: none;
1761
+ -webkit-user-select: none;
1762
+ position: relative;
1763
+ width: var(--n-item-size);
1764
+ height: var(--n-item-size);
1765
+ line-height: var(--n-item-size);
1766
+ text-align: center;
1767
+ font-size: var(--n-item-font-size);
1768
+ border-radius: var(--n-item-border-radius);
1769
+ z-index: 0;
1770
+ cursor: pointer;
1771
+ transition:
1772
+ background-color .2s var(--n-bezier),
1773
+ color .2s var(--n-bezier);
1774
+ `,[X("trigger",`
1775
+ position: absolute;
1776
+ left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);
1777
+ top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);
1778
+ width: var(--n-item-cell-width);
1779
+ height: var(--n-item-cell-height);
1780
+ `),Z("current",[X("sup",`
1781
+ position: absolute;
1782
+ top: 2px;
1783
+ right: 2px;
1784
+ content: "";
1785
+ height: 4px;
1786
+ width: 4px;
1787
+ border-radius: 2px;
1788
+ background-color: var(--n-item-color-active);
1789
+ transition:
1790
+ background-color .2s var(--n-bezier);
1791
+ `)]),G("&::after",`
1792
+ content: "";
1793
+ z-index: -1;
1794
+ position: absolute;
1795
+ left: 0;
1796
+ right: 0;
1797
+ top: 0;
1798
+ bottom: 0;
1799
+ border-radius: inherit;
1800
+ transition: background-color .3s var(--n-bezier);
1801
+ `),Z("covered, start, end",[zt("excluded",[G("&::before",`
1802
+ content: "";
1803
+ z-index: -2;
1804
+ position: absolute;
1805
+ left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
1806
+ right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
1807
+ top: 0;
1808
+ bottom: 0;
1809
+ background-color: var(--n-item-color-included);
1810
+ `),G("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),G("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),Z("selected",{color:"var(--n-item-text-color-active)"},[G("&::after",{backgroundColor:"var(--n-item-color-active)"}),Z("start",[G("&::before",{left:"50%"})]),Z("end",[G("&::before",{right:"50%"})]),X("sup",{backgroundColor:"var(--n-panel-color)"})]),Z("excluded",{color:"var(--n-item-text-color-disabled)"},[Z("selected",[G("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),Z("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[Z("covered",[G("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),Z("selected",[G("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),G("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),Z("week-hovered",[G("&::before",`
1811
+ background-color: var(--n-item-color-included);
1812
+ `),G("&:nth-child(7n + 1)::before",`
1813
+ border-top-left-radius: var(--n-item-border-radius);
1814
+ border-bottom-left-radius: var(--n-item-border-radius);
1815
+ `),G("&:nth-child(7n + 7)::before",`
1816
+ border-top-right-radius: var(--n-item-border-radius);
1817
+ border-bottom-right-radius: var(--n-item-border-radius);
1818
+ `)]),Z("week-selected",`
1819
+ color: var(--n-item-text-color-active)
1820
+ `,[G("&::before",`
1821
+ background-color: var(--n-item-color-active);
1822
+ `),G("&:nth-child(7n + 1)::before",`
1823
+ border-top-left-radius: var(--n-item-border-radius);
1824
+ border-bottom-left-radius: var(--n-item-border-radius);
1825
+ `),G("&:nth-child(7n + 7)::before",`
1826
+ border-top-right-radius: var(--n-item-border-radius);
1827
+ border-bottom-right-radius: var(--n-item-border-radius);
1828
+ `)])])]),zt("week",[A("date-panel-dates",[A("date-panel-date",[zt("disabled",[zt("selected",[G("&:hover",`
1829
+ background-color: var(--n-item-color-hover);
1830
+ `)])])])])]),Z("week",[A("date-panel-dates",[A("date-panel-date",[G("&::before",`
1831
+ content: "";
1832
+ z-index: -2;
1833
+ position: absolute;
1834
+ left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
1835
+ right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
1836
+ top: 0;
1837
+ bottom: 0;
1838
+ transition: background-color .3s var(--n-bezier);
1839
+ `)])])]),X("vertical-divider",`
1840
+ grid-area: divider;
1841
+ height: 100%;
1842
+ width: 1px;
1843
+ background-color: var(--n-calendar-divider-color);
1844
+ `),A("date-panel-footer",`
1845
+ border-top: 1px solid var(--n-panel-action-divider-color);
1846
+ padding: var(--n-panel-extra-footer-padding);
1847
+ `),A("date-panel-actions",`
1848
+ flex: 1;
1849
+ padding: var(--n-panel-action-padding);
1850
+ display: flex;
1851
+ align-items: center;
1852
+ justify-content: space-between;
1853
+ border-top: 1px solid var(--n-panel-action-divider-color);
1854
+ `,[X("prefix, suffix",`
1855
+ display: flex;
1856
+ margin-bottom: -8px;
1857
+ `),X("suffix",`
1858
+ align-self: flex-end;
1859
+ `),X("prefix",`
1860
+ flex-wrap: wrap;
1861
+ `),A("button",`
1862
+ margin-bottom: 8px;
1863
+ `,[G("&:not(:last-child)",`
1864
+ margin-right: 8px;
1865
+ `)])])]),G("[data-n-date].transition-disabled",{transition:"none !important"},[G("&::before, &::after",{transition:"none !important"})])]);function x3(e,t){const n=z(()=>{const{isTimeDisabled:u}=e,{value:d}=t;if(!(d===null||Array.isArray(d)))return u?.(d)}),r=z(()=>{var u;return(u=n.value)===null||u===void 0?void 0:u.isHourDisabled}),o=z(()=>{var u;return(u=n.value)===null||u===void 0?void 0:u.isMinuteDisabled}),i=z(()=>{var u;return(u=n.value)===null||u===void 0?void 0:u.isSecondDisabled}),a=z(()=>{const{type:u,isDateDisabled:d}=e,{value:p}=t;return p===null||Array.isArray(p)||!["date","datetime"].includes(u)||!d?!1:d(p,{type:"input"})}),s=z(()=>{const{type:u}=e,{value:d}=t;if(d===null||u==="datetime"||Array.isArray(d))return!1;const p=new Date(d),m=p.getHours(),f=p.getMinutes(),y=p.getMinutes();return(r.value?r.value(m):!1)||(o.value?o.value(f,m):!1)||(i.value?i.value(y,f,m):!1)}),l=z(()=>a.value||s.value);return{isValueInvalidRef:z(()=>{const{type:u}=e;return u==="date"?a.value:u==="datetime"?l.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:s,isDateTimeInvalidRef:l,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function C3(e,t){const n=z(()=>{const{isTimeDisabled:d}=e,{value:p}=t;return!Array.isArray(p)||!d?[void 0,void 0]:[d?.(p[0],"start",p),d?.(p[1],"end",p)]}),r={isStartHourDisabledRef:z(()=>{var d;return(d=n.value[0])===null||d===void 0?void 0:d.isHourDisabled}),isEndHourDisabledRef:z(()=>{var d;return(d=n.value[1])===null||d===void 0?void 0:d.isHourDisabled}),isStartMinuteDisabledRef:z(()=>{var d;return(d=n.value[0])===null||d===void 0?void 0:d.isMinuteDisabled}),isEndMinuteDisabledRef:z(()=>{var d;return(d=n.value[1])===null||d===void 0?void 0:d.isMinuteDisabled}),isStartSecondDisabledRef:z(()=>{var d;return(d=n.value[0])===null||d===void 0?void 0:d.isSecondDisabled}),isEndSecondDisabledRef:z(()=>{var d;return(d=n.value[1])===null||d===void 0?void 0:d.isSecondDisabled})},o=z(()=>{const{type:d,isDateDisabled:p}=e,{value:m}=t;return m===null||!Array.isArray(m)||!["daterange","datetimerange"].includes(d)||!p?!1:p(m[0],"start",m)}),i=z(()=>{const{type:d,isDateDisabled:p}=e,{value:m}=t;return m===null||!Array.isArray(m)||!["daterange","datetimerange"].includes(d)||!p?!1:p(m[1],"end",m)}),a=z(()=>{const{type:d}=e,{value:p}=t;if(p===null||!Array.isArray(p)||d!=="datetimerange")return!1;const m=si(p[0]),f=lu(p[0]),y=cu(p[0]),{isStartHourDisabledRef:S,isStartMinuteDisabledRef:w,isStartSecondDisabledRef:k}=r;return(S.value?S.value(m):!1)||(w.value?w.value(f,m):!1)||(k.value?k.value(y,f,m):!1)}),s=z(()=>{const{type:d}=e,{value:p}=t;if(p===null||!Array.isArray(p)||d!=="datetimerange")return!1;const m=si(p[1]),f=lu(p[1]),y=cu(p[1]),{isEndHourDisabledRef:S,isEndMinuteDisabledRef:w,isEndSecondDisabledRef:k}=r;return(S.value?S.value(m):!1)||(w.value?w.value(f,m):!1)||(k.value?k.value(y,f,m):!1)}),l=z(()=>o.value||a.value),c=z(()=>i.value||s.value),u=z(()=>l.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:s,isStartValueInvalidRef:l,isEndValueInvalidRef:c,isRangeInvalidRef:u})}const nx=Le({name:"DatePicker",props:y3,slots:Object,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=co("DatePicker"),i=hr(e),{mergedSizeRef:a,mergedDisabledRef:s,mergedStatusRef:l}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:u,mergedBorderedRef:d,namespaceRef:p,inlineThemeDisabled:m}=Lt(e),f=K(null),y=K(null),S=K(null),w=K(!1),k=Xe(e,"show"),b=Vn(k,w),v=z(()=>({locale:o.value.locale,useAdditionalWeekYearTokens:!0})),g=z(()=>{const{format:j}=e;if(j)return j;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat;case"week":return r.value.weekFormat}}),C=z(()=>{var j;return(j=e.valueFormat)!==null&&j!==void 0?j:g.value});function x(j){if(j===null)return null;const{value:Ce}=C,{value:Ie}=v;return Array.isArray(j)?[vr(j[0],Ce,new Date,Ie).getTime(),vr(j[1],Ce,new Date,Ie).getTime()]:vr(j,Ce,new Date,Ie).getTime()}const{defaultFormattedValue:T,defaultValue:P}=e,O=K((n=T!==void 0?x(T):P)!==null&&n!==void 0?n:null),U=z(()=>{const{formattedValue:j}=e;return j!==void 0?x(j):e.value}),D=Vn(U,O),I=K(null);Vr(()=>{I.value=D.value});const te=K(""),ie=K(""),pe=K(""),ce=rt("DatePicker","-date-picker",w3,Fz,e,u),ge=z(()=>{var j,Ce;return((Ce=(j=c?.value)===null||j===void 0?void 0:j.DatePicker)===null||Ce===void 0?void 0:Ce.timePickerSize)||"small"}),Ae=z(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),Re=z(()=>{const{placeholder:j}=e;if(j===void 0){const{type:Ce}=e;switch(Ce){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;case"week":return r.value.weekPlaceholder;default:return""}}else return j}),Ee=z(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ue=z(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),_e=z(()=>{const{actions:j,type:Ce,clearable:Ie}=e;if(j===null)return[];if(j!==void 0)return j;const Ue=Ie?["clear"]:[];switch(Ce){case"date":case"week":return Ue.push("now"),Ue;case"datetime":return Ue.push("now","confirm"),Ue;case"daterange":return Ue.push("confirm"),Ue;case"datetimerange":return Ue.push("confirm"),Ue;case"month":return Ue.push("now","confirm"),Ue;case"year":return Ue.push("now"),Ue;case"quarter":return Ue.push("now","confirm"),Ue;case"monthrange":case"yearrange":case"quarterrange":return Ue.push("confirm"),Ue;default:{Ai("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function me(j){if(j===null)return null;if(Array.isArray(j)){const{value:Ce}=C,{value:Ie}=v;return[Gt(j[0],Ce,Ie),Gt(j[1],Ce,v.value)]}else return Gt(j,C.value,v.value)}function De(j){I.value=j}function ke(j,Ce){const{"onUpdate:formattedValue":Ie,onUpdateFormattedValue:Ue}=e;Ie&&Fe(Ie,j,Ce),Ue&&Fe(Ue,j,Ce)}function Ye(j,Ce){const{"onUpdate:value":Ie,onUpdateValue:Ue,onChange:Ct}=e,{nTriggerFormChange:Mt,nTriggerFormInput:le}=i,$e=me(j);Ce.doConfirm&&Ne(j,$e),Ue&&Fe(Ue,j,$e),Ie&&Fe(Ie,j,$e),Ct&&Fe(Ct,j,$e),O.value=j,ke($e,j),Mt(),le()}function tt(){const{onClear:j}=e;j?.()}function Ne(j,Ce){const{onConfirm:Ie}=e;Ie&&Ie(j,Ce)}function it(j){const{onFocus:Ce}=e,{nTriggerFormFocus:Ie}=i;Ce&&Fe(Ce,j),Ie()}function Ze(j){const{onBlur:Ce}=e,{nTriggerFormBlur:Ie}=i;Ce&&Fe(Ce,j),Ie()}function F(j){const{"onUpdate:show":Ce,onUpdateShow:Ie}=e;Ce&&Fe(Ce,j),Ie&&Fe(Ie,j),w.value=j}function H(j){j.key==="Escape"&&b.value&&(Vs(j),Ot({returnFocus:!0}))}function ne(j){j.key==="Escape"&&b.value&&Vs(j)}function be(){var j;F(!1),(j=S.value)===null||j===void 0||j.deactivate(),tt()}function ye(){var j;(j=S.value)===null||j===void 0||j.deactivate(),tt()}function W(){Ot({returnFocus:!0})}function de(j){var Ce;b.value&&!(!((Ce=y.value)===null||Ce===void 0)&&Ce.contains(Po(j)))&&Ot({returnFocus:!1})}function he(j){Ot({returnFocus:!0,disableUpdateOnClose:j})}function L(j,Ce){Ce?Ye(j,{doConfirm:!1}):De(j)}function V(){const j=I.value;Ye(Array.isArray(j)?[j[0],j[1]]:j,{doConfirm:!0})}function fe(){const{value:j}=I;Ae.value?(Array.isArray(j)||j===null)&&B(j):Array.isArray(j)||N(j)}function N(j){j===null?te.value="":te.value=Gt(j,g.value,v.value)}function B(j){if(j===null)ie.value="",pe.value="";else{const Ce=v.value;ie.value=Gt(j[0],g.value,Ce),pe.value=Gt(j[1],g.value,Ce)}}function Y(){b.value||ot()}function we(j){var Ce;!((Ce=f.value)===null||Ce===void 0)&&Ce.$el.contains(j.relatedTarget)||(Ze(j),fe(),Ot({returnFocus:!1}))}function Q(){s.value||(fe(),Ot({returnFocus:!1}))}function Te(j){if(j===""){Ye(null,{doConfirm:!1}),I.value=null,te.value="";return}const Ce=vr(j,g.value,new Date,v.value);Ar(Ce)?(Ye(qe(Ce),{doConfirm:!1}),fe()):te.value=j}function Qe(j,{source:Ce}){if(j[0]===""&&j[1]===""){Ye(null,{doConfirm:!1}),I.value=null,ie.value="",pe.value="";return}const[Ie,Ue]=j,Ct=vr(Ie,g.value,new Date,v.value),Mt=vr(Ue,g.value,new Date,v.value);if(Ar(Ct)&&Ar(Mt)){let le=qe(Ct),$e=qe(Mt);Mt<Ct&&(Ce===0?$e=le:le=$e),Ye([le,$e],{doConfirm:!1}),fe()}else[ie.value,pe.value]=j}function at(j){s.value||ki(j,"clear")||b.value||ot()}function st(j){s.value||it(j)}function ot(){s.value||b.value||F(!0)}function Ot({returnFocus:j,disableUpdateOnClose:Ce}){var Ie;b.value&&(F(!1),e.type!=="date"&&e.updateValueOnClose&&!Ce&&V(),j&&((Ie=S.value)===null||Ie===void 0||Ie.focus()))}St(I,()=>{fe()}),fe(),St(b,j=>{j||(I.value=D.value)});const Et=x3(e,I),bt=C3(e,I);_n(fu,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:u,mergedThemeRef:ce,timePickerSizeRef:ge,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:Xe(e,"firstDayOfWeek"),isDateDisabledRef:Xe(e,"isDateDisabled"),rangesRef:Xe(e,"ranges"),timePickerPropsRef:Xe(e,"timePickerProps"),closeOnSelectRef:Xe(e,"closeOnSelect"),updateValueOnCloseRef:Xe(e,"updateValueOnClose"),monthFormatRef:Xe(e,"monthFormat"),yearFormatRef:Xe(e,"yearFormat"),quarterFormatRef:Xe(e,"quarterFormat"),yearRangeRef:Xe(e,"yearRange")},Et),bt),{datePickerSlots:t}));const _={focus:()=>{var j;(j=S.value)===null||j===void 0||j.focus()},blur:()=>{var j;(j=S.value)===null||j===void 0||j.blur()}},E=z(()=>{const{common:{cubicBezierEaseInOut:j},self:{iconColor:Ce,iconColorDisabled:Ie}}=ce.value;return{"--n-bezier":j,"--n-icon-color-override":Ce,"--n-icon-color-disabled-override":Ie}}),ve=m?Xt("date-picker-trigger",void 0,E,e):void 0,Me=z(()=>{const{type:j}=e,{common:{cubicBezierEaseInOut:Ce},self:{calendarTitleFontSize:Ie,calendarDaysFontSize:Ue,itemFontSize:Ct,itemTextColor:Mt,itemColorDisabled:le,itemColorIncluded:$e,itemColorHover:Ge,itemColorActive:ct,itemBorderRadius:Bt,itemTextColorDisabled:_t,itemTextColorActive:$t,panelColor:J,panelTextColor:Se,arrowColor:et,calendarTitleTextColor:xt,panelActionDividerColor:Dt,panelHeaderDividerColor:yt,calendarDaysDividerColor:xn,panelBoxShadow:$n,panelBorderRadius:tn,calendarTitleFontWeight:lr,panelExtraFooterPadding:Qn,panelActionPadding:jn,itemSize:gr,itemCellWidth:Ur,itemCellHeight:zr,scrollItemWidth:se,scrollItemHeight:je,calendarTitlePadding:Je,calendarTitleHeight:Zt,calendarDaysHeight:Nn,calendarDaysTextColor:nn,arrowSize:Br,panelHeaderPadding:po,calendarDividerColor:Fo,calendarTitleGridTempateColumns:dl,iconColor:Ji,iconColorDisabled:fl,scrollItemBorderRadius:hl,calendarTitleColorHover:R,[Be("calendarLeftPadding",j)]:q,[Be("calendarRightPadding",j)]:M}}=ce.value;return{"--n-bezier":Ce,"--n-panel-border-radius":tn,"--n-panel-color":J,"--n-panel-box-shadow":$n,"--n-panel-text-color":Se,"--n-panel-header-padding":po,"--n-panel-header-divider-color":yt,"--n-calendar-left-padding":q,"--n-calendar-right-padding":M,"--n-calendar-title-color-hover":R,"--n-calendar-title-height":Zt,"--n-calendar-title-padding":Je,"--n-calendar-title-font-size":Ie,"--n-calendar-title-font-weight":lr,"--n-calendar-title-text-color":xt,"--n-calendar-title-grid-template-columns":dl,"--n-calendar-days-height":Nn,"--n-calendar-days-divider-color":xn,"--n-calendar-days-font-size":Ue,"--n-calendar-days-text-color":nn,"--n-calendar-divider-color":Fo,"--n-panel-action-padding":jn,"--n-panel-extra-footer-padding":Qn,"--n-panel-action-divider-color":Dt,"--n-item-font-size":Ct,"--n-item-border-radius":Bt,"--n-item-size":gr,"--n-item-cell-width":Ur,"--n-item-cell-height":zr,"--n-item-text-color":Mt,"--n-item-color-included":$e,"--n-item-color-disabled":le,"--n-item-color-hover":Ge,"--n-item-color-active":ct,"--n-item-text-color-disabled":_t,"--n-item-text-color-active":$t,"--n-scroll-item-width":se,"--n-scroll-item-height":je,"--n-scroll-item-border-radius":hl,"--n-arrow-size":Br,"--n-arrow-color":et,"--n-icon-color":Ji,"--n-icon-color-disabled":fl}}),Oe=m?Xt("date-picker",z(()=>e.type),Me,e):void 0;return Object.assign(Object.assign({},_),{mergedStatus:l,mergedClsPrefix:u,mergedBordered:d,namespace:p,uncontrolledValue:O,pendingValue:I,panelInstRef:f,triggerElRef:y,inputInstRef:S,isMounted:Go(),displayTime:te,displayStartTime:ie,displayEndTime:pe,mergedShow:b,adjustedTo:kn(e),isRange:Ae,localizedStartPlaceholder:Ee,localizedEndPlaceholder:ue,mergedSize:a,mergedDisabled:s,localizedPlacehoder:Re,isValueInvalid:Et.isValueInvalidRef,isStartValueInvalid:bt.isStartValueInvalidRef,isEndValueInvalid:bt.isEndValueInvalidRef,handleInputKeydown:ne,handleClickOutside:de,handleKeydown:H,handleClear:be,handlePanelClear:ye,handleTriggerClick:at,handleInputActivate:Y,handleInputDeactivate:Q,handleInputFocus:st,handleInputBlur:we,handlePanelTabOut:W,handlePanelClose:he,handleRangeUpdateValue:Qe,handleSingleUpdateValue:Te,handlePanelUpdateValue:L,handlePanelConfirm:V,mergedTheme:ce,actions:_e,triggerCssVars:m?void 0:E,triggerThemeClass:ve?.themeClass,triggerOnRender:ve?.onRender,cssVars:m?void 0:Me,themeClass:Oe?.themeClass,onRender:Oe?.onRender,onNextMonth:e.onNextMonth,onPrevMonth:e.onPrevMonth,onNextYear:e.onNextYear,onPrevYear:e.onPrevYear})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,inputReadonly:this.inputReadonly||this.mergedDisabled,onRender:this.onRender,onNextMonth:this.onNextMonth,onPrevMonth:this.onPrevMonth,onNextYear:this.onNextYear,onPrevYear:this.onPrevYear,timePickerFormat:this.timePickerFormat,dateFormat:this.dateFormat,calendarDayFormat:this.calendarDayFormat,calendarHeaderYearFormat:this.calendarHeaderYearFormat,calendarHeaderMonthFormat:this.calendarHeaderMonthFormat,calendarHeaderMonthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarHeaderMonthBeforeYear:this.calendarHeaderMonthBeforeYear},i=()=>{const{type:s}=this;return s==="datetime"?h(v3,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime}),r):s==="daterange"?h(Mz,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):s==="datetimerange"?h(g3,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):s==="month"||s==="year"||s==="quarter"?h(Lw,Object.assign({},o,{type:s,key:s})):s==="monthrange"||s==="yearrange"||s==="quarterrange"?h(b3,Object.assign({},o,{type:s})):h(Az,Object.assign({},o,{type:s,defaultCalendarStartTime:this.defaultCalendarStartTime}),r)};if(this.panel)return i();t?.();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return h("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},h(Ri,null,{default:()=>[h(Oi,null,{default:()=>this.isRange?h(_r,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?Rt(r.separator,()=>[h(Fn,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>h(BF,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>Rt(r["date-icon"],()=>[h(Fn,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>h(Dy,null)})])}):h(_r,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>h(Fn,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>Rt(r["date-icon"],()=>[h(Dy,null)])})})}),h(Ei,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===kn.tdkey,placement:this.placement},{default:()=>h(Cr,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?Hr(i(),[[Xo,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),S3={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};function _3(){return S3}const k3={name:"DynamicInput",common:hn,peers:{Input:Wi,Button:Ba},self:_3},Uh="n-dynamic-input",P3=Le({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=wt(Uh);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o,disabled:i}=this;return h("div",{class:`${r}-dynamic-input-preset-input`},h(_r,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o,disabled:i}))}}),T3=Le({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=wt(Uh);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o,disabled:i}=this;return h("div",{class:`${o}-dynamic-input-preset-pair`},h(_r,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput,disabled:i}),h(_r,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput,disabled:i}))}}),$3=A("dynamic-input",{width:"100%"},[A("dynamic-input-item",`
1866
+ margin-bottom: 10px;
1867
+ display: flex;
1868
+ flex-wrap: nowrap;
1869
+ `,[A("dynamic-input-preset-input",{flex:1,alignItems:"center"}),A("dynamic-input-preset-pair",`
1870
+ flex: 1;
1871
+ display: flex;
1872
+ align-items: center;
1873
+ `,[A("dynamic-input-pair-input",[G("&:first-child",{"margin-right":"12px"})])]),X("action",`
1874
+ align-self: flex-start;
1875
+ display: flex;
1876
+ justify-content: flex-end;
1877
+ flex-shrink: 0;
1878
+ flex-grow: 0;
1879
+ margin: var(--action-margin);
1880
+ `,[Z("icon",{cursor:"pointer"})]),G("&:last-child",{marginBottom:0})]),A("form-item",`
1881
+ padding-top: 0 !important;
1882
+ margin-right: 0 !important;
1883
+ `,[A("form-item-blank",{paddingTop:"0 !important"})])]),vu=new WeakMap,R3=Object.assign(Object.assign({},rt.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemClass:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},disabled:Boolean,showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),rx=Le({name:"DynamicInput",props:R3,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=Lt(),a=wt(Wc,null),s=K(e.defaultValue),l=Xe(e,"value"),c=Vn(l,s),u=rt("DynamicInput","-dynamic-input",$3,k3,e,r),d=z(()=>{const{value:P}=c;if(Array.isArray(P)){const{max:O}=e;return O!==void 0&&P.length>=O}return!1}),p=z(()=>{const{value:P}=c;return Array.isArray(P)?P.length<=e.min:!0}),m=z(()=>{var P,O;return(O=(P=n?.value)===null||P===void 0?void 0:P.DynamicInput)===null||O===void 0?void 0:O.buttonSize});function f(P){const{onInput:O,"onUpdate:value":U,onUpdateValue:D}=e;O&&Fe(O,P),U&&Fe(U,P),D&&Fe(D,P),s.value=P}function y(P,O){if(P==null||typeof P!="object")return O;const U=pa(P)?Pt(P):P;let D=vu.get(U);return D===void 0&&vu.set(U,D=Ms()),D}function S(P,O){const{value:U}=c,D=Array.from(U??[]),I=D[P];if(D[P]=O,I&&O&&typeof I=="object"&&typeof O=="object"){const te=pa(I)?Pt(I):I,ie=pa(O)?Pt(O):O,pe=vu.get(te);pe!==void 0&&vu.set(ie,pe)}f(D)}function w(){k(-1)}function k(P){const{value:O}=c,{onCreate:U}=e,D=Array.from(O??[]);if(U)D.splice(P+1,0,U(P+1)),f(D);else if(t.default)D.splice(P+1,0,null),f(D);else switch(e.preset){case"input":D.splice(P+1,0,""),f(D);break;case"pair":D.splice(P+1,0,{key:"",value:""}),f(D);break}}function b(P){const{value:O}=c;if(!Array.isArray(O))return;const{min:U}=e;if(O.length<=U)return;const{onRemove:D}=e;D&&D(P);const I=Array.from(O);I.splice(P,1),f(I)}function v(P,O,U){if(O<0||U<0||O>=P.length||U>=P.length||O===U)return;const D=P[O];P[O]=P[U],P[U]=D}function g(P,O){const{value:U}=c;if(!Array.isArray(U))return;const D=Array.from(U);P==="up"&&v(D,O,O-1),P==="down"&&v(D,O,O+1),f(D)}_n(Uh,{mergedThemeRef:u,keyPlaceholderRef:Xe(e,"keyPlaceholder"),valuePlaceholderRef:Xe(e,"valuePlaceholder"),placeholderRef:Xe(e,"placeholder")});const C=pr("DynamicInput",o,r),x=z(()=>{const{self:{actionMargin:P,actionMarginRtl:O}}=u.value;return{"--action-margin":P,"--action-margin-rtl":O}}),T=i?Xt("dynamic-input",void 0,x,e):void 0;return{locale:co("DynamicInput").localeRef,rtlEnabled:C,buttonSize:m,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:s,mergedValue:c,insertionDisabled:d,removeDisabled:p,handleCreateClick:w,ensureKey:y,handleValueChange:S,remove:b,move:g,createItem:k,mergedTheme:u,cssVars:i?void 0:x,themeClass:T?.themeClass,onRender:T?.onRender}},render(){const{$slots:e,itemClass:t,buttonSize:n,mergedClsPrefix:r,mergedValue:o,locale:i,mergedTheme:a,keyField:s,itemStyle:l,preset:c,showSortButton:u,NFormItem:d,ensureKey:p,handleValueChange:m,remove:f,createItem:y,move:S,onRender:w,disabled:k}=this;return w?.(),h("div",{class:[`${r}-dynamic-input`,this.rtlEnabled&&`${r}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(o)||o.length===0?h(mn,Object.assign({block:!0,ghost:!0,dashed:!0,size:n},this.createButtonProps,{disabled:this.insertionDisabled||k,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>Rt(e["create-button-default"],()=>[i.create]),icon:()=>Rt(e["create-button-icon"],()=>[h(Fn,{clsPrefix:r},{default:()=>h(Js,null)})])}):o.map((b,v)=>h("div",{key:s?b[s]:p(b,v),"data-key":s?b[s]:p(b,v),class:[`${r}-dynamic-input-item`,t],style:l},Gn(e.default,{value:o[v],index:v},()=>[c==="input"?h(P3,{disabled:k,clsPrefix:r,value:o[v],parentPath:d?d.path.value:void 0,path:d?.path.value?`${d.path.value}[${v}]`:void 0,onUpdateValue:g=>{m(v,g)}}):c==="pair"?h(T3,{disabled:k,clsPrefix:r,value:o[v],parentPath:d?d.path.value:void 0,path:d?.path.value?`${d.path.value}[${v}]`:void 0,onUpdateValue:g=>{m(v,g)}}):null]),Gn(e.action,{value:o[v],index:v,create:y,remove:f,move:S},()=>[h("div",{class:`${r}-dynamic-input-item__action`},h(CM,{size:n},{default:()=>[h(mn,{disabled:this.removeDisabled||k,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,circle:!0,onClick:()=>{f(v)}},{icon:()=>h(Fn,{clsPrefix:r},{default:()=>h(Fy,null)})}),h(mn,{disabled:this.insertionDisabled||k,circle:!0,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:()=>{y(v)}},{icon:()=>h(Fn,{clsPrefix:r},{default:()=>h(Js,null)})}),u?h(mn,{disabled:v===0||k,circle:!0,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:()=>{S("up",v)}},{icon:()=>h(Fn,{clsPrefix:r},{default:()=>h(RF,null)})}):null,u?h(mn,{disabled:v===o.length-1||k,circle:!0,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:()=>{S("down",v)}},{icon:()=>h(Fn,{clsPrefix:r},{default:()=>h($F,null)})}):null]}))]))))}}),O3={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};function E3(){return O3}const ox={name:"Space",self:E3};let qh;function D3(){if(!_a)return!0;if(qh===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),qh=t}return qh}const F3=Object.assign(Object.assign({},rt.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}}),Yh=Le({name:"Space",props:F3,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Lt(e),r=rt("Space","-space",void 0,ox,e,t),o=pr("Space",n,t);return{useGap:D3(),rtlEnabled:o,mergedClsPrefix:t,margin:z(()=>{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:{[Be("gap",i)]:a}}=r.value,{row:s,col:l}=MT(a);return{horizontal:Yn(l),vertical:Yn(s)}})}},render(){const{vertical:e,reverse:t,align:n,inline:r,justify:o,itemClass:i,itemStyle:a,margin:s,wrap:l,mergedClsPrefix:c,rtlEnabled:u,useGap:d,wrapItem:p,internalUseGap:m}=this,f=$o(O0(this),!1);if(!f.length)return null;const y=`${s.horizontal}px`,S=`${s.horizontal/2}px`,w=`${s.vertical}px`,k=`${s.vertical/2}px`,b=f.length-1,v=o.startsWith("space-");return h("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:r?"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:d||e?"":`-${k}`,marginBottom:d||e?"":`-${k}`,alignItems:n,gap:d?`${s.vertical}px ${s.horizontal}px`:""}},!p&&(d||m)?f:f.map((g,C)=>g.type===Dn?g:h("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},d?"":e?{marginBottom:C!==b?w:""}:u?{marginLeft:v?o==="space-between"&&C===b?"":S:C!==b?y:"",marginRight:v?o==="space-between"&&C===0?"":S:"",paddingTop:k,paddingBottom:k}:{marginRight:v?o==="space-between"&&C===b?"":S:C!==b?y:"",marginLeft:v?o==="space-between"&&C===0?"":S:"",paddingTop:k,paddingBottom:k}]},g)))}}),A3={name:"DynamicTags",common:hn,peers:{Input:Wi,Button:Ba,Tag:Zy,Space:ox},self(){return{inputWidth:"64px"}}},M3=A("dynamic-tags",[A("input",{minWidth:"var(--n-input-width)"})]),I3=Object.assign(Object.assign(Object.assign({},rt.props),Jy),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputClass:String,inputStyle:[String,Object],inputProps:Object,max:Number,tagClass:String,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),z3=Le({name:"DynamicTags",props:I3,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Lt(e),{localeRef:r}=co("DynamicTags"),o=hr(e),{mergedDisabledRef:i}=o,a=K(""),s=K(!1),l=K(!0),c=K(null),u=rt("DynamicTags","-dynamic-tags",M3,A3,e,t),d=K(e.defaultValue),p=Xe(e,"value"),m=Vn(p,d),f=z(()=>r.value.add),y=z(()=>oR(e.size)),S=z(()=>i.value||!!e.max&&m.value.length>=e.max);function w(P){const{onChange:O,"onUpdate:value":U,onUpdateValue:D}=e,{nTriggerFormInput:I,nTriggerFormChange:te}=o;O&&Fe(O,P),D&&Fe(D,P),U&&Fe(U,P),d.value=P,I(),te()}function k(P){const O=m.value.slice(0);O.splice(P,1),w(O)}function b(P){switch(P.key){case"Enter":v()}}function v(P){const O=P??a.value;if(O){const U=m.value.slice(0);U.push(e.onCreate(O)),w(U)}s.value=!1,l.value=!0,a.value=""}function g(){v()}function C(){s.value=!0,On(()=>{var P;(P=c.value)===null||P===void 0||P.focus(),l.value=!1})}const x=z(()=>{const{self:{inputWidth:P}}=u.value;return{"--n-input-width":P}}),T=n?Xt("dynamic-tags",void 0,x,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:f,inputSize:y,inputValue:a,showInput:s,inputForceFocused:l,mergedValue:m,mergedDisabled:i,triggerDisabled:S,handleInputKeyDown:b,handleAddClick:C,handleInputBlur:g,handleCloseClick:k,handleInputConfirm:v,mergedTheme:u,cssVars:n?void 0:x,themeClass:T?.themeClass,onRender:T?.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r?.(),h(Yh,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagClass:a,tagStyle:s,type:l,round:c,size:u,color:d,closable:p,mergedDisabled:m,showInput:f,inputValue:y,inputClass:S,inputStyle:w,inputSize:k,inputForceFocused:b,triggerDisabled:v,handleInputKeyDown:g,handleInputBlur:C,handleAddClick:x,handleCloseClick:T,handleInputConfirm:P,$slots:O}=this;return this.mergedValue.map((U,D)=>o?o(U,D):h(za,{key:D,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,class:a,style:s,type:l,round:c,size:u,color:d,closable:p,disabled:m,onClose:()=>{T(D)}},{default:()=>typeof U=="string"?U:U.label})).concat(f?O.input?O.input({submit:P,deactivate:C}):h(_r,Object.assign({placeholder:"",size:k,style:w,class:S,autosize:!0},this.inputProps,{ref:"inputInstRef",value:y,onUpdateValue:U=>{this.inputValue=U},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeydown:g,onBlur:C,internalForceFocus:b})):O.trigger?O.trigger({activate:x,disabled:v}):h(mn,{dashed:!0,disabled:v,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:k,onClick:x},{icon:()=>h(Fn,{clsPrefix:n},{default:()=>h(Js,null)})}))}})}}),B3={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"};function N3(e){const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},B3),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})}const L3={common:hn,self:N3};function H3(e){const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ht(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ht(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ht(r,{alpha:.6}),colorEndWarning:r,colorStartError:ht(o,{alpha:.6}),colorEndError:o,colorStartSuccess:ht(n,{alpha:.6}),colorEndSuccess:n}}const V3={common:hn,self:H3};function j3(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const W3={name:"InputNumber",common:hn,peers:{Button:Ba,Input:Wi},self:j3},U3={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};function q3(e){const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:s,popoverColor:l,borderRadius:c,fontSize:u,opacityDisabled:d}=e;return Object.assign(Object.assign({},U3),{fontSize:u,markFontSize:u,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:d,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:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}const Y3={common:hn,self:q3},G3={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"};function K3(e){const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e;return Object.assign(Object.assign({},G3),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:"rgba(0, 0, 0, .14)",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:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ht(t,{alpha:.2})}`})}const X3={common:hn,self:K3},Q3={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"};function Z3(e){const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:u,dividerColor:d,fontWeight:p,textColor1:m,borderRadius:f,fontSize:y,fontWeightStrong:S}=e;return Object.assign(Object.assign({},Q3),{colorSegment:c,tabFontSizeCard:y,tabTextColorLine:m,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:m,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:m,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:m,tabTextColorHoverCard:m,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:f,tabColor:c,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:p,tabFontWeight:p,tabBorderRadius:f,paneTextColor:t,fontWeightStrong:S})}const J3={common:hn,self:Z3},eB={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"};function tB(e){const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:d,warningColor:p,errorColor:m,successColor:f,codeColor:y}=e;return Object.assign(Object.assign({},eB),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:m,headerBarColorWarning:p,headerBarColorSuccess:f,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:f,textColorWarning:p,textColorError:m,codeTextColor:n,codeColor:y,codeBorder:"1px solid #0000"})}const ix={common:hn,self:tB},gu="n-form",nB="n-form-item-insts";function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ki.apply(this,arguments)}function rB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,al(e,t)}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function al(e,t){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},al(e,t)}function oB(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bu(e,t,n){return oB()?bu=Reflect.construct.bind():bu=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&al(c,a.prototype),c},bu.apply(null,arguments)}function iB(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Kh(e){var t=typeof Map=="function"?new Map:void 0;return Kh=function(r){if(r===null||!iB(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return bu(r,arguments,Gh(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),al(o,r)},Kh(e)}var aB=/%[sdj%]/g,sB=function(){};typeof process<"u"&&process.env;function Xh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function kr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(aB,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function lB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Bn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||lB(t)&&typeof e=="string"&&!e)}function cB(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function ax(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function uB(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var sx=function(e){rB(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(Kh(Error));function dB(e,t,n,r,o){if(t.first){var i=new Promise(function(p,m){var f=function(w){return r(w),w.length?m(new sx(w,Xh(w))):p(o)},y=uB(e);ax(y,n,f)});return i.catch(function(p){return p}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(p,m){var f=function(S){if(u.push.apply(u,S),c++,c===l)return r(u),u.length?m(new sx(u,Xh(u))):p(o)};s.length||(r(u),p(o)),s.forEach(function(y){var S=e[y];a.indexOf(y)!==-1?ax(S,n,f):cB(S,n,f)})});return d.catch(function(p){return p}),d}function fB(e){return!!(e&&e.message!==void 0)}function hB(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function lx(e,t){return function(n){var r;return e.fullFields?r=hB(t,e.fullFields):r=t[n.field||e.fullField],fB(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function cx(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Ki({},e[n],r):e[n]=r}}return e}var ux=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Bn(n,a||t.type))&&o.push(kr(i.messages.required,t.fullField))},pB=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(kr(i.messages.whitespace,t.fullField))},yu,mB=function(){if(yu)return yu;var e="[a-fA-F\\d:]",t=function(v){return v&&v.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
1884
+ (?:
1885
+ (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
1886
+ (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
1887
+ (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
1888
+ (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
1889
+ (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
1890
+ (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
1891
+ (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
1892
+ (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
1893
+ )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
1894
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(v){return v&&v.exact?i:new RegExp("(?:"+t(v)+n+t(v)+")|(?:"+t(v)+o+t(v)+")","g")};l.v4=function(b){return b&&b.exact?a:new RegExp(""+t(b)+n+t(b),"g")},l.v6=function(b){return b&&b.exact?s:new RegExp(""+t(b)+o+t(b),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,p=l.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",f="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',k="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+p+"|"+m+f+y+")"+S+w;return yu=new RegExp("(?:^"+k+"$)","i"),yu},dx={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},sl={integer:function(t){return sl.number(t)&&parseInt(t,10)===t},float:function(t){return sl.number(t)&&!sl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!sl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(dx.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(mB())},hex:function(t){return typeof t=="string"&&!!t.match(dx.hex)}},vB=function(t,n,r,o,i){if(t.required&&n===void 0){ux(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?sl[s](n)||o.push(kr(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(kr(i.messages.types[s],t.fullField,t.type))},gB=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,p=typeof n=="number",m=typeof n=="string",f=Array.isArray(n);if(p?d="number":m?d="string":f&&(d="array"),!d)return!1;f&&(u=n.length),m&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(kr(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(kr(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(kr(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(kr(i.messages[d].range,t.fullField,t.min,t.max))},Ga="enum",bB=function(t,n,r,o,i){t[Ga]=Array.isArray(t[Ga])?t[Ga]:[],t[Ga].indexOf(n)===-1&&o.push(kr(i.messages[Ga],t.fullField,t[Ga].join(", ")))},yB=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(kr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(kr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ft={required:ux,whitespace:pB,type:vB,range:gB,enum:bB,pattern:yB},wB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n,"string")&&!t.required)return r();Ft.required(t,n,o,a,i,"string"),Bn(n,"string")||(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i),Ft.pattern(t,n,o,a,i),t.whitespace===!0&&Ft.whitespace(t,n,o,a,i))}r(a)},xB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},CB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},SB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},_B=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),Bn(n)||Ft.type(t,n,o,a,i)}r(a)},kB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},PB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},TB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ft.required(t,n,o,a,i,"array"),n!=null&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},$B=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},RB="enum",OB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft[RB](t,n,o,a,i)}r(a)},EB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n,"string")&&!t.required)return r();Ft.required(t,n,o,a,i),Bn(n,"string")||Ft.pattern(t,n,o,a,i)}r(a)},DB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n,"date")&&!t.required)return r();if(Ft.required(t,n,o,a,i),!Bn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ft.type(t,l,o,a,i),l&&Ft.range(t,l.getTime(),o,a,i)}}r(a)},FB=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Ft.required(t,n,o,a,i,s),r(a)},Qh=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Bn(n,a)&&!t.required)return r();Ft.required(t,n,o,s,i,a),Bn(n,a)||Ft.type(t,n,o,s,i)}r(s)},AB=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Bn(n)&&!t.required)return r();Ft.required(t,n,o,a,i)}r(a)},ll={string:wB,method:xB,number:CB,boolean:SB,regexp:_B,integer:kB,float:PB,array:TB,object:$B,enum:OB,pattern:EB,date:DB,url:Qh,hex:Qh,email:Qh,required:FB,any:AB};function Zh(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Jh=Zh(),Ka=function(){function e(n){this.rules=null,this._messages=Jh,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=cx(Zh(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(y){var S=[],w={};function k(v){if(Array.isArray(v)){var g;S=(g=S).concat.apply(g,v)}else S.push(v)}for(var b=0;b<y.length;b++)k(y[b]);S.length?(w=Xh(S),c(S,w)):c(null,s)}if(l.messages){var d=this.messages();d===Jh&&(d=Zh()),cx(d,l.messages),l.messages=d}else l.messages=this.messages();var p={},m=l.keys||Object.keys(this.rules);m.forEach(function(y){var S=a.rules[y],w=s[y];S.forEach(function(k){var b=k;typeof b.transform=="function"&&(s===r&&(s=Ki({},s)),w=s[y]=b.transform(w)),typeof b=="function"?b={validator:b}:b=Ki({},b),b.validator=a.getValidationMethod(b),b.validator&&(b.field=y,b.fullField=b.fullField||y,b.type=a.getType(b),p[y]=p[y]||[],p[y].push({rule:b,value:w,source:s,field:y}))})});var f={};return dB(p,l,function(y,S){var w=y.rule,k=(w.type==="object"||w.type==="array")&&(typeof w.fields=="object"||typeof w.defaultField=="object");k=k&&(w.required||!w.required&&y.value),w.field=y.field;function b(C,x){return Ki({},x,{fullField:w.fullField+"."+C,fullFields:w.fullFields?[].concat(w.fullFields,[C]):[C]})}function v(C){C===void 0&&(C=[]);var x=Array.isArray(C)?C:[C];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&w.message!==void 0&&(x=[].concat(w.message));var T=x.map(lx(w,s));if(l.first&&T.length)return f[w.field]=1,S(T);if(!k)S(T);else{if(w.required&&!y.value)return w.message!==void 0?T=[].concat(w.message).map(lx(w,s)):l.error&&(T=[l.error(w,kr(l.messages.required,w.field))]),S(T);var P={};w.defaultField&&Object.keys(y.value).map(function(D){P[D]=w.defaultField}),P=Ki({},P,y.rule.fields);var O={};Object.keys(P).forEach(function(D){var I=P[D],te=Array.isArray(I)?I:[I];O[D]=te.map(b.bind(null,D))});var U=new e(O);U.messages(l.messages),y.rule.options&&(y.rule.options.messages=l.messages,y.rule.options.error=l.error),U.validate(y.value,y.rule.options||l,function(D){var I=[];T&&T.length&&I.push.apply(I,T),D&&D.length&&I.push.apply(I,D),S(I.length?I:null)})}}var g;if(w.asyncValidator)g=w.asyncValidator(w,y.value,v,y.source,l);else if(w.validator){try{g=w.validator(w,y.value,v,y.source,l)}catch(C){console.error?.(C),l.suppressValidatorError||setTimeout(function(){throw C},0),v(C.message)}g===!0?v():g===!1?v(typeof w.message=="function"?w.message(w.fullField||w.field):w.message||(w.fullField||w.field)+" fails"):g instanceof Array?v(g):g instanceof Error&&v(g.message)}g&&g.then&&g.then(function(){return v()},function(C){return v(C)})},function(y){u(y)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ll.hasOwnProperty(r.type))throw new Error(kr("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?ll.required:ll[this.getType(r)]||void 0},e}();Ka.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ll[t]=n},Ka.warning=sB,Ka.messages=Jh,Ka.validators=ll;const{cubicBezierEaseInOut:fx}=Hi;function MB({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=fx,leaveCubicBezier:i=fx}={}){return[G(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),G(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),G(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),G(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const IB=A("form-item",`
1895
+ display: grid;
1896
+ line-height: var(--n-line-height);
1897
+ `,[A("form-item-label",`
1898
+ grid-area: label;
1899
+ align-items: center;
1900
+ line-height: 1.25;
1901
+ text-align: var(--n-label-text-align);
1902
+ font-size: var(--n-label-font-size);
1903
+ min-height: var(--n-label-height);
1904
+ padding: var(--n-label-padding);
1905
+ color: var(--n-label-text-color);
1906
+ transition: color .3s var(--n-bezier);
1907
+ box-sizing: border-box;
1908
+ font-weight: var(--n-label-font-weight);
1909
+ `,[X("asterisk",`
1910
+ white-space: nowrap;
1911
+ user-select: none;
1912
+ -webkit-user-select: none;
1913
+ color: var(--n-asterisk-color);
1914
+ transition: color .3s var(--n-bezier);
1915
+ `),X("asterisk-placeholder",`
1916
+ grid-area: mark;
1917
+ user-select: none;
1918
+ -webkit-user-select: none;
1919
+ visibility: hidden;
1920
+ `)]),A("form-item-blank",`
1921
+ grid-area: blank;
1922
+ min-height: var(--n-blank-height);
1923
+ `),Z("auto-label-width",[A("form-item-label","white-space: nowrap;")]),Z("left-labelled",`
1924
+ grid-template-areas:
1925
+ "label blank"
1926
+ "label feedback";
1927
+ grid-template-columns: auto minmax(0, 1fr);
1928
+ grid-template-rows: auto 1fr;
1929
+ align-items: flex-start;
1930
+ `,[A("form-item-label",`
1931
+ display: grid;
1932
+ grid-template-columns: 1fr auto;
1933
+ min-height: var(--n-blank-height);
1934
+ height: auto;
1935
+ box-sizing: border-box;
1936
+ flex-shrink: 0;
1937
+ flex-grow: 0;
1938
+ `,[Z("reverse-columns-space",`
1939
+ grid-template-columns: auto 1fr;
1940
+ `),Z("left-mark",`
1941
+ grid-template-areas:
1942
+ "mark text"
1943
+ ". text";
1944
+ `),Z("right-mark",`
1945
+ grid-template-areas:
1946
+ "text mark"
1947
+ "text .";
1948
+ `),Z("right-hanging-mark",`
1949
+ grid-template-areas:
1950
+ "text mark"
1951
+ "text .";
1952
+ `),X("text",`
1953
+ grid-area: text;
1954
+ `),X("asterisk",`
1955
+ grid-area: mark;
1956
+ align-self: end;
1957
+ `)])]),Z("top-labelled",`
1958
+ grid-template-areas:
1959
+ "label"
1960
+ "blank"
1961
+ "feedback";
1962
+ grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
1963
+ grid-template-columns: minmax(0, 100%);
1964
+ `,[Z("no-label",`
1965
+ grid-template-areas:
1966
+ "blank"
1967
+ "feedback";
1968
+ grid-template-rows: 1fr;
1969
+ `),A("form-item-label",`
1970
+ display: flex;
1971
+ align-items: flex-start;
1972
+ justify-content: var(--n-label-text-align);
1973
+ `)]),A("form-item-blank",`
1974
+ box-sizing: border-box;
1975
+ display: flex;
1976
+ align-items: center;
1977
+ position: relative;
1978
+ `),A("form-item-feedback-wrapper",`
1979
+ grid-area: feedback;
1980
+ box-sizing: border-box;
1981
+ min-height: var(--n-feedback-height);
1982
+ font-size: var(--n-feedback-font-size);
1983
+ line-height: 1.25;
1984
+ transform-origin: top left;
1985
+ `,[G("&:not(:empty)",`
1986
+ padding: var(--n-feedback-padding);
1987
+ `),A("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[Z("warning",{color:"var(--n-feedback-text-color-warning)"}),Z("error",{color:"var(--n-feedback-text-color-error)"}),MB({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);function zB(e){const t=wt(gu,null);return{mergedSize:z(()=>e.size!==void 0?e.size:t?.props.size!==void 0?t.props.size:"medium")}}function BB(e){const t=wt(gu,null),n=z(()=>{const{labelPlacement:f}=e;return f!==void 0?f:t?.props.labelPlacement?t.props.labelPlacement:"top"}),r=z(()=>n.value==="left"&&(e.labelWidth==="auto"||t?.props.labelWidth==="auto")),o=z(()=>{if(n.value==="top")return;const{labelWidth:f}=e;if(f!==void 0&&f!=="auto")return Jo(f);if(r.value){const y=t?.maxChildLabelWidthRef.value;return y!==void 0?Jo(y):void 0}if(t?.props.labelWidth!==void 0)return Jo(t.props.labelWidth)}),i=z(()=>{const{labelAlign:f}=e;if(f)return f;if(t?.props.labelAlign)return t.props.labelAlign}),a=z(()=>{var f;return[(f=e.labelProps)===null||f===void 0?void 0:f.style,e.labelStyle,{width:o.value}]}),s=z(()=>{const{showRequireMark:f}=e;return f!==void 0?f:t?.props.showRequireMark}),l=z(()=>{const{requireMarkPlacement:f}=e;return f!==void 0?f:t?.props.requireMarkPlacement||"right"}),c=K(!1),u=K(!1),d=z(()=>{const{validationStatus:f}=e;if(f!==void 0)return f;if(c.value)return"error";if(u.value)return"warning"}),p=z(()=>{const{showFeedback:f}=e;return f!==void 0?f:t?.props.showFeedback!==void 0?t.props.showFeedback:!0}),m=z(()=>{const{showLabel:f}=e;return f!==void 0?f:t?.props.showLabel!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:u,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:s,mergedRequireMarkPlacement:l,mergedValidationStatus:d,mergedShowFeedback:p,mergedShowLabel:m,isAutoLabelWidth:r}}function NB(e){const t=wt(gu,null),n=z(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:s}=e;if(s!==void 0)return s}),r=z(()=>{const a=[],{rule:s}=e;if(s!==void 0&&(Array.isArray(s)?a.push(...s):a.push(s)),t){const{rules:l}=t.props,{value:c}=n;if(l!==void 0&&c!==void 0){const u=Gf(l,c);u!==void 0&&(Array.isArray(u)?a.push(...u):a.push(u))}}return a}),o=z(()=>r.value.some(a=>a.required)),i=z(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}var hx=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const LB=Object.assign(Object.assign({},rt.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object,contentClass:String,contentStyle:[String,Object]});function px(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||Ai("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${t?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){Ai("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const HB=Le({name:"FormItem",props:LB,setup(e){o$(nB,"formItems",Xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Lt(e),r=wt(gu,null),o=zB(e),i=BB(e),{validationErrored:a,validationWarned:s}=i,{mergedRequired:l,mergedRules:c}=NB(e),{mergedSize:u}=o,{mergedLabelPlacement:d,mergedLabelAlign:p,mergedRequireMarkPlacement:m}=i,f=K([]),y=K(Ms()),S=r?Xe(r.props,"disabled"):K(!1),w=rt("Form","-form-item",IB,L3,e,t);St(Xe(e,"path"),()=>{e.ignorePathChange||k()});function k(){f.value=[],a.value=!1,s.value=!1,e.feedback&&(y.value=Ms())}const b=(...te)=>hx(this,[...te],void 0,function*(ie=null,pe=()=>!0,ce={suppressWarning:!0}){const{path:ge}=e;ce?ce.first||(ce.first=e.first):ce={};const{value:Ae}=c,Re=r?Gf(r.props.model,ge||""):void 0,Ee={},ue={},_e=(ie?Ae.filter(F=>Array.isArray(F.trigger)?F.trigger.includes(ie):F.trigger===ie):Ae).filter(pe).map((F,H)=>{const ne=Object.assign({},F);if(ne.validator&&(ne.validator=px(ne.validator,!1)),ne.asyncValidator&&(ne.asyncValidator=px(ne.asyncValidator,!0)),ne.renderMessage){const be=`__renderMessage__${H}`;ue[be]=ne.message,ne.message=be,Ee[be]=ne.renderMessage}return ne}),me=_e.filter(F=>F.level!=="warning"),De=_e.filter(F=>F.level==="warning"),ke={valid:!0,errors:void 0,warnings:void 0};if(!_e.length)return ke;const Ye=ge??"__n_no_path__",tt=new Ka({[Ye]:me}),Ne=new Ka({[Ye]:De}),{validateMessages:it}=r?.props||{};it&&(tt.messages(it),Ne.messages(it));const Ze=F=>{f.value=F.map(H=>{const ne=H?.message||"";return{key:ne,render:()=>ne.startsWith("__renderMessage__")?Ee[ne]():ne}}),F.forEach(H=>{var ne;!((ne=H.message)===null||ne===void 0)&&ne.startsWith("__renderMessage__")&&(H.message=ue[H.message])})};if(me.length){const F=yield new Promise(H=>{tt.validate({[Ye]:Re},ce,H)});F?.length&&(ke.valid=!1,ke.errors=F,Ze(F))}if(De.length&&!ke.errors){const F=yield new Promise(H=>{Ne.validate({[Ye]:Re},ce,H)});F?.length&&(Ze(F),ke.warnings=F)}return!ke.errors&&!ke.warnings?k():(a.value=!!ke.errors,s.value=!!ke.warnings),ke});function v(){b("blur")}function g(){b("change")}function C(){b("focus")}function x(){b("input")}function T(te,ie){return hx(this,void 0,void 0,function*(){let pe,ce,ge,Ae;return typeof te=="string"?(pe=te,ce=ie):te!==null&&typeof te=="object"&&(pe=te.trigger,ce=te.callback,ge=te.shouldRuleBeApplied,Ae=te.options),yield new Promise((Re,Ee)=>{b(pe,ge,Ae).then(({valid:ue,errors:_e,warnings:me})=>{ue?(ce&&ce(void 0,{warnings:me}),Re({warnings:me})):(ce&&ce(_e,{warnings:me}),Ee(_e))})})})}_n(Wc,{path:Xe(e,"path"),disabled:S,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:k,handleContentBlur:v,handleContentChange:g,handleContentFocus:C,handleContentInput:x});const P={validate:T,restoreValidation:k,internalValidate:b},O=K(null);En(()=>{if(!i.isAutoLabelWidth.value)return;const te=O.value;if(te!==null){const ie=te.style.whiteSpace;te.style.whiteSpace="nowrap",te.style.width="",r?.deriveMaxChildLabelWidth(Number(getComputedStyle(te).width.slice(0,-2))),te.style.whiteSpace=ie}});const U=z(()=>{var te;const{value:ie}=u,{value:pe}=d,ce=pe==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:ge},self:{labelTextColor:Ae,asteriskColor:Re,lineHeight:Ee,feedbackTextColor:ue,feedbackTextColorWarning:_e,feedbackTextColorError:me,feedbackPadding:De,labelFontWeight:ke,[Be("labelHeight",ie)]:Ye,[Be("blankHeight",ie)]:tt,[Be("feedbackFontSize",ie)]:Ne,[Be("feedbackHeight",ie)]:it,[Be("labelPadding",ce)]:Ze,[Be("labelTextAlign",ce)]:F,[Be(Be("labelFontSize",pe),ie)]:H}}=w.value;let ne=(te=p.value)!==null&&te!==void 0?te:F;return pe==="top"&&(ne=ne==="right"?"flex-end":"flex-start"),{"--n-bezier":ge,"--n-line-height":Ee,"--n-blank-height":tt,"--n-label-font-size":H,"--n-label-text-align":ne,"--n-label-height":Ye,"--n-label-padding":Ze,"--n-label-font-weight":ke,"--n-asterisk-color":Re,"--n-label-text-color":Ae,"--n-feedback-padding":De,"--n-feedback-font-size":Ne,"--n-feedback-height":it,"--n-feedback-text-color":ue,"--n-feedback-text-color-warning":_e,"--n-feedback-text-color-error":me}}),D=n?Xt("form-item",z(()=>{var te;return`${u.value[0]}${d.value[0]}${((te=p.value)===null||te===void 0?void 0:te[0])||""}`}),U,e):void 0,I=z(()=>d.value==="left"&&m.value==="left"&&p.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:O,mergedClsPrefix:t,mergedRequired:l,feedbackId:y,renderExplains:f,reverseColSpace:I},i),o),P),{cssVars:n?void 0:U,themeClass:D?.themeClass,onRender:D?.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i?.();const s=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const c=h("span",{class:`${t}-form-item-label__text`},l),u=a?h("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?" *":"* "):o==="right-hanging"&&h("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:d}=this;return h("label",Object.assign({},d,{class:[d?.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[u,c]:[c,u])};return h("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&s(),h("div",{class:[`${t}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`],style:this.contentStyle},e),this.mergedShowFeedback?h("div",{key:this.feedbackId,style:this.feedbackStyle,class:[`${t}-form-item-feedback-wrapper`,this.feedbackClass]},h(Cr,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return qt(e.feedback,c=>{var u;const{feedback:d}=this,p=c||d?h("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||d):this.renderExplains.length?(u=this.renderExplains)===null||u===void 0?void 0:u.map(({key:m,render:f})=>h("div",{key:m,class:`${t}-form-item-feedback__line`},f())):null;return p?l==="warning"?h("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},p):l==="error"?h("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},p):l==="success"?h("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},p):h("div",{key:"controlled-default",class:`${t}-form-item-feedback`},p):null})}})):null)}}),VB=A("gradient-text",`
1988
+ display: inline-block;
1989
+ font-weight: var(--n-font-weight);
1990
+ -webkit-background-clip: text;
1991
+ background-clip: text;
1992
+ color: #0000;
1993
+ white-space: nowrap;
1994
+ background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
1995
+ transition:
1996
+ --n-color-start .3s var(--n-bezier),
1997
+ --n-color-end .3s var(--n-bezier);
1998
+ `),jB=Object.assign(Object.assign({},rt.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),mx=Le({name:"GradientText",props:jB,setup(e){i$();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Lt(e),r=z(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=z(()=>{let c=e.size||e.fontSize;return c&&(c=Jo(c)),c||void 0}),i=z(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const u=c.deg||0,d=c.from,p=c.to;return`linear-gradient(${u}deg, ${d} 0%, ${p} 100%)`}}),a=rt("GradientText","-gradient-text",VB,V3,e,t),s=z(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:u},self:{rotate:d,[Be("colorStart",c)]:p,[Be("colorEnd",c)]:m,fontWeight:f}}=a.value;return{"--n-bezier":u,"--n-rotate":d,"--n-color-start":p,"--n-color-end":m,"--n-font-weight":f}}),l=n?Xt("gradient-text",z(()=>r.value[0]),s,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:s,themeClass:l?.themeClass,onRender:l?.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t?.(),h("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),WB=G([A("input-number-suffix",`
1999
+ display: inline-block;
2000
+ margin-right: 10px;
2001
+ `),A("input-number-prefix",`
2002
+ display: inline-block;
2003
+ margin-left: 10px;
2004
+ `)]);function UB(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function qB(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function ep(e){return e==null?!0:!Number.isNaN(e)}function vx(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function tp(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const gx=800,bx=100,YB=Object.assign(Object.assign({},rt.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),GB=Le({name:"InputNumber",props:YB,slots:Object,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=Lt(e),o=rt("InputNumber","-input-number",WB,W3,e,n),{localeRef:i}=co("InputNumber"),a=hr(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:c}=a,u=K(null),d=K(null),p=K(null),m=K(e.defaultValue),f=Xe(e,"value"),y=Vn(f,m),S=K(""),w=W=>{const de=String(W).split(".")[1];return de?de.length:0},k=W=>{const de=[e.min,e.max,e.step,W].map(he=>he===void 0?0:w(he));return Math.max(...de)},b=cn(()=>{const{placeholder:W}=e;return W!==void 0?W:i.value.placeholder}),v=cn(()=>{const W=tp(e.step);return W!==null?W===0?1:Math.abs(W):1}),g=cn(()=>{const W=tp(e.min);return W!==null?W:null}),C=cn(()=>{const W=tp(e.max);return W!==null?W:null}),x=()=>{const{value:W}=y;if(ep(W)){const{format:de,precision:he}=e;de?S.value=de(W):W===null||he===void 0||w(W)>he?S.value=vx(W,void 0):S.value=vx(W,he)}else S.value=String(W)};x();const T=W=>{const{value:de}=y;if(W===de){x();return}const{"onUpdate:value":he,onUpdateValue:L,onChange:V}=e,{nTriggerFormInput:fe,nTriggerFormChange:N}=a;V&&Fe(V,W),L&&Fe(L,W),he&&Fe(he,W),m.value=W,fe(),N()},P=({offset:W,doUpdateIfValid:de,fixPrecision:he,isInputing:L})=>{const{value:V}=S;if(L&&qB(V))return!1;const fe=(e.parse||UB)(V);if(fe===null)return de&&T(null),null;if(ep(fe)){const N=w(fe),{precision:B}=e;if(B!==void 0&&B<N&&!he)return!1;let Y=Number.parseFloat((fe+W).toFixed(B??k(fe)));if(ep(Y)){const{value:we}=C,{value:Q}=g;if(we!==null&&Y>we){if(!de||L)return!1;Y=we}if(Q!==null&&Y<Q){if(!de||L)return!1;Y=Q}return e.validator&&!e.validator(Y)?!1:(de&&T(Y),Y)}}return!1},O=cn(()=>P({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),U=cn(()=>{const{value:W}=y;if(e.validator&&W===null)return!1;const{value:de}=v;return P({offset:-de,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),D=cn(()=>{const{value:W}=y;if(e.validator&&W===null)return!1;const{value:de}=v;return P({offset:+de,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function I(W){const{onFocus:de}=e,{nTriggerFormFocus:he}=a;de&&Fe(de,W),he()}function te(W){var de,he;if(W.target===((de=u.value)===null||de===void 0?void 0:de.wrapperElRef))return;const L=P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(L!==!1){const N=(he=u.value)===null||he===void 0?void 0:he.inputElRef;N&&(N.value=String(L||"")),y.value===L&&x()}else x();const{onBlur:V}=e,{nTriggerFormBlur:fe}=a;V&&Fe(V,W),fe(),On(()=>{x()})}function ie(W){const{onClear:de}=e;de&&Fe(de,W)}function pe(){const{value:W}=D;if(!W){tt();return}const{value:de}=y;if(de===null)e.validator||T(Re());else{const{value:he}=v;P({offset:he,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function ce(){const{value:W}=U;if(!W){ke();return}const{value:de}=y;if(de===null)e.validator||T(Re());else{const{value:he}=v;P({offset:-he,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const ge=I,Ae=te;function Re(){if(e.validator)return null;const{value:W}=g,{value:de}=C;return W!==null?Math.max(0,W):de!==null?Math.min(0,de):0}function Ee(W){ie(W),T(null)}function ue(W){var de,he,L;!((de=p.value)===null||de===void 0)&&de.$el.contains(W.target)&&W.preventDefault(),!((he=d.value)===null||he===void 0)&&he.$el.contains(W.target)&&W.preventDefault(),(L=u.value)===null||L===void 0||L.activate()}let _e=null,me=null,De=null;function ke(){De&&(window.clearTimeout(De),De=null),_e&&(window.clearInterval(_e),_e=null)}let Ye=null;function tt(){Ye&&(window.clearTimeout(Ye),Ye=null),me&&(window.clearInterval(me),me=null)}function Ne(){ke(),De=window.setTimeout(()=>{_e=window.setInterval(()=>{ce()},bx)},gx),sn("mouseup",document,ke,{once:!0})}function it(){tt(),Ye=window.setTimeout(()=>{me=window.setInterval(()=>{pe()},bx)},gx),sn("mouseup",document,tt,{once:!0})}const Ze=()=>{me||pe()},F=()=>{_e||ce()};function H(W){var de,he;if(W.key==="Enter"){if(W.target===((de=u.value)===null||de===void 0?void 0:de.wrapperElRef))return;P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((he=u.value)===null||he===void 0||he.deactivate())}else if(W.key==="ArrowUp"){if(!D.value||e.keyboard.ArrowUp===!1)return;W.preventDefault(),P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&pe()}else if(W.key==="ArrowDown"){if(!U.value||e.keyboard.ArrowDown===!1)return;W.preventDefault(),P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ce()}}function ne(W){S.value=W,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&P({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}St(y,()=>{x()});const be={focus:()=>{var W;return(W=u.value)===null||W===void 0?void 0:W.focus()},blur:()=>{var W;return(W=u.value)===null||W===void 0?void 0:W.blur()},select:()=>{var W;return(W=u.value)===null||W===void 0?void 0:W.select()}},ye=pr("InputNumber",r,n);return Object.assign(Object.assign({},be),{rtlEnabled:ye,inputInstRef:u,minusButtonInstRef:d,addButtonInstRef:p,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:m,mergedValue:y,mergedPlaceholder:b,displayedValueInvalid:O,mergedSize:s,mergedDisabled:l,displayedValue:S,addable:D,minusable:U,mergedStatus:c,handleFocus:ge,handleBlur:Ae,handleClear:Ee,handleMouseDown:ue,handleAddClick:Ze,handleMinusClick:F,handleAddMousedown:it,handleMinusMousedown:Ne,handleKeyDown:H,handleUpdateDisplayedValue:ne,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:z(()=>{const{self:{iconColorDisabled:W}}=o.value,[de,he,L,V]=qo(W);return{textColorTextDisabled:`rgb(${de}, ${he}, ${L})`,opacityDisabled:`${V}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>h(uo,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>Rt(t["minus-icon"],()=>[h(Fn,{clsPrefix:e},{default:()=>h(Fy,null)})])}),r=()=>h(uo,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>Rt(t["add-icon"],()=>[h(Fn,{clsPrefix:e},{default:()=>h(Js,null)})])});return h("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},h(_r,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),qt(t.prefix,i=>i?h("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[qt(t.suffix,i=>i?h("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),KB=Object.assign(Object.assign({},rt.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),XB=Le({name:"Scrollbar",props:KB,setup(){const e=K(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return h(mr,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),QB=G([A("slider",`
2005
+ display: block;
2006
+ padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
2007
+ position: relative;
2008
+ z-index: 0;
2009
+ width: 100%;
2010
+ cursor: pointer;
2011
+ user-select: none;
2012
+ -webkit-user-select: none;
2013
+ `,[Z("reverse",[A("slider-handles",[A("slider-handle-wrapper",`
2014
+ transform: translate(50%, -50%);
2015
+ `)]),A("slider-dots",[A("slider-dot",`
2016
+ transform: translateX(50%, -50%);
2017
+ `)]),Z("vertical",[A("slider-handles",[A("slider-handle-wrapper",`
2018
+ transform: translate(-50%, -50%);
2019
+ `)]),A("slider-marks",[A("slider-mark",`
2020
+ transform: translateY(calc(-50% + var(--n-dot-height) / 2));
2021
+ `)]),A("slider-dots",[A("slider-dot",`
2022
+ transform: translateX(-50%) translateY(0);
2023
+ `)])])]),Z("vertical",`
2024
+ box-sizing: content-box;
2025
+ padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
2026
+ width: var(--n-rail-width-vertical);
2027
+ height: 100%;
2028
+ `,[A("slider-handles",`
2029
+ top: calc(var(--n-handle-size) / 2);
2030
+ right: 0;
2031
+ bottom: calc(var(--n-handle-size) / 2);
2032
+ left: 0;
2033
+ `,[A("slider-handle-wrapper",`
2034
+ top: unset;
2035
+ left: 50%;
2036
+ transform: translate(-50%, 50%);
2037
+ `)]),A("slider-rail",`
2038
+ height: 100%;
2039
+ `,[X("fill",`
2040
+ top: unset;
2041
+ right: 0;
2042
+ bottom: unset;
2043
+ left: 0;
2044
+ `)]),Z("with-mark",`
2045
+ width: var(--n-rail-width-vertical);
2046
+ margin: 0 32px 0 8px;
2047
+ `),A("slider-marks",`
2048
+ top: calc(var(--n-handle-size) / 2);
2049
+ right: unset;
2050
+ bottom: calc(var(--n-handle-size) / 2);
2051
+ left: 22px;
2052
+ font-size: var(--n-mark-font-size);
2053
+ `,[A("slider-mark",`
2054
+ transform: translateY(50%);
2055
+ white-space: nowrap;
2056
+ `)]),A("slider-dots",`
2057
+ top: calc(var(--n-handle-size) / 2);
2058
+ right: unset;
2059
+ bottom: calc(var(--n-handle-size) / 2);
2060
+ left: 50%;
2061
+ `,[A("slider-dot",`
2062
+ transform: translateX(-50%) translateY(50%);
2063
+ `)])]),Z("disabled",`
2064
+ cursor: not-allowed;
2065
+ opacity: var(--n-opacity-disabled);
2066
+ `,[A("slider-handle",`
2067
+ cursor: not-allowed;
2068
+ `)]),Z("with-mark",`
2069
+ width: 100%;
2070
+ margin: 8px 0 32px 0;
2071
+ `),G("&:hover",[A("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[X("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),A("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),Z("active",[A("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[X("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),A("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),A("slider-marks",`
2072
+ position: absolute;
2073
+ top: 18px;
2074
+ left: calc(var(--n-handle-size) / 2);
2075
+ right: calc(var(--n-handle-size) / 2);
2076
+ `,[A("slider-mark",`
2077
+ position: absolute;
2078
+ transform: translateX(-50%);
2079
+ white-space: nowrap;
2080
+ `)]),A("slider-rail",`
2081
+ width: 100%;
2082
+ position: relative;
2083
+ height: var(--n-rail-height);
2084
+ background-color: var(--n-rail-color);
2085
+ transition: background-color .3s var(--n-bezier);
2086
+ border-radius: calc(var(--n-rail-height) / 2);
2087
+ `,[X("fill",`
2088
+ position: absolute;
2089
+ top: 0;
2090
+ bottom: 0;
2091
+ border-radius: calc(var(--n-rail-height) / 2);
2092
+ transition: background-color .3s var(--n-bezier);
2093
+ background-color: var(--n-fill-color);
2094
+ `)]),A("slider-handles",`
2095
+ position: absolute;
2096
+ top: 0;
2097
+ right: calc(var(--n-handle-size) / 2);
2098
+ bottom: 0;
2099
+ left: calc(var(--n-handle-size) / 2);
2100
+ `,[A("slider-handle-wrapper",`
2101
+ outline: none;
2102
+ position: absolute;
2103
+ top: 50%;
2104
+ transform: translate(-50%, -50%);
2105
+ cursor: pointer;
2106
+ display: flex;
2107
+ `,[A("slider-handle",`
2108
+ height: var(--n-handle-size);
2109
+ width: var(--n-handle-size);
2110
+ border-radius: 50%;
2111
+ overflow: hidden;
2112
+ transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
2113
+ background-color: var(--n-handle-color);
2114
+ box-shadow: var(--n-handle-box-shadow);
2115
+ `,[G("&:hover",`
2116
+ box-shadow: var(--n-handle-box-shadow-hover);
2117
+ `)]),G("&:focus",[A("slider-handle",`
2118
+ box-shadow: var(--n-handle-box-shadow-focus);
2119
+ `,[G("&:hover",`
2120
+ box-shadow: var(--n-handle-box-shadow-active);
2121
+ `)])])])]),A("slider-dots",`
2122
+ position: absolute;
2123
+ top: 50%;
2124
+ left: calc(var(--n-handle-size) / 2);
2125
+ right: calc(var(--n-handle-size) / 2);
2126
+ `,[Z("transition-disabled",[A("slider-dot","transition: none;")]),A("slider-dot",`
2127
+ transition:
2128
+ border-color .3s var(--n-bezier),
2129
+ box-shadow .3s var(--n-bezier),
2130
+ background-color .3s var(--n-bezier);
2131
+ position: absolute;
2132
+ transform: translate(-50%, -50%);
2133
+ height: var(--n-dot-height);
2134
+ width: var(--n-dot-width);
2135
+ border-radius: var(--n-dot-border-radius);
2136
+ overflow: hidden;
2137
+ box-sizing: border-box;
2138
+ border: var(--n-dot-border);
2139
+ background-color: var(--n-dot-color);
2140
+ `,[Z("active","border: var(--n-dot-border-active);")])])]),A("slider-handle-indicator",`
2141
+ font-size: var(--n-font-size);
2142
+ padding: 6px 10px;
2143
+ border-radius: var(--n-indicator-border-radius);
2144
+ color: var(--n-indicator-text-color);
2145
+ background-color: var(--n-indicator-color);
2146
+ box-shadow: var(--n-indicator-box-shadow);
2147
+ `,[ji()]),A("slider-handle-indicator",`
2148
+ font-size: var(--n-font-size);
2149
+ padding: 6px 10px;
2150
+ border-radius: var(--n-indicator-border-radius);
2151
+ color: var(--n-indicator-text-color);
2152
+ background-color: var(--n-indicator-color);
2153
+ box-shadow: var(--n-indicator-box-shadow);
2154
+ `,[Z("top",`
2155
+ margin-bottom: 12px;
2156
+ `),Z("right",`
2157
+ margin-left: 12px;
2158
+ `),Z("bottom",`
2159
+ margin-top: 12px;
2160
+ `),Z("left",`
2161
+ margin-right: 12px;
2162
+ `),ji()]),Tb(A("slider",[A("slider-dot","background-color: var(--n-dot-color-modal);")])),$b(A("slider",[A("slider-dot","background-color: var(--n-dot-color-popover);")]))]);function yx(e){return window.TouchEvent&&e instanceof window.TouchEvent}function wx(){const e=new Map,t=n=>r=>{e.set(n,r)};return sg(()=>{e.clear()}),[e,t]}const ZB=0,JB=Object.assign(Object.assign({},rt.props),{to:kn.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),e4=Le({name:"Slider",props:JB,slots:Object,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=Lt(e),o=rt("Slider","-slider",QB,Y3,e,t),i=K(null),[a,s]=wx(),[l,c]=wx(),u=K(new Set),d=hr(e),{mergedDisabledRef:p}=d,m=z(()=>{const{step:N}=e;if(Number(N)<=0||N==="mark")return 0;const B=N.toString();let Y=0;return B.includes(".")&&(Y=B.length-B.indexOf(".")-1),Y}),f=K(e.defaultValue),y=Xe(e,"value"),S=Vn(y,f),w=z(()=>{const{value:N}=S;return(e.range?N:[N]).map(ue)}),k=z(()=>w.value.length>2),b=z(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),v=z(()=>{const{marks:N}=e;return N?Object.keys(N).map(Number.parseFloat):null}),g=K(-1),C=K(-1),x=K(-1),T=K(!1),P=K(!1),O=z(()=>{const{vertical:N,reverse:B}=e;return N?B?"top":"bottom":B?"right":"left"}),U=z(()=>{if(k.value)return;const N=w.value,B=_e(e.range?Math.min(...N):e.min),Y=_e(e.range?Math.max(...N):N[0]),{value:we}=O;return e.vertical?{[we]:`${B}%`,height:`${Y-B}%`}:{[we]:`${B}%`,width:`${Y-B}%`}}),D=z(()=>{const N=[],{marks:B}=e;if(B){const Y=w.value.slice();Y.sort((at,st)=>at-st);const{value:we}=O,{value:Q}=k,{range:Te}=e,Qe=Q?()=>!1:at=>Te?at>=Y[0]&&at<=Y[Y.length-1]:at<=Y[0];for(const at of Object.keys(B)){const st=Number(at);N.push({active:Qe(st),key:st,label:B[at],style:{[we]:`${_e(st)}%`}})}}return N});function I(N,B){const Y=_e(N),{value:we}=O;return{[we]:`${Y}%`,zIndex:B===g.value?1:0}}function te(N){return e.showTooltip||x.value===N||g.value===N&&T.value}function ie(N){return T.value?!(g.value===N&&C.value===N):!0}function pe(N){var B;~N&&(g.value=N,(B=a.get(N))===null||B===void 0||B.focus())}function ce(){l.forEach((N,B)=>{te(B)&&N.syncPosition()})}function ge(N){const{"onUpdate:value":B,onUpdateValue:Y}=e,{nTriggerFormInput:we,nTriggerFormChange:Q}=d;Y&&Fe(Y,N),B&&Fe(B,N),f.value=N,we(),Q()}function Ae(N){const{range:B}=e;if(B){if(Array.isArray(N)){const{value:Y}=w;N.join()!==Y.join()&&ge(N)}}else Array.isArray(N)||w.value[0]!==N&&ge(N)}function Re(N,B){if(e.range){const Y=w.value.slice();Y.splice(B,1,N),Ae(Y)}else Ae(N)}function Ee(N,B,Y){const we=Y!==void 0;Y||(Y=N-B>0?1:-1);const Q=v.value||[],{step:Te}=e;if(Te==="mark"){const st=ke(N,Q.concat(B),we?Y:void 0);return st?st.value:B}if(Te<=0)return B;const{value:Qe}=m;let at;if(we){const st=Number((B/Te).toFixed(Qe)),ot=Math.floor(st),Ot=st>ot?ot:ot-1,Et=st<ot?ot:ot+1;at=ke(B,[Number((Ot*Te).toFixed(Qe)),Number((Et*Te).toFixed(Qe)),...Q],Y)}else{const st=De(N);at=ke(N,[...Q,st])}return at?ue(at.value):B}function ue(N){return Math.min(e.max,Math.max(e.min,N))}function _e(N){const{max:B,min:Y}=e;return(N-Y)/(B-Y)*100}function me(N){const{max:B,min:Y}=e;return Y+(B-Y)*N}function De(N){const{step:B,min:Y}=e;if(Number(B)<=0||B==="mark")return N;const we=Math.round((N-Y)/B)*B+Y;return Number(we.toFixed(m.value))}function ke(N,B=v.value,Y){if(!B?.length)return null;let we=null,Q=-1;for(;++Q<B.length;){const Te=B[Q]-N,Qe=Math.abs(Te);(Y===void 0||Te*Y>0)&&(we===null||Qe<we.distance)&&(we={index:Q,distance:Qe,value:B[Q]})}return we}function Ye(N){const B=i.value;if(!B)return;const Y=yx(N)?N.touches[0]:N,we=B.getBoundingClientRect();let Q;return e.vertical?Q=(we.bottom-Y.clientY)/we.height:Q=(Y.clientX-we.left)/we.width,e.reverse&&(Q=1-Q),me(Q)}function tt(N){if(p.value||!e.keyboard)return;const{vertical:B,reverse:Y}=e;switch(N.key){case"ArrowUp":N.preventDefault(),Ne(B&&Y?-1:1);break;case"ArrowRight":N.preventDefault(),Ne(!B&&Y?-1:1);break;case"ArrowDown":N.preventDefault(),Ne(B&&Y?1:-1);break;case"ArrowLeft":N.preventDefault(),Ne(!B&&Y?1:-1);break}}function Ne(N){const B=g.value;if(B===-1)return;const{step:Y}=e,we=w.value[B],Q=Number(Y)<=0||Y==="mark"?we:we+Y*N;Re(Ee(Q,we,N>0?1:-1),B)}function it(N){var B,Y;if(p.value||!yx(N)&&N.button!==ZB)return;const we=Ye(N);if(we===void 0)return;const Q=w.value.slice(),Te=e.range?(Y=(B=ke(we,Q))===null||B===void 0?void 0:B.index)!==null&&Y!==void 0?Y:-1:0;Te!==-1&&(N.preventDefault(),pe(Te),Ze(),Re(Ee(we,w.value[Te]),Te))}function Ze(){T.value||(T.value=!0,e.onDragstart&&Fe(e.onDragstart),sn("touchend",document,ne),sn("mouseup",document,ne),sn("touchmove",document,H),sn("mousemove",document,H))}function F(){T.value&&(T.value=!1,e.onDragend&&Fe(e.onDragend),en("touchend",document,ne),en("mouseup",document,ne),en("touchmove",document,H),en("mousemove",document,H))}function H(N){const{value:B}=g;if(!T.value||B===-1){F();return}const Y=Ye(N);Y!==void 0&&Re(Ee(Y,w.value[B]),B)}function ne(){F()}function be(N){g.value=N,p.value||(x.value=N)}function ye(N){g.value===N&&(g.value=-1,F()),x.value===N&&(x.value=-1)}function W(N){x.value=N}function de(N){x.value===N&&(x.value=-1)}St(g,(N,B)=>void On(()=>C.value=B)),St(S,()=>{if(e.marks){if(P.value)return;P.value=!0,On(()=>{P.value=!1})}On(ce)}),qn(()=>{F()});const he=z(()=>{const{self:{markFontSize:N,railColor:B,railColorHover:Y,fillColor:we,fillColorHover:Q,handleColor:Te,opacityDisabled:Qe,dotColor:at,dotColorModal:st,handleBoxShadow:ot,handleBoxShadowHover:Ot,handleBoxShadowActive:Et,handleBoxShadowFocus:bt,dotBorder:_,dotBoxShadow:E,railHeight:ve,railWidthVertical:Me,handleSize:Oe,dotHeight:j,dotWidth:Ce,dotBorderRadius:Ie,fontSize:Ue,dotBorderActive:Ct,dotColorPopover:Mt},common:{cubicBezierEaseInOut:le}}=o.value;return{"--n-bezier":le,"--n-dot-border":_,"--n-dot-border-active":Ct,"--n-dot-border-radius":Ie,"--n-dot-box-shadow":E,"--n-dot-color":at,"--n-dot-color-modal":st,"--n-dot-color-popover":Mt,"--n-dot-height":j,"--n-dot-width":Ce,"--n-fill-color":we,"--n-fill-color-hover":Q,"--n-font-size":Ue,"--n-handle-box-shadow":ot,"--n-handle-box-shadow-active":Et,"--n-handle-box-shadow-focus":bt,"--n-handle-box-shadow-hover":Ot,"--n-handle-color":Te,"--n-handle-size":Oe,"--n-opacity-disabled":Qe,"--n-rail-color":B,"--n-rail-color-hover":Y,"--n-rail-height":ve,"--n-rail-width-vertical":Me,"--n-mark-font-size":N}}),L=r?Xt("slider",void 0,he,e):void 0,V=z(()=>{const{self:{fontSize:N,indicatorColor:B,indicatorBoxShadow:Y,indicatorTextColor:we,indicatorBorderRadius:Q}}=o.value;return{"--n-font-size":N,"--n-indicator-border-radius":Q,"--n-indicator-box-shadow":Y,"--n-indicator-color":B,"--n-indicator-text-color":we}}),fe=r?Xt("slider-indicator",void 0,V,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:f,mergedValue:S,mergedDisabled:p,mergedPlacement:b,isMounted:Go(),adjustedTo:kn(e),dotTransitionDisabled:P,markInfos:D,isShowTooltip:te,shouldKeepTooltipTransition:ie,handleRailRef:i,setHandleRefs:s,setFollowerRefs:c,fillStyle:U,getHandleStyle:I,activeIndex:g,arrifiedValues:w,followerEnabledIndexSet:u,handleRailMouseDown:it,handleHandleFocus:be,handleHandleBlur:ye,handleHandleMouseEnter:W,handleHandleMouseLeave:de,handleRailKeyDown:tt,indicatorCssVars:r?void 0:V,indicatorThemeClass:fe?.themeClass,indicatorOnRender:fe?.onRender,cssVars:r?void 0:he,themeClass:L?.themeClass,onRender:L?.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},h("div",{class:`${t}-slider-rail`},h("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?h("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>h("div",{key:o.key,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,h("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return h(Ri,null,{default:()=>[h(Oi,null,{default:()=>h("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:"slider","aria-valuenow":o,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?"vertical":"horizontal","aria-disabled":this.disabled,style:this.getHandleStyle(o,i),onFocus:()=>{this.handleHandleFocus(i)},onBlur:()=>{this.handleHandleBlur(i)},onMouseenter:()=>{this.handleHandleMouseEnter(i)},onMouseleave:()=>{this.handleHandleMouseLeave(i)}},Rt(this.$slots.thumb,()=>[h("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&h(Ei,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===kn.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>h(Cr,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var s;return a?((s=this.indicatorOnRender)===null||s===void 0||s.call(this),h("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?h("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>h("div",{key:o.key,class:`${t}-slider-mark`,style:o.style},typeof o.label=="function"?o.label():o.label))):null))}}),t4=A("switch",`
2163
+ height: var(--n-height);
2164
+ min-width: var(--n-width);
2165
+ vertical-align: middle;
2166
+ user-select: none;
2167
+ -webkit-user-select: none;
2168
+ display: inline-flex;
2169
+ outline: none;
2170
+ justify-content: center;
2171
+ align-items: center;
2172
+ `,[X("children-placeholder",`
2173
+ height: var(--n-rail-height);
2174
+ display: flex;
2175
+ flex-direction: column;
2176
+ overflow: hidden;
2177
+ pointer-events: none;
2178
+ visibility: hidden;
2179
+ `),X("rail-placeholder",`
2180
+ display: flex;
2181
+ flex-wrap: none;
2182
+ `),X("button-placeholder",`
2183
+ width: calc(1.75 * var(--n-rail-height));
2184
+ height: var(--n-rail-height);
2185
+ `),A("base-loading",`
2186
+ position: absolute;
2187
+ top: 50%;
2188
+ left: 50%;
2189
+ transform: translateX(-50%) translateY(-50%);
2190
+ font-size: calc(var(--n-button-width) - 4px);
2191
+ color: var(--n-loading-color);
2192
+ transition: color .3s var(--n-bezier);
2193
+ `,[Vi({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),X("checked, unchecked",`
2194
+ transition: color .3s var(--n-bezier);
2195
+ color: var(--n-text-color);
2196
+ box-sizing: border-box;
2197
+ position: absolute;
2198
+ white-space: nowrap;
2199
+ top: 0;
2200
+ bottom: 0;
2201
+ display: flex;
2202
+ align-items: center;
2203
+ line-height: 1;
2204
+ `),X("checked",`
2205
+ right: 0;
2206
+ padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
2207
+ `),X("unchecked",`
2208
+ left: 0;
2209
+ justify-content: flex-end;
2210
+ padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
2211
+ `),G("&:focus",[X("rail",`
2212
+ box-shadow: var(--n-box-shadow-focus);
2213
+ `)]),Z("round",[X("rail","border-radius: calc(var(--n-rail-height) / 2);",[X("button","border-radius: calc(var(--n-button-height) / 2);")])]),zt("disabled",[zt("icon",[Z("rubber-band",[Z("pressed",[X("rail",[X("button","max-width: var(--n-button-width-pressed);")])]),X("rail",[G("&:active",[X("button","max-width: var(--n-button-width-pressed);")])]),Z("active",[Z("pressed",[X("rail",[X("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),X("rail",[G("&:active",[X("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),Z("active",[X("rail",[X("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),X("rail",`
2214
+ overflow: hidden;
2215
+ height: var(--n-rail-height);
2216
+ min-width: var(--n-rail-width);
2217
+ border-radius: var(--n-rail-border-radius);
2218
+ cursor: pointer;
2219
+ position: relative;
2220
+ transition:
2221
+ opacity .3s var(--n-bezier),
2222
+ background .3s var(--n-bezier),
2223
+ box-shadow .3s var(--n-bezier);
2224
+ background-color: var(--n-rail-color);
2225
+ `,[X("button-icon",`
2226
+ color: var(--n-icon-color);
2227
+ transition: color .3s var(--n-bezier);
2228
+ font-size: calc(var(--n-button-height) - 4px);
2229
+ position: absolute;
2230
+ left: 0;
2231
+ right: 0;
2232
+ top: 0;
2233
+ bottom: 0;
2234
+ display: flex;
2235
+ justify-content: center;
2236
+ align-items: center;
2237
+ line-height: 1;
2238
+ `,[Vi()]),X("button",`
2239
+ align-items: center;
2240
+ top: var(--n-offset);
2241
+ left: var(--n-offset);
2242
+ height: var(--n-button-height);
2243
+ width: var(--n-button-width-pressed);
2244
+ max-width: var(--n-button-width);
2245
+ border-radius: var(--n-button-border-radius);
2246
+ background-color: var(--n-button-color);
2247
+ box-shadow: var(--n-button-box-shadow);
2248
+ box-sizing: border-box;
2249
+ cursor: inherit;
2250
+ content: "";
2251
+ position: absolute;
2252
+ transition:
2253
+ background-color .3s var(--n-bezier),
2254
+ left .3s var(--n-bezier),
2255
+ opacity .3s var(--n-bezier),
2256
+ max-width .3s var(--n-bezier),
2257
+ box-shadow .3s var(--n-bezier);
2258
+ `)]),Z("active",[X("rail","background-color: var(--n-rail-color-active);")]),Z("loading",[X("rail",`
2259
+ cursor: wait;
2260
+ `)]),Z("disabled",[X("rail",`
2261
+ cursor: not-allowed;
2262
+ opacity: .5;
2263
+ `)])]),n4=Object.assign(Object.assign({},rt.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let cl;const r4=Le({name:"Switch",props:n4,slots:Object,setup(e){cl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?cl=CSS.supports("width","max(1px)"):cl=!1:cl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Lt(e),r=rt("Switch","-switch",t4,X3,e,t),o=hr(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,s=K(e.defaultValue),l=Xe(e,"value"),c=Vn(l,s),u=z(()=>c.value===e.checkedValue),d=K(!1),p=K(!1),m=z(()=>{const{railStyle:T}=e;if(T)return T({focused:p.value,checked:u.value})});function f(T){const{"onUpdate:value":P,onChange:O,onUpdateValue:U}=e,{nTriggerFormInput:D,nTriggerFormChange:I}=o;P&&Fe(P,T),U&&Fe(U,T),O&&Fe(O,T),s.value=T,D(),I()}function y(){const{nTriggerFormFocus:T}=o;T()}function S(){const{nTriggerFormBlur:T}=o;T()}function w(){e.loading||a.value||(c.value!==e.checkedValue?f(e.checkedValue):f(e.uncheckedValue))}function k(){p.value=!0,y()}function b(){p.value=!1,S(),d.value=!1}function v(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?f(e.checkedValue):f(e.uncheckedValue),d.value=!1)}function g(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),d.value=!0)}const C=z(()=>{const{value:T}=i,{self:{opacityDisabled:P,railColor:O,railColorActive:U,buttonBoxShadow:D,buttonColor:I,boxShadowFocus:te,loadingColor:ie,textColor:pe,iconColor:ce,[Be("buttonHeight",T)]:ge,[Be("buttonWidth",T)]:Ae,[Be("buttonWidthPressed",T)]:Re,[Be("railHeight",T)]:Ee,[Be("railWidth",T)]:ue,[Be("railBorderRadius",T)]:_e,[Be("buttonBorderRadius",T)]:me},common:{cubicBezierEaseInOut:De}}=r.value;let ke,Ye,tt;return cl?(ke=`calc((${Ee} - ${ge}) / 2)`,Ye=`max(${Ee}, ${ge})`,tt=`max(${ue}, calc(${ue} + ${ge} - ${Ee}))`):(ke=Wo((Yn(Ee)-Yn(ge))/2),Ye=Wo(Math.max(Yn(Ee),Yn(ge))),tt=Yn(Ee)>Yn(ge)?ue:Wo(Yn(ue)+Yn(ge)-Yn(Ee))),{"--n-bezier":De,"--n-button-border-radius":me,"--n-button-box-shadow":D,"--n-button-color":I,"--n-button-width":Ae,"--n-button-width-pressed":Re,"--n-button-height":ge,"--n-height":Ye,"--n-offset":ke,"--n-opacity-disabled":P,"--n-rail-border-radius":_e,"--n-rail-color":O,"--n-rail-color-active":U,"--n-rail-height":Ee,"--n-rail-width":ue,"--n-width":tt,"--n-box-shadow-focus":te,"--n-loading-color":ie,"--n-text-color":pe,"--n-icon-color":ce}}),x=n?Xt("switch",z(()=>i.value[0]),C,e):void 0;return{handleClick:w,handleBlur:b,handleFocus:k,handleKeyup:v,handleKeydown:g,mergedRailStyle:m,pressed:d,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:a,cssVars:n?void 0:C,themeClass:x?.themeClass,onRender:x?.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o?.();const{checked:a,unchecked:s,icon:l,"checked-icon":c,"unchecked-icon":u}=i,d=!(Ra(l)&&Ra(c)&&Ra(u));return h("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},h("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},qt(a,p=>qt(s,m=>p||m?h("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},h("div",{class:`${e}-switch__rail-placeholder`},h("div",{class:`${e}-switch__button-placeholder`}),p),h("div",{class:`${e}-switch__rail-placeholder`},h("div",{class:`${e}-switch__button-placeholder`}),m)):null)),h("div",{class:`${e}-switch__button`},qt(l,p=>qt(c,m=>qt(u,f=>h(Zs,null,{default:()=>this.loading?h(nu,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(m||p)?h("div",{class:`${e}-switch__button-icon`,key:m?"checked-icon":"icon"},m||p):!this.checked&&(f||p)?h("div",{class:`${e}-switch__button-icon`,key:f?"unchecked-icon":"icon"},f||p):null})))),qt(a,p=>p&&h("div",{key:"checked",class:`${e}-switch__checked`},p)),qt(s,p=>p&&h("div",{key:"unchecked",class:`${e}-switch__unchecked`},p)))))}}),xx="n-tabs",o4=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},lR({tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},["displayDirective"])),wu=Le({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:o4,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,addTabStyleRef:a,tabClassRef:s,addTabClassRef:l,tabChangeIdRef:c,onBeforeLeaveRef:u,triggerRef:d,handleAdd:p,activateTab:m,handleClose:f}=wt(xx);return{trigger:d,mergedClosable:z(()=>{if(e.internalAddable)return!1;const{closable:y}=e;return y===void 0?o.value:y}),style:i,addStyle:a,tabClass:s,addTabClass:l,clsPrefix:t,value:n,type:r,handleClose(y){y.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){p();return}const{name:y}=e,S=++c.id;if(y!==n.value){const{value:w}=u;w?Promise.resolve(w(e.name,n.value)).then(k=>{k&&c.id===S&&m(y)}):m(y)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:s,trigger:l,$slots:{default:c}}=this,u=o??i;return h("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?h("div",{class:`${t}-tabs-tab-pad`}):null,h("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},xa({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:l==="click"?this.activateTab:void 0,onMouseenter:l==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),h("span",{class:`${t}-tabs-tab__label`},e?h(Wt,null,h("div",{class:`${t}-tabs-tab__height-placeholder`}," "),h(Fn,{clsPrefix:t},{default:()=>h(Js,null)})):c?c():typeof u=="object"?u:Mi(u??n)),s&&this.type==="card"?h(Ay,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),i4=A("tabs",`
2264
+ box-sizing: border-box;
2265
+ width: 100%;
2266
+ display: flex;
2267
+ flex-direction: column;
2268
+ transition:
2269
+ background-color .3s var(--n-bezier),
2270
+ border-color .3s var(--n-bezier);
2271
+ `,[Z("segment-type",[A("tabs-rail",[G("&.transition-disabled",[A("tabs-capsule",`
2272
+ transition: none;
2273
+ `)])])]),Z("top",[A("tab-pane",`
2274
+ padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
2275
+ `)]),Z("left",[A("tab-pane",`
2276
+ padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
2277
+ `)]),Z("left, right",`
2278
+ flex-direction: row;
2279
+ `,[A("tabs-bar",`
2280
+ width: 2px;
2281
+ right: 0;
2282
+ transition:
2283
+ top .2s var(--n-bezier),
2284
+ max-height .2s var(--n-bezier),
2285
+ background-color .3s var(--n-bezier);
2286
+ `),A("tabs-tab",`
2287
+ padding: var(--n-tab-padding-vertical);
2288
+ `)]),Z("right",`
2289
+ flex-direction: row-reverse;
2290
+ `,[A("tab-pane",`
2291
+ padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
2292
+ `),A("tabs-bar",`
2293
+ left: 0;
2294
+ `)]),Z("bottom",`
2295
+ flex-direction: column-reverse;
2296
+ justify-content: flex-end;
2297
+ `,[A("tab-pane",`
2298
+ padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
2299
+ `),A("tabs-bar",`
2300
+ top: 0;
2301
+ `)]),A("tabs-rail",`
2302
+ position: relative;
2303
+ padding: 3px;
2304
+ border-radius: var(--n-tab-border-radius);
2305
+ width: 100%;
2306
+ background-color: var(--n-color-segment);
2307
+ transition: background-color .3s var(--n-bezier);
2308
+ display: flex;
2309
+ align-items: center;
2310
+ `,[A("tabs-capsule",`
2311
+ border-radius: var(--n-tab-border-radius);
2312
+ position: absolute;
2313
+ pointer-events: none;
2314
+ background-color: var(--n-tab-color-segment);
2315
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
2316
+ transition: transform 0.3s var(--n-bezier);
2317
+ `),A("tabs-tab-wrapper",`
2318
+ flex-basis: 0;
2319
+ flex-grow: 1;
2320
+ display: flex;
2321
+ align-items: center;
2322
+ justify-content: center;
2323
+ `,[A("tabs-tab",`
2324
+ overflow: hidden;
2325
+ border-radius: var(--n-tab-border-radius);
2326
+ width: 100%;
2327
+ display: flex;
2328
+ align-items: center;
2329
+ justify-content: center;
2330
+ `,[Z("active",`
2331
+ font-weight: var(--n-font-weight-strong);
2332
+ color: var(--n-tab-text-color-active);
2333
+ `),G("&:hover",`
2334
+ color: var(--n-tab-text-color-hover);
2335
+ `)])])]),Z("flex",[A("tabs-nav",`
2336
+ width: 100%;
2337
+ position: relative;
2338
+ `,[A("tabs-wrapper",`
2339
+ width: 100%;
2340
+ `,[A("tabs-tab",`
2341
+ margin-right: 0;
2342
+ `)])])]),A("tabs-nav",`
2343
+ box-sizing: border-box;
2344
+ line-height: 1.5;
2345
+ display: flex;
2346
+ transition: border-color .3s var(--n-bezier);
2347
+ `,[X("prefix, suffix",`
2348
+ display: flex;
2349
+ align-items: center;
2350
+ `),X("prefix","padding-right: 16px;"),X("suffix","padding-left: 16px;")]),Z("top, bottom",[G(">",[A("tabs-nav",[A("tabs-nav-scroll-wrapper",[G("&::before",`
2351
+ top: 0;
2352
+ bottom: 0;
2353
+ left: 0;
2354
+ width: 20px;
2355
+ `),G("&::after",`
2356
+ top: 0;
2357
+ bottom: 0;
2358
+ right: 0;
2359
+ width: 20px;
2360
+ `),Z("shadow-start",[G("&::before",`
2361
+ box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
2362
+ `)]),Z("shadow-end",[G("&::after",`
2363
+ box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
2364
+ `)])])])])]),Z("left, right",[A("tabs-nav-scroll-content",`
2365
+ flex-direction: column;
2366
+ `),G(">",[A("tabs-nav",[A("tabs-nav-scroll-wrapper",[G("&::before",`
2367
+ top: 0;
2368
+ left: 0;
2369
+ right: 0;
2370
+ height: 20px;
2371
+ `),G("&::after",`
2372
+ bottom: 0;
2373
+ left: 0;
2374
+ right: 0;
2375
+ height: 20px;
2376
+ `),Z("shadow-start",[G("&::before",`
2377
+ box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
2378
+ `)]),Z("shadow-end",[G("&::after",`
2379
+ box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
2380
+ `)])])])])]),A("tabs-nav-scroll-wrapper",`
2381
+ flex: 1;
2382
+ position: relative;
2383
+ overflow: hidden;
2384
+ `,[A("tabs-nav-y-scroll",`
2385
+ height: 100%;
2386
+ width: 100%;
2387
+ overflow-y: auto;
2388
+ scrollbar-width: none;
2389
+ `,[G("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
2390
+ width: 0;
2391
+ height: 0;
2392
+ display: none;
2393
+ `)]),G("&::before, &::after",`
2394
+ transition: box-shadow .3s var(--n-bezier);
2395
+ pointer-events: none;
2396
+ content: "";
2397
+ position: absolute;
2398
+ z-index: 1;
2399
+ `)]),A("tabs-nav-scroll-content",`
2400
+ display: flex;
2401
+ position: relative;
2402
+ min-width: 100%;
2403
+ min-height: 100%;
2404
+ width: fit-content;
2405
+ box-sizing: border-box;
2406
+ `),A("tabs-wrapper",`
2407
+ display: inline-flex;
2408
+ flex-wrap: nowrap;
2409
+ position: relative;
2410
+ `),A("tabs-tab-wrapper",`
2411
+ display: flex;
2412
+ flex-wrap: nowrap;
2413
+ flex-shrink: 0;
2414
+ flex-grow: 0;
2415
+ `),A("tabs-tab",`
2416
+ cursor: pointer;
2417
+ white-space: nowrap;
2418
+ flex-wrap: nowrap;
2419
+ display: inline-flex;
2420
+ align-items: center;
2421
+ color: var(--n-tab-text-color);
2422
+ font-size: var(--n-tab-font-size);
2423
+ background-clip: padding-box;
2424
+ padding: var(--n-tab-padding);
2425
+ transition:
2426
+ box-shadow .3s var(--n-bezier),
2427
+ color .3s var(--n-bezier),
2428
+ background-color .3s var(--n-bezier),
2429
+ border-color .3s var(--n-bezier);
2430
+ `,[Z("disabled",{cursor:"not-allowed"}),X("close",`
2431
+ margin-left: 6px;
2432
+ transition:
2433
+ background-color .3s var(--n-bezier),
2434
+ color .3s var(--n-bezier);
2435
+ `),X("label",`
2436
+ display: flex;
2437
+ align-items: center;
2438
+ z-index: 1;
2439
+ `)]),A("tabs-bar",`
2440
+ position: absolute;
2441
+ bottom: 0;
2442
+ height: 2px;
2443
+ border-radius: 1px;
2444
+ background-color: var(--n-bar-color);
2445
+ transition:
2446
+ left .2s var(--n-bezier),
2447
+ max-width .2s var(--n-bezier),
2448
+ opacity .3s var(--n-bezier),
2449
+ background-color .3s var(--n-bezier);
2450
+ `,[G("&.transition-disabled",`
2451
+ transition: none;
2452
+ `),Z("disabled",`
2453
+ background-color: var(--n-tab-text-color-disabled)
2454
+ `)]),A("tabs-pane-wrapper",`
2455
+ position: relative;
2456
+ overflow: hidden;
2457
+ transition: max-height .2s var(--n-bezier);
2458
+ `),A("tab-pane",`
2459
+ color: var(--n-pane-text-color);
2460
+ width: 100%;
2461
+ transition:
2462
+ color .3s var(--n-bezier),
2463
+ background-color .3s var(--n-bezier),
2464
+ opacity .2s var(--n-bezier);
2465
+ left: 0;
2466
+ right: 0;
2467
+ top: 0;
2468
+ `,[G("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
2469
+ transition:
2470
+ color .3s var(--n-bezier),
2471
+ background-color .3s var(--n-bezier),
2472
+ transform .2s var(--n-bezier),
2473
+ opacity .2s var(--n-bezier);
2474
+ `),G("&.next-transition-leave-active, &.prev-transition-leave-active",`
2475
+ position: absolute;
2476
+ `),G("&.next-transition-enter-from, &.prev-transition-leave-to",`
2477
+ transform: translateX(32px);
2478
+ opacity: 0;
2479
+ `),G("&.next-transition-leave-to, &.prev-transition-enter-from",`
2480
+ transform: translateX(-32px);
2481
+ opacity: 0;
2482
+ `),G("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
2483
+ transform: translateX(0);
2484
+ opacity: 1;
2485
+ `)]),A("tabs-tab-pad",`
2486
+ box-sizing: border-box;
2487
+ width: var(--n-tab-gap);
2488
+ flex-grow: 0;
2489
+ flex-shrink: 0;
2490
+ `),Z("line-type, bar-type",[A("tabs-tab",`
2491
+ font-weight: var(--n-tab-font-weight);
2492
+ box-sizing: border-box;
2493
+ vertical-align: bottom;
2494
+ `,[G("&:hover",{color:"var(--n-tab-text-color-hover)"}),Z("active",`
2495
+ color: var(--n-tab-text-color-active);
2496
+ font-weight: var(--n-tab-font-weight-active);
2497
+ `),Z("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),A("tabs-nav",[Z("line-type",[Z("top",[X("prefix, suffix",`
2498
+ border-bottom: 1px solid var(--n-tab-border-color);
2499
+ `),A("tabs-nav-scroll-content",`
2500
+ border-bottom: 1px solid var(--n-tab-border-color);
2501
+ `),A("tabs-bar",`
2502
+ bottom: -1px;
2503
+ `)]),Z("left",[X("prefix, suffix",`
2504
+ border-right: 1px solid var(--n-tab-border-color);
2505
+ `),A("tabs-nav-scroll-content",`
2506
+ border-right: 1px solid var(--n-tab-border-color);
2507
+ `),A("tabs-bar",`
2508
+ right: -1px;
2509
+ `)]),Z("right",[X("prefix, suffix",`
2510
+ border-left: 1px solid var(--n-tab-border-color);
2511
+ `),A("tabs-nav-scroll-content",`
2512
+ border-left: 1px solid var(--n-tab-border-color);
2513
+ `),A("tabs-bar",`
2514
+ left: -1px;
2515
+ `)]),Z("bottom",[X("prefix, suffix",`
2516
+ border-top: 1px solid var(--n-tab-border-color);
2517
+ `),A("tabs-nav-scroll-content",`
2518
+ border-top: 1px solid var(--n-tab-border-color);
2519
+ `),A("tabs-bar",`
2520
+ top: -1px;
2521
+ `)]),X("prefix, suffix",`
2522
+ transition: border-color .3s var(--n-bezier);
2523
+ `),A("tabs-nav-scroll-content",`
2524
+ transition: border-color .3s var(--n-bezier);
2525
+ `),A("tabs-bar",`
2526
+ border-radius: 0;
2527
+ `)]),Z("card-type",[X("prefix, suffix",`
2528
+ transition: border-color .3s var(--n-bezier);
2529
+ `),A("tabs-pad",`
2530
+ flex-grow: 1;
2531
+ transition: border-color .3s var(--n-bezier);
2532
+ `),A("tabs-tab-pad",`
2533
+ transition: border-color .3s var(--n-bezier);
2534
+ `),A("tabs-tab",`
2535
+ font-weight: var(--n-tab-font-weight);
2536
+ border: 1px solid var(--n-tab-border-color);
2537
+ background-color: var(--n-tab-color);
2538
+ box-sizing: border-box;
2539
+ position: relative;
2540
+ vertical-align: bottom;
2541
+ display: flex;
2542
+ justify-content: space-between;
2543
+ font-size: var(--n-tab-font-size);
2544
+ color: var(--n-tab-text-color);
2545
+ `,[Z("addable",`
2546
+ padding-left: 8px;
2547
+ padding-right: 8px;
2548
+ font-size: 16px;
2549
+ justify-content: center;
2550
+ `,[X("height-placeholder",`
2551
+ width: 0;
2552
+ font-size: var(--n-tab-font-size);
2553
+ `),zt("disabled",[G("&:hover",`
2554
+ color: var(--n-tab-text-color-hover);
2555
+ `)])]),Z("closable","padding-right: 8px;"),Z("active",`
2556
+ background-color: #0000;
2557
+ font-weight: var(--n-tab-font-weight-active);
2558
+ color: var(--n-tab-text-color-active);
2559
+ `),Z("disabled","color: var(--n-tab-text-color-disabled);")])]),Z("left, right",`
2560
+ flex-direction: column;
2561
+ `,[X("prefix, suffix",`
2562
+ padding: var(--n-tab-padding-vertical);
2563
+ `),A("tabs-wrapper",`
2564
+ flex-direction: column;
2565
+ `),A("tabs-tab-wrapper",`
2566
+ flex-direction: column;
2567
+ `,[A("tabs-tab-pad",`
2568
+ height: var(--n-tab-gap-vertical);
2569
+ width: 100%;
2570
+ `)])]),Z("top",[Z("card-type",[A("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),X("prefix, suffix",`
2571
+ border-bottom: 1px solid var(--n-tab-border-color);
2572
+ `),A("tabs-tab",`
2573
+ border-top-left-radius: var(--n-tab-border-radius);
2574
+ border-top-right-radius: var(--n-tab-border-radius);
2575
+ `,[Z("active",`
2576
+ border-bottom: 1px solid #0000;
2577
+ `)]),A("tabs-tab-pad",`
2578
+ border-bottom: 1px solid var(--n-tab-border-color);
2579
+ `),A("tabs-pad",`
2580
+ border-bottom: 1px solid var(--n-tab-border-color);
2581
+ `)])]),Z("left",[Z("card-type",[A("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),X("prefix, suffix",`
2582
+ border-right: 1px solid var(--n-tab-border-color);
2583
+ `),A("tabs-tab",`
2584
+ border-top-left-radius: var(--n-tab-border-radius);
2585
+ border-bottom-left-radius: var(--n-tab-border-radius);
2586
+ `,[Z("active",`
2587
+ border-right: 1px solid #0000;
2588
+ `)]),A("tabs-tab-pad",`
2589
+ border-right: 1px solid var(--n-tab-border-color);
2590
+ `),A("tabs-pad",`
2591
+ border-right: 1px solid var(--n-tab-border-color);
2592
+ `)])]),Z("right",[Z("card-type",[A("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),X("prefix, suffix",`
2593
+ border-left: 1px solid var(--n-tab-border-color);
2594
+ `),A("tabs-tab",`
2595
+ border-top-right-radius: var(--n-tab-border-radius);
2596
+ border-bottom-right-radius: var(--n-tab-border-radius);
2597
+ `,[Z("active",`
2598
+ border-left: 1px solid #0000;
2599
+ `)]),A("tabs-tab-pad",`
2600
+ border-left: 1px solid var(--n-tab-border-color);
2601
+ `),A("tabs-pad",`
2602
+ border-left: 1px solid var(--n-tab-border-color);
2603
+ `)])]),Z("bottom",[Z("card-type",[A("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),X("prefix, suffix",`
2604
+ border-top: 1px solid var(--n-tab-border-color);
2605
+ `),A("tabs-tab",`
2606
+ border-bottom-left-radius: var(--n-tab-border-radius);
2607
+ border-bottom-right-radius: var(--n-tab-border-radius);
2608
+ `,[Z("active",`
2609
+ border-top: 1px solid #0000;
2610
+ `)]),A("tabs-tab-pad",`
2611
+ border-top: 1px solid var(--n-tab-border-color);
2612
+ `),A("tabs-pad",`
2613
+ border-top: 1px solid var(--n-tab-border-color);
2614
+ `)])])])]),np=SF,a4=Object.assign(Object.assign({},rt.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),s4=Le({name:"Tabs",props:a4,slots:Object,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:s}=Lt(e),l=rt("Tabs","-tabs",i4,J3,e,a),c=K(null),u=K(null),d=K(null),p=K(null),m=K(null),f=K(null),y=K(!0),S=K(!0),w=zs(e,["labelSize","size"]),k=zs(e,["activeName","value"]),b=K((r=(n=k.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=$o(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),v=Vn(k,b),g={id:0},C=z(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});St(v,()=>{g.id=0,U(),D()});function x(){var L;const{value:V}=v;return V===null?null:(L=c.value)===null||L===void 0?void 0:L.querySelector(`[data-name="${V}"]`)}function T(L){if(e.type==="card")return;const{value:V}=u;if(!V)return;const fe=V.style.opacity==="0";if(L){const N=`${a.value}-tabs-bar--disabled`,{barWidth:B,placement:Y}=e;if(L.dataset.disabled==="true"?V.classList.add(N):V.classList.remove(N),["top","bottom"].includes(Y)){if(O(["top","maxHeight","height"]),typeof B=="number"&&L.offsetWidth>=B){const we=Math.floor((L.offsetWidth-B)/2)+L.offsetLeft;V.style.left=`${we}px`,V.style.maxWidth=`${B}px`}else V.style.left=`${L.offsetLeft}px`,V.style.maxWidth=`${L.offsetWidth}px`;V.style.width="8192px",fe&&(V.style.transition="none"),V.offsetWidth,fe&&(V.style.transition="",V.style.opacity="1")}else{if(O(["left","maxWidth","width"]),typeof B=="number"&&L.offsetHeight>=B){const we=Math.floor((L.offsetHeight-B)/2)+L.offsetTop;V.style.top=`${we}px`,V.style.maxHeight=`${B}px`}else V.style.top=`${L.offsetTop}px`,V.style.maxHeight=`${L.offsetHeight}px`;V.style.height="8192px",fe&&(V.style.transition="none"),V.offsetHeight,fe&&(V.style.transition="",V.style.opacity="1")}}}function P(){if(e.type==="card")return;const{value:L}=u;L&&(L.style.opacity="0")}function O(L){const{value:V}=u;if(V)for(const fe of L)V.style[fe]=""}function U(){if(e.type==="card")return;const L=x();L?T(L):P()}function D(){var L;const V=(L=m.value)===null||L===void 0?void 0:L.$el;if(!V)return;const fe=x();if(!fe)return;const{scrollLeft:N,offsetWidth:B}=V,{offsetLeft:Y,offsetWidth:we}=fe;N>Y?V.scrollTo({top:0,left:Y,behavior:"smooth"}):Y+we>N+B&&V.scrollTo({top:0,left:Y+we-B,behavior:"smooth"})}const I=K(null);let te=0,ie=null;function pe(L){const V=I.value;if(V){te=L.getBoundingClientRect().height;const fe=`${te}px`,N=()=>{V.style.height=fe,V.style.maxHeight=fe};ie?(N(),ie(),ie=null):ie=N}}function ce(L){const V=I.value;if(V){const fe=L.getBoundingClientRect().height,N=()=>{document.body.offsetHeight,V.style.maxHeight=`${fe}px`,V.style.height=`${Math.max(te,fe)}px`};ie?(ie(),ie=null,N()):ie=N}}function ge(){const L=I.value;if(L){L.style.maxHeight="",L.style.height="";const{paneWrapperStyle:V}=e;if(typeof V=="string")L.style.cssText=V;else if(V){const{maxHeight:fe,height:N}=V;fe!==void 0&&(L.style.maxHeight=fe),N!==void 0&&(L.style.height=N)}}}const Ae={value:[]},Re=K("next");function Ee(L){const V=v.value;let fe="next";for(const N of Ae.value){if(N===V)break;if(N===L){fe="prev";break}}Re.value=fe,ue(L)}function ue(L){const{onActiveNameChange:V,onUpdateValue:fe,"onUpdate:value":N}=e;V&&Fe(V,L),fe&&Fe(fe,L),N&&Fe(N,L),b.value=L}function _e(L){const{onClose:V}=e;V&&Fe(V,L)}function me(){const{value:L}=u;if(!L)return;const V="transition-disabled";L.classList.add(V),U(),L.classList.remove(V)}const De=K(null);function ke({transitionDisabled:L}){const V=c.value;if(!V)return;L&&V.classList.add("transition-disabled");const fe=x();fe&&De.value&&(De.value.style.width=`${fe.offsetWidth}px`,De.value.style.height=`${fe.offsetHeight}px`,De.value.style.transform=`translateX(${fe.offsetLeft-Yn(getComputedStyle(V).paddingLeft)}px)`,L&&De.value.offsetWidth),L&&V.classList.remove("transition-disabled")}St([v],()=>{e.type==="segment"&&On(()=>{ke({transitionDisabled:!1})})}),En(()=>{e.type==="segment"&&ke({transitionDisabled:!0})});let Ye=0;function tt(L){var V;if(L.contentRect.width===0&&L.contentRect.height===0||Ye===L.contentRect.width)return;Ye=L.contentRect.width;const{type:fe}=e;if((fe==="line"||fe==="bar")&&me(),fe!=="segment"){const{placement:N}=e;ne((N==="top"||N==="bottom"?(V=m.value)===null||V===void 0?void 0:V.$el:f.value)||null)}}const Ne=np(tt,64);St([()=>e.justifyContent,()=>e.size],()=>{On(()=>{const{type:L}=e;(L==="line"||L==="bar")&&me()})});const it=K(!1);function Ze(L){var V;const{target:fe,contentRect:{width:N,height:B}}=L,Y=fe.parentElement.parentElement.offsetWidth,we=fe.parentElement.parentElement.offsetHeight,{placement:Q}=e;if(!it.value)Q==="top"||Q==="bottom"?Y<N&&(it.value=!0):we<B&&(it.value=!0);else{const{value:Te}=p;if(!Te)return;Q==="top"||Q==="bottom"?Y-N>Te.$el.offsetWidth&&(it.value=!1):we-B>Te.$el.offsetHeight&&(it.value=!1)}ne(((V=m.value)===null||V===void 0?void 0:V.$el)||null)}const F=np(Ze,64);function H(){const{onAdd:L}=e;L&&L(),On(()=>{const V=x(),{value:fe}=m;!V||!fe||fe.scrollTo({left:V.offsetLeft,top:0,behavior:"smooth"})})}function ne(L){if(!L)return;const{placement:V}=e;if(V==="top"||V==="bottom"){const{scrollLeft:fe,scrollWidth:N,offsetWidth:B}=L;y.value=fe<=0,S.value=fe+B>=N}else{const{scrollTop:fe,scrollHeight:N,offsetHeight:B}=L;y.value=fe<=0,S.value=fe+B>=N}}const be=np(L=>{ne(L.target)},64);_n(xx,{triggerRef:Xe(e,"trigger"),tabStyleRef:Xe(e,"tabStyle"),tabClassRef:Xe(e,"tabClass"),addTabStyleRef:Xe(e,"addTabStyle"),addTabClassRef:Xe(e,"addTabClass"),paneClassRef:Xe(e,"paneClass"),paneStyleRef:Xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:Xe(e,"type"),closableRef:Xe(e,"closable"),valueRef:v,tabChangeIdRef:g,onBeforeLeaveRef:Xe(e,"onBeforeLeave"),activateTab:Ee,handleClose:_e,handleAdd:H}),zb(()=>{U(),D()}),Vr(()=>{const{value:L}=d;if(!L)return;const{value:V}=a,fe=`${V}-tabs-nav-scroll-wrapper--shadow-start`,N=`${V}-tabs-nav-scroll-wrapper--shadow-end`;y.value?L.classList.remove(fe):L.classList.add(fe),S.value?L.classList.remove(N):L.classList.add(N)});const ye={syncBarPosition:()=>{U()}},W=()=>{ke({transitionDisabled:!0})},de=z(()=>{const{value:L}=w,{type:V}=e,fe={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[V],N=`${L}${fe}`,{self:{barColor:B,closeIconColor:Y,closeIconColorHover:we,closeIconColorPressed:Q,tabColor:Te,tabBorderColor:Qe,paneTextColor:at,tabFontWeight:st,tabBorderRadius:ot,tabFontWeightActive:Ot,colorSegment:Et,fontWeightStrong:bt,tabColorSegment:_,closeSize:E,closeIconSize:ve,closeColorHover:Me,closeColorPressed:Oe,closeBorderRadius:j,[Be("panePadding",L)]:Ce,[Be("tabPadding",N)]:Ie,[Be("tabPaddingVertical",N)]:Ue,[Be("tabGap",N)]:Ct,[Be("tabGap",`${N}Vertical`)]:Mt,[Be("tabTextColor",V)]:le,[Be("tabTextColorActive",V)]:$e,[Be("tabTextColorHover",V)]:Ge,[Be("tabTextColorDisabled",V)]:ct,[Be("tabFontSize",L)]:Bt},common:{cubicBezierEaseInOut:_t}}=l.value;return{"--n-bezier":_t,"--n-color-segment":Et,"--n-bar-color":B,"--n-tab-font-size":Bt,"--n-tab-text-color":le,"--n-tab-text-color-active":$e,"--n-tab-text-color-disabled":ct,"--n-tab-text-color-hover":Ge,"--n-pane-text-color":at,"--n-tab-border-color":Qe,"--n-tab-border-radius":ot,"--n-close-size":E,"--n-close-icon-size":ve,"--n-close-color-hover":Me,"--n-close-color-pressed":Oe,"--n-close-border-radius":j,"--n-close-icon-color":Y,"--n-close-icon-color-hover":we,"--n-close-icon-color-pressed":Q,"--n-tab-color":Te,"--n-tab-font-weight":st,"--n-tab-font-weight-active":Ot,"--n-tab-padding":Ie,"--n-tab-padding-vertical":Ue,"--n-tab-gap":Ct,"--n-tab-gap-vertical":Mt,"--n-pane-padding-left":er(Ce,"left"),"--n-pane-padding-right":er(Ce,"right"),"--n-pane-padding-top":er(Ce,"top"),"--n-pane-padding-bottom":er(Ce,"bottom"),"--n-font-weight-strong":bt,"--n-tab-color-segment":_}}),he=s?Xt("tabs",z(()=>`${w.value[0]}${e.type[0]}`),de,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:v,renderedNames:new Set,segmentCapsuleElRef:De,tabsPaneWrapperRef:I,tabsElRef:c,barElRef:u,addTabInstRef:p,xScrollInstRef:m,scrollWrapperElRef:d,addTabFixed:it,tabWrapperStyle:C,handleNavResize:Ne,mergedSize:w,handleScroll:be,handleTabsResize:F,cssVars:s?void 0:de,themeClass:he?.themeClass,animationDirection:Re,renderNameListRef:Ae,yScrollElRef:f,handleSegmentResize:W,onAnimationBeforeLeave:pe,onAnimationEnter:ce,onAnimationAfterEnter:ge,onRender:he?.onRender},ye)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:s,paneWrapperClass:l,paneWrapperStyle:c,$slots:{default:u,prefix:d,suffix:p}}=this;s?.();const m=u?$o(u()).filter(g=>g.type.__TAB_PANE__===!0):[],f=u?$o(u()).filter(g=>g.type.__TAB__===!0):[],y=!f.length,S=t==="card",w=t==="segment",k=!S&&!w&&this.justifyContent;a.value=[];const b=()=>{const g=h("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},k?null:h("div",{class:`${e}-tabs-scroll-padding`,style:n==="top"||n==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),y?m.map((C,x)=>(a.value.push(C.props.name),rp(h(wu,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!k||k==="center"||k==="start"||k==="end")}),C.children?{default:C.children.tab}:void 0)))):f.map((C,x)=>(a.value.push(C.props.name),rp(x!==0&&!k?_x(C):C))),!r&&o&&S?Sx(o,(y?m.length:f.length)!==0):null,k?null:h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return h("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},S&&o?h(Zo,{onResize:this.handleTabsResize},{default:()=>g}):g,S?h("div",{class:`${e}-tabs-pad`}):null,S?null:h("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},v=w?"top":n;return h("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,k&&`${e}-tabs--flex`,`${e}-tabs--${v}`],style:this.cssVars},h("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${v}`,`${e}-tabs-nav`]},qt(d,g=>g&&h("div",{class:`${e}-tabs-nav__prefix`},g)),w?h(Zo,{onResize:this.handleSegmentResize},{default:()=>h("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},h("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},h("div",{class:`${e}-tabs-wrapper`},h("div",{class:`${e}-tabs-tab`}))),y?m.map((g,C)=>(a.value.push(g.props.name),h(wu,Object.assign({},g.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),g.children?{default:g.children.tab}:void 0))):f.map((g,C)=>(a.value.push(g.props.name),C===0?g:_x(g))))}):h(Zo,{onResize:this.handleNavResize},{default:()=>h("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(v)?h(X$,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:b}):h("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},b()))}),r&&o&&S?Sx(o,!0):null,qt(p,g=>g&&h("div",{class:`${e}-tabs-nav__suffix`},g))),y&&(this.animated&&(v==="top"||v==="bottom")?h("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,l]},Cx(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Cx(m,this.mergedValue,this.renderedNames)))}});function Cx(e,t,n,r,o,i,a){const s=[];return e.forEach(l=>{const{name:c,displayDirective:u,"display-directive":d}=l.props,p=f=>u===f||d===f,m=t===c;if(l.key!==void 0&&(l.key=c),m||p("show")||p("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const f=!p("if");s.push(f?Hr(l,[[_c,m]]):l)}}),a?h(vb,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>s}):s}function Sx(e,t){return h(wu,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function _x(e){const t=eo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function rp(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const l4=A("a",`
2615
+ cursor: pointer;
2616
+ transition:
2617
+ color .3s var(--n-bezier),
2618
+ text-decoration-color .3s var(--n-bezier);
2619
+ text-decoration-color: var(--n-text-color);
2620
+ color: var(--n-text-color);
2621
+ `),c4=Object.assign({},rt.props),u4=Le({name:"A",props:c4,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Lt(e),r=rt("Typography","-a",l4,ix,e,t),o=z(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:s}}=r.value;return{"--n-text-color":s,"--n-bezier":a}}),i=n?Xt("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),h("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),d4=A("text",`
2622
+ transition: color .3s var(--n-bezier);
2623
+ color: var(--n-text-color);
2624
+ `,[Z("strong",`
2625
+ font-weight: var(--n-font-weight-strong);
2626
+ `),Z("italic",{fontStyle:"italic"}),Z("underline",{textDecoration:"underline"}),Z("code",`
2627
+ line-height: 1.4;
2628
+ display: inline-block;
2629
+ font-family: var(--n-font-famliy-mono);
2630
+ transition:
2631
+ color .3s var(--n-bezier),
2632
+ border-color .3s var(--n-bezier),
2633
+ background-color .3s var(--n-bezier);
2634
+ box-sizing: border-box;
2635
+ padding: .05em .35em 0 .35em;
2636
+ border-radius: var(--n-code-border-radius);
2637
+ font-size: .9em;
2638
+ color: var(--n-code-text-color);
2639
+ background-color: var(--n-code-color);
2640
+ border: var(--n-code-border);
2641
+ `)]),f4=Object.assign(Object.assign({},rt.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),li=Le({name:"Text",props:f4,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Lt(e),r=rt("Typography","-text",d4,ix,e,t),o=z(()=>{const{depth:a,type:s}=e,l=s==="default"?a===void 0?"textColor":`textColor${a}Depth`:Be("textColor",s),{common:{fontWeightStrong:c,fontFamilyMono:u,cubicBezierEaseInOut:d},self:{codeTextColor:p,codeBorderRadius:m,codeColor:f,codeBorder:y,[l]:S}}=r.value;return{"--n-bezier":d,"--n-text-color":S,"--n-font-weight-strong":c,"--n-font-famliy-mono":u,"--n-code-border-radius":m,"--n-code-text-color":p,"--n-code-color":f,"--n-code-border":y}}),i=n?Xt("text",z(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:zs(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?h("code",{class:o,style:this.cssVars},this.delete?h("del",null,i):i):this.delete?h("del",{class:o,style:this.cssVars},i):h(this.compitableTag||"span",{class:o,style:this.cssVars},i)}});/**
2642
+ * @license @tabler/icons-vue v3.35.0 - MIT
2643
+ *
2644
+ * This source code is licensed under the MIT license.
2645
+ * See the LICENSE file in the root directory of this source tree.
2646
+ */var kx={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
2647
+ * @license @tabler/icons-vue v3.35.0 - MIT
2648
+ *
2649
+ * This source code is licensed under the MIT license.
2650
+ * See the LICENSE file in the root directory of this source tree.
2651
+ */const op=(e,t,n,r)=>({color:o="currentColor",size:i=24,stroke:a=2,title:s,class:l,...c},{attrs:u,slots:d})=>{let p=[...r.map(m=>h(...m)),...d.default?[d.default()]:[]];return s&&(p=[h("title",s),...p]),h("svg",{...kx[e],width:i,height:i,...u,class:["tabler-icon",`tabler-icon-${t}`],...e==="filled"?{fill:o}:{"stroke-width":a??kx[e]["stroke-width"],stroke:o},...c},p)};/**
2652
+ * @license @tabler/icons-vue v3.35.0 - MIT
2653
+ *
2654
+ * This source code is licensed under the MIT license.
2655
+ * See the LICENSE file in the root directory of this source tree.
2656
+ */var h4=op("outline","link","Link",[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]]);/**
2657
+ * @license @tabler/icons-vue v3.35.0 - MIT
2658
+ *
2659
+ * This source code is licensed under the MIT license.
2660
+ * See the LICENSE file in the root directory of this source tree.
2661
+ */var p4=op("outline","lock","Lock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]]);/**
2662
+ * @license @tabler/icons-vue v3.35.0 - MIT
2663
+ *
2664
+ * This source code is licensed under the MIT license.
2665
+ * See the LICENSE file in the root directory of this source tree.
2666
+ */var m4=op("filled","info-circle-filled","InfoCircleFilled",[["path",{d:"M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm0 9h-1l-.117 .007a1 1 0 0 0 0 1.986l.117 .007v3l.007 .117a1 1 0 0 0 .876 .876l.117 .007h1l.117 -.007a1 1 0 0 0 .876 -.876l.007 -.117l-.007 -.117a1 1 0 0 0 -.764 -.857l-.112 -.02l-.117 -.006v-3l-.007 -.117a1 1 0 0 0 -.876 -.876l-.117 -.007zm.01 -3l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",key:"svg-0"}]]);const v4={class:"schema-array"},g4={key:0,class:"schema-array-tags"},b4={class:"flex flex-wrap",style:{gap:"0.4rem"}},y4={key:1,class:"schema-array-multiselect"},w4={class:"checkbox-group-grid"},x4={key:2,class:"schema-array-default"},C4=Le({__name:"SchemaArray",props:{schema:{},value:{}},emits:["update:value"],setup(e){const t=e,n=z(()=>t.schema.inner),r=z(()=>t.schema?.inner?.list?.filter(({type:c,value:u})=>c==="const"&&typeof u=="string")),o=K(""),i=z(()=>!!(t.schema.inner?.type==="string"||t.schema.inner?.list?.some(({type:c})=>c==="string")||t.schema.inner?.list?.some(({type:c})=>c==="number"))),a=(c,u)=>h(za,{type:["success","warning","error","info"][u%4],closable:!0,onClose:()=>{t.value.value.splice(u,1)}},{default:()=>c}),s=z(()=>{if(!o.value)return[];const c={label:o.value,value:o.value},u=r.value?.map(({value:f,meta:y})=>({label:y.description||f,value:f}))||[],d=u.filter(({value:f})=>f.toLowerCase().startsWith(o.value.toLowerCase())),p=u.filter(({value:f})=>f.toLowerCase().includes(o.value.toLowerCase())),m=[...d,...p];return i.value&&m.push(c),[...new Set(m)].filter(({value:f})=>!t.value.includes(f))});function l(c,u){t.value[c]=u}return(c,u)=>{const d=Uk("NCheckbox");return ft(),yn("div",v4,[c.schema.meta.role==="tags"?(ft(),yn("div",g4,[It(Tt(z3),{value:c.value,"onUpdate:value":u[1]||(u[1]=p=>c.schema.meta.disabled?void 0:c.$emit("update:value",p))},{input:Kt(({submit:p,deactivate:m})=>[It(Tt(vM),{size:"small",value:o.value,"onUpdate:value":u[0]||(u[0]=f=>o.value=f),options:s.value,"render-tag":a,"clear-after-select":"",onSelect:f=>p(f),onBlur:m},null,8,["value","options","onSelect","onBlur"])]),_:1},8,["value"]),r.value?.length?(ft(),an(Tt(Qy),{key:0},{trigger:Kt(()=>[It(Tt(li),{depth:"3",style:{"font-size":"0.5rem",cursor:"help"}},{default:Kt(()=>[It(Tt(Iw),null,{default:Kt(()=>[It(Tt(m4))]),_:1}),u[4]||(u[4]=xr(" Options cheatsheet",-1))]),_:1})]),default:Kt(()=>[So("div",b4,[(ft(!0),yn(Wt,null,xi(r.value,p=>(ft(),an(Tt(za),{size:"tiny"},{default:Kt(()=>[xr(zo(p.value),1)]),_:2},1024))),256))]),i.value?(ft(),an(Tt(li),{key:0,depth:"3"},{default:Kt(()=>[...u[5]||(u[5]=[xr("...or anything else",-1)])]),_:1})):_o("",!0)]),_:1})):_o("",!0)])):c.schema.meta.role==="multiselect"?(ft(),yn("div",y4,[It(Tt(Fw),{value:c.value,"onUpdate:value":u[2]||(u[2]=p=>c.$emit("update:value",p)),disabled:c.schema.meta.disabled},{default:Kt(()=>[It(Tt(XB),{style:{"max-height":"10rem"},trigger:"none"},{default:Kt(()=>[So("div",w4,[(ft(!0),yn(Wt,null,xi(n.value.list,p=>(ft(),an(d,{value:p.value},{default:Kt(()=>[xr(zo(p.meta.description||p.value),1),p.meta.description?(ft(),an(Tt(li),{key:0,depth:"3"},{default:Kt(()=>[xr(" ("+zo(p.value)+")",1)]),_:2},1024)):_o("",!0)]),_:2},1032,["value"]))),256))])]),_:1})]),_:1},8,["value","disabled"])])):(ft(),yn("div",x4,[It(Tt(rx),{"show-sort-button":"",value:c.value,"onUpdate:value":u[3]||(u[3]=p=>c.$emit("update:value",p)),disabled:c.schema.meta.disabled},{default:Kt(({value:p,index:m})=>[It(ap,{class:"schema-array-inner",schema:n.value,value:p,"onUpdate:value":f=>l(m,f)},null,8,["schema","value","onUpdate:value"])]),_:1},8,["value","disabled"])]))])}}}),ip=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},S4=ip(C4,[["__scopeId","data-v-b2e4562d"]]),_4={class:"schema-boolean"},k4=ip(Le({__name:"SchemaBoolean",props:{schema:{},value:{type:Boolean}},emits:["update:value"],setup(e){return(t,n)=>(ft(),yn("div",_4,[It(Tt(r4),{value:t.value,indeterminate:typeof t.value>"u"||t.value===null,"onUpdate:value":n[0]||(n[0]=r=>t.schema.meta.disabled?void 0:t.$emit("update:value",r))},null,8,["value","indeterminate"])]))}}),[["__scopeId","data-v-90eb1bd1"]]),P4={class:"schema-dict"},T4=Le({__name:"SchemaDict",props:{schema:{},value:{default:{}},status:{},feedback:{},placeholder:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=K(Object.keys(n.value).map(a=>({key:a,value:n.value[a]})));function i(a){const s={};a.forEach(l=>{s[l.key]=l.value}),r("update:value",s)}return(a,s)=>(ft(),yn("div",P4,[It(Tt(mx),{type:"warning"},{default:Kt(()=>[...s[0]||(s[0]=[xr("警告:类型 Dict 目前处于实验阶段,可能会有不稳定的行为",-1)])]),_:1}),It(Tt(rx),{"default-value":o.value,"onUpdate:value":i,preset:"pair"},null,8,["default-value"])]))}}),$4={class:"schema-number"},R4=Le({__name:"SchemaNumber",props:{schema:{},value:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=z(()=>n.schema.meta.max),o=z(()=>n.schema.meta.min),i=z(()=>n.schema.meta.step??1),a=z(()=>{switch(n.schema.meta.role){default:return GB;case"slider":return e4}});return(s,l)=>(ft(),yn("div",$4,[s.schema.meta.role==="date"||s.schema.meta.role==="datetime"?(ft(),an(Tt(nx),{key:0,type:s.schema.meta.role,value:s.value,"onUpdate:value":l[0]||(l[0]=c=>s.$emit("update:value",c||0)),disabled:s.schema.meta.disabled,clearable:""},null,8,["type","value","disabled"])):(ft(),an(vc(a.value),{key:1,value:s.value,"onUpdate:value":l[1]||(l[1]=c=>s.$emit("update:value",c)),max:r.value,min:o.value,step:i.value,marks:{[""+o.value]:o.value??0,[""+r.value]:r.value,[""+s.value]:s.value},disabled:s.schema.meta.disabled},null,40,["value","max","min","step","marks","disabled"]))]))}}),O4={class:"schema-object"},E4=Le({__name:"SchemaObject",props:{schema:{},value:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t;function o(i,a){n.value[i]=a}return wi(()=>{(n.value===void 0||n.value===null)&&(console.warn(`SchemaObject: value is ${n.value}, set to {}`),r("update:value",{}))}),(i,a)=>(ft(),yn("div",O4,[i.value?(ft(!0),yn(Wt,{key:0},xi(i.schema.dict,(s,l)=>(ft(),an(ap,{key:l,name:l,schema:s,value:i.value[l],"onUpdate:value":c=>o(l,c)},null,8,["name","schema","value","onUpdate:value"]))),128)):_o("",!0)]))}});function D4(e,t){try{const n=e(t);switch(e.meta.role){case"image-url":case"url":if(Px(t)==="error")throw new TypeError("Invalid URL input");break}if(e.meta.required)switch(e.type){case"string":if(t?.trim()==="")throw new RangeError("This item can not be empty");break;case"boolean":if(t===null)throw new RangeError("A choice must be made");break}return{status:"success",feedback:""}}catch(n){return e.type==="union"&&e.meta.role==="multiselect"&&Array.isArray(t)?{status:"success",feedback:""}:(console.warn("[SchemaItem] validate failed",{schema:e,value:t},n),{status:"error",feedback:n.toString()})}}function Px(e,t){if(e){try{const n=new URL(e);if(t||n.protocol.startsWith("http"))return"success"}catch{}return"error"}}function F4(e){window.open(e,"handleLinkPreview","centerscreen,chrome=yes,width=1200,height=800")}const A4={class:"schema-string"},M4={key:0,class:"raw-html-info"},I4=["innerHTML"],z4={key:1,class:"raw-text-info"},B4={key:2,class:"plain-text-input"},N4=Le({__name:"SchemaString",props:{schema:{},value:{},status:{},feedback:{},placeholder:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=z(()=>{switch(n.schema.meta.role){case"textarea":case"password":return n.schema.meta.role;default:return"text"}});return wi(()=>{typeof n.value!="string"&&(console.warn(`SchemaString: value is ${n.value}, set to ''`),r("update:value",""))}),(i,a)=>(ft(),yn("div",A4,[i.schema.meta.role==="html-info"?(ft(),yn("div",M4,[So("div",{innerHTML:i.schema.meta.description},null,8,I4)])):i.schema.meta.role==="info"?(ft(),yn("div",z4,[So("div",null,zo(i.schema.meta.description),1)])):(ft(),yn("div",B4,[It(Tt(lM),null,{default:Kt(()=>[["url","image-url"].includes(i.schema.meta.role||"")?(ft(),an(Tt(mn),{key:0,size:i.schema.meta.role==="image-url"?"small":"medium","render-icon":()=>h(Tt(h4)),type:i.status,disabled:i.schema.meta.disabled||Tt(Px)(i.value)!=="success",onClick:a[0]||(a[0]=s=>Tt(F4)(i.value))},null,8,["size","render-icon","type","disabled"])):_o("",!0),It(Tt(_r),{disabled:i.schema.meta.disabled,size:i.schema.meta.role==="image-url"?"small":"medium",type:o.value,value:i.value,placeholder:i.placeholder,"onUpdate:value":a[1]||(a[1]=s=>i.$emit("update:value",s)),clearable:"",maxlength:i.schema.meta.max||void 0,minlength:i.schema.meta.min||void 0,"show-count":!!(i.schema.meta.max||i.schema.meta.min)},null,8,["disabled","size","type","value","placeholder","maxlength","minlength","show-count"])]),_:1})]))]))}}),L4={class:"schema-union"},H4=Le({__name:"SchemaUnion",props:{schema:{},value:{}},emits:["update:value"],setup(e){const t=e,n=z(()=>(t.schema.list||[])?.map(o=>({label:r(o),value:o.value})));function r(o){return()=>o.meta.description?h(li,{},{default(){return[o.meta.description,h(li,{depth:3},{default:()=>` (${o.value})`})]}}):h(li,{},{default:()=>o.value})}return(o,i)=>(ft(),yn("div",L4,[o.schema.meta.role==="multiselect"?(ft(),an(Tt(Fw),{key:0,value:o.value,"onUpdate:value":i[0]||(i[0]=a=>o.$emit("update:value",a)),max:o.schema.meta.max,disabled:o.schema.meta.disabled},{default:Kt(()=>[It(Tt(Yh),null,{default:Kt(()=>[(ft(!0),yn(Wt,null,xi(o.schema.list,a=>(ft(),an(Tt(lz),{value:a.value},{default:Kt(()=>[(ft(),an(vc(r(a))))]),_:2},1032,["value"]))),256))]),_:1})]),_:1},8,["value","max","disabled"])):o.schema.meta.role==="datetime"?(ft(),an(Tt(nx),{key:1,disabled:o.schema.meta.disabled},null,8,["disabled"])):o.schema.meta.role==="radio"?(ft(),an(Tt(_z),{key:2,value:o.value,"onUpdate:value":i[1]||(i[1]=a=>o.$emit("update:value",a)),disabled:o.schema.meta.disabled},{default:Kt(()=>[It(Tt(Yh),null,{default:Kt(()=>[(ft(!0),yn(Wt,null,xi(o.schema.list,a=>(ft(),an(Tt(wz),{value:a.value},{default:Kt(()=>[(ft(),an(vc(r(a))))]),_:2},1032,["value"]))),256))]),_:1})]),_:1},8,["value","disabled"])):(ft(),an(Tt(hz),{key:3,options:n.value,value:o.value,"onUpdate:value":i[2]||(i[2]=a=>o.$emit("update:value",a)),disabled:o.schema.meta.disabled},null,8,["options","value","disabled"]))]))}}),V4={key:0,style:{"user-select":"none",opacity:"0.5"}},j4={class:"schema-item-inner"},ap=ip(Le({__name:"SchemaItem",props:{schema:{},value:{},name:{},placeholder:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,o=z(()=>typeof n.schema.meta.description===void 0||n.schema.meta.description===""),i=z(()=>{switch(n.schema.type){case"array":return S4;case"boolean":return k4;case"dict":return T4;case"number":return R4;case"object":return E4;case"string":return N4;case"union":return H4;default:return Le({render(){return h("div",{},[h("pre",{lang:"json"},{default:()=>JSON.stringify(n.value,null,2)}),h(mx,{class:"schema-item-missing-handler",type:"warning"},{default:()=>`Type "${n.schema.type}" is not supported yet`})])}})}}),a=z(()=>D4(n.schema,n.value)),s=z(()=>{if(n.schema.meta.extra?.default!==void 0)return n.schema.meta.extra.default;if(n.schema.meta.default!==void 0)return typeof n.schema.meta.default=="object"&&Reflect.ownKeys(n.schema.meta.default).length<1?void 0:n.schema.meta.default}),l=()=>{r("update:value",s.value)};return(c,u)=>Hr((ft(),an(Tt(HB),{class:Xl(["schema-item",`schema-type-${c.schema.type} schema-role-${c.schema.meta.role||"default"} ${o.value?"schema-without-label":""}`]),"validation-status":a.value.status,feedback:a.value.feedback,required:c.schema.meta.required},qk({default:Kt(()=>[So("div",j4,[(ft(),an(vc(i.value),{schema:c.schema,value:c.value,placeholder:c.placeholder,status:a.value.status,feedback:a.value.feedback,"onUpdate:value":u[0]||(u[0]=d=>c.$emit("update:value",d))},null,40,["schema","value","placeholder","status","feedback"]))])]),_:2},[!o.value&&!c.schema.meta.role?.includes("info")?{name:"label",fn:Kt(()=>[Yd(c.$slots,"label",{},()=>[c.schema.meta.disabled?(ft(),an(Tt(li),{key:0,style:{"margin-right":"0.5rem"}},{default:Kt(()=>[It(Tt(Iw),null,{default:Kt(()=>[It(Tt(p4))]),_:1})]),_:1})):_o("",!0),It(Tt(li),null,{default:Kt(()=>[xr(zo(c.schema.meta.description?.toString()),1),c.name?(ft(),yn("span",V4," ("+zo(c.name)+")",1)):_o("",!0)]),_:1}),s.value!==void 0&&c.value!==s.value?(ft(),an(Tt(u4),{key:1,onClick:l,style:{"margin-left":"1em"}},{default:Kt(()=>[...u[1]||(u[1]=[xr("reset",-1)])]),_:1})):_o("",!0)],!0)]),key:"0"}:void 0]),1032,["validation-status","feedback","required","class"])),[[_c,!c.schema.meta.hidden]])}}),[["__scopeId","data-v-21c3f602"]]);function Xi(e,t=new WeakMap){if(Rn(e))return Xi(e.value,t);if(e===null||typeof e!="object")return e;if(t.has(e))return t.get(e);if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(e instanceof Map){const o=new Map;return t.set(e,o),Array.from(e.entries()).forEach(([i,a])=>{o.set(i,Xi(a,t))}),o}if(e instanceof Set){const o=new Set;return t.set(e,o),Array.from(e).forEach(i=>{o.add(Xi(i,t))}),o}if(Array.isArray(e)){const o=[];t.set(e,o);for(const i of e)o.push(Xi(i,t));return o}const n=Pt(e),r={};t.set(e,r);for(const o of Object.keys(n))r[o]=Xi(n[o],t);for(const o of Object.getOwnPropertySymbols(n))r[o]=Xi(n[o],t);return r}const W4={class:"preferences-ui-app"},U4=Le({__name:"PreferencesUI",setup(e,{expose:t}){const n=fT(),r=K([]),o=K(""),i=K({}),a=K([]);return t({getValue(){return Xi(i)}}),Vr(()=>{o.value&&(a.value=n.preferences.getConfigRegistries(o.value))}),En(async()=>{n.inject(["preferences"],async s=>{i.value=await s.preferences.getAll(),r.value=s.preferences.getConfigCategories(),o.value=r.value[0].name})}),(s,l)=>(ft(),yn("div",W4,[It(Tt(s4),{type:"line",value:o.value,"onUpdate:value":l[0]||(l[0]=c=>o.value=c)},{default:Kt(()=>[(ft(!0),yn(Wt,null,xi(r.value,c=>(ft(),an(Tt(wu),{name:c.name,tab:c.label},null,8,["name","tab"]))),256))]),_:1},8,["value"]),a.value?(ft(!0),yn(Wt,{key:0},xi(a.value,c=>(ft(),an(ap,{schema:c.schema,value:i.value,"onUpdate:value":l[1]||(l[1]=u=>i.value=u)},null,8,["schema","value"]))),256)):_o("",!0),So("details",null,[So("pre",null,zo(i.value),1)])]))}});var q4=Object.create,sp=Object.defineProperty,Y4=Object.getOwnPropertyDescriptor,Tx=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$x=e=>{throw TypeError(e)},G4=(e,t,n)=>t in e?sp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K4=(e,t)=>sp(e,"name",{value:t,configurable:!0}),X4=e=>[,,,q4(e?.[Tx("metadata")]??null)],Q4=["class","method","getter","setter","accessor","field","value","get","set"],Rx=e=>e!==void 0&&typeof e!="function"?$x("Function expected"):e,Z4=(e,t,n,r,o)=>({kind:Q4[e],name:t,metadata:r,addInitializer:i=>n._?$x("Already initialized"):o.push(Rx(i||null))}),J4=(e,t)=>G4(t,Tx("metadata"),e[3]),e5=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)i[o].call(n);return r},t5=(e,t,n,r,o,i)=>{var a,s,l,c=t&7,u=!1,d=0,p=e[d]||(e[d]=[]),m=c&&(o=o.prototype,c<5&&(c>3||!u)&&Y4(o,n));K4(o,n);for(var f=r.length-1;f>=0;f--)l=Z4(c,n,s={},e[3],p),a=(0,r[f])(o,l),s._=1,Rx(a)&&(o=a);return J4(e,o),m&&sp(o,n,m),u?c^4?i:m:o},Ox,lp,Ex;Ox=[cr(["preferences","modal"])];class xu extends(Ex=Kr){constructor(t){super(t,{},"preferences-ui"),this.ctx=t,t.set("preferencesUI",this),t.inject(["toolbox"],n=>{n.toolbox.addButton({id:"preferences",icon:oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",class:"icon icon-tabler icons-tabler-filled icon-tabler-settings",children:[oe("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),oe("path",{d:"M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z"})]}),tooltip:"Open preferences",group:"group2",index:1/0,onClick:()=>this.showModal()}),this.addDisposeHandler(()=>{n.toolbox.removeButton("preferences")})})}showModal(){const t=this.ctx.modal.show({className:"in-page-edit",sizeClass:"small",outSideClose:!1,center:!0,title:"InPageEdit Prefrences",content:oe(_l,{children:oe(hi,{})})});t.get$wrapper().addClass("dialog");const n=oe("div",{id:"ipe-preferences-app",style:{minHeight:"65vh"}});t.setContent(n);const r=lT(U4);dT(this.ctx,r);const o=r.mount(n);t.setButtons([{label:"Save",className:"btn",method:()=>{const i=o.getValue();Object.entries(i).forEach(([a,s])=>{this.ctx.preferences.set(a,s).catch(console.error)}),t.close()}},{label:"Cancel",className:"btn btn-danger",method:()=>{t.close()}}]),t.get$modal().on("onClose.ssi-modal",()=>{r.unmount()})}}lp=X4(Ex),xu=t5(lp,0,"PluginPreferencesUI",Ox,xu),e5(lp,1,xu);const n5=Object.freeze(Object.defineProperty({__proto__:null,get PluginPreferencesUI(){return xu}},Symbol.toStringTag,{value:"Module"}));vt.BasePlugin=Kr,vt.InPageEdit=pi,vt.Inject=cr,vt.Schema=dn,vt.Service=ra,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})});