@sfgrp/distinguish 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -29
- package/dist/distinguish.es.js +2637 -8152
- package/dist/distinguish.umd.js +6 -50
- package/dist/style.css +1 -1
- package/package.json +22 -22
package/dist/distinguish.umd.js
CHANGED
|
@@ -1,50 +1,6 @@
|
|
|
1
|
-
(function(be,pe){typeof exports=="object"&&typeof module!="undefined"?pe(exports):typeof define=="function"&&define.amd?define(["exports"],pe):(be=typeof globalThis!="undefined"?globalThis:be||self,pe(be.Distinguish={}))})(this,function(be){"use strict";var xp=Object.defineProperty,wp=Object.defineProperties;var Ep=Object.getOwnPropertyDescriptors;var cl=Object.getOwnPropertySymbols;var Cp=Object.prototype.hasOwnProperty,Ip=Object.prototype.propertyIsEnumerable;var ul=(be,pe,Be)=>pe in be?xp(be,pe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):be[pe]=Be,lt=(be,pe)=>{for(var Be in pe||(pe={}))Cp.call(pe,Be)&&ul(be,Be,pe[Be]);if(cl)for(var Be of cl(pe))Ip.call(pe,Be)&&ul(be,Be,pe[Be]);return be},sn=(be,pe)=>wp(be,Ep(pe));function pe(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const fl=pe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Os(e){return!!e||e===""}function wt(e){if(O(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=he(r)?hl(r):wt(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(he(e))return e;if(ue(e))return e}}const dl=/;(?![^(]*\))/g,pl=/:(.+)/;function hl(e){const t={};return e.split(dl).forEach(n=>{if(n){const r=n.split(pl);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function at(e){let t="";if(he(e))t=e;else if(O(e))for(let n=0;n<e.length;n++){const r=at(e[n]);r&&(t+=r+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ml(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=on(e[r],t[r]);return n}function on(e,t){if(e===t)return!0;let n=As(e),r=As(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ln(e),r=ln(t),n||r)return e===t;if(n=O(e),r=O(t),n||r)return n&&r?ml(e,t):!1;if(n=ue(e),r=ue(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!on(e[i],t[i]))return!1}}return String(e)===String(t)}function Er(e,t){return e.findIndex(n=>on(n,t))}const re=e=>he(e)?e:e==null?"":O(e)||ue(e)&&(e.toString===Ls||!N(e.toString))?JSON.stringify(e,ks,2):String(e),ks=(e,t)=>t&&t.__v_isRef?ks(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()]}:ue(t)&&!O(t)&&!Ps(t)?String(t):t,G={},Ft=[],He=()=>{},gl=()=>!1,_l=/^on[^a-z]/,Mn=e=>_l.test(e),Cr=e=>e.startsWith("onUpdate:"),ye=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},vl=Object.prototype.hasOwnProperty,H=(e,t)=>vl.call(e,t),O=Array.isArray,Ut=e=>an(e)==="[object Map]",Nt=e=>an(e)==="[object Set]",As=e=>an(e)==="[object Date]",N=e=>typeof e=="function",he=e=>typeof e=="string",ln=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",Rs=e=>ue(e)&&N(e.then)&&N(e.catch),Ls=Object.prototype.toString,an=e=>Ls.call(e),bl=e=>an(e).slice(8,-1),Ps=e=>an(e)==="[object Object]",Tr=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fn=pe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yl=/-(\w)/g,We=Un(e=>e.replace(yl,(t,n)=>n?n.toUpperCase():"")),xl=/\B([A-Z])/g,Et=Un(e=>e.replace(xl,"-$1").toLowerCase()),Nn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),$r=Un(e=>e?`on${Nn(e)}`:""),cn=(e,t)=>!Object.is(e,t),jn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Bn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},un=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ds;const wl=()=>Ds||(Ds=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Je;class Ms{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Je&&(this.parent=Je,this.index=(Je.scopes||(Je.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Je;try{return Je=this,t()}finally{Je=n}}}on(){Je=this}off(){Je=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function Fs(e){return new Ms(e)}function El(e,t=Je){t&&t.active&&t.effects.push(e)}const Sr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Us=e=>(e.w&ct)>0,Ns=e=>(e.n&ct)>0,Cl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ct},Il=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];Us(s)&&!Ns(s)?s.delete(e):t[n++]=s,s.w&=~ct,s.n&=~ct}t.length=n}},Or=new WeakMap;let fn=0,ct=1;const kr=30;let Ve;const Ct=Symbol(""),Ar=Symbol("");class Rr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,El(this,r)}run(){if(!this.active)return this.fn();let t=Ve,n=ut;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ve,Ve=this,ut=!0,ct=1<<++fn,fn<=kr?Cl(this):js(this),this.fn()}finally{fn<=kr&&Il(this),ct=1<<--fn,Ve=this.parent,ut=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ve===this?this.deferStop=!0:this.active&&(js(this),this.onStop&&this.onStop(),this.active=!1)}}function js(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ut=!0;const Bs=[];function jt(){Bs.push(ut),ut=!1}function Bt(){const e=Bs.pop();ut=e===void 0?!0:e}function Ae(e,t,n){if(ut&&Ve){let r=Or.get(e);r||Or.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Sr()),Hs(s)}}function Hs(e,t){let n=!1;fn<=kr?Ns(e)||(e.n|=ct,n=!Us(e)):n=!e.has(Ve),n&&(e.add(Ve),Ve.deps.push(e))}function Ge(e,t,n,r,s,o){const i=Or.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&O(e))i.forEach((a,f)=>{(f==="length"||f>=r)&&l.push(a)});else switch(n!==void 0&&l.push(i.get(n)),t){case"add":O(e)?Tr(n)&&l.push(i.get("length")):(l.push(i.get(Ct)),Ut(e)&&l.push(i.get(Ar)));break;case"delete":O(e)||(l.push(i.get(Ct)),Ut(e)&&l.push(i.get(Ar)));break;case"set":Ut(e)&&l.push(i.get(Ct));break}if(l.length===1)l[0]&&Lr(l[0]);else{const a=[];for(const f of l)f&&a.push(...f);Lr(Sr(a))}}function Lr(e,t){const n=O(e)?e:[...e];for(const r of n)r.computed&&Vs(r);for(const r of n)r.computed||Vs(r)}function Vs(e,t){(e!==Ve||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Tl=pe("__proto__,__v_isRef,__isVue"),Ks=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ln)),$l=Pr(),Sl=Pr(!1,!0),Ol=Pr(!0),zs=kl();function kl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=z(this);for(let o=0,i=this.length;o<i;o++)Ae(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(z)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){jt();const r=z(this)[t].apply(this,n);return Bt(),r}}),e}function Pr(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?ql:eo:t?Gs:Zs).get(r))return r;const i=O(r);if(!e&&i&&H(zs,s))return Reflect.get(zs,s,o);const l=Reflect.get(r,s,o);return(ln(s)?Ks.has(s):Tl(s))||(e||Ae(r,"get",s),t)?l:W(l)?i&&Tr(s)?l:l.value:ue(l)?e?to(l):Jn(l):l}}const Al=qs(),Rl=qs(!0);function qs(e=!1){return function(n,r,s,o){let i=n[r];if(dn(i)&&W(i)&&!W(s))return!1;if(!e&&!dn(s)&&(Ur(s)||(s=z(s),i=z(i)),!O(n)&&W(i)&&!W(s)))return i.value=s,!0;const l=O(n)&&Tr(r)?Number(r)<n.length:H(n,r),a=Reflect.set(n,r,s,o);return n===z(o)&&(l?cn(s,i)&&Ge(n,"set",r,s):Ge(n,"add",r,s)),a}}function Ll(e,t){const n=H(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ge(e,"delete",t,void 0),r}function Pl(e,t){const n=Reflect.has(e,t);return(!ln(t)||!Ks.has(t))&&Ae(e,"has",t),n}function Dl(e){return Ae(e,"iterate",O(e)?"length":Ct),Reflect.ownKeys(e)}const Ws={get:$l,set:Al,deleteProperty:Ll,has:Pl,ownKeys:Dl},Ml={get:Ol,set(e,t){return!0},deleteProperty(e,t){return!0}},Fl=ye({},Ws,{get:Sl,set:Rl}),Dr=e=>e,Hn=e=>Reflect.getPrototypeOf(e);function Vn(e,t,n=!1,r=!1){e=e.__v_raw;const s=z(e),o=z(t);n||(t!==o&&Ae(s,"get",t),Ae(s,"get",o));const{has:i}=Hn(s),l=r?Dr:n?Nr:pn;if(i.call(s,t))return l(e.get(t));if(i.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function Kn(e,t=!1){const n=this.__v_raw,r=z(n),s=z(e);return t||(e!==s&&Ae(r,"has",e),Ae(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function zn(e,t=!1){return e=e.__v_raw,!t&&Ae(z(e),"iterate",Ct),Reflect.get(e,"size",e)}function Js(e){e=z(e);const t=z(this);return Hn(t).has.call(t,e)||(t.add(e),Ge(t,"add",e,e)),this}function Ys(e,t){t=z(t);const n=z(this),{has:r,get:s}=Hn(n);let o=r.call(n,e);o||(e=z(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?cn(t,i)&&Ge(n,"set",e,t):Ge(n,"add",e,t),this}function Qs(e){const t=z(this),{has:n,get:r}=Hn(t);let s=n.call(t,e);s||(e=z(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ge(t,"delete",e,void 0),o}function Xs(){const e=z(this),t=e.size!==0,n=e.clear();return t&&Ge(e,"clear",void 0,void 0),n}function qn(e,t){return function(r,s){const o=this,i=o.__v_raw,l=z(i),a=t?Dr:e?Nr:pn;return!e&&Ae(l,"iterate",Ct),i.forEach((f,u)=>r.call(s,a(f),a(u),o))}}function Wn(e,t,n){return function(...r){const s=this.__v_raw,o=z(s),i=Ut(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,f=s[e](...r),u=n?Dr:t?Nr:pn;return!t&&Ae(o,"iterate",a?Ar:Ct),{next(){const{value:p,done:m}=f.next();return m?{value:p,done:m}:{value:l?[u(p[0]),u(p[1])]:u(p),done:m}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){return e==="delete"?!1:this}}function Ul(){const e={get(o){return Vn(this,o)},get size(){return zn(this)},has:Kn,add:Js,set:Ys,delete:Qs,clear:Xs,forEach:qn(!1,!1)},t={get(o){return Vn(this,o,!1,!0)},get size(){return zn(this)},has:Kn,add:Js,set:Ys,delete:Qs,clear:Xs,forEach:qn(!1,!0)},n={get(o){return Vn(this,o,!0)},get size(){return zn(this,!0)},has(o){return Kn.call(this,o,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:qn(!0,!1)},r={get(o){return Vn(this,o,!0,!0)},get size(){return zn(this,!0)},has(o){return Kn.call(this,o,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:qn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Wn(o,!1,!1),n[o]=Wn(o,!0,!1),t[o]=Wn(o,!1,!0),r[o]=Wn(o,!0,!0)}),[e,n,t,r]}const[Nl,jl,Bl,Hl]=Ul();function Mr(e,t){const n=t?e?Hl:Bl:e?jl:Nl;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(H(n,s)&&s in r?n:r,s,o)}const Vl={get:Mr(!1,!1)},Kl={get:Mr(!1,!0)},zl={get:Mr(!0,!1)},Zs=new WeakMap,Gs=new WeakMap,eo=new WeakMap,ql=new WeakMap;function Wl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jl(e){return e.__v_skip||!Object.isExtensible(e)?0:Wl(bl(e))}function Jn(e){return dn(e)?e:Fr(e,!1,Ws,Vl,Zs)}function Yl(e){return Fr(e,!1,Fl,Kl,Gs)}function to(e){return Fr(e,!0,Ml,zl,eo)}function Fr(e,t,n,r,s){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Jl(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function dt(e){return dn(e)?dt(e.__v_raw):!!(e&&e.__v_isReactive)}function dn(e){return!!(e&&e.__v_isReadonly)}function Ur(e){return!!(e&&e.__v_isShallow)}function no(e){return dt(e)||dn(e)}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function Ht(e){return Bn(e,"__v_skip",!0),e}const pn=e=>ue(e)?Jn(e):e,Nr=e=>ue(e)?to(e):e;function ro(e){ut&&Ve&&(e=z(e),Hs(e.dep||(e.dep=Sr())))}function so(e,t){e=z(e),e.dep&&Lr(e.dep)}function W(e){return!!(e&&e.__v_isRef===!0)}function Re(e){return Ql(e,!1)}function Ql(e,t){return W(e)?e:new Xl(e,t)}class Xl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:z(t),this._value=n?t:pn(t)}get value(){return ro(this),this._value}set value(t){t=this.__v_isShallow?t:z(t),cn(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:pn(t),so(this))}}function j(e){return W(e)?e.value:e}const Zl={get:(e,t,n)=>j(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return W(s)&&!W(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function oo(e){return dt(e)?e:new Proxy(e,Zl)}function Gl(e){const t=O(e)?new Array(e.length):{};for(const n in e)t[n]=ta(e,n);return t}class ea{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function ta(e,t,n){const r=e[t];return W(r)?r:new ea(e,t,n)}class na{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Rr(t,()=>{this._dirty||(this._dirty=!0,so(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=z(this);return ro(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ra(e,t,n=!1){let r,s;const o=N(e);return o?(r=e,s=He):(r=e.get,s=e.set),new na(r,s,o||!s,n)}function pt(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){Yn(o,t,n)}return s}function Fe(e,t,n,r){if(N(e)){const o=pt(e,t,n,r);return o&&Rs(o)&&o.catch(i=>{Yn(i,t,n)}),o}const s=[];for(let o=0;o<e.length;o++)s.push(Fe(e[o],t,n,r));return s}function Yn(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,l=n;for(;o;){const f=o.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](e,i,l)===!1)return}o=o.parent}const a=t.appContext.config.errorHandler;if(a){pt(a,null,10,[e,i,l]);return}}sa(e,n,s,r)}function sa(e,t,n,r=!0){console.error(e)}let Qn=!1,jr=!1;const Le=[];let et=0;const hn=[];let mn=null,Vt=0;const gn=[];let ht=null,Kt=0;const io=Promise.resolve();let Br=null,Hr=null;function lo(e){const t=Br||io;return e?t.then(this?e.bind(this):e):t}function oa(e){let t=et+1,n=Le.length;for(;t<n;){const r=t+n>>>1;_n(Le[r])<e?t=r+1:n=r}return t}function ao(e){(!Le.length||!Le.includes(e,Qn&&e.allowRecurse?et+1:et))&&e!==Hr&&(e.id==null?Le.push(e):Le.splice(oa(e.id),0,e),co())}function co(){!Qn&&!jr&&(jr=!0,Br=io.then(po))}function ia(e){const t=Le.indexOf(e);t>et&&Le.splice(t,1)}function uo(e,t,n,r){O(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),co()}function la(e){uo(e,mn,hn,Vt)}function aa(e){uo(e,ht,gn,Kt)}function Xn(e,t=null){if(hn.length){for(Hr=t,mn=[...new Set(hn)],hn.length=0,Vt=0;Vt<mn.length;Vt++)mn[Vt]();mn=null,Vt=0,Hr=null,Xn(e,t)}}function fo(e){if(Xn(),gn.length){const t=[...new Set(gn)];if(gn.length=0,ht){ht.push(...t);return}for(ht=t,ht.sort((n,r)=>_n(n)-_n(r)),Kt=0;Kt<ht.length;Kt++)ht[Kt]();ht=null,Kt=0}}const _n=e=>e.id==null?1/0:e.id;function po(e){jr=!1,Qn=!0,Xn(e),Le.sort((n,r)=>_n(n)-_n(r));const t=He;try{for(et=0;et<Le.length;et++){const n=Le[et];n&&n.active!==!1&&pt(n,null,14)}}finally{et=0,Le.length=0,fo(),Qn=!1,Br=null,(Le.length||hn.length||gn.length)&&po(e)}}function ca(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||G;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:p,trim:m}=r[u]||G;m&&(s=n.map(E=>E.trim())),p&&(s=n.map(un))}let l,a=r[l=$r(t)]||r[l=$r(We(t))];!a&&o&&(a=r[l=$r(Et(t))]),a&&Fe(a,e,6,s);const f=r[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Fe(f,e,6,s)}}function ho(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!N(e)){const a=f=>{const u=ho(f,t,!0);u&&(l=!0,ye(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(r.set(e,null),null):(O(o)?o.forEach(a=>i[a]=null):ye(i,o),r.set(e,i),i)}function Zn(e,t){return!e||!Mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,Et(t))||H(e,t))}let Ee=null,Gn=null;function er(e){const t=Ee;return Ee=e,Gn=e&&e.type.__scopeId||null,t}function ua(e){Gn=e}function fa(){Gn=null}function Q(e,t=Ee,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ko(-1);const o=er(t),i=e(...s);return er(o),r._d&&Ko(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function Tp(){}function Vr(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:l,attrs:a,emit:f,render:u,renderCache:p,data:m,setupState:E,ctx:P,inheritAttrs:U}=e;let D,L;const ae=er(e);try{if(n.shapeFlag&4){const ee=s||r;D=Qe(u.call(ee,ee,p,o,E,m,P)),L=a}else{const ee=t;D=Qe(ee.length>1?ee(o,{attrs:a,slots:l,emit:f}):ee(o,null)),L=t.props?a:da(a)}}catch(ee){xn.length=0,Yn(ee,e,1),D=M(je)}let q=D;if(L&&U!==!1){const ee=Object.keys(L),{shapeFlag:J}=q;ee.length&&J&7&&(i&&ee.some(Cr)&&(L=pa(L,i)),q=mt(q,L))}return n.dirs&&(q=mt(q),q.dirs=q.dirs?q.dirs.concat(n.dirs):n.dirs),n.transition&&(q.transition=n.transition),D=q,er(ae),D}const da=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},pa=(e,t)=>{const n={};for(const r in e)(!Cr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ha(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:a}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?mo(r,i,f):!!i;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const m=u[p];if(i[m]!==r[m]&&!Zn(f,m))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===i?!1:r?i?mo(r,i,f):!0:!!i;return!1}function mo(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!Zn(n,o))return!0}return!1}function ma({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ga=e=>e.__isSuspense;function _a(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):aa(e)}function va(e,t){if(ge){let n=ge.provides;const r=ge.parent&&ge.parent.provides;r===n&&(n=ge.provides=Object.create(r)),n[e]=t}}function tr(e,t,n=!1){const r=ge||Ee;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&N(t)?t.call(r.proxy):t}}const go={};function vn(e,t,n){return _o(e,t,n)}function _o(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=G){const l=ge;let a,f=!1,u=!1;if(W(e)?(a=()=>e.value,f=Ur(e)):dt(e)?(a=()=>e,r=!0):O(e)?(u=!0,f=e.some(L=>dt(L)||Ur(L)),a=()=>e.map(L=>{if(W(L))return L.value;if(dt(L))return It(L);if(N(L))return pt(L,l,2)})):N(e)?t?a=()=>pt(e,l,2):a=()=>{if(!(l&&l.isUnmounted))return p&&p(),Fe(e,l,3,[m])}:a=He,t&&r){const L=a;a=()=>It(L())}let p,m=L=>{p=D.onStop=()=>{pt(L,l,4)}};if(En)return m=He,t?n&&Fe(t,l,3,[a(),u?[]:void 0,m]):a(),He;let E=u?[]:go;const P=()=>{if(!!D.active)if(t){const L=D.run();(r||f||(u?L.some((ae,q)=>cn(ae,E[q])):cn(L,E)))&&(p&&p(),Fe(t,l,3,[L,E===go?void 0:E,m]),E=L)}else D.run()};P.allowRecurse=!!t;let U;s==="sync"?U=P:s==="post"?U=()=>Te(P,l&&l.suspense):U=()=>la(P);const D=new Rr(a,U);return t?n?P():E=D.run():s==="post"?Te(D.run.bind(D),l&&l.suspense):D.run(),()=>{D.stop(),l&&l.scope&&Ir(l.scope.effects,D)}}function ba(e,t,n){const r=this.proxy,s=he(e)?e.includes(".")?vo(r,e):()=>r[e]:e.bind(r,r);let o;N(t)?o=t:(o=t.handler,n=t);const i=ge;qt(this);const l=_o(s,o.bind(r),n);return i?qt(i):kt(),l}function vo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function It(e,t){if(!ue(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),W(e))It(e.value,t);else if(O(e))for(let n=0;n<e.length;n++)It(e[n],t);else if(Nt(e)||Ut(e))e.forEach(n=>{It(n,t)});else if(Ps(e))for(const n in e)It(e[n],t);return e}function ya(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yn(()=>{e.isMounted=!0}),Co(()=>{e.isUnmounting=!0}),e}const Ue=[Function,Array],bo={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ue,onEnter:Ue,onAfterEnter:Ue,onEnterCancelled:Ue,onBeforeLeave:Ue,onLeave:Ue,onAfterLeave:Ue,onLeaveCancelled:Ue,onBeforeAppear:Ue,onAppear:Ue,onAfterAppear:Ue,onAppearCancelled:Ue},setup(e,{slots:t}){const n=ns(),r=ya();let s;return()=>{const o=t.default&&wo(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const U of o)if(U.type!==je){i=U;break}}const l=z(e),{mode:a}=l;if(r.isLeaving)return zr(i);const f=xo(i);if(!f)return zr(i);const u=Kr(f,l,r,n);qr(f,u);const p=n.subTree,m=p&&xo(p);let E=!1;const{getTransitionKey:P}=f.type;if(P){const U=P();s===void 0?s=U:U!==s&&(s=U,E=!0)}if(m&&m.type!==je&&(!Ot(f,m)||E)){const U=Kr(m,l,r,n);if(qr(m,U),a==="out-in")return r.isLeaving=!0,U.afterLeave=()=>{r.isLeaving=!1,n.update()},zr(i);a==="in-out"&&f.type!==je&&(U.delayLeave=(D,L,ae)=>{const q=yo(r,m);q[String(m.key)]=m,D._leaveCb=()=>{L(),D._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=ae})}return i}}};function yo(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Kr(e,t,n,r){const{appear:s,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:f,onEnterCancelled:u,onBeforeLeave:p,onLeave:m,onAfterLeave:E,onLeaveCancelled:P,onBeforeAppear:U,onAppear:D,onAfterAppear:L,onAppearCancelled:ae}=t,q=String(e.key),ee=yo(n,e),J=($,B)=>{$&&Fe($,r,9,B)},ke=($,B)=>{const Z=B[1];J($,B),O($)?$.every(ce=>ce.length<=1)&&Z():$.length<=1&&Z()},Y={mode:o,persisted:i,beforeEnter($){let B=l;if(!n.isMounted)if(s)B=U||l;else return;$._leaveCb&&$._leaveCb(!0);const Z=ee[q];Z&&Ot(e,Z)&&Z.el._leaveCb&&Z.el._leaveCb(),J(B,[$])},enter($){let B=a,Z=f,ce=u;if(!n.isMounted)if(s)B=D||a,Z=L||f,ce=ae||u;else return;let S=!1;const oe=$._enterCb=ve=>{S||(S=!0,ve?J(ce,[$]):J(Z,[$]),Y.delayedLeave&&Y.delayedLeave(),$._enterCb=void 0)};B?ke(B,[$,oe]):oe()},leave($,B){const Z=String(e.key);if($._enterCb&&$._enterCb(!0),n.isUnmounting)return B();J(p,[$]);let ce=!1;const S=$._leaveCb=oe=>{ce||(ce=!0,B(),oe?J(P,[$]):J(E,[$]),$._leaveCb=void 0,ee[Z]===e&&delete ee[Z])};ee[Z]=e,m?ke(m,[$,S]):S()},clone($){return Kr($,t,n,r)}};return Y}function zr(e){if(nr(e))return e=mt(e),e.children=null,e}function xo(e){return nr(e)?e.children?e.children[0]:void 0:e}function qr(e,t){e.shapeFlag&6&&e.component?qr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wo(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===X?(i.patchFlag&128&&s++,r=r.concat(wo(i.children,t,l))):(t||i.type!==je)&&r.push(l!=null?mt(i,{key:l}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function V(e){return N(e)?{setup:e,name:e.name}:e}const bn=e=>!!e.type.__asyncLoader,nr=e=>e.type.__isKeepAlive;function xa(e,t){Eo(e,"a",t)}function wa(e,t){Eo(e,"da",t)}function Eo(e,t,n=ge){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(rr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)nr(s.parent.vnode)&&Ea(r,t,n,s),s=s.parent}}function Ea(e,t,n,r){const s=rr(t,e,r,!0);zt(()=>{Ir(r[t],s)},n)}function rr(e,t,n=ge,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;jt(),qt(n);const l=Fe(t,n,e,i);return kt(),Bt(),l});return r?s.unshift(o):s.push(o),o}}const tt=e=>(t,n=ge)=>(!En||e==="sp")&&rr(e,t,n),Ca=tt("bm"),yn=tt("m"),Ia=tt("bu"),Ta=tt("u"),Co=tt("bum"),zt=tt("um"),$a=tt("sp"),Sa=tt("rtg"),Oa=tt("rtc");function ka(e,t=ge){rr("ec",e,t)}function Ne(e,t){const n=Ee;if(n===null)return e;const r=cr(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,l,a,f=G]=t[o];N(i)&&(i={mounted:i,updated:i}),i.deep&&It(l),s.push({dir:i,instance:r,value:l,oldValue:void 0,arg:a,modifiers:f})}return e}function Tt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];o&&(l.oldValue=o[i].value);let a=l.dir[r];a&&(jt(),Fe(a,n,8,[e.el,l,e,t]),Bt())}}const Io="components",To=Symbol();function Aa(e){return he(e)?Ra(Io,e,!1)||e:e||To}function Ra(e,t,n=!0,r=!1){const s=Ee||ge;if(s){const o=s.type;if(e===Io){const l=lc(o,!1);if(l&&(l===t||l===We(t)||l===Nn(We(t))))return o}const i=$o(s[e]||o[e],t)||$o(s.appContext[e],t);return!i&&r?o:i}}function $o(e,t){return e&&(e[t]||e[We(t)]||e[Nn(We(t))])}function Pe(e,t,n,r){let s;const o=n&&n[r];if(O(e)||he(e)){s=new Array(e.length);for(let i=0,l=e.length;i<l;i++)s[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o&&o[i])}else if(ue(e))if(e[Symbol.iterator])s=Array.from(e,(i,l)=>t(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const f=i[l];s[l]=t(e[f],f,l,o&&o[l])}}else s=[];return n&&(n[r]=s),s}function Ye(e,t,n={},r,s){if(Ee.isCE||Ee.parent&&bn(Ee.parent)&&Ee.parent.isCE)return M("slot",t==="default"?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),x();const i=o&&So(o(n)),l=se(X,{key:n.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function So(e){return e.some(t=>ir(t)?!(t.type===je||t.type===X&&!So(t.children)):!0)?e:null}const Wr=e=>e?Wo(e)?cr(e)||e.proxy:Wr(e.parent):null,sr=ye(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=>Wr(e.parent),$root:e=>Wr(e.root),$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>ao(e.update)),$nextTick:e=>e.n||(e.n=lo.bind(e.proxy)),$watch:e=>ba.bind(e)}),La={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:a}=e;let f;if(t[0]!=="$"){const E=i[t];if(E!==void 0)switch(E){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(r!==G&&H(r,t))return i[t]=1,r[t];if(s!==G&&H(s,t))return i[t]=2,s[t];if((f=e.propsOptions[0])&&H(f,t))return i[t]=3,o[t];if(n!==G&&H(n,t))return i[t]=4,n[t];Jr&&(i[t]=0)}}const u=sr[t];let p,m;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==G&&H(n,t))return i[t]=4,n[t];if(m=a.config.globalProperties,H(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return s!==G&&H(s,t)?(s[t]=n,!0):r!==G&&H(r,t)?(r[t]=n,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==G&&H(e,i)||t!==G&&H(t,i)||(l=o[0])&&H(l,i)||H(r,i)||H(sr,i)||H(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Jr=!0;function Pa(e){const t=Ao(e),n=e.proxy,r=e.ctx;Jr=!1,t.beforeCreate&&Oo(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:a,inject:f,created:u,beforeMount:p,mounted:m,beforeUpdate:E,updated:P,activated:U,deactivated:D,beforeDestroy:L,beforeUnmount:ae,destroyed:q,unmounted:ee,render:J,renderTracked:ke,renderTriggered:Y,errorCaptured:$,serverPrefetch:B,expose:Z,inheritAttrs:ce,components:S,directives:oe,filters:ve}=t;if(f&&Da(f,r,null,e.appContext.config.unwrapInjectedRef),i)for(const fe in i){const ie=i[fe];N(ie)&&(r[fe]=ie.bind(n))}if(s){const fe=s.call(n,n);ue(fe)&&(e.data=Jn(fe))}if(Jr=!0,o)for(const fe in o){const ie=o[fe],ot=N(ie)?ie.bind(n,n):N(ie.get)?ie.get.bind(n,n):He,Ts=!N(ie)&&N(ie.set)?ie.set.bind(n):He,Pn=de({get:ot,set:Ts});Object.defineProperty(r,fe,{enumerable:!0,configurable:!0,get:()=>Pn.value,set:tn=>Pn.value=tn})}if(l)for(const fe in l)ko(l[fe],r,n,fe);if(a){const fe=N(a)?a.call(n):a;Reflect.ownKeys(fe).forEach(ie=>{va(ie,fe[ie])})}u&&Oo(u,e,"c");function we(fe,ie){O(ie)?ie.forEach(ot=>fe(ot.bind(n))):ie&&fe(ie.bind(n))}if(we(Ca,p),we(yn,m),we(Ia,E),we(Ta,P),we(xa,U),we(wa,D),we(ka,$),we(Oa,ke),we(Sa,Y),we(Co,ae),we(zt,ee),we($a,B),O(Z))if(Z.length){const fe=e.exposed||(e.exposed={});Z.forEach(ie=>{Object.defineProperty(fe,ie,{get:()=>n[ie],set:ot=>n[ie]=ot})})}else e.exposed||(e.exposed={});J&&e.render===He&&(e.render=J),ce!=null&&(e.inheritAttrs=ce),S&&(e.components=S),oe&&(e.directives=oe)}function Da(e,t,n=He,r=!1){O(e)&&(e=Yr(e));for(const s in e){const o=e[s];let i;ue(o)?"default"in o?i=tr(o.from||s,o.default,!0):i=tr(o.from||s):i=tr(o),W(i)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[s]=i}}function Oo(e,t,n){Fe(O(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ko(e,t,n,r){const s=r.includes(".")?vo(n,r):()=>n[r];if(he(e)){const o=t[e];N(o)&&vn(s,o)}else if(N(e))vn(s,e.bind(n));else if(ue(e))if(O(e))e.forEach(o=>ko(o,t,n,r));else{const o=N(e.handler)?e.handler.bind(n):t[e.handler];N(o)&&vn(s,o,e)}}function Ao(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(f=>or(a,f,i,!0)),or(a,t,i)),o.set(t,a),a}function or(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&or(e,o,n,!0),s&&s.forEach(i=>or(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=Ma[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Ma={data:Ro,props:$t,emits:$t,methods:$t,computed:$t,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:$t,directives:$t,watch:Ua,provide:Ro,inject:Fa};function Ro(e,t){return t?e?function(){return ye(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function Fa(e,t){return $t(Yr(e),Yr(t))}function Yr(e){if(O(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function $t(e,t){return e?ye(ye(Object.create(null),e),t):t}function Ua(e,t){if(!e)return t;if(!t)return e;const n=ye(Object.create(null),e);for(const r in t)n[r]=Ie(e[r],t[r]);return n}function Na(e,t,n,r=!1){const s={},o={};Bn(o,lr,1),e.propsDefaults=Object.create(null),Lo(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Yl(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function ja(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=z(s),[a]=e.propsOptions;let f=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let m=u[p];if(Zn(e.emitsOptions,m))continue;const E=t[m];if(a)if(H(o,m))E!==o[m]&&(o[m]=E,f=!0);else{const P=We(m);s[P]=Qr(a,l,P,E,e,!1)}else E!==o[m]&&(o[m]=E,f=!0)}}}else{Lo(e,t,s,o)&&(f=!0);let u;for(const p in l)(!t||!H(t,p)&&((u=Et(p))===p||!H(t,u)))&&(a?n&&(n[p]!==void 0||n[u]!==void 0)&&(s[p]=Qr(a,l,p,void 0,e,!0)):delete s[p]);if(o!==l)for(const p in o)(!t||!H(t,p)&&!0)&&(delete o[p],f=!0)}f&&Ge(e,"set","$attrs")}function Lo(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Fn(a))continue;const f=t[a];let u;s&&H(s,u=We(a))?!o||!o.includes(u)?n[u]=f:(l||(l={}))[u]=f:Zn(e.emitsOptions,a)||(!(a in r)||f!==r[a])&&(r[a]=f,i=!0)}if(o){const a=z(n),f=l||G;for(let u=0;u<o.length;u++){const p=o[u];n[p]=Qr(s,a,p,f[p],e,!H(f,p))}}return i}function Qr(e,t,n,r,s,o){const i=e[n];if(i!=null){const l=H(i,"default");if(l&&r===void 0){const a=i.default;if(i.type!==Function&&N(a)){const{propsDefaults:f}=s;n in f?r=f[n]:(qt(s),r=f[n]=a.call(null,t),kt())}else r=a}i[0]&&(o&&!l?r=!1:i[1]&&(r===""||r===Et(n))&&(r=!0))}return r}function Po(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},l=[];let a=!1;if(!N(e)){const u=p=>{a=!0;const[m,E]=Po(p,t,!0);ye(i,m),E&&l.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return r.set(e,Ft),Ft;if(O(o))for(let u=0;u<o.length;u++){const p=We(o[u]);Do(p)&&(i[p]=G)}else if(o)for(const u in o){const p=We(u);if(Do(p)){const m=o[u],E=i[p]=O(m)||N(m)?{type:m}:m;if(E){const P=Uo(Boolean,E.type),U=Uo(String,E.type);E[0]=P>-1,E[1]=U<0||P<U,(P>-1||H(E,"default"))&&l.push(p)}}}const f=[i,l];return r.set(e,f),f}function Do(e){return e[0]!=="$"}function Mo(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Fo(e,t){return Mo(e)===Mo(t)}function Uo(e,t){return O(t)?t.findIndex(n=>Fo(n,e)):N(t)&&Fo(t,e)?0:-1}const No=e=>e[0]==="_"||e==="$stable",Xr=e=>O(e)?e.map(Qe):[Qe(e)],Ba=(e,t,n)=>{if(t._n)return t;const r=Q((...s)=>Xr(t(...s)),n);return r._c=!1,r},jo=(e,t,n)=>{const r=e._ctx;for(const s in e){if(No(s))continue;const o=e[s];if(N(o))t[s]=Ba(s,o,r);else if(o!=null){const i=Xr(o);t[s]=()=>i}}},Bo=(e,t)=>{const n=Xr(t);e.slots.default=()=>n},Ha=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=z(t),Bn(t,"_",n)):jo(t,e.slots={})}else e.slots={},t&&Bo(e,t);Bn(e.slots,lr,1)},Va=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=G;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ye(s,t),!n&&l===1&&delete s._):(o=!t.$stable,jo(t,s)),i=t}else t&&(Bo(e,t),i={default:1});if(o)for(const l in s)!No(l)&&!(l in i)&&delete s[l]};function Ho(){return{app:null,config:{isNativeTag:gl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ka=0;function za(e,t){return function(r,s=null){N(r)||(r=Object.assign({},r)),s!=null&&!ue(s)&&(s=null);const o=Ho(),i=new Set;let l=!1;const a=o.app={_uid:Ka++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:uc,get config(){return o.config},set config(f){},use(f,...u){return i.has(f)||(f&&N(f.install)?(i.add(f),f.install(a,...u)):N(f)&&(i.add(f),f(a,...u))),a},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),a},component(f,u){return u?(o.components[f]=u,a):o.components[f]},directive(f,u){return u?(o.directives[f]=u,a):o.directives[f]},mount(f,u,p){if(!l){const m=M(r,s);return m.appContext=o,u&&t?t(m,f):e(m,f,p),l=!0,a._container=f,f.__vue_app__=a,cr(m.component)||m.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(f,u){return o.provides[f]=u,a}};return a}}function Zr(e,t,n,r,s=!1){if(O(e)){e.forEach((m,E)=>Zr(m,t&&(O(t)?t[E]:t),n,r,s));return}if(bn(r)&&!s)return;const o=r.shapeFlag&4?cr(r.component)||r.component.proxy:r.el,i=s?null:o,{i:l,r:a}=e,f=t&&t.r,u=l.refs===G?l.refs={}:l.refs,p=l.setupState;if(f!=null&&f!==a&&(he(f)?(u[f]=null,H(p,f)&&(p[f]=null)):W(f)&&(f.value=null)),N(a))pt(a,l,12,[i,u]);else{const m=he(a),E=W(a);if(m||E){const P=()=>{if(e.f){const U=m?u[a]:a.value;s?O(U)&&Ir(U,o):O(U)?U.includes(o)||U.push(o):m?(u[a]=[o],H(p,a)&&(p[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else m?(u[a]=i,H(p,a)&&(p[a]=i)):E&&(a.value=i,e.k&&(u[e.k]=i))};i?(P.id=-1,Te(P,n)):P()}}}const Te=_a;function qa(e){return Wa(e)}function Wa(e,t){const n=wl();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:a,setText:f,setElementText:u,parentNode:p,nextSibling:m,setScopeId:E=He,cloneNode:P,insertStaticContent:U}=e,D=(c,d,h,_=null,g=null,y=null,C=!1,b=null,w=!!d.dynamicChildren)=>{if(c===d)return;c&&!Ot(c,d)&&(_=wr(c),xt(c,g,y,!0),c=null),d.patchFlag===-2&&(w=!1,d.dynamicChildren=null);const{type:v,ref:A,shapeFlag:T}=d;switch(v){case Gr:L(c,d,h,_);break;case je:ae(c,d,h,_);break;case es:c==null&&q(d,h,_,C);break;case X:oe(c,d,h,_,g,y,C,b,w);break;default:T&1?ke(c,d,h,_,g,y,C,b,w):T&6?ve(c,d,h,_,g,y,C,b,w):(T&64||T&128)&&v.process(c,d,h,_,g,y,C,b,w,nn)}A!=null&&g&&Zr(A,c&&c.ref,y,d||c,!d)},L=(c,d,h,_)=>{if(c==null)r(d.el=l(d.children),h,_);else{const g=d.el=c.el;d.children!==c.children&&f(g,d.children)}},ae=(c,d,h,_)=>{c==null?r(d.el=a(d.children||""),h,_):d.el=c.el},q=(c,d,h,_)=>{[c.el,c.anchor]=U(c.children,d,h,_,c.el,c.anchor)},ee=({el:c,anchor:d},h,_)=>{let g;for(;c&&c!==d;)g=m(c),r(c,h,_),c=g;r(d,h,_)},J=({el:c,anchor:d})=>{let h;for(;c&&c!==d;)h=m(c),s(c),c=h;s(d)},ke=(c,d,h,_,g,y,C,b,w)=>{C=C||d.type==="svg",c==null?Y(d,h,_,g,y,C,b,w):Z(c,d,g,y,C,b,w)},Y=(c,d,h,_,g,y,C,b)=>{let w,v;const{type:A,props:T,shapeFlag:R,transition:F,patchFlag:K,dirs:te}=c;if(c.el&&P!==void 0&&K===-1)w=c.el=P(c.el);else{if(w=c.el=i(c.type,y,T&&T.is,T),R&8?u(w,c.children):R&16&&B(c.children,w,null,_,g,y&&A!=="foreignObject",C,b),te&&Tt(c,null,_,"created"),T){for(const le in T)le!=="value"&&!Fn(le)&&o(w,le,null,T[le],y,c.children,_,g,it);"value"in T&&o(w,"value",null,T.value),(v=T.onVnodeBeforeMount)&&Xe(v,_,c)}$(w,c,c.scopeId,C,_)}te&&Tt(c,null,_,"beforeMount");const ne=(!g||g&&!g.pendingBranch)&&F&&!F.persisted;ne&&F.beforeEnter(w),r(w,d,h),((v=T&&T.onVnodeMounted)||ne||te)&&Te(()=>{v&&Xe(v,_,c),ne&&F.enter(w),te&&Tt(c,null,_,"mounted")},g)},$=(c,d,h,_,g)=>{if(h&&E(c,h),_)for(let y=0;y<_.length;y++)E(c,_[y]);if(g){let y=g.subTree;if(d===y){const C=g.vnode;$(c,C,C.scopeId,C.slotScopeIds,g.parent)}}},B=(c,d,h,_,g,y,C,b,w=0)=>{for(let v=w;v<c.length;v++){const A=c[v]=b?gt(c[v]):Qe(c[v]);D(null,A,d,h,_,g,y,C,b)}},Z=(c,d,h,_,g,y,C)=>{const b=d.el=c.el;let{patchFlag:w,dynamicChildren:v,dirs:A}=d;w|=c.patchFlag&16;const T=c.props||G,R=d.props||G;let F;h&&St(h,!1),(F=R.onVnodeBeforeUpdate)&&Xe(F,h,d,c),A&&Tt(d,c,h,"beforeUpdate"),h&&St(h,!0);const K=g&&d.type!=="foreignObject";if(v?ce(c.dynamicChildren,v,b,h,_,K,y):C||ot(c,d,b,null,h,_,K,y,!1),w>0){if(w&16)S(b,d,T,R,h,_,g);else if(w&2&&T.class!==R.class&&o(b,"class",null,R.class,g),w&4&&o(b,"style",T.style,R.style,g),w&8){const te=d.dynamicProps;for(let ne=0;ne<te.length;ne++){const le=te[ne],qe=T[le],rn=R[le];(rn!==qe||le==="value")&&o(b,le,qe,rn,g,c.children,h,_,it)}}w&1&&c.children!==d.children&&u(b,d.children)}else!C&&v==null&&S(b,d,T,R,h,_,g);((F=R.onVnodeUpdated)||A)&&Te(()=>{F&&Xe(F,h,d,c),A&&Tt(d,c,h,"updated")},_)},ce=(c,d,h,_,g,y,C)=>{for(let b=0;b<d.length;b++){const w=c[b],v=d[b],A=w.el&&(w.type===X||!Ot(w,v)||w.shapeFlag&70)?p(w.el):h;D(w,v,A,null,_,g,y,C,!0)}},S=(c,d,h,_,g,y,C)=>{if(h!==_){for(const b in _){if(Fn(b))continue;const w=_[b],v=h[b];w!==v&&b!=="value"&&o(c,b,v,w,C,d.children,g,y,it)}if(h!==G)for(const b in h)!Fn(b)&&!(b in _)&&o(c,b,h[b],null,C,d.children,g,y,it);"value"in _&&o(c,"value",h.value,_.value)}},oe=(c,d,h,_,g,y,C,b,w)=>{const v=d.el=c?c.el:l(""),A=d.anchor=c?c.anchor:l("");let{patchFlag:T,dynamicChildren:R,slotScopeIds:F}=d;F&&(b=b?b.concat(F):F),c==null?(r(v,h,_),r(A,h,_),B(d.children,h,A,g,y,C,b,w)):T>0&&T&64&&R&&c.dynamicChildren?(ce(c.dynamicChildren,R,h,g,y,C,b),(d.key!=null||g&&d===g.subTree)&&Vo(c,d,!0)):ot(c,d,h,A,g,y,C,b,w)},ve=(c,d,h,_,g,y,C,b,w)=>{d.slotScopeIds=b,c==null?d.shapeFlag&512?g.ctx.activate(d,h,_,C,w):me(d,h,_,g,y,C,w):we(c,d,w)},me=(c,d,h,_,g,y,C)=>{const b=c.component=nc(c,_,g);if(nr(c)&&(b.ctx.renderer=nn),rc(b),b.asyncDep){if(g&&g.registerDep(b,fe),!c.el){const w=b.subTree=M(je);ae(null,w,d,h)}return}fe(b,c,d,h,g,y,C)},we=(c,d,h)=>{const _=d.component=c.component;if(ha(c,d,h))if(_.asyncDep&&!_.asyncResolved){ie(_,d,h);return}else _.next=d,ia(_.update),_.update();else d.el=c.el,_.vnode=d},fe=(c,d,h,_,g,y,C)=>{const b=()=>{if(c.isMounted){let{next:A,bu:T,u:R,parent:F,vnode:K}=c,te=A,ne;St(c,!1),A?(A.el=K.el,ie(c,A,C)):A=K,T&&jn(T),(ne=A.props&&A.props.onVnodeBeforeUpdate)&&Xe(ne,F,A,K),St(c,!0);const le=Vr(c),qe=c.subTree;c.subTree=le,D(qe,le,p(qe.el),wr(qe),c,g,y),A.el=le.el,te===null&&ma(c,le.el),R&&Te(R,g),(ne=A.props&&A.props.onVnodeUpdated)&&Te(()=>Xe(ne,F,A,K),g)}else{let A;const{el:T,props:R}=d,{bm:F,m:K,parent:te}=c,ne=bn(d);if(St(c,!1),F&&jn(F),!ne&&(A=R&&R.onVnodeBeforeMount)&&Xe(A,te,d),St(c,!0),T&&Ss){const le=()=>{c.subTree=Vr(c),Ss(T,c.subTree,c,g,null)};ne?d.type.__asyncLoader().then(()=>!c.isUnmounted&&le()):le()}else{const le=c.subTree=Vr(c);D(null,le,h,_,c,g,y),d.el=le.el}if(K&&Te(K,g),!ne&&(A=R&&R.onVnodeMounted)){const le=d;Te(()=>Xe(A,te,le),g)}(d.shapeFlag&256||te&&bn(te.vnode)&&te.vnode.shapeFlag&256)&&c.a&&Te(c.a,g),c.isMounted=!0,d=h=_=null}},w=c.effect=new Rr(b,()=>ao(v),c.scope),v=c.update=()=>w.run();v.id=c.uid,St(c,!0),v()},ie=(c,d,h)=>{d.component=c;const _=c.vnode.props;c.vnode=d,c.next=null,ja(c,d.props,_,h),Va(c,d.children,h),jt(),Xn(void 0,c.update),Bt()},ot=(c,d,h,_,g,y,C,b,w=!1)=>{const v=c&&c.children,A=c?c.shapeFlag:0,T=d.children,{patchFlag:R,shapeFlag:F}=d;if(R>0){if(R&128){Pn(v,T,h,_,g,y,C,b,w);return}else if(R&256){Ts(v,T,h,_,g,y,C,b,w);return}}F&8?(A&16&&it(v,g,y),T!==v&&u(h,T)):A&16?F&16?Pn(v,T,h,_,g,y,C,b,w):it(v,g,y,!0):(A&8&&u(h,""),F&16&&B(T,h,_,g,y,C,b,w))},Ts=(c,d,h,_,g,y,C,b,w)=>{c=c||Ft,d=d||Ft;const v=c.length,A=d.length,T=Math.min(v,A);let R;for(R=0;R<T;R++){const F=d[R]=w?gt(d[R]):Qe(d[R]);D(c[R],F,h,null,g,y,C,b,w)}v>A?it(c,g,y,!0,!1,T):B(d,h,_,g,y,C,b,w,T)},Pn=(c,d,h,_,g,y,C,b,w)=>{let v=0;const A=d.length;let T=c.length-1,R=A-1;for(;v<=T&&v<=R;){const F=c[v],K=d[v]=w?gt(d[v]):Qe(d[v]);if(Ot(F,K))D(F,K,h,null,g,y,C,b,w);else break;v++}for(;v<=T&&v<=R;){const F=c[T],K=d[R]=w?gt(d[R]):Qe(d[R]);if(Ot(F,K))D(F,K,h,null,g,y,C,b,w);else break;T--,R--}if(v>T){if(v<=R){const F=R+1,K=F<A?d[F].el:_;for(;v<=R;)D(null,d[v]=w?gt(d[v]):Qe(d[v]),h,K,g,y,C,b,w),v++}}else if(v>R)for(;v<=T;)xt(c[v],g,y,!0),v++;else{const F=v,K=v,te=new Map;for(v=K;v<=R;v++){const Me=d[v]=w?gt(d[v]):Qe(d[v]);Me.key!=null&&te.set(Me.key,v)}let ne,le=0;const qe=R-K+1;let rn=!1,il=0;const Dn=new Array(qe);for(v=0;v<qe;v++)Dn[v]=0;for(v=F;v<=T;v++){const Me=c[v];if(le>=qe){xt(Me,g,y,!0);continue}let Ze;if(Me.key!=null)Ze=te.get(Me.key);else for(ne=K;ne<=R;ne++)if(Dn[ne-K]===0&&Ot(Me,d[ne])){Ze=ne;break}Ze===void 0?xt(Me,g,y,!0):(Dn[Ze-K]=v+1,Ze>=il?il=Ze:rn=!0,D(Me,d[Ze],h,null,g,y,C,b,w),le++)}const ll=rn?Ja(Dn):Ft;for(ne=ll.length-1,v=qe-1;v>=0;v--){const Me=K+v,Ze=d[Me],al=Me+1<A?d[Me+1].el:_;Dn[v]===0?D(null,Ze,h,al,g,y,C,b,w):rn&&(ne<0||v!==ll[ne]?tn(Ze,h,al,2):ne--)}}},tn=(c,d,h,_,g=null)=>{const{el:y,type:C,transition:b,children:w,shapeFlag:v}=c;if(v&6){tn(c.component.subTree,d,h,_);return}if(v&128){c.suspense.move(d,h,_);return}if(v&64){C.move(c,d,h,nn);return}if(C===X){r(y,d,h);for(let T=0;T<w.length;T++)tn(w[T],d,h,_);r(c.anchor,d,h);return}if(C===es){ee(c,d,h);return}if(_!==2&&v&1&&b)if(_===0)b.beforeEnter(y),r(y,d,h),Te(()=>b.enter(y),g);else{const{leave:T,delayLeave:R,afterLeave:F}=b,K=()=>r(y,d,h),te=()=>{T(y,()=>{K(),F&&F()})};R?R(y,K,te):te()}else r(y,d,h)},xt=(c,d,h,_=!1,g=!1)=>{const{type:y,props:C,ref:b,children:w,dynamicChildren:v,shapeFlag:A,patchFlag:T,dirs:R}=c;if(b!=null&&Zr(b,null,h,c,!0),A&256){d.ctx.deactivate(c);return}const F=A&1&&R,K=!bn(c);let te;if(K&&(te=C&&C.onVnodeBeforeUnmount)&&Xe(te,d,c),A&6)yp(c.component,h,_);else{if(A&128){c.suspense.unmount(h,_);return}F&&Tt(c,null,d,"beforeUnmount"),A&64?c.type.remove(c,d,h,g,nn,_):v&&(y!==X||T>0&&T&64)?it(v,d,h,!1,!0):(y===X&&T&384||!g&&A&16)&&it(w,d,h),_&&sl(c)}(K&&(te=C&&C.onVnodeUnmounted)||F)&&Te(()=>{te&&Xe(te,d,c),F&&Tt(c,null,d,"unmounted")},h)},sl=c=>{const{type:d,el:h,anchor:_,transition:g}=c;if(d===X){bp(h,_);return}if(d===es){J(c);return}const y=()=>{s(h),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(c.shapeFlag&1&&g&&!g.persisted){const{leave:C,delayLeave:b}=g,w=()=>C(h,y);b?b(c.el,y,w):w()}else y()},bp=(c,d)=>{let h;for(;c!==d;)h=m(c),s(c),c=h;s(d)},yp=(c,d,h)=>{const{bum:_,scope:g,update:y,subTree:C,um:b}=c;_&&jn(_),g.stop(),y&&(y.active=!1,xt(C,c,d,h)),b&&Te(b,d),Te(()=>{c.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},it=(c,d,h,_=!1,g=!1,y=0)=>{for(let C=y;C<c.length;C++)xt(c[C],d,h,_,g)},wr=c=>c.shapeFlag&6?wr(c.component.subTree):c.shapeFlag&128?c.suspense.next():m(c.anchor||c.el),ol=(c,d,h)=>{c==null?d._vnode&&xt(d._vnode,null,null,!0):D(d._vnode||null,c,d,null,null,null,h),fo(),d._vnode=c},nn={p:D,um:xt,m:tn,r:sl,mt:me,mc:B,pc:ot,pbc:ce,n:wr,o:e};let $s,Ss;return t&&([$s,Ss]=t(nn)),{render:ol,hydrate:$s,createApp:za(ol,$s)}}function St({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Vo(e,t,n=!1){const r=e.children,s=t.children;if(O(r)&&O(s))for(let o=0;o<r.length;o++){const i=r[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=gt(s[o]),l.el=i.el),n||Vo(i,l))}}function Ja(e){const t=e.slice(),n=[0];let r,s,o,i,l;const a=e.length;for(r=0;r<a;r++){const f=e[r];if(f!==0){if(s=n[n.length-1],e[s]<f){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<f?o=l+1:i=l;f<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const Ya=e=>e.__isTeleport,X=Symbol(void 0),Gr=Symbol(void 0),je=Symbol(void 0),es=Symbol(void 0),xn=[];let Ke=null;function x(e=!1){xn.push(Ke=e?null:[])}function Qa(){xn.pop(),Ke=xn[xn.length-1]||null}let wn=1;function Ko(e){wn+=e}function zo(e){return e.dynamicChildren=wn>0?Ke||Ft:null,Qa(),wn>0&&Ke&&Ke.push(e),e}function k(e,t,n,r,s,o){return zo(I(e,t,n,r,s,o,!0))}function se(e,t,n,r,s){return zo(M(e,t,n,r,s,!0))}function ir(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}const lr="__vInternal",qo=({key:e})=>e!=null?e:null,ar=({ref:e,ref_key:t,ref_for:n})=>e!=null?he(e)||W(e)||N(e)?{i:Ee,r:e,k:t,f:!!n}:e:null;function I(e,t=null,n=null,r=0,s=null,o=e===X?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qo(t),ref:t&&ar(t),scopeId:Gn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};return l?(ts(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=he(n)?8:16),wn>0&&!i&&Ke&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ke.push(a),a}const M=Xa;function Xa(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===To)&&(e=je),ir(e)){const l=mt(e,t,!0);return n&&ts(l,n),wn>0&&!o&&Ke&&(l.shapeFlag&6?Ke[Ke.indexOf(e)]=l:Ke.push(l)),l.patchFlag|=-2,l}if(ac(e)&&(e=e.__vccOpts),t){t=Za(t);let{class:l,style:a}=t;l&&!he(l)&&(t.class=at(l)),ue(a)&&(no(a)&&!O(a)&&(a=ye({},a)),t.style=wt(a))}const i=he(e)?1:ga(e)?128:Ya(e)?64:ue(e)?4:N(e)?2:0;return I(e,t,n,r,s,i,o,!0)}function Za(e){return e?no(e)||lr in e?ye({},e):e:null}function mt(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,l=t?Ga(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qo(l),ref:t&&t.ref?n&&s?O(s)?s.concat(ar(t)):[s,ar(t)]:ar(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==X?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mt(e.ssContent),ssFallback:e.ssFallback&&mt(e.ssFallback),el:e.el,anchor:e.anchor}}function $e(e=" ",t=0){return M(Gr,null,e,t)}function Se(e="",t=!1){return t?(x(),se(je,null,e)):M(je,null,e)}function Qe(e){return e==null||typeof e=="boolean"?M(je):O(e)?M(X,null,e.slice()):typeof e=="object"?gt(e):M(Gr,null,String(e))}function gt(e){return e.el===null||e.memo?e:mt(e)}function ts(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(O(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),ts(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(lr in t)?t._ctx=Ee:s===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else N(t)?(t={default:t,_ctx:Ee},n=32):(t=String(t),r&64?(n=16,t=[$e(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ga(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=at([t.class,r.class]));else if(s==="style")t.style=wt([t.style,r.style]);else if(Mn(s)){const o=t[s],i=r[s];i&&o!==i&&!(O(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function Xe(e,t,n,r=null){Fe(e,t,7,[n,r])}const ec=Ho();let tc=0;function nc(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ec,o={uid:tc++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ms(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Po(r,s),emitsOptions:ho(r,s),emit:null,emitted:null,propsDefaults:G,inheritAttrs:r.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ca.bind(null,o),e.ce&&e.ce(o),o}let ge=null;const ns=()=>ge||Ee,qt=e=>{ge=e,e.scope.on()},kt=()=>{ge&&ge.scope.off(),ge=null};function Wo(e){return e.vnode.shapeFlag&4}let En=!1;function rc(e,t=!1){En=t;const{props:n,children:r}=e.vnode,s=Wo(e);Na(e,n,s,t),Ha(e,r);const o=s?sc(e,t):void 0;return En=!1,o}function sc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ht(new Proxy(e.ctx,La));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?ic(e):null;qt(e),jt();const o=pt(r,e,0,[e.props,s]);if(Bt(),kt(),Rs(o)){if(o.then(kt,kt),t)return o.then(i=>{Jo(e,i,t)}).catch(i=>{Yn(i,e,0)});e.asyncDep=o}else Jo(e,o,t)}else Qo(e,t)}function Jo(e,t,n){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=oo(t)),Qo(e,n)}let Yo;function Qo(e,t,n){const r=e.type;if(!e.render){if(!t&&Yo&&!r.render){const s=r.template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,f=ye(ye({isCustomElement:o,delimiters:l},i),a);r.render=Yo(s,f)}}e.render=r.render||He}qt(e),jt(),Pa(e),Bt(),kt()}function oc(e){return new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}})}function ic(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=oc(e))},slots:e.slots,emit:e.emit,expose:t}}function cr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(oo(Ht(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sr)return sr[n](e)}}))}function lc(e,t=!0){return N(e)?e.displayName||e.name:e.name||t&&e.__name}function ac(e){return N(e)&&"__vccOpts"in e}const de=(e,t)=>ra(e,t,En);function cc(e,t,n){const r=arguments.length;return r===2?ue(t)&&!O(t)?ir(t)?M(e,null,[t]):M(e,t):M(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ir(n)&&(n=[n]),M(e,t,n))}const uc="3.2.37",fc="http://www.w3.org/2000/svg",At=typeof document!="undefined"?document:null,Xo=At&&At.createElement("template"),dc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?At.createElementNS(fc,e):At.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Xo.innerHTML=r?`<svg>${e}</svg>`:e;const l=Xo.content;if(r){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function pc(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function hc(e,t,n){const r=e.style,s=he(n);if(n&&!s){for(const o in n)rs(r,o,n[o]);if(t&&!he(t))for(const o in t)n[o]==null&&rs(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Zo=/\s*!important$/;function rs(e,t,n){if(O(n))n.forEach(r=>rs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=mc(e,t);Zo.test(n)?e.setProperty(Et(r),n.replace(Zo,""),"important"):e[r]=n}}const Go=["Webkit","Moz","ms"],ss={};function mc(e,t){const n=ss[t];if(n)return n;let r=We(t);if(r!=="filter"&&r in e)return ss[t]=r;r=Nn(r);for(let s=0;s<Go.length;s++){const o=Go[s]+r;if(o in e)return ss[t]=o}return t}const ei="http://www.w3.org/1999/xlink";function gc(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ei,t.slice(6,t.length)):e.setAttributeNS(ei,t,n);else{const o=fl(t);n==null||o&&!Os(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function _c(e,t,n,r,s,o,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,s,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const a=n==null?"":n;(e.value!==a||e.tagName==="OPTION")&&(e.value=a),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Os(n):n==null&&a==="string"?(n="",l=!0):a==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}const[ti,vc]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let os=0;const bc=Promise.resolve(),yc=()=>{os=0},xc=()=>os||(bc.then(yc),os=ti());function _t(e,t,n,r){e.addEventListener(t,n,r)}function wc(e,t,n,r){e.removeEventListener(t,n,r)}function Ec(e,t,n,r,s=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[l,a]=Cc(t);if(r){const f=o[t]=Ic(r,s);_t(e,l,f,a)}else i&&(wc(e,l,i,a),o[t]=void 0)}}const ni=/(?:Once|Passive|Capture)$/;function Cc(e){let t;if(ni.test(e)){t={};let n;for(;n=e.match(ni);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Et(e.slice(2)),t]}function Ic(e,t){const n=r=>{const s=r.timeStamp||ti();(vc||s>=n.attached-1)&&Fe(Tc(r,n.value),t,5,[r])};return n.value=e,n.attached=xc(),n}function Tc(e,t){if(O(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const ri=/^on[a-z]/,$c=(e,t,n,r,s=!1,o,i,l,a)=>{t==="class"?pc(e,r,s):t==="style"?hc(e,n,r):Mn(t)?Cr(t)||Ec(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sc(e,t,r,s))?_c(e,t,r,o,i,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),gc(e,t,r,s))};function Sc(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&ri.test(t)&&N(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ri.test(t)&&he(n)?!1:t in e}const vt="transition",Cn="animation",ur=(e,{slots:t})=>cc(bo,Oc(e),t);ur.displayName="Transition";const si={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ur.props=ye({},bo.props,si);const Rt=(e,t=[])=>{O(e)?e.forEach(n=>n(...t)):e&&e(...t)},oi=e=>e?O(e)?e.some(t=>t.length>1):e.length>1:!1;function Oc(e){const t={};for(const S in e)S in si||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:f=i,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:E=`${n}-leave-to`}=e,P=kc(s),U=P&&P[0],D=P&&P[1],{onBeforeEnter:L,onEnter:ae,onEnterCancelled:q,onLeave:ee,onLeaveCancelled:J,onBeforeAppear:ke=L,onAppear:Y=ae,onAppearCancelled:$=q}=t,B=(S,oe,ve)=>{Lt(S,oe?u:l),Lt(S,oe?f:i),ve&&ve()},Z=(S,oe)=>{S._isLeaving=!1,Lt(S,p),Lt(S,E),Lt(S,m),oe&&oe()},ce=S=>(oe,ve)=>{const me=S?Y:ae,we=()=>B(oe,S,ve);Rt(me,[oe,we]),ii(()=>{Lt(oe,S?a:o),bt(oe,S?u:l),oi(me)||li(oe,r,U,we)})};return ye(t,{onBeforeEnter(S){Rt(L,[S]),bt(S,o),bt(S,i)},onBeforeAppear(S){Rt(ke,[S]),bt(S,a),bt(S,f)},onEnter:ce(!1),onAppear:ce(!0),onLeave(S,oe){S._isLeaving=!0;const ve=()=>Z(S,oe);bt(S,p),Lc(),bt(S,m),ii(()=>{!S._isLeaving||(Lt(S,p),bt(S,E),oi(ee)||li(S,r,D,ve))}),Rt(ee,[S,ve])},onEnterCancelled(S){B(S,!1),Rt(q,[S])},onAppearCancelled(S){B(S,!0),Rt($,[S])},onLeaveCancelled(S){Z(S),Rt(J,[S])}})}function kc(e){if(e==null)return null;if(ue(e))return[is(e.enter),is(e.leave)];{const t=is(e);return[t,t]}}function is(e){return un(e)}function bt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Lt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ii(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ac=0;function li(e,t,n,r){const s=e._endId=++Ac,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:a}=Rc(e,t);if(!i)return r();const f=i+"end";let u=0;const p=()=>{e.removeEventListener(f,m),o()},m=E=>{E.target===e&&++u>=a&&p()};setTimeout(()=>{u<a&&p()},l+1),e.addEventListener(f,m)}function Rc(e,t){const n=window.getComputedStyle(e),r=P=>(n[P]||"").split(", "),s=r(vt+"Delay"),o=r(vt+"Duration"),i=ai(s,o),l=r(Cn+"Delay"),a=r(Cn+"Duration"),f=ai(l,a);let u=null,p=0,m=0;t===vt?i>0&&(u=vt,p=i,m=o.length):t===Cn?f>0&&(u=Cn,p=f,m=a.length):(p=Math.max(i,f),u=p>0?i>f?vt:Cn:null,m=u?u===vt?o.length:a.length:0);const E=u===vt&&/\b(transform|all)(,|$)/.test(n[vt+"Property"]);return{type:u,timeout:p,propCount:m,hasTransform:E}}function ai(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>ci(n)+ci(e[r])))}function ci(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Lc(){return document.body.offsetHeight}const Wt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return O(t)?n=>jn(t,n):t};function Pc(e){e.target.composing=!0}function ui(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const fi={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=Wt(s);const o=r||s.props&&s.props.type==="number";_t(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=un(l)),e._assign(l)}),n&&_t(e,"change",()=>{e.value=e.value.trim()}),t||(_t(e,"compositionstart",Pc),_t(e,"compositionend",ui),_t(e,"change",ui))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e._assign=Wt(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&un(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},In={deep:!0,created(e,t,n){e._assign=Wt(n),_t(e,"change",()=>{const r=e._modelValue,s=$n(e),o=e.checked,i=e._assign;if(O(r)){const l=Er(r,s),a=l!==-1;if(o&&!a)i(r.concat(s));else if(!o&&a){const f=[...r];f.splice(l,1),i(f)}}else if(Nt(r)){const l=new Set(r);o?l.add(s):l.delete(s),i(l)}else i(hi(e,o))})},mounted:di,beforeUpdate(e,t,n){e._assign=Wt(n),di(e,t,n)}};function di(e,{value:t,oldValue:n},r){e._modelValue=t,O(t)?e.checked=Er(t,r.props.value)>-1:Nt(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=on(t,hi(e,!0)))}const Tn={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Nt(t);_t(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?un($n(i)):$n(i));e._assign(e.multiple?s?new Set(o):o:o[0])}),e._assign=Wt(r)},mounted(e,{value:t}){pi(e,t)},beforeUpdate(e,t,n){e._assign=Wt(n)},updated(e,{value:t}){pi(e,t)}};function pi(e,t){const n=e.multiple;if(!(n&&!O(t)&&!Nt(t))){for(let r=0,s=e.options.length;r<s;r++){const o=e.options[r],i=$n(o);if(n)O(t)?o.selected=Er(t,i)>-1:o.selected=t.has(i);else if(on($n(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function $n(e){return"_value"in e?e._value:e.value}function hi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Dc=["ctrl","shift","alt","meta"],Mc={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)=>Dc.some(n=>e[`${n}Key`]&&!t.includes(n))},Fc=(e,t)=>(n,...r)=>{for(let s=0;s<t.length;s++){const o=Mc[t[s]];if(o&&o(n,t))return}return e(n,...r)},Uc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},mi=(e,t)=>n=>{if(!("key"in n))return;const r=Et(n.key);if(t.some(s=>s===r||Uc[s]===r))return e(n)},Nc=ye({patchProp:$c},dc);let gi;function jc(){return gi||(gi=qa(Nc))}const Bc=(...e)=>{const t=jc().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Hc(r);if(!s)return;const o=t._component;!N(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function Hc(e){return he(e)?document.querySelector(e):e}var Vc=!1;/*!
|
|
2
|
-
|
|
3
|
-
* (c) 2022 Eduardo San Martin Morote
|
|
4
|
-
|
|
5
|
-
*/let _i;const fr=e=>_i=e,vi=Symbol();function ls(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Sn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Sn||(Sn={}));function Kc(){const e=Fs(!0),t=e.run(()=>Re({}));let n=[],r=[];const s=Ht({install(o){fr(s),s._a=o,o.provide(vi,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!Vc?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const bi=()=>{};function yi(e,t,n,r=bi){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&ns()&&zt(s),s}function Jt(e,...t){e.slice().forEach(n=>{n(...t)})}function as(e,t){for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];ls(s)&&ls(r)&&e.hasOwnProperty(n)&&!W(r)&&!dt(r)?e[n]=as(s,r):e[n]=r}return e}const zc=Symbol();function qc(e){return!ls(e)||!e.hasOwnProperty(zc)}const{assign:nt}=Object;function Wc(e){return!!(W(e)&&e.effect)}function Jc(e,t,n,r){const{state:s,actions:o,getters:i}=t,l=n.state.value[e];let a;function f(){l||(n.state.value[e]=s?s():{});const u=Gl(n.state.value[e]);return nt(u,o,Object.keys(i||{}).reduce((p,m)=>(p[m]=Ht(de(()=>{fr(n);const E=n._s.get(e);return i[m].call(E,E)})),p),{}))}return a=xi(e,f,t,n,r,!0),a.$reset=function(){const p=s?s():{};this.$patch(m=>{nt(m,p)})},a}function xi(e,t,n={},r,s,o){let i;const l=nt({actions:{}},n),a={deep:!0};let f,u,p=Ht([]),m=Ht([]),E;const P=r.state.value[e];!o&&!P&&(r.state.value[e]={}),Re({});let U;function D(Y){let $;f=u=!1,typeof Y=="function"?(Y(r.state.value[e]),$={type:Sn.patchFunction,storeId:e,events:E}):(as(r.state.value[e],Y),$={type:Sn.patchObject,payload:Y,storeId:e,events:E});const B=U=Symbol();lo().then(()=>{U===B&&(f=!0)}),u=!0,Jt(p,$,r.state.value[e])}const L=bi;function ae(){i.stop(),p=[],m=[],r._s.delete(e)}function q(Y,$){return function(){fr(r);const B=Array.from(arguments),Z=[],ce=[];function S(me){Z.push(me)}function oe(me){ce.push(me)}Jt(m,{args:B,name:Y,store:J,after:S,onError:oe});let ve;try{ve=$.apply(this&&this.$id===e?this:J,B)}catch(me){throw Jt(ce,me),me}return ve instanceof Promise?ve.then(me=>(Jt(Z,me),me)).catch(me=>(Jt(ce,me),Promise.reject(me))):(Jt(Z,ve),ve)}}const ee={_p:r,$id:e,$onAction:yi.bind(null,m),$patch:D,$reset:L,$subscribe(Y,$={}){const B=yi(p,Y,$.detached,()=>Z()),Z=i.run(()=>vn(()=>r.state.value[e],ce=>{($.flush==="sync"?u:f)&&Y({storeId:e,type:Sn.direct,events:E},ce)},nt({},a,$)));return B},$dispose:ae},J=Jn(nt({},ee));r._s.set(e,J);const ke=r._e.run(()=>(i=Fs(),i.run(()=>t())));for(const Y in ke){const $=ke[Y];if(W($)&&!Wc($)||dt($))o||(P&&qc($)&&(W($)?$.value=P[Y]:as($,P[Y])),r.state.value[e][Y]=$);else if(typeof $=="function"){const B=q(Y,$);ke[Y]=B,l.actions[Y]=$}}return nt(J,ke),nt(z(J),ke),Object.defineProperty(J,"$state",{get:()=>r.state.value[e],set:Y=>{D($=>{nt($,Y)})}}),r._p.forEach(Y=>{nt(J,i.run(()=>Y({store:J,app:r._a,pinia:r,options:l})))}),P&&o&&n.hydrate&&n.hydrate(J.$state,P),f=!0,u=!0,J}function cs(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function i(l,a){const f=ns();return l=l||f&&tr(vi),l&&fr(l),l=_i,l._s.has(r)||(o?xi(r,t,s,l):Jc(r,s,l)),l._s.get(r)}return i.$id=r,i}var us={exports:{}},wi=function(t,n){return function(){for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];return t.apply(n,s)}},Yc=wi,fs=Object.prototype.toString,ds=function(e){return function(t){var n=fs.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function Pt(e){return e=e.toLowerCase(),function(n){return ds(n)===e}}function ps(e){return Array.isArray(e)}function dr(e){return typeof e=="undefined"}function Qc(e){return e!==null&&!dr(e)&&e.constructor!==null&&!dr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Ei=Pt("ArrayBuffer");function Xc(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ei(e.buffer),t}function Zc(e){return typeof e=="string"}function Gc(e){return typeof e=="number"}function Ci(e){return e!==null&&typeof e=="object"}function pr(e){if(ds(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var eu=Pt("Date"),tu=Pt("File"),nu=Pt("Blob"),ru=Pt("FileList");function hs(e){return fs.call(e)==="[object Function]"}function su(e){return Ci(e)&&hs(e.pipe)}function ou(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||fs.call(e)===t||hs(e.toString)&&e.toString()===t)}var iu=Pt("URLSearchParams");function lu(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function au(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function ms(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),ps(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}function gs(){var e={};function t(s,o){pr(e[o])&&pr(s)?e[o]=gs(e[o],s):pr(s)?e[o]=gs({},s):ps(s)?e[o]=s.slice():e[o]=s}for(var n=0,r=arguments.length;n<r;n++)ms(arguments[n],t);return e}function cu(e,t,n){return ms(t,function(s,o){n&&typeof s=="function"?e[o]=Yc(s,n):e[o]=s}),e}function uu(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function fu(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function du(e,t,n){var r,s,o,i={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)o=r[s],i[o]||(t[o]=e[o],i[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function pu(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function hu(e){if(!e)return null;var t=e.length;if(dr(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var mu=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),xe={isArray:ps,isArrayBuffer:Ei,isBuffer:Qc,isFormData:ou,isArrayBufferView:Xc,isString:Zc,isNumber:Gc,isObject:Ci,isPlainObject:pr,isUndefined:dr,isDate:eu,isFile:tu,isBlob:nu,isFunction:hs,isStream:su,isURLSearchParams:iu,isStandardBrowserEnv:au,forEach:ms,merge:gs,extend:cu,trim:lu,stripBOM:uu,inherits:fu,toFlatObject:du,kindOf:ds,kindOfTest:Pt,endsWith:pu,toArray:hu,isTypedArray:mu,isFileList:ru},Yt=xe;function Ii(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ti=function(t,n,r){if(!n)return t;var s;if(r)s=r(n);else if(Yt.isURLSearchParams(n))s=n.toString();else{var o=[];Yt.forEach(n,function(a,f){a===null||typeof a=="undefined"||(Yt.isArray(a)?f=f+"[]":a=[a],Yt.forEach(a,function(p){Yt.isDate(p)?p=p.toISOString():Yt.isObject(p)&&(p=JSON.stringify(p)),o.push(Ii(f)+"="+Ii(p))}))}),s=o.join("&")}if(s){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t},gu=xe;function hr(){this.handlers=[]}hr.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1},hr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},hr.prototype.forEach=function(t){gu.forEach(this.handlers,function(r){r!==null&&t(r)})};var _u=hr,vu=xe,bu=function(t,n){vu.forEach(t,function(s,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=s,delete t[o])})},$i=xe;function Qt(e,t,n,r,s){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}$i.inherits(Qt,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Si=Qt.prototype,Oi={};["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"].forEach(function(e){Oi[e]={value:e}}),Object.defineProperties(Qt,Oi),Object.defineProperty(Si,"isAxiosError",{value:!0}),Qt.from=function(e,t,n,r,s,o){var i=Object.create(Si);return $i.toFlatObject(e,i,function(a){return a!==Error.prototype}),Qt.call(i,e.message,t,n,r,s),i.name=e.name,o&&Object.assign(i,o),i};var Xt=Qt,ki={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ze=xe;function yu(e,t){t=t||new FormData;var n=[];function r(o){return o===null?"":ze.isDate(o)?o.toISOString():ze.isArrayBuffer(o)||ze.isTypedArray(o)?typeof Blob=="function"?new Blob([o]):Buffer.from(o):o}function s(o,i){if(ze.isPlainObject(o)||ze.isArray(o)){if(n.indexOf(o)!==-1)throw Error("Circular reference detected in "+i);n.push(o),ze.forEach(o,function(a,f){if(!ze.isUndefined(a)){var u=i?i+"."+f:f,p;if(a&&!i&&typeof a=="object"){if(ze.endsWith(f,"{}"))a=JSON.stringify(a);else if(ze.endsWith(f,"[]")&&(p=ze.toArray(a))){p.forEach(function(m){!ze.isUndefined(m)&&t.append(u,r(m))});return}}s(a,u)}}),n.pop()}else t.append(i,r(o))}return s(e),t}var Ai=yu,_s=Xt,xu=function(t,n,r){var s=r.config.validateStatus;!r.status||!s||s(r.status)?t(r):n(new _s("Request failed with status code "+r.status,[_s.ERR_BAD_REQUEST,_s.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))},mr=xe,wu=mr.isStandardBrowserEnv()?function(){return{write:function(n,r,s,o,i,l){var a=[];a.push(n+"="+encodeURIComponent(r)),mr.isNumber(s)&&a.push("expires="+new Date(s).toGMTString()),mr.isString(o)&&a.push("path="+o),mr.isString(i)&&a.push("domain="+i),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){var r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Eu=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},Cu=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},Iu=Eu,Tu=Cu,Ri=function(t,n){return t&&!Iu(n)?Tu(t,n):n},vs=xe,$u=["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"],Su=function(t){var n={},r,s,o;return t&&vs.forEach(t.split(`
|
|
6
|
-
`),function(l){if(o=l.indexOf(":"),r=vs.trim(l.substr(0,o)).toLowerCase(),s=vs.trim(l.substr(o+1)),r){if(n[r]&&$u.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([s]):n[r]=n[r]?n[r]+", "+s:s}}),n},Li=xe,Ou=Li.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function s(o){var i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){var l=Li.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),bs=Xt,ku=xe;function Pi(e){bs.call(this,e==null?"canceled":e,bs.ERR_CANCELED),this.name="CanceledError"}ku.inherits(Pi,bs,{__CANCEL__:!0});var gr=Pi,Au=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""},On=xe,Ru=xu,Lu=wu,Pu=Ti,Du=Ri,Mu=Su,Fu=Ou,Uu=ki,rt=Xt,Nu=gr,ju=Au,Di=function(t){return new Promise(function(r,s){var o=t.data,i=t.headers,l=t.responseType,a;function f(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}On.isFormData(o)&&On.isStandardBrowserEnv()&&delete i["Content-Type"];var u=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(p+":"+m)}var E=Du(t.baseURL,t.url);u.open(t.method.toUpperCase(),Pu(E,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function P(){if(!!u){var L="getAllResponseHeaders"in u?Mu(u.getAllResponseHeaders()):null,ae=!l||l==="text"||l==="json"?u.responseText:u.response,q={data:ae,status:u.status,statusText:u.statusText,headers:L,config:t,request:u};Ru(function(J){r(J),f()},function(J){s(J),f()},q),u=null}}if("onloadend"in u?u.onloadend=P:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(P)},u.onabort=function(){!u||(s(new rt("Request aborted",rt.ECONNABORTED,t,u)),u=null)},u.onerror=function(){s(new rt("Network Error",rt.ERR_NETWORK,t,u,u)),u=null},u.ontimeout=function(){var ae=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",q=t.transitional||Uu;t.timeoutErrorMessage&&(ae=t.timeoutErrorMessage),s(new rt(ae,q.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,t,u)),u=null},On.isStandardBrowserEnv()){var U=(t.withCredentials||Fu(E))&&t.xsrfCookieName?Lu.read(t.xsrfCookieName):void 0;U&&(i[t.xsrfHeaderName]=U)}"setRequestHeader"in u&&On.forEach(i,function(ae,q){typeof o=="undefined"&&q.toLowerCase()==="content-type"?delete i[q]:u.setRequestHeader(q,ae)}),On.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),l&&l!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(a=function(L){!u||(s(!L||L&&L.type?new Nu:L),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a))),o||(o=null);var D=ju(E);if(D&&["http","https","file"].indexOf(D)===-1){s(new rt("Unsupported protocol "+D+":",rt.ERR_BAD_REQUEST,t));return}u.send(o)})},Bu=null,_e=xe,Mi=bu,Fi=Xt,Hu=ki,Vu=Ai,Ku={"Content-Type":"application/x-www-form-urlencoded"};function Ui(e,t){!_e.isUndefined(e)&&_e.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function zu(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Di),e}function qu(e,t,n){if(_e.isString(e))try{return(t||JSON.parse)(e),_e.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var _r={transitional:Hu,adapter:zu(),transformRequest:[function(t,n){if(Mi(n,"Accept"),Mi(n,"Content-Type"),_e.isFormData(t)||_e.isArrayBuffer(t)||_e.isBuffer(t)||_e.isStream(t)||_e.isFile(t)||_e.isBlob(t))return t;if(_e.isArrayBufferView(t))return t.buffer;if(_e.isURLSearchParams(t))return Ui(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=_e.isObject(t),s=n&&n["Content-Type"],o;if((o=_e.isFileList(t))||r&&s==="multipart/form-data"){var i=this.env&&this.env.FormData;return Vu(o?{"files[]":t}:t,i&&new i)}else if(r||s==="application/json")return Ui(n,"application/json"),qu(t);return t}],transformResponse:[function(t){var n=this.transitional||_r.transitional,r=n&&n.silentJSONParsing,s=n&&n.forcedJSONParsing,o=!r&&this.responseType==="json";if(o||s&&_e.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?Fi.from(i,Fi.ERR_BAD_RESPONSE,this,null,this.response):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bu},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_e.forEach(["delete","get","head"],function(t){_r.headers[t]={}}),_e.forEach(["post","put","patch"],function(t){_r.headers[t]=_e.merge(Ku)});var ys=_r,Wu=xe,Ju=ys,Yu=function(t,n,r){var s=this||Ju;return Wu.forEach(r,function(i){t=i.call(s,t,n)}),t},Ni=function(t){return!!(t&&t.__CANCEL__)},ji=xe,xs=Yu,Qu=Ni,Xu=ys,Zu=gr;function ws(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zu}var Gu=function(t){ws(t),t.headers=t.headers||{},t.data=xs.call(t,t.data,t.headers,t.transformRequest),t.headers=ji.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),ji.forEach(["delete","get","head","post","put","patch","common"],function(s){delete t.headers[s]});var n=t.adapter||Xu.adapter;return n(t).then(function(s){return ws(t),s.data=xs.call(t,s.data,s.headers,t.transformResponse),s},function(s){return Qu(s)||(ws(t),s&&s.response&&(s.response.data=xs.call(t,s.response.data,s.response.headers,t.transformResponse))),Promise.reject(s)})},De=xe,Bi=function(t,n){n=n||{};var r={};function s(u,p){return De.isPlainObject(u)&&De.isPlainObject(p)?De.merge(u,p):De.isPlainObject(p)?De.merge({},p):De.isArray(p)?p.slice():p}function o(u){if(De.isUndefined(n[u])){if(!De.isUndefined(t[u]))return s(void 0,t[u])}else return s(t[u],n[u])}function i(u){if(!De.isUndefined(n[u]))return s(void 0,n[u])}function l(u){if(De.isUndefined(n[u])){if(!De.isUndefined(t[u]))return s(void 0,t[u])}else return s(void 0,n[u])}function a(u){if(u in n)return s(t[u],n[u]);if(u in t)return s(void 0,t[u])}var f={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a};return De.forEach(Object.keys(t).concat(Object.keys(n)),function(p){var m=f[p]||o,E=m(p);De.isUndefined(E)&&m!==a||(r[p]=E)}),r},Hi={version:"0.27.2"},ef=Hi.version,yt=Xt,Es={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Es[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Vi={};Es.transitional=function(t,n,r){function s(o,i){return"[Axios v"+ef+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return function(o,i,l){if(t===!1)throw new yt(s(i," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!Vi[i]&&(Vi[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function tf(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),s=r.length;s-- >0;){var o=r[s],i=t[o];if(i){var l=e[o],a=l===void 0||i(l,o,e);if(a!==!0)throw new yt("option "+o+" must be "+a,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+o,yt.ERR_BAD_OPTION)}}var nf={assertOptions:tf,validators:Es},Ki=xe,rf=Ti,zi=_u,qi=Gu,vr=Bi,sf=Ri,Wi=nf,Zt=Wi.validators;function Gt(e){this.defaults=e,this.interceptors={request:new zi,response:new zi}}Gt.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=vr(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&Wi.assertOptions(r,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean)},!1);var s=[],o=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(o=o&&E.synchronous,s.unshift(E.fulfilled,E.rejected))});var i=[];this.interceptors.response.forEach(function(E){i.push(E.fulfilled,E.rejected)});var l;if(!o){var a=[qi,void 0];for(Array.prototype.unshift.apply(a,s),a=a.concat(i),l=Promise.resolve(n);a.length;)l=l.then(a.shift(),a.shift());return l}for(var f=n;s.length;){var u=s.shift(),p=s.shift();try{f=u(f)}catch(m){p(m);break}}try{l=qi(f)}catch(m){return Promise.reject(m)}for(;i.length;)l=l.then(i.shift(),i.shift());return l},Gt.prototype.getUri=function(t){t=vr(this.defaults,t);var n=sf(t.baseURL,t.url);return rf(n,t.params,t.paramsSerializer)},Ki.forEach(["delete","get","head","options"],function(t){Gt.prototype[t]=function(n,r){return this.request(vr(r||{},{method:t,url:n,data:(r||{}).data}))}}),Ki.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(vr(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Gt.prototype[t]=n(),Gt.prototype[t+"Form"]=n(!0)});var of=Gt,lf=gr;function en(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(s){t=s});var n=this;this.promise.then(function(r){if(!!n._listeners){var s,o=n._listeners.length;for(s=0;s<o;s++)n._listeners[s](r);n._listeners=null}}),this.promise.then=function(r){var s,o=new Promise(function(i){n.subscribe(i),s=i}).then(r);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s){n.reason||(n.reason=new lf(s),t(n.reason))})}en.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},en.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]},en.prototype.unsubscribe=function(t){if(!!this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}},en.source=function(){var t,n=new en(function(s){t=s});return{token:n,cancel:t}};var af=en,cf=function(t){return function(r){return t.apply(null,r)}},uf=xe,ff=function(t){return uf.isObject(t)&&t.isAxiosError===!0},Ji=xe,df=wi,br=of,pf=Bi,hf=ys;function Yi(e){var t=new br(e),n=df(br.prototype.request,t);return Ji.extend(n,br.prototype,t),Ji.extend(n,t),n.create=function(s){return Yi(pf(e,s))},n}var Oe=Yi(hf);Oe.Axios=br,Oe.CanceledError=gr,Oe.CancelToken=af,Oe.isCancel=Ni,Oe.VERSION=Hi.version,Oe.toFormData=Ai,Oe.AxiosError=Xt,Oe.Cancel=Oe.CanceledError,Oe.all=function(t){return Promise.all(t)},Oe.spread=cf,Oe.isAxiosError=ff,us.exports=Oe,us.exports.default=Oe;var mf=us.exports;const Qi=(e={})=>{const t=Dt(),{baseURL:n,projectId:r,projectToken:s,userToken:o,csrfToken:i}=t.getAPIConfig,l=lt({baseURL:n,params:{project_id:r,project_token:s,token:o}},e);return(!s||!(r&&o)&&i)&&Object.assign(l,{headers:{"X-CSRF-Token":i}}),mf.create(lt({},l))};class gf{static key(t,n){return Qi().get(`/observation_matrices/${t}/key`,n)}}const _f=e=>({characterStateId:e.id,depictionIds:e.depiction_ids,label:e.label,name:e.name,numberOfObjects:e.number_of_objects,position:e.position,status:e.status}),vf=e=>({depictionId:e.id,caption:e.caption,figureLabel:e.figure_label,imageUrl:e.image.medium}),kn={Qualitative:"Descriptor::Qualitative",Continuous:"Descriptor::Continuous",Sample:"Descriptor::Sample",Presence:"Descriptor::PresenceAbsence"},An=e=>({descriptorId:e.id,name:e.name,description:e.description,position:e.position,status:e.status,type:e.type,depictionIds:e.depiction_ids,usefulness:e.usefulness,weight:e.weight}),bf=e=>sn(lt({},An(e)),{defaultUnit:e.default_unit,max:e.max,min:e.min}),yf=e=>sn(lt({},An(e)),{defaultUnit:e.default_unit,max:e.max,min:e.min}),xf=e=>sn(lt({},An(e)),{presence:e.precense}),wf=e=>sn(lt({},An(e)),{characterStates:e.states.map(t=>_f(t))}),Ef=e=>{switch(e.type){case kn.Continuous:return bf(e);case kn.Sample:return yf(e);case kn.PresenceAbsence:return xf(e);case kn.Qualitative:return wf(e);default:return An(e)}},Cf=e=>({observationMatrixId:e.observation_matrix_id,name:e.observation_matrix.name,globalId:e.observation_matrix.global_id}),Xi=e=>({errorDescriptors:e.error_descriptors,errors:e.errors,objectLabel:e.object.object_label,objectTag:e.object.object_tag,observationObjectId:e.object.observation_object_id,observationObjectType:e.object.observation_object_type,rowId:e.object.id}),If=e=>({keywordId:e.id,definition:e.description,name:e.name}),Tf=e=>({languageId:e.id,name:e.english_name}),st=cs("observationMatrix",{state:()=>({observationMatrix:void 0,citation:void 0,descriptors:[],eliminated:[],remaining:[],availableKeywords:[],availableLanguages:[]}),getters:{getCitation:e=>e.citation,getObservationMatrix:e=>e.observationMatrix,getDescriptors:e=>e.descriptors,getDescriptorById:e=>t=>e.descriptors.find(n=>n.descriptorId===t),getDescriptorsUsed:e=>e.descriptors.filter(t=>t.status==="used"),getDescriptorsUseless:e=>e.descriptors.filter(t=>t.status==="useless"),getDescriptorsUseful:e=>e.descriptors.filter(t=>t.status==="useful"),getEliminated:e=>e.eliminated,getKeywords:e=>e.availableKeywords,getLanguages:e=>e.availableLanguages,getRemaining:e=>e.remaining},actions:{setDescriptors(e){this.descriptors=e},setEliminated(e){this.eliminated=e},setRemaining(e){this.remaining=e},setLanguages(e){this.availableLanguages=e},setKeywords(e){this.availableKeywords=e},setObservationMatrix(e){this.observationMatrix=e},async requestInteractiveKey({observationMatrixId:e,params:t={},opt:n={}}){const r=await gf.key(e,{params:t}),{data:s}=r;return n.refreshOnlyTaxa||(this.setObservationMatrix(Cf(s)),this.setDescriptors(s.list_of_descriptors.map(o=>Ef(o))),this.setKeywords(s.descriptor_available_keywords.map(o=>If(o))),this.setLanguages(s.descriptor_available_languages.map(o=>Tf(o)))),this.setEliminated(s.eliminated.map(o=>Xi(o))),this.setRemaining(s.remaining.map(o=>Xi(o))),r}}}),Ce=cs("filter",{state:()=>({descriptors:{},eliminateUnknown:void 0,errorTolerance:void 0,identifiedToRank:void 0,keywordIds:[],languageId:void 0,rowIds:[],sorting:void 0}),getters:{getKeywordIds:e=>e.keywordIds,getLanguageId:e=>e.languageId,getRowIds:e=>e.rowIds,getDescriptors:e=>e.descriptors,getIdentifiedToRank:e=>e.identifiedToRank,getEliminateUknown:e=>e.eliminateUnknown,getErrorTolerance:e=>e.errorTolerance,getSorting:e=>e.sorting,getDescriptorValueById:e=>t=>{const n=e.descriptors[t];return typeof n=="boolean"?n:n||""},getFilterParams:e=>({selected_descriptors:Object.entries(e.descriptors).map(([n,r])=>Array.isArray(r)?`${n}:${r.join("|")}`:`${n}:${r}`).join("||"),language_id:e.languageId,keyword_ids:e.keywordIds,sorting:e.sorting,identified_to_rank:e.identifiedToRank,error_tolerance:e.errorTolerance,eliminate_unknown:e.eliminateUnknown,row_filter:e.rowIds.join("|")})},actions:{setDescriptor({descriptorId:e,value:t}){this.descriptors[e]=t},removeDescriptor(e){delete this.descriptors[e]},removeKeywordId(e){const t=this.keywordIds.findIndex(n=>n===e);t>-1&&this.keywordIds.splice(t,1)},addKeywordId(e){this.keywordIds.push(e)},setLanguageId(e){this.languageId=e},setErrorTolerance(e){this.errorTolerance=e},setEliminateUnknown(e){this.eliminateUnknown=e}}}),Dt=cs("settings",{state:()=>({gridLayout:"layout-mode-1",isLoading:!1,isRefreshing:!1,refreshOnlyTaxa:!1,rowFilter:!0,shouldUpdate:!0,observationMatrixId:void 0,errorMessage:"",apiConfig:{baseURL:"",projectId:void 0,projectToken:void 0,userToken:void 0}}),getters:{getErrorMessage:e=>e.errorMessage,getIsLoading:e=>e.isLoading,getLayout:e=>e.gridLayout,getRefreshOnlyTaxa:e=>e.refreshOnlyTaxa,getRowFilter:e=>e.rowFilter,getShouldUpdate:e=>e.shouldUpdate,getObservationMatrixId:e=>e.observationMatrixId,getAPIConfig:e=>e.apiConfig},actions:{setObservationMatrixId(e){this.observationMatrixId=e},setShouldUpdate(e){this.shouldUpdate=e},setRefreshOnlyTaxa(e){this.refreshOnlyTaxa=e},setAPIConfig(e){this.apiConfig=e},checkUpdate(){const e=Ce(),t=st(),n=this.observationMatrixId;this.shouldUpdate&&n&&(this.isLoading=!0,t.requestInteractiveKey({observationMatrixId:n,params:e.getFilterParams,opt:{refreshOnlyTaxa:this.refreshOnlyTaxa}}).then(r=>this.errorMessage="").catch(r=>this.errorMessage=r.message).finally(()=>this.isLoading=!1))}}}),$f=$e(" Eliminate unknowns "),Sf=V({__name:"FilterEliminateUnknowns",setup(e){const t=Ce(),n=de({get:()=>!!t.getEliminateUknown,set:r=>{t.setEliminateUnknown(r)}});return(r,s)=>(x(),k("label",null,[Ne(I("input",{"onUpdate:modelValue":s[0]||(s[0]=o=>W(n)?n.value=o:null),type:"checkbox"},null,512),[[In,j(n)]]),$f]))}}),Of=I("label",{for:"languages",class:"d-block"}," Error tolerance ",-1),kf=I("option",{value:""},null,-1),Af=["value"],Rf=V({__name:"FilterErrorTolerance",setup(e){const t=[0,1,2],n=Ce(),r=de({get:()=>n.getErrorTolerance,set:s=>{n.setErrorTolerance(s)}});return(s,o)=>(x(),k("div",null,[Of,Ne(I("select",{"onUpdate:modelValue":o[0]||(o[0]=i=>W(r)?r.value=i:null),name:"languages",role:"listbox"},[kf,(x(),k(X,null,Pe(t,i=>I("option",{key:i,value:i},re(i),9,Af)),64))],512),[[Tn,j(r)]])]))}}),Lf=["otu","subspecies","species","subgenus","genus","subtribe","tribe","subfamily","family"],Pf=I("label",{class:"d-block"},"Identified to rank",-1),Df=I("option",{value:void 0},null,-1),Mf=V({__name:"FilterRank",setup(e){const t=Ce(),n=de({get(){return t.getIdentifiedToRank},set(r){t.$patch({identifiedToRank:r})}});return(r,s)=>(x(),k("div",null,[Pf,Ne(I("select",{"onUpdate:modelValue":s[0]||(s[0]=o=>W(n)?n.value=o:null)},[Df,(x(!0),k(X,null,Pe(j(Lf),o=>(x(),k("option",{key:o},re(o),1))),128))],512),[[Tn,j(n)]])]))}}),Ff=I("label",{class:"d-block"},"Descriptor sorting",-1),Uf=I("option",{value:void 0},null,-1),Nf=V({__name:"FilterSort",setup(e){const t=["ordered","weighted","optimized"],n=Ce(),r=de({get(){return n.getSorting},set(s){n.$patch({sorting:s})}});return(s,o)=>(x(),k("div",null,[Ff,Ne(I("select",{"onUpdate:modelValue":o[0]||(o[0]=i=>W(r)?r.value=i:null)},[Uf,(x(),k(X,null,Pe(t,i=>I("option",{key:i},re(i),1)),64))],512),[[Tn,j(r)]])]))}}),jf=I("label",{for:"languages",class:"d-block"}," Languages ",-1),Bf=["value"],Hf=V({__name:"FilterLanguage",setup(e){const t=Ce(),n=st(),r=de({get:()=>t.getLanguageId,set:s=>{t.setLanguageId(Number(s))}});return(s,o)=>(x(),k("div",null,[jf,Ne(I("select",{"onUpdate:modelValue":o[0]||(o[0]=i=>W(r)?r.value=i:null),name:"languages",role:"listbox"},[(x(!0),k(X,null,Pe(j(n).getLanguages,({languageId:i,name:l})=>(x(),k("option",{key:i,value:i},re(l),9,Bf))),128))],512),[[Tn,j(r)]])]))}});var Sp=(()=>`.btn{border-radius:8px;border:none}.btn-primary-color{background-color:var(--primary-color);color:#fff}.btn-medium-size{min-height:var(--btn-medium-size)}.btn:disabled{background-color:var(--bg-disabled-color);color:var(--disabled-color)}
|
|
7
|
-
`)();const Vf=["disabled"],yr=V({__name:"VBtn",props:{color:{default:"primary"},size:{default:"medium"},disabled:{type:Boolean}},setup(e){const t=e,n=de(()=>[`btn-${t.color}-color`,`btn-${t.size}-size`]);return(r,s)=>(x(),k("button",{type:"button",class:at(["btn",j(n)]),disabled:e.disabled},[Ye(r.$slots,"default")],10,Vf))}});var Op=(()=>`.modal-mask{position:fixed;z-index:1099;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease}.modal-wrapper{display:table-cell;vertical-align:middle}.modal-container{position:relative;width:300px;margin:0 auto;padding:20px 30px;background-color:#fff;border-radius:2px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;font-family:IBM Plex Sans,Helvetica,Arial,sans-serif;max-height:90vh;overflow-y:auto}.modal-close{position:absolute;cursor:pointer;top:26px;right:30px;width:10px;height:10px;background-image:image-url("close.svg");background-size:10px 10px;opacity:.4}.modal-close:hover{opacity:1}.modal-header h3{margin-top:0;color:#42b983}.modal-body{margin:20px 0}.modal-default-button{float:right}.modal-enter,.modal-leave-active{opacity:0}.modal-enter .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.transparent-modal{background-color:#000c!important}.transparent-modal .modal-header h3{margin:0 0 2em 2em;padding:6px 6px 6px 12px;border-radius:3px;background-color:#0000004d;color:#ffffff80}.transparent-modal .modal-close{right:42px;top:30px;color:#ffffff80;background-image:image-url("w_close.svg")}.transparent-modal .modal-container{width:70%;position:relative;background-color:transparent!important;box-shadow:none}.transparent-modal .modal-container .modal-body{overflow:auto;margin-right:1em;max-height:80vh}.transparent-modal .modal-container .modal-body::-webkit-scrollbar{position:absolute;right:40px;-webkit-appearance:none}.transparent-modal .modal-container .modal-body::-webkit-scrollbar:vertical{width:6px}.transparent-modal .modal-container .modal-body::-webkit-scrollbar:horizontal{height:6px}.transparent-modal .modal-container .modal-body::-webkit-scrollbar-thumb{border-radius:8px;width:11px;height:5px;border:rgba(255,255,255,.5);background-color:#ffffff80}.transparent-modal .modal-container .modal-body::-webkit-scrollbar-track{background-color:#0000004d;border-radius:8px}
|
|
8
|
-
`)();const Kf={class:"modal-wrapper"},zf={class:"modal-header"},qf={class:"modal-body"},Wf={class:"modal-footer"},Cs=V({__name:"VModal",props:{containerClass:null,containerStyle:null},emits:["close"],setup(e,{emit:t}){const n=r=>{r.preventDefault(),r.key==="Escape"&&t("close")};return yn(()=>document.addEventListener("keydown",n)),zt(()=>document.removeEventListener("keydown",n)),(r,s)=>(x(),se(ur,{name:"modal"},{default:Q(()=>[I("div",{class:"modal-mask",onClick:s[2]||(s[2]=o=>t("close")),onKey:s[3]||(s[3]=o=>t("close"))},[I("div",Kf,[I("div",{class:at(["modal-container",e.containerClass]),style:wt(lt({},e.containerStyle)),onClick:s[1]||(s[1]=Fc(()=>{},["stop"]))},[I("div",zf,[I("div",{class:"modal-close",onClick:s[0]||(s[0]=o=>t("close"))}),Ye(r.$slots,"header")]),I("div",qf,[Ye(r.$slots,"body")]),I("div",Wf,[Ye(r.$slots,"footer")])],6)])],32)]),_:3}))}}),Jf=$e(" Keyword "),Yf=I("h3",null,"Keywords",-1),Qf={class:"list-none p-0"},Xf=["value"],Zf=V({__name:"FilterKeywords",setup(e){const t=st(),n=Ce(),r=Re(!1),s=de({get:()=>n.getKeywordIds,set:o=>{n.$patch({keywordIds:o})}});return(o,i)=>(x(),k(X,null,[M(yr,{color:"primary",size:"medium",disabled:!j(t).getKeywords.length,title:j(t).getKeywords.length?"":"No tags defined.",onClick:i[0]||(i[0]=l=>r.value=!0)},{default:Q(()=>[Jf]),_:1},8,["disabled","title"]),r.value?(x(),se(Cs,{key:0,onClose:i[2]||(i[2]=l=>r.value=!1)},{header:Q(()=>[Yf]),body:Q(()=>[I("ul",Qf,[(x(!0),k(X,null,Pe(j(t).getKeywords,({keywordId:l,name:a})=>(x(),k("li",{key:l},[I("label",null,[Ne(I("input",{"onUpdate:modelValue":i[1]||(i[1]=f=>W(s)?s.value=f:null),value:l,type:"checkbox"},null,8,Xf),[[In,j(s)]]),$e(" "+re(a),1)])]))),128))])]),_:1})):Se("",!0)],64))}}),Gf=$e(" Refresh only taxa "),ed=V({__name:"SettingRefresh",setup(e){const t=Dt(),n=de({get:()=>t.getRefreshOnlyTaxa,set:r=>{t.setRefreshOnlyTaxa(r)}});return(r,s)=>(x(),k("label",null,[Ne(I("input",{"onUpdate:modelValue":s[0]||(s[0]=o=>W(n)?n.value=o:null),type:"checkbox"},null,512),[[In,j(n)]]),Gf]))}});var kp=(()=>`.menu-list{display:flex;list-style:none;align-items:center;margin:0}.menu-list li:first-child{padding-left:0}
|
|
9
|
-
`)(),Rn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const td={},nd={class:"menu-list"};function rd(e,t){return x(),k("ul",nd,[Ye(e.$slots,"default")])}var sd=Rn(td,[["render",rd]]),Ap=(()=>`.list-item[data-v-3f00bdeb]{justify-content:center;padding-left:1em;padding-right:1em;border-right:1px solid #e5e5e5}
|
|
10
|
-
`)();const od={},id={class:"list-item"};function ld(e,t){return x(),k("li",id,[Ye(e.$slots,"default",{},void 0,!0)])}var Mt=Rn(od,[["render",ld],["__scopeId","data-v-3f00bdeb"]]);const Zi={"layout-mode-1":"layout-mode-2","layout-mode-2":"layout-mode-1"};var Rp=(()=>`.grid[data-v-54dda420]{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);grid-column-gap:0px;grid-row-gap:0px;grid-gap:1px;background-color:var(--border-color);box-shadow:0 1px 1px #0003}
|
|
11
|
-
`)();const ad={},cd={class:"grid"};function ud(e,t){return x(),k("div",cd,[Ye(e.$slots,"default",{},void 0,!0)])}var Gi=Rn(ad,[["render",ud],["__scopeId","data-v-54dda420"]]),Lp=(()=>`.grid-icon{width:20px;height:12px;border:2px solid transparent;background-color:transparent;grid-gap:2px}.grid-icon>div{background-color:#fff}
|
|
12
|
-
`)();const fd=I("div",{class:"panel-descriptors"},null,-1),dd=I("div",{class:"panel-remaining"},null,-1),pd=I("div",{class:"panel-eliminated"},null,-1),hd=V({__name:"GridToggle",setup(e){const t=Dt(),n=de(()=>t.getLayout),r=()=>{t.$patch({gridLayout:Zi[n.value]})};return(s,o)=>(x(),se(yr,{class:at(j(Zi)[j(n)]),onClick:r},{default:Q(()=>[M(Gi,{class:"grid-icon"},{default:Q(()=>[fd,dd,pd]),_:1})]),_:1},8,["class"]))}}),md=$e(" Reset "),gd=V({__name:"ResetButton",setup(e){const t=Ce();return(n,r)=>(x(),se(yr,{color:"primary",size:"medium",onClick:r[0]||(r[0]=s=>j(t).$reset())},{default:Q(()=>[md]),_:1}))}}),_d={class:"error-message"},vd=V({__name:"ErrorMessage",setup(e){const t=Dt();return(n,r)=>(x(),k("span",_d,re(j(t).getErrorMessage),1))}});var Pp=(()=>`.header-bar[data-v-055577b4]{background-color:var(--bg-panel-color);padding:1em;box-shadow:#24252614 4px 4px 15px;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:center}.header-bar__buttons[data-v-055577b4]{display:flex;align-items:center}
|
|
13
|
-
`)();const bd={class:"header-bar"},yd={class:"header-bar__buttons"};var xd=Rn(V({__name:"HeaderBar",setup(e){return(t,n)=>(x(),k("div",bd,[M(vd),M(sd,null,{default:Q(()=>[M(Mt,null,{default:Q(()=>[M(ed)]),_:1}),M(Mt,null,{default:Q(()=>[M(Sf)]),_:1}),M(Mt,null,{default:Q(()=>[M(Rf)]),_:1}),M(Mt,null,{default:Q(()=>[M(Mf)]),_:1}),M(Mt,null,{default:Q(()=>[M(Hf)]),_:1}),M(Mt,null,{default:Q(()=>[M(Nf)]),_:1}),M(Mt,null,{default:Q(()=>[M(Zf)]),_:1})]),_:1}),I("div",yd,[M(gd,{class:"margin-small-right"}),M(hd)])]))}}),[["__scopeId","data-v-055577b4"]]);const wd=["innerHTML"],el=V({__name:"PanelRowItem",props:{row:null},setup(e){return(t,n)=>(x(),k("li",{innerHTML:e.row.objectTag},null,8,wd))}}),Ed=V({__name:"PanelEliminated",setup(e){const t=st(),n=de(()=>t.getEliminated);return(r,s)=>(x(),k("div",null,[I("h2",null,"Eliminated ("+re(j(n).length)+")",1),I("ul",null,[(x(!0),k(X,null,Pe(j(n),o=>(x(),se(el,{key:o.rowId,row:o,class:"margin-small-bottom"},null,8,["row"]))),128))])]))}}),Cd=$e(" Select "),Id=I("h3",null,"Filter row",-1),Td={class:"list-none p-0"},$d=["value"],Sd=V({__name:"FilterRow",setup(e){const t=st(),n=Dt(),r=Ce(),s=Re(!1),o=Re([]),i=de(()=>{const a=r.getRowIds,f=o.value;return a.length!==f.length||!a.every(u=>f.includes(u))}),l=de({get:()=>r.getRowIds,set:a=>{r.$patch({rowIds:a})}});return vn(s,a=>{n.setShouldUpdate(!a),!a&&i.value&&n.checkUpdate(),o.value=r.getRowIds}),(a,f)=>(x(),k(X,null,[M(yr,{color:"primary",size:"medium",onClick:f[0]||(f[0]=u=>s.value=!0)},{default:Q(()=>[Cd]),_:1}),s.value?(x(),se(Cs,{key:0,onClose:f[2]||(f[2]=u=>s.value=!1)},{header:Q(()=>[Id]),body:Q(()=>[I("ul",Td,[(x(!0),k(X,null,Pe(j(t).getRemaining,u=>(x(),k("li",{key:u.rowId},[I("label",null,[Ne(I("input",{"onUpdate:modelValue":f[1]||(f[1]=p=>W(l)?l.value=p:null),value:u.rowId,type:"checkbox"},null,8,$d),[[In,j(l)]]),$e(" "+re(u.objectLabel),1)])]))),128))])]),_:1})):Se("",!0)],64))}}),Od={class:"d-flex justify-between align-center"},kd=V({__name:"PanelRemaining",setup(e){const t=st(),n=de(()=>t.getRemaining);return(r,s)=>(x(),k("div",null,[I("div",Od,[I("h2",null,"Remaining ("+re(j(n).length)+")",1),M(Sd)]),I("ul",null,[(x(!0),k(X,null,Pe(j(n),o=>(x(),se(el,{key:o.rowId,row:o,class:"margin-small-bottom"},null,8,["row"]))),128))])]))}});class Ad{static find(t){return Qi().get(`/depictions/${t}.json`,{params:{extend:["image"]}})}}var Mp=(()=>`.depiction-box{display:flex;align-items:center;justify-content:center;border:1px solid black;height:300px;width:300px}
|
|
14
|
-
`)();const Rd={key:0,class:"depiction-box"},Ld=["src"],tl=V({__name:"VDepiction",props:{depictionId:null},setup(e){const t=e,n=Re();return Ad.find(t.depictionId).then(({data:r})=>{n.value=vf(r)}),(r,s)=>n.value?(x(),k("div",Rd,[I("img",{src:n.value.imageUrl},null,8,Ld)])):Se("",!0)}});var Fp=(()=>`.character-descriptor__cell{display:flex;align-items:flex-end}
|
|
15
|
-
`)();const Pd={class:"character-descriptor__cell"},Dd=["value"],Md=V({__name:"CharacterStateCell",props:{characterState:null,descriptorId:null},setup(e){const t=e,n=Ce(),r=de({get:()=>n.getDescriptorValueById(t.descriptorId)||[],set:s=>{s.length?n.setDescriptor({descriptorId:t.descriptorId,value:s}):n.removeDescriptor(t.descriptorId)}});return(s,o)=>(x(),k("div",Pd,[I("label",null,[(x(!0),k(X,null,Pe(e.characterState.depictionIds,i=>(x(),se(tl,{key:i,"depiction-id":i},null,8,["depiction-id"]))),128)),Ne(I("input",{"onUpdate:modelValue":o[0]||(o[0]=i=>W(r)?r.value=i:null),value:e.characterState.characterStateId,type:"checkbox"},null,8,Dd),[[In,j(r)]]),$e(" "+re(e.characterState.name),1)])]))}});var Up=(()=>`.character-states-grid{display:grid;grid-template-columns:repeat(3,minmax(33.33%,1fr));gap:1em}
|
|
16
|
-
`)();const Fd={class:"character-states-grid"},Ud=V({__name:"CharacterStateGrid",props:{descriptor:null},setup(e){const t=e,n=Ce(),r=Dt(),s=Re(),o=de(()=>{const i=n.getDescriptorValueById(t.descriptor.descriptorId)||[],l=s.value||[];return i.length!==l.length||!i.every(a=>l.includes(a))});return yn(()=>{r.setShouldUpdate(!1),s.value=n.getDescriptorValueById(t.descriptor.descriptorId)}),zt(()=>{r.setShouldUpdate(!0),o.value&&r.checkUpdate()}),(i,l)=>(x(),k("div",Fd,[(x(!0),k(X,null,Pe(e.descriptor.characterStates,a=>(x(),se(Md,{key:a.characterStateId,"descriptor-id":e.descriptor.descriptorId,"character-state":a},null,8,["descriptor-id","character-state"]))),128))]))}});var Np=(()=>`.descriptor-modal{width:1000px;max-height:90vh;overflow-y:scroll}.descriptor-modal__depiction{display:flex;justify-content:center}
|
|
17
|
-
`)();const Nd={key:0},jd={key:1},Bd={class:"descriptor-modal__depiction"},Hd=I("hr",null,null,-1),Vd=V({__name:"DescriptorModal",props:{descriptor:null},setup(e){return(t,n)=>(x(),se(Cs,{"container-class":"descriptor-modal"},{header:Q(()=>[I("h3",null,re(e.descriptor.name),1),e.descriptor.description?(x(),k("span",Nd,re(e.descriptor.description),1)):(x(),k("i",jd," No further description available. "))]),body:Q(()=>[I("div",Bd,[(x(!0),k(X,null,Pe(e.descriptor.depictionIds,r=>(x(),se(tl,{key:r,"depiction-id":r},null,8,["depiction-id"]))),128))]),Hd,e.descriptor.type===j(kn).Qualitative?(x(),se(Ud,{key:0,descriptor:e.descriptor},null,8,["descriptor"])):Se("",!0)]),_:1}))}}),Kd=["id"],zd={class:"d-block"},xr=V({__name:"DescriptorContainer",props:{descriptor:null},setup(e){const t=Re(!1);return(n,r)=>(x(),k(X,null,[I("div",{id:`descriptor-${e.descriptor.descriptorId}`},[I("div",zd,[I("span",{class:"link",onClick:r[0]||(r[0]=s=>t.value=!0)},[Ye(n.$slots,"title",{},()=>[$e(re(e.descriptor.name),1)])])]),Ye(n.$slots,"default")],8,Kd),t.value?(x(),se(Vd,{key:0,descriptor:e.descriptor,onClose:r[1]||(r[1]=s=>t.value=!1)},null,8,["descriptor"])):Se("",!0)],64))}}),qd=["onKeyup"],Wd=V({__name:"DescriptorContinuous",props:{descriptor:null},setup(e){const t=e,n=Ce(),r=Re(String(n.getDescriptorValueById(t.descriptor.descriptorId))),s=()=>{const{descriptorId:o}=t.descriptor,i=r.value.trim();i?n.setDescriptor({descriptorId:o,value:i}):n.removeDescriptor(o)};return(o,i)=>(x(),se(xr,{descriptor:e.descriptor},{title:Q(()=>[$e(re(e.descriptor.name)+" ("+re(e.descriptor.min)+"-"+re(e.descriptor.max)+" "+re(e.descriptor.defaultUnit)+") ",1)]),default:Q(()=>[Ne(I("input",{"onUpdate:modelValue":i[0]||(i[0]=l=>r.value=l),type:"text",onBlur:s,onKeyup:mi(s,["enter"])},null,40,qd),[[fi,r.value]])]),_:1},8,["descriptor"]))}}),Jd=[I("option",null,null,-1),I("option",{value:!0}," Present ",-1),I("option",{value:!1}," Absent ",-1)],Yd=V({__name:"DescriptorPresenceAbsence",props:{descriptor:null},setup(e){const t=e,n=Ce(),r=de({get:()=>n.getDescriptorValueById(t.descriptor.descriptorId),set:s=>{const{descriptorId:o}=t.descriptor;typeof s=="boolean"?n.setDescriptor({descriptorId:o,value:Boolean(s)}):n.removeDescriptor(o)}});return(s,o)=>(x(),se(xr,{descriptor:e.descriptor},{default:Q(()=>[Ne(I("select",{"onUpdate:modelValue":o[0]||(o[0]=i=>W(r)?r.value=i:null)},Jd,512),[[Tn,j(r)]])]),_:1},8,["descriptor"]))}}),Qd=I("option",{value:""},null,-1),Xd=["value","selected"],Zd={key:0},Gd={key:1},ep=V({__name:"DescriptorQualitative",props:{descriptor:null},setup(e){const t=e,n=Ce(),r=o=>{const i=o.target,{descriptorId:l}=t.descriptor;i.value?n.setDescriptor({descriptorId:l,value:[Number(i.value)]}):n.removeDescriptor(l)},s=o=>n.getDescriptorValueById(t.descriptor.descriptorId).includes(o.characterStateId);return(o,i)=>(x(),se(xr,{descriptor:e.descriptor},{default:Q(()=>[I("select",{name:"listbox",onChange:r},[Qd,(x(!0),k(X,null,Pe(e.descriptor.characterStates,l=>(x(),k("option",{key:l.characterStateId,value:l.characterStateId,selected:s(l)},[s(l)?(x(),k("span",Zd,">")):Se("",!0),l.status==="useless"?(x(),k("span",Gd,"-")):Se("",!0),$e(" "+re(l.name)+" ("+re(l.numberOfObjects)+") ",1)],8,Xd))),128))],32)]),_:1},8,["descriptor"]))}}),tp=["onKeyup"],np=V({__name:"DescriptorSample",props:{descriptor:null},setup(e){const t=e,n=Ce(),r=Re(String(n.getDescriptorValueById(t.descriptor.descriptorId))),s=()=>{const{descriptorId:o}=t.descriptor,i=r.value.trim();i?n.setDescriptor({descriptorId:o,value:i}):n.removeDescriptor(o)};return(o,i)=>(x(),se(xr,{descriptor:e.descriptor},{title:Q(()=>[$e(re(e.descriptor.name)+" ("+re(e.descriptor.min)+"-"+re(e.descriptor.max)+" "+re(e.descriptor.defaultUnit)+") ",1)]),default:Q(()=>[Ne(I("input",{"onUpdate:modelValue":i[0]||(i[0]=l=>r.value=l),type:"text",onBlur:s,onKeyup:mi(s,["enter"])},null,40,tp),[[fi,r.value]])]),_:1},8,["descriptor"]))}}),Is=V({__name:"DescriptorsList",props:{title:null,descriptors:null},setup(e){const t={DescriptorContinuous:Wd,DescriptorPresenceAbsence:Yd,DescriptorQualitative:ep,DescriptorSample:np},n=r=>{const s=r.replace("::","");return t[s]};return(r,s)=>(x(),k(X,null,[I("h2",null,re(e.title),1),I("ol",null,[(x(!0),k(X,null,Pe(e.descriptors,o=>(x(),k("li",{key:o.descriptorId},[(x(),se(Aa(n(o.type)),{descriptor:o},null,8,["descriptor"]))]))),128))])],64))}}),rp={class:"descriptors-view"},sp=V({__name:"PanelDescriptors",setup(e){const t=st();return(n,r)=>(x(),k("div",rp,[j(t).getDescriptorsUsed.length?(x(),se(Is,{key:0,descriptors:j(t).getDescriptorsUsed,title:"Used Descriptors"},null,8,["descriptors"])):Se("",!0),j(t).getDescriptorsUseful.length?(x(),se(Is,{key:1,descriptors:j(t).getDescriptorsUseful,title:"Descriptors Useful for Identification"},null,8,["descriptors"])):Se("",!0),j(t).getDescriptorsUseless.length?(x(),se(Is,{key:2,descriptors:j(t).getDescriptorsUseless,title:"Descriptors no longer relevant for identification"},null,8,["descriptors"])):Se("",!0)]))}});var Vp=(()=>`.tw-spinner[data-v-3541fc5b]{display:flex;margin:0 auto;height:auto;width:auto;align-items:center;justify-content:center}.fade-enter-active[data-v-3541fc5b],.fade-leave-active[data-v-3541fc5b]{transition:opacity .5s}.fade-enter[data-v-3541fc5b],.fade-leave-to[data-v-3541fc5b]{opacity:0}.tw-spinner-left[data-v-3541fc5b]{flex-direction:row}.tw-spinner-right[data-v-3541fc5b]{flex-direction:row-reverse}.tw-spinner-top[data-v-3541fc5b]{flex-direction:column}.tw-spinner-bottom[data-v-3541fc5b]{flex-direction:column-reverse}.box-spinner[data-v-3541fc5b]{display:flex;position:absolute;box-shadow:0 1px 1px #0003;background-image:none!important;background-color:#fff;align-items:center;z-index:9999;height:100%;opacity:.9}.tw-spinner[data-v-3541fc5b]{font-size:20px;overflow:hidden;width:100%;position:relative}.tw-spinner svg[data-v-3541fc5b]{display:block;position:relative;width:30px;height:30px;margin:0 auto}.tw-spinner #Tail[data-v-3541fc5b]{opacity:0;animation:tail-3541fc5b 2s ease infinite;fill:#41ba8d}.tw-spinner #LeftBottom[data-v-3541fc5b]{fill:#00845d;opacity:0;animation:spinner-3541fc5b 1s ease alternate infinite;animation-delay:0s}.tw-spinner #LeftMid[data-v-3541fc5b]{fill:#28221b;opacity:0;animation:spinner-3541fc5b 1s ease alternate infinite;animation-delay:.2s}.tw-spinner #LeftTop[data-v-3541fc5b]{fill:#342d25;opacity:0;animation:spinner-3541fc5b 1s ease alternate infinite;animation-delay:.4s}.tw-spinner #Head[data-v-3541fc5b]{fill:#342d25;opacity:0;animation:spinner-3541fc5b 1s ease alternate infinite;animation-delay:.6s}@keyframes spinner-3541fc5b{0%{opacity:0}30%{opacity:0}90%{opacity:1}to{opacity:1}}@keyframes tail-3541fc5b{0%{opacity:0}30%{opacity:1}50%{opacity:1}90%{opacity:0}to{opacity:0}}
|
|
18
|
-
`)();const Ln=e=>(ua("data-v-3541fc5b"),e=e(),fa(),e),op=[Ln(()=>I("path",{id:"LeftTop",d:`M14.2,63.1C24.3,63.1,28,76.3,28,76.3s5,15.5,15.3,15.5c7.7,0,9.4-6.3,9.8-9.1c0-0.1,0-0.2,0-0.4s0-0.5,0.1-0.8
|
|
19
|
-
c0-0.1,0-0.1,0-0.2c0.3-2-0.8-4-2.7-4.8l0,0c-3.1-1.1-5.9-3-8-5.6c-6.4-7.4-3-17,4.5-23.6c-3.5-4-8-8.7-12-10.8
|
|
20
|
-
c-8.7-4.6-15.7,2.6-16.2,3.2L18.7,40c-0.6,0.8-1.2,1.6-1.8,2.5l-0.1,0.1c-0.6,0.9-1.2,1.8-1.8,2.7L15,45.4c-0.5,0.8-1,1.6-1.5,2.4
|
|
21
|
-
l-0.3,0.5c-1,1.8-2,3.6-3,5.5L10,54.3c-0.4,0.9-0.9,1.8-1.3,2.7l-0.1,0.1C8.2,58,7.8,59,7.4,59.9l-0.2,0.5c-0.3,0.8-0.6,1.5-0.9,2.3
|
|
22
|
-
l-0.2,0.6c-0.4,1-0.7,1.9-1,2.9L5,66.7c-0.1,0.3-0.2,0.5-0.2,0.8C7.1,64.7,10.5,63.1,14.2,63.1z`},null,-1)),Ln(()=>I("path",{id:"Head",d:`M36.2,33c5.3,1.8,11.4,6.8,15.7,11c0.5-0.3,1.1-0.6,1.6-0.9c2.3-1.2,4.7-2.1,7.2-2.7
|
|
23
|
-
c-2.4-4.9-5.6-12.8-4.9-18.3c1.4-11.2,13.6-12,13.6-12S58.3,12.5,59,22.9c0.3,5,4.7,12.5,7.5,16.8c7-0.1,13,2.7,15.8,8
|
|
24
|
-
c0.3,0.5,0.5,1.1,0.7,1.6l0,0c0.5,1,1.3,1.9,2.3,2.4c3.6,1.2,7.6,2.5,11.7,4.2c5.8,2.3,11.5,5,17,8.1c0.5,0.2,1,0,1.2-0.5
|
|
25
|
-
c0.1-0.3,0.1-0.7-0.2-0.9c-27.2-26.1-8-36.3-8-36.3c-9.8,14.2,6.6,24.5,25.5,35.1c16.6,9.3,28.4,19.5,41.3,12.7
|
|
26
|
-
c6.4-3.4,1.9-11-1-15.2c-2.2-2.9-4-6-5.6-9.2c-1-2.1-1.3-4.4-0.8-6.6c0.7-3.1-0.4-6.8-2.8-10.5c-1.8-2.8-5.1-5.7-7.6-7.6
|
|
27
|
-
c-1.6-1.3-3.1-2.7-4.3-4.4c-9-12.6-32.2-17.9-32.2-17.9l0,0C97.5-2.6,74.3,0.1,54,10.2l0,0c-6.9,3.5-13.5,7.7-19.4,12.7l-0.8,0.6
|
|
28
|
-
c-1.4,1.2-2.8,2.5-4.2,3.8l0,0c-0.8,0.8-1.6,1.5-2.3,2.3l0,0c-1.5,1.6-3,3.2-4.4,4.9l-0.2,0.2l-0.4,0.5C25.2,32.8,29.6,30.9,36.2,33
|
|
29
|
-
z M145.8,33.9c3.9-1.7,8.5,0.1,10.2,4c0.6,1.3,0.8,2.7,0.6,4c-2.5,1.2-5.5,0.9-7.7-0.9C146.5,39.5,145.3,36.7,145.8,33.9L145.8,33.9
|
|
30
|
-
z`},null,-1)),Ln(()=>I("path",{id:"LeftMid",d:`M53.2,106.9c-0.2-2-0.4-4-0.4-6.3c-2.3,1-4.7,1.5-7.2,1.5c-19,0-19.5-18.8-26.2-29.2
|
|
31
|
-
c-7-10.8-16.8,0.9-17.8,7.2c0,0.3-0.1,0.5-0.1,0.7c-0.1,0.6-0.2,1.3-0.3,1.9C1,83.1,1,83.4,1,83.6c-0.1,0.8-0.2,1.6-0.3,2.3
|
|
32
|
-
c0,0.3-0.1,0.5-0.1,0.8c-0.1,1-0.2,2.1-0.3,3.1c0,0.1,0,0.2,0,0.3c-0.1,0.9-0.2,1.9-0.2,2.8c0,0.3,0,0.6,0,0.9C0,94.9,0,95.8,0,96.7
|
|
33
|
-
c0,0.1,0,0.2,0,0.3s0,0.1,0,0.1s0,0.1,0,0.1c0,0.4,0,0.8,0,1.2s0,0.8,0,1.2c0,0.6,0,1.2,0.1,1.7c0,0.2,0,0.5,0,0.7
|
|
34
|
-
c1.5,30.7,17.5,58.9,43,76c-8-7.8-12.7-17.8-12.7-28.6c0-13.4,7.3-26,19.1-34.4C52,113.2,53.5,110.1,53.2,106.9z`},null,-1)),Ln(()=>I("path",{id:"LeftBottom",d:`M128.3,170c-5.8,2.4-12,3.9-18.3,4.4c-1.1,0.1-2.2,0.1-3.3,0.1c-12.3,0-28.4-4.8-40.7-25.3
|
|
35
|
-
l-1.6-2.7c-1.9,2.7-2.9,6-2.9,9.3c0,13.9,16.6,26.5,36.7,26.5c5.4,0.1,10.7-0.6,15.9-2c-4.6,2.9-13.8,5.6-21.9,5.6
|
|
36
|
-
C69.2,186,50,170.8,50,152.7c0.1-6.3,2.1-12.5,5.8-17.6c1.5-2.1,1.9-4.8,1.1-7.2l0,0c-10.5,6.1-17,15.4-17,26.6
|
|
37
|
-
c0,17.2,15.3,31.9,37,37.9c1.2,0.3,2.5,0.5,3.7,0.7c15.6,2.6,29.5-0.1,38.9-9.1C123.5,180.1,126.5,175.3,128.3,170z`},null,-1)),Ln(()=>I("path",{id:"Tail",class:"st0",d:`M171,33.8c28,39.3,18.8,93.8-20.5,121.8c-2.4,1.7-4.9,3.3-7.5,4.8l-0.2,0.2c0-0.4,0-0.9,0.1-1.3
|
|
38
|
-
c0.6-3.9,2.1-7.6,4.4-10.8c7.5-10.7,12.4-27-0.3-48.1c-7-11.6-21.7-28-51.7-40.1c-4.1-1.7-8.1-3.1-11.8-4.2L82,55.6l-0.2-0.1
|
|
39
|
-
c-1.1-0.3-2.1-0.6-3.1-0.9h-0.2l-2.9-0.8h-0.1l-1.3-0.3h-0.1l-2.6-0.6h-0.1l-2.3-0.5h-0.2l-1-0.2l0,0L67,51.7h-0.2l-0.7-0.2h-0.2
|
|
40
|
-
l-0.8-0.2H65l-0.6-0.1h-0.2L63.7,51l-0.1,0.4v0.1l-0.1,0.3l0,0.2l-0.1,0.3l-0.1,0.2l-0.1,0.3l-0.1,0.2L63,53.5L63,53.7l-0.1,0.4
|
|
41
|
-
l-0.1,0.2l-0.1,0.5l-0.1,0.3l-0.1,0.6L62.3,56l-0.1,0.5l-0.1,0.3L62,57.2l-0.1,0.4L61.8,58l-0.1,0.4l-0.1,0.5l-0.1,0.4l-0.1,0.5
|
|
42
|
-
l-0.1,0.4l-0.1,0.6l-0.1,0.5L61,61.9l-0.1,0.4l-0.1,0.5l-0.1,0.5l-0.1,0.5l-0.1,0.5l-0.1,0.5l-0.1,0.5l-0.1,0.5l-0.1,0.5L60,66.9
|
|
43
|
-
l-0.1,0.5l-0.1,0.7l-0.1,0.5l-0.2,1l-0.1,0.5l-0.1,0.6l-0.1,0.5l-0.1,0.6l-0.1,0.6L59,73.1l-0.1,0.6l-0.1,0.6l-0.1,0.6l-0.1,0.7
|
|
44
|
-
l-0.1,0.6l-0.1,0.8l-0.1,0.5c-0.2,1.8-0.4,3.6-0.6,5.5V83c0,0.6-0.1,1.1-0.1,1.7l0,0c0,0.6-0.1,1.1-0.1,1.7v0.1
|
|
45
|
-
c0,0.6-0.1,1.1-0.1,1.7l0,0c-0.2,3-0.2,6.2-0.2,9.5c0.1,4.3,0.4,8.5,0.8,12.7c0,0.3,0.1,0.7,0.1,1.1c0.7,5.8,1.9,11.4,3.6,17
|
|
46
|
-
c1.5,4.5,3.2,8.9,5.2,13.2c0.9,1.7,1.8,3.4,2.8,5.1c9.2,15.3,21.5,23,36.6,23c1,0,2.1,0,3.2-0.1c7-0.6,13.9-2.5,20.2-5.6
|
|
47
|
-
c4.9-24.5-8.4-59.3-36.1-88.3C90,71.8,86,68,81.7,64.4c9.2,6.9,13.9,10.7,19.2,16.3c37.8,39.6,49.7,89.7,26.5,111.9
|
|
48
|
-
c-3.4,3.3-7.5,5.8-11.9,7.5c5.8-1.6,11.1-4.5,15.4-8.6c1.4-1.3,2.6-2.7,3.8-4.2c49.6-20.7,73-77.7,52.4-127.3
|
|
49
|
-
C183.1,50.4,177.7,41.6,171,33.8z`},null,-1))],ip=["innerHTML"];var lp=Rn(V({__name:"VSpinner",props:{fullScreen:{type:Boolean,default:!1},legend:{type:String,default:"Loading, please wait."},resize:{type:Boolean,default:!0},legendStyle:{type:Object,default:()=>({color:"#444",marginTop:"30px",textAlign:"center"})},showLegend:{type:Boolean,default:!0},showSpinner:{type:Boolean,default:!0},spinnerPosition:{type:String,default:"top"},logoSize:{type:Object,default:()=>({width:"50px",height:"50px"})}},setup(e){const t=e,n={position:"fixed",width:"100vw",height:"100vh",top:"0px",left:"0px"},r=Re(),s=Re({}),o=Re();yn(()=>{i(),t.resize&&!t.fullScreen&&a()}),zt(()=>clearInterval(o.value));const i=()=>{var u;const f=(u=r.value)==null?void 0:u.parentNode;!f||Object.assign(s.value,t.fullScreen?n:l(f))},l=f=>{const u=f.getBoundingClientRect(),p=window.getComputedStyle(f,null),m=parseInt(p.getPropertyValue("padding-left"),10),E=parseInt(p.getPropertyValue("padding-right"),10),P=parseInt(p.getPropertyValue("padding-top"),10),U=parseInt(p.getPropertyValue("padding-bottom"),10);return{position:"absolute",width:u.width-m-E+"px",height:u.height-P-U+"px"}},a=()=>{o.value=setInterval(i,500)};return(f,u)=>(x(),se(ur,{name:"fade"},{default:Q(()=>[I("div",{ref_key:"spinnerElement",ref:r,class:"box-spinner mx-spinner absolute bg-white opacity-90",style:wt(s.value)},[I("div",{class:at(["tw-spinner",[`tw-spinner-${e.spinnerPosition}`]])},[e.showSpinner?(x(),k("svg",{key:0,style:wt([e.logoSize,{"enable-background":"new 0 0 194.6 200"}]),version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 194.6 200","xml:space":"preserve"},op,4)):Se("",!0),I("div",{style:wt(e.legendStyle)},[e.showLegend?(x(),k("span",{key:0,innerHTML:e.legend},null,8,ip)):Se("",!0),Ye(f.$slots,"default",{},void 0,!0)],4)],2)],4)]),_:3}))}}),[["__scopeId","data-v-3541fc5b"]]);const ap=$e(" Interactive key "),cp={key:0},up=V({__name:"TitleMatrix",setup(e){const t=st();return(n,r)=>(x(),k("h1",null,[ap,j(t).getObservationMatrix?(x(),k("span",cp,"| "+re(j(t).getObservationMatrix.name),1)):Se("",!0)]))}}),fp=["title"],dp=V({__name:"TitleMatrixCitation",setup(e){const t=st(),n=de(()=>{const r=t.getCitation;return Object.values(r||{}).filter(Boolean).join(", ")});return(r,s)=>(x(),k("span",{title:j(n)},re(j(n)),9,fp))}}),pp={class:"d-flex justify-between"},hp=V({__name:"TitleKey",setup(e){return(t,n)=>(x(),k("div",pp,[M(up),M(dp)]))}}),mp={class:"vue-interactive-keys"},gp=V(sn(lt({},{name:"InteractiveKey"}),{props:{observationMatrixId:null,apiConfig:null},setup(e){const t=e,n=Dt(),r=Ce(),s=de(()=>n.getIsLoading),o=de(()=>n.getLayout);return(()=>{n.setAPIConfig(t.apiConfig),n.setObservationMatrixId(t.observationMatrixId),n.checkUpdate()})(),r.$subscribe(l=>{n.shouldUpdate&&n.checkUpdate()}),(l,a)=>(x(),k("div",mp,[M(hp),M(xd),M(Gi,{class:at(["w-100",j(o)])},{default:Q(()=>[M(sp,{class:"panel-descriptors grid-panel"}),M(kd,{class:"panel-remaining grid-panel"}),M(Ed,{class:"panel-eliminated grid-panel"})]),_:1},8,["class"]),j(s)?(x(),se(lp,{key:0,"full-screen":"",legend:"Loading interactive key..."})):Se("",!0)]))}}));var Xp=(()=>`:root{--bg-color: #f7f8fc;--bg-panel-color: #FFFFFF;--bg-disabled-color: #e5e5e5;--disabled-color: #999;--error-color: #FF0000;--primary-color: #5D9ECE;--border-color: #CCCCCC;--link-color: #5D9ECE;--btn-medium-size: 28px}.d-block{display:block}.d-flex{display:flex}.justify-between{justify-content:space-between}.align-center{align-items:center}.w-100{height:100%}.margin-medium-bottom{margin-bottom:1em}.margin-small-right{margin-right:.5em}.p-0{padding:0}.link{color:var(--link-color);cursor:pointer}.list-none{list-style:none}html,body{margin:0;height:100%}body{background-color:var(--bg-color)}.vue-interactive-keys{height:100vh;max-height:100vh;font-family:Arial,Helvetica,sans-serif;font-size:13px}.vue-interactive-keys .grid{max-height:calc(100% - 140px)}.vue-interactive-keys .grid-panel{background-color:#fff;padding:1rem;overflow-y:scroll}.vue-interactive-keys .layout-mode-1 .panel-descriptors{grid-area:1/1/2/3}.vue-interactive-keys .layout-mode-1 .panel-remaining{grid-area:2/1/3/2}.vue-interactive-keys .layout-mode-1 .panel-eliminated{grid-area:2/2/3/3}.vue-interactive-keys .layout-mode-2 .panel-descriptors{grid-area:1/1/3/2}.vue-interactive-keys .layout-mode-2 .panel-remaining{grid-area:1/2/2/3}.vue-interactive-keys .layout-mode-2 .panel-eliminated{grid-area:2/2/3/3}.vue-interactive-keys input,.vue-interactive-keys select{padding:.5em 1em;border:1px solid;border-radius:2px;border-color:var(--border-color);background-color:#fff}.vue-interactive-keys .error-message{color:var(--error-color)}
|
|
50
|
-
`)();function nl(e){const t=e||'[data-interactive-key="true"]';return[...document.querySelectorAll(t)].map(s=>rl(s,vp(s)))}function _p(){nl()}function vp(e){return{observationMatrixId:Number(e.getAttribute("data-observation-matrix-id")),apiConfig:{baseURL:e.getAttribute("data-base-url")||"",projectToken:e.getAttribute("data-project-token")||void 0,projectId:Number(e.getAttribute("data-project-id"))||void 0,userToken:e.getAttribute("data-user-token")||void 0,csrfToken:e.getAttribute("data-csrf-token")||void 0}}}function rl(e,t){const{apiConfig:n,observationMatrixId:r}=t;if(!r)throw"Missing observation matrix ID";if(!n||!n.projectToken&&!n.csrfToken&&!(n.projectId&&n.userToken))throw"Missing API configuration";const s=Bc(gp,{observationMatrixId:r,apiConfig:n});return s.use(Kc()),s.mount(e),s}window.addEventListener("DOMContentLoaded",_p),be.createInteractiveKey=rl,be.discoverInteractiveKey=nl,Object.defineProperties(be,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(O,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],n):(O=typeof globalThis<"u"?globalThis:O||self,n(O.Distinguish={},O.Vue,O.Pinia))})(this,function(O,n,Q){"use strict";function xe(e,t){return function(){return e.apply(t,arguments)}}const{toString:St}=Object.prototype,{getPrototypeOf:de}=Object,Y=(e=>t=>{const r=St.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),x=e=>(e=e.toLowerCase(),t=>Y(t)===e),Z=e=>t=>typeof t===e,{isArray:j}=Array,H=Z("undefined");function Bt(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Oe=x("ArrayBuffer");function Ct(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Oe(e.buffer),t}const Nt=Z("string"),R=Z("function"),De=Z("number"),v=e=>e!==null&&typeof e=="object",Tt=e=>e===!0||e===!1,ee=e=>{if(Y(e)!=="object")return!1;const t=de(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rt=x("Date"),xt=x("File"),Ot=x("Blob"),Dt=x("FileList"),Vt=e=>v(e)&&R(e.pipe),At=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=Y(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},It=x("URLSearchParams"),[Lt,Ut,$t,Pt]=["ReadableStream","Request","Response","Headers"].map(x),Ft=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),j(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(o=0;o<a;o++)c=i[o],t.call(null,e[c],c,e)}}function Ve(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,s;for(;o-- >0;)if(s=r[o],t===s.toLowerCase())return s;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ae=e=>!H(e)&&e!==L;function pe(){const{caseless:e}=Ae(this)&&this||{},t={},r=(o,s)=>{const i=e&&Ve(t,s)||s;ee(t[i])&&ee(o)?t[i]=pe(t[i],o):ee(o)?t[i]=pe({},o):j(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&K(arguments[o],r);return t}const Mt=(e,t,r,{allOwnKeys:o}={})=>(K(t,(s,i)=>{r&&R(s)?e[i]=xe(s,r):e[i]=s},{allOwnKeys:o}),e),jt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qt=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ht=(e,t,r,o)=>{let s,i,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=r!==!1&&de(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Kt=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},zt=e=>{if(!e)return null;if(j(e))return e;let t=e.length;if(!De(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Jt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&de(Uint8Array)),Wt=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Gt=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},Xt=x("HTMLFormElement"),Qt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,s){return o.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Yt=x("RegExp"),Le=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};K(r,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(o[i]=a||s)}),Object.defineProperties(e,o)},Zt=e=>{Le(e,(t,r)=>{if(R(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(R(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},vt=(e,t)=>{const r={},o=s=>{s.forEach(i=>{r[i]=!0})};return j(e)?o(e):o(String(e).split(t)),r},en=()=>{},tn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ue="abcdefghijklmnopqrstuvwxyz",Ue="0123456789",$e={DIGIT:Ue,ALPHA:ue,ALPHA_DIGIT:ue+ue.toUpperCase()+Ue},nn=(e=16,t=$e.ALPHA_DIGIT)=>{let r="";const{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r};function rn(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const on=e=>{const t=new Array(10),r=(o,s)=>{if(v(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=j(o)?[]:{};return K(o,(a,c)=>{const u=r(a,s+1);!H(u)&&(i[c]=u)}),t[s]=void 0,i}}return o};return r(e,0)},sn=x("AsyncFunction"),an=e=>e&&(v(e)||R(e))&&R(e.then)&&R(e.catch),Pe=((e,t)=>e?setImmediate:t?((r,o)=>(L.addEventListener("message",({source:s,data:i})=>{s===L&&i===r&&o.length&&o.shift()()},!1),s=>{o.push(s),L.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",R(L.postMessage)),cn=typeof queueMicrotask<"u"?queueMicrotask.bind(L):typeof process<"u"&&process.nextTick||Pe,l={isArray:j,isArrayBuffer:Oe,isBuffer:Bt,isFormData:At,isArrayBufferView:Ct,isString:Nt,isNumber:De,isBoolean:Tt,isObject:v,isPlainObject:ee,isReadableStream:Lt,isRequest:Ut,isResponse:$t,isHeaders:Pt,isUndefined:H,isDate:Rt,isFile:xt,isBlob:Ot,isRegExp:Yt,isFunction:R,isStream:Vt,isURLSearchParams:It,isTypedArray:Jt,isFileList:Dt,forEach:K,merge:pe,extend:Mt,trim:Ft,stripBOM:jt,inherits:qt,toFlatObject:Ht,kindOf:Y,kindOfTest:x,endsWith:Kt,toArray:zt,forEachEntry:Wt,matchAll:Gt,isHTMLForm:Xt,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:Le,freezeMethods:Zt,toObjectSet:vt,toCamelCase:Qt,noop:en,toFiniteNumber:tn,findKey:Ve,global:L,isContextDefined:Ae,ALPHABET:$e,generateString:nn,isSpecCompliantForm:rn,toJSONObject:on,isAsyncFn:sn,isThenable:an,setImmediate:Pe,asap:cn};function g(e,t,r,o,s){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),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}l.inherits(g,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:l.toJSONObject(this.config),code:this.code,status:this.status}}});const Fe=g.prototype,Me={};["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=>{Me[e]={value:e}}),Object.defineProperties(g,Me),Object.defineProperty(Fe,"isAxiosError",{value:!0}),g.from=(e,t,r,o,s,i)=>{const a=Object.create(Fe);return l.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),g.call(a,e.message,t,r,o,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ln=null;function fe(e){return l.isPlainObject(e)||l.isArray(e)}function je(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function qe(e,t,r){return e?e.concat(t).map(function(s,i){return s=je(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function dn(e){return l.isArray(e)&&!e.some(fe)}const pn=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function te(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!l.isUndefined(h[y])});const o=r.metaTokens,s=r.visitor||p,i=r.dots,a=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(s))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(l.isDate(m))return m.toISOString();if(!u&&l.isBlob(m))throw new g("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(m)||l.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,y,h){let _=m;if(m&&!h&&typeof m=="object"){if(l.endsWith(y,"{}"))y=o?y:y.slice(0,-2),m=JSON.stringify(m);else if(l.isArray(m)&&dn(m)||(l.isFileList(m)||l.endsWith(y,"[]"))&&(_=l.toArray(m)))return y=je(y),_.forEach(function(S,V){!(l.isUndefined(S)||S===null)&&t.append(a===!0?qe([y],V,i):a===null?y:y+"[]",d(S))}),!1}return fe(m)?!0:(t.append(qe(h,y,i),d(m)),!1)}const f=[],b=Object.assign(pn,{defaultVisitor:p,convertValue:d,isVisitable:fe});function k(m,y){if(!l.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),l.forEach(m,function(_,w){(!(l.isUndefined(_)||_===null)&&s.call(t,_,l.isString(w)?w.trim():w,y,b))===!0&&k(_,y?y.concat(w):[w])}),f.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return k(e),t}function He(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function me(e,t){this._pairs=[],e&&te(e,this,t)}const Ke=me.prototype;Ke.append=function(t,r){this._pairs.push([t,r])},Ke.toString=function(t){const r=t?function(o){return t.call(this,o,He)}:He;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function un(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ze(e,t,r){if(!t)return e;const o=r&&r.encode||un,s=r&&r.serialize;let i;if(s?i=s(t,r):i=l.isURLSearchParams(t)?t.toString():new me(t,r).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Je{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(o){o!==null&&t(o)})}}const We={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:me,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},he=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,mn=he&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),hn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gn=he&&window.location.href||"http://localhost",C={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:he,hasStandardBrowserEnv:mn,hasStandardBrowserWebWorkerEnv:hn,navigator:ge,origin:gn},Symbol.toStringTag,{value:"Module"})),...fn};function yn(e,t){return te(e,new C.classes.URLSearchParams,Object.assign({visitor:function(r,o,s,i){return C.isNode&&l.isBuffer(r)?(this.append(o,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function bn(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _n(e){const t={},r=Object.keys(e);let o;const s=r.length;let i;for(o=0;o<s;o++)i=r[o],t[i]=e[i];return t}function Ge(e){function t(r,o,s,i){let a=r[i++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),u=i>=r.length;return a=!a&&l.isArray(s)?s.length:a,u?(l.hasOwnProp(s,a)?s[a]=[s[a],o]:s[a]=o,!c):((!s[a]||!l.isObject(s[a]))&&(s[a]=[]),t(r,o,s[a],i)&&l.isArray(s[a])&&(s[a]=_n(s[a])),!c)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(o,s)=>{t(bn(o),s,r,0)}),r}return null}function En(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(e)}const z={transitional:We,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",s=o.indexOf("application/json")>-1,i=l.isObject(t);if(i&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return s?JSON.stringify(Ge(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return yn(t,this.formSerializer).toString();if((c=l.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return te(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),En(t)):t}],transformResponse:[function(t){const r=this.transitional||z.transitional,o=r&&r.forcedJSONParsing,s=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(o&&!this.responseType||s)){const a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?g.from(c,g.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{z.headers[e]={}});const kn=l.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"]),wn=e=>{const t={};let r,o,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),o=a.substring(s+1).trim(),!(!r||t[r]&&kn[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},Xe=Symbol("internals");function J(e){return e&&String(e).trim().toLowerCase()}function ne(e){return e===!1||e==null?e:l.isArray(e)?e.map(ne):String(e)}function Sn(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const Bn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ye(e,t,r,o,s){if(l.isFunction(o))return o.call(this,t,r);if(s&&(t=r),!!l.isString(t)){if(l.isString(o))return t.indexOf(o)!==-1;if(l.isRegExp(o))return o.test(t)}}function Cn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function Nn(e,t){const r=l.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(s,i,a){return this[o].call(this,t,s,i,a)},configurable:!0})})}class N{constructor(t){t&&this.set(t)}set(t,r,o){const s=this;function i(c,u,d){const p=J(u);if(!p)throw new Error("header name must be a non-empty string");const f=l.findKey(s,p);(!f||s[f]===void 0||d===!0||d===void 0&&s[f]!==!1)&&(s[f||u]=ne(c))}const a=(c,u)=>l.forEach(c,(d,p)=>i(d,p,u));if(l.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(l.isString(t)&&(t=t.trim())&&!Bn(t))a(wn(t),r);else if(l.isHeaders(t))for(const[c,u]of t.entries())i(u,c,o);else t!=null&&i(r,t,o);return this}get(t,r){if(t=J(t),t){const o=l.findKey(this,t);if(o){const s=this[o];if(!r)return s;if(r===!0)return Sn(s);if(l.isFunction(r))return r.call(this,s,o);if(l.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=J(t),t){const o=l.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||ye(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let s=!1;function i(a){if(a=J(a),a){const c=l.findKey(o,a);c&&(!r||ye(o,o[c],c,r))&&(delete o[c],s=!0)}}return l.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let o=r.length,s=!1;for(;o--;){const i=r[o];(!t||ye(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,o={};return l.forEach(this,(s,i)=>{const a=l.findKey(o,i);if(a){r[a]=ne(s),delete r[i];return}const c=t?Cn(i):String(i).trim();c!==i&&delete r[i],r[c]=ne(s),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return l.forEach(this,(o,s)=>{o!=null&&o!==!1&&(r[s]=t&&l.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[Xe]=this[Xe]={accessors:{}}).accessors,s=this.prototype;function i(a){const c=J(a);o[c]||(Nn(s,a),o[c]=!0)}return l.isArray(t)?t.forEach(i):i(t),this}}N.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(N.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}}),l.freezeMethods(N);function be(e,t){const r=this||z,o=t||r,s=N.from(o.headers);let i=o.data;return l.forEach(e,function(c){i=c.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Qe(e){return!!(e&&e.__CANCEL__)}function q(e,t,r){g.call(this,e??"canceled",g.ERR_CANCELED,t,r),this.name="CanceledError"}l.inherits(q,g,{__CANCEL__:!0});function Ye(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new g("Request failed with status code "+r.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Tn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Rn(e,t){e=e||10;const r=new Array(e),o=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),p=o[i];a||(a=d),r[s]=u,o[s]=d;let f=i,b=0;for(;f!==s;)b+=r[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-a<t)return;const k=p&&d-p;return k?Math.round(b*1e3/k):void 0}}function xn(e,t){let r=0,o=1e3/t,s,i;const a=(d,p=Date.now())=>{r=p,s=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),f=p-r;f>=o?a(d,p):(s=d,i||(i=setTimeout(()=>{i=null,a(s)},o-f)))},()=>s&&a(s)]}const re=(e,t,r=3)=>{let o=0;const s=Rn(50,250);return xn(i=>{const a=i.loaded,c=i.lengthComputable?i.total:void 0,u=a-o,d=s(u),p=a<=c;o=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&p?(c-a)/d:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},r)},Ze=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},ve=e=>(...t)=>l.asap(()=>e(...t)),On=C.hasStandardBrowserEnv?function(){const t=C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent),r=document.createElement("a");let o;function s(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=s(window.location.href),function(a){const c=l.isString(a)?s(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),Dn=C.hasStandardBrowserEnv?{write(e,t,r,o,s,i){const a=[e+"="+encodeURIComponent(t)];l.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),l.isString(o)&&a.push("path="+o),l.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function An(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function et(e,t){return e&&!Vn(t)?An(e,t):t}const tt=e=>e instanceof N?{...e}:e;function U(e,t){t=t||{};const r={};function o(d,p,f){return l.isPlainObject(d)&&l.isPlainObject(p)?l.merge.call({caseless:f},d,p):l.isPlainObject(p)?l.merge({},p):l.isArray(p)?p.slice():p}function s(d,p,f){if(l.isUndefined(p)){if(!l.isUndefined(d))return o(void 0,d,f)}else return o(d,p,f)}function i(d,p){if(!l.isUndefined(p))return o(void 0,p)}function a(d,p){if(l.isUndefined(p)){if(!l.isUndefined(d))return o(void 0,d)}else return o(void 0,p)}function c(d,p,f){if(f in t)return o(d,p);if(f in e)return o(void 0,d)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(d,p)=>s(tt(d),tt(p),!0)};return l.forEach(Object.keys(Object.assign({},e,t)),function(p){const f=u[p]||s,b=f(e[p],t[p],p);l.isUndefined(b)&&f!==c||(r[p]=b)}),r}const nt=e=>{const t=U({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;t.headers=a=N.from(a),t.url=ze(et(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(l.isFormData(r)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[d,...p]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...p].join("; "))}}if(C.hasStandardBrowserEnv&&(o&&l.isFunction(o)&&(o=o(t)),o||o!==!1&&On(t.url))){const d=s&&i&&Dn.read(i);d&&a.set(s,d)}return t},In=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,o){const s=nt(e);let i=s.data;const a=N.from(s.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=s,p,f,b,k,m;function y(){k&&k(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function _(){if(!h)return;const S=N.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};Ye(function(M){r(M),y()},function(M){o(M),y()},T),h=null}"onloadend"in h?h.onloadend=_:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(_)},h.onabort=function(){h&&(o(new g("Request aborted",g.ECONNABORTED,e,h)),h=null)},h.onerror=function(){o(new g("Network Error",g.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let V=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||We;s.timeoutErrorMessage&&(V=s.timeoutErrorMessage),o(new g(V,T.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),"setRequestHeader"in h&&l.forEach(a.toJSON(),function(V,T){h.setRequestHeader(T,V)}),l.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),d&&([b,m]=re(d,!0),h.addEventListener("progress",b)),u&&h.upload&&([f,k]=re(u),h.upload.addEventListener("progress",f),h.upload.addEventListener("loadend",k)),(s.cancelToken||s.signal)&&(p=S=>{h&&(o(!S||S.type?new q(null,e,h):S),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const w=Tn(s.url);if(w&&C.protocols.indexOf(w)===-1){o(new g("Unsupported protocol "+w+":",g.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Ln=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,s;const i=function(d){if(!s){s=!0,c();const p=d instanceof Error?d:this.reason;o.abort(p instanceof g?p:new q(p instanceof Error?p.message:p))}};let a=t&&setTimeout(()=>{a=null,i(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:u}=o;return u.unsubscribe=()=>l.asap(c),u}},Un=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let o=0,s;for(;o<r;)s=o+t,yield e.slice(o,s),o=s},$n=async function*(e,t){for await(const r of Pn(e))yield*Un(r,t)},Pn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},rt=(e,t,r,o)=>{const s=$n(e,t);let i=0,a,c=u=>{a||(a=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await s.next();if(d){c(),u.close();return}let f=p.byteLength;if(r){let b=i+=f;r(b)}u.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(u){return c(u),s.return()}},{highWaterMark:2})},oe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ot=oe&&typeof ReadableStream=="function",Fn=oe&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),st=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Mn=ot&&st(()=>{let e=!1;const t=new Request(C.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),it=64*1024,_e=ot&&st(()=>l.isReadableStream(new Response("").body)),se={stream:_e&&(e=>e.body)};oe&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!se[t]&&(se[t]=l.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new g(`Response type '${t}' is not supported`,g.ERR_NOT_SUPPORT,o)})})})(new Response);const jn=async e=>{if(e==null)return 0;if(l.isBlob(e))return e.size;if(l.isSpecCompliantForm(e))return(await new Request(C.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(l.isArrayBufferView(e)||l.isArrayBuffer(e))return e.byteLength;if(l.isURLSearchParams(e)&&(e=e+""),l.isString(e))return(await Fn(e)).byteLength},qn=async(e,t)=>{const r=l.toFiniteNumber(e.getContentLength());return r??jn(t)},Ee={http:ln,xhr:In,fetch:oe&&(async e=>{let{url:t,method:r,data:o,signal:s,cancelToken:i,timeout:a,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:p,withCredentials:f="same-origin",fetchOptions:b}=nt(e);d=d?(d+"").toLowerCase():"text";let k=Ln([s,i&&i.toAbortSignal()],a),m;const y=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let h;try{if(u&&Mn&&r!=="get"&&r!=="head"&&(h=await qn(p,o))!==0){let T=new Request(t,{method:"POST",body:o,duplex:"half"}),I;if(l.isFormData(o)&&(I=T.headers.get("content-type"))&&p.setContentType(I),T.body){const[M,le]=Ze(h,re(ve(u)));o=rt(T.body,it,M,le)}}l.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;m=new Request(t,{...b,signal:k,method:r.toUpperCase(),headers:p.normalize().toJSON(),body:o,duplex:"half",credentials:_?f:void 0});let w=await fetch(m);const S=_e&&(d==="stream"||d==="response");if(_e&&(c||S&&y)){const T={};["status","statusText","headers"].forEach(wt=>{T[wt]=w[wt]});const I=l.toFiniteNumber(w.headers.get("content-length")),[M,le]=c&&Ze(I,re(ve(c),!0))||[];w=new Response(rt(w.body,it,M,()=>{le&&le(),y&&y()}),T)}d=d||"text";let V=await se[l.findKey(se,d)||"text"](w,e);return!S&&y&&y(),await new Promise((T,I)=>{Ye(T,I,{data:V,headers:N.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:m})})}catch(_){throw y&&y(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,e,m),{cause:_.cause||_}):g.from(_,_&&_.code,e,m)}})};l.forEach(Ee,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const at=e=>`- ${e}`,Hn=e=>l.isFunction(e)||e===null||e===!1,ct={getAdapter:e=>{e=l.isArray(e)?e:[e];const{length:t}=e;let r,o;const s={};for(let i=0;i<t;i++){r=e[i];let a;if(o=r,!Hn(r)&&(o=Ee[(a=String(r)).toLowerCase()],o===void 0))throw new g(`Unknown adapter '${a}'`);if(o)break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
4
|
+
`+i.map(at).join(`
|
|
5
|
+
`):" "+at(i[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Ee};function ke(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new q(null,e)}function lt(e){return ke(e),e.headers=N.from(e.headers),e.data=be.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ct.getAdapter(e.adapter||z.adapter)(e).then(function(o){return ke(e),o.data=be.call(e,e.transformResponse,o),o.headers=N.from(o.headers),o},function(o){return Qe(o)||(ke(e),o&&o.response&&(o.response.data=be.call(e,e.transformResponse,o.response),o.response.headers=N.from(o.response.headers))),Promise.reject(o)})}const dt="1.7.7",we={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{we[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const pt={};we.transitional=function(t,r,o){function s(i,a){return"[Axios v"+dt+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,c)=>{if(t===!1)throw new g(s(a," has been removed"+(r?" in "+r:"")),g.ERR_DEPRECATED);return r&&!pt[a]&&(pt[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,c):!0}};function Kn(e,t,r){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],a=t[i];if(a){const c=e[i],u=c===void 0||a(c,i,e);if(u!==!0)throw new g("option "+i+" must be "+u,g.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new g("Unknown option "+i,g.ERR_BAD_OPTION)}}const Se={assertOptions:Kn,validators:we},A=Se.validators;class ${constructor(t){this.defaults=t,this.interceptors={request:new Je,response:new Je}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
6
|
+
`+i):o.stack=i}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=U(this.defaults,r);const{transitional:o,paramsSerializer:s,headers:i}=r;o!==void 0&&Se.assertOptions(o,{silentJSONParsing:A.transitional(A.boolean),forcedJSONParsing:A.transitional(A.boolean),clarifyTimeoutError:A.transitional(A.boolean)},!1),s!=null&&(l.isFunction(s)?r.paramsSerializer={serialize:s}:Se.assertOptions(s,{encode:A.function,serialize:A.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&l.merge(i.common,i[r.method]);i&&l.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=N.concat(a,i);const c=[];let u=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(u=u&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let p,f=0,b;if(!u){const m=[lt.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,d),b=m.length,p=Promise.resolve(r);f<b;)p=p.then(m[f++],m[f++]);return p}b=c.length;let k=r;for(f=0;f<b;){const m=c[f++],y=c[f++];try{k=m(k)}catch(h){y.call(this,h);break}}try{p=lt.call(this,k)}catch(m){return Promise.reject(m)}for(f=0,b=d.length;f<b;)p=p.then(d[f++],d[f++]);return p}getUri(t){t=U(this.defaults,t);const r=et(t.baseURL,t.url);return ze(r,t.params,t.paramsSerializer)}}l.forEach(["delete","get","head","options"],function(t){$.prototype[t]=function(r,o){return this.request(U(o||{},{method:t,url:r,data:(o||{}).data}))}}),l.forEach(["post","put","patch"],function(t){function r(o){return function(i,a,c){return this.request(U(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}$.prototype[t]=r(),$.prototype[t+"Form"]=r(!0)});class Be{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(c=>{o.subscribe(c),i=c}).then(s);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,c){o.reason||(o.reason=new q(i,a,c),r(o.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=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Be(function(s){t=s}),cancel:t}}}function zn(e){return function(r){return e.apply(null,r)}}function Jn(e){return l.isObject(e)&&e.isAxiosError===!0}const Ce={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(Ce).forEach(([e,t])=>{Ce[t]=e});function ut(e){const t=new $(e),r=xe($.prototype.request,t);return l.extend(r,$.prototype,t,{allOwnKeys:!0}),l.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return ut(U(e,s))},r}const E=ut(z);E.Axios=$,E.CanceledError=q,E.CancelToken=Be,E.isCancel=Qe,E.VERSION=dt,E.toFormData=te,E.AxiosError=g,E.Cancel=E.CanceledError,E.all=function(t){return Promise.all(t)},E.spread=zn,E.isAxiosError=Jn,E.mergeConfig=U,E.AxiosHeaders=N,E.formToJSON=e=>Ge(l.isHTMLForm(e)?new FormData(e):e),E.getAdapter=ct.getAdapter,E.HttpStatusCode=Ce,E.default=E;const ft=(e={})=>{const t=P(),{baseURL:r,projectId:o,projectToken:s,userToken:i,csrfToken:a}=t.getAPIConfig,c={baseURL:r,params:{project_id:o,project_token:s,token:i},...e};return(!s||!(o&&i)&&a)&&Object.assign(c,{headers:{"X-CSRF-Token":a}}),E.create({...c})};class Wn{static key(t,r){return ft().get(`/observation_matrices/${t}/key`,r)}}const W={Used:"used",Useful:"useful",Useless:"useless"},Gn=e=>({characterStateId:e.id,depictionIds:e.depiction_ids,label:e.label,position:e.position,...mt(e)}),Xn=e=>({depictionId:e.id,caption:e.caption,figureLabel:e.figure_label,imageUrl:e.image.medium}),G={Qualitative:"Descriptor::Qualitative",Continuous:"Descriptor::Continuous",Sample:"Descriptor::Sample",PresenceAbsence:"Descriptor::PresenceAbsence"},X=e=>({descriptorId:e.id,name:e.name,description:e.description,position:e.position,status:e.status,type:e.type,depictionIds:e.depiction_ids,usefulness:e.usefulness,weight:e.weight}),Qn=e=>({...X(e),defaultUnit:e.default_unit,max:e.max,min:e.min}),Yn=e=>({...X(e),defaultUnit:e.default_unit,max:e.max,min:e.min}),Zn=e=>({...X(e),states:e.states.map(t=>mt(t))}),vn=e=>({...X(e),characterStates:e.states.map(t=>Gn(t))}),er=e=>{switch(e.type){case G.Continuous:return Qn(e);case G.Sample:return Yn(e);case G.PresenceAbsence:return Zn(e);case G.Qualitative:return vn(e);default:return X(e)}},tr=e=>({observationMatrixId:e.observation_matrix_id,name:e.observation_matrix.name,globalId:e.observation_matrix.global_id}),mt=e=>({name:e.name,numberOfObjects:e.number_of_objects,status:e.status}),ht=e=>({errorDescriptors:e.error_descriptors,errors:e.errors,objectLabel:e.object.object_label,objectTag:e.object.object_tag,observationObjectId:e.object.observation_object_id,observationObjectType:e.object.observation_object_type,rowId:e.object.id}),nr=e=>({keywordId:e.id,definition:e.description,name:e.name}),rr=e=>({languageId:e.id,name:e.english_name}),D=Q.defineStore("observationMatrix",{state:()=>({observationMatrix:void 0,citation:void 0,descriptors:[],eliminated:[],remaining:[],availableKeywords:[],availableLanguages:[]}),getters:{getCitation:e=>e.citation,getObservationMatrix:e=>e.observationMatrix,getDescriptors:e=>e.descriptors,getDescriptorById:e=>t=>e.descriptors.find(r=>r.descriptorId===t),getDescriptorsUsed:e=>e.descriptors.filter(t=>t.status===W.Used),getDescriptorsUseless:e=>e.descriptors.filter(t=>t.status===W.Useless),getDescriptorsUseful:e=>e.descriptors.filter(t=>t.status===W.Useful),getEliminated:e=>e.eliminated,getKeywords:e=>e.availableKeywords,getLanguages:e=>e.availableLanguages,getRemaining:e=>e.remaining},actions:{setDescriptors(e){this.descriptors=e},setEliminated(e){this.eliminated=e},setRemaining(e){this.remaining=e},setLanguages(e){this.availableLanguages=e},setKeywords(e){this.availableKeywords=e},setObservationMatrix(e){this.observationMatrix=e},async requestInteractiveKey({observationMatrixId:e,params:t={},opt:r={}}){const o=await Wn.key(e,{params:t}),{data:s}=o;return r.refreshOnlyTaxa||(this.setObservationMatrix(tr(s)),this.setDescriptors(s.list_of_descriptors.map(i=>er(i))),this.setKeywords(s.descriptor_available_keywords.map(i=>nr(i))),this.setLanguages(s.descriptor_available_languages.map(i=>rr(i)))),this.setEliminated(s.eliminated.map(i=>ht(i))),this.setRemaining(s.remaining.map(i=>ht(i))),o}}}),B=Q.defineStore("filter",{state:()=>({descriptors:{},eliminateUnknown:void 0,errorTolerance:void 0,identifiedToRank:void 0,keywordIds:[],languageId:void 0,rowIds:[],sorting:void 0}),getters:{getKeywordIds:e=>e.keywordIds,getLanguageId:e=>e.languageId,getRowIds:e=>e.rowIds,getDescriptors:e=>e.descriptors,getIdentifiedToRank:e=>e.identifiedToRank,getEliminateUknown:e=>e.eliminateUnknown,getErrorTolerance:e=>e.errorTolerance,getSorting:e=>e.sorting,getDescriptorValueById:e=>t=>{const r=e.descriptors[t];return typeof r=="boolean"?r:r||""},getFilterParams:e=>({selected_descriptors:Object.entries(e.descriptors).map(([r,o])=>Array.isArray(o)?`${r}:${o.join("|")}`:`${r}:${o}`).join("||"),language_id:e.languageId,keyword_ids:e.keywordIds,sorting:e.sorting,identified_to_rank:e.identifiedToRank,error_tolerance:e.errorTolerance,eliminate_unknown:e.eliminateUnknown,row_filter:e.rowIds.join("|")})},actions:{setDescriptor({descriptorId:e,value:t}){this.descriptors[e]=t},removeDescriptor(e){delete this.descriptors[e]},removeKeywordId(e){const t=this.keywordIds.findIndex(r=>r===e);t>-1&&this.keywordIds.splice(t,1)},addKeywordId(e){this.keywordIds.push(e)},setLanguageId(e){this.languageId=e},setErrorTolerance(e){this.errorTolerance=e},setEliminateUnknown(e){this.eliminateUnknown=e}}}),P=Q.defineStore("settings",{state:()=>({gridLayout:"distinguish-layout-mode-1",isLoading:!1,isRefreshing:!1,refreshOnlyTaxa:!1,rowFilter:!0,shouldUpdate:!0,observationMatrixId:void 0,errorMessage:"",apiConfig:{baseURL:"",projectId:void 0,projectToken:void 0,userToken:void 0}}),getters:{getErrorMessage:e=>e.errorMessage,getIsLoading:e=>e.isLoading,getLayout:e=>e.gridLayout,getRefreshOnlyTaxa:e=>e.refreshOnlyTaxa,getRowFilter:e=>e.rowFilter,getShouldUpdate:e=>e.shouldUpdate,getObservationMatrixId:e=>e.observationMatrixId,getAPIConfig:e=>e.apiConfig},actions:{setObservationMatrixId(e){this.observationMatrixId=e},setShouldUpdate(e){this.shouldUpdate=e},setRefreshOnlyTaxa(e){this.refreshOnlyTaxa=e},setAPIConfig(e){this.apiConfig=e},checkUpdate(){const e=B(),t=D(),r=this.observationMatrixId;this.shouldUpdate&&r&&(this.isLoading=!0,t.requestInteractiveKey({observationMatrixId:r,params:e.getFilterParams,opt:{refreshOnlyTaxa:this.refreshOnlyTaxa}}).then(o=>this.errorMessage="").catch(o=>this.errorMessage=o.message).finally(()=>this.isLoading=!1))}}}),or=n.defineComponent({__name:"FilterEliminateUnknowns",setup(e){const t=B(),r=n.computed({get:()=>!!t.getEliminateUknown,set:o=>{t.setEliminateUnknown(o)}});return(o,s)=>(n.openBlock(),n.createElementBlock("label",null,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>r.value=i),type:"checkbox"},null,512),[[n.vModelCheckbox,r.value]]),s[1]||(s[1]=n.createTextVNode(" Eliminate unknowns "))]))}}),sr=["value"],ir=n.defineComponent({__name:"FilterErrorTolerance",setup(e){const t=[0,1,2],r=B(),o=n.computed({get:()=>r.getErrorTolerance,set:s=>{r.setErrorTolerance(s)}});return(s,i)=>(n.openBlock(),n.createElementBlock("div",null,[i[2]||(i[2]=n.createElementVNode("label",{for:"languages",class:"distinguish-input-label"}," Error tolerance ",-1)),n.withDirectives(n.createElementVNode("select",{"onUpdate:modelValue":i[0]||(i[0]=a=>o.value=a),name:"languages",role:"listbox"},[i[1]||(i[1]=n.createElementVNode("option",{value:""},null,-1)),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(t,a=>n.createElementVNode("option",{key:a,value:a},n.toDisplayString(a),9,sr)),64))],512),[[n.vModelSelect,o.value]])]))}}),ar=["otu","subspecies","species","subgenus","genus","subtribe","tribe","subfamily","family"],cr=n.defineComponent({__name:"FilterRank",setup(e){const t=B(),r=n.computed({get(){return t.getIdentifiedToRank},set(o){t.$patch({identifiedToRank:o})}});return(o,s)=>(n.openBlock(),n.createElementBlock("div",null,[s[2]||(s[2]=n.createElementVNode("label",{class:"distinguish-input-label"},"Identified to rank",-1)),n.withDirectives(n.createElementVNode("select",{"onUpdate:modelValue":s[0]||(s[0]=i=>r.value=i)},[s[1]||(s[1]=n.createElementVNode("option",{value:void 0},null,-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(ar),i=>(n.openBlock(),n.createElementBlock("option",{key:i},n.toDisplayString(i),1))),128))],512),[[n.vModelSelect,r.value]])]))}}),lr=n.defineComponent({__name:"FilterSort",setup(e){const t=["ordered","weighted","optimized"],r=B(),o=n.computed({get(){return r.getSorting},set(s){r.$patch({sorting:s})}});return(s,i)=>(n.openBlock(),n.createElementBlock("div",null,[i[2]||(i[2]=n.createElementVNode("label",{class:"distinguish-input-label"},"Descriptor sorting",-1)),n.withDirectives(n.createElementVNode("select",{"onUpdate:modelValue":i[0]||(i[0]=a=>o.value=a)},[i[1]||(i[1]=n.createElementVNode("option",{value:void 0},null,-1)),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(t,a=>n.createElementVNode("option",{key:a},n.toDisplayString(a),1)),64))],512),[[n.vModelSelect,o.value]])]))}}),dr=["value"],pr=n.defineComponent({__name:"FilterLanguage",setup(e){const t=B(),r=D(),o=n.computed({get:()=>t.getLanguageId,set:s=>{t.setLanguageId(Number(s))}});return(s,i)=>(n.openBlock(),n.createElementBlock("div",null,[i[1]||(i[1]=n.createElementVNode("label",{for:"languages",class:"distinguish-input-label"}," Languages ",-1)),n.withDirectives(n.createElementVNode("select",{"onUpdate:modelValue":i[0]||(i[0]=a=>o.value=a),name:"languages",role:"listbox"},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(r).getLanguages,({languageId:a,name:c})=>(n.openBlock(),n.createElementBlock("option",{key:a,value:a},n.toDisplayString(c),9,dr))),128))],512),[[n.vModelSelect,o.value]])]))}}),ur=["disabled"],ie=n.defineComponent({__name:"VBtn",props:{color:{default:"primary"},size:{default:"medium"},disabled:{type:Boolean}},setup(e){const t=e,r=n.computed(()=>[`distinguish-btn-${t.color}-color`,`distinguish-btn-${t.size}-size`]);return(o,s)=>(n.openBlock(),n.createElementBlock("button",{type:"button",class:n.normalizeClass(["distinguish-btn",r.value]),disabled:o.disabled},[n.renderSlot(o.$slots,"default")],10,ur))}}),fr={class:"distinguish-modal-wrapper"},mr={class:"distinguish-modal-header"},hr={class:"distinguish-modal-body"},gr={class:"distinguish-modal-footer"},Ne=n.defineComponent({__name:"VModal",props:{containerClass:{},containerStyle:{}},emits:["close"],setup(e,{emit:t}){const r=t,o=s=>{s.preventDefault(),s.key==="Escape"&&r("close")};return n.onMounted(()=>document.addEventListener("keydown",o)),n.onUnmounted(()=>document.removeEventListener("keydown",o)),(s,i)=>(n.openBlock(),n.createBlock(n.Transition,{name:"distinguish-modal"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"distinguish-modal-mask",onClick:i[2]||(i[2]=a=>r("close")),onKey:i[3]||(i[3]=a=>r("close"))},[n.createElementVNode("div",fr,[n.createElementVNode("div",{class:n.normalizeClass(["distinguish-modal-container",s.containerClass]),style:n.normalizeStyle({...s.containerStyle}),onClick:i[1]||(i[1]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",mr,[n.createElementVNode("div",{class:"distinguish-modal-close",onClick:i[0]||(i[0]=a=>r("close"))}),n.renderSlot(s.$slots,"header")]),n.createElementVNode("div",hr,[n.renderSlot(s.$slots,"body")]),n.createElementVNode("div",gr,[n.renderSlot(s.$slots,"footer")])],6)])],32)]),_:3}))}}),yr={class:"distinguish-list-checkboxes"},br=["value"],_r=n.defineComponent({__name:"FilterKeywords",setup(e){const t=D(),r=B(),o=n.ref(!1),s=n.computed({get:()=>r.getKeywordIds,set:i=>{r.$patch({keywordIds:i})}});return(i,a)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(ie,{color:"primary",size:"medium",disabled:!n.unref(t).getKeywords.length,title:n.unref(t).getKeywords.length?"":"No tags defined.",onClick:a[0]||(a[0]=c=>o.value=!0)},{default:n.withCtx(()=>a[3]||(a[3]=[n.createTextVNode(" Keyword ")])),_:1},8,["disabled","title"]),o.value?(n.openBlock(),n.createBlock(Ne,{key:0,onClose:a[2]||(a[2]=c=>o.value=!1)},{header:n.withCtx(()=>a[4]||(a[4]=[n.createElementVNode("h3",null,"Keywords",-1)])),body:n.withCtx(()=>[n.createElementVNode("ul",yr,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(t).getKeywords,({keywordId:c,name:u})=>(n.openBlock(),n.createElementBlock("li",{key:c},[n.createElementVNode("label",null,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=d=>s.value=d),value:c,type:"checkbox"},null,8,br),[[n.vModelCheckbox,s.value]]),n.createTextVNode(" "+n.toDisplayString(u),1)])]))),128))])]),_:1})):n.createCommentVNode("",!0)],64))}}),Er=n.defineComponent({__name:"SettingRefresh",setup(e){const t=P(),r=n.computed({get:()=>t.getRefreshOnlyTaxa,set:o=>{t.setRefreshOnlyTaxa(o)}});return(o,s)=>(n.openBlock(),n.createElementBlock("label",null,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>r.value=i),type:"checkbox"},null,512),[[n.vModelCheckbox,r.value]]),s[1]||(s[1]=n.createTextVNode(" Refresh only taxa "))]))}}),ae=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},kr={},wr={class:"distinguish-menu-list"};function Sr(e,t){return n.openBlock(),n.createElementBlock("ul",wr,[n.renderSlot(e.$slots,"default")])}const Br=ae(kr,[["render",Sr]]),Cr={},Nr={class:"distinguish-list-item"};function Tr(e,t){return n.openBlock(),n.createElementBlock("li",Nr,[n.renderSlot(e.$slots,"default")])}const F=ae(Cr,[["render",Tr]]),gt={"distinguish-layout-mode-1":"distinguish-layout-mode-2","distinguish-layout-mode-2":"distinguish-layout-mode-1"},Rr={},xr={class:"distinguish-grid"};function Or(e,t){return n.openBlock(),n.createElementBlock("div",xr,[n.renderSlot(e.$slots,"default")])}const yt=ae(Rr,[["render",Or]]),Dr=n.defineComponent({__name:"GridToggle",setup(e){const t=P(),r=n.computed(()=>t.getLayout),o=()=>{t.$patch({gridLayout:gt[r.value]})};return(s,i)=>(n.openBlock(),n.createBlock(ie,{class:n.normalizeClass(n.unref(gt)[r.value]),onClick:o},{default:n.withCtx(()=>[n.createVNode(yt,{class:"distinguish-grid-icon"},{default:n.withCtx(()=>i[0]||(i[0]=[n.createElementVNode("div",{class:"distinguish-panel-descriptors"},null,-1),n.createElementVNode("div",{class:"distinguish-panel-remaining"},null,-1),n.createElementVNode("div",{class:"distinguish-panel-eliminated"},null,-1)])),_:1})]),_:1},8,["class"]))}}),Vr=n.defineComponent({__name:"ResetButton",setup(e){const t=B();return(r,o)=>(n.openBlock(),n.createBlock(ie,{color:"primary",size:"medium",onClick:o[0]||(o[0]=s=>n.unref(t).$reset())},{default:n.withCtx(()=>o[1]||(o[1]=[n.createTextVNode(" Reset ")])),_:1}))}}),Ar={class:"distinguish-header-error-message"},Ir=n.defineComponent({__name:"ErrorMessage",setup(e){const t=P();return(r,o)=>(n.openBlock(),n.createElementBlock("span",Ar,n.toDisplayString(n.unref(t).getErrorMessage),1))}}),Lr={class:"distinguish-header-bar"},Ur={class:"distinguish-header-bar__buttons"},$r=n.defineComponent({__name:"HeaderBar",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("div",Lr,[n.createVNode(Ir),n.createVNode(Br,null,{default:n.withCtx(()=>[n.createVNode(F,null,{default:n.withCtx(()=>[n.createVNode(Er)]),_:1}),n.createVNode(F,null,{default:n.withCtx(()=>[n.createVNode(or)]),_:1}),n.createVNode(F,null,{default:n.withCtx(()=>[n.createVNode(ir)]),_:1}),n.createVNode(F,null,{default:n.withCtx(()=>[n.createVNode(cr)]),_:1}),n.createVNode(F,null,{default:n.withCtx(()=>[n.createVNode(pr)]),_:1}),n.createVNode(F,null,{default:n.withCtx(()=>[n.createVNode(lr)]),_:1}),n.createVNode(F,null,{default:n.withCtx(()=>[n.createVNode(_r)]),_:1})]),_:1}),n.createElementVNode("div",Ur,[n.createVNode(Vr),n.createVNode(Dr)])]))}}),Pr={},Fr={class:"distinguish-panel"};function Mr(e,t){return n.openBlock(),n.createElementBlock("div",Fr,[n.renderSlot(e.$slots,"default")])}const Te=ae(Pr,[["render",Mr]]),jr=["innerHTML"],qr=n.defineComponent({__name:"PanelEliminated",props:{render:{type:Function}},setup(e){const t=D(),r=n.computed(()=>t.getEliminated);return(o,s)=>(n.openBlock(),n.createBlock(Te,{class:"distinguish-panel-eliminated"},{default:n.withCtx(()=>[n.createElementVNode("h2",null,"Eliminated ("+n.toDisplayString(r.value.length)+")",1),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value,i=>(n.openBlock(),n.createElementBlock("li",{key:i.rowId,class:"distinguish-row-item",innerHTML:o.render?o.render(i):i.objectTag},null,8,jr))),128))])]),_:1}))}}),Hr={class:"distinguish-list-checkboxes"},Kr=["value"],zr=n.defineComponent({__name:"FilterRow",setup(e){const t=D(),r=P(),o=B(),s=n.ref(!1),i=n.ref([]),a=n.computed(()=>{const u=o.getRowIds,d=i.value;return u.length!==d.length||!u.every(p=>d.includes(p))}),c=n.computed({get:()=>o.getRowIds,set:u=>{o.$patch({rowIds:u})}});return n.watch(s,u=>{r.setShouldUpdate(!u),!u&&a.value&&r.checkUpdate(),i.value=o.getRowIds}),(u,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(ie,{color:"primary",size:"medium",onClick:d[0]||(d[0]=p=>s.value=!0)},{default:n.withCtx(()=>d[3]||(d[3]=[n.createTextVNode(" Select ")])),_:1}),s.value?(n.openBlock(),n.createBlock(Ne,{key:0,onClose:d[2]||(d[2]=p=>s.value=!1)},{header:n.withCtx(()=>d[4]||(d[4]=[n.createElementVNode("h3",null,"Filter row",-1)])),body:n.withCtx(()=>[n.createElementVNode("div",null,[n.createElementVNode("ul",Hr,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(t).getRemaining,p=>(n.openBlock(),n.createElementBlock("li",{key:p.rowId},[n.createElementVNode("label",null,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":d[1]||(d[1]=f=>c.value=f),value:p.rowId,type:"checkbox"},null,8,Kr),[[n.vModelCheckbox,c.value]]),n.createTextVNode(" "+n.toDisplayString(p.objectLabel),1)])]))),128))])])]),_:1})):n.createCommentVNode("",!0)],64))}}),Jr={class:"distinguish-title-section"},Wr=["innerHTML"],Gr=n.defineComponent({__name:"PanelRemaining",props:{render:{type:Function}},setup(e){const t=D(),r=n.computed(()=>t.getRemaining);return(o,s)=>(n.openBlock(),n.createBlock(Te,{class:"distinguish-panel-remaining"},{default:n.withCtx(()=>[n.createElementVNode("div",Jr,[n.createElementVNode("h2",null,"Remaining ("+n.toDisplayString(r.value.length)+")",1),n.createVNode(zr)]),n.createElementVNode("ul",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value,i=>(n.openBlock(),n.createElementBlock("li",{key:i.rowId,class:"distinguish-row-item",innerHTML:o.render?o.render(i):i.objectTag},null,8,Wr))),128))])]),_:1}))}});class Xr{static find(t){return ft().get(`/depictions/${t}.json`,{params:{extend:["image"]}})}}const Qr={key:0,class:"distinguish-depiction-box"},Yr=["src"],bt=n.defineComponent({__name:"VDepiction",props:{depictionId:{}},setup(e){const t=e,r=n.ref();return Xr.find(t.depictionId).then(({data:o})=>{r.value=Xn(o)}),(o,s)=>r.value?(n.openBlock(),n.createElementBlock("div",Qr,[n.createElementVNode("img",{src:r.value.imageUrl},null,8,Yr)])):n.createCommentVNode("",!0)}}),Zr={class:"distinguish-character-descriptor__cell"},vr=["value"],eo=n.defineComponent({__name:"CharacterStateCell",props:{characterState:{},descriptorId:{}},setup(e){const t=e,r=B(),o=n.computed({get:()=>r.getDescriptorValueById(t.descriptorId)||[],set:s=>{s.length?r.setDescriptor({descriptorId:t.descriptorId,value:s}):r.removeDescriptor(t.descriptorId)}});return(s,i)=>(n.openBlock(),n.createElementBlock("div",Zr,[n.createElementVNode("label",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.characterState.depictionIds,a=>(n.openBlock(),n.createBlock(bt,{key:a,"depiction-id":a},null,8,["depiction-id"]))),128)),n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=a=>o.value=a),value:s.characterState.characterStateId,type:"checkbox"},null,8,vr),[[n.vModelCheckbox,o.value]]),n.createTextVNode(" "+n.toDisplayString(s.characterState.name),1)])]))}}),to={class:"distinguish-character-states-grid"},no=n.defineComponent({__name:"CharacterStateGrid",props:{descriptor:{}},setup(e){const t=e,r=B(),o=P(),s=n.ref(),i=n.computed(()=>{const a=r.getDescriptorValueById(t.descriptor.descriptorId)||[],c=s.value||[];return a.length!==c.length||!a.every(u=>c.includes(u))});return n.onMounted(()=>{o.setShouldUpdate(!1),s.value=r.getDescriptorValueById(t.descriptor.descriptorId)}),n.onUnmounted(()=>{o.setShouldUpdate(!0),i.value&&o.checkUpdate()}),(a,c)=>(n.openBlock(),n.createElementBlock("div",to,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.descriptor.characterStates,u=>(n.openBlock(),n.createBlock(eo,{key:u.characterStateId,"descriptor-id":a.descriptor.descriptorId,"character-state":u},null,8,["descriptor-id","character-state"]))),128))]))}}),ro={key:0},oo={key:1},so={class:"descriptor-modal__depiction"},io=n.defineComponent({__name:"DescriptorModal",props:{descriptor:{}},setup(e){return(t,r)=>(n.openBlock(),n.createBlock(Ne,{"container-class":"distinguish-descriptor-modal"},{header:n.withCtx(()=>[n.createElementVNode("h3",null,n.toDisplayString(t.descriptor.name),1),t.descriptor.description?(n.openBlock(),n.createElementBlock("span",ro,n.toDisplayString(t.descriptor.description),1)):(n.openBlock(),n.createElementBlock("i",oo," No further description available. "))]),body:n.withCtx(()=>[n.createElementVNode("div",so,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.descriptor.depictionIds,o=>(n.openBlock(),n.createBlock(bt,{key:o,"depiction-id":o},null,8,["depiction-id"]))),128))]),r[0]||(r[0]=n.createElementVNode("hr",null,null,-1)),t.descriptor.type===n.unref(G).Qualitative?(n.openBlock(),n.createBlock(no,{key:0,descriptor:t.descriptor},null,8,["descriptor"])):n.createCommentVNode("",!0)]),_:1}))}}),ao=["id"],co={class:"distinguish-input-label"},ce=n.defineComponent({__name:"DescriptorContainer",props:{descriptor:{}},setup(e){const t=n.ref(!1);return(r,o)=>(n.openBlock(),n.createElementBlock("div",{id:`descriptor-${r.descriptor.descriptorId}`,class:"distinguish-descriptor-container"},[n.createElementVNode("div",co,[n.createElementVNode("span",{class:"distinguish-link",onClick:o[0]||(o[0]=s=>t.value=!0)},[n.renderSlot(r.$slots,"title",{},()=>[n.createTextVNode(n.toDisplayString(r.descriptor.name),1)])])]),n.renderSlot(r.$slots,"default"),t.value?(n.openBlock(),n.createBlock(io,{key:0,descriptor:r.descriptor,onClose:o[1]||(o[1]=s=>t.value=!1)},null,8,["descriptor"])):n.createCommentVNode("",!0)],8,ao))}}),lo=n.defineComponent({__name:"DescriptorContinuous",props:{descriptor:{}},setup(e){const t=e,r=B(),o=n.ref(String(r.getDescriptorValueById(t.descriptor.descriptorId))),s=()=>{const{descriptorId:i}=t.descriptor,a=o.value.trim();a?r.setDescriptor({descriptorId:i,value:a}):r.removeDescriptor(i)};return(i,a)=>(n.openBlock(),n.createBlock(ce,{class:"distinguish-descriptor-continuous",descriptor:i.descriptor},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.descriptor.name)+" ("+n.toDisplayString(i.descriptor.min)+"-"+n.toDisplayString(i.descriptor.max)+" "+n.toDisplayString(i.descriptor.defaultUnit)+") ",1)]),default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),type:"text",onBlur:s,onKeyup:n.withKeys(s,["enter"])},null,544),[[n.vModelText,o.value]])]),_:1},8,["descriptor"]))}}),po=["value"],uo={key:0},fo=n.defineComponent({__name:"DescriptorPresenceAbsence",props:{descriptor:{}},setup(e){const t={Presence:!0,Absent:!1},r=e,o=B(),s=n.computed({get:()=>o.getDescriptorValueById(r.descriptor.descriptorId),set:a=>{const{descriptorId:c}=r.descriptor;typeof a=="boolean"?o.setDescriptor({descriptorId:c,value:!!a}):o.removeDescriptor(c)}}),i=a=>{var u;const{states:c}=r.descriptor;return((u=c.find(d=>d.name===String(a)))==null?void 0:u.numberOfObjects)||0};return(a,c)=>(n.openBlock(),n.createBlock(ce,{class:"distinguish-descriptor-presence-absence",descriptor:a.descriptor},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("select",{"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},[c[1]||(c[1]=n.createElementVNode("option",null,null,-1)),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(t,(u,d)=>n.createElementVNode("option",{key:d,value:u},[a.descriptor.status===n.unref(W).Useless?(n.openBlock(),n.createElementBlock("span",uo,"-")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(d)+" ("+n.toDisplayString(i(u))+") ",1)],8,po)),64))],512),[[n.vModelSelect,s.value]])]),_:1},8,["descriptor"]))}}),mo=["value","selected"],ho={key:0},go={key:1},yo=n.defineComponent({__name:"DescriptorQualitative",props:{descriptor:{}},setup(e){const t=e,r=B(),o=i=>{const a=i.target,{descriptorId:c}=t.descriptor;a.value?r.setDescriptor({descriptorId:c,value:[Number(a.value)]}):r.removeDescriptor(c)},s=i=>r.getDescriptorValueById(t.descriptor.descriptorId).includes(i.characterStateId);return(i,a)=>(n.openBlock(),n.createBlock(ce,{class:"distinguish-descriptor-qualitative",descriptor:i.descriptor},{default:n.withCtx(()=>[n.createElementVNode("select",{name:"listbox",onChange:o},[a[0]||(a[0]=n.createElementVNode("option",{value:""},null,-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.descriptor.characterStates,c=>(n.openBlock(),n.createElementBlock("option",{key:c.characterStateId,value:c.characterStateId,selected:s(c)},[s(c)?(n.openBlock(),n.createElementBlock("span",ho,">")):n.createCommentVNode("",!0),c.status===n.unref(W).Useless?(n.openBlock(),n.createElementBlock("span",go,"-")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(c.name)+" ("+n.toDisplayString(c.numberOfObjects)+") ",1)],8,mo))),128))],32)]),_:1},8,["descriptor"]))}}),bo=n.defineComponent({__name:"DescriptorSample",props:{descriptor:{}},setup(e){const t=e,r=B(),o=n.ref(String(r.getDescriptorValueById(t.descriptor.descriptorId))),s=()=>{const{descriptorId:i}=t.descriptor,a=o.value.trim();a?r.setDescriptor({descriptorId:i,value:a}):r.removeDescriptor(i)};return(i,a)=>(n.openBlock(),n.createBlock(ce,{class:"distinguish-descriptor-sample",descriptor:i.descriptor},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.descriptor.name)+" ("+n.toDisplayString(i.descriptor.min)+"-"+n.toDisplayString(i.descriptor.max)+" "+n.toDisplayString(i.descriptor.defaultUnit)+") ",1)]),default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),type:"text",onBlur:s,onKeyup:n.withKeys(s,["enter"])},null,544),[[n.vModelText,o.value]])]),_:1},8,["descriptor"]))}}),Re=n.defineComponent({__name:"DescriptorsList",props:{title:{},descriptors:{}},setup(e){const t={DescriptorContinuous:lo,DescriptorPresenceAbsence:fo,DescriptorQualitative:yo,DescriptorSample:bo},r=o=>{const s=o.replace("::","");return t[s]};return(o,s)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("h2",null,n.toDisplayString(o.title),1),n.createElementVNode("ol",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.descriptors,i=>(n.openBlock(),n.createElementBlock("li",{key:i.descriptorId},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(r(i.type)),{descriptor:i},null,8,["descriptor"]))]))),128))])],64))}}),_o=n.defineComponent({__name:"PanelDescriptors",setup(e){const t=D();return(r,o)=>(n.openBlock(),n.createBlock(Te,{class:"distinguish-panel-descriptors"},{default:n.withCtx(()=>[n.unref(t).getDescriptorsUsed.length?(n.openBlock(),n.createBlock(Re,{key:0,descriptors:n.unref(t).getDescriptorsUsed,title:"Used Descriptors"},null,8,["descriptors"])):n.createCommentVNode("",!0),n.unref(t).getDescriptorsUseful.length?(n.openBlock(),n.createBlock(Re,{key:1,descriptors:n.unref(t).getDescriptorsUseful,title:"Descriptors Useful for Identification"},null,8,["descriptors"])):n.createCommentVNode("",!0),n.unref(t).getDescriptorsUseless.length?(n.openBlock(),n.createBlock(Re,{key:2,descriptors:n.unref(t).getDescriptorsUseless,title:"Descriptors no longer relevant for identification"},null,8,["descriptors"])):n.createCommentVNode("",!0)]),_:1}))}}),Eo={class:"distinguish-spinner-container"},ko={class:"distinguish-spinner-legend"},wo=["innerHTML"],So=n.defineComponent({__name:"VSpinner",props:{legend:{type:String,default:"Loading, please wait."}},setup(e){return(t,r)=>(n.openBlock(),n.createBlock(n.Transition,{name:"fade"},{default:n.withCtx(()=>[n.createElementVNode("div",Eo,[n.createElementVNode("div",null,[r[0]||(r[0]=n.createElementVNode("div",{class:"distinguish-spinner"},null,-1)),n.createElementVNode("div",ko,[n.createElementVNode("span",{innerHTML:e.legend},null,8,wo),n.renderSlot(t.$slots,"default")])])])]),_:3}))}}),Bo={class:"distinguish-title"},Co={key:0},No=n.defineComponent({__name:"TitleMatrix",setup(e){const t=D();return(r,o)=>(n.openBlock(),n.createElementBlock("h1",Bo,[o[0]||(o[0]=n.createTextVNode(" Interactive key ")),n.unref(t).getObservationMatrix?(n.openBlock(),n.createElementBlock("span",Co,"| "+n.toDisplayString(n.unref(t).getObservationMatrix.name),1)):n.createCommentVNode("",!0)]))}}),To=["title"],Ro=n.defineComponent({__name:"TitleMatrixCitation",setup(e){const t=D(),r=n.computed(()=>{const o=t.getCitation;return Object.values(o||{}).filter(Boolean).join(", ")});return(o,s)=>(n.openBlock(),n.createElementBlock("span",{class:"distinguish-title-citation",title:r.value},n.toDisplayString(r.value),9,To))}}),xo={class:"distinguish-title-section"},Oo=n.defineComponent({__name:"TitleKey",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("div",xo,[n.createVNode(No),n.createVNode(Ro)]))}}),Do={class:"distinguish-app-container"},_t=n.defineComponent({name:"Distinguish",__name:"App",props:{observationMatrixId:{},apiConfig:{},renderItem:{type:Function}},setup(e){const t=e,r=P(),o=B(),s=n.computed(()=>r.getIsLoading),i=n.computed(()=>r.getLayout);return(()=>{r.setAPIConfig(t.apiConfig),r.setObservationMatrixId(t.observationMatrixId),r.checkUpdate()})(),o.$subscribe(c=>{r.shouldUpdate&&r.checkUpdate()}),(c,u)=>(n.openBlock(),n.createElementBlock("div",Do,[n.createVNode(Oo),n.createVNode($r),n.createVNode(yt,{class:n.normalizeClass(i.value)},{default:n.withCtx(()=>[n.createVNode(_o),n.createVNode(Gr,{render:t.renderItem},null,8,["render"]),n.createVNode(qr,{render:t.renderItem},null,8,["render"])]),_:1},8,["class"]),s.value?(n.openBlock(),n.createBlock(So,{key:0,legend:"Loading interactive key..."})):n.createCommentVNode("",!0)]))}});function Et(e){const t=e||'[data-interactive-key="true"]';return[...document.querySelectorAll(t)].map(s=>kt(s,Ao(s)))}function Vo(){Et()}function Ao(e){return{observationMatrixId:Number(e.getAttribute("data-observation-matrix-id")),apiConfig:{baseURL:e.getAttribute("data-base-url")||"",projectToken:e.getAttribute("data-project-token")||void 0,projectId:Number(e.getAttribute("data-project-id"))||void 0,userToken:e.getAttribute("data-user-token")||void 0,csrfToken:e.getAttribute("data-csrf-token")||void 0}}}function kt(e,t){const{apiConfig:r,observationMatrixId:o}=t;if(!o)throw"Missing observation matrix ID";if(!r||!r.projectToken&&!r.csrfToken&&!(r.projectId&&r.userToken))throw"Missing API configuration";const s=n.createApp(_t,{observationMatrixId:o,apiConfig:r});return s.use(Q.createPinia()),s.mount(e),s}window.addEventListener("DOMContentLoaded",Vo),O.VueInteractiveKey=_t,O.createInteractiveKey=kt,O.discoverInteractiveKey=Et,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.btn{border-radius:8px;border:none}.btn-primary-color{background-color:var(--primary-color);color
|
|
1
|
+
.distinguish-menu-list{display:flex;list-style:none;align-items:center;margin:0}.distinguish-menu-list li:first-child{padding-left:0}.distinguish-list-item{justify-content:center;padding-left:1em;padding-right:1em;border-right:1px solid #e5e5e5}:root{--distinguish-primary-content-color: #ffffff;--distinguish-bg-color: #f7f8fc;--distinguish-bg-panel-color: #ffffff;--distinguish-bg-modal-color: #ffffff;--distinguish-bg-disabled-color: #e5e5e5;--distinguish-disabled-color: #999;--distinguish-error-color: #ff0000;--distinguish-primary-color: #5d9ece;--distinguish-border-color: #cccccc;--distinguish-link-color: #5d9ece;--distinguish-btn-medium-size: 28px}.distinguish-link{color:var(--distinguish-link-color);cursor:pointer}.distinguish-btn{border-radius:8px;border:none}.distinguish-btn-primary-color{background-color:var(--distinguish-primary-color);color:var(--distinguish-primary-content-color)}.distinguish-btn-medium-size{min-height:var(--distinguish-btn-medium-size)}.distinguish-btn:disabled{background-color:var(--distinguish-bg-disabled-color);color:var(--distinguish-disabled-color)}.distinguish-panel{background-color:var(--distinguish-bg-panel-color);padding:1rem;overflow-y:scroll}.distinguish-spinner-container{display:flex;position:fixed;justify-content:center;width:100vw;height:100vh;background-color:var(--distinguish-bg-color);align-items:center;z-index:9999;height:100%;opacity:.9;top:0;left:0}.distinguish-spinner{border:5px solid rgba(0,0,0,.3);width:36px;height:36px;border-radius:50%;border-left-color:var(--distinguish-primary-color);margin:20px auto 0;animation:spin 1s ease infinite}.distinguish-spinner-legend{margin:1rem 0;font-size:1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.distinguish-modal-mask{position:fixed;z-index:1099;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease}.distinguish-modal-wrapper{display:table-cell;vertical-align:middle}.distinguish-modal-container{position:relative;width:600px;margin:0 auto;padding:20px 30px;background-color:var(--distinguish-bg-modal-color);border-radius:2px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;max-height:90vh;overflow-y:auto}.distinguish-modal-close{position:absolute;cursor:pointer;top:26px;right:30px;width:10px;height:10px;background-size:10px 10px;opacity:.4}.distinguish-modal-close:hover{opacity:1}.distinguish-modal-header h3{margin-top:0}.distinguish-modal-body{margin:20px 0}.distinguish-modal-default-button{float:right}.distinguish-modal-enter,.distinguish-modal-leave-active{opacity:0}.distinguish-modal-enter .distinguish-modal-container,.distinguish-modal-leave-active .distinguish-modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.distinguish-transparent-modal{background-color:#000c!important}.distinguish-transparent-modal .distinguish-modal-header h3{margin:0 0 2em 2em;padding:6px 6px 6px 12px;border-radius:3px;background-color:#0000004d;color:#ffffff80}.distinguish-transparent-modal .distinguish-modal-close{right:42px;top:30px;color:#ffffff80}.distinguish-transparent-modal .distinguish-modal-container{width:70%;position:relative;background-color:transparent!important;box-shadow:none}.distinguish-transparent-modal .distinguish-modal-container .distinguish-modal-body{overflow:auto;margin-right:1em;max-height:80vh}.distinguish-transparent-modal .distinguish-modal-container .distinguish-modal-body::-webkit-scrollbar{position:absolute;right:40px;-webkit-appearance:none}.distinguish-transparent-modal .distinguish-modal-container .distinguish-modal-body::-webkit-scrollbar:vertical{width:6px}.distinguish-transparent-modal .distinguish-modal-container .distinguish-modal-body::-webkit-scrollbar:horizontal{height:6px}.distinguish-transparent-modal .distinguish-modal-container .distinguish-modal-body::-webkit-scrollbar-thumb{border-radius:8px;width:11px;height:5px;border:rgba(255,255,255,.5);background-color:#ffffff80}.distinguish-transparent-modal .distinguish-modal-container .distinguish-modal-body::-webkit-scrollbar-track{background-color:#0000004d;border-radius:8px}.distinguish-grid{width:100%;grid-template-rows:1fr;height:100%;overflow:hidden}.distinguish-layout-mode-1 .distinguish-panel-descriptors{grid-area:1/1/2/3}.distinguish-layout-mode-1 .distinguish-panel-remaining{grid-area:2/1/3/2}.distinguish-layout-mode-1 .distinguish-panel-eliminated{grid-area:2/2/3/3}.distinguish-layout-mode-2 .distinguish-panel-descriptors{grid-area:1/1/3/2}.distinguish-layout-mode-2 .distinguish-panel-remaining{grid-area:1/2/2/3}.distinguish-layout-mode-2 .distinguish-panel-eliminated{grid-area:2/2/3/3}.distinguish-app-container{display:flex;flex-direction:column;height:100%;max-height:100%;font-family:Arial,Helvetica,sans-serif;font-size:13px}.distinguish-app-container input,.distinguish-app-container select{padding:.5em 1em;border:1px solid;border-radius:2px;border-color:var(--distinguish-border-color)}.distinguish-app-container .distinguish-header-error-message{color:var(--distinguish-error-color)}.distinguish-depiction-box{display:flex;align-items:center;justify-content:center;border:1px solid black;height:300px;width:300px}.distinguish-row-item-error{cursor:pointer}.distinguish-character-descriptor__cell{display:flex;align-items:flex-end}.distinguish-character-states-grid{display:grid;grid-template-columns:repeat(3,minmax(33.33%,1fr));gap:1em}.distinguish-list-checkboxes{list-style:none;padding:0}.distinguish-input-label{display:block}.distinguish-header-bar{background-color:var(--distinguish-bg-panel-color);padding:1em;box-shadow:#24252614 4px 4px 15px;border-bottom:1px solid var(--distinguish-border-color);display:flex;justify-content:space-between;align-items:center}.distinguish-header-bar__buttons{display:flex;align-items:center}.distinguish-title-section{display:flex;justify-content:space-between;align-items:center}.distinguish-header-bar__buttons{display:flex;flex-direction:row;align-items:center;gap:.5em}.distinguish-descriptor-modal{width:1000px;max-height:90vh;overflow-y:scroll}.distinguish-descriptor-modal__depiction{display:flex;justify-content:center}.distinguish-grid-icon{width:20px;height:12px;border:2px solid transparent;background-color:transparent;grid-gap:2px}.distinguish-grid-icon>div{background-color:#fff}.distinguish-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);grid-column-gap:0px;grid-row-gap:0px;grid-gap:1px;background-color:var(--distinguish-border-color);box-shadow:0 1px 1px #0003}
|