lutaml-jsonschema 0.1.19 → 0.1.20

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bedeb19c89b4d8d95067a18bb2b5fa17532e2730f6fbfe1da8584bfc70ae05a
4
- data.tar.gz: 9221e7c2a1e0324aa9a1325831b36bf664f121466f02de6f07b940e0063830de
3
+ metadata.gz: b5eb96669d2b0b21ff399c93ebe9973fda48864327696e2e155cd45b989003c9
4
+ data.tar.gz: 82f754d4b50bb892c4015e31ee928df852d61bc3dfe50ab54f6584b892ae1284
5
5
  SHA512:
6
- metadata.gz: 60122241ce61b4ee49095aed3def11f74cac1f8bccecabb8189cc944a8979d904b54a505024cd9518f0943ea6f48e9a8690452e2681d1db8df654a43a3107965
7
- data.tar.gz: f20ae2131c15ed7819318d97e9ca13d38307473900a9946ca8a39412798b5d6ebca25d32dfc3c9eef170a810c84a36b7e09455a1797cffc86fd3a8f3fa552c99
6
+ metadata.gz: 4f58f9fc6f681507bdb7d8c1df3545c5fdaaf758a7181658a38b2fcc7668f40e42a9c8fd3b0b0922021a01075adaed895440f71d12978c312a9caaff3c51f922
7
+ data.tar.gz: ef9e1b4527bc6a52520408ff0fbbbdf2b16413a7fdc691b8439abff2af2d5e1f05eeb3abc7cea49ab6ca22c91945f6301bf1c32f2c8dcf3e293d7910e43ece6d
@@ -0,0 +1,28 @@
1
+ !function(){"use strict";
2
+ /**
3
+ * @vue/shared v3.5.34
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/function e(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const t={},n=[],s=()=>{},l=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),r=e=>e.startsWith("onUpdate:"),o=Object.assign,i=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},c=Object.prototype.hasOwnProperty,u=(e,t)=>c.call(e,t),d=Array.isArray,p=e=>"[object Map]"===x(e),f=e=>"[object Set]"===x(e),m=e=>"[object Date]"===x(e),h=e=>"function"==typeof e,v=e=>"string"==typeof e,g=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,b=e=>(y(e)||h(e))&&h(e.then)&&h(e.catch),k=Object.prototype.toString,x=e=>k.call(e),w=e=>"[object Object]"===x(e),_=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$=/-\w/g,M=C(e=>e.replace($,e=>e.slice(1).toUpperCase())),O=/\B([A-Z])/g,j=C(e=>e.replace(O,"-$1").toLowerCase()),L=C(e=>e.charAt(0).toUpperCase()+e.slice(1)),E=C(e=>e?`on${L(e)}`:""),T=(e,t)=>!Object.is(e,t),D=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},P=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},A=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let I;const N=()=>I||(I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function q(e){if(d(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],l=v(s)?B(s):q(s);if(l)for(const e in l)t[e]=l[e]}return t}if(v(e)||y(e))return e}const R=/;(?![^(]*\))/g,V=/:([^]+)/,F=/\/\*[^]*?\*\//g;function B(e){const t={};return e.replace(F,"").split(R).forEach(e=>{if(e){const n=e.split(V);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function U(e){let t="";if(v(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){const s=U(e[n]);s&&(t+=s+" ")}else if(y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const H=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function J(e){return!!e||""===e}function W(e,t){if(e===t)return!0;let n=m(e),s=m(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=g(e),s=g(t),n||s)return e===t;if(n=d(e),s=d(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=W(e[s],t[s]);return n}(e,t);if(n=y(e),s=y(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(s&&!l||!s&&l||!W(e[n],t[n]))return!1}}return String(e)===String(t)}function K(e,t){return e.findIndex(e=>W(e,t))}const z=e=>!(!e||!0!==e.__v_isRef),Z=e=>v(e)?e:null==e?"":d(e)||y(e)&&(e.toString===k||!h(e.toString))?z(e)?Z(e.value):JSON.stringify(e,G,2):String(e),G=(e,t)=>z(t)?G(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[X(t,s)+" =>"]=n,e),{})}:f(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>X(e))}:g(t)?X(t):!y(t)||d(t)||w(t)?t:String(t),X=(e,t="")=>{var n;return g(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function Y(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:String(e)}
7
+ /**
8
+ * @vue/reactivity v3.5.34
9
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
10
+ * @license MIT
11
+ **/let Q,ee;class te{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Q&&(Q.active?(this.parent=Q,this.index=(Q.scopes||(Q.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Q;try{return Q=this,e()}finally{Q=t}}}on(){1===++this._on&&(this.prevScope=Q,Q=this)}off(){if(this._on>0&&0===--this._on){if(Q===this)Q=this.prevScope;else{let e=Q;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function ne(e){return new te(e)}function se(){return Q}const le=new WeakSet;class ae{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Q&&(Q.active?Q.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,le.has(this)&&(le.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ce(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,we(this),pe(this);const e=ee,t=ye;ee=this,ye=!0;try{return this.fn()}finally{fe(this),ee=e,ye=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ve(e);this.deps=this.depsTail=void 0,we(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){me(this)&&this.run()}get dirty(){return me(this)}}let re,oe,ie=0;function ce(e,t=!1){if(e.flags|=8,t)return e.next=oe,void(oe=e);e.next=re,re=e}function ue(){ie++}function de(){if(--ie>0)return;if(oe){let e=oe;for(oe=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;re;){let n=re;for(re=void 0;n;){const s=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function pe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fe(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),ve(s),ge(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function me(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(he(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function he(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===_e)return;if(e.globalVersion=_e,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!me(e)))return;e.flags|=2;const t=e.dep,n=ee,s=ye;ee=e,ye=!0;try{pe(e);const n=e.fn(e._value);(0===t.version||T(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(l){throw t.version++,l}finally{ee=n,ye=s,fe(e),e.flags&=-3}}function ve(e,t=!1){const{dep:n,prevSub:s,nextSub:l}=e;if(s&&(s.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ve(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ge(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ye=!0;const be=[];function ke(){be.push(ye),ye=!1}function xe(){const e=be.pop();ye=void 0===e||e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ee;ee=void 0;try{t()}finally{ee=e}}}let _e=0;class Se{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ce{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ee||!ye||ee===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ee)t=this.activeLink=new Se(ee,this),ee.deps?(t.prevDep=ee.depsTail,ee.depsTail.nextDep=t,ee.depsTail=t):ee.deps=ee.depsTail=t,$e(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ee.depsTail,t.nextDep=void 0,ee.depsTail.nextDep=t,ee.depsTail=t,ee.deps===t&&(ee.deps=e)}return t}trigger(e){this.version++,_e++,this.notify(e)}notify(e){ue();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{de()}}}function $e(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)$e(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Me=new WeakMap,Oe=Symbol(""),je=Symbol(""),Le=Symbol("");function Ee(e,t,n){if(ye&&ee){let t=Me.get(e);t||Me.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Ce),s.map=t,s.key=n),s.track()}}function Te(e,t,n,s,l,a){const r=Me.get(e);if(!r)return void _e++;const o=e=>{e&&e.trigger()};if(ue(),"clear"===t)r.forEach(o);else{const l=d(e),a=l&&_(n);if(l&&"length"===n){const e=Number(s);r.forEach((t,n)=>{("length"===n||n===Le||!g(n)&&n>=e)&&o(t)})}else switch((void 0!==n||r.has(void 0))&&o(r.get(n)),a&&o(r.get(Le)),t){case"add":l?a&&o(r.get("length")):(o(r.get(Oe)),p(e)&&o(r.get(je)));break;case"delete":l||(o(r.get(Oe)),p(e)&&o(r.get(je)));break;case"set":p(e)&&o(r.get(Oe))}}de()}function De(e){const t=bt(e);return t===e?t:(Ee(t,0,Le),gt(e)?t:t.map(xt))}function Pe(e){return Ee(e=bt(e),0,Le),e}function Ae(e,t){return vt(e)?wt(ht(e)?xt(t):t):xt(t)}const Ie={__proto__:null,[Symbol.iterator](){return Ne(this,Symbol.iterator,e=>Ae(this,e))},concat(...e){return De(this).concat(...e.map(e=>d(e)?De(e):e))},entries(){return Ne(this,"entries",e=>(e[1]=Ae(this,e[1]),e))},every(e,t){return Re(this,"every",e,t,void 0,arguments)},filter(e,t){return Re(this,"filter",e,t,e=>e.map(e=>Ae(this,e)),arguments)},find(e,t){return Re(this,"find",e,t,e=>Ae(this,e),arguments)},findIndex(e,t){return Re(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Re(this,"findLast",e,t,e=>Ae(this,e),arguments)},findLastIndex(e,t){return Re(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Re(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fe(this,"includes",e)},indexOf(...e){return Fe(this,"indexOf",e)},join(e){return De(this).join(e)},lastIndexOf(...e){return Fe(this,"lastIndexOf",e)},map(e,t){return Re(this,"map",e,t,void 0,arguments)},pop(){return Be(this,"pop")},push(...e){return Be(this,"push",e)},reduce(e,...t){return Ve(this,"reduce",e,t)},reduceRight(e,...t){return Ve(this,"reduceRight",e,t)},shift(){return Be(this,"shift")},some(e,t){return Re(this,"some",e,t,void 0,arguments)},splice(...e){return Be(this,"splice",e)},toReversed(){return De(this).toReversed()},toSorted(e){return De(this).toSorted(e)},toSpliced(...e){return De(this).toSpliced(...e)},unshift(...e){return Be(this,"unshift",e)},values(){return Ne(this,"values",e=>Ae(this,e))}};function Ne(e,t,n){const s=Pe(e),l=s[t]();return s===e||gt(e)||(l._next=l.next,l.next=()=>{const e=l._next();return e.done||(e.value=n(e.value)),e}),l}const qe=Array.prototype;function Re(e,t,n,s,l,a){const r=Pe(e),o=r!==e&&!gt(e),i=r[t];if(i!==qe[t]){const t=i.apply(e,a);return o?xt(t):t}let c=n;r!==e&&(o?c=function(t,s){return n.call(this,Ae(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=i.call(r,c,s);return o&&l?l(u):u}function Ve(e,t,n,s){const l=Pe(e);let a=n,r=!1;l!==e&&(l!==e&&!gt(e)?(r=0===s.length,a=function(t,s,l){return r&&(r=!1,t=Ae(e,t)),n.call(this,t,Ae(e,s),l,e)}):n.length>3&&(a=function(t,s,l){return n.call(this,t,s,l,e)}));const o=l[t](a,...s);return r?Ae(e,o):o}function Fe(e,t,n){const s=bt(e);Ee(s,0,Le);const l=s[t](...n);return-1!==l&&!1!==l||!yt(n[0])?l:(n[0]=bt(n[0]),s[t](...n))}function Be(e,t,n=[]){ke(),ue();const s=bt(e)[t].apply(e,n);return de(),xe(),s}const Ue=e("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(g));function Je(e){g(e)||(e=String(e));const t=bt(this);return Ee(t,0,e),t.hasOwnProperty(e)}class We{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const s=this._isReadonly,l=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return l;if("__v_raw"===t)return n===(s?l?ct:it:l?ot:rt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=d(e);if(!s){let e;if(a&&(e=Ie[t]))return e;if("hasOwnProperty"===t)return Je}const r=Reflect.get(e,t,_t(e)?e:n);if(g(t)?He.has(t):Ue(t))return r;if(s||Ee(e,0,t),l)return r;if(_t(r)){const e=a&&_(t)?r:r.value;return s&&y(e)?ft(e):e}return y(r)?s?ft(r):dt(r):r}}class Ke extends We{constructor(e=!1){super(!1,e)}set(e,t,n,s){let l=e[t];const a=d(e)&&_(t);if(!this._isShallow){const e=vt(l);if(gt(n)||vt(n)||(l=bt(l),n=bt(n)),!a&&_t(l)&&!_t(n))return e||(l.value=n),!0}const r=a?Number(t)<e.length:u(e,t),o=Reflect.set(e,t,n,_t(e)?e:s);return e===bt(s)&&(r?T(n,l)&&Te(e,"set",t,n):Te(e,"add",t,n)),o}deleteProperty(e,t){const n=u(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return g(t)&&He.has(t)||Ee(e,0,t),n}ownKeys(e){return Ee(e,0,d(e)?"length":Oe),Reflect.ownKeys(e)}}class ze extends We{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ze=new Ke,Ge=new ze,Xe=new Ke(!0),Ye=e=>e,Qe=e=>Reflect.getPrototypeOf(e);function et(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function tt(e,t){const n={get(n){const s=this.__v_raw,l=bt(s),a=bt(n);e||(T(n,a)&&Ee(l,0,n),Ee(l,0,a));const{has:r}=Qe(l),o=t?Ye:e?wt:xt;return r.call(l,n)?o(s.get(n)):r.call(l,a)?o(s.get(a)):void(s!==l&&s.get(n))},get size(){const t=this.__v_raw;return!e&&Ee(bt(t),0,Oe),t.size},has(t){const n=this.__v_raw,s=bt(n),l=bt(t);return e||(T(t,l)&&Ee(s,0,t),Ee(s,0,l)),t===l?n.has(t):n.has(t)||n.has(l)},forEach(n,s){const l=this,a=l.__v_raw,r=t?Ye:e?wt:xt;return!e&&Ee(bt(a),0,Oe),a.forEach((e,t)=>n.call(s,r(e),r(t),l))}};o(n,e?{add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear")}:{add(e){const n=bt(this),s=Qe(n),l=bt(e),a=t||gt(e)||vt(e)?e:l;return s.has.call(n,a)||T(e,a)&&s.has.call(n,e)||T(l,a)&&s.has.call(n,l)||(n.add(a),Te(n,"add",a,a)),this},set(e,n){t||gt(n)||vt(n)||(n=bt(n));const s=bt(this),{has:l,get:a}=Qe(s);let r=l.call(s,e);r||(e=bt(e),r=l.call(s,e));const o=a.call(s,e);return s.set(e,n),r?T(n,o)&&Te(s,"set",e,n):Te(s,"add",e,n),this},delete(e){const t=bt(this),{has:n,get:s}=Qe(t);let l=n.call(t,e);l||(e=bt(e),l=n.call(t,e)),s&&s.call(t,e);const a=t.delete(e);return l&&Te(t,"delete",e,void 0),a},clear(){const e=bt(this),t=0!==e.size,n=e.clear();return t&&Te(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const l=this.__v_raw,a=bt(l),r=p(a),i="entries"===e||e===Symbol.iterator&&r,c="keys"===e&&r,u=l[e](...s),d=n?Ye:t?wt:xt;return!t&&Ee(a,0,c?je:Oe),o(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:i?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(s,e,t)}),n}function nt(e,t){const n=tt(e,t);return(t,s,l)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(u(n,s)&&s in t?n:t,s,l)}const st={get:nt(!1,!1)},lt={get:nt(!1,!0)},at={get:nt(!0,!1)},rt=new WeakMap,ot=new WeakMap,it=new WeakMap,ct=new WeakMap;function ut(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>x(e).slice(8,-1))(e))}function dt(e){return vt(e)?e:mt(e,!1,Ze,st,rt)}function pt(e){return mt(e,!1,Xe,lt,ot)}function ft(e){return mt(e,!0,Ge,at,it)}function mt(e,t,n,s,l){if(!y(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=ut(e);if(0===a)return e;const r=l.get(e);if(r)return r;const o=new Proxy(e,2===a?s:n);return l.set(e,o),o}function ht(e){return vt(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(e){return!(!e||!e.__v_isReadonly)}function gt(e){return!(!e||!e.__v_isShallow)}function yt(e){return!!e&&!!e.__v_raw}function bt(e){const t=e&&e.__v_raw;return t?bt(t):e}function kt(e){return!u(e,"__v_skip")&&Object.isExtensible(e)&&P(e,"__v_skip",!0),e}const xt=e=>y(e)?dt(e):e,wt=e=>y(e)?ft(e):e;function _t(e){return!!e&&!0===e.__v_isRef}function St(e){return function(e,t){if(_t(e))return e;return new Ct(e,t)}(e,!1)}class Ct{constructor(e,t){this.dep=new Ce,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:bt(e),this._value=t?e:xt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||gt(e)||vt(e);T(e=n?e:bt(e),t)&&(this._rawValue=e,this._value=n?e:xt(e),this.dep.trigger())}}function $t(e){return _t(e)?e.value:e}const Mt={get:(e,t,n)=>"__v_raw"===t?e:$t(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const l=e[t];return _t(l)&&!_t(n)?(l.value=n,!0):Reflect.set(e,t,n,s)}};function Ot(e){return ht(e)?e:new Proxy(e,Mt)}function jt(e){const t=d(e)?new Array(e.length):{};for(const n in e)t[n]=Et(e,n);return t}class Lt{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=g(t)?t:String(t),this._raw=bt(e);let s=!0,l=e;if(!d(e)||g(this._key)||!_(this._key))do{s=!yt(l)||gt(l)}while(s&&(l=l.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=$t(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&_t(this._raw[this._key])){const t=this._object[this._key];if(_t(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=Me.get(e);return n&&n.get(t)}(this._raw,this._key)}}function Et(e,t,n){return new Lt(e,t,n)}class Tt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ce(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_e-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&ee!==this)return ce(this,!0),!0}get value(){const e=this.dep.track();return he(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Dt(e,t,n=!1){let s,l;h(e)?s=e:(s=e.get,l=e.set);return new Tt(s,l,n)}const Pt={},At=new WeakMap;let It;function Nt(e,n,l=t){const{immediate:a,deep:r,once:o,scheduler:c,augmentJob:u,call:p}=l,f=e=>r?e:gt(e)||!1===r||0===r?qt(e,1):qt(e);let m,v,g,y,b=!1,k=!1;if(_t(e)?(v=()=>e.value,b=gt(e)):ht(e)?(v=()=>f(e),b=!0):d(e)?(k=!0,b=e.some(e=>ht(e)||gt(e)),v=()=>e.map(e=>_t(e)?e.value:ht(e)?f(e):h(e)?p?p(e,2):e():void 0)):v=h(e)?n?p?()=>p(e,2):e:()=>{if(g){ke();try{g()}finally{xe()}}const t=It;It=m;try{return p?p(e,3,[y]):e(y)}finally{It=t}}:s,n&&r){const e=v,t=!0===r?1/0:r;v=()=>qt(e(),t)}const x=se(),w=()=>{m.stop(),x&&x.active&&i(x.effects,m)};if(o&&n){const e=n;n=(...t)=>{e(...t),w()}}let _=k?new Array(e.length).fill(Pt):Pt;const S=e=>{if(1&m.flags&&(m.dirty||e))if(n){const e=m.run();if(r||b||(k?e.some((e,t)=>T(e,_[t])):T(e,_))){g&&g();const t=It;It=m;try{const t=[e,_===Pt?void 0:k&&_[0]===Pt?[]:_,y];_=e,p?p(n,3,t):n(...t)}finally{It=t}}}else m.run()};return u&&u(S),m=new ae(v),m.scheduler=c?()=>c(S,!1):S,y=e=>function(e,t=!1,n=It){if(n){let t=At.get(n);t||At.set(n,t=[]),t.push(e)}}(e,!1,m),g=m.onStop=()=>{const e=At.get(m);if(e){if(p)p(e,4);else for(const t of e)t();At.delete(m)}},n?a?S(!0):_=m.run():c?c(S.bind(null,!0),!0):m.run(),w.pause=m.pause.bind(m),w.resume=m.resume.bind(m),w.stop=w,w}function qt(e,t=1/0,n){if(t<=0||!y(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,_t(e))qt(e.value,t,n);else if(d(e))for(let s=0;s<e.length;s++)qt(e[s],t,n);else if(f(e)||p(e))e.forEach(e=>{qt(e,t,n)});else if(w(e)){for(const s in e)qt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&qt(e[s],t,n)}return e}
12
+ /**
13
+ * @vue/runtime-core v3.5.34
14
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
15
+ * @license MIT
16
+ **/function Rt(e,t,n,s){try{return s?e(...s):e()}catch(l){Ft(l,t,n)}}function Vt(e,t,n,s){if(h(e)){const l=Rt(e,t,n,s);return l&&b(l)&&l.catch(e=>{Ft(e,t,n)}),l}if(d(e)){const l=[];for(let a=0;a<e.length;a++)l.push(Vt(e[a],t,n,s));return l}}function Ft(e,n,s,l=!0){n&&n.vnode;const{errorHandler:a,throwUnhandledErrorInProduction:r}=n&&n.appContext.config||t;if(n){let t=n.parent;const l=n.proxy,r=`https://vuejs.org/error-reference/#runtime-${s}`;for(;t;){const n=t.ec;if(n)for(let t=0;t<n.length;t++)if(!1===n[t](e,l,r))return;t=t.parent}if(a)return ke(),Rt(a,null,10,[e,l,r]),void xe()}!function(e,t,n,s=!0,l=!1){if(l)throw e}(e,0,0,l,r)}const Bt=[];let Ut=-1;const Ht=[];let Jt=null,Wt=0;const Kt=Promise.resolve();let zt=null;function Zt(e){const t=zt||Kt;return e?t.then(this?e.bind(this):e):t}function Gt(e){if(!(1&e.flags)){const t=tn(e),n=Bt[Bt.length-1];!n||!(2&e.flags)&&t>=tn(n)?Bt.push(e):Bt.splice(function(e){let t=Ut+1,n=Bt.length;for(;t<n;){const s=t+n>>>1,l=Bt[s],a=tn(l);a<e||a===e&&2&l.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,Xt()}}function Xt(){zt||(zt=Kt.then(nn))}function Yt(e){d(e)?Ht.push(...e):Jt&&-1===e.id?Jt.splice(Wt+1,0,e):1&e.flags||(Ht.push(e),e.flags|=1),Xt()}function Qt(e,t,n=Ut+1){for(;n<Bt.length;n++){const t=Bt[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Bt.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function en(e){if(Ht.length){const e=[...new Set(Ht)].sort((e,t)=>tn(e)-tn(t));if(Ht.length=0,Jt)return void Jt.push(...e);for(Jt=e,Wt=0;Wt<Jt.length;Wt++){const e=Jt[Wt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Jt=null,Wt=0}}const tn=e=>null==e.id?2&e.flags?-1:1/0:e.id;function nn(e){try{for(Ut=0;Ut<Bt.length;Ut++){const e=Bt[Ut];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Rt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Ut<Bt.length;Ut++){const e=Bt[Ut];e&&(e.flags&=-2)}Ut=-1,Bt.length=0,en(),zt=null,(Bt.length||Ht.length)&&nn()}}let sn=null,ln=null;function an(e){const t=sn;return sn=e,ln=e&&e.type.__scopeId||null,t}function rn(e,t=sn,n){if(!t)return e;if(e._n)return e;const s=(...n)=>{s._d&&ml(-1);const l=an(t);let a;try{a=e(...n)}finally{an(l),s._d&&ml(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function on(e,n){if(null===sn)return e;const s=Jl(sn),l=e.dirs||(e.dirs=[]);for(let a=0;a<n.length;a++){let[e,r,o,i=t]=n[a];e&&(h(e)&&(e={mounted:e,updated:e}),e.deep&&qt(r),l.push({dir:e,instance:s,value:r,oldValue:void 0,arg:o,modifiers:i}))}return e}function cn(e,t,n,s){const l=e.dirs,a=t&&t.dirs;for(let r=0;r<l.length;r++){const o=l[r];a&&(o.oldValue=a[r].value);let i=o.dir[s];i&&(ke(),Vt(i,n,8,[e.el,o,e,t]),xe())}}function un(e,t,n=!1){const s=Al();if(s||Ms){let l=Ms?Ms._context.provides:s?null==s.parent||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&h(t)?t.call(s&&s.proxy):t}}const dn=Symbol.for("v-scx");function pn(e,t,n){return fn(e,t,n)}function fn(e,n,l=t){const{immediate:a,deep:r,flush:i,once:c}=l,u=o({},l),d=n&&a||!n&&"post"!==i;let p;if(Fl)if("sync"===i){const e=un(dn);p=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=s,e.resume=s,e.pause=s,e}const f=Pl;u.call=(e,t,n)=>Vt(e,f,t,n);let m=!1;"post"===i?u.scheduler=e=>{Xs(e,f&&f.suspense)}:"sync"!==i&&(m=!0,u.scheduler=(e,t)=>{t?e():Gt(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,f&&(e.id=f.uid,e.i=f))};const h=Nt(e,n,u);return Fl&&(p?p.push(h):d&&h()),h}function mn(e,t,n){const s=this.proxy,l=v(e)?e.includes(".")?hn(s,e):()=>s[e]:e.bind(s,s);let a;h(t)?a=t:(a=t.handler,n=t);const r=ql(this),o=fn(l,a.bind(s),n);return r(),o}function hn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const vn=Symbol("_vte"),gn=e=>e.__isTeleport,yn=Symbol("_leaveCb"),bn=Symbol("_enterCb");const kn=[Function,Array],xn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kn,onEnter:kn,onAfterEnter:kn,onEnterCancelled:kn,onBeforeLeave:kn,onLeave:kn,onAfterLeave:kn,onLeaveCancelled:kn,onBeforeAppear:kn,onAppear:kn,onAfterAppear:kn,onAppearCancelled:kn},wn=e=>{const t=e.subTree;return t.component?wn(t.component):t};function _n(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==il){t=n;break}return t}const Sn={name:"BaseTransition",props:xn,setup(e,{slots:t}){const n=Al(),s=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Wn(()=>{e.isMounted=!0}),Zn(()=>{e.isUnmounting=!0}),e}();return()=>{const l=t.default&&Ln(t.default(),!0),a=l&&l.length?_n(l):n.subTree?Ml():void 0;if(!a)return;const r=bt(e),{mode:o}=r;if(s.isLeaving)return Mn(a);const i=On(a);if(!i)return Mn(a);let c=$n(i,r,s,n,e=>c=e);i.type!==il&&jn(i,c);let u=n.subTree&&On(n.subTree);if(u&&u.type!==il&&!bl(u,i)&&wn(n).type!==il){let e=$n(u,r,s,n);if(jn(u,e),"out-in"===o&&i.type!==il)return s.isLeaving=!0,e.afterLeave=()=>{s.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,u=void 0},Mn(a);"in-out"===o&&i.type!==il?e.delayLeave=(e,t,n)=>{Cn(s,u)[String(u.key)]=u,e[yn]=()=>{t(),e[yn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return a}}};function Cn(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 $n(e,t,n,s,l){const{appear:a,mode:r,persisted:o=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:f,onLeave:m,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:k}=t,x=String(e.key),w=Cn(n,e),_=(e,t)=>{e&&Vt(e,s,9,t)},S=(e,t)=>{const n=t[1];_(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},C={mode:r,persisted:o,beforeEnter(t){let s=i;if(!n.isMounted){if(!a)return;s=g||i}t[yn]&&t[yn](!0);const l=w[x];l&&bl(e,l)&&l.el[yn]&&l.el[yn](),_(s,[t])},enter(t){if(w[x]===e)return;let s=c,l=u,r=p;if(!n.isMounted){if(!a)return;s=y||c,l=b||u,r=k||p}let o=!1;t[bn]=e=>{o||(o=!0,_(e?r:l,[t]),C.delayedLeave&&C.delayedLeave(),t[bn]=void 0)};const i=t[bn].bind(null,!1);s?S(s,[t,i]):i()},leave(t,s){const l=String(e.key);if(t[bn]&&t[bn](!0),n.isUnmounting)return s();_(f,[t]);let a=!1;t[yn]=n=>{a||(a=!0,s(),_(n?v:h,[t]),t[yn]=void 0,w[l]===e&&delete w[l])};const r=t[yn].bind(null,!1);w[l]=e,m?S(m,[t,r]):r()},clone(e){const a=$n(e,t,n,s,l);return l&&l(a),a}};return C}function Mn(e){if(qn(e))return(e=Sl(e)).children=null,e}function On(e){if(!qn(e))return gn(e.type)&&e.children?_n(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&h(n.default))return n.default()}}function jn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,jn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ln(e,t=!1,n){let s=[],l=0;for(let a=0;a<e.length;a++){let r=e[a];const o=null==n?r.key:String(n)+String(null!=r.key?r.key:a);r.type===rl?(128&r.patchFlag&&l++,s=s.concat(Ln(r.children,t,o))):(t||r.type!==il)&&s.push(null!=o?Sl(r,{key:o}):r)}if(l>1)for(let a=0;a<s.length;a++)s[a].patchFlag=-2;return s}function En(e,t){return h(e)?(()=>o({name:e.name},t,{setup:e}))():e}function Tn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Dn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Pn=new WeakMap;function An(e,n,s,a,r=!1){if(d(e))return void e.forEach((e,t)=>An(e,n&&(d(n)?n[t]:n),s,a,r));if(Nn(a)&&!r)return void(512&a.shapeFlag&&a.type.__asyncResolved&&a.component.subTree.component&&An(e,n,s,a.component.subTree));const o=4&a.shapeFlag?Jl(a.component):a.el,c=r?null:o,{i:p,r:f}=e,m=n&&n.r,g=p.refs===t?p.refs={}:p.refs,y=p.setupState,b=bt(y),k=y===t?l:e=>!Dn(g,e)&&u(b,e),x=(e,t)=>!t||!Dn(g,t);if(null!=m&&m!==f)if(In(n),v(m))g[m]=null,k(m)&&(y[m]=null);else if(_t(m)){const e=n;x(0,e.k)&&(m.value=null),e.k&&(g[e.k]=null)}if(h(f))Rt(f,p,12,[c,g]);else{const t=v(f),n=_t(f);if(t||n){const l=()=>{if(e.f){const n=t?k(f)?y[f]:g[f]:x()||!e.k?f.value:g[e.k];if(r)d(n)&&i(n,o);else if(d(n))n.includes(o)||n.push(o);else if(t)g[f]=[o],k(f)&&(y[f]=g[f]);else{const t=[o];x(0,e.k)&&(f.value=t),e.k&&(g[e.k]=t)}}else t?(g[f]=c,k(f)&&(y[f]=c)):n&&(x(0,e.k)&&(f.value=c),e.k&&(g[e.k]=c))};if(c){const t=()=>{l(),Pn.delete(e)};t.id=-1,Pn.set(e,t),Xs(t,s)}else In(e),l()}}}function In(e){const t=Pn.get(e);t&&(t.flags|=8,Pn.delete(e))}N().requestIdleCallback,N().cancelIdleCallback;const Nn=e=>!!e.type.__asyncLoader,qn=e=>e.type.__isKeepAlive;function Rn(e,t){Fn(e,"a",t)}function Vn(e,t){Fn(e,"da",t)}function Fn(e,t,n=Pl){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Un(t,s,n),n){let e=n.parent;for(;e&&e.parent;)qn(e.parent.vnode)&&Bn(s,t,n,e),e=e.parent}}function Bn(e,t,n,s){const l=Un(t,e,s,!0);Gn(()=>{i(s[t],l)},n)}function Un(e,t,n=Pl,s=!1){if(n){const l=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{ke();const l=ql(n),a=Vt(t,n,e,s);return l(),xe(),a});return s?l.unshift(a):l.push(a),a}}const Hn=e=>(t,n=Pl)=>{Fl&&"sp"!==e||Un(e,(...e)=>t(...e),n)},Jn=Hn("bm"),Wn=Hn("m"),Kn=Hn("bu"),zn=Hn("u"),Zn=Hn("bum"),Gn=Hn("um"),Xn=Hn("sp"),Yn=Hn("rtg"),Qn=Hn("rtc");function es(e,t=Pl){Un("ec",e,t)}function ts(e,t){return function(e,t,n=!0,s=!1){const l=sn||Pl;if(l){const n=l.type;{const e=Wl(n,!1);if(e&&(e===t||e===M(t)||e===L(M(t))))return n}const a=ss(l[e]||n[e],t)||ss(l.appContext[e],t);return!a&&s?n:a}}("components",e,!0,t)||e}const ns=Symbol.for("v-ndc");function ss(e,t){return e&&(e[t]||e[M(t)]||e[L(M(t))])}function ls(e,t,n,s){let l;const a=n,r=d(e);if(r||v(e)){let n=!1,s=!1;r&&ht(e)&&(n=!gt(e),s=vt(e),e=Pe(e)),l=new Array(e.length);for(let r=0,o=e.length;r<o;r++)l[r]=t(n?s?wt(xt(e[r])):xt(e[r]):e[r],r,void 0,a)}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,a)}else if(y(e))if(e[Symbol.iterator])l=Array.from(e,(e,n)=>t(e,n,void 0,a));else{const n=Object.keys(e);l=new Array(n.length);for(let s=0,r=n.length;s<r;s++){const r=n[s];l[s]=t(e[r],r,s,a)}}else l=[];return l}function as(e,t,n={},s,l){if(sn.ce||sn.parent&&Nn(sn.parent)&&sn.parent.ce){const e=Object.keys(n).length>0;return pl(),gl(rl,null,[_l("slot",n,s)],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),pl();const r=a&&rs(a(n)),o=n.key||r&&r.key,i=gl(rl,{key:(o&&!g(o)?o:`_${t}`)+(!r&&s?"_fb":"")},r||[],r&&1===e._?64:-2);return a&&a._c&&(a._d=!0),i}function rs(e){return e.some(e=>!yl(e)||e.type!==il&&!(e.type===rl&&!rs(e.children)))?e:null}const os=e=>e?Vl(e)?Jl(e):os(e.parent):null,is=o(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=>os(e.parent),$root:e=>os(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>vs(e),$forceUpdate:e=>e.f||(e.f=()=>{Gt(e.update)}),$nextTick:e=>e.n||(e.n=Zt.bind(e.proxy)),$watch:e=>mn.bind(e)}),cs=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),us={get({_:e},n){if("__v_skip"===n)return!0;const{ctx:s,setupState:l,data:a,props:r,accessCache:o,type:i,appContext:c}=e;if("$"!==n[0]){const e=o[n];if(void 0!==e)switch(e){case 1:return l[n];case 2:return a[n];case 4:return s[n];case 3:return r[n]}else{if(cs(l,n))return o[n]=1,l[n];if(a!==t&&u(a,n))return o[n]=2,a[n];if(u(r,n))return o[n]=3,r[n];if(s!==t&&u(s,n))return o[n]=4,s[n];ps&&(o[n]=0)}}const d=is[n];let p,f;return d?("$attrs"===n&&Ee(e.attrs,0,""),d(e)):(p=i.__cssModules)&&(p=p[n])?p:s!==t&&u(s,n)?(o[n]=4,s[n]):(f=c.config.globalProperties,u(f,n)?f[n]:void 0)},set({_:e},n,s){const{data:l,setupState:a,ctx:r}=e;return cs(a,n)?(a[n]=s,!0):l!==t&&u(l,n)?(l[n]=s,!0):!u(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(r[n]=s,!0))},has({_:{data:e,setupState:n,accessCache:s,ctx:l,appContext:a,props:r,type:o}},i){let c;return!!(s[i]||e!==t&&"$"!==i[0]&&u(e,i)||cs(n,i)||u(r,i)||u(l,i)||u(is,i)||u(a.config.globalProperties,i)||(c=o.__cssModules)&&c[i])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:u(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ds(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let ps=!0;function fs(e){const t=vs(e),n=e.proxy,l=e.ctx;ps=!1,t.beforeCreate&&ms(t.beforeCreate,e,"bc");const{data:a,computed:r,methods:o,watch:i,provide:c,inject:u,created:p,beforeMount:f,mounted:m,beforeUpdate:v,updated:g,activated:b,deactivated:k,beforeDestroy:x,beforeUnmount:w,destroyed:_,unmounted:S,render:C,renderTracked:$,renderTriggered:M,errorCaptured:O,serverPrefetch:j,expose:L,inheritAttrs:E,components:T,directives:D,filters:P}=t;if(u&&function(e,t){d(e)&&(e=ks(e));for(const n in e){const s=e[n];let l;l=y(s)?"default"in s?un(s.from||n,s.default,!0):un(s.from||n):un(s),_t(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e}):t[n]=l}}(u,l,null),o)for(const s in o){const e=o[s];h(e)&&(l[s]=e.bind(n))}if(a){const t=a.call(n,n);y(t)&&(e.data=dt(t))}if(ps=!0,r)for(const d in r){const e=r[d],t=h(e)?e.bind(n,n):h(e.get)?e.get.bind(n,n):s,a=!h(e)&&h(e.set)?e.set.bind(n):s,o=Kl({get:t,set:a});Object.defineProperty(l,d,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e})}if(i)for(const s in i)hs(i[s],l,n,s);if(c){const e=h(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(Pl){let n=Pl.provides;const s=Pl.parent&&Pl.parent.provides;s===n&&(n=Pl.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function A(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(p&&ms(p,e,"c"),A(Jn,f),A(Wn,m),A(Kn,v),A(zn,g),A(Rn,b),A(Vn,k),A(es,O),A(Qn,$),A(Yn,M),A(Zn,w),A(Gn,S),A(Xn,j),d(L))if(L.length){const t=e.exposed||(e.exposed={});L.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===s&&(e.render=C),null!=E&&(e.inheritAttrs=E),T&&(e.components=T),D&&(e.directives=D),j&&Tn(e)}function ms(e,t,n){Vt(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function hs(e,t,n,s){let l=s.includes(".")?hn(n,s):()=>n[s];if(v(e)){const n=t[e];h(n)&&pn(l,n)}else if(h(e))pn(l,e.bind(n));else if(y(e))if(d(e))e.forEach(e=>hs(e,t,n,s));else{const s=h(e.handler)?e.handler.bind(n):t[e.handler];h(s)&&pn(l,s,e)}}function vs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:l,optionsCache:a,config:{optionMergeStrategies:r}}=e.appContext,o=a.get(t);let i;return o?i=o:l.length||n||s?(i={},l.length&&l.forEach(e=>gs(i,e,r,!0)),gs(i,t,r)):i=t,y(t)&&a.set(t,i),i}function gs(e,t,n,s=!1){const{mixins:l,extends:a}=t;a&&gs(e,a,n,!0),l&&l.forEach(t=>gs(e,t,n,!0));for(const r in t)if(s&&"expose"===r);else{const s=ys[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const ys={data:bs,props:_s,emits:_s,methods:ws,computed:ws,beforeCreate:xs,created:xs,beforeMount:xs,mounted:xs,beforeUpdate:xs,updated:xs,beforeDestroy:xs,beforeUnmount:xs,destroyed:xs,unmounted:xs,activated:xs,deactivated:xs,errorCaptured:xs,serverPrefetch:xs,components:ws,directives:ws,watch:function(e,t){if(!e)return t;if(!t)return e;const n=o(Object.create(null),e);for(const s in t)n[s]=xs(e[s],t[s]);return n},provide:bs,inject:function(e,t){return ws(ks(e),ks(t))}};function bs(e,t){return t?e?function(){return o(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function ks(e){if(d(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xs(e,t){return e?[...new Set([].concat(e,t))]:t}function ws(e,t){return e?o(Object.create(null),e,t):t}function _s(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:o(Object.create(null),ds(e),ds(null!=t?t:{})):t}function Ss(){return{app:null,config:{isNativeTag:l,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 Cs=0;function $s(e,t){return function(t,n=null){h(t)||(t=o({},t)),null==n||y(n)||(n=null);const s=Ss(),l=new WeakSet,a=[];let r=!1;const i=s.app={_uid:Cs++,_component:t,_props:n,_container:null,_context:s,_instance:null,version:zl,get config(){return s.config},set config(e){},use:(e,...t)=>(l.has(e)||(e&&h(e.install)?(l.add(e),e.install(i,...t)):h(e)&&(l.add(e),e(i,...t))),i),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),i),component:(e,t)=>t?(s.components[e]=t,i):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,i):s.directives[e],mount(l,a,o){if(!r){const a=i._ceVNode||_l(t,n);return a.appContext=s,!0===o?o="svg":!1===o&&(o=void 0),e(a,l,o),r=!0,i._container=l,l.__vue_app__=i,Jl(a.component)}},onUnmount(e){a.push(e)},unmount(){r&&(Vt(a,i._instance,16),e(null,i._container),delete i._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,i),runWithContext(e){const t=Ms;Ms=i;try{return e()}finally{Ms=t}}};return i}}let Ms=null;function Os(e,n,...s){if(e.isUnmounted)return;const l=e.vnode.props||t;let a=s;const r=n.startsWith("update:"),o=r&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${M(t)}Modifiers`]||e[`${j(t)}Modifiers`])(l,n.slice(7));let i;o&&(o.trim&&(a=s.map(e=>v(e)?e.trim():e)),o.number&&(a=s.map(A)));let c=l[i=E(n)]||l[i=E(M(n))];!c&&r&&(c=l[i=E(j(n))]),c&&Vt(c,e,6,a);const u=l[i+"Once"];if(u){if(e.emitted){if(e.emitted[i])return}else e.emitted={};e.emitted[i]=!0,Vt(u,e,6,a)}}const js=new WeakMap;function Ls(e,t,n=!1){const s=n?js:t.emitsCache,l=s.get(e);if(void 0!==l)return l;const a=e.emits;let r={},i=!1;if(!h(e)){const s=e=>{const n=Ls(e,t,!0);n&&(i=!0,o(r,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return a||i?(d(a)?a.forEach(e=>r[e]=null):o(r,a),y(e)&&s.set(e,r),r):(y(e)&&s.set(e,null),null)}function Es(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),u(e,t[0].toLowerCase()+t.slice(1))||u(e,j(t))||u(e,t))}function Ts(e){const{type:t,vnode:n,proxy:s,withProxy:l,propsOptions:[a],slots:o,attrs:i,emit:c,render:u,renderCache:d,props:p,data:f,setupState:m,ctx:h,inheritAttrs:v}=e,g=an(e);let y,b;try{if(4&n.shapeFlag){const e=l||s,t=e;y=Ol(u.call(t,e,d,p,m,f,h)),b=i}else{const e=t;0,y=Ol(e.length>1?e(p,{attrs:i,slots:o,emit:c}):e(p,null)),b=t.props?i:Ds(i)}}catch(x){ul.length=0,Ft(x,e,1),y=_l(il)}let k=y;if(b&&!1!==v){const e=Object.keys(b),{shapeFlag:t}=k;e.length&&7&t&&(a&&e.some(r)&&(b=Ps(b,a)),k=Sl(k,b,!1,!0))}return n.dirs&&(k=Sl(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&jn(k,n.transition),y=k,an(g),y}const Ds=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Ps=(e,t)=>{const n={};for(const s in e)r(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function As(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let l=0;l<s.length;l++){const a=s[l];if(Is(t,e,a)&&!Es(n,a))return!0}return!1}function Is(e,t,n){const s=e[n],l=t[n];return"style"===n&&y(s)&&y(l)?!W(s,l):s!==l}const Ns={},qs=()=>Object.create(Ns),Rs=e=>Object.getPrototypeOf(e)===Ns;function Vs(e,n,s,l){const[a,r]=e.propsOptions;let o,i=!1;if(n)for(let t in n){if(S(t))continue;const c=n[t];let d;a&&u(a,d=M(t))?r&&r.includes(d)?(o||(o={}))[d]=c:s[d]=c:Es(e.emitsOptions,t)||t in l&&c===l[t]||(l[t]=c,i=!0)}if(r){const n=bt(s),l=o||t;for(let t=0;t<r.length;t++){const o=r[t];s[o]=Fs(a,n,o,l[o],e,!u(l,o))}}return i}function Fs(e,t,n,s,l,a){const r=e[n];if(null!=r){const e=u(r,"default");if(e&&void 0===s){const e=r.default;if(r.type!==Function&&!r.skipFactory&&h(e)){const{propsDefaults:a}=l;if(n in a)s=a[n];else{const r=ql(l);s=a[n]=e.call(null,t),r()}}else s=e;l.ce&&l.ce._setProp(n,s)}r[0]&&(a&&!e?s=!1:!r[1]||""!==s&&s!==j(n)||(s=!0))}return s}const Bs=new WeakMap;function Us(e,s,l=!1){const a=l?Bs:s.propsCache,r=a.get(e);if(r)return r;const i=e.props,c={},p=[];let f=!1;if(!h(e)){const t=e=>{f=!0;const[t,n]=Us(e,s,!0);o(c,t),n&&p.push(...n)};!l&&s.mixins.length&&s.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!i&&!f)return y(e)&&a.set(e,n),n;if(d(i))for(let n=0;n<i.length;n++){const e=M(i[n]);Hs(e)&&(c[e]=t)}else if(i)for(const t in i){const e=M(t);if(Hs(e)){const n=i[t],s=c[e]=d(n)||h(n)?{type:n}:o({},n),l=s.type;let a=!1,r=!0;if(d(l))for(let e=0;e<l.length;++e){const t=l[e],n=h(t)&&t.name;if("Boolean"===n){a=!0;break}"String"===n&&(r=!1)}else a=h(l)&&"Boolean"===l.name;s[0]=a,s[1]=r,(a||u(s,"default"))&&p.push(e)}}const m=[c,p];return y(e)&&a.set(e,m),m}function Hs(e){return"$"!==e[0]&&!S(e)}const Js=e=>"_"===e||"_ctx"===e||"$stable"===e,Ws=e=>d(e)?e.map(Ol):[Ol(e)],Ks=(e,t,n)=>{if(t._n)return t;const s=rn((...e)=>Ws(t(...e)),n);return s._c=!1,s},zs=(e,t,n)=>{const s=e._ctx;for(const l in e){if(Js(l))continue;const n=e[l];if(h(n))t[l]=Ks(0,n,s);else if(null!=n){const e=Ws(n);t[l]=()=>e}}},Zs=(e,t)=>{const n=Ws(t);e.slots.default=()=>n},Gs=(e,t,n)=>{for(const s in t)!n&&Js(s)||(e[s]=t[s])},Xs=function(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):Yt(e)};function Ys(e){return function(e){N().__VUE__=!0;const{insert:l,remove:a,patchProp:r,createElement:o,createText:i,createComment:c,setText:d,setElementText:p,parentNode:f,nextSibling:m,setScopeId:h=s,insertStaticContent:v}=e,g=(e,t,n,s=null,l=null,a=null,r=void 0,o=null,i=!!t.dynamicChildren)=>{if(e===t)return;e&&!bl(e,t)&&(s=Y(e),K(e,l,a,!0),e=null),-2===t.patchFlag&&(i=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case ol:y(e,t,n,s);break;case il:k(e,t,n,s);break;case cl:null==e&&x(t,n,s,r);break;case rl:I(e,t,n,s,l,a,r,o,i);break;default:1&d?C(e,t,n,s,l,a,r,o,i):6&d?q(e,t,n,s,l,a,r,o,i):(64&d||128&d)&&c.process(e,t,n,s,l,a,r,o,i,ne)}null!=u&&l?An(u,e&&e.ref,a,t||e,!t):null==u&&e&&null!=e.ref&&An(e.ref,null,a,e,!0)},y=(e,t,n,s)=>{if(null==e)l(t.el=i(t.children),n,s);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},k=(e,t,n,s)=>{null==e?l(t.el=c(t.children||""),n,s):t.el=e.el},x=(e,t,n,s)=>{[e.el,e.anchor]=v(e.children,t,n,s,e.el,e.anchor)},w=({el:e,anchor:t},n,s)=>{let a;for(;e&&e!==t;)a=m(e),l(e,n,s),e=a;l(t,n,s)},_=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),a(e),e=n;a(t)},C=(e,t,n,s,l,a,r,o,i)=>{if("svg"===t.type?r="svg":"math"===t.type&&(r="mathml"),null==e)$(t,n,s,l,a,r,o,i);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),E(e,t,l,a,r,o,i)}finally{n&&n._endPatch()}}},$=(e,t,n,s,a,i,c,u)=>{let d,f;const{props:m,shapeFlag:h,transition:v,dirs:g}=e;if(d=e.el=o(e.type,i,m&&m.is,m),8&h?p(d,e.children):16&h&&L(e.children,d,null,s,a,Qs(e,i),c,u),g&&cn(e,null,s,"created"),O(d,e,e.scopeId,c,s),m){for(const e in m)"value"===e||S(e)||r(d,e,null,m[e],i,s);"value"in m&&r(d,"value",null,m.value,i),(f=m.onVnodeBeforeMount)&&El(f,s,e)}g&&cn(e,null,s,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(a,v);y&&v.beforeEnter(d),l(d,t,n),((f=m&&m.onVnodeMounted)||y||g)&&Xs(()=>{try{f&&El(f,s,e),y&&v.enter(d),g&&cn(e,null,s,"mounted")}finally{}},a)},O=(e,t,n,s,l)=>{if(n&&h(e,n),s)for(let a=0;a<s.length;a++)h(e,s[a]);if(l){let n=l.subTree;if(t===n||al(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=l.vnode;O(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},L=(e,t,n,s,l,a,r,o,i=0)=>{for(let c=i;c<e.length;c++){const i=e[c]=o?jl(e[c]):Ol(e[c]);g(null,i,t,n,s,l,a,r,o)}},E=(e,n,s,l,a,o,i)=>{const c=n.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=16&e.patchFlag;const m=e.props||t,h=n.props||t;let v;if(s&&el(s,!1),(v=h.onVnodeBeforeUpdate)&&El(v,s,n,e),f&&cn(n,e,s,"beforeUpdate"),s&&el(s,!0),(m.innerHTML&&null==h.innerHTML||m.textContent&&null==h.textContent)&&p(c,""),d?T(e.dynamicChildren,d,c,s,l,Qs(n,a),o):i||U(e,n,c,null,s,l,Qs(n,a),o,!1),u>0){if(16&u)A(c,m,h,s,a);else if(2&u&&m.class!==h.class&&r(c,"class",null,h.class,a),4&u&&r(c,"style",m.style,h.style,a),8&u){const e=n.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],l=m[n],o=h[n];o===l&&"value"!==n||r(c,n,l,o,a,s)}}1&u&&e.children!==n.children&&p(c,n.children)}else i||null!=d||A(c,m,h,s,a);((v=h.onVnodeUpdated)||f)&&Xs(()=>{v&&El(v,s,n,e),f&&cn(n,e,s,"updated")},l)},T=(e,t,n,s,l,a,r)=>{for(let o=0;o<t.length;o++){const i=e[o],c=t[o],u=i.el&&(i.type===rl||!bl(i,c)||198&i.shapeFlag)?f(i.el):n;g(i,c,u,null,s,l,a,r,!0)}},A=(e,n,s,l,a)=>{if(n!==s){if(n!==t)for(const t in n)S(t)||t in s||r(e,t,n[t],null,a,l);for(const t in s){if(S(t))continue;const o=s[t],i=n[t];o!==i&&"value"!==t&&r(e,t,i,o,a,l)}"value"in s&&r(e,"value",n.value,s.value,a)}},I=(e,t,n,s,a,r,o,c,u)=>{const d=t.el=e?e.el:i(""),p=t.anchor=e?e.anchor:i("");let{patchFlag:f,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),null==e?(l(d,n,s),l(p,n,s),L(t.children||[],n,p,a,r,o,c,u)):f>0&&64&f&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(T(e.dynamicChildren,m,n,a,r,o,c),(null!=t.key||a&&t===a.subTree)&&tl(e,t,!0)):U(e,t,n,p,a,r,o,c,u)},q=(e,t,n,s,l,a,r,o,i)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?l.ctx.activate(t,n,s,r,i):R(t,n,s,l,a,r,i):V(e,t,i)},R=(e,n,s,l,a,r,o)=>{const i=e.component=function(e,n,s){const l=e.type,a=(n?n.appContext:e.appContext)||Tl,r={uid:Dl++,vnode:e,type:l,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new te(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Us(l,a),emitsOptions:Ls(l,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:l.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:s,suspenseId:s?s.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};r.ctx={_:r},r.root=n?n.root:r,r.emit=Os.bind(null,r),e.ce&&e.ce(r);return r}(e,l,a);if(qn(e)&&(i.ctx.renderer=ne),function(e,t=!1,n=!1){t&&Nl(t);const{props:s,children:l}=e.vnode,a=Vl(e);(function(e,t,n,s=!1){const l={},a=qs();e.propsDefaults=Object.create(null),Vs(e,t,l,a);for(const r in e.propsOptions[0])r in l||(l[r]=void 0);n?e.props=s?l:pt(l):e.type.props?e.props=l:e.props=a,e.attrs=a})(e,s,a,t),((e,t,n)=>{const s=e.slots=qs();if(32&e.vnode.shapeFlag){const e=t._;e?(Gs(s,t,n),n&&P(s,"_",e,!0)):zs(t,s)}else t&&Zs(e,t)})(e,l,n||t);const r=a?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,us);const{setup:s}=n;if(s){ke();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Hl),slots:e.slots,emit:e.emit,expose:t}}(e):null,l=ql(e),a=Rt(s,e,0,[e.props,n]),r=b(a);if(xe(),l(),!r&&!e.sp||Nn(e)||Tn(e),r){if(a.then(Rl,Rl),t)return a.then(t=>{Bl(e,t)}).catch(t=>{Ft(t,e,0)});e.asyncDep=a}else Bl(e,a)}else Ul(e)}(e,t):void 0;t&&Nl(!1)}(i,!1,o),i.asyncDep){if(a&&a.registerDep(i,F,o),!e.el){const t=i.subTree=_l(il);k(null,t,n,s),e.placeholder=t.el}}else F(i,e,n,s,a,r,o)},V=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:l,component:a}=e,{props:r,children:o,patchFlag:i}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&i>=0))return!(!l&&!o||o&&o.$stable)||s!==r&&(s?!r||As(s,r,c):!!r);if(1024&i)return!0;if(16&i)return s?As(s,r,c):!!r;if(8&i){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(Is(r,s,n)&&!Es(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void B(s,t,n);s.next=t,s.update()}else t.el=e.el,s.vnode=t},F=(e,t,n,s,l,a,r)=>{const o=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:o,vnode:i}=e;{const n=nl(e);if(n)return t&&(t.el=i.el,B(e,t,r)),void n.asyncDep.then(()=>{Xs(()=>{e.isUnmounted||c()},l)})}let u,d=t;el(e,!1),t?(t.el=i.el,B(e,t,r)):t=i,n&&D(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&El(u,o,t,i),el(e,!0);const p=Ts(e),m=e.subTree;e.subTree=p,g(m,p,f(m.el),Y(m),e,l,a),t.el=p.el,null===d&&function({vnode:e,parent:t,suspense:n},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=s,e=n),n!==e)break;(e=t.vnode).el=s,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=s)}(e,p.el),s&&Xs(s,l),(u=t.props&&t.props.onVnodeUpdated)&&Xs(()=>El(u,o,t,i),l)}else{let r;const{el:o,props:i}=t,{bm:c,m:u,parent:d,root:p,type:f}=e,m=Nn(t);el(e,!1),c&&D(c),!m&&(r=i&&i.onVnodeBeforeMount)&&El(r,d,t),el(e,!0);{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(f,e.parent?e.parent.type:void 0);const r=e.subTree=Ts(e);g(null,r,n,s,e,l,a),t.el=r.el}if(u&&Xs(u,l),!m&&(r=i&&i.onVnodeMounted)){const e=t;Xs(()=>El(r,d,e),l)}(256&t.shapeFlag||d&&Nn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Xs(e.a,l),e.isMounted=!0,t=n=s=null}};e.scope.on();const i=e.effect=new ae(o);e.scope.off();const c=e.update=i.run.bind(i),u=e.job=i.runIfDirty.bind(i);u.i=e,u.id=e.uid,i.scheduler=()=>Gt(u),el(e,!0),c()},B=(e,n,s)=>{n.component=e;const l=e.vnode.props;e.vnode=n,e.next=null,function(e,t,n,s){const{props:l,attrs:a,vnode:{patchFlag:r}}=e,o=bt(l),[i]=e.propsOptions;let c=!1;if(!(s||r>0)||16&r){let s;Vs(e,t,l,a)&&(c=!0);for(const a in o)t&&(u(t,a)||(s=j(a))!==a&&u(t,s))||(i?!n||void 0===n[a]&&void 0===n[s]||(l[a]=Fs(i,o,a,void 0,e,!0)):delete l[a]);if(a!==o)for(const e in a)t&&u(t,e)||(delete a[e],c=!0)}else if(8&r){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let r=n[s];if(Es(e.emitsOptions,r))continue;const d=t[r];if(i)if(u(a,r))d!==a[r]&&(a[r]=d,c=!0);else{const t=M(r);l[t]=Fs(i,o,t,d,e,!1)}else d!==a[r]&&(a[r]=d,c=!0)}}c&&Te(e.attrs,"set","")}(e,n.props,l,s),((e,n,s)=>{const{vnode:l,slots:a}=e;let r=!0,o=t;if(32&l.shapeFlag){const e=n._;e?s&&1===e?r=!1:Gs(a,n,s):(r=!n.$stable,zs(n,a)),o=n}else n&&(Zs(e,n),o={default:1});if(r)for(const t in a)Js(t)||null!=o[t]||delete a[t]})(e,n.children,s),ke(),Qt(e),xe()},U=(e,t,n,s,l,a,r,o,i=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(128&f)return void J(c,d,n,s,l,a,r,o,i);if(256&f)return void H(c,d,n,s,l,a,r,o,i)}8&m?(16&u&&X(c,l,a),d!==c&&p(n,d)):16&u?16&m?J(c,d,n,s,l,a,r,o,i):X(c,l,a,!0):(8&u&&p(n,""),16&m&&L(d,n,s,l,a,r,o,i))},H=(e,t,s,l,a,r,o,i,c)=>{t=t||n;const u=(e=e||n).length,d=t.length,p=Math.min(u,d);let f;for(f=0;f<p;f++){const n=t[f]=c?jl(t[f]):Ol(t[f]);g(e[f],n,s,null,a,r,o,i,c)}u>d?X(e,a,r,!0,!1,p):L(t,s,l,a,r,o,i,c,p)},J=(e,t,s,l,a,r,o,i,c)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const n=e[u],l=t[u]=c?jl(t[u]):Ol(t[u]);if(!bl(n,l))break;g(n,l,s,null,a,r,o,i,c),u++}for(;u<=p&&u<=f;){const n=e[p],l=t[f]=c?jl(t[f]):Ol(t[f]);if(!bl(n,l))break;g(n,l,s,null,a,r,o,i,c),p--,f--}if(u>p){if(u<=f){const e=f+1,n=e<d?t[e].el:l;for(;u<=f;)g(null,t[u]=c?jl(t[u]):Ol(t[u]),s,n,a,r,o,i,c),u++}}else if(u>f)for(;u<=p;)K(e[u],a,r,!0),u++;else{const m=u,h=u,v=new Map;for(u=h;u<=f;u++){const e=t[u]=c?jl(t[u]):Ol(t[u]);null!=e.key&&v.set(e.key,u)}let y,b=0;const k=f-h+1;let x=!1,w=0;const _=new Array(k);for(u=0;u<k;u++)_[u]=0;for(u=m;u<=p;u++){const n=e[u];if(b>=k){K(n,a,r,!0);continue}let l;if(null!=n.key)l=v.get(n.key);else for(y=h;y<=f;y++)if(0===_[y-h]&&bl(n,t[y])){l=y;break}void 0===l?K(n,a,r,!0):(_[l-h]=u+1,l>=w?w=l:x=!0,g(n,t[l],s,null,a,r,o,i,c),b++)}const S=x?function(e){const t=e.slice(),n=[0];let s,l,a,r,o;const i=e.length;for(s=0;s<i;s++){const i=e[s];if(0!==i){if(l=n[n.length-1],e[l]<i){t[s]=l,n.push(s);continue}for(a=0,r=n.length-1;a<r;)o=a+r>>1,e[n[o]]<i?a=o+1:r=o;i<e[n[a]]&&(a>0&&(t[s]=n[a-1]),n[a]=s)}}a=n.length,r=n[a-1];for(;a-- >0;)n[a]=r,r=t[r];return n}(_):n;for(y=S.length-1,u=k-1;u>=0;u--){const e=h+u,n=t[e],p=t[e+1],f=e+1<d?p.el||ll(p):l;0===_[u]?g(null,n,s,f,a,r,o,i,c):x&&(y<0||u!==S[y]?W(n,s,f,2):y--)}}},W=(e,t,n,s,r=null)=>{const{el:o,type:i,transition:c,children:u,shapeFlag:d}=e;if(6&d)return void W(e.component.subTree,t,n,s);if(128&d)return void e.suspense.move(t,n,s);if(64&d)return void i.move(e,t,n,ne);if(i===rl){l(o,t,n);for(let e=0;e<u.length;e++)W(u[e],t,n,s);return void l(e.anchor,t,n)}if(i===cl)return void w(e,t,n);if(2!==s&&1&d&&c)if(0===s)c.beforeEnter(o),l(o,t,n),Xs(()=>c.enter(o),r);else{const{leave:s,delayLeave:r,afterLeave:i}=c,u=()=>{e.ctx.isUnmounted?a(o):l(o,t,n)},d=()=>{o._isLeaving&&o[yn](!0),s(o,()=>{u(),i&&i()})};r?r(o,u,d):d()}else l(o,t,n)},K=(e,t,n,s=!1,l=!1)=>{const{type:a,props:r,ref:o,children:i,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f,memo:m}=e;if(-2===d&&(l=!1),null!=o&&(ke(),An(o,null,n,e,!0),xe()),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,v=!Nn(e);let g;if(v&&(g=r&&r.onVnodeBeforeUnmount)&&El(g,t,e),6&u)G(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);h&&cn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,ne,s):c&&!c.hasOnce&&(a!==rl||d>0&&64&d)?X(c,t,n,!1,!0):(a===rl&&384&d||!l&&16&u)&&X(i,t,n),s&&z(e)}const y=null!=m&&null==f;(v&&(g=r&&r.onVnodeUnmounted)||h||y)&&Xs(()=>{g&&El(g,t,e),h&&cn(e,null,t,"unmounted"),y&&(e.el=null)},n)},z=e=>{const{type:t,el:n,anchor:s,transition:l}=e;if(t===rl)return void Z(n,s);if(t===cl)return void _(e);const r=()=>{a(n),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:s}=l,a=()=>t(n,r);s?s(e.el,r,a):a()}else r()},Z=(e,t)=>{let n;for(;e!==t;)n=m(e),a(e),e=n;a(t)},G=(e,t,n)=>{const{bum:s,scope:l,job:a,subTree:r,um:o,m:i,a:c}=e;sl(i),sl(c),s&&D(s),l.stop(),a&&(a.flags|=8,K(r,e,t,n)),o&&Xs(o,t),Xs(()=>{e.isUnmounted=!0},t)},X=(e,t,n,s=!1,l=!1,a=0)=>{for(let r=a;r<e.length;r++)K(e[r],t,n,s,l)},Y=e=>{if(6&e.shapeFlag)return Y(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[vn];return n?m(n):t};let Q=!1;const ee=(e,t,n)=>{let s;null==e?t._vnode&&(K(t._vnode,null,null,!0),s=t._vnode.component):g(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Q||(Q=!0,Qt(s),en(),Q=!1)},ne={p:g,um:K,m:W,r:z,mt:R,mc:L,pc:U,pbc:T,n:Y,o:e};let se;return{render:ee,hydrate:se,createApp:$s(ee)}}(e)}function Qs({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function el({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function tl(e,t,n=!1){const s=e.children,l=t.children;if(d(s)&&d(l))for(let a=0;a<s.length;a++){const e=s[a];let t=l[a];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=l[a]=jl(l[a]),t.el=e.el),n||-2===t.patchFlag||tl(e,t)),t.type===ol&&(-1===t.patchFlag&&(t=l[a]=jl(t)),t.el=e.el),t.type!==il||t.el||(t.el=e.el)}}function nl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nl(t)}function sl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ll(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ll(t.subTree):null}const al=e=>e.__isSuspense;const rl=Symbol.for("v-fgt"),ol=Symbol.for("v-txt"),il=Symbol.for("v-cmt"),cl=Symbol.for("v-stc"),ul=[];let dl=null;function pl(e=!1){ul.push(dl=e?null:[])}let fl=1;function ml(e,t=!1){fl+=e,e<0&&dl&&t&&(dl.hasOnce=!0)}function hl(e){return e.dynamicChildren=fl>0?dl||n:null,ul.pop(),dl=ul[ul.length-1]||null,fl>0&&dl&&dl.push(e),e}function vl(e,t,n,s,l,a){return hl(wl(e,t,n,s,l,a,!0))}function gl(e,t,n,s,l){return hl(_l(e,t,n,s,l,!0))}function yl(e){return!!e&&!0===e.__v_isVNode}function bl(e,t){return e.type===t.type&&e.key===t.key}const kl=({key:e})=>null!=e?e:null,xl=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||_t(e)||h(e)?{i:sn,r:e,k:t,f:!!n}:e:null);function wl(e,t=null,n=null,s=0,l=null,a=(e===rl?0:1),r=!1,o=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kl(t),ref:t&&xl(t),scopeId:ln,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:a,patchFlag:s,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:sn};return o?(Ll(i,n),128&a&&e.normalize(i)):n&&(i.shapeFlag|=v(n)?8:16),fl>0&&!r&&dl&&(i.patchFlag>0||6&a)&&32!==i.patchFlag&&dl.push(i),i}const _l=function(e,t=null,n=null,s=0,l=null,a=!1){e&&e!==ns||(e=il);if(yl(e)){const s=Sl(e,t,!0);return n&&Ll(s,n),fl>0&&!a&&dl&&(6&s.shapeFlag?dl[dl.indexOf(e)]=s:dl.push(s)),s.patchFlag=-2,s}r=e,h(r)&&"__vccOpts"in r&&(e=e.__vccOpts);var r;if(t){t=function(e){return e?yt(e)||Rs(e)?o({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=U(e)),y(n)&&(yt(n)&&!d(n)&&(n=o({},n)),t.style=q(n))}const i=v(e)?1:al(e)?128:gn(e)?64:y(e)?4:h(e)?2:0;return wl(e,t,n,s,l,i,a,!0)};function Sl(e,t,n=!1,s=!1){const{props:l,ref:o,patchFlag:i,children:c,transition:u}=e,p=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=U([t.class,s.class]));else if("style"===e)t.style=q([t.style,s.style]);else if(a(e)){const n=t[e],l=s[e];!l||n===l||d(n)&&n.includes(l)?null!=l||null!=n||r(e)||(t[e]=l):t[e]=n?[].concat(n,l):l}else""!==e&&(t[e]=s[e])}return t}(l||{},t):l,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&kl(p),ref:t&&t.ref?n&&o?d(o)?o.concat(xl(t)):[o,xl(t)]:xl(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rl?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Sl(e.ssContent),ssFallback:e.ssFallback&&Sl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&jn(f,u.clone(f)),f}function Cl(e=" ",t=0){return _l(ol,null,e,t)}function $l(e,t){const n=_l(cl,null,e);return n.staticCount=t,n}function Ml(e="",t=!1){return t?(pl(),gl(il,null,e)):_l(il,null,e)}function Ol(e){return null==e||"boolean"==typeof e?_l(il):d(e)?_l(rl,null,e.slice()):yl(e)?jl(e):_l(ol,null,String(e))}function jl(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Sl(e)}function Ll(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(d(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ll(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||Rs(t)?3===s&&sn&&(1===sn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=sn}}else h(t)?(t={default:t,_ctx:sn},n=32):(t=String(t),64&s?(n=16,t=[Cl(t)]):n=8);e.children=t,e.shapeFlag|=n}function El(e,t,n,s=null){Vt(e,t,7,[n,s])}const Tl=Ss();let Dl=0;let Pl=null;const Al=()=>Pl||sn;let Il,Nl;{const e=N(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach(t=>t(e)):s[0](e)}};Il=t("__VUE_INSTANCE_SETTERS__",e=>Pl=e),Nl=t("__VUE_SSR_SETTERS__",e=>Fl=e)}const ql=e=>{const t=Pl;return Il(e),e.scope.on(),()=>{e.scope.off(),Il(t)}},Rl=()=>{Pl&&Pl.scope.off(),Il(null)};function Vl(e){return 4&e.vnode.shapeFlag}let Fl=!1;function Bl(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=Ot(t)),Ul(e)}function Ul(e,t,n){const l=e.type;e.render||(e.render=l.render||s);{const t=ql(e);ke();try{fs(e)}finally{xe(),t()}}}const Hl={get:(e,t)=>(Ee(e,0,""),e[t])};function Jl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ot(kt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in is?is[n](e):void 0,has:(e,t)=>t in e||t in is})):e.proxy}function Wl(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}const Kl=(e,t)=>Dt(e,0,Fl);const zl="3.5.34";
17
+ /**
18
+ * @vue/runtime-dom v3.5.34
19
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
20
+ * @license MIT
21
+ **/let Zl;const Gl="undefined"!=typeof window&&window.trustedTypes;if(Gl)try{Zl=Gl.createPolicy("vue",{createHTML:e=>e})}catch(Jm){}const Xl=Zl?e=>Zl.createHTML(e):e=>e,Yl="undefined"!=typeof document?document:null,Ql=Yl&&Yl.createElement("template"),ea={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 l="svg"===t?Yl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Yl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Yl.createElement(e,{is:n}):Yl.createElement(e);return"select"===e&&s&&null!=s.multiple&&l.setAttribute("multiple",s.multiple),l},createText:e=>Yl.createTextNode(e),createComment:e=>Yl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,l,a){const r=n?n.previousSibling:t.lastChild;if(l&&(l===a||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==a&&(l=l.nextSibling););else{Ql.innerHTML=Xl("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const l=Ql.content;if("svg"===s||"mathml"===s){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ta="transition",na="animation",sa=Symbol("_vtc"),la={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},aa=o({},xn,la),ra=(e=>(e.displayName="Transition",e.props=aa,e))((e,{slots:t})=>function(e,t,n){try{ml(-1);const s=arguments.length;return 2===s?y(t)&&!d(t)?yl(t)?_l(e,null,[t]):_l(e,t):_l(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):3===s&&yl(n)&&(n=[n]),_l(e,t,n))}finally{ml(1)}}(Sn,function(e){const t={};for(const o in e)o in la||(t[o]=e[o]);if(!1===e.css)return t;const{name:n="v",type:s,duration:l,enterFromClass:a=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=r,appearToClass:d=i,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(y(e))return[ca(e.enter),ca(e.leave)];{const t=ca(e);return[t,t]}}(l),v=h&&h[0],g=h&&h[1],{onBeforeEnter:b,onEnter:k,onEnterCancelled:x,onLeave:w,onLeaveCancelled:_,onBeforeAppear:S=b,onAppear:C=k,onAppearCancelled:$=x}=t,M=(e,t,n,s)=>{e._enterCancelled=s,da(e,t?d:i),da(e,t?u:r),n&&n()},O=(e,t)=>{e._isLeaving=!1,da(e,p),da(e,m),da(e,f),t&&t()},j=e=>(t,n)=>{const l=e?C:k,r=()=>M(t,e,n);oa(l,[t,r]),pa(()=>{da(t,e?c:a),ua(t,e?d:i),ia(l)||ma(t,s,v,r)})};return o(t,{onBeforeEnter(e){oa(b,[e]),ua(e,a),ua(e,r)},onBeforeAppear(e){oa(S,[e]),ua(e,c),ua(e,u)},onEnter:j(!1),onAppear:j(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>O(e,t);ua(e,p),e._enterCancelled?(ua(e,f),ga(e)):(ga(e),ua(e,f)),pa(()=>{e._isLeaving&&(da(e,p),ua(e,m),ia(w)||ma(e,s,g,n))}),oa(w,[e,n])},onEnterCancelled(e){M(e,!1,void 0,!0),oa(x,[e])},onAppearCancelled(e){M(e,!0,void 0,!0),oa($,[e])},onLeaveCancelled(e){O(e),oa(_,[e])}})}(e),t)),oa=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},ia=e=>!!e&&(d(e)?e.some(e=>e.length>1):e.length>1);function ca(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function ua(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[sa]||(e[sa]=new Set)).add(t)}function da(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[sa];n&&(n.delete(t),n.size||(e[sa]=void 0))}function pa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fa=0;function ma(e,t,n,s){const l=e._endId=++fa,a=()=>{l===e._endId&&s()};if(null!=n)return setTimeout(a,n);const{type:r,timeout:o,propCount:i}=function(e,t){const n=window.getComputedStyle(e),s=e=>(n[e]||"").split(", "),l=s(`${ta}Delay`),a=s(`${ta}Duration`),r=ha(l,a),o=s(`${na}Delay`),i=s(`${na}Duration`),c=ha(o,i);let u=null,d=0,p=0;t===ta?r>0&&(u=ta,d=r,p=a.length):t===na?c>0&&(u=na,d=c,p=i.length):(d=Math.max(r,c),u=d>0?r>c?ta:na:null,p=u?u===ta?a.length:i.length:0);const f=u===ta&&/\b(?:transform|all)(?:,|$)/.test(s(`${ta}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:f}}(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++u>=i&&d()};setTimeout(()=>{u<i&&d()},o+1),e.addEventListener(c,p)}function ha(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>va(t)+va(e[n])))}function va(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function ga(e){return(e?e.ownerDocument:document).body.offsetHeight}const ya=Symbol("_vod"),ba=Symbol("_vsh"),ka={name:"show",beforeMount(e,{value:t},{transition:n}){e[ya]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):xa(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),xa(e,!0),s.enter(e)):s.leave(e,()=>{xa(e,!1)}):xa(e,t))},beforeUnmount(e,{value:t}){xa(e,t)}};function xa(e,t){e.style.display=t?e[ya]:"none",e[ba]=!t}const wa=Symbol("");function _a(e){const t=Al();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Ca(e,n))},l=()=>{const s=e(t.proxy);t.ce?Ca(t.ce,s):Sa(t.subTree,s),n(s)};Kn(()=>{Yt(l)}),Wn(()=>{pn(l,s,{flush:"post"});const e=new MutationObserver(l);e.observe(t.subTree.el.parentNode,{childList:!0}),Gn(()=>e.disconnect())})}function Sa(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Sa(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Ca(e.el,t);else if(e.type===rl)e.children.forEach(e=>Sa(e,t));else if(e.type===cl){let{el:n,anchor:s}=e;for(;n&&(Ca(n,t),n!==s);)n=n.nextSibling}}function Ca(e,t){if(1===e.nodeType){const n=e.style;let s="";for(const e in t){const l=Y(t[e]);n.setProperty(`--${e}`,l),s+=`--${e}: ${l};`}n[wa]=s}}const $a=/(?:^|;)\s*display\s*:/;const Ma=/\s*!important$/;function Oa(e,t,n){if(d(n))n.forEach(n=>Oa(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=La[t];if(n)return n;let s=M(t);if("filter"!==s&&s in e)return La[t]=s;s=L(s);for(let l=0;l<ja.length;l++){const n=ja[l]+s;if(n in e)return La[t]=n}return t}(e,t);Ma.test(n)?e.setProperty(j(s),n.replace(Ma,""),"important"):e[s]=n}}const ja=["Webkit","Moz","ms"],La={};function Ea(e,t,n,s){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&v(s)&&n===s}const Ta="http://www.w3.org/1999/xlink";function Da(e,t,n,s,l,a=H(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Ta,t.slice(6,t.length)):e.setAttributeNS(Ta,t,n):null==n||a&&!J(n)?e.removeAttribute(t):e.setAttribute(t,a?"":g(n)?String(n):n)}function Pa(e,t,n,s,l){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Xl(n):n));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const s="OPTION"===a?e.getAttribute("value")||"":e.value,l=null==n?"checkbox"===e.type?"on":"":String(n);return s===l&&"_value"in e||(e.value=l),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=J(n):null==n&&"string"===s?(n="",r=!0):"number"===s&&(n=0,r=!0)}try{e[t]=n}catch(Jm){}r&&e.removeAttribute(l||t)}function Aa(e,t,n,s){e.addEventListener(t,n,s)}const Ia=Symbol("_vei");function Na(e,t,n,s,l=null){const a=e[Ia]||(e[Ia]={}),r=a[t];if(s&&r)r.value=s;else{const[n,o]=function(e){let t;if(qa.test(e)){let n;for(t={};n=e.match(qa);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):j(e.slice(2));return[n,t]}(t);if(s){const r=a[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Vt(function(e,t){if(d(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Fa(),n}(s,l);Aa(e,n,r,o)}else r&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,r,o),a[t]=void 0)}}const qa=/(?:Once|Passive|Capture)$/;let Ra=0;const Va=Promise.resolve(),Fa=()=>Ra||(Va.then(()=>Ra=0),Ra=Date.now());const Ba=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Ua=e=>{const t=e.props["onUpdate:modelValue"]||!1;return d(t)?e=>D(t,e):t};function Ha(e){e.target.composing=!0}function Ja(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wa=Symbol("_assign");function Ka(e,t,n){return t&&(e=e.trim()),n&&(e=A(e)),e}const za={created(e,{modifiers:{lazy:t,trim:n,number:s}},l){e[Wa]=Ua(l);const a=s||l.props&&"number"===l.props.type;Aa(e,t?"change":"input",t=>{t.target.composing||e[Wa](Ka(e.value,n,a))}),(n||a)&&Aa(e,"change",()=>{e.value=Ka(e.value,n,a)}),t||(Aa(e,"compositionstart",Ha),Aa(e,"compositionend",Ja),Aa(e,"change",Ja))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:l,number:a}},r){if(e[Wa]=Ua(r),e.composing)return;const o=null==t?"":t;if((!a&&"number"!==e.type||/^0\d/.test(e.value)?e.value:A(e.value))===o)return;const i=e.getRootNode();if((i instanceof Document||i instanceof ShadowRoot)&&i.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(l&&e.value.trim()===o)return}e.value=o}},Za={deep:!0,created(e,t,n){e[Wa]=Ua(n),Aa(e,"change",()=>{const t=e._modelValue,n=er(e),s=e.checked,l=e[Wa];if(d(t)){const e=K(t,n),a=-1!==e;if(s&&!a)l(t.concat(n));else if(!s&&a){const n=[...t];n.splice(e,1),l(n)}}else if(f(t)){const e=new Set(t);s?e.add(n):e.delete(n),l(e)}else l(tr(e,s))})},mounted:Ga,beforeUpdate(e,t,n){e[Wa]=Ua(n),Ga(e,t,n)}};function Ga(e,{value:t,oldValue:n},s){let l;if(e._modelValue=t,d(t))l=K(t,s.props.value)>-1;else if(f(t))l=t.has(s.props.value);else{if(t===n)return;l=W(t,tr(e,!0))}e.checked!==l&&(e.checked=l)}const Xa={created(e,{value:t},n){e.checked=W(t,n.props.value),e[Wa]=Ua(n),Aa(e,"change",()=>{e[Wa](er(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Wa]=Ua(s),t!==n&&(e.checked=W(t,s.props.value))}},Ya={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const l=f(t);Aa(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?A(er(e)):er(e));e[Wa](e.multiple?l?new Set(t):t:t[0]),e._assigning=!0,Zt(()=>{e._assigning=!1})}),e[Wa]=Ua(s)},mounted(e,{value:t}){Qa(e,t)},beforeUpdate(e,t,n){e[Wa]=Ua(n)},updated(e,{value:t}){e._assigning||Qa(e,t)}};function Qa(e,t){const n=e.multiple,s=d(t);if(!n||s||f(t)){for(let l=0,a=e.options.length;l<a;l++){const a=e.options[l],r=er(a);if(n)if(s){const e=typeof r;a.selected="string"===e||"number"===e?t.some(e=>String(e)===String(r)):K(t,r)>-1}else a.selected=t.has(r);else if(W(er(a),t))return void(e.selectedIndex!==l&&(e.selectedIndex=l))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function er(e){return"_value"in e?e._value:e.value}function tr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const nr={created(e,t,n){sr(e,t,n,null,"created")},mounted(e,t,n){sr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){sr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){sr(e,t,n,s,"updated")}};function sr(e,t,n,s,l){const a=function(e,t){switch(e){case"SELECT":return Ya;case"TEXTAREA":return za;default:switch(t){case"checkbox":return Za;case"radio":return Xa;default:return za}}}(e.tagName,n.props&&n.props.type)[l];a&&a(e,t,n,s)}const lr=["ctrl","shift","alt","meta"],ar={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>lr.some(n=>e[`${n}Key`]&&!t.includes(n))},rr=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(n,...s)=>{for(let e=0;e<t.length;e++){const s=ar[t[e]];if(s&&s(n,t))return}return e(n,...s)})},or={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ir=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=n=>{if(!("key"in n))return;const s=j(n.key);return t.some(e=>e===s||or[e]===s)?e(n):void 0})},cr=o({patchProp:(e,t,n,s,l,o)=>{const i="svg"===l;"class"===t?function(e,t,n){const s=e[sa];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,i):"style"===t?function(e,t,n){const s=e.style,l=v(n);let a=!1;if(n&&!l){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Oa(s,t,"")}else for(const e in t)null==n[e]&&Oa(s,e,"");for(const l in n){"display"===l&&(a=!0);const r=n[l];null!=r?Ea(e,l,!v(t)&&t?t[l]:void 0,r)||Oa(s,l,r):Oa(s,l,"")}}else if(l){if(t!==n){const e=s[wa];e&&(n+=";"+e),s.cssText=n,a=$a.test(n)}}else t&&e.removeAttribute("style");ya in e&&(e[ya]=a?s.display:"",e[ba]&&(s.display="none"))}(e,n,s):a(t)?r(t)||Na(e,t,0,s,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ba(t)&&h(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Ba(t)&&v(n))return!1;return t in e}(e,t,s,i))?(Pa(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Da(e,t,s,i,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=M(t);return Array.isArray(n)?n.some(e=>M(e)===s):Object.keys(n).some(e=>M(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(s)))?Pa(e,M(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Da(e,t,s,i))}},ea);let ur;
22
+ /*!
23
+ * pinia v2.3.1
24
+ * (c) 2025 Eduardo San Martin Morote
25
+ * @license MIT
26
+ */
27
+ let dr;const pr=e=>dr=e,fr=Symbol();function mr(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var hr,vr;(vr=hr||(hr={})).direct="direct",vr.patchObject="patch object",vr.patchFunction="patch function";const gr=()=>{};function yr(e,t,n,s=gr){e.push(t);const l=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),s())};var a;return!n&&se()&&(a=l,Q&&Q.cleanups.push(a)),l}function br(e,...t){e.slice().forEach(e=>{e(...t)})}const kr=e=>e(),xr=Symbol(),wr=Symbol();function _r(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],l=e[n];mr(l)&&mr(s)&&e.hasOwnProperty(n)&&!_t(s)&&!ht(s)?e[n]=_r(l,s):e[n]=s}return e}const Sr=Symbol();function Cr(e){return!mr(e)||!e.hasOwnProperty(Sr)}const{assign:$r}=Object;function Mr(e){return!(!_t(e)||!e.effect)}function Or(e,t,n={},s,l,a){let r;const o=$r({actions:{}},n),i={deep:!0};let c,u,d,p=[],f=[];const m=s.state.value[e];let h;function v(t){let n;c=u=!1,"function"==typeof t?(t(s.state.value[e]),n={type:hr.patchFunction,storeId:e,events:d}):(_r(s.state.value[e],t),n={type:hr.patchObject,payload:t,storeId:e,events:d});const l=h=Symbol();Zt().then(()=>{h===l&&(c=!0)}),u=!0,br(p,n,s.state.value[e])}a||m||(s.state.value[e]={});const g=a?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{$r(e,t)})}:gr;const y=(t,n="")=>{if(xr in t)return t[wr]=n,t;const l=function(){pr(s);const n=Array.from(arguments),a=[],r=[];let o;br(f,{args:n,name:l[wr],store:b,after:function(e){a.push(e)},onError:function(e){r.push(e)}});try{o=t.apply(this&&this.$id===e?this:b,n)}catch(i){throw br(r,i),i}return o instanceof Promise?o.then(e=>(br(a,e),e)).catch(e=>(br(r,e),Promise.reject(e))):(br(a,o),o)};return l[xr]=!0,l[wr]=n,l},b=dt({_p:s,$id:e,$onAction:yr.bind(null,f),$patch:v,$reset:g,$subscribe(t,n={}){const l=yr(p,t,n.detached,()=>a()),a=r.run(()=>pn(()=>s.state.value[e],s=>{("sync"===n.flush?u:c)&&t({storeId:e,type:hr.direct,events:d},s)},$r({},i,n)));return l},$dispose:function(){r.stop(),p=[],f=[],s._s.delete(e)}});s._s.set(e,b);const k=(s._a&&s._a.runWithContext||kr)(()=>s._e.run(()=>(r=ne()).run(()=>t({action:y}))));for(const x in k){const t=k[x];if(_t(t)&&!Mr(t)||ht(t))a||(m&&Cr(t)&&(_t(t)?t.value=m[x]:_r(t,m[x])),s.state.value[e][x]=t);else if("function"==typeof t){const e=y(t,x);k[x]=e,o.actions[x]=t}}return $r(b,k),$r(bt(b),k),Object.defineProperty(b,"$state",{get:()=>s.state.value[e],set:e=>{v(t=>{$r(t,e)})}}),s._p.forEach(e=>{$r(b,r.run(()=>e({store:b,app:s._a,pinia:s,options:o})))}),m&&a&&n.hydrate&&n.hydrate(b.$state,m),c=!0,u=!0,b}
28
+ /*! #__NO_SIDE_EFFECTS__ */function jr(e,t,n){let s,l;const a="function"==typeof t;function r(e,n){const r=!(!Al()&&!Ms);(e=e||(r?un(fr,null):null))&&pr(e),(e=dr)._s.has(s)||(a?Or(s,t,l,e):function(e,t,n){const{state:s,actions:l,getters:a}=t,r=n.state.value[e];let o;o=Or(e,function(){r||(n.state.value[e]=s?s():{});const t=jt(n.state.value[e]);return $r(t,l,Object.keys(a||{}).reduce((t,s)=>(t[s]=kt(Kl(()=>{pr(n);const t=n._s.get(e);return a[s].call(t,t)})),t),{}))},t,n,0,!0)}(s,l,e));return e._s.get(s)}return"string"==typeof e?(s=e,l=a?n:t):(l=e,s=e.id),r.$id=s,r}const Lr=jr("schema",()=>{const e=St(null),t=St(null),n=St(null),s=Kl(()=>{var t;return null==(t=e.value)?void 0:t.metadata}),l=Kl(()=>{var t;return(null==(t=e.value)?void 0:t.schemas)??[]}),a=Kl(()=>{var t;return(null==(t=e.value)?void 0:t.searchIndex)??[]}),r=Kl(()=>l.value.find(e=>e.name===t.value)),o=Kl(()=>{var e;return(null==(e=n.value)?void 0:e.startsWith("def:"))?n.value.slice(4):null}),i=Kl(()=>{var e;return(null==(e=n.value)?void 0:e.startsWith("prop:"))?n.value.slice(5):null}),c=Kl(()=>{const e=r.value;if(!e)return null;if(!n.value)return{kind:"schema",schema:e};if(n.value.startsWith("def:")){const t=n.value.slice(4),s=e.definitions.find(e=>e.name===t);if(s)return{kind:"definition",schema:e,definition:s}}if(n.value.startsWith("prop:")){const t=n.value.slice(5),s=e.properties.find(e=>e.name===t);if(s)return{kind:"property",schema:e,property:s}}return{kind:"schema",schema:e}}),u=Kl(()=>({schemas:l.value.length,properties:l.value.reduce((e,t)=>e+t.properties.length,0),definitions:l.value.reduce((e,t)=>e+t.definitions.length,0)}));function d(){const e=t.value;if(!e)return void history.replaceState(null,"",window.location.pathname);const s=n.value;if(!s)return void history.replaceState(null,"",`#${encodeURIComponent(e)}`);let l="";s.startsWith("def:")?l=`def-${s.slice(4)}`:s.startsWith("prop:")&&(l=`prop-${s.slice(5)}`),history.replaceState(null,"",`#${encodeURIComponent(e)}/${encodeURIComponent(l)}`)}return{data:e,selectedSchemaName:t,selectedItemKey:n,metadata:s,schemas:l,searchIndex:a,selectedSchema:r,selectedDefinitionName:o,selectedPropertyName:i,selectedItem:c,schemaCounts:u,loadFromWindow:function(){if("undefined"!=typeof window&&window.SCHEMA_DATA){const t=window.SCHEMA_DATA;for(const e of t.schemas){e.properties=e.properties??[],e.definitions=e.definitions??[],e.required=e.required??[];for(const t of e.properties)void 0!==t.$ref&&(t.ref=t.$ref,delete t.$ref);for(const t of e.definitions){t.properties=t.properties??[],t.required=t.required??[];for(const e of t.properties)void 0!==e.$ref&&(e.ref=e.$ref,delete e.$ref)}}t.searchIndex=t.searchIndex??[],e.value=t}},selectSchema:function(e){t.value=e,n.value=null,d()},selectDefinition:function(e){n.value=`def:${e}`,d()},selectProperty:function(e){n.value=`prop:${e}`,d()},clearSelection:function(){n.value=null},schemaByName:function(e){return l.value.find(t=>t.name===e)}}}),Er=jr("ui",()=>{const e=St("system"),t=St("light"),n=St(!1),s=St(!1),l=St("overview"),a=St(!1),r=St(new Set),o=Kl(()=>"dark"===t.value);function i(){"system"===e.value?t.value=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t.value=e.value,"dark"===t.value?document.documentElement.setAttribute("data-theme","dark"):document.documentElement.removeAttribute("data-theme")}return"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{"system"===e.value&&i()}),{theme:e,resolvedTheme:t,sidebarCollapsed:n,detailPanelOpen:s,activePanelTab:l,searchOpen:a,expandedSchemaNames:r,isDark:o,initTheme:function(){const t=localStorage.getItem("lutaml-jsonschema-theme");t&&(e.value=t),i()},toggleTheme:function(){const n="light"===t.value?"dark":"light";e.value=n,localStorage.setItem("lutaml-jsonschema-theme",n),i()},toggleSidebar:function(){n.value=!n.value},openDetailPanel:function(){s.value=!0},closeDetailPanel:function(){s.value=!1},setPanelTab:function(e){l.value=e},openSearch:function(){a.value=!0},closeSearch:function(){a.value=!1},toggleSchemaExpanded:function(e){r.value.has(e)?r.value.delete(e):r.value.add(e)},isSchemaExpanded:function(e){return r.value.has(e)}}}),Tr={class:"header"},Dr={class:"header-left"},Pr={key:0,class:"header-breadcrumb"},Ar={class:"breadcrumb-segment breadcrumb-current"},Ir={class:"header-center"},Nr={class:"header-right"},qr=["title"],Rr={key:0,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},Vr={key:1,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},Fr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,l]of t)n[s]=l;return n},Br=Fr(En({__name:"AppHeader",setup(e){const t=Lr(),n=Er(),s=Kl(()=>t.selectedDefinitionName&&t.selectedSchema?t.selectedSchema.definitions.find(e=>e.name===t.selectedDefinitionName):null);function l(){t.selectSchema(null),n.closeDetailPanel()}function a(){t.clearSelection(),n.closeDetailPanel()}return(e,r)=>(pl(),vl("header",Tr,[wl("div",Dr,[wl("button",{class:"btn btn-ghost sidebar-toggle",onClick:r[0]||(r[0]=(...e)=>$t(n).toggleSidebar&&$t(n).toggleSidebar(...e)),title:"Toggle sidebar"},[...r[3]||(r[3]=[wl("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[wl("path",{d:"M3 5h14M3 10h14M3 15h14",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])]),wl("button",{class:"btn btn-ghost home-btn",onClick:l,title:"Overview"},[...r[4]||(r[4]=[wl("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[wl("path",{d:"M3 8.5L9 3.5L15 8.5",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"}),wl("path",{d:"M4 8.5V14.5C4 14.5 4 15.5 5 15.5H13C13 15.5 14 15.5 14 14.5V8.5",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),$t(t).metadata?(pl(),vl("span",Pr,[wl("button",{class:"breadcrumb-segment",onClick:l},Z($t(t).metadata.title||"JSON Schema Docs"),1),$t(t).selectedSchema?(pl(),vl(rl,{key:0},[r[5]||(r[5]=wl("span",{class:"breadcrumb-sep"},"/",-1)),wl("button",{class:"breadcrumb-segment",onClick:a},Z($t(t).selectedSchema.title||$t(t).selectedSchema.name),1)],64)):Ml("",!0),$t(t).selectedDefinitionName&&s.value?(pl(),vl(rl,{key:1},[r[6]||(r[6]=wl("span",{class:"breadcrumb-sep"},"/",-1)),wl("span",Ar,Z(s.value.title||s.value.name),1)],64)):Ml("",!0)])):Ml("",!0)]),wl("div",Ir,[wl("button",{class:"search-trigger",onClick:r[1]||(r[1]=(...e)=>$t(n).openSearch&&$t(n).openSearch(...e))},[...r[7]||(r[7]=[$l('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" data-v-3f47c146><circle cx="7" cy="7" r="5" stroke="currentColor" stroke-width="1.5" data-v-3f47c146></circle><path d="M11 11l3 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" data-v-3f47c146></path></svg><span class="search-placeholder" data-v-3f47c146>Search schemas, properties, definitions...</span><kbd class="search-kbd" data-v-3f47c146>/</kbd>',3)])])]),wl("div",Nr,[wl("button",{class:"btn btn-ghost theme-btn",onClick:r[2]||(r[2]=(...e)=>$t(n).toggleTheme&&$t(n).toggleTheme(...e)),title:$t(n).isDark?"Light mode":"Dark mode"},[$t(n).isDark?(pl(),vl("svg",Rr,[...r[8]||(r[8]=[wl("path",{d:"M9 3V2M9 16v-1M3 9H2M16 9h-1M4.22 4.22l-.7-.7M14.48 14.48l-.7-.7M4.22 13.78l-.7.7M14.48 3.52l-.7.7",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round"},null,-1),wl("circle",{cx:"9",cy:"9",r:"3.5",stroke:"currentColor","stroke-width":"1.3"},null,-1)])])):(pl(),vl("svg",Vr,[...r[9]||(r[9]=[wl("circle",{cx:"9",cy:"9",r:"4",stroke:"currentColor","stroke-width":"1.4"},null,-1),wl("path",{d:"M9 2v1.5M9 14.5V16M2 9h1.5M14.5 9H16M4.22 4.22l1.06 1.06M12.72 12.72l1.06 1.06M4.22 13.78l1.06-1.06M12.72 5.28l1.06-1.06",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round"},null,-1)])]))],8,qr)])]))}}),[["__scopeId","data-v-3f47c146"]]),Ur=["aria-label"],Hr={class:"sidebar-content"},Jr={class:"sidebar-branding"},Wr=["src"],Kr=["src"],zr={class:"branding-text"},Zr={class:"branding-title"},Gr={class:"branding-subtitle"},Xr={class:"sidebar-section overview-section"},Yr={class:"sidebar-section flex-1 overflow-auto"},Qr={class:"search-box"},eo={key:0,class:"search-kbd","aria-hidden":"true"},to={key:0,class:"search-results"},no=["onClick"],so={class:"search-result-row"},lo={class:"search-result-name"},ao={class:"search-result-schema text-muted"},ro={key:0,class:"search-result-desc text-muted"},oo={key:1,class:"search-no-results text-muted"},io=["aria-expanded","onClick","onKeydown"],co={class:"schema-name"},uo=["title"],po={class:"schema-badge-count"},fo={class:"schema-badge-count"},mo={key:0,class:"schema-children"},ho=["onClick"],vo={class:"tree-item-name"},go={key:0,class:"tree-more text-muted"},yo=["onClick"],bo={class:"tree-item-name"},ko={class:"tree-item-count"},xo={class:"sidebar-section stats-section"},wo={class:"stats-grid"},_o={class:"stat-item"},So={class:"stat-value"},Co={class:"stat-item"},$o={class:"stat-value"},Mo={class:"stat-item"},Oo={class:"stat-value"},jo={class:"sidebar-footer"},Lo={href:"https://www.lutaml.org",target:"_blank",rel:"noopener",class:"footer-brand",title:"LutaML"},Eo=["src"],To={class:"footer-text-group"},Do={key:0,class:"footer-text"},Po=Fr(En({__name:"AppSidebar",setup(e){const t=Lr(),n=Er(),s=St(null),l=St(""),a=St(""),r=St(-1);let o=null;pn(l,e=>{if(o&&clearTimeout(o),!e.trim())return a.value="",void(r.value=-1);o=setTimeout(()=>{a.value=e},300)});const i=Kl(()=>{const e=a.value.trim().toLowerCase();if(!e)return[];return t.searchIndex.map(t=>{let n=0;const s=t.name.toLowerCase(),l=(t.title||"").toLowerCase(),a=(t.description||"").toLowerCase(),r=t.schemaName.toLowerCase();return s===e?n+=100:s.startsWith(e)?n+=50:s.includes(e)&&(n+=30),l===e?n+=80:l.startsWith(e)?n+=40:l.includes(e)&&(n+=20),a.includes(e)&&(n+=10),r.includes(e)&&(n+=5),{entry:t,score:n}}).filter(e=>e.score>0).sort((e,t)=>t.score-e.score).slice(0,15).map(e=>e.entry)});function c(e){if("ArrowDown"===e.key)r.value=Math.min(r.value+1,i.value.length-1),e.preventDefault();else if("ArrowUp"===e.key)r.value=Math.max(0,r.value-1),e.preventDefault();else if("Enter"===e.key){const e=i.value[r.value];e&&u(e),r.value=-1}else"Escape"===e.key&&(l.value="",r.value=-1)}function u(e){t.selectSchema(e.schemaName),n.isSchemaExpanded(e.schemaName)||n.toggleSchemaExpanded(e.schemaName),"definition"===e.type?t.selectDefinition(e.name):"property"===e.type&&t.selectProperty(e.name),l.value="",a.value="",n.closeDetailPanel()}function d(e){switch(e){case"schema":return"S";case"definition":return"D";case"property":return"P";default:return"?"}}function p(e){switch(e){case"schema":return"badge-schema-sm";case"definition":return"badge-definition-sm";case"property":return"badge-property-sm";default:return""}}function f(){t.selectSchema(null),n.closeDetailPanel()}function m(e){t.selectSchema(e),n.toggleSchemaExpanded(e)}function h(e){switch((e||"any").split(",")[0].trim()){case"string":return"ttype-string";case"number":return"ttype-number";case"integer":return"ttype-integer";case"boolean":return"ttype-boolean";case"object":return"ttype-object";case"array":return"ttype-array";default:return""}}return pn(i,()=>{r.value=-1}),pn(()=>t.selectedSchemaName,()=>{Zt(()=>{const e=s.value;if(!e)return;const t=e.querySelector(".schema-node-header.active");t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}),(e,o)=>{var v,g,y,b,k,x,w,_,S,C,$,M;return pl(),vl("aside",{class:U(["sidebar",{collapsed:$t(n).sidebarCollapsed}]),"aria-label":`${(null==(v=$t(t).metadata)?void 0:v.title)||"JSON Schema Docs"} navigation`},[wl("div",Hr,[wl("div",Jr,[(null==(b=null==(y=null==(g=$t(t).metadata)?void 0:g.appearance)?void 0:y.logos)?void 0:b.square)?(pl(),vl("img",{key:0,src:$t(n).isDark?(null==(k=$t(t).metadata.appearance.logos.square.dark)?void 0:k.url)||(null==(x=$t(t).metadata.appearance.logos.square.dark)?void 0:x.path):(null==(w=$t(t).metadata.appearance.logos.square.light)?void 0:w.url)||(null==(_=$t(t).metadata.appearance.logos.square.light)?void 0:_.path),alt:"Package logo",class:"branding-logo"},null,8,Wr)):(pl(),vl("img",{key:1,src:$t(n).isDark?"https://raw.githubusercontent.com/lutaml/branding/refs/heads/main/svg/lutaml-logo_logo-icon-dark.svg":"https://raw.githubusercontent.com/lutaml/branding/refs/heads/main/svg/lutaml-logo_logo-icon-light.svg",alt:"LutaML",class:"branding-logo"},null,8,Kr)),wl("div",zr,[wl("span",Zr,Z((null==(S=$t(t).metadata)?void 0:S.title)||"JSON Schema Docs"),1),wl("span",Gr,Z((null==($=null==(C=$t(t).metadata)?void 0:C.appearance)?void 0:$.subtitle)||"LutaML JSON Schema"),1)])]),wl("div",Xr,[wl("button",{class:U(["overview-btn",{active:!$t(t).selectedSchema}]),onClick:f},[...o[2]||(o[2]=[wl("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[wl("path",{d:"M2 7.5L8 2.5L14 7.5",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),wl("path",{d:"M3 7.5V13.5C3 13.5 3 14 4 14H12C12 14 13 14 13 13.5V7.5",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"})],-1),wl("span",null,"Overview",-1)])],2)]),wl("div",Yr,[o[10]||(o[10]=wl("div",{class:"section-header"},[wl("span",{class:"section-title"},"Schemas")],-1)),wl("div",Qr,[o[4]||(o[4]=wl("svg",{class:"search-icon",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[wl("circle",{cx:"5.5",cy:"5.5",r:"4.5",stroke:"currentColor","stroke-width":"1.3"}),wl("path",{d:"M9 9l4 4",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round"})],-1)),on(wl("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>l.value=e),type:"text",class:"search-input",placeholder:"Filter schemas...","aria-label":"Filter schemas and definitions",onKeydown:c},null,544),[[za,l.value]]),l.value?Ml("",!0):(pl(),vl("kbd",eo,"/")),l.value?(pl(),vl("button",{key:1,class:"search-clear","aria-label":"Clear search",onClick:o[1]||(o[1]=e=>l.value="")},[...o[3]||(o[3]=[wl("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[wl("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round"})],-1)])])):Ml("",!0)]),a.value&&i.value.length?(pl(),vl("div",to,[(pl(!0),vl(rl,null,ls(i.value,(e,t)=>{return pl(),vl("button",{key:`${e.type}:${e.name}@${e.schemaName}`,class:U(["search-result-item",{active:t===r.value}]),onClick:t=>u(e)},[wl("div",so,[wl("span",{class:U(["badge",p(e.type)])},Z(d(e.type)),3),wl("span",lo,Z(e.title||e.name),1),wl("span",ao,Z(e.schemaName),1)]),e.description?(pl(),vl("div",ro,Z((n=e.description,n.length<=80?n:n.slice(0,77)+"...")),1)):Ml("",!0)],10,no);var n}),128))])):a.value&&!i.value.length&&l.value?(pl(),vl("div",oo," No results found ")):(pl(),vl("div",{key:2,class:"schema-tree",ref_key:"sidebarTreeRef",ref:s},[(pl(!0),vl(rl,null,ls($t(t).schemas,e=>(pl(),vl("div",{key:e.name,class:"schema-node"},[wl("div",{class:U(["schema-node-header",{active:e.name===$t(t).selectedSchemaName}]),role:"treeitem","aria-expanded":$t(n).isSchemaExpanded(e.name),tabindex:"0",onClick:t=>m(e.name),onKeydown:[ir(t=>m(e.name),["enter"]),ir(rr(t=>m(e.name),["prevent"]),["space"])]},[(pl(),vl("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",class:U({expanded:$t(n).isSchemaExpanded(e.name)})},[...o[5]||(o[5]=[wl("path",{d:"M4 3l3 3-3 3",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2)),wl("span",co,Z(e.title||e.name),1),e.$id?(pl(),vl("span",{key:0,class:"schema-id-hint",title:e.$id},Z(e.$id),9,uo)):Ml("",!0),wl("span",po,Z(e.properties.length)+"P",1),wl("span",fo,Z(e.definitions.length)+"D",1)],42,io),$t(n).isSchemaExpanded(e.name)?(pl(),vl("div",mo,[(pl(!0),vl(rl,null,ls(e.properties.slice(0,10),s=>(pl(),vl("div",{key:`p-${s.name}`,class:U(["tree-item property-item",{active:e.name===$t(t).selectedSchemaName&&s.name===$t(t).selectedPropertyName}]),onClick:rr(l=>{return a=e.name,r=s.name,t.selectSchema(a),t.selectProperty(r),void n.openDetailPanel();var a,r},["stop"])},[o[6]||(o[6]=wl("span",{class:"badge badge-property-sm"},"P",-1)),o[7]||(o[7]=wl("span",{class:"tree-bullet","aria-hidden":"true"},null,-1)),wl("span",vo,Z(s.name),1),wl("span",{class:U(["tree-item-type",h(s.type)])},Z(s.type||"any"),3)],10,ho))),128)),e.properties.length>10?(pl(),vl("div",go," +"+Z(e.properties.length-10)+" more ",1)):Ml("",!0),(pl(!0),vl(rl,null,ls(e.definitions,s=>(pl(),vl("div",{key:`d-${s.name}`,class:U(["tree-item definition-item",{active:e.name===$t(t).selectedSchemaName&&s.name===$t(t).selectedDefinitionName}]),onClick:rr(l=>{return a=e.name,r=s.name,t.selectSchema(a),t.selectDefinition(r),void n.closeDetailPanel();var a,r},["stop"])},[o[8]||(o[8]=wl("span",{class:"badge badge-definition-sm"},"D",-1)),o[9]||(o[9]=wl("span",{class:"tree-bullet","aria-hidden":"true"},null,-1)),wl("span",bo,Z(s.title||s.name),1),wl("span",ko,Z(s.properties.length),1)],10,yo))),128))])):Ml("",!0)]))),128))],512))]),wl("div",xo,[wl("div",wo,[wl("div",_o,[wl("span",So,Z($t(t).schemaCounts.schemas),1),o[11]||(o[11]=wl("span",{class:"stat-label"},"Schemas",-1))]),wl("div",Co,[wl("span",$o,Z($t(t).schemaCounts.properties),1),o[12]||(o[12]=wl("span",{class:"stat-label"},"Properties",-1))]),wl("div",Mo,[wl("span",Oo,Z($t(t).schemaCounts.definitions),1),o[13]||(o[13]=wl("span",{class:"stat-label"},"Definitions",-1))])])]),wl("div",jo,[wl("a",Lo,[wl("img",{src:$t(n).isDark?"https://raw.githubusercontent.com/lutaml/branding/refs/heads/main/svg/lutaml-logo_logo-full-dark.svg":"https://raw.githubusercontent.com/lutaml/branding/refs/heads/main/svg/lutaml-logo_logo-full-light.svg",alt:"LutaML",class:"lutaml-logo"},null,8,Eo)]),wl("div",To,[o[14]||(o[14]=wl("span",{class:"footer-text"},[Cl(" Generated with "),wl("a",{href:"https://github.com/lutaml/lutaml-jsonschema",target:"_blank",rel:"noopener"},"LutaML JSON Schema")],-1)),(null==(M=$t(t).metadata)?void 0:M.version)?(pl(),vl("span",Do,Z($t(t).metadata.version),1)):Ml("",!0)])])])],10,Ur)}}}),[["__scopeId","data-v-c62cbb32"]]);function Ao(e){if(!e)return"";let t=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(e);t=t.replace(/```[\w]*\n([\s\S]*?)```/g,(e,t)=>`\0FENCED${t.trim()}\0ENDFENCED`);const n=t.split("\n"),s=[];let l=!1,a=!1;for(let r=0;r<n.length;r++){const e=n[r];if(e.includes("\0FENCED")||e.includes("\0ENDFENCED")){l&&(s.push("</ul>"),l=!1),a&&(s.push("</ol>"),a=!1),s.push(e);continue}const t=e.match(/^(#{1,4})\s+(.+)$/);if(t){l&&(s.push("</ul>"),l=!1),a&&(s.push("</ol>"),a=!1);const e=t[1].length;s.push(`<h${e+2} class="md-heading">${t[2]}</h${e+2}>`);continue}const o=e.match(/^(\s*)([-*+])\s+(.+)$/);if(o){a&&(s.push("</ol>"),a=!1),l||(s.push('<ul class="md-list">'),l=!0),s.push(`<li>${Io(o[3])}</li>`);continue}const i=e.match(/^(\s*)\d+\.\s+(.+)$/);i?(l&&(s.push("</ul>"),l=!1),a||(s.push('<ol class="md-list">'),a=!0),s.push(`<li>${Io(i[2])}</li>`)):(l&&(s.push("</ul>"),l=!1),a&&(s.push("</ol>"),a=!1),s.push(e))}return l&&s.push("</ul>"),a&&s.push("</ol>"),t=s.join("\n"),t=t.replace(/\x00FENCED([\s\S]*?)\x00ENDFENCED/g,(e,t)=>`<pre class="md-pre"><code>${t}</code></pre>`),t=t.replace(/\n/g,"<br>"),t=Io(t),t}function Io(e){return e=(e=(e=(e=(e=(e=e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener" class="md-link">$1</a>')).replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>")).replace(/__(.+?)__/g,"<strong>$1</strong>")).replace(new RegExp("(?<!\\*)\\*(?!\\*)(.+?)(?<!\\*)\\*(?!\\*)","g"),"<em>$1</em>")).replace(new RegExp("(?<!_)_(?!_)(.+?)(?<!_)_(?!_)","g"),"<em>$1</em>")).replace(/`([^`]+)`/g,'<code class="md-code">$1</code>')}function No(e,t=2){return Fo(e,t,1)}function qo(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ro(e){return`<span class="jv-punct">${e}</span>`}function Vo(e,t){return`<span class="${t}">${qo(e)}</span>`}function Fo(e,t,n){return null==e?Vo("null","jv-null"):Array.isArray(e)?function(e,t,n){if(!e.length)return Ro("[ ]");const s=n>t?"jv-collapsed":"";let l=`<button class="jv-toggle" aria-label="${n>t?"expand":"collapse"}"></button>`;return l+=Ro("["),l+=`<ul class="jv-children ${s}">`,e.forEach((a,r)=>{l+=`<li><div class="jv-row ${s}">`,l+=Fo(a,t,n),r<e.length-1&&(l+=Ro(",")),l+="</div></li>"}),l+="</ul>",l+=`<span class="jv-ellipsis">${e.length} items</span>`,l+=Ro("]"),l}(e,t,n+1):"object"==typeof e?function(e,t,n){const s=Object.keys(e);if(!s.length)return Ro("{ }");const l=n>t?"jv-collapsed":"";let a=`<button class="jv-toggle" aria-label="${n>t?"expand":"collapse"}"></button>`;a+=Ro("{"),a+=`<ul class="jv-children ${l}">`,s.forEach((r,o)=>{a+=`<li><div class="jv-row ${l}">`,a+=`<span class="jv-key">"${qo(r)}"</span>: `,a+=Fo(e[r],t,n),o<s.length-1&&(a+=Ro(",")),a+="</div></li>"}),a+="</ul>";const r=s.length<=5?s:[...s.slice(0,5),"+"+(s.length-5)];return a+=`<span class="jv-ellipsis">${r.map(e=>qo(e)).join(", ")}</span>`,a+=Ro("}"),a}(e,t,n+1):"number"==typeof e?Vo(String(e),"jv-number"):"boolean"==typeof e?Vo(String(e),"jv-boolean"):"string"==typeof e?/^(https?):\/\/[^\s]+$/.test(e)?Vo('"',"jv-string")+`<a href="${encodeURI(e)}" target="_blank" rel="noopener" class="jv-link">${qo(e)}</a>`+Vo('"',"jv-string"):Vo(JSON.stringify(e),"jv-string"):Vo(String(e),"jv-string")}function Bo(e){return(e||"").split(",")[0].trim()||"any"}function Uo(e){return(e||"").split(",").map(e=>e.trim()).includes("null")}function Ho(e){const t=e||"";return t.startsWith("anyOf:")||t.startsWith("oneOf:")||t.startsWith("not ")}function Jo(e,t){const n=Bo(e.type),s=Uo(e.type)?" | null":"";if(Ho(n))return n+s;if("array"===n){const t=!e.itemsRef||e.itemsType&&"object"!==e.itemsType?e.itemsType:function(e){const t=e.split("/");return t[t.length-1]}(e.itemsRef);let n=t?`array of ${t}`:"array";return null!=e.minItems&&null!=e.maxItems?n+=` [ ${e.minItems} .. ${e.maxItems} ]`:null!=e.minItems?n+=` >= ${e.minItems}`:null!=e.maxItems&&(n+=` <= ${e.maxItems}`),n+s}return t&&("object"===n||"any"===n)&&e.ref?t+s:e.format?`${n} (${e.format})${s}`:n+s}function Wo(e){switch(e){case"email":return"email";case"uri":case"uri-reference":return"url";case"date":return"date";case"time":return"time";case"date-time":return"datetime-local";default:return"text"}}function Ko(e){var t,n;if(null==(t=e.examples)?void 0:t.length)return e.examples[0];if(null!=e.default)return String(e.default);if(null==(n=e.enum)?void 0:n.length)return e.enum[0];if(null!=e.const)return String(e.const);switch(Bo(e.type)){case"integer":return"0";case"number":return"0.0";case"boolean":return"false";case"string":return function(e){switch(e){case"uri":case"uri-reference":return"https://example.com";case"date-time":return"2024-01-01T00:00:00Z";case"date":return"2024-01-01";case"time":return"00:00:00Z";case"email":return"user@example.com";case"uuid":return"00000000-0000-0000-0000-000000000000";default:return"string"}}(e.format);case"object":return"{}";default:return""}}function zo(e){switch(e){case"integer":case"number":return"number";case"boolean":return"checkbox";default:return"text"}}function Zo(e){switch(e){case"integer":return"0";case"number":return"0.0";case"boolean":return"false";default:return""}}function Go(e,t){switch(t){case"integer":return parseInt(e,10)||0;case"number":return parseFloat(e)||0;case"boolean":return"true"===e;default:return e}}function Xo(e){const t=Bo(e.type);return!Ho(t)&&("object"===t||!e.type&&!!e.ref)}function Yo(e){var t,n;return!!((null==(t=e.enum)?void 0:t.length)||e.pattern||null!=e.minimum||null!=e.maximum||null!=e.minLength||null!=e.maxLength||null!=e.default||(null==(n=e.examples)?void 0:n.length)||null!=e.minItems||null!=e.maxItems||e.uniqueItems||null!=e.multipleOf||null!=e.const||null!=e.exclusiveMinimum||null!=e.exclusiveMaximum||e.contentMediaType||e.contentEncoding||e.itemsRef)}function Qo(e,t){var n;const s=Bo(t.type);if(null==(n=t.enum)?void 0:n.length)return e;if("boolean"===s)return"true"===e;if("integer"===s){const t=parseInt(e,10);return isNaN(t)?0:t}if("number"===s){const t=parseFloat(e);return isNaN(t)?0:t}if("object"===s&&!t.ref)try{return JSON.parse(e)}catch{return{}}return e}function ei(e){const t=null!=e.minimum,n=null!=e.maximum,s=null!=e.exclusiveMinimum,l=null!=e.exclusiveMaximum;if(t&&n){const t=l?" )":" ]";return`${s?"( ":"[ "}${e.minimum} .. ${e.maximum}${t}`}if(t&&l){return`${s?"( ":"[ "}${e.minimum} .. ${e.exclusiveMaximum} )`}if(s&&n){const t=l?" )":" ]";return`( ${e.exclusiveMinimum} .. ${e.maximum}${t}`}return n?`${l?"< ":"<= "}${e.maximum}`:t?`${s?"> ":">= "}${e.minimum}`:s&&l?`( ${e.exclusiveMinimum} .. ${e.exclusiveMaximum} )`:l?`< ${e.exclusiveMaximum}`:s?`> ${e.exclusiveMinimum}`:void 0}function ti(e){return null!=e.minLength&&null!=e.maxLength?e.minLength===e.maxLength?`= ${e.minLength} characters`:`[ ${e.minLength} .. ${e.maxLength} ] characters`:null!=e.minLength?1===e.minLength?"non-empty":`>= ${e.minLength} characters`:null!=e.maxLength?`<= ${e.maxLength} characters`:void 0}function ni(e){return null!=e.minItems&&null!=e.maxItems?e.minItems===e.maxItems?`= ${e.minItems} items`:`[ ${e.minItems} .. ${e.maxItems} ] items`:null!=e.minItems?1===e.minItems?"non-empty":`>= ${e.minItems} items`:null!=e.maxItems?`<= ${e.maxItems} items`:void 0}function si(e){var t;const n=[],s=Bo(e.type);null!=e.const&&n.push({label:`const: ${e.const}`,class:"chip-const"});if("string"===s||!s||"any"===s){const t=ti(e);t&&n.push({label:t})}if("integer"===s||"number"===s){const t=ei(e);if(t&&n.push({label:t}),null!=e.multipleOf){const t=e.multipleOf.toString();/^0\.0*1$/.test(t)?n.push({label:`decimal places <= ${t.split(".")[1].length}`}):n.push({label:`multiple of ${t}`})}}if("array"===s){const t=ni(e);t&&n.push({label:t}),e.uniqueItems&&n.push({label:"unique",class:"chip-unique"})}return e.pattern&&n.push({label:e.pattern,class:"chip-pattern"}),null!=e.default&&n.push({label:`default: ${e.default}`,class:"chip-default"}),(null==(t=e.examples)?void 0:t.length)&&n.push({label:`e.g. ${e.examples.join(", ")}`,class:"chip-example"}),e.contentMediaType&&n.push({label:`content-type: ${e.contentMediaType}`}),e.contentEncoding&&n.push({label:`encoding: ${e.contentEncoding}`}),n}const li={class:"panel-header"},ai={class:"panel-title"},ri={key:0},oi={key:0,class:"panel-tabs"},ii=["onClick"],ci={class:"panel-content"},ui={class:"detail-section"},di={class:"detail-meta"},pi={key:0,class:"meta-row"},fi={class:"badge badge-type"},mi={key:1,class:"meta-row"},hi={class:"badge badge-format"},vi={key:2,class:"meta-row"},gi=["innerHTML"],yi={key:3,class:"meta-row"},bi={key:4,class:"meta-row"},ki={key:5,class:"meta-row"},xi={key:6,class:"meta-row"},wi={key:7,class:"meta-row"},_i={key:8,class:"meta-row"},Si={class:"badge badge-composition-detail"},Ci={key:9,class:"meta-row"},$i={class:"font-mono"},Mi={key:10,class:"meta-row"},Oi={class:"meta-tags"},ji={key:11,class:"meta-row"},Li={class:"text-secondary"},Ei={key:12,class:"meta-row"},Ti={class:"text-secondary"},Di={key:13,class:"meta-row"},Pi={class:"font-mono text-secondary",style:{"font-size":"var(--text-xs)","word-break":"break-all"}},Ai={key:14,class:"meta-row"},Ii={class:"font-mono text-secondary",style:{"font-size":"var(--text-xs)","word-break":"break-all"}},Ni={key:15,class:"meta-row"},qi={class:"meta-tags"},Ri={key:0,class:"badge badge-composition-detail"},Vi={key:1,class:"badge badge-composition-detail"},Fi={key:2,class:"badge badge-composition-detail"},Bi={key:16,class:"meta-row"},Ui={class:"text-secondary"},Hi={key:17,class:"meta-row"},Ji={key:18,class:"meta-row"},Wi={class:"meta-tags"},Ki={key:19,class:"meta-row"},zi={class:"meta-tags"},Zi={key:0,class:"badge badge-composition-detail"},Gi={key:1,class:"badge badge-composition-detail"},Xi={key:2,class:"badge badge-composition-detail"},Yi={key:20,class:"meta-row"},Qi={class:"meta-tags"},ec={key:21,class:"meta-row"},tc={key:22,class:"meta-row"},nc={class:"text-secondary"},sc={key:23,class:"meta-row"},lc={class:"text-secondary"},ac={key:24,class:"meta-row"},rc={key:25,class:"meta-row"},oc={class:"badge badge-format"},ic={key:26,class:"meta-row"},cc={class:"font-mono constraint-pattern"},uc={key:27,class:"meta-row"},dc={class:"font-mono"},pc={key:28,class:"meta-row"},fc={class:"text-secondary"},mc={key:29,class:"meta-row"},hc={class:"text-secondary"},vc={key:30,class:"meta-row"},gc={class:"text-secondary"},yc={key:0,class:"detail-section"},bc={class:"table constraint-table"},kc={key:0},xc={class:"constraint-value"},wc={key:1},_c={class:"constraint-value"},Sc={key:2},Cc={class:"constraint-value"},$c={key:3},Mc={class:"constraint-value font-mono constraint-pattern"},Oc={key:4},jc={class:"enum-values-list"},Lc={key:5},Ec={class:"constraint-value"},Tc={key:6},Dc={key:7},Pc={class:"constraint-value"},Ac={key:8},Ic={class:"constraint-value font-mono"},Nc={key:9},qc={class:"constraint-value"},Rc={key:10},Vc={class:"constraint-value"},Fc={key:11},Bc={key:1,class:"detail-section"},Uc={class:"table constraint-table"},Hc={key:0},Jc={class:"enum-values-list"},Wc={key:1},Kc={class:"constraint-value font-mono"},zc={key:2},Zc={class:"constraint-value font-mono constraint-pattern"},Gc={key:3},Xc={class:"constraint-value"},Yc={key:4},Qc={class:"constraint-value"},eu={key:5},tu={class:"constraint-value"},nu={key:6},su={class:"constraint-value"},lu={key:7},au={class:"constraint-value"},ru={key:1,class:"detail-section"},ou={key:0,class:"table"},iu=["onClick"],cu={class:"font-mono"},uu={key:0,class:"prop-title"},du={key:1,class:"badge badge-deprecated-sm"},pu=["onClick"],fu={key:0,class:"prop-format"},mu={key:1,class:"prop-format"},hu={key:2,class:"prop-format"},vu=["onClick","onKeydown"],gu={key:2,class:"prop-default"},yu={key:3,class:"prop-enum"},bu={key:0,class:"badge badge-required-sm"},ku={key:1,class:"text-muted"},xu=["innerHTML"],wu={key:1,class:"text-muted"},_u={key:2,class:"prop-examples"},Su={key:0,class:"text-muted"},Cu={key:1,class:"text-muted"},$u={key:2,class:"detail-section"},Mu={key:0,class:"example-group"},Ou=["innerHTML"],ju={key:1,class:"example-pre"},Lu={key:1,class:"example-group"},Eu=["innerHTML"],Tu={key:2,class:"text-muted"},Du={key:1,class:"panel-empty"},Pu=Fr(En({__name:"DetailPanel",setup(e){const t=Lr(),n=Er(),s=St(null),l=St(null),a=dt(new Set);function r(e,t){return a.has(e)||t.length<=8?t:t.slice(0,8)}function o(e){a.has(e)?a.delete(e):a.add(e)}function i(e){if("Tab"!==e.key||!s.value)return;const t=s.value.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!t.length)return;const n=t[0],l=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),l.focus()):document.activeElement===l&&(e.preventDefault(),n.focus())}Wn(()=>{var e;null==(e=l.value)||e.focus(),document.addEventListener("keydown",i)}),Gn(()=>{document.removeEventListener("keydown",i)});const c=Kl(()=>t.selectedItem),u=Kl(()=>t.selectedSchema),d=Kl(()=>{if(!c.value)return"";switch(c.value.kind){case"schema":return c.value.schema.title||c.value.schema.name;case"definition":return c.value.definition.title||c.value.definition.name;case"property":return c.value.property.name}}),p=Kl(()=>{if(!c.value)return"";switch(c.value.kind){case"schema":return c.value.schema.type||"any";case"definition":return c.value.definition.type||"any";case"property":return c.value.property.type||"any"}}),f=Kl(()=>{if(!c.value)return"";switch(c.value.kind){case"schema":return c.value.schema.description;case"definition":return c.value.definition.description;case"property":return c.value.property.description}}),m=Kl(()=>{if(!c.value)return[];switch(c.value.kind){case"schema":return c.value.schema.properties;case"definition":return c.value.definition.properties;case"property":return[]}});function h(e){if("string"==typeof e)try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}return JSON.stringify(e,null,2)}const v=Kl(()=>{var e;const t=$.value;return!!t&&(null!=t.minimum||null!=t.maximum||null!=t.minLength||null!=t.maxLength||t.pattern||(null==(e=t.enum)?void 0:e.length)||t.itemsType||t.itemsRef||null!=t.exclusiveMinimum||null!=t.exclusiveMaximum||null!=t.minItems||null!=t.maxItems||t.uniqueItems||null!=t.multipleOf||null!=t.const||t.contentMediaType||t.contentEncoding||!1===t.additionalProperties)}),g=Kl(()=>{var e;const t=M.value;return!!t&&((null==(e=t.enum)?void 0:e.length)>0||!!t.const||!!t.pattern||null!=t.minimum||null!=t.maximum||null!=t.exclusiveMinimum||null!=t.exclusiveMaximum||null!=t.minLength||null!=t.maxLength||null!=t.multipleOf||!!t.contentMediaType||!!t.contentEncoding)}),y=Kl(()=>{const e=$.value;return e?ei(e)??"":""}),b=Kl(()=>{const e=$.value;return e?ti(e)??"":""}),k=Kl(()=>{const e=$.value;return e?ni(e)??"":""}),x=Kl(()=>{const e=M.value;return e?ei(e)??"":""}),w=Kl(()=>{const e=M.value;return e?ti(e)??"":""}),_=Kl(()=>{if(!c.value)return[];switch(c.value.kind){case"schema":return c.value.schema.examples??[];case"definition":return c.value.definition.examples??[];case"property":return c.value.property.examples??[]}}),S=Kl(()=>{var e,t,n,s,l,a,r,o;if(!c.value)return null;if("property"===c.value.kind){const l=c.value.property;if(null!=l.default)return l.default;if(null!=l.const)return l.const;if(null==(e=l.enum)?void 0:e.length)return l.enum[0];if(null==(t=l.examples)?void 0:t.length)return l.examples[0];switch((null==(s=null==(n=l.type)?void 0:n.split(",")[0])?void 0:s.trim())||"any"){case"string":return"email"===l.format?"user@example.com":"uri"===l.format?"https://example.com":'"string"';case"integer":return"0";case"number":return"0.0";case"boolean":return"false";case"array":return"[]";case"object":return"{}";default:return null}}if("schema"===c.value.kind||"definition"===c.value.kind){const e="schema"===c.value.kind?c.value.schema.properties:c.value.definition.properties;"schema"===c.value.kind?c.value.schema.required:c.value.definition.required;const t={};for(const n of e){if(null!=n.default){t[n.name]=n.default;continue}if(null!=n.const){t[n.name]=n.const;continue}if(null==(l=n.enum)?void 0:l.length){t[n.name]=n.enum[0];continue}if(null==(a=n.examples)?void 0:a.length){t[n.name]=n.examples[0];continue}switch((null==(o=null==(r=n.type)?void 0:r.split(",")[0])?void 0:o.trim())||"any"){case"string":t[n.name]="email"===n.format?"user@example.com":"uri"===n.format?"https://example.com":"string";break;case"integer":case"number":t[n.name]=0;break;case"boolean":t[n.name]=!1;break;case"array":t[n.name]=[];break;default:t[n.name]=null}}return JSON.stringify(t,null,2)}return null}),C=Kl(()=>{const e=[{id:"overview",label:"Overview"}];if(m.value.length>0&&e.push({id:"properties",label:`Properties (${m.value.length})`}),_.value.length>0||S.value){const t=_.value.length||1;e.push({id:"examples",label:`Examples (${t})`})}return e}),$=Kl(()=>{var e;return"property"!==(null==(e=c.value)?void 0:e.kind)?null:c.value.property}),M=Kl(()=>{var e;return"definition"!==(null==(e=c.value)?void 0:e.kind)?null:c.value.definition});function O(e){if(!e)return;const s=e.match(/^#\/(?:definitions|\$defs)\/([^/]+)$/)||e.match(/^#([^/]+)$/);s&&(n.closeDetailPanel(),t.selectDefinition(s[1]))}function j(e){const t=e.match(/^#\/(?:definitions|\$defs)\/([^/]+)$/)||e.match(/^#([^/]+)$/);return t?t[1]:e}function L(e){if("string"==typeof e)try{return"object"==typeof JSON.parse(e)}catch{return!1}return"object"==typeof e&&null!==e}function E(e){let t;if("string"==typeof e)try{t=JSON.parse(e)}catch{return D(e)}else t=e;try{return No(t,3)}catch{return D("string"==typeof t?t:JSON.stringify(t,null,2))}}function T(e){switch((e||"any").split(",")[0].trim()){case"string":return"ptype-string";case"number":return"ptype-number";case"integer":return"ptype-integer";case"boolean":return"ptype-boolean";case"object":return"ptype-object";case"array":return"ptype-array";case"null":return"ptype-null";default:return""}}function D(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function P(e){const t=e.target;if(!t.classList.contains("jv-toggle"))return;const n=t.parentElement;if(!n)return;const s=n.querySelector(".jv-children");if(!s)return;s.classList.contains("jv-collapsed")?(s.classList.remove("jv-collapsed"),t.setAttribute("aria-label","collapse")):(s.classList.add("jv-collapsed"),t.setAttribute("aria-label","expand"))}return(e,i)=>{var D,A,I,N,q,R,V,F,B,H,J,W,K,z,G,X,Y,Q,ee,te,ne,se,le,ae;return pl(),vl("div",{class:"detail-panel-overlay",onClick:i[11]||(i[11]=rr((...e)=>$t(n).closeDetailPanel&&$t(n).closeDetailPanel(...e),["self"]))},[wl("aside",{class:"detail-panel",ref_key:"panelRef",ref:s},[wl("div",li,[wl("div",ai,[c.value?(pl(),vl("h2",ri,Z(d.value),1)):Ml("",!0)]),wl("button",{ref_key:"closeBtnRef",ref:l,class:"btn btn-ghost",onClick:i[0]||(i[0]=(...e)=>$t(n).closeDetailPanel&&$t(n).closeDetailPanel(...e)),"aria-label":"Close panel"},[...i[12]||(i[12]=[wl("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[wl("path",{d:"M5 5l8 8M13 5l-8 8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])],512)]),c.value?(pl(),vl("div",oi,[(pl(!0),vl(rl,null,ls(C.value,e=>(pl(),vl("button",{key:e.id,class:U(["panel-tab",{active:$t(n).activePanelTab===e.id}]),onClick:t=>$t(n).setPanelTab(e.id)},Z(e.label),11,ii))),128))])):Ml("",!0),wl("div",ci,[c.value?(pl(),vl(rl,{key:0},["overview"===$t(n).activePanelTab?(pl(),vl(rl,{key:0},[wl("div",ui,[wl("div",di,["schema"===c.value.kind||"definition"===c.value.kind?(pl(),vl("div",pi,[i[13]||(i[13]=wl("span",{class:"meta-label"},"Type",-1)),wl("span",fi,Z(p.value),1)])):Ml("",!0),(null==(D=$.value)?void 0:D.format)?(pl(),vl("div",mi,[i[14]||(i[14]=wl("span",{class:"meta-label"},"Format",-1)),wl("span",hi,Z($.value.format),1)])):Ml("",!0),f.value?(pl(),vl("div",vi,[i[15]||(i[15]=wl("span",{class:"meta-label"},"Description",-1)),wl("span",{class:"text-secondary md-content",innerHTML:$t(Ao)(f.value)},null,8,gi)])):Ml("",!0),$.value?(pl(),vl("div",yi,[i[16]||(i[16]=wl("span",{class:"meta-label"},"Required",-1)),wl("span",{class:U(["badge",$.value.required?"badge-required":"badge-optional"])},Z($.value.required?"Yes":"No"),3)])):Ml("",!0),(null==(A=$.value)?void 0:A.deprecated)?(pl(),vl("div",bi,[...i[17]||(i[17]=[wl("span",{class:"meta-label"},"Status",-1),wl("span",{class:"badge badge-deprecated"},"Deprecated",-1)])])):Ml("",!0),(null==(I=$.value)?void 0:I.readOnly)?(pl(),vl("div",ki,[...i[18]||(i[18]=[wl("span",{class:"meta-label"},"Access",-1),wl("span",{class:"badge badge-readonly-detail"},"Read-only",-1)])])):Ml("",!0),(null==(N=$.value)?void 0:N.writeOnly)?(pl(),vl("div",xi,[...i[19]||(i[19]=[wl("span",{class:"meta-label"},"Access",-1),wl("span",{class:"badge badge-writeonly-detail"},"Write-only",-1)])])):Ml("",!0),(null==(q=$.value)?void 0:q.ref)?(pl(),vl("div",wi,[i[20]||(i[20]=wl("span",{class:"meta-label"},"Reference",-1)),wl("span",{class:"ref-link font-mono",role:"button",tabindex:"0",onClick:i[1]||(i[1]=e=>O($.value.ref)),onKeydown:i[2]||(i[2]=ir(e=>O($.value.ref),["enter"]))},Z($.value.ref),33)])):Ml("",!0),(null==(R=$.value)?void 0:R.compositionSource)?(pl(),vl("div",_i,[i[21]||(i[21]=wl("span",{class:"meta-label"},"Source",-1)),wl("span",Si,Z($.value.compositionSource),1)])):Ml("",!0),(null==(V=$.value)?void 0:V.default)?(pl(),vl("div",Ci,[i[22]||(i[22]=wl("span",{class:"meta-label"},"Default",-1)),wl("span",$i,Z($.value.default),1)])):Ml("",!0),"schema"===c.value.kind&&u.value.required.length?(pl(),vl("div",Mi,[i[23]||(i[23]=wl("span",{class:"meta-label"},"Required",-1)),wl("div",Oi,[(pl(!0),vl(rl,null,ls(u.value.required,e=>(pl(),vl("span",{key:e,class:"badge badge-required-sm"},Z(e),1))),128))])])):Ml("",!0),"schema"===c.value.kind?(pl(),vl("div",ji,[i[24]||(i[24]=wl("span",{class:"meta-label"},"Properties",-1)),wl("span",Li,Z(u.value.properties.length),1)])):Ml("",!0),"schema"===c.value.kind&&u.value.definitions.length?(pl(),vl("div",Ei,[i[25]||(i[25]=wl("span",{class:"meta-label"},"Definitions",-1)),wl("span",Ti,Z(u.value.definitions.length),1)])):Ml("",!0),"schema"===c.value.kind&&u.value.$schema?(pl(),vl("div",Di,[i[26]||(i[26]=wl("span",{class:"meta-label"},"JSON Schema",-1)),wl("span",Pi,Z(u.value.$schema),1)])):Ml("",!0),"schema"===c.value.kind&&u.value.$id?(pl(),vl("div",Ai,[i[27]||(i[27]=wl("span",{class:"meta-label"},"$id",-1)),wl("span",Ii,Z(u.value.$id),1)])):Ml("",!0),"schema"===c.value.kind&&(u.value.hasAllOf||u.value.hasAnyOf||u.value.hasOneOf)?(pl(),vl("div",Ni,[i[28]||(i[28]=wl("span",{class:"meta-label"},"Composition",-1)),wl("div",qi,[u.value.hasAllOf?(pl(),vl("span",Ri,"allOf")):Ml("",!0),u.value.hasAnyOf?(pl(),vl("span",Vi,"anyOf")):Ml("",!0),u.value.hasOneOf?(pl(),vl("span",Fi,"oneOf")):Ml("",!0)])])):Ml("",!0),"schema"!==c.value.kind||null==u.value.minProperties&&null==u.value.maxProperties?Ml("",!0):(pl(),vl("div",Bi,[i[29]||(i[29]=wl("span",{class:"meta-label"},"Properties",-1)),wl("span",Ui,[null!=u.value.minProperties&&null!=u.value.maxProperties?(pl(),vl(rl,{key:0},[Cl(Z(u.value.minProperties)+".."+Z(u.value.maxProperties),1)],64)):null!=u.value.minProperties?(pl(),vl(rl,{key:1},[Cl("≥ "+Z(u.value.minProperties),1)],64)):(pl(),vl(rl,{key:2},[Cl("≤ "+Z(u.value.maxProperties),1)],64))])])),"schema"===c.value.kind&&!1===u.value.additionalProperties?(pl(),vl("div",Hi,[...i[30]||(i[30]=[wl("span",{class:"meta-label"},"Additional",-1),wl("span",{class:"badge badge-locked-detail"},"Denied",-1)])])):Ml("",!0),M.value&&(null==(F=M.value.required)?void 0:F.length)?(pl(),vl("div",Ji,[i[31]||(i[31]=wl("span",{class:"meta-label"},"Required",-1)),wl("div",Wi,[(pl(!0),vl(rl,null,ls(M.value.required,e=>(pl(),vl("span",{key:e,class:"badge badge-required-sm"},Z(e),1))),128))])])):Ml("",!0),M.value&&(M.value.hasAllOf||M.value.hasAnyOf||M.value.hasOneOf)?(pl(),vl("div",Ki,[i[32]||(i[32]=wl("span",{class:"meta-label"},"Composition",-1)),wl("div",zi,[M.value.hasAllOf?(pl(),vl("span",Zi,"allOf")):Ml("",!0),M.value.hasAnyOf?(pl(),vl("span",Gi,"anyOf")):Ml("",!0),M.value.hasOneOf?(pl(),vl("span",Xi,"oneOf")):Ml("",!0)])])):Ml("",!0),(null==(H=null==(B=M.value)?void 0:B.compositionVariants)?void 0:H.length)?(pl(),vl("div",Yi,[i[33]||(i[33]=wl("span",{class:"meta-label"},"Variants",-1)),wl("div",Qi,[(pl(!0),vl(rl,null,ls(M.value.compositionVariants,e=>(pl(),vl("span",{key:e,class:"badge badge-composition-detail"},Z(e),1))),128))])])):Ml("",!0),(null==(J=M.value)?void 0:J.additionalPropertiesRef)?(pl(),vl("div",ec,[i[34]||(i[34]=wl("span",{class:"meta-label"},"Additional",-1)),wl("span",{class:"ref-link font-mono",role:"button",tabindex:"0",onClick:i[3]||(i[3]=e=>O(M.value.additionalPropertiesRef)),onKeydown:i[4]||(i[4]=ir(e=>O(M.value.additionalPropertiesRef),["enter"]))},Z(j(M.value.additionalPropertiesRef)),33)])):(null==(W=M.value)?void 0:W.additionalPropertiesType)?(pl(),vl("div",tc,[i[35]||(i[35]=wl("span",{class:"meta-label"},"Additional",-1)),wl("span",nc,Z(M.value.additionalPropertiesType),1)])):Ml("",!0),!M.value||null==M.value.minProperties&&null==M.value.maxProperties?Ml("",!0):(pl(),vl("div",sc,[i[36]||(i[36]=wl("span",{class:"meta-label"},"Properties",-1)),wl("span",lc,[null!=M.value.minProperties&&null!=M.value.maxProperties?(pl(),vl(rl,{key:0},[Cl(Z(M.value.minProperties)+".."+Z(M.value.maxProperties),1)],64)):null!=M.value.minProperties?(pl(),vl(rl,{key:1},[Cl("≥ "+Z(M.value.minProperties),1)],64)):(pl(),vl(rl,{key:2},[Cl("≤ "+Z(M.value.maxProperties),1)],64))])])),M.value&&!1===M.value.additionalProperties?(pl(),vl("div",ac,[...i[37]||(i[37]=[wl("span",{class:"meta-label"},"Additional",-1),wl("span",{class:"badge badge-locked-detail"},"Denied",-1)])])):Ml("",!0),(null==(K=M.value)?void 0:K.format)?(pl(),vl("div",rc,[i[38]||(i[38]=wl("span",{class:"meta-label"},"Format",-1)),wl("span",oc,Z(M.value.format),1)])):Ml("",!0),(null==(z=M.value)?void 0:z.pattern)?(pl(),vl("div",ic,[i[39]||(i[39]=wl("span",{class:"meta-label"},"Pattern",-1)),wl("span",cc,Z(M.value.pattern),1)])):Ml("",!0),(null==(G=M.value)?void 0:G.default)?(pl(),vl("div",uc,[i[40]||(i[40]=wl("span",{class:"meta-label"},"Default",-1)),wl("span",dc,Z(M.value.default),1)])):Ml("",!0),null!=(null==(X=M.value)?void 0:X.minLength)||null!=(null==(Y=M.value)?void 0:Y.maxLength)?(pl(),vl("div",pc,[i[41]||(i[41]=wl("span",{class:"meta-label"},"Length",-1)),wl("span",fc,Z(w.value),1)])):Ml("",!0),null!=(null==(Q=M.value)?void 0:Q.minimum)||null!=(null==(ee=M.value)?void 0:ee.maximum)||null!=(null==(te=M.value)?void 0:te.exclusiveMinimum)||null!=(null==(ne=M.value)?void 0:ne.exclusiveMaximum)?(pl(),vl("div",mc,[i[42]||(i[42]=wl("span",{class:"meta-label"},"Range",-1)),wl("span",hc,Z(x.value),1)])):Ml("",!0),null!=(null==(se=M.value)?void 0:se.multipleOf)?(pl(),vl("div",vc,[i[43]||(i[43]=wl("span",{class:"meta-label"},"Multiple Of",-1)),wl("span",gc,Z(M.value.multipleOf),1)])):Ml("",!0)])]),$.value&&v.value?(pl(),vl("div",yc,[i[56]||(i[56]=wl("h3",{class:"detail-heading"},"Constraints",-1)),wl("table",bc,[wl("tbody",null,[null!=$.value.minimum||null!=$.value.maximum||null!=$.value.exclusiveMinimum||null!=$.value.exclusiveMaximum?(pl(),vl("tr",kc,[i[44]||(i[44]=wl("td",{class:"constraint-key"},"Range",-1)),wl("td",xc,Z(y.value),1)])):Ml("",!0),null!=$.value.minLength||null!=$.value.maxLength?(pl(),vl("tr",wc,[i[45]||(i[45]=wl("td",{class:"constraint-key"},"Length",-1)),wl("td",_c,Z(b.value),1)])):Ml("",!0),null!=$.value.minItems||null!=$.value.maxItems?(pl(),vl("tr",Sc,[i[46]||(i[46]=wl("td",{class:"constraint-key"},"Items",-1)),wl("td",Cc,Z(k.value),1)])):Ml("",!0),$.value.pattern?(pl(),vl("tr",$c,[i[47]||(i[47]=wl("td",{class:"constraint-key"},"Pattern",-1)),wl("td",Mc,Z($.value.pattern),1)])):Ml("",!0),(null==(le=$.value.enum)?void 0:le.length)?(pl(),vl("tr",Oc,[i[48]||(i[48]=wl("td",{class:"constraint-key"},"Enum",-1)),wl("td",null,[wl("div",jc,[(pl(!0),vl(rl,null,ls(r($.value.name,$.value.enum),e=>(pl(),vl("span",{key:e,class:"enum-value-chip"},Z(e),1))),128)),$.value.enum.length>8&&!a.has($.value.name)?(pl(),vl("button",{key:0,class:"enum-more-btn",onClick:i[5]||(i[5]=e=>o($.value.name))},"+"+Z($.value.enum.length-8)+" more",1)):Ml("",!0)])])])):Ml("",!0),$.value.itemsType||$.value.itemsRef?(pl(),vl("tr",Lc,[i[49]||(i[49]=wl("td",{class:"constraint-key"},"Items Type",-1)),wl("td",Ec,[Cl(Z($.value.itemsType||"object")+" ",1),$.value.itemsRef?(pl(),vl("span",{key:0,class:"prop-ref-link",role:"button",tabindex:"0",onClick:i[6]||(i[6]=rr(e=>O($.value.itemsRef),["stop"])),onKeydown:i[7]||(i[7]=ir(e=>O($.value.itemsRef),["enter"]))}," → "+Z(j($.value.itemsRef)),33)):Ml("",!0)])])):Ml("",!0),$.value.uniqueItems?(pl(),vl("tr",Tc,[...i[50]||(i[50]=[wl("td",{class:"constraint-key"},"Unique Items",-1),wl("td",{class:"constraint-value"},[wl("span",{class:"constraint-yes"},"Yes")],-1)])])):Ml("",!0),null!=$.value.multipleOf?(pl(),vl("tr",Dc,[i[51]||(i[51]=wl("td",{class:"constraint-key"},"Multiple Of",-1)),wl("td",Pc,Z($.value.multipleOf),1)])):Ml("",!0),null!=$.value.const?(pl(),vl("tr",Ac,[i[52]||(i[52]=wl("td",{class:"constraint-key"},"Const",-1)),wl("td",Ic,Z($.value.const),1)])):Ml("",!0),$.value.contentMediaType?(pl(),vl("tr",Nc,[i[53]||(i[53]=wl("td",{class:"constraint-key"},"Content Type",-1)),wl("td",qc,Z($.value.contentMediaType),1)])):Ml("",!0),$.value.contentEncoding?(pl(),vl("tr",Rc,[i[54]||(i[54]=wl("td",{class:"constraint-key"},"Content Encoding",-1)),wl("td",Vc,Z($.value.contentEncoding),1)])):Ml("",!0),!1===$.value.additionalProperties?(pl(),vl("tr",Fc,[...i[55]||(i[55]=[wl("td",{class:"constraint-key"},"Additional Props",-1),wl("td",{class:"constraint-value"},[wl("span",{class:"constraint-denied"},"Denied")],-1)])])):Ml("",!0)])])])):Ml("",!0),M.value&&g.value?(pl(),vl("div",Bc,[i[65]||(i[65]=wl("h3",{class:"detail-heading"},"Constraints",-1)),wl("table",Uc,[wl("tbody",null,[(null==(ae=M.value.enum)?void 0:ae.length)?(pl(),vl("tr",Hc,[i[57]||(i[57]=wl("td",{class:"constraint-key"},"Enum",-1)),wl("td",null,[wl("div",Jc,[(pl(!0),vl(rl,null,ls(r(M.value.name,M.value.enum),e=>(pl(),vl("span",{key:e,class:"enum-value-chip"},Z(e),1))),128)),M.value.enum.length>8&&!a.has(M.value.name)?(pl(),vl("button",{key:0,class:"enum-more-btn",onClick:i[8]||(i[8]=e=>o(M.value.name))},"+"+Z(M.value.enum.length-8)+" more",1)):Ml("",!0)])])])):Ml("",!0),M.value.const?(pl(),vl("tr",Wc,[i[58]||(i[58]=wl("td",{class:"constraint-key"},"Const",-1)),wl("td",Kc,Z(M.value.const),1)])):Ml("",!0),M.value.pattern?(pl(),vl("tr",zc,[i[59]||(i[59]=wl("td",{class:"constraint-key"},"Pattern",-1)),wl("td",Zc,Z(M.value.pattern),1)])):Ml("",!0),null!=M.value.minimum||null!=M.value.maximum||null!=M.value.exclusiveMinimum||null!=M.value.exclusiveMaximum?(pl(),vl("tr",Gc,[i[60]||(i[60]=wl("td",{class:"constraint-key"},"Range",-1)),wl("td",Xc,Z(x.value),1)])):Ml("",!0),null!=M.value.minLength||null!=M.value.maxLength?(pl(),vl("tr",Yc,[i[61]||(i[61]=wl("td",{class:"constraint-key"},"Length",-1)),wl("td",Qc,Z(w.value),1)])):Ml("",!0),null!=M.value.multipleOf?(pl(),vl("tr",eu,[i[62]||(i[62]=wl("td",{class:"constraint-key"},"Multiple Of",-1)),wl("td",tu,Z(M.value.multipleOf),1)])):Ml("",!0),M.value.contentMediaType?(pl(),vl("tr",nu,[i[63]||(i[63]=wl("td",{class:"constraint-key"},"Content Type",-1)),wl("td",su,Z(M.value.contentMediaType),1)])):Ml("",!0),M.value.contentEncoding?(pl(),vl("tr",lu,[i[64]||(i[64]=wl("td",{class:"constraint-key"},"Content Encoding",-1)),wl("td",au,Z(M.value.contentEncoding),1)])):Ml("",!0)])])])):Ml("",!0)],64)):Ml("",!0),"properties"===$t(n).activePanelTab?(pl(),vl("div",ru,[m.value.length?(pl(),vl("table",ou,[i[69]||(i[69]=wl("thead",null,[wl("tr",null,[wl("th",null,"Name"),wl("th",null,"Type"),wl("th",null,"Required"),wl("th",null,"Description")])],-1)),wl("tbody",null,[(pl(!0),vl(rl,null,ls(m.value,e=>{var s,l;return pl(),vl("tr",{key:e.name,class:"prop-row",onClick:s=>{return l=e.name,n.closeDetailPanel(),void t.selectProperty(l);var l}},[wl("td",null,[wl("span",cu,Z(e.name),1),e.title&&e.title!==e.name?(pl(),vl("span",uu,"("+Z(e.title)+")",1)):Ml("",!0),e.deprecated?(pl(),vl("span",du,"deprecated")):Ml("",!0)]),wl("td",null,[e.ref?(pl(),vl("span",{key:0,class:"prop-ref-link",role:"button",tabindex:"0",onClick:rr(t=>O(e.ref),["stop"])},Z(e.type||"object")+" → "+Z(j(e.ref)),9,pu)):(pl(),vl(rl,{key:1},[wl("span",{class:U(["prop-type-badge",T(e.type)])},Z(e.type||"any"),3),e.format?(pl(),vl("span",fu,"<"+Z(e.format)+">",1)):Ml("",!0),e.itemsType?(pl(),vl("span",mu,"["+Z(e.itemsType)+"]",1)):Ml("",!0),e.itemsRef?(pl(),vl("span",hu,[i[66]||(i[66]=Cl("[",-1)),wl("span",{class:"prop-ref-link",role:"button",tabindex:"0",onClick:rr(t=>O(e.itemsRef),["stop"]),onKeydown:ir(t=>O(e.itemsRef),["enter"])},Z(j(e.itemsRef)),41,vu),i[67]||(i[67]=Cl("]",-1))])):Ml("",!0)],64)),null!=e.default?(pl(),vl("span",gu,"default: "+Z(e.default),1)):Ml("",!0),(null==(s=e.enum)?void 0:s.length)?(pl(),vl("span",yu,Z(e.enum.length)+" values",1)):Ml("",!0)]),wl("td",null,[e.required?(pl(),vl("span",bu,"yes")):(pl(),vl("span",ku,"no"))]),wl("td",null,[e.description?(pl(),vl("span",{key:0,class:"text-secondary md-content",innerHTML:$t(Ao)(e.description)},null,8,xu)):(pl(),vl("span",wu,"—")),(null==(l=e.examples)?void 0:l.length)?(pl(),vl("div",_u,[i[68]||(i[68]=wl("span",{class:"prop-examples-label"},"Examples:",-1)),(pl(!0),vl(rl,null,ls(e.examples.slice(0,3),(e,t)=>(pl(),vl("span",{key:t,class:"prop-example-chip"},Z("object"==typeof e?JSON.stringify(e):e),1))),128)),e.examples.length>3?(pl(),vl("span",Su,"+"+Z(e.examples.length-3)+" more",1)):Ml("",!0)])):Ml("",!0)])],8,iu)}),128))])])):(pl(),vl("p",Cu,"No properties defined."))])):Ml("",!0),"examples"===$t(n).activePanelTab?(pl(),vl("div",$u,[_.value.length?(pl(),vl("div",Mu,[i[70]||(i[70]=wl("h4",{class:"example-label"},"Provided Examples",-1)),(pl(!0),vl(rl,null,ls(_.value,(e,t)=>(pl(),vl("div",{key:t,class:"example-block"},[L(e)?(pl(),vl("div",{key:0,class:"example-collapsible",onClick:i[9]||(i[9]=e=>P(e)),onKeydown:i[10]||(i[10]=e=>function(e){if("Enter"!==e.key&&" "!==e.key)return;e.target.classList.contains("jv-toggle")&&(e.preventDefault(),P(e))}(e))},[wl("pre",{class:"example-pre jv-viewer",innerHTML:E(e)},null,8,Ou)],32)):(pl(),vl("pre",ju,[wl("code",null,Z(h(e)),1)]))]))),128))])):Ml("",!0),S.value?(pl(),vl("div",Lu,[i[71]||(i[71]=wl("h4",{class:"example-label"},"Generated Example",-1)),wl("pre",{class:"example-pre example-generated jv-viewer",innerHTML:E(S.value)},null,8,Eu)])):Ml("",!0),_.value.length||S.value?Ml("",!0):(pl(),vl("p",Tu,"No examples available."))])):Ml("",!0)],64)):(pl(),vl("div",Du,[...i[72]||(i[72]=[wl("p",null,"Select an item to view details",-1)])]))])],512)])}}}),[["__scopeId","data-v-6252d005"]]);function Au(e,t){const n=e.name.toLowerCase(),s=e.rawName.toLowerCase(),l=e.schemaName.toLowerCase(),a=(e.description||"").toLowerCase();return s===t||n===t?100:s.startsWith(t)||n.startsWith(t)?80:l===t?70:s.includes(t)||n.includes(t)?60:l.startsWith(t)?50:l.includes(t)?40:a.includes(t)?20:0}function Iu(){const e=Lr(),t=Er(),n=St(""),s=St([]),l=St(!1);let a=null;function r(){if(!n.value.trim())return void(s.value=[]);l.value=!0;const t=n.value.toLowerCase().trim(),a=e.searchIndex.map(e=>({id:`${e.type}:${e.schemaName}:${e.name}`,type:e.type,name:e.title||e.name,rawName:e.name,schemaName:e.schemaName,description:e.description,score:0}));s.value=a.map(e=>({...e,score:Au(e,t)})).filter(e=>e.score>0).sort((e,t)=>t.score-e.score).slice(0,50),l.value=!1}pn(n,function(){a&&clearTimeout(a),a=setTimeout(r,150)});const o=Kl(()=>s.value.length>0);function i(){t.closeSearch(),n.value="",s.value=[]}return{query:n,results:s,isSearching:l,hasResults:o,selectResult:function(n){e.selectSchema(n.schemaName),t.isSchemaExpanded(n.schemaName)||t.toggleSchemaExpanded(n.schemaName),"definition"===n.type?e.selectDefinition(n.rawName):e.clearSelection(),t.closeDetailPanel(),i()},closeSearch:i}}const Nu={class:"search-modal"},qu={class:"search-input-wrapper"},Ru={key:0,class:"search-results"},Vu={key:0,class:"search-loading"},Fu={key:1,class:"search-empty"},Bu={key:2,class:"search-results-list"},Uu=["onClick","onMouseenter"],Hu={class:"result-icon"},Ju={key:0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},Wu={key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},Ku={key:2,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},zu={class:"result-content"},Zu=["innerHTML"],Gu={class:"result-schema"},Xu={key:0,class:"result-desc"},Yu=Fr(En({__name:"SearchModal",setup(e){const t=Iu(),n=St(null),s=St(0);function l(e){"ArrowDown"===e.key?(e.preventDefault(),s.value=Math.min(s.value+1,t.results.value.length-1)):"ArrowUp"===e.key?(e.preventDefault(),s.value=Math.max(s.value-1,0)):"Enter"===e.key&&t.results.value[s.value]?(e.preventDefault(),t.selectResult(t.results.value[s.value])):"Escape"===e.key&&t.closeSearch()}function a(){t.closeSearch()}function r(e){const n=t.query.value;if(!n)return e;const s=new RegExp(`(${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");return e.replace(s,"<mark>$1</mark>")}return Wn(()=>{Zt(()=>{var e;return null==(e=n.value)?void 0:e.focus()})}),(e,o)=>(pl(),vl("div",{class:"search-modal-overlay",onClick:rr(a,["self"])},[wl("div",Nu,[wl("div",qu,[o[3]||(o[3]=wl("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",class:"search-icon"},[wl("circle",{cx:"8",cy:"8",r:"5.5",stroke:"currentColor","stroke-width":"1.5"}),wl("path",{d:"M12 12l4 4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)),on(wl("input",{ref_key:"inputRef",ref:n,"onUpdate:modelValue":o[0]||(o[0]=e=>$t(t).query.value=e),type:"text",class:"search-input",placeholder:"Search schemas, properties, definitions...",onKeydown:l},null,544),[[za,$t(t).query.value]]),$t(t).query.value?(pl(),vl("button",{key:0,class:"clear-btn",onClick:o[1]||(o[1]=e=>$t(t).query.value="")},[...o[2]||(o[2]=[wl("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[wl("path",{d:"M4 4l6 6M10 4l-6 6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)])])):Ml("",!0)]),$t(t).query.value?(pl(),vl("div",Ru,[$t(t).isSearching.value?(pl(),vl("div",Vu," Searching... ")):$t(t).hasResults.value?(pl(),vl("div",Bu,[(pl(!0),vl(rl,null,ls($t(t).results.value,(e,n)=>(pl(),vl("div",{key:e.id,class:U(["search-result",{focused:s.value===n}]),onClick:n=>$t(t).selectResult(e),onMouseenter:e=>s.value=n},[wl("span",Hu,["schema"===e.type?(pl(),vl("svg",Ju,[...o[4]||(o[4]=[wl("rect",{x:"2",y:"2",width:"12",height:"12",rx:"2",stroke:"currentColor","stroke-width":"1.3"},null,-1),wl("path",{d:"M5 6h6M5 8h4M5 10h5",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"},null,-1)])])):"definition"===e.type?(pl(),vl("svg",Wu,[...o[5]||(o[5]=[wl("rect",{x:"2",y:"2",width:"12",height:"12",rx:"2",stroke:"currentColor","stroke-width":"1.3","stroke-dasharray":"3 2"},null,-1)])])):(pl(),vl("svg",Ku,[...o[6]||(o[6]=[wl("circle",{cx:"8",cy:"8",r:"5",stroke:"currentColor","stroke-width":"1.3"},null,-1)])]))]),wl("div",zu,[wl("span",{class:"result-name",innerHTML:r(e.name)},null,8,Zu),wl("span",Gu,Z(e.schemaName),1),e.description?(pl(),vl("span",Xu,Z(e.description),1)):Ml("",!0)]),wl("span",{class:U(["badge",`badge-${e.type}`])},Z(e.type),3)],42,Uu))),128))])):(pl(),vl("div",Fu,' No results found for "'+Z($t(t).query.value)+'" ',1))])):Ml("",!0),o[7]||(o[7]=wl("div",{class:"search-footer"},[wl("div",{class:"search-hints"},[wl("span",null,[wl("kbd",null,"↑"),wl("kbd",null,"↓"),Cl(" Navigate")]),wl("span",null,[wl("kbd",null,"↵"),Cl(" Select")]),wl("span",null,[wl("kbd",null,"Esc"),Cl(" Close")])])],-1))])]))}}),[["__scopeId","data-v-7c96bf04"]]);function Qu(e){const t={};for(const n of e){if("array"===Bo(n.type)){const e=[Zo(n.itemsType)];t[n.name]=e.map(e=>Go(e,n.itemsType))}else t[n.name]=Qo(Ko(n),n)}return t}function ed(e,t){return!!e.resolvedDef&&t.has(e.resolvedDef.name)}function td(e){return"array"===Bo(e.prop.type)?e.arrayItems.map(t=>Go(t,e.prop.itemsType)):Qo(e.rawValue,e.prop)}async function nd(e){var t;if(null==(t=navigator.clipboard)?void 0:t.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}return function(e){const t=document.createElement("textarea");t.value=e,t.style.cssText="position:fixed;top:0;left:0;width:2em;height:2em;padding:0;border:none;outline:none;box-shadow:none;background:transparent",document.body.appendChild(t),t.select();let n=!1;try{n=document.execCommand("copy")}catch{}return document.body.removeChild(t),n}(e)}const sd={class:"see-more-wrap"},ld=Fr(En({__name:"SeeMore",props:{maxHeight:{default:"3.6em"}},setup(e){_a(e=>({v01c972e8:e.maxHeight}));const t=St(null),n=St(!1),s=St(!1);let l=null;function a(){const e=t.value;e&&(s.value=e.scrollHeight>e.clientHeight+20)}return Wn(()=>{a(),t.value&&(l=new ResizeObserver(a),l.observe(t.value))}),Gn(()=>{null==l||l.disconnect()}),(e,l)=>(pl(),vl("div",sd,[wl("div",{ref_key:"contentRef",ref:t,class:U(["see-more-content",{collapsed:!n.value}])},[as(e.$slots,"default",{},void 0)],2),s.value?(pl(),vl("button",{key:0,class:"see-more-toggle",onClick:l[0]||(l[0]=e=>n.value=!n.value)},Z(n.value?"Show less":"Show more"),1)):Ml("",!0)]))}}),[["__scopeId","data-v-c4e5549b"]]),ad={class:"builder-layout"},rd={class:"builder-fields"},od={key:0,class:"builder-filter"},id={class:"toolbar-actions"},cd=["title"],ud={class:"toolbar-field-count text-muted"},dd=["id"],pd={class:"field-main"},fd=["checked","disabled","aria-label","onChange"],md=["aria-label","onClick"],hd={key:0,class:"field-human-title"},vd={class:"font-mono"},gd={key:0,class:"field-title-badge"},yd={key:1,class:"field-format-badge"},bd={key:2,class:"array-item-constraints"},kd={key:3,class:"field-format-badge"},xd={key:4,class:"field-format-badge"},wd={key:5,class:"const-badge font-mono"},_d={key:6,class:"default-badge font-mono"},Sd={key:7,class:"req-badge"},Cd={key:8,class:"deprecated-badge"},$d={key:9,class:"readonly-badge"},Md={key:10,class:"writeonly-badge"},Od={key:11,class:"nullable-badge"},jd={key:12,class:"composition-badge"},Ld={class:"field-control"},Ed=["disabled","aria-expanded","aria-label","onClick"],Td={class:"text-muted"},Dd={key:1,class:"ctrl-static ctrl-composition"},Pd=["onUpdate:modelValue","disabled"],Ad=["value"],Id={key:3,class:"ctrl-toggle"},Nd=["checked","disabled","onChange"],qd={class:"toggle-label"},Rd=["value","disabled","onInput","onBlur"],Vd=["value","disabled","onInput","onBlur"],Fd=["onUpdate:modelValue","disabled","onBlur"],Bd={key:7,class:"ctrl-array"},Ud=["type","onUpdate:modelValue","disabled"],Hd=["disabled","onClick"],Jd=["disabled","onClick"],Wd=["type","value","disabled","onInput","onBlur"],Kd={key:0,class:"field-error-hint"},zd={key:1,class:"field-desc-wrap"},Zd=["innerHTML"],Gd={key:2,class:"field-constraints"},Xd=["onClick","onKeydown"],Yd=["onClick"],Qd={key:2,class:"constraint-chip"},ep=["onClick"],tp={key:3,class:"constraint-chip chip-locked"},np={key:0,class:"nested-section"},sp={class:"nested-header"},lp={key:0,class:"nested-path text-muted"},ap={class:"nested-title"},rp={class:"nested-meta text-muted"},op={key:0},ip={key:1},cp={key:3,class:"circular-ref-label"},up={class:"circular-type"},dp={class:"circular-name font-mono"},pp={key:0,class:"empty-hint"},fp={class:"builder-preview"},mp={class:"preview-inner"},hp={class:"preview-toolbar"},vp={class:"toolbar-actions"},gp={key:0,class:"copy-tooltip"},yp=["innerHTML"],bp={key:0,class:"json-empty-hint"},kp=Fr(En({__name:"SchemaBuilder",props:{properties:{},required:{},schema:{},allSchemas:{},visited:{default:()=>new Set},depth:{default:0},parentPath:{default:""}},emits:["update:json"],setup(e,{emit:t}){const n=Lr(),s=Er();function l(e){if(!e)return;const t=e.match(/^#\/(?:definitions|\$defs)\/([^/]+)$/);t&&n.selectDefinition(t[1])}const a=e,r=t,o=St(!1),i=St(""),c=St(!1),u=St(new Set),d=St(null),p=St(new Set),f=St(new Map);function m(e){return f.value.get(e)}function h(e,t,n){const s=function(e,t){const n=Bo(t.type);if(Ho(n))return null;if("string"===n||"any"===n||!n){if(null!=t.minLength&&e.length<t.minLength&&e.length>0)return`Min ${t.minLength} characters`;if(null!=t.maxLength&&e.length>t.maxLength)return`Max ${t.maxLength} characters`;if(t.pattern&&e.length>0)try{if(!new RegExp(t.pattern).test(e))return`Must match /${t.pattern.length>30?t.pattern.slice(0,30)+"…":t.pattern}/`}catch{}}if("integer"===n||"number"===n){const s="integer"===n?parseInt(e,10):parseFloat(e);if(""!==e&&isNaN(s))return"Invalid number";if(!isNaN(s)){if(null!=t.minimum&&s<t.minimum)return`Must be >= ${t.minimum}`;if(null!=t.maximum&&s>t.maximum)return`Must be <= ${t.maximum}`;if(null!=t.exclusiveMinimum&&s<=t.exclusiveMinimum)return`Must be > ${t.exclusiveMinimum}`;if(null!=t.exclusiveMaximum&&s>=t.exclusiveMaximum)return`Must be < ${t.exclusiveMaximum}`;if(null!=t.multipleOf&&s%t.multipleOf!==0)return`Must be multiple of ${t.multipleOf}`}}if("array"===n&&e.length>0)try{const n=JSON.parse(e);if(Array.isArray(n)){if(null!=t.minItems&&n.length<t.minItems)return`Min ${t.minItems} items`;if(null!=t.maxItems&&n.length>t.maxItems)return`Max ${t.maxItems} items`;if(t.uniqueItems&&new Set(n).size!==n.length)return"Items must be unique"}}catch{}return null}(t,n),l=new Map(f.value);s?l.set(e,s):l.delete(e),f.value=l}const v=St(a.properties.map(e=>function(e,t,n,s,l=0){const a=t.includes(e.name)||!0===e.required,r=function(e,t,n){if(!e)return null;const s=e.match(/^#\/(?:definitions|\$defs)\/([^/]+)$/);if(s)return t.definitions.find(e=>e.name===s[1])??null;const l=e.match(/^#([^/]+)$/);if(l)return t.definitions.find(e=>e.name===l[1])??null;const a=e.match(/^(.+?)(?:\.json)?#\/\$defs\/([^/]+)$/);if(a&&n){const e=a[1].replace(/^\.\//,""),t=a[2],s=n.find(t=>t.name===e);if(s)return s.definitions.find(e=>e.name===t)??null}const r=e.match(/^(?:\.\/)?(.+?)(?:\.json)?$/);if(r&&n&&!e.includes("#")){const e=r[1],t=n.find(t=>t.name===e);if(t)return{name:t.name,title:t.title,description:t.description,type:t.type,properties:t.properties,required:t.required}}return null}(e.ref,n,s),o="array"===Bo(e.type),i=r&&1===r.properties.length,c=!!r&&(i||0===l&&r.properties.length<=8);return{prop:e,included:a,isRequired:a,rawValue:Ko(e),expanded:c,resolvedDef:r,nestedJson:r?Qu(r.properties):{},arrayItems:o?[Zo(e.itemsType)]:[]}}(e,a.required,a.schema,a.allSchemas,depth))),g=Kl(()=>{const e=i.value.trim().toLowerCase();let t=[...v.value];return e&&(t=t.filter(t=>t.prop.name.toLowerCase().includes(e)||(t.prop.title||"").toLowerCase().includes(e)||(t.prop.description||"").toLowerCase().includes(e)||(t.prop.type||"").toLowerCase().includes(e))),c.value?t.sort((e,t)=>e.prop.name.localeCompare(t.prop.name)):t.sort((e,t)=>e.isRequired&&!t.isRequired?-1:!e.isRequired&&t.isRequired?1:0)});const y=Kl(()=>v.value.some(e=>e.resolvedDef&&e.included&&!e.expanded)),b=Kl(()=>v.value.some(e=>e.expanded)),k=Kl(()=>v.value.filter(e=>e.included).length);function x(){for(const e of v.value)e.resolvedDef&&e.included&&(e.expanded=!0)}function w(){for(const e of v.value)e.expanded=!1}const _=Kl(()=>{const e={};for(const t of v.value)t.included&&(t.resolvedDef?e[t.prop.name]=t.nestedJson:e[t.prop.name]=td(t));return JSON.stringify(e,null,2)}),S=Kl(()=>v.value.some(e=>e.included));pn(Kl(()=>{try{return JSON.parse(_.value)}catch{return{}}}),e=>{r("update:json",e)},{immediate:!0,deep:!0});const C=Kl(()=>{try{return No(JSON.parse(_.value),2)}catch{return _.value}});function $(){const e=d.value;e&&(e.querySelectorAll(".jv-collapsed").forEach(e=>e.classList.remove("jv-collapsed")),e.querySelectorAll(".jv-toggle").forEach(e=>e.setAttribute("aria-label","collapse")))}function M(){const e=d.value;if(!e)return;e.querySelectorAll(".jv-children").forEach((e,t)=>{0!==t&&e.classList.add("jv-collapsed")}),e.querySelectorAll(".jv-toggle").forEach((e,t)=>{0!==t&&e.setAttribute("aria-label","expand")})}function O(e){const t=e.target;t.classList.contains("jv-toggle")&&L(t)}function j(e){const t=e.target;t.classList.contains("jv-toggle")&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),L(t)))}function L(e){const t=e.parentElement;if(!t)return;const n=t.querySelector(".jv-children");if(!n)return;n.classList.contains("jv-collapsed")?(n.classList.remove("jv-collapsed"),e.setAttribute("aria-label","collapse")):(n.classList.add("jv-collapsed"),e.setAttribute("aria-label","expand"))}function E(){const e=d.value;if(!e)return;const t=document.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}function T(e){const t=Bo(e.type);if(Ho(t))return"type-composition";switch(t){case"string":return"type-string";case"number":return"type-number";case"integer":return"type-integer";case"boolean":return"type-boolean";case"object":return"type-object";case"array":return"type-array";case"null":return"type-null";default:return""}}function D(e){const t=[];return null!=e.minItems&&null!=e.maxItems?t.push({label:`[ ${e.minItems} .. ${e.maxItems} ]`}):null!=e.minItems?t.push({label:`>= ${e.minItems}`}):null!=e.maxItems&&t.push({label:`<= ${e.maxItems}`}),e.uniqueItems&&t.push({label:"unique",class:"chip-unique"}),t}function P(e){return e.length<=45?{text:e,truncated:!1}:u.value.has(e)?{text:e,truncated:!0}:{text:e.slice(0,45)+"…",truncated:!0}}async function A(){await nd(_.value)&&(o.value=!0,setTimeout(()=>{o.value=!1},2e3))}return(t,a)=>{const r=ts("SchemaBuilder",!0);return pl(),vl("div",ad,[wl("div",rd,[wl("div",{class:U(["builder-toolbar",{"toolbar-with-filter":e.properties.length>8}])},[e.properties.length>8?(pl(),vl("div",od,[on(wl("input",{"onUpdate:modelValue":a[0]||(a[0]=e=>i.value=e),type:"text",class:"filter-input",placeholder:"Filter properties...","aria-label":"Filter properties"},null,512),[[za,i.value]]),i.value?(pl(),vl("button",{key:0,class:"filter-clear","aria-label":"Clear filter",onClick:a[1]||(a[1]=e=>i.value="")},[...a[3]||(a[3]=[wl("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[wl("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round"})],-1)])])):Ml("",!0)])):Ml("",!0),wl("div",id,[wl("button",{class:U(["toolbar-btn",{active:c.value}]),title:c.value?"Sorted A-Z":"Sorted by required first",onClick:a[2]||(a[2]=e=>c.value=!c.value)},[a[4]||(a[4]=wl("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},[wl("path",{d:"M3 2v10M3 12l-2-2M3 12l2-2M11 2v10M11 12l-2-2M11 12l2-2",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Cl(" "+Z(c.value?"A-Z":"Req"),1)],10,cd),y.value?(pl(),vl("button",{key:0,class:"toolbar-btn",title:"Expand all nested objects",onClick:x},[...a[5]||(a[5]=[wl("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[wl("path",{d:"M2 6h8M6 2v8",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round"})],-1)])])):Ml("",!0),b.value?(pl(),vl("button",{key:1,class:"toolbar-btn",title:"Collapse all nested objects",onClick:w},[...a[6]||(a[6]=[wl("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[wl("path",{d:"M2 6h8",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round"})],-1)])])):Ml("",!0),wl("span",ud,Z(k.value)+"/"+Z(v.value.length),1)])],2),(pl(!0),vl(rl,null,ls(g.value,(t,o)=>{var i,c,d,f,v,y,b,k,x,w,_,S,C,$;return pl(),vl("div",{key:t.prop.name,id:`prop-${t.prop.name}`,class:U(["field-row",{"field-row-alt":o%2==1,"field-row-last":o===g.value.length-1,["depth-"+e.depth%3]:e.depth>0}])},[wl("div",pd,[wl("input",{type:"checkbox",checked:t.included,disabled:t.isRequired,class:"field-check","aria-label":`Include ${t.prop.name}`,onChange:e=>function(e,t){e.included=t,t||(e.expanded=!1)}(t,e.target.checked)},null,40,fd),a[9]||(a[9]=wl("span",{class:"field-bullet","aria-hidden":"true"},null,-1)),wl("button",{class:U(["field-name",{dimmed:!t.included,deprecated:t.prop.deprecated,expandable:!!t.resolvedDef}]),"aria-label":t.resolvedDef?`${t.expanded?"Collapse":"Expand"} ${t.prop.name}`:`View details for ${t.prop.name}`,onClick:e=>{return t.resolvedDef&&t.included?t.expanded=!t.expanded:(l=t.prop,n.selectProperty(l.name),void s.openDetailPanel());var l}},[t.prop.title&&t.prop.title!==t.prop.name?(pl(),vl("span",hd,Z(t.prop.title),1)):Ml("",!0),wl("span",vd,Z(t.prop.name),1),t.resolvedDef?(pl(),vl("span",{key:1,class:U(["field-expand-icon",{expanded:t.expanded}])},"▶",2)):Ml("",!0)],10,md),wl("span",{class:U(["field-type-badge",T(t.prop)])},Z($t(Jo)(t.prop,(null==(i=t.resolvedDef)?void 0:i.title)||(null==(c=t.resolvedDef)?void 0:c.name))),3),t.prop.title&&t.prop.title!==t.prop.name?(pl(),vl("span",gd,Z(t.prop.title),1)):Ml("",!0),t.prop.format?(pl(),vl("span",yd,"<"+Z(t.prop.format)+">",1)):Ml("",!0),($=t.prop,"array"!==Bo($.type)||null==$.minItems&&null==$.maxItems&&!$.uniqueItems?Ml("",!0):(pl(),vl("span",bd,[a[7]||(a[7]=Cl("[ items ",-1)),(pl(!0),vl(rl,null,ls(D(t.prop),(e,t)=>(pl(),vl("span",{key:t,class:U(["constraint-chip",e.class])},Z(e.label),3))),128)),a[8]||(a[8]=Cl("]",-1))]))),t.prop.contentMediaType?(pl(),vl("span",kd,"content-type: "+Z(t.prop.contentMediaType),1)):Ml("",!0),t.prop.contentEncoding?(pl(),vl("span",xd,"encoding: "+Z(t.prop.contentEncoding),1)):Ml("",!0),null!=t.prop.const?(pl(),vl("span",wd,"const: "+Z(t.prop.const),1)):null!=t.prop.default?(pl(),vl("span",_d,"default: "+Z(t.prop.default),1)):Ml("",!0),t.isRequired?(pl(),vl("span",Sd,"required")):Ml("",!0),t.prop.deprecated?(pl(),vl("span",Cd,"deprecated")):Ml("",!0),t.prop.readOnly?(pl(),vl("span",$d,"read-only")):Ml("",!0),t.prop.writeOnly?(pl(),vl("span",Md,"write-only")):Ml("",!0),$t(Uo)(t.prop.type)?(pl(),vl("span",Od,"nullable")):Ml("",!0),t.prop.compositionSource?(pl(),vl("span",jd,Z(t.prop.compositionSource),1)):Ml("",!0),wl("div",Ld,[t.resolvedDef?(pl(),vl("button",{key:0,class:"btn btn-ghost ctrl-expand",disabled:!t.included,"aria-expanded":t.expanded,"aria-label":`${t.expanded?"Collapse":"Expand"} ${t.resolvedDef.title||t.resolvedDef.name}`,onClick:e=>t.expanded=!t.expanded},[wl("span",{class:U(["chevron",{expanded:t.expanded}]),"aria-hidden":"true"},"▶",2),Cl(" "+Z(t.resolvedDef.title||t.resolvedDef.name)+" ",1),wl("span",Td,Z(t.resolvedDef.properties.length)+" props",1)],8,Ed)):$t(Ho)($t(Bo)(t.prop.type))?(pl(),vl("span",Dd,Z(t.prop.description||"Multiple variants accepted"),1)):(null==(d=t.prop.enum)?void 0:d.length)?on((pl(),vl("select",{key:2,"onUpdate:modelValue":e=>t.rawValue=e,class:"ctrl-select",disabled:!t.included},[(pl(!0),vl(rl,null,ls(t.prop.enum,e=>(pl(),vl("option",{key:e,value:e},Z(e),9,Ad))),128))],8,Pd)),[[Ya,t.rawValue]]):"boolean"===$t(Bo)(t.prop.type)?(pl(),vl("label",Id,[wl("input",{type:"checkbox",checked:"true"===t.rawValue,disabled:!t.included,onChange:e=>t.rawValue=e.target.checked?"true":"false"},null,40,Nd),wl("span",qd,Z(t.rawValue),1)])):"integer"===$t(Bo)(t.prop.type)?(pl(),vl("input",{key:4,type:"number",step:"1",value:t.rawValue,disabled:!t.included,class:U(["ctrl-number",{"ctrl-error":m(t.prop.name)}]),onInput:e=>t.rawValue=e.target.value,onBlur:e=>h(t.prop.name,t.rawValue,t.prop)},null,42,Rd)):"number"===$t(Bo)(t.prop.type)?(pl(),vl("input",{key:5,type:"number",step:"any",value:t.rawValue,disabled:!t.included,class:U(["ctrl-number",{"ctrl-error":m(t.prop.name)}]),onInput:e=>t.rawValue=e.target.value,onBlur:e=>h(t.prop.name,t.rawValue,t.prop)},null,42,Vd)):$t(Xo)(t.prop)?on((pl(),vl("textarea",{key:6,"onUpdate:modelValue":e=>t.rawValue=e,disabled:!t.included,class:U(["ctrl-textarea",{"ctrl-error":m(t.prop.name)}]),rows:"2",placeholder:'{"key": "value"}',onBlur:e=>h(t.prop.name,t.rawValue,t.prop)},null,42,Fd)),[[za,t.rawValue]]):"array"===$t(Bo)(t.prop.type)?(pl(),vl("div",Bd,[(pl(!0),vl(rl,null,ls(t.arrayItems,(e,n)=>(pl(),vl("div",{key:n,class:"array-item-row"},[on(wl("input",{type:$t(zo)(t.prop.itemsType),"onUpdate:modelValue":e=>t.arrayItems[n]=e,class:"ctrl-text",disabled:!t.included},null,8,Ud),[[nr,t.arrayItems[n]]]),t.arrayItems.length>1?(pl(),vl("button",{key:0,class:"btn btn-ghost btn-xs",disabled:!t.included,onClick:e=>t.arrayItems.splice(n,1),title:"Remove item"},"x",8,Hd)):Ml("",!0)]))),128)),wl("button",{class:"btn btn-ghost btn-xs",disabled:!t.included,onClick:e=>t.arrayItems.push($t(Zo)(t.prop.itemsType))},"+ Add",8,Jd)])):(pl(),vl("input",{key:8,type:$t(Wo)(t.prop.format),value:t.rawValue,disabled:!t.included,class:U(["ctrl-text",{"ctrl-error":m(t.prop.name)}]),onInput:e=>t.rawValue=e.target.value,onBlur:e=>h(t.prop.name,t.rawValue,t.prop)},null,42,Wd))])]),m(t.prop.name)?(pl(),vl("div",Kd,Z(m(t.prop.name)),1)):Ml("",!0),t.prop.description?(pl(),vl("div",zd,[_l(ld,{"max-height":"3.6em"},{default:rn(()=>[wl("div",{class:"field-desc text-secondary",innerHTML:$t(Ao)(t.prop.description)},null,8,Zd)]),_:2},1024)])):Ml("",!0),$t(Yo)(t.prop)||t.prop.ref||(null==(f=t.prop.enum)?void 0:f.length)?(pl(),vl("div",Gd,[t.prop.ref?(pl(),vl("span",{key:0,class:"constraint-chip chip-ref",role:"button",tabindex:"0",onClick:rr(e=>l(t.prop.ref),["stop"]),onKeydown:ir(rr(e=>l(t.prop.ref),["stop"]),["enter"])},"ref → "+Z((null==(v=t.resolvedDef)?void 0:v.title)||(null==(y=t.resolvedDef)?void 0:y.name)||t.prop.ref),41,Xd)):Ml("",!0),(null==(b=t.prop.enum)?void 0:b.length)&&!$t(Xo)(t.prop)?(pl(),vl(rl,{key:1},[(pl(!0),vl(rl,null,ls((S=t.prop.name,C=t.prop.enum,p.value.has(S)||C.length<=8?C:C.slice(0,8)),e=>(pl(),vl("span",{key:e,class:U(["enum-chip",{"enum-chip-active":t.rawValue===e}])},Z(e),3))),128)),t.prop.enum.length>8&&!p.value.has(t.prop.name)?(pl(),vl("button",{key:0,class:"btn-see-more",onClick:rr(e=>function(e){const t=new Set(p.value);t.has(e)?t.delete(e):t.add(e),p.value=t}(t.prop.name),["stop"])},"+"+Z(t.prop.enum.length-8)+" more",9,Yd)):Ml("",!0)],64)):(null==(k=t.prop.enum)?void 0:k.length)&&$t(Xo)(t.prop)?(pl(),vl("span",Qd,"enum: "+Z(t.prop.enum.join(" | ")),1)):Ml("",!0),(pl(!0),vl(rl,null,ls($t(si)(t.prop),(e,t)=>(pl(),vl("span",{key:t,class:U(["constraint-chip",e.class])},["chip-pattern"===e.class?(pl(),vl(rl,{key:0},[Cl(" /"+Z(P(e.label).text)+"/ ",1),P(e.label).truncated?(pl(),vl("button",{key:0,class:"btn-toggle-pattern",onClick:rr(t=>function(e){const t=new Set(u.value);t.has(e)?t.delete(e):t.add(e),u.value=t}(e.label),["stop"])},Z(u.value.has(e.label)?"Hide":"Show"),9,ep)):Ml("",!0)],64)):(pl(),vl(rl,{key:1},[Cl(Z(e.label),1)],64))],2))),128)),!1===t.prop.additionalProperties?(pl(),vl("span",tp,"no additional properties")):Ml("",!0),(null==(x=t.prop.examples)?void 0:x.length)?(pl(),vl(rl,{key:4},[a[10]||(a[10]=wl("span",{class:"constraint-chip chip-example"},"example:",-1)),(pl(!0),vl(rl,null,ls(t.prop.examples,(e,t)=>(pl(),vl("span",{key:t,class:"example-chip"},Z("object"==typeof e?JSON.stringify(e):e),1))),128))],64)):Ml("",!0)])):Ml("",!0),_l(ra,{name:"expand"},{default:rn(()=>{var n;return[t.expanded&&t.included&&t.resolvedDef&&!$t(ed)(t,e.visited)?(pl(),vl("div",np,[wl("div",sp,[e.depth>0?(pl(),vl("span",lp,Z(e.parentPath)+".",1)):Ml("",!0),wl("span",ap,Z(t.resolvedDef.title||t.resolvedDef.name),1),wl("span",rp,[Cl(Z(t.resolvedDef.type||"object")+" ",1),t.resolvedDef.properties.length?(pl(),vl("span",op,Z(t.resolvedDef.properties.length)+" properties",1)):Ml("",!0),(null==(n=t.resolvedDef.required)?void 0:n.length)?(pl(),vl("span",ip,Z(t.resolvedDef.required.length)+" required",1)):Ml("",!0)])]),_l(r,{properties:t.resolvedDef.properties,required:t.resolvedDef.required,schema:e.schema,"all-schemas":e.allSchemas,visited:new Set([...e.visited,t.resolvedDef.name]),depth:e.depth+1,"parent-path":e.parentPath?`${e.parentPath}.${t.prop.name}`:t.prop.name,"onUpdate:json":e=>{t.nestedJson=e}},null,8,["properties","required","schema","all-schemas","visited","depth","parent-path","onUpdate:json"])])):Ml("",!0)]}),_:2},1024),t.expanded&&t.included&&t.resolvedDef&&$t(ed)(t,e.visited)?(pl(),vl("div",cp,[a[11]||(a[11]=wl("span",{class:"circular-badge"},"Recursive",-1)),wl("span",up,Z((null==(w=t.resolvedDef)?void 0:w.type)||"object"),1),wl("span",dp,Z(null==(_=t.resolvedDef)?void 0:_.name),1),a[12]||(a[12]=wl("span",{class:"circular-hint text-muted"},"This schema references itself",-1))])):Ml("",!0)],10,dd)}),128)),g.value.length?Ml("",!0):(pl(),vl("div",pp,[...a[13]||(a[13]=[wl("p",{class:"text-muted"},"No properties defined.",-1)])]))]),wl("div",fp,[wl("div",mp,[wl("div",hp,[a[15]||(a[15]=wl("span",{class:"toolbar-label"},"JSON Preview",-1)),wl("div",vp,[wl("button",{class:"btn btn-sm btn-dark-panel",onClick:$},"Expand all"),wl("button",{class:"btn btn-sm btn-dark-panel",onClick:M},"Collapse all"),wl("button",{class:"btn btn-sm btn-dark-panel copy-btn-wrap",onClick:A},[a[14]||(a[14]=Cl(" Copy ",-1)),o.value?(pl(),vl("span",gp,"Copied!")):Ml("",!0)])])]),wl("pre",{ref_key:"jsonBlockRef",ref:d,class:"json-block",onClick:O,onKeydown:j,onDblclick:E,innerHTML:C.value},null,40,yp),S.value?Ml("",!0):(pl(),vl("div",bp,[...a[16]||(a[16]=[wl("span",{class:"text-muted"},"Check fields to build JSON",-1)])]))])])])}}}),[["__scopeId","data-v-a0fc808a"]]);function xp(e,t,n="application/json"){const s=new Blob([t],{type:n}),l=URL.createObjectURL(s),a=document.createElement("a");a.href=l,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(l)}const wp={class:"home-view"},_p={key:0,class:"selected-schema"},Sp={class:"schema-header"},Cp={key:0,class:"schema-breadcrumb"},$p={class:"breadcrumb-current"},Mp={class:"schema-header-info"},Op={class:"schema-title-row"},jp={class:"schema-actions"},Lp={class:"view-toggle"},Ep={key:0,class:"copy-tooltip"},Tp={key:0,class:"schema-name-hint font-mono text-muted"},Dp=["innerHTML"],Pp={class:"schema-meta-row"},Ap={class:"badge badge-type"},Ip={class:"meta-count"},Np={key:0,class:"meta-count meta-count-req"},qp={key:1,class:"meta-count"},Rp={key:2,class:"badge badge-locked"},Vp={key:3,class:"badge badge-composition"},Fp={key:4,class:"badge badge-composition"},Bp={key:5,class:"badge badge-composition"},Up={key:6,class:"badge badge-range"},Hp={key:2,class:"schema-id-row"},Jp={key:0,class:"meta-id-chip font-mono text-muted",title:"JSON Schema version"},Wp=["href"],Kp={key:1,class:"meta-id-chip font-mono text-muted",title:"Schema $id"},zp=["href"],Zp={key:3,class:"schema-required"},Gp={class:"required-tags"},Xp={key:4,class:"schema-examples-details"},Yp={class:"examples-summary text-muted"},Qp=["innerHTML"],ef={class:"schema-section"},tf={class:"section-heading"},nf={class:"toolbar-field-count text-muted"},sf={key:0,class:"schema-section"},lf={class:"section-heading-row"},af={class:"section-heading"},rf={class:"toolbar-field-count text-muted"},of={class:"def-list"},cf=["id"],uf=["onClick","onKeydown"],df=["onMouseenter"],pf=["onClick"],ff={key:0,class:"def-card-name font-mono text-muted"},mf={key:1,class:"def-type-badge"},hf={class:"def-header-pill"},vf={key:2,class:"def-header-pill def-header-pill-req"},gf={key:3,class:"def-header-pill"},yf={key:4,class:"badge badge-range"},bf={key:5,class:"badge badge-locked"},kf={key:6,class:"badge badge-composition"},xf={key:7,class:"badge badge-composition"},wf={key:8,class:"badge badge-composition"},_f={class:"def-card-info"},Sf=["innerHTML"],Cf={key:1,class:"def-card-required"},$f={key:2,class:"def-card-examples"},Mf=["innerHTML"],Of={key:3,class:"def-mini-table"},jf=["title","onClick"],Lf=["onClick"],Ef={key:0,class:"def-mini-format"},Tf={key:1,class:"def-mini-items"},Df={key:2,class:"def-mini-enum"},Pf={key:3,class:"def-mini-unique"},Af={key:4,class:"def-mini-comp"},If={key:5,class:"def-mini-const"},Nf={key:6,class:"def-mini-default"},qf={key:7,class:"def-mini-dep"},Rf={key:0,class:"def-mini-more text-muted"},Vf={key:0,class:"def-card-body"},Ff={class:"def-body-header"},Bf={class:"def-body-title"},Uf={class:"def-body-meta"},Hf={key:0,class:"def-type-badge"},Jf={class:"text-muted"},Wf={key:1,class:"text-muted"},Kf={key:2,class:"badge badge-composition"},zf={key:3,class:"badge badge-composition"},Zf={key:4,class:"badge badge-composition"},Gf={key:5,class:"badge badge-locked"},Xf={key:6,class:"text-muted"},Yf={key:0,class:"def-body-required"},Qf=["innerHTML"],em={key:1,class:"def-card-examples def-body-examples"},tm={class:"text-muted"},nm=["innerHTML"],sm={key:1,class:"schema-section"},lm={key:0,class:"source-viewer"},am={class:"source-toolbar"},rm={class:"toolbar-field-count text-muted"},om={class:"source-toolbar-actions"},im={key:0,class:"copy-tooltip"},cm={class:"source-code-wrapper"},um=["innerHTML"],dm={key:1,class:"source-empty"},pm={key:1,class:"landing-page"},fm={class:"landing-header"},mm={class:"landing-title-row"},hm={key:0,class:"version-badge"},vm={key:0,class:"landing-description"},gm={class:"landing-subtitle"},ym=["href"],bm={key:1,class:"landing-search"},km=["placeholder"],xm={class:"schema-grid"},wm=["onClick","onKeydown"],_m={class:"schema-card-content"},Sm={key:0,class:"schema-card-name font-mono text-muted"},Cm=["innerHTML"],$m={class:"schema-card-meta"},Mm={class:"badge badge-type-sm"},Om={key:0,class:"badge badge-comp-sm"},jm={key:1,class:"badge badge-comp-sm"},Lm={key:2,class:"badge badge-comp-sm"},Em={key:3,class:"badge badge-locked-sm"},Tm={class:"schema-card-stats"},Dm={class:"stat-pill"},Pm={class:"stat-pill"},Am={key:0,class:"stat-pill stat-required"},Im={key:1,class:"stat-pill"},Nm={key:2,class:"stat-pill"},qm={key:3,class:"stat-pill"},Rm={key:0,class:"empty-state"},Vm={class:"text-muted"},Fm=Fr(En({__name:"HomeView",setup(e){const t=Lr(),n=Er(),s=dt(new Set),l=St("builder"),a=St(!1),r=St(""),o=St(!1),i=St(""),c=St(null),u=Kl(()=>{var e;const n=t.selectedDefinitionName;if(!n)return"";const s=null==(e=t.selectedSchema)?void 0:e.definitions.find(e=>e.name===n);return(null==s?void 0:s.title)||n}),d=Kl(()=>{const e=t.selectedSchema;if(!e)return"";const n=e.minProperties,s=e.maxProperties;return null!=n&&null!=s?`[ ${n} .. ${s} ] properties`:null!=n?1===n?"non-empty object":`>= ${n} properties`:null!=s?`<= ${s} properties`:""});function p(e){const t=e.minProperties,n=e.maxProperties;return null!=t&&null!=n?`[ ${t} .. ${n} ]`:null!=t?`>= ${t} props`:null!=n?`<= ${n} props`:""}const f=Kl(()=>{const e=r.value.trim().toLowerCase();return e?t.schemas.filter(t=>t.name.toLowerCase().includes(e)||(t.title||"").toLowerCase().includes(e)||(t.description||"").toLowerCase().includes(e)||(t.type||"").toLowerCase().includes(e)):t.schemas});function m(){var e;for(const n of(null==(e=t.selectedSchema)?void 0:e.definitions)??[])s.add(n.name)}function h(){s.clear()}const v=Kl(()=>{var e;const n=null==(e=t.selectedSchema)?void 0:e.sourceJson;if(!n)return"";try{return No(JSON.parse(n),2)}catch{return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/("(\\u[\da-fA-F]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,e=>{let t="json-number";if(/^"/.test(e)?t=/:$/.test(e)?"json-key":"json-string":/true|false/.test(e)?t="json-boolean":/null/.test(e)&&(t="json-null"),"json-string"===t){const t=e.slice(1,-1);if(/^https?:\/\/[^\s]+$/.test(t))return`<span class="json-string">"</span><a class="json-url" href="${t.replace(/&amp;/g,"&")}" target="_blank" rel="noopener">${e.slice(1)}</a>`}return`<span class="${t}">${e}</span>`})}}),g=Kl(()=>{var e;const n=null==(e=t.selectedSchema)?void 0:e.sourceJson;return n?n.split("\n").length:0});function y(){var e;const n=null==(e=t.selectedSchema)?void 0:e.sourceJson;n&&nd(n).then(e=>{e&&(a.value=!0,setTimeout(()=>{a.value=!1},2e3))})}function b(){const e=c.value;if(!e)return;const t=document.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}function k(e){const t=e.target;t.classList.contains("jv-toggle")&&w(t)}function x(e){const t=e.target;t.classList.contains("jv-toggle")&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),w(t)))}function w(e){const t=e.parentElement;if(!t)return;const n=t.querySelector(".jv-children");if(!n)return;n.classList.contains("jv-collapsed")?(n.classList.remove("jv-collapsed"),e.setAttribute("aria-label","collapse")):(n.classList.add("jv-collapsed"),e.setAttribute("aria-label","expand"))}function _(){const e=c.value;e&&(e.querySelectorAll(".jv-collapsed").forEach(e=>e.classList.remove("jv-collapsed")),e.querySelectorAll(".jv-toggle").forEach(e=>e.setAttribute("aria-label","collapse")))}function S(){const e=c.value;if(!e)return;e.querySelectorAll(".jv-children").forEach((e,t)=>{0!==t&&e.classList.add("jv-collapsed")}),e.querySelectorAll(".jv-toggle").forEach((e,t)=>{0!==t&&e.setAttribute("aria-label","expand")})}function C(e){t.selectSchema(e)}function $(e){s.has(e)?s.delete(e):s.add(e)}const M=Kl(()=>t.schemas.some(e=>e.sourceJson));function O(e){try{const t=e.map(e=>{try{return JSON.parse(e)}catch{return e}});return No(1===t.length?t[0]:t,2)}catch{return t=e,JSON.stringify(t,null,2)}var t}function j(e){return/^https?:\/\//.test(e)}function L(e){const t=e.match(/^#\/(?:definitions|\$defs)\/([^/]+)$/);return t?t[1]:e}function E(e){switch((e||"any").split(",")[0].trim()){case"string":return"mini-type-string";case"number":return"mini-type-number";case"integer":return"mini-type-integer";case"boolean":return"mini-type-boolean";case"object":return"mini-type-object";case"array":return"mini-type-array";default:return""}}function T(){var e;const n={};for(const s of t.schemas)s.sourceJson&&(n[`${s.name}.json`]=JSON.parse(s.sourceJson));xp(`${((null==(e=t.metadata)?void 0:e.title)||"schemas").replace(/\s+/g,"-")}-bundle.json`,JSON.stringify(n,null,2))}async function D(){await nd(window.location.href),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}return pn(()=>t.selectedDefinitionName,e=>{e&&(s.add(e),Zt(()=>{const t=document.getElementById(`def-${e}`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}))}),pn(()=>t.selectedItemKey,e=>{e&&Zt(()=>{let t=null;e.startsWith("def:")?t=document.getElementById(`def-${e.slice(4)}`):e.startsWith("prop:")&&(t=document.getElementById(`prop-${e.slice(5)}`)),t&&t.scrollIntoView({behavior:"smooth",block:"center"})})}),(e,w)=>{var P,A,I,N,q,R,V;return pl(),vl("div",wp,[$t(t).selectedSchema?(pl(),vl("div",_p,[wl("div",Sp,[$t(t).selectedDefinitionName?(pl(),vl("div",Cp,[wl("button",{class:"breadcrumb-link",onClick:w[0]||(w[0]=e=>$t(t).clearSelection())},Z((null==(P=$t(t).selectedSchema)?void 0:P.title)||(null==(A=$t(t).selectedSchema)?void 0:A.name)),1),w[10]||(w[10]=wl("span",{class:"breadcrumb-sep"},"/",-1)),wl("span",$p,Z(u.value),1)])):Ml("",!0),wl("div",Mp,[wl("div",Op,[wl("h1",{class:"heading-with-anchor",onMouseenter:w[1]||(w[1]=e=>i.value="schema"),onMouseleave:w[2]||(w[2]=e=>i.value="")},[Cl(Z($t(t).selectedSchema.title||$t(t).selectedSchema.name)+" ",1),on(wl("button",{class:"heading-anchor",onClick:rr(D,["stop"]),title:"Copy link to this schema","aria-label":"Copy link"},[...w[11]||(w[11]=[wl("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none"},[wl("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),wl("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],512),[[ka,"schema"===i.value]])],32),wl("div",jp,[wl("div",Lp,[wl("button",{class:U(["toggle-btn",{active:"builder"===l.value}]),onClick:w[3]||(w[3]=e=>l.value="builder")},"Builder",2),wl("button",{class:U(["toggle-btn",{active:"source"===l.value}]),onClick:w[4]||(w[4]=e=>l.value="source")},"Source",2)]),wl("button",{class:"btn btn-outline btn-sm copy-btn-wrap",onClick:D},[w[12]||(w[12]=Cl(" Copy Link ",-1)),o.value?(pl(),vl("span",Ep,"Copied!")):Ml("",!0)]),$t(t).selectedSchema.sourceJson?(pl(),vl("button",{key:0,class:"btn btn-outline btn-sm",onClick:w[5]||(w[5]=e=>{var n;(n=$t(t).selectedSchema).sourceJson&&xp(`${n.name}.json`,n.sourceJson)})}," Download JSON ")):Ml("",!0)])]),$t(t).selectedSchema.title&&$t(t).selectedSchema.title!==$t(t).selectedSchema.name?(pl(),vl("span",Tp,Z($t(t).selectedSchema.name),1)):Ml("",!0),$t(t).selectedSchema.description?(pl(),gl(ld,{key:1,"max-height":"4.8em"},{default:rn(()=>[wl("p",{class:"schema-desc text-secondary md-content",innerHTML:$t(Ao)($t(t).selectedSchema.description)},null,8,Dp)]),_:1})):Ml("",!0),wl("div",Pp,[wl("span",Ap,Z($t(t).selectedSchema.type||"any"),1),wl("span",Ip,Z($t(t).selectedSchema.properties.length)+" properties",1),$t(t).selectedSchema.required.length?(pl(),vl("span",Np,Z($t(t).selectedSchema.required.length)+" required",1)):Ml("",!0),$t(t).selectedSchema.definitions.length?(pl(),vl("span",qp,Z($t(t).selectedSchema.definitions.length)+" definitions",1)):Ml("",!0),!1===$t(t).selectedSchema.additionalProperties?(pl(),vl("span",Rp,"no additional properties")):Ml("",!0),$t(t).selectedSchema.hasAllOf?(pl(),vl("span",Vp,"allOf")):Ml("",!0),$t(t).selectedSchema.hasAnyOf?(pl(),vl("span",Fp,"anyOf")):Ml("",!0),$t(t).selectedSchema.hasOneOf?(pl(),vl("span",Bp,"oneOf")):Ml("",!0),d.value?(pl(),vl("span",Up,Z(d.value),1)):Ml("",!0)]),$t(t).selectedSchema.$schema||$t(t).selectedSchema.$id?(pl(),vl("div",Hp,[$t(t).selectedSchema.$schema?(pl(),vl("span",Jp,[j($t(t).selectedSchema.$schema)?(pl(),vl("a",{key:0,href:$t(t).selectedSchema.$schema,target:"_blank",rel:"noopener"},Z($t(t).selectedSchema.$schema),9,Wp)):(pl(),vl(rl,{key:1},[Cl(Z($t(t).selectedSchema.$schema),1)],64))])):Ml("",!0),$t(t).selectedSchema.$id?(pl(),vl("span",Kp,[j($t(t).selectedSchema.$id)?(pl(),vl("a",{key:0,href:$t(t).selectedSchema.$id,target:"_blank",rel:"noopener"},Z($t(t).selectedSchema.$id),9,zp)):(pl(),vl(rl,{key:1},[Cl(Z($t(t).selectedSchema.$id),1)],64))])):Ml("",!0)])):Ml("",!0),$t(t).selectedSchema.required.length?(pl(),vl("div",Zp,[w[13]||(w[13]=wl("span",{class:"required-label text-muted"},"Required:",-1)),wl("div",Gp,[(pl(!0),vl(rl,null,ls($t(t).selectedSchema.required,e=>(pl(),vl("span",{key:e,class:"required-tag"},Z(e),1))),128))])])):Ml("",!0),(null==(I=$t(t).selectedSchema.examples)?void 0:I.length)?(pl(),vl("details",Xp,[wl("summary",Yp,"Examples ("+Z($t(t).selectedSchema.examples.length)+")",1),wl("pre",{class:"examples-pre jv-viewer",innerHTML:O($t(t).selectedSchema.examples)},null,8,Qp)])):Ml("",!0)])]),"builder"===l.value?(pl(),vl(rl,{key:0},[wl("div",ef,[wl("div",tf,[w[14]||(w[14]=Cl(" Properties ",-1)),wl("span",nf,Z($t(t).selectedSchema.properties.length),1)]),_l(kp,{properties:$t(t).selectedSchema.properties,required:$t(t).selectedSchema.required,schema:$t(t).selectedSchema,"all-schemas":$t(t).schemas},null,8,["properties","required","schema","all-schemas"])]),$t(t).selectedSchema.definitions.length?(pl(),vl("div",sf,[wl("div",lf,[wl("h2",af,[w[15]||(w[15]=Cl("Definitions ",-1)),wl("span",rf,Z($t(t).selectedSchema.definitions.length),1)]),wl("div",{class:"section-actions"},[wl("button",{class:"btn btn-ghost btn-sm",onClick:m},"Expand All"),wl("button",{class:"btn btn-ghost btn-sm",onClick:h},"Collapse All")])]),wl("div",of,[(pl(!0),vl(rl,null,ls($t(t).selectedSchema.definitions,e=>{var l,a,r,c,u;return pl(),vl("div",{key:e.name,id:`def-${e.name}`,class:U(["def-card card",{"def-card-highlighted":e.name===$t(t).selectedDefinitionName}])},[wl("div",{class:"def-card-header",role:"button",tabindex:"0",onClick:t=>$(e.name),onKeydown:[ir(t=>$(e.name),["enter"]),ir(rr(t=>$(e.name),["prevent"]),["space"])]},[wl("span",{class:U(["def-chevron",{expanded:s.has(e.name)}])},"▶",2),wl("span",{class:"def-card-title heading-with-anchor",onMouseenter:t=>i.value=`def-${e.name}`,onMouseleave:w[6]||(w[6]=e=>i.value="")},[Cl(Z(e.title||e.name),1),on(wl("button",{class:"heading-anchor",onClick:rr(n=>async function(e){var n;const s=`${window.location.origin}${window.location.pathname}#${encodeURIComponent((null==(n=t.selectedSchema)?void 0:n.name)||"")}/${encodeURIComponent(`def-${e}`)}`;await nd(s),o.value=!0,setTimeout(()=>{o.value=!1},2e3)}(e.name),["stop"]),title:"Copy link","aria-label":"Copy link to definition"},[...w[16]||(w[16]=[wl("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[wl("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),wl("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,pf),[[ka,i.value===`def-${e.name}`]])],40,df),e.title&&e.title!==e.name?(pl(),vl("span",ff,Z(e.name),1)):Ml("",!0),e.type?(pl(),vl("span",mf,Z(e.type),1)):Ml("",!0),wl("span",hf,Z(e.properties.length)+" props",1),(null==(l=e.required)?void 0:l.length)?(pl(),vl("span",vf,Z(e.required.length)+" req",1)):Ml("",!0),(null==(a=e.examples)?void 0:a.length)?(pl(),vl("span",gf,Z(e.examples.length)+" examples",1)):Ml("",!0),p(e)?(pl(),vl("span",yf,Z(p(e)),1)):Ml("",!0),!1===e.additionalProperties?(pl(),vl("span",bf,"no additional")):Ml("",!0),e.hasAllOf?(pl(),vl("span",kf,"allOf")):Ml("",!0),e.hasAnyOf?(pl(),vl("span",xf,"anyOf")):Ml("",!0),e.hasOneOf?(pl(),vl("span",wf,"oneOf")):Ml("",!0)],40,uf),wl("div",_f,[e.description?(pl(),vl("p",{key:0,class:U(["def-card-desc text-secondary md-content",{"desc-truncated":!s.has(e.name)}]),innerHTML:$t(Ao)(e.description)},null,10,Sf)):Ml("",!0),(null==(r=e.required)?void 0:r.length)?(pl(),vl("div",Cf,[(pl(!0),vl(rl,null,ls(e.required,e=>(pl(),vl("span",{key:e,class:"required-tag-sm"},Z(e),1))),128))])):Ml("",!0),(null==(c=e.examples)?void 0:c.length)?(pl(),vl("details",$f,[w[17]||(w[17]=wl("summary",{class:"text-muted"},"Examples",-1)),wl("pre",{class:"def-examples-pre jv-viewer",innerHTML:O(e.examples)},null,8,Mf)])):Ml("",!0),!s.has(e.name)&&e.properties.length?(pl(),vl("div",Of,[(pl(!0),vl(rl,null,ls((u=e.properties,u.length<=8?u:u.slice(0,5)),e=>{var s,l;return pl(),vl("div",{key:e.name,class:"def-mini-row def-mini-row-clickable",title:e.description?(l=e.description,l.length<=120?l:l.slice(0,117)+"..."):void 0,onClick:rr(s=>{return l=e.name,t.selectProperty(l),void n.openDetailPanel();var l},["stop"])},[w[18]||(w[18]=wl("span",{class:"def-mini-bullet","aria-hidden":"true"},null,-1)),wl("span",{class:U(["def-mini-name font-mono",{"def-mini-deprecated":e.deprecated,"def-mini-required":e.required}])},Z(e.name),3),e.ref?(pl(),vl("span",{key:0,class:"def-mini-ref",onClick:rr(n=>function(e){const n=e.match(/^#\/(?:definitions|\$defs)\/([^/]+)$/);n&&t.selectDefinition(n[1])}(e.ref),["stop"])},"→ "+Z(L(e.ref)),9,Lf)):(pl(),vl(rl,{key:1},[wl("span",{class:U(["def-mini-type",E(e.type)])},Z(e.type||"any"),3),e.format?(pl(),vl("span",Ef,"<"+Z(e.format)+">",1)):Ml("",!0),e.itemsType?(pl(),vl("span",Tf,"["+Z(e.itemsType)+"]",1)):Ml("",!0)],64)),(null==(s=e.enum)?void 0:s.length)?(pl(),vl("span",Df,Z(e.enum.length)+" enum",1)):Ml("",!0),e.uniqueItems?(pl(),vl("span",Pf,"unique")):Ml("",!0),e.compositionSource?(pl(),vl("span",Af,Z(e.compositionSource),1)):Ml("",!0),null!=e.const?(pl(),vl("span",If,"const: "+Z(e.const),1)):null!=e.default?(pl(),vl("span",Nf,"default: "+Z(e.default),1)):Ml("",!0),e.deprecated?(pl(),vl("span",qf,"dep")):Ml("",!0)],8,jf)}),128)),e.properties.length>8?(pl(),vl("div",Rf," +"+Z(e.properties.length-5)+" more properties ",1)):Ml("",!0)])):Ml("",!0)]),_l(ra,{name:"def-expand"},{default:rn(()=>{var n,l,a,r;return[s.has(e.name)?(pl(),vl("div",Vf,[wl("div",Ff,[wl("h3",Bf,Z(e.title||e.name),1),wl("div",Uf,[e.type?(pl(),vl("span",Hf,Z(e.type),1)):Ml("",!0),wl("span",Jf,Z(e.properties.length)+" properties",1),(null==(n=e.required)?void 0:n.length)?(pl(),vl("span",Wf,"· "+Z(e.required.length)+" required",1)):Ml("",!0),e.hasAllOf?(pl(),vl("span",Kf,"allOf")):Ml("",!0),e.hasAnyOf?(pl(),vl("span",zf,"anyOf")):Ml("",!0),e.hasOneOf?(pl(),vl("span",Zf,"oneOf")):Ml("",!0),!1===e.additionalProperties?(pl(),vl("span",Gf,"no additional")):Ml("",!0),(null==(l=e.examples)?void 0:l.length)?(pl(),vl("span",Xf,"· "+Z(e.examples.length)+" examples",1)):Ml("",!0)]),(null==(a=e.required)?void 0:a.length)?(pl(),vl("div",Yf,[w[19]||(w[19]=wl("span",{class:"required-label text-muted"},"Required:",-1)),(pl(!0),vl(rl,null,ls(e.required,e=>(pl(),vl("span",{key:e,class:"required-tag-sm"},Z(e),1))),128))])):Ml("",!0)]),e.description?(pl(),gl(ld,{key:0,"max-height":"4.8em"},{default:rn(()=>[wl("div",{class:"def-body-desc text-secondary md-content",innerHTML:$t(Ao)(e.description)},null,8,Qf)]),_:2},1024)):Ml("",!0),(null==(r=e.examples)?void 0:r.length)?(pl(),vl("details",em,[wl("summary",tm,"Examples ("+Z(e.examples.length)+")",1),wl("pre",{class:"def-examples-pre jv-viewer",innerHTML:O(e.examples)},null,8,nm)])):Ml("",!0),_l(kp,{properties:e.properties,required:e.required,schema:$t(t).selectedSchema,"all-schemas":$t(t).schemas},null,8,["properties","required","schema","all-schemas"])])):Ml("",!0)]}),_:2},1024)],10,cf)}),128))])])):Ml("",!0)],64)):Ml("",!0),"source"===l.value?(pl(),vl("div",sm,[$t(t).selectedSchema.sourceJson?(pl(),vl("div",lm,[wl("div",am,[w[21]||(w[21]=wl("span",{class:"text-muted"},"Source JSON Schema",-1)),wl("span",rm,Z(g.value)+" lines",1),wl("div",om,[wl("button",{class:"btn btn-ghost btn-sm copy-btn-wrap",onClick:y},[w[20]||(w[20]=Cl(" Copy ",-1)),a.value?(pl(),vl("span",im,"Copied!")):Ml("",!0)]),wl("button",{class:"btn btn-ghost btn-sm",onClick:_},"Expand all"),wl("button",{class:"btn btn-ghost btn-sm",onClick:S},"Collapse all")])]),wl("div",cm,[wl("pre",{ref_key:"sourcePreRef",ref:c,class:"source-pre jv-viewer",onClick:k,onKeydown:x,onDblclick:b},[wl("code",{innerHTML:v.value},null,8,um)],544)])])):(pl(),vl("div",dm,[...w[22]||(w[22]=[wl("p",{class:"text-muted"},"Source JSON Schema not available for this schema.",-1)])]))])):Ml("",!0)])):(pl(),vl("div",pm,[wl("div",fm,[wl("div",null,[wl("div",mm,[wl("h1",null,Z((null==(N=$t(t).metadata)?void 0:N.title)||"JSON Schema Documentation"),1),(null==(q=$t(t).metadata)?void 0:q.version)?(pl(),vl("span",hm,"v"+Z($t(t).metadata.version),1)):Ml("",!0)]),(null==(R=$t(t).metadata)?void 0:R.description)?(pl(),vl("p",vm,Z($t(t).metadata.description),1)):Ml("",!0),wl("div",gm,[wl("span",null,Z($t(t).schemaCounts.schemas)+" schemas",1),w[24]||(w[24]=wl("span",{class:"separator"},"·",-1)),wl("span",null,Z($t(t).schemaCounts.properties)+" properties",1),w[25]||(w[25]=wl("span",{class:"separator"},"·",-1)),wl("span",null,Z($t(t).schemaCounts.definitions)+" definitions",1),(null==(V=$t(t).metadata)?void 0:V.baseUrl)?(pl(),vl(rl,{key:0},[w[23]||(w[23]=wl("span",{class:"separator"},"·",-1)),wl("a",{href:$t(t).metadata.baseUrl,target:"_blank",rel:"noopener",class:"landing-base-url"},Z($t(t).metadata.baseUrl),9,ym)],64)):Ml("",!0)]),$t(t).schemas.length>3?(pl(),vl("div",bm,[on(wl("input",{"onUpdate:modelValue":w[7]||(w[7]=e=>r.value=e),type:"text",class:"landing-search-input",placeholder:`Search ${$t(t).schemas.length} schemas...`,"aria-label":"Search schemas"},null,8,km),[[za,r.value]]),r.value?(pl(),vl("button",{key:0,class:"landing-search-clear","aria-label":"Clear search",onClick:w[8]||(w[8]=e=>r.value="")},[...w[26]||(w[26]=[wl("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[wl("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round"})],-1)])])):Ml("",!0)])):Ml("",!0)]),M.value?(pl(),vl("button",{key:0,class:"btn btn-outline btn-sm",onClick:T}," Download All Schemas ")):Ml("",!0)]),wl("div",xm,[(pl(!0),vl(rl,null,ls(f.value,e=>{var t;return pl(),vl("div",{key:e.name,class:"schema-card card",role:"button",tabindex:"0",onClick:t=>C(e.name),onKeydown:[ir(t=>C(e.name),["enter"]),ir(rr(t=>C(e.name),["prevent"]),["space"])]},[w[27]||(w[27]=wl("div",{class:"schema-card-icon"},[wl("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[wl("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",stroke:"currentColor","stroke-width":"1.5"}),wl("path",{d:"M7 8h10M7 12h6M7 16h8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})])],-1)),wl("div",_m,[wl("h3",null,Z(e.title||e.name),1),e.title&&e.title!==e.name?(pl(),vl("span",Sm,Z(e.name),1)):Ml("",!0),e.description?(pl(),vl("p",{key:1,class:"schema-card-desc text-secondary md-content",innerHTML:$t(Ao)(e.description)},null,8,Cm)):Ml("",!0),wl("div",$m,[wl("span",Mm,Z(e.type||"any"),1),e.hasAllOf?(pl(),vl("span",Om,"allOf")):Ml("",!0),e.hasAnyOf?(pl(),vl("span",jm,"anyOf")):Ml("",!0),e.hasOneOf?(pl(),vl("span",Lm,"oneOf")):Ml("",!0),!1===e.additionalProperties?(pl(),vl("span",Em,"closed")):Ml("",!0)]),wl("div",Tm,[wl("span",Dm,Z(e.properties.length)+" props",1),wl("span",Pm,Z(e.definitions.length)+" defs",1),e.required.length?(pl(),vl("span",Am,Z(e.required.length)+" required",1)):Ml("",!0),(null==(t=e.examples)?void 0:t.length)?(pl(),vl("span",Im,Z(e.examples.length)+" examples",1)):Ml("",!0),null!=e.minProperties?(pl(),vl("span",Nm,Z(e.minProperties)+" min",1)):Ml("",!0),null!=e.maxProperties?(pl(),vl("span",qm,Z(e.maxProperties)+" max",1)):Ml("",!0)])])],40,wm)}),128)),!f.value.length&&r.value?(pl(),vl("div",Rm,[wl("p",Vm,'No schemas match "'+Z(r.value)+'"',1),wl("button",{class:"btn btn-ghost btn-sm",onClick:w[9]||(w[9]=e=>r.value="")},"Clear search")])):Ml("",!0)])]))])}}}),[["__scopeId","data-v-4426c0e2"]]),Bm={class:"app-layout"},Um={class:"main-content"},Hm=((...e)=>{const t=(ur||(ur=Ys(cr))).createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){if(v(e)){return document.querySelector(e)}return e}(e);if(!s)return;const l=t._component;h(l)||l.render||l.template||(l.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const a=n(s,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t})(Fr(En({__name:"App",setup(e){const t=Lr(),n=Er(),s=St(null),l=St(!1);function a(){const e=s.value;e&&(l.value=e.scrollTop>300)}function r(){var e;null==(e=s.value)||e.scrollTo({top:0,behavior:"smooth"})}function o(){const e=window.location.hash.slice(1);if(!e)return;const s=e.split("/");if(s.length>=1&&t.schemas.length>0){const e=decodeURIComponent(s[0]);if(t.selectSchema(e),n.isSchemaExpanded(e)||n.toggleSchemaExpanded(e),s.length>=2){const e=decodeURIComponent(s[1]);e.startsWith("def-")?t.selectDefinition(e.slice(4)):e.startsWith("prop-")&&t.selectProperty(e.slice(5))}}}function i(e){"/"!==e.key||function(){const e=document.activeElement;return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement}()||(e.preventDefault(),n.openSearch()),"Escape"===e.key&&(n.searchOpen?n.closeSearch():n.detailPanelOpen&&n.closeDetailPanel())}return Wn(()=>{var e;n.initTheme(),t.loadFromWindow(),(null==(e=t.metadata)?void 0:e.theme)&&(n.theme=t.metadata.theme,n.updateResolvedTheme()),o(),document.addEventListener("keydown",i),window.addEventListener("hashchange",o)}),(e,t)=>(pl(),vl("div",Bm,[_l(Po),$t(n).sidebarCollapsed?Ml("",!0):(pl(),vl("div",{key:0,class:"sidebar-overlay",onClick:t[0]||(t[0]=(...e)=>$t(n).toggleSidebar&&$t(n).toggleSidebar(...e))})),wl("div",Um,[_l(Br),wl("div",{class:"content-area",ref_key:"contentAreaRef",ref:s,onScroll:a},[_l(Fm)],544)]),$t(n).detailPanelOpen?(pl(),gl(Pu,{key:1})):Ml("",!0),$t(n).searchOpen?(pl(),gl(Yu,{key:2})):Ml("",!0),l.value?(pl(),vl("button",{key:3,class:"back-to-top",onClick:r,title:"Back to top","aria-label":"Scroll to top"},[...t[1]||(t[1]=[wl("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[wl("path",{d:"M8 13V3M4 7l4-4 4 4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):Ml("",!0)]))}}),[["__scopeId","data-v-e4e17963"]]));Hm.use(function(){const e=ne(!0),t=e.run(()=>St({}));let n=[],s=[];const l=kt({install(e){pr(l),l._a=e,e.provide(fr,l),e.config.globalProperties.$pinia=l,s.forEach(e=>n.push(e)),s=[]},use(e){return this._a?n.push(e):s.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return l}()),Hm.mount("#app")}();