ldap-ui 0.10.1__py3-none-any.whl → 0.10.2__py3-none-any.whl
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.
- ldap_ui/__init__.py +1 -1
- ldap_ui/entities.py +8 -20
- ldap_ui/ldap_api.py +25 -49
- ldap_ui/statics/assets/index-0D2GdpZj.js +19 -0
- ldap_ui/statics/assets/index-0D2GdpZj.js.gz +0 -0
- ldap_ui/statics/assets/{index-CusJ2HRh.css → index-CAWiQJyn.css} +1 -1
- ldap_ui/statics/assets/index-CAWiQJyn.css.gz +0 -0
- ldap_ui/statics/index.html +2 -2
- {ldap_ui-0.10.1.dist-info → ldap_ui-0.10.2.dist-info}/METADATA +1 -1
- {ldap_ui-0.10.1.dist-info → ldap_ui-0.10.2.dist-info}/RECORD +14 -14
- ldap_ui/statics/assets/index-BxCLA1wZ.js +0 -19
- ldap_ui/statics/assets/index-BxCLA1wZ.js.gz +0 -0
- ldap_ui/statics/assets/index-CusJ2HRh.css.gz +0 -0
- {ldap_ui-0.10.1.dist-info → ldap_ui-0.10.2.dist-info}/WHEEL +0 -0
- {ldap_ui-0.10.1.dist-info → ldap_ui-0.10.2.dist-info}/entry_points.txt +0 -0
- {ldap_ui-0.10.1.dist-info → ldap_ui-0.10.2.dist-info}/licenses/LICENSE.txt +0 -0
- {ldap_ui-0.10.1.dist-info → ldap_ui-0.10.2.dist-info}/top_level.txt +0 -0
ldap_ui/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.10.
|
|
1
|
+
__version__ = "0.10.2"
|
ldap_ui/entities.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"Data types for ReST endpoints"
|
|
2
2
|
|
|
3
|
-
from pydantic import BaseModel
|
|
3
|
+
from pydantic import BaseModel
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TreeItem(BaseModel):
|
|
@@ -12,32 +12,20 @@ class TreeItem(BaseModel):
|
|
|
12
12
|
level: int
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class Meta(BaseModel):
|
|
16
|
-
"Attribute classification for an entry"
|
|
17
|
-
|
|
18
|
-
dn: str
|
|
19
|
-
required: list[str]
|
|
20
|
-
aux: list[str]
|
|
21
|
-
binary: list[str]
|
|
22
|
-
autoFilled: list[str]
|
|
23
|
-
isNew: bool = False
|
|
24
|
-
|
|
25
|
-
|
|
26
15
|
Attributes = dict[str, list[str]]
|
|
27
16
|
|
|
17
|
+
AttributeNames = list[str] # Names of modified attributes
|
|
18
|
+
|
|
28
19
|
|
|
29
20
|
class Entry(BaseModel):
|
|
30
21
|
"Directory entry"
|
|
31
22
|
|
|
23
|
+
dn: str
|
|
32
24
|
attrs: Attributes
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class ChangedAttributes(BaseModel):
|
|
38
|
-
"List of modified attributes"
|
|
39
|
-
|
|
40
|
-
changed: list[str]
|
|
25
|
+
binary: AttributeNames
|
|
26
|
+
autoFilled: AttributeNames
|
|
27
|
+
changed: AttributeNames
|
|
28
|
+
isNew: bool = False
|
|
41
29
|
|
|
42
30
|
|
|
43
31
|
class ChangePasswordRequest(BaseModel):
|
ldap_ui/ldap_api.py
CHANGED
|
@@ -34,15 +34,14 @@ from ldap import (
|
|
|
34
34
|
from ldap.ldapobject import LDAPObject
|
|
35
35
|
from ldap.modlist import addModlist, modifyModlist
|
|
36
36
|
from ldap.schema import SubSchema
|
|
37
|
-
from ldap.schema.models import AttributeType, LDAPSyntax
|
|
37
|
+
from ldap.schema.models import AttributeType, LDAPSyntax
|
|
38
38
|
|
|
39
39
|
from . import settings
|
|
40
40
|
from .entities import (
|
|
41
|
+
AttributeNames,
|
|
41
42
|
Attributes,
|
|
42
|
-
ChangedAttributes,
|
|
43
43
|
ChangePasswordRequest,
|
|
44
44
|
Entry,
|
|
45
|
-
Meta,
|
|
46
45
|
Range,
|
|
47
46
|
SearchResult,
|
|
48
47
|
TreeItem,
|
|
@@ -58,7 +57,6 @@ from .ldap_helpers import (
|
|
|
58
57
|
results,
|
|
59
58
|
unique,
|
|
60
59
|
)
|
|
61
|
-
from .schema import ObjectClass as OC
|
|
62
60
|
from .schema import Schema, frontend_schema
|
|
63
61
|
|
|
64
62
|
NO_CONTENT = Response(status_code=HTTPStatus.NO_CONTENT)
|
|
@@ -188,50 +186,25 @@ async def get_entry(dn: str, connection: AuthenticatedConnection) -> Entry:
|
|
|
188
186
|
def _entry(entry: LdapEntry, schema: SubSchema) -> Entry:
|
|
189
187
|
"Decode an LDAP entry for transmission"
|
|
190
188
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
k: ["*****"] # 23 suppress userPassword
|
|
194
|
-
if k == "userPassword"
|
|
195
|
-
else [base64.b64encode(val).decode() for val in entry.attrs[k]]
|
|
196
|
-
if k in meta.binary
|
|
197
|
-
else entry.attr(k)
|
|
198
|
-
for k in sorted(entry.attrs)
|
|
199
|
-
}
|
|
200
|
-
return Entry(attrs=attrs, meta=meta)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
def _meta(entry: LdapEntry, schema: SubSchema) -> Meta:
|
|
204
|
-
"Classify entry attributes"
|
|
205
|
-
|
|
206
|
-
object_classes = set(entry.attr("objectClass"))
|
|
207
|
-
must_attrs, _may_attrs = schema.attribute_types(object_classes)
|
|
208
|
-
required = [
|
|
209
|
-
schema.get_obj(AttributeType, a).names[0] # type: ignore
|
|
210
|
-
for a in must_attrs
|
|
211
|
-
]
|
|
212
|
-
structural = [
|
|
213
|
-
oc.names[0] # type: ignore
|
|
214
|
-
for oc in map(lambda o: schema.get_obj(ObjectClass, o), object_classes)
|
|
215
|
-
if oc.kind == OC.Kind.structural # type: ignore
|
|
216
|
-
]
|
|
217
|
-
aux = set(
|
|
218
|
-
schema.get_obj(ObjectClass, a).names[0] # type: ignore
|
|
219
|
-
for a in schema.get_applicable_aux_classes(structural[0])
|
|
189
|
+
binary = sorted(
|
|
190
|
+
set(attr for attr in entry.attrs if _is_binary(entry, attr, schema))
|
|
220
191
|
)
|
|
221
|
-
|
|
222
|
-
|
|
192
|
+
return Entry(
|
|
193
|
+
attrs={
|
|
194
|
+
k: ["*****"] # 23 suppress userPassword
|
|
195
|
+
if k == "userPassword"
|
|
196
|
+
else [base64.b64encode(val).decode() for val in entry.attrs[k]]
|
|
197
|
+
if k in binary
|
|
198
|
+
else entry.attr(k)
|
|
199
|
+
for k in sorted(entry.attrs)
|
|
200
|
+
},
|
|
223
201
|
dn=entry.dn,
|
|
224
|
-
|
|
225
|
-
aux=sorted(aux - object_classes),
|
|
226
|
-
binary=sorted(_binary_attributes(entry, schema)),
|
|
202
|
+
binary=binary,
|
|
227
203
|
autoFilled=[],
|
|
204
|
+
changed=[],
|
|
228
205
|
)
|
|
229
206
|
|
|
230
207
|
|
|
231
|
-
def _binary_attributes(entry: LdapEntry, schema: SubSchema) -> set[str]:
|
|
232
|
-
return set(attr for attr in entry.attrs if _is_binary(entry, attr, schema))
|
|
233
|
-
|
|
234
|
-
|
|
235
208
|
def _is_binary(entry: LdapEntry, attr: str, schema: SubSchema) -> bool:
|
|
236
209
|
"Guess whether an attribute has binary content"
|
|
237
210
|
|
|
@@ -272,7 +245,7 @@ async def delete_entry(dn: str, connection: AuthenticatedConnection) -> None:
|
|
|
272
245
|
@api.post("/entry/{dn:path}", tags=[Tag.EDITING], operation_id="post_entry")
|
|
273
246
|
async def post_entry(
|
|
274
247
|
dn: str, attributes: Attributes, connection: AuthenticatedConnection
|
|
275
|
-
) ->
|
|
248
|
+
) -> AttributeNames:
|
|
276
249
|
entry = await get_entry_by_dn(connection, dn)
|
|
277
250
|
schema = await get_schema(connection)
|
|
278
251
|
|
|
@@ -280,16 +253,19 @@ async def post_entry(
|
|
|
280
253
|
attr: _nonempty_byte_strings(attributes, attr)
|
|
281
254
|
for attr in attributes
|
|
282
255
|
if attr not in PASSWORDS
|
|
283
|
-
and
|
|
284
|
-
|
|
285
|
-
|
|
256
|
+
and (
|
|
257
|
+
attr not in entry.attrs
|
|
258
|
+
or not _is_binary(
|
|
259
|
+
entry, attr, schema
|
|
260
|
+
) # FIXME Handle binary attributes properly
|
|
261
|
+
)
|
|
286
262
|
}
|
|
287
263
|
|
|
288
264
|
actual = {attr: v for attr, v in entry.attrs.items() if attr in expected}
|
|
289
265
|
modlist = modifyModlist(actual, expected)
|
|
290
266
|
if modlist: # Apply changes and send changed keys back
|
|
291
267
|
await empty(connection, connection.modify(dn, modlist))
|
|
292
|
-
return
|
|
268
|
+
return list(sorted(set(m[1] for m in modlist)))
|
|
293
269
|
|
|
294
270
|
|
|
295
271
|
def _nonempty_byte_strings(attributes: Attributes, attr: str) -> list[bytes]:
|
|
@@ -299,7 +275,7 @@ def _nonempty_byte_strings(attributes: Attributes, attr: str) -> list[bytes]:
|
|
|
299
275
|
@api.put("/entry/{dn:path}", tags=[Tag.EDITING], operation_id="put_entry")
|
|
300
276
|
async def put_entry(
|
|
301
277
|
dn: str, attributes: Attributes, connection: AuthenticatedConnection
|
|
302
|
-
) ->
|
|
278
|
+
) -> AttributeNames:
|
|
303
279
|
modlist = addModlist(
|
|
304
280
|
{
|
|
305
281
|
attr: _nonempty_byte_strings(attributes, attr)
|
|
@@ -309,7 +285,7 @@ async def put_entry(
|
|
|
309
285
|
)
|
|
310
286
|
if modlist:
|
|
311
287
|
await empty(connection, connection.add(dn, modlist))
|
|
312
|
-
return
|
|
288
|
+
return ["dn"] # Dummy
|
|
313
289
|
|
|
314
290
|
|
|
315
291
|
@api.post(
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var ci=Object.defineProperty;var fi=(e,t,n)=>t in e?ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>fi(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/**
|
|
2
|
+
* @vue/shared v3.5.16
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function ks(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},Ft=[],it=()=>{},di=()=>!1,Bn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Es=e=>e.startsWith("onUpdate:"),Se=Object.assign,As=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pi=Object.prototype.hasOwnProperty,ae=(e,t)=>pi.call(e,t),q=Array.isArray,Ut=e=>yn(e)==="[object Map]",qn=e=>yn(e)==="[object Set]",Ys=e=>yn(e)==="[object Date]",J=e=>typeof e=="function",be=e=>typeof e=="string",Qe=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",Mr=e=>(he(e)||J(e))&&J(e.then)&&J(e.catch),Lr=Object.prototype.toString,yn=e=>Lr.call(e),hi=e=>yn(e).slice(8,-1),Fr=e=>yn(e)==="[object Object]",js=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=ks(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Kn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},mi=/-(\w)/g,xt=Kn(e=>e.replace(mi,(t,n)=>n?n.toUpperCase():"")),vi=/\B([A-Z])/g,Tt=Kn(e=>e.replace(vi,"-$1").toLowerCase()),Ur=Kn(e=>e.charAt(0).toUpperCase()+e.slice(1)),rs=Kn(e=>e?`on${Ur(e)}`:""),Ct=(e,t)=>!Object.is(e,t),kn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Vr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},jn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gi=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let Xs;const Wn=()=>Xs||(Xs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ds(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=be(s)?_i(s):Ds(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(be(e)||he(e))return e}const yi=/;(?![^(]*\))/g,bi=/:([^]+)/,wi=/\/\*[^]*?\*\//g;function _i(e){const t={};return e.replace(wi,"").split(yi).forEach(n=>{if(n){const s=n.split(bi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ie(e){let t="";if(be(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const s=Ie(e[n]);s&&(t+=s+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ci="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xi=ks(Ci);function Hr(e){return!!e||e===""}function Si(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=zn(e[s],t[s]);return n}function zn(e,t){if(e===t)return!0;let n=Ys(e),s=Ys(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Qe(e),s=Qe(t),n||s)return e===t;if(n=q(e),s=q(t),n||s)return n&&s?Si(e,t):!1;if(n=he(e),s=he(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!zn(e[o],t[o]))return!1}}return String(e)===String(t)}function $i(e,t){return e.findIndex(n=>zn(n,t))}const Br=e=>!!(e&&e.__v_isRef===!0),re=e=>be(e)?e:e==null?"":q(e)||he(e)&&(e.toString===Lr||!J(e.toString))?Br(e)?re(e.value):JSON.stringify(e,qr,2):String(e),qr=(e,t)=>Br(t)?qr(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[os(s,i)+" =>"]=r,n),{})}:qn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>os(n))}:Qe(t)?os(t):he(t)&&!q(t)&&!Fr(t)?String(t):t,os=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.16
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Ae;class Ti{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.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=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){++this._on===1&&(this.prevScope=Ae,Ae=this)}off(){this._on>0&&--this._on===0&&(Ae=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Kr(){return Ae}function Oi(e,t=!1){Ae&&Ae.cleanups.push(e)}let ve;const is=new WeakSet;class Wr{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,Ae&&Ae.active&&Ae.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,is.has(this)&&(is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Gr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qs(this),Jr(this);const t=ve,n=Xe;ve=this,Xe=!0;try{return this.fn()}finally{Yr(this),ve=t,Xe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ns(t);this.deps=this.depsTail=void 0,Qs(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){gs(this)&&this.run()}get dirty(){return gs(this)}}let zr=0,nn,sn;function Gr(e,t=!1){if(e.flags|=8,t){e.next=sn,sn=e;return}e.next=nn,nn=e}function Ps(){zr++}function Is(){if(--zr>0)return;if(sn){let t=sn;for(sn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nn;){let t=nn;for(nn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Jr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yr(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ns(s),ki(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function gs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ln)||(e.globalVersion=ln,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!gs(e))))return;e.flags|=2;const t=e.dep,n=ve,s=Xe;ve=e,Xe=!0;try{Jr(e);const r=e.fn(e._value);(t.version===0||Ct(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ve=n,Xe=s,Yr(e),e.flags&=-3}}function Ns(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ns(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ki(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xe=!0;const Qr=[];function ht(){Qr.push(Xe),Xe=!1}function mt(){const e=Qr.pop();Xe=e===void 0?!0:e}function Qs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ve;ve=void 0;try{t()}finally{ve=n}}}let ln=0;class Ei{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 Rs{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}track(t){if(!ve||!Xe||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new Ei(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,Zr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ve.depsTail,n.nextDep=void 0,ve.depsTail.nextDep=n,ve.depsTail=n,ve.deps===n&&(ve.deps=s)}return n}trigger(t){this.version++,ln++,this.notify(t)}notify(t){Ps();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Is()}}}function Zr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Zr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ys=new WeakMap,Nt=Symbol(""),bs=Symbol(""),an=Symbol("");function je(e,t,n){if(Xe&&ve){let s=ys.get(e);s||ys.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Rs),r.map=s,r.key=n),r.track()}}function dt(e,t,n,s,r,i){const o=ys.get(e);if(!o){ln++;return}const l=a=>{a&&a.trigger()};if(Ps(),t==="clear")o.forEach(l);else{const a=q(e),c=a&&js(n);if(a&&n==="length"){const u=Number(s);o.forEach((f,p)=>{(p==="length"||p===an||!Qe(p)&&p>=u)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),c&&l(o.get(an)),t){case"add":a?c&&l(o.get("length")):(l(o.get(Nt)),Ut(e)&&l(o.get(bs)));break;case"delete":a||(l(o.get(Nt)),Ut(e)&&l(o.get(bs)));break;case"set":Ut(e)&&l(o.get(Nt));break}}Is()}function Mt(e){const t=ie(e);return t===e?t:(je(t,"iterate",an),Je(e)?t:t.map(Te))}function Gn(e){return je(e=ie(e),"iterate",an),e}const Ai={__proto__:null,[Symbol.iterator](){return ls(this,Symbol.iterator,Te)},concat(...e){return Mt(this).concat(...e.map(t=>q(t)?Mt(t):t))},entries(){return ls(this,"entries",e=>(e[1]=Te(e[1]),e))},every(e,t){return ut(this,"every",e,t,void 0,arguments)},filter(e,t){return ut(this,"filter",e,t,n=>n.map(Te),arguments)},find(e,t){return ut(this,"find",e,t,Te,arguments)},findIndex(e,t){return ut(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ut(this,"findLast",e,t,Te,arguments)},findLastIndex(e,t){return ut(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ut(this,"forEach",e,t,void 0,arguments)},includes(...e){return as(this,"includes",e)},indexOf(...e){return as(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return as(this,"lastIndexOf",e)},map(e,t){return ut(this,"map",e,t,void 0,arguments)},pop(){return Xt(this,"pop")},push(...e){return Xt(this,"push",e)},reduce(e,...t){return Zs(this,"reduce",e,t)},reduceRight(e,...t){return Zs(this,"reduceRight",e,t)},shift(){return Xt(this,"shift")},some(e,t){return ut(this,"some",e,t,void 0,arguments)},splice(...e){return Xt(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return Xt(this,"unshift",e)},values(){return ls(this,"values",Te)}};function ls(e,t,n){const s=Gn(e),r=s[t]();return s!==e&&!Je(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const ji=Array.prototype;function ut(e,t,n,s,r,i){const o=Gn(e),l=o!==e&&!Je(e),a=o[t];if(a!==ji[t]){const f=a.apply(e,i);return l?Te(f):f}let c=n;o!==e&&(l?c=function(f,p){return n.call(this,Te(f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(o,c,s);return l&&r?r(u):u}function Zs(e,t,n,s){const r=Gn(e);let i=n;return r!==e&&(Je(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,Te(l),a,e)}),r[t](i,...s)}function as(e,t,n){const s=ie(e);je(s,"iterate",an);const r=s[t](...n);return(r===-1||r===!1)&&Us(n[0])?(n[0]=ie(n[0]),s[t](...n)):r}function Xt(e,t,n=[]){ht(),Ps();const s=ie(e)[t].apply(e,n);return Is(),mt(),s}const Di=ks("__proto__,__v_isRef,__isVue"),eo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe));function Pi(e){Qe(e)||(e=String(e));const t=ie(this);return je(t,"has",e),t.hasOwnProperty(e)}class to{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Bi:oo:i?ro:so).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=q(t);if(!r){let a;if(o&&(a=Ai[n]))return a;if(n==="hasOwnProperty")return Pi}const l=Reflect.get(t,n,Ne(t)?t:s);return(Qe(n)?eo.has(n):Di(n))||(r||je(t,"get",n),i)?l:Ne(l)?o&&js(n)?l:l.value:he(l)?r?io(l):Ls(l):l}}class no extends to{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const a=St(i);if(!Je(s)&&!St(s)&&(i=ie(i),s=ie(s)),!q(t)&&Ne(i)&&!Ne(s))return a?!1:(i.value=s,!0)}const o=q(t)&&js(n)?Number(n)<t.length:ae(t,n),l=Reflect.set(t,n,s,Ne(t)?t:r);return t===ie(r)&&(o?Ct(s,i)&&dt(t,"set",n,s):dt(t,"add",n,s)),l}deleteProperty(t,n){const s=ae(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&dt(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Qe(n)||!eo.has(n))&&je(t,"has",n),s}ownKeys(t){return je(t,"iterate",q(t)?"length":Nt),Reflect.ownKeys(t)}}class Ii extends to{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ni=new no,Ri=new Ii,Mi=new no(!0);const ws=e=>e,Sn=e=>Reflect.getPrototypeOf(e);function Li(e,t,n){return function(...s){const r=this.__v_raw,i=ie(r),o=Ut(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=r[e](...s),u=n?ws:t?Dn:Te;return!t&&je(i,"iterate",a?bs:Nt),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function $n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Fi(e,t){const n={get(r){const i=this.__v_raw,o=ie(i),l=ie(r);e||(Ct(r,l)&&je(o,"get",r),je(o,"get",l));const{has:a}=Sn(o),c=t?ws:e?Dn:Te;if(a.call(o,r))return c(i.get(r));if(a.call(o,l))return c(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&je(ie(r),"iterate",Nt),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=ie(i),l=ie(r);return e||(Ct(r,l)&&je(o,"has",r),je(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,a=ie(l),c=t?ws:e?Dn:Te;return!e&&je(a,"iterate",Nt),l.forEach((u,f)=>r.call(i,c(u),c(f),o))}};return Se(n,e?{add:$n("add"),set:$n("set"),delete:$n("delete"),clear:$n("clear")}:{add(r){!t&&!Je(r)&&!St(r)&&(r=ie(r));const i=ie(this);return Sn(i).has.call(i,r)||(i.add(r),dt(i,"add",r,r)),this},set(r,i){!t&&!Je(i)&&!St(i)&&(i=ie(i));const o=ie(this),{has:l,get:a}=Sn(o);let c=l.call(o,r);c||(r=ie(r),c=l.call(o,r));const u=a.call(o,r);return o.set(r,i),c?Ct(i,u)&&dt(o,"set",r,i):dt(o,"add",r,i),this},delete(r){const i=ie(this),{has:o,get:l}=Sn(i);let a=o.call(i,r);a||(r=ie(r),a=o.call(i,r)),l&&l.call(i,r);const c=i.delete(r);return a&&dt(i,"delete",r,void 0),c},clear(){const r=ie(this),i=r.size!==0,o=r.clear();return i&&dt(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Li(r,e,t)}),n}function Ms(e,t){const n=Fi(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ae(n,r)&&r in s?n:s,r,i)}const Ui={get:Ms(!1,!1)},Vi={get:Ms(!1,!0)},Hi={get:Ms(!0,!1)};const so=new WeakMap,ro=new WeakMap,oo=new WeakMap,Bi=new WeakMap;function qi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ki(e){return e.__v_skip||!Object.isExtensible(e)?0:qi(hi(e))}function Ls(e){return St(e)?e:Fs(e,!1,Ni,Ui,so)}function Wi(e){return Fs(e,!1,Mi,Vi,ro)}function io(e){return Fs(e,!0,Ri,Hi,oo)}function Fs(e,t,n,s,r){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Ki(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function Vt(e){return St(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function St(e){return!!(e&&e.__v_isReadonly)}function Je(e){return!!(e&&e.__v_isShallow)}function Us(e){return e?!!e.__v_raw:!1}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function zi(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&Vr(e,"__v_skip",!0),e}const Te=e=>he(e)?Ls(e):e,Dn=e=>he(e)?io(e):e;function Ne(e){return e?e.__v_isRef===!0:!1}function U(e){return Gi(e,!1)}function Gi(e,t){return Ne(e)?e:new Ji(e,t)}class Ji{constructor(t,n){this.dep=new Rs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ie(t),this._value=n?t:Te(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Je(t)||St(t);t=s?t:ie(t),Ct(t,n)&&(this._rawValue=t,this._value=s?t:Te(t),this.dep.trigger())}}function bn(e){return Ne(e)?e.value:e}const Yi={get:(e,t,n)=>t==="__v_raw"?e:bn(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ne(r)&&!Ne(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function lo(e){return Vt(e)?e:new Proxy(e,Yi)}class Xi{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Rs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ln-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Gr(this,!0),!0}get value(){const t=this.dep.track();return Xr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Qi(e,t,n=!1){let s,r;return J(e)?s=e:(s=e.get,r=e.set),new Xi(s,r,n)}const Tn={},Pn=new WeakMap;let jt;function Zi(e,t=!1,n=jt){if(n){let s=Pn.get(n);s||Pn.set(n,s=[]),s.push(e)}}function el(e,t,n=de){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:a}=n,c=N=>r?N:Je(N)||r===!1||r===0?pt(N,1):pt(N);let u,f,p,m,_=!1,P=!1;if(Ne(e)?(f=()=>e.value,_=Je(e)):Vt(e)?(f=()=>c(e),_=!0):q(e)?(P=!0,_=e.some(N=>Vt(N)||Je(N)),f=()=>e.map(N=>{if(Ne(N))return N.value;if(Vt(N))return c(N);if(J(N))return a?a(N,2):N()})):J(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){ht();try{p()}finally{mt()}}const N=jt;jt=u;try{return a?a(e,3,[m]):e(m)}finally{jt=N}}:f=it,t&&r){const N=f,R=r===!0?1/0:r;f=()=>pt(N(),R)}const T=Kr(),g=()=>{u.stop(),T&&T.active&&As(T.effects,u)};if(i&&t){const N=t;t=(...R)=>{N(...R),g()}}let E=P?new Array(e.length).fill(Tn):Tn;const H=N=>{if(!(!(u.flags&1)||!u.dirty&&!N))if(t){const R=u.run();if(r||_||(P?R.some((Z,ye)=>Ct(Z,E[ye])):Ct(R,E))){p&&p();const Z=jt;jt=u;try{const ye=[R,E===Tn?void 0:P&&E[0]===Tn?[]:E,m];E=R,a?a(t,3,ye):t(...ye)}finally{jt=Z}}}else u.run()};return l&&l(H),u=new Wr(f),u.scheduler=o?()=>o(H,!1):H,m=N=>Zi(N,!1,u),p=u.onStop=()=>{const N=Pn.get(u);if(N){if(a)a(N,4);else for(const R of N)R();Pn.delete(u)}},t?s?H(!0):E=u.run():o?o(H.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function pt(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ne(e))pt(e.value,t,n);else if(q(e))for(let s=0;s<e.length;s++)pt(e[s],t,n);else if(qn(e)||Ut(e))e.forEach(s=>{pt(s,t,n)});else if(Fr(e)){for(const s in e)pt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&pt(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.16
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function wn(e,t,n,s){try{return s?e(...s):e()}catch(r){Jn(r,t,n)}}function Ze(e,t,n,s){if(J(e)){const r=wn(e,t,n,s);return r&&Mr(r)&&r.catch(i=>{Jn(i,t,n)}),r}if(q(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ze(e[i],t,n,s));return r}}function Jn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||de;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}l=l.parent}if(i){ht(),wn(i,null,10,[e,a,c]),mt();return}}tl(e,n,r,s,o)}function tl(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Le=[];let rt=-1;const Ht=[];let bt=null,Lt=0;const ao=Promise.resolve();let In=null;function Gt(e){const t=In||ao;return e?t.then(this?e.bind(this):e):t}function nl(e){let t=rt+1,n=Le.length;for(;t<n;){const s=t+n>>>1,r=Le[s],i=un(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Vs(e){if(!(e.flags&1)){const t=un(e),n=Le[Le.length-1];!n||!(e.flags&2)&&t>=un(n)?Le.push(e):Le.splice(nl(t),0,e),e.flags|=1,uo()}}function uo(){In||(In=ao.then(fo))}function sl(e){q(e)?Ht.push(...e):bt&&e.id===-1?bt.splice(Lt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1),uo()}function er(e,t,n=rt+1){for(;n<Le.length;n++){const s=Le[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Le.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function co(e){if(Ht.length){const t=[...new Set(Ht)].sort((n,s)=>un(n)-un(s));if(Ht.length=0,bt){bt.push(...t);return}for(bt=t,Lt=0;Lt<bt.length;Lt++){const n=bt[Lt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bt=null,Lt=0}}const un=e=>e.id==null?e.flags&2?-1:1/0:e.id;function fo(e){try{for(rt=0;rt<Le.length;rt++){const t=Le[rt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;rt<Le.length;rt++){const t=Le[rt];t&&(t.flags&=-2)}rt=-1,Le.length=0,co(),In=null,(Le.length||Ht.length)&&fo()}}let Oe=null,po=null;function Nn(e){const t=Oe;return Oe=e,po=e&&e.type.__scopeId||null,t}function pe(e,t=Oe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&cr(-1);const i=Nn(t);let o;try{o=e(...r)}finally{Nn(i),s._d&&cr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Ve(e,t){if(Oe===null)return e;const n=es(Oe),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,a=de]=t[r];i&&(J(i)&&(i={mounted:i,updated:i}),i.deep&&pt(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ot(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(ht(),Ze(a,n,8,[e.el,l,e,t]),mt())}}const rl=Symbol("_vte"),ho=e=>e.__isTeleport,wt=Symbol("_leaveCb"),On=Symbol("_enterCb");function ol(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Jt(()=>{e.isMounted=!0}),xo(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],mo={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},vo=e=>{const t=e.subTree;return t.component?vo(t.component):t},il={name:"BaseTransition",props:mo,setup(e,{slots:t}){const n=Zl(),s=ol();return()=>{const r=t.default&&bo(t.default(),!0);if(!r||!r.length)return;const i=go(r),o=ie(e),{mode:l}=o;if(s.isLeaving)return us(i);const a=tr(i);if(!a)return us(i);let c=_s(a,o,s,n,f=>c=f);a.type!==De&&cn(a,c);let u=n.subTree&&tr(n.subTree);if(u&&u.type!==De&&!Dt(a,u)&&vo(n).type!==De){let f=_s(u,o,s,n);if(cn(u,f),l==="out-in"&&a.type!==De)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},us(i);l==="in-out"&&a.type!==De?f.delayLeave=(p,m,_)=>{const P=yo(s,u);P[String(u.key)]=u,p[wt]=()=>{m(),p[wt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{_(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function go(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==De){t=n;break}}return t}const ll=il;function yo(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function _s(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:_,onLeaveCancelled:P,onBeforeAppear:T,onAppear:g,onAfterAppear:E,onAppearCancelled:H}=t,N=String(e.key),R=yo(n,e),Z=(Y,ne)=>{Y&&Ze(Y,s,9,ne)},ye=(Y,ne)=>{const fe=ne[1];Z(Y,ne),q(Y)?Y.every(I=>I.length<=1)&&fe():Y.length<=1&&fe()},_e={mode:o,persisted:l,beforeEnter(Y){let ne=a;if(!n.isMounted)if(i)ne=T||a;else return;Y[wt]&&Y[wt](!0);const fe=R[N];fe&&Dt(e,fe)&&fe.el[wt]&&fe.el[wt](),Z(ne,[Y])},enter(Y){let ne=c,fe=u,I=f;if(!n.isMounted)if(i)ne=g||c,fe=E||u,I=H||f;else return;let ue=!1;const A=Y[On]=y=>{ue||(ue=!0,y?Z(I,[Y]):Z(fe,[Y]),_e.delayedLeave&&_e.delayedLeave(),Y[On]=void 0)};ne?ye(ne,[Y,A]):A()},leave(Y,ne){const fe=String(e.key);if(Y[On]&&Y[On](!0),n.isUnmounting)return ne();Z(p,[Y]);let I=!1;const ue=Y[wt]=A=>{I||(I=!0,ne(),A?Z(P,[Y]):Z(_,[Y]),Y[wt]=void 0,R[fe]===e&&delete R[fe])};R[fe]=e,m?ye(m,[Y,ue]):ue()},clone(Y){const ne=_s(Y,t,n,s,r);return r&&r(ne),ne}};return _e}function us(e){if(Yn(e))return e=$t(e),e.children=null,e}function tr(e){if(!Yn(e))return ho(e.type)&&e.children?go(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&&J(n.default))return n.default()}}function cn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,cn(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 bo(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===le?(o.patchFlag&128&&r++,s=s.concat(bo(o.children,t,l))):(t||o.type!==De)&&s.push(l!=null?$t(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function ge(e,t){return J(e)?Se({name:e.name},t,{setup:e}):e}function wo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Rn(e,t,n,s,r=!1){if(q(e)){e.forEach((_,P)=>Rn(_,t&&(q(t)?t[P]:t),n,s,r));return}if(Bt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Rn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?es(s.component):s.el,o=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===de?l.refs={}:l.refs,f=l.setupState,p=ie(f),m=f===de?()=>!1:_=>ae(p,_);if(c!=null&&c!==a&&(be(c)?(u[c]=null,m(c)&&(f[c]=null)):Ne(c)&&(c.value=null)),J(a))wn(a,l,12,[o,u]);else{const _=be(a),P=Ne(a);if(_||P){const T=()=>{if(e.f){const g=_?m(a)?f[a]:u[a]:a.value;r?q(g)&&As(g,i):q(g)?g.includes(i)||g.push(i):_?(u[a]=[i],m(a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else _?(u[a]=o,m(a)&&(f[a]=o)):P&&(a.value=o,e.k&&(u[e.k]=o))};o?(T.id=-1,Ke(T,n)):T()}}}Wn().requestIdleCallback;Wn().cancelIdleCallback;const Bt=e=>!!e.type.__asyncLoader,Yn=e=>e.type.__isKeepAlive;function al(e,t){_o(e,"a",t)}function ul(e,t){_o(e,"da",t)}function _o(e,t,n=Pe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Xn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Yn(r.parent.vnode)&&cl(s,t,n,r),r=r.parent}}function cl(e,t,n,s){const r=Xn(t,e,s,!0);So(()=>{As(s[t],r)},n)}function Xn(e,t,n=Pe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ht();const l=_n(n),a=Ze(t,n,e,o);return l(),mt(),a});return s?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Pe)=>{(!pn||e==="sp")&&Xn(e,(...s)=>t(...s),n)},fl=vt("bm"),Jt=vt("m"),dl=vt("bu"),Co=vt("u"),xo=vt("bum"),So=vt("um"),pl=vt("sp"),hl=vt("rtg"),ml=vt("rtc");function vl(e,t=Pe){Xn("ec",e,t)}const gl=Symbol.for("v-ndc");function ke(e,t,n,s){let r;const i=n,o=q(e);if(o||be(e)){const l=o&&Vt(e);let a=!1,c=!1;l&&(a=!Je(e),c=St(e),e=Gn(e)),r=new Array(e.length);for(let u=0,f=e.length;u<f;u++)r[u]=t(a?c?Dn(Te(e[u])):Te(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(he(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];r[a]=t(e[u],u,a,i)}}else r=[];return r}function Ye(e,t,n={},s,r){if(Oe.ce||Oe.parent&&Bt(Oe.parent)&&Oe.parent.ce)return t!=="default"&&(n.name=t),b(),we(le,null,[G("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),b();const o=i&&$o(i(n)),l=n.key||o&&o.key,a=we(le,{key:(l&&!Qe(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function $o(e){return e.some(t=>dn(t)?!(t.type===De||t.type===le&&!$o(t.children)):!0)?e:null}const Cs=e=>e?Wo(e)?es(e):Cs(e.parent):null,rn=Se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Cs(e.parent),$root:e=>Cs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Oo(e),$forceUpdate:e=>e.f||(e.f=()=>{Vs(e.update)}),$nextTick:e=>e.n||(e.n=Gt.bind(e.proxy)),$watch:e=>Ll.bind(e)}),cs=(e,t)=>e!==de&&!e.__isScriptSetup&&ae(e,t),yl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(cs(s,t))return o[t]=1,s[t];if(r!==de&&ae(r,t))return o[t]=2,r[t];if((c=e.propsOptions[0])&&ae(c,t))return o[t]=3,i[t];if(n!==de&&ae(n,t))return o[t]=4,n[t];xs&&(o[t]=0)}}const u=rn[t];let f,p;if(u)return t==="$attrs"&&je(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==de&&ae(n,t))return o[t]=4,n[t];if(p=a.config.globalProperties,ae(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return cs(r,t)?(r[t]=n,!0):s!==de&&ae(s,t)?(s[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==de&&ae(e,o)||cs(t,o)||(l=i[0])&&ae(l,o)||ae(s,o)||ae(rn,o)||ae(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nr(e){return q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xs=!0;function bl(e){const t=Oo(e),n=e.proxy,s=e.ctx;xs=!1,t.beforeCreate&&sr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:m,updated:_,activated:P,deactivated:T,beforeDestroy:g,beforeUnmount:E,destroyed:H,unmounted:N,render:R,renderTracked:Z,renderTriggered:ye,errorCaptured:_e,serverPrefetch:Y,expose:ne,inheritAttrs:fe,components:I,directives:ue,filters:A}=t;if(c&&wl(c,s,null),o)for(const z in o){const oe=o[z];J(oe)&&(s[z]=oe.bind(n))}if(r){const z=r.call(n,n);he(z)&&(e.data=Ls(z))}if(xs=!0,i)for(const z in i){const oe=i[z],Ce=J(oe)?oe.bind(n,n):J(oe.get)?oe.get.bind(n,n):it,Rt=!J(oe)&&J(oe.set)?oe.set.bind(n):it,at=se({get:Ce,set:Rt});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>at.value,set:ze=>at.value=ze})}if(l)for(const z in l)To(l[z],s,n,z);if(a){const z=J(a)?a.call(n):a;Reflect.ownKeys(z).forEach(oe=>{Eo(oe,z[oe])})}u&&sr(u,e,"c");function O(z,oe){q(oe)?oe.forEach(Ce=>z(Ce.bind(n))):oe&&z(oe.bind(n))}if(O(fl,f),O(Jt,p),O(dl,m),O(Co,_),O(al,P),O(ul,T),O(vl,_e),O(ml,Z),O(hl,ye),O(xo,E),O(So,N),O(pl,Y),q(ne))if(ne.length){const z=e.exposed||(e.exposed={});ne.forEach(oe=>{Object.defineProperty(z,oe,{get:()=>n[oe],set:Ce=>n[oe]=Ce})})}else e.exposed||(e.exposed={});R&&e.render===it&&(e.render=R),fe!=null&&(e.inheritAttrs=fe),I&&(e.components=I),ue&&(e.directives=ue),Y&&wo(e)}function wl(e,t,n=it){q(e)&&(e=Ss(e));for(const s in e){const r=e[s];let i;he(r)?"default"in r?i=Ee(r.from||s,r.default,!0):i=Ee(r.from||s):i=Ee(r),Ne(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function sr(e,t,n){Ze(q(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function To(e,t,n,s){let r=s.includes(".")?Vo(n,s):()=>n[s];if(be(e)){const i=t[e];J(i)&&He(r,i)}else if(J(e))He(r,e.bind(n));else if(he(e))if(q(e))e.forEach(i=>To(i,t,n,s));else{const i=J(e.handler)?e.handler.bind(n):t[e.handler];J(i)&&He(r,i,e)}}function Oo(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Mn(a,c,o,!0)),Mn(a,t,o)),he(t)&&i.set(t,a),a}function Mn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Mn(e,i,n,!0),r&&r.forEach(o=>Mn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=_l[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const _l={data:rr,props:or,emits:or,methods:en,computed:en,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:en,directives:en,watch:xl,provide:rr,inject:Cl};function rr(e,t){return t?e?function(){return Se(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function Cl(e,t){return en(Ss(e),Ss(t))}function Ss(e){if(q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function en(e,t){return e?Se(Object.create(null),e,t):t}function or(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:Se(Object.create(null),nr(e),nr(t??{})):t}function xl(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function ko(){return{app:null,config:{isNativeTag:di,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 Sl=0;function $l(e,t){return function(s,r=null){J(s)||(s=Se({},s)),r!=null&&!he(r)&&(r=null);const i=ko(),o=new WeakSet,l=[];let a=!1;const c=i.app={_uid:Sl++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:ia,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&J(u.install)?(o.add(u),u.install(c,...f)):J(u)&&(o.add(u),u(c,...f))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,p){if(!a){const m=c._ceVNode||G(s,r);return m.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(m,u,p),a=!0,c._container=u,u.__vue_app__=c,es(m.component)}},onUnmount(u){l.push(u)},unmount(){a&&(Ze(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=qt;qt=c;try{return u()}finally{qt=f}}};return c}}let qt=null;function Eo(e,t){if(Pe){let n=Pe.provides;const s=Pe.parent&&Pe.parent.provides;s===n&&(n=Pe.provides=Object.create(s)),n[e]=t}}function Ee(e,t,n=!1){const s=Pe||Oe;if(s||qt){let r=qt?qt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&J(t)?t.call(s&&s.proxy):t}}const Ao={},jo=()=>Object.create(Ao),Do=e=>Object.getPrototypeOf(e)===Ao;function Tl(e,t,n,s=!1){const r={},i=jo();e.propsDefaults=Object.create(null),Po(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Wi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ol(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=ie(r),[a]=e.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(Qn(e.emitsOptions,p))continue;const m=t[p];if(a)if(ae(i,p))m!==i[p]&&(i[p]=m,c=!0);else{const _=xt(p);r[_]=$s(a,l,_,m,e,!1)}else m!==i[p]&&(i[p]=m,c=!0)}}}else{Po(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ae(t,f)&&((u=Tt(f))===f||!ae(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=$s(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ae(t,f))&&(delete i[f],c=!0)}c&&dt(e.attrs,"set","")}function Po(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(tn(a))continue;const c=t[a];let u;r&&ae(r,u=xt(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Qn(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,o=!0)}if(i){const a=ie(n),c=l||de;for(let u=0;u<i.length;u++){const f=i[u];n[f]=$s(r,a,f,c[f],e,!ae(c,f))}}return o}function $s(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=ae(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&J(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=_n(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===Tt(n))&&(s=!0))}return s}const kl=new WeakMap;function Io(e,t,n=!1){const s=n?kl:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let a=!1;if(!J(e)){const u=f=>{a=!0;const[p,m]=Io(f,t,!0);Se(o,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return he(e)&&s.set(e,Ft),Ft;if(q(i))for(let u=0;u<i.length;u++){const f=xt(i[u]);ir(f)&&(o[f]=de)}else if(i)for(const u in i){const f=xt(u);if(ir(f)){const p=i[u],m=o[f]=q(p)||J(p)?{type:p}:Se({},p),_=m.type;let P=!1,T=!0;if(q(_))for(let g=0;g<_.length;++g){const E=_[g],H=J(E)&&E.name;if(H==="Boolean"){P=!0;break}else H==="String"&&(T=!1)}else P=J(_)&&_.name==="Boolean";m[0]=P,m[1]=T,(P||ae(m,"default"))&&l.push(f)}}const c=[o,l];return he(e)&&s.set(e,c),c}function ir(e){return e[0]!=="$"&&!tn(e)}const Hs=e=>e[0]==="_"||e==="$stable",Bs=e=>q(e)?e.map(ot):[ot(e)],El=(e,t,n)=>{if(t._n)return t;const s=pe((...r)=>Bs(t(...r)),n);return s._c=!1,s},No=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Hs(r))continue;const i=e[r];if(J(i))t[r]=El(r,i,s);else if(i!=null){const o=Bs(i);t[r]=()=>o}}},Ro=(e,t)=>{const n=Bs(t);e.slots.default=()=>n},Mo=(e,t,n)=>{for(const s in t)(n||!Hs(s))&&(e[s]=t[s])},Al=(e,t,n)=>{const s=e.slots=jo();if(e.vnode.shapeFlag&32){const r=t._;r?(Mo(s,t,n),n&&Vr(s,"_",r,!0)):No(t,s)}else t&&Ro(e,t)},jl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=de;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Mo(r,t,n):(i=!t.$stable,No(t,r)),o=t}else t&&(Ro(e,t),o={default:1});if(i)for(const l in r)!Hs(l)&&o[l]==null&&delete r[l]},Ke=Kl;function Dl(e){return Pl(e)}function Pl(e,t){const n=Wn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:m=it,insertStaticContent:_}=e,P=(d,h,v,x=null,w=null,C=null,M=void 0,D=null,j=!!h.dynamicChildren)=>{if(d===h)return;d&&!Dt(d,h)&&(x=K(d),ze(d,w,C,!0),d=null),h.patchFlag===-2&&(j=!1,h.dynamicChildren=null);const{type:S,ref:B,shapeFlag:L}=h;switch(S){case Zn:T(d,h,v,x);break;case De:g(d,h,v,x);break;case ds:d==null&&E(h,v,x,M);break;case le:I(d,h,v,x,w,C,M,D,j);break;default:L&1?R(d,h,v,x,w,C,M,D,j):L&6?ue(d,h,v,x,w,C,M,D,j):(L&64||L&128)&&S.process(d,h,v,x,w,C,M,D,j,$e)}B!=null&&w&&Rn(B,d&&d.ref,C,h||d,!h)},T=(d,h,v,x)=>{if(d==null)s(h.el=l(h.children),v,x);else{const w=h.el=d.el;h.children!==d.children&&c(w,h.children)}},g=(d,h,v,x)=>{d==null?s(h.el=a(h.children||""),v,x):h.el=d.el},E=(d,h,v,x)=>{[d.el,d.anchor]=_(d.children,h,v,x,d.el,d.anchor)},H=({el:d,anchor:h},v,x)=>{let w;for(;d&&d!==h;)w=p(d),s(d,v,x),d=w;s(h,v,x)},N=({el:d,anchor:h})=>{let v;for(;d&&d!==h;)v=p(d),r(d),d=v;r(h)},R=(d,h,v,x,w,C,M,D,j)=>{h.type==="svg"?M="svg":h.type==="math"&&(M="mathml"),d==null?Z(h,v,x,w,C,M,D,j):Y(d,h,w,C,M,D,j)},Z=(d,h,v,x,w,C,M,D)=>{let j,S;const{props:B,shapeFlag:L,transition:V,dirs:W}=d;if(j=d.el=o(d.type,C,B&&B.is,B),L&8?u(j,d.children):L&16&&_e(d.children,j,null,x,w,fs(d,C),M,D),W&&Ot(d,null,x,"created"),ye(j,d,d.scopeId,M,x),B){for(const me in B)me!=="value"&&!tn(me)&&i(j,me,null,B[me],C,x);"value"in B&&i(j,"value",null,B.value,C),(S=B.onVnodeBeforeMount)&&st(S,x,d)}W&&Ot(d,null,x,"beforeMount");const te=Il(w,V);te&&V.beforeEnter(j),s(j,h,v),((S=B&&B.onVnodeMounted)||te||W)&&Ke(()=>{S&&st(S,x,d),te&&V.enter(j),W&&Ot(d,null,x,"mounted")},w)},ye=(d,h,v,x,w)=>{if(v&&m(d,v),x)for(let C=0;C<x.length;C++)m(d,x[C]);if(w){let C=w.subTree;if(h===C||Bo(C.type)&&(C.ssContent===h||C.ssFallback===h)){const M=w.vnode;ye(d,M,M.scopeId,M.slotScopeIds,w.parent)}}},_e=(d,h,v,x,w,C,M,D,j=0)=>{for(let S=j;S<d.length;S++){const B=d[S]=D?_t(d[S]):ot(d[S]);P(null,B,h,v,x,w,C,M,D)}},Y=(d,h,v,x,w,C,M)=>{const D=h.el=d.el;let{patchFlag:j,dynamicChildren:S,dirs:B}=h;j|=d.patchFlag&16;const L=d.props||de,V=h.props||de;let W;if(v&&kt(v,!1),(W=V.onVnodeBeforeUpdate)&&st(W,v,h,d),B&&Ot(h,d,v,"beforeUpdate"),v&&kt(v,!0),(L.innerHTML&&V.innerHTML==null||L.textContent&&V.textContent==null)&&u(D,""),S?ne(d.dynamicChildren,S,D,v,x,fs(h,w),C):M||oe(d,h,D,null,v,x,fs(h,w),C,!1),j>0){if(j&16)fe(D,L,V,v,w);else if(j&2&&L.class!==V.class&&i(D,"class",null,V.class,w),j&4&&i(D,"style",L.style,V.style,w),j&8){const te=h.dynamicProps;for(let me=0;me<te.length;me++){const ce=te[me],Be=L[ce],Ue=V[ce];(Ue!==Be||ce==="value")&&i(D,ce,Be,Ue,w,v)}}j&1&&d.children!==h.children&&u(D,h.children)}else!M&&S==null&&fe(D,L,V,v,w);((W=V.onVnodeUpdated)||B)&&Ke(()=>{W&&st(W,v,h,d),B&&Ot(h,d,v,"updated")},x)},ne=(d,h,v,x,w,C,M)=>{for(let D=0;D<h.length;D++){const j=d[D],S=h[D],B=j.el&&(j.type===le||!Dt(j,S)||j.shapeFlag&198)?f(j.el):v;P(j,S,B,null,x,w,C,M,!0)}},fe=(d,h,v,x,w)=>{if(h!==v){if(h!==de)for(const C in h)!tn(C)&&!(C in v)&&i(d,C,h[C],null,w,x);for(const C in v){if(tn(C))continue;const M=v[C],D=h[C];M!==D&&C!=="value"&&i(d,C,D,M,w,x)}"value"in v&&i(d,"value",h.value,v.value,w)}},I=(d,h,v,x,w,C,M,D,j)=>{const S=h.el=d?d.el:l(""),B=h.anchor=d?d.anchor:l("");let{patchFlag:L,dynamicChildren:V,slotScopeIds:W}=h;W&&(D=D?D.concat(W):W),d==null?(s(S,v,x),s(B,v,x),_e(h.children||[],v,B,w,C,M,D,j)):L>0&&L&64&&V&&d.dynamicChildren?(ne(d.dynamicChildren,V,v,w,C,M,D),(h.key!=null||w&&h===w.subTree)&&Lo(d,h,!0)):oe(d,h,v,B,w,C,M,D,j)},ue=(d,h,v,x,w,C,M,D,j)=>{h.slotScopeIds=D,d==null?h.shapeFlag&512?w.ctx.activate(h,v,x,M,j):A(h,v,x,w,C,M,j):y(d,h,j)},A=(d,h,v,x,w,C,M)=>{const D=d.component=Ql(d,x,w);if(Yn(d)&&(D.ctx.renderer=$e),ea(D,!1,M),D.asyncDep){if(w&&w.registerDep(D,O,M),!d.el){const j=D.subTree=G(De);g(null,j,h,v)}}else O(D,d,h,v,w,C,M)},y=(d,h,v)=>{const x=h.component=d.component;if(Bl(d,h,v))if(x.asyncDep&&!x.asyncResolved){z(x,h,v);return}else x.next=h,x.update();else h.el=d.el,x.vnode=h},O=(d,h,v,x,w,C,M)=>{const D=()=>{if(d.isMounted){let{next:L,bu:V,u:W,parent:te,vnode:me}=d;{const tt=Fo(d);if(tt){L&&(L.el=me.el,z(d,L,M)),tt.asyncDep.then(()=>{d.isUnmounted||D()});return}}let ce=L,Be;kt(d,!1),L?(L.el=me.el,z(d,L,M)):L=me,V&&kn(V),(Be=L.props&&L.props.onVnodeBeforeUpdate)&&st(Be,te,L,me),kt(d,!0);const Ue=ar(d),et=d.subTree;d.subTree=Ue,P(et,Ue,f(et.el),K(et),d,w,C),L.el=Ue.el,ce===null&&ql(d,Ue.el),W&&Ke(W,w),(Be=L.props&&L.props.onVnodeUpdated)&&Ke(()=>st(Be,te,L,me),w)}else{let L;const{el:V,props:W}=h,{bm:te,m:me,parent:ce,root:Be,type:Ue}=d,et=Bt(h);kt(d,!1),te&&kn(te),!et&&(L=W&&W.onVnodeBeforeMount)&&st(L,ce,h),kt(d,!0);{Be.ce&&Be.ce._injectChildStyle(Ue);const tt=d.subTree=ar(d);P(null,tt,v,x,d,w,C),h.el=tt.el}if(me&&Ke(me,w),!et&&(L=W&&W.onVnodeMounted)){const tt=h;Ke(()=>st(L,ce,tt),w)}(h.shapeFlag&256||ce&&Bt(ce.vnode)&&ce.vnode.shapeFlag&256)&&d.a&&Ke(d.a,w),d.isMounted=!0,h=v=x=null}};d.scope.on();const j=d.effect=new Wr(D);d.scope.off();const S=d.update=j.run.bind(j),B=d.job=j.runIfDirty.bind(j);B.i=d,B.id=d.uid,j.scheduler=()=>Vs(B),kt(d,!0),S()},z=(d,h,v)=>{h.component=d;const x=d.vnode.props;d.vnode=h,d.next=null,Ol(d,h.props,x,v),jl(d,h.children,v),ht(),er(d),mt()},oe=(d,h,v,x,w,C,M,D,j=!1)=>{const S=d&&d.children,B=d?d.shapeFlag:0,L=h.children,{patchFlag:V,shapeFlag:W}=h;if(V>0){if(V&128){Rt(S,L,v,x,w,C,M,D,j);return}else if(V&256){Ce(S,L,v,x,w,C,M,D,j);return}}W&8?(B&16&&F(S,w,C),L!==S&&u(v,L)):B&16?W&16?Rt(S,L,v,x,w,C,M,D,j):F(S,w,C,!0):(B&8&&u(v,""),W&16&&_e(L,v,x,w,C,M,D,j))},Ce=(d,h,v,x,w,C,M,D,j)=>{d=d||Ft,h=h||Ft;const S=d.length,B=h.length,L=Math.min(S,B);let V;for(V=0;V<L;V++){const W=h[V]=j?_t(h[V]):ot(h[V]);P(d[V],W,v,null,w,C,M,D,j)}S>B?F(d,w,C,!0,!1,L):_e(h,v,x,w,C,M,D,j,L)},Rt=(d,h,v,x,w,C,M,D,j)=>{let S=0;const B=h.length;let L=d.length-1,V=B-1;for(;S<=L&&S<=V;){const W=d[S],te=h[S]=j?_t(h[S]):ot(h[S]);if(Dt(W,te))P(W,te,v,null,w,C,M,D,j);else break;S++}for(;S<=L&&S<=V;){const W=d[L],te=h[V]=j?_t(h[V]):ot(h[V]);if(Dt(W,te))P(W,te,v,null,w,C,M,D,j);else break;L--,V--}if(S>L){if(S<=V){const W=V+1,te=W<B?h[W].el:x;for(;S<=V;)P(null,h[S]=j?_t(h[S]):ot(h[S]),v,te,w,C,M,D,j),S++}}else if(S>V)for(;S<=L;)ze(d[S],w,C,!0),S++;else{const W=S,te=S,me=new Map;for(S=te;S<=V;S++){const qe=h[S]=j?_t(h[S]):ot(h[S]);qe.key!=null&&me.set(qe.key,S)}let ce,Be=0;const Ue=V-te+1;let et=!1,tt=0;const Yt=new Array(Ue);for(S=0;S<Ue;S++)Yt[S]=0;for(S=W;S<=L;S++){const qe=d[S];if(Be>=Ue){ze(qe,w,C,!0);continue}let nt;if(qe.key!=null)nt=me.get(qe.key);else for(ce=te;ce<=V;ce++)if(Yt[ce-te]===0&&Dt(qe,h[ce])){nt=ce;break}nt===void 0?ze(qe,w,C,!0):(Yt[nt-te]=S+1,nt>=tt?tt=nt:et=!0,P(qe,h[nt],v,null,w,C,M,D,j),Be++)}const Gs=et?Nl(Yt):Ft;for(ce=Gs.length-1,S=Ue-1;S>=0;S--){const qe=te+S,nt=h[qe],Js=qe+1<B?h[qe+1].el:x;Yt[S]===0?P(null,nt,v,Js,w,C,M,D,j):et&&(ce<0||S!==Gs[ce]?at(nt,v,Js,2):ce--)}}},at=(d,h,v,x,w=null)=>{const{el:C,type:M,transition:D,children:j,shapeFlag:S}=d;if(S&6){at(d.component.subTree,h,v,x);return}if(S&128){d.suspense.move(h,v,x);return}if(S&64){M.move(d,h,v,$e);return}if(M===le){s(C,h,v);for(let L=0;L<j.length;L++)at(j[L],h,v,x);s(d.anchor,h,v);return}if(M===ds){H(d,h,v);return}if(x!==2&&S&1&&D)if(x===0)D.beforeEnter(C),s(C,h,v),Ke(()=>D.enter(C),w);else{const{leave:L,delayLeave:V,afterLeave:W}=D,te=()=>{d.ctx.isUnmounted?r(C):s(C,h,v)},me=()=>{L(C,()=>{te(),W&&W()})};V?V(C,te,me):me()}else s(C,h,v)},ze=(d,h,v,x=!1,w=!1)=>{const{type:C,props:M,ref:D,children:j,dynamicChildren:S,shapeFlag:B,patchFlag:L,dirs:V,cacheIndex:W}=d;if(L===-2&&(w=!1),D!=null&&(ht(),Rn(D,null,v,d,!0),mt()),W!=null&&(h.renderCache[W]=void 0),B&256){h.ctx.deactivate(d);return}const te=B&1&&V,me=!Bt(d);let ce;if(me&&(ce=M&&M.onVnodeBeforeUnmount)&&st(ce,h,d),B&6)ss(d.component,v,x);else{if(B&128){d.suspense.unmount(v,x);return}te&&Ot(d,null,h,"beforeUnmount"),B&64?d.type.remove(d,h,v,$e,x):S&&!S.hasOnce&&(C!==le||L>0&&L&64)?F(S,h,v,!1,!0):(C===le&&L&384||!w&&B&16)&&F(j,h,v),x&&Cn(d)}(me&&(ce=M&&M.onVnodeUnmounted)||te)&&Ke(()=>{ce&&st(ce,h,d),te&&Ot(d,null,h,"unmounted")},v)},Cn=d=>{const{type:h,el:v,anchor:x,transition:w}=d;if(h===le){xn(v,x);return}if(h===ds){N(d);return}const C=()=>{r(v),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(d.shapeFlag&1&&w&&!w.persisted){const{leave:M,delayLeave:D}=w,j=()=>M(v,C);D?D(d.el,C,j):j()}else C()},xn=(d,h)=>{let v;for(;d!==h;)v=p(d),r(d),d=v;r(h)},ss=(d,h,v)=>{const{bum:x,scope:w,job:C,subTree:M,um:D,m:j,a:S,parent:B,slots:{__:L}}=d;lr(j),lr(S),x&&kn(x),B&&q(L)&&L.forEach(V=>{B.renderCache[V]=void 0}),w.stop(),C&&(C.flags|=8,ze(M,d,h,v)),D&&Ke(D,h),Ke(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},F=(d,h,v,x=!1,w=!1,C=0)=>{for(let M=C;M<d.length;M++)ze(d[M],h,v,x,w)},K=d=>{if(d.shapeFlag&6)return K(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=p(d.anchor||d.el),v=h&&h[rl];return v?p(v):h};let ee=!1;const xe=(d,h,v)=>{d==null?h._vnode&&ze(h._vnode,null,null,!0):P(h._vnode||null,d,h,null,null,null,v),h._vnode=d,ee||(ee=!0,er(),co(),ee=!1)},$e={p:P,um:ze,m:at,r:Cn,mt:A,mc:_e,pc:oe,pbc:ne,n:K,o:e};return{render:xe,hydrate:void 0,createApp:$l(xe)}}function fs({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 kt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Il(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Lo(e,t,n=!1){const s=e.children,r=t.children;if(q(s)&&q(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=_t(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&Lo(o,l)),l.type===Zn&&(l.el=o.el),l.type===De&&!l.el&&(l.el=o.el)}}function Nl(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<c?i=l+1:o=l;c<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Fo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fo(t)}function lr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Rl=Symbol.for("v-scx"),Ml=()=>Ee(Rl);function He(e,t,n){return Uo(e,t,n)}function Uo(e,t,n=de){const{immediate:s,deep:r,flush:i,once:o}=n,l=Se({},n),a=t&&s||!t&&i!=="post";let c;if(pn){if(i==="sync"){const m=Ml();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!a){const m=()=>{};return m.stop=it,m.resume=it,m.pause=it,m}}const u=Pe;l.call=(m,_,P)=>Ze(m,u,_,P);let f=!1;i==="post"?l.scheduler=m=>{Ke(m,u&&u.suspense)}:i!=="sync"&&(f=!0,l.scheduler=(m,_)=>{_?m():Vs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const p=el(e,t,l);return pn&&(c?c.push(p):a&&p()),p}function Ll(e,t,n){const s=this.proxy,r=be(e)?e.includes(".")?Vo(s,e):()=>s[e]:e.bind(s,s);let i;J(t)?i=t:(i=t.handler,n=t);const o=_n(this),l=Uo(r,i.bind(s),n);return o(),l}function Vo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Fl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xt(t)}Modifiers`]||e[`${Tt(t)}Modifiers`];function Ul(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||de;let r=n;const i=t.startsWith("update:"),o=i&&Fl(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>be(u)?u.trim():u)),o.number&&(r=n.map(jn)));let l,a=s[l=rs(t)]||s[l=rs(xt(t))];!a&&i&&(a=s[l=rs(Tt(t))]),a&&Ze(a,e,6,r);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ze(c,e,6,r)}}function Ho(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!J(e)){const a=c=>{const u=Ho(c,t,!0);u&&(l=!0,Se(o,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(he(e)&&s.set(e,null),null):(q(i)?i.forEach(a=>o[a]=null):Se(o,i),he(e)&&s.set(e,o),o)}function Qn(e,t){return!e||!Bn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Tt(t))||ae(e,t))}function ar(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:a,render:c,renderCache:u,props:f,data:p,setupState:m,ctx:_,inheritAttrs:P}=e,T=Nn(e);let g,E;try{if(n.shapeFlag&4){const N=r||s,R=N;g=ot(c.call(R,N,u,f,m,p,_)),E=l}else{const N=t;g=ot(N.length>1?N(f,{attrs:l,slots:o,emit:a}):N(f,null)),E=t.props?l:Vl(l)}}catch(N){on.length=0,Jn(N,e,1),g=G(De)}let H=g;if(E&&P!==!1){const N=Object.keys(E),{shapeFlag:R}=H;N.length&&R&7&&(i&&N.some(Es)&&(E=Hl(E,i)),H=$t(H,E,!1,!0))}return n.dirs&&(H=$t(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&cn(H,n.transition),g=H,Nn(T),g}const Vl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bn(n))&&((t||(t={}))[n]=e[n]);return t},Hl=(e,t)=>{const n={};for(const s in e)(!Es(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Bl(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?ur(s,o,c):!!o;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(o[p]!==s[p]&&!Qn(c,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?ur(s,o,c):!0:!!o;return!1}function ur(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!Qn(n,i))return!0}return!1}function ql({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Bo=e=>e.__isSuspense;function Kl(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):sl(e)}const le=Symbol.for("v-fgt"),Zn=Symbol.for("v-txt"),De=Symbol.for("v-cmt"),ds=Symbol.for("v-stc"),on=[];let We=null;function b(e=!1){on.push(We=e?null:[])}function Wl(){on.pop(),We=on[on.length-1]||null}let fn=1;function cr(e,t=!1){fn+=e,e<0&&We&&t&&(We.hasOnce=!0)}function qo(e){return e.dynamicChildren=fn>0?We||Ft:null,Wl(),fn>0&&We&&We.push(e),e}function $(e,t,n,s,r,i){return qo(k(e,t,n,s,r,i,!0))}function we(e,t,n,s,r){return qo(G(e,t,n,s,r,!0))}function dn(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const Ko=({key:e})=>e??null,En=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Ne(e)||J(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function k(e,t=null,n=null,s=0,r=null,i=e===le?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ko(t),ref:t&&En(t),scopeId:po,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Oe};return l?(qs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),fn>0&&!o&&We&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&We.push(a),a}const G=zl;function zl(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===gl)&&(e=De),dn(e)){const l=$t(e,t,!0);return n&&qs(l,n),fn>0&&!i&&We&&(l.shapeFlag&6?We[We.indexOf(e)]=l:We.push(l)),l.patchFlag=-2,l}if(ra(e)&&(e=e.__vccOpts),t){t=Gl(t);let{class:l,style:a}=t;l&&!be(l)&&(t.class=Ie(l)),he(a)&&(Us(a)&&!q(a)&&(a=Se({},a)),t.style=Ds(a))}const o=be(e)?1:Bo(e)?128:ho(e)?64:he(e)?4:J(e)?2:0;return k(e,t,n,s,r,o,i,!0)}function Gl(e){return e?Us(e)||Do(e)?Se({},e):e:null}function $t(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:a}=e,c=t?Jl(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ko(c),ref:t&&t.ref?n&&i?q(i)?i.concat(En(t)):[i,En(t)]:En(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==le?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&cn(u,a.clone(u)),u}function Fe(e=" ",t=0){return G(Zn,null,e,t)}function Q(e="",t=!1){return t?(b(),we(De,null,e)):G(De,null,e)}function ot(e){return e==null||typeof e=="boolean"?G(De):q(e)?G(le,null,e.slice()):dn(e)?_t(e):G(Zn,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function qs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),qs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Do(t)?t._ctx=Oe:r===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else J(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),s&64?(n=16,t=[Fe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Ie([t.class,s.class]));else if(r==="style")t.style=Ds([t.style,s.style]);else if(Bn(r)){const i=t[r],o=s[r];o&&i!==o&&!(q(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function st(e,t,n,s=null){Ze(e,t,7,[n,s])}const Yl=ko();let Xl=0;function Ql(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Yl,i={uid:Xl++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ti(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Io(s,r),emitsOptions:Ho(s,r),emit:null,emitted:null,propsDefaults:de,inheritAttrs:s.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,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=Ul.bind(null,i),e.ce&&e.ce(i),i}let Pe=null;const Zl=()=>Pe||Oe;let Ln,Ts;{const e=Wn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),Ts=t("__VUE_SSR_SETTERS__",n=>pn=n)}const _n=e=>{const t=Pe;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},fr=()=>{Pe&&Pe.scope.off(),Ln(null)};function Wo(e){return e.vnode.shapeFlag&4}let pn=!1;function ea(e,t=!1,n=!1){t&&Ts(t);const{props:s,children:r}=e.vnode,i=Wo(e);Tl(e,s,i,t),Al(e,r,n||t);const o=i?ta(e,t):void 0;return t&&Ts(!1),o}function ta(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yl);const{setup:s}=n;if(s){ht();const r=e.setupContext=s.length>1?sa(e):null,i=_n(e),o=wn(s,e,0,[e.props,r]),l=Mr(o);if(mt(),i(),(l||e.sp)&&!Bt(e)&&wo(e),l){if(o.then(fr,fr),t)return o.then(a=>{dr(e,a)}).catch(a=>{Jn(a,e,0)});e.asyncDep=o}else dr(e,o)}else zo(e)}function dr(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=lo(t)),zo(e)}function zo(e,t,n){const s=e.type;e.render||(e.render=s.render||it);{const r=_n(e);ht();try{bl(e)}finally{mt(),r()}}}const na={get(e,t){return je(e,"get",""),e[t]}};function sa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,na),slots:e.slots,emit:e.emit,expose:t}}function es(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(lo(zi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in rn)return rn[n](e)},has(t,n){return n in t||n in rn}})):e.proxy}function ra(e){return J(e)&&"__vccOpts"in e}const se=(e,t)=>Qi(e,t,pn);function oa(e,t,n){const s=arguments.length;return s===2?he(t)&&!q(t)?dn(t)?G(e,null,[t]):G(e,t):G(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&dn(n)&&(n=[n]),G(e,t,n))}const ia="3.5.16";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.16
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let Os;const pr=typeof window<"u"&&window.trustedTypes;if(pr)try{Os=pr.createPolicy("vue",{createHTML:e=>e})}catch{}const Go=Os?e=>Os.createHTML(e):e=>e,la="http://www.w3.org/2000/svg",aa="http://www.w3.org/1998/Math/MathML",ft=typeof document<"u"?document:null,hr=ft&&ft.createElement("template"),ua={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ft.createElementNS(la,e):t==="mathml"?ft.createElementNS(aa,e):n?ft.createElement(e,{is:n}):ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ft.createTextNode(e),createComment:e=>ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{hr.innerHTML=Go(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=hr.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},yt="transition",Qt="animation",hn=Symbol("_vtc"),Jo={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},ca=Se({},mo,Jo),fa=e=>(e.displayName="Transition",e.props=ca,e),Fn=fa((e,{slots:t})=>oa(ll,da(e),t)),Et=(e,t=[])=>{q(e)?e.forEach(n=>n(...t)):e&&e(...t)},mr=e=>e?q(e)?e.some(t=>t.length>1):e.length>1:!1;function da(e){const t={};for(const I in e)I in Jo||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=o,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,_=pa(r),P=_&&_[0],T=_&&_[1],{onBeforeEnter:g,onEnter:E,onEnterCancelled:H,onLeave:N,onLeaveCancelled:R,onBeforeAppear:Z=g,onAppear:ye=E,onAppearCancelled:_e=H}=t,Y=(I,ue,A,y)=>{I._enterCancelled=y,At(I,ue?u:l),At(I,ue?c:o),A&&A()},ne=(I,ue)=>{I._isLeaving=!1,At(I,f),At(I,m),At(I,p),ue&&ue()},fe=I=>(ue,A)=>{const y=I?ye:E,O=()=>Y(ue,I,A);Et(y,[ue,O]),vr(()=>{At(ue,I?a:i),ct(ue,I?u:l),mr(y)||gr(ue,s,P,O)})};return Se(t,{onBeforeEnter(I){Et(g,[I]),ct(I,i),ct(I,o)},onBeforeAppear(I){Et(Z,[I]),ct(I,a),ct(I,c)},onEnter:fe(!1),onAppear:fe(!0),onLeave(I,ue){I._isLeaving=!0;const A=()=>ne(I,ue);ct(I,f),I._enterCancelled?(ct(I,p),wr()):(wr(),ct(I,p)),vr(()=>{I._isLeaving&&(At(I,f),ct(I,m),mr(N)||gr(I,s,T,A))}),Et(N,[I,A])},onEnterCancelled(I){Y(I,!1,void 0,!0),Et(H,[I])},onAppearCancelled(I){Y(I,!0,void 0,!0),Et(_e,[I])},onLeaveCancelled(I){ne(I),Et(R,[I])}})}function pa(e){if(e==null)return null;if(he(e))return[ps(e.enter),ps(e.leave)];{const t=ps(e);return[t,t]}}function ps(e){return gi(e)}function ct(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[hn]||(e[hn]=new Set)).add(t)}function At(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[hn];n&&(n.delete(t),n.size||(e[hn]=void 0))}function vr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ha=0;function gr(e,t,n,s){const r=e._endId=++ha,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:a}=ma(e,t);if(!o)return s();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,p),i()},p=m=>{m.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,p)}function ma(e,t){const n=window.getComputedStyle(e),s=_=>(n[_]||"").split(", "),r=s(`${yt}Delay`),i=s(`${yt}Duration`),o=yr(r,i),l=s(`${Qt}Delay`),a=s(`${Qt}Duration`),c=yr(l,a);let u=null,f=0,p=0;t===yt?o>0&&(u=yt,f=o,p=i.length):t===Qt?c>0&&(u=Qt,f=c,p=a.length):(f=Math.max(o,c),u=f>0?o>c?yt:Qt:null,p=u?u===yt?i.length:a.length:0);const m=u===yt&&/\b(transform|all)(,|$)/.test(s(`${yt}Property`).toString());return{type:u,timeout:f,propCount:p,hasTransform:m}}function yr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>br(n)+br(e[s])))}function br(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function wr(){return document.body.offsetHeight}function va(e,t,n){const s=e[hn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Un=Symbol("_vod"),Yo=Symbol("_vsh"),Ks={beforeMount(e,{value:t},{transition:n}){e[Un]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Zt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Zt(e,!0),s.enter(e)):s.leave(e,()=>{Zt(e,!1)}):Zt(e,t))},beforeUnmount(e,{value:t}){Zt(e,t)}};function Zt(e,t){e.style.display=t?e[Un]:"none",e[Yo]=!t}const ga=Symbol(""),ya=/(^|;)\s*display\s*:/;function ba(e,t,n){const s=e.style,r=be(n);let i=!1;if(n&&!r){if(t)if(be(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&An(s,l,"")}else for(const o in t)n[o]==null&&An(s,o,"");for(const o in n)o==="display"&&(i=!0),An(s,o,n[o])}else if(r){if(t!==n){const o=s[ga];o&&(n+=";"+o),s.cssText=n,i=ya.test(n)}}else t&&e.removeAttribute("style");Un in e&&(e[Un]=i?s.display:"",e[Yo]&&(s.display="none"))}const _r=/\s*!important$/;function An(e,t,n){if(q(n))n.forEach(s=>An(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=wa(e,t);_r.test(n)?e.setProperty(Tt(s),n.replace(_r,""),"important"):e[s]=n}}const Cr=["Webkit","Moz","ms"],hs={};function wa(e,t){const n=hs[t];if(n)return n;let s=xt(t);if(s!=="filter"&&s in e)return hs[t]=s;s=Ur(s);for(let r=0;r<Cr.length;r++){const i=Cr[r]+s;if(i in e)return hs[t]=i}return t}const xr="http://www.w3.org/1999/xlink";function Sr(e,t,n,s,r,i=xi(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(xr,t.slice(6,t.length)):e.setAttributeNS(xr,t,n):n==null||i&&!Hr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Qe(n)?String(n):n)}function $r(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Go(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Hr(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function Pt(e,t,n,s){e.addEventListener(t,n,s)}function _a(e,t,n,s){e.removeEventListener(t,n,s)}const Tr=Symbol("_vei");function Ca(e,t,n,s,r=null){const i=e[Tr]||(e[Tr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,a]=xa(t);if(s){const c=i[t]=Ta(s,r);Pt(e,l,c,a)}else o&&(_a(e,l,o,a),i[t]=void 0)}}const Or=/(?:Once|Passive|Capture)$/;function xa(e){let t;if(Or.test(e)){t={};let s;for(;s=e.match(Or);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Tt(e.slice(2)),t]}let ms=0;const Sa=Promise.resolve(),$a=()=>ms||(Sa.then(()=>ms=0),ms=Date.now());function Ta(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ze(Oa(s,n.value),t,5,[s])};return n.value=e,n.attached=$a(),n}function Oa(e,t){if(q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const kr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ka=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?va(e,s,o):t==="style"?ba(e,n,s):Bn(t)?Es(t)||Ca(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ea(e,t,s,o))?($r(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Sr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!be(s))?$r(e,xt(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Sr(e,t,s,o))};function Ea(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&kr(t)&&J(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return kr(t)&&be(n)?!1:t in e}const Vn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>kn(t,n):t};function Aa(e){e.target.composing=!0}function Er(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Kt=Symbol("_assign"),Wt={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Kt]=Vn(r);const i=s||r.props&&r.props.type==="number";Pt(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=jn(l)),e[Kt](l)}),n&&Pt(e,"change",()=>{e.value=e.value.trim()}),t||(Pt(e,"compositionstart",Aa),Pt(e,"compositionend",Er),Pt(e,"change",Er))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Kt]=Vn(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?jn(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a))}},mn={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=qn(t);Pt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?jn(Hn(o)):Hn(o));e[Kt](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,Gt(()=>{e._assigning=!1})}),e[Kt]=Vn(s)},mounted(e,{value:t}){Ar(e,t)},beforeUpdate(e,t,n){e[Kt]=Vn(n)},updated(e,{value:t}){e._assigning||Ar(e,t)}};function Ar(e,t){const n=e.multiple,s=q(t);if(!(n&&!s&&!qn(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=Hn(o);if(n)if(s){const a=typeof l;a==="string"||a==="number"?o.selected=t.some(c=>String(c)===String(l)):o.selected=$i(t,l)>-1}else o.selected=t.has(l);else if(zn(Hn(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Hn(e){return"_value"in e?e._value:e.value}const ja=["ctrl","shift","alt","meta"],Da={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ja.some(n=>e[`${n}Key`]&&!t.includes(n))},zt=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=Da[t[o]];if(l&&l(r,t))return}return e(r,...i)})},Pa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=Tt(r.key);if(t.some(o=>o===i||Pa[o]===i))return e(r)})},Ia=Se({patchProp:ka},ua);let jr;function Na(){return jr||(jr=Dl(Ia))}const Ra=(...e)=>{const t=Na().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=La(s);if(!r)return;const i=t._component;!J(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Ma(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Ma(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function La(e){return be(e)?document.querySelector(e):e}const Fa={class:"max-w-sm rounded overflow-hidden shadow-lg border border-front/20"},Ua={class:"py-2 border-b border-front/20"},Va={class:"pl-6"},Ha={class:"px-6 py-2"},Xo=ge({__name:"Card",props:{title:{}},emits:["close"],setup(e,{emit:t}){const n=t;return(s,r)=>(b(),$("div",Fa,[Ye(s.$slots,"header",{},()=>[k("div",Ua,[k("strong",Va,re(s.title),1),k("span",{class:"control text-l float-right mr-2 pl-2",title:"close",onClick:r[0]||(r[0]=i=>n("close"))},"⊗ ")])]),k("div",Ha,[Ye(s.$slots,"default")])]))}}),Ba={class:"header"},qa={class:"list-disc mt-2"},Ka={key:0},Wa={key:1},za={key:2},Ga={key:3},Ja={key:0},Ya=ge({__name:"AttributeCard",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=Ee("app"),r=se(()=>{var o;return(o=s==null?void 0:s.schema)==null?void 0:o.attr(n.modelValue)}),i=t;return(o,l)=>{var a;return o.modelValue&&r.value?(b(),we(Xo,{key:0,title:((a=r.value.names)==null?void 0:a.join(", "))||"",class:"ml-4",onClose:l[1]||(l[1]=c=>i("update:modelValue"))},{default:pe(()=>[k("div",Ba,re(r.value.desc),1),k("ul",qa,[r.value.$super?(b(),$("li",Ka,[l[2]||(l[2]=Fe(" Parent: ")),k("span",{class:"cursor-pointer",onClick:l[0]||(l[0]=c=>i("update:modelValue",r.value.$super.name))},re(r.value.$super),1)])):Q("",!0),r.value.equality?(b(),$("li",Wa,"Equality: "+re(r.value.equality),1)):Q("",!0),r.value.ordering?(b(),$("li",za,"Ordering: "+re(r.value.ordering),1)):Q("",!0),r.value.substr?(b(),$("li",Ga,"Substring: "+re(r.value.substr),1)):Q("",!0),k("li",null,[Fe(" Syntax: "+re(r.value.$syntax)+" ",1),r.value.binary?(b(),$("span",Ja,"(binary)")):Q("",!0)])])]),_:1},8,["title"])):Q("",!0)}}}),Xa={key:0,class:"fixed w-full h-full top-0 left-0 z-20 bg-front/60 dark:bg-back/70"},Qa={class:"absolute max-h-full w-1/2 max-w-lg container text-front overflow-hidden rounded bg-back border border-front/40"},Za={class:"flex justify-between items-start"},eu={class:"max-h-full w-full divide-y divide-front/30"},tu={key:0,class:"flex justify-between items-center px-4 py-1"},nu={class:"ui-modal-header text-xl font-bold leading-normal"},su={class:"ui-modal-body p-4 space-y-4"},ru={class:"ui-modal-footer flex justify-end w-full p-4 space-x-3"},lt=ge({__name:"Modal",props:{title:{type:String,required:!0},open:{type:Boolean,required:!0},okTitle:{type:String,default:"OK"},okClasses:{type:String,default:"bg-primary/80"},cancelTitle:{type:String,default:"Cancel"},cancelClasses:{type:String,default:"bg-secondary"},hideFooter:{type:Boolean,default:!1},returnTo:String},emits:["ok","cancel","show","shown","hide","hidden"],setup(e,{emit:t}){const n=e,s=t;function r(){n.open&&s("ok")}function i(){var o;n.open&&(n.returnTo&&((o=document.getElementById(n.returnTo))==null||o.focus()),s("cancel"))}return(o,l)=>(b(),$("div",null,[G(Fn,{name:"fade"},{default:pe(()=>[e.open?(b(),$("div",Xa)):Q("",!0)]),_:1}),G(Fn,{name:"bounce",onEnter:l[0]||(l[0]=a=>s("show")),onAfterEnter:l[1]||(l[1]=a=>s("shown")),onLeave:l[2]||(l[2]=a=>s("hide")),onAfterLeave:l[3]||(l[3]=a=>s("hidden"))},{default:pe(()=>[e.open?(b(),$("div",{key:0,ref:"backdrop",onClick:zt(i,["self"]),onKeydown:gt(i,["esc"]),class:"fixed w-full h-full top-0 left-0 flex items-center justify-center z-30"},[k("div",Qa,[k("div",Za,[k("div",eu,[e.title?(b(),$("div",tu,[k("h3",nu,[Ye(o.$slots,"header",{},()=>[Fe(re(e.title),1)])]),k("div",{class:"control text-xl",onClick:i,title:"close"}," ⊗ ")])):Q("",!0),k("div",su,[Ye(o.$slots,"default")]),Ve(k("div",ru,[Ye(o.$slots,"footer",{},()=>[k("button",{id:"ui-modal-cancel",onClick:i,type:"button",class:Ie(["btn",e.cancelClasses]),tabindex:"0"},[Ye(o.$slots,"modal-cancel",{},()=>[Fe(re(e.cancelTitle),1)])],2),k("button",{id:"ui-modal-ok",onClick:zt(r,["stop"]),type:"button",class:Ie(["btn",e.okClasses]),tabindex:"0"},[Ye(o.$slots,"modal-ok",{},()=>[Fe(re(e.okTitle),1)])],2)])],512),[[Ks,!e.hideFooter]])])])])],544)):Q("",!0)]),_:3})]))}}),ou=ge({__name:"AddAttributeDialog",props:{entry:{},attributes:{},modal:{},returnTo:{}},emits:["ok","show-modal","update:modal"],setup(e,{emit:t}){const n=e,s=U(),r=U(null),i=se(()=>{const a=Object.keys(n.entry.attrs);return n.attributes.filter(c=>!a.includes(c))}),o=t;function l(){if(s.value){if(s.value=="jpegPhoto"||s.value=="thumbnailPhoto"){o("show-modal","add-"+s.value);return}if(s.value=="userPassword"){o("show-modal","change-password");return}o("update:modal"),o("ok",s.value)}}return(a,c)=>(b(),we(lt,{title:"Add attribute",open:a.modal=="add-attribute","return-to":n.returnTo,onShow:c[1]||(c[1]=u=>s.value=void 0),onShown:c[2]||(c[2]=u=>{var f;return(f=r.value)==null?void 0:f.focus()}),onOk:l,onCancel:c[3]||(c[3]=u=>o("update:modal"))},{default:pe(()=>[Ve(k("select",{"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u),ref_key:"select",ref:r,onKeyup:gt(l,["enter"])},[(b(!0),$(le,null,ke(i.value,u=>(b(),$("option",{key:u},re(u),1))),128))],544),[[mn,s.value]])]),_:1},8,["open","return-to"]))}}),iu=ge({__name:"AddObjectClassDialog",props:{entry:{},modal:{}},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=t,r=Ee("app"),i=U(),o=U(),l=se(()=>{var c;return Array.from(((c=r==null?void 0:r.schema)==null?void 0:c.objectClasses.values())||[]).filter(u=>u.aux&&!n.entry.attrs.objectClass.includes(u.name)).map(u=>u.name)});function a(){i.value&&(s("update:modal"),s("ok",i.value))}return(c,u)=>(b(),we(lt,{title:"Add objectClass",open:c.modal=="add-object-class",onShow:u[1]||(u[1]=f=>i.value=void 0),onShown:u[2]||(u[2]=f=>{var p;return(p=o.value)==null?void 0:p.focus()}),onOk:a,onCancel:u[3]||(u[3]=f=>s("update:modal"))},{default:pe(()=>[Ve(k("select",{"onUpdate:modelValue":u[0]||(u[0]=f=>i.value=f),ref_key:"select",ref:o,onKeyup:gt(a,["enter"])},[(b(!0),$(le,null,ke(l.value,f=>(b(),$("option",{key:f},re(f),1))),128))],544),[[mn,i.value]])]),_:1},8,["open"]))}}),Dr=(e,t,n)=>{typeof n=="string"||n instanceof Blob?e.append(t,n):e.append(t,JSON.stringify(n))},lu={bodySerializer:e=>{const t=new FormData;return Object.entries(e).forEach(([n,s])=>{s!=null&&(Array.isArray(s)?s.forEach(r=>Dr(t,n,r)):Dr(t,n,s))}),t}},au={bodySerializer:e=>JSON.stringify(e,(t,n)=>typeof n=="bigint"?n.toString():n)},uu=async(e,t)=>{const n=typeof t=="function"?await t(e):t;if(n)return e.scheme==="bearer"?`Bearer ${n}`:e.scheme==="basic"?`Basic ${btoa(n)}`:n},cu=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},fu=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},du=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Qo=({allowReserved:e,explode:t,name:n,style:s,value:r})=>{if(!t){const l=(e?r:r.map(a=>encodeURIComponent(a))).join(fu(s));switch(s){case"label":return`.${l}`;case"matrix":return`;${n}=${l}`;case"simple":return l;default:return`${n}=${l}`}}const i=cu(s),o=r.map(l=>s==="label"||s==="simple"?e?l:encodeURIComponent(l):ts({allowReserved:e,name:n,value:l})).join(i);return s==="label"||s==="matrix"?i+o:o},ts=({allowReserved:e,name:t,value:n})=>{if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},Zo=({allowReserved:e,explode:t,name:n,style:s,value:r,valueOnly:i})=>{if(r instanceof Date)return i?r.toISOString():`${n}=${r.toISOString()}`;if(s!=="deepObject"&&!t){let a=[];Object.entries(r).forEach(([u,f])=>{a=[...a,u,e?f:encodeURIComponent(f)]});const c=a.join(",");switch(s){case"form":return`${n}=${c}`;case"label":return`.${c}`;case"matrix":return`;${n}=${c}`;default:return c}}const o=du(s),l=Object.entries(r).map(([a,c])=>ts({allowReserved:e,name:s==="deepObject"?`${n}[${a}]`:a,value:c})).join(o);return s==="label"||s==="matrix"?o+l:l},pu=/\{[^{}]+\}/g,hu=({path:e,url:t})=>{let n=t;const s=t.match(pu);if(s)for(const r of s){let i=!1,o=r.substring(1,r.length-1),l="simple";o.endsWith("*")&&(i=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),l="label"):o.startsWith(";")&&(o=o.substring(1),l="matrix");const a=e[o];if(a==null)continue;if(Array.isArray(a)){n=n.replace(r,Qo({explode:i,name:o,style:l,value:a}));continue}if(typeof a=="object"){n=n.replace(r,Zo({explode:i,name:o,style:l,value:a,valueOnly:!0}));continue}if(l==="matrix"){n=n.replace(r,`;${ts({name:o,value:a})}`);continue}const c=encodeURIComponent(l==="label"?`.${a}`:a);n=n.replace(r,c)}return n},ei=({allowReserved:e,array:t,object:n}={})=>r=>{const i=[];if(r&&typeof r=="object")for(const o in r){const l=r[o];if(l!=null)if(Array.isArray(l)){const a=Qo({allowReserved:e,explode:!0,name:o,style:"form",value:l,...t});a&&i.push(a)}else if(typeof l=="object"){const a=Zo({allowReserved:e,explode:!0,name:o,style:"deepObject",value:l,...n});a&&i.push(a)}else{const a=ts({allowReserved:e,name:o,value:l});a&&i.push(a)}}return i.join("&")},mu=e=>{var n;if(!e)return"stream";const t=(n=e.split(";")[0])==null?void 0:n.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>t.startsWith(s)))return"blob";if(t.startsWith("text/"))return"text"}},vu=async({security:e,...t})=>{for(const n of e){const s=await uu(n,t.auth);if(!s)continue;const r=n.name??"Authorization";switch(n.in){case"query":t.query||(t.query={}),t.query[r]=s;break;case"cookie":t.headers.append("Cookie",`${r}=${s}`);break;case"header":default:t.headers.set(r,s);break}return}},Pr=e=>gu({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:ei(e.querySerializer),url:e.url}),gu=({baseUrl:e,path:t,query:n,querySerializer:s,url:r})=>{const i=r.startsWith("/")?r:`/${r}`;let o=(e??"")+i;t&&(o=hu({path:t,url:o}));let l=n?s(n):"";return l.startsWith("?")&&(l=l.substring(1)),l&&(o+=`?${l}`),o},Ir=(e,t)=>{var s;const n={...e,...t};return(s=n.baseUrl)!=null&&s.endsWith("/")&&(n.baseUrl=n.baseUrl.substring(0,n.baseUrl.length-1)),n.headers=ti(e.headers,t.headers),n},ti=(...e)=>{const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const s=n instanceof Headers?n.entries():Object.entries(n);for(const[r,i]of s)if(i===null)t.delete(r);else if(Array.isArray(i))for(const o of i)t.append(r,o);else i!==void 0&&t.set(r,typeof i=="object"?JSON.stringify(i):i)}return t};class vs{constructor(){X(this,"_fns");this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(t){return typeof t=="number"?this._fns[t]?t:-1:this._fns.indexOf(t)}exists(t){const n=this.getInterceptorIndex(t);return!!this._fns[n]}eject(t){const n=this.getInterceptorIndex(t);this._fns[n]&&(this._fns[n]=null)}update(t,n){const s=this.getInterceptorIndex(t);return this._fns[s]?(this._fns[s]=n,t):!1}use(t){return this._fns=[...this._fns,t],this._fns.length-1}}const yu=()=>({error:new vs,request:new vs,response:new vs}),bu=ei({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),wu={"Content-Type":"application/json"},ni=(e={})=>({...au,headers:wu,parseAs:"auto",querySerializer:bu,...e}),si=(e={})=>{let t=Ir(ni(),e);const n=()=>({...t}),s=o=>(t=Ir(t,o),n()),r=yu(),i=async o=>{const l={...t,...o,fetch:o.fetch??t.fetch??globalThis.fetch,headers:ti(t.headers,o.headers)};l.security&&await vu({...l,security:l.security}),l.body&&l.bodySerializer&&(l.body=l.bodySerializer(l.body)),(l.body===void 0||l.body==="")&&l.headers.delete("Content-Type");const a=Pr(l),c={redirect:"follow",...l};let u=new Request(a,c);for(const T of r.request._fns)T&&(u=await T(u,l));const f=l.fetch;let p=await f(u);for(const T of r.response._fns)T&&(p=await T(p,u,l));const m={request:u,response:p};if(p.ok){if(p.status===204||p.headers.get("Content-Length")==="0")return l.responseStyle==="data"?{}:{data:{},...m};const T=(l.parseAs==="auto"?mu(p.headers.get("Content-Type")):l.parseAs)??"json";if(T==="stream")return l.responseStyle==="data"?p.body:{data:p.body,...m};let g=await p[T]();return T==="json"&&(l.responseValidator&&await l.responseValidator(g),l.responseTransformer&&(g=await l.responseTransformer(g))),l.responseStyle==="data"?g:{data:g,...m}}let _=await p.text();try{_=JSON.parse(_)}catch{}let P=_;for(const T of r.error._fns)T&&(P=await T(_,p,u,l));if(P=P||{},l.throwOnError)throw P;return l.responseStyle==="data"?void 0:{error:P,...m}};return{buildUrl:Pr,connect:o=>i({...o,method:"CONNECT"}),delete:o=>i({...o,method:"DELETE"}),get:o=>i({...o,method:"GET"}),getConfig:n,head:o=>i({...o,method:"HEAD"}),interceptors:r,options:o=>i({...o,method:"OPTIONS"}),patch:o=>i({...o,method:"PATCH"}),post:o=>i({...o,method:"POST"}),put:o=>i({...o,method:"PUT"}),request:i,setConfig:s,trace:o=>i({...o,method:"TRACE"})}},Re=si(ni()),_u=e=>(e.client??Re).delete({security:[{scheme:"basic",type:"http"}],url:"/api/blob/{attr}/{index}/{dn}",...e}),Cu=e=>(e.client??Re).put({...lu,security:[{scheme:"basic",type:"http"}],url:"/api/blob/{attr}/{index}/{dn}",...e,headers:{"Content-Type":null,...e.headers}}),xu=e=>(e.client??Re).post({security:[{scheme:"basic",type:"http"}],url:"/api/change-password/{dn}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Su=e=>(e.client??Re).post({security:[{scheme:"basic",type:"http"}],url:"/api/check-password/{dn}",...e,headers:{"Content-Type":"application/json",...e.headers}}),$u=e=>(e.client??Re).delete({security:[{scheme:"basic",type:"http"}],url:"/api/entry/{dn}",...e}),Tu=e=>(e.client??Re).get({security:[{scheme:"basic",type:"http"}],url:"/api/entry/{dn}",...e}),Ou=e=>(e.client??Re).post({security:[{scheme:"basic",type:"http"}],url:"/api/entry/{dn}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ku=e=>(e.client??Re).put({security:[{scheme:"basic",type:"http"}],url:"/api/entry/{dn}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Eu=e=>(e.client??Re).post({security:[{scheme:"basic",type:"http"}],url:"/api/ldif",...e,headers:{"Content-Type":"application/json",...e.headers}}),Au=e=>(e.client??Re).get({security:[{scheme:"basic",type:"http"}],url:"/api/range/{attribute}",...e}),ju=e=>(e.client??Re).post({security:[{scheme:"basic",type:"http"}],url:"/api/rename/{dn}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Du=e=>((e==null?void 0:e.client)??Re).get({security:[{scheme:"basic",type:"http"}],url:"/api/schema",...e}),Pu=e=>(e.client??Re).get({security:[{scheme:"basic",type:"http"}],url:"/api/search/{query}",...e}),Iu=e=>(e.client??Re).get({security:[{scheme:"basic",type:"http"}],url:"/api/subtree/{root_dn}",...e}),Nu=e=>(e.client??Re).get({security:[{scheme:"basic",type:"http"}],url:"/api/tree/{basedn}",...e}),Ru=e=>((e==null?void 0:e.client)??Re).get({security:[{scheme:"basic",type:"http"}],url:"/api/whoami",...e}),Mu=["accept"],Nr=ge({__name:"AddPhotoDialog",props:{dn:{type:String,required:!0},attr:{type:String,validator:e=>["jpegPhoto","thumbnailPhoto"].includes(e)},modal:String,returnTo:String},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=U(null),r=t,i=Ee("app");async function o(l){const a=l.target;if(!(a!=null&&a.files))return;(await Cu({path:{attr:n.attr,index:0,dn:n.dn},body:{blob:a.files[0]},client:i==null?void 0:i.client})).error||(r("update:modal"),r("ok",n.dn,[n.attr]))}return(l,a)=>(b(),we(lt,{title:"Upload photo","hide-footer":"","return-to":e.returnTo,open:e.modal=="add-"+e.attr,onShown:a[0]||(a[0]=c=>{var u;return(u=s.value)==null?void 0:u.focus()}),onCancel:a[1]||(a[1]=c=>r("update:modal"))},{default:pe(()=>[k("input",{name:"photo",type:"file",ref_key:"upload",ref:s,onChange:o,accept:e.attr=="jpegPhoto"?"image/jpeg":"image/*"},null,40,Mu)]),_:1},8,["return-to","open"]))}});function Lu(e,t,n){return n.indexOf(e)==t}function Fu(e){let t=e.substring(14);return t!="Z"&&(t=t.substring(0,3)+":"+(t.length>3?t.substring(3,5):"00")),new Date(e.substring(0,4)+"-"+e.substring(4,6)+"-"+e.substring(6,8)+"T"+e.substring(8,10)+":"+e.substring(10,12)+":"+e.substring(12,14)+t)}let ns;class Uu{constructor(t){X(this,"text");X(this,"attrName");X(this,"value");this.text=t;const n=t.split("=");this.attrName=n[0].trim(),this.value=n[1].trim()}toString(){return this.text}eq(t){return t!==void 0&&this.attr!==void 0&&this.attr.eq(t.attr)&&this.attr.matcher(this.value,t.value)}get attr(){return ns.attr(this.attrName)}}class vn{constructor(t){X(this,"text");X(this,"rdn");X(this,"parent");this.text=t;const n=t.split(",");this.rdn=new Uu(n[0]),this.parent=n.length==1?void 0:new vn(t.slice(n[0].length+1))}toString(){return this.text}eq(t){return!t||!this.rdn.eq(t.rdn)?!1:!this.parent&&!t.parent?!0:!!this.parent&&this.parent.eq(t.parent)}}let ri=class{constructor(){X(this,"oid");X(this,"name");X(this,"names");X(this,"sup")}};class Vu extends ri{constructor(n){super();X(this,"desc");X(this,"obsolete");X(this,"may");X(this,"must");X(this,"kind");Object.assign(this,n)}get structural(){return this.kind=="structural"}get aux(){return this.kind=="auxiliary"}$collect(n){const s=[];for(let i=this;i;i=i.$super){const o=i[n];o&&s.push(o)}const r=s.flat().map(i=>ns.attr(i)).map(i=>i==null?void 0:i.name).filter(Lu);return r.sort(),r}toString(){return this.name}get $super(){const n=Object.getPrototypeOf(this);return n.sup?n:void 0}}const Rr={distinguishedNameMatch:(e,t)=>new vn(e).eq(new vn(t)),caseIgnoreIA5Match:(e,t)=>e.toLowerCase()==t.toLowerCase(),caseIgnoreMatch:(e,t)=>e.toLowerCase()==t.toLowerCase(),integerMatch:(e,t)=>+e==+t,numericStringMatch:(e,t)=>+e==+t,octetStringMatch:(e,t)=>e==t};class Hu extends ri{constructor(n){super();X(this,"desc");X(this,"equality");X(this,"obsolete");X(this,"ordering");X(this,"no_user_mod");X(this,"single_value");X(this,"substr");X(this,"syntax");X(this,"usage");delete this.equality,delete this.ordering,delete this.substr,delete this.syntax,Object.assign(this,Object.fromEntries(Object.entries(n).filter(([s,r])=>r!=null)))}toString(){return this.name}get matcher(){return(this.equality?Rr[this.equality]:void 0)||Rr.octetStringMatch}eq(n){return n&&this.oid==n.oid}get binary(){var n;if(this.equality!="octetStringMatch")return(n=this.$syntax)==null?void 0:n.not_human_readable}get $syntax(){return ns.syntaxes.get(this.syntax)}get $super(){const n=Object.getPrototypeOf(this);return n.sup?n:void 0}}class Bu{constructor(t){X(this,"oid");X(this,"desc");X(this,"not_human_readable");Object.assign(this,t)}toString(){return this.desc}}class qu extends Object{constructor(n){super();X(this,"attributes");X(this,"objectClasses");X(this,"syntaxes");X(this,"attributesByName");this.syntaxes=new Map(Object.entries(n.syntaxes).map(([s,r])=>[s,new Bu(r)])),this.attributes=Object.values(n.attributes).map(s=>new Hu(s)),this.objectClasses=new Map(Object.entries(n.objectClasses).map(([s,r])=>[s.toLowerCase(),new Vu(r)])),this.buildPrototypeChain(this.objectClasses),this.attributesByName=new Map(this.attributes.flatMap(s=>(s.names||[]).map(r=>[r.toLowerCase(),s]))),this.buildPrototypeChain(this.attributesByName),ns=this}buildPrototypeChain(n){for(const s of n.values()){const r=s.sup?s.sup[0]:void 0,i=r?n.get(r.toLowerCase()):void 0;i&&Object.setPrototypeOf(s,i)}}attr(n){return this.attributesByName.get((n==null?void 0:n.toLowerCase())||"")}oc(n){return this.objectClasses.get((n==null?void 0:n.toLowerCase())||"")}search(n){return this.attributes.filter(s=>{var r;return(r=s.names)==null?void 0:r.some(i=>i.toLowerCase().startsWith(n.toLowerCase()))})}}function Ku(e){return Kr()?(Oi(e),!0):!1}function oi(e){return typeof e=="function"?e():bn(e)}const Wu=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zu=Object.prototype.toString,Gu=e=>zu.call(e)==="[object Object]",Ju=()=>{};function ii(e){var t;const n=oi(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ws=Wu?window:void 0;function It(...e){let t,n,s,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,r]=e,t=Ws):[t,n,s,r]=e,!t)return Ju;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,p,m)=>(u.addEventListener(f,p,m),()=>u.removeEventListener(f,p,m)),a=He(()=>[ii(t),oi(r)],([u,f])=>{if(o(),!u)return;const p=Gu(f)?{...f}:f;i.push(...n.flatMap(m=>s.map(_=>l(u,m,_,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return Ku(c),c}const Yu={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Xu(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:s=!1,initialValue:r={x:0,y:0},window:i=Ws,target:o=i,scroll:l=!0,eventFilter:a}=e;let c=null;const u=U(r.x),f=U(r.y),p=U(null),m=typeof t=="function"?t:Yu[t],_=R=>{const Z=m(R);c=R,Z&&([u.value,f.value]=Z,p.value="mouse")},P=R=>{if(R.touches.length>0){const Z=m(R.touches[0]);Z&&([u.value,f.value]=Z,p.value="touch")}},T=()=>{if(!c||!i)return;const R=m(c);c instanceof MouseEvent&&R&&(u.value=R[0]+i.scrollX,f.value=R[1]+i.scrollY)},g=()=>{u.value=r.x,f.value=r.y},E=a?R=>a(()=>_(R),{}):R=>_(R),H=a?R=>a(()=>P(R),{}):R=>P(R),N=a?()=>a(()=>T(),{}):()=>T();if(o){const R={passive:!0};It(o,["mousemove","dragover"],E,R),n&&t!=="movement"&&(It(o,["touchstart","touchmove"],H,R),s&&It(o,"touchend",g,R)),l&&t==="page"&&It(i,"scroll",N,{passive:!0})}return{x:u,y:f,sourceType:p}}function Qu(e,t={}){const{handleOutside:n=!0,window:s=Ws}=t,r=t.type||"page",{x:i,y:o,sourceType:l}=Xu(t),a=U(e??(s==null?void 0:s.document.body)),c=U(0),u=U(0),f=U(0),p=U(0),m=U(0),_=U(0),P=U(!0);let T=()=>{};return s&&(T=He([a,i,o],()=>{const g=ii(a);if(!g)return;const{left:E,top:H,width:N,height:R}=g.getBoundingClientRect();f.value=E+(r==="page"?s.pageXOffset:0),p.value=H+(r==="page"?s.pageYOffset:0),m.value=R,_.value=N;const Z=i.value-f.value,ye=o.value-p.value;P.value=N===0||R===0||Z<0||ye<0||Z>N||ye>R,(n||!P.value)&&(c.value=Z,u.value=ye)},{immediate:!0}),It(document,"mouseleave",()=>{P.value=!0})),{x:i,y:o,sourceType:l,elementX:c,elementY:u,elementPositionX:f,elementPositionY:p,elementHeight:m,elementWidth:_,isOutside:P,stop:T}}const Zu={key:0,class:"ui-popover absolute z-10 border border-front/70 rounded min-w-max text-front bg-back list-none"},zs=ge({__name:"Popover",props:{open:{type:Boolean}},emits:["opened","closed","update:open"],setup(e,{emit:t}){const n=e,s=t,r=U(null),i=U(),{isOutside:o}=Qu(r);function l(){i.value=void 0,n.open&&s("update:open")}function a(u){const f=r.value.children.length-1;i.value===void 0?i.value=u>0?0:f:(i.value+=u,i.value>f?i.value=0:i.value<0&&(i.value=f))}function c(u){if(!(!n.open||!r.value))switch(u.key){case"Esc":case"Escape":l();break;case"ArrowDown":a(1),u.preventDefault();break;case"ArrowUp":a(-1),u.preventDefault();break;case"Enter":{r.value.children[i.value].click(),u.preventDefault();break}}}return Jt(()=>{It(document,"keydown",c),It(document,"click",l)}),He(i,u=>{if(!(!n.open||!r.value)){for(const f of r.value.children)f.classList.remove("selected");u!=null&&r.value.children[u].classList.add("selected")}}),He(o,u=>{for(const f of r.value.children)u?f.classList.remove("hover:bg-primary/40"):(i.value=void 0,f.classList.add("hover:bg-primary/40"))}),(u,f)=>(b(),we(Fn,{name:"fade",onAfterEnter:f[0]||(f[0]=p=>s("opened")),onAfterLeave:f[1]||(f[1]=p=>s("closed"))},{default:pe(()=>[u.open?(b(),$("div",Zu,[k("ul",{class:"bg-front/5 dark:bg-front/10 py-2",ref_key:"items",ref:r,onClick:l},[Ye(u.$slots,"default")],512)])):Q("",!0)]),_:3}))}}),ec=["onClick","title"],tc=ge({__name:"AttributeSearch",props:{query:{},for:{}},emits:["done"],setup(e,{emit:t}){const n=e,s=Ee("app"),r=U([]),i=se(()=>(n.query??"").trim()!=""&&r.value&&r.value.length>0&&!(r.value.length==1&&n.query==r.value[0].name)),o=t;He(()=>n.query,a=>{var c;a&&(r.value=((c=s==null?void 0:s.schema)==null?void 0:c.search(a))||[],r.value.sort((u,f)=>u.name.toLowerCase().localeCompare(f.name.toLowerCase())))});function l(a){o("done",a),r.value=[],Gt(()=>{if(n.for){const c=document.getElementById(n.for);c&&c.focus()}})}return(a,c)=>(b(),we(zs,{open:i.value,"onUpdate:open":c[0]||(c[0]=u=>r.value=[])},{default:pe(()=>[(b(!0),$(le,null,ke(r.value,u=>(b(),$("li",{key:u.oid,onClick:f=>l(u.name),title:u.oid,role:"menuitem"},re(u.name),9,ec))),128))]),_:1},8,["open"]))}}),nc=["onClick","title"],li=ge({__name:"SearchResults",props:{query:{type:String,default:""},for:String,label:{type:String,default:"name",validator:e=>["name","dn"].includes(e)},shorten:String,silent:{type:Boolean,default:!1}},emits:["select-dn"],setup(e,{emit:t}){const n=e,s=Ee("app"),r=U([]),i=se(()=>n.query.trim()!=""&&r.value&&r.value.length>1),o=t;He(()=>n.query,async c=>{if(!c)return;const u=await Pu({path:{query:c},client:s==null?void 0:s.client});if(u.data){if(r.value=await u.data,r.value.length==0&&!n.silent){s==null||s.showWarning("No search results");return}if(r.value.length==1){a(r.value[0].dn);return}r.value.sort((f,p)=>f[n.label].toLowerCase().localeCompare(p[n.label].toLowerCase()))}});function l(c){return n.shorten&&n.shorten!=c?c.replace(n.shorten,"…"):c}function a(c){o("select-dn",c),r.value=[],Gt(()=>{if(n.for){const u=document.getElementById(n.for);u&&u.focus()}})}return(c,u)=>(b(),we(zs,{open:i.value,"onUpdate:open":u[0]||(u[0]=f=>r.value=[])},{default:pe(()=>[(b(!0),$(le,null,ke(r.value,f=>(b(),$("li",{key:f.dn,onClick:p=>a(f.dn),title:e.label=="dn"?"":l(f.dn),role:"menuitem"},re(f[e.label]),9,nc))),128))]),_:1},8,["open"]))}}),sc=ge({__name:"ToggleButton",props:{value:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,r=se(()=>n.value=="TRUE");return(i,o)=>(b(),$("button",{type:"button",class:"p-0 relative focus:outline-none",tabindex:"0",onClick:o[0]||(o[0]=l=>s("update:value",r.value?"FALSE":"TRUE"))},[o[1]||(o[1]=k("div",{class:"w-8 h-4 transition rounded-full bg-gray-200"},null,-1)),k("div",{class:Ie(["absolute top-0 left-0 w-4 h-4 transition-all duration-200 ease-in-out transform scale-110 rounded-full shadow-sm",r.value?"translate-x-4 bg-primary":"translate-x-0 bg-secondary"])},null,2)]))}}),rc={key:0,class:"flex mx-4 space-x-4"},oc=["title"],ic={key:0,class:"fa text-emerald-700 ml-1 fa-check"},lc={class:"w-3/4"},ac=["onClick","title"],uc={key:5,class:"mr-5"},cc={key:6},fc=["src"],dc=["onClick"],pc={key:7},hc=["onClick"],mc={key:1,class:"pb-1 border-primary focus-within:border-b border-solid"},vc=["onClick"],gc=["value","id","type","placeholder","disabled","title"],yc=["onClick"],bc={key:2,class:"text-xs ml-6 opacity-70"},wc=ge({__name:"AttributeRow",props:{entry:{},attr:{},baseDn:{},values:{},must:{type:Boolean},may:{type:Boolean},changed:{type:Boolean}},emits:["show-attr","show-modal","show-oc","reload-form","update","valid"],setup(e,{emit:t}){function n(F,K,ee){return F==""||ee.indexOf(F)==K}const s={weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},r={boolean:"1.3.6.1.4.1.1466.115.121.1.7",distinguishedName:"1.3.6.1.4.1.1466.115.121.1.12",generalizedTime:"1.3.6.1.4.1.1466.115.121.1.24",integer:"1.3.6.1.4.1.1466.115.121.1.27",oid:"1.3.6.1.4.1.1466.115.121.1.38",telephoneNumber:"1.3.6.1.4.1.1466.115.121.1.50"},i=["uidNumber","gidNumber"],o=e,l=Ee("app"),a=U(!0),c=U(),u=U(""),f=U(""),p=U(),m=se(()=>o.attr.syntax==r.boolean),_=se(()=>o.attr.syntax==r.distinguishedName),P=se(()=>o.values.length==1&&o.values[0]==c.value),T=se(()=>o.values.every(F=>!F.trim())),g=se(()=>!o.must&&!o.may),E=se(()=>o.attr.name==o.entry.dn.split("=")[0]),H=se(()=>o.attr.syntax==r.oid),N=se(()=>T.value&&o.must),R=se(()=>o.attr.name=="userPassword"),Z=se(()=>o.attr.syntax==r.generalizedTime),ye=se(()=>R.value?!1:o.entry.binary.includes(o.attr.name)),_e=se(()=>E.value||o.attr.name=="objectClass"||g.value&&T.value||!o.entry.isNew&&(R.value||ye.value)),Y=se(()=>N.value?" ":T.value?" ":_.value?" ":""),ne=se(()=>o.attr.name=="jpegPhoto"||o.attr.name=="thumbnailPhoto"||!o.attr.no_user_mod&&!ye.value),fe=se(()=>R.value?"password":o.attr.syntax==r.telephoneNumber?"tel":o.attr.syntax==r.integer?"number":"text"),I=t;He(a,F=>I("valid",F)),Jt(async()=>{if(_e.value||!i.includes(o.attr.name)||o.values.length!=1||o.values[0])return;const F=await Au({path:{attribute:o.attr.name},client:l==null?void 0:l.client});if(!F.data)return;const K=F.data;u.value=K.min==K.max?"> "+K.min:"∉ ("+K.min+" - "+K.max+")",c.value=""+K.next,I("update",o.attr.name,[c.value],0),ue()}),Co(ue);function ue(){a.value=!N.value&&(!g.value||T.value)&&o.values.every(n)}function A(F){const K=F.target,ee=K.value,xe=+K.id.split("-").slice(-1).pop();y(xe,ee)}function y(F,K){const ee=o.values.slice();ee[F]=K,I("update",o.attr.name,ee)}function O(){const F=o.values.slice();F.includes("")||F.push(""),I("update",o.attr.name,F,F.length-1)}function z(F){const K=o.values.slice(0,F).concat(o.values.slice(F+1));I("update","objectClass",K)}function oe(F){return Fu(F).toLocaleString(void 0,s)}function Ce(F){var K,ee;return o.attr.name=="objectClass"&&((ee=(K=l==null?void 0:l.schema)==null?void 0:K.oc(F))==null?void 0:ee.structural)}function Rt(F){var ee;const K=(ee=l==null?void 0:l.schema)==null?void 0:ee.oc(F);return o.attr.name=="objectClass"&&K&&!K.structural}function at(F){return!n(o.values[F],F,o.values)}function ze(F){return F==0&&!o.attr.single_value&&!_e.value&&!o.values.includes("")}function Cn(F){const K=F.target;p.value=K.id;const ee=K.value;f.value=ee.length>=2&&!ee.includes(",")?ee:""}function xn(F){const K=+p.value.split("-").slice(-1).pop(),ee=o.values.slice();ee[K]=F,f.value="",I("update",o.attr.name,ee)}async function ss(F){(await _u({path:{attr:o.attr.name,index:F,dn:o.entry.dn},client:l==null?void 0:l.client})).error||I("reload-form",o.entry.dn,[o.attr.name])}return(F,K)=>F.attr&&ne.value?(b(),$("div",rc,[k("div",{class:Ie([{required:F.must,optional:F.may,rdn:E.value,illegal:g.value},"w-1/4"])},[k("span",{class:"cursor-pointer oc",title:F.attr.desc,onClick:K[0]||(K[0]=ee=>I("show-attr",F.attr.name))},re(F.attr),9,oc),F.changed?(b(),$("i",ic)):Q("",!0)],2),k("div",lc,[(b(!0),$(le,null,ke(F.values,(ee,xe)=>(b(),$("div",{key:xe},[Ce(ee)?(b(),$("span",{key:0,onClick:K[1]||(K[1]=$e=>I("show-modal","add-object-class")),tabindex:"-1",class:"add-btn control font-bold",title:"Add object class…"},"⊕")):Rt(ee)?(b(),$("span",{key:1,onClick:$e=>z(xe),class:"remove-btn control",title:"Remove "+ee},"⊖",8,ac)):R.value?(b(),$("span",{key:2,class:"fa fa-question-circle control",onClick:K[2]||(K[2]=$e=>I("show-modal","change-password")),tabindex:"-1",title:"change password"})):F.attr.name=="jpegPhoto"||F.attr.name=="thumbnailPhoto"?(b(),$("span",{key:3,onClick:K[3]||(K[3]=$e=>I("show-modal","add-jpegPhoto")),tabindex:"-1",class:"add-btn control align-top",title:"Add photo…"},"⊕")):ze(xe)&&!g.value?(b(),$("span",{key:4,onClick:O,class:"add-btn control",title:"Add row"},"⊕")):(b(),$("span",uc)),F.attr.name=="jpegPhoto"||F.attr.name=="thumbnailPhoto"?(b(),$("span",cc,[ee?(b(),$("img",{key:0,src:"data:image/"+(F.attr.name=="jpegPhoto"?"jpeg":"*")+";base64,"+ee,class:"max-w-[120px] max-h-[120px] border p-[1px] inline mx-1"},null,8,fc)):Q("",!0),ee?(b(),$("span",{key:1,class:"control remove-btn align-top ml-1",onClick:$e=>ss(xe),title:"Remove photo"},"⊖",8,dc)):Q("",!0)])):m.value?(b(),$("span",pc,[xe==0&&!F.values[0]?(b(),$("span",{key:0,class:"control text-lg",onClick:$e=>y(xe,"FALSE")},"⊕",8,hc)):(b(),$("span",mc,[G(sc,{id:F.attr+"-"+xe,value:F.values[xe],class:"mt-2","onUpdate:value":$e=>y(xe,$e)},null,8,["id","value","onUpdate:value"]),k("i",{class:"fa fa-trash ml-2 relative -top-0.5 control",onClick:$e=>y(xe,"")},null,8,vc)]))])):(b(),$("input",{key:8,value:F.values[xe],id:F.attr+"-"+xe,type:fe.value,autocomplete:"off",class:Ie(["w-[90%] glyph outline-none bg-back border-x-0 border-t-0 border-b border-solid border-front/20 focus:border-primary px-1",{structural:Ce(ee),auto:P.value,illegal:g.value&&!T.value||at(xe)}]),placeholder:Y.value,disabled:_e.value,title:Z.value?oe(ee):"",onInput:A,onFocusin:K[4]||(K[4]=$e=>f.value=""),onKeyup:[Cn,K[5]||(K[5]=gt($e=>f.value="",["esc"]))]},null,42,gc)),F.attr.name=="objectClass"?(b(),$("i",{key:9,class:"cursor-pointer fa fa-info-circle",onClick:$e=>I("show-oc",ee)},null,8,yc)):Q("",!0)]))),128)),_.value&&p.value?(b(),we(li,{key:0,silent:"",onSelectDn:xn,for:p.value,query:f.value,label:"dn",shorten:F.baseDn},null,8,["for","query","shorten"])):Q("",!0),H.value&&p.value?(b(),we(tc,{key:1,onDone:xn,for:p.value,query:f.value},null,8,["for","query"])):Q("",!0),u.value?(b(),$("div",bc,re(u.value),1)):Q("",!0)])])):Q("",!0)}}),ai=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},_c=ai(wc,[["__scopeId","data-v-1fc1f702"]]),Cc={key:0,class:"text-danger text-xs mb-1"},xc=ge({__name:"CopyEntryDialog",props:{entry:{},modal:{},returnTo:{}},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=t,r=U(""),i=U(""),o=U(null);function l(){i.value="",r.value=n.entry.dn}function a(){if(!r.value||r.value==n.entry.dn){i.value="This DN already exists";return}const c=r.value.split(","),u=c[0].split("="),f=u[0];if(u.length!=2){i.value="Invalid RDN: "+c[0];return}s("update:modal");const p=JSON.parse(JSON.stringify(n.entry));p.attrs[f]=[u[1]],p.dn=r.value,p.isNew=!0,s("ok",p)}return(c,u)=>(b(),we(lt,{title:"Copy entry",open:c.modal=="copy-entry","return-to":c.returnTo,onShow:l,onShown:u[1]||(u[1]=f=>{var p;return(p=o.value)==null?void 0:p.focus()}),onOk:a,onCancel:u[2]||(u[2]=f=>s("update:modal"))},{default:pe(()=>[k("div",null,[i.value?(b(),$("div",Cc,re(i.value),1)):Q("",!0),Ve(k("input",{ref_key:"newdn",ref:o,"onUpdate:modelValue":u[0]||(u[0]=f=>r.value=f),placeholder:"New DN",onKeyup:gt(a,["enter"])},null,544),[[Wt,r.value]])])]),_:1},8,["open","return-to"]))}}),Sc=["title"],gn=ge({__name:"NodeLabel",props:{dn:{},oc:{}},emits:["select-dn"],setup(e,{emit:t}){const n=e,s={account:"user",groupOfNames:"users",groupOfURLs:"users",groupOfUniqueNames:"users",inetOrgPerson:"address-book",krbContainer:"lock",krbPrincipal:"user-o",krbRealmContainer:"globe",organization:"globe",organizationalRole:"android",organizationalUnit:"sitemap",person:"user",posixGroup:"users"},r=se(()=>n.oc?" fa-"+(s[n.oc]||"question"):"fa-question"),i=se(()=>(n.dn||"").split(",")[0].replace(/^cn=/,"").replace(/^krbPrincipalName=/,"")),o=t;function l(a){a&&o("select-dn",a)}return(a,c)=>(b(),$("span",{onClick:c[0]||(c[0]=u=>l(a.dn)),title:a.dn,class:"node-label cursor-pointer select-none"},[a.oc?(b(),$("i",{key:0,class:Ie(["fa w-6 text-center",r.value])},null,2)):Q("",!0),Ye(a.$slots,"default",{},()=>[Fe(re(i.value),1)])],8,Sc))}}),$c={key:0},Tc=ge({__name:"DeleteEntryDialog",props:{dn:{},modal:{},returnTo:{}},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=U([]),r=t,i=Ee("app");async function o(){const c=await Iu({path:{root_dn:n.dn},client:i==null?void 0:i.client});c.data&&(s.value=c.data)}function l(){var c;(c=document.getElementById("ui-modal-ok"))==null||c.focus()}function a(){r("update:modal"),r("ok",n.dn)}return(c,u)=>(b(),we(lt,{title:"Are you sure?",open:c.modal=="delete-entry","return-to":c.returnTo,"cancel-classes":"bg-primary/80","ok-classes":"bg-danger/80",onShow:o,onShown:l,onOk:a,onCancel:u[0]||(u[0]=f=>r("update:modal"))},{"modal-ok":pe(()=>u[2]||(u[2]=[k("i",{class:"fa fa-trash-o fa-lg"},null,-1),Fe(" Delete ")])),default:pe(()=>[u[3]||(u[3]=k("p",{class:"strong"},"This action is irreversible.",-1)),s.value.length?(b(),$("div",$c,[u[1]||(u[1]=k("p",{class:"text-danger mb-2"}," The following child nodes will be also deleted: ",-1)),(b(!0),$(le,null,ke(s.value,f=>(b(),$("div",{key:f.dn},[(b(!0),$(le,null,ke(f.level,p=>(b(),$("span",{class:"ml-6",key:p}))),128)),G(gn,{dn:"",oc:f.structuralObjectClass},{default:pe(()=>[Fe(re(f.dn.split(",")[0]),1)]),_:2},1032,["oc"])]))),128))])):Q("",!0)]),_:1,__:[3]},8,["open","return-to"]))}}),Oc=ge({__name:"DiscardEntryDialog",props:{dn:{},modal:{},returnTo:{}},emits:["ok","shown","update:modal"],setup(e,{emit:t}){const n=U(),s=t;function r(){var o;(o=document.getElementById("ui-modal-ok"))==null||o.focus(),s("shown")}function i(){s("update:modal"),s("ok",n.value)}return(o,l)=>(b(),we(lt,{title:"Are you sure?",open:o.modal=="discard-entry","return-to":o.returnTo,"cancel-classes":"bg-primary/80","ok-classes":"bg-danger/80",onShow:l[0]||(l[0]=a=>n.value=o.dn),onShown:r,onOk:i,onCancel:l[1]||(l[1]=a=>s("update:modal"))},{"modal-ok":pe(()=>l[2]||(l[2]=[k("i",{class:"fa fa-trash-o fa-lg"},null,-1),Fe(" Discard ")])),default:pe(()=>[l[3]||(l[3]=k("p",{class:"strong"},"All changes will be irreversibly lost.",-1))]),_:1,__:[3]},8,["open","return-to"]))}}),kc={class:"relative inline-block text-left mx-1"},Ec=["aria-expanded"],Ac=["aria-hidden"],ui=ge({__name:"DropdownMenu",props:{title:{}},setup(e){const t=U(!1);return(n,s)=>(b(),$("div",kc,[k("span",{ref:"opener",class:"inline-flex w-full py-2 select-none cursor-pointer","aria-expanded":t.value,"aria-haspopup":"true",onClick:s[0]||(s[0]=zt(r=>t.value=!t.value,["stop"]))},[Ye(n.$slots,"button-content",{},()=>[Fe(re(n.title),1)]),(b(),$("svg",{class:"-mr-1 h-5 w-5 pt-1",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":!t.value},s[2]||(s[2]=[k("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"},null,-1)]),8,Ac))],8,Ec),G(zs,{open:t.value,"onUpdate:open":s[1]||(s[1]=r=>t.value=r)},{default:pe(()=>[Ye(n.$slots,"default")]),_:3},8,["open"])]))}}),jc={key:0},Dc={key:0},Pc=ge({__name:"NewEntryDialog",props:{dn:{},modal:{},returnTo:{}},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=Ee("app"),r=U(""),i=U(""),o=U(""),l=U(null),a=se(()=>{var m;return(m=s==null?void 0:s.schema)==null?void 0:m.oc(r.value)}),c=t;function u(){r.value=i.value=o.value=""}function f(){var P;if(!r.value||!i.value||!o.value)return;c("update:modal");const m=[r.value];for(let T=(P=a.value)==null?void 0:P.$super;T;T=T.$super)!T.structural&&T.kind!="abstract"&&m.push(T.name);const _={dn:i.value+"="+o.value+","+n.dn,changed:[],binary:[],autoFilled:[],isNew:!0,attrs:{objectClass:m}};_.attrs[i.value]=[o.value],c("ok",_)}function p(){var _;if(!r.value)return[];const m=((_=a.value)==null?void 0:_.$collect("must"))||[];return m.length==1&&(i.value=m[0]),m}return(m,_)=>(b(),we(lt,{title:"New entry",open:m.modal=="new-entry","return-to":m.returnTo,onOk:f,onCancel:_[3]||(_[3]=P=>c("update:modal")),onShow:u,onShown:_[4]||(_[4]=P=>{var T;return(T=l.value)==null?void 0:T.focus()})},{default:pe(()=>{var P,T;return[k("label",null,[_[5]||(_[5]=Fe("Object class: ")),Ve(k("select",{ref_key:"select",ref:l,"onUpdate:modelValue":_[0]||(_[0]=g=>r.value=g)},[(b(!0),$(le,null,ke((T=(P=bn(s))==null?void 0:P.schema)==null?void 0:T.objectClasses.values(),g=>(b(),$(le,{key:g.name},[g.structural?(b(),$("option",jc,re(g),1)):Q("",!0)],64))),128))],512),[[mn,r.value]])]),r.value?(b(),$("label",Dc,[_[6]||(_[6]=Fe("RDN attribute: ")),Ve(k("select",{"onUpdate:modelValue":_[1]||(_[1]=g=>i.value=g)},[(b(!0),$(le,null,ke(p(),g=>(b(),$("option",{key:g},re(g),1))),128))],512),[[mn,i.value]])])):Q("",!0),r.value?Ve((b(),$("input",{key:1,"onUpdate:modelValue":_[2]||(_[2]=g=>o.value=g),placeholder:"RDN value",onKeyup:gt(f,["enter"])},null,544)),[[Wt,o.value]]):Q("",!0)]}),_:1},8,["open","return-to"]))}}),Ic={key:0},Nc=ge({__name:"PasswordChangeDialog",props:{entry:{},modal:{},returnTo:{},user:{}},emits:["ok","update-form","update:modal"],setup(e,{emit:t}){const n=e,s=U(""),r=U(""),i=U(""),o=U(),l=U(null),a=U(null),c=se(()=>n.user==n.entry.dn),u=se(()=>r.value&&r.value==i.value),f=se(()=>!!n.entry.attrs.userPassword&&n.entry.attrs.userPassword[0]!=""),p=t,m=Ee("app");function _(){s.value=r.value=i.value="",o.value=void 0}function P(){var E,H;f.value?(E=l.value)==null||E.focus():(H=a.value)==null||H.focus()}async function T(){if(!s.value||s.value.length==0){o.value=void 0;return}const E=await Su({path:{dn:n.entry.dn},body:s.value,client:m==null?void 0:m.client});o.value=E.data}async function g(){c.value&&!r.value||r.value!=i.value||c.value&&f.value&&!o.value||(p("update:modal"),p("ok",s.value,r.value))}return(E,H)=>(b(),we(lt,{title:"Change / verify password",open:E.modal=="change-password","return-to":E.returnTo,onShow:_,onShown:P,onOk:g,onCancel:H[3]||(H[3]=N=>p("update:modal")),onHidden:H[4]||(H[4]=N=>p("update-form"))},{default:pe(()=>[f.value?(b(),$("div",Ic,[k("small",null,re(c.value?"Required":"Optional"),1),o.value!==void 0?(b(),$("i",{key:0,class:Ie(["fa ml-2",o.value?"text-emerald-700 fa-check-circle":"text-danger fa-times-circle"])},null,2)):Q("",!0),Ve(k("input",{ref_key:"old",ref:l,"onUpdate:modelValue":H[0]||(H[0]=N=>s.value=N),placeholder:"Old password",type:"password",onChange:T},null,544),[[Wt,s.value]])])):Q("",!0),Ve(k("input",{ref_key:"changed",ref:a,"onUpdate:modelValue":H[1]||(H[1]=N=>r.value=N),placeholder:"New password",type:"password"},null,512),[[Wt,r.value]]),Ve(k("input",{"onUpdate:modelValue":H[2]||(H[2]=N=>i.value=N),class:Ie({"text-danger":i.value&&!u.value}),placeholder:"Repeat new password",type:"password",onKeyup:gt(g,["enter"])},null,34),[[Wt,i.value]])]),_:1},8,["open","return-to"]))}}),Rc=ge({__name:"RenameEntryDialog",props:{entry:{},modal:{},returnTo:{}},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=U(),r=U(null),i=se(()=>Object.keys(n.entry.attrs).filter(c)),o=t;function l(){s.value=i.value.length==1?i.value[0]:void 0}function a(){const u=n.entry.attrs[s.value||""];u&&u[0]&&(o("update:modal"),o("ok",s.value+"="+u[0]))}function c(u){const f=n.entry.dn.split("=")[0];return u!=f&&!n.entry.attrs[u].every(p=>!p)}return(u,f)=>(b(),we(lt,{title:"Rename entry",open:u.modal=="rename-entry","return-to":u.returnTo,onOk:a,onCancel:f[1]||(f[1]=p=>o("update:modal")),onShow:l,onShown:f[2]||(f[2]=p=>{var m;return(m=r.value)==null?void 0:m.focus()})},{default:pe(()=>[k("label",null,[f[3]||(f[3]=Fe("New RDN attribute: ")),Ve(k("select",{ref_key:"select",ref:r,"onUpdate:modelValue":f[0]||(f[0]=p=>s.value=p),onKeyup:gt(a,["enter"])},[(b(!0),$(le,null,ke(i.value,p=>(b(),$("option",{key:p},re(p),1))),128))],544),[[mn,s.value]])])]),_:1},8,["open","return-to"]))}}),Mc={key:0,class:"rounded border border-front/20 mb-3 mx-4 flex-auto"},Lc={class:"flex justify-between mb-4 border-b border-front/20 bg-primary/70"},Fc={key:0,class:"py-2 ml-3"},Uc={key:1,class:"ml-2"},Vc={role:"menuitem"},Hc=["href"],Bc={class:"flex ml-4 mt-2 space-x-4"},qc={class:"w-3/4 pl-4"},Kc={class:"w-[90%] space-x-3"},Wc=["disabled"],zc={key:0,type:"reset",accesskey:"r",tabindex:"0",class:"btn bg-secondary"},Gc=ge({__name:"EntryEditor",props:{activeDn:{},baseDn:{},user:{}},emits:["update:activeDn","show-attr","show-oc"],setup(e,{emit:t}){function n(A,y,O){return O.indexOf(A)==y}const s=["BUTTON","INPUT","SELECT","TEXTAREA"],r=e,i=Ee("app"),o=U(),l=U(),a=U([]),c=U(),u=se(()=>{var y;const A=Object.keys(((y=o.value)==null?void 0:y.attrs)||{});return A.sort((O,z)=>O.toLowerCase().localeCompare(z.toLowerCase())),A}),f=se(()=>{var y;const A=(y=o.value)==null?void 0:y.attrs.objectClass.map(O=>{var z;return(z=i==null?void 0:i.schema)==null?void 0:z.oc(O)}).filter(O=>O&&O.structural)[0];return A?A.name:""}),p=t;He(()=>r.activeDn,A=>{(!o.value||A!=o.value.dn)&&(l.value=void 0),A&&o.value&&o.value.isNew?c.value="discard-entry":A?Z(A,void 0,void 0):o.value&&!o.value.isNew&&(o.value=void 0)});function m(A){Gt(()=>{const y=A?document.getElementById(A):document.querySelector('form#entry input:not([disabled]), form#entry button[type="button"]');y&&window.setTimeout(()=>y.focus(),100)})}function _(A){const y=A.target;y.id&&s.includes(y.tagName)&&(l.value=y.id)}function P(A){o.value=A,p("update:activeDn"),m(N())}function T(A){o.value=void 0,p("update:activeDn",A)}function g(A){o.value.attrs[A]=[""],m(A+"-0")}function E(A){o.value.attrs.objectClass.push(A),m(N()||l.value)}function H(A,y,O){o.value.attrs[A]=y,O!==void 0&&m(A+"-"+O)}function N(){const A=I("must").filter(y=>!o.value.attrs[y]);return A.forEach(y=>o.value.attrs[y]=[""]),A.length?A[0]+"-0":void 0}function R(A){var y;i==null||i.showError(((y=A.detail)==null?void 0:y.join(`
|
|
18
|
+
`))||"Operation failed")}async function Z(A,y,O){if(a.value=[],!A||A.startsWith("-")){o.value=void 0;return}const z=await Tu({path:{dn:A},client:i==null?void 0:i.client});if(z.error){R(z.error);return}o.value=z.data,o.value.changed=y||[],o.value.isNew=!1,document.title=A.split(",")[0],m(O)}function ye(A){var y;return((y=o.value)==null?void 0:y.changed)&&o.value.changed.includes(A)||!1}async function _e(){if(a.value.length>0){m(l.value);return}o.value.changed=[];let A=[];if(o.value.isNew){const y=await ku({path:{dn:o.value.dn},body:o.value.attrs,client:i==null?void 0:i.client});if(y.error){R(y.error);return}A=y.data}else{const y=await Ou({path:{dn:o.value.dn},body:o.value.attrs,client:i==null?void 0:i.client});if(y.error){R(y.error);return}A=y.data}o.value.isNew?(o.value.isNew=!1,p("update:activeDn",o.value.dn)):Z(o.value.dn,A,l.value)}async function Y(A){const y=await ju({path:{dn:o.value.dn},body:A,client:i==null?void 0:i.client});if(y.error){R(y.error);return}const O=o.value.dn.split(",");O.splice(0,1,A),p("update:activeDn",O.join(","))}async function ne(A){const y=await $u({path:{dn:A}});if(y.error){R(y.error);return}i==null||i.showInfo("👍 Deleted: "+A),p("update:activeDn","-"+A)}async function fe(A,y){var z;const O=await xu({path:{dn:o.value.dn},body:{old:A,new1:y},client:i==null?void 0:i.client});O.error?R(O.error):(o.value.attrs.userPassword=[y],(z=o.value.changed)==null||z.push("userPassword"))}function I(A){const y=o.value.attrs.objectClass.filter(O=>O&&O!="top").map(O=>{var z;return(z=i==null?void 0:i.schema)==null?void 0:z.oc(O)}).flatMap(O=>O?O.$collect(A):[]).filter(n);return y.sort(),y}function ue(A,y){if(y){const O=a.value.indexOf(A);O>=0&&a.value.splice(O,1)}else a.value.includes(A)||a.value.push(A)}return(A,y)=>o.value?(b(),$("div",Mc,[G(Pc,{modal:c.value,"onUpdate:modal":y[0]||(y[0]=O=>c.value=O),dn:o.value.dn,"return-to":l.value,onOk:P},null,8,["modal","dn","return-to"]),G(xc,{modal:c.value,"onUpdate:modal":y[1]||(y[1]=O=>c.value=O),entry:o.value,"return-to":l.value,onOk:P},null,8,["modal","entry","return-to"]),G(Rc,{modal:c.value,"onUpdate:modal":y[2]||(y[2]=O=>c.value=O),entry:o.value,"return-to":l.value,onOk:Y},null,8,["modal","entry","return-to"]),G(Tc,{modal:c.value,"onUpdate:modal":y[3]||(y[3]=O=>c.value=O),dn:o.value.dn,"return-to":l.value,onOk:ne},null,8,["modal","dn","return-to"]),G(Oc,{modal:c.value,"onUpdate:modal":y[4]||(y[4]=O=>c.value=O),dn:r.activeDn,"return-to":l.value,onOk:T,onShown:y[5]||(y[5]=O=>p("update:activeDn"))},null,8,["modal","dn","return-to"]),G(Nc,{modal:c.value,"onUpdate:modal":y[6]||(y[6]=O=>c.value=O),entry:o.value,"return-to":l.value,user:A.user,onOk:fe},null,8,["modal","entry","return-to","user"]),G(Nr,{modal:c.value,"onUpdate:modal":y[7]||(y[7]=O=>c.value=O),attr:"jpegPhoto",dn:o.value.dn,"return-to":l.value,onOk:Z},null,8,["modal","dn","return-to"]),G(Nr,{modal:c.value,"onUpdate:modal":y[8]||(y[8]=O=>c.value=O),attr:"thumbnailPhoto",dn:o.value.dn,"return-to":l.value,onOk:Z},null,8,["modal","dn","return-to"]),G(iu,{modal:c.value,"onUpdate:modal":y[9]||(y[9]=O=>c.value=O),entry:o.value,"return-to":l.value,onOk:E},null,8,["modal","entry","return-to"]),G(ou,{modal:c.value,"onUpdate:modal":y[10]||(y[10]=O=>c.value=O),entry:o.value,attributes:I("may"),"return-to":l.value,onOk:g,onShowModal:y[11]||(y[11]=O=>c.value=O)},null,8,["modal","entry","attributes","return-to"]),k("nav",Lc,[o.value.isNew?(b(),$("div",Fc,[G(gn,{dn:o.value.dn,oc:f.value},null,8,["dn","oc"])])):(b(),$("div",Uc,[G(ui,null,{"button-content":pe(()=>[G(gn,{dn:o.value.dn,oc:f.value},null,8,["dn","oc"])]),default:pe(()=>[k("li",{onClick:y[12]||(y[12]=O=>c.value="new-entry"),role:"menuitem"},"Add child…"),k("li",{onClick:y[13]||(y[13]=O=>c.value="copy-entry"),role:"menuitem"},"Copy…"),k("li",{onClick:y[14]||(y[14]=O=>c.value="rename-entry"),role:"menuitem"},"Rename…"),k("li",Vc,[k("a",{href:"api/ldif/"+o.value.dn},"Export",8,Hc)]),k("li",{onClick:y[15]||(y[15]=O=>c.value="delete-entry"),class:"text-danger",role:"menuitem"}," Delete… ")]),_:1})])),o.value.isNew?(b(),$("div",{key:2,class:"control text-2xl mr-2",onClick:y[16]||(y[16]=O=>c.value="discard-entry"),title:"close"}," ⊗ ")):(b(),$("div",{key:3,class:"control text-xl mr-2",title:"close",onClick:y[17]||(y[17]=O=>p("update:activeDn"))}," ⊗ "))]),k("form",{id:"entry",class:"space-y-4 my-4",onSubmit:zt(_e,["prevent"]),onReset:y[22]||(y[22]=O=>Z(o.value.dn,void 0,void 0)),onFocusin:_},[(b(!0),$(le,null,ke(u.value,O=>{var z,oe;return b(),we(_c,{key:O,"base-dn":r.baseDn,attr:(oe=(z=bn(i))==null?void 0:z.schema)==null?void 0:oe.attr(O),entry:o.value,values:o.value.attrs[O],changed:ye(O),may:I("may").includes(O),must:I("must").includes(O),onUpdate:H,onReloadForm:Z,onValid:Ce=>ue(O,Ce),onShowModal:y[18]||(y[18]=Ce=>c.value=Ce),onShowAttr:y[19]||(y[19]=Ce=>p("show-attr",Ce)),onShowOc:y[20]||(y[20]=Ce=>p("show-oc",Ce))},null,8,["base-dn","attr","entry","values","changed","may","must","onValid"])}),128)),k("div",Bc,[y[23]||(y[23]=k("div",{class:"w-1/4"},null,-1)),k("div",qc,[k("div",Kc,[k("button",{type:"submit",class:"btn bg-primary/70",tabindex:"0",accesskey:"s",disabled:a.value.length!=0}," Submit ",8,Wc),o.value.isNew?Q("",!0):(b(),$("button",zc," Reset ")),o.value.isNew?Q("",!0):(b(),$("button",{key:1,class:"btn float-right bg-secondary",accesskey:"a",tabindex:"0",onClick:y[21]||(y[21]=zt(O=>c.value="add-attribute",["prevent"]))}," Add attribute… "))])])])],32)])):Q("",!0)}}),Jc=ge({__name:"LdifImportDialog",props:{modal:{}},emits:["ok","update:modal"],setup(e,{emit:t}){const n=U(""),s=t;function r(){n.value=""}function i(l){const a=l.target,c=a.files,u=c[0],f=new FileReader;f.onload=function(){n.value=f.result,a.value=""},f.readAsText(u)}async function o(){if(!n.value)return;s("update:modal"),(await Eu({body:n.value})).error||s("ok")}return(l,a)=>(b(),we(lt,{title:"Import",open:l.modal=="ldif-import","ok-title":"Import",onShow:r,onOk:o,onCancel:a[1]||(a[1]=c=>s("update:modal"))},{default:pe(()=>[Ve(k("textarea",{"onUpdate:modelValue":a[0]||(a[0]=c=>n.value=c),id:"ldif-data",placeholder:"Paste or upload LDIF"},null,512),[[Wt,n.value]]),k("input",{type:"file",onChange:i,accept:".ldif"},null,32)]),_:1},8,["open"]))}}),Yc={class:"px-4 flex flex-col md:flex-row flex-wrap justify-between mt-0 py-1 bg-primary/40"},Xc={class:"flex items-center"},Qc={class:"flex items-center space-x-4 text-lg"},Zc=["onClick"],ef=ge({__name:"NavBar",props:{baseDn:{},treeOpen:{type:Boolean},user:{}},emits:["select-dn","show-modal","show-oc","update:treeOpen"],setup(e,{emit:t}){const n=Ee("app"),s=U(null),r=U(""),i=U(!1),o=t;function l(){r.value="",Gt(()=>{var a;r.value=((a=s==null?void 0:s.value)==null?void 0:a.value)||""})}return(a,c)=>(b(),$("nav",Yc,[k("div",Xc,[k("i",{class:"cursor-pointer glyph fa-bars fa-lg pt-1 mr-4 md:hidden",onClick:c[0]||(c[0]=u=>i.value=!i.value)}),k("i",{class:Ie(["cursor-pointer fa fa-lg mr-2",a.treeOpen?"fa-list-alt":"fa-list-ul"]),onClick:c[1]||(c[1]=u=>o("update:treeOpen",!a.treeOpen))},null,2),G(gn,{oc:"person",dn:a.user,onSelectDn:c[2]||(c[2]=u=>o("select-dn",u)),class:"text-lg"},null,8,["dn"])]),Ve(k("div",Qc,[k("span",{class:"cursor-pointer",onClick:c[3]||(c[3]=u=>o("show-modal","ldif-import"))},"Import…"),G(ui,{title:"Schema"},{default:pe(()=>{var u,f;return[(b(!0),$(le,null,ke((f=(u=bn(n))==null?void 0:u.schema)==null?void 0:f.objectClasses.keys(),p=>(b(),$("li",{role:"menuitem",key:p,onClick:m=>o("show-oc",p)},re(p),9,Zc))),128))]}),_:1}),k("form",{onSubmit:zt(l,["prevent"])},[k("input",{class:"glyph px-2 py-1 rounded focus:border focus:border-front/80 outline-none text-front dark:bg-gray-800/80",autofocus:"",placeholder:" ",name:"q",onFocusin:c[4]||(c[4]=u=>{var f;return(f=s.value)==null?void 0:f.select()}),accesskey:"k",onKeyup:c[5]||(c[5]=gt(u=>r.value="",["esc"])),id:"nav-search",ref_key:"input",ref:s},null,544),G(li,{for:"nav-search",onSelectDn:c[6]||(c[6]=u=>{r.value="",o("select-dn",u)}),shorten:a.baseDn,query:r.value},null,8,["shorten","query"])],32)],512),[[Ks,!i.value]])]))}}),tf={class:"header"},nf={key:0,class:"mt-2"},sf={class:"list-disc"},rf=["onClick"],of={key:1,class:"mt-2"},lf={class:"list-disc"},af=["onClick"],uf={key:2,class:"mt-2"},cf={class:"list-disc"},ff=["onClick"],df=ge({__name:"ObjectClassCard",props:{modelValue:{}},emits:["show-attr","update:modelValue"],setup(e,{emit:t}){const n=e,s=Ee("app"),r=se(()=>{var o;return(o=s==null?void 0:s.schema)==null?void 0:o.oc(n.modelValue)}),i=t;return(o,l)=>o.modelValue&&r.value?(b(),we(Xo,{key:0,title:r.value.name||"",class:"ml-4",onClose:l[0]||(l[0]=a=>i("update:modelValue"))},{default:pe(()=>{var a;return[k("div",tf,re(r.value.desc),1),(a=r.value.sup)!=null&&a.length?(b(),$("div",nf,[l[1]||(l[1]=k("i",null,"Superclasses:",-1)),k("ul",sf,[(b(!0),$(le,null,ke(r.value.sup,c=>(b(),$("li",{key:c},[k("span",{class:"cursor-pointer",onClick:u=>i("update:modelValue",c)},re(c),9,rf)]))),128))])])):Q("",!0),r.value.$collect("must").length?(b(),$("div",of,[l[2]||(l[2]=k("i",null,"Required attributes:",-1)),k("ul",lf,[(b(!0),$(le,null,ke(r.value.$collect("must"),c=>(b(),$("li",{key:c},[k("span",{class:"cursor-pointer",onClick:u=>i("show-attr",c)},re(c),9,af)]))),128))])])):Q("",!0),r.value.$collect("may").length?(b(),$("div",uf,[l[3]||(l[3]=k("i",null,"Optional attributes:",-1)),k("ul",cf,[(b(!0),$(le,null,ke(r.value.$collect("may"),c=>(b(),$("li",{key:c},[k("span",{class:"cursor-pointer",onClick:u=>i("show-attr",c)},re(c),9,ff)]))),128))])])):Q("",!0)]}),_:1},8,["title"])):Q("",!0)}}),pf={class:"rounded-md bg-front/[.07] p-4 shadow-md shadow-front/20"},hf={key:0,class:"list-unstyled"},mf=["id"],vf=["onClick"],gf={key:1,class:"mr-4"},yf={key:0},bf=ge({__name:"TreeView",props:{activeDn:{}},emits:["base-dn","update:activeDn"],setup(e,{emit:t}){class n{constructor(f){X(this,"dn");X(this,"level");X(this,"hasSubordinates");X(this,"structuralObjectClass");X(this,"open",!1);X(this,"subordinates",[]);this.dn=f.dn,this.level=this.dn.split(",").length,this.hasSubordinates=f.hasSubordinates,this.structuralObjectClass=f.structuralObjectClass,this.hasSubordinates&&(this.subordinates=[],this.open=!1)}find(f){if(this.dn==f)return this;const p=","+this.dn;if(!(!f.endsWith(p)||!this.hasSubordinates))return this.subordinates.map(m=>m.find(f)).filter(m=>m)[0]}get loaded(){return!this.hasSubordinates||this.subordinates.length>0}parentDns(f){const p=[];for(let m=this.dn;;){p.push(m);const _=m.indexOf(",");if(_==-1||m==f)break;m=m.substring(_+1)}return p}visible(){return!this.hasSubordinates||!this.open?[this]:[this].concat(this.subordinates.flatMap(f=>f.visible()))}}const s=e,r=U(),i=t,o=Ee("app");Jt(async()=>{var u;await a("base"),i("base-dn",(u=r.value)==null?void 0:u.dn)}),He(()=>s.activeDn,async u=>{var m,_,P;if(!u)return;if(u=="-"||u=="base"){await a("base");return}const f=new vn(u||r.value.dn),p=[];for(let T=f;T&&(p.push(T),T.toString()!=((m=r.value)==null?void 0:m.dn));T=T.parent);p.reverse();for(let T=0;T<p.length;++T){const g=p[T].toString(),E=(_=r.value)==null?void 0:_.find(g);if(!E)break;E.loaded||await a(g),E.open=!0}(P=r.value)!=null&&P.find(f.toString())||(await a(f.parent.toString()),r.value.find(f.parent.toString()).open=!0)});async function l(u){var p;i("update:activeDn",u);const f=(p=r.value)==null?void 0:p.find(u);f&&f.hasSubordinates&&!f.open&&await c(f)}async function a(u){var _;const f=await Nu({path:{basedn:u},client:o==null?void 0:o.client});if(!f.data)return;const p=f.data;if(p.sort((P,T)=>P.dn.toLowerCase().localeCompare(T.dn.toLowerCase())),u=="base"){r.value=new n(p[0]),await c(r.value);return}const m=(_=r.value)==null?void 0:_.find(u);m&&(m.subordinates=p.map(P=>new n(P)),m.hasSubordinates=m.subordinates.length>0)}async function c(u){!u.open&&!u.loaded&&await a(u.dn),u.open=!u.open}return(u,f)=>(b(),$("div",pf,[r.value?(b(),$("ul",hf,[(b(!0),$(le,null,ke(r.value.visible(),p=>(b(),$("li",{key:p.dn,id:p.dn,class:Ie(p.structuralObjectClass)},[(b(!0),$(le,null,ke(p.level-r.value.level,m=>(b(),$("span",{class:"ml-6",key:m}))),128)),p.hasSubordinates?(b(),$("span",{key:0,class:"control",onClick:m=>c(p)},[k("i",{class:Ie("control p-0 fa fa-chevron-circle-"+(p.open?"down":"right"))},null,2)],8,vf)):(b(),$("span",gf)),G(gn,{dn:p.dn,oc:p.structuralObjectClass,class:Ie(["tree-link whitespace-nowrap text-front/80",{active:u.activeDn==p.dn}]),onSelectDn:l},{default:pe(()=>[p.level?Q("",!0):(b(),$("span",yf,re(p.dn),1))]),_:2},1032,["dn","oc","class"])],10,mf))),128))])):Q("",!0)]))}}),wf=ai(bf,[["__scopeId","data-v-325868f5"]]),_f={key:0,id:"app"},Cf={class:"flex container"},xf={class:"space-y-4"},Sf={class:"flex-auto mt-4"},$f=ge({__name:"App",setup(e){const t=U(),n=U(),s=U(!0),r=U(),i=U(),o=U(),l=U(),a=U(),c=U(),u=si({baseUrl:window.location.href});Eo("app",{get schema(){return l.value},showInfo:p,showError:_,showException:P,showWarning:m,client:u}),Jt(async()=>{const T=await Ru({client:u});if(T.data){t.value=T.data;const g=await Du({client:u});g.data&&(l.value=new qu(g.data))}}),He(c,T=>{T&&(a.value=void 0)}),He(a,T=>{T&&(c.value=void 0)});function p(T){o.value={counter:5,cssClass:"bg-emerald-300",msg:""+T},setTimeout(()=>{o.value=void 0},5e3)}function m(T){o.value={counter:10,cssClass:"bg-amber-200",msg:"⚠️ "+T},setTimeout(()=>{o.value=void 0},1e4)}function _(T){o.value={counter:60,cssClass:"bg-red-300",msg:"⛔ "+T},setTimeout(()=>{o.value=void 0},6e4)}function P(T){const g=document.createElement("span");g.innerHTML=T.replace(`
|
|
19
|
+
`," ");const E=g.getElementsByTagName("title");for(let R=0;R<E.length;++R)g.removeChild(E[R]);let H="";const N=g.getElementsByTagName("h1");for(let R=0;R<N.length;++R)H=H+N[R].textContent+": ",g.removeChild(N[R]);_(H+" "+g.textContent)}return(T,g)=>t.value?(b(),$("div",_f,[G(ef,{treeOpen:s.value,"onUpdate:treeOpen":g[0]||(g[0]=E=>s.value=E),dn:r.value,"base-dn":n.value,user:t.value,onShowModal:g[1]||(g[1]=E=>i.value=E),onSelectDn:g[2]||(g[2]=E=>r.value=E),onShowOc:g[3]||(g[3]=E=>a.value=E)},null,8,["treeOpen","dn","base-dn","user"]),G(Jc,{modal:i.value,"onUpdate:modal":g[4]||(g[4]=E=>i.value=E),onOk:g[5]||(g[5]=E=>r.value="-")},null,8,["modal"]),k("div",Cf,[k("div",xf,[Ve(G(wf,{activeDn:r.value,"onUpdate:activeDn":g[6]||(g[6]=E=>r.value=E),onBaseDn:g[7]||(g[7]=E=>n.value=E)},null,8,["activeDn"]),[[Ks,s.value]]),G(df,{modelValue:a.value,"onUpdate:modelValue":g[8]||(g[8]=E=>a.value=E),onShowAttr:g[9]||(g[9]=E=>c.value=E),onShowOc:g[10]||(g[10]=E=>a.value=E)},null,8,["modelValue"]),G(Ya,{modelValue:c.value,"onUpdate:modelValue":g[11]||(g[11]=E=>c.value=E),onShowAttr:g[12]||(g[12]=E=>c.value=E)},null,8,["modelValue"])]),k("div",Sf,[G(Fn,{name:"fade"},{default:pe(()=>[o.value?(b(),$("div",{key:0,class:Ie([o.value.cssClass,"rounded mx-4 mb-4 p-3 border border-front/70 text-front/70 dark:text-back/70"])},[Fe(re(o.value.msg)+" ",1),k("span",{class:"float-right control",onClick:g[13]||(g[13]=E=>o.value=void 0)},"✖")],2)):Q("",!0)]),_:1}),G(Gc,{activeDn:r.value,"onUpdate:activeDn":g[14]||(g[14]=E=>r.value=E),user:t.value,onShowAttr:g[15]||(g[15]=E=>c.value=E),onShowOc:g[16]||(g[16]=E=>a.value=E)},null,8,["activeDn","user"])])]),Q("",!0)])):Q("",!0)}});Ra($f).mount("#app");
|
|
Binary file
|