diff --git a/auth-service/internal/handlers/handlers.go b/auth-service/internal/handlers/handlers.go index 3c596e7..e6bc794 100644 --- a/auth-service/internal/handlers/handlers.go +++ b/auth-service/internal/handlers/handlers.go @@ -8,11 +8,12 @@ import ( "auth-service/pkg/logger" "context" "database/sql" - "github.com/golang-jwt/jwt/v5" - "github.com/labstack/echo/v4" "net/http" "strings" "time" + + "github.com/golang-jwt/jwt/v5" + "github.com/labstack/echo/v4" ) type AuthHandler struct { diff --git a/frontend/dist/assets/index-BDHvTP9z.css b/frontend/dist/assets/index-BDHvTP9z.css new file mode 100644 index 0000000..d665dea --- /dev/null +++ b/frontend/dist/assets/index-BDHvTP9z.css @@ -0,0 +1 @@ +.sidebar[data-v-c93c1e92]{width:250px;background-color:var(--sidebar-color);color:var(--text-color);border-right:1px solid var(--border-color);height:100vh;overflow-y:auto;position:sticky;top:0;padding:16px 0}.logo[data-v-c93c1e92]{padding:0 16px 16px;border-bottom:1px solid var(--border-color);margin-bottom:16px}.nav-section[data-v-c93c1e92]{padding:0 16px;margin-bottom:24px}.nav-section h3[data-v-c93c1e92]{margin-bottom:8px;font-size:16px;color:var(--accent-color)}ul[data-v-c93c1e92]{list-style:none}li[data-v-c93c1e92]{margin-bottom:8px}a[data-v-c93c1e92]{display:block;padding:8px;border-radius:4px}a[data-v-c93c1e92]:hover,a.router-link-active[data-v-c93c1e92]{background-color:#ffffff1a}.dashboard[data-v-3618735e]{padding:24px}.stats[data-v-3618735e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-bottom:32px}.stat-card[data-v-3618735e]{background-color:var(--secondary-color);padding:16px;border-radius:4px;text-align:center}.stat-value[data-v-3618735e]{font-size:36px;font-weight:700;color:var(--accent-color)}h2[data-v-3618735e]{margin-bottom:16px;font-size:18px}.quick-actions[data-v-3618735e]{margin-bottom:32px}.action-buttons[data-v-3618735e]{display:flex;gap:16px}.activity-list[data-v-3618735e]{display:flex;flex-direction:column;gap:16px}.activity-item[data-v-3618735e]{display:flex;background-color:var(--secondary-color);padding:16px;border-radius:4px}.activity-icon[data-v-3618735e]{font-size:24px;margin-right:16px;padding:8px;border-radius:50%;background-color:#0003;height:24px;width:24px;display:flex;align-items:center;justify-content:center}.activity-time[data-v-3618735e]{font-size:12px;color:#ffffff80}.request-builder[data-v-0d296d83]{padding:24px}.request-form[data-v-0d296d83]{margin-bottom:24px}.request-info[data-v-0d296d83]{display:flex;margin-bottom:16px}.method-select[data-v-0d296d83]{width:100px;margin-right:8px}.url-input[data-v-0d296d83]{flex:1;margin-right:8px}.tabs[data-v-0d296d83]{display:flex;border-bottom:1px solid var(--border-color);margin-bottom:16px}.tab[data-v-0d296d83]{padding:8px 16px;cursor:pointer;border-bottom:2px solid transparent}.tab.active[data-v-0d296d83]{border-bottom:2px solid var(--accent-color);color:var(--accent-color)}.param-row[data-v-0d296d83]{display:flex;margin-bottom:8px}.param-row.header[data-v-0d296d83]{font-weight:700;color:var(--accent-color);margin-bottom:8px}.check[data-v-0d296d83]{width:40px;display:flex;align-items:center}.key[data-v-0d296d83],.value[data-v-0d296d83]{flex:1;margin-right:8px}.description[data-v-0d296d83]{flex:2;margin-right:8px}.actions[data-v-0d296d83]{width:40px;display:flex;align-items:center;justify-content:center}.actions button[data-v-0d296d83]{background:none;border:none;font-size:18px;color:var(--text-color);cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.add-param[data-v-0d296d83]{margin-top:8px;background:none;border:1px dashed var(--border-color);width:100%;padding:8px;color:var(--accent-color)}.raw-editor textarea[data-v-0d296d83]{width:100%;font-family:monospace;background-color:var(--input-bg-color);color:var(--text-color);border:1px solid var(--border-color);padding:8px}.body-type-select[data-v-0d296d83]{display:flex;margin-bottom:16px;gap:8px}.body-type-select select[data-v-0d296d83]{width:auto}.test-options[data-v-0d296d83]{margin-bottom:24px}.test-option[data-v-0d296d83]{margin-bottom:16px;display:flex;align-items:center}.test-option label[data-v-0d296d83]{display:flex;align-items:center;margin-right:16px}.test-option input[type=checkbox][data-v-0d296d83]{margin-right:8px;width:auto}.test-option input[type=text][data-v-0d296d83]{width:200px}.test-generation[data-v-0d296d83]{border-top:1px solid var(--border-color);padding-top:16px}.test-generation h3[data-v-0d296d83]{margin-bottom:16px}.test-generation-options[data-v-0d296d83]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.test-generation-option[data-v-0d296d83]{display:flex;flex-direction:column}.test-generation-option label[data-v-0d296d83]{margin-bottom:8px}.response-section[data-v-0d296d83]{background-color:var(--secondary-color);border:1px solid var(--border-color);border-radius:4px;padding:16px}.response-header[data-v-0d296d83]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.response-meta[data-v-0d296d83]{display:flex;gap:16px}.status[data-v-0d296d83]{padding:4px 8px;border-radius:4px}.status.success[data-v-0d296d83]{background-color:#4caf5033;color:#4caf50}.status.client-error[data-v-0d296d83]{background-color:#ff980033;color:#ff9800}.status.server-error[data-v-0d296d83]{background-color:#f4433633;color:#f44336}.response-body[data-v-0d296d83]{background-color:var(--input-bg-color);padding:16px;border-radius:4px;margin-bottom:16px;overflow-x:auto}.response-body pre[data-v-0d296d83]{font-family:monospace;white-space:pre-wrap}.test-generation-actions[data-v-0d296d83]{display:flex;justify-content:flex-end}.test-results[data-v-0b892a57]{padding:24px}.test-summary[data-v-0b892a57]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-bottom:24px}.summary-card[data-v-0b892a57]{background-color:var(--secondary-color);padding:16px;border-radius:4px;text-align:center}.stat-value[data-v-0b892a57]{font-size:36px;font-weight:700;color:var(--accent-color)}.stat-value.success[data-v-0b892a57]{color:#4caf50}.stat-value.error[data-v-0b892a57]{color:#f44336}.results-filters[data-v-0b892a57]{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap;align-items:flex-end}.filter-item[data-v-0b892a57]{display:flex;flex-direction:column}.filter-item label[data-v-0b892a57]{margin-bottom:8px;font-size:14px}.filter-apply[data-v-0b892a57]{height:36px}.test-list[data-v-0b892a57]{margin-bottom:24px}.test-item[data-v-0b892a57]{border:1px solid var(--border-color);border-radius:4px;margin-bottom:8px;overflow:hidden}.test-header[data-v-0b892a57]{display:flex;padding:12px;cursor:pointer;background-color:var(--secondary-color);align-items:center}.test-header[data-v-0b892a57]:hover{background-color:#ffffff0d}.test-status[data-v-0b892a57]{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:12px}.test-status.passed[data-v-0b892a57]{color:#4caf50}.test-status.failed[data-v-0b892a57]{color:#f44336}.test-name[data-v-0b892a57]{flex:1;font-weight:700}.test-endpoint[data-v-0b892a57]{width:150px;color:var(--accent-color)}.test-time[data-v-0b892a57]{width:100px;text-align:right}.test-date[data-v-0b892a57]{width:100px;text-align:right;margin-right:12px}.test-expand[data-v-0b892a57]{width:24px;text-align:center}.test-details[data-v-0b892a57]{padding:16px;background-color:var(--input-bg-color);border-top:1px solid var(--border-color)}.test-details-section[data-v-0b892a57]{margin-bottom:16px}.test-details-section h4[data-v-0b892a57]{margin-bottom:8px;color:var(--accent-color)}.details-content[data-v-0b892a57]{padding-left:16px}.details-content p[data-v-0b892a57]{margin-bottom:8px}.details-content pre[data-v-0b892a57]{background-color:#0003;padding:8px;border-radius:4px;overflow-x:auto;font-family:monospace}.assertion[data-v-0b892a57]{display:flex;align-items:center;padding:4px 0}.assertion-status[data-v-0b892a57]{width:24px;margin-right:8px}.assertion.passed .assertion-status[data-v-0b892a57]{color:#4caf50}.assertion.failed .assertion-status[data-v-0b892a57]{color:#f44336}.assertion-name[data-v-0b892a57]{flex:1}.assertion-message[data-v-0b892a57]{color:#f44336;margin-left:16px}.pagination[data-v-0b892a57]{display:flex;justify-content:center;align-items:center;gap:16px}.auth-container[data-v-cbdfb58f]{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background-color:var(--background-color)}.auth-card[data-v-cbdfb58f]{background-color:var(--secondary-color);border-radius:8px;width:100%;max-width:400px;box-shadow:0 4px 16px #0000004d}.auth-header[data-v-cbdfb58f]{padding:24px;text-align:center;border-bottom:1px solid var(--border-color)}.auth-header h2[data-v-cbdfb58f]{margin-bottom:8px}.auth-header p[data-v-cbdfb58f]{color:#ffffffb3}.auth-form[data-v-cbdfb58f]{padding:24px}.form-group[data-v-cbdfb58f]{margin-bottom:20px}.form-group label[data-v-cbdfb58f]{display:block;margin-bottom:8px;font-size:14px}.form-group.error input[data-v-cbdfb58f]{border-color:#f44336}.error-message[data-v-cbdfb58f]{color:#f44336;font-size:12px;margin-top:4px}.form-actions[data-v-cbdfb58f]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;font-size:14px}.remember-me[data-v-cbdfb58f]{display:flex;align-items:center}.remember-me input[data-v-cbdfb58f]{width:auto;margin-right:8px}.auth-button[data-v-cbdfb58f]{width:100%;padding:12px;font-size:16px}.auth-error[data-v-cbdfb58f]{color:#f44336;text-align:center;margin-top:16px}.auth-footer[data-v-cbdfb58f]{padding:16px 24px;text-align:center;border-top:1px solid var(--border-color);font-size:14px}.auth-container[data-v-93d01b30]{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background-color:var(--background-color)}.auth-card[data-v-93d01b30]{background-color:var(--secondary-color);border-radius:8px;width:100%;max-width:400px;box-shadow:0 4px 16px #0000004d}.auth-header[data-v-93d01b30]{padding:24px;text-align:center;border-bottom:1px solid var(--border-color)}.auth-header h2[data-v-93d01b30]{margin-bottom:8px}.auth-header p[data-v-93d01b30]{color:#ffffffb3}.auth-form[data-v-93d01b30]{padding:24px}.form-group[data-v-93d01b30]{margin-bottom:20px}.form-group label[data-v-93d01b30]{display:block;margin-bottom:8px;font-size:14px}.form-group.error input[data-v-93d01b30]{border-color:#f44336}.error-message[data-v-93d01b30]{color:#f44336;font-size:12px;margin-top:4px}.auth-button[data-v-93d01b30]{width:100%;padding:12px;font-size:16px}.auth-error[data-v-93d01b30]{color:#f44336;text-align:center;margin-top:16px}.auth-footer[data-v-93d01b30]{padding:16px 24px;text-align:center;border-top:1px solid var(--border-color);font-size:14px}.auth-container[data-v-f4b83c73]{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background-color:var(--background-color)}.auth-card[data-v-f4b83c73]{background-color:var(--secondary-color);border-radius:8px;width:100%;max-width:400px;box-shadow:0 4px 16px #0000004d}.auth-header[data-v-f4b83c73]{padding:24px;text-align:center;border-bottom:1px solid var(--border-color)}.auth-header h2[data-v-f4b83c73]{margin-bottom:8px}.auth-header p[data-v-f4b83c73]{color:#ffffffb3}.auth-form[data-v-f4b83c73]{padding:24px}.form-group[data-v-f4b83c73]{margin-bottom:20px}.form-group label[data-v-f4b83c73]{display:block;margin-bottom:8px;font-size:14px}.form-group.error input[data-v-f4b83c73]{border-color:#f44336}.error-message[data-v-f4b83c73]{color:#f44336;font-size:12px;margin-top:4px}.auth-button[data-v-f4b83c73]{width:100%;padding:12px;font-size:16px}.auth-error[data-v-f4b83c73]{color:#f44336;text-align:center;margin-top:16px}.auth-success[data-v-f4b83c73]{color:#4caf50;text-align:center;margin-top:16px}.auth-footer[data-v-f4b83c73]{padding:16px 24px;text-align:center;border-top:1px solid var(--border-color);font-size:14px}.app-header[data-v-afb068a4]{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid var(--border-color)}.title h1[data-v-afb068a4]{font-size:20px}.actions[data-v-afb068a4]{display:flex;gap:8px}:root{--background-color: #1a1a1a;--sidebar-color: #131313;--text-color: #e0e0e0;--accent-color: #4caf50;--secondary-color: #424242;--border-color: #333333;--input-bg-color: #222222}*{margin:0;padding:0;box-sizing:border-box;font-family:Courier New,monospace}body{background-color:var(--background-color);color:var(--text-color)}.app-container{display:flex;min-height:100vh}.main-content{flex:1;padding:0;overflow-y:auto}a{color:var(--accent-color);text-decoration:none}button{cursor:pointer;background-color:var(--secondary-color);color:var(--text-color);border:1px solid var(--border-color);padding:8px 16px;border-radius:4px;font-size:14px}button:hover{background-color:var(--border-color)}.accent-button{background-color:var(--accent-color);color:#000}.accent-button:hover{background-color:#3d8b40}input,textarea,select{background-color:var(--input-bg-color);color:var(--text-color);border:1px solid var(--border-color);padding:8px;border-radius:4px;font-size:14px;width:100%}.card{background-color:var(--secondary-color);border:1px solid var(--border-color);border-radius:4px;padding:16px;margin-bottom:16px} diff --git a/frontend/dist/assets/index-DwHhpmZH.js b/frontend/dist/assets/index-DwHhpmZH.js new file mode 100644 index 0000000..9763616 --- /dev/null +++ b/frontend/dist/assets/index-DwHhpmZH.js @@ -0,0 +1,33 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function r(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(n){if(n.ep)return;n.ep=!0;const o=r(n);fetch(n.href,o)}})();/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Io(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Re={},pr=[],wt=()=>{},kc=()=>!1,yn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jo=e=>e.startsWith("onUpdate:"),ze=Object.assign,qo=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Nc=Object.prototype.hasOwnProperty,$e=(e,t)=>Nc.call(e,t),ae=Array.isArray,mr=e=>ts(e)==="[object Map]",Sr=e=>ts(e)==="[object Set]",li=e=>ts(e)==="[object Date]",ue=e=>typeof e=="function",Ie=e=>typeof e=="string",$t=e=>typeof e=="symbol",Oe=e=>e!==null&&typeof e=="object",Al=e=>(Oe(e)||ue(e))&&ue(e.then)&&ue(e.catch),Il=Object.prototype.toString,ts=e=>Il.call(e),Ac=e=>ts(e).slice(8,-1),jl=e=>ts(e)==="[object Object]",xo=e=>Ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mr=Io(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vn=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Ic=/-(\w)/g,it=vn(e=>e.replace(Ic,(t,r)=>r?r.toUpperCase():"")),jc=/\B([A-Z])/g,Kt=vn(e=>e.replace(jc,"-$1").toLowerCase()),_n=vn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Dn=vn(e=>e?`on${_n(e)}`:""),Ht=(e,t)=>!Object.is(e,t),Js=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:r})},sn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ui;const bn=()=>ui||(ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mo(e){if(ae(e)){const t={};for(let r=0;r{if(r){const s=r.split(xc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Xe(e){let t="";if(Ie(e))t=e;else if(ae(e))for(let r=0;rrs(r,t))}const Ml=e=>!!(e&&e.__v_isRef===!0),se=e=>Ie(e)?e:e==null?"":ae(e)||Oe(e)&&(e.toString===Il||!ue(e.toString))?Ml(e)?se(e.value):JSON.stringify(e,Dl,2):String(e),Dl=(e,t)=>Ml(t)?Dl(e,t.value):mr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[s,n],o)=>(r[Un(s,o)+" =>"]=n,r),{})}:Sr(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Un(r))}:$t(t)?Un(t):Oe(t)&&!ae(t)&&!jl(t)?String(t):t,Un=(e,t="")=>{var r;return $t(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let tt;class Vc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(Ur){let t=Ur;for(Ur=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Dr;){let t=Dr;for(Dr=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=r}}if(e)throw e}function Vl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Hl(e){let t,r=e.depsTail,s=r;for(;s;){const n=s.prevDep;s.version===-1?(s===r&&(r=n),Fo(s),Kc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=n}e.deps=t,e.depsTail=r}function co(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Kl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Kl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zr))return;e.globalVersion=zr;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!co(e)){e.flags&=-3;return}const r=Te,s=ut;Te=e,ut=!0;try{Vl(e);const n=e.fn(e._value);(t.version===0||Ht(n,e._value))&&(e._value=n,t.version++)}catch(n){throw t.version++,n}finally{Te=r,ut=s,Hl(e),e.flags&=-3}}function Fo(e,t=!1){const{dep:r,prevSub:s,nextSub:n}=e;if(s&&(s.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=s,e.nextSub=void 0),r.subs===e&&(r.subs=s,!s&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)Fo(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function Kc(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let ut=!0;const Bl=[];function Bt(){Bl.push(ut),ut=!1}function zt(){const e=Bl.pop();ut=e===void 0?!0:e}function ci(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Te;Te=void 0;try{t()}finally{Te=r}}}let zr=0;class Bc{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Vo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Te||!ut||Te===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Te)r=this.activeLink=new Bc(Te,this),Te.deps?(r.prevDep=Te.depsTail,Te.depsTail.nextDep=r,Te.depsTail=r):Te.deps=Te.depsTail=r,zl(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const s=r.nextDep;s.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=s),r.prevDep=Te.depsTail,r.nextDep=void 0,Te.depsTail.nextDep=r,Te.depsTail=r,Te.deps===r&&(Te.deps=s)}return r}trigger(t){this.version++,zr++,this.notify(t)}notify(t){Uo();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Lo()}}}function zl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)zl(s)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const fo=new WeakMap,tr=Symbol(""),ho=Symbol(""),Gr=Symbol("");function Le(e,t,r){if(ut&&Te){let s=fo.get(e);s||fo.set(e,s=new Map);let n=s.get(r);n||(s.set(r,n=new Vo),n.map=s,n.key=r),n.track()}}function kt(e,t,r,s,n,o){const i=fo.get(e);if(!i){zr++;return}const a=l=>{l&&l.trigger()};if(Uo(),t==="clear")i.forEach(a);else{const l=ae(e),f=l&&xo(r);if(l&&r==="length"){const u=Number(s);i.forEach((d,v)=>{(v==="length"||v===Gr||!$t(v)&&v>=u)&&a(d)})}else switch((r!==void 0||i.has(void 0))&&a(i.get(r)),f&&a(i.get(Gr)),t){case"add":l?f&&a(i.get("length")):(a(i.get(tr)),mr(e)&&a(i.get(ho)));break;case"delete":l||(a(i.get(tr)),mr(e)&&a(i.get(ho)));break;case"set":mr(e)&&a(i.get(tr));break}}Lo()}function lr(e){const t=we(e);return t===e?t:(Le(t,"iterate",Gr),ot(e)?t:t.map(Fe))}function wn(e){return Le(e=we(e),"iterate",Gr),e}const zc={__proto__:null,[Symbol.iterator](){return Fn(this,Symbol.iterator,Fe)},concat(...e){return lr(this).concat(...e.map(t=>ae(t)?lr(t):t))},entries(){return Fn(this,"entries",e=>(e[1]=Fe(e[1]),e))},every(e,t){return St(this,"every",e,t,void 0,arguments)},filter(e,t){return St(this,"filter",e,t,r=>r.map(Fe),arguments)},find(e,t){return St(this,"find",e,t,Fe,arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,Fe,arguments)},findLastIndex(e,t){return St(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return St(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vn(this,"includes",e)},indexOf(...e){return Vn(this,"indexOf",e)},join(e){return lr(this).join(e)},lastIndexOf(...e){return Vn(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return Cr(this,"pop")},push(...e){return Cr(this,"push",e)},reduce(e,...t){return fi(this,"reduce",e,t)},reduceRight(e,...t){return fi(this,"reduceRight",e,t)},shift(){return Cr(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return Cr(this,"splice",e)},toReversed(){return lr(this).toReversed()},toSorted(e){return lr(this).toSorted(e)},toSpliced(...e){return lr(this).toSpliced(...e)},unshift(...e){return Cr(this,"unshift",e)},values(){return Fn(this,"values",Fe)}};function Fn(e,t,r){const s=wn(e),n=s[t]();return s!==e&&!ot(e)&&(n._next=n.next,n.next=()=>{const o=n._next();return o.value&&(o.value=r(o.value)),o}),n}const Gc=Array.prototype;function St(e,t,r,s,n,o){const i=wn(e),a=i!==e&&!ot(e),l=i[t];if(l!==Gc[t]){const d=l.apply(e,o);return a?Fe(d):d}let f=r;i!==e&&(a?f=function(d,v){return r.call(this,Fe(d),v,e)}:r.length>2&&(f=function(d,v){return r.call(this,d,v,e)}));const u=l.call(i,f,s);return a&&n?n(u):u}function fi(e,t,r,s){const n=wn(e);let o=r;return n!==e&&(ot(e)?r.length>3&&(o=function(i,a,l){return r.call(this,i,a,l,e)}):o=function(i,a,l){return r.call(this,i,Fe(a),l,e)}),n[t](o,...s)}function Vn(e,t,r){const s=we(e);Le(s,"iterate",Gr);const n=s[t](...r);return(n===-1||n===!1)&&Bo(r[0])?(r[0]=we(r[0]),s[t](...r)):n}function Cr(e,t,r=[]){Bt(),Uo();const s=we(e)[t].apply(e,r);return Lo(),zt(),s}const Jc=Io("__proto__,__v_isRef,__isVue"),Gl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($t));function Wc(e){$t(e)||(e=String(e));const t=we(this);return Le(t,"has",e),t.hasOwnProperty(e)}class Jl{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,s){if(r==="__v_skip")return t.__v_skip;const n=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return o;if(r==="__v_raw")return s===(n?o?of:Yl:o?Ql:Xl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=ae(t);if(!n){let l;if(i&&(l=zc[r]))return l;if(r==="hasOwnProperty")return Wc}const a=Reflect.get(t,r,Be(t)?t:s);return($t(r)?Gl.has(r):Jc(r))||(n||Le(t,"get",r),o)?a:Be(a)?i&&xo(r)?a:a.value:Oe(a)?n?eu(a):Pr(a):a}}class Wl extends Jl{constructor(t=!1){super(!1,t)}set(t,r,s,n){let o=t[r];if(!this._isShallow){const l=or(o);if(!ot(s)&&!or(s)&&(o=we(o),s=we(s)),!ae(t)&&Be(o)&&!Be(s))return l?!1:(o.value=s,!0)}const i=ae(t)&&xo(r)?Number(r)e,as=e=>Reflect.getPrototypeOf(e);function ef(e,t,r){return function(...s){const n=this.__v_raw,o=we(n),i=mr(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,f=n[e](...s),u=r?po:t?mo:Fe;return!t&&Le(o,"iterate",l?ho:tr),{next(){const{value:d,done:v}=f.next();return v?{value:d,done:v}:{value:a?[u(d[0]),u(d[1])]:u(d),done:v}},[Symbol.iterator](){return this}}}}function ls(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function tf(e,t){const r={get(n){const o=this.__v_raw,i=we(o),a=we(n);e||(Ht(n,a)&&Le(i,"get",n),Le(i,"get",a));const{has:l}=as(i),f=t?po:e?mo:Fe;if(l.call(i,n))return f(o.get(n));if(l.call(i,a))return f(o.get(a));o!==i&&o.get(n)},get size(){const n=this.__v_raw;return!e&&Le(we(n),"iterate",tr),Reflect.get(n,"size",n)},has(n){const o=this.__v_raw,i=we(o),a=we(n);return e||(Ht(n,a)&&Le(i,"has",n),Le(i,"has",a)),n===a?o.has(n):o.has(n)||o.has(a)},forEach(n,o){const i=this,a=i.__v_raw,l=we(a),f=t?po:e?mo:Fe;return!e&&Le(l,"iterate",tr),a.forEach((u,d)=>n.call(o,f(u),f(d),i))}};return ze(r,e?{add:ls("add"),set:ls("set"),delete:ls("delete"),clear:ls("clear")}:{add(n){!t&&!ot(n)&&!or(n)&&(n=we(n));const o=we(this);return as(o).has.call(o,n)||(o.add(n),kt(o,"add",n,n)),this},set(n,o){!t&&!ot(o)&&!or(o)&&(o=we(o));const i=we(this),{has:a,get:l}=as(i);let f=a.call(i,n);f||(n=we(n),f=a.call(i,n));const u=l.call(i,n);return i.set(n,o),f?Ht(o,u)&&kt(i,"set",n,o):kt(i,"add",n,o),this},delete(n){const o=we(this),{has:i,get:a}=as(o);let l=i.call(o,n);l||(n=we(n),l=i.call(o,n)),a&&a.call(o,n);const f=o.delete(n);return l&&kt(o,"delete",n,void 0),f},clear(){const n=we(this),o=n.size!==0,i=n.clear();return o&&kt(n,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=ef(n,e,t)}),r}function Ho(e,t){const r=tf(e,t);return(s,n,o)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?s:Reflect.get($e(r,n)&&n in s?r:s,n,o)}const rf={get:Ho(!1,!1)},sf={get:Ho(!1,!0)},nf={get:Ho(!0,!1)};const Xl=new WeakMap,Ql=new WeakMap,Yl=new WeakMap,of=new WeakMap;function af(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lf(e){return e.__v_skip||!Object.isExtensible(e)?0:af(Ac(e))}function Pr(e){return or(e)?e:Ko(e,!1,Qc,rf,Xl)}function Zl(e){return Ko(e,!1,Zc,sf,Ql)}function eu(e){return Ko(e,!0,Yc,nf,Yl)}function Ko(e,t,r,s,n){if(!Oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=n.get(e);if(o)return o;const i=lf(e);if(i===0)return e;const a=new Proxy(e,i===2?s:r);return n.set(e,a),a}function gr(e){return or(e)?gr(e.__v_raw):!!(e&&e.__v_isReactive)}function or(e){return!!(e&&e.__v_isReadonly)}function ot(e){return!!(e&&e.__v_isShallow)}function Bo(e){return e?!!e.__v_raw:!1}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function uf(e){return!$e(e,"__v_skip")&&Object.isExtensible(e)&&ql(e,"__v_skip",!0),e}const Fe=e=>Oe(e)?Pr(e):e,mo=e=>Oe(e)?eu(e):e;function Be(e){return e?e.__v_isRef===!0:!1}function go(e){return tu(e,!1)}function cf(e){return tu(e,!0)}function tu(e,t){return Be(e)?e:new ff(e,t)}class ff{constructor(t,r){this.dep=new Vo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:we(t),this._value=r?t:Fe(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,s=this.__v_isShallow||ot(t)||or(t);t=s?t:we(t),Ht(t,r)&&(this._rawValue=t,this._value=s?t:Fe(t),this.dep.trigger())}}function yr(e){return Be(e)?e.value:e}const df={get:(e,t,r)=>t==="__v_raw"?e:yr(Reflect.get(e,t,r)),set:(e,t,r,s)=>{const n=e[t];return Be(n)&&!Be(r)?(n.value=r,!0):Reflect.set(e,t,r,s)}};function ru(e){return gr(e)?e:new Proxy(e,df)}class hf{constructor(t,r,s){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Vo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Te!==this)return Fl(this,!0),!0}get value(){const t=this.dep.track();return Kl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pf(e,t,r=!1){let s,n;return ue(e)?s=e:(s=e.get,n=e.set),new hf(s,n,r)}const us={},nn=new WeakMap;let Zt;function mf(e,t=!1,r=Zt){if(r){let s=nn.get(r);s||nn.set(r,s=[]),s.push(e)}}function gf(e,t,r=Re){const{immediate:s,deep:n,once:o,scheduler:i,augmentJob:a,call:l}=r,f=w=>n?w:ot(w)||n===!1||n===0?Nt(w,1):Nt(w);let u,d,v,_,$=!1,y=!1;if(Be(e)?(d=()=>e.value,$=ot(e)):gr(e)?(d=()=>f(e),$=!0):ae(e)?(y=!0,$=e.some(w=>gr(w)||ot(w)),d=()=>e.map(w=>{if(Be(w))return w.value;if(gr(w))return f(w);if(ue(w))return l?l(w,2):w()})):ue(e)?t?d=l?()=>l(e,2):e:d=()=>{if(v){Bt();try{v()}finally{zt()}}const w=Zt;Zt=u;try{return l?l(e,3,[_]):e(_)}finally{Zt=w}}:d=wt,t&&n){const w=d,S=n===!0?1/0:n;d=()=>Nt(w(),S)}const h=Hc(),p=()=>{u.stop(),h&&h.active&&qo(h.effects,u)};if(o&&t){const w=t;t=(...S)=>{w(...S),p()}}let c=y?new Array(e.length).fill(us):us;const m=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const S=u.run();if(n||$||(y?S.some((P,O)=>Ht(P,c[O])):Ht(S,c))){v&&v();const P=Zt;Zt=u;try{const O=[S,c===us?void 0:y&&c[0]===us?[]:c,_];l?l(t,3,O):t(...O),c=S}finally{Zt=P}}}else u.run()};return a&&a(m),u=new Ul(d),u.scheduler=i?()=>i(m,!1):m,_=w=>mf(w,!1,u),v=u.onStop=()=>{const w=nn.get(u);if(w){if(l)l(w,4);else for(const S of w)S();nn.delete(u)}},t?s?m(!0):c=u.run():i?i(m.bind(null,!0),!0):u.run(),p.pause=u.pause.bind(u),p.resume=u.resume.bind(u),p.stop=p,p}function Nt(e,t=1/0,r){if(t<=0||!Oe(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Be(e))Nt(e.value,t,r);else if(ae(e))for(let s=0;s{Nt(s,t,r)});else if(jl(e)){for(const s in e)Nt(e[s],t,r);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Nt(e[s],t,r)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ss(e,t,r,s){try{return s?e(...s):e()}catch(n){$n(n,t,r)}}function Et(e,t,r,s){if(ue(e)){const n=ss(e,t,r,s);return n&&Al(n)&&n.catch(o=>{$n(o,t,r)}),n}if(ae(e)){const n=[];for(let o=0;o>>1,n=We[s],o=Jr(n);o=Jr(r)?We.push(e):We.splice(vf(t),0,e),e.flags|=1,nu()}}function nu(){on||(on=su.then(iu))}function _f(e){ae(e)?vr.push(...e):Ut&&e.id===-1?Ut.splice(fr+1,0,e):e.flags&1||(vr.push(e),e.flags|=1),nu()}function di(e,t,r=vt+1){for(;rJr(r)-Jr(s));if(vr.length=0,Ut){Ut.push(...t);return}for(Ut=t,fr=0;fre.id==null?e.flags&2?-1:1/0:e.id;function iu(e){try{for(vt=0;vt{s._d&&$i(-1);const o=an(t);let i;try{i=e(...n)}finally{an(o),s._d&&$i(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function ge(e,t){if(rt===null)return e;const r=Rn(rt),s=e.dirs||(e.dirs=[]);for(let n=0;ne.__isTeleport;function Jo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Jo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function lu(e,t){return ue(e)?ze({name:e.name},t,{setup:e}):e}function uu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ln(e,t,r,s,n=!1){if(ae(e)){e.forEach(($,y)=>ln($,t&&(ae(t)?t[y]:t),r,s,n));return}if(Lr(s)&&!n){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&ln(e,t,r,s.component.subTree);return}const o=s.shapeFlag&4?Rn(s.component):s.el,i=n?null:o,{i:a,r:l}=e,f=t&&t.r,u=a.refs===Re?a.refs={}:a.refs,d=a.setupState,v=we(d),_=d===Re?()=>!1:$=>$e(v,$);if(f!=null&&f!==l&&(Ie(f)?(u[f]=null,_(f)&&(d[f]=null)):Be(f)&&(f.value=null)),ue(l))ss(l,a,12,[i,u]);else{const $=Ie(l),y=Be(l);if($||y){const h=()=>{if(e.f){const p=$?_(l)?d[l]:u[l]:l.value;n?ae(p)&&qo(p,o):ae(p)?p.includes(o)||p.push(o):$?(u[l]=[o],_(l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else $?(u[l]=i,_(l)&&(d[l]=i)):y&&(l.value=i,e.k&&(u[e.k]=i))};i?(h.id=-1,et(h,r)):h()}}}bn().requestIdleCallback;bn().cancelIdleCallback;const Lr=e=>!!e.type.__asyncLoader,cu=e=>e.type.__isKeepAlive;function $f(e,t){fu(e,"a",t)}function Ef(e,t){fu(e,"da",t)}function fu(e,t,r=Ve){const s=e.__wdc||(e.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(En(t,s,r),r){let n=r.parent;for(;n&&n.parent;)cu(n.parent.vnode)&&Sf(s,t,r,n),n=n.parent}}function Sf(e,t,r,s){const n=En(t,e,s,!0);hu(()=>{qo(s[t],n)},r)}function En(e,t,r=Ve,s=!1){if(r){const n=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Bt();const a=ns(r),l=Et(t,r,e,i);return a(),zt(),l});return s?n.unshift(o):n.push(o),o}}const qt=e=>(t,r=Ve)=>{(!Xr||e==="sp")&&En(e,(...s)=>t(...s),r)},Pf=qt("bm"),du=qt("m"),Rf=qt("bu"),Tf=qt("u"),Of=qt("bum"),hu=qt("um"),Cf=qt("sp"),kf=qt("rtg"),Nf=qt("rtc");function Af(e,t=Ve){En("ec",e,t)}const If="components";function sr(e,t){return qf(If,e,!0,t)||e}const jf=Symbol.for("v-ndc");function qf(e,t,r=!0,s=!1){const n=rt||Ve;if(n){const o=n.type;{const a=$d(o,!1);if(a&&(a===t||a===it(t)||a===_n(it(t))))return o}const i=hi(n[e]||o[e],t)||hi(n.appContext[e],t);return!i&&s?o:i}}function hi(e,t){return e&&(e[t]||e[it(t)]||e[_n(it(t))])}function bt(e,t,r,s){let n;const o=r,i=ae(e);if(i||Ie(e)){const a=i&&gr(e);let l=!1;a&&(l=!ot(e),e=wn(e)),n=new Array(e.length);for(let f=0,u=e.length;ft(a,l,void 0,o));else{const a=Object.keys(e);n=new Array(a.length);for(let l=0,f=a.length;le?ju(e)?Rn(e):yo(e.parent):null,Fr=ze(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=>yo(e.parent),$root:e=>yo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mu(e),$forceUpdate:e=>e.f||(e.f=()=>{Go(e.update)}),$nextTick:e=>e.n||(e.n=zo.bind(e.proxy)),$watch:e=>rd.bind(e)}),Hn=(e,t)=>e!==Re&&!e.__isScriptSetup&&$e(e,t),xf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:s,data:n,props:o,accessCache:i,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const _=i[t];if(_!==void 0)switch(_){case 1:return s[t];case 2:return n[t];case 4:return r[t];case 3:return o[t]}else{if(Hn(s,t))return i[t]=1,s[t];if(n!==Re&&$e(n,t))return i[t]=2,n[t];if((f=e.propsOptions[0])&&$e(f,t))return i[t]=3,o[t];if(r!==Re&&$e(r,t))return i[t]=4,r[t];vo&&(i[t]=0)}}const u=Fr[t];let d,v;if(u)return t==="$attrs"&&Le(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(r!==Re&&$e(r,t))return i[t]=4,r[t];if(v=l.config.globalProperties,$e(v,t))return v[t]},set({_:e},t,r){const{data:s,setupState:n,ctx:o}=e;return Hn(n,t)?(n[t]=r,!0):s!==Re&&$e(s,t)?(s[t]=r,!0):$e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:s,appContext:n,propsOptions:o}},i){let a;return!!r[i]||e!==Re&&$e(e,i)||Hn(t,i)||(a=o[0])&&$e(a,i)||$e(s,i)||$e(Fr,i)||$e(n.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:$e(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function pi(e){return ae(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let vo=!0;function Mf(e){const t=mu(e),r=e.proxy,s=e.ctx;vo=!1,t.beforeCreate&&mi(t.beforeCreate,e,"bc");const{data:n,computed:o,methods:i,watch:a,provide:l,inject:f,created:u,beforeMount:d,mounted:v,beforeUpdate:_,updated:$,activated:y,deactivated:h,beforeDestroy:p,beforeUnmount:c,destroyed:m,unmounted:w,render:S,renderTracked:P,renderTriggered:O,errorCaptured:j,serverPrefetch:H,expose:Q,inheritAttrs:Y,components:ie,directives:te,filters:de}=t;if(f&&Df(f,s,null),i)for(const pe in i){const re=i[pe];ue(re)&&(s[pe]=re.bind(r))}if(n){const pe=n.call(r,r);Oe(pe)&&(e.data=Pr(pe))}if(vo=!0,o)for(const pe in o){const re=o[pe],xe=ue(re)?re.bind(r,r):ue(re.get)?re.get.bind(r,r):wt,G=!ue(re)&&ue(re.set)?re.set.bind(r):wt,I=lt({get:xe,set:G});Object.defineProperty(s,pe,{enumerable:!0,configurable:!0,get:()=>I.value,set:F=>I.value=F})}if(a)for(const pe in a)pu(a[pe],s,r,pe);if(l){const pe=ue(l)?l.call(r):l;Reflect.ownKeys(pe).forEach(re=>{Ws(re,pe[re])})}u&&mi(u,e,"c");function Ee(pe,re){ae(re)?re.forEach(xe=>pe(xe.bind(r))):re&&pe(re.bind(r))}if(Ee(Pf,d),Ee(du,v),Ee(Rf,_),Ee(Tf,$),Ee($f,y),Ee(Ef,h),Ee(Af,j),Ee(Nf,P),Ee(kf,O),Ee(Of,c),Ee(hu,w),Ee(Cf,H),ae(Q))if(Q.length){const pe=e.exposed||(e.exposed={});Q.forEach(re=>{Object.defineProperty(pe,re,{get:()=>r[re],set:xe=>r[re]=xe})})}else e.exposed||(e.exposed={});S&&e.render===wt&&(e.render=S),Y!=null&&(e.inheritAttrs=Y),ie&&(e.components=ie),te&&(e.directives=te),H&&uu(e)}function Df(e,t,r=wt){ae(e)&&(e=_o(e));for(const s in e){const n=e[s];let o;Oe(n)?"default"in n?o=It(n.from||s,n.default,!0):o=It(n.from||s):o=It(n),Be(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function mi(e,t,r){Et(ae(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,r)}function pu(e,t,r,s){let n=s.includes(".")?Cu(r,s):()=>r[s];if(Ie(e)){const o=t[e];ue(o)&&Xs(n,o)}else if(ue(e))Xs(n,e.bind(r));else if(Oe(e))if(ae(e))e.forEach(o=>pu(o,t,r,s));else{const o=ue(e.handler)?e.handler.bind(r):t[e.handler];ue(o)&&Xs(n,o,e)}}function mu(e){const t=e.type,{mixins:r,extends:s}=t,{mixins:n,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!n.length&&!r&&!s?l=t:(l={},n.length&&n.forEach(f=>un(l,f,i,!0)),un(l,t,i)),Oe(t)&&o.set(t,l),l}function un(e,t,r,s=!1){const{mixins:n,extends:o}=t;o&&un(e,o,r,!0),n&&n.forEach(i=>un(e,i,r,!0));for(const i in t)if(!(s&&i==="expose")){const a=Uf[i]||r&&r[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Uf={data:gi,props:yi,emits:yi,methods:xr,computed:xr,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:xr,directives:xr,watch:Ff,provide:gi,inject:Lf};function gi(e,t){return t?e?function(){return ze(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Lf(e,t){return xr(_o(e),_o(t))}function _o(e){if(ae(e)){const t={};for(let r=0;r1)return r&&ue(t)?t.call(s&&s.proxy):t}}const yu={},vu=()=>Object.create(yu),_u=e=>Object.getPrototypeOf(e)===yu;function Kf(e,t,r,s=!1){const n={},o=vu();e.propsDefaults=Object.create(null),bu(e,t,n,o);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);r?e.props=s?n:Zl(n):e.type.props?e.props=n:e.props=o,e.attrs=o}function Bf(e,t,r,s){const{props:n,attrs:o,vnode:{patchFlag:i}}=e,a=we(n),[l]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[v,_]=wu(d,t,!0);ze(i,v),_&&a.push(..._)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Oe(e)&&s.set(e,pr),pr;if(ae(o))for(let u=0;ue[0]==="_"||e==="$stable",Wo=e=>ae(e)?e.map(_t):[_t(e)],Gf=(e,t,r)=>{if(t._n)return t;const s=rr((...n)=>Wo(t(...n)),r);return s._c=!1,s},Eu=(e,t,r)=>{const s=e._ctx;for(const n in e){if($u(n))continue;const o=e[n];if(ue(o))t[n]=Gf(n,o,s);else if(o!=null){const i=Wo(o);t[n]=()=>i}}},Su=(e,t)=>{const r=Wo(t);e.slots.default=()=>r},Pu=(e,t,r)=>{for(const s in t)(r||s!=="_")&&(e[s]=t[s])},Jf=(e,t,r)=>{const s=e.slots=vu();if(e.vnode.shapeFlag&32){const n=t._;n?(Pu(s,t,r),r&&ql(s,"_",n,!0)):Eu(t,s)}else t&&Su(e,t)},Wf=(e,t,r)=>{const{vnode:s,slots:n}=e;let o=!0,i=Re;if(s.shapeFlag&32){const a=t._;a?r&&a===1?o=!1:Pu(n,t,r):(o=!t.$stable,Eu(t,n)),i=t}else t&&(Su(e,t),i={default:1});if(o)for(const a in n)!$u(a)&&i[a]==null&&delete n[a]},et=ud;function Xf(e){return Qf(e)}function Qf(e,t){const r=bn();r.__VUE__=!0;const{insert:s,remove:n,patchProp:o,createElement:i,createText:a,createComment:l,setText:f,setElementText:u,parentNode:d,nextSibling:v,setScopeId:_=wt,insertStaticContent:$}=e,y=(g,b,T,A=null,x=null,U=null,W=void 0,z=null,B=!!b.dynamicChildren)=>{if(g===b)return;g&&!kr(g,b)&&(A=N(g),F(g,x,U,!0),g=null),b.patchFlag===-2&&(B=!1,b.dynamicChildren=null);const{type:V,ref:ne,shapeFlag:X}=b;switch(V){case Pn:h(g,b,T,A);break;case ir:p(g,b,T,A);break;case Qs:g==null&&c(b,T,A,W);break;case qe:ie(g,b,T,A,x,U,W,z,B);break;default:X&1?S(g,b,T,A,x,U,W,z,B):X&6?te(g,b,T,A,x,U,W,z,B):(X&64||X&128)&&V.process(g,b,T,A,x,U,W,z,B,J)}ne!=null&&x&&ln(ne,g&&g.ref,U,b||g,!b)},h=(g,b,T,A)=>{if(g==null)s(b.el=a(b.children),T,A);else{const x=b.el=g.el;b.children!==g.children&&f(x,b.children)}},p=(g,b,T,A)=>{g==null?s(b.el=l(b.children||""),T,A):b.el=g.el},c=(g,b,T,A)=>{[g.el,g.anchor]=$(g.children,b,T,A,g.el,g.anchor)},m=({el:g,anchor:b},T,A)=>{let x;for(;g&&g!==b;)x=v(g),s(g,T,A),g=x;s(b,T,A)},w=({el:g,anchor:b})=>{let T;for(;g&&g!==b;)T=v(g),n(g),g=T;n(b)},S=(g,b,T,A,x,U,W,z,B)=>{b.type==="svg"?W="svg":b.type==="math"&&(W="mathml"),g==null?P(b,T,A,x,U,W,z,B):H(g,b,x,U,W,z,B)},P=(g,b,T,A,x,U,W,z)=>{let B,V;const{props:ne,shapeFlag:X,transition:oe,dirs:le}=g;if(B=g.el=i(g.type,U,ne&&ne.is,ne),X&8?u(B,g.children):X&16&&j(g.children,B,null,A,x,Kn(g,U),W,z),le&&Jt(g,null,A,"created"),O(B,g,g.scopeId,W,A),ne){for(const _e in ne)_e!=="value"&&!Mr(_e)&&o(B,_e,null,ne[_e],U,A);"value"in ne&&o(B,"value",null,ne.value,U),(V=ne.onVnodeBeforeMount)&>(V,A,g)}le&&Jt(g,null,A,"beforeMount");const fe=Yf(x,oe);fe&&oe.beforeEnter(B),s(B,b,T),((V=ne&&ne.onVnodeMounted)||fe||le)&&et(()=>{V&>(V,A,g),fe&&oe.enter(B),le&&Jt(g,null,A,"mounted")},x)},O=(g,b,T,A,x)=>{if(T&&_(g,T),A)for(let U=0;U{for(let V=B;V{const z=b.el=g.el;let{patchFlag:B,dynamicChildren:V,dirs:ne}=b;B|=g.patchFlag&16;const X=g.props||Re,oe=b.props||Re;let le;if(T&&Wt(T,!1),(le=oe.onVnodeBeforeUpdate)&>(le,T,b,g),ne&&Jt(b,g,T,"beforeUpdate"),T&&Wt(T,!0),(X.innerHTML&&oe.innerHTML==null||X.textContent&&oe.textContent==null)&&u(z,""),V?Q(g.dynamicChildren,V,z,T,A,Kn(b,x),U):W||re(g,b,z,null,T,A,Kn(b,x),U,!1),B>0){if(B&16)Y(z,X,oe,T,x);else if(B&2&&X.class!==oe.class&&o(z,"class",null,oe.class,x),B&4&&o(z,"style",X.style,oe.style,x),B&8){const fe=b.dynamicProps;for(let _e=0;_e{le&>(le,T,b,g),ne&&Jt(b,g,T,"updated")},A)},Q=(g,b,T,A,x,U,W)=>{for(let z=0;z{if(b!==T){if(b!==Re)for(const U in b)!Mr(U)&&!(U in T)&&o(g,U,b[U],null,x,A);for(const U in T){if(Mr(U))continue;const W=T[U],z=b[U];W!==z&&U!=="value"&&o(g,U,z,W,x,A)}"value"in T&&o(g,"value",b.value,T.value,x)}},ie=(g,b,T,A,x,U,W,z,B)=>{const V=b.el=g?g.el:a(""),ne=b.anchor=g?g.anchor:a("");let{patchFlag:X,dynamicChildren:oe,slotScopeIds:le}=b;le&&(z=z?z.concat(le):le),g==null?(s(V,T,A),s(ne,T,A),j(b.children||[],T,ne,x,U,W,z,B)):X>0&&X&64&&oe&&g.dynamicChildren?(Q(g.dynamicChildren,oe,T,x,U,W,z),(b.key!=null||x&&b===x.subTree)&&Ru(g,b,!0)):re(g,b,T,ne,x,U,W,z,B)},te=(g,b,T,A,x,U,W,z,B)=>{b.slotScopeIds=z,g==null?b.shapeFlag&512?x.ctx.activate(b,T,A,W,B):de(b,T,A,x,U,W,B):Ce(g,b,B)},de=(g,b,T,A,x,U,W)=>{const z=g.component=yd(g,A,x);if(cu(g)&&(z.ctx.renderer=J),vd(z,!1,W),z.asyncDep){if(x&&x.registerDep(z,Ee,W),!g.el){const B=z.subTree=Ae(ir);p(null,B,b,T)}}else Ee(z,g,b,T,x,U,W)},Ce=(g,b,T)=>{const A=b.component=g.component;if(ad(g,b,T))if(A.asyncDep&&!A.asyncResolved){pe(A,b,T);return}else A.next=b,A.update();else b.el=g.el,A.vnode=b},Ee=(g,b,T,A,x,U,W)=>{const z=()=>{if(g.isMounted){let{next:X,bu:oe,u:le,parent:fe,vnode:_e}=g;{const pt=Tu(g);if(pt){X&&(X.el=_e.el,pe(g,X,W)),pt.asyncDep.then(()=>{g.isUnmounted||z()});return}}let ye=X,De;Wt(g,!1),X?(X.el=_e.el,pe(g,X,W)):X=_e,oe&&Js(oe),(De=X.props&&X.props.onVnodeBeforeUpdate)&>(De,fe,X,_e),Wt(g,!0);const Ue=bi(g),ht=g.subTree;g.subTree=Ue,y(ht,Ue,d(ht.el),N(ht),g,x,U),X.el=Ue.el,ye===null&&ld(g,Ue.el),le&&et(le,x),(De=X.props&&X.props.onVnodeUpdated)&&et(()=>gt(De,fe,X,_e),x)}else{let X;const{el:oe,props:le}=b,{bm:fe,m:_e,parent:ye,root:De,type:Ue}=g,ht=Lr(b);Wt(g,!1),fe&&Js(fe),!ht&&(X=le&&le.onVnodeBeforeMount)&>(X,ye,b),Wt(g,!0);{De.ce&&De.ce._injectChildStyle(Ue);const pt=g.subTree=bi(g);y(null,pt,T,A,g,x,U),b.el=pt.el}if(_e&&et(_e,x),!ht&&(X=le&&le.onVnodeMounted)){const pt=b;et(()=>gt(X,ye,pt),x)}(b.shapeFlag&256||ye&&Lr(ye.vnode)&&ye.vnode.shapeFlag&256)&&g.a&&et(g.a,x),g.isMounted=!0,b=T=A=null}};g.scope.on();const B=g.effect=new Ul(z);g.scope.off();const V=g.update=B.run.bind(B),ne=g.job=B.runIfDirty.bind(B);ne.i=g,ne.id=g.uid,B.scheduler=()=>Go(ne),Wt(g,!0),V()},pe=(g,b,T)=>{b.component=g;const A=g.vnode.props;g.vnode=b,g.next=null,Bf(g,b.props,A,T),Wf(g,b.children,T),Bt(),di(g),zt()},re=(g,b,T,A,x,U,W,z,B=!1)=>{const V=g&&g.children,ne=g?g.shapeFlag:0,X=b.children,{patchFlag:oe,shapeFlag:le}=b;if(oe>0){if(oe&128){G(V,X,T,A,x,U,W,z,B);return}else if(oe&256){xe(V,X,T,A,x,U,W,z,B);return}}le&8?(ne&16&&M(V,x,U),X!==V&&u(T,X)):ne&16?le&16?G(V,X,T,A,x,U,W,z,B):M(V,x,U,!0):(ne&8&&u(T,""),le&16&&j(X,T,A,x,U,W,z,B))},xe=(g,b,T,A,x,U,W,z,B)=>{g=g||pr,b=b||pr;const V=g.length,ne=b.length,X=Math.min(V,ne);let oe;for(oe=0;oene?M(g,x,U,!0,!1,X):j(b,T,A,x,U,W,z,B,X)},G=(g,b,T,A,x,U,W,z,B)=>{let V=0;const ne=b.length;let X=g.length-1,oe=ne-1;for(;V<=X&&V<=oe;){const le=g[V],fe=b[V]=B?Lt(b[V]):_t(b[V]);if(kr(le,fe))y(le,fe,T,null,x,U,W,z,B);else break;V++}for(;V<=X&&V<=oe;){const le=g[X],fe=b[oe]=B?Lt(b[oe]):_t(b[oe]);if(kr(le,fe))y(le,fe,T,null,x,U,W,z,B);else break;X--,oe--}if(V>X){if(V<=oe){const le=oe+1,fe=leoe)for(;V<=X;)F(g[V],x,U,!0),V++;else{const le=V,fe=V,_e=new Map;for(V=fe;V<=oe;V++){const Ye=b[V]=B?Lt(b[V]):_t(b[V]);Ye.key!=null&&_e.set(Ye.key,V)}let ye,De=0;const Ue=oe-fe+1;let ht=!1,pt=0;const Or=new Array(Ue);for(V=0;V=Ue){F(Ye,x,U,!0);continue}let mt;if(Ye.key!=null)mt=_e.get(Ye.key);else for(ye=fe;ye<=oe;ye++)if(Or[ye-fe]===0&&kr(Ye,b[ye])){mt=ye;break}mt===void 0?F(Ye,x,U,!0):(Or[mt-fe]=V+1,mt>=pt?pt=mt:ht=!0,y(Ye,b[mt],T,null,x,U,W,z,B),De++)}const ii=ht?Zf(Or):pr;for(ye=ii.length-1,V=Ue-1;V>=0;V--){const Ye=fe+V,mt=b[Ye],ai=Ye+1{const{el:U,type:W,transition:z,children:B,shapeFlag:V}=g;if(V&6){I(g.component.subTree,b,T,A);return}if(V&128){g.suspense.move(b,T,A);return}if(V&64){W.move(g,b,T,J);return}if(W===qe){s(U,b,T);for(let X=0;Xz.enter(U),x);else{const{leave:X,delayLeave:oe,afterLeave:le}=z,fe=()=>s(U,b,T),_e=()=>{X(U,()=>{fe(),le&&le()})};oe?oe(U,fe,_e):_e()}else s(U,b,T)},F=(g,b,T,A=!1,x=!1)=>{const{type:U,props:W,ref:z,children:B,dynamicChildren:V,shapeFlag:ne,patchFlag:X,dirs:oe,cacheIndex:le}=g;if(X===-2&&(x=!1),z!=null&&ln(z,null,T,g,!0),le!=null&&(b.renderCache[le]=void 0),ne&256){b.ctx.deactivate(g);return}const fe=ne&1&&oe,_e=!Lr(g);let ye;if(_e&&(ye=W&&W.onVnodeBeforeUnmount)&>(ye,b,g),ne&6)C(g.component,T,A);else{if(ne&128){g.suspense.unmount(T,A);return}fe&&Jt(g,null,b,"beforeUnmount"),ne&64?g.type.remove(g,b,T,J,A):V&&!V.hasOnce&&(U!==qe||X>0&&X&64)?M(V,b,T,!1,!0):(U===qe&&X&384||!x&&ne&16)&&M(B,b,T),A&&q(g)}(_e&&(ye=W&&W.onVnodeUnmounted)||fe)&&et(()=>{ye&>(ye,b,g),fe&&Jt(g,null,b,"unmounted")},T)},q=g=>{const{type:b,el:T,anchor:A,transition:x}=g;if(b===qe){E(T,A);return}if(b===Qs){w(g);return}const U=()=>{n(T),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(g.shapeFlag&1&&x&&!x.persisted){const{leave:W,delayLeave:z}=x,B=()=>W(T,U);z?z(g.el,U,B):B()}else U()},E=(g,b)=>{let T;for(;g!==b;)T=v(g),n(g),g=T;n(b)},C=(g,b,T)=>{const{bum:A,scope:x,job:U,subTree:W,um:z,m:B,a:V}=g;_i(B),_i(V),A&&Js(A),x.stop(),U&&(U.flags|=8,F(W,g,b,T)),z&&et(z,b),et(()=>{g.isUnmounted=!0},b),b&&b.pendingBranch&&!b.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===b.pendingId&&(b.deps--,b.deps===0&&b.resolve())},M=(g,b,T,A=!1,x=!1,U=0)=>{for(let W=U;W{if(g.shapeFlag&6)return N(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const b=v(g.anchor||g.el),T=b&&b[bf];return T?v(T):b};let L=!1;const K=(g,b,T)=>{g==null?b._vnode&&F(b._vnode,null,null,!0):y(b._vnode||null,g,b,null,null,null,T),b._vnode=g,L||(L=!0,di(),ou(),L=!1)},J={p:y,um:F,m:I,r:q,mt:de,mc:j,pc:re,pbc:Q,n:N,o:e};return{render:K,hydrate:void 0,createApp:Hf(K)}}function Kn({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Wt({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ru(e,t,r=!1){const s=e.children,n=t.children;if(ae(s)&&ae(n))for(let o=0;o>1,e[r[a]]0&&(t[s]=r[o-1]),r[o]=s)}}for(o=r.length,i=r[o-1];o-- >0;)r[o]=i,i=t[i];return r}function Tu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tu(t)}function _i(e){if(e)for(let t=0;tIt(ed);function Xs(e,t,r){return Ou(e,t,r)}function Ou(e,t,r=Re){const{immediate:s,deep:n,flush:o,once:i}=r,a=ze({},r),l=t&&s||!t&&o!=="post";let f;if(Xr){if(o==="sync"){const _=td();f=_.__watcherHandles||(_.__watcherHandles=[])}else if(!l){const _=()=>{};return _.stop=wt,_.resume=wt,_.pause=wt,_}}const u=Ve;a.call=(_,$,y)=>Et(_,u,$,y);let d=!1;o==="post"?a.scheduler=_=>{et(_,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(_,$)=>{$?_():Go(_)}),a.augmentJob=_=>{t&&(_.flags|=4),d&&(_.flags|=2,u&&(_.id=u.uid,_.i=u))};const v=gf(e,t,a);return Xr&&(f?f.push(v):l&&v()),v}function rd(e,t,r){const s=this.proxy,n=Ie(e)?e.includes(".")?Cu(s,e):()=>s[e]:e.bind(s,s);let o;ue(t)?o=t:(o=t.handler,r=t);const i=ns(this),a=Ou(n,o.bind(s),r);return i(),a}function Cu(e,t){const r=t.split(".");return()=>{let s=e;for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${it(t)}Modifiers`]||e[`${Kt(t)}Modifiers`];function nd(e,t,...r){if(e.isUnmounted)return;const s=e.vnode.props||Re;let n=r;const o=t.startsWith("update:"),i=o&&sd(s,t.slice(7));i&&(i.trim&&(n=r.map(u=>Ie(u)?u.trim():u)),i.number&&(n=r.map(sn)));let a,l=s[a=Dn(t)]||s[a=Dn(it(t))];!l&&o&&(l=s[a=Dn(Kt(t))]),l&&Et(l,e,6,n);const f=s[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Et(f,e,6,n)}}function ku(e,t,r=!1){const s=t.emitsCache,n=s.get(e);if(n!==void 0)return n;const o=e.emits;let i={},a=!1;if(!ue(e)){const l=f=>{const u=ku(f,t,!0);u&&(a=!0,ze(i,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Oe(e)&&s.set(e,null),null):(ae(o)?o.forEach(l=>i[l]=null):ze(i,o),Oe(e)&&s.set(e,i),i)}function Sn(e,t){return!e||!yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),$e(e,t[0].toLowerCase()+t.slice(1))||$e(e,Kt(t))||$e(e,t))}function bi(e){const{type:t,vnode:r,proxy:s,withProxy:n,propsOptions:[o],slots:i,attrs:a,emit:l,render:f,renderCache:u,props:d,data:v,setupState:_,ctx:$,inheritAttrs:y}=e,h=an(e);let p,c;try{if(r.shapeFlag&4){const w=n||s,S=w;p=_t(f.call(S,w,u,d,_,v,$)),c=a}else{const w=t;p=_t(w.length>1?w(d,{attrs:a,slots:i,emit:l}):w(d,null)),c=t.props?a:od(a)}}catch(w){Vr.length=0,$n(w,e,1),p=Ae(ir)}let m=p;if(c&&y!==!1){const w=Object.keys(c),{shapeFlag:S}=m;w.length&&S&7&&(o&&w.some(jo)&&(c=id(c,o)),m=br(m,c,!1,!0))}return r.dirs&&(m=br(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(r.dirs):r.dirs),r.transition&&Jo(m,r.transition),p=m,an(h),p}const od=e=>{let t;for(const r in e)(r==="class"||r==="style"||yn(r))&&((t||(t={}))[r]=e[r]);return t},id=(e,t)=>{const r={};for(const s in e)(!jo(s)||!(s.slice(9)in t))&&(r[s]=e[s]);return r};function ad(e,t,r){const{props:s,children:n,component:o}=e,{props:i,children:a,patchFlag:l}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return s?wi(s,i,f):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function ud(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):_f(e)}const qe=Symbol.for("v-fgt"),Pn=Symbol.for("v-txt"),ir=Symbol.for("v-cmt"),Qs=Symbol.for("v-stc"),Vr=[];let st=null;function Z(e=!1){Vr.push(st=e?null:[])}function cd(){Vr.pop(),st=Vr[Vr.length-1]||null}let Wr=1;function $i(e,t=!1){Wr+=e,e<0&&st&&t&&(st.hasOnce=!0)}function Au(e){return e.dynamicChildren=Wr>0?st||pr:null,cd(),Wr>0&&st&&st.push(e),e}function ee(e,t,r,s,n,o){return Au(R(e,t,r,s,n,o,!0))}function fd(e,t,r,s,n){return Au(Ae(e,t,r,s,n,!0))}function cn(e){return e?e.__v_isVNode===!0:!1}function kr(e,t){return e.type===t.type&&e.key===t.key}const Iu=({key:e})=>e??null,Ys=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||Be(e)||ue(e)?{i:rt,r:e,k:t,f:!!r}:e:null);function R(e,t=null,r=null,s=0,n=null,o=e===qe?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Iu(t),ref:t&&Ys(t),scopeId:au,slotScopeIds:null,children:r,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:o,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:rt};return a?(Xo(l,r),o&128&&e.normalize(l)):r&&(l.shapeFlag|=Ie(r)?8:16),Wr>0&&!i&&st&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&st.push(l),l}const Ae=dd;function dd(e,t=null,r=null,s=0,n=null,o=!1){if((!e||e===jf)&&(e=ir),cn(e)){const a=br(e,t,!0);return r&&Xo(a,r),Wr>0&&!o&&st&&(a.shapeFlag&6?st[st.indexOf(e)]=a:st.push(a)),a.patchFlag=-2,a}if(Ed(e)&&(e=e.__vccOpts),t){t=hd(t);let{class:a,style:l}=t;a&&!Ie(a)&&(t.class=Xe(a)),Oe(l)&&(Bo(l)&&!ae(l)&&(l=ze({},l)),t.style=Mo(l))}const i=Ie(e)?1:Nu(e)?128:wf(e)?64:Oe(e)?4:ue(e)?2:0;return R(e,t,r,s,n,i,o,!0)}function hd(e){return e?Bo(e)||_u(e)?ze({},e):e:null}function br(e,t,r=!1,s=!1){const{props:n,ref:o,patchFlag:i,children:a,transition:l}=e,f=t?pd(n||{},t):n,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Iu(f),ref:t&&t.ref?r&&o?ae(o)?o.concat(Ys(t)):[o,Ys(t)]:Ys(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&br(e.ssContent),ssFallback:e.ssFallback&&br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Jo(u,l.clone(u)),u}function Ke(e=" ",t=0){return Ae(Pn,null,e,t)}function wo(e,t){const r=Ae(Qs,null,e);return r.staticCount=t,r}function Pe(e="",t=!1){return t?(Z(),fd(ir,null,e)):Ae(ir,null,e)}function _t(e){return e==null||typeof e=="boolean"?Ae(ir):ae(e)?Ae(qe,null,e.slice()):cn(e)?Lt(e):Ae(Pn,null,String(e))}function Lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:br(e)}function Xo(e,t){let r=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ae(t))r=16;else if(typeof t=="object")if(s&65){const n=t.default;n&&(n._c&&(n._d=!1),Xo(e,n()),n._c&&(n._d=!0));return}else{r=32;const n=t._;!n&&!_u(t)?t._ctx=rt:n===3&&rt&&(rt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:rt},r=32):(t=String(t),s&64?(r=16,t=[Ke(t)]):r=8);e.children=t,e.shapeFlag|=r}function pd(...e){const t={};for(let r=0;r{let n;return(n=e[r])||(n=e[r]=[]),n.push(s),o=>{n.length>1?n.forEach(i=>i(o)):n[0](o)}};fn=t("__VUE_INSTANCE_SETTERS__",r=>Ve=r),$o=t("__VUE_SSR_SETTERS__",r=>Xr=r)}const ns=e=>{const t=Ve;return fn(e),e.scope.on(),()=>{e.scope.off(),fn(t)}},Ei=()=>{Ve&&Ve.scope.off(),fn(null)};function ju(e){return e.vnode.shapeFlag&4}let Xr=!1;function vd(e,t=!1,r=!1){t&&$o(t);const{props:s,children:n}=e.vnode,o=ju(e);Kf(e,s,o,t),Jf(e,n,r);const i=o?_d(e,t):void 0;return t&&$o(!1),i}function _d(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xf);const{setup:s}=r;if(s){Bt();const n=e.setupContext=s.length>1?wd(e):null,o=ns(e),i=ss(s,e,0,[e.props,n]),a=Al(i);if(zt(),o(),(a||e.sp)&&!Lr(e)&&uu(e),a){if(i.then(Ei,Ei),t)return i.then(l=>{Si(e,l)}).catch(l=>{$n(l,e,0)});e.asyncDep=i}else Si(e,i)}else qu(e)}function Si(e,t,r){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Oe(t)&&(e.setupState=ru(t)),qu(e)}function qu(e,t,r){const s=e.type;e.render||(e.render=s.render||wt);{const n=ns(e);Bt();try{Mf(e)}finally{zt(),n()}}}const bd={get(e,t){return Le(e,"get",""),e[t]}};function wd(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,bd),slots:e.slots,emit:e.emit,expose:t}}function Rn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ru(uf(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Fr)return Fr[r](e)},has(t,r){return r in t||r in Fr}})):e.proxy}function $d(e,t=!0){return ue(e)?e.displayName||e.name:e.name||t&&e.__name}function Ed(e){return ue(e)&&"__vccOpts"in e}const lt=(e,t)=>pf(e,t,Xr);function xu(e,t,r){const s=arguments.length;return s===2?Oe(t)&&!ae(t)?cn(t)?Ae(e,null,[t]):Ae(e,t):Ae(e,null,t):(s>3?r=Array.prototype.slice.call(arguments,2):s===3&&cn(r)&&(r=[r]),Ae(e,t,r))}const Sd="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Eo;const Pi=typeof window<"u"&&window.trustedTypes;if(Pi)try{Eo=Pi.createPolicy("vue",{createHTML:e=>e})}catch{}const Mu=Eo?e=>Eo.createHTML(e):e=>e,Pd="http://www.w3.org/2000/svg",Rd="http://www.w3.org/1998/Math/MathML",Ct=typeof document<"u"?document:null,Ri=Ct&&Ct.createElement("template"),Td={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,s)=>{const n=t==="svg"?Ct.createElementNS(Pd,e):t==="mathml"?Ct.createElementNS(Rd,e):r?Ct.createElement(e,{is:r}):Ct.createElement(e);return e==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:e=>Ct.createTextNode(e),createComment:e=>Ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,s,n,o){const i=r?r.previousSibling:t.lastChild;if(n&&(n===o||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),!(n===o||!(n=n.nextSibling)););else{Ri.innerHTML=Mu(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=Ri.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Od=Symbol("_vtc");function Cd(e,t,r){const s=e[Od];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Ti=Symbol("_vod"),kd=Symbol("_vsh"),Nd=Symbol(""),Ad=/(^|;)\s*display\s*:/;function Id(e,t,r){const s=e.style,n=Ie(r);let o=!1;if(r&&!n){if(t)if(Ie(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();r[a]==null&&Zs(s,a,"")}else for(const i in t)r[i]==null&&Zs(s,i,"");for(const i in r)i==="display"&&(o=!0),Zs(s,i,r[i])}else if(n){if(t!==r){const i=s[Nd];i&&(r+=";"+i),s.cssText=r,o=Ad.test(r)}}else t&&e.removeAttribute("style");Ti in e&&(e[Ti]=o?s.display:"",e[kd]&&(s.display="none"))}const Oi=/\s*!important$/;function Zs(e,t,r){if(ae(r))r.forEach(s=>Zs(e,t,s));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const s=jd(e,t);Oi.test(r)?e.setProperty(Kt(s),r.replace(Oi,""),"important"):e[s]=r}}const Ci=["Webkit","Moz","ms"],Bn={};function jd(e,t){const r=Bn[t];if(r)return r;let s=it(t);if(s!=="filter"&&s in e)return Bn[t]=s;s=_n(s);for(let n=0;nzn||(Dd.then(()=>zn=0),zn=Date.now());function Ld(e,t){const r=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=r.attached)return;Et(Fd(s,r.value),t,5,[s])};return r.value=e,r.attached=Ud(),r}function Fd(e,t){if(ae(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(s=>n=>!n._stopped&&s&&s(n))}else return t}const qi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vd=(e,t,r,s,n,o)=>{const i=n==="svg";t==="class"?Cd(e,s,i):t==="style"?Id(e,r,s):yn(t)?jo(t)||xd(e,t,r,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hd(e,t,s,i))?(Ai(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ni(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ie(s))?Ai(e,it(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ni(e,t,s,i))};function Hd(e,t,r,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&qi(t)&&ue(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return qi(t)&&Ie(r)?!1:t in e}const wr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ae(t)?r=>Js(t,r):t};function Kd(e){e.target.composing=!0}function xi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const jt=Symbol("_assign"),Ne={created(e,{modifiers:{lazy:t,trim:r,number:s}},n){e[jt]=wr(n);const o=s||n.props&&n.props.type==="number";Vt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;r&&(a=a.trim()),o&&(a=sn(a)),e[jt](a)}),r&&Vt(e,"change",()=>{e.value=e.value.trim()}),t||(Vt(e,"compositionstart",Kd),Vt(e,"compositionend",xi),Vt(e,"change",xi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:s,trim:n,number:o}},i){if(e[jt]=wr(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?sn(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===r||n&&e.value.trim()===l)||(e.value=l))}},dr={deep:!0,created(e,t,r){e[jt]=wr(r),Vt(e,"change",()=>{const s=e._modelValue,n=Qr(e),o=e.checked,i=e[jt];if(ae(s)){const a=Do(s,n),l=a!==-1;if(o&&!l)i(s.concat(n));else if(!o&&l){const f=[...s];f.splice(a,1),i(f)}}else if(Sr(s)){const a=new Set(s);o?a.add(n):a.delete(n),i(a)}else i(Du(e,o))})},mounted:Mi,beforeUpdate(e,t,r){e[jt]=wr(r),Mi(e,t,r)}};function Mi(e,{value:t,oldValue:r},s){e._modelValue=t;let n;if(ae(t))n=Do(t,s.props.value)>-1;else if(Sr(t))n=t.has(s.props.value);else{if(t===r)return;n=rs(t,Du(e,!0))}e.checked!==n&&(e.checked=n)}const Hr={deep:!0,created(e,{value:t,modifiers:{number:r}},s){const n=Sr(t);Vt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>r?sn(Qr(i)):Qr(i));e[jt](e.multiple?n?new Set(o):o:o[0]),e._assigning=!0,zo(()=>{e._assigning=!1})}),e[jt]=wr(s)},mounted(e,{value:t}){Di(e,t)},beforeUpdate(e,t,r){e[jt]=wr(r)},updated(e,{value:t}){e._assigning||Di(e,t)}};function Di(e,t){const r=e.multiple,s=ae(t);if(!(r&&!s&&!Sr(t))){for(let n=0,o=e.options.length;nString(f)===String(a)):i.selected=Do(t,a)>-1}else i.selected=t.has(a);else if(rs(Qr(i),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qr(e){return"_value"in e?e._value:e.value}function Du(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Bd=["ctrl","shift","alt","meta"],zd={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Bd.some(r=>e[`${r}Key`]&&!t.includes(r))},Uu=(e,t)=>{const r=e._withMods||(e._withMods={}),s=t.join(".");return r[s]||(r[s]=(n,...o)=>{for(let i=0;i{const r=e._withKeys||(e._withKeys={}),s=t.join(".");return r[s]||(r[s]=n=>{if(!("key"in n))return;const o=Kt(n.key);if(t.some(i=>i===o||Gd[i]===o))return e(n)})},Jd=ze({patchProp:Vd},Td);let Ui;function Wd(){return Ui||(Ui=Xf(Jd))}const Xd=(...e)=>{const t=Wd().createApp(...e),{mount:r}=t;return t.mount=s=>{const n=Yd(s);if(!n)return;const o=t._component;!ue(o)&&!o.render&&!o.template&&(o.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const i=r(n,!1,Qd(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),i},t};function Qd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yd(e){return Ie(e)?document.querySelector(e):e}const xt=(e,t)=>{const r=e.__vccOpts||e;for(const[s,n]of t)r[s]=n;return r},Zd={name:"NavSidebar",data(){return{recentRequests:[{name:"GET Users",method:"GET",url:"https://api.example.com/users"},{name:"POST User",method:"POST",url:"https://api.example.com/users"},{name:"GET Products",method:"GET",url:"https://api.example.com/products"}]}},methods:{loadRequest(e){this.$router.push("/request-builder"),this.$emit("load-request",e)}}},eh={class:"sidebar"},th={class:"nav-section"},rh={class:"nav-section"},sh=["onClick"];function nh(e,t,r,s,n,o){const i=sr("router-link");return Z(),ee("div",eh,[t[5]||(t[5]=R("div",{class:"logo"},[R("h2",null,"API Test Generator")],-1)),R("nav",null,[R("div",th,[t[3]||(t[3]=R("h3",null,"Project",-1)),R("ul",null,[R("li",null,[Ae(i,{to:"/"},{default:rr(()=>t[0]||(t[0]=[Ke("Dashboard")])),_:1})]),R("li",null,[Ae(i,{to:"/request-builder"},{default:rr(()=>t[1]||(t[1]=[Ke("Request Builder")])),_:1})]),R("li",null,[Ae(i,{to:"/test-results"},{default:rr(()=>t[2]||(t[2]=[Ke("Test Results")])),_:1})])])]),R("div",rh,[t[4]||(t[4]=R("h3",null,"Recent Requests",-1)),R("ul",null,[(Z(!0),ee(qe,null,bt(n.recentRequests,(a,l)=>(Z(),ee("li",{key:l},[R("a",{href:"#",onClick:Uu(f=>o.loadRequest(a),["prevent"])},se(a.name),9,sh)]))),128))])])])])}const oh=xt(Zd,[["render",nh],["__scopeId","data-v-c93c1e92"]]);/*! + * vue-router v4.5.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const hr=typeof document<"u";function Lu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ih(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Lu(e.default)}const be=Object.assign;function Gn(e,t){const r={};for(const s in t){const n=t[s];r[s]=ct(n)?n.map(e):e(n)}return r}const Kr=()=>{},ct=Array.isArray,Fu=/#/g,ah=/&/g,lh=/\//g,uh=/=/g,ch=/\?/g,Vu=/\+/g,fh=/%5B/g,dh=/%5D/g,Hu=/%5E/g,hh=/%60/g,Ku=/%7B/g,ph=/%7C/g,Bu=/%7D/g,mh=/%20/g;function Yo(e){return encodeURI(""+e).replace(ph,"|").replace(fh,"[").replace(dh,"]")}function gh(e){return Yo(e).replace(Ku,"{").replace(Bu,"}").replace(Hu,"^")}function So(e){return Yo(e).replace(Vu,"%2B").replace(mh,"+").replace(Fu,"%23").replace(ah,"%26").replace(hh,"`").replace(Ku,"{").replace(Bu,"}").replace(Hu,"^")}function yh(e){return So(e).replace(uh,"%3D")}function vh(e){return Yo(e).replace(Fu,"%23").replace(ch,"%3F")}function _h(e){return e==null?"":vh(e).replace(lh,"%2F")}function Yr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bh=/\/$/,wh=e=>e.replace(bh,"");function Jn(e,t,r="/"){let s,n={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),n=e(o)),a>-1&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=Ph(s??t,r),{fullPath:s+(o&&"?")+o+i,path:s,query:n,hash:Yr(i)}}function $h(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Li(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Eh(e,t,r){const s=t.matched.length-1,n=r.matched.length-1;return s>-1&&s===n&&$r(t.matched[s],r.matched[n])&&zu(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function $r(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Sh(e[r],t[r]))return!1;return!0}function Sh(e,t){return ct(e)?Fi(e,t):ct(t)?Fi(t,e):e===t}function Fi(e,t){return ct(t)?e.length===t.length&&e.every((r,s)=>r===t[s]):e.length===1&&e[0]===t}function Ph(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),s=e.split("/"),n=s[s.length-1];(n===".."||n===".")&&s.push("");let o=r.length-1,i,a;for(i=0;i1&&o--;else break;return r.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const Mt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Zr;(function(e){e.pop="pop",e.push="push"})(Zr||(Zr={}));var Br;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Br||(Br={}));function Rh(e){if(!e)if(hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wh(e)}const Th=/^[^#]+#/;function Oh(e,t){return e.replace(Th,"#")+t}function Ch(e,t){const r=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-r.left-(t.left||0),top:s.top-r.top-(t.top||0)}}const Tn=()=>({left:window.scrollX,top:window.scrollY});function kh(e){let t;if("el"in e){const r=e.el,s=typeof r=="string"&&r.startsWith("#"),n=typeof r=="string"?s?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!n)return;t=Ch(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Vi(e,t){return(history.state?history.state.position-t:-1)+e}const Po=new Map;function Nh(e,t){Po.set(e,t)}function Ah(e){const t=Po.get(e);return Po.delete(e),t}let Ih=()=>location.protocol+"//"+location.host;function Gu(e,t){const{pathname:r,search:s,hash:n}=t,o=e.indexOf("#");if(o>-1){let a=n.includes(e.slice(o))?e.slice(o).length:1,l=n.slice(a);return l[0]!=="/"&&(l="/"+l),Li(l,"")}return Li(r,e)+s+n}function jh(e,t,r,s){let n=[],o=[],i=null;const a=({state:v})=>{const _=Gu(e,location),$=r.value,y=t.value;let h=0;if(v){if(r.value=_,t.value=v,i&&i===$){i=null;return}h=y?v.position-y.position:0}else s(_);n.forEach(p=>{p(r.value,$,{delta:h,type:Zr.pop,direction:h?h>0?Br.forward:Br.back:Br.unknown})})};function l(){i=r.value}function f(v){n.push(v);const _=()=>{const $=n.indexOf(v);$>-1&&n.splice($,1)};return o.push(_),_}function u(){const{history:v}=window;v.state&&v.replaceState(be({},v.state,{scroll:Tn()}),"")}function d(){for(const v of o)v();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:f,destroy:d}}function Hi(e,t,r,s=!1,n=!1){return{back:e,current:t,forward:r,replaced:s,position:window.history.length,scroll:n?Tn():null}}function qh(e){const{history:t,location:r}=window,s={value:Gu(e,r)},n={value:t.state};n.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,f,u){const d=e.indexOf("#"),v=d>-1?(r.host&&document.querySelector("base")?e:e.slice(d))+l:Ih()+e+l;try{t[u?"replaceState":"pushState"](f,"",v),n.value=f}catch(_){console.error(_),r[u?"replace":"assign"](v)}}function i(l,f){const u=be({},t.state,Hi(n.value.back,l,n.value.forward,!0),f,{position:n.value.position});o(l,u,!0),s.value=l}function a(l,f){const u=be({},n.value,t.state,{forward:l,scroll:Tn()});o(u.current,u,!0);const d=be({},Hi(s.value,l,null),{position:u.position+1},f);o(l,d,!1),s.value=l}return{location:s,state:n,push:a,replace:i}}function xh(e){e=Rh(e);const t=qh(e),r=jh(e,t.state,t.location,t.replace);function s(o,i=!0){i||r.pauseListeners(),history.go(o)}const n=be({location:"",base:e,go:s,createHref:Oh.bind(null,e)},t,r);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function Mh(e){return typeof e=="string"||e&&typeof e=="object"}function Ju(e){return typeof e=="string"||typeof e=="symbol"}const Wu=Symbol("");var Ki;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ki||(Ki={}));function Er(e,t){return be(new Error,{type:e,[Wu]:!0},t)}function Pt(e,t){return e instanceof Error&&Wu in e&&(t==null||!!(e.type&t))}const Bi="[^/]+?",Dh={sensitive:!1,strict:!1,start:!0,end:!0},Uh=/[.+*?^${}()[\]/\\]/g;function Lh(e,t){const r=be({},Dh,t),s=[];let n=r.start?"^":"";const o=[];for(const f of e){const u=f.length?[]:[90];r.strict&&!f.length&&(n+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function Xu(e,t){let r=0;const s=e.score,n=t.score;for(;r0&&t[t.length-1]<0}const Vh={type:0,value:""},Hh=/[a-zA-Z0-9_]/;function Kh(e){if(!e)return[[]];if(e==="/")return[[Vh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(_){throw new Error(`ERR (${r})/"${f}": ${_}`)}let r=0,s=r;const n=[];let o;function i(){o&&n.push(o),o=[]}let a=0,l,f="",u="";function d(){f&&(r===0?o.push({type:0,value:f}):r===1||r===2||r===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),f="")}function v(){f+=l}for(;a{i(m)}:Kr}function i(d){if(Ju(d)){const v=s.get(d);v&&(s.delete(d),r.splice(r.indexOf(v),1),v.children.forEach(i),v.alias.forEach(i))}else{const v=r.indexOf(d);v>-1&&(r.splice(v,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return r}function l(d){const v=Wh(d,r);r.splice(v,0,d),d.record.name&&!Wi(d)&&s.set(d.record.name,d)}function f(d,v){let _,$={},y,h;if("name"in d&&d.name){if(_=s.get(d.name),!_)throw Er(1,{location:d});h=_.record.name,$=be(Gi(v.params,_.keys.filter(m=>!m.optional).concat(_.parent?_.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),d.params&&Gi(d.params,_.keys.map(m=>m.name))),y=_.stringify($)}else if(d.path!=null)y=d.path,_=r.find(m=>m.re.test(y)),_&&($=_.parse(y),h=_.record.name);else{if(_=v.name?s.get(v.name):r.find(m=>m.re.test(v.path)),!_)throw Er(1,{location:d,currentLocation:v});h=_.record.name,$=be({},v.params,d.params),y=_.stringify($)}const p=[];let c=_;for(;c;)p.unshift(c.record),c=c.parent;return{name:h,path:y,params:$,matched:p,meta:Jh(p)}}e.forEach(d=>o(d));function u(){r.length=0,s.clear()}return{addRoute:o,resolve:f,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:n}}function Gi(e,t){const r={};for(const s of t)s in e&&(r[s]=e[s]);return r}function Ji(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Gh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Gh(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const s in e.components)t[s]=typeof r=="object"?r[s]:r;return t}function Wi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Jh(e){return e.reduce((t,r)=>be(t,r.meta),{})}function Xi(e,t){const r={};for(const s in e)r[s]=s in t?t[s]:e[s];return r}function Wh(e,t){let r=0,s=t.length;for(;r!==s;){const o=r+s>>1;Xu(e,t[o])<0?s=o:r=o+1}const n=Xh(e);return n&&(s=t.lastIndexOf(n,s-1)),s}function Xh(e){let t=e;for(;t=t.parent;)if(Qu(t)&&Xu(e,t)===0)return t}function Qu({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Qh(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;no&&So(o)):[s&&So(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+r,o!=null&&(t+="="+o))})}return t}function Yh(e){const t={};for(const r in e){const s=e[r];s!==void 0&&(t[r]=ct(s)?s.map(n=>n==null?null:""+n):s==null?s:""+s)}return t}const Zh=Symbol(""),Yi=Symbol(""),Zo=Symbol(""),Yu=Symbol(""),Ro=Symbol("");function Nr(){let e=[];function t(s){return e.push(s),()=>{const n=e.indexOf(s);n>-1&&e.splice(n,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Ft(e,t,r,s,n,o=i=>i()){const i=s&&(s.enterCallbacks[n]=s.enterCallbacks[n]||[]);return()=>new Promise((a,l)=>{const f=v=>{v===!1?l(Er(4,{from:r,to:t})):v instanceof Error?l(v):Mh(v)?l(Er(2,{from:t,to:v})):(i&&s.enterCallbacks[n]===i&&typeof v=="function"&&i.push(v),a())},u=o(()=>e.call(s&&s.instances[n],t,r,f));let d=Promise.resolve(u);e.length<3&&(d=d.then(f)),d.catch(v=>l(v))})}function Wn(e,t,r,s,n=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Lu(l)){const u=(l.__vccOpts||l)[t];u&&o.push(Ft(u,r,s,i,a,n))}else{let f=l();o.push(()=>f.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const d=ih(u)?u.default:u;i.mods[a]=u,i.components[a]=d;const _=(d.__vccOpts||d)[t];return _&&Ft(_,r,s,i,a,n)()}))}}return o}function Zi(e){const t=It(Zo),r=It(Yu),s=lt(()=>{const l=yr(e.to);return t.resolve(l)}),n=lt(()=>{const{matched:l}=s.value,{length:f}=l,u=l[f-1],d=r.matched;if(!u||!d.length)return-1;const v=d.findIndex($r.bind(null,u));if(v>-1)return v;const _=ea(l[f-2]);return f>1&&ea(u)===_&&d[d.length-1].path!==_?d.findIndex($r.bind(null,l[f-2])):v}),o=lt(()=>n.value>-1&&np(r.params,s.value.params)),i=lt(()=>n.value>-1&&n.value===r.matched.length-1&&zu(r.params,s.value.params));function a(l={}){if(sp(l)){const f=t[yr(e.replace)?"replace":"push"](yr(e.to)).catch(Kr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:lt(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}function ep(e){return e.length===1?e[0]:e}const tp=lu({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Zi,setup(e,{slots:t}){const r=Pr(Zi(e)),{options:s}=It(Zo),n=lt(()=>({[ta(e.activeClass,s.linkActiveClass,"router-link-active")]:r.isActive,[ta(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&ep(t.default(r));return e.custom?o:xu("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:n.value},o)}}}),rp=tp;function sp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function np(e,t){for(const r in t){const s=t[r],n=e[r];if(typeof s=="string"){if(s!==n)return!1}else if(!ct(n)||n.length!==s.length||s.some((o,i)=>o!==n[i]))return!1}return!0}function ea(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ta=(e,t,r)=>e??t??r,op=lu({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const s=It(Ro),n=lt(()=>e.route||s.value),o=It(Yi,0),i=lt(()=>{let f=yr(o);const{matched:u}=n.value;let d;for(;(d=u[f])&&!d.components;)f++;return f}),a=lt(()=>n.value.matched[i.value]);Ws(Yi,lt(()=>i.value+1)),Ws(Zh,a),Ws(Ro,n);const l=go();return Xs(()=>[l.value,a.value,e.name],([f,u,d],[v,_,$])=>{u&&(u.instances[d]=f,_&&_!==u&&f&&f===v&&(u.leaveGuards.size||(u.leaveGuards=_.leaveGuards),u.updateGuards.size||(u.updateGuards=_.updateGuards))),f&&u&&(!_||!$r(u,_)||!v)&&(u.enterCallbacks[d]||[]).forEach(y=>y(f))},{flush:"post"}),()=>{const f=n.value,u=e.name,d=a.value,v=d&&d.components[u];if(!v)return ra(r.default,{Component:v,route:f});const _=d.props[u],$=_?_===!0?f.params:typeof _=="function"?_(f):_:null,h=xu(v,be({},$,t,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return ra(r.default,{Component:h,route:f})||h}}});function ra(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const ip=op;function ap(e){const t=zh(e.routes,e),r=e.parseQuery||Qh,s=e.stringifyQuery||Qi,n=e.history,o=Nr(),i=Nr(),a=Nr(),l=cf(Mt);let f=Mt;hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Gn.bind(null,N=>""+N),d=Gn.bind(null,_h),v=Gn.bind(null,Yr);function _(N,L){let K,J;return Ju(N)?(K=t.getRecordMatcher(N),J=L):J=N,t.addRoute(J,K)}function $(N){const L=t.getRecordMatcher(N);L&&t.removeRoute(L)}function y(){return t.getRoutes().map(N=>N.record)}function h(N){return!!t.getRecordMatcher(N)}function p(N,L){if(L=be({},L||l.value),typeof N=="string"){const T=Jn(r,N,L.path),A=t.resolve({path:T.path},L),x=n.createHref(T.fullPath);return be(T,A,{params:v(A.params),hash:Yr(T.hash),redirectedFrom:void 0,href:x})}let K;if(N.path!=null)K=be({},N,{path:Jn(r,N.path,L.path).path});else{const T=be({},N.params);for(const A in T)T[A]==null&&delete T[A];K=be({},N,{params:d(T)}),L.params=d(L.params)}const J=t.resolve(K,L),k=N.hash||"";J.params=u(v(J.params));const g=$h(s,be({},N,{hash:gh(k),path:J.path})),b=n.createHref(g);return be({fullPath:g,hash:k,query:s===Qi?Yh(N.query):N.query||{}},J,{redirectedFrom:void 0,href:b})}function c(N){return typeof N=="string"?Jn(r,N,l.value.path):be({},N)}function m(N,L){if(f!==N)return Er(8,{from:L,to:N})}function w(N){return O(N)}function S(N){return w(be(c(N),{replace:!0}))}function P(N){const L=N.matched[N.matched.length-1];if(L&&L.redirect){const{redirect:K}=L;let J=typeof K=="function"?K(N):K;return typeof J=="string"&&(J=J.includes("?")||J.includes("#")?J=c(J):{path:J},J.params={}),be({query:N.query,hash:N.hash,params:J.path!=null?{}:N.params},J)}}function O(N,L){const K=f=p(N),J=l.value,k=N.state,g=N.force,b=N.replace===!0,T=P(K);if(T)return O(be(c(T),{state:typeof T=="object"?be({},k,T.state):k,force:g,replace:b}),L||K);const A=K;A.redirectedFrom=L;let x;return!g&&Eh(s,J,K)&&(x=Er(16,{to:A,from:J}),I(J,J,!0,!1)),(x?Promise.resolve(x):Q(A,J)).catch(U=>Pt(U)?Pt(U,2)?U:G(U):re(U,A,J)).then(U=>{if(U){if(Pt(U,2))return O(be({replace:b},c(U.to),{state:typeof U.to=="object"?be({},k,U.to.state):k,force:g}),L||A)}else U=ie(A,J,!0,b,k);return Y(A,J,U),U})}function j(N,L){const K=m(N,L);return K?Promise.reject(K):Promise.resolve()}function H(N){const L=E.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(N):N()}function Q(N,L){let K;const[J,k,g]=lp(N,L);K=Wn(J.reverse(),"beforeRouteLeave",N,L);for(const T of J)T.leaveGuards.forEach(A=>{K.push(Ft(A,N,L))});const b=j.bind(null,N,L);return K.push(b),M(K).then(()=>{K=[];for(const T of o.list())K.push(Ft(T,N,L));return K.push(b),M(K)}).then(()=>{K=Wn(k,"beforeRouteUpdate",N,L);for(const T of k)T.updateGuards.forEach(A=>{K.push(Ft(A,N,L))});return K.push(b),M(K)}).then(()=>{K=[];for(const T of g)if(T.beforeEnter)if(ct(T.beforeEnter))for(const A of T.beforeEnter)K.push(Ft(A,N,L));else K.push(Ft(T.beforeEnter,N,L));return K.push(b),M(K)}).then(()=>(N.matched.forEach(T=>T.enterCallbacks={}),K=Wn(g,"beforeRouteEnter",N,L,H),K.push(b),M(K))).then(()=>{K=[];for(const T of i.list())K.push(Ft(T,N,L));return K.push(b),M(K)}).catch(T=>Pt(T,8)?T:Promise.reject(T))}function Y(N,L,K){a.list().forEach(J=>H(()=>J(N,L,K)))}function ie(N,L,K,J,k){const g=m(N,L);if(g)return g;const b=L===Mt,T=hr?history.state:{};K&&(J||b?n.replace(N.fullPath,be({scroll:b&&T&&T.scroll},k)):n.push(N.fullPath,k)),l.value=N,I(N,L,K,b),G()}let te;function de(){te||(te=n.listen((N,L,K)=>{if(!C.listening)return;const J=p(N),k=P(J);if(k){O(be(k,{replace:!0,force:!0}),J).catch(Kr);return}f=J;const g=l.value;hr&&Nh(Vi(g.fullPath,K.delta),Tn()),Q(J,g).catch(b=>Pt(b,12)?b:Pt(b,2)?(O(be(c(b.to),{force:!0}),J).then(T=>{Pt(T,20)&&!K.delta&&K.type===Zr.pop&&n.go(-1,!1)}).catch(Kr),Promise.reject()):(K.delta&&n.go(-K.delta,!1),re(b,J,g))).then(b=>{b=b||ie(J,g,!1),b&&(K.delta&&!Pt(b,8)?n.go(-K.delta,!1):K.type===Zr.pop&&Pt(b,20)&&n.go(-1,!1)),Y(J,g,b)}).catch(Kr)}))}let Ce=Nr(),Ee=Nr(),pe;function re(N,L,K){G(N);const J=Ee.list();return J.length?J.forEach(k=>k(N,L,K)):console.error(N),Promise.reject(N)}function xe(){return pe&&l.value!==Mt?Promise.resolve():new Promise((N,L)=>{Ce.add([N,L])})}function G(N){return pe||(pe=!N,de(),Ce.list().forEach(([L,K])=>N?K(N):L()),Ce.reset()),N}function I(N,L,K,J){const{scrollBehavior:k}=e;if(!hr||!k)return Promise.resolve();const g=!K&&Ah(Vi(N.fullPath,0))||(J||!K)&&history.state&&history.state.scroll||null;return zo().then(()=>k(N,L,g)).then(b=>b&&kh(b)).catch(b=>re(b,N,L))}const F=N=>n.go(N);let q;const E=new Set,C={currentRoute:l,listening:!0,addRoute:_,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:h,getRoutes:y,resolve:p,options:e,push:w,replace:S,go:F,back:()=>F(-1),forward:()=>F(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:Ee.add,isReady:xe,install(N){const L=this;N.component("RouterLink",rp),N.component("RouterView",ip),N.config.globalProperties.$router=L,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>yr(l)}),hr&&!q&&l.value===Mt&&(q=!0,w(n.location).catch(k=>{}));const K={};for(const k in Mt)Object.defineProperty(K,k,{get:()=>l.value[k],enumerable:!0});N.provide(Zo,L),N.provide(Yu,Zl(K)),N.provide(Ro,l);const J=N.unmount;E.add(N),N.unmount=function(){E.delete(N),E.size<1&&(f=Mt,te&&te(),te=null,l.value=Mt,q=!1,pe=!1),J()}}};function M(N){return N.reduce((L,K)=>L.then(()=>H(K)),Promise.resolve())}return C}function lp(e,t){const r=[],s=[],n=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i$r(f,a))?s.push(a):r.push(a));const l=e.matched[i];l&&(t.matched.find(f=>$r(f,l))||n.push(l))}return[r,s,n]}const up={name:"Dashboard",data(){return{recentActivity:[{type:"request",icon:"🔄",title:"GET Users API",description:"Test data generated successfully",time:"10 minutes ago"},{type:"test",icon:"✅",title:"POST Product API",description:"All tests passed",time:"2 hours ago"},{type:"request",icon:"🔄",title:"PUT User API",description:"Test data generated with warnings",time:"5 hours ago"}]}}},cp={class:"dashboard"},fp={class:"quick-actions"},dp={class:"action-buttons"},hp={class:"recent-activity"},pp={class:"activity-list"},mp={class:"activity-details"},gp={class:"activity-time"};function yp(e,t,r,s,n,o){return Z(),ee("div",cp,[t[4]||(t[4]=wo('

Total Requests

12

Generated Tests

34

Successful Tests

28

',1)),R("div",fp,[t[2]||(t[2]=R("h2",null,"Quick Actions",-1)),R("div",dp,[R("button",{class:"accent-button",onClick:t[0]||(t[0]=i=>e.$router.push("/request-builder"))},"Create New Request"),R("button",{onClick:t[1]||(t[1]=i=>e.$router.push("/test-results"))},"View Test Results")])]),R("div",hp,[t[3]||(t[3]=R("h2",null,"Recent Activity",-1)),R("div",pp,[(Z(!0),ee(qe,null,bt(n.recentActivity,(i,a)=>(Z(),ee("div",{class:"activity-item",key:a},[R("div",{class:Xe(["activity-icon",i.type])},se(i.icon),3),R("div",mp,[R("h4",null,se(i.title),1),R("p",null,se(i.description),1),R("span",gp,se(i.time),1)])]))),128))])])])}const vp=xt(up,[["render",yp],["__scopeId","data-v-3618735e"]]);function Zu(e,t){return function(){return e.apply(t,arguments)}}const{toString:_p}=Object.prototype,{getPrototypeOf:ei}=Object,On=(e=>t=>{const r=_p.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ft=e=>(e=e.toLowerCase(),t=>On(t)===e),Cn=e=>t=>typeof t===e,{isArray:Rr}=Array,es=Cn("undefined");function bp(e){return e!==null&&!es(e)&&e.constructor!==null&&!es(e.constructor)&&nt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ec=ft("ArrayBuffer");function wp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ec(e.buffer),t}const $p=Cn("string"),nt=Cn("function"),tc=Cn("number"),kn=e=>e!==null&&typeof e=="object",Ep=e=>e===!0||e===!1,en=e=>{if(On(e)!=="object")return!1;const t=ei(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Sp=ft("Date"),Pp=ft("File"),Rp=ft("Blob"),Tp=ft("FileList"),Op=e=>kn(e)&&nt(e.pipe),Cp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||nt(e.append)&&((t=On(e))==="formdata"||t==="object"&&nt(e.toString)&&e.toString()==="[object FormData]"))},kp=ft("URLSearchParams"),[Np,Ap,Ip,jp]=["ReadableStream","Request","Response","Headers"].map(ft),qp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function os(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),Rr(e))for(s=0,n=e.length;s0;)if(n=r[s],t===n.toLowerCase())return n;return null}const er=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sc=e=>!es(e)&&e!==er;function To(){const{caseless:e}=sc(this)&&this||{},t={},r=(s,n)=>{const o=e&&rc(t,n)||n;en(t[o])&&en(s)?t[o]=To(t[o],s):en(s)?t[o]=To({},s):Rr(s)?t[o]=s.slice():t[o]=s};for(let s=0,n=arguments.length;s(os(t,(n,o)=>{r&&nt(n)?e[o]=Zu(n,r):e[o]=n},{allOwnKeys:s}),e),Mp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dp=(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Up=(e,t,r,s)=>{let n,o,i;const a={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)i=n[o],(!s||s(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&ei(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Lp=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return s!==-1&&s===r},Fp=e=>{if(!e)return null;if(Rr(e))return e;let t=e.length;if(!tc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Vp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ei(Uint8Array)),Hp=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=s.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},Kp=(e,t)=>{let r;const s=[];for(;(r=e.exec(t))!==null;)s.push(r);return s},Bp=ft("HTMLFormElement"),zp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,n){return s.toUpperCase()+n}),sa=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Gp=ft("RegExp"),nc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};os(r,(n,o)=>{let i;(i=t(n,o,e))!==!1&&(s[o]=i||n)}),Object.defineProperties(e,s)},Jp=e=>{nc(e,(t,r)=>{if(nt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const s=e[r];if(nt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Wp=(e,t)=>{const r={},s=n=>{n.forEach(o=>{r[o]=!0})};return Rr(e)?s(e):s(String(e).split(t)),r},Xp=()=>{},Qp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Yp(e){return!!(e&&nt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zp=e=>{const t=new Array(10),r=(s,n)=>{if(kn(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[n]=s;const o=Rr(s)?[]:{};return os(s,(i,a)=>{const l=r(i,n+1);!es(l)&&(o[a]=l)}),t[n]=void 0,o}}return s};return r(e,0)},em=ft("AsyncFunction"),tm=e=>e&&(kn(e)||nt(e))&&nt(e.then)&&nt(e.catch),oc=((e,t)=>e?setImmediate:t?((r,s)=>(er.addEventListener("message",({source:n,data:o})=>{n===er&&o===r&&s.length&&s.shift()()},!1),n=>{s.push(n),er.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",nt(er.postMessage)),rm=typeof queueMicrotask<"u"?queueMicrotask.bind(er):typeof process<"u"&&process.nextTick||oc,D={isArray:Rr,isArrayBuffer:ec,isBuffer:bp,isFormData:Cp,isArrayBufferView:wp,isString:$p,isNumber:tc,isBoolean:Ep,isObject:kn,isPlainObject:en,isReadableStream:Np,isRequest:Ap,isResponse:Ip,isHeaders:jp,isUndefined:es,isDate:Sp,isFile:Pp,isBlob:Rp,isRegExp:Gp,isFunction:nt,isStream:Op,isURLSearchParams:kp,isTypedArray:Vp,isFileList:Tp,forEach:os,merge:To,extend:xp,trim:qp,stripBOM:Mp,inherits:Dp,toFlatObject:Up,kindOf:On,kindOfTest:ft,endsWith:Lp,toArray:Fp,forEachEntry:Hp,matchAll:Kp,isHTMLForm:Bp,hasOwnProperty:sa,hasOwnProp:sa,reduceDescriptors:nc,freezeMethods:Jp,toObjectSet:Wp,toCamelCase:zp,noop:Xp,toFiniteNumber:Qp,findKey:rc,global:er,isContextDefined:sc,isSpecCompliantForm:Yp,toJSONObject:Zp,isAsyncFn:em,isThenable:tm,setImmediate:oc,asap:rm};function ce(e,t,r,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n,this.status=n.status?n.status:null)}D.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.status}}});const ic=ce.prototype,ac={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ac[e]={value:e}});Object.defineProperties(ce,ac);Object.defineProperty(ic,"isAxiosError",{value:!0});ce.from=(e,t,r,s,n,o)=>{const i=Object.create(ic);return D.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),ce.call(i,e.message,t,r,s,n),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const sm=null;function Oo(e){return D.isPlainObject(e)||D.isArray(e)}function lc(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function na(e,t,r){return e?e.concat(t).map(function(n,o){return n=lc(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function nm(e){return D.isArray(e)&&!e.some(Oo)}const om=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function Nn(e,t,r){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=D.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!D.isUndefined(h[y])});const s=r.metaTokens,n=r.visitor||u,o=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(n))throw new TypeError("visitor must be a function");function f($){if($===null)return"";if(D.isDate($))return $.toISOString();if(!l&&D.isBlob($))throw new ce("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer($)||D.isTypedArray($)?l&&typeof Blob=="function"?new Blob([$]):Buffer.from($):$}function u($,y,h){let p=$;if($&&!h&&typeof $=="object"){if(D.endsWith(y,"{}"))y=s?y:y.slice(0,-2),$=JSON.stringify($);else if(D.isArray($)&&nm($)||(D.isFileList($)||D.endsWith(y,"[]"))&&(p=D.toArray($)))return y=lc(y),p.forEach(function(m,w){!(D.isUndefined(m)||m===null)&&t.append(i===!0?na([y],w,o):i===null?y:y+"[]",f(m))}),!1}return Oo($)?!0:(t.append(na(h,y,o),f($)),!1)}const d=[],v=Object.assign(om,{defaultVisitor:u,convertValue:f,isVisitable:Oo});function _($,y){if(!D.isUndefined($)){if(d.indexOf($)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push($),D.forEach($,function(p,c){(!(D.isUndefined(p)||p===null)&&n.call(t,p,D.isString(c)?c.trim():c,y,v))===!0&&_(p,y?y.concat(c):[c])}),d.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return _(e),t}function oa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ti(e,t){this._pairs=[],e&&Nn(e,this,t)}const uc=ti.prototype;uc.append=function(t,r){this._pairs.push([t,r])};uc.toString=function(t){const r=t?function(s){return t.call(this,s,oa)}:oa;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function im(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cc(e,t,r){if(!t)return e;const s=r&&r.encode||im;D.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let o;if(n?o=n(t,r):o=D.isURLSearchParams(t)?t.toString():new ti(t,r).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ia{constructor(){this.handlers=[]}use(t,r,s){return this.handlers.push({fulfilled:t,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(s){s!==null&&t(s)})}}const fc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},am=typeof URLSearchParams<"u"?URLSearchParams:ti,lm=typeof FormData<"u"?FormData:null,um=typeof Blob<"u"?Blob:null,cm={isBrowser:!0,classes:{URLSearchParams:am,FormData:lm,Blob:um},protocols:["http","https","file","blob","url","data"]},ri=typeof window<"u"&&typeof document<"u",Co=typeof navigator=="object"&&navigator||void 0,fm=ri&&(!Co||["ReactNative","NativeScript","NS"].indexOf(Co.product)<0),dm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hm=ri&&window.location.href||"http://localhost",pm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ri,hasStandardBrowserEnv:fm,hasStandardBrowserWebWorkerEnv:dm,navigator:Co,origin:hm},Symbol.toStringTag,{value:"Module"})),He={...pm,...cm};function mm(e,t){return Nn(e,new He.classes.URLSearchParams,Object.assign({visitor:function(r,s,n,o){return He.isNode&&D.isBuffer(r)?(this.append(s,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function gm(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ym(e){const t={},r=Object.keys(e);let s;const n=r.length;let o;for(s=0;s=r.length;return i=!i&&D.isArray(n)?n.length:i,l?(D.hasOwnProp(n,i)?n[i]=[n[i],s]:n[i]=s,!a):((!n[i]||!D.isObject(n[i]))&&(n[i]=[]),t(r,s,n[i],o)&&D.isArray(n[i])&&(n[i]=ym(n[i])),!a)}if(D.isFormData(e)&&D.isFunction(e.entries)){const r={};return D.forEachEntry(e,(s,n)=>{t(gm(s),n,r,0)}),r}return null}function vm(e,t,r){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(e)}const is={transitional:fc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const s=r.getContentType()||"",n=s.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return n?JSON.stringify(dc(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return mm(t,this.formSerializer).toString();if((a=D.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Nn(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||n?(r.setContentType("application/json",!1),vm(t)):t}],transformResponse:[function(t){const r=this.transitional||is.transitional,s=r&&r.forcedJSONParsing,n=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(s&&!this.responseType||n)){const i=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?ce.from(a,ce.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:He.classes.FormData,Blob:He.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{is.headers[e]={}});const _m=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bm=e=>{const t={};let r,s,n;return e&&e.split(` +`).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!r||t[r]&&_m[r])&&(r==="set-cookie"?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r]?t[r]+", "+s:s)}),t},aa=Symbol("internals");function Ar(e){return e&&String(e).trim().toLowerCase()}function tn(e){return e===!1||e==null?e:D.isArray(e)?e.map(tn):String(e)}function wm(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)t[s[1]]=s[2];return t}const $m=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xn(e,t,r,s,n){if(D.isFunction(s))return s.call(this,t,r);if(n&&(t=r),!!D.isString(t)){if(D.isString(s))return t.indexOf(s)!==-1;if(D.isRegExp(s))return s.test(t)}}function Em(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,s)=>r.toUpperCase()+s)}function Sm(e,t){const r=D.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{value:function(n,o,i){return this[s].call(this,t,n,o,i)},configurable:!0})})}let Qe=class{constructor(t){t&&this.set(t)}set(t,r,s){const n=this;function o(a,l,f){const u=Ar(l);if(!u)throw new Error("header name must be a non-empty string");const d=D.findKey(n,u);(!d||n[d]===void 0||f===!0||f===void 0&&n[d]!==!1)&&(n[d||l]=tn(a))}const i=(a,l)=>D.forEach(a,(f,u)=>o(f,u,l));if(D.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(D.isString(t)&&(t=t.trim())&&!$m(t))i(bm(t),r);else if(D.isHeaders(t))for(const[a,l]of t.entries())o(l,a,s);else t!=null&&o(r,t,s);return this}get(t,r){if(t=Ar(t),t){const s=D.findKey(this,t);if(s){const n=this[s];if(!r)return n;if(r===!0)return wm(n);if(D.isFunction(r))return r.call(this,n,s);if(D.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ar(t),t){const s=D.findKey(this,t);return!!(s&&this[s]!==void 0&&(!r||Xn(this,this[s],s,r)))}return!1}delete(t,r){const s=this;let n=!1;function o(i){if(i=Ar(i),i){const a=D.findKey(s,i);a&&(!r||Xn(s,s[a],a,r))&&(delete s[a],n=!0)}}return D.isArray(t)?t.forEach(o):o(t),n}clear(t){const r=Object.keys(this);let s=r.length,n=!1;for(;s--;){const o=r[s];(!t||Xn(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){const r=this,s={};return D.forEach(this,(n,o)=>{const i=D.findKey(s,o);if(i){r[i]=tn(n),delete r[o];return}const a=t?Em(o):String(o).trim();a!==o&&delete r[o],r[a]=tn(n),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return D.forEach(this,(s,n)=>{s!=null&&s!==!1&&(r[n]=t&&D.isArray(s)?s.join(", "):s)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const s=new this(t);return r.forEach(n=>s.set(n)),s}static accessor(t){const s=(this[aa]=this[aa]={accessors:{}}).accessors,n=this.prototype;function o(i){const a=Ar(i);s[a]||(Sm(n,i),s[a]=!0)}return D.isArray(t)?t.forEach(o):o(t),this}};Qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Qe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[r]=s}}});D.freezeMethods(Qe);function Qn(e,t){const r=this||is,s=t||r,n=Qe.from(s.headers);let o=s.data;return D.forEach(e,function(a){o=a.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function hc(e){return!!(e&&e.__CANCEL__)}function Tr(e,t,r){ce.call(this,e??"canceled",ce.ERR_CANCELED,t,r),this.name="CanceledError"}D.inherits(Tr,ce,{__CANCEL__:!0});function pc(e,t,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):t(new ce("Request failed with status code "+r.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Pm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Rm(e,t){e=e||10;const r=new Array(e),s=new Array(e);let n=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=s[o];i||(i=f),r[n]=l,s[n]=f;let d=o,v=0;for(;d!==n;)v+=r[d++],d=d%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),f-i{r=u,n=null,o&&(clearTimeout(o),o=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),d=u-r;d>=s?i(f,u):(n=f,o||(o=setTimeout(()=>{o=null,i(n)},s-d)))},()=>n&&i(n)]}const dn=(e,t,r=3)=>{let s=0;const n=Rm(50,250);return Tm(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-s,f=n(l),u=i<=a;s=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:f||void 0,estimated:f&&a&&u?(a-i)/f:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},la=(e,t)=>{const r=e!=null;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},ua=e=>(...t)=>D.asap(()=>e(...t)),Om=He.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,He.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(He.origin),He.navigator&&/(msie|trident)/i.test(He.navigator.userAgent)):()=>!0,Cm=He.hasStandardBrowserEnv?{write(e,t,r,s,n,o){const i=[e+"="+encodeURIComponent(t)];D.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),D.isString(s)&&i.push("path="+s),D.isString(n)&&i.push("domain="+n),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function km(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mc(e,t,r){let s=!km(t);return e&&(s||r==!1)?Nm(e,t):t}const ca=e=>e instanceof Qe?{...e}:e;function ar(e,t){t=t||{};const r={};function s(f,u,d,v){return D.isPlainObject(f)&&D.isPlainObject(u)?D.merge.call({caseless:v},f,u):D.isPlainObject(u)?D.merge({},u):D.isArray(u)?u.slice():u}function n(f,u,d,v){if(D.isUndefined(u)){if(!D.isUndefined(f))return s(void 0,f,d,v)}else return s(f,u,d,v)}function o(f,u){if(!D.isUndefined(u))return s(void 0,u)}function i(f,u){if(D.isUndefined(u)){if(!D.isUndefined(f))return s(void 0,f)}else return s(void 0,u)}function a(f,u,d){if(d in t)return s(f,u);if(d in e)return s(void 0,f)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(f,u,d)=>n(ca(f),ca(u),d,!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||n,v=d(e[u],t[u],u);D.isUndefined(v)&&d!==a||(r[u]=v)}),r}const gc=e=>{const t=ar({},e);let{data:r,withXSRFToken:s,xsrfHeaderName:n,xsrfCookieName:o,headers:i,auth:a}=t;t.headers=i=Qe.from(i),t.url=cc(mc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(D.isFormData(r)){if(He.hasStandardBrowserEnv||He.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(He.hasStandardBrowserEnv&&(s&&D.isFunction(s)&&(s=s(t)),s||s!==!1&&Om(t.url))){const f=n&&o&&Cm.read(o);f&&i.set(n,f)}return t},Am=typeof XMLHttpRequest<"u",Im=Am&&function(e){return new Promise(function(r,s){const n=gc(e);let o=n.data;const i=Qe.from(n.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:f}=n,u,d,v,_,$;function y(){_&&_(),$&&$(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout;function p(){if(!h)return;const m=Qe.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:m,config:e,request:h};pc(function(O){r(O),y()},function(O){s(O),y()},S),h=null}"onloadend"in h?h.onloadend=p:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(p)},h.onabort=function(){h&&(s(new ce("Request aborted",ce.ECONNABORTED,e,h)),h=null)},h.onerror=function(){s(new ce("Network Error",ce.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let w=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const S=n.transitional||fc;n.timeoutErrorMessage&&(w=n.timeoutErrorMessage),s(new ce(w,S.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&D.forEach(i.toJSON(),function(w,S){h.setRequestHeader(S,w)}),D.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),a&&a!=="json"&&(h.responseType=n.responseType),f&&([v,$]=dn(f,!0),h.addEventListener("progress",v)),l&&h.upload&&([d,_]=dn(l),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",_)),(n.cancelToken||n.signal)&&(u=m=>{h&&(s(!m||m.type?new Tr(null,e,h):m),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const c=Pm(n.url);if(c&&He.protocols.indexOf(c)===-1){s(new ce("Unsupported protocol "+c+":",ce.ERR_BAD_REQUEST,e));return}h.send(o||null)})},jm=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let s=new AbortController,n;const o=function(f){if(!n){n=!0,a();const u=f instanceof Error?f:this.reason;s.abort(u instanceof ce?u:new Tr(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new ce(`timeout ${t} of ms exceeded`,ce.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:l}=s;return l.unsubscribe=()=>D.asap(a),l}},qm=function*(e,t){let r=e.byteLength;if(r{const n=xm(e,t);let o=0,i,a=l=>{i||(i=!0,s&&s(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){a(),l.close();return}let d=u.byteLength;if(r){let v=o+=d;r(v)}l.enqueue(new Uint8Array(u))}catch(f){throw a(f),f}},cancel(l){return a(l),n.return()}},{highWaterMark:2})},An=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yc=An&&typeof ReadableStream=="function",Dm=An&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Um=yc&&vc(()=>{let e=!1;const t=new Request(He.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),da=64*1024,ko=yc&&vc(()=>D.isReadableStream(new Response("").body)),hn={stream:ko&&(e=>e.body)};An&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!hn[t]&&(hn[t]=D.isFunction(e[t])?r=>r[t]():(r,s)=>{throw new ce(`Response type '${t}' is not supported`,ce.ERR_NOT_SUPPORT,s)})})})(new Response);const Lm=async e=>{if(e==null)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e))return(await new Request(He.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(D.isArrayBufferView(e)||D.isArrayBuffer(e))return e.byteLength;if(D.isURLSearchParams(e)&&(e=e+""),D.isString(e))return(await Dm(e)).byteLength},Fm=async(e,t)=>{const r=D.toFiniteNumber(e.getContentLength());return r??Lm(t)},Vm=An&&(async e=>{let{url:t,method:r,data:s,signal:n,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:f,headers:u,withCredentials:d="same-origin",fetchOptions:v}=gc(e);f=f?(f+"").toLowerCase():"text";let _=jm([n,o&&o.toAbortSignal()],i),$;const y=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let h;try{if(l&&Um&&r!=="get"&&r!=="head"&&(h=await Fm(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),P;if(D.isFormData(s)&&(P=S.headers.get("content-type"))&&u.setContentType(P),S.body){const[O,j]=la(h,dn(ua(l)));s=fa(S.body,da,O,j)}}D.isString(d)||(d=d?"include":"omit");const p="credentials"in Request.prototype;$=new Request(t,{...v,signal:_,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:p?d:void 0});let c=await fetch($);const m=ko&&(f==="stream"||f==="response");if(ko&&(a||m&&y)){const S={};["status","statusText","headers"].forEach(H=>{S[H]=c[H]});const P=D.toFiniteNumber(c.headers.get("content-length")),[O,j]=a&&la(P,dn(ua(a),!0))||[];c=new Response(fa(c.body,da,O,()=>{j&&j(),y&&y()}),S)}f=f||"text";let w=await hn[D.findKey(hn,f)||"text"](c,e);return!m&&y&&y(),await new Promise((S,P)=>{pc(S,P,{data:w,headers:Qe.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:$})})}catch(p){throw y&&y(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new ce("Network Error",ce.ERR_NETWORK,e,$),{cause:p.cause||p}):ce.from(p,p&&p.code,e,$)}}),No={http:sm,xhr:Im,fetch:Vm};D.forEach(No,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ha=e=>`- ${e}`,Hm=e=>D.isFunction(e)||e===null||e===!1,_c={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let r,s;const n={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(ha).join(` +`):" "+ha(o[0]):"as no adapter specified";throw new ce("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:No};function Yn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tr(null,e)}function pa(e){return Yn(e),e.headers=Qe.from(e.headers),e.data=Qn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_c.getAdapter(e.adapter||is.adapter)(e).then(function(s){return Yn(e),s.data=Qn.call(e,e.transformResponse,s),s.headers=Qe.from(s.headers),s},function(s){return hc(s)||(Yn(e),s&&s.response&&(s.response.data=Qn.call(e,e.transformResponse,s.response),s.response.headers=Qe.from(s.response.headers))),Promise.reject(s)})}const bc="1.8.4",In={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{In[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ma={};In.transitional=function(t,r,s){function n(o,i){return"[Axios v"+bc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,a)=>{if(t===!1)throw new ce(n(i," has been removed"+(r?" in "+r:"")),ce.ERR_DEPRECATED);return r&&!ma[i]&&(ma[i]=!0,console.warn(n(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,a):!0}};In.spelling=function(t){return(r,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Km(e,t,r){if(typeof e!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const o=s[n],i=t[o];if(i){const a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new ce("option "+o+" must be "+l,ce.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ce("Unknown option "+o,ce.ERR_BAD_OPTION)}}const rn={assertOptions:Km,validators:In},yt=rn.validators;let nr=class{constructor(t){this.defaults=t,this.interceptors={request:new ia,response:new ia}}async request(t,r){try{return await this._request(t,r)}catch(s){if(s instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack?n.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=` +`+o):s.stack=o}catch{}}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ar(this.defaults,r);const{transitional:s,paramsSerializer:n,headers:o}=r;s!==void 0&&rn.assertOptions(s,{silentJSONParsing:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean)},!1),n!=null&&(D.isFunction(n)?r.paramsSerializer={serialize:n}:rn.assertOptions(n,{encode:yt.function,serialize:yt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),rn.assertOptions(r,{baseUrl:yt.spelling("baseURL"),withXsrfToken:yt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&D.merge(o.common,o[r.method]);o&&D.forEach(["delete","get","head","post","put","patch","common"],$=>{delete o[$]}),r.headers=Qe.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let u,d=0,v;if(!l){const $=[pa.bind(this),void 0];for($.unshift.apply($,a),$.push.apply($,f),v=$.length,u=Promise.resolve(r);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](n);s._listeners=null}),this.promise.then=n=>{let o;const i=new Promise(a=>{s.subscribe(a),o=a}).then(n);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,a){s.reason||(s.reason=new Tr(o,i,a),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new wc(function(n){t=n}),cancel:t}}};function zm(e){return function(r){return e.apply(null,r)}}function Gm(e){return D.isObject(e)&&e.isAxiosError===!0}const Ao={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ao).forEach(([e,t])=>{Ao[t]=e});function $c(e){const t=new nr(e),r=Zu(nr.prototype.request,t);return D.extend(r,nr.prototype,t,{allOwnKeys:!0}),D.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return $c(ar(e,n))},r}const ke=$c(is);ke.Axios=nr;ke.CanceledError=Tr;ke.CancelToken=Bm;ke.isCancel=hc;ke.VERSION=bc;ke.toFormData=Nn;ke.AxiosError=ce;ke.Cancel=ke.CanceledError;ke.all=function(t){return Promise.all(t)};ke.spread=zm;ke.isAxiosError=Gm;ke.mergeConfig=ar;ke.AxiosHeaders=Qe;ke.formToJSON=e=>dc(D.isHTMLForm(e)?new FormData(e):e);ke.getAdapter=_c.getAdapter;ke.HttpStatusCode=Ao;ke.default=ke;const{Axios:f0,AxiosError:d0,CanceledError:h0,isCancel:p0,CancelToken:m0,VERSION:g0,all:y0,Cancel:v0,isAxiosError:_0,spread:b0,toFormData:w0,AxiosHeaders:$0,HttpStatusCode:E0,formToJSON:S0,getAdapter:P0,mergeConfig:R0}=ke,ga="/api/v1",ya={async login(e,t){var i,a;const r=await fetch(`${ga}/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t})});if(!r.ok){const l=await r.json();throw new Error(l.error||"Ошибка входа")}const s=await r.json();console.log("Login response data:",s);const n=s.user??((i=s.data)==null?void 0:i.user),o=s.token??((a=s.data)==null?void 0:a.token);if(console.log("token",o),console.log("user",n),!o)throw new Error("Response missing user or token");return{user:n,token:o}},async register(e,t,r){var a,l;const s=await fetch(`${ga}/register`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,email:t,password:r})});if(!s.ok){const f=await s.json();throw new Error(f.error||"Ошибка регистрации")}const n=await s.json();console.log("Register response data:",n);const o=n.user??((a=n.data)==null?void 0:a.user),i=n.token??((l=n.data)==null?void 0:l.token);if(!i)throw new Error("Response missing user or token");return{user:o,token:i}}},je=Pr({user:null,token:null,isAuthenticated:!1,isLoading:!1,error:null}),Jm=()=>{const e=localStorage.getItem("user"),t=localStorage.getItem("token");if(e&&t)try{je.user=JSON.parse(e),je.token=t,je.isAuthenticated=!0}catch{localStorage.removeItem("token")}},Wm={async login(e,t,r=!1){je.isLoading=!0,je.error=null;try{const s=await ya.login(e,t);if(console.log("Login response:",s),!s||!s.token)throw new Error("Invalid response from server: missing user or token");return je.user=s.user,je.token=s.token,je.isAuthenticated=!0,localStorage.setItem("token",s.token),r&&localStorage.setItem("rememberMe","true"),gn.push("/"),s.user}catch(s){throw console.error("Login error:",s),je.error=s.message||"Login failed",s}finally{je.isLoading=!1}},async register(e,t,r){je.isLoading=!0,je.error=null;try{const s=await ya.register(e,t,r);if(console.log("Register response:",s),!s||!s.token)throw new Error("Invalid response from server: missing user or token");return je.user=s.user,je.token=s.token,je.isAuthenticated=!0,localStorage.setItem("token",s.token),gn.push("/"),s.user}catch(s){throw console.error("Register error:",s),je.error=s.message||"Registration failed",s}finally{je.isLoading=!1}},clearError(){je.error=null}};Jm();const At={state:je,...Wm};function Xm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cs={exports:{}},Zn={},Rt={},Xt={},eo={},to={},ro={},va;function pn(){return va||(va=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(c){if(super(),!e.IDENTIFIER.test(c))throw new Error("CodeGen: name must be a valid identifier");this.str=c}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class s extends t{constructor(c){super(),this._items=typeof c=="string"?[c]:c}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const c=this._items[0];return c===""||c==='""'}get str(){var c;return(c=this._str)!==null&&c!==void 0?c:this._str=this._items.reduce((m,w)=>`${m}${w}`,"")}get names(){var c;return(c=this._names)!==null&&c!==void 0?c:this._names=this._items.reduce((m,w)=>(w instanceof r&&(m[w.str]=(m[w.str]||0)+1),m),{})}}e._Code=s,e.nil=new s("");function n(p,...c){const m=[p[0]];let w=0;for(;w{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${f}${d.scopePath}`})}scopeCode(f=this._values,u,d){return this._reduceValues(f,v=>{if(v.value===void 0)throw new Error(`CodeGen: name "${v}" has no value`);return v.value.code},u,d)}_reduceValues(f,u,d={},v){let _=t.nil;for(const $ in f){const y=f[$];if(!y)continue;const h=d[$]=d[$]||new Map;y.forEach(p=>{if(h.has(p))return;h.set(p,s.Started);let c=u(p);if(c){const m=this.opts.es5?e.varKinds.var:e.varKinds.const;_=(0,t._)`${_}${m} ${p} = ${c};${this.opts._n}`}else if(c=v==null?void 0:v(p))_=(0,t._)`${_}${c}${this.opts._n}`;else throw new r(p);h.set(p,s.Completed)})}return _}}e.ValueScope=a}(so)),so}var wa;function me(){return wa||(wa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=pn(),r=ba();var s=pn();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return s.Name}});var n=ba();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(E,C){return this}}class i extends o{constructor(E,C,M){super(),this.varKind=E,this.name=C,this.rhs=M}render({es5:E,_n:C}){const M=E?r.varKinds.var:this.varKind,N=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${N};`+C}optimizeNames(E,C){if(E[this.name.str])return this.rhs&&(this.rhs=de(this.rhs,E,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(E,C,M){super(),this.lhs=E,this.rhs=C,this.sideEffects=M}render({_n:E}){return`${this.lhs} = ${this.rhs};`+E}optimizeNames(E,C){if(!(this.lhs instanceof t.Name&&!E[this.lhs.str]&&!this.sideEffects))return this.rhs=de(this.rhs,E,C),this}get names(){const E=this.lhs instanceof t.Name?{}:{...this.lhs.names};return te(E,this.rhs)}}class l extends a{constructor(E,C,M,N){super(E,M,N),this.op=C}render({_n:E}){return`${this.lhs} ${this.op}= ${this.rhs};`+E}}class f extends o{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`${this.label}:`+E}}class u extends o{constructor(E){super(),this.label=E,this.names={}}render({_n:E}){return`break${this.label?` ${this.label}`:""};`+E}}class d extends o{constructor(E){super(),this.error=E}render({_n:E}){return`throw ${this.error};`+E}get names(){return this.error.names}}class v extends o{constructor(E){super(),this.code=E}render({_n:E}){return`${this.code};`+E}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(E,C){return this.code=de(this.code,E,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class _ extends o{constructor(E=[]){super(),this.nodes=E}render(E){return this.nodes.reduce((C,M)=>C+M.render(E),"")}optimizeNodes(){const{nodes:E}=this;let C=E.length;for(;C--;){const M=E[C].optimizeNodes();Array.isArray(M)?E.splice(C,1,...M):M?E[C]=M:E.splice(C,1)}return E.length>0?this:void 0}optimizeNames(E,C){const{nodes:M}=this;let N=M.length;for(;N--;){const L=M[N];L.optimizeNames(E,C)||(Ce(E,L.names),M.splice(N,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((E,C)=>ie(E,C.names),{})}}class $ extends _{render(E){return"{"+E._n+super.render(E)+"}"+E._n}}class y extends _{}class h extends ${}h.kind="else";class p extends ${constructor(E,C){super(C),this.condition=E}render(E){let C=`if(${this.condition})`+super.render(E);return this.else&&(C+="else "+this.else.render(E)),C}optimizeNodes(){super.optimizeNodes();const E=this.condition;if(E===!0)return this.nodes;let C=this.else;if(C){const M=C.optimizeNodes();C=this.else=Array.isArray(M)?new h(M):M}if(C)return E===!1?C instanceof p?C:C.nodes:this.nodes.length?this:new p(Ee(E),C instanceof p?[C]:C.nodes);if(!(E===!1||!this.nodes.length))return this}optimizeNames(E,C){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(E,C),!!(super.optimizeNames(E,C)||this.else))return this.condition=de(this.condition,E,C),this}get names(){const E=super.names;return te(E,this.condition),this.else&&ie(E,this.else.names),E}}p.kind="if";class c extends ${}c.kind="for";class m extends c{constructor(E){super(),this.iteration=E}render(E){return`for(${this.iteration})`+super.render(E)}optimizeNames(E,C){if(super.optimizeNames(E,C))return this.iteration=de(this.iteration,E,C),this}get names(){return ie(super.names,this.iteration.names)}}class w extends c{constructor(E,C,M,N){super(),this.varKind=E,this.name=C,this.from=M,this.to=N}render(E){const C=E.es5?r.varKinds.var:this.varKind,{name:M,from:N,to:L}=this;return`for(${C} ${M}=${N}; ${M}<${L}; ${M}++)`+super.render(E)}get names(){const E=te(super.names,this.from);return te(E,this.to)}}class S extends c{constructor(E,C,M,N){super(),this.loop=E,this.varKind=C,this.name=M,this.iterable=N}render(E){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(E)}optimizeNames(E,C){if(super.optimizeNames(E,C))return this.iterable=de(this.iterable,E,C),this}get names(){return ie(super.names,this.iterable.names)}}class P extends ${constructor(E,C,M){super(),this.name=E,this.args=C,this.async=M}render(E){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(E)}}P.kind="func";class O extends _{render(E){return"return "+super.render(E)}}O.kind="return";class j extends ${render(E){let C="try"+super.render(E);return this.catch&&(C+=this.catch.render(E)),this.finally&&(C+=this.finally.render(E)),C}optimizeNodes(){var E,C;return super.optimizeNodes(),(E=this.catch)===null||E===void 0||E.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(E,C){var M,N;return super.optimizeNames(E,C),(M=this.catch)===null||M===void 0||M.optimizeNames(E,C),(N=this.finally)===null||N===void 0||N.optimizeNames(E,C),this}get names(){const E=super.names;return this.catch&&ie(E,this.catch.names),this.finally&&ie(E,this.finally.names),E}}class H extends ${constructor(E){super(),this.error=E}render(E){return`catch(${this.error})`+super.render(E)}}H.kind="catch";class Q extends ${render(E){return"finally"+super.render(E)}}Q.kind="finally";class Y{constructor(E,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?` +`:""},this._extScope=E,this._scope=new r.Scope({parent:E}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(E){return this._scope.name(E)}scopeName(E){return this._extScope.name(E)}scopeValue(E,C){const M=this._extScope.value(E,C);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(E,C){return this._extScope.getValue(E,C)}scopeRefs(E){return this._extScope.scopeRefs(E,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(E,C,M,N){const L=this._scope.toName(C);return M!==void 0&&N&&(this._constants[L.str]=M),this._leafNode(new i(E,L,M)),L}const(E,C,M){return this._def(r.varKinds.const,E,C,M)}let(E,C,M){return this._def(r.varKinds.let,E,C,M)}var(E,C,M){return this._def(r.varKinds.var,E,C,M)}assign(E,C,M){return this._leafNode(new a(E,C,M))}add(E,C){return this._leafNode(new l(E,e.operators.ADD,C))}code(E){return typeof E=="function"?E():E!==t.nil&&this._leafNode(new v(E)),this}object(...E){const C=["{"];for(const[M,N]of E)C.length>1&&C.push(","),C.push(M),(M!==N||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,N));return C.push("}"),new t._Code(C)}if(E,C,M){if(this._blockNode(new p(E)),C&&M)this.code(C).else().code(M).endIf();else if(C)this.code(C).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(E){return this._elseNode(new p(E))}else(){return this._elseNode(new h)}endIf(){return this._endBlockNode(p,h)}_for(E,C){return this._blockNode(E),C&&this.code(C).endFor(),this}for(E,C){return this._for(new m(E),C)}forRange(E,C,M,N,L=this.opts.es5?r.varKinds.var:r.varKinds.let){const K=this._scope.toName(E);return this._for(new w(L,K,C,M),()=>N(K))}forOf(E,C,M,N=r.varKinds.const){const L=this._scope.toName(E);if(this.opts.es5){const K=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${K}.length`,J=>{this.var(L,(0,t._)`${K}[${J}]`),M(L)})}return this._for(new S("of",N,L,C),()=>M(L))}forIn(E,C,M,N=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(E,(0,t._)`Object.keys(${C})`,M);const L=this._scope.toName(E);return this._for(new S("in",N,L,C),()=>M(L))}endFor(){return this._endBlockNode(c)}label(E){return this._leafNode(new f(E))}break(E){return this._leafNode(new u(E))}return(E){const C=new O;if(this._blockNode(C),this.code(E),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try(E,C,M){if(!C&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const N=new j;if(this._blockNode(N),this.code(E),C){const L=this.name("e");this._currNode=N.catch=new H(L),C(L)}return M&&(this._currNode=N.finally=new Q,this.code(M)),this._endBlockNode(H,Q)}throw(E){return this._leafNode(new d(E))}block(E,C){return this._blockStarts.push(this._nodes.length),E&&this.code(E).endBlock(C),this}endBlock(E){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-C;if(M<0||E!==void 0&&M!==E)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${E} expected`);return this._nodes.length=C,this}func(E,C=t.nil,M,N){return this._blockNode(new P(E,C,M)),N&&this.code(N).endFunc(),this}endFunc(){return this._endBlockNode(P)}optimize(E=1){for(;E-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(E){return this._currNode.nodes.push(E),this}_blockNode(E){this._currNode.nodes.push(E),this._nodes.push(E)}_endBlockNode(E,C){const M=this._currNode;if(M instanceof E||C&&M instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${E.kind}/${C.kind}`:E.kind}"`)}_elseNode(E){const C=this._currNode;if(!(C instanceof p))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=E,this}get _root(){return this._nodes[0]}get _currNode(){const E=this._nodes;return E[E.length-1]}set _currNode(E){const C=this._nodes;C[C.length-1]=E}}e.CodeGen=Y;function ie(q,E){for(const C in E)q[C]=(q[C]||0)+(E[C]||0);return q}function te(q,E){return E instanceof t._CodeOrName?ie(q,E.names):q}function de(q,E,C){if(q instanceof t.Name)return M(q);if(!N(q))return q;return new t._Code(q._items.reduce((L,K)=>(K instanceof t.Name&&(K=M(K)),K instanceof t._Code?L.push(...K._items):L.push(K),L),[]));function M(L){const K=C[L.str];return K===void 0||E[L.str]!==1?L:(delete E[L.str],K)}function N(L){return L instanceof t._Code&&L._items.some(K=>K instanceof t.Name&&E[K.str]===1&&C[K.str]!==void 0)}}function Ce(q,E){for(const C in E)q[C]=(q[C]||0)-(E[C]||0)}function Ee(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${F(q)}`}e.not=Ee;const pe=I(e.operators.AND);function re(...q){return q.reduce(pe)}e.and=re;const xe=I(e.operators.OR);function G(...q){return q.reduce(xe)}e.or=G;function I(q){return(E,C)=>E===t.nil?C:C===t.nil?E:(0,t._)`${F(E)} ${q} ${F(C)}`}function F(q){return q instanceof t.Name?q:(0,t._)`(${q})`}}(to)),to}var he={},$a;function ve(){if($a)return he;$a=1,Object.defineProperty(he,"__esModule",{value:!0}),he.checkStrictMode=he.getErrorPath=he.Type=he.useFunc=he.setEvaluated=he.evaluatedPropsToName=he.mergeEvaluated=he.eachItem=he.unescapeJsonPointer=he.escapeJsonPointer=he.escapeFragment=he.unescapeFragment=he.schemaRefOrVal=he.schemaHasRulesButRef=he.schemaHasRules=he.checkUnknownRules=he.alwaysValidSchema=he.toHash=void 0;const e=me(),t=pn();function r(S){const P={};for(const O of S)P[O]=!0;return P}he.toHash=r;function s(S,P){return typeof P=="boolean"?P:Object.keys(P).length===0?!0:(n(S,P),!o(P,S.self.RULES.all))}he.alwaysValidSchema=s;function n(S,P=S.schema){const{opts:O,self:j}=S;if(!O.strictSchema||typeof P=="boolean")return;const H=j.RULES.keywords;for(const Q in P)H[Q]||w(S,`unknown keyword: "${Q}"`)}he.checkUnknownRules=n;function o(S,P){if(typeof S=="boolean")return!S;for(const O in S)if(P[O])return!0;return!1}he.schemaHasRules=o;function i(S,P){if(typeof S=="boolean")return!S;for(const O in S)if(O!=="$ref"&&P.all[O])return!0;return!1}he.schemaHasRulesButRef=i;function a({topSchemaRef:S,schemaPath:P},O,j,H){if(!H){if(typeof O=="number"||typeof O=="boolean")return O;if(typeof O=="string")return(0,e._)`${O}`}return(0,e._)`${S}${P}${(0,e.getProperty)(j)}`}he.schemaRefOrVal=a;function l(S){return d(decodeURIComponent(S))}he.unescapeFragment=l;function f(S){return encodeURIComponent(u(S))}he.escapeFragment=f;function u(S){return typeof S=="number"?`${S}`:S.replace(/~/g,"~0").replace(/\//g,"~1")}he.escapeJsonPointer=u;function d(S){return S.replace(/~1/g,"/").replace(/~0/g,"~")}he.unescapeJsonPointer=d;function v(S,P){if(Array.isArray(S))for(const O of S)P(O);else P(S)}he.eachItem=v;function _({mergeNames:S,mergeToName:P,mergeValues:O,resultToName:j}){return(H,Q,Y,ie)=>{const te=Y===void 0?Q:Y instanceof e.Name?(Q instanceof e.Name?S(H,Q,Y):P(H,Q,Y),Y):Q instanceof e.Name?(P(H,Y,Q),Q):O(Q,Y);return ie===e.Name&&!(te instanceof e.Name)?j(H,te):te}}he.mergeEvaluated={props:_({mergeNames:(S,P,O)=>S.if((0,e._)`${O} !== true && ${P} !== undefined`,()=>{S.if((0,e._)`${P} === true`,()=>S.assign(O,!0),()=>S.assign(O,(0,e._)`${O} || {}`).code((0,e._)`Object.assign(${O}, ${P})`))}),mergeToName:(S,P,O)=>S.if((0,e._)`${O} !== true`,()=>{P===!0?S.assign(O,!0):(S.assign(O,(0,e._)`${O} || {}`),y(S,O,P))}),mergeValues:(S,P)=>S===!0?!0:{...S,...P},resultToName:$}),items:_({mergeNames:(S,P,O)=>S.if((0,e._)`${O} !== true && ${P} !== undefined`,()=>S.assign(O,(0,e._)`${P} === true ? true : ${O} > ${P} ? ${O} : ${P}`)),mergeToName:(S,P,O)=>S.if((0,e._)`${O} !== true`,()=>S.assign(O,P===!0?!0:(0,e._)`${O} > ${P} ? ${O} : ${P}`)),mergeValues:(S,P)=>S===!0?!0:Math.max(S,P),resultToName:(S,P)=>S.var("items",P)})};function $(S,P){if(P===!0)return S.var("props",!0);const O=S.var("props",(0,e._)`{}`);return P!==void 0&&y(S,O,P),O}he.evaluatedPropsToName=$;function y(S,P,O){Object.keys(O).forEach(j=>S.assign((0,e._)`${P}${(0,e.getProperty)(j)}`,!0))}he.setEvaluated=y;const h={};function p(S,P){return S.scopeValue("func",{ref:P,code:h[P.code]||(h[P.code]=new t._Code(P.code))})}he.useFunc=p;var c;(function(S){S[S.Num=0]="Num",S[S.Str=1]="Str"})(c||(he.Type=c={}));function m(S,P,O){if(S instanceof e.Name){const j=P===c.Num;return O?j?(0,e._)`"[" + ${S} + "]"`:(0,e._)`"['" + ${S} + "']"`:j?(0,e._)`"/" + ${S}`:(0,e._)`"/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return O?(0,e.getProperty)(S).toString():"/"+u(S)}he.getErrorPath=m;function w(S,P,O=S.opts.strictSchema){if(O){if(P=`strict mode: ${P}`,O===!0)throw new Error(P);S.self.logger.warn(P)}}return he.checkStrictMode=w,he}var fs={},Ea;function Gt(){if(Ea)return fs;Ea=1,Object.defineProperty(fs,"__esModule",{value:!0});const e=me(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return fs.default=t,fs}var Sa;function jn(){return Sa||(Sa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=me(),r=ve(),s=Gt();e.keywordError={message:({keyword:h})=>(0,t.str)`must pass "${h}" keyword validation`},e.keyword$DataError={message:({keyword:h,schemaType:p})=>p?(0,t.str)`"${h}" keyword must be ${p} ($data)`:(0,t.str)`"${h}" keyword is invalid ($data)`};function n(h,p=e.keywordError,c,m){const{it:w}=h,{gen:S,compositeRule:P,allErrors:O}=w,j=d(h,p,c);m??(P||O)?l(S,j):f(w,(0,t._)`[${j}]`)}e.reportError=n;function o(h,p=e.keywordError,c){const{it:m}=h,{gen:w,compositeRule:S,allErrors:P}=m,O=d(h,p,c);l(w,O),S||P||f(m,s.default.vErrors)}e.reportExtraError=o;function i(h,p){h.assign(s.default.errors,p),h.if((0,t._)`${s.default.vErrors} !== null`,()=>h.if(p,()=>h.assign((0,t._)`${s.default.vErrors}.length`,p),()=>h.assign(s.default.vErrors,null)))}e.resetErrorsCount=i;function a({gen:h,keyword:p,schemaValue:c,data:m,errsCount:w,it:S}){if(w===void 0)throw new Error("ajv implementation error");const P=h.name("err");h.forRange("i",w,s.default.errors,O=>{h.const(P,(0,t._)`${s.default.vErrors}[${O}]`),h.if((0,t._)`${P}.instancePath === undefined`,()=>h.assign((0,t._)`${P}.instancePath`,(0,t.strConcat)(s.default.instancePath,S.errorPath))),h.assign((0,t._)`${P}.schemaPath`,(0,t.str)`${S.errSchemaPath}/${p}`),S.opts.verbose&&(h.assign((0,t._)`${P}.schema`,c),h.assign((0,t._)`${P}.data`,m))})}e.extendErrors=a;function l(h,p){const c=h.const("err",p);h.if((0,t._)`${s.default.vErrors} === null`,()=>h.assign(s.default.vErrors,(0,t._)`[${c}]`),(0,t._)`${s.default.vErrors}.push(${c})`),h.code((0,t._)`${s.default.errors}++`)}function f(h,p){const{gen:c,validateName:m,schemaEnv:w}=h;w.$async?c.throw((0,t._)`new ${h.ValidationError}(${p})`):(c.assign((0,t._)`${m}.errors`,p),c.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(h,p,c){const{createErrors:m}=h.it;return m===!1?(0,t._)`{}`:v(h,p,c)}function v(h,p,c={}){const{gen:m,it:w}=h,S=[_(w,c),$(h,c)];return y(h,p,S),m.object(...S)}function _({errorPath:h},{instancePath:p}){const c=p?(0,t.str)`${h}${(0,r.getErrorPath)(p,r.Type.Str)}`:h;return[s.default.instancePath,(0,t.strConcat)(s.default.instancePath,c)]}function $({keyword:h,it:{errSchemaPath:p}},{schemaPath:c,parentSchema:m}){let w=m?p:(0,t.str)`${p}/${h}`;return c&&(w=(0,t.str)`${w}${(0,r.getErrorPath)(c,r.Type.Str)}`),[u.schemaPath,w]}function y(h,{params:p,message:c},m){const{keyword:w,data:S,schemaValue:P,it:O}=h,{opts:j,propertyName:H,topSchemaRef:Q,schemaPath:Y}=O;m.push([u.keyword,w],[u.params,typeof p=="function"?p(h):p||(0,t._)`{}`]),j.messages&&m.push([u.message,typeof c=="function"?c(h):c]),j.verbose&&m.push([u.schema,P],[u.parentSchema,(0,t._)`${Q}${Y}`],[s.default.data,S]),H&&m.push([u.propertyName,H])}}(eo)),eo}var Pa;function Qm(){if(Pa)return Xt;Pa=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.boolOrEmptySchema=Xt.topBoolOrEmptySchema=void 0;const e=jn(),t=me(),r=Gt(),s={message:"boolean schema is false"};function n(a){const{gen:l,schema:f,validateName:u}=a;f===!1?i(a,!1):typeof f=="object"&&f.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${u}.errors`,null),l.return(!0))}Xt.topBoolOrEmptySchema=n;function o(a,l){const{gen:f,schema:u}=a;u===!1?(f.var(l,!1),i(a)):f.var(l,!0)}Xt.boolOrEmptySchema=o;function i(a,l){const{gen:f,data:u}=a,d={gen:f,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(d,s,void 0,l)}return Xt}var Me={},Qt={},Ra;function Ec(){if(Ra)return Qt;Ra=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.getRules=Qt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(n){return typeof n=="string"&&t.has(n)}Qt.isJSONType=r;function s(){const n={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...n,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},n.number,n.string,n.array,n.object],post:{rules:[]},all:{},keywords:{}}}return Qt.getRules=s,Qt}var Tt={},Ta;function Sc(){if(Ta)return Tt;Ta=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.shouldUseRule=Tt.shouldUseGroup=Tt.schemaHasRulesForType=void 0;function e({schema:s,self:n},o){const i=n.RULES.types[o];return i&&i!==!0&&t(s,i)}Tt.schemaHasRulesForType=e;function t(s,n){return n.rules.some(o=>r(s,o))}Tt.shouldUseGroup=t;function r(s,n){var o;return s[n.keyword]!==void 0||((o=n.definition.implements)===null||o===void 0?void 0:o.some(i=>s[i]!==void 0))}return Tt.shouldUseRule=r,Tt}var Oa;function mn(){if(Oa)return Me;Oa=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.reportTypeError=Me.checkDataTypes=Me.checkDataType=Me.coerceAndCheckDataType=Me.getJSONTypes=Me.getSchemaTypes=Me.DataType=void 0;const e=Ec(),t=Sc(),r=jn(),s=me(),n=ve();var o;(function(c){c[c.Correct=0]="Correct",c[c.Wrong=1]="Wrong"})(o||(Me.DataType=o={}));function i(c){const m=a(c.type);if(m.includes("null")){if(c.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!m.length&&c.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');c.nullable===!0&&m.push("null")}return m}Me.getSchemaTypes=i;function a(c){const m=Array.isArray(c)?c:c?[c]:[];if(m.every(e.isJSONType))return m;throw new Error("type must be JSONType or JSONType[]: "+m.join(","))}Me.getJSONTypes=a;function l(c,m){const{gen:w,data:S,opts:P}=c,O=u(m,P.coerceTypes),j=m.length>0&&!(O.length===0&&m.length===1&&(0,t.schemaHasRulesForType)(c,m[0]));if(j){const H=$(m,S,P.strictNumbers,o.Wrong);w.if(H,()=>{O.length?d(c,m,O):h(c)})}return j}Me.coerceAndCheckDataType=l;const f=new Set(["string","number","integer","boolean","null"]);function u(c,m){return m?c.filter(w=>f.has(w)||m==="array"&&w==="array"):[]}function d(c,m,w){const{gen:S,data:P,opts:O}=c,j=S.let("dataType",(0,s._)`typeof ${P}`),H=S.let("coerced",(0,s._)`undefined`);O.coerceTypes==="array"&&S.if((0,s._)`${j} == 'object' && Array.isArray(${P}) && ${P}.length == 1`,()=>S.assign(P,(0,s._)`${P}[0]`).assign(j,(0,s._)`typeof ${P}`).if($(m,P,O.strictNumbers),()=>S.assign(H,P))),S.if((0,s._)`${H} !== undefined`);for(const Y of w)(f.has(Y)||Y==="array"&&O.coerceTypes==="array")&&Q(Y);S.else(),h(c),S.endIf(),S.if((0,s._)`${H} !== undefined`,()=>{S.assign(P,H),v(c,H)});function Q(Y){switch(Y){case"string":S.elseIf((0,s._)`${j} == "number" || ${j} == "boolean"`).assign(H,(0,s._)`"" + ${P}`).elseIf((0,s._)`${P} === null`).assign(H,(0,s._)`""`);return;case"number":S.elseIf((0,s._)`${j} == "boolean" || ${P} === null + || (${j} == "string" && ${P} && ${P} == +${P})`).assign(H,(0,s._)`+${P}`);return;case"integer":S.elseIf((0,s._)`${j} === "boolean" || ${P} === null + || (${j} === "string" && ${P} && ${P} == +${P} && !(${P} % 1))`).assign(H,(0,s._)`+${P}`);return;case"boolean":S.elseIf((0,s._)`${P} === "false" || ${P} === 0 || ${P} === null`).assign(H,!1).elseIf((0,s._)`${P} === "true" || ${P} === 1`).assign(H,!0);return;case"null":S.elseIf((0,s._)`${P} === "" || ${P} === 0 || ${P} === false`),S.assign(H,null);return;case"array":S.elseIf((0,s._)`${j} === "string" || ${j} === "number" + || ${j} === "boolean" || ${P} === null`).assign(H,(0,s._)`[${P}]`)}}}function v({gen:c,parentData:m,parentDataProperty:w},S){c.if((0,s._)`${m} !== undefined`,()=>c.assign((0,s._)`${m}[${w}]`,S))}function _(c,m,w,S=o.Correct){const P=S===o.Correct?s.operators.EQ:s.operators.NEQ;let O;switch(c){case"null":return(0,s._)`${m} ${P} null`;case"array":O=(0,s._)`Array.isArray(${m})`;break;case"object":O=(0,s._)`${m} && typeof ${m} == "object" && !Array.isArray(${m})`;break;case"integer":O=j((0,s._)`!(${m} % 1) && !isNaN(${m})`);break;case"number":O=j();break;default:return(0,s._)`typeof ${m} ${P} ${c}`}return S===o.Correct?O:(0,s.not)(O);function j(H=s.nil){return(0,s.and)((0,s._)`typeof ${m} == "number"`,H,w?(0,s._)`isFinite(${m})`:s.nil)}}Me.checkDataType=_;function $(c,m,w,S){if(c.length===1)return _(c[0],m,w,S);let P;const O=(0,n.toHash)(c);if(O.array&&O.object){const j=(0,s._)`typeof ${m} != "object"`;P=O.null?j:(0,s._)`!${m} || ${j}`,delete O.null,delete O.array,delete O.object}else P=s.nil;O.number&&delete O.integer;for(const j in O)P=(0,s.and)(P,_(j,m,w,S));return P}Me.checkDataTypes=$;const y={message:({schema:c})=>`must be ${c}`,params:({schema:c,schemaValue:m})=>typeof c=="string"?(0,s._)`{type: ${c}}`:(0,s._)`{type: ${m}}`};function h(c){const m=p(c);(0,r.reportError)(m,y)}Me.reportTypeError=h;function p(c){const{gen:m,data:w,schema:S}=c,P=(0,n.schemaRefOrVal)(c,S,"type");return{gen:m,keyword:"type",data:w,schema:S.type,schemaCode:P,schemaValue:P,parentSchema:S,params:{},it:c}}return Me}var Ir={},Ca;function Ym(){if(Ca)return Ir;Ca=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.assignDefaults=void 0;const e=me(),t=ve();function r(n,o){const{properties:i,items:a}=n.schema;if(o==="object"&&i)for(const l in i)s(n,l,i[l].default);else o==="array"&&Array.isArray(a)&&a.forEach((l,f)=>s(n,f,l.default))}Ir.assignDefaults=r;function s(n,o,i){const{gen:a,compositeRule:l,data:f,opts:u}=n;if(i===void 0)return;const d=(0,e._)`${f}${(0,e.getProperty)(o)}`;if(l){(0,t.checkStrictMode)(n,`default is ignored for: ${d}`);return}let v=(0,e._)`${d} === undefined`;u.useDefaults==="empty"&&(v=(0,e._)`${v} || ${d} === null || ${d} === ""`),a.if(v,(0,e._)`${d} = ${(0,e.stringify)(i)}`)}return Ir}var at={},Se={},ka;function dt(){if(ka)return Se;ka=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.validateUnion=Se.validateArray=Se.usePattern=Se.callValidateCode=Se.schemaProperties=Se.allSchemaProperties=Se.noPropertyInData=Se.propertyInData=Se.isOwnProperty=Se.hasPropFunc=Se.reportMissingProp=Se.checkMissingProp=Se.checkReportMissingProp=void 0;const e=me(),t=ve(),r=Gt(),s=ve();function n(c,m){const{gen:w,data:S,it:P}=c;w.if(u(w,S,m,P.opts.ownProperties),()=>{c.setParams({missingProperty:(0,e._)`${m}`},!0),c.error()})}Se.checkReportMissingProp=n;function o({gen:c,data:m,it:{opts:w}},S,P){return(0,e.or)(...S.map(O=>(0,e.and)(u(c,m,O,w.ownProperties),(0,e._)`${P} = ${O}`)))}Se.checkMissingProp=o;function i(c,m){c.setParams({missingProperty:m},!0),c.error()}Se.reportMissingProp=i;function a(c){return c.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Se.hasPropFunc=a;function l(c,m,w){return(0,e._)`${a(c)}.call(${m}, ${w})`}Se.isOwnProperty=l;function f(c,m,w,S){const P=(0,e._)`${m}${(0,e.getProperty)(w)} !== undefined`;return S?(0,e._)`${P} && ${l(c,m,w)}`:P}Se.propertyInData=f;function u(c,m,w,S){const P=(0,e._)`${m}${(0,e.getProperty)(w)} === undefined`;return S?(0,e.or)(P,(0,e.not)(l(c,m,w))):P}Se.noPropertyInData=u;function d(c){return c?Object.keys(c).filter(m=>m!=="__proto__"):[]}Se.allSchemaProperties=d;function v(c,m){return d(m).filter(w=>!(0,t.alwaysValidSchema)(c,m[w]))}Se.schemaProperties=v;function _({schemaCode:c,data:m,it:{gen:w,topSchemaRef:S,schemaPath:P,errorPath:O},it:j},H,Q,Y){const ie=Y?(0,e._)`${c}, ${m}, ${S}${P}`:m,te=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,O)],[r.default.parentData,j.parentData],[r.default.parentDataProperty,j.parentDataProperty],[r.default.rootData,r.default.rootData]];j.opts.dynamicRef&&te.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const de=(0,e._)`${ie}, ${w.object(...te)}`;return Q!==e.nil?(0,e._)`${H}.call(${Q}, ${de})`:(0,e._)`${H}(${de})`}Se.callValidateCode=_;const $=(0,e._)`new RegExp`;function y({gen:c,it:{opts:m}},w){const S=m.unicodeRegExp?"u":"",{regExp:P}=m.code,O=P(w,S);return c.scopeValue("pattern",{key:O.toString(),ref:O,code:(0,e._)`${P.code==="new RegExp"?$:(0,s.useFunc)(c,P)}(${w}, ${S})`})}Se.usePattern=y;function h(c){const{gen:m,data:w,keyword:S,it:P}=c,O=m.name("valid");if(P.allErrors){const H=m.let("valid",!0);return j(()=>m.assign(H,!1)),H}return m.var(O,!0),j(()=>m.break()),O;function j(H){const Q=m.const("len",(0,e._)`${w}.length`);m.forRange("i",0,Q,Y=>{c.subschema({keyword:S,dataProp:Y,dataPropType:t.Type.Num},O),m.if((0,e.not)(O),H)})}}Se.validateArray=h;function p(c){const{gen:m,schema:w,keyword:S,it:P}=c;if(!Array.isArray(w))throw new Error("ajv implementation error");if(w.some(Q=>(0,t.alwaysValidSchema)(P,Q))&&!P.opts.unevaluated)return;const j=m.let("valid",!1),H=m.name("_valid");m.block(()=>w.forEach((Q,Y)=>{const ie=c.subschema({keyword:S,schemaProp:Y,compositeRule:!0},H);m.assign(j,(0,e._)`${j} || ${H}`),c.mergeValidEvaluated(ie,H)||m.if((0,e.not)(j))})),c.result(j,()=>c.reset(),()=>c.error(!0))}return Se.validateUnion=p,Se}var Na;function Zm(){if(Na)return at;Na=1,Object.defineProperty(at,"__esModule",{value:!0}),at.validateKeywordUsage=at.validSchemaType=at.funcKeywordCode=at.macroKeywordCode=void 0;const e=me(),t=Gt(),r=dt(),s=jn();function n(v,_){const{gen:$,keyword:y,schema:h,parentSchema:p,it:c}=v,m=_.macro.call(c.self,h,p,c),w=f($,y,m);c.opts.validateSchema!==!1&&c.self.validateSchema(m,!0);const S=$.name("valid");v.subschema({schema:m,schemaPath:e.nil,errSchemaPath:`${c.errSchemaPath}/${y}`,topSchemaRef:w,compositeRule:!0},S),v.pass(S,()=>v.error(!0))}at.macroKeywordCode=n;function o(v,_){var $;const{gen:y,keyword:h,schema:p,parentSchema:c,$data:m,it:w}=v;l(w,_);const S=!m&&_.compile?_.compile.call(w.self,p,c,w):_.validate,P=f(y,h,S),O=y.let("valid");v.block$data(O,j),v.ok(($=_.valid)!==null&&$!==void 0?$:O);function j(){if(_.errors===!1)Y(),_.modifying&&i(v),ie(()=>v.error());else{const te=_.async?H():Q();_.modifying&&i(v),ie(()=>a(v,te))}}function H(){const te=y.let("ruleErrs",null);return y.try(()=>Y((0,e._)`await `),de=>y.assign(O,!1).if((0,e._)`${de} instanceof ${w.ValidationError}`,()=>y.assign(te,(0,e._)`${de}.errors`),()=>y.throw(de))),te}function Q(){const te=(0,e._)`${P}.errors`;return y.assign(te,null),Y(e.nil),te}function Y(te=_.async?(0,e._)`await `:e.nil){const de=w.opts.passContext?t.default.this:t.default.self,Ce=!("compile"in _&&!m||_.schema===!1);y.assign(O,(0,e._)`${te}${(0,r.callValidateCode)(v,P,de,Ce)}`,_.modifying)}function ie(te){var de;y.if((0,e.not)((de=_.valid)!==null&&de!==void 0?de:O),te)}}at.funcKeywordCode=o;function i(v){const{gen:_,data:$,it:y}=v;_.if(y.parentData,()=>_.assign($,(0,e._)`${y.parentData}[${y.parentDataProperty}]`))}function a(v,_){const{gen:$}=v;$.if((0,e._)`Array.isArray(${_})`,()=>{$.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${_} : ${t.default.vErrors}.concat(${_})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,s.extendErrors)(v)},()=>v.error())}function l({schemaEnv:v},_){if(_.async&&!v.$async)throw new Error("async keyword in sync schema")}function f(v,_,$){if($===void 0)throw new Error(`keyword "${_}" failed to compile`);return v.scopeValue("keyword",typeof $=="function"?{ref:$}:{ref:$,code:(0,e.stringify)($)})}function u(v,_,$=!1){return!_.length||_.some(y=>y==="array"?Array.isArray(v):y==="object"?v&&typeof v=="object"&&!Array.isArray(v):typeof v==y||$&&typeof v>"u")}at.validSchemaType=u;function d({schema:v,opts:_,self:$,errSchemaPath:y},h,p){if(Array.isArray(h.keyword)?!h.keyword.includes(p):h.keyword!==p)throw new Error("ajv implementation error");const c=h.dependencies;if(c!=null&&c.some(m=>!Object.prototype.hasOwnProperty.call(v,m)))throw new Error(`parent schema must have dependencies of ${p}: ${c.join(",")}`);if(h.validateSchema&&!h.validateSchema(v[p])){const w=`keyword "${p}" value is invalid at path "${y}": `+$.errorsText(h.validateSchema.errors);if(_.validateSchema==="log")$.logger.error(w);else throw new Error(w)}}return at.validateKeywordUsage=d,at}var Ot={},Aa;function eg(){if(Aa)return Ot;Aa=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.extendSubschemaMode=Ot.extendSubschemaData=Ot.getSubschema=void 0;const e=me(),t=ve();function r(o,{keyword:i,schemaProp:a,schema:l,schemaPath:f,errSchemaPath:u,topSchemaRef:d}){if(i!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const v=o.schema[i];return a===void 0?{schema:v,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(i)}`,errSchemaPath:`${o.errSchemaPath}/${i}`}:{schema:v[a],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(i)}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${i}/${(0,t.escapeFragment)(a)}`}}if(l!==void 0){if(f===void 0||u===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:f,topSchemaRef:d,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Ot.getSubschema=r;function s(o,i,{dataProp:a,dataPropType:l,data:f,dataTypes:u,propertyName:d}){if(f!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:v}=i;if(a!==void 0){const{errorPath:$,dataPathArr:y,opts:h}=i,p=v.let("data",(0,e._)`${i.data}${(0,e.getProperty)(a)}`,!0);_(p),o.errorPath=(0,e.str)`${$}${(0,t.getErrorPath)(a,l,h.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${a}`,o.dataPathArr=[...y,o.parentDataProperty]}if(f!==void 0){const $=f instanceof e.Name?f:v.let("data",f,!0);_($),d!==void 0&&(o.propertyName=d)}u&&(o.dataTypes=u);function _($){o.data=$,o.dataLevel=i.dataLevel+1,o.dataTypes=[],i.definedProperties=new Set,o.parentData=i.data,o.dataNames=[...i.dataNames,$]}}Ot.extendSubschemaData=s;function n(o,{jtdDiscriminator:i,jtdMetadata:a,compositeRule:l,createErrors:f,allErrors:u}){l!==void 0&&(o.compositeRule=l),f!==void 0&&(o.createErrors=f),u!==void 0&&(o.allErrors=u),o.jtdDiscriminator=i,o.jtdMetadata=a}return Ot.extendSubschemaMode=n,Ot}var Ge={},no,Ia;function Pc(){return Ia||(Ia=1,no=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var s,n,o;if(Array.isArray(t)){if(s=t.length,s!=r.length)return!1;for(n=s;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),s=o.length,s!==Object.keys(r).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=s;n--!==0;){var i=o[n];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}),no}var oo={exports:{}},ja;function tg(){if(ja)return oo.exports;ja=1;var e=oo.exports=function(s,n,o){typeof n=="function"&&(o=n,n={}),o=n.cb||o;var i=typeof o=="function"?o:o.pre||function(){},a=o.post||function(){};t(n,i,a,s,"",s)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(s,n,o,i,a,l,f,u,d,v){if(i&&typeof i=="object"&&!Array.isArray(i)){n(i,a,l,f,u,d,v);for(var _ in i){var $=i[_];if(Array.isArray($)){if(_ in e.arrayKeywords)for(var y=0;y<$.length;y++)t(s,n,o,$[y],a+"/"+_+"/"+y,l,a,_,i,y)}else if(_ in e.propsKeywords){if($&&typeof $=="object")for(var h in $)t(s,n,o,$[h],a+"/"+_+"/"+r(h),l,a,_,i,h)}else(_ in e.keywords||s.allKeys&&!(_ in e.skipKeywords))&&t(s,n,o,$,a+"/"+_,l,a,_,i)}o(i,a,l,f,u,d,v)}}function r(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")}return oo.exports}var qa;function qn(){if(qa)return Ge;qa=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.getSchemaRefs=Ge.resolveUrl=Ge.normalizeId=Ge._getFullPath=Ge.getFullPath=Ge.inlineRef=void 0;const e=ve(),t=Pc(),r=tg(),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(y,h=!0){return typeof y=="boolean"?!0:h===!0?!i(y):h?a(y)<=h:!1}Ge.inlineRef=n;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(y){for(const h in y){if(o.has(h))return!0;const p=y[h];if(Array.isArray(p)&&p.some(i)||typeof p=="object"&&i(p))return!0}return!1}function a(y){let h=0;for(const p in y){if(p==="$ref")return 1/0;if(h++,!s.has(p)&&(typeof y[p]=="object"&&(0,e.eachItem)(y[p],c=>h+=a(c)),h===1/0))return 1/0}return h}function l(y,h="",p){p!==!1&&(h=d(h));const c=y.parse(h);return f(y,c)}Ge.getFullPath=l;function f(y,h){return y.serialize(h).split("#")[0]+"#"}Ge._getFullPath=f;const u=/#\/?$/;function d(y){return y?y.replace(u,""):""}Ge.normalizeId=d;function v(y,h,p){return p=d(p),y.resolve(h,p)}Ge.resolveUrl=v;const _=/^[a-z_][-a-z0-9._]*$/i;function $(y,h){if(typeof y=="boolean")return{};const{schemaId:p,uriResolver:c}=this.opts,m=d(y[p]||h),w={"":m},S=l(c,m,!1),P={},O=new Set;return r(y,{allKeys:!0},(Q,Y,ie,te)=>{if(te===void 0)return;const de=S+Y;let Ce=w[te];typeof Q[p]=="string"&&(Ce=Ee.call(this,Q[p])),pe.call(this,Q.$anchor),pe.call(this,Q.$dynamicAnchor),w[Y]=Ce;function Ee(re){const xe=this.opts.uriResolver.resolve;if(re=d(Ce?xe(Ce,re):re),O.has(re))throw H(re);O.add(re);let G=this.refs[re];return typeof G=="string"&&(G=this.refs[G]),typeof G=="object"?j(Q,G.schema,re):re!==d(de)&&(re[0]==="#"?(j(Q,P[re],re),P[re]=Q):this.refs[re]=de),re}function pe(re){if(typeof re=="string"){if(!_.test(re))throw new Error(`invalid anchor "${re}"`);Ee.call(this,`#${re}`)}}}),P;function j(Q,Y,ie){if(Y!==void 0&&!t(Q,Y))throw H(ie)}function H(Q){return new Error(`reference "${Q}" resolves to more than one schema`)}}return Ge.getSchemaRefs=$,Ge}var xa;function xn(){if(xa)return Rt;xa=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.getData=Rt.KeywordCxt=Rt.validateFunctionCode=void 0;const e=Qm(),t=mn(),r=Sc(),s=mn(),n=Ym(),o=Zm(),i=eg(),a=me(),l=Gt(),f=qn(),u=ve(),d=jn();function v(k){if(S(k)&&(O(k),w(k))){h(k);return}_(k,()=>(0,e.topBoolOrEmptySchema)(k))}Rt.validateFunctionCode=v;function _({gen:k,validateName:g,schema:b,schemaEnv:T,opts:A},x){A.code.es5?k.func(g,(0,a._)`${l.default.data}, ${l.default.valCxt}`,T.$async,()=>{k.code((0,a._)`"use strict"; ${c(b,A)}`),y(k,A),k.code(x)}):k.func(g,(0,a._)`${l.default.data}, ${$(A)}`,T.$async,()=>k.code(c(b,A)).code(x))}function $(k){return(0,a._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${k.dynamicRef?(0,a._)`, ${l.default.dynamicAnchors}={}`:a.nil}}={}`}function y(k,g){k.if(l.default.valCxt,()=>{k.var(l.default.instancePath,(0,a._)`${l.default.valCxt}.${l.default.instancePath}`),k.var(l.default.parentData,(0,a._)`${l.default.valCxt}.${l.default.parentData}`),k.var(l.default.parentDataProperty,(0,a._)`${l.default.valCxt}.${l.default.parentDataProperty}`),k.var(l.default.rootData,(0,a._)`${l.default.valCxt}.${l.default.rootData}`),g.dynamicRef&&k.var(l.default.dynamicAnchors,(0,a._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{k.var(l.default.instancePath,(0,a._)`""`),k.var(l.default.parentData,(0,a._)`undefined`),k.var(l.default.parentDataProperty,(0,a._)`undefined`),k.var(l.default.rootData,l.default.data),g.dynamicRef&&k.var(l.default.dynamicAnchors,(0,a._)`{}`)})}function h(k){const{schema:g,opts:b,gen:T}=k;_(k,()=>{b.$comment&&g.$comment&&te(k),Q(k),T.let(l.default.vErrors,null),T.let(l.default.errors,0),b.unevaluated&&p(k),j(k),de(k)})}function p(k){const{gen:g,validateName:b}=k;k.evaluated=g.const("evaluated",(0,a._)`${b}.evaluated`),g.if((0,a._)`${k.evaluated}.dynamicProps`,()=>g.assign((0,a._)`${k.evaluated}.props`,(0,a._)`undefined`)),g.if((0,a._)`${k.evaluated}.dynamicItems`,()=>g.assign((0,a._)`${k.evaluated}.items`,(0,a._)`undefined`))}function c(k,g){const b=typeof k=="object"&&k[g.schemaId];return b&&(g.code.source||g.code.process)?(0,a._)`/*# sourceURL=${b} */`:a.nil}function m(k,g){if(S(k)&&(O(k),w(k))){P(k,g);return}(0,e.boolOrEmptySchema)(k,g)}function w({schema:k,self:g}){if(typeof k=="boolean")return!k;for(const b in k)if(g.RULES.all[b])return!0;return!1}function S(k){return typeof k.schema!="boolean"}function P(k,g){const{schema:b,gen:T,opts:A}=k;A.$comment&&b.$comment&&te(k),Y(k),ie(k);const x=T.const("_errs",l.default.errors);j(k,x),T.var(g,(0,a._)`${x} === ${l.default.errors}`)}function O(k){(0,u.checkUnknownRules)(k),H(k)}function j(k,g){if(k.opts.jtd)return Ee(k,[],!1,g);const b=(0,t.getSchemaTypes)(k.schema),T=(0,t.coerceAndCheckDataType)(k,b);Ee(k,b,!T,g)}function H(k){const{schema:g,errSchemaPath:b,opts:T,self:A}=k;g.$ref&&T.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(g,A.RULES)&&A.logger.warn(`$ref: keywords ignored in schema at path "${b}"`)}function Q(k){const{schema:g,opts:b}=k;g.default!==void 0&&b.useDefaults&&b.strictSchema&&(0,u.checkStrictMode)(k,"default is ignored in the schema root")}function Y(k){const g=k.schema[k.opts.schemaId];g&&(k.baseId=(0,f.resolveUrl)(k.opts.uriResolver,k.baseId,g))}function ie(k){if(k.schema.$async&&!k.schemaEnv.$async)throw new Error("async schema in sync schema")}function te({gen:k,schemaEnv:g,schema:b,errSchemaPath:T,opts:A}){const x=b.$comment;if(A.$comment===!0)k.code((0,a._)`${l.default.self}.logger.log(${x})`);else if(typeof A.$comment=="function"){const U=(0,a.str)`${T}/$comment`,W=k.scopeValue("root",{ref:g.root});k.code((0,a._)`${l.default.self}.opts.$comment(${x}, ${U}, ${W}.schema)`)}}function de(k){const{gen:g,schemaEnv:b,validateName:T,ValidationError:A,opts:x}=k;b.$async?g.if((0,a._)`${l.default.errors} === 0`,()=>g.return(l.default.data),()=>g.throw((0,a._)`new ${A}(${l.default.vErrors})`)):(g.assign((0,a._)`${T}.errors`,l.default.vErrors),x.unevaluated&&Ce(k),g.return((0,a._)`${l.default.errors} === 0`))}function Ce({gen:k,evaluated:g,props:b,items:T}){b instanceof a.Name&&k.assign((0,a._)`${g}.props`,b),T instanceof a.Name&&k.assign((0,a._)`${g}.items`,T)}function Ee(k,g,b,T){const{gen:A,schema:x,data:U,allErrors:W,opts:z,self:B}=k,{RULES:V}=B;if(x.$ref&&(z.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(x,V))){A.block(()=>N(k,"$ref",V.all.$ref.definition));return}z.jtd||re(k,g),A.block(()=>{for(const X of V.rules)ne(X);ne(V.post)});function ne(X){(0,r.shouldUseGroup)(x,X)&&(X.type?(A.if((0,s.checkDataType)(X.type,U,z.strictNumbers)),pe(k,X),g.length===1&&g[0]===X.type&&b&&(A.else(),(0,s.reportTypeError)(k)),A.endIf()):pe(k,X),W||A.if((0,a._)`${l.default.errors} === ${T||0}`))}}function pe(k,g){const{gen:b,schema:T,opts:{useDefaults:A}}=k;A&&(0,n.assignDefaults)(k,g.type),b.block(()=>{for(const x of g.rules)(0,r.shouldUseRule)(T,x)&&N(k,x.keyword,x.definition,g.type)})}function re(k,g){k.schemaEnv.meta||!k.opts.strictTypes||(xe(k,g),k.opts.allowUnionTypes||G(k,g),I(k,k.dataTypes))}function xe(k,g){if(g.length){if(!k.dataTypes.length){k.dataTypes=g;return}g.forEach(b=>{q(k.dataTypes,b)||C(k,`type "${b}" not allowed by context "${k.dataTypes.join(",")}"`)}),E(k,g)}}function G(k,g){g.length>1&&!(g.length===2&&g.includes("null"))&&C(k,"use allowUnionTypes to allow union type keyword")}function I(k,g){const b=k.self.RULES.all;for(const T in b){const A=b[T];if(typeof A=="object"&&(0,r.shouldUseRule)(k.schema,A)){const{type:x}=A.definition;x.length&&!x.some(U=>F(g,U))&&C(k,`missing type "${x.join(",")}" for keyword "${T}"`)}}}function F(k,g){return k.includes(g)||g==="number"&&k.includes("integer")}function q(k,g){return k.includes(g)||g==="integer"&&k.includes("number")}function E(k,g){const b=[];for(const T of k.dataTypes)q(g,T)?b.push(T):g.includes("integer")&&T==="number"&&b.push("integer");k.dataTypes=b}function C(k,g){const b=k.schemaEnv.baseId+k.errSchemaPath;g+=` at "${b}" (strictTypes)`,(0,u.checkStrictMode)(k,g,k.opts.strictTypes)}class M{constructor(g,b,T){if((0,o.validateKeywordUsage)(g,b,T),this.gen=g.gen,this.allErrors=g.allErrors,this.keyword=T,this.data=g.data,this.schema=g.schema[T],this.$data=b.$data&&g.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(g,this.schema,T,this.$data),this.schemaType=b.schemaType,this.parentSchema=g.schema,this.params={},this.it=g,this.def=b,this.$data)this.schemaCode=g.gen.const("vSchema",J(this.$data,g));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,b.schemaType,b.allowUndefined))throw new Error(`${T} value must be ${JSON.stringify(b.schemaType)}`);("code"in b?b.trackErrors:b.errors!==!1)&&(this.errsCount=g.gen.const("_errs",l.default.errors))}result(g,b,T){this.failResult((0,a.not)(g),b,T)}failResult(g,b,T){this.gen.if(g),T?T():this.error(),b?(this.gen.else(),b(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(g,b){this.failResult((0,a.not)(g),void 0,b)}fail(g){if(g===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(g),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(g){if(!this.$data)return this.fail(g);const{schemaCode:b}=this;this.fail((0,a._)`${b} !== undefined && (${(0,a.or)(this.invalid$data(),g)})`)}error(g,b,T){if(b){this.setParams(b),this._error(g,T),this.setParams({});return}this._error(g,T)}_error(g,b){(g?d.reportExtraError:d.reportError)(this,this.def.error,b)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(g){this.allErrors||this.gen.if(g)}setParams(g,b){b?Object.assign(this.params,g):this.params=g}block$data(g,b,T=a.nil){this.gen.block(()=>{this.check$data(g,T),b()})}check$data(g=a.nil,b=a.nil){if(!this.$data)return;const{gen:T,schemaCode:A,schemaType:x,def:U}=this;T.if((0,a.or)((0,a._)`${A} === undefined`,b)),g!==a.nil&&T.assign(g,!0),(x.length||U.validateSchema)&&(T.elseIf(this.invalid$data()),this.$dataError(),g!==a.nil&&T.assign(g,!1)),T.else()}invalid$data(){const{gen:g,schemaCode:b,schemaType:T,def:A,it:x}=this;return(0,a.or)(U(),W());function U(){if(T.length){if(!(b instanceof a.Name))throw new Error("ajv implementation error");const z=Array.isArray(T)?T:[T];return(0,a._)`${(0,s.checkDataTypes)(z,b,x.opts.strictNumbers,s.DataType.Wrong)}`}return a.nil}function W(){if(A.validateSchema){const z=g.scopeValue("validate$data",{ref:A.validateSchema});return(0,a._)`!${z}(${b})`}return a.nil}}subschema(g,b){const T=(0,i.getSubschema)(this.it,g);(0,i.extendSubschemaData)(T,this.it,g),(0,i.extendSubschemaMode)(T,g);const A={...this.it,...T,items:void 0,props:void 0};return m(A,b),A}mergeEvaluated(g,b){const{it:T,gen:A}=this;T.opts.unevaluated&&(T.props!==!0&&g.props!==void 0&&(T.props=u.mergeEvaluated.props(A,g.props,T.props,b)),T.items!==!0&&g.items!==void 0&&(T.items=u.mergeEvaluated.items(A,g.items,T.items,b)))}mergeValidEvaluated(g,b){const{it:T,gen:A}=this;if(T.opts.unevaluated&&(T.props!==!0||T.items!==!0))return A.if(b,()=>this.mergeEvaluated(g,a.Name)),!0}}Rt.KeywordCxt=M;function N(k,g,b,T){const A=new M(k,b,g);"code"in b?b.code(A,T):A.$data&&b.validate?(0,o.funcKeywordCode)(A,b):"macro"in b?(0,o.macroKeywordCode)(A,b):(b.compile||b.validate)&&(0,o.funcKeywordCode)(A,b)}const L=/^\/(?:[^~]|~0|~1)*$/,K=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function J(k,{dataLevel:g,dataNames:b,dataPathArr:T}){let A,x;if(k==="")return l.default.rootData;if(k[0]==="/"){if(!L.test(k))throw new Error(`Invalid JSON-pointer: ${k}`);A=k,x=l.default.rootData}else{const B=K.exec(k);if(!B)throw new Error(`Invalid JSON-pointer: ${k}`);const V=+B[1];if(A=B[2],A==="#"){if(V>=g)throw new Error(z("property/index",V));return T[g-V]}if(V>g)throw new Error(z("data",V));if(x=b[g-V],!A)return x}let U=x;const W=A.split("/");for(const B of W)B&&(x=(0,a._)`${x}${(0,a.getProperty)((0,u.unescapeJsonPointer)(B))}`,U=(0,a._)`${U} && ${x}`);return U;function z(B,V){return`Cannot access ${B} ${V} levels up, current level is ${g}`}}return Rt.getData=J,Rt}var ds={},Ma;function si(){if(Ma)return ds;Ma=1,Object.defineProperty(ds,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return ds.default=e,ds}var hs={},Da;function Mn(){if(Da)return hs;Da=1,Object.defineProperty(hs,"__esModule",{value:!0});const e=qn();class t extends Error{constructor(s,n,o,i){super(i||`can't resolve reference ${o} from id ${n}`),this.missingRef=(0,e.resolveUrl)(s,n,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(s,this.missingRef))}}return hs.default=t,hs}var Ze={},Ua;function ni(){if(Ua)return Ze;Ua=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.resolveSchema=Ze.getCompilingSchema=Ze.resolveRef=Ze.compileSchema=Ze.SchemaEnv=void 0;const e=me(),t=si(),r=Gt(),s=qn(),n=ve(),o=xn();class i{constructor(p){var c;this.refs={},this.dynamicAnchors={};let m;typeof p.schema=="object"&&(m=p.schema),this.schema=p.schema,this.schemaId=p.schemaId,this.root=p.root||this,this.baseId=(c=p.baseId)!==null&&c!==void 0?c:(0,s.normalizeId)(m==null?void 0:m[p.schemaId||"$id"]),this.schemaPath=p.schemaPath,this.localRefs=p.localRefs,this.meta=p.meta,this.$async=m==null?void 0:m.$async,this.refs={}}}Ze.SchemaEnv=i;function a(h){const p=u.call(this,h);if(p)return p;const c=(0,s.getFullPath)(this.opts.uriResolver,h.root.baseId),{es5:m,lines:w}=this.opts.code,{ownProperties:S}=this.opts,P=new e.CodeGen(this.scope,{es5:m,lines:w,ownProperties:S});let O;h.$async&&(O=P.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const j=P.scopeName("validate");h.validateName=j;const H={gen:P,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:P.scopeValue("schema",this.opts.code.source===!0?{ref:h.schema,code:(0,e.stringify)(h.schema)}:{ref:h.schema}),validateName:j,ValidationError:O,schema:h.schema,schemaEnv:h,rootId:c,baseId:h.baseId||c,schemaPath:e.nil,errSchemaPath:h.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let Q;try{this._compilations.add(h),(0,o.validateFunctionCode)(H),P.optimize(this.opts.code.optimize);const Y=P.toString();Q=`${P.scopeRefs(r.default.scope)}return ${Y}`,this.opts.code.process&&(Q=this.opts.code.process(Q,h));const te=new Function(`${r.default.self}`,`${r.default.scope}`,Q)(this,this.scope.get());if(this.scope.value(j,{ref:te}),te.errors=null,te.schema=h.schema,te.schemaEnv=h,h.$async&&(te.$async=!0),this.opts.code.source===!0&&(te.source={validateName:j,validateCode:Y,scopeValues:P._values}),this.opts.unevaluated){const{props:de,items:Ce}=H;te.evaluated={props:de instanceof e.Name?void 0:de,items:Ce instanceof e.Name?void 0:Ce,dynamicProps:de instanceof e.Name,dynamicItems:Ce instanceof e.Name},te.source&&(te.source.evaluated=(0,e.stringify)(te.evaluated))}return h.validate=te,h}catch(Y){throw delete h.validate,delete h.validateName,Q&&this.logger.error("Error compiling schema, function code:",Q),Y}finally{this._compilations.delete(h)}}Ze.compileSchema=a;function l(h,p,c){var m;c=(0,s.resolveUrl)(this.opts.uriResolver,p,c);const w=h.refs[c];if(w)return w;let S=v.call(this,h,c);if(S===void 0){const P=(m=h.localRefs)===null||m===void 0?void 0:m[c],{schemaId:O}=this.opts;P&&(S=new i({schema:P,schemaId:O,root:h,baseId:p}))}if(S!==void 0)return h.refs[c]=f.call(this,S)}Ze.resolveRef=l;function f(h){return(0,s.inlineRef)(h.schema,this.opts.inlineRefs)?h.schema:h.validate?h:a.call(this,h)}function u(h){for(const p of this._compilations)if(d(p,h))return p}Ze.getCompilingSchema=u;function d(h,p){return h.schema===p.schema&&h.root===p.root&&h.baseId===p.baseId}function v(h,p){let c;for(;typeof(c=this.refs[p])=="string";)p=c;return c||this.schemas[p]||_.call(this,h,p)}function _(h,p){const c=this.opts.uriResolver.parse(p),m=(0,s._getFullPath)(this.opts.uriResolver,c);let w=(0,s.getFullPath)(this.opts.uriResolver,h.baseId,void 0);if(Object.keys(h.schema).length>0&&m===w)return y.call(this,c,h);const S=(0,s.normalizeId)(m),P=this.refs[S]||this.schemas[S];if(typeof P=="string"){const O=_.call(this,h,P);return typeof(O==null?void 0:O.schema)!="object"?void 0:y.call(this,c,O)}if(typeof(P==null?void 0:P.schema)=="object"){if(P.validate||a.call(this,P),S===(0,s.normalizeId)(p)){const{schema:O}=P,{schemaId:j}=this.opts,H=O[j];return H&&(w=(0,s.resolveUrl)(this.opts.uriResolver,w,H)),new i({schema:O,schemaId:j,root:h,baseId:w})}return y.call(this,c,P)}}Ze.resolveSchema=_;const $=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(h,{baseId:p,schema:c,root:m}){var w;if(((w=h.fragment)===null||w===void 0?void 0:w[0])!=="/")return;for(const O of h.fragment.slice(1).split("/")){if(typeof c=="boolean")return;const j=c[(0,n.unescapeFragment)(O)];if(j===void 0)return;c=j;const H=typeof c=="object"&&c[this.opts.schemaId];!$.has(O)&&H&&(p=(0,s.resolveUrl)(this.opts.uriResolver,p,H))}let S;if(typeof c!="boolean"&&c.$ref&&!(0,n.schemaHasRulesButRef)(c,this.RULES)){const O=(0,s.resolveUrl)(this.opts.uriResolver,p,c.$ref);S=_.call(this,m,O)}const{schemaId:P}=this.opts;if(S=S||new i({schema:c,schemaId:P,root:m,baseId:p}),S.schema!==S.root.schema)return S}return Ze}const rg="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",sg="Meta-schema for $data reference (JSON AnySchema extension proposal)",ng="object",og=["$data"],ig={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},ag=!1,lg={$id:rg,description:sg,type:ng,required:og,properties:ig,additionalProperties:ag};var ps={},jr={exports:{}},io,La;function ug(){return La||(La=1,io={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),io}var ao,Fa;function cg(){if(Fa)return ao;Fa=1;const{HEX:e}=ug(),t=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function r(y){if(a(y,".")<3)return{host:y,isIPV4:!1};const h=y.match(t)||[],[p]=h;return p?{host:i(p,"."),isIPV4:!0}:{host:y,isIPV4:!1}}function s(y,h=!1){let p="",c=!0;for(const m of y){if(e[m]===void 0)return;m!=="0"&&c===!0&&(c=!1),c||(p+=m)}return h&&p.length===0&&(p="0"),p}function n(y){let h=0;const p={error:!1,address:"",zone:""},c=[],m=[];let w=!1,S=!1,P=!1;function O(){if(m.length){if(w===!1){const j=s(m);if(j!==void 0)c.push(j);else return p.error=!0,!1}m.length=0}return!0}for(let j=0;j7){p.error=!0;break}j-1>=0&&y[j-1]===":"&&(S=!0);continue}else if(H==="%"){if(!O())break;w=!0}else{m.push(H);continue}}return m.length&&(w?p.zone=m.join(""):P?c.push(m.join("")):c.push(s(m))),p.address=c.join(""),p}function o(y){if(a(y,":")<2)return{host:y,isIPV6:!1};const h=n(y);if(h.error)return{host:y,isIPV6:!1};{let p=h.address,c=h.address;return h.zone&&(p+="%"+h.zone,c+="%25"+h.zone),{host:p,escapedHost:c,isIPV6:!0}}}function i(y,h){let p="",c=!0;const m=y.length;for(let w=0;w/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(p)));function v(h){let p=0;for(let c=0,m=h.length;c126||d[p])return!0;return!1}const _=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function $(h,p){const c=Object.assign({},p),m={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},w=h.indexOf("%")!==-1;let S=!1;c.reference==="suffix"&&(h=(c.scheme?c.scheme+":":"")+"//"+h);const P=h.match(_);if(P){if(m.scheme=P[1],m.userinfo=P[3],m.host=P[4],m.port=parseInt(P[5],10),m.path=P[6]||"",m.query=P[7],m.fragment=P[8],isNaN(m.port)&&(m.port=P[5]),m.host){const j=t(m.host);if(j.isIPV4===!1){const H=e(j.host);m.host=H.host.toLowerCase(),S=H.isIPV6}else m.host=j.host,S=!0}m.scheme===void 0&&m.userinfo===void 0&&m.host===void 0&&m.port===void 0&&m.query===void 0&&!m.path?m.reference="same-document":m.scheme===void 0?m.reference="relative":m.fragment===void 0?m.reference="absolute":m.reference="uri",c.reference&&c.reference!=="suffix"&&c.reference!==m.reference&&(m.error=m.error||"URI is not a "+c.reference+" reference.");const O=o[(c.scheme||m.scheme||"").toLowerCase()];if(!c.unicodeSupport&&(!O||!O.unicodeSupport)&&m.host&&(c.domainHost||O&&O.domainHost)&&S===!1&&v(m.host))try{m.host=URL.domainToASCII(m.host.toLowerCase())}catch(j){m.error=m.error||"Host's domain name can not be converted to ASCII: "+j}(!O||O&&!O.skipNormalize)&&(w&&m.scheme!==void 0&&(m.scheme=unescape(m.scheme)),w&&m.host!==void 0&&(m.host=unescape(m.host)),m.path&&(m.path=escape(unescape(m.path))),m.fragment&&(m.fragment=encodeURI(decodeURIComponent(m.fragment)))),O&&O.parse&&O.parse(m,c)}else m.error=m.error||"URI can not be parsed.";return m}const y={SCHEMES:o,normalize:i,resolve:a,resolveComponents:l,equal:f,serialize:u,parse:$};return jr.exports=y,jr.exports.default=y,jr.exports.fastUri=y,jr.exports}var Ka;function hg(){if(Ka)return ps;Ka=1,Object.defineProperty(ps,"__esModule",{value:!0});const e=dg();return e.code='require("ajv/dist/runtime/uri").default',ps.default=e,ps}var Ba;function pg(){return Ba||(Ba=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=xn();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=me();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const s=si(),n=Mn(),o=Ec(),i=ni(),a=me(),l=qn(),f=mn(),u=ve(),d=lg,v=hg(),_=(G,I)=>new RegExp(G,I);_.code="new RegExp";const $=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),h={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},p={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},c=200;function m(G){var I,F,q,E,C,M,N,L,K,J,k,g,b,T,A,x,U,W,z,B,V,ne,X,oe,le;const fe=G.strict,_e=(I=G.code)===null||I===void 0?void 0:I.optimize,ye=_e===!0||_e===void 0?1:_e||0,De=(q=(F=G.code)===null||F===void 0?void 0:F.regExp)!==null&&q!==void 0?q:_,Ue=(E=G.uriResolver)!==null&&E!==void 0?E:v.default;return{strictSchema:(M=(C=G.strictSchema)!==null&&C!==void 0?C:fe)!==null&&M!==void 0?M:!0,strictNumbers:(L=(N=G.strictNumbers)!==null&&N!==void 0?N:fe)!==null&&L!==void 0?L:!0,strictTypes:(J=(K=G.strictTypes)!==null&&K!==void 0?K:fe)!==null&&J!==void 0?J:"log",strictTuples:(g=(k=G.strictTuples)!==null&&k!==void 0?k:fe)!==null&&g!==void 0?g:"log",strictRequired:(T=(b=G.strictRequired)!==null&&b!==void 0?b:fe)!==null&&T!==void 0?T:!1,code:G.code?{...G.code,optimize:ye,regExp:De}:{optimize:ye,regExp:De},loopRequired:(A=G.loopRequired)!==null&&A!==void 0?A:c,loopEnum:(x=G.loopEnum)!==null&&x!==void 0?x:c,meta:(U=G.meta)!==null&&U!==void 0?U:!0,messages:(W=G.messages)!==null&&W!==void 0?W:!0,inlineRefs:(z=G.inlineRefs)!==null&&z!==void 0?z:!0,schemaId:(B=G.schemaId)!==null&&B!==void 0?B:"$id",addUsedSchema:(V=G.addUsedSchema)!==null&&V!==void 0?V:!0,validateSchema:(ne=G.validateSchema)!==null&&ne!==void 0?ne:!0,validateFormats:(X=G.validateFormats)!==null&&X!==void 0?X:!0,unicodeRegExp:(oe=G.unicodeRegExp)!==null&&oe!==void 0?oe:!0,int32range:(le=G.int32range)!==null&&le!==void 0?le:!0,uriResolver:Ue}}class w{constructor(I={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,I=this.opts={...I,...m(I)};const{es5:F,lines:q}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:y,es5:F,lines:q}),this.logger=ie(I.logger);const E=I.validateFormats;I.validateFormats=!1,this.RULES=(0,o.getRules)(),S.call(this,h,I,"NOT SUPPORTED"),S.call(this,p,I,"DEPRECATED","warn"),this._metaOpts=Q.call(this),I.formats&&j.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),I.keywords&&H.call(this,I.keywords),typeof I.meta=="object"&&this.addMetaSchema(I.meta),O.call(this),I.validateFormats=E}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:I,meta:F,schemaId:q}=this.opts;let E=d;q==="id"&&(E={...d},E.id=E.$id,delete E.$id),F&&I&&this.addMetaSchema(E,E[q],!1)}defaultMeta(){const{meta:I,schemaId:F}=this.opts;return this.opts.defaultMeta=typeof I=="object"?I[F]||I:void 0}validate(I,F){let q;if(typeof I=="string"){if(q=this.getSchema(I),!q)throw new Error(`no schema with key or ref "${I}"`)}else q=this.compile(I);const E=q(F);return"$async"in q||(this.errors=q.errors),E}compile(I,F){const q=this._addSchema(I,F);return q.validate||this._compileSchemaEnv(q)}compileAsync(I,F){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return E.call(this,I,F);async function E(J,k){await C.call(this,J.$schema);const g=this._addSchema(J,k);return g.validate||M.call(this,g)}async function C(J){J&&!this.getSchema(J)&&await E.call(this,{$ref:J},!0)}async function M(J){try{return this._compileSchemaEnv(J)}catch(k){if(!(k instanceof n.default))throw k;return N.call(this,k),await L.call(this,k.missingSchema),M.call(this,J)}}function N({missingSchema:J,missingRef:k}){if(this.refs[J])throw new Error(`AnySchema ${J} is loaded but ${k} cannot be resolved`)}async function L(J){const k=await K.call(this,J);this.refs[J]||await C.call(this,k.$schema),this.refs[J]||this.addSchema(k,J,F)}async function K(J){const k=this._loading[J];if(k)return k;try{return await(this._loading[J]=q(J))}finally{delete this._loading[J]}}}addSchema(I,F,q,E=this.opts.validateSchema){if(Array.isArray(I)){for(const M of I)this.addSchema(M,void 0,q,E);return this}let C;if(typeof I=="object"){const{schemaId:M}=this.opts;if(C=I[M],C!==void 0&&typeof C!="string")throw new Error(`schema ${M} must be string`)}return F=(0,l.normalizeId)(F||C),this._checkUnique(F),this.schemas[F]=this._addSchema(I,q,F,E,!0),this}addMetaSchema(I,F,q=this.opts.validateSchema){return this.addSchema(I,F,!0,q),this}validateSchema(I,F){if(typeof I=="boolean")return!0;let q;if(q=I.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const E=this.validate(q,I);if(!E&&F){const C="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(C);else throw new Error(C)}return E}getSchema(I){let F;for(;typeof(F=P.call(this,I))=="string";)I=F;if(F===void 0){const{schemaId:q}=this.opts,E=new i.SchemaEnv({schema:{},schemaId:q});if(F=i.resolveSchema.call(this,E,I),!F)return;this.refs[I]=F}return F.validate||this._compileSchemaEnv(F)}removeSchema(I){if(I instanceof RegExp)return this._removeAllSchemas(this.schemas,I),this._removeAllSchemas(this.refs,I),this;switch(typeof I){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const F=P.call(this,I);return typeof F=="object"&&this._cache.delete(F.schema),delete this.schemas[I],delete this.refs[I],this}case"object":{const F=I;this._cache.delete(F);let q=I[this.opts.schemaId];return q&&(q=(0,l.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(I){for(const F of I)this.addKeyword(F);return this}addKeyword(I,F){let q;if(typeof I=="string")q=I,typeof F=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=q);else if(typeof I=="object"&&F===void 0){if(F=I,q=F.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(de.call(this,q,F),!F)return(0,u.eachItem)(q,C=>Ce.call(this,C)),this;pe.call(this,F);const E={...F,type:(0,f.getJSONTypes)(F.type),schemaType:(0,f.getJSONTypes)(F.schemaType)};return(0,u.eachItem)(q,E.type.length===0?C=>Ce.call(this,C,E):C=>E.type.forEach(M=>Ce.call(this,C,E,M))),this}getKeyword(I){const F=this.RULES.all[I];return typeof F=="object"?F.definition:!!F}removeKeyword(I){const{RULES:F}=this;delete F.keywords[I],delete F.all[I];for(const q of F.rules){const E=q.rules.findIndex(C=>C.keyword===I);E>=0&&q.rules.splice(E,1)}return this}addFormat(I,F){return typeof F=="string"&&(F=new RegExp(F)),this.formats[I]=F,this}errorsText(I=this.errors,{separator:F=", ",dataVar:q="data"}={}){return!I||I.length===0?"No errors":I.map(E=>`${q}${E.instancePath} ${E.message}`).reduce((E,C)=>E+F+C)}$dataMetaSchema(I,F){const q=this.RULES.all;I=JSON.parse(JSON.stringify(I));for(const E of F){const C=E.split("/").slice(1);let M=I;for(const N of C)M=M[N];for(const N in q){const L=q[N];if(typeof L!="object")continue;const{$data:K}=L.definition,J=M[N];K&&J&&(M[N]=xe(J))}}return I}_removeAllSchemas(I,F){for(const q in I){const E=I[q];(!F||F.test(q))&&(typeof E=="string"?delete I[q]:E&&!E.meta&&(this._cache.delete(E.schema),delete I[q]))}}_addSchema(I,F,q,E=this.opts.validateSchema,C=this.opts.addUsedSchema){let M;const{schemaId:N}=this.opts;if(typeof I=="object")M=I[N];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof I!="boolean")throw new Error("schema must be object or boolean")}let L=this._cache.get(I);if(L!==void 0)return L;q=(0,l.normalizeId)(M||q);const K=l.getSchemaRefs.call(this,I,q);return L=new i.SchemaEnv({schema:I,schemaId:N,meta:F,baseId:q,localRefs:K}),this._cache.set(L.schema,L),C&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=L),E&&this.validateSchema(I,!0),L}_checkUnique(I){if(this.schemas[I]||this.refs[I])throw new Error(`schema with key or id "${I}" already exists`)}_compileSchemaEnv(I){if(I.meta?this._compileMetaSchema(I):i.compileSchema.call(this,I),!I.validate)throw new Error("ajv implementation error");return I.validate}_compileMetaSchema(I){const F=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,I)}finally{this.opts=F}}}w.ValidationError=s.default,w.MissingRefError=n.default,e.default=w;function S(G,I,F,q="error"){for(const E in G){const C=E;C in I&&this.logger[q](`${F}: option ${E}. ${G[C]}`)}}function P(G){return G=(0,l.normalizeId)(G),this.schemas[G]||this.refs[G]}function O(){const G=this.opts.schemas;if(G)if(Array.isArray(G))this.addSchema(G);else for(const I in G)this.addSchema(G[I],I)}function j(){for(const G in this.opts.formats){const I=this.opts.formats[G];I&&this.addFormat(G,I)}}function H(G){if(Array.isArray(G)){this.addVocabulary(G);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const I in G){const F=G[I];F.keyword||(F.keyword=I),this.addKeyword(F)}}function Q(){const G={...this.opts};for(const I of $)delete G[I];return G}const Y={log(){},warn(){},error(){}};function ie(G){if(G===!1)return Y;if(G===void 0)return console;if(G.log&&G.warn&&G.error)return G;throw new Error("logger must implement log, warn and error methods")}const te=/^[a-z_$][a-z0-9_$:-]*$/i;function de(G,I){const{RULES:F}=this;if((0,u.eachItem)(G,q=>{if(F.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!te.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!I&&I.$data&&!("code"in I||"validate"in I))throw new Error('$data keyword must have "code" or "validate" function')}function Ce(G,I,F){var q;const E=I==null?void 0:I.post;if(F&&E)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:C}=this;let M=E?C.post:C.rules.find(({type:L})=>L===F);if(M||(M={type:F,rules:[]},C.rules.push(M)),C.keywords[G]=!0,!I)return;const N={keyword:G,definition:{...I,type:(0,f.getJSONTypes)(I.type),schemaType:(0,f.getJSONTypes)(I.schemaType)}};I.before?Ee.call(this,M,N,I.before):M.rules.push(N),C.all[G]=N,(q=I.implements)===null||q===void 0||q.forEach(L=>this.addKeyword(L))}function Ee(G,I,F){const q=G.rules.findIndex(E=>E.keyword===F);q>=0?G.rules.splice(q,0,I):(G.rules.push(I),this.logger.warn(`rule ${F} is not defined`))}function pe(G){let{metaSchema:I}=G;I!==void 0&&(G.$data&&this.opts.$data&&(I=xe(I)),G.validateSchema=this.compile(I,!0))}const re={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function xe(G){return{anyOf:[G,re]}}}(Zn)),Zn}var ms={},gs={},ys={},za;function mg(){if(za)return ys;za=1,Object.defineProperty(ys,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return ys.default=e,ys}var Dt={},Ga;function gg(){if(Ga)return Dt;Ga=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.callRef=Dt.getValidate=void 0;const e=Mn(),t=dt(),r=me(),s=Gt(),n=ni(),o=ve(),i={keyword:"$ref",schemaType:"string",code(f){const{gen:u,schema:d,it:v}=f,{baseId:_,schemaEnv:$,validateName:y,opts:h,self:p}=v,{root:c}=$;if((d==="#"||d==="#/")&&_===c.baseId)return w();const m=n.resolveRef.call(p,c,_,d);if(m===void 0)throw new e.default(v.opts.uriResolver,_,d);if(m instanceof n.SchemaEnv)return S(m);return P(m);function w(){if($===c)return l(f,y,$,$.$async);const O=u.scopeValue("root",{ref:c});return l(f,(0,r._)`${O}.validate`,c,c.$async)}function S(O){const j=a(f,O);l(f,j,O,O.$async)}function P(O){const j=u.scopeValue("schema",h.code.source===!0?{ref:O,code:(0,r.stringify)(O)}:{ref:O}),H=u.name("valid"),Q=f.subschema({schema:O,dataTypes:[],schemaPath:r.nil,topSchemaRef:j,errSchemaPath:d},H);f.mergeEvaluated(Q),f.ok(H)}}};function a(f,u){const{gen:d}=f;return u.validate?d.scopeValue("validate",{ref:u.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:u})}.validate`}Dt.getValidate=a;function l(f,u,d,v){const{gen:_,it:$}=f,{allErrors:y,schemaEnv:h,opts:p}=$,c=p.passContext?s.default.this:r.nil;v?m():w();function m(){if(!h.$async)throw new Error("async schema referenced by sync schema");const O=_.let("valid");_.try(()=>{_.code((0,r._)`await ${(0,t.callValidateCode)(f,u,c)}`),P(u),y||_.assign(O,!0)},j=>{_.if((0,r._)`!(${j} instanceof ${$.ValidationError})`,()=>_.throw(j)),S(j),y||_.assign(O,!1)}),f.ok(O)}function w(){f.result((0,t.callValidateCode)(f,u,c),()=>P(u),()=>S(u))}function S(O){const j=(0,r._)`${O}.errors`;_.assign(s.default.vErrors,(0,r._)`${s.default.vErrors} === null ? ${j} : ${s.default.vErrors}.concat(${j})`),_.assign(s.default.errors,(0,r._)`${s.default.vErrors}.length`)}function P(O){var j;if(!$.opts.unevaluated)return;const H=(j=d==null?void 0:d.validate)===null||j===void 0?void 0:j.evaluated;if($.props!==!0)if(H&&!H.dynamicProps)H.props!==void 0&&($.props=o.mergeEvaluated.props(_,H.props,$.props));else{const Q=_.var("props",(0,r._)`${O}.evaluated.props`);$.props=o.mergeEvaluated.props(_,Q,$.props,r.Name)}if($.items!==!0)if(H&&!H.dynamicItems)H.items!==void 0&&($.items=o.mergeEvaluated.items(_,H.items,$.items));else{const Q=_.var("items",(0,r._)`${O}.evaluated.items`);$.items=o.mergeEvaluated.items(_,Q,$.items,r.Name)}}}return Dt.callRef=l,Dt.default=i,Dt}var Ja;function yg(){if(Ja)return gs;Ja=1,Object.defineProperty(gs,"__esModule",{value:!0});const e=mg(),t=gg(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return gs.default=r,gs}var vs={},_s={},Wa;function vg(){if(Wa)return _s;Wa=1,Object.defineProperty(_s,"__esModule",{value:!0});const e=me(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},s={message:({keyword:o,schemaCode:i})=>(0,e.str)`must be ${r[o].okStr} ${i}`,params:({keyword:o,schemaCode:i})=>(0,e._)`{comparison: ${r[o].okStr}, limit: ${i}}`},n={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:s,code(o){const{keyword:i,data:a,schemaCode:l}=o;o.fail$data((0,e._)`${a} ${r[i].fail} ${l} || isNaN(${a})`)}};return _s.default=n,_s}var bs={},Xa;function _g(){if(Xa)return bs;Xa=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=me(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:s})=>(0,e.str)`must be multiple of ${s}`,params:({schemaCode:s})=>(0,e._)`{multipleOf: ${s}}`},code(s){const{gen:n,data:o,schemaCode:i,it:a}=s,l=a.opts.multipleOfPrecision,f=n.let("res"),u=l?(0,e._)`Math.abs(Math.round(${f}) - ${f}) > 1e-${l}`:(0,e._)`${f} !== parseInt(${f})`;s.fail$data((0,e._)`(${i} === 0 || (${f} = ${o}/${i}, ${u}))`)}};return bs.default=r,bs}var ws={},$s={},Qa;function bg(){if(Qa)return $s;Qa=1,Object.defineProperty($s,"__esModule",{value:!0});function e(t){const r=t.length;let s=0,n=0,o;for(;n=55296&&o<=56319&&n(0,e._)`{limit: ${o}}`},code(o){const{keyword:i,data:a,schemaCode:l,it:f}=o,u=i==="maxLength"?e.operators.GT:e.operators.LT,d=f.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${d} ${u} ${l}`)}};return ws.default=n,ws}var Es={},Za;function $g(){if(Za)return Es;Za=1,Object.defineProperty(Es,"__esModule",{value:!0});const e=dt(),t=me(),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,t._)`{pattern: ${n}}`},code(n){const{data:o,$data:i,schema:a,schemaCode:l,it:f}=n,u=f.opts.unicodeRegExp?"u":"",d=i?(0,t._)`(new RegExp(${l}, ${u}))`:(0,e.usePattern)(n,a);n.fail$data((0,t._)`!${d}.test(${o})`)}};return Es.default=s,Es}var Ss={},el;function Eg(){if(el)return Ss;el=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=me(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:n}){const o=s==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} properties`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:n,data:o,schemaCode:i}=s,a=n==="maxProperties"?e.operators.GT:e.operators.LT;s.fail$data((0,e._)`Object.keys(${o}).length ${a} ${i}`)}};return Ss.default=r,Ss}var Ps={},tl;function Sg(){if(tl)return Ps;tl=1,Object.defineProperty(Ps,"__esModule",{value:!0});const e=dt(),t=me(),r=ve(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:o}})=>(0,t.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,t._)`{missingProperty: ${o}}`},code(o){const{gen:i,schema:a,schemaCode:l,data:f,$data:u,it:d}=o,{opts:v}=d;if(!u&&a.length===0)return;const _=a.length>=v.loopRequired;if(d.allErrors?$():y(),v.strictRequired){const c=o.parentSchema.properties,{definedProperties:m}=o.it;for(const w of a)if((c==null?void 0:c[w])===void 0&&!m.has(w)){const S=d.schemaEnv.baseId+d.errSchemaPath,P=`required property "${w}" is not defined at "${S}" (strictRequired)`;(0,r.checkStrictMode)(d,P,d.opts.strictRequired)}}function $(){if(_||u)o.block$data(t.nil,h);else for(const c of a)(0,e.checkReportMissingProp)(o,c)}function y(){const c=i.let("missing");if(_||u){const m=i.let("valid",!0);o.block$data(m,()=>p(c,m)),o.ok(m)}else i.if((0,e.checkMissingProp)(o,a,c)),(0,e.reportMissingProp)(o,c),i.else()}function h(){i.forOf("prop",l,c=>{o.setParams({missingProperty:c}),i.if((0,e.noPropertyInData)(i,f,c,v.ownProperties),()=>o.error())})}function p(c,m){o.setParams({missingProperty:c}),i.forOf(c,l,()=>{i.assign(m,(0,e.propertyInData)(i,f,c,v.ownProperties)),i.if((0,t.not)(m),()=>{o.error(),i.break()})},t.nil)}}};return Ps.default=n,Ps}var Rs={},rl;function Pg(){if(rl)return Rs;rl=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=me(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:n}){const o=s==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} items`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:n,data:o,schemaCode:i}=s,a=n==="maxItems"?e.operators.GT:e.operators.LT;s.fail$data((0,e._)`${o}.length ${a} ${i}`)}};return Rs.default=r,Rs}var Ts={},Os={},sl;function oi(){if(sl)return Os;sl=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=Pc();return e.code='require("ajv/dist/runtime/equal").default',Os.default=e,Os}var nl;function Rg(){if(nl)return Ts;nl=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=mn(),t=me(),r=ve(),s=oi(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${i} are identical)`,params:({params:{i,j:a}})=>(0,t._)`{i: ${i}, j: ${a}}`},code(i){const{gen:a,data:l,$data:f,schema:u,parentSchema:d,schemaCode:v,it:_}=i;if(!f&&!u)return;const $=a.let("valid"),y=d.items?(0,e.getSchemaTypes)(d.items):[];i.block$data($,h,(0,t._)`${v} === false`),i.ok($);function h(){const w=a.let("i",(0,t._)`${l}.length`),S=a.let("j");i.setParams({i:w,j:S}),a.assign($,!0),a.if((0,t._)`${w} > 1`,()=>(p()?c:m)(w,S))}function p(){return y.length>0&&!y.some(w=>w==="object"||w==="array")}function c(w,S){const P=a.name("item"),O=(0,e.checkDataTypes)(y,P,_.opts.strictNumbers,e.DataType.Wrong),j=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${w}--;`,()=>{a.let(P,(0,t._)`${l}[${w}]`),a.if(O,(0,t._)`continue`),y.length>1&&a.if((0,t._)`typeof ${P} == "string"`,(0,t._)`${P} += "_"`),a.if((0,t._)`typeof ${j}[${P}] == "number"`,()=>{a.assign(S,(0,t._)`${j}[${P}]`),i.error(),a.assign($,!1).break()}).code((0,t._)`${j}[${P}] = ${w}`)})}function m(w,S){const P=(0,r.useFunc)(a,s.default),O=a.name("outer");a.label(O).for((0,t._)`;${w}--;`,()=>a.for((0,t._)`${S} = ${w}; ${S}--;`,()=>a.if((0,t._)`${P}(${l}[${w}], ${l}[${S}])`,()=>{i.error(),a.assign($,!1).break(O)})))}}};return Ts.default=o,Ts}var Cs={},ol;function Tg(){if(ol)return Cs;ol=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=me(),t=ve(),r=oi(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:i,data:a,$data:l,schemaCode:f,schema:u}=o;l||u&&typeof u=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(i,r.default)}(${a}, ${f})`):o.fail((0,e._)`${u} !== ${a}`)}};return Cs.default=n,Cs}var ks={},il;function Og(){if(il)return ks;il=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=me(),t=ve(),r=oi(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:i,data:a,$data:l,schema:f,schemaCode:u,it:d}=o;if(!l&&f.length===0)throw new Error("enum must have non-empty array");const v=f.length>=d.opts.loopEnum;let _;const $=()=>_??(_=(0,t.useFunc)(i,r.default));let y;if(v||l)y=i.let("valid"),o.block$data(y,h);else{if(!Array.isArray(f))throw new Error("ajv implementation error");const c=i.const("vSchema",u);y=(0,e.or)(...f.map((m,w)=>p(c,w)))}o.pass(y);function h(){i.assign(y,!1),i.forOf("v",u,c=>i.if((0,e._)`${$()}(${a}, ${c})`,()=>i.assign(y,!0).break()))}function p(c,m){const w=f[m];return typeof w=="object"&&w!==null?(0,e._)`${$()}(${a}, ${c}[${m}])`:(0,e._)`${a} === ${w}`}}};return ks.default=n,ks}var al;function Cg(){if(al)return vs;al=1,Object.defineProperty(vs,"__esModule",{value:!0});const e=vg(),t=_g(),r=wg(),s=$g(),n=Eg(),o=Sg(),i=Pg(),a=Rg(),l=Tg(),f=Og(),u=[e.default,t.default,r.default,s.default,n.default,o.default,i.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,f.default];return vs.default=u,vs}var Ns={},ur={},ll;function Rc(){if(ll)return ur;ll=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.validateAdditionalItems=void 0;const e=me(),t=ve(),s={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:i,it:a}=o,{items:l}=i;if(!Array.isArray(l)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(o,l)}};function n(o,i){const{gen:a,schema:l,data:f,keyword:u,it:d}=o;d.items=!0;const v=a.const("len",(0,e._)`${f}.length`);if(l===!1)o.setParams({len:i.length}),o.pass((0,e._)`${v} <= ${i.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(d,l)){const $=a.var("valid",(0,e._)`${v} <= ${i.length}`);a.if((0,e.not)($),()=>_($)),o.ok($)}function _($){a.forRange("i",i.length,v,y=>{o.subschema({keyword:u,dataProp:y,dataPropType:t.Type.Num},$),d.allErrors||a.if((0,e.not)($),()=>a.break())})}}return ur.validateAdditionalItems=n,ur.default=s,ur}var As={},cr={},ul;function Tc(){if(ul)return cr;ul=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.validateTuple=void 0;const e=me(),t=ve(),r=dt(),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:i,it:a}=o;if(Array.isArray(i))return n(o,"additionalItems",i);a.items=!0,!(0,t.alwaysValidSchema)(a,i)&&o.ok((0,r.validateArray)(o))}};function n(o,i,a=o.schema){const{gen:l,parentSchema:f,data:u,keyword:d,it:v}=o;y(f),v.opts.unevaluated&&a.length&&v.items!==!0&&(v.items=t.mergeEvaluated.items(l,a.length,v.items));const _=l.name("valid"),$=l.const("len",(0,e._)`${u}.length`);a.forEach((h,p)=>{(0,t.alwaysValidSchema)(v,h)||(l.if((0,e._)`${$} > ${p}`,()=>o.subschema({keyword:d,schemaProp:p,dataProp:p},_)),o.ok(_))});function y(h){const{opts:p,errSchemaPath:c}=v,m=a.length,w=m===h.minItems&&(m===h.maxItems||h[i]===!1);if(p.strictTuples&&!w){const S=`"${d}" is ${m}-tuple, but minItems or maxItems/${i} are not specified or different at path "${c}"`;(0,t.checkStrictMode)(v,S,p.strictTuples)}}}return cr.validateTuple=n,cr.default=s,cr}var cl;function kg(){if(cl)return As;cl=1,Object.defineProperty(As,"__esModule",{value:!0});const e=Tc(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return As.default=t,As}var Is={},fl;function Ng(){if(fl)return Is;fl=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=me(),t=ve(),r=dt(),s=Rc(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{schema:a,parentSchema:l,it:f}=i,{prefixItems:u}=l;f.items=!0,!(0,t.alwaysValidSchema)(f,a)&&(u?(0,s.validateAdditionalItems)(i,u):i.ok((0,r.validateArray)(i)))}};return Is.default=o,Is}var js={},dl;function Ag(){if(dl)return js;dl=1,Object.defineProperty(js,"__esModule",{value:!0});const e=me(),t=ve(),s={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:o}})=>o===void 0?(0,e.str)`must contain at least ${n} valid item(s)`:(0,e.str)`must contain at least ${n} and no more than ${o} valid item(s)`,params:({params:{min:n,max:o}})=>o===void 0?(0,e._)`{minContains: ${n}}`:(0,e._)`{minContains: ${n}, maxContains: ${o}}`},code(n){const{gen:o,schema:i,parentSchema:a,data:l,it:f}=n;let u,d;const{minContains:v,maxContains:_}=a;f.opts.next?(u=v===void 0?1:v,d=_):u=1;const $=o.const("len",(0,e._)`${l}.length`);if(n.setParams({min:u,max:d}),d===void 0&&u===0){(0,t.checkStrictMode)(f,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&u>d){(0,t.checkStrictMode)(f,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,t.alwaysValidSchema)(f,i)){let m=(0,e._)`${$} >= ${u}`;d!==void 0&&(m=(0,e._)`${m} && ${$} <= ${d}`),n.pass(m);return}f.items=!0;const y=o.name("valid");d===void 0&&u===1?p(y,()=>o.if(y,()=>o.break())):u===0?(o.let(y,!0),d!==void 0&&o.if((0,e._)`${l}.length > 0`,h)):(o.let(y,!1),h()),n.result(y,()=>n.reset());function h(){const m=o.name("_valid"),w=o.let("count",0);p(m,()=>o.if(m,()=>c(w)))}function p(m,w){o.forRange("i",0,$,S=>{n.subschema({keyword:"contains",dataProp:S,dataPropType:t.Type.Num,compositeRule:!0},m),w()})}function c(m){o.code((0,e._)`${m}++`),d===void 0?o.if((0,e._)`${m} >= ${u}`,()=>o.assign(y,!0).break()):(o.if((0,e._)`${m} > ${d}`,()=>o.assign(y,!1).break()),u===1?o.assign(y,!0):o.if((0,e._)`${m} >= ${u}`,()=>o.assign(y,!0)))}}};return js.default=s,js}var uo={},hl;function Ig(){return hl||(hl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=me(),r=ve(),s=dt();e.error={message:({params:{property:l,depsCount:f,deps:u}})=>{const d=f===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:f,deps:u,missingProperty:d}})=>(0,t._)`{property: ${l}, + missingProperty: ${d}, + depsCount: ${f}, + deps: ${u}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[f,u]=o(l);i(l,f),a(l,u)}};function o({schema:l}){const f={},u={};for(const d in l){if(d==="__proto__")continue;const v=Array.isArray(l[d])?f:u;v[d]=l[d]}return[f,u]}function i(l,f=l.schema){const{gen:u,data:d,it:v}=l;if(Object.keys(f).length===0)return;const _=u.let("missing");for(const $ in f){const y=f[$];if(y.length===0)continue;const h=(0,s.propertyInData)(u,d,$,v.opts.ownProperties);l.setParams({property:$,depsCount:y.length,deps:y.join(", ")}),v.allErrors?u.if(h,()=>{for(const p of y)(0,s.checkReportMissingProp)(l,p)}):(u.if((0,t._)`${h} && (${(0,s.checkMissingProp)(l,y,_)})`),(0,s.reportMissingProp)(l,_),u.else())}}e.validatePropertyDeps=i;function a(l,f=l.schema){const{gen:u,data:d,keyword:v,it:_}=l,$=u.name("valid");for(const y in f)(0,r.alwaysValidSchema)(_,f[y])||(u.if((0,s.propertyInData)(u,d,y,_.opts.ownProperties),()=>{const h=l.subschema({keyword:v,schemaProp:y},$);l.mergeValidEvaluated(h,$)},()=>u.var($,!0)),l.ok($))}e.validateSchemaDeps=a,e.default=n}(uo)),uo}var qs={},pl;function jg(){if(pl)return qs;pl=1,Object.defineProperty(qs,"__esModule",{value:!0});const e=me(),t=ve(),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:o,schema:i,data:a,it:l}=n;if((0,t.alwaysValidSchema)(l,i))return;const f=o.name("valid");o.forIn("key",a,u=>{n.setParams({propertyName:u}),n.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},f),o.if((0,e.not)(f),()=>{n.error(!0),l.allErrors||o.break()})}),n.ok(f)}};return qs.default=s,qs}var xs={},ml;function Oc(){if(ml)return xs;ml=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=dt(),t=me(),r=Gt(),s=ve(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,t._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:a,schema:l,parentSchema:f,data:u,errsCount:d,it:v}=i;if(!d)throw new Error("ajv implementation error");const{allErrors:_,opts:$}=v;if(v.props=!0,$.removeAdditional!=="all"&&(0,s.alwaysValidSchema)(v,l))return;const y=(0,e.allSchemaProperties)(f.properties),h=(0,e.allSchemaProperties)(f.patternProperties);p(),i.ok((0,t._)`${d} === ${r.default.errors}`);function p(){a.forIn("key",u,P=>{!y.length&&!h.length?w(P):a.if(c(P),()=>w(P))})}function c(P){let O;if(y.length>8){const j=(0,s.schemaRefOrVal)(v,f.properties,"properties");O=(0,e.isOwnProperty)(a,j,P)}else y.length?O=(0,t.or)(...y.map(j=>(0,t._)`${P} === ${j}`)):O=t.nil;return h.length&&(O=(0,t.or)(O,...h.map(j=>(0,t._)`${(0,e.usePattern)(i,j)}.test(${P})`))),(0,t.not)(O)}function m(P){a.code((0,t._)`delete ${u}[${P}]`)}function w(P){if($.removeAdditional==="all"||$.removeAdditional&&l===!1){m(P);return}if(l===!1){i.setParams({additionalProperty:P}),i.error(),_||a.break();return}if(typeof l=="object"&&!(0,s.alwaysValidSchema)(v,l)){const O=a.name("valid");$.removeAdditional==="failing"?(S(P,O,!1),a.if((0,t.not)(O),()=>{i.reset(),m(P)})):(S(P,O),_||a.if((0,t.not)(O),()=>a.break()))}}function S(P,O,j){const H={keyword:"additionalProperties",dataProp:P,dataPropType:s.Type.Str};j===!1&&Object.assign(H,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(H,O)}}};return xs.default=o,xs}var Ms={},gl;function qg(){if(gl)return Ms;gl=1,Object.defineProperty(Ms,"__esModule",{value:!0});const e=xn(),t=dt(),r=ve(),s=Oc(),n={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:i,schema:a,parentSchema:l,data:f,it:u}=o;u.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&s.default.code(new e.KeywordCxt(u,s.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(a);for(const h of d)u.definedProperties.add(h);u.opts.unevaluated&&d.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(i,(0,r.toHash)(d),u.props));const v=d.filter(h=>!(0,r.alwaysValidSchema)(u,a[h]));if(v.length===0)return;const _=i.name("valid");for(const h of v)$(h)?y(h):(i.if((0,t.propertyInData)(i,f,h,u.opts.ownProperties)),y(h),u.allErrors||i.else().var(_,!0),i.endIf()),o.it.definedProperties.add(h),o.ok(_);function $(h){return u.opts.useDefaults&&!u.compositeRule&&a[h].default!==void 0}function y(h){o.subschema({keyword:"properties",schemaProp:h,dataProp:h},_)}}};return Ms.default=n,Ms}var Ds={},yl;function xg(){if(yl)return Ds;yl=1,Object.defineProperty(Ds,"__esModule",{value:!0});const e=dt(),t=me(),r=ve(),s=ve(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:i,schema:a,data:l,parentSchema:f,it:u}=o,{opts:d}=u,v=(0,e.allSchemaProperties)(a),_=v.filter(w=>(0,r.alwaysValidSchema)(u,a[w]));if(v.length===0||_.length===v.length&&(!u.opts.unevaluated||u.props===!0))return;const $=d.strictSchema&&!d.allowMatchingProperties&&f.properties,y=i.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,s.evaluatedPropsToName)(i,u.props));const{props:h}=u;p();function p(){for(const w of v)$&&c(w),u.allErrors?m(w):(i.var(y,!0),m(w),i.if(y))}function c(w){for(const S in $)new RegExp(w).test(S)&&(0,r.checkStrictMode)(u,`property ${S} matches pattern ${w} (use allowMatchingProperties)`)}function m(w){i.forIn("key",l,S=>{i.if((0,t._)`${(0,e.usePattern)(o,w)}.test(${S})`,()=>{const P=_.includes(w);P||o.subschema({keyword:"patternProperties",schemaProp:w,dataProp:S,dataPropType:s.Type.Str},y),u.opts.unevaluated&&h!==!0?i.assign((0,t._)`${h}[${S}]`,!0):!P&&!u.allErrors&&i.if((0,t.not)(y),()=>i.break())})})}}};return Ds.default=n,Ds}var Us={},vl;function Mg(){if(vl)return Us;vl=1,Object.defineProperty(Us,"__esModule",{value:!0});const e=ve(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:s,schema:n,it:o}=r;if((0,e.alwaysValidSchema)(o,n)){r.fail();return}const i=s.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),r.failResult(i,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Us.default=t,Us}var Ls={},_l;function Dg(){if(_l)return Ls;_l=1,Object.defineProperty(Ls,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dt().validateUnion,error:{message:"must match a schema in anyOf"}};return Ls.default=t,Ls}var Fs={},bl;function Ug(){if(bl)return Fs;bl=1,Object.defineProperty(Fs,"__esModule",{value:!0});const e=me(),t=ve(),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:o,schema:i,parentSchema:a,it:l}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(l.opts.discriminator&&a.discriminator)return;const f=i,u=o.let("valid",!1),d=o.let("passing",null),v=o.name("_valid");n.setParams({passing:d}),o.block(_),n.result(u,()=>n.reset(),()=>n.error(!0));function _(){f.forEach(($,y)=>{let h;(0,t.alwaysValidSchema)(l,$)?o.var(v,!0):h=n.subschema({keyword:"oneOf",schemaProp:y,compositeRule:!0},v),y>0&&o.if((0,e._)`${v} && ${u}`).assign(u,!1).assign(d,(0,e._)`[${d}, ${y}]`).else(),o.if(v,()=>{o.assign(u,!0),o.assign(d,y),h&&n.mergeEvaluated(h,e.Name)})})}}};return Fs.default=s,Fs}var Vs={},wl;function Lg(){if(wl)return Vs;wl=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e=ve(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:s,schema:n,it:o}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=s.name("valid");n.forEach((a,l)=>{if((0,e.alwaysValidSchema)(o,a))return;const f=r.subschema({keyword:"allOf",schemaProp:l},i);r.ok(i),r.mergeEvaluated(f)})}};return Vs.default=t,Vs}var Hs={},$l;function Fg(){if($l)return Hs;$l=1,Object.defineProperty(Hs,"__esModule",{value:!0});const e=me(),t=ve(),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:i,parentSchema:a,it:l}=o;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const f=n(l,"then"),u=n(l,"else");if(!f&&!u)return;const d=i.let("valid",!0),v=i.name("_valid");if(_(),o.reset(),f&&u){const y=i.let("ifClause");o.setParams({ifClause:y}),i.if(v,$("then",y),$("else",y))}else f?i.if(v,$("then")):i.if((0,e.not)(v),$("else"));o.pass(d,()=>o.error(!0));function _(){const y=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},v);o.mergeEvaluated(y)}function $(y,h){return()=>{const p=o.subschema({keyword:y},v);i.assign(d,v),o.mergeValidEvaluated(p,d),h?i.assign(h,(0,e._)`${y}`):o.setParams({ifClause:y})}}}};function n(o,i){const a=o.schema[i];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return Hs.default=s,Hs}var Ks={},El;function Vg(){if(El)return Ks;El=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=ve(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:s,it:n}){s.if===void 0&&(0,e.checkStrictMode)(n,`"${r}" without "if" is ignored`)}};return Ks.default=t,Ks}var Sl;function Hg(){if(Sl)return Ns;Sl=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=Rc(),t=kg(),r=Tc(),s=Ng(),n=Ag(),o=Ig(),i=jg(),a=Oc(),l=qg(),f=xg(),u=Mg(),d=Dg(),v=Ug(),_=Lg(),$=Fg(),y=Vg();function h(p=!1){const c=[u.default,d.default,v.default,_.default,$.default,y.default,i.default,a.default,o.default,l.default,f.default];return p?c.push(t.default,s.default):c.push(e.default,r.default),c.push(n.default),c}return Ns.default=h,Ns}var Bs={},zs={},Pl;function Kg(){if(Pl)return zs;Pl=1,Object.defineProperty(zs,"__esModule",{value:!0});const e=me(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,e.str)`must match format "${s}"`,params:({schemaCode:s})=>(0,e._)`{format: ${s}}`},code(s,n){const{gen:o,data:i,$data:a,schema:l,schemaCode:f,it:u}=s,{opts:d,errSchemaPath:v,schemaEnv:_,self:$}=u;if(!d.validateFormats)return;a?y():h();function y(){const p=o.scopeValue("formats",{ref:$.formats,code:d.code.formats}),c=o.const("fDef",(0,e._)`${p}[${f}]`),m=o.let("fType"),w=o.let("format");o.if((0,e._)`typeof ${c} == "object" && !(${c} instanceof RegExp)`,()=>o.assign(m,(0,e._)`${c}.type || "string"`).assign(w,(0,e._)`${c}.validate`),()=>o.assign(m,(0,e._)`"string"`).assign(w,c)),s.fail$data((0,e.or)(S(),P()));function S(){return d.strictSchema===!1?e.nil:(0,e._)`${f} && !${w}`}function P(){const O=_.$async?(0,e._)`(${c}.async ? await ${w}(${i}) : ${w}(${i}))`:(0,e._)`${w}(${i})`,j=(0,e._)`(typeof ${w} == "function" ? ${O} : ${w}.test(${i}))`;return(0,e._)`${w} && ${w} !== true && ${m} === ${n} && !${j}`}}function h(){const p=$.formats[l];if(!p){S();return}if(p===!0)return;const[c,m,w]=P(p);c===n&&s.pass(O());function S(){if(d.strictSchema===!1){$.logger.warn(j());return}throw new Error(j());function j(){return`unknown format "${l}" ignored in schema at path "${v}"`}}function P(j){const H=j instanceof RegExp?(0,e.regexpCode)(j):d.code.formats?(0,e._)`${d.code.formats}${(0,e.getProperty)(l)}`:void 0,Q=o.scopeValue("formats",{key:l,ref:j,code:H});return typeof j=="object"&&!(j instanceof RegExp)?[j.type||"string",j.validate,(0,e._)`${Q}.validate`]:["string",j,Q]}function O(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!_.$async)throw new Error("async format in sync schema");return(0,e._)`await ${w}(${i})`}return typeof m=="function"?(0,e._)`${w}(${i})`:(0,e._)`${w}.test(${i})`}}}};return zs.default=r,zs}var Rl;function Bg(){if(Rl)return Bs;Rl=1,Object.defineProperty(Bs,"__esModule",{value:!0});const t=[Kg().default];return Bs.default=t,Bs}var Yt={},Tl;function zg(){return Tl||(Tl=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.contentVocabulary=Yt.metadataVocabulary=void 0,Yt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Yt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Yt}var Ol;function Gg(){if(Ol)return ms;Ol=1,Object.defineProperty(ms,"__esModule",{value:!0});const e=yg(),t=Cg(),r=Hg(),s=Bg(),n=zg(),o=[e.default,t.default,(0,r.default)(),s.default,n.metadataVocabulary,n.contentVocabulary];return ms.default=o,ms}var Gs={},qr={},Cl;function Jg(){if(Cl)return qr;Cl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(qr.DiscrError=e={})),qr}var kl;function Wg(){if(kl)return Gs;kl=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e=me(),t=Jg(),r=ni(),s=Mn(),n=ve(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:l}})=>a===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:a,tag:l,tagName:f}})=>(0,e._)`{error: ${a}, tag: ${f}, tagValue: ${l}}`},code(a){const{gen:l,data:f,schema:u,parentSchema:d,it:v}=a,{oneOf:_}=d;if(!v.opts.discriminator)throw new Error("discriminator: requires discriminator option");const $=u.propertyName;if(typeof $!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!_)throw new Error("discriminator: requires oneOf keyword");const y=l.let("valid",!1),h=l.const("tag",(0,e._)`${f}${(0,e.getProperty)($)}`);l.if((0,e._)`typeof ${h} == "string"`,()=>p(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:h,tagName:$})),a.ok(y);function p(){const w=m();l.if(!1);for(const S in w)l.elseIf((0,e._)`${h} === ${S}`),l.assign(y,c(w[S]));l.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:h,tagName:$}),l.endIf()}function c(w){const S=l.name("valid"),P=a.subschema({keyword:"oneOf",schemaProp:w},S);return a.mergeEvaluated(P,e.Name),S}function m(){var w;const S={},P=j(d);let O=!0;for(let Y=0;Y<_.length;Y++){let ie=_[Y];if(ie!=null&&ie.$ref&&!(0,n.schemaHasRulesButRef)(ie,v.self.RULES)){const de=ie.$ref;if(ie=r.resolveRef.call(v.self,v.schemaEnv.root,v.baseId,de),ie instanceof r.SchemaEnv&&(ie=ie.schema),ie===void 0)throw new s.default(v.opts.uriResolver,v.baseId,de)}const te=(w=ie==null?void 0:ie.properties)===null||w===void 0?void 0:w[$];if(typeof te!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${$}"`);O=O&&(P||j(ie)),H(te,Y)}if(!O)throw new Error(`discriminator: "${$}" must be required`);return S;function j({required:Y}){return Array.isArray(Y)&&Y.includes($)}function H(Y,ie){if(Y.const)Q(Y.const,ie);else if(Y.enum)for(const te of Y.enum)Q(te,ie);else throw new Error(`discriminator: "properties/${$}" must have "const" or "enum"`)}function Q(Y,ie){if(typeof Y!="string"||Y in S)throw new Error(`discriminator: "${$}" values must be unique strings`);S[Y]=ie}}}};return Gs.default=i,Gs}const Xg="http://json-schema.org/draft-07/schema#",Qg="http://json-schema.org/draft-07/schema#",Yg="Core schema meta-schema",Zg={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ey=["object","boolean"],ty={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},ry={$schema:Xg,$id:Qg,title:Yg,definitions:Zg,type:ey,properties:ty,default:!0};var Nl;function sy(){return Nl||(Nl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=pg(),s=Gg(),n=Wg(),o=ry,i=["/properties"],a="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),s.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(o,i):o;this.addMetaSchema($,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var f=xn();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var u=me();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=si();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var v=Mn();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return v.default}})}(cs,cs.exports)),cs.exports}var ny=sy();const oy=Xm(ny),iy={type:"object",properties:{id:{type:"integer"},task_id:{type:"string"},user_id:{type:"string"},type:{type:"string"},template_id:{type:"string"},template:{type:"string"},amount:{type:"integer"}},required:["id","task_id","user_id","type"],additionalProperties:!1},ay={name:"RequestBuilder",data(){return{activeTab:"body",tabs:[{id:"params",name:"Params"},{id:"headers",name:"Headers"},{id:"body",name:"Body"},{id:"tests",name:"Tests"}],request:{method:"POST",url:"/api/v2/tasks",params:[],headers:[{key:"Content-Type",value:"application/json",description:"Content type",enabled:!0},{key:"Authorization",value:"",description:"Bearer token",enabled:!0}],bodyType:"raw",bodyFormat:"json",bodyParams:[],rawBody:JSON.stringify({type:"",template_id:"",template:"",amount:0},null,2)},testSettings:{validateResponse:!0,checkStatusCode:!0,expectedStatusCode:"200",checkResponseTime:!1,maxResponseTime:"1000",checkHeaderPresence:!1,expectedHeader:"",testCasesCount:5,includeEdgeCases:!0,generateNegativeTests:!0},response:null,error:null,isLoading:!1}},computed:{responseStatusClass(){if(!this.response)return"";const e=this.response.status;return e>=200&&e<300?"success":e>=400&&e<500?"client-error":e>=500?"server-error":""}},methods:{addParam(){this.request.params.push({key:"",value:"",description:"",enabled:!0})},removeParam(e){this.request.params.splice(e,1)},addHeader(){this.request.headers.push({key:"",value:"",description:"",enabled:!0})},removeHeader(e){this.request.headers.splice(e,1)},addBodyParam(){this.request.bodyParams.push({key:"",value:"",description:"",enabled:!0,type:"text"})},removeBodyParam(e){this.request.bodyParams.splice(e,1)},async sendRequest(){var s,n,o,i,a;if(this.response=null,this.error=null,this.isLoading=!0,!At.state.isAuthenticated||!At.state.token){this.error="Please log in to send requests to task-service",this.isLoading=!1;return}const e={};this.request.headers.forEach(l=>{l.enabled&&l.key&&(e[l.key]=l.value)}),e.Authorization=`Bearer ${At.state.token}`;const t={};this.request.params.forEach(l=>{l.enabled&&l.key&&(t[l.key]=l.value)});let r=null;if(this.request.bodyType==="raw"&&this.request.rawBody)try{r=JSON.parse(this.request.rawBody)}catch{this.error="Invalid JSON in request body",this.isLoading=!1;return}try{const l=performance.now(),f=await ke({method:this.request.method,url:this.request.url,headers:e,params:t,data:r}),u=performance.now(),d=JSON.stringify(f.data).length;this.response={status:f.status,statusText:f.statusText,time:Math.round(u-l),size:`${(d/1024).toFixed(2)} KB`,body:f.data,headers:Object.entries(f.headers).map(([y,h])=>({key:y,value:h}))};const v=[];if(this.testSettings.checkStatusCode){const y=f.status===parseInt(this.testSettings.expectedStatusCode);v.push({name:`Status code is ${this.testSettings.expectedStatusCode}`,passed:y,message:y?"":`Expected ${this.testSettings.expectedStatusCode}, got ${f.status}`})}if(this.testSettings.validateResponse){const y=new oy,h=y.compile(iy),p=h(f.data);v.push({name:"Response has valid schema",passed:p,message:p?"":y.errorsText(h.errors)})}if(this.testSettings.checkResponseTime){const y=parseInt(this.testSettings.maxResponseTime),h=this.response.time<=y;v.push({name:`Response time is less than ${y}ms`,passed:h,message:h?"":`Response time ${this.response.time}ms exceeds ${y}ms`})}const _={id:Date.now(),name:`Test ${this.request.method} ${this.request.url}`,endpoint:`${this.request.method} ${this.request.url}`,status:v.every(y=>y.passed)?"passed":"failed",time:this.response.time,date:new Date().toISOString().split("T")[0],expanded:!1,request:{method:this.request.method,url:this.request.url,headers:this.request.headers.filter(y=>y.enabled),body:r},response:this.response,assertions:v},$=JSON.parse(localStorage.getItem("testResults")||"[]");$.push(_),localStorage.setItem("testResults",JSON.stringify($))}catch(l){this.error=((n=(s=l.response)==null?void 0:s.data)==null?void 0:n.error)||"Request failed",this.response={status:((o=l.response)==null?void 0:o.status)||500,statusText:((i=l.response)==null?void 0:i.statusText)||"Error",time:0,size:"0 KB",body:((a=l.response)==null?void 0:a.data)||{error:"Request failed"},headers:[]};const f={id:Date.now(),name:`Test ${this.request.method} ${this.request.url}`,endpoint:`${this.request.method} ${this.request.url}`,status:"failed",time:0,date:new Date().toISOString().split("T")[0],expanded:!1,request:{method:this.request.method,url:this.request.url,headers:this.request.headers.filter(d=>d.enabled),body:r},response:this.response,assertions:[{name:`Status code is ${this.testSettings.expectedStatusCode}`,passed:!1,message:`Request failed: ${this.error}`}]},u=JSON.parse(localStorage.getItem("testResults")||"[]");u.push(f),localStorage.setItem("testResults",JSON.stringify(u))}finally{this.isLoading=!1}},generateTestData(){alert("Test data generation not implemented yet")}},mounted(){if(At.state.token){const e=this.request.headers.find(t=>t.key==="Authorization");e&&(e.value=`Bearer ${At.state.token}`)}}},ly={class:"request-builder"},uy={class:"request-form"},cy={class:"request-info"},fy={class:"method-select"},dy={class:"url-input"},hy={class:"send-button"},py=["disabled"],my={class:"request-details"},gy={class:"tabs"},yy=["onClick"],vy={class:"tab-content"},_y={key:0,class:"params-container"},by={class:"check"},wy=["onUpdate:modelValue"],$y={class:"key"},Ey=["onUpdate:modelValue"],Sy={class:"value"},Py=["onUpdate:modelValue"],Ry={class:"description"},Ty=["onUpdate:modelValue"],Oy={class:"actions"},Cy=["onClick"],ky={key:1,class:"headers-container"},Ny={class:"check"},Ay=["onUpdate:modelValue"],Iy={class:"key"},jy=["onUpdate:modelValue"],qy={class:"value"},xy=["onUpdate:modelValue"],My={class:"description"},Dy=["onUpdate:modelValue"],Uy={class:"actions"},Ly=["onClick"],Fy={key:2,class:"body-container"},Vy={class:"body-type-select"},Hy={key:0,class:"raw-editor"},Ky={key:3,class:"tests-container"},By={class:"test-options"},zy={class:"test-option"},Gy={class:"test-option"},Jy={class:"test-option"},Wy={key:0,class:"response-section"},Xy={class:"response-header"},Qy={class:"response-meta"},Yy={class:"time"},Zy={class:"size"},ev={class:"response-body"},tv={class:"test-generation-actions"},rv={key:1,class:"error-message"};function sv(e,t,r,s,n,o){return Z(),ee("div",ly,[R("div",uy,[R("div",cy,[R("div",fy,[ge(R("select",{"onUpdate:modelValue":t[0]||(t[0]=i=>n.request.method=i)},t[15]||(t[15]=[R("option",null,"GET",-1),R("option",null,"POST",-1),R("option",null,"PUT",-1),R("option",null,"DELETE",-1),R("option",null,"PATCH",-1)]),512),[[Hr,n.request.method]])]),R("div",dy,[ge(R("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=i=>n.request.url=i),placeholder:"Enter request URL (e.g., /api/v2/tasks)",onKeyup:t[2]||(t[2]=Qo((...i)=>o.sendRequest&&o.sendRequest(...i),["enter"]))},null,544),[[Ne,n.request.url]])]),R("div",hy,[R("button",{class:"accent-button",onClick:t[3]||(t[3]=(...i)=>o.sendRequest&&o.sendRequest(...i)),disabled:n.isLoading},se(n.isLoading?"Sending...":"Send"),9,py)])]),R("div",my,[R("div",gy,[(Z(!0),ee(qe,null,bt(n.tabs,i=>(Z(),ee("div",{key:i.id,class:Xe(["tab",{active:n.activeTab===i.id}]),onClick:a=>n.activeTab=i.id},se(i.name),11,yy))),128))]),R("div",vy,[n.activeTab==="params"?(Z(),ee("div",_y,[t[16]||(t[16]=wo('
Use
Key
Value
Description
',1)),(Z(!0),ee(qe,null,bt(n.request.params,(i,a)=>(Z(),ee("div",{key:a,class:"param-row"},[R("div",by,[ge(R("input",{type:"checkbox","onUpdate:modelValue":l=>i.enabled=l},null,8,wy),[[dr,i.enabled]])]),R("div",$y,[ge(R("input",{type:"text","onUpdate:modelValue":l=>i.key=l,placeholder:"Parameter name"},null,8,Ey),[[Ne,i.key]])]),R("div",Sy,[ge(R("input",{type:"text","onUpdate:modelValue":l=>i.value=l,placeholder:"Parameter value"},null,8,Py),[[Ne,i.value]])]),R("div",Ry,[ge(R("input",{type:"text","onUpdate:modelValue":l=>i.description=l,placeholder:"Parameter description"},null,8,Ty),[[Ne,i.description]])]),R("div",Oy,[R("button",{onClick:l=>o.removeParam(a)},"×",8,Cy)])]))),128)),R("button",{onClick:t[4]||(t[4]=(...i)=>o.addParam&&o.addParam(...i)),class:"add-param"},"+ Add Parameter")])):Pe("",!0),n.activeTab==="headers"?(Z(),ee("div",ky,[t[17]||(t[17]=wo('
Use
Header
Value
Description
',1)),(Z(!0),ee(qe,null,bt(n.request.headers,(i,a)=>(Z(),ee("div",{key:a,class:"param-row"},[R("div",Ny,[ge(R("input",{type:"checkbox","onUpdate:modelValue":l=>i.enabled=l},null,8,Ay),[[dr,i.enabled]])]),R("div",Iy,[ge(R("input",{type:"text","onUpdate:modelValue":l=>i.key=l,placeholder:"Header name"},null,8,jy),[[Ne,i.key]])]),R("div",qy,[ge(R("input",{type:"text","onUpdate:modelValue":l=>i.value=l,placeholder:"Header value"},null,8,xy),[[Ne,i.value]])]),R("div",My,[ge(R("input",{type:"text","onUpdate:modelValue":l=>i.description=l,placeholder:"Header description"},null,8,Dy),[[Ne,i.description]])]),R("div",Uy,[R("button",{onClick:l=>o.removeHeader(a)},"×",8,Ly)])]))),128)),R("button",{onClick:t[5]||(t[5]=(...i)=>o.addHeader&&o.addHeader(...i)),class:"add-param"},"+ Add Header")])):Pe("",!0),n.activeTab==="body"?(Z(),ee("div",Fy,[R("div",Vy,[ge(R("select",{"onUpdate:modelValue":t[6]||(t[6]=i=>n.request.bodyType=i)},t[18]||(t[18]=[R("option",{value:"none"},"None",-1),R("option",{value:"raw"},"Raw",-1)]),512),[[Hr,n.request.bodyType]]),n.request.bodyType==="raw"?ge((Z(),ee("select",{key:0,"onUpdate:modelValue":t[7]||(t[7]=i=>n.request.bodyFormat=i)},t[19]||(t[19]=[R("option",{value:"json"},"JSON",-1)]),512)),[[Hr,n.request.bodyFormat]]):Pe("",!0)]),n.request.bodyType==="raw"?(Z(),ee("div",Hy,[ge(R("textarea",{"onUpdate:modelValue":t[8]||(t[8]=i=>n.request.rawBody=i),placeholder:'Enter JSON content, e.g., {"type": "example_task", "template_id": "template_123", "template": "Sample template", "amount": 10}',rows:"10"},null,512),[[Ne,n.request.rawBody]])])):Pe("",!0)])):Pe("",!0),n.activeTab==="tests"?(Z(),ee("div",Ky,[R("div",By,[R("div",zy,[R("label",null,[ge(R("input",{type:"checkbox","onUpdate:modelValue":t[9]||(t[9]=i=>n.testSettings.validateResponse=i)},null,512),[[dr,n.testSettings.validateResponse]]),t[20]||(t[20]=Ke(" Validate Response Schema "))])]),R("div",Gy,[R("label",null,[ge(R("input",{type:"checkbox","onUpdate:modelValue":t[10]||(t[10]=i=>n.testSettings.checkStatusCode=i)},null,512),[[dr,n.testSettings.checkStatusCode]]),t[21]||(t[21]=Ke(" Check Status Code "))]),n.testSettings.checkStatusCode?ge((Z(),ee("input",{key:0,type:"text","onUpdate:modelValue":t[11]||(t[11]=i=>n.testSettings.expectedStatusCode=i),placeholder:"Expected Status (e.g. 200)"},null,512)),[[Ne,n.testSettings.expectedStatusCode]]):Pe("",!0)]),R("div",Jy,[R("label",null,[ge(R("input",{type:"checkbox","onUpdate:modelValue":t[12]||(t[12]=i=>n.testSettings.checkResponseTime=i)},null,512),[[dr,n.testSettings.checkResponseTime]]),t[22]||(t[22]=Ke(" Check Response Time "))]),n.testSettings.checkResponseTime?ge((Z(),ee("input",{key:0,type:"text","onUpdate:modelValue":t[13]||(t[13]=i=>n.testSettings.maxResponseTime=i),placeholder:"Max Response Time (ms)"},null,512)),[[Ne,n.testSettings.maxResponseTime]]):Pe("",!0)])])])):Pe("",!0)])])]),n.response?(Z(),ee("div",Wy,[R("div",Xy,[t[23]||(t[23]=R("h2",null,"Response",-1)),R("div",Qy,[R("span",{class:Xe(["status",o.responseStatusClass])}," Status: "+se(n.response.status)+" "+se(n.response.statusText),3),R("span",Yy,"Time: "+se(n.response.time)+"ms",1),R("span",Zy,"Size: "+se(n.response.size),1)])]),R("div",ev,[R("pre",null,se(JSON.stringify(n.response.body,null,2)),1)]),R("div",tv,[R("button",{class:"accent-button",onClick:t[14]||(t[14]=(...i)=>o.generateTestData&&o.generateTestData(...i))},"Generate Test Data")])])):Pe("",!0),n.error?(Z(),ee("div",rv,se(n.error),1)):Pe("",!0)])}const nv=xt(ay,[["render",sv],["__scopeId","data-v-0d296d83"]]),ov={name:"TestResults",data(){return{filters:{endpoint:"",status:"",date:""},currentPage:1,testsPerPage:5,tests:[]}},computed:{filteredTests(){let e=this.tests;this.filters.endpoint&&(e=e.filter(s=>s.endpoint===this.filters.endpoint)),this.filters.status&&(e=e.filter(s=>s.status===this.filters.status)),this.filters.date&&(e=e.filter(s=>s.date===this.filters.date));const t=(this.currentPage-1)*this.testsPerPage,r=t+this.testsPerPage;return e.slice(t,r)},totalPages(){const e=this.tests.filter(t=>!(this.filters.endpoint&&t.endpoint!==this.filters.endpoint||this.filters.status&&t.status!==this.filters.status||this.filters.date&&t.date!==this.filters.date));return Math.ceil(e.length/this.testsPerPage)},testSummary(){const e=this.tests.length,t=this.tests.filter(n=>n.status==="passed").length,r=e-t,s=e>0?Math.round(t/e*100):0;return{total:e,passed:t,failed:r,successRate:s}}},methods:{toggleTestDetails(e){this.$set(this.filteredTests[e],"expanded",!this.filteredTests[e].expanded)},applyFilters(){this.currentPage=1},loadTests(){const e=JSON.parse(localStorage.getItem("testResults")||"[]");this.tests=e.map(t=>({...t,expanded:!1}))}},mounted(){this.loadTests(),window.addEventListener("storage",this.loadTests)},beforeDestroy(){window.removeEventListener("storage",this.loadTests)}},iv={class:"test-results"},av={class:"test-summary"},lv={class:"summary-card"},uv={class:"stat-value"},cv={class:"summary-card"},fv={class:"stat-value success"},dv={class:"summary-card"},hv={class:"stat-value error"},pv={class:"summary-card"},mv={class:"stat-value"},gv={class:"results-filters"},yv={class:"filter-item"},vv={class:"filter-item"},_v={class:"filter-item"},bv={class:"test-list"},wv=["onClick"],$v={key:0},Ev={key:1},Sv={class:"test-name"},Pv={class:"test-endpoint"},Rv={class:"test-time"},Tv={class:"test-date"},Ov={class:"test-expand"},Cv={key:0,class:"test-details"},kv={class:"test-details-section"},Nv={class:"details-content"},Av={key:0},Iv={key:1},jv={class:"test-details-section"},qv={class:"details-content"},xv={key:0},Mv={key:1},Dv={class:"test-details-section"},Uv={class:"details-content"},Lv={class:"assertion-status"},Fv={class:"assertion-name"},Vv={key:0,class:"assertion-message"},Hv={class:"pagination"},Kv=["disabled"],Bv=["disabled"];function zv(e,t,r,s,n,o){return Z(),ee("div",iv,[R("div",av,[R("div",lv,[t[6]||(t[6]=R("h3",null,"Total Tests",-1)),R("p",uv,se(o.testSummary.total),1)]),R("div",cv,[t[7]||(t[7]=R("h3",null,"Passed",-1)),R("p",fv,se(o.testSummary.passed),1)]),R("div",dv,[t[8]||(t[8]=R("h3",null,"Failed",-1)),R("p",hv,se(o.testSummary.failed),1)]),R("div",pv,[t[9]||(t[9]=R("h3",null,"Success Rate",-1)),R("p",mv,se(o.testSummary.successRate)+"%",1)])]),R("div",gv,[R("div",yv,[t[11]||(t[11]=R("label",null,"API Endpoint",-1)),ge(R("select",{"onUpdate:modelValue":t[0]||(t[0]=i=>n.filters.endpoint=i)},t[10]||(t[10]=[R("option",{value:""},"All Endpoints",-1),R("option",null,"POST /api/v2/tasks",-1),R("option",null,"GET /api/v2/tasks/:id",-1)]),512),[[Hr,n.filters.endpoint]])]),R("div",vv,[t[13]||(t[13]=R("label",null,"Status",-1)),ge(R("select",{"onUpdate:modelValue":t[1]||(t[1]=i=>n.filters.status=i)},t[12]||(t[12]=[R("option",{value:""},"All",-1),R("option",{value:"passed"},"Passed",-1),R("option",{value:"failed"},"Failed",-1)]),512),[[Hr,n.filters.status]])]),R("div",_v,[t[14]||(t[14]=R("label",null,"Date",-1)),ge(R("input",{type:"date","onUpdate:modelValue":t[2]||(t[2]=i=>n.filters.date=i)},null,512),[[Ne,n.filters.date]])]),R("button",{class:"filter-apply",onClick:t[3]||(t[3]=(...i)=>o.applyFilters&&o.applyFilters(...i))},"Apply Filters")]),R("div",bv,[(Z(!0),ee(qe,null,bt(o.filteredTests,(i,a)=>(Z(),ee("div",{class:"test-item",key:i.id},[R("div",{class:"test-header",onClick:l=>o.toggleTestDetails(a)},[R("div",{class:Xe(["test-status",i.status])},[i.status==="passed"?(Z(),ee("span",$v,"✓")):(Z(),ee("span",Ev,"✗"))],2),R("div",Sv,se(i.name),1),R("div",Pv,se(i.endpoint),1),R("div",Rv,se(i.time)+"ms",1),R("div",Tv,se(i.date),1),R("div",Ov,[R("span",null,se(i.expanded?"▼":"▶"),1)])],8,wv),i.expanded?(Z(),ee("div",Cv,[R("div",kv,[t[19]||(t[19]=R("h4",null,"Request",-1)),R("div",Nv,[R("p",null,[t[15]||(t[15]=R("strong",null,"Method:",-1)),Ke(" "+se(i.request.method),1)]),R("p",null,[t[16]||(t[16]=R("strong",null,"URL:",-1)),Ke(" "+se(i.request.url),1)]),i.request.headers.length>0?(Z(),ee("div",Av,[t[17]||(t[17]=R("p",null,[R("strong",null,"Headers:")],-1)),R("ul",null,[(Z(!0),ee(qe,null,bt(i.request.headers,(l,f)=>(Z(),ee("li",{key:f},se(l.key)+": "+se(l.value),1))),128))])])):Pe("",!0),i.request.body?(Z(),ee("div",Iv,[t[18]||(t[18]=R("p",null,[R("strong",null,"Body:")],-1)),R("pre",null,se(JSON.stringify(i.request.body,null,2)),1)])):Pe("",!0)])]),R("div",jv,[t[24]||(t[24]=R("h4",null,"Response",-1)),R("div",qv,[R("p",null,[t[20]||(t[20]=R("strong",null,"Status:",-1)),Ke(" "+se(i.response.status)+" "+se(i.response.statusText),1)]),R("p",null,[t[21]||(t[21]=R("strong",null,"Time:",-1)),Ke(" "+se(i.response.time)+"ms",1)]),i.response.headers.length>0?(Z(),ee("div",xv,[t[22]||(t[22]=R("p",null,[R("strong",null,"Headers:")],-1)),R("ul",null,[(Z(!0),ee(qe,null,bt(i.response.headers,(l,f)=>(Z(),ee("li",{key:f},se(l.key)+": "+se(l.value),1))),128))])])):Pe("",!0),i.response.body?(Z(),ee("div",Mv,[t[23]||(t[23]=R("p",null,[R("strong",null,"Body:")],-1)),R("pre",null,se(JSON.stringify(i.response.body,null,2)),1)])):Pe("",!0)])]),R("div",Dv,[t[25]||(t[25]=R("h4",null,"Test Results",-1)),R("div",Uv,[(Z(!0),ee(qe,null,bt(i.assertions,(l,f)=>(Z(),ee("div",{class:Xe(["assertion",l.passed?"passed":"failed"]),key:f},[R("span",Lv,se(l.passed?"✓":"✗"),1),R("span",Fv,se(l.name),1),l.passed?Pe("",!0):(Z(),ee("span",Vv,se(l.message),1))],2))),128))])])])):Pe("",!0)]))),128))]),R("div",Hv,[R("button",{disabled:n.currentPage===1,onClick:t[4]||(t[4]=i=>n.currentPage--)},"Previous",8,Kv),R("span",null,"Page "+se(n.currentPage)+" of "+se(o.totalPages),1),R("button",{disabled:n.currentPage===o.totalPages,onClick:t[5]||(t[5]=i=>n.currentPage++)},"Next",8,Bv)])])}const Gv=xt(ov,[["render",zv],["__scopeId","data-v-0b892a57"]]),Jv={name:"Login",data(){return{form:{email:"",password:"",remember:!1},errors:{email:"",password:""},authError:"",isLoading:!1}},methods:{async login(){this.errors={email:"",password:""},this.authError="";let e=!0;if(this.form.email?this.validateEmail(this.form.email)||(this.errors.email="Please enter a valid email",e=!1):(this.errors.email="Email is required",e=!1),this.form.password||(this.errors.password="Password is required",e=!1),!!e){this.isLoading=!0;try{await At.login(this.form.email,this.form.password,this.form.remember)}catch(t){this.authError=t.message||"Login failed. Please try again."}finally{this.isLoading=!1}}},validateEmail(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},clearError(e){this.errors[e]="",this.authError=""},async forgotPassword(){if(!this.form.email){this.errors.email="Email is required for password reset";return}if(!this.validateEmail(this.form.email)){this.errors.email="Please enter a valid email";return}this.isLoading=!0;try{await At.forgotPassword(this.form.email),alert("Password reset instructions have been sent to your email.")}catch(e){this.authError=e.message||"Failed to send reset link. Please try again."}finally{this.isLoading=!1}}}},Wv={class:"auth-container"},Xv={class:"auth-card"},Qv={class:"auth-form"},Yv={key:0,class:"error-message"},Zv={key:0,class:"error-message"},e_={class:"form-actions"},t_={class:"remember-me"},r_=["disabled"],s_={key:0,class:"auth-error"},n_={class:"auth-footer"};function o_(e,t,r,s,n,o){const i=sr("router-link");return Z(),ee("div",Wv,[R("div",Xv,[t[13]||(t[13]=R("div",{class:"auth-header"},[R("h2",null,"API Test Generator"),R("p",null,"Log in to your account")],-1)),R("div",Qv,[R("div",{class:Xe(["form-group",{error:n.errors.email}])},[t[8]||(t[8]=R("label",{for:"email"},"Email",-1)),ge(R("input",{type:"email",id:"email","onUpdate:modelValue":t[0]||(t[0]=a=>n.form.email=a),placeholder:"Enter your email",onInput:t[1]||(t[1]=a=>o.clearError("email"))},null,544),[[Ne,n.form.email]]),n.errors.email?(Z(),ee("p",Yv,se(n.errors.email),1)):Pe("",!0)],2),R("div",{class:Xe(["form-group",{error:n.errors.password}])},[t[9]||(t[9]=R("label",{for:"password"},"Password",-1)),ge(R("input",{type:"password",id:"password","onUpdate:modelValue":t[2]||(t[2]=a=>n.form.password=a),placeholder:"Enter your password",onInput:t[3]||(t[3]=a=>o.clearError("password")),onKeyup:t[4]||(t[4]=Qo((...a)=>o.login&&o.login(...a),["enter"]))},null,544),[[Ne,n.form.password]]),n.errors.password?(Z(),ee("p",Zv,se(n.errors.password),1)):Pe("",!0)],2),R("div",e_,[R("div",t_,[ge(R("input",{type:"checkbox",id:"remember","onUpdate:modelValue":t[5]||(t[5]=a=>n.form.remember=a)},null,512),[[dr,n.form.remember]]),t[10]||(t[10]=R("label",{for:"remember"},"Remember me",-1))]),R("a",{href:"#",onClick:t[6]||(t[6]=Uu((...a)=>o.forgotPassword&&o.forgotPassword(...a),["prevent"]))})]),R("button",{class:"auth-button accent-button",onClick:t[7]||(t[7]=(...a)=>o.login&&o.login(...a)),disabled:n.isLoading},se(n.isLoading?"Logging in...":"Log In"),9,r_),n.authError?(Z(),ee("p",s_,se(n.authError),1)):Pe("",!0)]),R("div",n_,[R("p",null,[t[12]||(t[12]=Ke("Don't have an account? ")),Ae(i,{to:"/register"},{default:rr(()=>t[11]||(t[11]=[Ke("Sign up")])),_:1})])])])])}const i_=xt(Jv,[["render",o_],["__scopeId","data-v-cbdfb58f"]]),a_={name:"Register",data(){return{form:{name:"",email:"",password:"",confirmPassword:""},errors:{name:"",email:"",password:"",confirmPassword:""},authError:"",isLoading:!1}},methods:{async register(){this.errors={name:"",email:"",password:"",confirmPassword:""},this.authError="";let e=!0;if(this.form.name||(this.errors.name="Name is required",e=!1),this.form.email?this.validateEmail(this.form.email)||(this.errors.email="Please enter a valid email",e=!1):(this.errors.email="Email is required",e=!1),this.form.password?this.form.password.length<6&&(this.errors.password="Password must be at least 6 characters",e=!1):(this.errors.password="Password is required",e=!1),this.form.confirmPassword?this.form.password!==this.form.confirmPassword&&(this.errors.confirmPassword="Passwords do not match",e=!1):(this.errors.confirmPassword="Please confirm your password",e=!1),!!e){this.isLoading=!0;try{await At.register(this.form.name,this.form.email,this.form.password)}catch(t){this.authError=t.message||"Registration failed. Please try again."}finally{this.isLoading=!1}}},validateEmail(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},clearError(e){this.errors[e]="",this.authError=""}}},l_={class:"auth-container"},u_={class:"auth-card"},c_={class:"auth-form"},f_={key:0,class:"error-message"},d_={key:0,class:"error-message"},h_={key:0,class:"error-message"},p_={key:0,class:"error-message"},m_=["disabled"],g_={key:0,class:"auth-error"},y_={class:"auth-footer"};function v_(e,t,r,s,n,o){const i=sr("router-link");return Z(),ee("div",l_,[R("div",u_,[t[16]||(t[16]=R("div",{class:"auth-header"},[R("h2",null,"API Test Generator"),R("p",null,"Create a new account")],-1)),R("div",c_,[R("div",{class:Xe(["form-group",{error:n.errors.name}])},[t[10]||(t[10]=R("label",{for:"name"},"Full Name",-1)),ge(R("input",{type:"text",id:"name","onUpdate:modelValue":t[0]||(t[0]=a=>n.form.name=a),placeholder:"Enter your full name",onInput:t[1]||(t[1]=a=>o.clearError("name"))},null,544),[[Ne,n.form.name]]),n.errors.name?(Z(),ee("p",f_,se(n.errors.name),1)):Pe("",!0)],2),R("div",{class:Xe(["form-group",{error:n.errors.email}])},[t[11]||(t[11]=R("label",{for:"email"},"Email",-1)),ge(R("input",{type:"email",id:"email","onUpdate:modelValue":t[2]||(t[2]=a=>n.form.email=a),placeholder:"Enter your email",onInput:t[3]||(t[3]=a=>o.clearError("email"))},null,544),[[Ne,n.form.email]]),n.errors.email?(Z(),ee("p",d_,se(n.errors.email),1)):Pe("",!0)],2),R("div",{class:Xe(["form-group",{error:n.errors.password}])},[t[12]||(t[12]=R("label",{for:"password"},"Password",-1)),ge(R("input",{type:"password",id:"password","onUpdate:modelValue":t[4]||(t[4]=a=>n.form.password=a),placeholder:"Create a password",onInput:t[5]||(t[5]=a=>o.clearError("password"))},null,544),[[Ne,n.form.password]]),n.errors.password?(Z(),ee("p",h_,se(n.errors.password),1)):Pe("",!0)],2),R("div",{class:Xe(["form-group",{error:n.errors.confirmPassword}])},[t[13]||(t[13]=R("label",{for:"confirmPassword"},"Confirm Password",-1)),ge(R("input",{type:"password",id:"confirmPassword","onUpdate:modelValue":t[6]||(t[6]=a=>n.form.confirmPassword=a),placeholder:"Confirm your password",onInput:t[7]||(t[7]=a=>o.clearError("confirmPassword")),onKeyup:t[8]||(t[8]=Qo((...a)=>o.register&&o.register(...a),["enter"]))},null,544),[[Ne,n.form.confirmPassword]]),n.errors.confirmPassword?(Z(),ee("p",p_,se(n.errors.confirmPassword),1)):Pe("",!0)],2),R("button",{class:"auth-button accent-button",onClick:t[9]||(t[9]=(...a)=>o.register&&o.register(...a)),disabled:n.isLoading},se(n.isLoading?"Creating account...":"Sign Up"),9,m_),n.authError?(Z(),ee("p",g_,se(n.authError),1)):Pe("",!0)]),R("div",y_,[R("p",null,[t[15]||(t[15]=Ke("Already have an account? ")),Ae(i,{to:"/login"},{default:rr(()=>t[14]||(t[14]=[Ke("Log in")])),_:1})])])])])}const __=xt(a_,[["render",v_],["__scopeId","data-v-93d01b30"]]),b_={name:"ForgotPassword",data(){return{form:{email:""},errors:{email:""},authError:"",isLoading:!1,isSuccess:!1}},methods:{resetPassword(){this.errors={email:""},this.authError="";let e=!0;this.form.email?this.validateEmail(this.form.email)||(this.errors.email="Please enter a valid email",e=!1):(this.errors.email="Email is required",e=!1),e&&(this.isLoading=!0,setTimeout(()=>{this.isSuccess=!0,this.isLoading=!1,setTimeout(()=>{this.$router.push("/login")},3e3)},1500))},validateEmail(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},clearError(e){this.errors[e]="",this.authError=""}}},w_={class:"auth-container"},$_={class:"auth-card"},E_={class:"auth-form"},S_={key:0,class:"error-message"},P_=["disabled"],R_={key:0,class:"auth-error"},T_={key:1,class:"auth-success"},O_={class:"auth-footer"};function C_(e,t,r,s,n,o){const i=sr("router-link");return Z(),ee("div",w_,[R("div",$_,[t[5]||(t[5]=R("div",{class:"auth-header"},[R("h2",null,"Reset Password"),R("p",null,"Enter your email to receive a reset link")],-1)),R("div",E_,[R("div",{class:Xe(["form-group",{error:n.errors.email}])},[t[3]||(t[3]=R("label",{for:"email"},"Email",-1)),ge(R("input",{type:"email",id:"email","onUpdate:modelValue":t[0]||(t[0]=a=>n.form.email=a),placeholder:"Enter your email",onInput:t[1]||(t[1]=a=>o.clearError("email"))},null,544),[[Ne,n.form.email]]),n.errors.email?(Z(),ee("p",S_,se(n.errors.email),1)):Pe("",!0)],2),R("button",{class:"auth-button accent-button",onClick:t[2]||(t[2]=(...a)=>o.resetPassword&&o.resetPassword(...a)),disabled:n.isLoading||n.isSuccess},se(n.isLoading?"Sending...":n.isSuccess?"Email Sent":"Send Reset Link"),9,P_),n.authError?(Z(),ee("p",R_,se(n.authError),1)):Pe("",!0),n.isSuccess?(Z(),ee("p",T_," Password reset instructions have been sent to your email ")):Pe("",!0)]),R("div",O_,[R("p",null,[Ae(i,{to:"/login"},{default:rr(()=>t[4]||(t[4]=[Ke("Back to Login")])),_:1})])])])])}const k_=xt(b_,[["render",C_],["__scopeId","data-v-f4b83c73"]]),N_={class:"profile-container"},A_={class:"profile-card"},I_={class:"form-group"},j_={class:"form-group"},q_={class:"form-group"},x_={class:"form-group"},M_={class:"form-group"},D_={key:0,class:"success-message"},U_={class:"api-keys-section"},L_={class:"api-key-list"},F_={class:"key-info"},V_={class:"key-name"},H_={class:"key-value"},K_={key:0},B_={key:1},z_={class:"key-created"},G_={class:"key-actions"},J_=["onClick"],W_=["onClick"],X_={__name:"UserProfile",setup(e){const t=Pr({name:"",email:"",currentPassword:"",newPassword:"",confirmPassword:""}),r=go(!1),s=go([]);du(async()=>{await n(),await o()});async function n(){try{const{data:f}=await ke.get("/api/profile");t.name=f.name,t.email=f.email}catch(f){console.error("Failed to load profile:",f)}}async function o(){try{const{data:f}=await ke.get("/api/keys");s.value=f.map(u=>({...u,visible:!1}))}catch(f){console.error("Failed to load API keys:",f)}}async function i(){var f,u;if(t.newPassword!==t.confirmPassword){alert("Новые пароли не совпадают");return}try{await ke.put("/api/profile",{name:t.name,currentPassword:t.currentPassword,newPassword:t.newPassword}),r.value=!0,t.currentPassword="",t.newPassword="",t.confirmPassword="",setTimeout(()=>{r.value=!1},3e3)}catch(d){console.error("Update failed:",d),alert(((u=(f=d.response)==null?void 0:f.data)==null?void 0:u.message)||"Ошибка при обновлении профиля")}}function a(f){s.value[f].visible=!s.value[f].visible}async function l(f){const u=s.value[f];if(confirm(`Удалить ключ API «${u.name}»?`))try{await ke.delete(`/api/keys/${u.id}`),s.value.splice(f,1)}catch(d){console.error("Delete failed:",d),alert("Ошибка при удалении ключа")}}return(f,u)=>(Z(),ee("div",N_,[u[15]||(u[15]=R("h2",null,"Your Profile",-1)),R("div",A_,[R("div",I_,[u[5]||(u[5]=R("label",{for:"name"},"Full Name",-1)),ge(R("input",{type:"text",id:"name","onUpdate:modelValue":u[0]||(u[0]=d=>t.name=d),placeholder:"Your name"},null,512),[[Ne,t.name]])]),R("div",j_,[u[6]||(u[6]=R("label",{for:"email"},"Email",-1)),ge(R("input",{type:"email",id:"email","onUpdate:modelValue":u[1]||(u[1]=d=>t.email=d),placeholder:"Your email",disabled:""},null,512),[[Ne,t.email]]),u[7]||(u[7]=R("p",{class:"help-text"},"Email cannot be changed",-1))]),u[11]||(u[11]=R("div",{class:"form-divider"},null,-1)),u[12]||(u[12]=R("h3",null,"Change Password",-1)),R("div",q_,[u[8]||(u[8]=R("label",{for:"currentPassword"},"Current Password",-1)),ge(R("input",{type:"password",id:"currentPassword","onUpdate:modelValue":u[2]||(u[2]=d=>t.currentPassword=d),placeholder:"Current password"},null,512),[[Ne,t.currentPassword]])]),R("div",x_,[u[9]||(u[9]=R("label",{for:"newPassword"},"New Password",-1)),ge(R("input",{type:"password",id:"newPassword","onUpdate:modelValue":u[3]||(u[3]=d=>t.newPassword=d),placeholder:"New password"},null,512),[[Ne,t.newPassword]])]),R("div",M_,[u[10]||(u[10]=R("label",{for:"confirmPassword"},"Confirm New Password",-1)),ge(R("input",{type:"password",id:"confirmPassword","onUpdate:modelValue":u[4]||(u[4]=d=>t.confirmPassword=d),placeholder:"Confirm new password"},null,512),[[Ne,t.confirmPassword]])]),R("div",{class:"form-group"},[R("button",{class:"accent-button",onClick:i},"Update Profile")]),r.value?(Z(),ee("div",D_," Profile updated successfully! ")):Pe("",!0)]),R("div",U_,[u[13]||(u[13]=R("h3",null,"API Keys",-1)),u[14]||(u[14]=R("p",null,"Generate API keys to use our service programmatically",-1)),R("div",L_,[(Z(!0),ee(qe,null,bt(s.value,(d,v)=>(Z(),ee("div",{class:"api-key-item",key:v},[R("div",F_,[R("div",V_,se(d.name),1),R("div",H_,[d.visible?(Z(),ee("span",K_,se(d.value),1)):(Z(),ee("span",B_,"••••••••••••••••"))]),R("div",z_,"Created: "+se(d.created),1)]),R("div",G_,[R("button",{onClick:_=>a(v)},se(d.visible?"Hide":"Show"),9,J_),R("button",{class:"delete-button",onClick:_=>l(v)},"Delete",8,W_)])]))),128))])])]))}},Q_=[{path:"/",name:"Dashboard",component:vp,meta:{requiresAuth:!0}},{path:"/request-builder",name:"RequestBuilder",component:nv,meta:{requiresAuth:!0}},{path:"/test-results",name:"TestResults",component:Gv,meta:{requiresAuth:!0}},{path:"/profile",name:"UserProfile",component:X_,meta:{requiresAuth:!0}},{path:"/login",name:"Login",component:i_,meta:{guest:!0}},{path:"/register",name:"Register",component:__,meta:{guest:!0}},{path:"/forgot-password",name:"ForgotPassword",component:k_,meta:{guest:!0}}],gn=ap({history:xh(),routes:Q_});gn.beforeEach((e,t,r)=>{const s=At.state.isAuthenticated;e.matched.some(n=>n.meta.requiresAuth)?s?r():r({name:"Login",query:{redirect:e.fullPath}}):e.matched.some(n=>n.meta.guest)&&s?r({name:"Dashboard"}):r()});const Y_={name:"AppHeader",computed:{currentPage(){const e=this.$route.path;return e==="/"?"Dashboard":e==="/request-builder"?"Request Builder":e==="/test-results"?"Test Results":"API Test Generator"}},methods:{exportData(){alert("Exporting data as ZIP...")},logOut(){localStorage.removeItem("token"),localStorage.removeItem("user"),this.$router.push("/login").then(()=>{window.location.reload()})}}},Z_={class:"app-header"},e0={class:"title"},t0={class:"actions"};function r0(e,t,r,s,n,o){return Z(),ee("header",Z_,[R("div",e0,[R("h1",null,se(o.currentPage),1)]),R("div",t0,[R("button",{class:"accent-button",onClick:t[0]||(t[0]=(...i)=>o.exportData&&o.exportData(...i))},"Export Data"),t[2]||(t[2]=R("button",null,"Settings",-1)),R("button",{onClick:t[1]||(t[1]=(...i)=>o.logOut&&o.logOut(...i))},"Log Out")])])}const s0=xt(Y_,[["render",r0],["__scopeId","data-v-afb068a4"]]),n0={name:"App",components:{NavSidebar:oh,AppHeader:s0}},o0={class:"app-container"},i0={class:"main-content"};function a0(e,t,r,s,n,o){const i=sr("NavSidebar"),a=sr("AppHeader"),l=sr("router-view");return Z(),ee("div",o0,[Ae(i),R("div",i0,[Ae(a),Ae(l)])])}const l0=xt(n0,[["render",a0]]),Cc=Xd(l0);Cc.use(gn);Cc.mount("#app"); diff --git a/frontend/dist/favicon.ico b/frontend/dist/favicon.ico new file mode 100644 index 0000000..df36fcf Binary files /dev/null and b/frontend/dist/favicon.ico differ diff --git a/frontend/dist/index.html b/frontend/dist/index.html new file mode 100644 index 0000000..b023b6a --- /dev/null +++ b/frontend/dist/index.html @@ -0,0 +1,14 @@ + + + + + + + Vite App + + + + +
+ + diff --git a/frontend/src/services/authService.js b/frontend/src/services/authService.js index cf9dd73..032893b 100644 --- a/frontend/src/services/authService.js +++ b/frontend/src/services/authService.js @@ -10,7 +10,7 @@ const authService = { if (!response.ok) { const err = await response.json(); - throw new Error(err.error || 'Ошибка входа'); + throw new Error(err.error); } const data = await response.json(); @@ -40,20 +40,17 @@ const authService = { if (!response.ok) { const err = await response.json(); - throw new Error(err.error || 'Ошибка регистрации'); + throw new Error(err.error); } const data = await response.json(); console.log('Register response data:', data); - const user = data.user ?? data.data?.user; - const token = data.token ?? data.data?.token; + const message = data.message ?? data.data?.message; + const user_id = data.user_id ?? data.data?.user_id; + const ok = response.ok; - if (!token) { - throw new Error('Response missing user or token'); - } - - return { user, token }; + return { message, user_id, ok }; } }; diff --git a/frontend/src/store/auth.js b/frontend/src/store/auth.js index 2b163a9..14a01a7 100644 --- a/frontend/src/store/auth.js +++ b/frontend/src/store/auth.js @@ -68,18 +68,15 @@ const actions = { const response = await authService.register(name, email, password); console.log('Register response:', response); - if (!response || !response.token) { - throw new Error('Invalid response from server: missing user or token'); + if (!response.ok) { + throw new Error('Invalid response from server'); } - state.user = response.user; - state.token = response.token; - state.isAuthenticated = true; - - localStorage.setItem('token', response.token); + state.message = response.message; + state.user_id = response.user_id; router.push('/'); - return response.user; + return response.message; } catch (error) { console.error('Register error:', error); state.error = error.message || 'Registration failed'; @@ -89,16 +86,6 @@ const actions = { } }, - // logout() { - // state.user = null; - // state.token = null; - // state.isAuthenticated = false; - // localStorage.removeItem('user'); - // localStorage.removeItem('token'); - // localStorage.removeItem('rememberMe'); - // router.push('/login'); - // }, - clearError() { state.error = null; }