diff --git a/cmd/evening_detective/static/admin/assets/index-BaPVaSQ3.js b/cmd/evening_detective/static/admin/assets/index-BaPVaSQ3.js deleted file mode 100644 index 2ad77df..0000000 --- a/cmd/evening_detective/static/admin/assets/index-BaPVaSQ3.js +++ /dev/null @@ -1,115 +0,0 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}})();/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Iw(r){const e=Object.create(null);for(const t of r.split(","))e[t]=1;return t=>t in e}const ze={},gs=[],Lr=()=>{},MH=()=>!1,Nu=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Tw=r=>r.startsWith("onUpdate:"),Et=Object.assign,$w=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},NH=Object.prototype.hasOwnProperty,ke=(r,e)=>NH.call(r,e),ve=Array.isArray,ms=r=>Fu(r)==="[object Map]",tj=r=>Fu(r)==="[object Set]",ye=r=>typeof r=="function",ot=r=>typeof r=="string",hi=r=>typeof r=="symbol",Xe=r=>r!==null&&typeof r=="object",rj=r=>(Xe(r)||ye(r))&&ye(r.then)&&ye(r.catch),ij=Object.prototype.toString,Fu=r=>ij.call(r),FH=r=>Fu(r).slice(8,-1),nj=r=>Fu(r)==="[object Object]",Pw=r=>ot(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Eo=Iw(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ku=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},kH=/-(\w)/g,Hi=ku(r=>r.replace(kH,(e,t)=>t?t.toUpperCase():"")),BH=/\B([A-Z])/g,Dn=ku(r=>r.replace(BH,"-$1").toLowerCase()),sj=ku(r=>r.charAt(0).toUpperCase()+r.slice(1)),xl=ku(r=>r?`on${sj(r)}`:""),Ni=(r,e)=>!Object.is(r,e),su=(r,...e)=>{for(let t=0;t{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,writable:i,value:t})},W_=r=>{const e=parseFloat(r);return isNaN(e)?r:e},LH=r=>{const e=ot(r)?Number(r):NaN;return isNaN(e)?r:e};let Z0;const Bu=()=>Z0||(Z0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rw(r){if(ve(r)){const e={};for(let t=0;t{if(t){const i=t.split(zH);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Ai(r){let e="";if(ot(r))e=r;else if(ve(r))for(let t=0;t!!(r&&r.__v_isRef===!0),Ye=r=>ot(r)?r:r==null?"":ve(r)||Xe(r)&&(r.toString===ij||!ye(r.toString))?uj(r)?Ye(r.value):JSON.stringify(r,lj,2):String(r),lj=(r,e)=>uj(e)?lj(r,e.value):ms(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[i,n],s)=>(t[ql(i,s)+" =>"]=n,t),{})}:tj(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>ql(t))}:hi(e)?ql(e):Xe(e)&&!ve(e)&&!nj(e)?String(e):e,ql=(r,e="")=>{var t;return hi(r)?`Symbol(${(t=r.description)!=null?t:e})`:r};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let tr;class cj{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=tr,!e&&tr&&(this.index=(tr.scopes||(tr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0)return;if(Oo){let e=Oo;for(Oo=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let r;for(;So;){let e=So;for(So=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){r||(r=i)}e=t}}if(r)throw r}function pj(r){for(let e=r.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function vj(r){let e,t=r.depsTail,i=t;for(;i;){const n=i.prevDep;i.version===-1?(i===t&&(t=n),qw(i),YH(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}r.deps=e,r.depsTail=t}function U_(r){for(let e=r.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(gj(e.dep.computed)||e.dep.version!==e.version))return!0;return!!r._dirty}function gj(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===Fo))return;r.globalVersion=Fo;const e=r.dep;if(r.flags|=2,e.version>0&&!r.isSSR&&r.deps&&!U_(r)){r.flags&=-3;return}const t=Ue,i=Or;Ue=r,Or=!0;try{pj(r);const n=r.fn(r._value);(e.version===0||Ni(n,r._value))&&(r._value=n,e.version++)}catch(n){throw e.version++,n}finally{Ue=t,Or=i,vj(r),r.flags&=-3}}function qw(r,e=!1){const{dep:t,prevSub:i,nextSub:n}=r;if(i&&(i.nextSub=n,r.prevSub=void 0),n&&(n.prevSub=i,r.nextSub=void 0),t.subs===r&&(t.subs=i,!i&&t.computed)){t.computed.flags&=-5;for(let s=t.computed.deps;s;s=s.nextDep)qw(s,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function YH(r){const{prevDep:e,nextDep:t}=r;e&&(e.nextDep=t,r.prevDep=void 0),t&&(t.prevDep=e,r.nextDep=void 0)}let Or=!0;const mj=[];function Gi(){mj.push(Or),Or=!1}function Yi(){const r=mj.pop();Or=r===void 0?!0:r}function eE(r){const{cleanup:e}=r;if(r.cleanup=void 0,e){const t=Ue;Ue=void 0;try{e()}finally{Ue=t}}}let Fo=0;class XH{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Aw{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Ue||!Or||Ue===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ue)t=this.activeLink=new XH(Ue,this),Ue.deps?(t.prevDep=Ue.depsTail,Ue.depsTail.nextDep=t,Ue.depsTail=t):Ue.deps=Ue.depsTail=t,yj(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const i=t.nextDep;i.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=i),t.prevDep=Ue.depsTail,t.nextDep=void 0,Ue.depsTail.nextDep=t,Ue.depsTail=t,Ue.deps===t&&(Ue.deps=i)}return t}trigger(e){this.version++,Fo++,this.notify(e)}notify(e){Cw();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{xw()}}}function yj(r){if(r.dep.sc++,r.sub.flags&4){const e=r.dep.computed;if(e&&!r.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)yj(i)}const t=r.dep.subs;t!==r&&(r.prevSub=t,t&&(t.nextSub=r)),r.dep.subs=r}}const V_=new WeakMap,mn=Symbol(""),K_=Symbol(""),ko=Symbol("");function Dt(r,e,t){if(Or&&Ue){let i=V_.get(r);i||V_.set(r,i=new Map);let n=i.get(t);n||(i.set(t,n=new Aw),n.map=i,n.key=t),n.track()}}function Qr(r,e,t,i,n,s){const o=V_.get(r);if(!o){Fo++;return}const a=u=>{u&&u.trigger()};if(Cw(),e==="clear")o.forEach(a);else{const u=ve(r),l=u&&Pw(t);if(u&&t==="length"){const c=Number(i);o.forEach((d,h)=>{(h==="length"||h===ko||!hi(h)&&h>=c)&&a(d)})}else switch((t!==void 0||o.has(void 0))&&a(o.get(t)),l&&a(o.get(ko)),e){case"add":u?l&&a(o.get("length")):(a(o.get(mn)),ms(r)&&a(o.get(K_)));break;case"delete":u||(a(o.get(mn)),ms(r)&&a(o.get(K_)));break;case"set":ms(r)&&a(o.get(mn));break}}xw()}function rs(r){const e=Me(r);return e===r?e:(Dt(e,"iterate",ko),cr(r)?e:e.map(Mt))}function Lu(r){return Dt(r=Me(r),"iterate",ko),r}const JH={__proto__:null,[Symbol.iterator](){return Dl(this,Symbol.iterator,Mt)},concat(...r){return rs(this).concat(...r.map(e=>ve(e)?rs(e):e))},entries(){return Dl(this,"entries",r=>(r[1]=Mt(r[1]),r))},every(r,e){return Vr(this,"every",r,e,void 0,arguments)},filter(r,e){return Vr(this,"filter",r,e,t=>t.map(Mt),arguments)},find(r,e){return Vr(this,"find",r,e,Mt,arguments)},findIndex(r,e){return Vr(this,"findIndex",r,e,void 0,arguments)},findLast(r,e){return Vr(this,"findLast",r,e,Mt,arguments)},findLastIndex(r,e){return Vr(this,"findLastIndex",r,e,void 0,arguments)},forEach(r,e){return Vr(this,"forEach",r,e,void 0,arguments)},includes(...r){return Ml(this,"includes",r)},indexOf(...r){return Ml(this,"indexOf",r)},join(r){return rs(this).join(r)},lastIndexOf(...r){return Ml(this,"lastIndexOf",r)},map(r,e){return Vr(this,"map",r,e,void 0,arguments)},pop(){return co(this,"pop")},push(...r){return co(this,"push",r)},reduce(r,...e){return tE(this,"reduce",r,e)},reduceRight(r,...e){return tE(this,"reduceRight",r,e)},shift(){return co(this,"shift")},some(r,e){return Vr(this,"some",r,e,void 0,arguments)},splice(...r){return co(this,"splice",r)},toReversed(){return rs(this).toReversed()},toSorted(r){return rs(this).toSorted(r)},toSpliced(...r){return rs(this).toSpliced(...r)},unshift(...r){return co(this,"unshift",r)},values(){return Dl(this,"values",Mt)}};function Dl(r,e,t){const i=Lu(r),n=i[e]();return i!==r&&!cr(r)&&(n._next=n.next,n.next=()=>{const s=n._next();return s.value&&(s.value=t(s.value)),s}),n}const QH=Array.prototype;function Vr(r,e,t,i,n,s){const o=Lu(r),a=o!==r&&!cr(r),u=o[e];if(u!==QH[e]){const d=u.apply(r,s);return a?Mt(d):d}let l=t;o!==r&&(a?l=function(d,h){return t.call(this,Mt(d),h,r)}:t.length>2&&(l=function(d,h){return t.call(this,d,h,r)}));const c=u.call(o,l,i);return a&&n?n(c):c}function tE(r,e,t,i){const n=Lu(r);let s=t;return n!==r&&(cr(r)?t.length>3&&(s=function(o,a,u){return t.call(this,o,a,u,r)}):s=function(o,a,u){return t.call(this,o,Mt(a),u,r)}),n[e](s,...i)}function Ml(r,e,t){const i=Me(r);Dt(i,"iterate",ko);const n=i[e](...t);return(n===-1||n===!1)&&Nw(t[0])?(t[0]=Me(t[0]),i[e](...t)):n}function co(r,e,t=[]){Gi(),Cw();const i=Me(r)[e].apply(r,t);return xw(),Yi(),i}const ZH=Iw("__proto__,__v_isRef,__isVue"),bj=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(hi));function eW(r){hi(r)||(r=String(r));const e=Me(this);return Dt(e,"has",r),e.hasOwnProperty(r)}class _j{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){if(t==="__v_skip")return e.__v_skip;const n=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!n;if(t==="__v_isReadonly")return n;if(t==="__v_isShallow")return s;if(t==="__v_raw")return i===(n?s?cW:Oj:s?Sj:Ej).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const o=ve(e);if(!n){let u;if(o&&(u=JH[t]))return u;if(t==="hasOwnProperty")return eW}const a=Reflect.get(e,t,Ft(e)?e:i);return(hi(t)?bj.has(t):ZH(t))||(n||Dt(e,"get",t),s)?a:Ft(a)?o&&Pw(t)?a:a.value:Xe(a)?n?Tj(a):ju(a):a}}class wj extends _j{constructor(e=!1){super(!1,e)}set(e,t,i,n){let s=e[t];if(!this._isShallow){const u=In(s);if(!cr(i)&&!In(i)&&(s=Me(s),i=Me(i)),!ve(e)&&Ft(s)&&!Ft(i))return u?!1:(s.value=i,!0)}const o=ve(e)&&Pw(t)?Number(t)r,Ua=r=>Reflect.getPrototypeOf(r);function sW(r,e,t){return function(...i){const n=this.__v_raw,s=Me(n),o=ms(s),a=r==="entries"||r===Symbol.iterator&&o,u=r==="keys"&&o,l=n[r](...i),c=t?G_:e?Y_:Mt;return!e&&Dt(s,"iterate",u?K_:mn),{next(){const{value:d,done:h}=l.next();return h?{value:d,done:h}:{value:a?[c(d[0]),c(d[1])]:c(d),done:h}},[Symbol.iterator](){return this}}}}function Va(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function oW(r,e){const t={get(n){const s=this.__v_raw,o=Me(s),a=Me(n);r||(Ni(n,a)&&Dt(o,"get",n),Dt(o,"get",a));const{has:u}=Ua(o),l=e?G_:r?Y_:Mt;if(u.call(o,n))return l(s.get(n));if(u.call(o,a))return l(s.get(a));s!==o&&s.get(n)},get size(){const n=this.__v_raw;return!r&&Dt(Me(n),"iterate",mn),Reflect.get(n,"size",n)},has(n){const s=this.__v_raw,o=Me(s),a=Me(n);return r||(Ni(n,a)&&Dt(o,"has",n),Dt(o,"has",a)),n===a?s.has(n):s.has(n)||s.has(a)},forEach(n,s){const o=this,a=o.__v_raw,u=Me(a),l=e?G_:r?Y_:Mt;return!r&&Dt(u,"iterate",mn),a.forEach((c,d)=>n.call(s,l(c),l(d),o))}};return Et(t,r?{add:Va("add"),set:Va("set"),delete:Va("delete"),clear:Va("clear")}:{add(n){!e&&!cr(n)&&!In(n)&&(n=Me(n));const s=Me(this);return Ua(s).has.call(s,n)||(s.add(n),Qr(s,"add",n,n)),this},set(n,s){!e&&!cr(s)&&!In(s)&&(s=Me(s));const o=Me(this),{has:a,get:u}=Ua(o);let l=a.call(o,n);l||(n=Me(n),l=a.call(o,n));const c=u.call(o,n);return o.set(n,s),l?Ni(s,c)&&Qr(o,"set",n,s):Qr(o,"add",n,s),this},delete(n){const s=Me(this),{has:o,get:a}=Ua(s);let u=o.call(s,n);u||(n=Me(n),u=o.call(s,n)),a&&a.call(s,n);const l=s.delete(n);return u&&Qr(s,"delete",n,void 0),l},clear(){const n=Me(this),s=n.size!==0,o=n.clear();return s&&Qr(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=sW(n,r,e)}),t}function Dw(r,e){const t=oW(r,e);return(i,n,s)=>n==="__v_isReactive"?!r:n==="__v_isReadonly"?r:n==="__v_raw"?i:Reflect.get(ke(t,n)&&n in i?t:i,n,s)}const aW={get:Dw(!1,!1)},uW={get:Dw(!1,!0)},lW={get:Dw(!0,!1)};const Ej=new WeakMap,Sj=new WeakMap,Oj=new WeakMap,cW=new WeakMap;function dW(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hW(r){return r.__v_skip||!Object.isExtensible(r)?0:dW(FH(r))}function ju(r){return In(r)?r:Mw(r,!1,rW,aW,Ej)}function Ij(r){return Mw(r,!1,nW,uW,Sj)}function Tj(r){return Mw(r,!0,iW,lW,Oj)}function Mw(r,e,t,i,n){if(!Xe(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const s=n.get(r);if(s)return s;const o=hW(r);if(o===0)return r;const a=new Proxy(r,o===2?i:t);return n.set(r,a),a}function ys(r){return In(r)?ys(r.__v_raw):!!(r&&r.__v_isReactive)}function In(r){return!!(r&&r.__v_isReadonly)}function cr(r){return!!(r&&r.__v_isShallow)}function Nw(r){return r?!!r.__v_raw:!1}function Me(r){const e=r&&r.__v_raw;return e?Me(e):r}function $j(r){return!ke(r,"__v_skip")&&Object.isExtensible(r)&&oj(r,"__v_skip",!0),r}const Mt=r=>Xe(r)?ju(r):r,Y_=r=>Xe(r)?Tj(r):r;function Ft(r){return r?r.__v_isRef===!0:!1}function it(r){return Pj(r,!1)}function fW(r){return Pj(r,!0)}function Pj(r,e){return Ft(r)?r:new pW(r,e)}class pW{constructor(e,t){this.dep=new Aw,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Me(e),this._value=t?e:Mt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,i=this.__v_isShallow||cr(e)||In(e);e=i?e:Me(e),Ni(e,t)&&(this._rawValue=e,this._value=i?e:Mt(e),this.dep.trigger())}}function dr(r){return Ft(r)?r.value:r}const vW={get:(r,e,t)=>e==="__v_raw"?r:dr(Reflect.get(r,e,t)),set:(r,e,t,i)=>{const n=r[e];return Ft(n)&&!Ft(t)?(n.value=t,!0):Reflect.set(r,e,t,i)}};function Rj(r){return ys(r)?r:new Proxy(r,vW)}class gW{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Aw(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Fo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return fj(this,!0),!0}get value(){const e=this.dep.track();return gj(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function mW(r,e,t=!1){let i,n;return ye(r)?i=r:(i=r.get,n=r.set),new gW(i,n,t)}const Ka={},gu=new WeakMap;let dn;function yW(r,e=!1,t=dn){if(t){let i=gu.get(t);i||gu.set(t,i=[]),i.push(r)}}function bW(r,e,t=ze){const{immediate:i,deep:n,once:s,scheduler:o,augmentJob:a,call:u}=t,l=y=>n?y:cr(y)||n===!1||n===0?Zr(y,1):Zr(y);let c,d,h,f,p=!1,v=!1;if(Ft(r)?(d=()=>r.value,p=cr(r)):ys(r)?(d=()=>l(r),p=!0):ve(r)?(v=!0,p=r.some(y=>ys(y)||cr(y)),d=()=>r.map(y=>{if(Ft(y))return y.value;if(ys(y))return l(y);if(ye(y))return u?u(y,2):y()})):ye(r)?e?d=u?()=>u(r,2):r:d=()=>{if(h){Gi();try{h()}finally{Yi()}}const y=dn;dn=c;try{return u?u(r,3,[f]):r(f)}finally{dn=y}}:d=Lr,e&&n){const y=d,I=n===!0?1/0:n;d=()=>Zr(y(),I)}const _=GH(),m=()=>{c.stop(),_&&_.active&&$w(_.effects,c)};if(s&&e){const y=e;e=(...I)=>{y(...I),m()}}let g=v?new Array(r.length).fill(Ka):Ka;const E=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(e){const I=c.run();if(n||p||(v?I.some((O,T)=>Ni(O,g[T])):Ni(I,g))){h&&h();const O=dn;dn=c;try{const T=[I,g===Ka?void 0:v&&g[0]===Ka?[]:g,f];u?u(e,3,T):e(...T),g=I}finally{dn=O}}}else c.run()};return a&&a(E),c=new dj(d),c.scheduler=o?()=>o(E,!1):E,f=y=>yW(y,!1,c),h=c.onStop=()=>{const y=gu.get(c);if(y){if(u)u(y,4);else for(const I of y)I();gu.delete(c)}},e?i?E(!0):g=c.run():o?o(E.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function Zr(r,e=1/0,t){if(e<=0||!Xe(r)||r.__v_skip||(t=t||new Set,t.has(r)))return r;if(t.add(r),e--,Ft(r))Zr(r.value,e,t);else if(ve(r))for(let i=0;i{Zr(i,e,t)});else if(nj(r)){for(const i in r)Zr(r[i],e,t);for(const i of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,i)&&Zr(r[i],e,t)}return r}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function sa(r,e,t,i){try{return i?r(...i):r()}catch(n){zu(n,e,t)}}function Ir(r,e,t,i){if(ye(r)){const n=sa(r,e,t,i);return n&&rj(n)&&n.catch(s=>{zu(s,e,t)}),n}if(ve(r)){const n=[];for(let s=0;s>>1,n=zt[i],s=Bo(n);s=Bo(t)?zt.push(r):zt.splice(wW(e),0,r),r.flags|=1,qj()}}function qj(){mu||(mu=Cj.then(Dj))}function EW(r){ve(r)?bs.push(...r):$i&&r.id===-1?$i.splice(as+1,0,r):r.flags&1||(bs.push(r),r.flags|=1),qj()}function rE(r,e,t=Ar+1){for(;tBo(t)-Bo(i));if(bs.length=0,$i){$i.push(...e);return}for($i=e,as=0;as<$i.length;as++){const t=$i[as];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}$i=null,as=0}}const Bo=r=>r.id==null?r.flags&2?-1:1/0:r.id;function Dj(r){try{for(Ar=0;Ar{i._d&&vE(-1);const s=yu(e);let o;try{o=r(...n)}finally{yu(s),i._d&&vE(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Ii(r,e){if(xt===null)return r;const t=Ku(xt),i=r.dirs||(r.dirs=[]);for(let n=0;nr.__isTeleport,Io=r=>r&&(r.disabled||r.disabled===""),iE=r=>r&&(r.defer||r.defer===""),nE=r=>typeof SVGElement<"u"&&r instanceof SVGElement,sE=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,X_=(r,e)=>{const t=r&&r.to;return ot(t)?e?e(t):null:t},kj={name:"Teleport",__isTeleport:!0,process(r,e,t,i,n,s,o,a,u,l){const{mc:c,pc:d,pbc:h,o:{insert:f,querySelector:p,createText:v,createComment:_}}=l,m=Io(e.props);let{shapeFlag:g,children:E,dynamicChildren:y}=e;if(r==null){const I=e.el=v(""),O=e.anchor=v("");f(I,t,i),f(O,t,i);const T=(w,R)=>{g&16&&(n&&n.isCE&&(n.ce._teleportTarget=w),c(E,w,R,n,s,o,a,u))},b=()=>{const w=e.target=X_(e.props,p),R=Bj(w,e,v,f);w&&(o!=="svg"&&nE(w)?o="svg":o!=="mathml"&&sE(w)&&(o="mathml"),m||(T(w,R),ou(e,!1)))};m&&(T(t,O),ou(e,!0)),iE(e.props)?Bt(()=>{b(),e.el.__isMounted=!0},s):b()}else{if(iE(e.props)&&!r.el.__isMounted){Bt(()=>{kj.process(r,e,t,i,n,s,o,a,u,l),delete r.el.__isMounted},s);return}e.el=r.el,e.targetStart=r.targetStart;const I=e.anchor=r.anchor,O=e.target=r.target,T=e.targetAnchor=r.targetAnchor,b=Io(r.props),w=b?t:O,R=b?I:T;if(o==="svg"||nE(O)?o="svg":(o==="mathml"||sE(O))&&(o="mathml"),y?(h(r.dynamicChildren,y,w,n,s,o,a),Lw(r,e,!0)):u||d(r,e,w,R,n,s,o,a,!1),m)b?e.props&&r.props&&e.props.to!==r.props.to&&(e.props.to=r.props.to):Ga(e,t,I,l,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const P=e.target=X_(e.props,p);P&&Ga(e,P,null,l,0)}else b&&Ga(e,O,T,l,1);ou(e,m)}},remove(r,e,t,{um:i,o:{remove:n}},s){const{shapeFlag:o,children:a,anchor:u,targetStart:l,targetAnchor:c,target:d,props:h}=r;if(d&&(n(l),n(c)),s&&n(u),o&16){const f=s||!Io(h);for(let p=0;p{r.isMounted=!0}),Kj(()=>{r.isUnmounting=!0}),r}const or=[Function,Array],Lj={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:or,onEnter:or,onAfterEnter:or,onEnterCancelled:or,onBeforeLeave:or,onLeave:or,onAfterLeave:or,onLeaveCancelled:or,onBeforeAppear:or,onAppear:or,onAfterAppear:or,onAppearCancelled:or},jj=r=>{const e=r.subTree;return e.component?jj(e.component):e},TW={name:"BaseTransition",props:Lj,setup(r,{slots:e}){const t=_4(),i=IW();return()=>{const n=e.default&&Wj(e.default(),!0);if(!n||!n.length)return;const s=zj(n),o=Me(r),{mode:a}=o;if(i.isLeaving)return Nl(s);const u=oE(s);if(!u)return Nl(s);let l=J_(u,o,i,t,d=>l=d);u.type!==Wt&&Lo(u,l);let c=t.subTree&&oE(t.subTree);if(c&&c.type!==Wt&&!hn(u,c)&&jj(t).type!==Wt){let d=J_(c,o,i,t);if(Lo(c,d),a==="out-in"&&u.type!==Wt)return i.isLeaving=!0,d.afterLeave=()=>{i.isLeaving=!1,t.job.flags&8||t.update(),delete d.afterLeave,c=void 0},Nl(s);a==="in-out"&&u.type!==Wt?d.delayLeave=(h,f,p)=>{const v=Hj(i,c);v[String(c.key)]=c,h[Pi]=()=>{f(),h[Pi]=void 0,delete l.delayedLeave,c=void 0},l.delayedLeave=()=>{p(),delete l.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function zj(r){let e=r[0];if(r.length>1){for(const t of r)if(t.type!==Wt){e=t;break}}return e}const $W=TW;function Hj(r,e){const{leavingVNodes:t}=r;let i=t.get(e.type);return i||(i=Object.create(null),t.set(e.type,i)),i}function J_(r,e,t,i,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:u,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:_,onAppear:m,onAfterAppear:g,onAppearCancelled:E}=e,y=String(r.key),I=Hj(t,r),O=(w,R)=>{w&&Ir(w,i,9,R)},T=(w,R)=>{const P=R[1];O(w,R),ve(w)?w.every(S=>S.length<=1)&&P():w.length<=1&&P()},b={mode:o,persisted:a,beforeEnter(w){let R=u;if(!t.isMounted)if(s)R=_||u;else return;w[Pi]&&w[Pi](!0);const P=I[y];P&&hn(r,P)&&P.el[Pi]&&P.el[Pi](),O(R,[w])},enter(w){let R=l,P=c,S=d;if(!t.isMounted)if(s)R=m||l,P=g||c,S=E||d;else return;let $=!1;const q=w[Ya]=F=>{$||($=!0,F?O(S,[w]):O(P,[w]),b.delayedLeave&&b.delayedLeave(),w[Ya]=void 0)};R?T(R,[w,q]):q()},leave(w,R){const P=String(r.key);if(w[Ya]&&w[Ya](!0),t.isUnmounting)return R();O(h,[w]);let S=!1;const $=w[Pi]=q=>{S||(S=!0,R(),q?O(v,[w]):O(p,[w]),w[Pi]=void 0,I[P]===r&&delete I[P])};I[P]=r,f?T(f,[w,$]):$()},clone(w){const R=J_(w,e,t,i,n);return n&&n(R),R}};return b}function Nl(r){if(Hu(r))return r=Wi(r),r.children=null,r}function oE(r){if(!Hu(r))return Fj(r.type)&&r.children?zj(r.children):r;const{shapeFlag:e,children:t}=r;if(t){if(e&16)return t[0];if(e&32&&ye(t.default))return t.default()}}function Lo(r,e){r.shapeFlag&6&&r.component?(r.transition=e,Lo(r.component.subTree,e)):r.shapeFlag&128?(r.ssContent.transition=e.clone(r.ssContent),r.ssFallback.transition=e.clone(r.ssFallback)):r.transition=e}function Wj(r,e=!1,t){let i=[],n=0;for(let s=0;s1)for(let s=0;sbu(p,e&&(ve(e)?e[v]:e),t,i,n));return}if(_s(i)&&!n){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&bu(r,e,t,i.component.subTree);return}const s=i.shapeFlag&4?Ku(i.component):i.el,o=n?null:s,{i:a,r:u}=r,l=e&&e.r,c=a.refs===ze?a.refs={}:a.refs,d=a.setupState,h=Me(d),f=d===ze?()=>!1:p=>ke(h,p);if(l!=null&&l!==u&&(ot(l)?(c[l]=null,f(l)&&(d[l]=null)):Ft(l)&&(l.value=null)),ye(u))sa(u,a,12,[o,c]);else{const p=ot(u),v=Ft(u);if(p||v){const _=()=>{if(r.f){const m=p?f(u)?d[u]:c[u]:u.value;n?ve(m)&&$w(m,s):ve(m)?m.includes(s)||m.push(s):p?(c[u]=[s],f(u)&&(d[u]=c[u])):(u.value=[s],r.k&&(c[r.k]=u.value))}else p?(c[u]=o,f(u)&&(d[u]=o)):v&&(u.value=o,r.k&&(c[r.k]=o))};o?(_.id=-1,Bt(_,t)):_()}}}Bu().requestIdleCallback;Bu().cancelIdleCallback;const _s=r=>!!r.type.__asyncLoader,Hu=r=>r.type.__isKeepAlive;function PW(r,e){Vj(r,"a",e)}function RW(r,e){Vj(r,"da",e)}function Vj(r,e,t=Nt){const i=r.__wdc||(r.__wdc=()=>{let n=t;for(;n;){if(n.isDeactivated)return;n=n.parent}return r()});if(Wu(e,i,t),t){let n=t.parent;for(;n&&n.parent;)Hu(n.parent.vnode)&&CW(i,e,t,n),n=n.parent}}function CW(r,e,t,i){const n=Wu(e,r,i,!0);kw(()=>{$w(i[e],n)},t)}function Wu(r,e,t=Nt,i=!1){if(t){const n=t[r]||(t[r]=[]),s=e.__weh||(e.__weh=(...o)=>{Gi();const a=aa(t),u=Ir(e,t,r,o);return a(),Yi(),u});return i?n.unshift(s):n.push(s),s}}const fi=r=>(e,t=Nt)=>{(!Ho||r==="sp")&&Wu(r,(...i)=>e(...i),t)},xW=fi("bm"),oa=fi("m"),qW=fi("bu"),AW=fi("u"),Kj=fi("bum"),kw=fi("um"),DW=fi("sp"),MW=fi("rtg"),NW=fi("rtc");function FW(r,e=Nt){Wu("ec",r,e)}const kW=Symbol.for("v-ndc");function Yr(r,e,t,i){let n;const s=t,o=ve(r);if(o||ot(r)){const a=o&&ys(r);let u=!1;a&&(u=!cr(r),r=Lu(r)),n=new Array(r.length);for(let l=0,c=r.length;le(a,u,void 0,s));else{const a=Object.keys(r);n=new Array(a.length);for(let u=0,l=a.length;uzo(e)?!(e.type===Wt||e.type===Qe&&!Gj(e.children)):!0)?r:null}const Q_=r=>r?pz(r)?Ku(r):Q_(r.parent):null,To=Et(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>Q_(r.parent),$root:r=>Q_(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>Xj(r),$forceUpdate:r=>r.f||(r.f=()=>{Fw(r.update)}),$nextTick:r=>r.n||(r.n=xj.bind(r.proxy)),$watch:r=>s4.bind(r)}),Fl=(r,e)=>r!==ze&&!r.__isScriptSetup&&ke(r,e),BW={get({_:r},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:i,data:n,props:s,accessCache:o,type:a,appContext:u}=r;let l;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return i[e];case 2:return n[e];case 4:return t[e];case 3:return s[e]}else{if(Fl(i,e))return o[e]=1,i[e];if(n!==ze&&ke(n,e))return o[e]=2,n[e];if((l=r.propsOptions[0])&&ke(l,e))return o[e]=3,s[e];if(t!==ze&&ke(t,e))return o[e]=4,t[e];Z_&&(o[e]=0)}}const c=To[e];let d,h;if(c)return e==="$attrs"&&Dt(r.attrs,"get",""),c(r);if((d=a.__cssModules)&&(d=d[e]))return d;if(t!==ze&&ke(t,e))return o[e]=4,t[e];if(h=u.config.globalProperties,ke(h,e))return h[e]},set({_:r},e,t){const{data:i,setupState:n,ctx:s}=r;return Fl(n,e)?(n[e]=t,!0):i!==ze&&ke(i,e)?(i[e]=t,!0):ke(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(s[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:i,appContext:n,propsOptions:s}},o){let a;return!!t[o]||r!==ze&&ke(r,o)||Fl(e,o)||(a=s[0])&&ke(a,o)||ke(i,o)||ke(To,o)||ke(n.config.globalProperties,o)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:ke(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}};function aE(r){return ve(r)?r.reduce((e,t)=>(e[t]=null,e),{}):r}let Z_=!0;function LW(r){const e=Xj(r),t=r.proxy,i=r.ctx;Z_=!1,e.beforeCreate&&uE(e.beforeCreate,r,"bc");const{data:n,computed:s,methods:o,watch:a,provide:u,inject:l,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:_,beforeDestroy:m,beforeUnmount:g,destroyed:E,unmounted:y,render:I,renderTracked:O,renderTriggered:T,errorCaptured:b,serverPrefetch:w,expose:R,inheritAttrs:P,components:S,directives:$,filters:q}=e;if(l&&jW(l,i,null),o)for(const z in o){const te=o[z];ye(te)&&(i[z]=te.bind(t))}if(n){const z=n.call(t,t);Xe(z)&&(r.data=ju(z))}if(Z_=!0,s)for(const z in s){const te=s[z],pe=ye(te)?te.bind(t,t):ye(te.get)?te.get.bind(t,t):Lr,we=!ye(te)&&ye(te.set)?te.set.bind(t):Lr,re=Sr({get:pe,set:we});Object.defineProperty(i,z,{enumerable:!0,configurable:!0,get:()=>re.value,set:me=>re.value=me})}if(a)for(const z in a)Yj(a[z],i,t,z);if(u){const z=ye(u)?u.call(t):u;Reflect.ownKeys(z).forEach(te=>{uu(te,z[te])})}c&&uE(c,r,"c");function Z(z,te){ve(te)?te.forEach(pe=>z(pe.bind(t))):te&&z(te.bind(t))}if(Z(xW,d),Z(oa,h),Z(qW,f),Z(AW,p),Z(PW,v),Z(RW,_),Z(FW,b),Z(NW,O),Z(MW,T),Z(Kj,g),Z(kw,y),Z(DW,w),ve(R))if(R.length){const z=r.exposed||(r.exposed={});R.forEach(te=>{Object.defineProperty(z,te,{get:()=>t[te],set:pe=>t[te]=pe})})}else r.exposed||(r.exposed={});I&&r.render===Lr&&(r.render=I),P!=null&&(r.inheritAttrs=P),S&&(r.components=S),$&&(r.directives=$),w&&Uj(r)}function jW(r,e,t=Lr){ve(r)&&(r=ew(r));for(const i in r){const n=r[i];let s;Xe(n)?"default"in n?s=ri(n.from||i,n.default,!0):s=ri(n.from||i):s=ri(n),Ft(s)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[i]=s}}function uE(r,e,t){Ir(ve(r)?r.map(i=>i.bind(e.proxy)):r.bind(e.proxy),e,t)}function Yj(r,e,t,i){let n=i.includes(".")?lz(t,i):()=>t[i];if(ot(r)){const s=e[r];ye(s)&&lu(n,s)}else if(ye(r))lu(n,r.bind(t));else if(Xe(r))if(ve(r))r.forEach(s=>Yj(s,e,t,i));else{const s=ye(r.handler)?r.handler.bind(t):e[r.handler];ye(s)&&lu(n,s,r)}}function Xj(r){const e=r.type,{mixins:t,extends:i}=e,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=r.appContext,a=s.get(e);let u;return a?u=a:!n.length&&!t&&!i?u=e:(u={},n.length&&n.forEach(l=>_u(u,l,o,!0)),_u(u,e,o)),Xe(e)&&s.set(e,u),u}function _u(r,e,t,i=!1){const{mixins:n,extends:s}=e;s&&_u(r,s,t,!0),n&&n.forEach(o=>_u(r,o,t,!0));for(const o in e)if(!(i&&o==="expose")){const a=zW[o]||t&&t[o];r[o]=a?a(r[o],e[o]):e[o]}return r}const zW={data:lE,props:cE,emits:cE,methods:bo,computed:bo,beforeCreate:kt,created:kt,beforeMount:kt,mounted:kt,beforeUpdate:kt,updated:kt,beforeDestroy:kt,beforeUnmount:kt,destroyed:kt,unmounted:kt,activated:kt,deactivated:kt,errorCaptured:kt,serverPrefetch:kt,components:bo,directives:bo,watch:WW,provide:lE,inject:HW};function lE(r,e){return e?r?function(){return Et(ye(r)?r.call(this,this):r,ye(e)?e.call(this,this):e)}:e:r}function HW(r,e){return bo(ew(r),ew(e))}function ew(r){if(ve(r)){const e={};for(let t=0;t1)return t&&ye(e)?e.call(i&&i.proxy):e}}const Qj={},Zj=()=>Object.create(Qj),ez=r=>Object.getPrototypeOf(r)===Qj;function KW(r,e,t,i=!1){const n={},s=Zj();r.propsDefaults=Object.create(null),tz(r,e,n,s);for(const o in r.propsOptions[0])o in n||(n[o]=void 0);t?r.props=i?n:Ij(n):r.type.props?r.props=n:r.props=s,r.attrs=s}function GW(r,e,t,i){const{props:n,attrs:s,vnode:{patchFlag:o}}=r,a=Me(n),[u]=r.propsOptions;let l=!1;if((i||o>0)&&!(o&16)){if(o&8){const c=r.vnode.dynamicProps;for(let d=0;d{u=!0;const[h,f]=rz(d,e,!0);Et(o,h),f&&a.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(c),r.extends&&c(r.extends),r.mixins&&r.mixins.forEach(c)}if(!s&&!u)return Xe(r)&&i.set(r,gs),gs;if(ve(s))for(let c=0;cr[0]==="_"||r==="$stable",Bw=r=>ve(r)?r.map(Mr):[Mr(r)],XW=(r,e,t)=>{if(e._n)return e;const i=yn((...n)=>Bw(e(...n)),t);return i._c=!1,i},nz=(r,e,t)=>{const i=r._ctx;for(const n in r){if(iz(n))continue;const s=r[n];if(ye(s))e[n]=XW(n,s,i);else if(s!=null){const o=Bw(s);e[n]=()=>o}}},sz=(r,e)=>{const t=Bw(e);r.slots.default=()=>t},oz=(r,e,t)=>{for(const i in e)(t||i!=="_")&&(r[i]=e[i])},JW=(r,e,t)=>{const i=r.slots=Zj();if(r.vnode.shapeFlag&32){const n=e._;n?(oz(i,e,t),t&&oj(i,"_",n,!0)):nz(e,i)}else e&&sz(r,e)},QW=(r,e,t)=>{const{vnode:i,slots:n}=r;let s=!0,o=ze;if(i.shapeFlag&32){const a=e._;a?t&&a===1?s=!1:oz(n,e,t):(s=!e.$stable,nz(e,n)),o=e}else e&&(sz(r,e),o={default:1});if(s)for(const a in n)!iz(a)&&o[a]==null&&delete n[a]},Bt=h4;function ZW(r){return e4(r)}function e4(r,e){const t=Bu();t.__VUE__=!0;const{insert:i,remove:n,patchProp:s,createElement:o,createText:a,createComment:u,setText:l,setElementText:c,parentNode:d,nextSibling:h,setScopeId:f=Lr,insertStaticContent:p}=r,v=(C,x,A,k=null,B=null,N=null,G=void 0,J=null,V=!!x.dynamicChildren)=>{if(C===x)return;C&&!hn(C,x)&&(k=D(C),me(C,B,N,!0),C=null),x.patchFlag===-2&&(V=!1,x.dynamicChildren=null);const{type:L,ref:ce,shapeFlag:Q}=x;switch(L){case Vu:_(C,x,A,k);break;case Wt:m(C,x,A,k);break;case Bl:C==null&&g(x,A,k,G);break;case Qe:S(C,x,A,k,B,N,G,J,V);break;default:Q&1?I(C,x,A,k,B,N,G,J,V):Q&6?$(C,x,A,k,B,N,G,J,V):(Q&64||Q&128)&&L.process(C,x,A,k,B,N,G,J,V,ne)}ce!=null&&B&&bu(ce,C&&C.ref,N,x||C,!x)},_=(C,x,A,k)=>{if(C==null)i(x.el=a(x.children),A,k);else{const B=x.el=C.el;x.children!==C.children&&l(B,x.children)}},m=(C,x,A,k)=>{C==null?i(x.el=u(x.children||""),A,k):x.el=C.el},g=(C,x,A,k)=>{[C.el,C.anchor]=p(C.children,x,A,k,C.el,C.anchor)},E=({el:C,anchor:x},A,k)=>{let B;for(;C&&C!==x;)B=h(C),i(C,A,k),C=B;i(x,A,k)},y=({el:C,anchor:x})=>{let A;for(;C&&C!==x;)A=h(C),n(C),C=A;n(x)},I=(C,x,A,k,B,N,G,J,V)=>{x.type==="svg"?G="svg":x.type==="math"&&(G="mathml"),C==null?O(x,A,k,B,N,G,J,V):w(C,x,B,N,G,J,V)},O=(C,x,A,k,B,N,G,J)=>{let V,L;const{props:ce,shapeFlag:Q,transition:oe,dirs:he}=C;if(V=C.el=o(C.type,N,ce&&ce.is,ce),Q&8?c(V,C.children):Q&16&&b(C.children,V,null,k,B,kl(C,N),G,J),he&&sn(C,null,k,"created"),T(V,C,C.scopeId,G,k),ce){for(const Ae in ce)Ae!=="value"&&!Eo(Ae)&&s(V,Ae,null,ce[Ae],N,k);"value"in ce&&s(V,"value",null,ce.value,N),(L=ce.onVnodeBeforeMount)&&xr(L,k,C)}he&&sn(C,null,k,"beforeMount");const Ie=t4(B,oe);Ie&&oe.beforeEnter(V),i(V,x,A),((L=ce&&ce.onVnodeMounted)||Ie||he)&&Bt(()=>{L&&xr(L,k,C),Ie&&oe.enter(V),he&&sn(C,null,k,"mounted")},B)},T=(C,x,A,k,B)=>{if(A&&f(C,A),k)for(let N=0;N{for(let L=V;L{const J=x.el=C.el;let{patchFlag:V,dynamicChildren:L,dirs:ce}=x;V|=C.patchFlag&16;const Q=C.props||ze,oe=x.props||ze;let he;if(A&&on(A,!1),(he=oe.onVnodeBeforeUpdate)&&xr(he,A,x,C),ce&&sn(x,C,A,"beforeUpdate"),A&&on(A,!0),(Q.innerHTML&&oe.innerHTML==null||Q.textContent&&oe.textContent==null)&&c(J,""),L?R(C.dynamicChildren,L,J,A,k,kl(x,B),N):G||te(C,x,J,null,A,k,kl(x,B),N,!1),V>0){if(V&16)P(J,Q,oe,A,B);else if(V&2&&Q.class!==oe.class&&s(J,"class",null,oe.class,B),V&4&&s(J,"style",Q.style,oe.style,B),V&8){const Ie=x.dynamicProps;for(let Ae=0;Ae{he&&xr(he,A,x,C),ce&&sn(x,C,A,"updated")},k)},R=(C,x,A,k,B,N,G)=>{for(let J=0;J{if(x!==A){if(x!==ze)for(const N in x)!Eo(N)&&!(N in A)&&s(C,N,x[N],null,B,k);for(const N in A){if(Eo(N))continue;const G=A[N],J=x[N];G!==J&&N!=="value"&&s(C,N,J,G,B,k)}"value"in A&&s(C,"value",x.value,A.value,B)}},S=(C,x,A,k,B,N,G,J,V)=>{const L=x.el=C?C.el:a(""),ce=x.anchor=C?C.anchor:a("");let{patchFlag:Q,dynamicChildren:oe,slotScopeIds:he}=x;he&&(J=J?J.concat(he):he),C==null?(i(L,A,k),i(ce,A,k),b(x.children||[],A,ce,B,N,G,J,V)):Q>0&&Q&64&&oe&&C.dynamicChildren?(R(C.dynamicChildren,oe,A,B,N,G,J),(x.key!=null||B&&x===B.subTree)&&Lw(C,x,!0)):te(C,x,A,ce,B,N,G,J,V)},$=(C,x,A,k,B,N,G,J,V)=>{x.slotScopeIds=J,C==null?x.shapeFlag&512?B.ctx.activate(x,A,k,G,V):q(x,A,k,B,N,G,V):F(C,x,V)},q=(C,x,A,k,B,N,G)=>{const J=C.component=b4(C,k,B);if(Hu(C)&&(J.ctx.renderer=ne),w4(J,!1,G),J.asyncDep){if(B&&B.registerDep(J,Z,G),!C.el){const V=J.subTree=at(Wt);m(null,V,x,A)}}else Z(J,C,x,A,B,N,G)},F=(C,x,A)=>{const k=x.component=C.component;if(c4(C,x,A))if(k.asyncDep&&!k.asyncResolved){z(k,x,A);return}else k.next=x,k.update();else x.el=C.el,k.vnode=x},Z=(C,x,A,k,B,N,G)=>{const J=()=>{if(C.isMounted){let{next:Q,bu:oe,u:he,parent:Ie,vnode:Ae}=C;{const K=az(C);if(K){Q&&(Q.el=Ae.el,z(C,Q,G)),K.asyncDep.then(()=>{C.isUnmounted||J()});return}}let Ce=Q,bt;on(C,!1),Q?(Q.el=Ae.el,z(C,Q,G)):Q=Ae,oe&&su(oe),(bt=Q.props&&Q.props.onVnodeBeforeUpdate)&&xr(bt,Ie,Q,Ae),on(C,!0);const dt=fE(C),ae=C.subTree;C.subTree=dt,v(ae,dt,d(ae.el),D(ae),C,B,N),Q.el=dt.el,Ce===null&&d4(C,dt.el),he&&Bt(he,B),(bt=Q.props&&Q.props.onVnodeUpdated)&&Bt(()=>xr(bt,Ie,Q,Ae),B)}else{let Q;const{el:oe,props:he}=x,{bm:Ie,m:Ae,parent:Ce,root:bt,type:dt}=C,ae=_s(x);on(C,!1),Ie&&su(Ie),!ae&&(Q=he&&he.onVnodeBeforeMount)&&xr(Q,Ce,x),on(C,!0);{bt.ce&&bt.ce._injectChildStyle(dt);const K=C.subTree=fE(C);v(null,K,A,k,C,B,N),x.el=K.el}if(Ae&&Bt(Ae,B),!ae&&(Q=he&&he.onVnodeMounted)){const K=x;Bt(()=>xr(Q,Ce,K),B)}(x.shapeFlag&256||Ce&&_s(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&C.a&&Bt(C.a,B),C.isMounted=!0,x=A=k=null}};C.scope.on();const V=C.effect=new dj(J);C.scope.off();const L=C.update=V.run.bind(V),ce=C.job=V.runIfDirty.bind(V);ce.i=C,ce.id=C.uid,V.scheduler=()=>Fw(ce),on(C,!0),L()},z=(C,x,A)=>{x.component=C;const k=C.vnode.props;C.vnode=x,C.next=null,GW(C,x.props,k,A),QW(C,x.children,A),Gi(),rE(C),Yi()},te=(C,x,A,k,B,N,G,J,V=!1)=>{const L=C&&C.children,ce=C?C.shapeFlag:0,Q=x.children,{patchFlag:oe,shapeFlag:he}=x;if(oe>0){if(oe&128){we(L,Q,A,k,B,N,G,J,V);return}else if(oe&256){pe(L,Q,A,k,B,N,G,J,V);return}}he&8?(ce&16&&_e(L,B,N),Q!==L&&c(A,Q)):ce&16?he&16?we(L,Q,A,k,B,N,G,J,V):_e(L,B,N,!0):(ce&8&&c(A,""),he&16&&b(Q,A,k,B,N,G,J,V))},pe=(C,x,A,k,B,N,G,J,V)=>{C=C||gs,x=x||gs;const L=C.length,ce=x.length,Q=Math.min(L,ce);let oe;for(oe=0;oece?_e(C,B,N,!0,!1,Q):b(x,A,k,B,N,G,J,V,Q)},we=(C,x,A,k,B,N,G,J,V)=>{let L=0;const ce=x.length;let Q=C.length-1,oe=ce-1;for(;L<=Q&&L<=oe;){const he=C[L],Ie=x[L]=V?Ri(x[L]):Mr(x[L]);if(hn(he,Ie))v(he,Ie,A,null,B,N,G,J,V);else break;L++}for(;L<=Q&&L<=oe;){const he=C[Q],Ie=x[oe]=V?Ri(x[oe]):Mr(x[oe]);if(hn(he,Ie))v(he,Ie,A,null,B,N,G,J,V);else break;Q--,oe--}if(L>Q){if(L<=oe){const he=oe+1,Ie=heoe)for(;L<=Q;)me(C[L],B,N,!0),L++;else{const he=L,Ie=L,Ae=new Map;for(L=Ie;L<=oe;L++){const se=x[L]=V?Ri(x[L]):Mr(x[L]);se.key!=null&&Ae.set(se.key,L)}let Ce,bt=0;const dt=oe-Ie+1;let ae=!1,K=0;const ee=new Array(dt);for(L=0;L=dt){me(se,B,N,!0);continue}let Ee;if(se.key!=null)Ee=Ae.get(se.key);else for(Ce=Ie;Ce<=oe;Ce++)if(ee[Ce-Ie]===0&&hn(se,x[Ce])){Ee=Ce;break}Ee===void 0?me(se,B,N,!0):(ee[Ee-Ie]=L+1,Ee>=K?K=Ee:ae=!0,v(se,x[Ee],A,null,B,N,G,J,V),bt++)}const ie=ae?r4(ee):gs;for(Ce=ie.length-1,L=dt-1;L>=0;L--){const se=Ie+L,Ee=x[se],wi=se+1{const{el:N,type:G,transition:J,children:V,shapeFlag:L}=C;if(L&6){re(C.component.subTree,x,A,k);return}if(L&128){C.suspense.move(x,A,k);return}if(L&64){G.move(C,x,A,ne);return}if(G===Qe){i(N,x,A);for(let Q=0;QJ.enter(N),B);else{const{leave:Q,delayLeave:oe,afterLeave:he}=J,Ie=()=>i(N,x,A),Ae=()=>{Q(N,()=>{Ie(),he&&he()})};oe?oe(N,Ie,Ae):Ae()}else i(N,x,A)},me=(C,x,A,k=!1,B=!1)=>{const{type:N,props:G,ref:J,children:V,dynamicChildren:L,shapeFlag:ce,patchFlag:Q,dirs:oe,cacheIndex:he}=C;if(Q===-2&&(B=!1),J!=null&&bu(J,null,A,C,!0),he!=null&&(x.renderCache[he]=void 0),ce&256){x.ctx.deactivate(C);return}const Ie=ce&1&&oe,Ae=!_s(C);let Ce;if(Ae&&(Ce=G&&G.onVnodeBeforeUnmount)&&xr(Ce,x,C),ce&6)ct(C.component,A,k);else{if(ce&128){C.suspense.unmount(A,k);return}Ie&&sn(C,null,x,"beforeUnmount"),ce&64?C.type.remove(C,x,A,ne,k):L&&!L.hasOnce&&(N!==Qe||Q>0&&Q&64)?_e(L,x,A,!1,!0):(N===Qe&&Q&384||!B&&ce&16)&&_e(V,x,A),k&&qe(C)}(Ae&&(Ce=G&&G.onVnodeUnmounted)||Ie)&&Bt(()=>{Ce&&xr(Ce,x,C),Ie&&sn(C,null,x,"unmounted")},A)},qe=C=>{const{type:x,el:A,anchor:k,transition:B}=C;if(x===Qe){De(A,k);return}if(x===Bl){y(C);return}const N=()=>{n(A),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(C.shapeFlag&1&&B&&!B.persisted){const{leave:G,delayLeave:J}=B,V=()=>G(A,N);J?J(C.el,N,V):V()}else N()},De=(C,x)=>{let A;for(;C!==x;)A=h(C),n(C),C=A;n(x)},ct=(C,x,A)=>{const{bum:k,scope:B,job:N,subTree:G,um:J,m:V,a:L}=C;hE(V),hE(L),k&&su(k),B.stop(),N&&(N.flags|=8,me(G,C,x,A)),J&&Bt(J,x),Bt(()=>{C.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},_e=(C,x,A,k=!1,B=!1,N=0)=>{for(let G=N;G{if(C.shapeFlag&6)return D(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const x=h(C.anchor||C.el),A=x&&x[Nj];return A?h(A):x};let U=!1;const X=(C,x,A)=>{C==null?x._vnode&&me(x._vnode,null,null,!0):v(x._vnode||null,C,x,null,null,null,A),x._vnode=C,U||(U=!0,rE(),Aj(),U=!1)},ne={p:v,um:me,m:re,r:qe,mt:q,mc:b,pc:te,pbc:R,n:D,o:r};return{render:X,hydrate:void 0,createApp:VW(X)}}function kl({type:r,props:e},t){return t==="svg"&&r==="foreignObject"||t==="mathml"&&r==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function on({effect:r,job:e},t){t?(r.flags|=32,e.flags|=4):(r.flags&=-33,e.flags&=-5)}function t4(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function Lw(r,e,t=!1){const i=r.children,n=e.children;if(ve(i)&&ve(n))for(let s=0;s>1,r[t[a]]0&&(e[i]=t[s-1]),t[s]=i)}}for(s=t.length,o=t[s-1];s-- >0;)t[s]=o,o=e[o];return t}function az(r){const e=r.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:az(e)}function hE(r){if(r)for(let e=0;eri(i4);function lu(r,e,t){return uz(r,e,t)}function uz(r,e,t=ze){const{immediate:i,deep:n,flush:s,once:o}=t,a=Et({},t),u=e&&i||!e&&s!=="post";let l;if(Ho){if(s==="sync"){const f=n4();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!u){const f=()=>{};return f.stop=Lr,f.resume=Lr,f.pause=Lr,f}}const c=Nt;a.call=(f,p,v)=>Ir(f,c,p,v);let d=!1;s==="post"?a.scheduler=f=>{Bt(f,c&&c.suspense)}:s!=="sync"&&(d=!0,a.scheduler=(f,p)=>{p?f():Fw(f)}),a.augmentJob=f=>{e&&(f.flags|=4),d&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const h=bW(r,e,a);return Ho&&(l?l.push(h):u&&h()),h}function s4(r,e,t){const i=this.proxy,n=ot(r)?r.includes(".")?lz(i,r):()=>i[r]:r.bind(i,i);let s;ye(e)?s=e:(s=e.handler,t=e);const o=aa(this),a=uz(n,s.bind(i),t);return o(),a}function lz(r,e){const t=e.split(".");return()=>{let i=r;for(let n=0;ne==="modelValue"||e==="model-value"?r.modelModifiers:r[`${e}Modifiers`]||r[`${Hi(e)}Modifiers`]||r[`${Dn(e)}Modifiers`];function a4(r,e,...t){if(r.isUnmounted)return;const i=r.vnode.props||ze;let n=t;const s=e.startsWith("update:"),o=s&&o4(i,e.slice(7));o&&(o.trim&&(n=t.map(c=>ot(c)?c.trim():c)),o.number&&(n=t.map(W_)));let a,u=i[a=xl(e)]||i[a=xl(Hi(e))];!u&&s&&(u=i[a=xl(Dn(e))]),u&&Ir(u,r,6,n);const l=i[a+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[a])return;r.emitted[a]=!0,Ir(l,r,6,n)}}function cz(r,e,t=!1){const i=e.emitsCache,n=i.get(r);if(n!==void 0)return n;const s=r.emits;let o={},a=!1;if(!ye(r)){const u=l=>{const c=cz(l,e,!0);c&&(a=!0,Et(o,c))};!t&&e.mixins.length&&e.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}return!s&&!a?(Xe(r)&&i.set(r,null),null):(ve(s)?s.forEach(u=>o[u]=null):Et(o,s),Xe(r)&&i.set(r,o),o)}function Uu(r,e){return!r||!Nu(e)?!1:(e=e.slice(2).replace(/Once$/,""),ke(r,e[0].toLowerCase()+e.slice(1))||ke(r,Dn(e))||ke(r,e))}function fE(r){const{type:e,vnode:t,proxy:i,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:u,render:l,renderCache:c,props:d,data:h,setupState:f,ctx:p,inheritAttrs:v}=r,_=yu(r);let m,g;try{if(t.shapeFlag&4){const y=n||i,I=y;m=Mr(l.call(I,y,c,d,f,h,p)),g=a}else{const y=e;m=Mr(y.length>1?y(d,{attrs:a,slots:o,emit:u}):y(d,null)),g=e.props?a:u4(a)}}catch(y){$o.length=0,zu(y,r,1),m=at(Wt)}let E=m;if(g&&v!==!1){const y=Object.keys(g),{shapeFlag:I}=E;y.length&&I&7&&(s&&y.some(Tw)&&(g=l4(g,s)),E=Wi(E,g,!1,!0))}return t.dirs&&(E=Wi(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&Lo(E,t.transition),m=E,yu(_),m}const u4=r=>{let e;for(const t in r)(t==="class"||t==="style"||Nu(t))&&((e||(e={}))[t]=r[t]);return e},l4=(r,e)=>{const t={};for(const i in r)(!Tw(i)||!(i.slice(9)in e))&&(t[i]=r[i]);return t};function c4(r,e,t){const{props:i,children:n,component:s}=r,{props:o,children:a,patchFlag:u}=e,l=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&u>=0){if(u&1024)return!0;if(u&16)return i?pE(i,o,l):!!o;if(u&8){const c=e.dynamicProps;for(let d=0;dr.__isSuspense;function h4(r,e){e&&e.pendingBranch?ve(r)?e.effects.push(...r):e.effects.push(r):EW(r)}const Qe=Symbol.for("v-fgt"),Vu=Symbol.for("v-txt"),Wt=Symbol.for("v-cmt"),Bl=Symbol.for("v-stc"),$o=[];let rr=null;function Oe(r=!1){$o.push(rr=r?null:[])}function f4(){$o.pop(),rr=$o[$o.length-1]||null}let jo=1;function vE(r,e=!1){jo+=r,r<0&&rr&&e&&(rr.hasOnce=!0)}function hz(r){return r.dynamicChildren=jo>0?rr||gs:null,f4(),jo>0&&rr&&rr.push(r),r}function Ne(r,e,t,i,n,s){return hz(W(r,e,t,i,n,s,!0))}function di(r,e,t,i,n){return hz(at(r,e,t,i,n,!0))}function zo(r){return r?r.__v_isVNode===!0:!1}function hn(r,e){return r.type===e.type&&r.key===e.key}const fz=({key:r})=>r??null,cu=({ref:r,ref_key:e,ref_for:t})=>(typeof r=="number"&&(r=""+r),r!=null?ot(r)||Ft(r)||ye(r)?{i:xt,r,k:e,f:!!t}:r:null);function W(r,e=null,t=null,i=0,n=null,s=r===Qe?0:1,o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&fz(e),ref:e&&cu(e),scopeId:Mj,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:xt};return a?(jw(u,t),s&128&&r.normalize(u)):t&&(u.shapeFlag|=ot(t)?8:16),jo>0&&!o&&rr&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&rr.push(u),u}const at=p4;function p4(r,e=null,t=null,i=0,n=null,s=!1){if((!r||r===kW)&&(r=Wt),zo(r)){const a=Wi(r,e,!0);return t&&jw(a,t),jo>0&&!s&&rr&&(a.shapeFlag&6?rr[rr.indexOf(r)]=a:rr.push(a)),a.patchFlag=-2,a}if(I4(r)&&(r=r.__vccOpts),e){e=v4(e);let{class:a,style:u}=e;a&&!ot(a)&&(e.class=Ai(a)),Xe(u)&&(Nw(u)&&!ve(u)&&(u=Et({},u)),e.style=Rw(u))}const o=ot(r)?1:dz(r)?128:Fj(r)?64:Xe(r)?4:ye(r)?2:0;return W(r,e,t,i,n,o,s,!0)}function v4(r){return r?Nw(r)||ez(r)?Et({},r):r:null}function Wi(r,e,t=!1,i=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:u}=r,l=e?g4(n||{},e):n,c={__v_isVNode:!0,__v_skip:!0,type:r.type,props:l,key:l&&fz(l),ref:e&&e.ref?t&&s?ve(s)?s.concat(cu(e)):[s,cu(e)]:cu(e):s,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:a,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==Qe?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:u,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Wi(r.ssContent),ssFallback:r.ssFallback&&Wi(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return u&&i&&Lo(c,u.clone(c)),c}function ar(r=" ",e=0){return at(Vu,null,r,e)}function Xr(r="",e=!1){return e?(Oe(),di(Wt,null,r)):at(Wt,null,r)}function Mr(r){return r==null||typeof r=="boolean"?at(Wt):ve(r)?at(Qe,null,r.slice()):zo(r)?Ri(r):at(Vu,null,String(r))}function Ri(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Wi(r)}function jw(r,e){let t=0;const{shapeFlag:i}=r;if(e==null)e=null;else if(ve(e))t=16;else if(typeof e=="object")if(i&65){const n=e.default;n&&(n._c&&(n._d=!1),jw(r,n()),n._c&&(n._d=!0));return}else{t=32;const n=e._;!n&&!ez(e)?e._ctx=xt:n===3&&xt&&(xt.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else ye(e)?(e={default:e,_ctx:xt},t=32):(e=String(e),i&64?(t=16,e=[ar(e)]):t=8);r.children=e,r.shapeFlag|=t}function g4(...r){const e={};for(let t=0;tNt||xt;let wu,rw;{const r=Bu(),e=(t,i)=>{let n;return(n=r[t])||(n=r[t]=[]),n.push(i),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};wu=e("__VUE_INSTANCE_SETTERS__",t=>Nt=t),rw=e("__VUE_SSR_SETTERS__",t=>Ho=t)}const aa=r=>{const e=Nt;return wu(r),r.scope.on(),()=>{r.scope.off(),wu(e)}},gE=()=>{Nt&&Nt.scope.off(),wu(null)};function pz(r){return r.vnode.shapeFlag&4}let Ho=!1;function w4(r,e=!1,t=!1){e&&rw(e);const{props:i,children:n}=r.vnode,s=pz(r);KW(r,i,s,e),JW(r,n,t);const o=s?E4(r,e):void 0;return e&&rw(!1),o}function E4(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,BW);const{setup:i}=t;if(i){Gi();const n=r.setupContext=i.length>1?O4(r):null,s=aa(r),o=sa(i,r,0,[r.props,n]),a=rj(o);if(Yi(),s(),(a||r.sp)&&!_s(r)&&Uj(r),a){if(o.then(gE,gE),e)return o.then(u=>{mE(r,u)}).catch(u=>{zu(u,r,0)});r.asyncDep=o}else mE(r,o)}else vz(r)}function mE(r,e,t){ye(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:Xe(e)&&(r.setupState=Rj(e)),vz(r)}function vz(r,e,t){const i=r.type;r.render||(r.render=i.render||Lr);{const n=aa(r);Gi();try{LW(r)}finally{Yi(),n()}}}const S4={get(r,e){return Dt(r,"get",""),r[e]}};function O4(r){const e=t=>{r.exposed=t||{}};return{attrs:new Proxy(r.attrs,S4),slots:r.slots,emit:r.emit,expose:e}}function Ku(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(Rj($j(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in To)return To[t](r)},has(e,t){return t in e||t in To}})):r.proxy}function I4(r){return ye(r)&&"__vccOpts"in r}const Sr=(r,e)=>mW(r,e,Ho);function Gu(r,e,t){const i=arguments.length;return i===2?Xe(e)&&!ve(e)?zo(e)?at(r,null,[e]):at(r,e):at(r,null,e):(i>3?t=Array.prototype.slice.call(arguments,2):i===3&&zo(t)&&(t=[t]),at(r,e,t))}const T4="3.5.13";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let iw;const yE=typeof window<"u"&&window.trustedTypes;if(yE)try{iw=yE.createPolicy("vue",{createHTML:r=>r})}catch{}const gz=iw?r=>iw.createHTML(r):r=>r,$4="http://www.w3.org/2000/svg",P4="http://www.w3.org/1998/Math/MathML",Jr=typeof document<"u"?document:null,bE=Jr&&Jr.createElement("template"),R4={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,i)=>{const n=e==="svg"?Jr.createElementNS($4,r):e==="mathml"?Jr.createElementNS(P4,r):t?Jr.createElement(r,{is:t}):Jr.createElement(r);return r==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:r=>Jr.createTextNode(r),createComment:r=>Jr.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Jr.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,i,n,s){const o=t?t.previousSibling:e.lastChild;if(n&&(n===s||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),t),!(n===s||!(n=n.nextSibling)););else{bE.innerHTML=gz(i==="svg"?`${r}`:i==="mathml"?`${r}`:r);const a=bE.content;if(i==="svg"||i==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Ei="transition",ho="animation",Wo=Symbol("_vtc"),mz={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},C4=Et({},Lj,mz),x4=r=>(r.displayName="Transition",r.props=C4,r),q4=x4((r,{slots:e})=>Gu($W,A4(r),e)),an=(r,e=[])=>{ve(r)?r.forEach(t=>t(...e)):r&&r(...e)},_E=r=>r?ve(r)?r.some(e=>e.length>1):r.length>1:!1;function A4(r){const e={};for(const S in r)S in mz||(e[S]=r[S]);if(r.css===!1)return e;const{name:t="v",type:i,duration:n,enterFromClass:s=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:u=s,appearActiveClass:l=o,appearToClass:c=a,leaveFromClass:d=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=r,p=D4(n),v=p&&p[0],_=p&&p[1],{onBeforeEnter:m,onEnter:g,onEnterCancelled:E,onLeave:y,onLeaveCancelled:I,onBeforeAppear:O=m,onAppear:T=g,onAppearCancelled:b=E}=e,w=(S,$,q,F)=>{S._enterCancelled=F,un(S,$?c:a),un(S,$?l:o),q&&q()},R=(S,$)=>{S._isLeaving=!1,un(S,d),un(S,f),un(S,h),$&&$()},P=S=>($,q)=>{const F=S?T:g,Z=()=>w($,S,q);an(F,[$,Z]),wE(()=>{un($,S?u:s),Kr($,S?c:a),_E(F)||EE($,i,v,Z)})};return Et(e,{onBeforeEnter(S){an(m,[S]),Kr(S,s),Kr(S,o)},onBeforeAppear(S){an(O,[S]),Kr(S,u),Kr(S,l)},onEnter:P(!1),onAppear:P(!0),onLeave(S,$){S._isLeaving=!0;const q=()=>R(S,$);Kr(S,d),S._enterCancelled?(Kr(S,h),IE()):(IE(),Kr(S,h)),wE(()=>{S._isLeaving&&(un(S,d),Kr(S,f),_E(y)||EE(S,i,_,q))}),an(y,[S,q])},onEnterCancelled(S){w(S,!1,void 0,!0),an(E,[S])},onAppearCancelled(S){w(S,!0,void 0,!0),an(b,[S])},onLeaveCancelled(S){R(S),an(I,[S])}})}function D4(r){if(r==null)return null;if(Xe(r))return[Ll(r.enter),Ll(r.leave)];{const e=Ll(r);return[e,e]}}function Ll(r){return LH(r)}function Kr(r,e){e.split(/\s+/).forEach(t=>t&&r.classList.add(t)),(r[Wo]||(r[Wo]=new Set)).add(e)}function un(r,e){e.split(/\s+/).forEach(i=>i&&r.classList.remove(i));const t=r[Wo];t&&(t.delete(e),t.size||(r[Wo]=void 0))}function wE(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let M4=0;function EE(r,e,t,i){const n=r._endId=++M4,s=()=>{n===r._endId&&i()};if(t!=null)return setTimeout(s,t);const{type:o,timeout:a,propCount:u}=N4(r,e);if(!o)return i();const l=o+"end";let c=0;const d=()=>{r.removeEventListener(l,h),s()},h=f=>{f.target===r&&++c>=u&&d()};setTimeout(()=>{c(t[p]||"").split(", "),n=i(`${Ei}Delay`),s=i(`${Ei}Duration`),o=SE(n,s),a=i(`${ho}Delay`),u=i(`${ho}Duration`),l=SE(a,u);let c=null,d=0,h=0;e===Ei?o>0&&(c=Ei,d=o,h=s.length):e===ho?l>0&&(c=ho,d=l,h=u.length):(d=Math.max(o,l),c=d>0?o>l?Ei:ho:null,h=c?c===Ei?s.length:u.length:0);const f=c===Ei&&/\b(transform|all)(,|$)/.test(i(`${Ei}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:f}}function SE(r,e){for(;r.lengthOE(t)+OE(r[i])))}function OE(r){return r==="auto"?0:Number(r.slice(0,-1).replace(",","."))*1e3}function IE(){return document.body.offsetHeight}function F4(r,e,t){const i=r[Wo];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}const TE=Symbol("_vod"),k4=Symbol("_vsh"),B4=Symbol(""),L4=/(^|;)\s*display\s*:/;function j4(r,e,t){const i=r.style,n=ot(t);let s=!1;if(t&&!n){if(e)if(ot(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&du(i,a,"")}else for(const o in e)t[o]==null&&du(i,o,"");for(const o in t)o==="display"&&(s=!0),du(i,o,t[o])}else if(n){if(e!==t){const o=i[B4];o&&(t+=";"+o),i.cssText=t,s=L4.test(t)}}else e&&r.removeAttribute("style");TE in r&&(r[TE]=s?i.display:"",r[k4]&&(i.display="none"))}const $E=/\s*!important$/;function du(r,e,t){if(ve(t))t.forEach(i=>du(r,e,i));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const i=z4(r,e);$E.test(t)?r.setProperty(Dn(i),t.replace($E,""),"important"):r[i]=t}}const PE=["Webkit","Moz","ms"],jl={};function z4(r,e){const t=jl[e];if(t)return t;let i=Hi(e);if(i!=="filter"&&i in r)return jl[e]=i;i=sj(i);for(let n=0;nzl||(V4.then(()=>zl=0),zl=Date.now());function G4(r,e){const t=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=t.attached)return;Ir(Y4(i,t.value),e,5,[i])};return t.value=r,t.attached=K4(),t}function Y4(r,e){if(ve(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(i=>n=>!n._stopped&&i&&i(n))}else return e}const DE=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,X4=(r,e,t,i,n,s)=>{const o=n==="svg";e==="class"?F4(r,i,o):e==="style"?j4(r,t,i):Nu(e)?Tw(e)||W4(r,e,t,i,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):J4(r,e,i,o))?(xE(r,e,i),!r.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&CE(r,e,i,o,s,e!=="value")):r._isVueCE&&(/[A-Z]/.test(e)||!ot(i))?xE(r,Hi(e),i,s,e):(e==="true-value"?r._trueValue=i:e==="false-value"&&(r._falseValue=i),CE(r,e,i,o))};function J4(r,e,t,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in r&&DE(e)&&ye(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const n=r.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return DE(e)&&ot(t)?!1:e in r}const ME=r=>{const e=r.props["onUpdate:modelValue"]||!1;return ve(e)?t=>su(e,t):e};function Q4(r){r.target.composing=!0}function NE(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Hl=Symbol("_assign"),Ti={created(r,{modifiers:{lazy:e,trim:t,number:i}},n){r[Hl]=ME(n);const s=i||n.props&&n.props.type==="number";us(r,e?"change":"input",o=>{if(o.target.composing)return;let a=r.value;t&&(a=a.trim()),s&&(a=W_(a)),r[Hl](a)}),t&&us(r,"change",()=>{r.value=r.value.trim()}),e||(us(r,"compositionstart",Q4),us(r,"compositionend",NE),us(r,"change",NE))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,oldValue:t,modifiers:{lazy:i,trim:n,number:s}},o){if(r[Hl]=ME(o),r.composing)return;const a=(s||r.type==="number")&&!/^0\d/.test(r.value)?W_(r.value):r.value,u=e??"";a!==u&&(document.activeElement===r&&r.type!=="range"&&(i&&e===t||n&&r.value.trim()===u)||(r.value=u))}},Z4=["ctrl","shift","alt","meta"],eU={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>Z4.some(t=>r[`${t}Key`]&&!e.includes(t))},yz=(r,e)=>{const t=r._withMods||(r._withMods={}),i=e.join(".");return t[i]||(t[i]=(n,...s)=>{for(let o=0;o{const e=rU().createApp(...r),{mount:t}=e;return e.mount=i=>{const n=sU(i);if(!n)return;const s=e._component;!ye(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=t(n,!1,nU(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e};function nU(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function sU(r){return ot(r)?document.querySelector(r):r}/*! - * pinia v3.0.2 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const oU=Symbol();var kE;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(kE||(kE={}));function aU(){const r=KH(!0),e=r.run(()=>it({}));let t=[],i=[];const n=$j({install(s){n._a=s,s.provide(oU,n),s.config.globalProperties.$pinia=n,i.forEach(o=>t.push(o)),i=[]},use(s){return this._a?t.push(s):i.push(s),this},_p:t,_a:null,_e:r,_s:new Map,state:e});return n}/*! - * vue-router v4.5.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const ls=typeof document<"u";function bz(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function uU(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&bz(r.default)}const Fe=Object.assign;function Wl(r,e){const t={};for(const i in e){const n=e[i];t[i]=Tr(n)?n.map(r):r(n)}return t}const Po=()=>{},Tr=Array.isArray,_z=/#/g,lU=/&/g,cU=/\//g,dU=/=/g,hU=/\?/g,wz=/\+/g,fU=/%5B/g,pU=/%5D/g,Ez=/%5E/g,vU=/%60/g,Sz=/%7B/g,gU=/%7C/g,Oz=/%7D/g,mU=/%20/g;function zw(r){return encodeURI(""+r).replace(gU,"|").replace(fU,"[").replace(pU,"]")}function yU(r){return zw(r).replace(Sz,"{").replace(Oz,"}").replace(Ez,"^")}function nw(r){return zw(r).replace(wz,"%2B").replace(mU,"+").replace(_z,"%23").replace(lU,"%26").replace(vU,"`").replace(Sz,"{").replace(Oz,"}").replace(Ez,"^")}function bU(r){return nw(r).replace(dU,"%3D")}function _U(r){return zw(r).replace(_z,"%23").replace(hU,"%3F")}function wU(r){return r==null?"":_U(r).replace(cU,"%2F")}function Uo(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const EU=/\/$/,SU=r=>r.replace(EU,"");function Ul(r,e,t="/"){let i,n={},s="",o="";const a=e.indexOf("#");let u=e.indexOf("?");return a=0&&(u=-1),u>-1&&(i=e.slice(0,u),s=e.slice(u+1,a>-1?a:e.length),n=r(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=$U(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:n,hash:Uo(o)}}function OU(r,e){const t=e.query?r(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function BE(r,e){return!e||!r.toLowerCase().startsWith(e.toLowerCase())?r:r.slice(e.length)||"/"}function IU(r,e,t){const i=e.matched.length-1,n=t.matched.length-1;return i>-1&&i===n&&Ts(e.matched[i],t.matched[n])&&Iz(e.params,t.params)&&r(e.query)===r(t.query)&&e.hash===t.hash}function Ts(r,e){return(r.aliasOf||r)===(e.aliasOf||e)}function Iz(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(!TU(r[t],e[t]))return!1;return!0}function TU(r,e){return Tr(r)?LE(r,e):Tr(e)?LE(e,r):r===e}function LE(r,e){return Tr(e)?r.length===e.length&&r.every((t,i)=>t===e[i]):r.length===1&&r[0]===e}function $U(r,e){if(r.startsWith("/"))return r;if(!r)return e;const t=e.split("/"),i=r.split("/"),n=i[i.length-1];(n===".."||n===".")&&i.push("");let s=t.length-1,o,a;for(o=0;o1&&s--;else break;return t.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const Si={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Vo;(function(r){r.pop="pop",r.push="push"})(Vo||(Vo={}));var Ro;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Ro||(Ro={}));function PU(r){if(!r)if(ls){const e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),SU(r)}const RU=/^[^#]+#/;function CU(r,e){return r.replace(RU,"#")+e}function xU(r,e){const t=document.documentElement.getBoundingClientRect(),i=r.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const Yu=()=>({left:window.scrollX,top:window.scrollY});function qU(r){let e;if("el"in r){const t=r.el,i=typeof t=="string"&&t.startsWith("#"),n=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!n)return;e=xU(n,r)}else e=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function jE(r,e){return(history.state?history.state.position-e:-1)+r}const sw=new Map;function AU(r,e){sw.set(r,e)}function DU(r){const e=sw.get(r);return sw.delete(r),e}let MU=()=>location.protocol+"//"+location.host;function Tz(r,e){const{pathname:t,search:i,hash:n}=e,s=r.indexOf("#");if(s>-1){let a=n.includes(r.slice(s))?r.slice(s).length:1,u=n.slice(a);return u[0]!=="/"&&(u="/"+u),BE(u,"")}return BE(t,r)+i+n}function NU(r,e,t,i){let n=[],s=[],o=null;const a=({state:h})=>{const f=Tz(r,location),p=t.value,v=e.value;let _=0;if(h){if(t.value=f,e.value=h,o&&o===p){o=null;return}_=v?h.position-v.position:0}else i(f);n.forEach(m=>{m(t.value,p,{delta:_,type:Vo.pop,direction:_?_>0?Ro.forward:Ro.back:Ro.unknown})})};function u(){o=t.value}function l(h){n.push(h);const f=()=>{const p=n.indexOf(h);p>-1&&n.splice(p,1)};return s.push(f),f}function c(){const{history:h}=window;h.state&&h.replaceState(Fe({},h.state,{scroll:Yu()}),"")}function d(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:u,listen:l,destroy:d}}function zE(r,e,t,i=!1,n=!1){return{back:r,current:e,forward:t,replaced:i,position:window.history.length,scroll:n?Yu():null}}function FU(r){const{history:e,location:t}=window,i={value:Tz(r,t)},n={value:e.state};n.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(u,l,c){const d=r.indexOf("#"),h=d>-1?(t.host&&document.querySelector("base")?r:r.slice(d))+u:MU()+r+u;try{e[c?"replaceState":"pushState"](l,"",h),n.value=l}catch(f){console.error(f),t[c?"replace":"assign"](h)}}function o(u,l){const c=Fe({},e.state,zE(n.value.back,u,n.value.forward,!0),l,{position:n.value.position});s(u,c,!0),i.value=u}function a(u,l){const c=Fe({},n.value,e.state,{forward:u,scroll:Yu()});s(c.current,c,!0);const d=Fe({},zE(i.value,u,null),{position:c.position+1},l);s(u,d,!1),i.value=u}return{location:i,state:n,push:a,replace:o}}function kU(r){r=PU(r);const e=FU(r),t=NU(r,e.state,e.location,e.replace);function i(s,o=!0){o||t.pauseListeners(),history.go(s)}const n=Fe({location:"",base:r,go:i,createHref:CU.bind(null,r)},e,t);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function BU(r){return typeof r=="string"||r&&typeof r=="object"}function $z(r){return typeof r=="string"||typeof r=="symbol"}const Pz=Symbol("");var HE;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(HE||(HE={}));function $s(r,e){return Fe(new Error,{type:r,[Pz]:!0},e)}function Gr(r,e){return r instanceof Error&&Pz in r&&(e==null||!!(r.type&e))}const WE="[^/]+?",LU={sensitive:!1,strict:!1,start:!0,end:!0},jU=/[.+*?^${}()[\]/\\]/g;function zU(r,e){const t=Fe({},LU,e),i=[];let n=t.start?"^":"";const s=[];for(const l of r){const c=l.length?[]:[90];t.strict&&!l.length&&(n+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function Rz(r,e){let t=0;const i=r.score,n=e.score;for(;t0&&e[e.length-1]<0}const WU={type:0,value:""},UU=/[a-zA-Z0-9_]/;function VU(r){if(!r)return[[]];if(r==="/")return[[WU]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function e(f){throw new Error(`ERR (${t})/"${l}": ${f}`)}let t=0,i=t;const n=[];let s;function o(){s&&n.push(s),s=[]}let a=0,u,l="",c="";function d(){l&&(t===0?s.push({type:0,value:l}):t===1||t===2||t===3?(s.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:l,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),l="")}function h(){l+=u}for(;a{o(E)}:Po}function o(d){if($z(d)){const h=i.get(d);h&&(i.delete(d),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(d);h>-1&&(t.splice(h,1),d.record.name&&i.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return t}function u(d){const h=JU(d,t);t.splice(h,0,d),d.record.name&&!GE(d)&&i.set(d.record.name,d)}function l(d,h){let f,p={},v,_;if("name"in d&&d.name){if(f=i.get(d.name),!f)throw $s(1,{location:d});_=f.record.name,p=Fe(VE(h.params,f.keys.filter(E=>!E.optional).concat(f.parent?f.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),d.params&&VE(d.params,f.keys.map(E=>E.name))),v=f.stringify(p)}else if(d.path!=null)v=d.path,f=t.find(E=>E.re.test(v)),f&&(p=f.parse(v),_=f.record.name);else{if(f=h.name?i.get(h.name):t.find(E=>E.re.test(h.path)),!f)throw $s(1,{location:d,currentLocation:h});_=f.record.name,p=Fe({},h.params,d.params),v=f.stringify(p)}const m=[];let g=f;for(;g;)m.unshift(g.record),g=g.parent;return{name:_,path:v,params:p,matched:m,meta:XU(m)}}r.forEach(d=>s(d));function c(){t.length=0,i.clear()}return{addRoute:s,resolve:l,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function VE(r,e){const t={};for(const i of e)i in r&&(t[i]=r[i]);return t}function KE(r){const e={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:YU(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function YU(r){const e={},t=r.props||!1;if("component"in r)e.default=t;else for(const i in r.components)e[i]=typeof t=="object"?t[i]:t;return e}function GE(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function XU(r){return r.reduce((e,t)=>Fe(e,t.meta),{})}function YE(r,e){const t={};for(const i in r)t[i]=i in e?e[i]:r[i];return t}function JU(r,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;Rz(r,e[s])<0?i=s:t=s+1}const n=QU(r);return n&&(i=e.lastIndexOf(n,i-1)),i}function QU(r){let e=r;for(;e=e.parent;)if(Cz(e)&&Rz(r,e)===0)return e}function Cz({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function ZU(r){const e={};if(r===""||r==="?")return e;const i=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;ns&&nw(s)):[i&&nw(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function eV(r){const e={};for(const t in r){const i=r[t];i!==void 0&&(e[t]=Tr(i)?i.map(n=>n==null?null:""+n):i==null?i:""+i)}return e}const tV=Symbol(""),JE=Symbol(""),Hw=Symbol(""),xz=Symbol(""),ow=Symbol("");function fo(){let r=[];function e(i){return r.push(i),()=>{const n=r.indexOf(i);n>-1&&r.splice(n,1)}}function t(){r=[]}return{add:e,list:()=>r.slice(),reset:t}}function Ci(r,e,t,i,n,s=o=>o()){const o=i&&(i.enterCallbacks[n]=i.enterCallbacks[n]||[]);return()=>new Promise((a,u)=>{const l=h=>{h===!1?u($s(4,{from:t,to:e})):h instanceof Error?u(h):BU(h)?u($s(2,{from:e,to:h})):(o&&i.enterCallbacks[n]===o&&typeof h=="function"&&o.push(h),a())},c=s(()=>r.call(i&&i.instances[n],e,t,l));let d=Promise.resolve(c);r.length<3&&(d=d.then(l)),d.catch(h=>u(h))})}function Vl(r,e,t,i,n=s=>s()){const s=[];for(const o of r)for(const a in o.components){let u=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(bz(u)){const c=(u.__vccOpts||u)[e];c&&s.push(Ci(c,t,i,o,a,n))}else{let l=u();s.push(()=>l.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=uU(c)?c.default:c;o.mods[a]=c,o.components[a]=d;const f=(d.__vccOpts||d)[e];return f&&Ci(f,t,i,o,a,n)()}))}}return s}function QE(r){const e=ri(Hw),t=ri(xz),i=Sr(()=>{const u=dr(r.to);return e.resolve(u)}),n=Sr(()=>{const{matched:u}=i.value,{length:l}=u,c=u[l-1],d=t.matched;if(!c||!d.length)return-1;const h=d.findIndex(Ts.bind(null,c));if(h>-1)return h;const f=ZE(u[l-2]);return l>1&&ZE(c)===f&&d[d.length-1].path!==f?d.findIndex(Ts.bind(null,u[l-2])):h}),s=Sr(()=>n.value>-1&&oV(t.params,i.value.params)),o=Sr(()=>n.value>-1&&n.value===t.matched.length-1&&Iz(t.params,i.value.params));function a(u={}){if(sV(u)){const l=e[dr(r.replace)?"replace":"push"](dr(r.to)).catch(Po);return r.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:i,href:Sr(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function rV(r){return r.length===1?r[0]:r}const iV=pr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:QE,setup(r,{slots:e}){const t=ju(QE(r)),{options:i}=ri(Hw),n=Sr(()=>({[eS(r.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[eS(r.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&rV(e.default(t));return r.custom?s:Gu("a",{"aria-current":t.isExactActive?r.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:n.value},s)}}}),nV=iV;function sV(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function oV(r,e){for(const t in e){const i=e[t],n=r[t];if(typeof i=="string"){if(i!==n)return!1}else if(!Tr(n)||n.length!==i.length||i.some((s,o)=>s!==n[o]))return!1}return!0}function ZE(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const eS=(r,e,t)=>r??e??t,aV=pr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:e,slots:t}){const i=ri(ow),n=Sr(()=>r.route||i.value),s=ri(JE,0),o=Sr(()=>{let l=dr(s);const{matched:c}=n.value;let d;for(;(d=c[l])&&!d.components;)l++;return l}),a=Sr(()=>n.value.matched[o.value]);uu(JE,Sr(()=>o.value+1)),uu(tV,a),uu(ow,n);const u=it();return lu(()=>[u.value,a.value,r.name],([l,c,d],[h,f,p])=>{c&&(c.instances[d]=l,f&&f!==c&&l&&l===h&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),l&&c&&(!f||!Ts(c,f)||!h)&&(c.enterCallbacks[d]||[]).forEach(v=>v(l))},{flush:"post"}),()=>{const l=n.value,c=r.name,d=a.value,h=d&&d.components[c];if(!h)return tS(t.default,{Component:h,route:l});const f=d.props[c],p=f?f===!0?l.params:typeof f=="function"?f(l):f:null,_=Gu(h,Fe({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[c]=null)},ref:u}));return tS(t.default,{Component:_,route:l})||_}}});function tS(r,e){if(!r)return null;const t=r(e);return t.length===1?t[0]:t}const qz=aV;function uV(r){const e=GU(r.routes,r),t=r.parseQuery||ZU,i=r.stringifyQuery||XE,n=r.history,s=fo(),o=fo(),a=fo(),u=fW(Si);let l=Si;ls&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Wl.bind(null,D=>""+D),d=Wl.bind(null,wU),h=Wl.bind(null,Uo);function f(D,U){let X,ne;return $z(D)?(X=e.getRecordMatcher(D),ne=U):ne=D,e.addRoute(ne,X)}function p(D){const U=e.getRecordMatcher(D);U&&e.removeRoute(U)}function v(){return e.getRoutes().map(D=>D.record)}function _(D){return!!e.getRecordMatcher(D)}function m(D,U){if(U=Fe({},U||u.value),typeof D=="string"){const A=Ul(t,D,U.path),k=e.resolve({path:A.path},U),B=n.createHref(A.fullPath);return Fe(A,k,{params:h(k.params),hash:Uo(A.hash),redirectedFrom:void 0,href:B})}let X;if(D.path!=null)X=Fe({},D,{path:Ul(t,D.path,U.path).path});else{const A=Fe({},D.params);for(const k in A)A[k]==null&&delete A[k];X=Fe({},D,{params:d(A)}),U.params=d(U.params)}const ne=e.resolve(X,U),Re=D.hash||"";ne.params=c(h(ne.params));const C=OU(i,Fe({},D,{hash:yU(Re),path:ne.path})),x=n.createHref(C);return Fe({fullPath:C,hash:Re,query:i===XE?eV(D.query):D.query||{}},ne,{redirectedFrom:void 0,href:x})}function g(D){return typeof D=="string"?Ul(t,D,u.value.path):Fe({},D)}function E(D,U){if(l!==D)return $s(8,{from:U,to:D})}function y(D){return T(D)}function I(D){return y(Fe(g(D),{replace:!0}))}function O(D){const U=D.matched[D.matched.length-1];if(U&&U.redirect){const{redirect:X}=U;let ne=typeof X=="function"?X(D):X;return typeof ne=="string"&&(ne=ne.includes("?")||ne.includes("#")?ne=g(ne):{path:ne},ne.params={}),Fe({query:D.query,hash:D.hash,params:ne.path!=null?{}:D.params},ne)}}function T(D,U){const X=l=m(D),ne=u.value,Re=D.state,C=D.force,x=D.replace===!0,A=O(X);if(A)return T(Fe(g(A),{state:typeof A=="object"?Fe({},Re,A.state):Re,force:C,replace:x}),U||X);const k=X;k.redirectedFrom=U;let B;return!C&&IU(i,ne,X)&&(B=$s(16,{to:k,from:ne}),re(ne,ne,!0,!1)),(B?Promise.resolve(B):R(k,ne)).catch(N=>Gr(N)?Gr(N,2)?N:we(N):te(N,k,ne)).then(N=>{if(N){if(Gr(N,2))return T(Fe({replace:x},g(N.to),{state:typeof N.to=="object"?Fe({},Re,N.to.state):Re,force:C}),U||k)}else N=S(k,ne,!0,x,Re);return P(k,ne,N),N})}function b(D,U){const X=E(D,U);return X?Promise.reject(X):Promise.resolve()}function w(D){const U=De.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(D):D()}function R(D,U){let X;const[ne,Re,C]=lV(D,U);X=Vl(ne.reverse(),"beforeRouteLeave",D,U);for(const A of ne)A.leaveGuards.forEach(k=>{X.push(Ci(k,D,U))});const x=b.bind(null,D,U);return X.push(x),_e(X).then(()=>{X=[];for(const A of s.list())X.push(Ci(A,D,U));return X.push(x),_e(X)}).then(()=>{X=Vl(Re,"beforeRouteUpdate",D,U);for(const A of Re)A.updateGuards.forEach(k=>{X.push(Ci(k,D,U))});return X.push(x),_e(X)}).then(()=>{X=[];for(const A of C)if(A.beforeEnter)if(Tr(A.beforeEnter))for(const k of A.beforeEnter)X.push(Ci(k,D,U));else X.push(Ci(A.beforeEnter,D,U));return X.push(x),_e(X)}).then(()=>(D.matched.forEach(A=>A.enterCallbacks={}),X=Vl(C,"beforeRouteEnter",D,U,w),X.push(x),_e(X))).then(()=>{X=[];for(const A of o.list())X.push(Ci(A,D,U));return X.push(x),_e(X)}).catch(A=>Gr(A,8)?A:Promise.reject(A))}function P(D,U,X){a.list().forEach(ne=>w(()=>ne(D,U,X)))}function S(D,U,X,ne,Re){const C=E(D,U);if(C)return C;const x=U===Si,A=ls?history.state:{};X&&(ne||x?n.replace(D.fullPath,Fe({scroll:x&&A&&A.scroll},Re)):n.push(D.fullPath,Re)),u.value=D,re(D,U,X,x),we()}let $;function q(){$||($=n.listen((D,U,X)=>{if(!ct.listening)return;const ne=m(D),Re=O(ne);if(Re){T(Fe(Re,{replace:!0,force:!0}),ne).catch(Po);return}l=ne;const C=u.value;ls&&AU(jE(C.fullPath,X.delta),Yu()),R(ne,C).catch(x=>Gr(x,12)?x:Gr(x,2)?(T(Fe(g(x.to),{force:!0}),ne).then(A=>{Gr(A,20)&&!X.delta&&X.type===Vo.pop&&n.go(-1,!1)}).catch(Po),Promise.reject()):(X.delta&&n.go(-X.delta,!1),te(x,ne,C))).then(x=>{x=x||S(ne,C,!1),x&&(X.delta&&!Gr(x,8)?n.go(-X.delta,!1):X.type===Vo.pop&&Gr(x,20)&&n.go(-1,!1)),P(ne,C,x)}).catch(Po)}))}let F=fo(),Z=fo(),z;function te(D,U,X){we(D);const ne=Z.list();return ne.length?ne.forEach(Re=>Re(D,U,X)):console.error(D),Promise.reject(D)}function pe(){return z&&u.value!==Si?Promise.resolve():new Promise((D,U)=>{F.add([D,U])})}function we(D){return z||(z=!D,q(),F.list().forEach(([U,X])=>D?X(D):U()),F.reset()),D}function re(D,U,X,ne){const{scrollBehavior:Re}=r;if(!ls||!Re)return Promise.resolve();const C=!X&&DU(jE(D.fullPath,0))||(ne||!X)&&history.state&&history.state.scroll||null;return xj().then(()=>Re(D,U,C)).then(x=>x&&qU(x)).catch(x=>te(x,D,U))}const me=D=>n.go(D);let qe;const De=new Set,ct={currentRoute:u,listening:!0,addRoute:f,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:_,getRoutes:v,resolve:m,options:r,push:y,replace:I,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:pe,install(D){const U=this;D.component("RouterLink",nV),D.component("RouterView",qz),D.config.globalProperties.$router=U,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>dr(u)}),ls&&!qe&&u.value===Si&&(qe=!0,y(n.location).catch(Re=>{}));const X={};for(const Re in Si)Object.defineProperty(X,Re,{get:()=>u.value[Re],enumerable:!0});D.provide(Hw,U),D.provide(xz,Ij(X)),D.provide(ow,u);const ne=D.unmount;De.add(D),D.unmount=function(){De.delete(D),De.size<1&&(l=Si,$&&$(),$=null,u.value=Si,qe=!1,z=!1),ne()}}};function _e(D){return D.reduce((U,X)=>U.then(()=>w(X)),Promise.resolve())}return ct}function lV(r,e){const t=[],i=[],n=[],s=Math.max(e.matched.length,r.matched.length);for(let o=0;oTs(l,a))?i.push(a):t.push(a));const u=r.matched[o];u&&(e.matched.find(l=>Ts(l,u))||n.push(u))}return[t,i,n]}const cV=pr({__name:"App",setup(r){return(e,t)=>(Oe(),di(dr(qz)))}}),dV=it({width:200,margin:1,color:{dark:"#000000",light:"ffffff"}}),hV=r=>{const e=fV(r);pV(e,"teams_qr_code.pdf","application/pdf;teams_qr_code.pdf")},fV=r=>{const e=atob(r),t=new Uint8Array(e.length);for(let i=0;i{const i=new Blob([r],{type:t}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,s.click(),URL.revokeObjectURL(n)},rS=async()=>{try{const r=await fetch(pi("/teams"));if(!r.ok)throw new Error(`http error status: ${r.status}`);return await r.json()}catch(r){throw console.error("[apiGetTeams] error:",r),r}},vV=async r=>{try{const e=await fetch(pi("/teams"),{method:"POST",body:JSON.stringify({teams:[{name:r}]})});if(!e.ok)throw new Error(`http error status: ${e.status}`)}catch(e){throw console.error("[apiAddTeam] error:",e),e}},gV=async()=>{try{const r=await fetch(pi("/game"));if(!r.ok)throw new Error(`http error status: ${r.status}`);return await r.json()}catch(r){throw console.error("[apiGetGame] error:",r),r}},mV=async()=>{try{const r=await fetch(pi("/game/start"),{method:"POST"});if(!r.ok)throw new Error(`http error status: ${r.status}`)}catch(r){throw console.error("[apiStartGame] error:",r),r}},yV=async()=>{try{const r=await fetch(pi("/game/stop"),{method:"POST"});if(!r.ok)throw new Error(`http error status: ${r.status}`)}catch(r){throw console.error("[apiStopGame] error:",r),r}},bV=async(r,e)=>{try{const t=await fetch(pi("/teams/"+r+"/applications"),{method:"POST",body:JSON.stringify({applications:[{id:e}]})});if(!t.ok)throw new Error(`http error status: ${t.status}`)}catch(t){throw console.error("[apiGaveApplication] error:",t),t}},iS=async()=>{try{const r=await fetch(pi("/teams/pdf"));if(!r.ok)throw new Error(`http error status: ${r.status}`);const e=await r.json();hV(e.result)}catch(r){throw console.error("[apiDownloadQrCodesFile] error:",r),r}},_V=async()=>{try{const r=await fetch(pi("/graph"));if(!r.ok)throw new Error(`http error status: ${r.status}`);return await r.json()}catch(r){throw console.error("[apiDownloadQrCodesFile] error:",r),r}},Kl=async(r,e)=>{try{const t=await fetch(pi("/graph/nodes"),{method:"PUT",body:JSON.stringify({code:r,node:e})});if(!t.ok)throw new Error(`http error status: ${t.status}`);return await t.json()}catch(t){throw console.error("[apiDownloadQrCodesFile] error:",t),t}};function pi(r){return"http://"+window.location.host.split(":")[0]+":8090"+r}var is={},Gl,nS;function wV(){return nS||(nS=1,Gl=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Gl}var Yl={},Oi={},sS;function Mn(){if(sS)return Oi;sS=1;let r;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Oi.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},Oi.getSymbolTotalCodewords=function(i){return e[i]},Oi.getBCHDigit=function(t){let i=0;for(;t!==0;)i++,t>>>=1;return i},Oi.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');r=i},Oi.isKanjiModeEnabled=function(){return typeof r<"u"},Oi.toSJIS=function(i){return r(i)},Oi}var Xl={},oS;function Ww(){return oS||(oS=1,function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},r.from=function(i,n){if(r.isValid(i))return i;try{return e(i)}catch{return n}}}(Xl)),Xl}var Jl,aS;function EV(){if(aS)return Jl;aS=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Jl=r,Jl}var Ql,uS;function SV(){if(uS)return Ql;uS=1;function r(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return r.prototype.set=function(e,t,i,n){const s=e*this.size+t;this.data[s]=i,n&&(this.reservedBit[s]=!0)},r.prototype.get=function(e,t){return this.data[e*this.size+t]},r.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i},r.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},Ql=r,Ql}var Zl={},lS;function OV(){return lS||(lS=1,function(r){const e=Mn().getSymbolSize;r.getRowColCoords=function(i){if(i===1)return[];const n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,a=[s-7];for(let u=1;u=0&&n<=7},r.from=function(n){return r.isValid(n)?parseInt(n,10):void 0},r.getPenaltyN1=function(n){const s=n.size;let o=0,a=0,u=0,l=null,c=null;for(let d=0;d=5&&(o+=e.N1+(a-5)),l=f,a=1),f=n.get(h,d),f===c?u++:(u>=5&&(o+=e.N1+(u-5)),c=f,u=1)}a>=5&&(o+=e.N1+(a-5)),u>=5&&(o+=e.N1+(u-5))}return o},r.getPenaltyN2=function(n){const s=n.size;let o=0;for(let a=0;a=10&&(a===1488||a===93)&&o++,u=u<<1&2047|n.get(c,l),c>=10&&(u===1488||u===93)&&o++}return o*e.N3},r.getPenaltyN4=function(n){let s=0;const o=n.data.length;for(let u=0;u=0;){const o=s[0];for(let u=0;u0){const a=new Uint8Array(this.degree);return a.set(s,o),a}return s},ic=e,ic}var nc={},sc={},oc={},gS;function Dz(){return gS||(gS=1,oc.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),oc}var qr={},mS;function Mz(){if(mS)return qr;mS=1;const r="[0-9]+",e="[A-Z $%*+\\-./:]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r -]))+`;qr.KANJI=new RegExp(t,"g"),qr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),qr.BYTE=new RegExp(i,"g"),qr.NUMERIC=new RegExp(r,"g"),qr.ALPHANUMERIC=new RegExp(e,"g");const n=new RegExp("^"+t+"$"),s=new RegExp("^"+r+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return qr.testKanji=function(u){return n.test(u)},qr.testNumeric=function(u){return s.test(u)},qr.testAlphanumeric=function(u){return o.test(u)},qr}var yS;function Nn(){return yS||(yS=1,function(r){const e=Dz(),t=Mz();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},r.getBestModeForData=function(s){return t.testNumeric(s)?r.NUMERIC:t.testAlphanumeric(s)?r.ALPHANUMERIC:t.testKanji(s)?r.KANJI:r.BYTE},r.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},r.isValid=function(s){return s&&s.bit&&s.ccBits};function i(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+n)}}r.from=function(s,o){if(r.isValid(s))return s;try{return i(s)}catch{return o}}}(sc)),sc}var bS;function CV(){return bS||(bS=1,function(r){const e=Mn(),t=Az(),i=Ww(),n=Nn(),s=Dz(),o=7973,a=e.getBCHDigit(o);function u(h,f,p){for(let v=1;v<=40;v++)if(f<=r.getCapacity(v,p,h))return v}function l(h,f){return n.getCharCountIndicator(h,f)+4}function c(h,f){let p=0;return h.forEach(function(v){const _=l(v.mode,f);p+=_+v.getBitsLength()}),p}function d(h,f){for(let p=1;p<=40;p++)if(c(h,p)<=r.getCapacity(p,f,n.MIXED))return p}r.from=function(f,p){return s.isValid(f)?parseInt(f,10):p},r.getCapacity=function(f,p,v){if(!s.isValid(f))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=n.BYTE);const _=e.getSymbolTotalCodewords(f),m=t.getTotalCodewordsCount(f,p),g=(_-m)*8;if(v===n.MIXED)return g;const E=g-l(v,f);switch(v){case n.NUMERIC:return Math.floor(E/10*3);case n.ALPHANUMERIC:return Math.floor(E/11*2);case n.KANJI:return Math.floor(E/13);case n.BYTE:default:return Math.floor(E/8)}},r.getBestVersionForData=function(f,p){let v;const _=i.from(p,i.M);if(Array.isArray(f)){if(f.length>1)return d(f,_);if(f.length===0)return 1;v=f[0]}else v=f;return u(v.mode,v.getLength(),_)},r.getEncodedBits=function(f){if(!s.isValid(f)||f<7)throw new Error("Invalid QR Code version");let p=f<<12;for(;e.getBCHDigit(p)-a>=0;)p^=o<=0;)u^=e<0&&(s=this.data.substr(n),o=parseInt(s,10),i.put(o,a*3+1))},lc=e,lc}var cc,ES;function AV(){if(ES)return cc;ES=1;const r=Nn(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function t(i){this.mode=r.ALPHANUMERIC,this.data=i}return t.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let s;for(s=0;s+2<=this.data.length;s+=2){let o=e.indexOf(this.data[s])*45;o+=e.indexOf(this.data[s+1]),n.put(o,11)}this.data.length%2&&n.put(e.indexOf(this.data[s]),6)},cc=t,cc}var dc,SS;function DV(){if(SS)return dc;SS=1;const r=Nn();function e(t){this.mode=r.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}return e.getBitsLength=function(i){return i*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let i=0,n=this.data.length;i=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[n]+` -Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),i.put(s,13)}},hc=t,hc}var fc={exports:{}},IS;function NV(){return IS||(IS=1,function(r){var e={single_source_shortest_paths:function(t,i,n){var s={},o={};o[i]=0;var a=e.PriorityQueue.make();a.push(i,0);for(var u,l,c,d,h,f,p,v,_;!a.empty();){u=a.pop(),l=u.value,d=u.cost,h=t[l]||{};for(c in h)h.hasOwnProperty(c)&&(f=h[c],p=d+f,v=o[c],_=typeof o[c]>"u",(_||v>p)&&(o[c]=p,a.push(c,p),s[c]=l))}if(typeof n<"u"&&typeof o[n]>"u"){var m=["Could not find a path from ",i," to ",n,"."].join("");throw new Error(m)}return s},extract_shortest_path_from_predecessor_list:function(t,i){for(var n=[],s=i;s;)n.push(s),t[s],s=t[s];return n.reverse(),n},find_path:function(t,i,n){var s=e.single_source_shortest_paths(t,i,n);return e.extract_shortest_path_from_predecessor_list(s,n)},PriorityQueue:{make:function(t){var i=e.PriorityQueue,n={},s;t=t||{};for(s in i)i.hasOwnProperty(s)&&(n[s]=i[s]);return n.queue=[],n.sorter=t.sorter||i.default_sorter,n},default_sorter:function(t,i){return t.cost-i.cost},push:function(t,i){var n={value:t,cost:i};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=e}(fc)),fc.exports}var TS;function FV(){return TS||(TS=1,function(r){const e=Nn(),t=qV(),i=AV(),n=DV(),s=MV(),o=Mz(),a=Mn(),u=NV();function l(m){return unescape(encodeURIComponent(m)).length}function c(m,g,E){const y=[];let I;for(;(I=m.exec(E))!==null;)y.push({data:I[0],index:I.index,mode:g,length:I[0].length});return y}function d(m){const g=c(o.NUMERIC,e.NUMERIC,m),E=c(o.ALPHANUMERIC,e.ALPHANUMERIC,m);let y,I;return a.isKanjiModeEnabled()?(y=c(o.BYTE,e.BYTE,m),I=c(o.KANJI,e.KANJI,m)):(y=c(o.BYTE_KANJI,e.BYTE,m),I=[]),g.concat(E,y,I).sort(function(T,b){return T.index-b.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function h(m,g){switch(g){case e.NUMERIC:return t.getBitsLength(m);case e.ALPHANUMERIC:return i.getBitsLength(m);case e.KANJI:return s.getBitsLength(m);case e.BYTE:return n.getBitsLength(m)}}function f(m){return m.reduce(function(g,E){const y=g.length-1>=0?g[g.length-1]:null;return y&&y.mode===E.mode?(g[g.length-1].data+=E.data,g):(g.push(E),g)},[])}function p(m){const g=[];for(let E=0;E=0&&$<=6&&(q===0||q===6)||q>=0&&q<=6&&($===0||$===6)||$>=2&&$<=4&&q>=2&&q<=4?O.set(P+$,S+q,!0,!0):O.set(P+$,S+q,!1,!0))}}function p(O){const T=O.size;for(let b=8;b>$&1)===1,O.set(R,P,S,!0),O.set(P,R,S,!0)}function m(O,T,b){const w=O.size,R=c.getEncodedBits(T,b);let P,S;for(P=0;P<15;P++)S=(R>>P&1)===1,P<6?O.set(P,8,S,!0):P<8?O.set(P+1,8,S,!0):O.set(w-15+P,8,S,!0),P<8?O.set(8,w-P-1,S,!0):P<9?O.set(8,15-P-1+1,S,!0):O.set(8,15-P-1,S,!0);O.set(w-8,8,1,!0)}function g(O,T){const b=O.size;let w=-1,R=b-1,P=7,S=0;for(let $=b-1;$>0;$-=2)for($===6&&$--;;){for(let q=0;q<2;q++)if(!O.isReserved(R,$-q)){let F=!1;S>>P&1)===1),O.set(R,$-q,F),P--,P===-1&&(S++,P=7)}if(R+=w,R<0||b<=R){R-=w,w=-w;break}}}function E(O,T,b){const w=new t;b.forEach(function(q){w.put(q.mode.bit,4),w.put(q.getLength(),d.getCharCountIndicator(q.mode,O)),q.write(w)});const R=r.getSymbolTotalCodewords(O),P=a.getTotalCodewordsCount(O,T),S=(R-P)*8;for(w.getLengthInBits()+4<=S&&w.put(0,4);w.getLengthInBits()%8!==0;)w.putBit(0);const $=(S-w.getLengthInBits())/8;for(let q=0;q<$;q++)w.put(q%2?17:236,8);return y(w,O,T)}function y(O,T,b){const w=r.getSymbolTotalCodewords(T),R=a.getTotalCodewordsCount(T,b),P=w-R,S=a.getBlocksCount(T,b),$=w%S,q=S-$,F=Math.floor(w/S),Z=Math.floor(P/S),z=Z+1,te=F-Z,pe=new u(te);let we=0;const re=new Array(S),me=new Array(S);let qe=0;const De=new Uint8Array(O.buffer);for(let X=0;X=7&&_(q,T),g(q,S),isNaN(w)&&(w=o.getBestMask(q,m.bind(null,q,b))),o.applyMask(w,q),m(q,b,w),{modules:q,version:T,errorCorrectionLevel:b,maskPattern:w,segments:R}}return Yl.create=function(T,b){if(typeof T>"u"||T==="")throw new Error("No input text");let w=e.M,R,P;return typeof b<"u"&&(w=e.from(b.errorCorrectionLevel,e.M),R=l.from(b.version),P=o.from(b.maskPattern),b.toSJISFunc&&r.setToSJISFunction(b.toSJISFunc)),I(T,R,w,P)},Yl}var pc={},vc={},PS;function Nz(){return PS||(PS=1,function(r){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let i=t.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+t);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(s){return[s,s]}))),i.length===6&&i.push("F","F");const n=parseInt(i.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+i.slice(0,6).join("")}}r.getOptions=function(i){i||(i={}),i.color||(i.color={});const n=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,s=i.width&&i.width>=21?i.width:void 0,o=i.scale||4;return{width:s,scale:s?4:o,margin:n,color:{dark:e(i.color.dark||"#000000ff"),light:e(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},r.getScale=function(i,n){return n.width&&n.width>=i+n.margin*2?n.width/(i+n.margin*2):n.scale},r.getImageWidth=function(i,n){const s=r.getScale(i,n);return Math.floor((i+n.margin*2)*s)},r.qrToImageData=function(i,n,s){const o=n.modules.size,a=n.modules.data,u=r.getScale(o,s),l=Math.floor((o+s.margin*2)*u),c=s.margin*u,d=[s.color.light,s.color.dark];for(let h=0;h=c&&f>=c&&h"u"&&(!o||!o.getContext)&&(u=o,o=void 0),o||(l=i()),u=e.getOptions(u);const c=e.getImageWidth(s.modules.size,u),d=l.getContext("2d"),h=d.createImageData(c,c);return e.qrToImageData(h.data,s,u),t(d,l,c),d.putImageData(h,0,0),l},r.renderToDataURL=function(s,o,a){let u=a;typeof u>"u"&&(!o||!o.getContext)&&(u=o,o=void 0),u||(u={});const l=r.render(s,o,u),c=u.type||"image/png",d=u.rendererOpts||{};return l.toDataURL(c,d.quality)}}(pc)),pc}var gc={},CS;function LV(){if(CS)return gc;CS=1;const r=Nz();function e(n,s){const o=n.a/255,a=s+'="'+n.hex+'"';return o<1?a+" "+s+'-opacity="'+o.toFixed(2).slice(1)+'"':a}function t(n,s,o){let a=n+s;return typeof o<"u"&&(a+=" "+o),a}function i(n,s,o){let a="",u=0,l=!1,c=0;for(let d=0;d0&&h>0&&n[d-1]||(a+=l?t("M",h+o,.5+f+o):t("m",u,0),u=0,l=!1),h+1':"",f="',p='viewBox="0 0 '+d+" "+d+'"',_=''+h+f+` -`;return typeof a=="function"&&a(null,_),_},gc}var xS;function jV(){if(xS)return is;xS=1;const r=wV(),e=kV(),t=BV(),i=LV();function n(s,o,a,u,l){const c=[].slice.call(arguments,1),d=c.length,h=typeof c[d-1]=="function";if(!h&&!r())throw new Error("Callback required as last argument");if(h){if(d<2)throw new Error("Too few arguments provided");d===2?(l=a,a=o,o=u=void 0):d===3&&(o.getContext&&typeof l>"u"?(l=u,u=void 0):(l=u,u=a,a=o,o=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(a=o,o=u=void 0):d===2&&!o.getContext&&(u=a,a=o,o=void 0),new Promise(function(f,p){try{const v=e.create(a,u);f(s(v,o,u))}catch(v){p(v)}})}try{const f=e.create(a,u);l(null,s(f,o,u))}catch(f){l(f)}}return is.create=e.create,is.toCanvas=n.bind(null,t.render),is.toDataURL=n.bind(null,t.renderToDataURL),is.toString=n.bind(null,function(s,o,a){return i.render(s,a)}),is}var mc=jV();/*! vue-qrcode v2.0.0 | (c) 2018-present Chen Fengyuan | MIT */const qS="ready";var zV=pr({name:"VueQrcode",props:{value:{type:String,default:void 0},options:{type:Object,default:void 0},tag:{type:String,default:"canvas"}},emits:[qS],watch:{$props:{deep:!0,immediate:!0,handler(){this.$el&&this.generate()}}},mounted(){this.generate()},methods:{generate(){const r=this.options||{},e=String(this.value),t=()=>{this.$emit(qS,this.$el)};switch(this.tag){case"canvas":mc.toCanvas(this.$el,e,r,i=>{if(i)throw i;t()});break;case"img":mc.toDataURL(e,r,(i,n)=>{if(i)throw i;this.$el.src=n,this.$el.onload=t});break;case"svg":mc.toString(e,r,(i,n)=>{if(i)throw i;const s=document.createElement("div");s.innerHTML=n;const o=s.querySelector("svg");if(o){const{attributes:a,childNodes:u}=o;Object.keys(a).forEach(l=>{const c=a[Number(l)];this.$el.setAttribute(c.name,c.value)}),Object.keys(u).forEach(l=>{const c=u[Number(l)];this.$el.appendChild(c.cloneNode(!0))}),t()}});break}}},render(){return Gu(this.tag,this.$slots.default)}});const HV={key:0,class:"qr"},WV=pr({__name:"TeamQRCode",props:{data:String,title:String},setup(r){return(e,t)=>{var i;return(((i=r.data)==null?void 0:i.length)??0)>1?(Oe(),Ne("div",HV,[at(dr(zV),{value:r.data,options:dr(dV),tag:"svg"},null,8,["value","options"]),W("div",null,Ye(r.title),1)])):Xr("",!0)}}}),ua=(r,e)=>{const t=r.__vccOpts||r;for(const[i,n]of e)t[i]=n;return t},UV=ua(WV,[["__scopeId","data-v-eea3ea34"]]),VV={},KV={class:"header-block"};function GV(r,e){return Oe(),Ne("div",KV,[au(r.$slots,"default",{},void 0)])}const Uw=ua(VV,[["render",GV],["__scopeId","data-v-5b6894ef"]]),YV={class:"modal-wrapper"},XV={class:"modal-header"},JV={class:"modal-body"},QV={class:"modal-footer"},ZV=pr({__name:"ModalWindow",props:{isOpen:{type:Boolean,required:!0},title:{type:String,default:"Внимание"},buttonText:{type:String,required:!0}},emits:["close","confirm"],setup(r,{emit:e}){const t=r,i=e,n=()=>{i("close")},s=()=>{i("confirm")},o=a=>{t.isOpen&&a.key==="Escape"&&n()};return oa(()=>{document.addEventListener("keydown",o)}),kw(()=>{document.removeEventListener("keydown",o)}),(a,u)=>(Oe(),di(OW,{to:"body"},[at(q4,{name:"modal"},{default:yn(()=>[r.isOpen?(Oe(),Ne("div",{key:0,class:"modal-mask",onClick:n},[W("div",YV,[W("div",{class:"modal-container",onClick:u[0]||(u[0]=yz(()=>{},["stop"]))},[W("div",XV,[au(a.$slots,"header",{},()=>[W("h3",null,Ye(r.title),1)],!0)]),W("div",JV,[au(a.$slots,"default",{},()=>[u[1]||(u[1]=ar("Дефолтный текст модального окна"))],!0)]),W("div",QV,[au(a.$slots,"footer",{},()=>[W("button",{class:"btn-cancel",onClick:n},"Отмена"),W("button",{class:"btn-primary",onClick:s},Ye(r.buttonText),1)],!0)])])])])):Xr("",!0)]),_:3})]))}}),AS=ua(ZV,[["__scopeId","data-v-f97ce307"]]),eK={class:"buttons-block"},tK={class:"center-block-custom content-block"},rK={class:"team-content-block"},iK={class:"team-name-block"},nK=["onClick"],sK=["href"],oK=["onClick"],aK=pr({__name:"AdminWindow",setup(r){const e=it("-"),t=it("-"),i=it(!1),n=it(!1),s=it(""),o=it(),a=it({teams:[]}),u=it("");async function l(){await vV(u.value),u.value=""}async function c(){s.value="Загрузка...",await mV()}async function d(){s.value="Загрузка...",await yV()}async function h(){var O,T,b;o.value=await gV(),o.value.state==="NEW"&&(s.value="Игра ещё не началась"),o.value.state==="RUN"&&(s.value="Игра идет с "+((O=o.value)==null?void 0:O.startAt.substring(11))),o.value.state==="STOP"&&(s.value="Игра остановлена "+((T=o.value)==null?void 0:T.startAt.substring(11))+" - "+((b=o.value)==null?void 0:b.endAt.substring(11)))}function f(O,T){return T.applications.length-O.applications.length}let p=0;oa(async()=>{a.value=await rS(),p=setInterval(async()=>{a.value=await rS(),a.value.teams.sort(f),await h()},2e3),Ow.beforeEach((O,T,b)=>{clearInterval(p),b()})});const v=it({id:0,name:"",password:"",url:"",spendTime:0,applications:[]}),_=it({id:0,name:""});function m(O,T){v.value=O,_.value=T,i.value=!0}async function g(){console.log("confirm"),await bV(v.value.id,_.value.id),i.value=!1}function E(){n.value=!1}function y(){console.log("close"),i.value=!1}function I(){e.value=location.href,t.value="Админ панель",n.value=!0}return(O,T)=>(Oe(),Ne(Qe,null,[at(Uw,null,{default:yn(()=>[W("div",null," Вечерний детектив - "+Ye(s.value),1),W("div",eK,[W("button",{onClick:T[0]||(T[0]=b=>dr(Ow).push("/editor")),class:"button-menu button-custom-inline"},"Редактор"),W("button",{onClick:c,class:"button-menu button-custom-inline"},"Начать"),W("button",{onClick:d,class:"button-menu button-custom-inline"},"Остановить"),W("button",{onClick:T[1]||(T[1]=(...b)=>dr(iS)&&dr(iS)(...b)),class:"button-menu button-custom-inline"},"Скачать qr‑ы"),W("button",{onClick:I,class:"button-menu button-custom-inline"},"Qr")])]),_:1}),W("div",tK,[T[4]||(T[4]=W("div",{class:"team-header-block"},"Команды",-1)),(Oe(!0),Ne(Qe,null,Yr(a.value.teams,b=>(Oe(),Ne("div",{class:"team-block",key:b.name},[W("div",rK,[W("div",iK,[W("a",{onClick:w=>(e.value=b.url,t.value=b.name,n.value=!0)}," QR ",8,nK),W("a",{href:b.url,class:"url-block",target:"_blank"}," URL ",8,sK),ar(" "+Ye(b.name),1)]),W("div",null,"Поездки: "+Ye(b.spendTime),1)]),(Oe(!0),Ne(Qe,null,Yr(b.applications,w=>(Oe(),Ne("div",{key:w.id,class:"link-button",onClick:R=>m(b,w)}," Выдать: "+Ye(w.name),9,oK))),128))]))),128)),W("form",{onSubmit:yz(l,["prevent"])},[W("div",null,[Ii(W("input",{class:"input-custom","onUpdate:modelValue":T[2]||(T[2]=b=>u.value=b),type:"text",placeholder:"Название команды"},null,512),[[Ti,u.value]])]),T[3]||(T[3]=W("div",{class:"button-container"},[W("button",{class:"button-custom",type:"submit"},"Добавить")],-1))],32)]),at(AS,{"is-open":i.value,onConfirm:g,onClose:y,buttonText:"Выдано"},{default:yn(()=>[W("div",null," Команда: "+Ye(v.value.name),1),W("div",null," Приложение: "+Ye(_.value.name),1)]),_:1},8,["is-open"]),at(AS,{"is-open":n.value,onConfirm:E,onClose:E,buttonText:"Ок",title:"Код"},{default:yn(()=>[at(UV,{data:e.value,title:t.value},null,8,["data","title"])]),_:1},8,["is-open"])],64))}}),uK=ua(aK,[["__scopeId","data-v-3033f565"]]),lK=pr({__name:"HomeView",setup(r){return(e,t)=>(Oe(),di(uK))}});/** - * vis-data - * http://visjs.org/ - * - * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data. - * - * @version 8.0.3 - * @date 2025-09-10T16:22:00.613Z - * - * @copyright (c) 2011-2017 Almende B.V, http://almende.com - * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs - * - * @license - * vis.js is dual licensed under both - * - * 1. The Apache 2.0 License - * http://www.apache.org/licenses/LICENSE-2.0 - * - * and - * - * 2. The MIT License - * http://opensource.org/licenses/MIT - * - * vis.js may be distributed under either license. - */var DS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var yc={exports:{}},MS={},vo,NS;function vt(){if(NS)return vo;NS=1;var r=function(e){return e&&e.Math===Math&&e};return vo=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof DS=="object"&&DS)||r(typeof vo=="object"&&vo)||function(){return this}()||Function("return this")(),vo}var bc,FS;function Le(){return FS||(FS=1,bc=function(r){try{return!!r()}catch{return!0}}),bc}var _c,kS;function la(){if(kS)return _c;kS=1;var r=Le();return _c=!r(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),_c}var wc,BS;function Xu(){if(BS)return wc;BS=1;var r=la(),e=Function.prototype,t=e.apply,i=e.call;return wc=typeof Reflect=="object"&&Reflect.apply||(r?i.bind(t):function(){return i.apply(t,arguments)}),wc}var Ec,LS;function We(){if(LS)return Ec;LS=1;var r=la(),e=Function.prototype,t=e.call,i=r&&e.bind.bind(t,t);return Ec=r?i:function(n){return function(){return t.apply(n,arguments)}},Ec}var Sc,jS;function vi(){if(jS)return Sc;jS=1;var r=We(),e=r({}.toString),t=r("".slice);return Sc=function(i){return t(e(i),8,-1)},Sc}var Oc,zS;function Fz(){if(zS)return Oc;zS=1;var r=vi(),e=We();return Oc=function(t){if(r(t)==="Function")return e(t)},Oc}var Ic,HS;function St(){if(HS)return Ic;HS=1;var r=typeof document=="object"&&document.all;return Ic=typeof r>"u"&&r!==void 0?function(e){return typeof e=="function"||e===r}:function(e){return typeof e=="function"},Ic}var Tc={},$c,WS;function gt(){if(WS)return $c;WS=1;var r=Le();return $c=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),$c}var Pc,US;function Qt(){if(US)return Pc;US=1;var r=la(),e=Function.prototype.call;return Pc=r?e.bind(e):function(){return e.apply(e,arguments)},Pc}var Rc={},VS;function Vw(){if(VS)return Rc;VS=1;var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,t=e&&!r.call({1:2},1);return Rc.f=t?function(n){var s=e(this,n);return!!s&&s.enumerable}:r,Rc}var Cc,KS;function ca(){return KS||(KS=1,Cc=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}),Cc}var xc,GS;function Ju(){if(GS)return xc;GS=1;var r=We(),e=Le(),t=vi(),i=Object,n=r("".split);return xc=e(function(){return!i("z").propertyIsEnumerable(0)})?function(s){return t(s)==="String"?n(s,""):i(s)}:i,xc}var qc,YS;function da(){return YS||(YS=1,qc=function(r){return r==null}),qc}var Ac,XS;function Fn(){if(XS)return Ac;XS=1;var r=da(),e=TypeError;return Ac=function(t){if(r(t))throw new e("Can't call method on "+t);return t},Ac}var Dc,JS;function Hr(){if(JS)return Dc;JS=1;var r=Ju(),e=Fn();return Dc=function(t){return r(e(t))},Dc}var Mc,QS;function Kt(){if(QS)return Mc;QS=1;var r=St();return Mc=function(e){return typeof e=="object"?e!==null:r(e)},Mc}var Nc,ZS;function _t(){return ZS||(ZS=1,Nc={}),Nc}var Fc,eO;function ir(){if(eO)return Fc;eO=1;var r=_t(),e=vt(),t=St(),i=function(n){return t(n)?n:void 0};return Fc=function(n,s){return arguments.length<2?i(r[n])||i(e[n]):r[n]&&r[n][s]||e[n]&&e[n][s]},Fc}var kc,tO;function Ot(){if(tO)return kc;tO=1;var r=We();return kc=r({}.isPrototypeOf),kc}var Bc,rO;function Ns(){if(rO)return Bc;rO=1;var r=vt(),e=r.navigator,t=e&&e.userAgent;return Bc=t?String(t):"",Bc}var Lc,iO;function ha(){if(iO)return Lc;iO=1;var r=vt(),e=Ns(),t=r.process,i=r.Deno,n=t&&t.versions||i&&i.version,s=n&&n.v8,o,a;return s&&(o=s.split("."),a=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!a&&e&&(o=e.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=e.match(/Chrome\/(\d+)/),o&&(a=+o[1]))),Lc=a,Lc}var jc,nO;function Fs(){if(nO)return jc;nO=1;var r=ha(),e=Le(),t=vt(),i=t.String;return jc=!!Object.getOwnPropertySymbols&&!e(function(){var n=Symbol("symbol detection");return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&r&&r<41}),jc}var zc,sO;function kz(){if(sO)return zc;sO=1;var r=Fs();return zc=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol",zc}var Hc,oO;function fa(){if(oO)return Hc;oO=1;var r=ir(),e=St(),t=Ot(),i=kz(),n=Object;return Hc=i?function(s){return typeof s=="symbol"}:function(s){var o=r("Symbol");return e(o)&&t(o.prototype,n(s))},Hc}var Wc,aO;function ks(){if(aO)return Wc;aO=1;var r=String;return Wc=function(e){try{return r(e)}catch{return"Object"}},Wc}var Uc,uO;function gi(){if(uO)return Uc;uO=1;var r=St(),e=ks(),t=TypeError;return Uc=function(i){if(r(i))return i;throw new t(e(i)+" is not a function")},Uc}var Vc,lO;function Kw(){if(lO)return Vc;lO=1;var r=gi(),e=da();return Vc=function(t,i){var n=t[i];return e(n)?void 0:r(n)},Vc}var Kc,cO;function cK(){if(cO)return Kc;cO=1;var r=Qt(),e=St(),t=Kt(),i=TypeError;return Kc=function(n,s){var o,a;if(s==="string"&&e(o=n.toString)&&!t(a=r(o,n))||e(o=n.valueOf)&&!t(a=r(o,n))||s!=="string"&&e(o=n.toString)&&!t(a=r(o,n)))return a;throw new i("Can't convert object to primitive value")},Kc}var Gc={exports:{}},Yc,dO;function Bs(){return dO||(dO=1,Yc=!0),Yc}var Xc,hO;function dK(){if(hO)return Xc;hO=1;var r=vt(),e=Object.defineProperty;return Xc=function(t,i){try{e(r,t,{value:i,configurable:!0,writable:!0})}catch{r[t]=i}return i},Xc}var fO;function Gw(){if(fO)return Gc.exports;fO=1;var r=Bs(),e=vt(),t=dK(),i="__core-js_shared__",n=Gc.exports=e[i]||t(i,{});return(n.versions||(n.versions=[])).push({version:"3.44.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Gc.exports}var Jc,pO;function Ls(){if(pO)return Jc;pO=1;var r=Gw();return Jc=function(e,t){return r[e]||(r[e]=t||{})},Jc}var Qc,vO;function Rr(){if(vO)return Qc;vO=1;var r=Fn(),e=Object;return Qc=function(t){return e(r(t))},Qc}var Zc,gO;function It(){if(gO)return Zc;gO=1;var r=We(),e=Rr(),t=r({}.hasOwnProperty);return Zc=Object.hasOwn||function(n,s){return t(e(n),s)},Zc}var ed,mO;function Qu(){if(mO)return ed;mO=1;var r=We(),e=0,t=Math.random(),i=r(1.1.toString);return ed=function(n){return"Symbol("+(n===void 0?"":n)+")_"+i(++e+t,36)},ed}var td,yO;function Tt(){if(yO)return td;yO=1;var r=vt(),e=Ls(),t=It(),i=Qu(),n=Fs(),s=kz(),o=r.Symbol,a=e("wks"),u=s?o.for||o:o&&o.withoutSetter||i;return td=function(l){return t(a,l)||(a[l]=n&&t(o,l)?o[l]:u("Symbol."+l)),a[l]},td}var rd,bO;function Bz(){if(bO)return rd;bO=1;var r=Qt(),e=Kt(),t=fa(),i=Kw(),n=cK(),s=Tt(),o=TypeError,a=s("toPrimitive");return rd=function(u,l){if(!e(u)||t(u))return u;var c=i(u,a),d;if(c){if(l===void 0&&(l="default"),d=r(c,u,l),!e(d)||t(d))return d;throw new o("Can't convert object to primitive value")}return l===void 0&&(l="number"),n(u,l)},rd}var id,_O;function Yw(){if(_O)return id;_O=1;var r=Bz(),e=fa();return id=function(t){var i=r(t,"string");return e(i)?i:i+""},id}var nd,wO;function Lz(){if(wO)return nd;wO=1;var r=vt(),e=Kt(),t=r.document,i=e(t)&&e(t.createElement);return nd=function(n){return i?t.createElement(n):{}},nd}var sd,EO;function jz(){if(EO)return sd;EO=1;var r=gt(),e=Le(),t=Lz();return sd=!r&&!e(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),sd}var SO;function Zu(){if(SO)return Tc;SO=1;var r=gt(),e=Qt(),t=Vw(),i=ca(),n=Hr(),s=Yw(),o=It(),a=jz(),u=Object.getOwnPropertyDescriptor;return Tc.f=r?u:function(c,d){if(c=n(c),d=s(d),a)try{return u(c,d)}catch{}if(o(c,d))return i(!e(t.f,c,d),c[d])},Tc}var od,OO;function hK(){if(OO)return od;OO=1;var r=Le(),e=St(),t=/#|\.prototype\./,i=function(u,l){var c=s[n(u)];return c===a?!0:c===o?!1:e(l)?r(l):!!l},n=i.normalize=function(u){return String(u).replace(t,".").toLowerCase()},s=i.data={},o=i.NATIVE="N",a=i.POLYFILL="P";return od=i,od}var ad,IO;function el(){if(IO)return ad;IO=1;var r=Fz(),e=gi(),t=la(),i=r(r.bind);return ad=function(n,s){return e(n),s===void 0?n:t?i(n,s):function(){return n.apply(s,arguments)}},ad}var ud={},ld,TO;function zz(){if(TO)return ld;TO=1;var r=gt(),e=Le();return ld=r&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),ld}var cd,$O;function mi(){if($O)return cd;$O=1;var r=Kt(),e=String,t=TypeError;return cd=function(i){if(r(i))return i;throw new t(e(i)+" is not an object")},cd}var PO;function vr(){if(PO)return ud;PO=1;var r=gt(),e=jz(),t=zz(),i=mi(),n=Yw(),s=TypeError,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return ud.f=r?t?function(h,f,p){if(i(h),f=n(f),i(p),typeof h=="function"&&f==="prototype"&&"value"in p&&c in p&&!p[c]){var v=a(h,f);v&&v[c]&&(h[f]=p.value,p={configurable:l in p?p[l]:v[l],enumerable:u in p?p[u]:v[u],writable:!1})}return o(h,f,p)}:o:function(h,f,p){if(i(h),f=n(f),i(p),e)try{return o(h,f,p)}catch{}if("get"in p||"set"in p)throw new s("Accessors not supported");return"value"in p&&(h[f]=p.value),h},ud}var dd,RO;function js(){if(RO)return dd;RO=1;var r=gt(),e=vr(),t=ca();return dd=r?function(i,n,s){return e.f(i,n,t(1,s))}:function(i,n,s){return i[n]=s,i},dd}var hd,CO;function be(){if(CO)return hd;CO=1;var r=vt(),e=Xu(),t=Fz(),i=St(),n=Zu().f,s=hK(),o=_t(),a=el(),u=js(),l=It(),c=function(d){var h=function(f,p,v){if(this instanceof h){switch(arguments.length){case 0:return new d;case 1:return new d(f);case 2:return new d(f,p)}return new d(f,p,v)}return e(d,this,arguments)};return h.prototype=d.prototype,h};return hd=function(d,h){var f=d.target,p=d.global,v=d.stat,_=d.proto,m=p?r:v?r[f]:r[f]&&r[f].prototype,g=p?o:o[f]||u(o,f,{})[f],E=g.prototype,y,I,O,T,b,w,R,P,S;for(T in h)y=s(p?T:f+(v?".":"#")+T,d.forced),I=!y&&m&&l(m,T),w=g[T],I&&(d.dontCallGetSet?(S=n(m,T),R=S&&S.value):R=m[T]),b=I&&R?R:h[T],!(!y&&!_&&typeof w==typeof b)&&(d.bind&&I?P=a(b,r):d.wrap&&I?P=c(b):_&&i(b)?P=t(b):P=b,(d.sham||b&&b.sham||w&&w.sham)&&u(P,"sham",!0),u(g,T,P),_&&(O=f+"Prototype",l(o,O)||u(o,O,{}),u(o[O],T,b),d.real&&E&&(y||!E[T])&&u(E,T,b)))},hd}var xO;function fK(){if(xO)return MS;xO=1;var r=be(),e=gt(),t=vr().f;return r({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!e},{defineProperty:t}),MS}var qO;function pK(){if(qO)return yc.exports;qO=1,fK();var r=_t(),e=r.Object,t=yc.exports=function(n,s,o){return e.defineProperty(n,s,o)};return e.defineProperty.sham&&(t.sham=!0),yc.exports}var fd,AO;function Hz(){if(AO)return fd;AO=1;var r=pK();return fd=r,fd}var pd,DO;function vK(){if(DO)return pd;DO=1;var r=Hz();return pd=r,pd}var vd,MO;function gK(){if(MO)return vd;MO=1;var r=vK();return vd=r,vd}var gd,NO;function mK(){return NO||(NO=1,gd=gK()),gd}var yK=mK(),bK=$e(yK),FO={},md,kO;function kn(){if(kO)return md;kO=1;var r=vi();return md=Array.isArray||function(t){return r(t)==="Array"},md}var yd,BO;function _K(){if(BO)return yd;BO=1;var r=Math.ceil,e=Math.floor;return yd=Math.trunc||function(i){var n=+i;return(n>0?e:r)(n)},yd}var bd,LO;function zs(){if(LO)return bd;LO=1;var r=_K();return bd=function(e){var t=+e;return t!==t||t===0?0:r(t)},bd}var _d,jO;function Wz(){if(jO)return _d;jO=1;var r=zs(),e=Math.min;return _d=function(t){var i=r(t);return i>0?e(i,9007199254740991):0},_d}var wd,zO;function Xi(){if(zO)return wd;zO=1;var r=Wz();return wd=function(e){return r(e.length)},wd}var Ed,HO;function Uz(){if(HO)return Ed;HO=1;var r=TypeError,e=9007199254740991;return Ed=function(t){if(t>e)throw r("Maximum allowed index exceeded");return t},Ed}var Sd,WO;function tl(){if(WO)return Sd;WO=1;var r=gt(),e=vr(),t=ca();return Sd=function(i,n,s){r?e.f(i,n,t(0,s)):i[n]=s},Sd}var Od,UO;function Xw(){if(UO)return Od;UO=1;var r=Tt(),e=r("toStringTag"),t={};return t[e]="z",Od=String(t)==="[object z]",Od}var Id,VO;function Ji(){if(VO)return Id;VO=1;var r=Xw(),e=St(),t=vi(),i=Tt(),n=i("toStringTag"),s=Object,o=t(function(){return arguments}())==="Arguments",a=function(u,l){try{return u[l]}catch{}};return Id=r?t:function(u){var l,c,d;return u===void 0?"Undefined":u===null?"Null":typeof(c=a(l=s(u),n))=="string"?c:o?t(l):(d=t(l))==="Object"&&e(l.callee)?"Arguments":d},Id}var Td,KO;function wK(){if(KO)return Td;KO=1;var r=We(),e=St(),t=Gw(),i=r(Function.toString);return e(t.inspectSource)||(t.inspectSource=function(n){return i(n)}),Td=t.inspectSource,Td}var $d,GO;function Vz(){if(GO)return $d;GO=1;var r=We(),e=Le(),t=St(),i=Ji(),n=ir(),s=wK(),o=function(){},a=n("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=r(u.exec),c=!u.test(o),d=function(p){if(!t(p))return!1;try{return a(o,[],p),!0}catch{return!1}},h=function(p){if(!t(p))return!1;switch(i(p)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,s(p))}catch{return!0}};return h.sham=!0,$d=!a||e(function(){var f;return d(d.call)||!d(Object)||!d(function(){f=!0})||f})?h:d,$d}var Pd,YO;function EK(){if(YO)return Pd;YO=1;var r=kn(),e=Vz(),t=Kt(),i=Tt(),n=i("species"),s=Array;return Pd=function(o){var a;return r(o)&&(a=o.constructor,e(a)&&(a===s||r(a.prototype))?a=void 0:t(a)&&(a=a[n],a===null&&(a=void 0))),a===void 0?s:a},Pd}var Rd,XO;function Jw(){if(XO)return Rd;XO=1;var r=EK();return Rd=function(e,t){return new(r(e))(t===0?0:t)},Rd}var Cd,JO;function pa(){if(JO)return Cd;JO=1;var r=Le(),e=Tt(),t=ha(),i=e("species");return Cd=function(n){return t>=51||!r(function(){var s=[],o=s.constructor={};return o[i]=function(){return{foo:1}},s[n](Boolean).foo!==1})},Cd}var QO;function Kz(){if(QO)return FO;QO=1;var r=be(),e=Le(),t=kn(),i=Kt(),n=Rr(),s=Xi(),o=Uz(),a=tl(),u=Jw(),l=pa(),c=Tt(),d=ha(),h=c("isConcatSpreadable"),f=d>=51||!e(function(){var _=[];return _[h]=!1,_.concat()[0]!==_}),p=function(_){if(!i(_))return!1;var m=_[h];return m!==void 0?!!m:t(_)},v=!f||!l("concat");return r({target:"Array",proto:!0,arity:1,forced:v},{concat:function(m){var g=n(this),E=u(g,0),y=0,I,O,T,b,w;for(I=-1,T=arguments.length;Ic;)if(d=u[c++],d!==d)return!0}else for(;l>c;c++)if((n||c in u)&&u[c]===o)return n||c||0;return!n&&-1}};return Dd={includes:i(!0),indexOf:i(!1)},Dd}var Md,nI;function va(){return nI||(nI=1,Md={}),Md}var Nd,sI;function Gz(){if(sI)return Nd;sI=1;var r=We(),e=It(),t=Hr(),i=SK().indexOf,n=va(),s=r([].push);return Nd=function(o,a){var u=t(o),l=0,c=[],d;for(d in u)!e(n,d)&&e(u,d)&&s(c,d);for(;a.length>l;)e(u,d=a[l++])&&(~i(c,d)||s(c,d));return c},Nd}var Fd,oI;function Zw(){return oI||(oI=1,Fd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Fd}var kd,aI;function rl(){if(aI)return kd;aI=1;var r=Gz(),e=Zw();return kd=Object.keys||function(i){return r(i,e)},kd}var uI;function e0(){if(uI)return qd;uI=1;var r=gt(),e=zz(),t=vr(),i=mi(),n=Hr(),s=rl();return qd.f=r&&!e?Object.defineProperties:function(a,u){i(a);for(var l=n(u),c=s(u),d=c.length,h=0,f;d>h;)t.f(a,f=c[h++],l[f]);return a},qd}var Bd,lI;function OK(){if(lI)return Bd;lI=1;var r=ir();return Bd=r("document","documentElement"),Bd}var Ld,cI;function il(){if(cI)return Ld;cI=1;var r=Ls(),e=Qu(),t=r("keys");return Ld=function(i){return t[i]||(t[i]=e(i))},Ld}var jd,dI;function ga(){if(dI)return jd;dI=1;var r=mi(),e=e0(),t=Zw(),i=va(),n=OK(),s=Lz(),o=il(),a=">",u="<",l="prototype",c="script",d=o("IE_PROTO"),h=function(){},f=function(g){return u+c+a+g+u+"/"+c+a},p=function(g){g.write(f("")),g.close();var E=g.parentWindow.Object;return g=null,E},v=function(){var g=s("iframe"),E="java"+c+":",y;return g.style.display="none",n.appendChild(g),g.src=String(E),y=g.contentWindow.document,y.open(),y.write(f("document.F=Object")),y.close(),y.F},_,m=function(){try{_=new ActiveXObject("htmlfile")}catch{}m=typeof document<"u"?document.domain&&_?p(_):v():p(_);for(var g=t.length;g--;)delete m[l][t[g]];return m()};return i[d]=!0,jd=Object.create||function(E,y){var I;return E!==null?(h[l]=r(E),I=new h,h[l]=null,I[d]=E):I=m(),y===void 0?I:e.f(I,y)},jd}var zd={},hI;function nl(){if(hI)return zd;hI=1;var r=Gz(),e=Zw(),t=e.concat("length","prototype");return zd.f=Object.getOwnPropertyNames||function(n){return r(n,t)},zd}var Hd={},Wd,fI;function Hs(){if(fI)return Wd;fI=1;var r=We();return Wd=r([].slice),Wd}var pI;function Yz(){if(pI)return Hd;pI=1;var r=vi(),e=Hr(),t=nl().f,i=Hs(),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(o){try{return t(o)}catch{return i(n)}};return Hd.f=function(a){return n&&r(a)==="Window"?s(a):t(e(a))},Hd}var Ud={},vI;function sl(){return vI||(vI=1,Ud.f=Object.getOwnPropertySymbols),Ud}var Vd,gI;function ma(){if(gI)return Vd;gI=1;var r=js();return Vd=function(e,t,i,n){return n&&n.enumerable?e[t]=i:r(e,t,i),e},Vd}var Kd,mI;function t0(){if(mI)return Kd;mI=1;var r=vr();return Kd=function(e,t,i){return r.f(e,t,i)},Kd}var Gd={},yI;function ol(){if(yI)return Gd;yI=1;var r=Tt();return Gd.f=r,Gd}var Yd,bI;function et(){if(bI)return Yd;bI=1;var r=_t(),e=It(),t=ol(),i=vr().f;return Yd=function(n){var s=r.Symbol||(r.Symbol={});e(s,n)||i(s,n,{value:t.f(n)})},Yd}var Xd,_I;function Xz(){if(_I)return Xd;_I=1;var r=Qt(),e=ir(),t=Tt(),i=ma();return Xd=function(){var n=e("Symbol"),s=n&&n.prototype,o=s&&s.valueOf,a=t("toPrimitive");s&&!s[a]&&i(s,a,function(u){return r(o,this)},{arity:1})},Xd}var Jd,wI;function IK(){if(wI)return Jd;wI=1;var r=Xw(),e=Ji();return Jd=r?{}.toString:function(){return"[object "+e(this)+"]"},Jd}var Qd,EI;function Bn(){if(EI)return Qd;EI=1;var r=Xw(),e=vr().f,t=js(),i=It(),n=IK(),s=Tt(),o=s("toStringTag");return Qd=function(a,u,l,c){var d=l?a:a&&a.prototype;d&&(i(d,o)||e(d,o,{configurable:!0,value:u}),c&&!r&&t(d,"toString",n))},Qd}var Zd,SI;function TK(){if(SI)return Zd;SI=1;var r=vt(),e=St(),t=r.WeakMap;return Zd=e(t)&&/native code/.test(String(t)),Zd}var eh,OI;function ya(){if(OI)return eh;OI=1;var r=TK(),e=vt(),t=Kt(),i=js(),n=It(),s=Gw(),o=il(),a=va(),u="Object already initialized",l=e.TypeError,c=e.WeakMap,d,h,f,p=function(g){return f(g)?h(g):d(g,{})},v=function(g){return function(E){var y;if(!t(E)||(y=h(E)).type!==g)throw new l("Incompatible receiver, "+g+" required");return y}};if(r||s.state){var _=s.state||(s.state=new c);_.get=_.get,_.has=_.has,_.set=_.set,d=function(g,E){if(_.has(g))throw new l(u);return E.facade=g,_.set(g,E),E},h=function(g){return _.get(g)||{}},f=function(g){return _.has(g)}}else{var m=o("state");a[m]=!0,d=function(g,E){if(n(g,m))throw new l(u);return E.facade=g,i(g,m,E),E},h=function(g){return n(g,m)?g[m]:{}},f=function(g){return n(g,m)}}return eh={set:d,get:h,has:f,enforce:p,getterFor:v},eh}var th,II;function Ws(){if(II)return th;II=1;var r=el(),e=We(),t=Ju(),i=Rr(),n=Xi(),s=Jw(),o=e([].push),a=function(u){var l=u===1,c=u===2,d=u===3,h=u===4,f=u===6,p=u===7,v=u===5||f;return function(_,m,g,E){for(var y=i(_),I=t(y),O=n(I),T=r(m,g),b=0,w=E||s,R=l?w(_,O):c||p?w(_,0):void 0,P,S;O>b;b++)if((v||b in I)&&(P=I[b],S=T(P,b,y),u))if(l)R[b]=S;else if(S)switch(u){case 3:return!0;case 5:return P;case 6:return b;case 2:o(R,P)}else switch(u){case 4:return!1;case 7:o(R,P)}return f?-1:d||h?h:R}};return th={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)},th}var TI;function $K(){if(TI)return eI;TI=1;var r=be(),e=vt(),t=Qt(),i=We(),n=Bs(),s=gt(),o=Fs(),a=Le(),u=It(),l=Ot(),c=mi(),d=Hr(),h=Yw(),f=Qi(),p=ca(),v=ga(),_=rl(),m=nl(),g=Yz(),E=sl(),y=Zu(),I=vr(),O=e0(),T=Vw(),b=ma(),w=t0(),R=Ls(),P=il(),S=va(),$=Qu(),q=Tt(),F=ol(),Z=et(),z=Xz(),te=Bn(),pe=ya(),we=Ws().forEach,re=P("hidden"),me="Symbol",qe="prototype",De=pe.set,ct=pe.getterFor(me),_e=Object[qe],D=e.Symbol,U=D&&D[qe],X=e.RangeError,ne=e.TypeError,Re=e.QObject,C=y.f,x=I.f,A=g.f,k=T.f,B=i([].push),N=R("symbols"),G=R("op-symbols"),J=R("wks"),V=!Re||!Re[qe]||!Re[qe].findChild,L=function(ae,K,ee){var ie=C(_e,K);ie&&delete _e[K],x(ae,K,ee),ie&&ae!==_e&&x(_e,K,ie)},ce=s&&a(function(){return v(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a!==7})?L:x,Q=function(ae,K){var ee=N[ae]=v(U);return De(ee,{type:me,tag:ae,description:K}),s||(ee.description=K),ee},oe=function(K,ee,ie){K===_e&&oe(G,ee,ie),c(K);var se=h(ee);return c(ie),u(N,se)?(ie.enumerable?(u(K,re)&&K[re][se]&&(K[re][se]=!1),ie=v(ie,{enumerable:p(0,!1)})):(u(K,re)||x(K,re,p(1,v(null))),K[re][se]=!0),ce(K,se,ie)):x(K,se,ie)},he=function(K,ee){c(K);var ie=d(ee),se=_(ie).concat(dt(ie));return we(se,function(Ee){(!s||t(Ae,ie,Ee))&&oe(K,Ee,ie[Ee])}),K},Ie=function(K,ee){return ee===void 0?v(K):he(v(K),ee)},Ae=function(K){var ee=h(K),ie=t(k,this,ee);return this===_e&&u(N,ee)&&!u(G,ee)?!1:ie||!u(this,ee)||!u(N,ee)||u(this,re)&&this[re][ee]?ie:!0},Ce=function(K,ee){var ie=d(K),se=h(ee);if(!(ie===_e&&u(N,se)&&!u(G,se))){var Ee=C(ie,se);return Ee&&u(N,se)&&!(u(ie,re)&&ie[re][se])&&(Ee.enumerable=!0),Ee}},bt=function(K){var ee=A(d(K)),ie=[];return we(ee,function(se){!u(N,se)&&!u(S,se)&&B(ie,se)}),ie},dt=function(ae){var K=ae===_e,ee=A(K?G:d(ae)),ie=[];return we(ee,function(se){u(N,se)&&(!K||u(_e,se))&&B(ie,N[se])}),ie};return o||(D=function(){if(l(U,this))throw new ne("Symbol is not a constructor");var K=!arguments.length||arguments[0]===void 0?void 0:f(arguments[0]),ee=$(K),ie=function(se){var Ee=this===void 0?e:this;Ee===_e&&t(ie,G,se),u(Ee,re)&&u(Ee[re],ee)&&(Ee[re][ee]=!1);var wi=p(1,se);try{ce(Ee,ee,wi)}catch(lo){if(!(lo instanceof X))throw lo;L(Ee,ee,wi)}};return s&&V&&ce(_e,ee,{configurable:!0,set:ie}),Q(ee,K)},U=D[qe],b(U,"toString",function(){return ct(this).tag}),b(D,"withoutSetter",function(ae){return Q($(ae),ae)}),T.f=Ae,I.f=oe,O.f=he,y.f=Ce,m.f=g.f=bt,E.f=dt,F.f=function(ae){return Q(q(ae),ae)},s&&(w(U,"description",{configurable:!0,get:function(){return ct(this).description}}),n||b(_e,"propertyIsEnumerable",Ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:D}),we(_(J),function(ae){Z(ae)}),r({target:me,stat:!0,forced:!o},{useSetter:function(){V=!0},useSimple:function(){V=!1}}),r({target:"Object",stat:!0,forced:!o,sham:!s},{create:Ie,defineProperty:oe,defineProperties:he,getOwnPropertyDescriptor:Ce}),r({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:bt}),z(),te(D,me),S[re]=!0,eI}var $I={},rh,PI;function Jz(){if(PI)return rh;PI=1;var r=Fs();return rh=r&&!!Symbol.for&&!!Symbol.keyFor,rh}var RI;function PK(){if(RI)return $I;RI=1;var r=be(),e=ir(),t=It(),i=Qi(),n=Ls(),s=Jz(),o=n("string-to-symbol-registry"),a=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{for:function(u){var l=i(u);if(t(o,l))return o[l];var c=e("Symbol")(l);return o[l]=c,a[c]=l,c}}),$I}var CI={},xI;function RK(){if(xI)return CI;xI=1;var r=be(),e=It(),t=fa(),i=ks(),n=Ls(),s=Jz(),o=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(u){if(!t(u))throw new TypeError(i(u)+" is not a symbol");if(e(o,u))return o[u]}}),CI}var qI={},ih,AI;function CK(){if(AI)return ih;AI=1;var r=We(),e=kn(),t=St(),i=vi(),n=Qi(),s=r([].push);return ih=function(o){if(t(o))return o;if(e(o)){for(var a=o.length,u=[],l=0;l=p.length)return f.target=null,o(void 0,!0);switch(f.kind){case"keys":return o(v,!1);case"values":return o(p[v],!1)}return o([v,p[v]],!1)},"values");var h=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!a&&u&&h.name!=="values")try{n(h,"name",{value:"values"})}catch{}return yh}var bh,qT;function ZK(){return qT||(qT=1,bh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),bh}var AT;function en(){if(AT)return mT;AT=1,Zi();var r=ZK(),e=vt(),t=Bn(),i=Us();for(var n in r)t(e[n],n),i[n]=i.Array;return mT}var _h,DT;function o3(){if(DT)return _h;DT=1;var r=WK();return en(),_h=r,_h}var MT={},NT;function eG(){if(NT)return MT;NT=1;var r=Tt(),e=vr().f,t=r("metadata"),i=Function.prototype;return i[t]===void 0&&e(i,t,{value:null}),MT}var FT={},kT;function tG(){return kT||(kT=1,e3()),FT}var BT={},LT;function rG(){return LT||(LT=1,t3()),BT}var jT={},zT;function iG(){if(zT)return jT;zT=1;var r=et();return r("metadata"),jT}var wh,HT;function nG(){if(HT)return wh;HT=1;var r=o3();return eG(),tG(),rG(),iG(),wh=r,wh}var WT={},Eh,UT;function a3(){if(UT)return Eh;UT=1;var r=ir(),e=We(),t=r("Symbol"),i=t.keyFor,n=e(t.prototype.valueOf);return Eh=t.isRegisteredSymbol||function(o){try{return i(n(o))!==void 0}catch{return!1}},Eh}var VT;function sG(){if(VT)return WT;VT=1;var r=be(),e=a3();return r({target:"Symbol",stat:!0},{isRegisteredSymbol:e}),WT}var KT={},Sh,GT;function u3(){if(GT)return Sh;GT=1;for(var r=Ls(),e=ir(),t=We(),i=fa(),n=Tt(),s=e("Symbol"),o=s.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),u=t(s.prototype.valueOf),l=r("wks"),c=0,d=a(s),h=d.length;c=f?u?"":void 0:(p=s(d,h),p<55296||p>56319||h+1===f||(v=s(d,h+1))<56320||v>57343?u?n(d,h):p:u?o(d,h,h+2):(p-55296<<10)+(v-56320)+65536)}};return Th={codeAt:a(!1),charAt:a(!0)},Th}var g$;function al(){if(g$)return p$;g$=1;var r=yG().charAt,e=Qi(),t=ya(),i=r0(),n=i0(),s="String Iterator",o=t.set,a=t.getterFor(s);return i(String,"String",function(u){o(this,{type:s,string:e(u),index:0})},function(){var l=a(this),c=l.string,d=l.index,h;return d>=c.length?n(void 0,!0):(h=r(c,d),l.index+=h.length,n(h,!1))}),p$}var $h,m$;function bG(){if(m$)return $h;m$=1,Zi(),al(),r3();var r=ol();return $h=r.f("iterator"),$h}var Ph,y$;function l3(){if(y$)return Ph;y$=1;var r=bG();return en(),Ph=r,Ph}var Rh,b$;function _G(){if(b$)return Rh;b$=1;var r=l3();return Rh=r,Rh}var Ch,_$;function wG(){if(_$)return Ch;_$=1;var r=_G();return Ch=r,Ch}var xh,w$;function EG(){return w$||(w$=1,xh=wG()),xh}var SG=EG(),OG=$e(SG);function Ko(r){"@babel/helpers - typeof";return Ko=typeof Ja=="function"&&typeof OG=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Ja=="function"&&e.constructor===Ja&&e!==Ja.prototype?"symbol":typeof e},Ko(r)}var qh,E$;function IG(){if(E$)return qh;E$=1,i3();var r=ol();return qh=r.f("toPrimitive"),qh}var Ah,S$;function TG(){if(S$)return Ah;S$=1;var r=IG();return Ah=r,Ah}var Dh,O$;function $G(){if(O$)return Dh;O$=1;var r=TG();return Dh=r,Dh}var Mh,I$;function PG(){if(I$)return Mh;I$=1;var r=$G();return Mh=r,Mh}var Nh,T$;function RG(){return T$||(T$=1,Nh=PG()),Nh}var CG=RG(),xG=$e(CG);function qG(r,e){if(Ko(r)!="object"||!r)return r;var t=r[xG];if(t!==void 0){var i=t.call(r,e);if(Ko(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function AG(r){var e=qG(r,"string");return Ko(e)=="symbol"?e:e+""}function Fi(r,e,t){return(e=AG(e))in r?bK(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var $$={},Fh,P$;function DG(){if(P$)return Fh;P$=1;var r=We(),e=gi(),t=Kt(),i=It(),n=Hs(),s=la(),o=Function,a=r([].concat),u=r([].join),l={},c=function(d,h,f){if(!i(l,h)){for(var p=[],v=0;v=0:p>v;v+=_)v in f&&(d=l(d,f[v],v,h));return d}};return Hh={left:o(!1),right:o(!0)},Hh}var Wh,F$;function ul(){if(F$)return Wh;F$=1;var r=Le();return Wh=function(e,t){var i=[][e];return!!i&&r(function(){i.call(null,t||function(){return 1},1)})},Wh}var Uh,k$;function d3(){if(k$)return Uh;k$=1;var r=vt(),e=Ns(),t=vi(),i=function(n){return e.slice(0,n.length)===n};return Uh=function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":t(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"}(),Uh}var Vh,B$;function zG(){if(B$)return Vh;B$=1;var r=d3();return Vh=r==="NODE",Vh}var L$;function HG(){if(L$)return M$;L$=1;var r=be(),e=jG().left,t=ul(),i=ha(),n=zG(),s=!n&&i>79&&i<83,o=s||!t("reduce");return r({target:"Array",proto:!0,forced:o},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),M$}var Kh,j$;function WG(){if(j$)return Kh;j$=1,HG();var r=Zt();return Kh=r("Array","reduce"),Kh}var Gh,z$;function UG(){if(z$)return Gh;z$=1;var r=Ot(),e=WG(),t=Array.prototype;return Gh=function(i){var n=i.reduce;return i===t||r(t,i)&&n===t.reduce?e:n},Gh}var Yh,H$;function VG(){if(H$)return Yh;H$=1;var r=UG();return Yh=r,Yh}var Xh,W$;function KG(){return W$||(W$=1,Xh=VG()),Xh}var GG=KG(),YG=$e(GG),U$={},V$;function XG(){if(V$)return U$;V$=1;var r=be(),e=Ws().filter,t=pa(),i=t("filter");return r({target:"Array",proto:!0,forced:!i},{filter:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),U$}var Jh,K$;function JG(){if(K$)return Jh;K$=1,XG();var r=Zt();return Jh=r("Array","filter"),Jh}var Qh,G$;function QG(){if(G$)return Qh;G$=1;var r=Ot(),e=JG(),t=Array.prototype;return Qh=function(i){var n=i.filter;return i===t||r(t,i)&&n===t.filter?e:n},Qh}var Zh,Y$;function ZG(){if(Y$)return Zh;Y$=1;var r=QG();return Zh=r,Zh}var ef,X$;function e6(){return X$||(X$=1,ef=ZG()),ef}var t6=e6(),cs=$e(t6),J$={},Q$;function r6(){if(Q$)return J$;Q$=1;var r=be(),e=Ws().map,t=pa(),i=t("map");return r({target:"Array",proto:!0,forced:!i},{map:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),J$}var tf,Z$;function i6(){if(Z$)return tf;Z$=1,r6();var r=Zt();return tf=r("Array","map"),tf}var rf,eP;function n6(){if(eP)return rf;eP=1;var r=Ot(),e=i6(),t=Array.prototype;return rf=function(i){var n=i.map;return i===t||r(t,i)&&n===t.map?e:n},rf}var nf,tP;function s6(){if(tP)return nf;tP=1;var r=n6();return nf=r,nf}var sf,rP;function o6(){return rP||(rP=1,sf=s6()),sf}var a6=o6(),wr=$e(a6),of,iP;function u6(){return iP||(iP=1,of=o3()),of}var l6=u6(),c6=$e(l6),nP={},sP;function d6(){if(sP)return nP;sP=1;var r=be(),e=kn(),t=Vz(),i=Kt(),n=Qw(),s=Xi(),o=Hr(),a=tl(),u=Tt(),l=pa(),c=Hs(),d=l("slice"),h=u("species"),f=Array,p=Math.max;return r({target:"Array",proto:!0,forced:!d},{slice:function(_,m){var g=o(this),E=s(g),y=n(_,E),I=n(m===void 0?E:m,E),O,T,b;if(e(g)&&(O=g.constructor,t(O)&&(O===f||e(O.prototype))?O=void 0:i(O)&&(O=O[h],O===null&&(O=void 0)),O===f||O===void 0))return c(g,y,I);for(T=new(O===void 0?f:O)(p(I-y,0)),b=0;y1?arguments[1]:void 0)},wf}var PP;function M6(){if(PP)return TP;PP=1;var r=be(),e=D6();return r({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e}),TP}var Ef,RP;function N6(){if(RP)return Ef;RP=1,M6();var r=Zt();return Ef=r("Array","forEach"),Ef}var Sf,CP;function F6(){if(CP)return Sf;CP=1;var r=N6();return Sf=r,Sf}var Of,xP;function k6(){if(xP)return Of;xP=1;var r=Ji(),e=It(),t=Ot(),i=F6(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return Of=function(o){var a=o.forEach;return o===n||t(n,o)&&a===n.forEach||e(s,r(o))?i:a},Of}var If,qP;function B6(){return qP||(qP=1,If=k6()),If}var L6=B6(),Tn=$e(L6),AP={},DP;function j6(){if(DP)return AP;DP=1;var r=be(),e=We(),t=kn(),i=e([].reverse),n=[1,2];return r({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return t(this)&&(this.length=this.length),i(this)}}),AP}var Tf,MP;function z6(){if(MP)return Tf;MP=1,j6();var r=Zt();return Tf=r("Array","reverse"),Tf}var $f,NP;function H6(){if(NP)return $f;NP=1;var r=Ot(),e=z6(),t=Array.prototype;return $f=function(i){var n=i.reverse;return i===t||r(t,i)&&n===t.reverse?e:n},$f}var Pf,FP;function W6(){if(FP)return Pf;FP=1;var r=H6();return Pf=r,Pf}var Rf,kP;function U6(){return kP||(kP=1,Rf=W6()),Rf}var V6=U6(),K6=$e(V6),BP={},Cf,LP;function G6(){if(LP)return Cf;LP=1;var r=gt(),e=kn(),t=TypeError,i=Object.getOwnPropertyDescriptor,n=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}();return Cf=n?function(s,o){if(e(s)&&!i(s,"length").writable)throw new t("Cannot set read only .length");return s.length=o}:function(s,o){return s.length=o},Cf}var xf,jP;function f3(){if(jP)return xf;jP=1;var r=ks(),e=TypeError;return xf=function(t,i){if(!delete t[i])throw new e("Cannot delete property "+r(i)+" of "+r(t))},xf}var zP;function Y6(){if(zP)return BP;zP=1;var r=be(),e=Rr(),t=Qw(),i=zs(),n=Xi(),s=G6(),o=Uz(),a=Jw(),u=tl(),l=f3(),c=pa(),d=c("splice"),h=Math.max,f=Math.min;return r({target:"Array",proto:!0,forced:!d},{splice:function(v,_){var m=e(this),g=n(m),E=t(v,g),y=arguments.length,I,O,T,b,w,R;for(y===0?I=O=0:y===1?(I=0,O=g-E):(I=y-2,O=f(h(i(_),0),g-E)),o(g+I-O),T=a(m,O),b=0;bg-O+I;b--)l(m,b-1)}else if(I>O)for(b=g-O;b>E;b--)w=b+O-1,R=b+I-1,w in m?m[R]=m[w]:l(m,R);for(b=0;bm;)for(var y=u(arguments[m++]),I=g?d(n(y),g(y)):n(y),O=I.length,T=0,b;O>T;)b=I[T++],(!r||t(E,y,b))&&(v[b]=y[b]);return v}:l,Nf}var YP;function r8(){if(YP)return KP;YP=1;var r=be(),e=t8();return r({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),KP}var Ff,XP;function i8(){if(XP)return Ff;XP=1,r8();var r=_t();return Ff=r.Object.assign,Ff}var kf,JP;function n8(){if(JP)return kf;JP=1;var r=i8();return kf=r,kf}var Bf,QP;function s8(){return QP||(QP=1,Bf=n8()),Bf}var o8=s8(),a8=$e(o8),Lf,ZP;function u8(){if(ZP)return Lf;ZP=1,Kz();var r=Zt();return Lf=r("Array","concat"),Lf}var jf,eR;function l8(){if(eR)return jf;eR=1;var r=Ot(),e=u8(),t=Array.prototype;return jf=function(i){var n=i.concat;return i===t||r(t,i)&&n===t.concat?e:n},jf}var zf,tR;function c8(){if(tR)return zf;tR=1;var r=l8();return zf=r,zf}var Hf,rR;function d8(){return rR||(rR=1,Hf=c8()),Hf}var h8=d8(),f8=$e(h8),iR={},nR;function p8(){if(nR)return iR;nR=1;var r=be(),e=gt(),t=ga();return r({target:"Object",stat:!0,sham:!e},{create:t}),iR}var Wf,sR;function v8(){if(sR)return Wf;sR=1,p8();var r=_t(),e=r.Object;return Wf=function(i,n){return e.create(i,n)},Wf}var Uf,oR;function g8(){if(oR)return Uf;oR=1;var r=v8();return Uf=r,Uf}var Vf,aR;function m8(){return aR||(aR=1,Vf=g8()),Vf}var y8=m8(),b8=$e(y8),uR={},Kf,lR;function _8(){if(lR)return Kf;lR=1;var r=zs(),e=Qi(),t=Fn(),i=RangeError;return Kf=function(s){var o=e(t(this)),a="",u=r(s);if(u<0||u===1/0)throw new i("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(o+=o))u&1&&(a+=o);return a},Kf}var Gf,cR;function w8(){if(cR)return Gf;cR=1;var r=We(),e=Wz(),t=Qi(),i=_8(),n=Fn(),s=r(i),o=r("".slice),a=Math.ceil,u=function(l){return function(c,d,h){var f=t(n(c)),p=e(d),v=f.length,_=h===void 0?" ":t(h),m,g;return p<=v||_===""?f:(m=p-v,g=s(_,a(m/_.length)),g.length>m&&(g=o(g,0,m)),l?f+g:g+f)}};return Gf={start:u(!1),end:u(!0)},Gf}var Yf,dR;function E8(){if(dR)return Yf;dR=1;var r=We(),e=Le(),t=w8().start,i=RangeError,n=isFinite,s=Math.abs,o=Date.prototype,a=o.toISOString,u=r(o.getTime),l=r(o.getUTCDate),c=r(o.getUTCFullYear),d=r(o.getUTCHours),h=r(o.getUTCMilliseconds),f=r(o.getUTCMinutes),p=r(o.getUTCMonth),v=r(o.getUTCSeconds);return Yf=e(function(){return a.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!e(function(){a.call(new Date(NaN))})?function(){if(!n(u(this)))throw new i("Invalid time value");var m=this,g=c(m),E=h(m),y=g<0?"-":g>9999?"+":"";return y+t(s(g),y?6:4,0)+"-"+t(p(m)+1,2,0)+"-"+t(l(m),2,0)+"T"+t(d(m),2,0)+":"+t(f(m),2,0)+":"+t(v(m),2,0)+"."+t(E,3,0)+"Z"}:a,Yf}var hR;function S8(){if(hR)return uR;hR=1;var r=be(),e=Qt(),t=Rr(),i=Bz(),n=E8(),s=vi(),o=Le(),a=o(function(){return new Date(NaN).toJSON()!==null||e(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});return r({target:"Date",proto:!0,forced:a},{toJSON:function(l){var c=t(this),d=i(c,"number");return typeof d=="number"&&!isFinite(d)?null:!("toISOString"in c)&&s(c)==="Date"?e(n,c):c.toISOString()}}),uR}var Xf,fR;function O8(){if(fR)return Xf;fR=1,S8(),Qz();var r=_t(),e=Xu();return r.JSON||(r.JSON={stringify:JSON.stringify}),Xf=function(i,n,s){return e(r.JSON.stringify,null,arguments)},Xf}var Jf,pR;function I8(){if(pR)return Jf;pR=1;var r=O8();return Jf=r,Jf}var Qf,vR;function T8(){return vR||(vR=1,Qf=I8()),Qf}var $8=T8(),P8=$e($8),gR={},mR={},Zf,yR;function R8(){if(yR)return Zf;yR=1;var r=TypeError;return Zf=function(e,t){if(ed,v=t(h)?h:a(h),_=p?s(arguments,d):[],m=p?function(){e(v,this,_)}:v;return c?l(m,f):l(m)}:l},ep}var _R;function C8(){if(_R)return mR;_R=1;var r=be(),e=vt(),t=v3(),i=t(e.setInterval,!0);return r({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i}),mR}var wR={},ER;function x8(){if(ER)return wR;ER=1;var r=be(),e=vt(),t=v3(),i=t(e.setTimeout,!0);return r({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i}),wR}var SR;function q8(){return SR||(SR=1,C8(),x8()),gR}var tp,OR;function A8(){if(OR)return tp;OR=1,q8();var r=_t();return tp=r.setTimeout,tp}var rp,IR;function D8(){return IR||(IR=1,rp=A8()),rp}var M8=D8(),N8=$e(M8),ip={exports:{}},TR;function F8(){return TR||(TR=1,function(r){function e(i){if(i)return t(i);this._callbacks=new Map}function t(i){return Object.assign(i,e.prototype),i._callbacks=new Map,i}e.prototype.on=function(i,n){const s=this._callbacks.get(i)??[];return s.push(n),this._callbacks.set(i,s),this},e.prototype.once=function(i,n){const s=(...o)=>{this.off(i,s),n.apply(this,o)};return s.fn=n,this.on(i,s),this},e.prototype.off=function(i,n){if(i===void 0&&n===void 0)return this._callbacks.clear(),this;if(n===void 0)return this._callbacks.delete(i),this;const s=this._callbacks.get(i);if(s){for(const[o,a]of s.entries())if(a===n||a.fn===n){s.splice(o,1);break}s.length===0?this._callbacks.delete(i):this._callbacks.set(i,s)}return this},e.prototype.emit=function(i,...n){const s=this._callbacks.get(i);if(s){const o=[...s];for(const a of o)a.apply(this,n)}return this},e.prototype.listeners=function(i){return this._callbacks.get(i)??[]},e.prototype.listenerCount=function(i){if(i)return this.listeners(i).length;let n=0;for(const s of this._callbacks.values())n+=s.length;return n},e.prototype.hasListeners=function(i){return this.listenerCount(i)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,r.exports=e}(ip)),ip.exports}var k8=F8(),B8=$e(k8);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 - * http://naver.github.io/egjs - * - * Forked By Naver egjs - * Copyright (c) hammerjs - * Licensed under the MIT license */function $r(){return $r=Object.assign||function(r){for(var e=1;e"u"?{style:{}}:document.createElement("div"),j8="function",ds=Math.round,Pn=Math.abs,s0=Date.now;function ll(r,e){for(var t,i,n=e[0].toUpperCase()+e.slice(1),s=0;s<$R.length;){if(t=$R[s],i=t?t+n:e,i in r)return i;s++}}var ii;typeof window>"u"?ii={}:ii=window;var g3=ll(L8.style,"touchAction"),m3=g3!==void 0;function z8(){if(!m3)return!1;var r={},e=ii.CSS&&ii.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return r[t]=e?ii.CSS.supports("touch-action",t):!0}),r}var y3="compute",b3="auto",uw="manipulation",bn="none",Go="pan-x",Yo="pan-y",Za=z8(),H8=/mobile|tablet|ip(ad|hone|od)|android/i,_3="ontouchstart"in ii,W8=ll(ii,"PointerEvent")!==void 0,U8=_3&&H8.test(navigator.userAgent),ba="touch",V8="pen",o0="mouse",K8="kinect",G8=25,Ut=1,Ln=2,ht=4,Xt=8,Eu=1,_a=2,wa=4,Ea=8,Ps=16,jr=_a|wa,_n=Ea|Ps,w3=jr|_n,E3=["x","y"],Su=["clientX","clientY"];function ni(r,e,t){var i;if(r)if(r.forEach)r.forEach(e,t);else if(r.length!==void 0)for(i=0;i-1}function Y8(r){if(fn(r,bn))return bn;var e=fn(r,Go),t=fn(r,Yo);return e&&t?bn:e||t?e?Go:Yo:fn(r,uw)?uw:b3}var S3=function(){function r(t,i){this.manager=t,this.set(i)}var e=r.prototype;return e.set=function(i){i===y3&&(i=this.compute()),m3&&this.manager.element.style&&Za[i]&&(this.manager.element.style[g3]=i),this.actions=i.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var i=[];return ni(this.manager.recognizers,function(n){cl(n.options.enable,[n])&&(i=i.concat(n.getTouchAction()))}),Y8(i.join(" "))},e.preventDefaults=function(i){var n=i.srcEvent,s=i.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,a=fn(o,bn)&&!Za[bn],u=fn(o,Yo)&&!Za[Yo],l=fn(o,Go)&&!Za[Go];if(a){var c=i.pointers.length===1,d=i.distance<2,h=i.deltaTime<250;if(c&&d&&h)return}if(!(l&&u)&&(a||u&&s&jr||l&&s&_n))return this.preventSrc(n)},e.preventSrc=function(i){this.manager.session.prevented=!0,i.preventDefault()},r}();function a0(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}function O3(r){var e=r.length;if(e===1)return{x:ds(r[0].clientX),y:ds(r[0].clientY)};for(var t=0,i=0,n=0;n=Pn(e)?r<0?_a:wa:e<0?Ea:Ps}function X8(r,e){var t=e.center,i=r.offsetDelta||{},n=r.prevDelta||{},s=r.prevInput||{};(e.eventType===Ut||s.eventType===ht)&&(n=r.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=r.offsetDelta={x:t.x,y:t.y}),e.deltaX=n.x+(t.x-i.x),e.deltaY=n.y+(t.y-i.y)}function T3(r,e,t){return{x:e/r||0,y:t/r||0}}function J8(r,e){return Ou(e[0],e[1],Su)/Ou(r[0],r[1],Su)}function Q8(r,e){return lw(e[1],e[0],Su)+lw(r[1],r[0],Su)}function Z8(r,e){var t=r.lastInterval||e,i=e.timeStamp-t.timeStamp,n,s,o,a;if(e.eventType!==Xt&&(i>G8||t.velocity===void 0)){var u=e.deltaX-t.deltaX,l=e.deltaY-t.deltaY,c=T3(i,u,l);s=c.x,o=c.y,n=Pn(c.x)>Pn(c.y)?c.x:c.y,a=I3(u,l),r.lastInterval=e}else n=t.velocity,s=t.velocityX,o=t.velocityY,a=t.direction;e.velocity=n,e.velocityX=s,e.velocityY=o,e.direction=a}function e9(r,e){var t=r.session,i=e.pointers,n=i.length;t.firstInput||(t.firstInput=PR(e)),n>1&&!t.firstMultiple?t.firstMultiple=PR(e):n===1&&(t.firstMultiple=!1);var s=t.firstInput,o=t.firstMultiple,a=o?o.center:s.center,u=e.center=O3(i);e.timeStamp=s0(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=lw(a,u),e.distance=Ou(a,u),X8(t,e),e.offsetDirection=I3(e.deltaX,e.deltaY);var l=T3(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=Pn(l.x)>Pn(l.y)?l.x:l.y,e.scale=o?J8(o.pointers,i):1,e.rotation=o?Q8(o.pointers,i):0,e.maxPointers=t.prevInput?e.pointers.length>t.prevInput.maxPointers?e.pointers.length:t.prevInput.maxPointers:e.pointers.length,Z8(t,e);var c=r.element,d=e.srcEvent,h;d.composedPath?h=d.composedPath()[0]:d.path?h=d.path[0]:h=d.target,a0(h,c)&&(c=h),e.target=c}function t9(r,e,t){var i=t.pointers.length,n=t.changedPointers.length,s=e&Ut&&i-n===0,o=e&(ht|Xt)&&i-n===0;t.isFirst=!!s,t.isFinal=!!o,s&&(r.session={}),t.eventType=e,e9(r,t),r.emit("hammer.input",t),r.recognize(t),r.session.prevInput=t}function Xo(r){return r.trim().split(/\s+/g)}function Co(r,e,t){ni(Xo(e),function(i){r.addEventListener(i,t,!1)})}function xo(r,e,t){ni(Xo(e),function(i){r.removeEventListener(i,t,!1)})}function RR(r){var e=r.ownerDocument||r;return e.defaultView||e.parentWindow||window}var Vs=function(){function r(t,i){var n=this;this.manager=t,this.callback=i,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(s){cl(t.options.enable,[t])&&n.handler(s)},this.init()}var e=r.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Co(this.element,this.evEl,this.domHandler),this.evTarget&&Co(this.target,this.evTarget,this.domHandler),this.evWin&&Co(RR(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&xo(this.element,this.evEl,this.domHandler),this.evTarget&&xo(this.target,this.evTarget,this.domHandler),this.evWin&&xo(RR(this.element),this.evWin,this.domHandler)},r}();function Rn(r,e,t){if(r.indexOf&&!t)return r.indexOf(e);for(var i=0;iu[e]}):i=i.sort()),i}var n9={touchstart:Ut,touchmove:Ln,touchend:ht,touchcancel:Xt},s9="touchstart touchmove touchend touchcancel",l0=function(r){gr(e,r);function e(){var i;return e.prototype.evTarget=s9,i=r.apply(this,arguments)||this,i.targetIds={},i}var t=e.prototype;return t.handler=function(n){var s=n9[n.type],o=o9.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:ba,srcEvent:n})},e}(Vs);function o9(r,e){var t=Jo(r.touches),i=this.targetIds;if(e&(Ut|Ln)&&t.length===1)return i[t[0].identifier]=!0,[t,t];var n,s,o=Jo(r.changedTouches),a=[],u=this.target;if(s=t.filter(function(l){return a0(l.target,u)}),e===Ut)for(n=0;n-1&&n.splice(a,1)};setTimeout(s,c9)}}function d9(r,e){r&Ut?(this.primaryTouch=e.changedPointers[0].identifier,xR.call(this,e)):r&(ht|Xt)&&xR.call(this,e)}function h9(r){for(var e=r.srcEvent.clientX,t=r.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(n,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(i){return!!this.simultaneous[i.id]},e.emit=function(i){var n=this,s=this.state;function o(a){n.manager.emit(a,i)}s=ki&&o(n.options.event+qR(s))},e.tryEmit=function(i){if(this.canEmit())return this.emit(i);this.state=Fr},e.canEmit=function(){for(var i=0;is.threshold&&u&s.direction},t.attrTest=function(n){return Cs.prototype.attrTest.call(this,n)&&(this.state&hr||!(this.state&hr)&&this.directionTest(n))},t.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=x3(n.direction);s&&(n.additionalEvent=this.options.event+s),r.prototype.emit.call(this,n)},e}(Cs),q3=function(r){gr(e,r);function e(i){return i===void 0&&(i={}),r.call(this,$r({event:"swipe",threshold:10,velocity:.3,direction:jr|_n,pointers:1},i))||this}var t=e.prototype;return t.getTouchAction=function(){return d0.prototype.getTouchAction.call(this)},t.attrTest=function(n){var s=this.options.direction,o;return s&(jr|_n)?o=n.overallVelocity:s&jr?o=n.overallVelocityX:s&_n&&(o=n.overallVelocityY),r.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&Pn(o)>this.options.velocity&&n.eventType&ht},t.emit=function(n){var s=x3(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},e}(Cs),A3=function(r){gr(e,r);function e(i){return i===void 0&&(i={}),r.call(this,$r({event:"pinch",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[bn]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&hr)},t.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}r.prototype.emit.call(this,n)},e}(Cs),D3=function(r){gr(e,r);function e(i){return i===void 0&&(i={}),r.call(this,$r({event:"rotate",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[bn]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&hr)},e}(Cs),M3=function(r){gr(e,r);function e(i){var n;return i===void 0&&(i={}),n=r.call(this,$r({event:"press",pointers:1,time:251,threshold:9},i))||this,n._timer=null,n._input=null,n}var t=e.prototype;return t.getTouchAction=function(){return[b3]},t.process=function(n){var s=this,o=this.options,a=n.pointers.length===o.pointers,u=n.distanceo.time;if(this._input=n,!u||!a||n.eventType&(ht|Xt)&&!l)this.reset();else if(n.eventType&Ut)this.reset(),this._timer=setTimeout(function(){s.state=si,s.tryEmit()},o.time);else if(n.eventType&ht)return si;return Fr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(n){this.state===si&&(n&&n.eventType&ht?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=s0(),this.manager.emit(this.options.event,this._input)))},e}(Sa),N3={domEvents:!1,touchAction:y3,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},AR=[[D3,{enable:!1}],[A3,{enable:!1},["rotate"]],[q3,{direction:jr}],[d0,{direction:jr},["swipe"]],[cw],[cw,{event:"doubletap",taps:2},["tap"]],[M3]],g9=1,DR=2;function MR(r,e){var t=r.element;if(t.style){var i;ni(r.options.cssProps,function(n,s){i=ll(t.style,s),e?(r.oldCssProps[i]=t.style[i],t.style[i]=n):t.style[i]=r.oldCssProps[i]||""}),e||(r.oldCssProps={})}}function m9(r,e){var t=document.createEvent("Event");t.initEvent(r,!0,!0),t.gesture=e,e.target.dispatchEvent(t)}var NR=function(){function r(t,i){var n=this;this.options=$n({},N3,i||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=f9(this),this.touchAction=new S3(this,this.options.touchAction),MR(this,!0),ni(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var e=r.prototype;return e.set=function(i){return $n(this.options,i),i.touchAction&&this.touchAction.update(),i.inputTarget&&(this.input.destroy(),this.input.target=i.inputTarget,this.input.init()),this},e.stop=function(i){this.session.stopped=i?DR:g9},e.recognize=function(i){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(i);var s,o=this.recognizers,a=n.curRecognizer;(!a||a&&a.state&si)&&(n.curRecognizer=null,a=null);for(var u=0;u\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,s),r.apply(this,arguments)}}var k3=F3(function(r,e,t){for(var i=Object.keys(e),n=0;n1?e-1:0),i=1;i2)return Iu(L3(e[0],e[1]),...m6(e).call(e,2));const i=e[0],n=e[1];if(i instanceof Date&&n instanceof Date)return i.setTime(n.getTime()),i;for(const s of S6(n))Object.prototype.propertyIsEnumerable.call(n,s)&&(n[s]===B3?delete i[s]:i[s]!==null&&n[s]!==null&&typeof i[s]=="object"&&typeof n[s]=="object"&&!Dr(i[s])&&!Dr(n[s])?i[s]=Iu(i[s],n[s]):i[s]=j3(n[s]));return i}function j3(r){return Dr(r)?wr(r).call(r,e=>j3(e)):typeof r=="object"&&r!==null?r instanceof Date?new Date(r.getTime()):Iu({},r):r}function z3(r){for(const e of n0(r))r[e]===B3?delete r[e]:typeof r[e]=="object"&&r[e]!==null&&z3(r[e])}function $9(){const r=()=>{};return{on:r,off:r,destroy:r,emit:r,get(){return{set:r}}}}const P9=typeof window<"u"?window.Hammer||I9:function(){return $9()};function ei(r){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:r,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const t=P9(this._dom.overlay);t.on("tap",c3(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{t.destroy()});const i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Tn(i).call(i,n=>{t.on(n,s=>{s.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=n=>{R9(n.target,r)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=n=>{("key"in n?n.key==="Escape":n.keyCode===27)&&this.deactivate()}}B8(ei.prototype);ei.current=null;ei.prototype.destroy=function(){this.deactivate();for(const t of K6(r=p3(e=this._cleanupQueue).call(e,0)).call(r)){var r,e;t()}};ei.prototype.activate=function(){ei.current&&ei.current.deactivate(),ei.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};ei.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};ei.prototype._onTapOverlay=function(r){this.activate(),r.srcEvent.stopPropagation()};function R9(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}var np,kR;function C9(){if(kR)return np;kR=1,Zz();var r=_t();return np=r.Object.getOwnPropertySymbols,np}var sp,BR;function x9(){if(BR)return sp;BR=1;var r=C9();return sp=r,sp}var op,LR;function q9(){return LR||(LR=1,op=x9()),op}var A9=q9(),jR=$e(A9),ap={exports:{}},zR={},HR;function D9(){if(HR)return zR;HR=1;var r=be(),e=Le(),t=Hr(),i=Zu().f,n=gt(),s=!n||e(function(){i(1)});return r({target:"Object",stat:!0,forced:s,sham:!n},{getOwnPropertyDescriptor:function(a,u){return i(t(a),u)}}),zR}var WR;function M9(){if(WR)return ap.exports;WR=1,D9();var r=_t(),e=r.Object,t=ap.exports=function(n,s){return e.getOwnPropertyDescriptor(n,s)};return e.getOwnPropertyDescriptor.sham&&(t.sham=!0),ap.exports}var up,UR;function N9(){if(UR)return up;UR=1;var r=M9();return up=r,up}var lp,VR;function F9(){return VR||(VR=1,lp=N9()),lp}var k9=F9(),H3=$e(k9),KR={},GR;function B9(){if(GR)return KR;GR=1;var r=be(),e=gt(),t=h3(),i=Hr(),n=Zu(),s=tl();return r({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(a){for(var u=i(a),l=n.f,c=t(u),d={},h=0,f,p;c.length>h;)p=l(u,f=c[h++]),p!==void 0&&s(d,f,p);return d}}),KR}var cp,YR;function L9(){if(YR)return cp;YR=1,B9();var r=_t();return cp=r.Object.getOwnPropertyDescriptors,cp}var dp,XR;function j9(){if(XR)return dp;XR=1;var r=L9();return dp=r,dp}var hp,JR;function z9(){return JR||(JR=1,hp=j9()),hp}var H9=z9(),QR=$e(H9),fp={exports:{}},ZR={},eC;function W9(){if(eC)return ZR;eC=1;var r=be(),e=gt(),t=e0().f;return r({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!e},{defineProperties:t}),ZR}var tC;function U9(){if(tC)return fp.exports;tC=1,W9();var r=_t(),e=r.Object,t=fp.exports=function(n,s){return e.defineProperties(n,s)};return e.defineProperties.sham&&(t.sham=!0),fp.exports}var pp,rC;function V9(){if(rC)return pp;rC=1;var r=U9();return pp=r,pp}var vp,iC;function K9(){return iC||(iC=1,vp=V9()),vp}var G9=K9(),Y9=$e(G9),gp,nC;function X9(){return nC||(nC=1,gp=Hz()),gp}var J9=X9(),Q9=$e(J9),sC={},oC={},mp={exports:{}},yp,aC;function Z9(){if(aC)return yp;aC=1;var r=Le();return yp=r(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),yp}var bp,uC;function e7(){if(uC)return bp;uC=1;var r=Le(),e=Kt(),t=vi(),i=Z9(),n=Object.isExtensible,s=r(function(){});return bp=s||i?function(a){return!e(a)||i&&t(a)==="ArrayBuffer"?!1:n?n(a):!0}:n,bp}var _p,lC;function t7(){if(lC)return _p;lC=1;var r=Le();return _p=!r(function(){return Object.isExtensible(Object.preventExtensions({}))}),_p}var cC;function W3(){if(cC)return mp.exports;cC=1;var r=be(),e=We(),t=va(),i=Kt(),n=It(),s=vr().f,o=nl(),a=Yz(),u=e7(),l=Qu(),c=t7(),d=!1,h=l("meta"),f=0,p=function(y){s(y,h,{value:{objectID:"O"+f++,weakData:{}}})},v=function(y,I){if(!i(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!n(y,h)){if(!u(y))return"F";if(!I)return"E";p(y)}return y[h].objectID},_=function(y,I){if(!n(y,h)){if(!u(y))return!0;if(!I)return!1;p(y)}return y[h].weakData},m=function(y){return c&&d&&u(y)&&!n(y,h)&&p(y),y},g=function(){E.enable=function(){},d=!0;var y=o.f,I=e([].splice),O={};O[h]=1,y(O).length&&(o.f=function(T){for(var b=y(T),w=0,R=b.length;wb;b++)if(R=q(f[b]),R&&o(h,R))return R;return new d(!1)}O=a(f,T)}for(P=g?f.next:O.next;!(S=e(P,O)).done;){try{R=q(S.value)}catch(F){l(O,"throw",F)}if(typeof R=="object"&&R&&o(h,R))return R}return new d(!1)},Ip}var Tp,gC;function K3(){if(gC)return Tp;gC=1;var r=Ot(),e=TypeError;return Tp=function(t,i){if(r(i,t))return t;throw new e("Incorrect invocation")},Tp}var $p,mC;function G3(){if(mC)return $p;mC=1;var r=be(),e=vt(),t=W3(),i=Le(),n=js(),s=f0(),o=K3(),a=St(),u=Kt(),l=da(),c=Bn(),d=vr().f,h=Ws().forEach,f=gt(),p=ya(),v=p.set,_=p.getterFor;return $p=function(m,g,E){var y=m.indexOf("Map")!==-1,I=m.indexOf("Weak")!==-1,O=y?"set":"add",T=e[m],b=T&&T.prototype,w={},R;if(!f||!a(T)||!(I||b.forEach&&!i(function(){new T().entries().next()})))R=E.getConstructor(g,m,y,O),t.enable();else{R=g(function($,q){v(o($,P),{type:m,collection:new T}),l(q)||s(q,$[O],{that:$,AS_ENTRIES:y})});var P=R.prototype,S=_(m);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function($){var q=$==="add"||$==="set";$ in b&&!(I&&$==="clear")&&n(P,$,function(F,Z){var z=S(this).collection;if(!q&&I&&!u(F))return $==="get"?void 0:!1;var te=z[$](F===0?0:F,Z);return q?this:te})}),I||d(P,"size",{configurable:!0,get:function(){return S(this).collection.size}})}return c(R,m,!1,!0),w[m]=R,r({global:!0,forced:!0},w),I||E.setStrong(R,m,y),R},$p}var Pp,yC;function i7(){if(yC)return Pp;yC=1;var r=ma();return Pp=function(e,t,i){for(var n in t)i&&i.unsafe&&e[n]?e[n]=t[n]:r(e,n,t[n],i);return e},Pp}var Rp,bC;function n7(){if(bC)return Rp;bC=1;var r=ir(),e=t0(),t=Tt(),i=gt(),n=t("species");return Rp=function(s){var o=r(s);i&&o&&!o[n]&&e(o,n,{configurable:!0,get:function(){return this}})},Rp}var Cp,_C;function Y3(){if(_C)return Cp;_C=1;var r=ga(),e=t0(),t=i7(),i=el(),n=K3(),s=da(),o=f0(),a=r0(),u=i0(),l=n7(),c=gt(),d=W3().fastKey,h=ya(),f=h.set,p=h.getterFor;return Cp={getConstructor:function(v,_,m,g){var E=v(function(b,w){n(b,y),f(b,{type:_,index:r(null),first:null,last:null,size:0}),c||(b.size=0),s(w)||o(w,b[g],{that:b,AS_ENTRIES:m})}),y=E.prototype,I=p(_),O=function(b,w,R){var P=I(b),S=T(b,w),$,q;return S?S.value=R:(P.last=S={index:q=d(w,!0),key:w,value:R,previous:$=P.last,next:null,removed:!1},P.first||(P.first=S),$&&($.next=S),c?P.size++:b.size++,q!=="F"&&(P.index[q]=S)),b},T=function(b,w){var R=I(b),P=d(w),S;if(P!=="F")return R.index[P];for(S=R.first;S;S=S.next)if(S.key===w)return S};return t(y,{clear:function(){for(var w=this,R=I(w),P=R.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=null),P=P.next;R.first=R.last=null,R.index=r(null),c?R.size=0:w.size=0},delete:function(b){var w=this,R=I(w),P=T(w,b);if(P){var S=P.next,$=P.previous;delete R.index[P.index],P.removed=!0,$&&($.next=S),S&&(S.previous=$),R.first===P&&(R.first=S),R.last===P&&(R.last=$),c?R.size--:w.size--}return!!P},forEach:function(w){for(var R=I(this),P=i(w,arguments.length>1?arguments[1]:void 0),S;S=S?S.next:R.first;)for(P(S.value,S.key,this);S&&S.removed;)S=S.previous},has:function(w){return!!T(this,w)}}),t(y,m?{get:function(w){var R=T(this,w);return R&&R.value},set:function(w,R){return O(this,w===0?0:w,R)}}:{add:function(w){return O(this,w=w===0?0:w,w)}}),c&&e(y,"size",{configurable:!0,get:function(){return I(this).size}}),E},setStrong:function(v,_,m){var g=_+" Iterator",E=p(_),y=p(g);a(v,_,function(I,O){f(this,{type:g,target:I,state:E(I),kind:O,last:null})},function(){for(var I=y(this),O=I.kind,T=I.last;T&&T.removed;)T=T.previous;return!I.target||!(I.last=T=T?T.next:I.state.first)?(I.target=null,u(void 0,!0)):u(O==="keys"?T.key:O==="values"?T.value:[T.key,T.value],!1)},m?"entries":"values",!m,!0),l(_)}},Cp}var wC;function s7(){if(wC)return oC;wC=1;var r=G3(),e=Y3();return r("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),oC}var EC;function o7(){return EC||(EC=1,s7()),sC}var SC={},xp,OC;function X3(){return OC||(OC=1,xp=function(r,e){return e===1?function(t,i){return t[r](i)}:function(t,i,n){return t[r](i,n)}}),xp}var qp,IC;function a7(){if(IC)return qp;IC=1;var r=ir(),e=X3(),t=r("Map");return qp={Map:t,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:t.prototype},qp}var TC;function u7(){if(TC)return SC;TC=1;var r=be(),e=We(),t=gi(),i=Fn(),n=f0(),s=a7(),o=Bs(),a=Le(),u=s.Map,l=s.has,c=s.get,d=s.set,h=e([].push),f=o||a(function(){return u.groupBy("ab",function(p){return p}).get("a").length!==1});return r({target:"Map",stat:!0,forced:o||f},{groupBy:function(v,_){i(v),t(_);var m=new u,g=0;return n(v,function(E){var y=_(E,g++);l(m,y)?h(c(m,y),E):d(m,y,[E])}),m}}),SC}var Ap,$C;function l7(){if($C)return Ap;$C=1,Zi(),o7(),u7(),al();var r=_t();return Ap=r.Map,Ap}var Dp,PC;function c7(){if(PC)return Dp;PC=1;var r=l7();return en(),Dp=r,Dp}var Mp,RC;function d7(){return RC||(RC=1,Mp=c7()),Mp}var h7=d7(),J3=$e(h7),CC={},xC;function f7(){if(xC)return CC;xC=1;var r=be(),e=Ws().some,t=ul(),i=t("some");return r({target:"Array",proto:!0,forced:!i},{some:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),CC}var Np,qC;function p7(){if(qC)return Np;qC=1,f7();var r=Zt();return Np=r("Array","some"),Np}var Fp,AC;function v7(){if(AC)return Fp;AC=1;var r=Ot(),e=p7(),t=Array.prototype;return Fp=function(i){var n=i.some;return i===t||r(t,i)&&n===t.some?e:n},Fp}var kp,DC;function g7(){if(DC)return kp;DC=1;var r=v7();return kp=r,kp}var Bp,MC;function m7(){return MC||(MC=1,Bp=g7()),Bp}var y7=m7(),b7=$e(y7),Lp,NC;function _7(){if(NC)return Lp;NC=1,Zi();var r=Zt();return Lp=r("Array","keys"),Lp}var jp,FC;function w7(){if(FC)return jp;FC=1;var r=_7();return jp=r,jp}var zp,kC;function E7(){if(kC)return zp;kC=1,en();var r=Ji(),e=It(),t=Ot(),i=w7(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return zp=function(o){var a=o.keys;return o===n||t(n,o)&&a===n.keys||e(s,r(o))?i:a},zp}var Hp,BC;function S7(){return BC||(BC=1,Hp=E7()),Hp}var O7=S7(),ns=$e(O7),LC={},Wp,jC;function I7(){if(jC)return Wp;jC=1;var r=Hs(),e=Math.floor,t=function(i,n){var s=i.length;if(s<8)for(var o=1,a,u;o0;)i[u]=i[--u];u!==o++&&(i[u]=a)}else for(var l=e(s/2),c=t(r(i,0,l),n),d=t(r(i,l),n),h=c.length,f=d.length,p=0,v=0;p3)){if(d)return!0;if(f)return f<603;var T="",b,w,R,P;for(b=65;b<76;b++){switch(w=String.fromCharCode(b),b){case 66:case 69:case 70:case 72:R=3;break;case 68:case 71:R=4;break;default:R=2}for(P=0;P<47;P++)p.push({k:w+P,v:R})}for(p.sort(function(S,$){return $.v-S.v}),P=0;Po(w)?1:-1}};return r({target:"Array",proto:!0,forced:I},{sort:function(b){b!==void 0&&t(b);var w=i(this);if(y)return b===void 0?v(w):v(w,b);var R=[],P=n(w),S,$;for($=0;$"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");av=crypto.getRandomValues.bind(crypto)}return av(Y7)}const J7=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var ox={randomUUID:J7};function Q7(r,e,t){var n;r=r||{};const i=r.random??((n=r.rng)==null?void 0:n.call(r))??X7();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,G7(i)}function Z7(r,e,t){return ox.randomUUID&&!r?ox.randomUUID():Q7(r)}function ax(r){return typeof r=="string"||typeof r=="number"}class p0{constructor(e){Fi(this,"_queue",[]),Fi(this,"_timeout",null),Fi(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}setOptions(e){e&&typeof e.delay<"u"&&(this.delay=e.delay),e&&typeof e.max<"u"&&(this.max=e.max),this._flushIfNeeded()}static extend(e,t){const i=new p0(t);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=()=>{i.flush()};const n=[{name:"flush",original:void 0}];if(t&&t.replace)for(let s=0;sthis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=N8(()=>{this.flush()},this.delay))}flush(){var e,t;Tn(e=p3(t=this._queue).call(t,0)).call(e,i=>{i.fn.apply(i.context||i.fn,i.args||[])})}}class Tu{constructor(){Fi(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Fi(this,"subscribe",Tu.prototype.on),Fi(this,"unsubscribe",Tu.prototype.off)}_trigger(e,t,i){var n;if(e==="*")throw new Error("Cannot trigger event *");Tn(n=[...this._subscribers[e],...this._subscribers["*"]]).call(n,s=>{s(e,t,i??null)})}on(e,t){typeof t=="function"&&this._subscribers[e].push(t)}off(e,t){var i;this._subscribers[e]=cs(i=this._subscribers[e]).call(i,n=>n!==t)}}var ux={},lx={},cx;function eY(){if(cx)return lx;cx=1;var r=G3(),e=Y3();return r("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),lx}var dx;function tY(){return dx||(dx=1,eY()),ux}var hx={},uv,fx;function jn(){if(fx)return uv;fx=1;var r=ks(),e=TypeError;return uv=function(t){if(typeof t=="object"&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new e(r(t)+" is not a set")},uv}var lv,px;function zn(){if(px)return lv;px=1;var r=ir(),e=X3(),t=r("Set"),i=t.prototype;return lv={Set:t,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:i},lv}var cv,vx;function Hn(){if(vx)return cv;vx=1;var r=Qt();return cv=function(e,t,i){for(var n=i?e:e.iterator,s=e.next,o,a;!(o=r(s,n)).done;)if(a=t(o.value),a!==void 0)return a},cv}var dv,gx;function Oa(){if(gx)return dv;gx=1;var r=Hn();return dv=function(e,t,i){return i?r(e.keys(),t,!0):e.forEach(t)},dv}var hv,mx;function v0(){if(mx)return hv;mx=1;var r=zn(),e=Oa(),t=r.Set,i=r.add;return hv=function(n){var s=new t;return e(n,function(o){i(s,o)}),s},hv}var fv,yx;function Ia(){return yx||(yx=1,fv=function(r){return r.size}),fv}var pv,bx;function rY(){return bx||(bx=1,pv=function(r){return{iterator:r,next:r.next,done:!1}}),pv}var vv,_x;function Wn(){if(_x)return vv;_x=1;var r=gi(),e=mi(),t=Qt(),i=zs(),n=rY(),s="Invalid size",o=RangeError,a=TypeError,u=Math.max,l=function(c,d){this.set=c,this.size=u(d,0),this.has=r(c.has),this.keys=r(c.keys)};return l.prototype={getIterator:function(){return n(e(t(this.keys,this.set)))},includes:function(c){return t(this.has,this.set,c)}},vv=function(c){e(c);var d=+c.size;if(d!==d)throw new a(s);var h=i(d);if(h<0)throw new o(s);return new l(c,h)},vv}var gv,wx;function iY(){if(wx)return gv;wx=1;var r=jn(),e=zn(),t=v0(),i=Ia(),n=Wn(),s=Oa(),o=Hn(),a=e.has,u=e.remove;return gv=function(c){var d=r(this),h=n(c),f=t(d);return i(d)<=h.size?s(d,function(p){h.includes(p)&&u(f,p)}):o(h.getIterator(),function(p){a(f,p)&&u(f,p)}),f},gv}var mv,Ex;function Un(){return Ex||(Ex=1,mv=function(){return!1}),mv}var Sx;function nY(){if(Sx)return hx;Sx=1;var r=be(),e=iY(),t=Le(),i=Un(),n=!i("difference",function(o){return o.size===0}),s=n||t(function(){var o={size:1,has:function(){return!0},keys:function(){var u=0;return{next:function(){var l=u++>1;return a.has(1)&&a.clear(),{done:l,value:2}}}}},a=new Set([1,2,3,4]);return a.difference(o).size!==3});return r({target:"Set",proto:!0,real:!0,forced:s},{difference:e}),hx}var Ox={},yv,Ix;function sY(){if(Ix)return yv;Ix=1;var r=jn(),e=zn(),t=Ia(),i=Wn(),n=Oa(),s=Hn(),o=e.Set,a=e.add,u=e.has;return yv=function(c){var d=r(this),h=i(c),f=new o;return t(d)>h.size?s(h.getIterator(),function(p){u(d,p)&&a(f,p)}):n(d,function(p){h.includes(p)&&a(f,p)}),f},yv}var Tx;function oY(){if(Tx)return Ox;Tx=1;var r=be(),e=Le(),t=sY(),i=Un(),n=!i("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return r({target:"Set",proto:!0,real:!0,forced:n},{intersection:t}),Ox}var $x={},bv,Px;function aY(){if(Px)return bv;Px=1;var r=jn(),e=zn().has,t=Ia(),i=Wn(),n=Oa(),s=Hn(),o=h0();return bv=function(u){var l=r(this),c=i(u);if(t(l)<=c.size)return n(l,function(h){if(c.includes(h))return!1},!0)!==!1;var d=c.getIterator();return s(d,function(h){if(e(l,h))return o(d,"normal",!1)})!==!1},bv}var Rx;function uY(){if(Rx)return $x;Rx=1;var r=be(),e=aY(),t=Un(),i=!t("isDisjointFrom",function(n){return!n});return r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:e}),$x}var Cx={},_v,xx;function lY(){if(xx)return _v;xx=1;var r=jn(),e=Ia(),t=Oa(),i=Wn();return _v=function(s){var o=r(this),a=i(s);return e(o)>a.size?!1:t(o,function(u){if(!a.includes(u))return!1},!0)!==!1},_v}var qx;function cY(){if(qx)return Cx;qx=1;var r=be(),e=lY(),t=Un(),i=!t("isSubsetOf",function(n){return n});return r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:e}),Cx}var Ax={},wv,Dx;function dY(){if(Dx)return wv;Dx=1;var r=jn(),e=zn().has,t=Ia(),i=Wn(),n=Hn(),s=h0();return wv=function(a){var u=r(this),l=i(a);if(t(u)t[0])}toItemArray(){var e;return wr(e=[...this._pairs]).call(e,t=>t[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){const e=b8(null);for(const[t,i]of this._pairs)e[t]=i;return e}toMap(){return new J3(this._pairs)}toIdSet(){return new Pv(this.toIdArray())}toItemSet(){return new Pv(this.toItemArray())}cache(){return new pn([...this._pairs])}distinct(e){const t=new Pv;for(const[i,n]of this._pairs)t.add(e(n,i));return t}filter(e){const t=this._pairs;return new pn({*[fs](){for(const[i,n]of t)e(n,i)&&(yield[i,n])}})}forEach(e){for(const[t,i]of this._pairs)e(i,t)}map(e){const t=this._pairs;return new pn({*[fs](){for(const[i,n]of t)yield[i,e(n,i)]}})}max(e){const t=Mv(this._pairs);let i=t.next();if(i.done)return null;let n=i.value[1],s=e(i.value[1],i.value[0]);for(;!(i=t.next()).done;){const[o,a]=i.value,u=e(a,o);u>s&&(s=u,n=a)}return n}min(e){const t=Mv(this._pairs);let i=t.next();if(i.done)return null;let n=i.value[1],s=e(i.value[1],i.value[0]);for(;!(i=t.next()).done;){const[o,a]=i.value,u=e(a,o);u{var t;return Mv(dw(t=[...this._pairs]).call(t,(i,n)=>{let[s,o]=i,[a,u]=n;return e(o,u,s,a)}))}})}}function Qx(r,e){var t=n0(r);if(jR){var i=jR(r);e&&(i=cs(i).call(i,function(n){return H3(r,n).enumerable})),t.push.apply(t,i)}return t}function Zx(r){for(var e=1;eo[this._idProp]);if(b7(s).call(s,o=>this._data.has(o)))throw new Error("A duplicate id was found in the parameter array.");for(let o=0,a=e.length;o{const c=l[a];if(c!=null&&this._data.has(c)){const d=l,h=a8({},this._data.get(c)),f=this._updateItem(d);n.push(f),o.push(d),s.push(h)}else{const d=this._addItem(l);i.push(d)}};if(Dr(e))for(let l=0,c=e.length;l{const o=this._data.get(s[this._idProp]);if(o==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:o,update:s}})).call(i,s=>{let{oldData:o,update:a}=s;const u=o[this._idProp],l=T9(o,a);return this._data.set(u,l),{id:u,oldData:o,updatedData:l}});if(n.length){const s={items:wr(n).call(n,o=>o.id),oldData:wr(n).call(n,o=>o.oldData),data:wr(n).call(n,o=>o.updatedData)};return this._trigger("update",s,t),s.items}else return[]}get(e,t){let i,n,s;ax(e)?(i=e,s=t):Dr(e)?(n=e,s=t):s=e;const o=s&&s.returnType==="Object"?"Object":"Array",a=s&&cs(s),u=[];let l,c,d;if(i!=null)l=this._data.get(i),l&&a&&!a(l)&&(l=void 0);else if(n!=null)for(let f=0,p=n.length;f(n[s]=e[s],n),{})}_sort(e,t){if(typeof t=="string"){const i=t;dw(e).call(e,(n,s)=>{const o=n[i],a=s[i];return o>a?1:oi)&&(t=s,i=o)}return t||null}min(e){let t=null,i=null;for(const s of ex(n=this._data).call(n)){var n;const o=s[e];typeof o=="number"&&(i==null||o"u"&&r!==void 0?function(e){return typeof e=="function"||e===r}:function(e){return typeof e=="function"},zv}var Hv={},Wv,cq;function lt(){if(cq)return Wv;cq=1;var r=Pe();return Wv=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Wv}var Uv,dq;function er(){if(dq)return Uv;dq=1;var r=Ta(),e=Function.prototype.call;return Uv=r?e.bind(e):function(){return e.apply(e,arguments)},Uv}var Vv={},hq;function hl(){if(hq)return Vv;hq=1;var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,t=e&&!r.call({1:2},1);return Vv.f=t?function(n){var s=e(this,n);return!!s&&s.enumerable}:r,Vv}var Kv,fq;function $a(){return fq||(fq=1,Kv=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}),Kv}var Gv,pq;function fl(){if(pq)return Gv;pq=1;var r=xe(),e=Pe(),t=Wr(),i=Object,n=r("".split);return Gv=e(function(){return!i("z").propertyIsEnumerable(0)})?function(s){return t(s)==="String"?n(s,""):i(s)}:i,Gv}var Yv,vq;function Ks(){return vq||(vq=1,Yv=function(r){return r==null}),Yv}var Xv,gq;function yi(){if(gq)return Xv;gq=1;var r=Ks(),e=TypeError;return Xv=function(t){if(r(t))throw new e("Can't call method on "+t);return t},Xv}var Jv,mq;function Cr(){if(mq)return Jv;mq=1;var r=fl(),e=yi();return Jv=function(t){return r(e(t))},Jv}var Qv,yq;function Pt(){if(yq)return Qv;yq=1;var r=$t();return Qv=function(e){return typeof e=="object"?e!==null:r(e)},Qv}var Zv,bq;function je(){return bq||(bq=1,Zv={}),Zv}var eg,_q;function nr(){if(_q)return eg;_q=1;var r=je(),e=Ze(),t=$t(),i=function(n){return t(n)?n:void 0};return eg=function(n,s){return arguments.length<2?i(r[n])||i(e[n]):r[n]&&r[n][s]||e[n]&&e[n][s]},eg}var tg,wq;function mt(){if(wq)return tg;wq=1;var r=xe();return tg=r({}.isPrototypeOf),tg}var rg,Eq;function Gs(){if(Eq)return rg;Eq=1;var r=Ze(),e=r.navigator,t=e&&e.userAgent;return rg=t?String(t):"",rg}var ig,Sq;function Pa(){if(Sq)return ig;Sq=1;var r=Ze(),e=Gs(),t=r.process,i=r.Deno,n=t&&t.versions||i&&i.version,s=n&&n.v8,o,a;return s&&(o=s.split("."),a=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!a&&e&&(o=e.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=e.match(/Chrome\/(\d+)/),o&&(a=+o[1]))),ig=a,ig}var ng,Oq;function Ys(){if(Oq)return ng;Oq=1;var r=Pa(),e=Pe(),t=Ze(),i=t.String;return ng=!!Object.getOwnPropertySymbols&&!e(function(){var n=Symbol("symbol detection");return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&r&&r<41}),ng}var sg,Iq;function e5(){if(Iq)return sg;Iq=1;var r=Ys();return sg=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sg}var og,Tq;function Ra(){if(Tq)return og;Tq=1;var r=nr(),e=$t(),t=mt(),i=e5(),n=Object;return og=i?function(s){return typeof s=="symbol"}:function(s){var o=r("Symbol");return e(o)&&t(o.prototype,n(s))},og}var ag,$q;function Xs(){if($q)return ag;$q=1;var r=String;return ag=function(e){try{return r(e)}catch{return"Object"}},ag}var ug,Pq;function bi(){if(Pq)return ug;Pq=1;var r=$t(),e=Xs(),t=TypeError;return ug=function(i){if(r(i))return i;throw new t(e(i)+" is not a function")},ug}var lg,Rq;function m0(){if(Rq)return lg;Rq=1;var r=bi(),e=Ks();return lg=function(t,i){var n=t[i];return e(n)?void 0:r(n)},lg}var cg,Cq;function CY(){if(Cq)return cg;Cq=1;var r=er(),e=$t(),t=Pt(),i=TypeError;return cg=function(n,s){var o,a;if(s==="string"&&e(o=n.toString)&&!t(a=r(o,n))||e(o=n.valueOf)&&!t(a=r(o,n))||s!=="string"&&e(o=n.toString)&&!t(a=r(o,n)))return a;throw new i("Can't convert object to primitive value")},cg}var dg={exports:{}},hg,xq;function Js(){return xq||(xq=1,hg=!0),hg}var fg,qq;function xY(){if(qq)return fg;qq=1;var r=Ze(),e=Object.defineProperty;return fg=function(t,i){try{e(r,t,{value:i,configurable:!0,writable:!0})}catch{r[t]=i}return i},fg}var Aq;function y0(){if(Aq)return dg.exports;Aq=1;var r=Js(),e=Ze(),t=xY(),i="__core-js_shared__",n=dg.exports=e[i]||t(i,{});return(n.versions||(n.versions=[])).push({version:"3.44.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),dg.exports}var pg,Dq;function Qs(){if(Dq)return pg;Dq=1;var r=y0();return pg=function(e,t){return r[e]||(r[e]=t||{})},pg}var vg,Mq;function sr(){if(Mq)return vg;Mq=1;var r=yi(),e=Object;return vg=function(t){return e(r(t))},vg}var gg,Nq;function qt(){if(Nq)return gg;Nq=1;var r=xe(),e=sr(),t=r({}.hasOwnProperty);return gg=Object.hasOwn||function(n,s){return t(e(n),s)},gg}var mg,Fq;function pl(){if(Fq)return mg;Fq=1;var r=xe(),e=0,t=Math.random(),i=r(1.1.toString);return mg=function(n){return"Symbol("+(n===void 0?"":n)+")_"+i(++e+t,36)},mg}var yg,kq;function yt(){if(kq)return yg;kq=1;var r=Ze(),e=Qs(),t=qt(),i=pl(),n=Ys(),s=e5(),o=r.Symbol,a=e("wks"),u=s?o.for||o:o&&o.withoutSetter||i;return yg=function(l){return t(a,l)||(a[l]=n&&t(o,l)?o[l]:u("Symbol."+l)),a[l]},yg}var bg,Bq;function t5(){if(Bq)return bg;Bq=1;var r=er(),e=Pt(),t=Ra(),i=m0(),n=CY(),s=yt(),o=TypeError,a=s("toPrimitive");return bg=function(u,l){if(!e(u)||t(u))return u;var c=i(u,a),d;if(c){if(l===void 0&&(l="default"),d=r(c,u,l),!e(d)||t(d))return d;throw new o("Can't convert object to primitive value")}return l===void 0&&(l="number"),n(u,l)},bg}var _g,Lq;function b0(){if(Lq)return _g;Lq=1;var r=t5(),e=Ra();return _g=function(t){var i=r(t,"string");return e(i)?i:i+""},_g}var wg,jq;function r5(){if(jq)return wg;jq=1;var r=Ze(),e=Pt(),t=r.document,i=e(t)&&e(t.createElement);return wg=function(n){return i?t.createElement(n):{}},wg}var Eg,zq;function i5(){if(zq)return Eg;zq=1;var r=lt(),e=Pe(),t=r5();return Eg=!r&&!e(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),Eg}var Hq;function vl(){if(Hq)return Hv;Hq=1;var r=lt(),e=er(),t=hl(),i=$a(),n=Cr(),s=b0(),o=qt(),a=i5(),u=Object.getOwnPropertyDescriptor;return Hv.f=r?u:function(c,d){if(c=n(c),d=s(d),a)try{return u(c,d)}catch{}if(o(c,d))return i(!e(t.f,c,d),c[d])},Hv}var Sg,Wq;function qY(){if(Wq)return Sg;Wq=1;var r=Pe(),e=$t(),t=/#|\.prototype\./,i=function(u,l){var c=s[n(u)];return c===a?!0:c===o?!1:e(l)?r(l):!!l},n=i.normalize=function(u){return String(u).replace(t,".").toLowerCase()},s=i.data={},o=i.NATIVE="N",a=i.POLYFILL="P";return Sg=i,Sg}var Og,Uq;function gl(){if(Uq)return Og;Uq=1;var r=g0(),e=bi(),t=Ta(),i=r(r.bind);return Og=function(n,s){return e(n),s===void 0?n:t?i(n,s):function(){return n.apply(s,arguments)}},Og}var Ig={},Tg,Vq;function n5(){if(Vq)return Tg;Vq=1;var r=lt(),e=Pe();return Tg=r&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Tg}var $g,Kq;function Ur(){if(Kq)return $g;Kq=1;var r=Pt(),e=String,t=TypeError;return $g=function(i){if(r(i))return i;throw new t(e(i)+" is not an object")},$g}var Gq;function mr(){if(Gq)return Ig;Gq=1;var r=lt(),e=i5(),t=n5(),i=Ur(),n=b0(),s=TypeError,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Ig.f=r?t?function(h,f,p){if(i(h),f=n(f),i(p),typeof h=="function"&&f==="prototype"&&"value"in p&&c in p&&!p[c]){var v=a(h,f);v&&v[c]&&(h[f]=p.value,p={configurable:l in p?p[l]:v[l],enumerable:u in p?p[u]:v[u],writable:!1})}return o(h,f,p)}:o:function(h,f,p){if(i(h),f=n(f),i(p),e)try{return o(h,f,p)}catch{}if("get"in p||"set"in p)throw new s("Accessors not supported");return"value"in p&&(h[f]=p.value),h},Ig}var Pg,Yq;function Zs(){if(Yq)return Pg;Yq=1;var r=lt(),e=mr(),t=$a();return Pg=r?function(i,n,s){return e.f(i,n,t(1,s))}:function(i,n,s){return i[n]=s,i},Pg}var Rg,Xq;function de(){if(Xq)return Rg;Xq=1;var r=Ze(),e=dl(),t=g0(),i=$t(),n=vl().f,s=qY(),o=je(),a=gl(),u=Zs(),l=qt(),c=function(d){var h=function(f,p,v){if(this instanceof h){switch(arguments.length){case 0:return new d;case 1:return new d(f);case 2:return new d(f,p)}return new d(f,p,v)}return e(d,this,arguments)};return h.prototype=d.prototype,h};return Rg=function(d,h){var f=d.target,p=d.global,v=d.stat,_=d.proto,m=p?r:v?r[f]:r[f]&&r[f].prototype,g=p?o:o[f]||u(o,f,{})[f],E=g.prototype,y,I,O,T,b,w,R,P,S;for(T in h)y=s(p?T:f+(v?".":"#")+T,d.forced),I=!y&&m&&l(m,T),w=g[T],I&&(d.dontCallGetSet?(S=n(m,T),R=S&&S.value):R=m[T]),b=I&&R?R:h[T],!(!y&&!_&&typeof w==typeof b)&&(d.bind&&I?P=a(b,r):d.wrap&&I?P=c(b):_&&i(b)?P=t(b):P=b,(d.sham||b&&b.sham||w&&w.sham)&&u(P,"sham",!0),u(g,T,P),_&&(O=f+"Prototype",l(o,O)||u(o,O,{}),u(o[O],T,b),d.real&&E&&(y||!E[T])&&u(E,T,b)))},Rg}var Cg,Jq;function AY(){if(Jq)return Cg;Jq=1;var r=Math.ceil,e=Math.floor;return Cg=Math.trunc||function(i){var n=+i;return(n>0?e:r)(n)},Cg}var xg,Qq;function eo(){if(Qq)return xg;Qq=1;var r=AY();return xg=function(e){var t=+e;return t!==t||t===0?0:r(t)},xg}var qg,Zq;function ml(){if(Zq)return qg;Zq=1;var r=eo(),e=Math.max,t=Math.min;return qg=function(i,n){var s=r(i);return s<0?e(s+n,0):t(s,n)},qg}var Ag,eA;function s5(){if(eA)return Ag;eA=1;var r=eo(),e=Math.min;return Ag=function(t){var i=r(t);return i>0?e(i,9007199254740991):0},Ag}var Dg,tA;function _i(){if(tA)return Dg;tA=1;var r=s5();return Dg=function(e){return r(e.length)},Dg}var Mg,rA;function _0(){if(rA)return Mg;rA=1;var r=Cr(),e=ml(),t=_i(),i=function(n){return function(s,o,a){var u=r(s),l=t(u);if(l===0)return!n&&-1;var c=e(a,l),d;if(n&&o!==o){for(;l>c;)if(d=u[c++],d!==d)return!0}else for(;l>c;c++)if((n||c in u)&&u[c]===o)return n||c||0;return!n&&-1}};return Mg={includes:i(!0),indexOf:i(!1)},Mg}var Ng,iA;function Ca(){return iA||(iA=1,Ng={}),Ng}var Fg,nA;function o5(){if(nA)return Fg;nA=1;var r=xe(),e=qt(),t=Cr(),i=_0().indexOf,n=Ca(),s=r([].push);return Fg=function(o,a){var u=t(o),l=0,c=[],d;for(d in u)!e(n,d)&&e(u,d)&&s(c,d);for(;a.length>l;)e(u,d=a[l++])&&(~i(c,d)||s(c,d));return c},Fg}var kg,sA;function w0(){return sA||(sA=1,kg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),kg}var Bg,oA;function xa(){if(oA)return Bg;oA=1;var r=o5(),e=w0();return Bg=Object.keys||function(i){return r(i,e)},Bg}var Lg={},aA;function yl(){return aA||(aA=1,Lg.f=Object.getOwnPropertySymbols),Lg}var jg,uA;function DY(){if(uA)return jg;uA=1;var r=lt(),e=xe(),t=er(),i=Pe(),n=xa(),s=yl(),o=hl(),a=sr(),u=fl(),l=Object.assign,c=Object.defineProperty,d=e([].concat);return jg=!l||i(function(){if(r&&l({b:1},l(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},f={},p=Symbol("assign detection"),v="abcdefghijklmnopqrst";return h[p]=7,v.split("").forEach(function(_){f[_]=_}),l({},h)[p]!==7||n(l({},f)).join("")!==v})?function(f,p){for(var v=a(f),_=arguments.length,m=1,g=s.f,E=o.f;_>m;)for(var y=u(arguments[m++]),I=g?d(n(y),g(y)):n(y),O=I.length,T=0,b;O>T;)b=I[T++],(!r||t(E,y,b))&&(v[b]=y[b]);return v}:l,jg}var lA;function MY(){if(lA)return tq;lA=1;var r=de(),e=DY();return r({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),tq}var zg,cA;function NY(){if(cA)return zg;cA=1,MY();var r=je();return zg=r.Object.assign,zg}var Hg,dA;function FY(){if(dA)return Hg;dA=1;var r=NY();return Hg=r,Hg}var Wg,hA;function kY(){return hA||(hA=1,Wg=FY()),Wg}var BY=kY(),ft=ge(BY),fA={},Ug,pA;function to(){if(pA)return Ug;pA=1;var r=xe();return Ug=r([].slice),Ug}var Vg,vA;function LY(){if(vA)return Vg;vA=1;var r=xe(),e=bi(),t=Pt(),i=qt(),n=to(),s=Ta(),o=Function,a=r([].concat),u=r([].join),l={},c=function(d,h,f){if(!i(l,h)){for(var p=[],v=0;v=.1;)p=+s[d++%o],p>c&&(p=c),f=Math.sqrt(p*p/(1+l*l)),f=a<0?-f:f,e+=f,t+=l*f,h===!0?r.lineTo(e,t):r.moveTo(e,t),c-=p,h=!h}function QY(r,e,t,i){r.beginPath();const n=6,s=Math.PI*2/n;r.moveTo(e+i,t);for(let o=1;o1?t-1:0),n=1;ne)throw r("Maximum allowed index exceeded");return t},em}var tm,$A;function bl(){if($A)return tm;$A=1;var r=lt(),e=mr(),t=$a();return tm=function(i,n,s){r?e.f(i,n,t(0,s)):i[n]=s},tm}var rm,PA;function S0(){if(PA)return rm;PA=1;var r=yt(),e=r("toStringTag"),t={};return t[e]="z",rm=String(t)==="[object z]",rm}var im,RA;function ro(){if(RA)return im;RA=1;var r=S0(),e=$t(),t=Wr(),i=yt(),n=i("toStringTag"),s=Object,o=t(function(){return arguments}())==="Arguments",a=function(u,l){try{return u[l]}catch{}};return im=r?t:function(u){var l,c,d;return u===void 0?"Undefined":u===null?"Null":typeof(c=a(l=s(u),n))=="string"?c:o?t(l):(d=t(l))==="Object"&&e(l.callee)?"Arguments":d},im}var nm,CA;function rX(){if(CA)return nm;CA=1;var r=xe(),e=$t(),t=y0(),i=r(Function.toString);return e(t.inspectSource)||(t.inspectSource=function(n){return i(n)}),nm=t.inspectSource,nm}var sm,xA;function h5(){if(xA)return sm;xA=1;var r=xe(),e=Pe(),t=$t(),i=ro(),n=nr(),s=rX(),o=function(){},a=n("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=r(u.exec),c=!u.test(o),d=function(p){if(!t(p))return!1;try{return a(o,[],p),!0}catch{return!1}},h=function(p){if(!t(p))return!1;switch(i(p)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,s(p))}catch{return!0}};return h.sham=!0,sm=!a||e(function(){var f;return d(d.call)||!d(Object)||!d(function(){f=!0})||f})?h:d,sm}var om,qA;function iX(){if(qA)return om;qA=1;var r=Vn(),e=h5(),t=Pt(),i=yt(),n=i("species"),s=Array;return om=function(o){var a;return r(o)&&(a=o.constructor,e(a)&&(a===s||r(a.prototype))?a=void 0:t(a)&&(a=a[n],a===null&&(a=void 0))),a===void 0?s:a},om}var am,AA;function O0(){if(AA)return am;AA=1;var r=iX();return am=function(e,t){return new(r(e))(t===0?0:t)},am}var um,DA;function qa(){if(DA)return um;DA=1;var r=Pe(),e=yt(),t=Pa(),i=e("species");return um=function(n){return t>=51||!r(function(){var s=[],o=s.constructor={};return o[i]=function(){return{foo:1}},s[n](Boolean).foo!==1})},um}var MA;function f5(){if(MA)return OA;MA=1;var r=de(),e=Pe(),t=Vn(),i=Pt(),n=sr(),s=_i(),o=d5(),a=bl(),u=O0(),l=qa(),c=yt(),d=Pa(),h=c("isConcatSpreadable"),f=d>=51||!e(function(){var _=[];return _[h]=!1,_.concat()[0]!==_}),p=function(_){if(!i(_))return!1;var m=_[h];return m!==void 0?!!m:t(_)},v=!f||!l("concat");return r({target:"Array",proto:!0,arity:1,forced:v},{concat:function(m){var g=n(this),E=u(g,0),y=0,I,O,T,b,w;for(I=-1,T=arguments.length;Ih;)t.f(a,f=c[h++],l[f]);return a},cm}var dm,LA;function nX(){if(LA)return dm;LA=1;var r=nr();return dm=r("document","documentElement"),dm}var hm,jA;function _l(){if(jA)return hm;jA=1;var r=Qs(),e=pl(),t=r("keys");return hm=function(i){return t[i]||(t[i]=e(i))},hm}var fm,zA;function Aa(){if(zA)return fm;zA=1;var r=Ur(),e=I0(),t=w0(),i=Ca(),n=nX(),s=r5(),o=_l(),a=">",u="<",l="prototype",c="script",d=o("IE_PROTO"),h=function(){},f=function(g){return u+c+a+g+u+"/"+c+a},p=function(g){g.write(f("")),g.close();var E=g.parentWindow.Object;return g=null,E},v=function(){var g=s("iframe"),E="java"+c+":",y;return g.style.display="none",n.appendChild(g),g.src=String(E),y=g.contentWindow.document,y.open(),y.write(f("document.F=Object")),y.close(),y.F},_,m=function(){try{_=new ActiveXObject("htmlfile")}catch{}m=typeof document<"u"?document.domain&&_?p(_):v():p(_);for(var g=t.length;g--;)delete m[l][t[g]];return m()};return i[d]=!0,fm=Object.create||function(E,y){var I;return E!==null?(h[l]=r(E),I=new h,h[l]=null,I[d]=E):I=m(),y===void 0?I:e.f(I,y)},fm}var pm={},HA;function wl(){if(HA)return pm;HA=1;var r=o5(),e=w0(),t=e.concat("length","prototype");return pm.f=Object.getOwnPropertyNames||function(n){return r(n,t)},pm}var vm={},WA;function T0(){if(WA)return vm;WA=1;var r=Wr(),e=Cr(),t=wl().f,i=to(),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(o){try{return t(o)}catch{return i(n)}};return vm.f=function(a){return n&&r(a)==="Window"?s(a):t(e(a))},vm}var gm,UA;function Da(){if(UA)return gm;UA=1;var r=Zs();return gm=function(e,t,i,n){return n&&n.enumerable?e[t]=i:r(e,t,i),e},gm}var mm,VA;function $0(){if(VA)return mm;VA=1;var r=mr();return mm=function(e,t,i){return r.f(e,t,i)},mm}var ym={},KA;function El(){if(KA)return ym;KA=1;var r=yt();return ym.f=r,ym}var bm,GA;function tt(){if(GA)return bm;GA=1;var r=je(),e=qt(),t=El(),i=mr().f;return bm=function(n){var s=r.Symbol||(r.Symbol={});e(s,n)||i(s,n,{value:t.f(n)})},bm}var _m,YA;function p5(){if(YA)return _m;YA=1;var r=er(),e=nr(),t=yt(),i=Da();return _m=function(){var n=e("Symbol"),s=n&&n.prototype,o=s&&s.valueOf,a=t("toPrimitive");s&&!s[a]&&i(s,a,function(u){return r(o,this)},{arity:1})},_m}var wm,XA;function sX(){if(XA)return wm;XA=1;var r=S0(),e=ro();return wm=r?{}.toString:function(){return"[object "+e(this)+"]"},wm}var Em,JA;function Kn(){if(JA)return Em;JA=1;var r=S0(),e=mr().f,t=Zs(),i=qt(),n=sX(),s=yt(),o=s("toStringTag");return Em=function(a,u,l,c){var d=l?a:a&&a.prototype;d&&(i(d,o)||e(d,o,{configurable:!0,value:u}),c&&!r&&t(d,"toString",n))},Em}var Sm,QA;function v5(){if(QA)return Sm;QA=1;var r=Ze(),e=$t(),t=r.WeakMap;return Sm=e(t)&&/native code/.test(String(t)),Sm}var Om,ZA;function Gn(){if(ZA)return Om;ZA=1;var r=v5(),e=Ze(),t=Pt(),i=Zs(),n=qt(),s=y0(),o=_l(),a=Ca(),u="Object already initialized",l=e.TypeError,c=e.WeakMap,d,h,f,p=function(g){return f(g)?h(g):d(g,{})},v=function(g){return function(E){var y;if(!t(E)||(y=h(E)).type!==g)throw new l("Incompatible receiver, "+g+" required");return y}};if(r||s.state){var _=s.state||(s.state=new c);_.get=_.get,_.has=_.has,_.set=_.set,d=function(g,E){if(_.has(g))throw new l(u);return E.facade=g,_.set(g,E),E},h=function(g){return _.get(g)||{}},f=function(g){return _.has(g)}}else{var m=o("state");a[m]=!0,d=function(g,E){if(n(g,m))throw new l(u);return E.facade=g,i(g,m,E),E},h=function(g){return n(g,m)?g[m]:{}},f=function(g){return n(g,m)}}return Om={set:d,get:h,has:f,enforce:p,getterFor:v},Om}var Im,eD;function tn(){if(eD)return Im;eD=1;var r=gl(),e=xe(),t=fl(),i=sr(),n=_i(),s=O0(),o=e([].push),a=function(u){var l=u===1,c=u===2,d=u===3,h=u===4,f=u===6,p=u===7,v=u===5||f;return function(_,m,g,E){for(var y=i(_),I=t(y),O=n(I),T=r(m,g),b=0,w=E||s,R=l?w(_,O):c||p?w(_,0):void 0,P,S;O>b;b++)if((v||b in I)&&(P=I[b],S=T(P,b,y),u))if(l)R[b]=S;else if(S)switch(u){case 3:return!0;case 5:return P;case 6:return b;case 2:o(R,P)}else switch(u){case 4:return!1;case 7:o(R,P)}return f?-1:d||h?h:R}};return Im={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)},Im}var tD;function oX(){if(tD)return FA;tD=1;var r=de(),e=Ze(),t=er(),i=xe(),n=Js(),s=lt(),o=Ys(),a=Pe(),u=qt(),l=mt(),c=Ur(),d=Cr(),h=b0(),f=yr(),p=$a(),v=Aa(),_=xa(),m=wl(),g=T0(),E=yl(),y=vl(),I=mr(),O=I0(),T=hl(),b=Da(),w=$0(),R=Qs(),P=_l(),S=Ca(),$=pl(),q=yt(),F=El(),Z=tt(),z=p5(),te=Kn(),pe=Gn(),we=tn().forEach,re=P("hidden"),me="Symbol",qe="prototype",De=pe.set,ct=pe.getterFor(me),_e=Object[qe],D=e.Symbol,U=D&&D[qe],X=e.RangeError,ne=e.TypeError,Re=e.QObject,C=y.f,x=I.f,A=g.f,k=T.f,B=i([].push),N=R("symbols"),G=R("op-symbols"),J=R("wks"),V=!Re||!Re[qe]||!Re[qe].findChild,L=function(ae,K,ee){var ie=C(_e,K);ie&&delete _e[K],x(ae,K,ee),ie&&ae!==_e&&x(_e,K,ie)},ce=s&&a(function(){return v(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a!==7})?L:x,Q=function(ae,K){var ee=N[ae]=v(U);return De(ee,{type:me,tag:ae,description:K}),s||(ee.description=K),ee},oe=function(K,ee,ie){K===_e&&oe(G,ee,ie),c(K);var se=h(ee);return c(ie),u(N,se)?(ie.enumerable?(u(K,re)&&K[re][se]&&(K[re][se]=!1),ie=v(ie,{enumerable:p(0,!1)})):(u(K,re)||x(K,re,p(1,v(null))),K[re][se]=!0),ce(K,se,ie)):x(K,se,ie)},he=function(K,ee){c(K);var ie=d(ee),se=_(ie).concat(dt(ie));return we(se,function(Ee){(!s||t(Ae,ie,Ee))&&oe(K,Ee,ie[Ee])}),K},Ie=function(K,ee){return ee===void 0?v(K):he(v(K),ee)},Ae=function(K){var ee=h(K),ie=t(k,this,ee);return this===_e&&u(N,ee)&&!u(G,ee)?!1:ie||!u(this,ee)||!u(N,ee)||u(this,re)&&this[re][ee]?ie:!0},Ce=function(K,ee){var ie=d(K),se=h(ee);if(!(ie===_e&&u(N,se)&&!u(G,se))){var Ee=C(ie,se);return Ee&&u(N,se)&&!(u(ie,re)&&ie[re][se])&&(Ee.enumerable=!0),Ee}},bt=function(K){var ee=A(d(K)),ie=[];return we(ee,function(se){!u(N,se)&&!u(S,se)&&B(ie,se)}),ie},dt=function(ae){var K=ae===_e,ee=A(K?G:d(ae)),ie=[];return we(ee,function(se){u(N,se)&&(!K||u(_e,se))&&B(ie,N[se])}),ie};return o||(D=function(){if(l(U,this))throw new ne("Symbol is not a constructor");var K=!arguments.length||arguments[0]===void 0?void 0:f(arguments[0]),ee=$(K),ie=function(se){var Ee=this===void 0?e:this;Ee===_e&&t(ie,G,se),u(Ee,re)&&u(Ee[re],ee)&&(Ee[re][ee]=!1);var wi=p(1,se);try{ce(Ee,ee,wi)}catch(lo){if(!(lo instanceof X))throw lo;L(Ee,ee,wi)}};return s&&V&&ce(_e,ee,{configurable:!0,set:ie}),Q(ee,K)},U=D[qe],b(U,"toString",function(){return ct(this).tag}),b(D,"withoutSetter",function(ae){return Q($(ae),ae)}),T.f=Ae,I.f=oe,O.f=he,y.f=Ce,m.f=g.f=bt,E.f=dt,F.f=function(ae){return Q(q(ae),ae)},s&&(w(U,"description",{configurable:!0,get:function(){return ct(this).description}}),n||b(_e,"propertyIsEnumerable",Ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:D}),we(_(J),function(ae){Z(ae)}),r({target:me,stat:!0,forced:!o},{useSetter:function(){V=!0},useSimple:function(){V=!1}}),r({target:"Object",stat:!0,forced:!o,sham:!s},{create:Ie,defineProperty:oe,defineProperties:he,getOwnPropertyDescriptor:Ce}),r({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:bt}),z(),te(D,me),S[re]=!0,FA}var rD={},Tm,iD;function g5(){if(iD)return Tm;iD=1;var r=Ys();return Tm=r&&!!Symbol.for&&!!Symbol.keyFor,Tm}var nD;function aX(){if(nD)return rD;nD=1;var r=de(),e=nr(),t=qt(),i=yr(),n=Qs(),s=g5(),o=n("string-to-symbol-registry"),a=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{for:function(u){var l=i(u);if(t(o,l))return o[l];var c=e("Symbol")(l);return o[l]=c,a[c]=l,c}}),rD}var sD={},oD;function uX(){if(oD)return sD;oD=1;var r=de(),e=qt(),t=Ra(),i=Xs(),n=Qs(),s=g5(),o=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(u){if(!t(u))throw new TypeError(i(u)+" is not a symbol");if(e(o,u))return o[u]}}),sD}var aD={},$m,uD;function lX(){if(uD)return $m;uD=1;var r=xe(),e=Vn(),t=$t(),i=Wr(),n=yr(),s=r([].push);return $m=function(o){if(t(o))return o;if(e(o)){for(var a=o.length,u=[],l=0;l=p.length)return f.target=null,o(void 0,!0);switch(f.kind){case"keys":return o(v,!1);case"values":return o(p[v],!1)}return o([v,p[v]],!1)},"values");var h=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!a&&u&&h.name!=="values")try{n(h,"name",{value:"values"})}catch{}return zm}var Hm,aM;function CX(){return aM||(aM=1,Hm={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Hm}var uM;function so(){if(uM)return VD;uM=1,no();var r=CX(),e=Ze(),t=Kn(),i=io();for(var n in r)t(e[n],n),i[n]=i.Array;return VD}var Wm,lM;function I5(){if(lM)return Wm;lM=1;var r=SX();return so(),Wm=r,Wm}var Um,cM;function xX(){return cM||(cM=1,Um=I5()),Um}var qX=xX(),AX=ge(qX),dM={},hM;function DX(){if(hM)return dM;hM=1;var r=de(),e=Vn(),t=h5(),i=Pt(),n=ml(),s=_i(),o=Cr(),a=bl(),u=yt(),l=qa(),c=to(),d=l("slice"),h=u("species"),f=Array,p=Math.max;return r({target:"Array",proto:!0,forced:!d},{slice:function(_,m){var g=o(this),E=s(g),y=n(_,E),I=n(m===void 0?E:m,E),O,T,b;if(e(g)&&(O=g.constructor,t(O)&&(O===f||e(O.prototype))?O=void 0:i(O)&&(O=O[h],O===null&&(O=void 0)),O===f||O===void 0))return c(g,y,I);for(T=new(O===void 0?f:O)(p(I-y,0)),b=0;y1?arguments[1]:void 0)}}),SM}var ey,IM;function KX(){if(IM)return ey;IM=1,VX();var r=At();return ey=r("Array","map"),ey}var ty,TM;function GX(){if(TM)return ty;TM=1;var r=mt(),e=KX(),t=Array.prototype;return ty=function(i){var n=i.map;return i===t||r(t,i)&&n===t.map?e:n},ty}var ry,$M;function YX(){if($M)return ry;$M=1;var r=GX();return ry=r,ry}var iy,PM;function XX(){return PM||(PM=1,iy=YX()),iy}var JX=XX(),xs=ge(JX),RM={},CM;function QX(){if(CM)return RM;CM=1;var r=de(),e=sr(),t=xa(),i=Pe(),n=i(function(){t(1)});return r({target:"Object",stat:!0,forced:n},{keys:function(o){return t(e(o))}}),RM}var ny,xM;function ZX(){if(xM)return ny;xM=1,QX();var r=je();return ny=r.Object.keys,ny}var sy,qM;function eJ(){if(qM)return sy;qM=1;var r=ZX();return sy=r,sy}var oy,AM;function tJ(){return AM||(AM=1,oy=eJ()),oy}var rJ=tJ(),nt=ge(rJ),DM={},MM;function iJ(){if(MM)return DM;MM=1;var r=de(),e=xe(),t=Date,i=e(t.prototype.getTime);return r({target:"Date",stat:!0},{now:function(){return i(new t)}}),DM}var ay,NM;function nJ(){if(NM)return ay;NM=1,iJ();var r=je();return ay=r.Date.now,ay}var uy,FM;function sJ(){if(FM)return uy;FM=1;var r=nJ();return uy=r,uy}var ly,kM;function oJ(){return kM||(kM=1,ly=sJ()),ly}var aJ=oJ(),Pu=ge(aJ),BM={},cy,LM;function oo(){if(LM)return cy;LM=1;var r=Pe();return cy=function(e,t){var i=[][e];return!!i&&r(function(){i.call(null,t||function(){return 1},1)})},cy}var dy,jM;function uJ(){if(jM)return dy;jM=1;var r=tn().forEach,e=oo(),t=e("forEach");return dy=t?[].forEach:function(n){return r(this,n,arguments.length>1?arguments[1]:void 0)},dy}var zM;function lJ(){if(zM)return BM;zM=1;var r=de(),e=uJ();return r({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e}),BM}var hy,HM;function cJ(){if(HM)return hy;HM=1,lJ();var r=At();return hy=r("Array","forEach"),hy}var fy,WM;function dJ(){if(WM)return fy;WM=1;var r=cJ();return fy=r,fy}var py,UM;function hJ(){if(UM)return py;UM=1;var r=ro(),e=qt(),t=mt(),i=dJ(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return py=function(o){var a=o.forEach;return o===n||t(n,o)&&a===n.forEach||e(s,r(o))?i:a},py}var vy,VM;function fJ(){return VM||(VM=1,vy=hJ()),vy}var pJ=fJ(),He=ge(pJ),KM={},GM;function vJ(){if(GM)return KM;GM=1;var r=de(),e=xe(),t=Vn(),i=e([].reverse),n=[1,2];return r({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return t(this)&&(this.length=this.length),i(this)}}),KM}var gy,YM;function gJ(){if(YM)return gy;YM=1,vJ();var r=At();return gy=r("Array","reverse"),gy}var my,XM;function mJ(){if(XM)return my;XM=1;var r=mt(),e=gJ(),t=Array.prototype;return my=function(i){var n=i.reverse;return i===t||r(t,i)&&n===t.reverse?e:n},my}var yy,JM;function yJ(){if(JM)return yy;JM=1;var r=mJ();return yy=r,yy}var by,QM;function bJ(){return QM||(QM=1,by=yJ()),by}var _J=bJ(),wn=ge(_J),ZM={},_y,eN;function wJ(){if(eN)return _y;eN=1;var r=lt(),e=Vn(),t=TypeError,i=Object.getOwnPropertyDescriptor,n=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}();return _y=n?function(s,o){if(e(s)&&!i(s,"length").writable)throw new t("Cannot set read only .length");return s.length=o}:function(s,o){return s.length=o},_y}var wy,tN;function T5(){if(tN)return wy;tN=1;var r=Xs(),e=TypeError;return wy=function(t,i){if(!delete t[i])throw new e("Cannot delete property "+r(i)+" of "+r(t))},wy}var rN;function EJ(){if(rN)return ZM;rN=1;var r=de(),e=sr(),t=ml(),i=eo(),n=_i(),s=wJ(),o=d5(),a=O0(),u=bl(),l=T5(),c=qa(),d=c("splice"),h=Math.max,f=Math.min;return r({target:"Array",proto:!0,forced:!d},{splice:function(v,_){var m=e(this),g=n(m),E=t(v,g),y=arguments.length,I,O,T,b,w,R;for(y===0?I=O=0:y===1?(I=0,O=g-E):(I=y-2,O=f(h(i(_),0),g-E)),o(g+I-O),T=a(m,O),b=0;bg-O+I;b--)l(m,b-1)}else if(I>O)for(b=g-O;b>E;b--)w=b+O-1,R=b+I-1,w in m?m[R]=m[w]:l(m,R);for(b=0;b1?arguments[1]:void 0)}}),i("includes"),aN}var Ty,lN;function RJ(){if(lN)return Ty;lN=1,PJ();var r=At();return Ty=r("Array","includes"),Ty}var cN={},$y,dN;function CJ(){if(dN)return $y;dN=1;var r=Pt(),e=Wr(),t=yt(),i=t("match");return $y=function(n){var s;return r(n)&&((s=n[i])!==void 0?!!s:e(n)==="RegExp")},$y}var Py,hN;function xJ(){if(hN)return Py;hN=1;var r=CJ(),e=TypeError;return Py=function(t){if(r(t))throw new e("The method doesn't accept regular expressions");return t},Py}var Ry,fN;function qJ(){if(fN)return Ry;fN=1;var r=yt(),e=r("match");return Ry=function(t){var i=/./;try{"/./"[t](i)}catch{try{return i[e]=!1,"/./"[t](i)}catch{}}return!1},Ry}var pN;function AJ(){if(pN)return cN;pN=1;var r=de(),e=xe(),t=xJ(),i=yi(),n=yr(),s=qJ(),o=e("".indexOf);return r({target:"String",proto:!0,forced:!s("includes")},{includes:function(u){return!!~o(n(i(this)),n(t(u)),arguments.length>1?arguments[1]:void 0)}}),cN}var Cy,vN;function DJ(){if(vN)return Cy;vN=1,AJ();var r=At();return Cy=r("String","includes"),Cy}var xy,gN;function MJ(){if(gN)return xy;gN=1;var r=mt(),e=RJ(),t=DJ(),i=Array.prototype,n=String.prototype;return xy=function(s){var o=s.includes;return s===i||r(i,s)&&o===i.includes?e:typeof s=="string"||s===n||r(n,s)&&o===n.includes?t:o},xy}var qy,mN;function NJ(){if(mN)return qy;mN=1;var r=MJ();return qy=r,qy}var Ay,yN;function FJ(){return yN||(yN=1,Ay=NJ()),Ay}var kJ=FJ(),Bi=ge(kJ),bN={},_N;function BJ(){if(_N)return bN;_N=1;var r=de(),e=Pe(),t=sr(),i=Sl(),n=S5(),s=e(function(){i(1)});return r({target:"Object",stat:!0,forced:s,sham:!n},{getPrototypeOf:function(a){return i(t(a))}}),bN}var Dy,wN;function LJ(){if(wN)return Dy;wN=1,BJ();var r=je();return Dy=r.Object.getPrototypeOf,Dy}var My,EN;function jJ(){if(EN)return My;EN=1;var r=LJ();return My=r,My}var Ny,SN;function zJ(){return SN||(SN=1,Ny=jJ()),Ny}var HJ=zJ(),ON=ge(HJ),Fy,IN;function WJ(){if(IN)return Fy;IN=1,f5();var r=At();return Fy=r("Array","concat"),Fy}var ky,TN;function UJ(){if(TN)return ky;TN=1;var r=mt(),e=WJ(),t=Array.prototype;return ky=function(i){var n=i.concat;return i===t||r(t,i)&&n===t.concat?e:n},ky}var By,$N;function VJ(){if($N)return By;$N=1;var r=UJ();return By=r,By}var Ly,PN;function KJ(){return PN||(PN=1,Ly=VJ()),Ly}var GJ=KJ(),YJ=ge(GJ),RN={},CN;function XJ(){if(CN)return RN;CN=1;var r=de(),e=tn().filter,t=qa(),i=t("filter");return r({target:"Array",proto:!0,forced:!i},{filter:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),RN}var jy,xN;function JJ(){if(xN)return jy;xN=1,XJ();var r=At();return jy=r("Array","filter"),jy}var zy,qN;function QJ(){if(qN)return zy;qN=1;var r=mt(),e=JJ(),t=Array.prototype;return zy=function(i){var n=i.filter;return i===t||r(t,i)&&n===t.filter?e:n},zy}var Hy,AN;function ZJ(){if(AN)return Hy;AN=1;var r=QJ();return Hy=r,Hy}var Wy,DN;function eQ(){return DN||(DN=1,Wy=ZJ()),Wy}var tQ=eQ(),Yt=ge(tQ),MN={},Uy,NN;function rQ(){if(NN)return Uy;NN=1;var r=lt(),e=Pe(),t=xe(),i=Sl(),n=xa(),s=Cr(),o=hl().f,a=t(o),u=t([].push),l=r&&e(function(){var d=Object.create(null);return d[2]=2,!a(d,2)}),c=function(d){return function(h){for(var f=s(h),p=n(f),v=l&&i(f)===null,_=p.length,m=0,g=[],E;_>m;)E=p[m++],(!r||(v?E in f:a(f,E)))&&u(g,d?[E,f[E]]:f[E]);return g}};return Uy={entries:c(!0),values:c(!1)},Uy}var FN;function iQ(){if(FN)return MN;FN=1;var r=de(),e=rQ().values;return r({target:"Object",stat:!0},{values:function(i){return e(i)}}),MN}var Vy,kN;function nQ(){if(kN)return Vy;kN=1,iQ();var r=je();return Vy=r.Object.values,Vy}var Ky,BN;function sQ(){if(BN)return Ky;BN=1;var r=nQ();return Ky=r,Ky}var Gy,LN;function oQ(){return LN||(LN=1,Gy=sQ()),Gy}var aQ=oQ(),uQ=ge(aQ),jN={},Yy,zN;function x0(){return zN||(zN=1,Yy=` -\v\f\r                 \u2028\u2029\uFEFF`),Yy}var Xy,HN;function $5(){if(HN)return Xy;HN=1;var r=xe(),e=yi(),t=yr(),i=x0(),n=r("".replace),s=RegExp("^["+i+"]+"),o=RegExp("(^|[^"+i+"])["+i+"]+$"),a=function(u){return function(l){var c=t(e(l));return u&1&&(c=n(c,s,"")),u&2&&(c=n(c,o,"$1")),c}};return Xy={start:a(1),end:a(2),trim:a(3)},Xy}var Jy,WN;function lQ(){if(WN)return Jy;WN=1;var r=Ze(),e=Pe(),t=xe(),i=yr(),n=$5().trim,s=x0(),o=r.parseInt,a=r.Symbol,u=a&&a.iterator,l=/^[+-]?0x/i,c=t(l.exec),d=o(s+"08")!==8||o(s+"0x16")!==22||u&&!e(function(){o(Object(u))});return Jy=d?function(f,p){var v=n(i(f));return o(v,p>>>0||(c(l,v)?16:10))}:o,Jy}var UN;function cQ(){if(UN)return jN;UN=1;var r=de(),e=lQ();return r({global:!0,forced:parseInt!==e},{parseInt:e}),jN}var Qy,VN;function dQ(){if(VN)return Qy;VN=1,cQ();var r=je();return Qy=r.parseInt,Qy}var Zy,KN;function hQ(){if(KN)return Zy;KN=1;var r=dQ();return Zy=r,Zy}var eb,GN;function fQ(){return GN||(GN=1,eb=hQ()),eb}var pQ=fQ(),Er=ge(pQ),YN={},XN;function vQ(){if(XN)return YN;XN=1;var r=de(),e=g0(),t=_0().indexOf,i=oo(),n=e([].indexOf),s=!!n&&1/n([1],1,-0)<0,o=s||!i("indexOf");return r({target:"Array",proto:!0,forced:o},{indexOf:function(u){var l=arguments.length>1?arguments[1]:void 0;return s?n(this,u,l)||0:t(this,u,l)}}),YN}var tb,JN;function gQ(){if(JN)return tb;JN=1,vQ();var r=At();return tb=r("Array","indexOf"),tb}var rb,QN;function mQ(){if(QN)return rb;QN=1;var r=mt(),e=gQ(),t=Array.prototype;return rb=function(i){var n=i.indexOf;return i===t||r(t,i)&&n===t.indexOf?e:n},rb}var ib,ZN;function yQ(){if(ZN)return ib;ZN=1;var r=mQ();return ib=r,ib}var nb,eF;function bQ(){return eF||(eF=1,nb=yQ()),nb}var _Q=bQ(),Be=ge(_Q),tF={},rF;function wQ(){if(rF)return tF;rF=1;var r=de(),e=lt(),t=Aa();return r({target:"Object",stat:!0,sham:!e},{create:t}),tF}var sb,iF;function EQ(){if(iF)return sb;iF=1,wQ();var r=je(),e=r.Object;return sb=function(i,n){return e.create(i,n)},sb}var ob,nF;function SQ(){if(nF)return ob;nF=1;var r=EQ();return ob=r,ob}var ab,sF;function OQ(){return sF||(sF=1,ab=SQ()),ab}var IQ=OQ(),En=ge(IQ),oF={},ub,aF;function TQ(){if(aF)return ub;aF=1;var r=eo(),e=yr(),t=yi(),i=RangeError;return ub=function(s){var o=e(t(this)),a="",u=r(s);if(u<0||u===1/0)throw new i("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(o+=o))u&1&&(a+=o);return a},ub}var lb,uF;function $Q(){if(uF)return lb;uF=1;var r=xe(),e=s5(),t=yr(),i=TQ(),n=yi(),s=r(i),o=r("".slice),a=Math.ceil,u=function(l){return function(c,d,h){var f=t(n(c)),p=e(d),v=f.length,_=h===void 0?" ":t(h),m,g;return p<=v||_===""?f:(m=p-v,g=s(_,a(m/_.length)),g.length>m&&(g=o(g,0,m)),l?f+g:g+f)}};return lb={start:u(!1),end:u(!0)},lb}var cb,lF;function PQ(){if(lF)return cb;lF=1;var r=xe(),e=Pe(),t=$Q().start,i=RangeError,n=isFinite,s=Math.abs,o=Date.prototype,a=o.toISOString,u=r(o.getTime),l=r(o.getUTCDate),c=r(o.getUTCFullYear),d=r(o.getUTCHours),h=r(o.getUTCMilliseconds),f=r(o.getUTCMinutes),p=r(o.getUTCMonth),v=r(o.getUTCSeconds);return cb=e(function(){return a.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!e(function(){a.call(new Date(NaN))})?function(){if(!n(u(this)))throw new i("Invalid time value");var m=this,g=c(m),E=h(m),y=g<0?"-":g>9999?"+":"";return y+t(s(g),y?6:4,0)+"-"+t(p(m)+1,2,0)+"-"+t(l(m),2,0)+"T"+t(d(m),2,0)+":"+t(f(m),2,0)+":"+t(v(m),2,0)+"."+t(E,3,0)+"Z"}:a,cb}var cF;function RQ(){if(cF)return oF;cF=1;var r=de(),e=er(),t=sr(),i=t5(),n=PQ(),s=Wr(),o=Pe(),a=o(function(){return new Date(NaN).toJSON()!==null||e(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});return r({target:"Date",proto:!0,forced:a},{toJSON:function(l){var c=t(this),d=i(c,"number");return typeof d=="number"&&!isFinite(d)?null:!("toISOString"in c)&&s(c)==="Date"?e(n,c):c.toISOString()}}),oF}var db,dF;function CQ(){if(dF)return db;dF=1,RQ(),m5();var r=je(),e=dl();return r.JSON||(r.JSON={stringify:JSON.stringify}),db=function(i,n,s){return e(r.JSON.stringify,null,arguments)},db}var hb,hF;function xQ(){if(hF)return hb;hF=1;var r=CQ();return hb=r,hb}var fb,fF;function qQ(){return fF||(fF=1,fb=xQ()),fb}var AQ=qQ(),Ma=ge(AQ),pF={},vF={},pb,gF;function P5(){if(gF)return pb;gF=1;var r=Ze(),e=Gs(),t=Wr(),i=function(n){return e.slice(0,n.length)===n};return pb=function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":t(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"}(),pb}var vb,mF;function DQ(){if(mF)return vb;mF=1;var r=TypeError;return vb=function(e,t){if(ed,v=t(h)?h:a(h),_=p?s(arguments,d):[],m=p?function(){e(v,this,_)}:v;return c?l(m,f):l(m)}:l},gb}var bF;function MQ(){if(bF)return vF;bF=1;var r=de(),e=Ze(),t=R5(),i=t(e.setInterval,!0);return r({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i}),vF}var _F={},wF;function NQ(){if(wF)return _F;wF=1;var r=de(),e=Ze(),t=R5(),i=t(e.setTimeout,!0);return r({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i}),_F}var EF;function C5(){return EF||(EF=1,MQ(),NQ()),pF}var mb,SF;function FQ(){if(SF)return mb;SF=1,C5();var r=je();return mb=r.setTimeout,mb}var yb,OF;function kQ(){return OF||(OF=1,yb=FQ()),yb}var BQ=kQ(),ai=ge(BQ),IF={},bb,TF;function LQ(){if(TF)return bb;TF=1;var r=sr(),e=ml(),t=_i();return bb=function(n){for(var s=r(this),o=t(s),a=arguments.length,u=e(a>1?arguments[1]:void 0,o),l=a>2?arguments[2]:void 0,c=l===void 0?o:e(l,o);c>u;)s[u++]=n;return s},bb}var $F;function jQ(){if($F)return IF;$F=1;var r=de(),e=LQ(),t=P0();return r({target:"Array",proto:!0},{fill:e}),t("fill"),IF}var _b,PF;function zQ(){if(PF)return _b;PF=1,jQ();var r=At();return _b=r("Array","fill"),_b}var wb,RF;function HQ(){if(RF)return wb;RF=1;var r=mt(),e=zQ(),t=Array.prototype;return wb=function(i){var n=i.fill;return i===t||r(t,i)&&n===t.fill?e:n},wb}var Eb,CF;function WQ(){if(CF)return Eb;CF=1;var r=HQ();return Eb=r,Eb}var Sb,xF;function UQ(){return xF||(xF=1,Sb=WQ()),Sb}var VQ=UQ(),Na=ge(VQ);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 - * http://naver.github.io/egjs - * - * Forked By Naver egjs - * Copyright (c) hammerjs - * Licensed under the MIT license */function Pr(){return Pr=Object.assign||function(r){for(var e=1;e"u"?{style:{}}:document.createElement("div"),GQ="function",ps=Math.round,xn=Math.abs,q0=Date.now;function Ol(r,e){for(var t,i,n=e[0].toUpperCase()+e.slice(1),s=0;s"u"?ui={}:ui=window;var x5=Ol(KQ.style,"touchAction"),q5=x5!==void 0;function YQ(){if(!q5)return!1;var r={},e=ui.CSS&&ui.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return r[t]=e?ui.CSS.supports("touch-action",t):!0}),r}var A5="compute",D5="auto",pw="manipulation",Sn="none",Zo="pan-x",ea="pan-y",ru=YQ(),XQ=/mobile|tablet|ip(ad|hone|od)|android/i,M5="ontouchstart"in ui,JQ=Ol(ui,"PointerEvent")!==void 0,QQ=M5&&XQ.test(navigator.userAgent),Fa="touch",ZQ="pen",A0="mouse",eZ="kinect",tZ=25,Vt=1,Yn=2,pt=4,Jt=8,Ru=1,ka=2,Ba=4,La=8,qs=16,zr=ka|Ba,On=La|qs,N5=zr|On,F5=["x","y"],Cu=["clientX","clientY"];function li(r,e,t){var i;if(r)if(r.forEach)r.forEach(e,t);else if(r.length!==void 0)for(i=0;i-1}function rZ(r){if(vn(r,Sn))return Sn;var e=vn(r,Zo),t=vn(r,ea);return e&&t?Sn:e||t?e?Zo:ea:vn(r,pw)?pw:D5}var k5=function(){function r(t,i){this.manager=t,this.set(i)}var e=r.prototype;return e.set=function(i){i===A5&&(i=this.compute()),q5&&this.manager.element.style&&ru[i]&&(this.manager.element.style[x5]=i),this.actions=i.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var i=[];return li(this.manager.recognizers,function(n){Il(n.options.enable,[n])&&(i=i.concat(n.getTouchAction()))}),rZ(i.join(" "))},e.preventDefaults=function(i){var n=i.srcEvent,s=i.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,a=vn(o,Sn)&&!ru[Sn],u=vn(o,ea)&&!ru[ea],l=vn(o,Zo)&&!ru[Zo];if(a){var c=i.pointers.length===1,d=i.distance<2,h=i.deltaTime<250;if(c&&d&&h)return}if(!(l&&u)&&(a||u&&s&zr||l&&s&On))return this.preventSrc(n)},e.preventSrc=function(i){this.manager.session.prevented=!0,i.preventDefault()},r}();function D0(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}function B5(r){var e=r.length;if(e===1)return{x:ps(r[0].clientX),y:ps(r[0].clientY)};for(var t=0,i=0,n=0;n=xn(e)?r<0?ka:Ba:e<0?La:qs}function iZ(r,e){var t=e.center,i=r.offsetDelta||{},n=r.prevDelta||{},s=r.prevInput||{};(e.eventType===Vt||s.eventType===pt)&&(n=r.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=r.offsetDelta={x:t.x,y:t.y}),e.deltaX=n.x+(t.x-i.x),e.deltaY=n.y+(t.y-i.y)}function j5(r,e,t){return{x:e/r||0,y:t/r||0}}function nZ(r,e){return xu(e[0],e[1],Cu)/xu(r[0],r[1],Cu)}function sZ(r,e){return vw(e[1],e[0],Cu)+vw(r[1],r[0],Cu)}function oZ(r,e){var t=r.lastInterval||e,i=e.timeStamp-t.timeStamp,n,s,o,a;if(e.eventType!==Jt&&(i>tZ||t.velocity===void 0)){var u=e.deltaX-t.deltaX,l=e.deltaY-t.deltaY,c=j5(i,u,l);s=c.x,o=c.y,n=xn(c.x)>xn(c.y)?c.x:c.y,a=L5(u,l),r.lastInterval=e}else n=t.velocity,s=t.velocityX,o=t.velocityY,a=t.direction;e.velocity=n,e.velocityX=s,e.velocityY=o,e.direction=a}function aZ(r,e){var t=r.session,i=e.pointers,n=i.length;t.firstInput||(t.firstInput=AF(e)),n>1&&!t.firstMultiple?t.firstMultiple=AF(e):n===1&&(t.firstMultiple=!1);var s=t.firstInput,o=t.firstMultiple,a=o?o.center:s.center,u=e.center=B5(i);e.timeStamp=q0(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=vw(a,u),e.distance=xu(a,u),iZ(t,e),e.offsetDirection=L5(e.deltaX,e.deltaY);var l=j5(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=xn(l.x)>xn(l.y)?l.x:l.y,e.scale=o?nZ(o.pointers,i):1,e.rotation=o?sZ(o.pointers,i):0,e.maxPointers=t.prevInput?e.pointers.length>t.prevInput.maxPointers?e.pointers.length:t.prevInput.maxPointers:e.pointers.length,oZ(t,e);var c=r.element,d=e.srcEvent,h;d.composedPath?h=d.composedPath()[0]:d.path?h=d.path[0]:h=d.target,D0(h,c)&&(c=h),e.target=c}function uZ(r,e,t){var i=t.pointers.length,n=t.changedPointers.length,s=e&Vt&&i-n===0,o=e&(pt|Jt)&&i-n===0;t.isFirst=!!s,t.isFinal=!!o,s&&(r.session={}),t.eventType=e,aZ(r,t),r.emit("hammer.input",t),r.recognize(t),r.session.prevInput=t}function ta(r){return r.trim().split(/\s+/g)}function qo(r,e,t){li(ta(e),function(i){r.addEventListener(i,t,!1)})}function Ao(r,e,t){li(ta(e),function(i){r.removeEventListener(i,t,!1)})}function DF(r){var e=r.ownerDocument||r;return e.defaultView||e.parentWindow||window}var ao=function(){function r(t,i){var n=this;this.manager=t,this.callback=i,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(s){Il(t.options.enable,[t])&&n.handler(s)},this.init()}var e=r.prototype;return e.handler=function(){},e.init=function(){this.evEl&&qo(this.element,this.evEl,this.domHandler),this.evTarget&&qo(this.target,this.evTarget,this.domHandler),this.evWin&&qo(DF(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ao(this.element,this.evEl,this.domHandler),this.evTarget&&Ao(this.target,this.evTarget,this.domHandler),this.evWin&&Ao(DF(this.element),this.evWin,this.domHandler)},r}();function qn(r,e,t){if(r.indexOf&&!t)return r.indexOf(e);for(var i=0;iu[e]}):i=i.sort()),i}var dZ={touchstart:Vt,touchmove:Yn,touchend:pt,touchcancel:Jt},hZ="touchstart touchmove touchend touchcancel",N0=function(r){br(e,r);function e(){var i;return e.prototype.evTarget=hZ,i=r.apply(this,arguments)||this,i.targetIds={},i}var t=e.prototype;return t.handler=function(n){var s=dZ[n.type],o=fZ.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:Fa,srcEvent:n})},e}(ao);function fZ(r,e){var t=ra(r.touches),i=this.targetIds;if(e&(Vt|Yn)&&t.length===1)return i[t[0].identifier]=!0,[t,t];var n,s,o=ra(r.changedTouches),a=[],u=this.target;if(s=t.filter(function(l){return D0(l.target,u)}),e===Vt)for(n=0;n-1&&n.splice(a,1)};setTimeout(s,mZ)}}function yZ(r,e){r&Vt?(this.primaryTouch=e.changedPointers[0].identifier,NF.call(this,e)):r&(pt|Jt)&&NF.call(this,e)}function bZ(r){for(var e=r.srcEvent.clientX,t=r.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(n,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(i){return!!this.simultaneous[i.id]},e.emit=function(i){var n=this,s=this.state;function o(a){n.manager.emit(a,i)}s=Li&&o(n.options.event+FF(s))},e.tryEmit=function(i){if(this.canEmit())return this.emit(i);this.state=kr},e.canEmit=function(){for(var i=0;is.threshold&&u&s.direction},t.attrTest=function(n){return Ds.prototype.attrTest.call(this,n)&&(this.state&fr||!(this.state&fr)&&this.directionTest(n))},t.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=V5(n.direction);s&&(n.additionalEvent=this.options.event+s),r.prototype.emit.call(this,n)},e}(Ds),K5=function(r){br(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Pr({event:"swipe",threshold:10,velocity:.3,direction:zr|On,pointers:1},i))||this}var t=e.prototype;return t.getTouchAction=function(){return k0.prototype.getTouchAction.call(this)},t.attrTest=function(n){var s=this.options.direction,o;return s&(zr|On)?o=n.overallVelocity:s&zr?o=n.overallVelocityX:s&On&&(o=n.overallVelocityY),r.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&xn(o)>this.options.velocity&&n.eventType&pt},t.emit=function(n){var s=V5(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},e}(Ds),G5=function(r){br(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Pr({event:"pinch",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[Sn]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&fr)},t.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}r.prototype.emit.call(this,n)},e}(Ds),Y5=function(r){br(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Pr({event:"rotate",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[Sn]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&fr)},e}(Ds),X5=function(r){br(e,r);function e(i){var n;return i===void 0&&(i={}),n=r.call(this,Pr({event:"press",pointers:1,time:251,threshold:9},i))||this,n._timer=null,n._input=null,n}var t=e.prototype;return t.getTouchAction=function(){return[D5]},t.process=function(n){var s=this,o=this.options,a=n.pointers.length===o.pointers,u=n.distanceo.time;if(this._input=n,!u||!a||n.eventType&(pt|Jt)&&!l)this.reset();else if(n.eventType&Vt)this.reset(),this._timer=setTimeout(function(){s.state=ci,s.tryEmit()},o.time);else if(n.eventType&pt)return ci;return kr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(n){this.state===ci&&(n&&n.eventType&pt?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=q0(),this.manager.emit(this.options.event,this._input)))},e}(ja),J5={domEvents:!1,touchAction:A5,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},kF=[[Y5,{enable:!1}],[G5,{enable:!1},["rotate"]],[K5,{direction:zr}],[k0,{direction:zr},["swipe"]],[gw],[gw,{event:"doubletap",taps:2},["tap"]],[X5]],SZ=1,BF=2;function LF(r,e){var t=r.element;if(t.style){var i;li(r.options.cssProps,function(n,s){i=Ol(t.style,s),e?(r.oldCssProps[i]=t.style[i],t.style[i]=n):t.style[i]=r.oldCssProps[i]||""}),e||(r.oldCssProps={})}}function OZ(r,e){var t=document.createEvent("Event");t.initEvent(r,!0,!0),t.gesture=e,e.target.dispatchEvent(t)}var jF=function(){function r(t,i){var n=this;this.options=Cn({},J5,i||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=_Z(this),this.touchAction=new k5(this,this.options.touchAction),LF(this,!0),li(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var e=r.prototype;return e.set=function(i){return Cn(this.options,i),i.touchAction&&this.touchAction.update(),i.inputTarget&&(this.input.destroy(),this.input.target=i.inputTarget,this.input.init()),this},e.stop=function(i){this.session.stopped=i?BF:SZ},e.recognize=function(i){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(i);var s,o=this.recognizers,a=n.curRecognizer;(!a||a&&a.state&ci)&&(n.curRecognizer=null,a=null);for(var u=0;u\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,s),r.apply(this,arguments)}}var Z5=Q5(function(r,e,t){for(var i=Object.keys(e),n=0;n{const o=2091639*e+n*23283064365386963e-26;return e=t,t=i,i=o-(n=o|0)};return s.uint32=()=>s()*4294967296,s.fract53=()=>s()+(s()*2097152|0)*11102230246251565e-32,s.algorithm="Alea",s.seed=r,s.version="0.9",s}function AZ(){const r=DZ();let e=r(" "),t=r(" "),i=r(" ");for(let n=0;n>>0,n-=r,n*=r,r=n>>>0,n-=r,r+=n*4294967296}return(r>>>0)*23283064365386963e-26}}function MZ(){const r=()=>{};return{on:r,off:r,destroy:r,emit:r,get(){return{set:r}}}}const B0=typeof window<"u"?window.Hammer||eH:function(){return MZ()};function Br(r){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:r,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const t=B0(this._dom.overlay);t.on("tap",H(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{t.destroy()});const i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];He(i).call(i,n=>{t.on(n,s=>{s.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=n=>{NZ(n.target,r)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=n=>{("key"in n?n.key==="Escape":n.keyCode===27)&&this.deactivate()}}c5(Br.prototype);Br.current=null;Br.prototype.destroy=function(){this.deactivate();for(const t of wn(r=oi(e=this._cleanupQueue).call(e,0)).call(r)){var r,e;t()}};Br.prototype.activate=function(){Br.current&&Br.current.deactivate(),Br.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};Br.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};Br.prototype._onTapOverlay=function(r){this.activate(),r.srcEvent.stopPropagation()};function NZ(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}const FZ=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,kZ=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,BZ=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,LZ=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function xi(r){if(r)for(;r.hasChildNodes()===!0;){const e=r.firstChild;e&&(xi(e),r.removeChild(e))}}function Es(r){return r instanceof String||typeof r=="string"}function HF(r){return typeof r=="object"&&r!==null}function An(r,e,t,i){let n=!1;i===!0&&(n=e[t]===null&&r[t]!==void 0),n?delete r[t]:r[t]=e[t]}function tH(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(const i in r)if(e[i]!==void 0)if(e[i]===null||typeof e[i]!="object")An(r,e,i,t);else{const n=r[i],s=e[i];HF(n)&&HF(s)&&tH(n,s,t)}}function uo(r,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(st(t))throw new TypeError("Arrays are not supported by deepExtend");for(let n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;if(st(t))throw new TypeError("Arrays are not supported by deepExtend");for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&!Bi(r).call(r,n))if(t[n]&&t[n].constructor===Object)e[n]===void 0&&(e[n]={}),e[n].constructor===Object?Ke(e[n],t[n]):An(e,t,n,i);else if(st(t[n])){e[n]=[];for(let s=0;s2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)||t===!0)if(typeof e[s]=="object"&&e[s]!==null&&ON(e[s])===Object.prototype)r[s]===void 0?r[s]=Ke({},e[s],t):typeof r[s]=="object"&&r[s]!==null&&ON(r[s])===Object.prototype?Ke(r[s],e[s],t):An(r,e,s,i);else if(st(e[s])){var n;r[s]=Nr(n=e[s]).call(n)}else An(r,e,s,i);return r}function Au(r,e){return[...r,e]}function jZ(r){return Nr(r).call(r)}function zZ(r){return r.getBoundingClientRect().left}function HZ(r){return r.getBoundingClientRect().top}function Te(r,e){if(st(r)){const t=r.length;for(let i=0;i3&&arguments[3]!==void 0?arguments[3]:{};const n=function(f){return f!=null},s=function(f){return f!==null&&typeof f=="object"},o=function(f){for(const p in f)if(Object.prototype.hasOwnProperty.call(f,p))return!1;return!0};if(!s(r))throw new Error("Parameter mergeTarget must be an object");if(!s(e))throw new Error("Parameter options must be an object");if(!n(t))throw new Error("Parameter option must have a value");if(!s(i))throw new Error("Parameter globalOptions must be an object");const a=function(f,p,v){s(f[v])||(f[v]={});const _=p[v],m=f[v];for(const g in _)Object.prototype.hasOwnProperty.call(_,g)&&(m[g]=_[g])},u=e[t],c=s(i)&&!o(i)?i[t]:void 0,d=c?c.enabled:void 0;if(u===void 0)return;if(typeof u=="boolean"){s(r[t])||(r[t]={}),r[t].enabled=u;return}if(u===null&&!s(r[t]))if(n(c))r[t]=En(c);else return;if(!s(u))return;let h=!0;u.enabled!==void 0?h=u.enabled:d!==void 0&&(h=c.enabled),a(r,e,t),r[t].enabled=h}const VZ={linear(r){return r},easeInQuad(r){return r*r},easeOutQuad(r){return r*(2-r)},easeInOutQuad(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic(r){return r*r*r},easeOutCubic(r){return--r*r*r+1},easeInOutCubic(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart(r){return r*r*r*r},easeOutQuart(r){return 1- --r*r*r*r},easeInOutQuart(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint(r){return r*r*r*r*r},easeOutQuint(r){return 1+--r*r*r*r*r},easeInOutQuint(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function qi(r,e){let t;st(e)||(e=[e]);for(const i of r)if(i){t=i[e[0]];for(let n=1;n0&&arguments[0]!==void 0?arguments[0]:1;this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}setCloseCallback(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}_isColorString(e){if(typeof e=="string")return KZ[e]}setColor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e==="none")return;let i;const n=this._isColorString(e);if(n!==void 0&&(e=n),Es(e)===!0){if(nH(e)===!0){const s=e.substr(4).substr(0,e.length-5).split(",");i={r:s[0],g:s[1],b:s[2],a:1}}else if(UZ(e)===!0){const s=e.substr(5).substr(0,e.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(iH(e)===!0){const s=L0(e);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){const s=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:s}}if(i===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Ma(e));this._setColor(i,t)}show(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)===!0&&(this.previousColor=ft({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",ai(()=>{this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(e){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)===!0&&(this.initialColor=ft({},e)),this.color=e;const i=_o(e.r,e.g,e.b),n=2*Math.PI,s=this.r*i.s,o=this.centerCoordinates.x+s*Math.sin(n*i.h),a=this.centerCoordinates.y+s*Math.cos(n*i.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}_setOpacity(e){this.color.a=e/100,this._updatePicker(this.color)}_setBrightness(e){const t=_o(this.color.r,this.color.g,this.color.b);t.v=e/100;const i=pu(t.h,t.s,t.v);i.a=this.color.a,this.color=i,this._updatePicker()}_updatePicker(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color;const t=_o(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const n=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,s),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-t.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Na(i).call(i),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var e,t,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){const o=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{const o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);const s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=H(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=H(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=H(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=H(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new B0(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",e=>{e.isFirst&&this._moveSelector(e)}),this.hammer.on("tap",e=>{this._moveSelector(e)}),this.hammer.on("panstart",e=>{this._moveSelector(e)}),this.hammer.on("panmove",e=>{this._moveSelector(e)}),this.hammer.on("panend",e=>{this._moveSelector(e)})}_generateHueCircle(){if(this.generated===!1){const e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const t=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,t,i);let n,s,o,a;this.centerCoordinates={x:t*.5,y:i*.5},this.r=.49*t;const u=2*Math.PI/360,l=1/360,c=1/this.r;let d;for(o=0;o<360;o++)for(a=0;a3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:()=>!1;this.parent=e,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},ft(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new GZ(n),this.wrapper=void 0}setOptions(e){if(e!==void 0){this.popupHistory={},this._removePopup();let t=!0;if(typeof e=="string")this.options.filter=e;else if(st(e))this.options.filter=e.join();else if(typeof e=="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),Yt(e)!==void 0&&(this.options.filter=Yt(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(t=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,t=e):typeof e=="function"&&(this.options.filter=e,t=!0);Yt(this.options)===!1&&(t=!1),this.options.enabled=t}this._clean()}setModuleOptions(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];const e=Yt(this.options);let t=0,i=!1;for(const n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):(e===!0||Be(e).call(e,n)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),t++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let e=0;e1?t-1:0),n=1;n{s.appendChild(o)}),this.domElements.push(s),this.domElements.length}return 0}_makeHeader(e){const t=document.createElement("div");t.className="vis-configuration vis-config-header",t.innerText=e,this._makeItem([],t)}_makeLabel(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const n=document.createElement("div");if(n.className="vis-configuration vis-config-label vis-config-s"+t.length,i===!0){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(bw("i","b",e))}else n.innerText=e+":";return n}_makeDropdown(e,t,i){const n=document.createElement("select");n.className="vis-configuration vis-config-select";let s=0;t!==void 0&&Be(e).call(e,t)!==-1&&(s=Be(e).call(e,t));for(let u=0;uo&&o!==1&&(u.max=Math.ceil(t*1.2),c=u.max,l="range increased"),u.value=t):u.value=n;const d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=u.value;const h=this;u.onchange=function(){d.value=this.value,h._update(Number(this.value),i)},u.oninput=function(){d.value=this.value};const f=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,f,u,d);l!==""&&this.popupHistory[p]!==c&&(this.popupHistory[p]=c,this._setupPopup(l,p))}_makeButton(){if(this.options.showButton===!0){const e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=()=>{this._printOptions()},e.onmouseover=()=>{e.className="vis-configuration vis-config-button hover"},e.onmouseout=()=>{e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}_setupPopup(e,t){if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:t}}}_removePopup(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(this.popupDiv.html!==void 0){const t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=ai(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=ai(()=>{this._removePopup()},1800)}}_makeCheckbox(e,t,i){const n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=e,t!==void 0&&(n.checked=t,t!==e&&(typeof e=="object"?t!==e.enabled&&this.changedOptions.push({path:i,value:t}):this.changedOptions.push({path:i,value:t})));const s=this;n.onchange=function(){s._update(this.checked,i)};const o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}_makeTextInput(e,t,i){const n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=t,t!==e&&this.changedOptions.push({path:i,value:t});const s=this;n.onchange=function(){s._update(this.value,i)};const o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}_makeColorField(e,t,i){const n=e[1],s=document.createElement("div");t=t===void 0?n:t,t!=="none"?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=t):s.className="vis-configuration vis-config-colorBlock none",t=t===void 0?n:t,s.onclick=()=>{this._showColorPicker(t,s,i)};const o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,s)}_showColorPicker(e,t,i){t.onclick=function(){},this.colorPicker.insertTo(t),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback(n=>{const s="rgba("+n.r+","+n.g+","+n.b+","+n.a+")";t.style.backgroundColor=s,this._update(s,i)}),this.colorPicker.setCloseCallback(()=>{t.onclick=()=>{this._showColorPicker(e,t,i)}})}_handleObject(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=!1;const s=Yt(this.options);let o=!1;for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){n=!0;const u=e[a],l=Au(t,a);if(typeof s=="function"&&(n=s(a,t),n===!1&&!st(u)&&typeof u!="string"&&typeof u!="boolean"&&u instanceof Object&&(this.allowCreation=!1,n=this._handleObject(u,l,!0),this.allowCreation=i===!1)),n!==!1){o=!0;const c=this._getValue(l);if(st(u))this._handleArray(u,c,l);else if(typeof u=="string")this._makeTextInput(u,c,l);else if(typeof u=="boolean")this._makeCheckbox(u,c,l);else if(u instanceof Object){if(!this.hideOption(t,a,this.moduleOptions))if(u.enabled!==void 0){const d=Au(l,"enabled"),h=this._getValue(d);if(h===!0){const f=this._makeLabel(a,l,!0);this._makeItem(l,f),o=this._handleObject(u,l)||o}else this._makeCheckbox(u,h,l)}else{const d=this._makeLabel(a,l,!0);this._makeItem(l,d),o=this._handleObject(u,l)||o}}else console.error("dont know how to handle",u,a,l)}}return o}_handleArray(e,t,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,t,i),e[1]!==t&&this.changedOptions.push({path:i,value:t})):typeof e[0]=="string"?(this._makeDropdown(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:t})):typeof e[0]=="number"&&(this._makeRange(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:Number(t)}))}_update(e,t){const i=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}_constructOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(let s=0;ss-this.padding&&(u=!0),u?o=this.x-i:o=this.x,l?a=this.y-t:a=this.y}else a=this.y-t,a+t+this.padding>n&&(a=n-t-this.padding),as&&(o=s-i-this.padding),os.distance?u=" in "+rt.printLocation(n.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+rt.printLocation(s.path,s.closestMatch,""):n.distance<=o?u='. Did you mean "'+n.closestMatch+'"?'+rt.printLocation(n.path,e):u=". Did you mean one of these: "+rt.print(nt(t))+rt.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+u,_w),mo=!0}static findInOptions(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=1e9,o="",a=[];const u=e.toLowerCase();let l;for(const d in t){let h;if(t[d].__type__!==void 0&&n===!0){const f=rt.findInOptions(e,t[d],Au(i,d));s>f.distance&&(o=f.closestMatch,a=f.path,s=f.distance,l=f.indexMatch)}else{var c;Be(c=d.toLowerCase()).call(c,u)!==-1&&(l=d),h=rt.levenshteinDistance(e,d),s>h&&(o=d,a=jZ(i),s=h)}}return{closestMatch:o,path:a,distance:s,indexMatch:l}}static printLocation(e,t){let n=` - -`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: -`)+`options = { -`;for(let s=0;s":!0,"--":!0},Mi="",Ms=0,Se="",fe="",Gt=Lt.NULL;function iee(){Ms=0,Se=Mi.charAt(0)}function wt(){Ms++,Se=Mi.charAt(Ms)}function ss(){return Mi.charAt(Ms+1)}function VF(r){var e=r.charCodeAt(0);return e<47?e===35||e===46:e<59?e>47:e<91?e>64:e<96?e===95:e<123?e>96:!1}function Ui(r,e){if(r||(r={}),e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function nee(r,e,t){for(var i=e.split("."),n=r;i.length;){var s=i.shift();i.length?(n[s]||(n[s]={}),n=n[s]):n[s]=t}}function aH(r,e){for(var t,i,n=null,s=[r],o=r;o.parent;)s.push(o.parent),o=o.parent;if(o.nodes){for(t=0,i=o.nodes.length;t=0;t--){var a,u=s[t];u.nodes||(u.nodes=[]),Be(a=u.nodes).call(a,n)===-1&&u.nodes.push(n)}e.attr&&(n.attr=Ui(n.attr,e.attr))}function see(r,e){if(r.edges||(r.edges=[]),r.edges.push(e),r.edge){var t=Ui({},r.edge);e.attr=Ui(t,e.attr)}}function uH(r,e,t,i,n){var s={from:e,to:t,type:i};return r.edge&&(s.attr=Ui({},r.edge)),s.attr=Ui(s.attr||{},n),n!=null&&n.hasOwnProperty("arrows")&&n.arrows!=null&&(s.arrows={to:{enabled:!0,type:n.arrows.type}},n.arrows=null),s}function Ge(){for(Gt=Lt.NULL,fe="";Se===" "||Se===" "||Se===` -`||Se==="\r";)wt();do{var r=!1;if(Se==="#"){for(var e=Ms-1;Mi.charAt(e)===" "||Mi.charAt(e)===" ";)e--;if(Mi.charAt(e)===` -`||Mi.charAt(e)===""){for(;Se!=""&&Se!=` -`;)wt();r=!0}}if(Se==="/"&&ss()==="/"){for(;Se!=""&&Se!=` -`;)wt();r=!0}if(Se==="/"&&ss()==="*"){for(;Se!="";)if(Se==="*"&&ss()==="/"){wt(),wt();break}else wt();r=!0}for(;Se===" "||Se===" "||Se===` -`||Se==="\r";)wt()}while(r);if(Se===""){Gt=Lt.DELIMITER;return}var t=Se+ss();if(UF[t]){Gt=Lt.DELIMITER,fe=t,wt(),wt();return}if(UF[Se]){Gt=Lt.DELIMITER,fe=Se,wt();return}if(VF(Se)||Se==="-"){for(fe+=Se,wt();VF(Se);)fe+=Se,wt();fe==="false"?fe=!1:fe==="true"?fe=!0:isNaN(Number(fe))||(fe=Number(fe)),Gt=Lt.IDENTIFIER;return}if(Se==='"'){for(wt();Se!=""&&(Se!='"'||Se==='"'&&ss()==='"');)Se==='"'?(fe+=Se,wt()):Se==="\\"&&ss()==="n"?(fe+=` -`,wt()):fe+=Se,wt();if(Se!='"')throw jt('End of string " expected');wt(),Gt=Lt.IDENTIFIER;return}for(Gt=Lt.UNKNOWN;Se!="";)fe+=Se,wt();throw new SyntaxError('Syntax error in part "'+hH(fe,30)+'"')}function oee(){var r={};if(iee(),Ge(),fe==="strict"&&(r.strict=!0,Ge()),(fe==="graph"||fe==="digraph")&&(r.type=fe,Ge()),Gt===Lt.IDENTIFIER&&(r.id=fe,Ge()),fe!="{")throw jt("Angle bracket { expected");if(Ge(),lH(r),fe!="}")throw jt("Angle bracket } expected");if(Ge(),fe!=="")throw jt("End of file expected");return Ge(),delete r.node,delete r.edge,delete r.graph,r}function lH(r){for(;fe!==""&&fe!="}";)aee(r),fe===";"&&Ge()}function aee(r){var e=cH(r);if(e){dH(r,e);return}var t=uee(r);if(!t){if(Gt!=Lt.IDENTIFIER)throw jt("Identifier expected");var i=fe;if(Ge(),fe==="="){if(Ge(),Gt!=Lt.IDENTIFIER)throw jt("Identifier expected");r[i]=fe,Ge()}else lee(r,i)}}function cH(r){var e=null;if(fe==="subgraph"&&(e={},e.type="subgraph",Ge(),Gt===Lt.IDENTIFIER&&(e.id=fe,Ge())),fe==="{"){if(Ge(),e||(e={}),e.parent=r,e.node=r.node,e.edge=r.edge,e.graph=r.graph,lH(e),fe!="}")throw jt("Angle bracket } expected");Ge(),delete e.node,delete e.edge,delete e.graph,delete e.parent,r.subgraphs||(r.subgraphs=[]),r.subgraphs.push(e)}return e}function uee(r){return fe==="node"?(Ge(),r.node=Do(),"node"):fe==="edge"?(Ge(),r.edge=Do(),"edge"):fe==="graph"?(Ge(),r.graph=Do(),"graph"):null}function lee(r,e){var t={id:e},i=Do();i&&(t.attr=i),aH(r,t),dH(r,e)}function dH(r,e){for(;fe==="->"||fe==="--";){var t,i=fe;Ge();var n=cH(r);if(n)t=n;else{if(Gt!=Lt.IDENTIFIER)throw jt("Identifier or subgraph expected");t=fe,aH(r,{id:t}),Ge()}var s=Do(),o=uH(r,e,t,i,s);see(r,o),e=t}}function Do(){for(var r,e=null,t={dashed:!0,solid:!1,dotted:[1,5]},i={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},n=new Array,s=new Array;fe==="[";){for(Ge(),e={};fe!==""&&fe!="]";){if(Gt!=Lt.IDENTIFIER)throw jt("Attribute name expected");var o=fe;if(Ge(),fe!="=")throw jt("Equal sign = expected");if(Ge(),Gt!=Lt.IDENTIFIER)throw jt("Attribute value expected");var a=fe;o==="style"&&(a=t[a]);var u;o==="arrowhead"&&(u=i[a],o="arrows",a={to:{enabled:!0,type:u}}),o==="arrowtail"&&(u=i[a],o="arrows",a={from:{enabled:!0,type:u}}),n.push({attr:e,name:o,value:a}),s.push(o),Ge(),fe==","&&Ge()}if(fe!="]")throw jt("Bracket ] expected");Ge()}if(Bi(s).call(s,"dir")){var l={};for(l.arrows={},r=0;r"&&(a.arrows="to"),a};He(n=e.edges).call(n,function(o){var a,u;if(o.from instanceof Object?a=o.from.nodes:a={id:o.from},o.to instanceof Object?u=o.to.nodes:u={id:o.to},o.from instanceof Object&&o.from.edges){var l;He(l=o.from.edges).call(l,function(d){var h=s(d);t.edges.push(h)})}if(cee(a,u,function(d,h){var f=uH(t,d.id,h.id,o.type,o.attr),p=s(f);t.edges.push(p)}),o.to instanceof Object&&o.to.edges){var c;He(c=o.to.edges).call(c,function(d){var h=s(d);t.edges.push(h)})}})}return e.attr&&(t.options=e.attr),t}function hee(r,e){var t;const i={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};e!=null&&(e.fixed!=null&&(i.nodes.fixed=e.fixed),e.parseColor!=null&&(i.nodes.parseColor=e.parseColor),e.inheritColor!=null&&(i.edges.inheritColor=e.inheritColor));const n=r.edges,s=xs(n).call(n,a=>{const u={from:a.source,id:a.id,to:a.target};return a.attributes!=null&&(u.attributes=a.attributes),a.label!=null&&(u.label=a.label),a.attributes!=null&&a.attributes.title!=null&&(u.title=a.attributes.title),a.type==="Directed"&&(u.arrows="to"),a.color&&i.edges.inheritColor===!1&&(u.color=a.color),u});return{nodes:xs(t=r.nodes).call(t,a=>{const u={id:a.id,fixed:i.nodes.fixed&&a.x!=null&&a.y!=null};return a.attributes!=null&&(u.attributes=a.attributes),a.label!=null&&(u.label=a.label),a.size!=null&&(u.size=a.size),a.attributes!=null&&a.attributes.title!=null&&(u.title=a.attributes.title),a.title!=null&&(u.title=a.title),a.x!=null&&(u.x=a.x),a.y!=null&&(u.y=a.y),a.color!=null&&(i.nodes.parseColor===!0?u.color=a.color:u.color={background:a.color,border:a.color,highlight:{background:a.color,border:a.color},hover:{background:a.color,border:a.color}}),u}),edges:s}}const fee={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},pee={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},vee={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},gee={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},mee={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},yee={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},bee={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},_ee={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},wee={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},Eee={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},See={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"};var Oee=Object.freeze({__proto__:null,cn:_ee,cs:See,de:pee,en:fee,es:vee,fr:Eee,it:gee,nl:mee,pt:yee,ru:bee,uk:wee});function Iee(r,e){try{const[i,n]=e.split(/[-_ /]/,2),s=i!=null?i.toLowerCase():null,o=n!=null?n.toUpperCase():null;if(s&&o){const a=s+"-"+o;if(Object.prototype.hasOwnProperty.call(r,a))return a;var t;console.warn(YJ(t="Unknown variant ".concat(o," of language ")).call(t,s,"."))}if(s){const a=s;if(Object.prototype.hasOwnProperty.call(r,a))return a;console.warn("Unknown language ".concat(s))}return console.warn("Unknown locale ".concat(e,", falling back to English.")),"en"}catch(i){return console.error(i),console.warn("Unexpected error while normalizing locale ".concat(e,", falling back to English.")),"en"}}class Tee{constructor(){this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}init(){if(this.initialized())return;this.src=this.image.src;const e=this.image.width,t=this.image.height;this.width=e,this.height=t;const i=Math.floor(t/2),n=Math.floor(t/4),s=Math.floor(t/8),o=Math.floor(t/16),a=Math.floor(e/2),u=Math.floor(e/4),l=Math.floor(e/8),c=Math.floor(e/16);this.canvas.width=3*u,this.canvas.height=i,this.coordinates=[[0,0,a,i],[a,0,u,n],[a,n,l,s],[5*l,n,c,o]],this._fillMipMap()}initialized(){return this.coordinates!==void 0}_fillMipMap(){const e=this.canvas.getContext("2d"),t=this.coordinates[0];e.drawImage(this.image,t[0],t[1],t[2],t[3]);for(let i=1;i2){t*=.5;let a=0;for(;t>2&&a=this.NUM_ITERATIONS&&(a=this.NUM_ITERATIONS-1);const u=this.coordinates[a];e.drawImage(this.canvas,u[0],u[1],u[2],u[3],i,n,s,o)}else e.drawImage(this.image,i,n,s,o)}}class $ee{constructor(e){this.images={},this.imageBroken={},this.callback=e}_tryloadBrokenUrl(e,t,i){if(!(e===void 0||i===void 0)){if(t===void 0){console.warn("No broken url image defined");return}i.image.onerror=()=>{console.error("Could not load brokenImage:",t)},i.image.src=t}}_redrawWithImage(e){this.callback&&this.callback(e)}load(e,t){const i=this.images[e];if(i)return i;const n=new Tee;return this.images[e]=n,n.image.onload=()=>{this._fixImageCoordinates(n.image),n.init(),this._redrawWithImage(n)},n.image.onerror=()=>{console.error("Could not load image:",e),this._tryloadBrokenUrl(e,t,n)},n.image.src=e,n}_fixImageCoordinates(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}var GF={},YF={},Ib={exports:{}},Tb,XF;function Pee(){if(XF)return Tb;XF=1;var r=Pe();return Tb=r(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Tb}var $b,JF;function Ree(){if(JF)return $b;JF=1;var r=Pe(),e=Pt(),t=Wr(),i=Pee(),n=Object.isExtensible,s=r(function(){});return $b=s||i?function(a){return!e(a)||i&&t(a)==="ArrayBuffer"?!1:n?n(a):!0}:n,$b}var Pb,QF;function fH(){if(QF)return Pb;QF=1;var r=Pe();return Pb=!r(function(){return Object.isExtensible(Object.preventExtensions({}))}),Pb}var ZF;function $l(){if(ZF)return Ib.exports;ZF=1;var r=de(),e=xe(),t=Ca(),i=Pt(),n=qt(),s=mr().f,o=wl(),a=T0(),u=Ree(),l=pl(),c=fH(),d=!1,h=l("meta"),f=0,p=function(y){s(y,h,{value:{objectID:"O"+f++,weakData:{}}})},v=function(y,I){if(!i(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!n(y,h)){if(!u(y))return"F";if(!I)return"E";p(y)}return y[h].objectID},_=function(y,I){if(!n(y,h)){if(!u(y))return!0;if(!I)return!1;p(y)}return y[h].weakData},m=function(y){return c&&d&&u(y)&&!n(y,h)&&p(y),y},g=function(){E.enable=function(){},d=!0;var y=o.f,I=e([].splice),O={};O[h]=1,y(O).length&&(o.f=function(T){for(var b=y(T),w=0,R=b.length;wb;b++)if(R=q(f[b]),R&&o(h,R))return R;return new d(!1)}O=a(f,T)}for(P=g?f.next:O.next;!(S=e(P,O)).done;){try{R=q(S.value)}catch(F){l(O,"throw",F)}if(typeof R=="object"&&R&&o(h,R))return R}return new d(!1)},Ab}var Db,sk;function H0(){if(sk)return Db;sk=1;var r=mt(),e=TypeError;return Db=function(t,i){if(r(i,t))return t;throw new e("Incorrect invocation")},Db}var Mb,ok;function W0(){if(ok)return Mb;ok=1;var r=de(),e=Ze(),t=$l(),i=Pe(),n=Zs(),s=Pl(),o=H0(),a=$t(),u=Pt(),l=Ks(),c=Kn(),d=mr().f,h=tn().forEach,f=lt(),p=Gn(),v=p.set,_=p.getterFor;return Mb=function(m,g,E){var y=m.indexOf("Map")!==-1,I=m.indexOf("Weak")!==-1,O=y?"set":"add",T=e[m],b=T&&T.prototype,w={},R;if(!f||!a(T)||!(I||b.forEach&&!i(function(){new T().entries().next()})))R=E.getConstructor(g,m,y,O),t.enable();else{R=g(function($,q){v(o($,P),{type:m,collection:new T}),l(q)||s(q,$[O],{that:$,AS_ENTRIES:y})});var P=R.prototype,S=_(m);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function($){var q=$==="add"||$==="set";$ in b&&!(I&&$==="clear")&&n(P,$,function(F,Z){var z=S(this).collection;if(!q&&I&&!u(F))return $==="get"?void 0:!1;var te=z[$](F===0?0:F,Z);return q?this:te})}),I||d(P,"size",{configurable:!0,get:function(){return S(this).collection.size}})}return c(R,m,!1,!0),w[m]=R,r({global:!0,forced:!0},w),I||E.setStrong(R,m,y),R},Mb}var Nb,ak;function U0(){if(ak)return Nb;ak=1;var r=Da();return Nb=function(e,t,i){for(var n in t)i&&i.unsafe&&e[n]?e[n]=t[n]:r(e,n,t[n],i);return e},Nb}var Fb,uk;function qee(){if(uk)return Fb;uk=1;var r=nr(),e=$0(),t=yt(),i=lt(),n=t("species");return Fb=function(s){var o=r(s);i&&o&&!o[n]&&e(o,n,{configurable:!0,get:function(){return this}})},Fb}var kb,lk;function vH(){if(lk)return kb;lk=1;var r=Aa(),e=$0(),t=U0(),i=gl(),n=H0(),s=Ks(),o=Pl(),a=R0(),u=C0(),l=qee(),c=lt(),d=$l().fastKey,h=Gn(),f=h.set,p=h.getterFor;return kb={getConstructor:function(v,_,m,g){var E=v(function(b,w){n(b,y),f(b,{type:_,index:r(null),first:null,last:null,size:0}),c||(b.size=0),s(w)||o(w,b[g],{that:b,AS_ENTRIES:m})}),y=E.prototype,I=p(_),O=function(b,w,R){var P=I(b),S=T(b,w),$,q;return S?S.value=R:(P.last=S={index:q=d(w,!0),key:w,value:R,previous:$=P.last,next:null,removed:!1},P.first||(P.first=S),$&&($.next=S),c?P.size++:b.size++,q!=="F"&&(P.index[q]=S)),b},T=function(b,w){var R=I(b),P=d(w),S;if(P!=="F")return R.index[P];for(S=R.first;S;S=S.next)if(S.key===w)return S};return t(y,{clear:function(){for(var w=this,R=I(w),P=R.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=null),P=P.next;R.first=R.last=null,R.index=r(null),c?R.size=0:w.size=0},delete:function(b){var w=this,R=I(w),P=T(w,b);if(P){var S=P.next,$=P.previous;delete R.index[P.index],P.removed=!0,$&&($.next=S),S&&(S.previous=$),R.first===P&&(R.first=S),R.last===P&&(R.last=$),c?R.size--:w.size--}return!!P},forEach:function(w){for(var R=I(this),P=i(w,arguments.length>1?arguments[1]:void 0),S;S=S?S.next:R.first;)for(P(S.value,S.key,this);S&&S.removed;)S=S.previous},has:function(w){return!!T(this,w)}}),t(y,m?{get:function(w){var R=T(this,w);return R&&R.value},set:function(w,R){return O(this,w===0?0:w,R)}}:{add:function(w){return O(this,w=w===0?0:w,w)}}),c&&e(y,"size",{configurable:!0,get:function(){return I(this).size}}),E},setStrong:function(v,_,m){var g=_+" Iterator",E=p(_),y=p(g);a(v,_,function(I,O){f(this,{type:g,target:I,state:E(I),kind:O,last:null})},function(){for(var I=y(this),O=I.kind,T=I.last;T&&T.removed;)T=T.previous;return!I.target||!(I.last=T=T?T.next:I.state.first)?(I.target=null,u(void 0,!0)):u(O==="keys"?T.key:O==="values"?T.value:[T.key,T.value],!1)},m?"entries":"values",!m,!0),l(_)}},kb}var ck;function Aee(){if(ck)return YF;ck=1;var r=W0(),e=vH();return r("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),YF}var dk;function Dee(){return dk||(dk=1,Aee()),GF}var hk={},Bb,fk;function gH(){return fk||(fk=1,Bb=function(r,e){return e===1?function(t,i){return t[r](i)}:function(t,i,n){return t[r](i,n)}}),Bb}var Lb,pk;function Mee(){if(pk)return Lb;pk=1;var r=nr(),e=gH(),t=r("Map");return Lb={Map:t,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:t.prototype},Lb}var vk;function Nee(){if(vk)return hk;vk=1;var r=de(),e=xe(),t=bi(),i=yi(),n=Pl(),s=Mee(),o=Js(),a=Pe(),u=s.Map,l=s.has,c=s.get,d=s.set,h=e([].push),f=o||a(function(){return u.groupBy("ab",function(p){return p}).get("a").length!==1});return r({target:"Map",stat:!0,forced:o||f},{groupBy:function(v,_){i(v),t(_);var m=new u,g=0;return n(v,function(E){var y=_(E,g++);l(m,y)?h(c(m,y),E):d(m,y,[E])}),m}}),hk}var gk={},jb,mk;function Fee(){if(mk)return jb;mk=1;var r=xe(),e=eo(),t=yr(),i=yi(),n=r("".charAt),s=r("".charCodeAt),o=r("".slice),a=function(u){return function(l,c){var d=t(i(l)),h=e(c),f=d.length,p,v;return h<0||h>=f?u?"":void 0:(p=s(d,h),p<55296||p>56319||h+1===f||(v=s(d,h+1))<56320||v>57343?u?n(d,h):p:u?o(d,h,h+2):(p-55296<<10)+(v-56320)+65536)}};return jb={codeAt:a(!1),charAt:a(!0)},jb}var yk;function V0(){if(yk)return gk;yk=1;var r=Fee().charAt,e=yr(),t=Gn(),i=R0(),n=C0(),s="String Iterator",o=t.set,a=t.getterFor(s);return i(String,"String",function(u){o(this,{type:s,string:e(u),index:0})},function(){var l=a(this),c=l.string,d=l.index,h;return d>=c.length?n(void 0,!0):(h=r(c,d),l.index+=h.length,n(h,!1))}),gk}var zb,bk;function kee(){if(bk)return zb;bk=1,no(),Dee(),Nee(),V0();var r=je();return zb=r.Map,zb}var Hb,_k;function Bee(){if(_k)return Hb;_k=1;var r=kee();return so(),Hb=r,Hb}var Wb,wk;function Lee(){return wk||(wk=1,Wb=Bee()),Wb}var jee=Lee(),K0=ge(jee);class zee{constructor(){this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},ft(this.options,this.defaultOptions)}setOptions(e){const t=["useDefaultGroups"];if(e!==void 0){for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Be(t).call(t,i)===-1){const n=e[i];this.add(i,n)}}}clear(){this._groups=new K0,this._groupNames=[]}get(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&t)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){const n=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[n]),this._groups.set(e,i)}else{const n=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[n],this._groups.set(e,i)}return i}add(e,t){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,t),t}}var Ek={},Sk;function Hee(){if(Sk)return Ek;Sk=1;var r=de();return r({target:"Number",stat:!0},{isNaN:function(t){return t!==t}}),Ek}var Ub,Ok;function Wee(){if(Ok)return Ub;Ok=1,Hee();var r=je();return Ub=r.Number.isNaN,Ub}var Vb,Ik;function Uee(){if(Ik)return Vb;Ik=1;var r=Wee();return Vb=r,Vb}var Kb,Tk;function Vee(){return Tk||(Tk=1,Kb=Uee()),Kb}var Kee=Vee(),ww=ge(Kee),$k={},Gb,Pk;function Gee(){if(Pk)return Gb;Pk=1;var r=Ze(),e=r.isFinite;return Gb=Number.isFinite||function(i){return typeof i=="number"&&e(i)},Gb}var Rk;function Yee(){if(Rk)return $k;Rk=1;var r=de(),e=Gee();return r({target:"Number",stat:!0},{isFinite:e}),$k}var Yb,Ck;function Xee(){if(Ck)return Yb;Ck=1,Yee();var r=je();return Yb=r.Number.isFinite,Yb}var Xb,xk;function Jee(){if(xk)return Xb;xk=1;var r=Xee();return Xb=r,Xb}var Jb,qk;function Qee(){return qk||(qk=1,Jb=Jee()),Jb}var Zee=Qee(),gn=ge(Zee),Ak={},Dk;function ete(){if(Dk)return Ak;Dk=1;var r=de(),e=tn().some,t=oo(),i=t("some");return r({target:"Array",proto:!0,forced:!i},{some:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),Ak}var Qb,Mk;function tte(){if(Mk)return Qb;Mk=1,ete();var r=At();return Qb=r("Array","some"),Qb}var Zb,Nk;function rte(){if(Nk)return Zb;Nk=1;var r=mt(),e=tte(),t=Array.prototype;return Zb=function(i){var n=i.some;return i===t||r(t,i)&&n===t.some?e:n},Zb}var e1,Fk;function ite(){if(Fk)return e1;Fk=1;var r=rte();return e1=r,e1}var t1,kk;function nte(){return kk||(kk=1,t1=ite()),t1}var ste=nte(),ote=ge(ste),r1={exports:{}},Bk={},Lk;function ate(){if(Lk)return Bk;Lk=1;var r=de(),e=lt(),t=mr().f;return r({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!e},{defineProperty:t}),Bk}var jk;function ute(){if(jk)return r1.exports;jk=1,ate();var r=je(),e=r.Object,t=r1.exports=function(n,s,o){return e.defineProperty(n,s,o)};return e.defineProperty.sham&&(t.sham=!0),r1.exports}var i1,zk;function mH(){if(zk)return i1;zk=1;var r=ute();return i1=r,i1}var n1,Hk;function lte(){if(Hk)return n1;Hk=1;var r=mH();return n1=r,n1}var s1,Wk;function cte(){if(Wk)return s1;Wk=1;var r=lte();return s1=r,s1}var o1,Uk;function dte(){return Uk||(Uk=1,o1=cte()),o1}var hte=dte(),fte=ge(hte),Vk={},Kk;function pte(){if(Kk)return Vk;Kk=1;var r=yt(),e=mr().f,t=r("metadata"),i=Function.prototype;return i[t]===void 0&&e(i,t,{value:null}),Vk}var Gk={},Yk;function vte(){return Yk||(Yk=1,b5()),Gk}var Xk={},Jk;function gte(){return Jk||(Jk=1,_5()),Xk}var Qk={},Zk;function mte(){if(Zk)return Qk;Zk=1;var r=tt();return r("metadata"),Qk}var a1,e2;function yte(){if(e2)return a1;e2=1;var r=I5();return pte(),vte(),gte(),mte(),a1=r,a1}var t2={},u1,r2;function yH(){if(r2)return u1;r2=1;var r=nr(),e=xe(),t=r("Symbol"),i=t.keyFor,n=e(t.prototype.valueOf);return u1=t.isRegisteredSymbol||function(o){try{return i(n(o))!==void 0}catch{return!1}},u1}var i2;function bte(){if(i2)return t2;i2=1;var r=de(),e=yH();return r({target:"Symbol",stat:!0},{isRegisteredSymbol:e}),t2}var n2={},l1,s2;function bH(){if(s2)return l1;s2=1;for(var r=Qs(),e=nr(),t=xe(),i=Ra(),n=yt(),s=e("Symbol"),o=s.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),u=t(s.prototype.valueOf),l=r("wks"),c=0,d=a(s),h=d.length;ch;)p=l(u,f=c[h++]),p!==void 0&&s(d,f,p);return d}}),eB}var M1,rB;function gre(){if(rB)return M1;rB=1,vre();var r=je();return M1=r.Object.getOwnPropertyDescriptors,M1}var N1,iB;function mre(){if(iB)return N1;iB=1;var r=gre();return N1=r,N1}var F1,nB;function yre(){return nB||(nB=1,F1=mre()),F1}var bre=yre(),Ki=ge(bre),k1={exports:{}},sB={},oB;function _re(){if(oB)return sB;oB=1;var r=de(),e=lt(),t=I0().f;return r({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!e},{defineProperties:t}),sB}var aB;function wre(){if(aB)return k1.exports;aB=1,_re();var r=je(),e=r.Object,t=k1.exports=function(n,s){return e.defineProperties(n,s)};return e.defineProperties.sham&&(t.sham=!0),k1.exports}var B1,uB;function Ere(){if(uB)return B1;uB=1;var r=wre();return B1=r,B1}var L1,lB;function Sre(){return lB||(lB=1,L1=Ere()),L1}var Ore=Sre(),Rl=ge(Ore),j1,cB;function Ire(){return cB||(cB=1,j1=mH()),j1}var Tre=Ire(),Cl=ge(Tre);function G0(r,e){const t=["node","edge","label"];let i=!0;const n=qi(e,"chosen");if(typeof n=="boolean")i=n;else if(typeof n=="object"){if(Be(t).call(t,r)===-1)throw new Error("choosify: subOption '"+r+"' should be one of '"+t.join("', '")+"'");const s=qi(e,["chosen",r]);(typeof s=="boolean"||typeof s=="function")&&(i=s)}return i}function Ew(r,e,t){if(r.width<=0||r.height<=0)return!1;if(t!==void 0){const s={x:e.x-t.x,y:e.y-t.y};if(t.angle!==0){const o=-t.angle;e={x:Math.cos(o)*s.x-Math.sin(o)*s.y,y:Math.sin(o)*s.x+Math.cos(o)*s.y}}else e=s}const i=r.x+r.width,n=r.y+r.width;return r.lefte.x&&r.tope.y}function Du(r){return typeof r=="string"&&r!==""}function wH(r,e,t,i){let n=i.x,s=i.y;if(typeof i.distanceToBorder=="function"){const o=i.distanceToBorder(r,e),a=Math.sin(e)*o,u=Math.cos(e)*o;u===o?(n+=o,s=i.y):a===o?(n=i.x,s-=o):(n+=u,s-=a)}else i.shape.width>i.shape.height?(n=i.x+i.shape.width*.5,s=i.y-t):(n=i.x+t,s=i.y-i.shape.height*.5);return{x:n,y:s}}var z1,dB;function $re(){if(dB)return z1;dB=1,no();var r=At();return z1=r("Array","values"),z1}var H1,hB;function Pre(){if(hB)return H1;hB=1;var r=$re();return H1=r,H1}var W1,fB;function Rre(){if(fB)return W1;fB=1,so();var r=ro(),e=qt(),t=mt(),i=Pre(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return W1=function(o){var a=o.values;return o===n||t(n,o)&&a===n.values||e(s,r(o))?i:a},W1}var U1,pB;function Cre(){return pB||(pB=1,U1=Rre()),U1}var xre=Cre(),EH=ge(xre);class qre{constructor(e){this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}_add(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});let n=t;(t===void 0||t==="")&&(n=" ");const s=this.measureText(n,i),o=ft({},EH(s));o.text=t,o.width=s.width,o.mod=i,(t===void 0||t==="")&&(o.width=0),this.lines[e].blocks.push(o),this.lines[e].width+=o.width}curWidth(){const e=this.lines[this.current];return e===void 0?0:e.width}append(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t)}newLine(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t),this.current++}determineLineHeights(){for(let e=0;ee&&(e=n.width),t+=n.height}this.width=e,this.height=t}removeEmptyBlocks(){const e=[];for(let t=0;t"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/};class vB{constructor(e){this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}mod(){return this.modStack.length===0?"normal":this.modStack[0]}modName(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}emitBlock(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}add(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}parseWS(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}setTag(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}unsetTag(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}parseStartTag(e,t){return!this.mono&&!this[e]&&this.match(t)?(this.setTag(e),!0):!1}match(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const[i,n]=this.prepareRegExp(e),s=i.test(this.text.substr(this.position,n));return s&&t&&(this.position+=n-1),s}parseEndTag(e,t,i){let n=this.mod()===e;return e==="mono"?n=n&&this.mono:n=n&&!this.mono,n&&this.match(t)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}replace(e,t){return this.match(e)?(this.add(t),this.position+=length-1,!0):!1}prepareRegExp(e){let t,i;if(e instanceof RegExp)i=e,t=1;else{const n=Are[e];n!==void 0?i=n:i=new RegExp(e),t=e.length}return[i,t]}}class Dre{constructor(e,t,i,n){this.ctx=e,this.parent=t,this.selected=i,this.hover=n;const s=(o,a)=>{if(o===void 0)return 0;const u=this.parent.getFormattingValues(e,i,n,a);let l=0;return o!==""&&(l=this.ctx.measureText(o).width),{width:l,values:u}};this.lines=new qre(s)}process(e){if(!Du(e))return this.lines.finalize();const t=this.parent.fontOptions;e=e.replace(/\r\n/g,` -`),e=e.replace(/\r/g,` -`);const i=String(e).split(` -`),n=i.length;if(t.multi)for(let s=0;s0)for(let a=0;a0)for(let s=0;s/&/.test(n)?(t.replace(t.text,"<","<")||t.replace(t.text,"&","&")||t.add("&"),!0):!1;for(;t.position")||t.parseStartTag("ital","")||t.parseStartTag("mono","")||t.parseEndTag("bold","")||t.parseEndTag("ital","")||t.parseEndTag("mono",""))||i(n)||t.add(n),t.position++}return t.emitBlock(),t.blocks}splitMarkdownBlocks(e){const t=new vB(e);let i=!0;const n=s=>/\\/.test(s)?(t.positionthis.parent.fontOptions.maxWdt}getLongestFit(e){let t="",i=0;for(;i1&&arguments[1]!==void 0?arguments[1]:"normal",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,t),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");let n=e.split("\r");for(;n.length>0;){let s=this.getLongestFit(n);if(s===0){const o=n[0],a=this.getLongestFitWord(o);this.lines.newLine(Nr(o).call(o,0,a),t),n[0]=Nr(o).call(o,a)}else{let o=s;n[s-1]===" "?s--:n[o]===" "&&o++;const a=Nr(n).call(n,0,s).join("");s==n.length&&i?this.lines.append(a,t):this.lines.newLine(a,t),n=Nr(n).call(n,o)}}}}const yo=["bold","ital","boldital","mono"];class Os{constructor(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(t),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=i}setOptions(e){if(this.elementOptions=e,this.initFontOptions(e.font),Du(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(typeof e.font=="object"){const t=e.font.size;t!==void 0&&(this.baseSize=t)}}}initFontOptions(e){if(Te(yo,t=>{this.fontOptions[t]={}}),Os.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}Te(e,(t,i)=>{t!=null&&typeof t!="object"&&(this.fontOptions[i]=t)})}static parseFontString(e,t){if(!t||typeof t!="string")return!1;const i=t.split(" ");return e.size=+i[0].replace("px",""),e.face=i[1],e.color=i[2],!0}constrain(e){const t={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=qi(e,"widthConstraint");if(typeof i=="number")t.maxWdt=Number(i),t.minWdt=Number(i);else if(typeof i=="object"){const s=qi(e,["widthConstraint","maximum"]);typeof s=="number"&&(t.maxWdt=Number(s));const o=qi(e,["widthConstraint","minimum"]);typeof o=="number"&&(t.minWdt=Number(o))}const n=qi(e,"heightConstraint");if(typeof n=="number")t.minHgt=Number(n);else if(typeof n=="object"){const s=qi(e,["heightConstraint","minimum"]);typeof s=="number"&&(t.minHgt=Number(s));const o=qi(e,["heightConstraint","valign"]);typeof o=="string"&&(o==="top"||o==="bottom")&&(t.valign=o)}return t}update(e,t){this.setOptions(e,!0),this.propagateFonts(t),Ke(this.fontOptions,this.constrain(t)),this.fontOptions.chooser=G0("label",t)}adjustSizes(e){const t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);const i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}addFontOptionsToPile(e,t){for(let i=0;i{o!==void 0&&(Object.prototype.hasOwnProperty.call(t,a)||(Be(yo).call(yo,a)!==-1?t[a]={}:t[a]=o))})}return t}getFontOption(e,t,i){let n;for(let s=0;s{s[u]=a}),s.size=Number(s.size),s.vadjust=Number(s.vadjust)}}draw(e,t,i,n,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label===void 0)return;let a=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&a=this.elementOptions.scaling.label.maxVisible&&(a=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,n,s,t,i,o),this._drawBackground(e),this._drawText(e,t,this.size.yLine,o,a))}_drawBackground(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;const t=this.getSize();e.fillRect(t.left,t.top,t.width,t.height)}}_drawText(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",s=arguments.length>4?arguments[4]:void 0;[t,i]=this._setAlignment(e,t,i,n),e.textAlign="left",t=t-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(i-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(i+=(this.size.height-this.size.labelHeight)/2));for(let o=0;o0&&(e.lineWidth=c.strokeWidth,e.strokeStyle=h,e.lineJoin="round"),e.fillStyle=d,c.strokeWidth>0&&e.strokeText(c.text,t+u,i+c.vadjust),e.fillText(c.text,t+u,i+c.vadjust),u+=c.width}i+=a.height}}}_setAlignment(e,t,i,n){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){t=0,i=0;const s=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*s):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*s):e.textBaseline="middle"}else e.textBaseline=n;return[t,i]}_getColor(e,t,i){let n=e||"#000000",s=i||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){const o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));n=lr(n,o),s=lr(s,o)}return[n,s]}getTextSize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,t,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}getSize(){let t=this.size.left,i=this.size.top-.5*2;if(this.isEdgeLabel){const s=-this.size.width*.5;switch(this.fontOptions.align){case"middle":t=s,i=-this.size.height*.5;break;case"top":t=s,i=-(this.size.height+2);break;case"bottom":t=s,i=2;break}}return{left:t,top:i,width:this.size.width,height:this.size.height}}calculateLabelSize(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,t,i),this.size.left=n-this.size.width*.5,this.size.top=s-this.size.height*.5,this.size.yLine=s+(1-this.lineCount)*.5*this.fontOptions.size,o==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}getFormattingValues(e,t,i,n){const s=function(u,l,c){return l==="normal"?c==="mod"?"":u[c]:u[l][c]!==void 0?u[l][c]:u[c]},o={color:s(this.fontOptions,n,"color"),size:s(this.fontOptions,n,"size"),face:s(this.fontOptions,n,"face"),mod:s(this.fontOptions,n,"mod"),vadjust:s(this.fontOptions,n,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(t||i)&&(n==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?o.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(o,this.elementOptions.id,t,i));let a="";return o.mod!==void 0&&o.mod!==""&&(a+=o.mod+" "),a+=o.size+"px "+o.face,e.font=a.replace(/"/g,""),o.font=e.font,o.height=o.size,o}differentState(e,t){return e!==this.selectedState||t!==this.hoverState}_processLabelText(e,t,i,n){return new Dre(e,this,t,i).process(n)}_processLabel(e,t,i){if(this.labelDirty===!1&&!this.differentState(t,i))return;const n=this._processLabelText(e,t,i,this.elementOptions.label);this.fontOptions.minWdt>0&&n.width0&&n.height0&&(this.enableBorderDashes(e,t),e.stroke(),this.disableBorderDashes(e,t)),e.restore()}performFill(e,t){e.save(),e.fillStyle=t.color,this.enableShadow(e,t),Na(e).call(e),this.disableShadow(e,t),e.restore(),this.performStroke(e,t)}_addBoundingBoxMargin(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}_updateBoundingBox(e,t,i,n,s){i!==void 0&&this.resize(i,n,s),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}updateBoundingBox(e,t,i,n,s){this._updateBoundingBox(e,t,i,n,s)}getDimensionsFromLabel(e,t,i){this.textSize=this.labelModule.getTextSize(e,t,i);let n=this.textSize.width,s=this.textSize.height;const o=14;return n===0&&(n=o,s=o),{width:n,height:s}}}let Mre=class extends Xn{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const n=this.getDimensionsFromLabel(e,t,i);this.width=n.width+this.margin.right+this.margin.left,this.height=n.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.initContextForDraw(e,o),a5(e,this.left,this.top,this.width,this.height,o.borderRadius),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s)}updateBoundingBox(e,t,i,n,s){this._updateBoundingBox(e,t,i,n,s);const o=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(o)}distanceToBorder(e,t){e&&this.resize(e);const i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+i}};class Y0 extends Xn{constructor(e,t,i){super(e,t,i),this.labelOffset=0,this.selected=!1}setOptions(e,t,i){this.options=e,t===void 0&&i===void 0||this.setImages(t,i)}setImages(e,t){t&&this.selected?(this.imageObj=t,this.imageObjAlt=e):(this.imageObj=e,this.imageObjAlt=t)}switchImages(e){const t=e&&!this.selected||!e&&this.selected;if(this.selected=e,this.imageObjAlt!==void 0&&t){const i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}_getImagePadding(){const e={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){const t=this.options.imagePadding;typeof t=="object"?(e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left):(e.top=t,e.right=t,e.bottom=t,e.left=t)}return e}_resizeImage(){let e,t;if(this.options.shapeProperties.useImageSize===!1){let i=1,n=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:n=this.imageObj.height/this.imageObj.width),e=this.options.size*2*i,t=this.options.size*2*n}else{const i=this._getImagePadding();e=this.imageObj.width+i.left+i.right,t=this.imageObj.height+i.top+i.bottom}this.width=e,this.height=t,this.radius=.5*this.width}_drawRawCircle(e,t,i,n){this.initContextForDraw(e,n),E0(e,t,i,n.size),this.performFill(e,n)}_drawImageAtPosition(e,t){if(this.imageObj.width!=0){e.globalAlpha=t.opacity!==void 0?t.opacity:1,this.enableShadow(e,t);let i=1;this.options.shapeProperties.interpolation===!0&&(i=this.imageObj.width/this.width/this.body.view.scale);const n=this._getImagePadding(),s=this.left+n.left,o=this.top+n.top,a=this.width-n.left-n.right,u=this.height-n.top-n.bottom;this.imageObj.drawImageAtPosition(e,i,s,o,a,u),this.disableShadow(e,t)}}_drawImageLabel(e,t,i,n,s){let o=0;if(this.height!==void 0){o=this.height*.5;const u=this.labelModule.getTextSize(e,n,s);u.lineCount>=1&&(o+=u.height/2)}const a=i+o;this.options.label&&(this.labelOffset=o),this.labelModule.draw(e,t,a,n,s,"hanging")}}let Nre=class extends Y0{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const n=this.getDimensionsFromLabel(e,t,i),s=Math.max(n.width+this.margin.right+this.margin.left,n.height+this.margin.top+this.margin.bottom);this.options.size=s/2,this.width=s,this.height=s,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this._drawRawCircle(e,t,i,o),this.updateBoundingBox(t,i),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,i,n,s)}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size}distanceToBorder(e){return e&&this.resize(e),this.width*.5}};class Fre extends Y0{constructor(e,t,i,n,s){super(e,t,i),this.setImages(n,s)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0){const s=this.options.size*2;this.width=s,this.height=s,this.radius=.5*this.width;return}this.needsRefresh(t,i)&&this._resizeImage()}draw(e,t,i,n,s,o){this.switchImages(n),this.resize();let a=t,u=i;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=t,this.top=i,a+=this.width/2,u+=this.height/2):(this.left=t-this.width/2,this.top=i-this.height/2),this._drawRawCircle(e,a,u,o),e.save(),e.clip(),this._drawImageAtPosition(e,o),e.restore(),this._drawImageLabel(e,a,u,n,s),this.updateBoundingBox(t,i)}updateBoundingBox(e,t){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=t,this.boundingBox.left=e,this.boundingBox.right=e+this.options.size*2,this.boundingBox.bottom=t+this.options.size*2):(this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}distanceToBorder(e){return e&&this.resize(e),this.width*.5}}class nn extends Xn{constructor(e,t,i){super(e,t,i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(t,i)){var s,o;this.labelModule.getTextSize(e,t,i);const a=2*n.size;this.width=(s=this.customSizeWidth)!==null&&s!==void 0?s:a,this.height=(o=this.customSizeHeight)!==null&&o!==void 0?o:a,this.radius=.5*this.width}}_drawShape(e,t,i,n,s,o,a,u){return this.resize(e,o,a,u),this.left=n-this.width/2,this.top=s-this.height/2,this.initContextForDraw(e,u),ZY(t)(e,n,s,u.size),this.performFill(e,u),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(e.font=(o?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",e.fillText(this.options.icon.code,n,s)),{drawExternalLabel:()=>{if(this.options.label!==void 0){this.labelModule.calculateLabelSize(e,o,a,n,s,"hanging");const l=s+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(e,n,l,o,a,"hanging")}this.updateBoundingBox(n,s)}}}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}function gB(r,e){var t=nt(r);if(Vi){var i=Vi(r);e&&(i=Yt(i).call(i,function(n){return rn(r,n).enumerable})),t.push.apply(t,i)}return t}function kre(r){for(var e=1;e{e.save(),u(),e.restore()}}return a.nodeDimensions&&(this.customSizeWidth=a.nodeDimensions.width,this.customSizeHeight=a.nodeDimensions.height),a}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class Lre extends Xn{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){if(this.needsRefresh(t,i)){const s=this.getDimensionsFromLabel(e,t,i).width+this.margin.right+this.margin.left;this.width=s,this.height=s,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.initContextForDraw(e,o),u5(e,t-this.width/2,i-this.height/2,this.width,this.height),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let jre=class extends nn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"diamond",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class zre extends nn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"circle",2,t,i,n,s,o)}distanceToBorder(e){return e&&this.resize(e),this.options.size}}class mB extends Xn{constructor(e,t,i){super(e,t,i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const n=this.getDimensionsFromLabel(e,t,i);this.height=n.height*2,this.width=n.width+n.height,this.radius=.5*this.width}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width*.5,this.top=i-this.height*.5,this.initContextForDraw(e,o),hw(e,this.left,this.top,this.width,this.height),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,t,i,n,s)}distanceToBorder(e,t){e&&this.resize(e);const i=this.width*.5,n=this.height*.5,s=Math.sin(t)*i,o=Math.cos(t)*n;return i*n/Math.sqrt(s*s+o*o)}}class Hre extends Xn{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){this.needsRefresh(t,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}draw(e,t,i,n,s,o){return this.resize(e,n,s),this.options.icon.size=this.options.icon.size||50,this.left=t-this.width/2,this.top=i-this.height/2,this._icon(e,t,i,n,s,o),{drawExternalLabel:()=>{this.options.label!==void 0&&this.labelModule.draw(e,this.left+this.iconSize.width/2+this.margin.left,i+this.height/2+5,n),this.updateBoundingBox(t,i)}}}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.icon.size*.5,this.boundingBox.left=e-this.options.icon.size*.5,this.boundingBox.right=e+this.options.icon.size*.5,this.boundingBox.bottom=t+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5))}_icon(e,t,i,n,s,o){const a=Number(this.options.icon.size);this.options.icon.code!==void 0?(e.font=[this.options.icon.weight!=null?this.options.icon.weight:n?"bold":"",(this.options.icon.weight!=null&&n?5:0)+a+"px",this.options.icon.face].join(" "),e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",this.enableShadow(e,o),e.fillText(this.options.icon.code,t,i),this.disableShadow(e,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let Wre=class extends Y0{constructor(e,t,i,n,s){super(e,t,i),this.setImages(n,s)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0){const s=this.options.size*2;this.width=s,this.height=s;return}this.needsRefresh(t,i)&&this._resizeImage()}draw(e,t,i,n,s,o){e.save(),this.switchImages(n),this.resize();let a=t,u=i;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=t,this.top=i,a+=this.width/2,u+=this.height/2):(this.left=t-this.width/2,this.top=i-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){const l=this.options.borderWidth,c=this.options.borderWidthSelected||2*this.options.borderWidth,d=(n?c:l)/this.body.view.scale;e.lineWidth=Math.min(this.width,d),e.beginPath();let h=n?this.options.color.highlight.border:s?this.options.color.hover.border:this.options.color.border,f=n?this.options.color.highlight.background:s?this.options.color.hover.background:this.options.color.background;o.opacity!==void 0&&(h=lr(h,o.opacity),f=lr(f,o.opacity)),e.strokeStyle=h,e.fillStyle=f,e.rect(this.left-.5*e.lineWidth,this.top-.5*e.lineWidth,this.width+e.lineWidth,this.height+e.lineWidth),Na(e).call(e),this.performStroke(e,o),e.closePath()}this._drawImageAtPosition(e,o),this._drawImageLabel(e,a,u,n,s),this.updateBoundingBox(t,i),e.restore()}updateBoundingBox(e,t){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=e,this.top=t):(this.left=e-this.width/2,this.top=t-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class Ure extends nn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"square",2,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class Vre extends nn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"hexagon",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class Kre extends nn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"star",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class Gre extends Xn{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){this.needsRefresh(t,i)&&(this.textSize=this.labelModule.getTextSize(e,t,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.enableShadow(e,o),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s),this.disableShadow(e,o),this.updateBoundingBox(t,i,e,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let Yre=class extends nn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"triangle",3,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class Xre extends nn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"triangleDown",3,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}function yB(r,e){var t=nt(r);if(Vi){var i=Vi(r);e&&(i=Yt(i).call(i,function(n){return rn(r,n).enumerable})),t.push.apply(t,i)}return t}function bB(r){for(var e=1;et[l]!=null);u.push("font"),qu(u,e,a),e.color=mw(e.color)}static parseOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(qu(["color","fixed","shadow"],e,t,i),Je.checkMass(t),e.opacity!==void 0&&(Je.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),t.opacity!==void 0&&(Je.checkOpacity(t.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity),t.opacity=void 0)),t.shapeProperties&&!Je.checkCoordinateOrigin(t.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+t.shapeProperties.coordinateOrigin),ur(e,t,"shadow",n),t.color!==void 0&&t.color!==null){const a=mw(t.color);tH(e.color,a)}else i===!0&&t.color===null&&(e.color=ji(n.color));t.fixed!==void 0&&t.fixed!==null&&(typeof t.fixed=="boolean"?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(t.fixed.x!==void 0&&typeof t.fixed.x=="boolean"&&(e.fixed.x=t.fixed.x),t.fixed.y!==void 0&&typeof t.fixed.y=="boolean"&&(e.fixed.y=t.fixed.y))),i===!0&&t.font===null&&(e.font=ji(n.font)),Je.updateGroupOptions(e,t,s),t.scaling!==void 0&&ur(e.scaling,t.scaling,"label",n.scaling)}getFormattingValues(){const e={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?this.chooser===!0?this.selected?(this.options.borderWidthSelected!=null?e.borderWidth=this.options.borderWidthSelected:e.borderWidth*=2,e.color=this.options.color.highlight.background,e.borderColor=this.options.color.highlight.border,e.shadow=this.options.shadow.enabled):this.hover&&(e.color=this.options.color.hover.background,e.borderColor=this.options.color.hover.border,e.shadow=this.options.shadow.enabled):typeof this.chooser=="function"&&(this.chooser(e,this.options.id,this.selected,this.hover),e.shadow===!1&&(e.shadowColor!==this.options.shadow.color||e.shadowSize!==this.options.shadow.size||e.shadowX!==this.options.shadow.x||e.shadowY!==this.options.shadow.y)&&(e.shadow=!0)):e.shadow=this.options.shadow.enabled,this.options.opacity!==void 0){const t=this.options.opacity;e.borderColor=lr(e.borderColor,t),e.color=lr(e.color,t),e.shadowColor=lr(e.shadowColor,t)}return e}updateLabelModule(e){(this.options.label===void 0||this.options.label===null)&&(this.options.label=""),Je.updateGroupOptions(this.options,bB(bB({},e),{},{color:e&&e.color||this._localColor||void 0}),this.grouplist);const t=this.grouplist.get(this.options.group,!1),i=[e,this.options,t,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,i),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}updateShape(e){if(e===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new Mre(this.options,this.body,this.labelModule);break;case"circle":this.shape=new Nre(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new Fre(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new Bre(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new Lre(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new jre(this.options,this.body,this.labelModule);break;case"dot":this.shape=new zre(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new mB(this.options,this.body,this.labelModule);break;case"icon":this.shape=new Hre(this.options,this.body,this.labelModule);break;case"image":this.shape=new Wre(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new Ure(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new Vre(this.options,this.body,this.labelModule);break;case"star":this.shape=new Kre(this.options,this.body,this.labelModule);break;case"text":this.shape=new Gre(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new Yre(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new Xre(this.options,this.body,this.labelModule);break;default:this.shape=new mB(this.options,this.body,this.labelModule);break}this.needsRefresh()}select(){this.selected=!0,this.needsRefresh()}unselect(){this.selected=!1,this.needsRefresh()}needsRefresh(){this.shape.refreshNeeded=!0}getTitle(){return this.options.title}distanceToBorder(e,t){return this.shape.distanceToBorder(e,t)}isFixed(){return this.options.fixed.x&&this.options.fixed.y}isSelected(){return this.selected}getValue(){return this.options.value}getLabelSize(){return this.labelModule.size()}setValueRange(e,t,i){if(this.options.value!==void 0){const n=this.options.scaling.customScalingFunction(e,t,i,this.options.value),s=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){const o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*o}this.options.size=this.options.scaling.min+n*s}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}draw(e){const t=this.getFormattingValues();return this.shape.draw(e,this.x,this.y,this.selected,this.hover,t)||{}}updateBoundingBox(e){this.shape.updateBoundingBox(this.x,this.y,e)}resize(e){const t=this.getFormattingValues();this.shape.resize(e,this.selected,this.hover,t)}getItemsOnPoint(e){const t=[];return this.labelModule.visible()&&Ew(this.labelModule.getSize(),e)&&t.push({nodeId:this.id,labelId:0}),Ew(this.shape.boundingBox,e)&&t.push({nodeId:this.id}),t}isOverlappingWith(e){return this.shape.lefte.left&&this.shape.tope.top}isBoundingBoxOverlappingWith(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}static checkMass(e,t){if(e.mass!==void 0&&e.mass<=0){let i="";t!==void 0&&(i=" in node id: "+t),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",sH),e.mass=1}}}class Jre{constructor(e,t,i,n){var s;if(this.body=e,this.images=t,this.groups=i,this.layoutEngine=n,this.body.functions.createNode=H(s=this.create).call(s,this),this.nodesListeners={add:(o,a)=>{this.add(a.items)},update:(o,a)=>{this.update(a.items,a.data,a.oldData)},remove:(o,a)=>{this.remove(a.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:void 0,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(o,a,u,l){if(a===o)return .5;{const c=1/(a-o);return Math.max(0,(l-o)*c)}}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1,coordinateOrigin:"center"},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=ji(this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e,t;this.body.emitter.on("refreshNodes",H(e=this.refresh).call(e,this)),this.body.emitter.on("refresh",H(t=this.refresh).call(t,this)),this.body.emitter.on("destroy",()=>{Te(this.nodesListeners,(i,n)=>{this.body.data.nodes&&this.body.data.nodes.off(n,i)}),delete this.body.functions.createNode,delete this.nodesListeners.add,delete this.nodesListeners.update,delete this.nodesListeners.remove,delete this.nodesListeners})}setOptions(e){if(e!==void 0){if(Je.parseOptions(this.options,e),e.opacity!==void 0&&(ww(e.opacity)||!gn(e.opacity)||e.opacity<0||e.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(const t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(const t of nt(this.body.nodes))this.body.nodes[t].updateLabelModule(),this.body.nodes[t].needsRefresh();if(e.size!==void 0)for(const t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].needsRefresh();(e.hidden!==void 0||e.physics!==void 0)&&this.body.emitter.emit("_dataChanged")}}setData(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.body.data.nodes;if(Z3("id",e))this.body.data.nodes=e;else if(st(e))this.body.data.nodes=new $u,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new $u;else throw new TypeError("Array or DataSet expected");if(i&&Te(this.nodesListeners,function(n,s){i.off(s,n)}),this.body.nodes={},this.body.data.nodes){const n=this;Te(this.nodesListeners,function(o,a){n.body.data.nodes.on(a,o)});const s=this.body.data.nodes.getIds();this.add(s,!0)}t===!1&&this.body.emitter.emit("_dataChanged")}add(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i;const n=[];for(let s=0;s1&&arguments[1]!==void 0?arguments[1]:Je;return new t(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}refresh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Te(this.body.nodes,(t,i)=>{const n=this.body.data.nodes.get(i);n!==void 0&&(e===!0&&t.setOptions({x:null,y:null}),t.setOptions({fixed:!1}),t.setOptions(n))})}getPositions(e){const t={};if(e!==void 0){if(st(e)===!0){for(let i=0;i{this.body.emitter.emit("startSimulation")},0)):console.error("Node id supplied to moveNode does not exist. Provided: ",e)}}var _B={},wB;function Qre(){if(wB)return _B;wB=1;var r=de(),e=Math.hypot,t=Math.abs,i=Math.sqrt,n=!!e&&e(1/0,NaN)!==1/0;return r({target:"Math",stat:!0,arity:2,forced:n},{hypot:function(o,a){for(var u=0,l=0,c=arguments.length,d=0,h,f;l0?(f=h/d,u+=f*f):u+=h;return d===1/0?1/0:d*i(u)}}),_B}var V1,EB;function Zre(){if(EB)return V1;EB=1,Qre();var r=je();return V1=r.Math.hypot,V1}var K1,SB;function eie(){if(SB)return K1;SB=1;var r=Zre();return K1=r,K1}var G1,OB;function tie(){return OB||(OB=1,G1=eie()),G1}var rie=tie(),iie=ge(rie);class ut{static transform(e,t){st(e)||(e=[e]);const i=t.point.x,n=t.point.y,s=t.angle,o=t.length;for(let a=0;a4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,t),e.lineWidth=t.width,t.dashes!==!1?this._drawDashedLine(e,t,s):this._drawLine(e,t,s)}_drawLine(e,t,i,n,s){if(this.from!=this.to)this._line(e,t,i,n,s);else{const[o,a,u]=this._getCircleData(e);this._circle(e,t,o,a,u)}}_drawDashedLine(e,t,i,n,s){e.lineCap="round";const o=st(t.dashes)?t.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(o),e.lineDashOffset=0,this.from!=this.to)this._line(e,t,i);else{const[a,u,l]=this._getCircleData(e);this._circle(e,t,a,u,l)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)l5(e,this.from.x,this.from.y,this.to.x,this.to.y,o);else{const[a,u,l]=this._getCircleData(e);this._circle(e,t,a,u,l)}this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}}findBorderPosition(e,t,i){return this.from!=this.to?this._findBorderPosition(e,t,i):this._findBorderPositionCircle(e,t,i)}findBorderPositions(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};{var t;const[i,n]=Nr(t=this._getCircleData(e)).call(t,0,2);return{from:this._findBorderPositionCircle(this.from,e,{x:i,y:n,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:i,y:n,low:.6,high:.8,direction:1})}}}_getCircleData(e){const t=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);const i=wH(e,this.options.selfReference.angle,t,this.from);return[i.x,i.y,t]}_pointOnCircle(e,t,i,n){const s=n*2*Math.PI;return{x:e+i*Math.cos(s),y:t-i*Math.sin(s)}}_findBorderPositionCircle(e,t,i){const n=i.x,s=i.y;let o=i.low,a=i.high;const u=i.direction,l=10,c=this.options.selfReference.size,d=.05;let h,f=(o+a)*.5,p=0;this.options.arrowStrikethrough===!0&&(u===-1?p=this.options.endPointOffset.from:u===1&&(p=this.options.endPointOffset.to));let v=0;do{f=(o+a)*.5,h=this._pointOnCircle(n,s,c,f);const _=Math.atan2(e.y-h.y,e.x-h.x),m=e.distanceToBorder(t,_)+p,g=Math.sqrt(Math.pow(h.x-e.x,2)+Math.pow(h.y-e.y,2)),E=m-g;if(Math.abs(E)0?u>0?o=f:a=f:u>0?a=f:o=f,++v}while(o<=a&&v1?c=1:c<0&&(c=0);const d=e+c*a,h=t+c*u,f=d-s,p=h-o;return Math.sqrt(f*f+p*p)}getArrowData(e,t,i,n,s,o){let a,u,l,c,d,h,f;const p=o.width;t==="from"?(l=this.from,c=this.to,d=o.fromArrowScale<0,h=Math.abs(o.fromArrowScale),f=o.fromArrowType):t==="to"?(l=this.to,c=this.from,d=o.toArrowScale<0,h=Math.abs(o.toArrowScale),f=o.toArrowType):(l=this.to,c=this.from,d=o.middleArrowScale<0,h=Math.abs(o.middleArrowScale),f=o.middleArrowType);const v=15*h+3*p;if(l!=c){const E=iie(l.x-c.x,l.y-c.y),y=v/E;if(t!=="middle")if(this.options.smooth.enabled===!0){const I=this._findBorderPosition(l,e,{via:i}),O=this.getPoint(I.t+y*(t==="from"?1:-1),i);a=Math.atan2(I.y-O.y,I.x-O.x),u=I}else a=Math.atan2(l.y-c.y,l.x-c.x),u=this._findBorderPosition(l,e);else{const I=(d?-y:y)/2,O=this.getPoint(.5+I,i),T=this.getPoint(.5-I,i);a=Math.atan2(O.y-T.y,O.x-T.x),u=this.getPoint(.5,i)}}else{const[E,y,I]=this._getCircleData(e);if(t==="from"){const O=this.options.selfReference.angle,T=this.options.selfReference.angle+Math.PI,b=this._findBorderPositionCircle(this.from,e,{x:E,y,low:O,high:T,direction:-1});a=b.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,u=b}else if(t==="to"){const O=this.options.selfReference.angle,T=this.options.selfReference.angle+Math.PI,b=this._findBorderPositionCircle(this.from,e,{x:E,y,low:O,high:T,direction:1});a=b.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,u=b}else{const O=this.options.selfReference.angle/(2*Math.PI);u=this._pointOnCircle(E,y,I,O),a=O*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}const _=u.x-v*.9*Math.cos(a),m=u.y-v*.9*Math.sin(a);return{point:u,core:{x:_,y:m},angle:a,length:v,type:f}}drawArrowHead(e,t,i,n,s){e.strokeStyle=this.getColor(e,t),e.fillStyle=e.strokeStyle,e.lineWidth=t.width,SH.draw(e,s)&&(this.enableShadow(e,t),Na(e).call(e),this.disableShadow(e,t))}enableShadow(e,t){t.shadow===!0&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}disableShadow(e,t){t.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}drawBackground(e,t){if(t.background!==!1){const i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=t.backgroundColor,e.lineWidth=t.backgroundSize,this.setStrokeDashed(e,t.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,t.dashes)}}setStrokeDashed(e,t){if(t!==!1)if(e.setLineDash!==void 0){const i=st(t)?t:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}function $B(r,e){var t=nt(r);if(Vi){var i=Vi(r);e&&(i=Yt(i).call(i,function(n){return rn(r,n).enumerable})),t.push.apply(t,i)}return t}function PB(r){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates();const n=10,s=.2;let o=!1,a=1,u=0,l=this.to,c,d,h=this.options.endPointOffset?this.options.endPointOffset.to:0;e.id===this.from.id&&(l=this.from,o=!0,h=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(h=0);let f=0;do{d=(u+a)*.5,c=this.getPoint(d,i);const p=Math.atan2(l.y-c.y,l.x-c.x),v=l.distanceToBorder(t,p)+h,_=Math.sqrt(Math.pow(c.x-l.x,2)+Math.pow(c.y-l.y,2)),m=v-_;if(Math.abs(m)0&&(l=this._getDistanceToLine(p,v,h,f,s,o),u=l{this.positionBezierNode()},this._body.emitter.on("_repositionBezierNodes",this._boundFunction)}setOptions(e){super.setOptions(e);let t=!1;this.options.physics!==e.physics&&(t=!0),this.options=e,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),t===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}connect(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}cleanup(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}setupSupportNode(){if(this.via===void 0){const e="edgeId:"+this.id,t=this._body.functions.createNode({id:e,shape:"circle",physics:!0,hidden:!0});this._body.nodes[e]=t,this.via=t,this.via.parentEdgeId=this.id,this.positionBezierNode()}}positionBezierNode(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}_line(e,t,i){this._bezierCurve(e,t,i)}_getViaCoordinates(){return this.via}getViaNode(){return this.via}getPoint(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){const[i,n,s]=this._getCircleData(),o=2*Math.PI*(1-e);return{x:i+s*Math.sin(o),y:n+s-s*(1-Math.cos(o))}}else return{x:Math.pow(1-e,2)*this.fromPoint.x+2*e*(1-e)*t.x+Math.pow(e,2)*this.toPoint.x,y:Math.pow(1-e,2)*this.fromPoint.y+2*e*(1-e)*t.y+Math.pow(e,2)*this.toPoint.y}}_findBorderPosition(e,t){return this._findBorderPositionBezier(e,t,this.via)}_getDistanceToEdge(e,t,i,n,s,o){return this._getDistanceToBezierEdge(e,t,i,n,s,o,this.via)}}class CB extends X0{constructor(e,t,i){super(e,t,i)}_line(e,t,i){this._bezierCurve(e,t,i)}getViaNode(){return this._getViaCoordinates()}_getViaCoordinates(){const e=this.options.smooth.roundness,t=this.options.smooth.type;let i=Math.abs(this.from.x-this.to.x),n=Math.abs(this.from.y-this.to.y);if(t==="discrete"||t==="diagonalCross"){let s,o;i<=n?s=o=e*n:s=o=e*i,this.from.x>this.to.x&&(s=-s),this.from.y>=this.to.y&&(o=-o);let a=this.from.x+s,u=this.from.y+o;return t==="discrete"&&(i<=n?a=ithis.to.x&&(s=-s),this.from.y>=this.to.y&&(o=-o);let a=this.from.x+s,u=this.from.y+o;return i<=n?this.from.x<=this.to.x?a=this.to.xa?this.to.x:a:this.from.y>=this.to.y?u=this.to.y>u?this.to.y:u:u=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(e,t,i.via)}_getDistanceToEdge(e,t,i,n,s,o){let a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(e,t,i,n,s,o,a)}getPoint(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates();const i=e,n=Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*t.x+Math.pow(i,2)*this.toPoint.x,s=Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*t.y+Math.pow(i,2)*this.toPoint.y;return{x:n,y:s}}}class gie extends X0{constructor(e,t,i){super(e,t,i)}_getDistanceToBezierEdge2(e,t,i,n,s,o,a,u){let l=1e9,c=e,d=t;const h=[0,0,0,0];for(let f=1;f<10;f++){const p=.1*f;h[0]=Math.pow(1-p,3),h[1]=3*p*Math.pow(1-p,2),h[2]=3*Math.pow(p,2)*(1-p),h[3]=Math.pow(p,3);const v=h[0]*e+h[1]*a.x+h[2]*u.x+h[3]*i,_=h[0]*t+h[1]*a.y+h[2]*u.y+h[3]*n;if(f>0){const m=this._getDistanceToLine(c,d,v,_,s,o);l=mMath.abs(t)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(n=this.from.y,o=this.to.y,i=this.from.x-a*e,s=this.to.x+a*e):(n=this.from.y-a*t,o=this.to.y+a*t,i=this.from.x,s=this.to.x),[{x:i,y:n},{x:s,y:o}]}getViaNode(){return this._getViaCoordinates()}_findBorderPosition(e,t){return this._findBorderPositionBezier(e,t)}_getDistanceToEdge(e,t,i,n,s,o){let[a,u]=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge2(e,t,i,n,s,o,a,u)}getPoint(e){let[t,i]=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates();const n=e,s=[Math.pow(1-n,3),3*n*Math.pow(1-n,2),3*Math.pow(n,2)*(1-n),Math.pow(n,3)],o=s[0]*this.fromPoint.x+s[1]*t.x+s[2]*i.x+s[3]*this.toPoint.x,a=s[0]*this.fromPoint.y+s[1]*t.y+s[2]*i.y+s[3]*this.toPoint.y;return{x:o,y:a}}}class qB extends OH{constructor(e,t,i){super(e,t,i)}_line(e,t){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),e.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}getViaNode(){}getPoint(e){return{x:(1-e)*this.fromPoint.x+e*this.toPoint.x,y:(1-e)*this.fromPoint.y+e*this.toPoint.y}}_findBorderPosition(e,t){let i=this.to,n=this.from;e.id===this.from.id&&(i=this.from,n=this.to);const s=Math.atan2(i.y-n.y,i.x-n.x),o=i.x-n.x,a=i.y-n.y,u=Math.sqrt(o*o+a*a),l=e.distanceToBorder(t,s),c=(u-l)/u;return{x:(1-c)*n.x+c*i.x,y:(1-c)*n.y+c*i.y,t:0}}_getDistanceToEdge(e,t,i,n,s,o){return this._getDistanceToLine(e,t,i,n,s,o)}}class zi{constructor(e,t,i,n,s){if(t===void 0)throw new Error("No body provided");this.options=ji(n),this.globalOptions=n,this.defaultOptions=s,this.body=t,this.imagelist=i,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new Os(this.body,this.options,!0),this.setOptions(e)}setOptions(e){if(!e)return;let t=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;zi.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=_H(e.value));const i=[e,this.options,this.defaultOptions];return this.chooser=G0("edge",i),this.updateLabelModule(e),t=this.updateEdgeType()||t,this._setInteractionWidths(),this.connect(),t}static parseOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(uo(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],e,t,i),t.endPointOffset!==void 0&&t.endPointOffset.from!==void 0&&(gn(t.endPointOffset.from)?e.endPointOffset.from=t.endPointOffset.from:(e.endPointOffset.from=n.endPointOffset.from!==void 0?n.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),t.endPointOffset!==void 0&&t.endPointOffset.to!==void 0&&(gn(t.endPointOffset.to)?e.endPointOffset.to=t.endPointOffset.to:(e.endPointOffset.to=n.endPointOffset.to!==void 0?n.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Du(t.label)?e.label=t.label:Du(e.label)||(e.label=void 0),ur(e,t,"smooth",n),ur(e,t,"shadow",n),ur(e,t,"background",n),t.dashes!==void 0&&t.dashes!==null?e.dashes=t.dashes:i===!0&&t.dashes===null&&(e.dashes=En(n.dashes)),t.scaling!==void 0&&t.scaling!==null?(t.scaling.min!==void 0&&(e.scaling.min=t.scaling.min),t.scaling.max!==void 0&&(e.scaling.max=t.scaling.max),ur(e.scaling,t.scaling,"label",n.scaling)):i===!0&&t.scaling===null&&(e.scaling=En(n.scaling)),t.arrows!==void 0&&t.arrows!==null)if(typeof t.arrows=="string"){const a=t.arrows.toLowerCase();e.arrows.to.enabled=Be(a).call(a,"to")!=-1,e.arrows.middle.enabled=Be(a).call(a,"middle")!=-1,e.arrows.from.enabled=Be(a).call(a,"from")!=-1}else if(typeof t.arrows=="object")ur(e.arrows,t.arrows,"to",n.arrows),ur(e.arrows,t.arrows,"middle",n.arrows),ur(e.arrows,t.arrows,"from",n.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+Ma(t.arrows));else i===!0&&t.arrows===null&&(e.arrows=En(n.arrows));if(t.color!==void 0&&t.color!==null){const a=Es(t.color)?{color:t.color,highlight:t.color,hover:t.color,inherit:!1,opacity:1}:t.color,u=e.color;if(s)Ke(u,n.color,!1,i);else for(const l in u)Object.prototype.hasOwnProperty.call(u,l)&&delete u[l];if(Es(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,a.opacity===void 0&&(u.opacity=1);else{let l=!1;a.color!==void 0&&(u.color=a.color,l=!0),a.highlight!==void 0&&(u.highlight=a.highlight,l=!0),a.hover!==void 0&&(u.hover=a.hover,l=!0),a.inherit!==void 0&&(u.inherit=a.inherit),a.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,a.opacity))),l===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else i===!0&&t.color===null&&(e.color=ji(n.color));i===!0&&t.font===null&&(e.font=ji(n.font)),Object.prototype.hasOwnProperty.call(t,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=t.selfReferenceSize)}getFormattingValues(){const e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,t=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,n=this.options.color.inherit,s={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:t,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:n?void 0:this.options.color.color,inheritsColor:n,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){const o=this.options.selectionWidth;typeof o=="function"?s.width=o(s.width):typeof o=="number"&&(s.width+=o),s.width=Math.max(s.width,.3/this.body.view.scale),s.color=this.options.color.highlight,s.shadow=this.options.shadow.enabled}else if(this.hover){const o=this.options.hoverWidth;typeof o=="function"?s.width=o(s.width):typeof o=="number"&&(s.width+=o),s.width=Math.max(s.width,.3/this.body.view.scale),s.color=this.options.color.hover,s.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(s,this.options.id,this.selected,this.hover),s.color!==void 0&&(s.inheritsColor=!1),s.shadow===!1&&(s.shadowColor!==this.options.shadow.color||s.shadowSize!==this.options.shadow.size||s.shadowX!==this.options.shadow.x||s.shadowY!==this.options.shadow.y)&&(s.shadow=!0));else s.shadow=this.options.shadow.enabled,s.width=Math.max(s.width,.3/this.body.view.scale);return s}updateLabelModule(e){const t=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,t),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}updateEdgeType(){const e=this.options.smooth;let t=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof RB&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof xB&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof CB&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof qB&&e.type.enabled===!1)&&(i=!1),i===!0&&(t=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(t=!0,this.edgeType=new RB(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new xB(this.options,this.body,this.labelModule):this.edgeType=new CB(this.options,this.body,this.labelModule):this.edgeType=new qB(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),t}connect(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}disconnect(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}getTitle(){return this.title}isSelected(){return this.selected}getValue(){return this.options.value}setValueRange(e,t,i){if(this.options.value!==void 0){const n=this.options.scaling.customScalingFunction(e,t,i,this.options.value),s=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){const o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*o}this.options.width=this.options.scaling.min+n*s}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}_setInteractionWidths(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}draw(e){const t=this.getFormattingValues();if(t.hidden)return;const i=this.edgeType.getViaNode();this.edgeType.drawLine(e,t,this.selected,this.hover,i),this.drawLabel(e,i)}drawArrows(e){const t=this.getFormattingValues();if(t.hidden)return;const i=this.edgeType.getViaNode(),n={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,t.fromArrow&&(n.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.fromPoint=n.from.core),t.fromArrowSrc&&(n.from.image=this.imagelist.load(t.fromArrowSrc)),t.fromArrowImageWidth&&(n.from.imageWidth=t.fromArrowImageWidth),t.fromArrowImageHeight&&(n.from.imageHeight=t.fromArrowImageHeight)),t.toArrow&&(n.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.toPoint=n.to.core),t.toArrowSrc&&(n.to.image=this.imagelist.load(t.toArrowSrc)),t.toArrowImageWidth&&(n.to.imageWidth=t.toArrowImageWidth),t.toArrowImageHeight&&(n.to.imageHeight=t.toArrowImageHeight)),t.middleArrow&&(n.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,t),t.middleArrowSrc&&(n.middle.image=this.imagelist.load(t.middleArrowSrc)),t.middleArrowImageWidth&&(n.middle.imageWidth=t.middleArrowImageWidth),t.middleArrowImageHeight&&(n.middle.imageHeight=t.middleArrowImageHeight)),t.fromArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.from),t.middleArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.middle),t.toArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.to)}drawLabel(e,t){if(this.options.label!==void 0){const i=this.from,n=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);let s;if(i.id!=n.id){this.labelModule.pointToSelf=!1,s=this.edgeType.getPoint(.5,t),e.save();const o=this._getRotation(e);o.angle!=0&&(e.translate(o.x,o.y),e.rotate(o.angle)),this.labelModule.draw(e,s.x,s.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;const o=wH(e,this.options.selfReference.angle,this.options.selfReference.size,i);s=this._pointOnCircle(o.x,o.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,s.x,s.y,this.selected,this.hover)}}}getItemsOnPoint(e){const t=[];if(this.labelModule.visible()){const n=this._getRotation();Ew(this.labelModule.getSize(),e,n)&&t.push({edgeId:this.id,labelId:0})}const i={left:e.x,top:e.y};return this.isOverlappingWith(i)&&t.push({edgeId:this.id}),t}isOverlappingWith(e){if(this.connected){const i=this.from.x,n=this.from.y,s=this.to.x,o=this.to.y,a=e.left,u=e.top;return this.edgeType.getDistanceToEdge(i,n,s,o,a,u)<10}else return!1}_getRotation(e){const t=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,t);e!==void 0&&this.labelModule.calculateLabelSize(e,this.selected,this.hover,i.x,i.y);const n={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible()||this.options.font.align==="horizontal")return n;const s=this.from.y-this.to.y,o=this.from.x-this.to.x;let a=Math.atan2(s,o);return(a<-1&&o<0||a>0&&o<0)&&(a+=Math.PI),n.angle=a,n}_pointOnCircle(e,t,i,n){return{x:e+i*Math.cos(n),y:t-i*Math.sin(n)}}select(){this.selected=!0}unselect(){this.selected=!1}cleanup(){return this.edgeType.cleanup()}remove(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}endPointsValid(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}class mie{constructor(e,t,i){var n;this.body=e,this.images=t,this.groups=i,this.body.functions.createEdge=H(n=this.create).call(n,this),this.edgesListeners={add:(s,o)=>{this.add(o.items)},update:(s,o)=>{this.update(o.items)},remove:(s,o)=>{this.remove(o.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,o,a,u){if(o===s)return .5;{const l=1/(o-s);return Math.max(0,(u-s)*l)}}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Ke(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e=this,t,i;this.body.emitter.on("_forceDisableDynamicCurves",function(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n==="dynamic"&&(n="continuous");let o=!1;for(const a in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,a)){const u=e.body.edges[a],l=e.body.data.edges.get(a);if(l!=null){const c=l.smooth;c!==void 0&&c.enabled===!0&&c.type==="dynamic"&&(n===void 0?u.setOptions({smooth:!1}):u.setOptions({smooth:{type:n}}),o=!0)}}s===!0&&o===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",()=>{this.reconnectEdges()}),this.body.emitter.on("refreshEdges",H(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",H(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",()=>{Te(this.edgesListeners,(n,s)=>{this.body.data.edges&&this.body.data.edges.off(s,n)}),delete this.body.functions.createEdge,delete this.edgesListeners.add,delete this.edgesListeners.update,delete this.edgesListeners.remove,delete this.edgesListeners})}setOptions(e){if(e!==void 0){zi.parseOptions(this.options,e,!0,this.defaultOptions,!0);let t=!1;if(e.smooth!==void 0)for(const i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(t=this.body.edges[i].updateEdgeType()||t);if(e.font!==void 0)for(const i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&this.body.edges[i].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||t===!0)&&this.body.emitter.emit("_dataChanged")}}setData(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.body.data.edges;if(Z3("id",e))this.body.data.edges=e;else if(st(e))this.body.data.edges=new $u,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new $u;else throw new TypeError("Array or DataSet expected");if(i&&Te(this.edgesListeners,(n,s)=>{i.off(s,n)}),this.body.edges={},this.body.data.edges){Te(this.edgesListeners,(s,o)=>{this.body.data.edges.on(o,s)});const n=this.body.data.edges.getIds();this.add(n,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),t===!1&&this.body.emitter.emit("_dataChanged")}add(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.body.edges,n=this.body.data.edges;for(let s=0;s1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length===0)return;const i=this.body.edges;Te(e,n=>{const s=i[n];s!==void 0&&s.remove()}),t&&this.body.emitter.emit("_dataChanged")}refresh(){Te(this.body.edges,(e,t)=>{const i=this.body.data.edges.get(t);i!==void 0&&e.setOptions(i)})}create(e){return new zi(e,this.body,this.images,this.options,this.defaultOptions)}reconnectEdges(){let e;const t=this.body.nodes,i=this.body.edges;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const n=i[e];n.from=null,n.to=null,n.connect()}}getConnectedNodes(e){const t=[];if(this.body.edges[e]!==void 0){const i=this.body.edges[e];i.fromId!==void 0&&t.push(i.fromId),i.toId!==void 0&&t.push(i.toId)}return t}_updateState(){this._addMissingEdges(),this._removeInvalidEdges()}_removeInvalidEdges(){const e=[];Te(this.body.edges,(t,i)=>{const n=this.body.nodes[t.toId],s=this.body.nodes[t.fromId];n!==void 0&&n.isCluster===!0||s!==void 0&&s.isCluster===!0||(n===void 0||s===void 0)&&e.push(i)}),this.remove(e,!1)}_addMissingEdges(){const e=this.body.data.edges;if(e==null)return;const t=this.body.edges,i=[];He(e).call(e,(n,s)=>{t[s]===void 0&&i.push(s)}),this.add(i,!0)}}class IH{constructor(e,t,i){this.body=e,this.physicsBody=t,this.barnesHutTree,this.setOptions(i),this._rng=Tl("BARNES HUT SOLVER")}setOptions(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}solve(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){let e;const t=this.body.nodes,i=this.physicsBody.physicsNodeIndices,n=i.length,s=this._formBarnesHutTree(t,i);this.barnesHutTree=s;for(let o=0;o0&&this._getForceContributions(s.root,e)}}_getForceContributions(e,t){this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)}_getForceContribution(e,t){if(e.childrenCount>0){const i=e.centerOfMass.x-t.x,n=e.centerOfMass.y-t.y,s=Math.sqrt(i*i+n*n);s*e.calcSize>this.thetaInversed?this._calculateForces(s,i,n,t,e):e.childrenCount===4?this._getForceContributions(e,t):e.children.data.id!=t.id&&this._calculateForces(s,i,n,t,e)}}_calculateForces(e,t,i,n,s){e===0&&(e=.1,t=e),this.overlapAvoidanceFactor<1&&n.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,e-n.shape.radius));const o=this.options.gravitationalConstant*s.mass*n.options.mass/Math.pow(e,3),a=t*o,u=i*o;this.physicsBody.forces[n.id].x+=a,this.physicsBody.forces[n.id].y+=u}_formBarnesHutTree(e,t){let i;const n=t.length;let s=e[t[0]].x,o=e[t[0]].y,a=e[t[0]].x,u=e[t[0]].y;for(let _=1;_0&&(ga&&(a=g),Eu&&(u=E))}const l=Math.abs(a-s)-Math.abs(u-o);l>0?(o-=.5*l,u+=.5*l):(s+=.5*l,a-=.5*l);const d=Math.max(1e-5,Math.abs(a-s)),h=.5*d,f=.5*(s+a),p=.5*(o+u),v={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:f-h,maxX:f+h,minY:p-h,maxY:p+h},size:d,calcSize:1/d,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(v.root);for(let _=0;_0&&this._placeInTree(v.root,i);return v}_updateBranchMass(e,t){const i=e.centerOfMass,n=e.mass+t.options.mass,s=1/n;i.x=i.x*e.mass+t.x*t.options.mass,i.x*=s,i.y=i.y*e.mass+t.y*t.options.mass,i.y*=s,e.mass=n;const o=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidtht.x?n.maxY>t.y?s="NW":s="SW":n.maxY>t.y?s="NE":s="SE",this._placeInRegion(e,t,s)}_placeInRegion(e,t,i){const n=e.children[i];switch(n.childrenCount){case 0:n.children.data=t,n.childrenCount=1,this._updateBranchMass(n,t);break;case 1:n.children.data.x===t.x&&n.children.data.y===t.y?(t.x+=this._rng(),t.y+=this._rng()):(this._splitBranch(n),this._placeInTree(n,t));break;case 4:this._placeInTree(n,t);break}}_splitBranch(e){let t=null;e.childrenCount===1&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),t!=null&&this._placeInTree(e,t)}_insertRegion(e,t){let i,n,s,o;const a=.5*e.size;switch(t){case"NW":i=e.range.minX,n=e.range.minX+a,s=e.range.minY,o=e.range.minY+a;break;case"NE":i=e.range.minX+a,n=e.range.maxX,s=e.range.minY,o=e.range.minY+a;break;case"SW":i=e.range.minX,n=e.range.minX+a,s=e.range.minY+a,o=e.range.maxY;break;case"SE":i=e.range.minX+a,n=e.range.maxX,s=e.range.minY+a,o=e.range.maxY;break}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:n,minY:s,maxY:o},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}_debug(e,t){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}_drawBranch(e,t,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=i,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}}class yie{constructor(e,t,i){this._rng=Tl("REPULSION SOLVER"),this.body=e,this.physicsBody=t,this.setOptions(i)}setOptions(e){this.options=e}solve(){let e,t,i,n,s,o,a,u;const l=this.body.nodes,c=this.physicsBody.physicsNodeIndices,d=this.physicsBody.forces,h=this.options.nodeDistance,f=-2/3/h,p=4/3;for(let v=0;v0){const o=s.edges.length+1,a=this.options.centralGravity*o*s.options.mass;n[s.id].x=t*a,n[s.id].y=i*a}}}class Sie{constructor(e){this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},ft(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("initPhysics",()=>{this.initPhysics()}),this.body.emitter.on("_layoutFailed",()=>{this.layoutFailed=!0}),this.body.emitter.on("resetPhysics",()=>{this.stopSimulation(),this.ready=!1}),this.body.emitter.on("disablePhysics",()=>{this.physicsEnabled=!1,this.stopSimulation()}),this.body.emitter.on("restorePhysics",()=>{this.setOptions(this.options),this.ready===!0&&this.startSimulation()}),this.body.emitter.on("startSimulation",()=>{this.ready===!0&&this.startSimulation()}),this.body.emitter.on("stopSimulation",()=>{this.stopSimulation()}),this.body.emitter.on("destroy",()=>{this.stopSimulation(!1),this.body.emitter.off()}),this.body.emitter.on("_dataChanged",()=>{this.updatePhysicsData()})}setOptions(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,qu(["stabilization"],this.options,e),ur(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());const t=this.options.wind;t&&((typeof t.x!="number"||ww(t.x))&&(t.x=0),(typeof t.y!="number"||ww(t.y))&&(t.y=0)),this.timestep=this.options.timestep}this.init()}init(){let e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new wie(this.body,this.physicsBody,e),this.edgesSolver=new Y1(this.body,this.physicsBody,e),this.gravitySolver=new Eie(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new yie(this.body,this.physicsBody,e),this.edgesSolver=new Y1(this.body,this.physicsBody,e),this.gravitySolver=new vu(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new bie(this.body,this.physicsBody,e),this.edgesSolver=new _ie(this.body,this.physicsBody,e),this.gravitySolver=new vu(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new IH(this.body,this.physicsBody,e),this.edgesSolver=new Y1(this.body,this.physicsBody,e),this.gravitySolver=new vu(this.body,this.physicsBody,e)),this.modelOptions=e}initPhysics(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}startSimulation(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=H(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}stopSimulation(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}simulationStep(){const e=Pu();this.physicsTick(),(Pu()-e<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}_emitStabilized(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&ai(()=>{this.body.emitter.emit("stabilized",{iterations:e}),this.startedStabilization=!1,this.stabilizationIterations=0},0)}physicsStep(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}adjustTimeStep(){this._evaluateStepQuality()===!0?this.timestep=1.2*this.timestep:this.timestep/1.2o))return!1;return!0}moveNodes(){const e=this.physicsBody.physicsNodeIndices;let t=0,i=0;const n=5;for(let s=0;so&&(e=e>0?o:-o),e}_performStep(e){const t=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);const n=this.physicsBody.velocities[e];return this.previousStates[e]={x:t.x,y:t.y,vx:n.x,vy:n.y},t.options.fixed.x===!1?(n.x=this.calculateComponentVelocity(n.x,i.x,t.options.mass),t.x+=n.x*this.timestep):(i.x=0,n.x=0),t.options.fixed.y===!1?(n.y=this.calculateComponentVelocity(n.y,i.y,t.options.mass),t.y+=n.y*this.timestep):(i.y=0,n.y=0),Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}_freezeNodes(){const e=this.body.nodes;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].x&&e[t].y){const i=e[t].options.fixed;this.freezeCache[t]={x:i.x,y:i.y},i.x=!0,i.y=!0}}_restoreFrozenNodes(){const e=this.body.nodes;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.freezeCache[t]!==void 0&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}stabilize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof e!="number"&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,ai(()=>this._stabilizationBatch(),0)}_startStabilizing(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}_stabilizationBatch(){const e=()=>this.stabilized===!1&&this.stabilizationIterations{this.body.emitter.emit("stabilizationProgress",{iterations:this.stabilizationIterations,total:this.targetIterations})};this._startStabilizing()&&t();let i=0;for(;e()&&i"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");X1=crypto.getRandomValues.bind(crypto)}return X1(Iie)}const $ie=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var AB={randomUUID:$ie};function Pie(r,e,t){var n;r=r||{};const i=r.random??((n=r.rng)==null?void 0:n.call(r))??Tie();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Oie(i)}function Mo(r,e,t){return AB.randomUUID&&!r?AB.randomUUID():Pie(r)}class Ht{constructor(){}static getRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,n=-1e9,s=1e9,o=-1e9,a;if(t.length>0)for(let u=0;ua.shape.boundingBox.left&&(s=a.shape.boundingBox.left),oa.shape.boundingBox.top&&(i=a.shape.boundingBox.top),n1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,n=-1e9,s=1e9,o=-1e9,a;if(t.length>0)for(let u=0;ua.x&&(s=a.x),oa.y&&(i=a.y),n{delete this.containedEdges[i.id]}),Te(t.containedNodes,(i,n)=>{this.containedNodes[n]=i}),t.containedNodes={},Te(t.containedEdges,(i,n)=>{this.containedEdges[n]=i}),t.containedEdges={},Te(t.edges,i=>{Te(this.edges,n=>{var s,o;const a=Be(s=n.clusteringEdgeReplacingIds).call(s,i.id);a!==-1&&(Te(i.clusteringEdgeReplacingIds,u=>{n.clusteringEdgeReplacingIds.push(u),this.body.edges[u].edgeReplacedById=n.id}),oi(o=n.clusteringEdgeReplacingIds).call(o,a,1))})}),t.edges=[]}}class Cie{constructor(e){this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},ft(this.options,this.defaultOptions),this.body.emitter.on("_resetData",()=>{this.clusteredNodes={},this.clusteredEdges={}})}clusterByHubsize(e,t){e===void 0?e=this._getHubSize():typeof e=="object"&&(t=this._checkOptions(e),e=this._getHubSize());const i=[];for(let n=0;n=e&&i.push(s.id)}for(let n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);const i={},n={};Te(this.body.nodes,(s,o)=>{s.options&&e.joinCondition(s.options)===!0&&(i[o]=s,Te(s.edges,a=>{this.clusteredEdges[a.id]===void 0&&(n[a.id]=a)}))}),this._cluster(i,n,e,t)}clusterByEdgeCount(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;t=this._checkOptions(t);const n=[],s={};let o,a,u;for(let l=0;l0&&nt(d).length>0&&v===!0){const m=function(){for(let g=0;g1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,t)}clusterBridges(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,t)}clusterByConnection(e,t){var i;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");const s=this.body.nodes[e];t=this._checkOptions(t,s),t.clusterNodeProperties.x===void 0&&(t.clusterNodeProperties.x=s.x),t.clusterNodeProperties.y===void 0&&(t.clusterNodeProperties.y=s.y),t.clusterNodeProperties.fixed===void 0&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=s.options.fixed.x,t.clusterNodeProperties.fixed.y=s.options.fixed.y);const o={},a={},u=s.id,l=Ht.cloneOptions(s);o[u]=s;for(let d=0;d-1&&(a[p.id]=p)}}this._cluster(o,a,t,n)}_createClusterEdges(e,t,i,n){let s,o,a,u,l,c;const d=nt(e),h=[];for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}_cluster(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const s=[];for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&this.clusteredNodes[c]!==void 0&&s.push(c);for(let c=0;cn?a.x:n,s=a.yo?a.y:o;return{x:.5*(i+n),y:.5*(s+o)}}openCluster(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");const n=this.body.nodes[e];if(n===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(n.isCluster!==!0||n.containedNodes===void 0||n.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");const s=this.findNode(e),o=Be(s).call(s,e)-1;if(o>=0){const c=s[o];this.body.nodes[c]._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}const a=n.containedNodes,u=n.containedEdges;if(t!==void 0&&t.releaseFunction!==void 0&&typeof t.releaseFunction=="function"){const c={},d={x:n.x,y:n.y};for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)){const p=this.body.nodes[f];c[f]={x:p.x,y:p.y}}const h=t.releaseFunction(d,c);for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)){const p=this.body.nodes[f];h[f]!==void 0&&(p.x=h[f].x===void 0?n.x:h[f].x,p.y=h[f].y===void 0?n.y:h[f].y)}}else Te(a,function(c){c.options.fixed.x===!1&&(c.x=n.x),c.options.fixed.y===!1&&(c.y=n.y)});for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=this.body.nodes[c];d.vx=n.vx,d.vy=n.vy,d.setOptions({physics:!0}),delete this.clusteredNodes[c]}const l=[];for(let c=0;c0&&on&&(n=l.edges.length),e+=l.edges.length,t+=Math.pow(l.edges.length,2),i+=1}e=e/i,t=t/i;const s=t-Math.pow(e,2),o=Math.sqrt(s);let a=Math.floor(e+2*o);return a>n&&(a=n),a}_createClusteredEdge(e,t,i,n,s){const o=Ht.cloneOptions(i,"edge");Ke(o,n),o.from=e,o.to=t,o.id="clusterEdge:"+Mo(),s!==void 0&&Ke(o,s);const a=this.body.functions.createEdge(o);return a.clusteringEdgeReplacingIds=[i.id],a.connect(),this.body.edges[a.id]=a,a}_clusterEdges(e,t,i,n){if(t instanceof zi){const s=t,o={};o[s.id]=s,t=o}if(e instanceof Je){const s=e,o={};o[s.id]=s,e=o}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");n===void 0&&(n=i.clusterEdgeProperties),this._createClusterEdges(e,t,i,n);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&this.body.edges[s]!==void 0){const o=this.body.edges[s];this._backupEdgeOptions(o),o.setOptions({physics:!1})}for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(this.clusteredNodes[s]={clusterId:i.id,node:this.body.nodes[s]},this.body.nodes[s].setOptions({physics:!1}))}_getClusterNodeForNode(e){if(e===void 0)return;const t=this.clusteredNodes[e];if(t===void 0)return;const i=t.clusterId;if(i!==void 0)return this.body.nodes[i]}_filter(e,t){const i=[];return Te(e,n=>{t(n)&&i.push(n)}),i}_updateState(){let e;const t=[],i={},n=u=>{Te(this.body.nodes,l=>{l.isCluster===!0&&u(l)})};for(e in this.clusteredNodes){if(!Object.prototype.hasOwnProperty.call(this.clusteredNodes,e))continue;this.body.nodes[e]===void 0&&t.push(e)}n(function(u){for(let l=0;l{const l=this.body.edges[u];(l===void 0||!l.endPointsValid())&&(i[u]=u)}),n(function(u){Te(u.containedEdges,(l,c)=>{!l.endPointsValid()&&!i[c]&&(i[c]=c)})}),Te(this.body.edges,(u,l)=>{let c=!0;const d=u.clusteringEdgeReplacingIds;if(d!==void 0){let h=0;Te(d,f=>{const p=this.body.edges[f];p!==void 0&&p.endPointsValid()&&(h+=1)}),c=h>0}(!u.endPointsValid()||!c)&&(i[l]=l)}),n(u=>{Te(i,l=>{delete u.containedEdges[l],Te(u.edges,(c,d)=>{if(c.id===l){u.edges[d]=null;return}c.clusteringEdgeReplacingIds=this._filter(c.clusteringEdgeReplacingIds,function(h){return!i[h]})}),u.edges=this._filter(u.edges,function(c){return c!==null})})}),Te(i,u=>{delete this.clusteredEdges[u]}),Te(i,u=>{delete this.body.edges[u]});const s=nt(this.body.edges);Te(s,u=>{const l=this.body.edges[u],c=this._isClusteredNode(l.fromId)||this._isClusteredNode(l.toId);if(c!==this._isClusteredEdge(l.id))if(c){const d=this._getClusterNodeForNode(l.fromId);d!==void 0&&this._clusterEdges(this.body.nodes[l.fromId],l,d);const h=this._getClusterNodeForNode(l.toId);h!==void 0&&this._clusterEdges(this.body.nodes[l.toId],l,h)}else delete this._clusterEdges[u],this._restoreEdge(l)});let o=!1,a=!0;for(;a;){const u=[];n(function(l){const c=nt(l.containedNodes).length,d=l.options.allowSingleNodeCluster===!0;(d&&c<1||!d&&c<2)&&u.push(l.id)});for(let l=0;l0,o=o||a}o&&this._updateState()}_isClusteredNode(e){return this.clusteredNodes[e]!==void 0}_isClusteredEdge(e){return this.clusteredEdges[e]!==void 0}}class xie{constructor(e,t){this.body=e,this.canvas=t,this.redrawRequested=!1,this.requestAnimationFrameRequestId=void 0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},ft(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e;this.body.emitter.on("dragStart",()=>{this.dragging=!0}),this.body.emitter.on("dragEnd",()=>{this.dragging=!1}),this.body.emitter.on("zoom",()=>{this.zooming=!0,window.clearTimeout(this.zoomTimeoutId),this.zoomTimeoutId=ai(()=>{var t;this.zooming=!1,H(t=this._requestRedraw).call(t,this)()},250)}),this.body.emitter.on("_resizeNodes",()=>{this._resizeNodes()}),this.body.emitter.on("_redraw",()=>{this.renderingActive===!1&&this._redraw()}),this.body.emitter.on("_blockRedraw",()=>{this.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",()=>{this.allowRedraw=!0,this.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",H(e=this._requestRedraw).call(e,this)),this.body.emitter.on("_startRendering",()=>{this.renderRequests+=1,this.renderingActive=!0,this._startRendering()}),this.body.emitter.on("_stopRendering",()=>{this.renderRequests-=1,this.renderingActive=this.renderRequests>0,this.requestAnimationFrameRequestId=void 0}),this.body.emitter.on("destroy",()=>{this.renderRequests=0,this.allowRedraw=!1,this.renderingActive=!1,window.cancelAnimationFrame(this.requestAnimationFrameRequestId),this.body.emitter.off()})}setOptions(e){e!==void 0&&uo(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,e)}_startRendering(){if(this.renderingActive===!0&&this.requestAnimationFrameRequestId===void 0){var e;this.requestAnimationFrameRequestId=window.requestAnimationFrame(H(e=this._renderStep).call(e,this),this.simulationInterval)}}_renderStep(){this.renderingActive===!0&&(this.requestAnimationFrameRequestId=void 0,this._startRendering(),this._redraw())}redraw(){this.body.emitter.emit("setSize"),this._redraw()}_requestRedraw(){this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,window.requestAnimationFrame(()=>{this._redraw(!1)}))}_redraw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;const t={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();const i=this.canvas.getContext(),n=this.canvas.frame.canvas.clientWidth,s=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,n,s),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){const{drawExternalLabels:o}=this._drawNodes(i,e);t.drawExternalLabels=o}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),t.drawExternalLabels!=null&&t.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,n,s)}}_resizeNodes(){this.canvas.setTransform();const e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);const t=this.body.nodes;let i;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i=t[n],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}_drawNodes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.body.nodes,n=this.body.nodeIndices;let s;const o=[],a=[],u=20,l=this.canvas.DOMtoCanvas({x:-u,y:-u}),c=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+u,y:this.canvas.frame.canvas.clientHeight+u}),d={top:l.y,left:l.x,bottom:c.y,right:c.x},h=[];for(let _=0;_{for(const _ of h)_()}}}_drawEdges(e){const t=this.body.edges,i=this.body.edgeIndices;for(let n=0;n{t.width!==0&&(this.body.view.translation.x=t.width*.5),t.height!==0&&(this.body.view.translation.y=t.height*.5)}),this.body.emitter.on("setSize",H(e=this.setSize).call(e,this)),this.body.emitter.on("destroy",()=>{this.hammerFrame.destroy(),this.hammer.destroy(),this._cleanUp()})}setOptions(e){if(e!==void 0&&uo(["width","height","autoResize"],this.options,e),this._cleanUp(),this.options.autoResize===!0){var t;if(window.ResizeObserver){const n=new ResizeObserver(()=>{this.setSize()===!0&&this.body.emitter.emit("_requestRedraw")}),{frame:s}=this;n.observe(s),this._cleanupCallbacks.push(()=>{n.unobserve(s)})}else{const n=Mie(()=>{this.setSize()===!0&&this.body.emitter.emit("_requestRedraw")},1e3);this._cleanupCallbacks.push(()=>{clearInterval(n)})}const i=H(t=this._onResize).call(t,this);window.addEventListener("resize",i),this._cleanupCallbacks.push(()=>{window.removeEventListener("resize",i)})}}_cleanUp(){var e,t,i;He(e=wn(t=oi(i=this._cleanupCallbacks).call(i,0)).call(t)).call(e,n=>{try{n()}catch(s){console.error(s)}})}_onResize(){this.setSize(),this.body.emitter.emit("_redraw")}_getCameraState(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}_setCameraState(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){const e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight;let i=this.cameraState.scale;e!=1&&t!=1?i=this.cameraState.scale*.5*(e+t):e!=1?i=this.cameraState.scale*e:t!=1&&(i=this.cameraState.scale*t),this.body.view.scale=i;const n=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),s={x:n.x-this.cameraState.position.x,y:n.y-this.cameraState.position.y};this.body.view.translation.x+=s.x*this.body.view.scale,this.body.view.translation.y+=s.y*this.body.view.scale}}_prepareValue(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(Be(e).call(e,"%")!==-1||Be(e).call(e,"px")!==-1)return e;if(Be(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}_create(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{const e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}_bindHammer(){this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new Ss(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:Ss.DIRECTION_ALL}),Mu(this.hammer,e=>{this.body.eventListeners.onTouch(e)}),this.hammer.on("tap",e=>{this.body.eventListeners.onTap(e)}),this.hammer.on("doubletap",e=>{this.body.eventListeners.onDoubleTap(e)}),this.hammer.on("press",e=>{this.body.eventListeners.onHold(e)}),this.hammer.on("panstart",e=>{this.body.eventListeners.onDragStart(e)}),this.hammer.on("panmove",e=>{this.body.eventListeners.onDrag(e)}),this.hammer.on("panend",e=>{this.body.eventListeners.onDragEnd(e)}),this.hammer.on("pinch",e=>{this.body.eventListeners.onPinch(e)}),this.frame.canvas.addEventListener("wheel",e=>{this.body.eventListeners.onMouseWheel(e)}),this.frame.canvas.addEventListener("mousemove",e=>{this.body.eventListeners.onMouseMove(e)}),this.frame.canvas.addEventListener("contextmenu",e=>{this.body.eventListeners.onContext(e)}),this.hammerFrame=new Ss(this.frame),TH(this.hammerFrame,e=>{this.body.eventListeners.onRelease(e)})}setSize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);let i=!1;const n=this.frame.canvas.width,s=this.frame.canvas.height,o=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t)this._getCameraState(o),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{const a=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),u=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==a||this.frame.canvas.height!==u)&&this._getCameraState(o),this.frame.canvas.width!==a&&(this.frame.canvas.width=a,i=!0),this.frame.canvas.height!==u&&(this.frame.canvas.height=u,i=!0)}return i===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(n/this.pixelRatio),oldHeight:Math.round(s/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}getContext(){return this.frame.canvas.getContext("2d")}_determinePixelRatio(){const e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");let t=1;typeof window<"u"&&(t=window.devicePixelRatio||1);const i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}_setPixelRatio(){this.pixelRatio=this._determinePixelRatio()}setTransform(){const e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}_XconvertDOMtoCanvas(e){return(e-this.body.view.translation.x)/this.body.view.scale}_XconvertCanvasToDOM(e){return e*this.body.view.scale+this.body.view.translation.x}_YconvertDOMtoCanvas(e){return(e-this.body.view.translation.y)/this.body.view.scale}_YconvertCanvasToDOM(e){return e*this.body.view.scale+this.body.view.translation.y}canvasToDOM(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}DOMtoCanvas(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}function Fie(r,e){const t=ft({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},r??{});if(!st(t.nodes))throw new TypeError("Nodes has to be an array of ids.");if(t.nodes.length===0&&(t.nodes=e),!(typeof t.minZoomLevel=="number"&&t.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof t.maxZoomLevel=="number"&&t.minZoomLevel<=t.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return t}class kie{constructor(e,t){var i,n;this.body=e,this.canvas=t,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",H(i=this.fit).call(i,this)),this.body.emitter.on("animationFinished",()=>{this.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",H(n=this.releaseNode).call(n,this))}setOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}fit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=Fie(e,this.body.nodeIndices);const i=this.canvas.frame.canvas.clientWidth,n=this.canvas.frame.canvas.clientHeight;let s,o;if(i===0||n===0)o=1,s=Ht.getRange(this.body.nodes,e.nodes);else if(t===!0){let l=0;for(const h in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,h)&&this.body.nodes[h].predefinedPosition===!0&&(l+=1);if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}s=Ht.getRange(this.body.nodes,e.nodes),o=12.662/(this.body.nodeIndices.length+7.4147)+.0964822;const d=Math.min(i/600,n/600);o*=d}else{this.body.emitter.emit("_resizeNodes"),s=Ht.getRange(this.body.nodes,e.nodes);const l=Math.abs(s.maxX-s.minX)*1.1,c=Math.abs(s.maxY-s.minY)*1.1,d=i/l,h=n/c;o=d<=h?d:h}o>e.maxZoomLevel?o=e.maxZoomLevel:o1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){const i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=i,t.lockedOnNode=e,this.moveTo(t)}else console.error("Node: "+e+" cannot be found.")}moveTo(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!gn(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!gn(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!gn(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!gn(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}animateView(e){if(e===void 0)return;this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;const t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:t.x-e.position.x,y:t.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var n;this.viewFunction=H(n=this._lockedRedraw).call(n,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var s;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=H(s=this._transitionRedraw).call(s,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}_lockedRedraw(){const e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:t.x-e.x,y:t.y-e.y},n=this.body.view.translation,s={x:n.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:n.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=s}releaseNode(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}_transitionRedraw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;const t=VZ[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=H(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}getScale(){return this.body.view.scale}getViewPosition(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}function NB(r){var e=r&&r.preventDefault||!1,t=r&&r.container||window,i={},n={keydown:{},keyup:{}},s={},o;for(o=97;o<=122;o++)s[String.fromCharCode(o)]={code:65+(o-97),shift:!1};for(o=65;o<=90;o++)s[String.fromCharCode(o)]={code:o,shift:!0};for(o=0;o<=9;o++)s[""+o]={code:48+o,shift:!1};for(o=1;o<=12;o++)s["F"+o]={code:111+o,shift:!1};for(o=0;o<=9;o++)s["num"+o]={code:96+o,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(c){l(c,"keydown")},u=function(c){l(c,"keyup")},l=function(c,d){if(n[d][c.keyCode]!==void 0){for(var h=n[d][c.keyCode],f=0;f{this.activated=!0,this.configureKeyboardBindings()}),this.body.emitter.on("deactivate",()=>{this.activated=!1,this.configureKeyboardBindings()}),this.body.emitter.on("destroy",()=>{this.keycharm!==void 0&&this.keycharm.destroy()}),this.options={}}setOptions(e){e!==void 0&&(this.options=e,this.create())}create(){this.options.navigationButtons===!0?this.iconsCreated===!1&&this.loadNavigationElements():this.iconsCreated===!0&&this.cleanNavigation(),this.configureKeyboardBindings()}cleanNavigation(){if(this.navigationHammers.length!=0){for(let e=0;e{this._stopMovement()}),this.navigationHammers.push(s),this.iconsCreated=!0}bindToRedraw(e){if(this.boundFunctions[e]===void 0){var t;this.boundFunctions[e]=H(t=this[e]).call(t,this),this.body.emitter.on("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_startRendering")}}unbindFromRedraw(e){this.boundFunctions[e]!==void 0&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[e])}_fit(){new Date().valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}_stopMovement(){for(const e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}_moveUp(){this.body.view.translation.y+=this.options.keyboard.speed.y}_moveDown(){this.body.view.translation.y-=this.options.keyboard.speed.y}_moveLeft(){this.body.view.translation.x+=this.options.keyboard.speed.x}_moveRight(){this.body.view.translation.x-=this.options.keyboard.speed.x}_zoomIn(){const e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=t/e,s=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,o=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=t,this.body.view.translation={x:s,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}_zoomOut(){const e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=t/e,s=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,o=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=t,this.body.view.translation={x:s,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}configureKeyboardBindings(){if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=NB({container:window,preventDefault:!0}):this.keycharm=NB({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var e,t,i,n,s,o,a,u,l,c,d,h,f,p,v,_,m,g,E,y,I,O,T,b;H(e=this.keycharm).call(e,"up",()=>{this.bindToRedraw("_moveUp")},"keydown"),H(t=this.keycharm).call(t,"down",()=>{this.bindToRedraw("_moveDown")},"keydown"),H(i=this.keycharm).call(i,"left",()=>{this.bindToRedraw("_moveLeft")},"keydown"),H(n=this.keycharm).call(n,"right",()=>{this.bindToRedraw("_moveRight")},"keydown"),H(s=this.keycharm).call(s,"=",()=>{this.bindToRedraw("_zoomIn")},"keydown"),H(o=this.keycharm).call(o,"num+",()=>{this.bindToRedraw("_zoomIn")},"keydown"),H(a=this.keycharm).call(a,"num-",()=>{this.bindToRedraw("_zoomOut")},"keydown"),H(u=this.keycharm).call(u,"-",()=>{this.bindToRedraw("_zoomOut")},"keydown"),H(l=this.keycharm).call(l,"[",()=>{this.bindToRedraw("_zoomOut")},"keydown"),H(c=this.keycharm).call(c,"]",()=>{this.bindToRedraw("_zoomIn")},"keydown"),H(d=this.keycharm).call(d,"pageup",()=>{this.bindToRedraw("_zoomIn")},"keydown"),H(h=this.keycharm).call(h,"pagedown",()=>{this.bindToRedraw("_zoomOut")},"keydown"),H(f=this.keycharm).call(f,"up",()=>{this.unbindFromRedraw("_moveUp")},"keyup"),H(p=this.keycharm).call(p,"down",()=>{this.unbindFromRedraw("_moveDown")},"keyup"),H(v=this.keycharm).call(v,"left",()=>{this.unbindFromRedraw("_moveLeft")},"keyup"),H(_=this.keycharm).call(_,"right",()=>{this.unbindFromRedraw("_moveRight")},"keyup"),H(m=this.keycharm).call(m,"=",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),H(g=this.keycharm).call(g,"num+",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),H(E=this.keycharm).call(E,"num-",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),H(y=this.keycharm).call(y,"-",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),H(I=this.keycharm).call(I,"[",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),H(O=this.keycharm).call(O,"]",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),H(T=this.keycharm).call(T,"pageup",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),H(b=this.keycharm).call(b,"pagedown",()=>{this.unbindFromRedraw("_zoomOut")},"keyup")}}}class Lie{constructor(e,t,i){var n,s,o,a,u,l,c,d,h,f,p,v,_;this.body=e,this.canvas=t,this.selectionHandler=i,this.navigationHandler=new Bie(e,t),this.body.eventListeners.onTap=H(n=this.onTap).call(n,this),this.body.eventListeners.onTouch=H(s=this.onTouch).call(s,this),this.body.eventListeners.onDoubleTap=H(o=this.onDoubleTap).call(o,this),this.body.eventListeners.onHold=H(a=this.onHold).call(a,this),this.body.eventListeners.onDragStart=H(u=this.onDragStart).call(u,this),this.body.eventListeners.onDrag=H(l=this.onDrag).call(l,this),this.body.eventListeners.onDragEnd=H(c=this.onDragEnd).call(c,this),this.body.eventListeners.onMouseWheel=H(d=this.onMouseWheel).call(d,this),this.body.eventListeners.onPinch=H(h=this.onPinch).call(h,this),this.body.eventListeners.onMouseMove=H(f=this.onMouseMove).call(f,this),this.body.eventListeners.onRelease=H(p=this.onRelease).call(p,this),this.body.eventListeners.onContext=H(v=this.onContext).call(v,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=H(_=this.getPointer).call(_,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0,autoFocus:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},ft(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("destroy",()=>{clearTimeout(this.popupTimer),delete this.body.functions.getPointer})}setOptions(e){e!==void 0&&(qu(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,e),ur(this.options,e,"keyboard"),e.tooltip&&(ft(this.options.tooltip,e.tooltip),e.tooltip.color&&(this.options.tooltip.color=mw(e.tooltip.color)))),this.navigationHandler.setOptions(this.options)}getPointer(e){return{x:e.x-zZ(this.canvas.frame.canvas),y:e.y-HZ(this.canvas.frame.canvas)}}onTouch(e){new Date().valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}onTap(e){const t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t)}onDoubleTap(e){const t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,t)}onHold(e){const t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t),this.selectionHandler.generateClickEvent("hold",e,t)}onRelease(e){if(new Date().valueOf()-this.touchTime>10){const t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,t),this.touchTime=new Date().valueOf()}}onContext(e){const t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,t)}checkSelectionChanges(e){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}_determineDifference(e,t){const i=function(n,s){const o=[];for(let a=0;a{const a=o.node;o.xFixed===!1&&(a.x=this.canvas._XconvertDOMtoCanvas(this.canvas._XconvertCanvasToDOM(o.x)+n)),o.yFixed===!1&&(a.y=this.canvas._YconvertDOMtoCanvas(this.canvas._YconvertCanvasToDOM(o.y)+s))}),this.body.emitter.emit("startSimulation")}else{if(e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,t,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(t.x),y:this.canvas._YconvertDOMtoCanvas(t.y)},this.body.emitter.emit("_requestRedraw")}if(this.options.dragView===!0&&!e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,t,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}const n=t.x-this.drag.pointer.x,s=t.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+n,y:this.drag.translation.y+s},this.body.emitter.emit("_requestRedraw")}}}onDragEnd(e){if(this.drag.dragging=!1,this.body.selectionBox.show){var t;this.body.selectionBox.show=!1;const i=this.body.selectionBox.position,n={minX:Math.min(i.start.x,i.end.x),minY:Math.min(i.start.y,i.end.y),maxX:Math.max(i.start.x,i.end.x),maxY:Math.max(i.start.y,i.end.y)},s=Yt(t=this.body.nodeIndices).call(t,a=>{const u=this.body.nodes[a];return u.x>=n.minX&&u.x<=n.maxX&&u.y>=n.minY&&u.y<=n.maxY});He(s).call(s,a=>this.selectionHandler.selectObject(this.body.nodes[a]));const o=this.getPointer(e.center);this.selectionHandler.commitAndEmit(o,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{const i=this.drag.selection;i&&i.length?(He(i).call(i,function(n){n.node.options.fixed.x=n.xFixed,n.node.options.fixed.y=n.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}onPinch(e){const t=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);const i=this.pinch.scale*e.scale;this.zoom(i,t)}zoom(e,t){if(this.options.zoomView===!0){const i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);let n;this.drag!==void 0&&this.drag.dragging===!0&&(n=this.canvas.DOMtoCanvas(this.drag.pointer));const s=this.body.view.translation,o=e/i,a=(1-o)*t.x+s.x*o,u=(1-o)*t.y+s.y*o;if(this.body.view.scale=e,this.body.view.translation={x:a,y:u},n!=null){const l=this.canvas.canvasToDOM(n);this.drag.pointer.x=l.x,this.drag.pointer.y=l.y}this.body.emitter.emit("_requestRedraw"),ithis._checkShowPopup(t),this.options.tooltipDelay))),this.options.hover===!0&&this.selectionHandler.hoverObject(e,t)}_checkShowPopup(e){const t=this.canvas._XconvertDOMtoCanvas(e.x),i=this.canvas._YconvertDOMtoCanvas(e.y),n={left:t,top:i,right:t,bottom:i},s=this.popupObj===void 0?void 0:this.popupObj.id;let o=!1,a="node";if(this.popupObj===void 0){const u=this.body.nodeIndices,l=this.body.nodes;let c;const d=[];for(let h=0;h0&&(this.popupObj=l[d[d.length-1]],o=!0)}if(this.popupObj===void 0&&o===!1){const u=this.body.edgeIndices,l=this.body.edges;let c;const d=[];for(let h=0;h0&&(this.popupObj=l[d[d.length-1]],a="edge")}this.popupObj!==void 0?this.popupObj.id!==s&&(this.popup===void 0&&(this.popup=new eee(this.canvas.frame)),this.popup.popupTargetType=a,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}_checkHidePopup(e){const t=this.selectionHandler._pointerToPositionObject(e);let i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),i===!0)){const n=this.selectionHandler.getNodeAt(e);i=n===void 0?!1:n.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}var FB={},kB={},BB;function jie(){if(BB)return kB;BB=1;var r=W0(),e=vH();return r("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),kB}var LB;function zie(){return LB||(LB=1,jie()),FB}var jB={},Z1,zB;function Jn(){if(zB)return Z1;zB=1;var r=Xs(),e=TypeError;return Z1=function(t){if(typeof t=="object"&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new e(r(t)+" is not a set")},Z1}var e_,HB;function Qn(){if(HB)return e_;HB=1;var r=nr(),e=gH(),t=r("Set"),i=t.prototype;return e_={Set:t,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:i},e_}var t_,WB;function Zn(){if(WB)return t_;WB=1;var r=er();return t_=function(e,t,i){for(var n=i?e:e.iterator,s=e.next,o,a;!(o=r(s,n)).done;)if(a=t(o.value),a!==void 0)return a},t_}var r_,UB;function za(){if(UB)return r_;UB=1;var r=Zn();return r_=function(e,t,i){return i?r(e.keys(),t,!0):e.forEach(t)},r_}var i_,VB;function J0(){if(VB)return i_;VB=1;var r=Qn(),e=za(),t=r.Set,i=r.add;return i_=function(n){var s=new t;return e(n,function(o){i(s,o)}),s},i_}var n_,KB;function Ha(){return KB||(KB=1,n_=function(r){return r.size}),n_}var s_,GB;function Hie(){return GB||(GB=1,s_=function(r){return{iterator:r,next:r.next,done:!1}}),s_}var o_,YB;function es(){if(YB)return o_;YB=1;var r=bi(),e=Ur(),t=er(),i=eo(),n=Hie(),s="Invalid size",o=RangeError,a=TypeError,u=Math.max,l=function(c,d){this.set=c,this.size=u(d,0),this.has=r(c.has),this.keys=r(c.keys)};return l.prototype={getIterator:function(){return n(e(t(this.keys,this.set)))},includes:function(c){return t(this.has,this.set,c)}},o_=function(c){e(c);var d=+c.size;if(d!==d)throw new a(s);var h=i(d);if(h<0)throw new o(s);return new l(c,h)},o_}var a_,XB;function Wie(){if(XB)return a_;XB=1;var r=Jn(),e=Qn(),t=J0(),i=Ha(),n=es(),s=za(),o=Zn(),a=e.has,u=e.remove;return a_=function(c){var d=r(this),h=n(c),f=t(d);return i(d)<=h.size?s(d,function(p){h.includes(p)&&u(f,p)}):o(h.getIterator(),function(p){a(f,p)&&u(f,p)}),f},a_}var u_,JB;function ts(){return JB||(JB=1,u_=function(){return!1}),u_}var QB;function Uie(){if(QB)return jB;QB=1;var r=de(),e=Wie(),t=Pe(),i=ts(),n=!i("difference",function(o){return o.size===0}),s=n||t(function(){var o={size:1,has:function(){return!0},keys:function(){var u=0;return{next:function(){var l=u++>1;return a.has(1)&&a.clear(),{done:l,value:2}}}}},a=new Set([1,2,3,4]);return a.difference(o).size!==3});return r({target:"Set",proto:!0,real:!0,forced:s},{difference:e}),jB}var ZB={},l_,eL;function Vie(){if(eL)return l_;eL=1;var r=Jn(),e=Qn(),t=Ha(),i=es(),n=za(),s=Zn(),o=e.Set,a=e.add,u=e.has;return l_=function(c){var d=r(this),h=i(c),f=new o;return t(d)>h.size?s(h.getIterator(),function(p){u(d,p)&&a(f,p)}):n(d,function(p){h.includes(p)&&a(f,p)}),f},l_}var tL;function Kie(){if(tL)return ZB;tL=1;var r=de(),e=Pe(),t=Vie(),i=ts(),n=!i("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return r({target:"Set",proto:!0,real:!0,forced:n},{intersection:t}),ZB}var rL={},c_,iL;function Gie(){if(iL)return c_;iL=1;var r=Jn(),e=Qn().has,t=Ha(),i=es(),n=za(),s=Zn(),o=z0();return c_=function(u){var l=r(this),c=i(u);if(t(l)<=c.size)return n(l,function(h){if(c.includes(h))return!1},!0)!==!1;var d=c.getIterator();return s(d,function(h){if(e(l,h))return o(d,"normal",!1)})!==!1},c_}var nL;function Yie(){if(nL)return rL;nL=1;var r=de(),e=Gie(),t=ts(),i=!t("isDisjointFrom",function(n){return!n});return r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:e}),rL}var sL={},d_,oL;function Xie(){if(oL)return d_;oL=1;var r=Jn(),e=Ha(),t=za(),i=es();return d_=function(s){var o=r(this),a=i(s);return e(o)>a.size?!1:t(o,function(u){if(!a.includes(u))return!1},!0)!==!1},d_}var aL;function Jie(){if(aL)return sL;aL=1;var r=de(),e=Xie(),t=ts(),i=!t("isSubsetOf",function(n){return n});return r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:e}),sL}var uL={},h_,lL;function Qie(){if(lL)return h_;lL=1;var r=Jn(),e=Qn().has,t=Ha(),i=es(),n=Zn(),s=z0();return h_=function(a){var u=r(this),l=i(a);if(t(u)0&&arguments[0]!==void 0?arguments[0]:()=>{};No(this,ln,new CL),No(this,cn,new CL),No(this,S_,void 0),Sw(S_,this,e)}get sizeNodes(){return Ve(ln,this).size}get sizeEdges(){return Ve(cn,this).size}getNodes(){return Ve(ln,this).getSelection()}getEdges(){return Ve(cn,this).getSelection()}addNodes(){Ve(ln,this).add(...arguments)}addEdges(){Ve(cn,this).add(...arguments)}deleteNodes(e){Ve(ln,this).delete(e)}deleteEdges(e){Ve(cn,this).delete(e)}clear(){Ve(ln,this).clear(),Ve(cn,this).clear()}commit(){const e={nodes:Ve(ln,this).commit(),edges:Ve(cn,this).commit()};for(var t=arguments.length,i=new Array(t),n=0;n{this.updateSelection()})}setOptions(e){e!==void 0&&uo(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,e)}selectOnPoint(e){let t=!1;if(this.options.selectable===!0){const i=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),i!==void 0&&(t=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return t}selectAdditionalOnPoint(e){let t=!1;if(this.options.selectable===!0){const i=this.getNodeAt(e)||this.getEdgeAt(e);i!==void 0&&(t=!0,i.isSelected()===!0?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return t}_initBaseEvent(e,t){const i={};return i.pointer={DOM:{x:t.x,y:t.y},canvas:this.canvas.DOMtoCanvas(t)},i.event=e,i}generateClickEvent(e,t,i,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;const o=this._initBaseEvent(t,i);if(s===!0)o.nodes=[],o.edges=[];else{const a=this.getSelection();o.nodes=a.nodes,o.edges=a.edges}n!==void 0&&(o.previousSelection=n),e=="click"&&(o.items=this.getClickedItems(i)),t.controlEdge!==void 0&&(o.controlEdge=t.controlEdge),this.body.emitter.emit(e,o)}selectObject(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;return e!==void 0?(e instanceof Je?(t===!0&&this._selectionAccumulator.addEdges(...e.edges),this._selectionAccumulator.addNodes(e)):this._selectionAccumulator.addEdges(e),!0):!1}deselectObject(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}_getAllNodesOverlappingWith(e){const t=[],i=this.body.nodes;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;const i=this._pointerToPositionObject(e),n=this._getAllNodesOverlappingWith(i);if(n.length>0)return t===!0?this.body.nodes[n[n.length-1]]:n[n.length-1]}_getEdgesOverlappingWith(e,t){const i=this.body.edges;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;const i=this.canvas.DOMtoCanvas(e);let n=10,s=null;const o=this.body.edges;for(let a=0;a0&&(this.generateClickEvent("deselectEdge",t,e,s),i=!0),n.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",t,e,s),i=!0),n.nodes.added.length>0&&(this.generateClickEvent("selectNode",t,e),i=!0),n.edges.added.length>0&&(this.generateClickEvent("selectEdge",t,e),i=!0),i===!0&&this.generateClickEvent("select",t,e)}getSelection(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}getSelectedNodes(){return this._selectionAccumulator.getNodes()}getSelectedEdges(){return this._selectionAccumulator.getEdges()}getSelectedNodeIds(){var e;return xs(e=this._selectionAccumulator.getNodes()).call(e,t=>t.id)}getSelectedEdgeIds(){var e;return xs(e=this._selectionAccumulator.getEdges()).call(e,t=>t.id)}setSelection(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((t.unselectAll||t.unselectAll===void 0)&&this.unselectAll(),e.nodes)for(const i of e.nodes){const n=this.body.nodes[i];if(!n)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(n,t.highlightEdges)}if(e.edges)for(const i of e.edges){const n=this.body.edges[i];if(!n)throw new RangeError('Edge with id "'+i+'" not found');this.selectObject(n)}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}selectNodes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}selectEdges(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}updateSelection(){for(const e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(const e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}getClickedItems(e){const t=this.canvas.DOMtoCanvas(e),i=[],n=this.body.nodeIndices,s=this.body.nodes;for(let u=n.length-1;u>=0;u--){const c=s[n[u]].getItemsOnPoint(t);i.push.apply(i,c)}const o=this.body.edgeIndices,a=this.body.edges;for(let u=o.length-1;u>=0;u--){const c=a[o[u]].getItemsOnPoint(t);i.push.apply(i,c)}return i}}var xL={},O_,qL;function yne(){if(qL)return O_;qL=1;var r=to(),e=Math.floor,t=function(i,n){var s=i.length;if(s<8)for(var o=1,a,u;o0;)i[u]=i[--u];u!==o++&&(i[u]=a)}else for(var l=e(s/2),c=t(r(i,0,l),n),d=t(r(i,l),n),h=c.length,f=d.length,p=0,v=0;p3)){if(d)return!0;if(f)return f<603;var T="",b,w,R,P;for(b=65;b<76;b++){switch(w=String.fromCharCode(b),b){case 66:case 69:case 70:case 72:R=3;break;case 68:case 71:R=4;break;default:R=2}for(P=0;P<47;P++)p.push({k:w+P,v:R})}for(p.sort(function(S,$){return $.v-S.v}),P=0;Po(w)?1:-1}};return r({target:"Array",proto:!0,forced:I},{sort:function(b){b!==void 0&&t(b);var w=i(this);if(y)return b===void 0?v(w):v(w,b);var R=[],P=n(w),S,$;for($=0;$=0:p>v;v+=_)v in f&&(d=l(d,f[v],v,h));return d}};return q_={left:o(!1),right:o(!0)},q_}var A_,HL;function Rne(){if(HL)return A_;HL=1;var r=P5();return A_=r==="NODE",A_}var WL;function Cne(){if(WL)return jL;WL=1;var r=de(),e=Pne().left,t=oo(),i=Pa(),n=Rne(),s=!n&&i>79&&i<83,o=s||!t("reduce");return r({target:"Array",proto:!0,forced:o},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),jL}var D_,UL;function xne(){if(UL)return D_;UL=1,Cne();var r=At();return D_=r("Array","reduce"),D_}var M_,VL;function qne(){if(VL)return M_;VL=1;var r=mt(),e=xne(),t=Array.prototype;return M_=function(i){var n=i.reduce;return i===t||r(t,i)&&n===t.reduce?e:n},M_}var N_,KL;function Ane(){if(KL)return N_;KL=1;var r=qne();return N_=r,N_}var F_,GL;function Dne(){return GL||(GL=1,F_=Ane()),F_}var Mne=Dne(),RH=ge(Mne);class CH{abstract(){throw new Error("Can't instantiate abstract class!")}fake_use(){}curveType(){return this.abstract()}getPosition(e){return this.fake_use(e),this.abstract()}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,t,i),this.abstract()}getTreeSize(e){return this.fake_use(e),this.abstract()}sort(e){this.fake_use(e),this.abstract()}fix(e,t){this.fake_use(e,t),this.abstract()}shift(e,t){this.fake_use(e,t),this.abstract()}}class Nne extends CH{constructor(e){super(),this.layout=e}curveType(){return"horizontal"}getPosition(e){return e.x}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(e,i),e.x=t}getTreeSize(e){const t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,e);return{min:t.min_x,max:t.max_x}}sort(e){Is(e).call(e,function(t,i){return t.x-i.x})}fix(e,t){e.y=this.layout.options.hierarchical.levelSeparation*t,e.options.fixed.y=!0}shift(e,t){this.layout.body.nodes[e].x+=t}}class Fne extends CH{constructor(e){super(),this.layout=e}curveType(){return"vertical"}getPosition(e){return e.y}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(e,i),e.y=t}getTreeSize(e){const t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,e);return{min:t.min_y,max:t.max_y}}sort(e){Is(e).call(e,function(t,i){return t.y-i.y})}fix(e,t){e.x=this.layout.options.hierarchical.levelSeparation*t,e.options.fixed.x=!0}shift(e,t){this.layout.body.nodes[e].y+=t}}var YL={},XL;function kne(){if(XL)return YL;XL=1;var r=de(),e=tn().every,t=oo(),i=t("every");return r({target:"Array",proto:!0,forced:!i},{every:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),YL}var k_,JL;function Bne(){if(JL)return k_;JL=1,kne();var r=At();return k_=r("Array","every"),k_}var B_,QL;function Lne(){if(QL)return B_;QL=1;var r=mt(),e=Bne(),t=Array.prototype;return B_=function(i){var n=i.every;return i===t||r(t,i)&&n===t.every?e:n},B_}var L_,ZL;function jne(){if(ZL)return L_;ZL=1;var r=Lne();return L_=r,L_}var j_,ej;function zne(){return ej||(ej=1,j_=jne()),j_}var Hne=zne(),xH=ge(Hne);function Wne(r,e){const t=new Di;return He(r).call(r,i=>{var n;He(n=i.edges).call(n,s=>{s.connected&&t.add(s)})}),He(t).call(t,i=>{const n=i.from.id,s=i.to.id;e[n]==null&&(e[n]=0),(e[s]==null||e[n]>=e[s])&&(e[s]=e[n]+1)}),e}function Une(r){return qH(e=>{var t,i;return xH(t=Yt(i=e.edges).call(i,n=>r.has(n.toId))).call(t,n=>n.to===e)},(e,t)=>t>e,"from",r)}function Vne(r){return qH(e=>{var t,i;return xH(t=Yt(i=e.edges).call(i,n=>r.has(n.toId))).call(t,n=>n.from===e)},(e,t)=>td+1+h.edges.length,0),a=t+"Id",u=t==="to"?1:-1;for(const[d,h]of i){if(!i.has(d)||!r(h))continue;s[d]=0;const f=[h];let p=0,v;for(;v=f.pop();){var l,c;if(!i.has(d))continue;const _=s[v.id]+u;if(He(l=Yt(c=v.edges).call(c,m=>m.connected&&m.to!==m.from&&m[t]!==v&&i.has(m.toId)&&i.has(m.fromId))).call(l,m=>{const g=m[a],E=s[g];(E==null||e(_,E))&&(s[g]=_,f.push(m[t]))}),p>o)return Wne(i,s);++p}}return s}class Kne{constructor(){this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}addRelation(e,t){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(t),this.parentReference[t]===void 0&&(this.parentReference[t]=[]),this.parentReference[t].push(e)}checkIfTree(){for(const e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}numTrees(){return this.treeIndex+1}setTreeIndex(e,t){t!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=t,this.treeIndex=Math.max(t,this.treeIndex))}ensureLevel(e){this.levels[e]===void 0&&(this.levels[e]=0)}getMaxLevel(e){const t={},i=n=>{if(t[n]!==void 0)return t[n];let s=this.levels[n];if(this.childrenReference[n]){const o=this.childrenReference[n];if(o.length>0)for(let a=0;as-o);for(const s of n)t.set(s,i++);for(const s in this.levels)Object.prototype.hasOwnProperty.call(this.levels,s)&&(this.levels[s]=t.get(this.levels[s]))}getTreeSize(e,t){let i=1e9,n=-1e9,s=1e9,o=-1e9;for(const a in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,a)&&this.trees[a]===t){const u=e[a];i=Math.min(u.x,i),n=Math.max(u.x,n),s=Math.min(u.y,s),o=Math.max(u.y,o)}return{min_x:i,max_x:n,min_y:s,max_y:o}}hasSameParent(e,t){const i=this.parentReference[e.id],n=this.parentReference[t.id];if(i===void 0||n===void 0)return!1;for(let s=0;s{this.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",()=>{this.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",()=>{this.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",()=>{if(this.options.hierarchical.enabled!==!0)return;const e=this.direction.curveType();this.body.emitter.emit("_forceDisableDynamicCurves",e,!1)})}setOptions(e,t){if(e!==void 0){const i=this.options.hierarchical,n=i.enabled;if(uo(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),ur(this.options,e,"hierarchical"),e.randomSeed!==void 0&&this._resetRNG(e.randomSeed),i.enabled===!0)return n===!0&&this.body.emitter.emit("refresh",!0),i.direction==="RL"||i.direction==="DU"?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(n===!0)return this.body.emitter.emit("refresh"),Ke(t,this.optionsBackup)}return t}_resetRNG(e){this.initialRandomSeed=e,this._rng=Tl(this.initialRandomSeed)}adaptAllOptionsForHierarchicalLayout(e){if(this.options.hierarchical.enabled===!0){const t=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:t.enabled===void 0?!0:t.enabled,solver:"hierarchicalRepulsion"},t.enabled=t.enabled===void 0?!0:t.enabled,t.solver=t.solver||"barnesHut"):typeof e.physics=="object"?(t.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,t.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(t.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});let i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{const n=e.edges.smooth;n.type!==void 0&&n.type!=="dynamic"&&(i=n.type),this.optionsBackup.edges={smooth:{enabled:n.enabled===void 0?!0:n.enabled,type:n.type===void 0?"dynamic":n.type,roundness:n.roundness===void 0?.5:n.roundness,forceDirection:n.forceDirection===void 0?!1:n.forceDirection}},e.edges.smooth={enabled:n.enabled===void 0?!0:n.enabled,type:i,roundness:n.roundness===void 0?.5:n.roundness,forceDirection:n.forceDirection===void 0?!1:n.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}positionInitially(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);const t=e.length+50;for(let i=0;is){const u=e.length;for(;e.length>s&&n<=10;){n+=1;const l=e.length;n%3===0?this.body.modules.clustering.clusterBridges(o):this.body.modules.clustering.clusterOutliers(o);const c=e.length;if(l==c&&n%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}n>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();const a=70;for(let u=0;u0){let e,t,i=!1,n=!1;this.lastNodeOnLevel={},this.hierarchical=new Kne;for(t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&(e=this.body.nodes[t],e.options.level!==void 0?(i=!0,this.hierarchical.levels[t]=e.options.level):n=!0);if(n===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");{if(n===!0){const o=this.options.hierarchical.sortMethod;o==="hubsize"?this._determineLevelsByHubsize():o==="directed"?this._determineLevelsDirected():o==="custom"&&this._determineLevelsCustomCallback()}for(const o in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,o)&&this.hierarchical.ensureLevel(o);const s=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(s),this._condenseHierarchy(),this._shiftToCenter()}}}_condenseHierarchy(){var e=this;let t=!1;const i={},n=()=>{const m=o();let g=0;for(let E=0;E{const E=this.hierarchical.trees;for(const y in E)Object.prototype.hasOwnProperty.call(E,y)&&E[y]===m&&this.direction.shift(y,g)},o=()=>{const m=[];for(let g=0;g{if(!g[m.id]&&(g[m.id]=!0,this.hierarchical.childrenReference[m.id])){const E=this.hierarchical.childrenReference[m.id];if(E.length>0)for(let y=0;y1&&arguments[1]!==void 0?arguments[1]:1e9,E=1e9,y=1e9,I=1e9,O=-1e9;for(const T in m)if(Object.prototype.hasOwnProperty.call(m,T)){const b=e.body.nodes[T],w=e.hierarchical.levels[b.id],R=e.direction.getPosition(b),[P,S]=e._getSpaceAroundNode(b,m);E=Math.min(P,E),y=Math.min(S,y),w<=g&&(I=Math.min(R,I),O=Math.max(R,O))}return[I,O,E,y]},l=(m,g)=>{const E=this.hierarchical.getMaxLevel(m.id),y=this.hierarchical.getMaxLevel(g.id);return Math.min(E,y)},c=(m,g,E)=>{const y=this.hierarchical;for(let I=0;I1)for(let b=0;b2&&arguments[2]!==void 0?arguments[2]:!1;const y=e.direction.getPosition(m),I=e.direction.getPosition(g),O=Math.abs(I-y),T=e.options.hierarchical.nodeSpacing;if(O>T){const b={},w={};a(m,b),a(g,w);const R=l(m,g),P=u(b,R),S=u(w,R),$=P[1],q=S[0],F=S[2];if(Math.abs($-q)>T){let z=$-q+T;z<-F+T&&(z=-F+T),z<0&&(e._shiftBlock(g.id,z),t=!0,E===!0&&e._centerParent(g))}}},h=(m,g)=>{const E=g.id,y=g.edges,I=this.hierarchical.levels[g.id],O=this.options.hierarchical.levelSeparation*this.options.hierarchical.levelSeparation,T={},b=[];for(let F=0;F{let z=0;for(let te=0;te{let z=0;for(let te=0;te{let z=this.direction.getPosition(g);const te={};for(let pe=0;pe{const Z=this.direction.getPosition(g);if(i[g.id]===void 0){const me={};a(g,me),i[g.id]=me}const z=u(i[g.id]),te=z[2],pe=z[3],we=F-Z;let re=0;we>0?re=Math.min(we,pe-this.options.hierarchical.nodeSpacing):we<0&&(re=-Math.min(-we,te-this.options.hierarchical.nodeSpacing)),re!=0&&(this._shiftBlock(g.id,re),t=!0)},$=F=>{const Z=this.direction.getPosition(g),[z,te]=this._getSpaceAroundNode(g),pe=F-Z;let we=Z;pe>0?we=Math.min(Z+(te-this.options.hierarchical.nodeSpacing),F):pe<0&&(we=Math.max(Z-(z-this.options.hierarchical.nodeSpacing),F)),we!==Z&&(this.direction.setPosition(g,we),t=!0)};let q=P(m,b);S(q),q=P(m,y),$(q)},f=m=>{let g=this.hierarchical.getLevels();g=wn(g).call(g);for(let E=0;E{let g=this.hierarchical.getLevels();g=wn(g).call(g);for(let E=0;E{for(const m in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,m)&&this._centerParent(this.body.nodes[m])},_=()=>{let m=this.hierarchical.getLevels();m=wn(m).call(m);for(let g=0;g0&&Math.abs(d)0&&(l=this.direction.getPosition(n[o-1])+u),this.direction.setPosition(a,l,i),this._validatePositionAndContinue(a,i,l),s++}}}}_placeBranchNodes(e,t){var i;const n=this.hierarchical.childrenReference[e];if(n===void 0)return;const s=[];for(let a=0;at&&this.positionedNodes[u.id]===void 0){const c=this.options.hierarchical.nodeSpacing;let d;a===0?d=this.direction.getPosition(this.body.nodes[e]):d=this.direction.getPosition(s[a-1])+c,this.direction.setPosition(u,d,l),this._validatePositionAndContinue(u,l,d)}else return}const o=this._getCenterPosition(s);this.direction.setPosition(this.body.nodes[e],o,t)}_validatePositionAndContinue(e,t,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[t]!==void 0){const n=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[t]]);if(i-n{var n;Be(n=this.body.edgeIndices).call(n,i.id)!==-1&&t.push(i)}),t}_getHubSizes(){const e={},t=this.body.nodeIndices;Te(t,n=>{const s=this.body.nodes[n],o=this._getActiveEdges(s).length;e[o]=!0});const i=[];return Te(e,n=>{i.push(Number(n))}),Is(i).call(i,function(n,s){return s-n}),i}_determineLevelsByHubsize(){const e=(i,n)=>{this.hierarchical.levelDownstream(i,n)},t=this._getHubSizes();for(let i=0;i{const o=this.body.nodes[s];n===this._getActiveEdges(o).length&&this._crawlNetwork(e,s)})}}_determineLevelsCustomCallback(){const t=function(n,s,o){},i=(n,s,o)=>{let a=this.hierarchical.levels[n.id];a===void 0&&(a=this.hierarchical.levels[n.id]=1e5);const u=t(Ht.cloneOptions(n,"node"),Ht.cloneOptions(s,"node"),Ht.cloneOptions(o,"edge"));this.hierarchical.levels[s.id]=a+u};this._crawlNetwork(i),this.hierarchical.setMinLevelToZero()}_determineLevelsDirected(){var e;const t=RH(e=this.body.nodeIndices).call(e,(i,n)=>(i.set(n,this.body.nodes[n]),i),new K0);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=Vne(t):this.hierarchical.levels=Une(t),this.hierarchical.setMinLevelToZero()}_generateMap(){const e=(t,i)=>{this.hierarchical.levels[i.id]>this.hierarchical.levels[t.id]&&this.hierarchical.addRelation(t.id,i.id)};this._crawlNetwork(e),this.hierarchical.checkIfTree()}_crawlNetwork(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},t=arguments.length>1?arguments[1]:void 0;const i={},n=(s,o)=>{if(i[s.id]===void 0){this.hierarchical.setTreeIndex(s,o),i[s.id]=!0;let a;const u=this._getActiveEdges(s);for(let l=0;l{if(i[s])return;i[s]=!0,this.direction.shift(s,t);const o=this.hierarchical.childrenReference[s];if(o!==void 0)for(let a=0;a{const u=this.hierarchical.parentReference[a];if(u!==void 0)for(let l=0;l{const u=this.hierarchical.parentReference[a];if(u!==void 0)for(let l=0;l{this._clean()}),this.body.emitter.on("_dataChanged",H(s=this._restore).call(s,this)),this.body.emitter.on("_resetData",H(o=this._restore).call(o,this))}_restore(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}setOptions(e,t,i){t!==void 0&&(t.locale!==void 0?this.options.locale=t.locale:this.options.locale=i.locale,t.locales!==void 0?this.options.locales=t.locales:this.options.locales=i.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,Ke(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}toggleEditMode(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}enableEditMode(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}disableEditMode(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}showManipulatorToolbar(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,t;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";const i=this.selectionHandler.getSelectedNodeCount(),n=this.selectionHandler.getSelectedEdgeCount(),s=i+n,o=this.options.locales[this.options.locale];let a=!1;this.options.addNode!==!1&&(this._createAddNodeButton(o),a=!0),this.options.addEdge!==!1&&(a===!0?this._createSeperator(1):a=!0,this._createAddEdgeButton(o)),i===1&&typeof this.options.editNode=="function"?(a===!0?this._createSeperator(2):a=!0,this._createEditNodeButton(o)):n===1&&i===0&&this.options.editEdge!==!1&&(a===!0?this._createSeperator(3):a=!0,this._createEditEdgeButton(o)),s!==0&&(i>0&&this.options.deleteNode!==!1?(a===!0&&this._createSeperator(4),this._createDeleteButton(o)):i===0&&this.options.deleteEdge!==!1&&(a===!0&&this._createSeperator(4),this._createDeleteButton(o))),this._bindElementEvents(this.closeDiv,H(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",H(t=this.showManipulatorToolbar).call(t,this))}this.body.emitter.emit("_redraw")}addNodeMode(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var t;const i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,H(t=this.toggleEditMode).call(t,this))}this._temporaryBindEvent("click",H(e=this._performAddNode).call(e,this))}editNode(){this.editMode!==!0&&this.enableEditMode(),this._clean();const e=this.selectionHandler.getSelectedNodes()[0];if(e!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(e.isCluster!==!0){const t=Ke({},e.options,!1);if(t.x=e.x,t.y=e.y,this.options.editNode.length===2)this.options.editNode(t,i=>{i!=null&&this.inMode==="editNode"&&this.body.data.nodes.getDataSet().update(i),this.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}addEdgeMode(){var e,t,i,n,s;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var o;const a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,H(o=this.toggleEditMode).call(o,this))}this._temporaryBindUI("onTouch",H(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",H(t=this._finishConnect).call(t,this)),this._temporaryBindUI("onDrag",H(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",H(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDragStart",H(s=this._dragStartEdge).call(s,this)),this._temporaryBindUI("onHold",()=>{})}editEdgeMode(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",typeof this.options.editEdge=="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){const o=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(o.from.id,o.to.id);return}if(this.guiEnabled===!0){var e;const o=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(o),this._createSeperator(),this._createDescription(o.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,H(e=this.toggleEditMode).call(e,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var t,i,n,s;const o=this.body.edges[this.edgeBeingEditedId],a=this._getNewTargetNode(o.from.x,o.from.y),u=this._getNewTargetNode(o.to.x,o.to.y);this.temporaryIds.nodes.push(a.id),this.temporaryIds.nodes.push(u.id),this.body.nodes[a.id]=a,this.body.nodeIndices.push(a.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this._temporaryBindUI("onTouch",H(t=this._controlNodeTouch).call(t,this)),this._temporaryBindUI("onTap",()=>{}),this._temporaryBindUI("onHold",()=>{}),this._temporaryBindUI("onDragStart",H(i=this._controlNodeDragStart).call(i,this)),this._temporaryBindUI("onDrag",H(n=this._controlNodeDrag).call(n,this)),this._temporaryBindUI("onDragEnd",H(s=this._controlNodeDragEnd).call(s,this)),this._temporaryBindUI("onMouseMove",()=>{}),this._temporaryBindEvent("beforeDrawing",l=>{const c=o.edgeType.findBorderPositions(l);a.selected===!1&&(a.x=c.from.x,a.y=c.from.y),u.selected===!1&&(u.x=c.to.x,u.y=c.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}deleteSelected(){this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";const e=this.selectionHandler.getSelectedNodeIds(),t=this.selectionHandler.getSelectedEdgeIds();let i;if(e.length>0){for(let n=0;n0&&typeof this.options.deleteEdge=="function"&&(i=this.options.deleteEdge);if(typeof i=="function"){const n={nodes:e,edges:t};if(i.length===2)i(n,s=>{s!=null&&this.inMode==="delete"?(this.body.data.edges.getDataSet().remove(s.edges),this.body.data.nodes.getDataSet().remove(s.nodes),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()):(this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(t),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}_setup(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}_createWrappers(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,t;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(t=this.options.locales[this.options.locale])===null||t===void 0?void 0:t.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}_getNewTargetNode(e,t){const i=Ke({},this.options.controlNodeStyle);i.id="targetNode"+Mo(),i.hidden=!1,i.physics=!1,i.x=e,i.y=t;const n=this.body.functions.createNode(i);return n.shape.boundingBox={left:e,right:e,top:t,bottom:t},n}_createEditButton(){var e;this._clean(),this.manipulationDOM={},xi(this.editModeDiv);const t=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",t.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,H(e=this.toggleEditMode).call(e,this))}_clean(){this.inMode=!1,this.guiEnabled===!0&&(xi(this.editModeDiv),xi(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}_cleanupDOMEventListeners(){for(const t of oi(e=this._domEventListenerCleanupQueue).call(e,0)){var e;t()}}_removeManipulationDOM(){this._clean(),xi(this.manipulationDiv),xi(this.editModeDiv),xi(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}_createSeperator(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}_createAddNodeButton(e){var t;const i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.addNodeMode).call(t,this))}_createAddEdgeButton(e){var t;const i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.addEdgeMode).call(t,this))}_createEditNodeButton(e){var t;const i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.editNode).call(t,this))}_createEditEdgeButton(e){var t;const i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.editEdgeMode).call(t,this))}_createDeleteButton(e){var t;let i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";const n=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,H(t=this.deleteSelected).call(t,this))}_createBackButton(e){var t;const i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.showManipulatorToolbar).call(t,this))}_createButton(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+t,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=n,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}_createDescription(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}_temporaryBindEvent(e,t){this.temporaryEventFunctions.push({event:e,boundFunction:t}),this.body.emitter.on(e,t)}_temporaryBindUI(e,t){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=t;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+Ma(nt(this.body.eventListeners)))}_unbindTemporaryUIs(){for(const e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}_unbindTemporaryEvents(){for(let e=0;e{i.destroy()});const n=s=>{let{keyCode:o,key:a}=s;(a==="Enter"||a===" "||o===13||o===32)&&t()};e.addEventListener("keyup",n,!1),this._domEventListenerCleanupQueue.push(()=>{e.removeEventListener("keyup",n,!1)})}_cleanupTemporaryNodesAndEdges(){for(let s=0;s=0;a--)if(s[a]!==this.selectedControlNode.id){o=this.body.nodes[s[a]];break}if(o!==void 0&&this.selectedControlNode!==void 0)if(o.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{const a=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===a.id?this._performEditEdge(o.id,n.to.id):this._performEditEdge(n.from.id,o.id)}else n.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}_handleConnect(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=ft({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;const t=this.lastTouch,i=this.selectionHandler.getNodeAt(t);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{const n=this._getNewTargetNode(i.x,i.y);this.body.nodes[n.id]=n,this.body.nodeIndices.push(n.id);const s=this.body.functions.createEdge({id:"connectionEdge"+Mo(),from:i.id,to:n.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[s.id]=s,this.body.edgeIndices.push(s.id),this.temporaryIds.nodes.push(n.id),this.temporaryIds.edges.push(s.id)}this.touchTime=new Date().valueOf()}}_dragControlNode(e){const t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t);let n;this.temporaryIds.edges[0]!==void 0&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);const s=this.selectionHandler._getAllNodesOverlappingWith(i);let o;for(let u=s.length-1;u>=0;u--){var a;if(Be(a=this.temporaryIds.nodes).call(a,s[u])===-1){o=this.body.nodes[s[u]];break}}if(e.controlEdge={from:n,to:o?o.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,t),this.temporaryIds.nodes[0]!==void 0){const u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(t.x),u.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}_finishConnect(e){const t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t);let n;this.temporaryIds.edges[0]!==void 0&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);const s=this.selectionHandler._getAllNodesOverlappingWith(i);let o;for(let u=s.length-1;u>=0;u--){var a;if(Be(a=this.temporaryIds.nodes).call(a,s[u])===-1){o=this.body.nodes[s[u]];break}}this._cleanupTemporaryNodesAndEdges(),o!==void 0&&(o.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[n]!==void 0&&this.body.nodes[o.id]!==void 0&&this._performAddEdge(n,o.id)),e.controlEdge={from:n,to:o?o.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,t),this.body.emitter.emit("_redraw")}_dragStartEdge(e){const t=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,t,void 0,!0)}_performAddNode(e){const t={id:Mo(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(t,i=>{i!=null&&this.inMode==="addNode"&&this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(t),this.showManipulatorToolbar()}_performAddEdge(e,t){const i={from:e,to:t};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(i,n=>{n!=null&&this.inMode==="addEdge"&&(this.body.data.edges.getDataSet().add(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}_performEditEdge(e,t){const i={id:this.edgeBeingEditedId,from:e,to:t,label:this.body.data.edges.get(this.edgeBeingEditedId).label};let n=this.options.editEdge;if(typeof n=="object"&&(n=n.editWithoutDrag),typeof n=="function")if(n.length===2)n(i,s=>{s==null||this.inMode!=="editEdge"?(this.body.edges[i.id].updateEdgeType(),this.body.emitter.emit("_redraw"),this.showManipulatorToolbar()):(this.body.data.edges.getDataSet().update(s),this.selectionHandler.unselectAll(),this.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}const Y="string",j="boolean",M="number",wo="array",le="object",AH="dom",Xne="any",z_=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],H_={borderWidth:{number:M},borderWidthSelected:{number:M,undefined:"undefined"},brokenImage:{string:Y,undefined:"undefined"},chosen:{label:{boolean:j,function:"function"},node:{boolean:j,function:"function"},__type__:{object:le,boolean:j}},color:{border:{string:Y},background:{string:Y},highlight:{border:{string:Y},background:{string:Y},__type__:{object:le,string:Y}},hover:{border:{string:Y},background:{string:Y},__type__:{object:le,string:Y}},__type__:{object:le,string:Y}},opacity:{number:M,undefined:"undefined"},fixed:{x:{boolean:j},y:{boolean:j},__type__:{object:le,boolean:j}},font:{align:{string:Y},color:{string:Y},size:{number:M},face:{string:Y},background:{string:Y},strokeWidth:{number:M},strokeColor:{string:Y},vadjust:{number:M},multi:{boolean:j,string:Y},bold:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},boldital:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},ital:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},mono:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},__type__:{object:le,string:Y}},group:{string:Y,number:M,undefined:"undefined"},heightConstraint:{minimum:{number:M},valign:{string:Y},__type__:{object:le,boolean:j,number:M}},hidden:{boolean:j},icon:{face:{string:Y},code:{string:Y},size:{number:M},color:{string:Y},weight:{string:Y,number:M},__type__:{object:le}},id:{string:Y,number:M},image:{selected:{string:Y,undefined:"undefined"},unselected:{string:Y,undefined:"undefined"},__type__:{object:le,string:Y}},imagePadding:{top:{number:M},right:{number:M},bottom:{number:M},left:{number:M},__type__:{object:le,number:M}},label:{string:Y,undefined:"undefined"},labelHighlightBold:{boolean:j},level:{number:M,undefined:"undefined"},margin:{top:{number:M},right:{number:M},bottom:{number:M},left:{number:M},__type__:{object:le,number:M}},mass:{number:M},physics:{boolean:j},scaling:{min:{number:M},max:{number:M},label:{enabled:{boolean:j},min:{number:M},max:{number:M},maxVisible:{number:M},drawThreshold:{number:M},__type__:{object:le,boolean:j}},customScalingFunction:{function:"function"},__type__:{object:le}},shadow:{enabled:{boolean:j},color:{string:Y},size:{number:M},x:{number:M},y:{number:M},__type__:{object:le,boolean:j}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:j,array:wo},borderRadius:{number:M},interpolation:{boolean:j},useImageSize:{boolean:j},useBorderWithImage:{boolean:j},coordinateOrigin:{string:["center","top-left"]},__type__:{object:le}},size:{number:M},title:{string:Y,dom:AH,undefined:"undefined"},value:{number:M,undefined:"undefined"},widthConstraint:{minimum:{number:M},maximum:{number:M},__type__:{object:le,boolean:j,number:M}},x:{number:M},y:{number:M},__type__:{object:le}},Jne={configure:{enabled:{boolean:j},filter:{boolean:j,string:Y,array:wo,function:"function"},container:{dom:AH},showButton:{boolean:j},__type__:{object:le,boolean:j,string:Y,array:wo,function:"function"}},edges:{arrows:{to:{enabled:{boolean:j},scaleFactor:{number:M},type:{string:z_},imageHeight:{number:M},imageWidth:{number:M},src:{string:Y},__type__:{object:le,boolean:j}},middle:{enabled:{boolean:j},scaleFactor:{number:M},type:{string:z_},imageWidth:{number:M},imageHeight:{number:M},src:{string:Y},__type__:{object:le,boolean:j}},from:{enabled:{boolean:j},scaleFactor:{number:M},type:{string:z_},imageWidth:{number:M},imageHeight:{number:M},src:{string:Y},__type__:{object:le,boolean:j}},__type__:{string:["from","to","middle"],object:le}},endPointOffset:{from:{number:M},to:{number:M},__type__:{object:le,number:M}},arrowStrikethrough:{boolean:j},background:{enabled:{boolean:j},color:{string:Y},size:{number:M},dashes:{boolean:j,array:wo},__type__:{object:le,boolean:j}},chosen:{label:{boolean:j,function:"function"},edge:{boolean:j,function:"function"},__type__:{object:le,boolean:j}},color:{color:{string:Y},highlight:{string:Y},hover:{string:Y},inherit:{string:["from","to","both"],boolean:j},opacity:{number:M},__type__:{object:le,string:Y}},dashes:{boolean:j,array:wo},font:{color:{string:Y},size:{number:M},face:{string:Y},background:{string:Y},strokeWidth:{number:M},strokeColor:{string:Y},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:M},multi:{boolean:j,string:Y},bold:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},boldital:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},ital:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},mono:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},__type__:{object:le,string:Y}},hidden:{boolean:j},hoverWidth:{function:"function",number:M},label:{string:Y,undefined:"undefined"},labelHighlightBold:{boolean:j},length:{number:M,undefined:"undefined"},physics:{boolean:j},scaling:{min:{number:M},max:{number:M},label:{enabled:{boolean:j},min:{number:M},max:{number:M},maxVisible:{number:M},drawThreshold:{number:M},__type__:{object:le,boolean:j}},customScalingFunction:{function:"function"},__type__:{object:le}},selectionWidth:{function:"function",number:M},selfReferenceSize:{number:M},selfReference:{size:{number:M},angle:{number:M},renderBehindTheNode:{boolean:j},__type__:{object:le}},shadow:{enabled:{boolean:j},color:{string:Y},size:{number:M},x:{number:M},y:{number:M},__type__:{object:le,boolean:j}},smooth:{enabled:{boolean:j},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:M},forceDirection:{string:["horizontal","vertical","none"],boolean:j},__type__:{object:le,boolean:j}},title:{string:Y,undefined:"undefined"},width:{number:M},widthConstraint:{maximum:{number:M},__type__:{object:le,boolean:j,number:M}},value:{number:M,undefined:"undefined"},__type__:{object:le}},groups:{useDefaultGroups:{boolean:j},__any__:H_,__type__:{object:le}},interaction:{dragNodes:{boolean:j},dragView:{boolean:j},hideEdgesOnDrag:{boolean:j},hideEdgesOnZoom:{boolean:j},hideNodesOnDrag:{boolean:j},hover:{boolean:j},keyboard:{enabled:{boolean:j},speed:{x:{number:M},y:{number:M},zoom:{number:M},__type__:{object:le}},bindToWindow:{boolean:j},autoFocus:{boolean:j},__type__:{object:le,boolean:j}},multiselect:{boolean:j},navigationButtons:{boolean:j},selectable:{boolean:j},selectConnectedEdges:{boolean:j},hoverConnectedEdges:{boolean:j},tooltipDelay:{number:M},zoomView:{boolean:j},zoomSpeed:{number:M},__type__:{object:le}},layout:{randomSeed:{undefined:"undefined",number:M,string:Y},improvedLayout:{boolean:j},clusterThreshold:{number:M},hierarchical:{enabled:{boolean:j},levelSeparation:{number:M},nodeSpacing:{number:M},treeSpacing:{number:M},blockShifting:{boolean:j},edgeMinimization:{boolean:j},parentCentralization:{boolean:j},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:le,boolean:j}},__type__:{object:le}},manipulation:{enabled:{boolean:j},initiallyActive:{boolean:j},addNode:{boolean:j,function:"function"},addEdge:{boolean:j,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:le,boolean:j,function:"function"}},deleteNode:{boolean:j,function:"function"},deleteEdge:{boolean:j,function:"function"},controlNodeStyle:H_,__type__:{object:le,boolean:j}},nodes:H_,physics:{enabled:{boolean:j},barnesHut:{theta:{number:M},gravitationalConstant:{number:M},centralGravity:{number:M},springLength:{number:M},springConstant:{number:M},damping:{number:M},avoidOverlap:{number:M},__type__:{object:le}},forceAtlas2Based:{theta:{number:M},gravitationalConstant:{number:M},centralGravity:{number:M},springLength:{number:M},springConstant:{number:M},damping:{number:M},avoidOverlap:{number:M},__type__:{object:le}},repulsion:{centralGravity:{number:M},springLength:{number:M},springConstant:{number:M},nodeDistance:{number:M},damping:{number:M},__type__:{object:le}},hierarchicalRepulsion:{centralGravity:{number:M},springLength:{number:M},springConstant:{number:M},nodeDistance:{number:M},damping:{number:M},avoidOverlap:{number:M},__type__:{object:le}},maxVelocity:{number:M},minVelocity:{number:M},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:j},iterations:{number:M},updateInterval:{number:M},onlyDynamicEdges:{boolean:j},fit:{boolean:j},__type__:{object:le,boolean:j}},timestep:{number:M},adaptiveTimestep:{boolean:j},wind:{x:{number:M},y:{number:M},__type__:{object:le}},__type__:{object:le,boolean:j}},autoResize:{boolean:j},clickToUse:{boolean:j},locale:{string:Y},locales:{__any__:{any:Xne},__type__:{object:le}},height:{string:Y},width:{string:Y},__type__:{object:le}},DH={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},Qne=(r,e,t)=>{var i;return!!(Bi(r).call(r,"physics")&&Bi(i=DH.physics.solver).call(i,e)&&t.physics.solver!==e&&e!=="wind")};class Zne{constructor(){}getDistances(e,t,i){const n={},s=e.edges;for(let a=0;a2&&arguments[2]!==void 0?arguments[2]:!1;const n=this.distanceSolver.getDistances(this.body,e,t);this._createL_matrix(n),this._createK_matrix(n),this._createE_matrix();const s=.01,o=1;let a=0;const u=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),l=5;let c=1e9,d=0,h=0,f=0,p=0,v=0;for(;c>s&&ao&&vthis.body.emitter.emit("_requestRedraw")),this.groups=new zee,this.canvas=new Nie(this.body),this.selectionHandler=new mne(this.body,this.canvas),this.interactionHandler=new Lie(this.body,this.canvas,this.selectionHandler),this.view=new kie(this.body,this.canvas),this.renderer=new xie(this.body,this.canvas),this.physics=new Sie(this.body),this.layoutEngine=new Gne(this.body),this.clustering=new Cie(this.body),this.manipulation=new Yne(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new Jre(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new mie(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new ese(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(t),this.setData(e)}c5(ue.prototype);ue.prototype.setOptions=function(r){if(r===null&&(r=void 0),r!==void 0){if(tee.validate(r,Jne)===!0&&console.error("%cErrors have been found in the supplied options object.",sH),uo(["locale","locales","clickToUse"],this.options,r),r.locale!==void 0&&(r.locale=Iee(r.locales||this.options.locales,r.locale)),r=this.layoutEngine.setOptions(r.layout,r),this.canvas.setOptions(r),this.groups.setOptions(r.groups),this.nodesHandler.setOptions(r.nodes),this.edgesHandler.setOptions(r.edges),this.physics.setOptions(r.physics),this.manipulation.setOptions(r.manipulation,r,this.options),this.interactionHandler.setOptions(r.interaction),this.renderer.setOptions(r.interaction),this.selectionHandler.setOptions(r.interaction),r.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in r&&(this.configurator||(this.configurator=new ZZ(this,this.body.container,DH,this.canvas.pixelRatio,Qne)),this.configurator.setOptions(r.configure)),this.configurator&&this.configurator.options.enabled===!0){const i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Ke(i.nodes,this.nodesHandler.options),Ke(i.edges,this.edgesHandler.options),Ke(i.layout,this.layoutEngine.options),Ke(i.interaction,this.selectionHandler.options),Ke(i.interaction,this.renderer.options),Ke(i.interaction,this.interactionHandler.options),Ke(i.manipulation,this.manipulation.options),Ke(i.physics,this.physics.options),Ke(i.global,this.canvas.options),Ke(i.global,this.options),this.configurator.setModuleOptions(i)}r.clickToUse!==void 0?r.clickToUse===!0?this.activator===void 0&&(this.activator=new QZ(this.canvas.frame),this.activator.on("change",()=>{this.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};ue.prototype._updateVisibleIndices=function(){const r=this.body.nodes,e=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&!this.clustering._isClusteredNode(t)&&r[t].options.hidden===!1&&this.body.nodeIndices.push(r[t].id);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const i=e[t],n=r[i.fromId],s=r[i.toId],o=n!==void 0&&s!==void 0;!this.clustering._isClusteredEdge(t)&&i.options.hidden===!1&&o&&n.options.hidden===!1&&s.options.hidden===!1&&this.body.edgeIndices.push(i.id)}};ue.prototype.bindEventListeners=function(){this.body.emitter.on("_dataChanged",()=>{this.edgesHandler._updateState(),this.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",()=>{this.clustering._updateState(),this._updateVisibleIndices(),this._updateValueRange(this.body.nodes),this._updateValueRange(this.body.edges),this.body.emitter.emit("startSimulation"),this.body.emitter.emit("_requestRedraw")})};ue.prototype.setData=function(r){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),r&&r.dot&&(r.nodes||r.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(r&&r.options),r&&r.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");const e=dee(r.dot);this.setData(e);return}else if(r&&r.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");const e=hee(r.gephi);this.setData(e);return}else this.nodesHandler.setData(r&&r.nodes,!0),this.edgesHandler.setData(r&&r.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};ue.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(const r in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,r)&&delete this.body.nodes[r];for(const r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];xi(this.body.container)};ue.prototype._updateValueRange=function(r){let e,t,i,n=0;for(e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const s=r[e].getValue();s!==void 0&&(t=t===void 0?s:Math.min(s,t),i=i===void 0?s:Math.max(s,i),n+=s)}if(t!==void 0&&i!==void 0)for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&r[e].setValueRange(t,i,n)};ue.prototype.isActive=function(){return!this.activator||this.activator.active};ue.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};ue.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};ue.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};ue.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};ue.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};ue.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};ue.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};ue.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};ue.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};ue.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};ue.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};ue.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};ue.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};ue.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};ue.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};ue.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};ue.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};ue.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};ue.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};ue.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};ue.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};ue.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};ue.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};ue.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};ue.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};ue.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};ue.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};ue.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};ue.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};ue.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};ue.prototype.getConnectedNodes=function(r){return this.body.nodes[r]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};ue.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};ue.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};ue.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};ue.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};ue.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};ue.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};ue.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};ue.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};ue.prototype.getNodeAt=function(){const r=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return r!==void 0&&r.id!==void 0?r.id:r};ue.prototype.getEdgeAt=function(){const r=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return r!==void 0&&r.id!==void 0?r.id:r};ue.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};ue.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};ue.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};ue.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};ue.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};ue.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};ue.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};ue.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};ue.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};ue.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};ue.prototype.getOptionsFromConfigurator=function(){let r={};return this.configurator&&(r=this.configurator.getOptions.apply(this.configurator)),r};const tse={class:"data-container text-container"},rse={class:"messages-block",ref:"scrollContainer"},ise={class:"center-block-custom"},nse=["onClick","id"],sse={key:0},ose={class:"message-content"},ase={key:1,class:"hr"},use={key:0},lse={key:1},cse={class:"nodes-container"},dse={class:"checkbox-green"},hse={class:"checkbox-green"},fse={class:"scroll-y"},pse=["onMouseenter"],vse=["onClick"],gse={key:0},mse=["onClick"],yse={class:"edit-node-container"},bse={class:"scroll-y-right"},_se={key:0,class:"tb-5"},wse=["onClick"],Ese=["onUpdate:modelValue"],Sse=["onUpdate:modelValue"],Ose=["onUpdate:modelValue"],Ise=["onClick"],Tse=["onUpdate:modelValue"],$se=["onClick"],Pse=pr({__name:"EditorWindow",setup(r){const e=it(),t=it({nodes:[],edges:[]}),i={code:"",name:"",text:"",image:"",applications:[],hidden:!1,doors:[],id:"",label:"",links:[]},n=it(""),s=it({code:"",name:"",text:"",image:"",applications:[],hidden:!1,doors:[],id:"",label:"",links:[]}),o=it({code:"",name:"",text:"",image:"",applications:[],hidden:!1,doors:[],id:"",label:"",links:[]});let a={},u={};const l=it(0),c=it(0),d=it(!1),h=it(!0);async function f(){t.value=await _V(),c.value=t.value.edges.length,h.value&&(t.value.edges=t.value.edges.filter(function(P){return P.type!=="application"})),t.value.edges.map(function(P){P.type=="application"&&(P.color="#aaaaaa")}),t.value.nodes=t.value.nodes.map(function(P){return P.id=P.code,P.label=P.name,P}),l.value=t.value.edges.length,u={nodes:t.value.nodes,edges:t.value.edges.sort(function(P,S){return P.type=="application"?1:S.type=="application"?-1:0})},a.setData(u),console.log(t.value.edges)}oa(async()=>{if(!e.value)return;const P={interaction:{selectable:!0},nodes:{color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#960000",background:"#ff9494"},hover:{border:"#2B7CE9",background:"#D2E5FF"}}}};a=new ue(e.value,u,P),a.on("click",function(S){if(console.log("click graph:",S),S.nodes.length>0){const $=t.value.nodes.find(function(q){return q.code==S.nodes[0]});$!==void 0&&g($)}else S.edges.length>0&&console.log("Clicked edge:",S.edges[0])}),await f(),g(t.value.nodes[0])});function p(){s.value.applications.push({name:""})}function v(P){s.value.applications=s.value.applications.filter(function(S){return S.name!=P})}function _(){s.value.doors.push({code:"",name:"",show:!1})}function m(P){s.value.doors=s.value.doors.filter(function(S){return S.code!=P})}function g(P){var $;console.log("Select node:",P),n.value=P.code,s.value=P;const S=t.value.edges.filter(function(q){return q.from==P.code}).map(function(q){const F=q.to;return t.value.nodes.filter(function(z){return z.code==F})[0]});s.value.links=S,a.selectNodes([s.value.code]),d.value||($=window.document.getElementById(P.code))==null||$.scrollIntoView({behavior:"smooth",block:"center"})}function E(P){console.log("Focus node:",P.code),o.value=P}function y(P){console.log("Focus node:",P.code),navigator.clipboard.writeText("(["+P.code+"])"),o.value=i}async function I(){console.log("Update node:",s.value),await Kl(n.value,s.value),await f();const P=t.value.nodes.filter(function(S){return S.code==s.value.code});g(P[0])}async function O(){console.log("Delete node:",s.value),s.value.code="",await Kl(n.value,s.value),await f()}async function T(){console.log("Add node:",s.value),s.value.code=n.value,await Kl("",s.value),await f();const P=t.value.nodes.filter(function(S){return S.code==s.value.code});g(P[0])}function b(P){return t.value.nodes.filter(function($){return $.code==P})[0]}function w(P){return"["+P.code+"]: "+P.name}function R(P){d.value=P,d.value&&f()}return(P,S)=>(Oe(),Ne(Qe,null,[at(Uw,null,{default:yn(()=>S[11]||(S[11]=[W("div",null," Редактор сценариев ",-1)])),_:1}),W("div",{class:Ai([d.value?"text-container-disable":""])},[W("div",tse,[W("div",rse,[W("div",ise,[(Oe(!0),Ne(Qe,null,Yr(t.value.nodes,$=>(Oe(),Ne("div",{key:$.id,onClick:q=>g($),id:$.code},[W("div",{class:Ai(["message-cloud",[$.code==s.value.code?"selected-message-cloud":""]])},[W("div",{class:Ai(["message-header",[$.code==s.value.code?"selected-message-header":""]])},Ye($.code)+": "+Ye($.name),3),$.image!==""?(Oe(),Ne("div",sse,Ye($.image),1)):Xr("",!0),S[12]||(S[12]=W("hr",{class:"hr"},null,-1)),W("div",ose,Ye($.text),1),$.applications.length?(Oe(),Ne("hr",ase)):Xr("",!0),(Oe(!0),Ne(Qe,null,Yr($.doors,q=>(Oe(),Ne("div",{class:"message-footer",key:q.code},[q.show?(Oe(),Ne("span",use,"Кнопка: ")):Xr("",!0),q.show?Xr("",!0):(Oe(),Ne("span",lse,"Дверь: ")),ar(" "+Ye(w(b(q.code))),1)]))),128)),(Oe(!0),Ne(Qe,null,Yr($.applications,q=>(Oe(),Ne("div",{class:"message-footer",key:q.name}," Приложение: "+Ye(q.name),1))),128))],2)],8,nse))),128))])],512)])],2),W("div",{class:Ai([d.value?"":"graph-container-disable"])},[W("div",{ref_key:"network",ref:e,class:"data-container graph-container"},null,512)],2),W("div",cse,[S[17]||(S[17]=W("h2",null,"Точки",-1)),W("div",null,"Всего точек: "+Ye(t.value.nodes.length),1),W("div",null,[S[14]||(S[14]=ar(" Отображать граф: ")),W("label",dse,[W("input",{type:"checkbox",onClick:S[0]||(S[0]=$=>R(!d.value))}),S[13]||(S[13]=W("span",{class:"checkbox-green-switch","data-label-on":"Да","data-label-off":"Нет"},null,-1))])]),W("div",null,[ar(" Всего связей: "+Ye(c.value)+", показано: "+Ye(l.value)+" ",1),W("div",null,[S[16]||(S[16]=ar(" Показать все связи: ")),W("label",hse,[W("input",{type:"checkbox",onClick:S[1]||(S[1]=$=>(h.value=!h.value,f()))}),S[15]||(S[15]=W("span",{class:"checkbox-green-switch","data-label-on":"Да","data-label-off":"Нет"},null,-1))])])]),S[18]||(S[18]=W("hr",{class:"hr"},null,-1)),W("div",fse,[(Oe(!0),Ne(Qe,null,Yr(t.value.nodes,$=>(Oe(),Ne("div",{key:$.code},[W("span",{onMouseenter:q=>E($),onMouseleave:S[2]||(S[2]=q=>E(i))},[W("span",{class:Ai([[$.code==s.value.code?"selected-node":""],"node-select-button"]),onClick:q=>g($)},Ye(w($)),11,vse),$.applications.length>0?(Oe(),Ne("span",gse," ("+Ye($.applications.length)+")",1)):Xr("",!0),$.code==o.value.code?(Oe(),Ne("span",{key:1,class:"copy-node-link",onClick:q=>y($)}," Ссылка ",8,mse)):Xr("",!0)],40,pse)]))),128))])]),W("div",yse,[W("div",bse,[S[23]||(S[23]=W("h2",null,"Редактирование точки",-1)),W("div",null,[Ii(W("input",{"onUpdate:modelValue":S[3]||(S[3]=$=>n.value=$),type:"text",class:"node-code-edit-field",maxlength:"5"},null,512),[[Ti,n.value]]),S[19]||(S[19]=ar(" - ")),Ii(W("input",{"onUpdate:modelValue":S[4]||(S[4]=$=>s.value.name=$),type:"text",class:"node-name-edit-field"},null,512),[[Ti,s.value.name]])]),W("div",null,[Ii(W("textarea",{class:"node-text-edit-field",rows:"15","onUpdate:modelValue":S[5]||(S[5]=$=>s.value.text=$)},null,512),[[Ti,s.value.text]])]),W("div",null,[W("h3",null,[ar("Двери: "+Ye(s.value.doors.length)+" ",1),W("button",{class:"editor-button application-add-button",onClick:S[6]||(S[6]=$=>_())},"+")]),s.value.doors.length>0?(Oe(),Ne("div",_se,[(Oe(!0),Ne(Qe,null,Yr(s.value.doors,($,q)=>(Oe(),Ne("div",{key:q},[W("button",{class:"editor-button application-remove-button",onClick:F=>m($.code)},"-",8,wse),Ii(W("input",{class:"node-code-edit-field","onUpdate:modelValue":F=>$.code=F,type:"text",maxlength:"5"},null,8,Ese),[[Ti,$.code]]),S[20]||(S[20]=ar(" - ")),Ii(W("input",{class:"node-name-edit-field","onUpdate:modelValue":F=>$.name=F,type:"text"},null,8,Sse),[[Ti,$.name]]),S[21]||(S[21]=ar(" - ")),Ii(W("input",{class:"node-code-edit-field","onUpdate:modelValue":F=>$.show=F,type:"text",maxlength:"5"},null,8,Ose),[[Ti,$.show]])]))),128))])):Xr("",!0)]),W("div",null,[W("h3",null,[ar("Приложения: "+Ye(s.value.applications.length)+" ",1),W("button",{class:"editor-button application-add-button",onClick:S[7]||(S[7]=$=>p())},"+")]),(Oe(!0),Ne(Qe,null,Yr(s.value.applications,($,q)=>(Oe(),Ne("div",{key:q},[W("button",{class:"editor-button application-remove-button",onClick:F=>v($.name)},"-",8,Ise),Ii(W("textarea",{class:"node-text-edit-field",rows:"2","onUpdate:modelValue":F=>$.name=F},null,8,Tse),[[Ti,$.name]])]))),128))]),W("div",null,[W("h3",null,"Ссылки: "+Ye(s.value.links.length),1),(Oe(!0),Ne(Qe,null,Yr(s.value.links,$=>(Oe(),Ne("div",{key:$.code},[W("div",{class:"node-select-button",onClick:q=>g($)}," - "+Ye(w($)),9,$se)]))),128))]),W("div",null,[S[22]||(S[22]=W("hr",{class:"hr"},null,-1)),W("div",null,[W("button",{class:"editor-button",onClick:S[8]||(S[8]=$=>I())},"Сохранить"),W("button",{class:"editor-button",onClick:S[9]||(S[9]=$=>T())},"Добавить"),W("button",{class:"editor-button",onClick:S[10]||(S[10]=$=>O())},"Удалить")])])])])],64))}}),Rse=ua(Pse,[["__scopeId","data-v-bafb4d7d"]]),Cse=pr({__name:"EditorView",setup(r){return(e,t)=>(Oe(),di(Rse))}}),xse=pr({__name:"GamesWindow",setup(r){return(e,t)=>(Oe(),di(Uw,null,{default:yn(()=>t[0]||(t[0]=[W("div",null," Каталог игр ",-1)])),_:1}))}}),qse=pr({__name:"GamesView",setup(r){return(e,t)=>(Oe(),di(xse))}}),Ow=uV({history:kU("/"),routes:[{path:"/",name:"home",component:lK},{path:"/editor",name:"editor",component:Cse},{path:"/games",name:"games",component:qse}]}),Q0=iU(cV);Q0.use(aU());Q0.use(Ow);Q0.mount("#app"); diff --git a/cmd/evening_detective/static/admin/assets/index-k6rqb1as.css b/cmd/evening_detective/static/admin/assets/index-CgpxTv-m.css similarity index 71% rename from cmd/evening_detective/static/admin/assets/index-k6rqb1as.css rename to cmd/evening_detective/static/admin/assets/index-CgpxTv-m.css index 933125f..be8faef 100644 --- a/cmd/evening_detective/static/admin/assets/index-k6rqb1as.css +++ b/cmd/evening_detective/static/admin/assets/index-CgpxTv-m.css @@ -1 +1 @@ -:root{color-scheme:only light;--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64);--main-color: rgba(34, 50, 60, 1);--second-color: rgb(97, 74, 22);--main-back-color: rgba(240, 240, 240, 1);--main-back-item-color: rgba(254, 254, 254, 1)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100dvh;color:var(--color-text);background:var(--main-back-color);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.input-custom{width:100%;box-sizing:border-box;margin-bottom:15px}.button-custom{margin-left:auto;background-color:var(--main-color);font-weight:600;color:#fff}.button-custom-inline{margin:10px;background-color:var(--main-color);font-weight:600;color:#fff;padding:6px 8px;border:1px solid #ddd;border-radius:15px;font-size:14px}.button-custom:hover,.button-custom-inline:hover{background-color:var(--second-color)}.input-custom,.button-custom{padding:12px 16px;border:1px solid #ddd;border-radius:15px;font-size:16px}.button-container{display:flex}.center-message{display:flex;justify-content:center;align-items:center;height:calc(100dvh - 100px);text-align:center}@media (min-width: 1025px){.center-block-custom{width:700px;margin:0 auto}}.qr[data-v-eea3ea34]{text-align:center}.header-block[data-v-5b6894ef]{background-color:var(--main-color);font-size:large;color:#fff;vertical-align:middle;padding:10px 0 10px 16px;font-weight:700}.modal-mask[data-v-f97ce307]{position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease;font-size:20px}.modal-wrapper[data-v-f97ce307]{display:table-cell;vertical-align:middle}.modal-container[data-v-f97ce307]{width:400px;margin:0 auto;padding:20px 30px;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;position:relative}.modal-header[data-v-f97ce307]{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-header h3[data-v-f97ce307]{margin:0;font-size:25px;color:var(--main-color);font-weight:600}.close-btn[data-v-f97ce307]{background:none;border:none;font-size:24px;cursor:pointer;color:#aaa}.close-btn[data-v-f97ce307]:hover{color:#333}.modal-body[data-v-f97ce307]{margin:20px 0;line-height:1.5}.modal-footer[data-v-f97ce307]{text-align:right}.btn-cancel[data-v-f97ce307],.btn-primary[data-v-f97ce307]{padding:12px 20px;border:none;border-radius:4px;cursor:pointer;font-size:20px;margin-left:10px}.btn-cancel[data-v-f97ce307]{background-color:#fff;color:var(--main-color)}.btn-primary[data-v-f97ce307]{background-color:var(--main-color);color:#fff}.btn-primary[data-v-f97ce307]:hover{background-color:var(--second-color)}.modal-enter-from[data-v-f97ce307],.modal-leave-to[data-v-f97ce307]{opacity:0}.modal-enter-from .modal-container[data-v-f97ce307],.modal-leave-to .modal-container[data-v-f97ce307]{transform:scale(.9)}.buttons-block[data-v-3033f565]{padding-top:5px}.button-menu[data-v-3033f565]{margin:5px 10px 5px 0}.url-block[data-v-3033f565]{margin:5px 0}.link-button[data-v-3033f565]{border:none;color:#fff;background-color:var(--main-color);padding:15px;margin:0;font:inherit;cursor:pointer;font-weight:600;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:inherit;text-align:center}.link-button[data-v-3033f565]:hover{color:#ccc;text-decoration:none;background-color:var(--second-color)}.link-button[data-v-3033f565]:active{color:#036}.link-button[data-v-3033f565]:focus{outline:none;text-decoration:none;box-shadow:0 0 0 2px #0066cc4d}a[data-v-3033f565]{color:var(--second-color);text-decoration:none;transition:all .2s ease;cursor:pointer}a[data-v-3033f565]:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}a[data-v-3033f565]:focus-visible{outline:2px solid #3182ce;outline-offset:2px;border-radius:2px}a[disabled][data-v-3033f565]{color:#a0aec0;pointer-events:none;cursor:not-allowed}.button-container[data-v-3033f565]{margin-bottom:30px}.content-block[data-v-3033f565]{padding:10px}.team-header-block[data-v-3033f565]{font-weight:700;font-size:30px}.team-block[data-v-3033f565]{border:solid 1px #003366;border-radius:5px;margin:15px 0}.team-content-block[data-v-3033f565]{padding:10px}.team-name-block[data-v-3033f565]{font-weight:600;font-size:20px}.data-container[data-v-bafb4d7d]{width:100%;height:calc(100vh - 50px);border:1px solid #e0e0e0}.graph-container[data-v-bafb4d7d]{border-radius:8px}.graph-container-disable[data-v-bafb4d7d]{position:absolute;right:10000px}.text-container[data-v-bafb4d7d]{padding:10px}.text-container-disable[data-v-bafb4d7d]{position:absolute;left:10000px}.nodes-container[data-v-bafb4d7d]{position:fixed;left:5px;top:55px;height:calc(100vh - 100px);padding:3px 10px}.edit-node-container[data-v-bafb4d7d]{position:fixed;right:5px;top:55px;height:calc(100vh - 100px);padding:3px 10px;min-width:350px;max-width:400px}.node-select-button[data-v-bafb4d7d]{color:#373737}.node-select-button[data-v-bafb4d7d]:hover{font-weight:700;cursor:pointer}.selected-node[data-v-bafb4d7d]{font-weight:700;color:#960000;cursor:pointer}.node-text-edit-field[data-v-bafb4d7d]{padding:7px;margin:5px 0;width:100%}.editor-button[data-v-bafb4d7d]{padding:3px 7px;margin:5px 5px 5px 0;background-color:#fff;border:1px solid #777777}.editor-button[data-v-bafb4d7d]:hover{background-color:#eee;cursor:pointer}.hr[data-v-bafb4d7d]{margin:10px 0}.copy-node-link[data-v-bafb4d7d]{margin-left:5px}.copy-node-link[data-v-bafb4d7d]:hover{font-weight:700;cursor:pointer}.scroll-y[data-v-bafb4d7d]{overflow-y:auto;max-height:calc(100vh - 250px)}.scroll-y-right[data-v-bafb4d7d]{overflow-y:auto;max-height:calc(100vh - 70px)}.scroll-y[data-v-bafb4d7d]::-webkit-scrollbar,.scroll-y-right[data-v-bafb4d7d]::-webkit-scrollbar{display:none}.node-code-edit-field[data-v-bafb4d7d]{width:50px}.node-name-edit-field[data-v-bafb4d7d]{width:200px}.application-add-button[data-v-bafb4d7d]{display:inline;margin-left:5px;width:23px;height:23px}.application-remove-button[data-v-bafb4d7d]{position:absolute;left:-15px;width:20px;height:20px}.messages-block[data-v-bafb4d7d]{height:100%;overflow-y:auto;scrollbar-width:none}@media (min-width: 1025px){.center-block-custom[data-v-bafb4d7d]{width:calc(100vw - 750px);margin:0 auto}}.message-cloud[data-v-bafb4d7d]{border:1px solid #444444;border-radius:15px;margin:12px 10px;padding:16px;background-color:var(--main-back-item-color)}.message-cloud[data-v-bafb4d7d]:hover{background-color:#eee;cursor:pointer}.selected-message-cloud[data-v-bafb4d7d]{border:2px solid #960000;cursor:pointer}.message-header[data-v-bafb4d7d]{font-size:large;font-weight:200}.selected-message-header[data-v-bafb4d7d]{font-size:large;font-weight:500;color:#960000}.message-content[data-v-bafb4d7d]{font-weight:500;white-space:pre-wrap}.message-footer[data-v-bafb4d7d]{font-weight:400;color:var(--second-color)}.checkbox-green[data-v-bafb4d7d]{display:inline-block;height:20px;line-height:28px;margin-right:10px;position:relative;vertical-align:middle;font-size:14px;-webkit-user-select:none;user-select:none}.checkbox-green .checkbox-green-switch[data-v-bafb4d7d]{display:inline-block;height:20px;width:90px;box-sizing:border-box;position:relative;border-radius:2px;background:#848484;transition:background-color .3s cubic-bezier(0,1,.5,1)}.checkbox-green .checkbox-green-switch[data-v-bafb4d7d]:before{content:attr(data-label-on);display:inline-block;box-sizing:border-box;width:45px;padding:0 8px;position:absolute;top:0;left:45px;text-transform:uppercase;text-align:center;color:#ffffff80;font-size:10px;line-height:20px}.checkbox-green .checkbox-green-switch[data-v-bafb4d7d]:after{content:attr(data-label-off);display:inline-block;box-sizing:border-box;width:44px;border-radius:1px;position:absolute;top:1px;left:1px;z-index:5;text-transform:uppercase;text-align:center;background:#fff;line-height:18px;font-size:10px;color:#444;transition:transform .3s cubic-bezier(0,1,.5,1)}.checkbox-green input[type=checkbox][data-v-bafb4d7d]{display:block;width:0;height:0;position:absolute;z-index:-1;opacity:0}.checkbox-green input[type=checkbox]:checked+.checkbox-green-switch[data-v-bafb4d7d]{background-color:#777}.checkbox-green input[type=checkbox]:checked+.checkbox-green-switch[data-v-bafb4d7d]:before{content:attr(data-label-off);left:0}.checkbox-green input[type=checkbox]:checked+.checkbox-green-switch[data-v-bafb4d7d]:after{content:attr(data-label-on);color:#777;transform:translate3d(44px,0,0)}.checkbox-green input[type=checkbox]:not(:disabled)+.checkbox-green-switch[data-v-bafb4d7d]:hover{cursor:pointer}.checkbox-green input[type=checkbox]:disabled+.checkbox-green-switch[data-v-bafb4d7d]{opacity:.6;filter:grayscale(50%)}.checkbox-green.focused .checkbox-green-switch[data-v-bafb4d7d]:after{box-shadow:inset 0 0 4px #ff5623}.tb-5[data-v-bafb4d7d]{margin:5px 0 10px} +:root{color-scheme:only light;--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64);--main-color: rgba(34, 50, 60, 1);--second-color: rgb(97, 74, 22);--main-back-color: rgba(240, 240, 240, 1);--main-back-item-color: rgba(254, 254, 254, 1)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100dvh;color:var(--color-text);background:var(--main-back-color);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.input-custom{width:100%;box-sizing:border-box;margin-bottom:15px}.button-custom{margin-left:auto;background-color:var(--main-color);font-weight:600;color:#fff}.button-custom-inline{margin:10px;background-color:var(--main-color);font-weight:600;color:#fff;padding:6px 8px;border:1px solid #ddd;border-radius:15px;font-size:14px}.button-custom:hover,.button-custom-inline:hover{background-color:var(--second-color)}.input-custom,.button-custom{padding:12px 16px;border:1px solid #ddd;border-radius:15px;font-size:16px}.button-container{display:flex}.center-message{display:flex;justify-content:center;align-items:center;height:calc(100dvh - 100px);text-align:center}@media (min-width: 1025px){.center-block-custom{width:700px;margin:0 auto}}.qr[data-v-eea3ea34]{text-align:center}.header-block[data-v-5b6894ef]{background-color:var(--main-color);font-size:large;color:#fff;vertical-align:middle;padding:10px 0 10px 16px;font-weight:700}.modal-mask[data-v-f97ce307]{position:fixed;z-index:9999;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease;font-size:20px}.modal-wrapper[data-v-f97ce307]{display:table-cell;vertical-align:middle}.modal-container[data-v-f97ce307]{width:400px;margin:0 auto;padding:20px 30px;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;position:relative}.modal-header[data-v-f97ce307]{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-header h3[data-v-f97ce307]{margin:0;font-size:25px;color:var(--main-color);font-weight:600}.close-btn[data-v-f97ce307]{background:none;border:none;font-size:24px;cursor:pointer;color:#aaa}.close-btn[data-v-f97ce307]:hover{color:#333}.modal-body[data-v-f97ce307]{margin:20px 0;line-height:1.5}.modal-footer[data-v-f97ce307]{text-align:right}.btn-cancel[data-v-f97ce307],.btn-primary[data-v-f97ce307]{padding:12px 20px;border:none;border-radius:4px;cursor:pointer;font-size:20px;margin-left:10px}.btn-cancel[data-v-f97ce307]{background-color:#fff;color:var(--main-color)}.btn-primary[data-v-f97ce307]{background-color:var(--main-color);color:#fff}.btn-primary[data-v-f97ce307]:hover{background-color:var(--second-color)}.modal-enter-from[data-v-f97ce307],.modal-leave-to[data-v-f97ce307]{opacity:0}.modal-enter-from .modal-container[data-v-f97ce307],.modal-leave-to .modal-container[data-v-f97ce307]{transform:scale(.9)}.buttons-block[data-v-3033f565]{padding-top:5px}.button-menu[data-v-3033f565]{margin:5px 10px 5px 0}.url-block[data-v-3033f565]{margin:5px 0}.link-button[data-v-3033f565]{border:none;color:#fff;background-color:var(--main-color);padding:15px;margin:0;font:inherit;cursor:pointer;font-weight:600;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:inherit;text-align:center}.link-button[data-v-3033f565]:hover{color:#ccc;text-decoration:none;background-color:var(--second-color)}.link-button[data-v-3033f565]:active{color:#036}.link-button[data-v-3033f565]:focus{outline:none;text-decoration:none;box-shadow:0 0 0 2px #0066cc4d}a[data-v-3033f565]{color:var(--second-color);text-decoration:none;transition:all .2s ease;cursor:pointer}a[data-v-3033f565]:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}a[data-v-3033f565]:focus-visible{outline:2px solid #3182ce;outline-offset:2px;border-radius:2px}a[disabled][data-v-3033f565]{color:#a0aec0;pointer-events:none;cursor:not-allowed}.button-container[data-v-3033f565]{margin-bottom:30px}.content-block[data-v-3033f565]{padding:10px}.team-header-block[data-v-3033f565]{font-weight:700;font-size:30px}.team-block[data-v-3033f565]{border:solid 1px #003366;border-radius:5px;margin:15px 0}.team-content-block[data-v-3033f565]{padding:10px}.team-name-block[data-v-3033f565]{font-weight:600;font-size:20px}.data-container[data-v-206916ac]{width:100%;height:calc(100vh - 50px);border:1px solid #e0e0e0}.graph-container[data-v-206916ac]{border-radius:8px}.graph-container-disable[data-v-206916ac]{position:absolute;right:10000px}.text-container[data-v-206916ac]{padding:10px}.text-container-disable[data-v-206916ac]{position:absolute;left:10000px}.nodes-container[data-v-206916ac]{position:fixed;left:5px;top:55px;height:calc(100vh - 100px);padding:3px 10px}.edit-node-container[data-v-206916ac]{position:fixed;right:5px;top:55px;height:calc(100vh - 100px);padding:3px 10px;min-width:350px;max-width:400px}.node-select-button[data-v-206916ac]{color:#373737}.node-select-button[data-v-206916ac]:hover{font-weight:700;cursor:pointer}.selected-node[data-v-206916ac]{font-weight:700;color:#960000;cursor:pointer}.node-text-edit-field[data-v-206916ac]{padding:7px;margin:5px 0;width:100%}.editor-button[data-v-206916ac]{padding:3px 7px;margin:5px 5px 5px 0;background-color:#fff;border:1px solid #777777}.editor-button[data-v-206916ac]:hover{background-color:#eee;cursor:pointer}.hr[data-v-206916ac]{margin:10px 0}.copy-node-link[data-v-206916ac]{margin-left:5px}.copy-node-link[data-v-206916ac]:hover{font-weight:700;cursor:pointer}.scroll-y[data-v-206916ac]{overflow-y:auto;max-height:calc(100vh - 250px)}.scroll-y-right[data-v-206916ac]{overflow-y:auto;max-height:calc(100vh - 70px)}.scroll-y[data-v-206916ac]::-webkit-scrollbar,.scroll-y-right[data-v-206916ac]::-webkit-scrollbar{display:none}.node-code-edit-field[data-v-206916ac]{width:50px}.node-name-edit-field[data-v-206916ac]{width:200px}.application-add-button[data-v-206916ac]{display:inline;margin-left:5px;width:23px;height:23px}.application-remove-button[data-v-206916ac]{position:absolute;left:-15px;width:20px;height:20px}.messages-block[data-v-206916ac]{height:100%;overflow-y:auto;scrollbar-width:none}@media (min-width: 1025px){.center-block-custom[data-v-206916ac]{width:calc(100vw - 750px);margin:0 auto}}.message-cloud[data-v-206916ac]{border:1px solid #444444;border-radius:15px;margin:12px 10px;padding:16px;background-color:var(--main-back-item-color)}.message-cloud[data-v-206916ac]:hover{background-color:#eee;cursor:pointer}.selected-message-cloud[data-v-206916ac]{border:2px solid #960000;cursor:pointer}.message-header[data-v-206916ac]{font-size:large;font-weight:200}.selected-message-header[data-v-206916ac]{font-size:large;font-weight:500;color:#960000}.message-content[data-v-206916ac]{font-weight:500;white-space:pre-wrap}.message-footer[data-v-206916ac]{font-weight:400;color:var(--second-color)}.checkbox-green[data-v-206916ac]{display:inline-block;height:20px;line-height:28px;margin-right:10px;position:relative;vertical-align:middle;font-size:14px;-webkit-user-select:none;user-select:none}.checkbox-green .checkbox-green-switch[data-v-206916ac]{display:inline-block;height:20px;width:90px;box-sizing:border-box;position:relative;border-radius:2px;background:#848484;transition:background-color .3s cubic-bezier(0,1,.5,1)}.checkbox-green .checkbox-green-switch[data-v-206916ac]:before{content:attr(data-label-on);display:inline-block;box-sizing:border-box;width:45px;padding:0 8px;position:absolute;top:0;left:45px;text-transform:uppercase;text-align:center;color:#ffffff80;font-size:10px;line-height:20px}.checkbox-green .checkbox-green-switch[data-v-206916ac]:after{content:attr(data-label-off);display:inline-block;box-sizing:border-box;width:44px;border-radius:1px;position:absolute;top:1px;left:1px;z-index:5;text-transform:uppercase;text-align:center;background:#fff;line-height:18px;font-size:10px;color:#444;transition:transform .3s cubic-bezier(0,1,.5,1)}.checkbox-green input[type=checkbox][data-v-206916ac]{display:block;width:0;height:0;position:absolute;z-index:-1;opacity:0}.checkbox-green input[type=checkbox]:checked+.checkbox-green-switch[data-v-206916ac]{background-color:#777}.checkbox-green input[type=checkbox]:checked+.checkbox-green-switch[data-v-206916ac]:before{content:attr(data-label-off);left:0}.checkbox-green input[type=checkbox]:checked+.checkbox-green-switch[data-v-206916ac]:after{content:attr(data-label-on);color:#777;transform:translate3d(44px,0,0)}.checkbox-green input[type=checkbox]:not(:disabled)+.checkbox-green-switch[data-v-206916ac]:hover{cursor:pointer}.checkbox-green input[type=checkbox]:disabled+.checkbox-green-switch[data-v-206916ac]{opacity:.6;filter:grayscale(50%)}.checkbox-green.focused .checkbox-green-switch[data-v-206916ac]:after{box-shadow:inset 0 0 4px #ff5623}.tb-5[data-v-206916ac]{margin:5px 0 10px} diff --git a/cmd/evening_detective/static/admin/assets/index-CoW_u23P.js b/cmd/evening_detective/static/admin/assets/index-CoW_u23P.js new file mode 100644 index 0000000..e3433c8 --- /dev/null +++ b/cmd/evening_detective/static/admin/assets/index-CoW_u23P.js @@ -0,0 +1,115 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}})();/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Pw(r){const e=Object.create(null);for(const t of r.split(","))e[t]=1;return t=>t in e}const ze={},gs=[],jr=()=>{},LH=()=>!1,Bu=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Rw=r=>r.startsWith("onUpdate:"),Et=Object.assign,Cw=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},jH=Object.prototype.hasOwnProperty,ke=(r,e)=>jH.call(r,e),fe=Array.isArray,ms=r=>oa(r)==="[object Map]",Lu=r=>oa(r)==="[object Set]",rE=r=>oa(r)==="[object Date]",ye=r=>typeof r=="function",ot=r=>typeof r=="string",Ir=r=>typeof r=="symbol",We=r=>r!==null&&typeof r=="object",sj=r=>(We(r)||ye(r))&&ye(r.then)&&ye(r.catch),oj=Object.prototype.toString,oa=r=>oj.call(r),zH=r=>oa(r).slice(8,-1),aj=r=>oa(r)==="[object Object]",xw=r=>ot(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,So=Pw(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ju=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},HH=/-(\w)/g,zi=ju(r=>r.replace(HH,(e,t)=>t?t.toUpperCase():"")),WH=/\B([A-Z])/g,Mn=ju(r=>r.replace(WH,"-$1").toLowerCase()),uj=ju(r=>r.charAt(0).toUpperCase()+r.slice(1)),Ml=ju(r=>r?`on${uj(r)}`:""),Mi=(r,e)=>!Object.is(r,e),au=(r,...e)=>{for(let t=0;t{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,writable:i,value:t})},K_=r=>{const e=parseFloat(r);return isNaN(e)?r:e},UH=r=>{const e=ot(r)?Number(r):NaN;return isNaN(e)?r:e};let iE;const zu=()=>iE||(iE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qw(r){if(fe(r)){const e={};for(let t=0;t{if(t){const i=t.split(KH);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function qi(r){let e="";if(ot(r))e=r;else if(fe(r))for(let t=0;tHu(t,e))}const hj=r=>!!(r&&r.__v_isRef===!0),Xe=r=>ot(r)?r:r==null?"":fe(r)||We(r)&&(r.toString===oj||!ye(r.toString))?hj(r)?Xe(r.value):JSON.stringify(r,fj,2):String(r),fj=(r,e)=>hj(e)?fj(r,e.value):ms(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[i,n],s)=>(t[Nl(i,s)+" =>"]=n,t),{})}:Lu(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Nl(t))}:Ir(e)?Nl(e):We(e)&&!fe(e)&&!aj(e)?String(e):e,Nl=(r,e="")=>{var t;return Ir(r)?`Symbol(${(t=r.description)!=null?t:e})`:r};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let tr;class pj{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=tr,!e&&tr&&(this.index=(tr.scopes||(tr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0)return;if(Io){let e=Io;for(Io=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let r;for(;Oo;){let e=Oo;for(Oo=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){r||(r=i)}e=t}}if(r)throw r}function yj(r){for(let e=r.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function bj(r){let e,t=r.depsTail,i=t;for(;i;){const n=i.prevDep;i.version===-1?(i===t&&(t=n),Mw(i),tW(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}r.deps=e,r.depsTail=t}function G_(r){for(let e=r.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(_j(e.dep.computed)||e.dep.version!==e.version))return!0;return!!r._dirty}function _j(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===ko))return;r.globalVersion=ko;const e=r.dep;if(r.flags|=2,e.version>0&&!r.isSSR&&r.deps&&!G_(r)){r.flags&=-3;return}const t=Ve,i=Or;Ve=r,Or=!0;try{yj(r);const n=r.fn(r._value);(e.version===0||Mi(n,r._value))&&(r._value=n,e.version++)}catch(n){throw e.version++,n}finally{Ve=t,Or=i,bj(r),r.flags&=-3}}function Mw(r,e=!1){const{dep:t,prevSub:i,nextSub:n}=r;if(i&&(i.nextSub=n,r.prevSub=void 0),n&&(n.prevSub=i,r.nextSub=void 0),t.subs===r&&(t.subs=i,!i&&t.computed)){t.computed.flags&=-5;for(let s=t.computed.deps;s;s=s.nextDep)Mw(s,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function tW(r){const{prevDep:e,nextDep:t}=r;e&&(e.nextDep=t,r.prevDep=void 0),t&&(t.prevDep=e,r.nextDep=void 0)}let Or=!0;const wj=[];function Ki(){wj.push(Or),Or=!1}function Gi(){const r=wj.pop();Or=r===void 0?!0:r}function nE(r){const{cleanup:e}=r;if(r.cleanup=void 0,e){const t=Ve;Ve=void 0;try{e()}finally{Ve=t}}}let ko=0;class rW{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Nw{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Ve||!Or||Ve===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ve)t=this.activeLink=new rW(Ve,this),Ve.deps?(t.prevDep=Ve.depsTail,Ve.depsTail.nextDep=t,Ve.depsTail=t):Ve.deps=Ve.depsTail=t,Ej(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const i=t.nextDep;i.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=i),t.prevDep=Ve.depsTail,t.nextDep=void 0,Ve.depsTail.nextDep=t,Ve.depsTail=t,Ve.deps===t&&(Ve.deps=i)}return t}trigger(e){this.version++,ko++,this.notify(e)}notify(e){Aw();try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{Dw()}}}function Ej(r){if(r.dep.sc++,r.sub.flags&4){const e=r.dep.computed;if(e&&!r.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)Ej(i)}const t=r.dep.subs;t!==r&&(r.prevSub=t,t&&(t.nextSub=r)),r.dep.subs=r}}const Y_=new WeakMap,yn=Symbol(""),X_=Symbol(""),Bo=Symbol("");function Dt(r,e,t){if(Or&&Ve){let i=Y_.get(r);i||Y_.set(r,i=new Map);let n=i.get(t);n||(i.set(t,n=new Nw),n.map=i,n.key=t),n.track()}}function Zr(r,e,t,i,n,s){const o=Y_.get(r);if(!o){ko++;return}const a=u=>{u&&u.trigger()};if(Aw(),e==="clear")o.forEach(a);else{const u=fe(r),l=u&&xw(t);if(u&&t==="length"){const c=Number(i);o.forEach((d,h)=>{(h==="length"||h===Bo||!Ir(h)&&h>=c)&&a(d)})}else switch((t!==void 0||o.has(void 0))&&a(o.get(t)),l&&a(o.get(Bo)),e){case"add":u?l&&a(o.get("length")):(a(o.get(yn)),ms(r)&&a(o.get(X_)));break;case"delete":u||(a(o.get(yn)),ms(r)&&a(o.get(X_)));break;case"set":ms(r)&&a(o.get(yn));break}}Dw()}function is(r){const e=Me(r);return e===r?e:(Dt(e,"iterate",Bo),cr(r)?e:e.map(Mt))}function Wu(r){return Dt(r=Me(r),"iterate",Bo),r}const iW={__proto__:null,[Symbol.iterator](){return kl(this,Symbol.iterator,Mt)},concat(...r){return is(this).concat(...r.map(e=>fe(e)?is(e):e))},entries(){return kl(this,"entries",r=>(r[1]=Mt(r[1]),r))},every(r,e){return Kr(this,"every",r,e,void 0,arguments)},filter(r,e){return Kr(this,"filter",r,e,t=>t.map(Mt),arguments)},find(r,e){return Kr(this,"find",r,e,Mt,arguments)},findIndex(r,e){return Kr(this,"findIndex",r,e,void 0,arguments)},findLast(r,e){return Kr(this,"findLast",r,e,Mt,arguments)},findLastIndex(r,e){return Kr(this,"findLastIndex",r,e,void 0,arguments)},forEach(r,e){return Kr(this,"forEach",r,e,void 0,arguments)},includes(...r){return Bl(this,"includes",r)},indexOf(...r){return Bl(this,"indexOf",r)},join(r){return is(this).join(r)},lastIndexOf(...r){return Bl(this,"lastIndexOf",r)},map(r,e){return Kr(this,"map",r,e,void 0,arguments)},pop(){return ho(this,"pop")},push(...r){return ho(this,"push",r)},reduce(r,...e){return sE(this,"reduce",r,e)},reduceRight(r,...e){return sE(this,"reduceRight",r,e)},shift(){return ho(this,"shift")},some(r,e){return Kr(this,"some",r,e,void 0,arguments)},splice(...r){return ho(this,"splice",r)},toReversed(){return is(this).toReversed()},toSorted(r){return is(this).toSorted(r)},toSpliced(...r){return is(this).toSpliced(...r)},unshift(...r){return ho(this,"unshift",r)},values(){return kl(this,"values",Mt)}};function kl(r,e,t){const i=Wu(r),n=i[e]();return i!==r&&!cr(r)&&(n._next=n.next,n.next=()=>{const s=n._next();return s.value&&(s.value=t(s.value)),s}),n}const nW=Array.prototype;function Kr(r,e,t,i,n,s){const o=Wu(r),a=o!==r&&!cr(r),u=o[e];if(u!==nW[e]){const d=u.apply(r,s);return a?Mt(d):d}let l=t;o!==r&&(a?l=function(d,h){return t.call(this,Mt(d),h,r)}:t.length>2&&(l=function(d,h){return t.call(this,d,h,r)}));const c=u.call(o,l,i);return a&&n?n(c):c}function sE(r,e,t,i){const n=Wu(r);let s=t;return n!==r&&(cr(r)?t.length>3&&(s=function(o,a,u){return t.call(this,o,a,u,r)}):s=function(o,a,u){return t.call(this,o,Mt(a),u,r)}),n[e](s,...i)}function Bl(r,e,t){const i=Me(r);Dt(i,"iterate",Bo);const n=i[e](...t);return(n===-1||n===!1)&&Bw(t[0])?(t[0]=Me(t[0]),i[e](...t)):n}function ho(r,e,t=[]){Ki(),Aw();const i=Me(r)[e].apply(r,t);return Dw(),Gi(),i}const sW=Pw("__proto__,__v_isRef,__isVue"),Sj=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Ir));function oW(r){Ir(r)||(r=String(r));const e=Me(this);return Dt(e,"has",r),e.hasOwnProperty(r)}class Oj{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){if(t==="__v_skip")return e.__v_skip;const n=this._isReadonly,s=this._isShallow;if(t==="__v_isReactive")return!n;if(t==="__v_isReadonly")return n;if(t==="__v_isShallow")return s;if(t==="__v_raw")return i===(n?s?gW:Pj:s?$j:Tj).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const o=fe(e);if(!n){let u;if(o&&(u=iW[t]))return u;if(t==="hasOwnProperty")return oW}const a=Reflect.get(e,t,Ft(e)?e:i);return(Ir(t)?Sj.has(t):sW(t))||(n||Dt(e,"get",t),s)?a:Ft(a)?o&&xw(t)?a:a.value:We(a)?n?Cj(a):Uu(a):a}}class Ij extends Oj{constructor(e=!1){super(!1,e)}set(e,t,i,n){let s=e[t];if(!this._isShallow){const u=Tn(s);if(!cr(i)&&!Tn(i)&&(s=Me(s),i=Me(i)),!fe(e)&&Ft(s)&&!Ft(i))return u?!1:(s.value=i,!0)}const o=fe(e)&&xw(t)?Number(t)r,Ka=r=>Reflect.getPrototypeOf(r);function dW(r,e,t){return function(...i){const n=this.__v_raw,s=Me(n),o=ms(s),a=r==="entries"||r===Symbol.iterator&&o,u=r==="keys"&&o,l=n[r](...i),c=t?J_:e?Q_:Mt;return!e&&Dt(s,"iterate",u?X_:yn),{next(){const{value:d,done:h}=l.next();return h?{value:d,done:h}:{value:a?[c(d[0]),c(d[1])]:c(d),done:h}},[Symbol.iterator](){return this}}}}function Ga(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function hW(r,e){const t={get(n){const s=this.__v_raw,o=Me(s),a=Me(n);r||(Mi(n,a)&&Dt(o,"get",n),Dt(o,"get",a));const{has:u}=Ka(o),l=e?J_:r?Q_:Mt;if(u.call(o,n))return l(s.get(n));if(u.call(o,a))return l(s.get(a));s!==o&&s.get(n)},get size(){const n=this.__v_raw;return!r&&Dt(Me(n),"iterate",yn),Reflect.get(n,"size",n)},has(n){const s=this.__v_raw,o=Me(s),a=Me(n);return r||(Mi(n,a)&&Dt(o,"has",n),Dt(o,"has",a)),n===a?s.has(n):s.has(n)||s.has(a)},forEach(n,s){const o=this,a=o.__v_raw,u=Me(a),l=e?J_:r?Q_:Mt;return!r&&Dt(u,"iterate",yn),a.forEach((c,d)=>n.call(s,l(c),l(d),o))}};return Et(t,r?{add:Ga("add"),set:Ga("set"),delete:Ga("delete"),clear:Ga("clear")}:{add(n){!e&&!cr(n)&&!Tn(n)&&(n=Me(n));const s=Me(this);return Ka(s).has.call(s,n)||(s.add(n),Zr(s,"add",n,n)),this},set(n,s){!e&&!cr(s)&&!Tn(s)&&(s=Me(s));const o=Me(this),{has:a,get:u}=Ka(o);let l=a.call(o,n);l||(n=Me(n),l=a.call(o,n));const c=u.call(o,n);return o.set(n,s),l?Mi(s,c)&&Zr(o,"set",n,s):Zr(o,"add",n,s),this},delete(n){const s=Me(this),{has:o,get:a}=Ka(s);let u=o.call(s,n);u||(n=Me(n),u=o.call(s,n)),a&&a.call(s,n);const l=s.delete(n);return u&&Zr(s,"delete",n,void 0),l},clear(){const n=Me(this),s=n.size!==0,o=n.clear();return s&&Zr(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=dW(n,r,e)}),t}function Fw(r,e){const t=hW(r,e);return(i,n,s)=>n==="__v_isReactive"?!r:n==="__v_isReadonly"?r:n==="__v_raw"?i:Reflect.get(ke(t,n)&&n in i?t:i,n,s)}const fW={get:Fw(!1,!1)},pW={get:Fw(!1,!0)},vW={get:Fw(!0,!1)};const Tj=new WeakMap,$j=new WeakMap,Pj=new WeakMap,gW=new WeakMap;function mW(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yW(r){return r.__v_skip||!Object.isExtensible(r)?0:mW(zH(r))}function Uu(r){return Tn(r)?r:kw(r,!1,uW,fW,Tj)}function Rj(r){return kw(r,!1,cW,pW,$j)}function Cj(r){return kw(r,!0,lW,vW,Pj)}function kw(r,e,t,i,n){if(!We(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const s=n.get(r);if(s)return s;const o=yW(r);if(o===0)return r;const a=new Proxy(r,o===2?i:t);return n.set(r,a),a}function ys(r){return Tn(r)?ys(r.__v_raw):!!(r&&r.__v_isReactive)}function Tn(r){return!!(r&&r.__v_isReadonly)}function cr(r){return!!(r&&r.__v_isShallow)}function Bw(r){return r?!!r.__v_raw:!1}function Me(r){const e=r&&r.__v_raw;return e?Me(e):r}function xj(r){return!ke(r,"__v_skip")&&Object.isExtensible(r)&&lj(r,"__v_skip",!0),r}const Mt=r=>We(r)?Uu(r):r,Q_=r=>We(r)?Cj(r):r;function Ft(r){return r?r.__v_isRef===!0:!1}function it(r){return qj(r,!1)}function bW(r){return qj(r,!0)}function qj(r,e){return Ft(r)?r:new _W(r,e)}class _W{constructor(e,t){this.dep=new Nw,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Me(e),this._value=t?e:Mt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,i=this.__v_isShallow||cr(e)||Tn(e);e=i?e:Me(e),Mi(e,t)&&(this._rawValue=e,this._value=i?e:Mt(e),this.dep.trigger())}}function dr(r){return Ft(r)?r.value:r}const wW={get:(r,e,t)=>e==="__v_raw"?r:dr(Reflect.get(r,e,t)),set:(r,e,t,i)=>{const n=r[e];return Ft(n)&&!Ft(t)?(n.value=t,!0):Reflect.set(r,e,t,i)}};function Aj(r){return ys(r)?r:new Proxy(r,wW)}class EW{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Nw(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ko-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Ve!==this)return mj(this,!0),!0}get value(){const e=this.dep.track();return _j(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function SW(r,e,t=!1){let i,n;return ye(r)?i=r:(i=r.get,n=r.set),new EW(i,n,t)}const Ya={},yu=new WeakMap;let cn;function OW(r,e=!1,t=cn){if(t){let i=yu.get(t);i||yu.set(t,i=[]),i.push(r)}}function IW(r,e,t=ze){const{immediate:i,deep:n,once:s,scheduler:o,augmentJob:a,call:u}=t,l=y=>n?y:cr(y)||n===!1||n===0?ei(y,1):ei(y);let c,d,h,f,p=!1,v=!1;if(Ft(r)?(d=()=>r.value,p=cr(r)):ys(r)?(d=()=>l(r),p=!0):fe(r)?(v=!0,p=r.some(y=>ys(y)||cr(y)),d=()=>r.map(y=>{if(Ft(y))return y.value;if(ys(y))return l(y);if(ye(y))return u?u(y,2):y()})):ye(r)?e?d=u?()=>u(r,2):r:d=()=>{if(h){Ki();try{h()}finally{Gi()}}const y=cn;cn=c;try{return u?u(r,3,[f]):r(f)}finally{cn=y}}:d=jr,e&&n){const y=d,I=n===!0?1/0:n;d=()=>ei(y(),I)}const _=eW(),m=()=>{c.stop(),_&&_.active&&Cw(_.effects,c)};if(s&&e){const y=e;e=(...I)=>{y(...I),m()}}let g=v?new Array(r.length).fill(Ya):Ya;const E=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(e){const I=c.run();if(n||p||(v?I.some((O,T)=>Mi(O,g[T])):Mi(I,g))){h&&h();const O=cn;cn=c;try{const T=[I,g===Ya?void 0:v&&g[0]===Ya?[]:g,f];u?u(e,3,T):e(...T),g=I}finally{cn=O}}}else c.run()};return a&&a(E),c=new vj(d),c.scheduler=o?()=>o(E,!1):E,f=y=>OW(y,!1,c),h=c.onStop=()=>{const y=yu.get(c);if(y){if(u)u(y,4);else for(const I of y)I();yu.delete(c)}},e?i?E(!0):g=c.run():o?o(E.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function ei(r,e=1/0,t){if(e<=0||!We(r)||r.__v_skip||(t=t||new Set,t.has(r)))return r;if(t.add(r),e--,Ft(r))ei(r.value,e,t);else if(fe(r))for(let i=0;i{ei(i,e,t)});else if(aj(r)){for(const i in r)ei(r[i],e,t);for(const i of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,i)&&ei(r[i],e,t)}return r}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function aa(r,e,t,i){try{return i?r(...i):r()}catch(n){Vu(n,e,t)}}function Tr(r,e,t,i){if(ye(r)){const n=aa(r,e,t,i);return n&&sj(n)&&n.catch(s=>{Vu(s,e,t)}),n}if(fe(r)){const n=[];for(let s=0;s>>1,n=zt[i],s=Lo(n);s=Lo(t)?zt.push(r):zt.splice($W(e),0,r),r.flags|=1,Nj()}}function Nj(){bu||(bu=Dj.then(kj))}function PW(r){fe(r)?bs.push(...r):Ti&&r.id===-1?Ti.splice(us+1,0,r):r.flags&1||(bs.push(r),r.flags|=1),Nj()}function oE(r,e,t=Dr+1){for(;tLo(t)-Lo(i));if(bs.length=0,Ti){Ti.push(...e);return}for(Ti=e,us=0;usr.id==null?r.flags&2?-1:1/0:r.id;function kj(r){try{for(Dr=0;Dr{i._d&&bE(-1);const s=_u(e);let o;try{o=r(...n)}finally{_u(s),i._d&&bE(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Ii(r,e){if(xt===null)return r;const t=Ju(xt),i=r.dirs||(r.dirs=[]);for(let n=0;nr.__isTeleport,To=r=>r&&(r.disabled||r.disabled===""),aE=r=>r&&(r.defer||r.defer===""),uE=r=>typeof SVGElement<"u"&&r instanceof SVGElement,lE=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,Z_=(r,e)=>{const t=r&&r.to;return ot(t)?e?e(t):null:t},zj={name:"Teleport",__isTeleport:!0,process(r,e,t,i,n,s,o,a,u,l){const{mc:c,pc:d,pbc:h,o:{insert:f,querySelector:p,createText:v,createComment:_}}=l,m=To(e.props);let{shapeFlag:g,children:E,dynamicChildren:y}=e;if(r==null){const I=e.el=v(""),O=e.anchor=v("");f(I,t,i),f(O,t,i);const T=(w,R)=>{g&16&&(n&&n.isCE&&(n.ce._teleportTarget=w),c(E,w,R,n,s,o,a,u))},b=()=>{const w=e.target=Z_(e.props,p),R=Hj(w,e,v,f);w&&(o!=="svg"&&uE(w)?o="svg":o!=="mathml"&&lE(w)&&(o="mathml"),m||(T(w,R),uu(e,!1)))};m&&(T(t,O),uu(e,!0)),aE(e.props)?Bt(()=>{b(),e.el.__isMounted=!0},s):b()}else{if(aE(e.props)&&!r.el.__isMounted){Bt(()=>{zj.process(r,e,t,i,n,s,o,a,u,l),delete r.el.__isMounted},s);return}e.el=r.el,e.targetStart=r.targetStart;const I=e.anchor=r.anchor,O=e.target=r.target,T=e.targetAnchor=r.targetAnchor,b=To(r.props),w=b?t:O,R=b?I:T;if(o==="svg"||uE(O)?o="svg":(o==="mathml"||lE(O))&&(o="mathml"),y?(h(r.dynamicChildren,y,w,n,s,o,a),Hw(r,e,!0)):u||d(r,e,w,R,n,s,o,a,!1),m)b?e.props&&r.props&&e.props.to!==r.props.to&&(e.props.to=r.props.to):Xa(e,t,I,l,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const P=e.target=Z_(e.props,p);P&&Xa(e,P,null,l,0)}else b&&Xa(e,O,T,l,1);uu(e,m)}},remove(r,e,t,{um:i,o:{remove:n}},s){const{shapeFlag:o,children:a,anchor:u,targetStart:l,targetAnchor:c,target:d,props:h}=r;if(d&&(n(l),n(c)),s&&n(u),o&16){const f=s||!To(h);for(let p=0;p{r.isMounted=!0}),Jj(()=>{r.isUnmounting=!0}),r}const or=[Function,Array],Wj={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:or,onEnter:or,onAfterEnter:or,onEnterCancelled:or,onBeforeLeave:or,onLeave:or,onAfterLeave:or,onLeaveCancelled:or,onBeforeAppear:or,onAppear:or,onAfterAppear:or,onAppearCancelled:or},Uj=r=>{const e=r.subTree;return e.component?Uj(e.component):e},qW={name:"BaseTransition",props:Wj,setup(r,{slots:e}){const t=T4(),i=xW();return()=>{const n=e.default&&Gj(e.default(),!0);if(!n||!n.length)return;const s=Vj(n),o=Me(r),{mode:a}=o;if(i.isLeaving)return Ll(s);const u=cE(s);if(!u)return Ll(s);let l=ew(u,o,i,t,d=>l=d);u.type!==Wt&&jo(u,l);let c=t.subTree&&cE(t.subTree);if(c&&c.type!==Wt&&!hn(u,c)&&Uj(t).type!==Wt){let d=ew(c,o,i,t);if(jo(c,d),a==="out-in"&&u.type!==Wt)return i.isLeaving=!0,d.afterLeave=()=>{i.isLeaving=!1,t.job.flags&8||t.update(),delete d.afterLeave,c=void 0},Ll(s);a==="in-out"&&u.type!==Wt?d.delayLeave=(h,f,p)=>{const v=Kj(i,c);v[String(c.key)]=c,h[$i]=()=>{f(),h[$i]=void 0,delete l.delayedLeave,c=void 0},l.delayedLeave=()=>{p(),delete l.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function Vj(r){let e=r[0];if(r.length>1){for(const t of r)if(t.type!==Wt){e=t;break}}return e}const AW=qW;function Kj(r,e){const{leavingVNodes:t}=r;let i=t.get(e.type);return i||(i=Object.create(null),t.set(e.type,i)),i}function ew(r,e,t,i,n){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:u,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:_,onAppear:m,onAfterAppear:g,onAppearCancelled:E}=e,y=String(r.key),I=Kj(t,r),O=(w,R)=>{w&&Tr(w,i,9,R)},T=(w,R)=>{const P=R[1];O(w,R),fe(w)?w.every(S=>S.length<=1)&&P():w.length<=1&&P()},b={mode:o,persisted:a,beforeEnter(w){let R=u;if(!t.isMounted)if(s)R=_||u;else return;w[$i]&&w[$i](!0);const P=I[y];P&&hn(r,P)&&P.el[$i]&&P.el[$i](),O(R,[w])},enter(w){let R=l,P=c,S=d;if(!t.isMounted)if(s)R=m||l,P=g||c,S=E||d;else return;let $=!1;const q=w[Ja]=F=>{$||($=!0,F?O(S,[w]):O(P,[w]),b.delayedLeave&&b.delayedLeave(),w[Ja]=void 0)};R?T(R,[w,q]):q()},leave(w,R){const P=String(r.key);if(w[Ja]&&w[Ja](!0),t.isUnmounting)return R();O(h,[w]);let S=!1;const $=w[$i]=q=>{S||(S=!0,R(),q?O(v,[w]):O(p,[w]),w[$i]=void 0,I[P]===r&&delete I[P])};I[P]=r,f?T(f,[w,$]):$()},clone(w){const R=ew(w,e,t,i,n);return n&&n(R),R}};return b}function Ll(r){if(Ku(r))return r=Hi(r),r.children=null,r}function cE(r){if(!Ku(r))return jj(r.type)&&r.children?Vj(r.children):r;const{shapeFlag:e,children:t}=r;if(t){if(e&16)return t[0];if(e&32&&ye(t.default))return t.default()}}function jo(r,e){r.shapeFlag&6&&r.component?(r.transition=e,jo(r.component.subTree,e)):r.shapeFlag&128?(r.ssContent.transition=e.clone(r.ssContent),r.ssFallback.transition=e.clone(r.ssFallback)):r.transition=e}function Gj(r,e=!1,t){let i=[],n=0;for(let s=0;s1)for(let s=0;swu(p,e&&(fe(e)?e[v]:e),t,i,n));return}if(_s(i)&&!n){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&wu(r,e,t,i.component.subTree);return}const s=i.shapeFlag&4?Ju(i.component):i.el,o=n?null:s,{i:a,r:u}=r,l=e&&e.r,c=a.refs===ze?a.refs={}:a.refs,d=a.setupState,h=Me(d),f=d===ze?()=>!1:p=>ke(h,p);if(l!=null&&l!==u&&(ot(l)?(c[l]=null,f(l)&&(d[l]=null)):Ft(l)&&(l.value=null)),ye(u))aa(u,a,12,[o,c]);else{const p=ot(u),v=Ft(u);if(p||v){const _=()=>{if(r.f){const m=p?f(u)?d[u]:c[u]:u.value;n?fe(m)&&Cw(m,s):fe(m)?m.includes(s)||m.push(s):p?(c[u]=[s],f(u)&&(d[u]=c[u])):(u.value=[s],r.k&&(c[r.k]=u.value))}else p?(c[u]=o,f(u)&&(d[u]=o)):v&&(u.value=o,r.k&&(c[r.k]=o))};o?(_.id=-1,Bt(_,t)):_()}}}zu().requestIdleCallback;zu().cancelIdleCallback;const _s=r=>!!r.type.__asyncLoader,Ku=r=>r.type.__isKeepAlive;function DW(r,e){Xj(r,"a",e)}function MW(r,e){Xj(r,"da",e)}function Xj(r,e,t=Nt){const i=r.__wdc||(r.__wdc=()=>{let n=t;for(;n;){if(n.isDeactivated)return;n=n.parent}return r()});if(Gu(e,i,t),t){let n=t.parent;for(;n&&n.parent;)Ku(n.parent.vnode)&&NW(i,e,t,n),n=n.parent}}function NW(r,e,t,i){const n=Gu(e,r,i,!0);jw(()=>{Cw(i[e],n)},t)}function Gu(r,e,t=Nt,i=!1){if(t){const n=t[r]||(t[r]=[]),s=e.__weh||(e.__weh=(...o)=>{Ki();const a=la(t),u=Tr(e,t,r,o);return a(),Gi(),u});return i?n.unshift(s):n.push(s),s}}const fi=r=>(e,t=Nt)=>{(!Wo||r==="sp")&&Gu(r,(...i)=>e(...i),t)},FW=fi("bm"),ua=fi("m"),kW=fi("bu"),BW=fi("u"),Jj=fi("bum"),jw=fi("um"),LW=fi("sp"),jW=fi("rtg"),zW=fi("rtc");function HW(r,e=Nt){Gu("ec",r,e)}const WW=Symbol.for("v-ndc");function Xr(r,e,t,i){let n;const s=t,o=fe(r);if(o||ot(r)){const a=o&&ys(r);let u=!1;a&&(u=!cr(r),r=Wu(r)),n=new Array(r.length);for(let l=0,c=r.length;le(a,u,void 0,s));else{const a=Object.keys(r);n=new Array(a.length);for(let u=0,l=a.length;uHo(e)?!(e.type===Wt||e.type===Qe&&!Qj(e.children)):!0)?r:null}const tw=r=>r?yz(r)?Ju(r):tw(r.parent):null,$o=Et(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>tw(r.parent),$root:r=>tw(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>ez(r),$forceUpdate:r=>r.f||(r.f=()=>{Lw(r.update)}),$nextTick:r=>r.n||(r.n=Mj.bind(r.proxy)),$watch:r=>d4.bind(r)}),jl=(r,e)=>r!==ze&&!r.__isScriptSetup&&ke(r,e),UW={get({_:r},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:i,data:n,props:s,accessCache:o,type:a,appContext:u}=r;let l;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return i[e];case 2:return n[e];case 4:return t[e];case 3:return s[e]}else{if(jl(i,e))return o[e]=1,i[e];if(n!==ze&&ke(n,e))return o[e]=2,n[e];if((l=r.propsOptions[0])&&ke(l,e))return o[e]=3,s[e];if(t!==ze&&ke(t,e))return o[e]=4,t[e];rw&&(o[e]=0)}}const c=$o[e];let d,h;if(c)return e==="$attrs"&&Dt(r.attrs,"get",""),c(r);if((d=a.__cssModules)&&(d=d[e]))return d;if(t!==ze&&ke(t,e))return o[e]=4,t[e];if(h=u.config.globalProperties,ke(h,e))return h[e]},set({_:r},e,t){const{data:i,setupState:n,ctx:s}=r;return jl(n,e)?(n[e]=t,!0):i!==ze&&ke(i,e)?(i[e]=t,!0):ke(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(s[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:i,appContext:n,propsOptions:s}},o){let a;return!!t[o]||r!==ze&&ke(r,o)||jl(e,o)||(a=s[0])&&ke(a,o)||ke(i,o)||ke($o,o)||ke(n.config.globalProperties,o)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:ke(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}};function dE(r){return fe(r)?r.reduce((e,t)=>(e[t]=null,e),{}):r}let rw=!0;function VW(r){const e=ez(r),t=r.proxy,i=r.ctx;rw=!1,e.beforeCreate&&hE(e.beforeCreate,r,"bc");const{data:n,computed:s,methods:o,watch:a,provide:u,inject:l,created:c,beforeMount:d,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:_,beforeDestroy:m,beforeUnmount:g,destroyed:E,unmounted:y,render:I,renderTracked:O,renderTriggered:T,errorCaptured:b,serverPrefetch:w,expose:R,inheritAttrs:P,components:S,directives:$,filters:q}=e;if(l&&KW(l,i,null),o)for(const z in o){const te=o[z];ye(te)&&(i[z]=te.bind(t))}if(n){const z=n.call(t,t);We(z)&&(r.data=Uu(z))}if(rw=!0,s)for(const z in s){const te=s[z],ve=ye(te)?te.bind(t,t):ye(te.get)?te.get.bind(t,t):jr,we=!ye(te)&&ye(te.set)?te.set.bind(t):jr,re=Sr({get:ve,set:we});Object.defineProperty(i,z,{enumerable:!0,configurable:!0,get:()=>re.value,set:me=>re.value=me})}if(a)for(const z in a)Zj(a[z],i,t,z);if(u){const z=ye(u)?u.call(t):u;Reflect.ownKeys(z).forEach(te=>{cu(te,z[te])})}c&&hE(c,r,"c");function Z(z,te){fe(te)?te.forEach(ve=>z(ve.bind(t))):te&&z(te.bind(t))}if(Z(FW,d),Z(ua,h),Z(kW,f),Z(BW,p),Z(DW,v),Z(MW,_),Z(HW,b),Z(zW,O),Z(jW,T),Z(Jj,g),Z(jw,y),Z(LW,w),fe(R))if(R.length){const z=r.exposed||(r.exposed={});R.forEach(te=>{Object.defineProperty(z,te,{get:()=>t[te],set:ve=>t[te]=ve})})}else r.exposed||(r.exposed={});I&&r.render===jr&&(r.render=I),P!=null&&(r.inheritAttrs=P),S&&(r.components=S),$&&(r.directives=$),w&&Yj(r)}function KW(r,e,t=jr){fe(r)&&(r=iw(r));for(const i in r){const n=r[i];let s;We(n)?"default"in n?s=ii(n.from||i,n.default,!0):s=ii(n.from||i):s=ii(n),Ft(s)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[i]=s}}function hE(r,e,t){Tr(fe(r)?r.map(i=>i.bind(e.proxy)):r.bind(e.proxy),e,t)}function Zj(r,e,t,i){let n=i.includes(".")?fz(t,i):()=>t[i];if(ot(r)){const s=e[r];ye(s)&&du(n,s)}else if(ye(r))du(n,r.bind(t));else if(We(r))if(fe(r))r.forEach(s=>Zj(s,e,t,i));else{const s=ye(r.handler)?r.handler.bind(t):e[r.handler];ye(s)&&du(n,s,r)}}function ez(r){const e=r.type,{mixins:t,extends:i}=e,{mixins:n,optionsCache:s,config:{optionMergeStrategies:o}}=r.appContext,a=s.get(e);let u;return a?u=a:!n.length&&!t&&!i?u=e:(u={},n.length&&n.forEach(l=>Eu(u,l,o,!0)),Eu(u,e,o)),We(e)&&s.set(e,u),u}function Eu(r,e,t,i=!1){const{mixins:n,extends:s}=e;s&&Eu(r,s,t,!0),n&&n.forEach(o=>Eu(r,o,t,!0));for(const o in e)if(!(i&&o==="expose")){const a=GW[o]||t&&t[o];r[o]=a?a(r[o],e[o]):e[o]}return r}const GW={data:fE,props:pE,emits:pE,methods:_o,computed:_o,beforeCreate:kt,created:kt,beforeMount:kt,mounted:kt,beforeUpdate:kt,updated:kt,beforeDestroy:kt,beforeUnmount:kt,destroyed:kt,unmounted:kt,activated:kt,deactivated:kt,errorCaptured:kt,serverPrefetch:kt,components:_o,directives:_o,watch:XW,provide:fE,inject:YW};function fE(r,e){return e?r?function(){return Et(ye(r)?r.call(this,this):r,ye(e)?e.call(this,this):e)}:e:r}function YW(r,e){return _o(iw(r),iw(e))}function iw(r){if(fe(r)){const e={};for(let t=0;t1)return t&&ye(e)?e.call(i&&i.proxy):e}}const rz={},iz=()=>Object.create(rz),nz=r=>Object.getPrototypeOf(r)===rz;function ZW(r,e,t,i=!1){const n={},s=iz();r.propsDefaults=Object.create(null),sz(r,e,n,s);for(const o in r.propsOptions[0])o in n||(n[o]=void 0);t?r.props=i?n:Rj(n):r.type.props?r.props=n:r.props=s,r.attrs=s}function e4(r,e,t,i){const{props:n,attrs:s,vnode:{patchFlag:o}}=r,a=Me(n),[u]=r.propsOptions;let l=!1;if((i||o>0)&&!(o&16)){if(o&8){const c=r.vnode.dynamicProps;for(let d=0;d{u=!0;const[h,f]=oz(d,e,!0);Et(o,h),f&&a.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(c),r.extends&&c(r.extends),r.mixins&&r.mixins.forEach(c)}if(!s&&!u)return We(r)&&i.set(r,gs),gs;if(fe(s))for(let c=0;cr[0]==="_"||r==="$stable",zw=r=>fe(r)?r.map(Nr):[Nr(r)],r4=(r,e,t)=>{if(e._n)return e;const i=bn((...n)=>zw(e(...n)),t);return i._c=!1,i},uz=(r,e,t)=>{const i=r._ctx;for(const n in r){if(az(n))continue;const s=r[n];if(ye(s))e[n]=r4(n,s,i);else if(s!=null){const o=zw(s);e[n]=()=>o}}},lz=(r,e)=>{const t=zw(e);r.slots.default=()=>t},cz=(r,e,t)=>{for(const i in e)(t||i!=="_")&&(r[i]=e[i])},i4=(r,e,t)=>{const i=r.slots=iz();if(r.vnode.shapeFlag&32){const n=e._;n?(cz(i,e,t),t&&lj(i,"_",n,!0)):uz(e,i)}else e&&lz(r,e)},n4=(r,e,t)=>{const{vnode:i,slots:n}=r;let s=!0,o=ze;if(i.shapeFlag&32){const a=e._;a?t&&a===1?s=!1:cz(n,e,t):(s=!e.$stable,uz(e,n)),o=e}else e&&(lz(r,e),o={default:1});if(s)for(const a in n)!az(a)&&o[a]==null&&delete n[a]},Bt=y4;function s4(r){return o4(r)}function o4(r,e){const t=zu();t.__VUE__=!0;const{insert:i,remove:n,patchProp:s,createElement:o,createText:a,createComment:u,setText:l,setElementText:c,parentNode:d,nextSibling:h,setScopeId:f=jr,insertStaticContent:p}=r,v=(C,x,A,k=null,B=null,N=null,G=void 0,J=null,V=!!x.dynamicChildren)=>{if(C===x)return;C&&!hn(C,x)&&(k=D(C),me(C,B,N,!0),C=null),x.patchFlag===-2&&(V=!1,x.dynamicChildren=null);const{type:L,ref:ce,shapeFlag:Q}=x;switch(L){case Xu:_(C,x,A,k);break;case Wt:m(C,x,A,k);break;case Hl:C==null&&g(x,A,k,G);break;case Qe:S(C,x,A,k,B,N,G,J,V);break;default:Q&1?I(C,x,A,k,B,N,G,J,V):Q&6?$(C,x,A,k,B,N,G,J,V):(Q&64||Q&128)&&L.process(C,x,A,k,B,N,G,J,V,ne)}ce!=null&&B&&wu(ce,C&&C.ref,N,x||C,!x)},_=(C,x,A,k)=>{if(C==null)i(x.el=a(x.children),A,k);else{const B=x.el=C.el;x.children!==C.children&&l(B,x.children)}},m=(C,x,A,k)=>{C==null?i(x.el=u(x.children||""),A,k):x.el=C.el},g=(C,x,A,k)=>{[C.el,C.anchor]=p(C.children,x,A,k,C.el,C.anchor)},E=({el:C,anchor:x},A,k)=>{let B;for(;C&&C!==x;)B=h(C),i(C,A,k),C=B;i(x,A,k)},y=({el:C,anchor:x})=>{let A;for(;C&&C!==x;)A=h(C),n(C),C=A;n(x)},I=(C,x,A,k,B,N,G,J,V)=>{x.type==="svg"?G="svg":x.type==="math"&&(G="mathml"),C==null?O(x,A,k,B,N,G,J,V):w(C,x,B,N,G,J,V)},O=(C,x,A,k,B,N,G,J)=>{let V,L;const{props:ce,shapeFlag:Q,transition:oe,dirs:he}=C;if(V=C.el=o(C.type,N,ce&&ce.is,ce),Q&8?c(V,C.children):Q&16&&b(C.children,V,null,k,B,zl(C,N),G,J),he&&nn(C,null,k,"created"),T(V,C,C.scopeId,G,k),ce){for(const Ae in ce)Ae!=="value"&&!So(Ae)&&s(V,Ae,null,ce[Ae],N,k);"value"in ce&&s(V,"value",null,ce.value,N),(L=ce.onVnodeBeforeMount)&&qr(L,k,C)}he&&nn(C,null,k,"beforeMount");const Ie=a4(B,oe);Ie&&oe.beforeEnter(V),i(V,x,A),((L=ce&&ce.onVnodeMounted)||Ie||he)&&Bt(()=>{L&&qr(L,k,C),Ie&&oe.enter(V),he&&nn(C,null,k,"mounted")},B)},T=(C,x,A,k,B)=>{if(A&&f(C,A),k)for(let N=0;N{for(let L=V;L{const J=x.el=C.el;let{patchFlag:V,dynamicChildren:L,dirs:ce}=x;V|=C.patchFlag&16;const Q=C.props||ze,oe=x.props||ze;let he;if(A&&sn(A,!1),(he=oe.onVnodeBeforeUpdate)&&qr(he,A,x,C),ce&&nn(x,C,A,"beforeUpdate"),A&&sn(A,!0),(Q.innerHTML&&oe.innerHTML==null||Q.textContent&&oe.textContent==null)&&c(J,""),L?R(C.dynamicChildren,L,J,A,k,zl(x,B),N):G||te(C,x,J,null,A,k,zl(x,B),N,!1),V>0){if(V&16)P(J,Q,oe,A,B);else if(V&2&&Q.class!==oe.class&&s(J,"class",null,oe.class,B),V&4&&s(J,"style",Q.style,oe.style,B),V&8){const Ie=x.dynamicProps;for(let Ae=0;Ae{he&&qr(he,A,x,C),ce&&nn(x,C,A,"updated")},k)},R=(C,x,A,k,B,N,G)=>{for(let J=0;J{if(x!==A){if(x!==ze)for(const N in x)!So(N)&&!(N in A)&&s(C,N,x[N],null,B,k);for(const N in A){if(So(N))continue;const G=A[N],J=x[N];G!==J&&N!=="value"&&s(C,N,J,G,B,k)}"value"in A&&s(C,"value",x.value,A.value,B)}},S=(C,x,A,k,B,N,G,J,V)=>{const L=x.el=C?C.el:a(""),ce=x.anchor=C?C.anchor:a("");let{patchFlag:Q,dynamicChildren:oe,slotScopeIds:he}=x;he&&(J=J?J.concat(he):he),C==null?(i(L,A,k),i(ce,A,k),b(x.children||[],A,ce,B,N,G,J,V)):Q>0&&Q&64&&oe&&C.dynamicChildren?(R(C.dynamicChildren,oe,A,B,N,G,J),(x.key!=null||B&&x===B.subTree)&&Hw(C,x,!0)):te(C,x,A,ce,B,N,G,J,V)},$=(C,x,A,k,B,N,G,J,V)=>{x.slotScopeIds=J,C==null?x.shapeFlag&512?B.ctx.activate(x,A,k,G,V):q(x,A,k,B,N,G,V):F(C,x,V)},q=(C,x,A,k,B,N,G)=>{const J=C.component=I4(C,k,B);if(Ku(C)&&(J.ctx.renderer=ne),$4(J,!1,G),J.asyncDep){if(B&&B.registerDep(J,Z,G),!C.el){const V=J.subTree=at(Wt);m(null,V,x,A)}}else Z(J,C,x,A,B,N,G)},F=(C,x,A)=>{const k=x.component=C.component;if(g4(C,x,A))if(k.asyncDep&&!k.asyncResolved){z(k,x,A);return}else k.next=x,k.update();else x.el=C.el,k.vnode=x},Z=(C,x,A,k,B,N,G)=>{const J=()=>{if(C.isMounted){let{next:Q,bu:oe,u:he,parent:Ie,vnode:Ae}=C;{const K=dz(C);if(K){Q&&(Q.el=Ae.el,z(C,Q,G)),K.asyncDep.then(()=>{C.isUnmounted||J()});return}}let Ce=Q,bt;sn(C,!1),Q?(Q.el=Ae.el,z(C,Q,G)):Q=Ae,oe&&au(oe),(bt=Q.props&&Q.props.onVnodeBeforeUpdate)&&qr(bt,Ie,Q,Ae),sn(C,!0);const dt=mE(C),ae=C.subTree;C.subTree=dt,v(ae,dt,d(ae.el),D(ae),C,B,N),Q.el=dt.el,Ce===null&&m4(C,dt.el),he&&Bt(he,B),(bt=Q.props&&Q.props.onVnodeUpdated)&&Bt(()=>qr(bt,Ie,Q,Ae),B)}else{let Q;const{el:oe,props:he}=x,{bm:Ie,m:Ae,parent:Ce,root:bt,type:dt}=C,ae=_s(x);sn(C,!1),Ie&&au(Ie),!ae&&(Q=he&&he.onVnodeBeforeMount)&&qr(Q,Ce,x),sn(C,!0);{bt.ce&&bt.ce._injectChildStyle(dt);const K=C.subTree=mE(C);v(null,K,A,k,C,B,N),x.el=K.el}if(Ae&&Bt(Ae,B),!ae&&(Q=he&&he.onVnodeMounted)){const K=x;Bt(()=>qr(Q,Ce,K),B)}(x.shapeFlag&256||Ce&&_s(Ce.vnode)&&Ce.vnode.shapeFlag&256)&&C.a&&Bt(C.a,B),C.isMounted=!0,x=A=k=null}};C.scope.on();const V=C.effect=new vj(J);C.scope.off();const L=C.update=V.run.bind(V),ce=C.job=V.runIfDirty.bind(V);ce.i=C,ce.id=C.uid,V.scheduler=()=>Lw(ce),sn(C,!0),L()},z=(C,x,A)=>{x.component=C;const k=C.vnode.props;C.vnode=x,C.next=null,e4(C,x.props,k,A),n4(C,x.children,A),Ki(),oE(C),Gi()},te=(C,x,A,k,B,N,G,J,V=!1)=>{const L=C&&C.children,ce=C?C.shapeFlag:0,Q=x.children,{patchFlag:oe,shapeFlag:he}=x;if(oe>0){if(oe&128){we(L,Q,A,k,B,N,G,J,V);return}else if(oe&256){ve(L,Q,A,k,B,N,G,J,V);return}}he&8?(ce&16&&_e(L,B,N),Q!==L&&c(A,Q)):ce&16?he&16?we(L,Q,A,k,B,N,G,J,V):_e(L,B,N,!0):(ce&8&&c(A,""),he&16&&b(Q,A,k,B,N,G,J,V))},ve=(C,x,A,k,B,N,G,J,V)=>{C=C||gs,x=x||gs;const L=C.length,ce=x.length,Q=Math.min(L,ce);let oe;for(oe=0;oece?_e(C,B,N,!0,!1,Q):b(x,A,k,B,N,G,J,V,Q)},we=(C,x,A,k,B,N,G,J,V)=>{let L=0;const ce=x.length;let Q=C.length-1,oe=ce-1;for(;L<=Q&&L<=oe;){const he=C[L],Ie=x[L]=V?Pi(x[L]):Nr(x[L]);if(hn(he,Ie))v(he,Ie,A,null,B,N,G,J,V);else break;L++}for(;L<=Q&&L<=oe;){const he=C[Q],Ie=x[oe]=V?Pi(x[oe]):Nr(x[oe]);if(hn(he,Ie))v(he,Ie,A,null,B,N,G,J,V);else break;Q--,oe--}if(L>Q){if(L<=oe){const he=oe+1,Ie=heoe)for(;L<=Q;)me(C[L],B,N,!0),L++;else{const he=L,Ie=L,Ae=new Map;for(L=Ie;L<=oe;L++){const se=x[L]=V?Pi(x[L]):Nr(x[L]);se.key!=null&&Ae.set(se.key,L)}let Ce,bt=0;const dt=oe-Ie+1;let ae=!1,K=0;const ee=new Array(dt);for(L=0;L=dt){me(se,B,N,!0);continue}let Ee;if(se.key!=null)Ee=Ae.get(se.key);else for(Ce=Ie;Ce<=oe;Ce++)if(ee[Ce-Ie]===0&&hn(se,x[Ce])){Ee=Ce;break}Ee===void 0?me(se,B,N,!0):(ee[Ee-Ie]=L+1,Ee>=K?K=Ee:ae=!0,v(se,x[Ee],A,null,B,N,G,J,V),bt++)}const ie=ae?u4(ee):gs;for(Ce=ie.length-1,L=dt-1;L>=0;L--){const se=Ie+L,Ee=x[se],wi=se+1{const{el:N,type:G,transition:J,children:V,shapeFlag:L}=C;if(L&6){re(C.component.subTree,x,A,k);return}if(L&128){C.suspense.move(x,A,k);return}if(L&64){G.move(C,x,A,ne);return}if(G===Qe){i(N,x,A);for(let Q=0;QJ.enter(N),B);else{const{leave:Q,delayLeave:oe,afterLeave:he}=J,Ie=()=>i(N,x,A),Ae=()=>{Q(N,()=>{Ie(),he&&he()})};oe?oe(N,Ie,Ae):Ae()}else i(N,x,A)},me=(C,x,A,k=!1,B=!1)=>{const{type:N,props:G,ref:J,children:V,dynamicChildren:L,shapeFlag:ce,patchFlag:Q,dirs:oe,cacheIndex:he}=C;if(Q===-2&&(B=!1),J!=null&&wu(J,null,A,C,!0),he!=null&&(x.renderCache[he]=void 0),ce&256){x.ctx.deactivate(C);return}const Ie=ce&1&&oe,Ae=!_s(C);let Ce;if(Ae&&(Ce=G&&G.onVnodeBeforeUnmount)&&qr(Ce,x,C),ce&6)ct(C.component,A,k);else{if(ce&128){C.suspense.unmount(A,k);return}Ie&&nn(C,null,x,"beforeUnmount"),ce&64?C.type.remove(C,x,A,ne,k):L&&!L.hasOnce&&(N!==Qe||Q>0&&Q&64)?_e(L,x,A,!1,!0):(N===Qe&&Q&384||!B&&ce&16)&&_e(V,x,A),k&&qe(C)}(Ae&&(Ce=G&&G.onVnodeUnmounted)||Ie)&&Bt(()=>{Ce&&qr(Ce,x,C),Ie&&nn(C,null,x,"unmounted")},A)},qe=C=>{const{type:x,el:A,anchor:k,transition:B}=C;if(x===Qe){De(A,k);return}if(x===Hl){y(C);return}const N=()=>{n(A),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(C.shapeFlag&1&&B&&!B.persisted){const{leave:G,delayLeave:J}=B,V=()=>G(A,N);J?J(C.el,N,V):V()}else N()},De=(C,x)=>{let A;for(;C!==x;)A=h(C),n(C),C=A;n(x)},ct=(C,x,A)=>{const{bum:k,scope:B,job:N,subTree:G,um:J,m:V,a:L}=C;gE(V),gE(L),k&&au(k),B.stop(),N&&(N.flags|=8,me(G,C,x,A)),J&&Bt(J,x),Bt(()=>{C.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},_e=(C,x,A,k=!1,B=!1,N=0)=>{for(let G=N;G{if(C.shapeFlag&6)return D(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const x=h(C.anchor||C.el),A=x&&x[Lj];return A?h(A):x};let U=!1;const X=(C,x,A)=>{C==null?x._vnode&&me(x._vnode,null,null,!0):v(x._vnode||null,C,x,null,null,null,A),x._vnode=C,U||(U=!0,oE(),Fj(),U=!1)},ne={p:v,um:me,m:re,r:qe,mt:q,mc:b,pc:te,pbc:R,n:D,o:r};return{render:X,hydrate:void 0,createApp:QW(X)}}function zl({type:r,props:e},t){return t==="svg"&&r==="foreignObject"||t==="mathml"&&r==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function sn({effect:r,job:e},t){t?(r.flags|=32,e.flags|=4):(r.flags&=-33,e.flags&=-5)}function a4(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function Hw(r,e,t=!1){const i=r.children,n=e.children;if(fe(i)&&fe(n))for(let s=0;s>1,r[t[a]]0&&(e[i]=t[s-1]),t[s]=i)}}for(s=t.length,o=t[s-1];s-- >0;)t[s]=o,o=e[o];return t}function dz(r){const e=r.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:dz(e)}function gE(r){if(r)for(let e=0;eii(l4);function du(r,e,t){return hz(r,e,t)}function hz(r,e,t=ze){const{immediate:i,deep:n,flush:s,once:o}=t,a=Et({},t),u=e&&i||!e&&s!=="post";let l;if(Wo){if(s==="sync"){const f=c4();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!u){const f=()=>{};return f.stop=jr,f.resume=jr,f.pause=jr,f}}const c=Nt;a.call=(f,p,v)=>Tr(f,c,p,v);let d=!1;s==="post"?a.scheduler=f=>{Bt(f,c&&c.suspense)}:s!=="sync"&&(d=!0,a.scheduler=(f,p)=>{p?f():Lw(f)}),a.augmentJob=f=>{e&&(f.flags|=4),d&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const h=IW(r,e,a);return Wo&&(l?l.push(h):u&&h()),h}function d4(r,e,t){const i=this.proxy,n=ot(r)?r.includes(".")?fz(i,r):()=>i[r]:r.bind(i,i);let s;ye(e)?s=e:(s=e.handler,t=e);const o=la(this),a=hz(n,s.bind(i),t);return o(),a}function fz(r,e){const t=e.split(".");return()=>{let i=r;for(let n=0;ne==="modelValue"||e==="model-value"?r.modelModifiers:r[`${e}Modifiers`]||r[`${zi(e)}Modifiers`]||r[`${Mn(e)}Modifiers`];function f4(r,e,...t){if(r.isUnmounted)return;const i=r.vnode.props||ze;let n=t;const s=e.startsWith("update:"),o=s&&h4(i,e.slice(7));o&&(o.trim&&(n=t.map(c=>ot(c)?c.trim():c)),o.number&&(n=t.map(K_)));let a,u=i[a=Ml(e)]||i[a=Ml(zi(e))];!u&&s&&(u=i[a=Ml(Mn(e))]),u&&Tr(u,r,6,n);const l=i[a+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[a])return;r.emitted[a]=!0,Tr(l,r,6,n)}}function pz(r,e,t=!1){const i=e.emitsCache,n=i.get(r);if(n!==void 0)return n;const s=r.emits;let o={},a=!1;if(!ye(r)){const u=l=>{const c=pz(l,e,!0);c&&(a=!0,Et(o,c))};!t&&e.mixins.length&&e.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}return!s&&!a?(We(r)&&i.set(r,null),null):(fe(s)?s.forEach(u=>o[u]=null):Et(o,s),We(r)&&i.set(r,o),o)}function Yu(r,e){return!r||!Bu(e)?!1:(e=e.slice(2).replace(/Once$/,""),ke(r,e[0].toLowerCase()+e.slice(1))||ke(r,Mn(e))||ke(r,e))}function mE(r){const{type:e,vnode:t,proxy:i,withProxy:n,propsOptions:[s],slots:o,attrs:a,emit:u,render:l,renderCache:c,props:d,data:h,setupState:f,ctx:p,inheritAttrs:v}=r,_=_u(r);let m,g;try{if(t.shapeFlag&4){const y=n||i,I=y;m=Nr(l.call(I,y,c,d,f,h,p)),g=a}else{const y=e;m=Nr(y.length>1?y(d,{attrs:a,slots:o,emit:u}):y(d,null)),g=e.props?a:p4(a)}}catch(y){Po.length=0,Vu(y,r,1),m=at(Wt)}let E=m;if(g&&v!==!1){const y=Object.keys(g),{shapeFlag:I}=E;y.length&&I&7&&(s&&y.some(Rw)&&(g=v4(g,s)),E=Hi(E,g,!1,!0))}return t.dirs&&(E=Hi(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&jo(E,t.transition),m=E,_u(_),m}const p4=r=>{let e;for(const t in r)(t==="class"||t==="style"||Bu(t))&&((e||(e={}))[t]=r[t]);return e},v4=(r,e)=>{const t={};for(const i in r)(!Rw(i)||!(i.slice(9)in e))&&(t[i]=r[i]);return t};function g4(r,e,t){const{props:i,children:n,component:s}=r,{props:o,children:a,patchFlag:u}=e,l=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&u>=0){if(u&1024)return!0;if(u&16)return i?yE(i,o,l):!!o;if(u&8){const c=e.dynamicProps;for(let d=0;dr.__isSuspense;function y4(r,e){e&&e.pendingBranch?fe(r)?e.effects.push(...r):e.effects.push(r):PW(r)}const Qe=Symbol.for("v-fgt"),Xu=Symbol.for("v-txt"),Wt=Symbol.for("v-cmt"),Hl=Symbol.for("v-stc"),Po=[];let rr=null;function Oe(r=!1){Po.push(rr=r?null:[])}function b4(){Po.pop(),rr=Po[Po.length-1]||null}let zo=1;function bE(r,e=!1){zo+=r,r<0&&rr&&e&&(rr.hasOnce=!0)}function gz(r){return r.dynamicChildren=zo>0?rr||gs:null,b4(),zo>0&&rr&&rr.push(r),r}function Ne(r,e,t,i,n,s){return gz(W(r,e,t,i,n,s,!0))}function hi(r,e,t,i,n){return gz(at(r,e,t,i,n,!0))}function Ho(r){return r?r.__v_isVNode===!0:!1}function hn(r,e){return r.type===e.type&&r.key===e.key}const mz=({key:r})=>r??null,hu=({ref:r,ref_key:e,ref_for:t})=>(typeof r=="number"&&(r=""+r),r!=null?ot(r)||Ft(r)||ye(r)?{i:xt,r,k:e,f:!!t}:r:null);function W(r,e=null,t=null,i=0,n=null,s=r===Qe?0:1,o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&mz(e),ref:e&&hu(e),scopeId:Bj,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:xt};return a?(Ww(u,t),s&128&&r.normalize(u)):t&&(u.shapeFlag|=ot(t)?8:16),zo>0&&!o&&rr&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&rr.push(u),u}const at=_4;function _4(r,e=null,t=null,i=0,n=null,s=!1){if((!r||r===WW)&&(r=Wt),Ho(r)){const a=Hi(r,e,!0);return t&&Ww(a,t),zo>0&&!s&&rr&&(a.shapeFlag&6?rr[rr.indexOf(r)]=a:rr.push(a)),a.patchFlag=-2,a}if(x4(r)&&(r=r.__vccOpts),e){e=w4(e);let{class:a,style:u}=e;a&&!ot(a)&&(e.class=qi(a)),We(u)&&(Bw(u)&&!fe(u)&&(u=Et({},u)),e.style=qw(u))}const o=ot(r)?1:vz(r)?128:jj(r)?64:We(r)?4:ye(r)?2:0;return W(r,e,t,i,n,o,s,!0)}function w4(r){return r?Bw(r)||nz(r)?Et({},r):r:null}function Hi(r,e,t=!1,i=!1){const{props:n,ref:s,patchFlag:o,children:a,transition:u}=r,l=e?E4(n||{},e):n,c={__v_isVNode:!0,__v_skip:!0,type:r.type,props:l,key:l&&mz(l),ref:e&&e.ref?t&&s?fe(s)?s.concat(hu(e)):[s,hu(e)]:hu(e):s,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:a,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==Qe?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:u,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Hi(r.ssContent),ssFallback:r.ssFallback&&Hi(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return u&&i&&jo(c,u.clone(c)),c}function ar(r=" ",e=0){return at(Xu,null,r,e)}function Jr(r="",e=!1){return e?(Oe(),hi(Wt,null,r)):at(Wt,null,r)}function Nr(r){return r==null||typeof r=="boolean"?at(Wt):fe(r)?at(Qe,null,r.slice()):Ho(r)?Pi(r):at(Xu,null,String(r))}function Pi(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Hi(r)}function Ww(r,e){let t=0;const{shapeFlag:i}=r;if(e==null)e=null;else if(fe(e))t=16;else if(typeof e=="object")if(i&65){const n=e.default;n&&(n._c&&(n._d=!1),Ww(r,n()),n._c&&(n._d=!0));return}else{t=32;const n=e._;!n&&!nz(e)?e._ctx=xt:n===3&&xt&&(xt.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else ye(e)?(e={default:e,_ctx:xt},t=32):(e=String(e),i&64?(t=16,e=[ar(e)]):t=8);r.children=e,r.shapeFlag|=t}function E4(...r){const e={};for(let t=0;tNt||xt;let Su,sw;{const r=zu(),e=(t,i)=>{let n;return(n=r[t])||(n=r[t]=[]),n.push(i),s=>{n.length>1?n.forEach(o=>o(s)):n[0](s)}};Su=e("__VUE_INSTANCE_SETTERS__",t=>Nt=t),sw=e("__VUE_SSR_SETTERS__",t=>Wo=t)}const la=r=>{const e=Nt;return Su(r),r.scope.on(),()=>{r.scope.off(),Su(e)}},_E=()=>{Nt&&Nt.scope.off(),Su(null)};function yz(r){return r.vnode.shapeFlag&4}let Wo=!1;function $4(r,e=!1,t=!1){e&&sw(e);const{props:i,children:n}=r.vnode,s=yz(r);ZW(r,i,s,e),i4(r,n,t);const o=s?P4(r,e):void 0;return e&&sw(!1),o}function P4(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,UW);const{setup:i}=t;if(i){Ki();const n=r.setupContext=i.length>1?C4(r):null,s=la(r),o=aa(i,r,0,[r.props,n]),a=sj(o);if(Gi(),s(),(a||r.sp)&&!_s(r)&&Yj(r),a){if(o.then(_E,_E),e)return o.then(u=>{wE(r,u)}).catch(u=>{Vu(u,r,0)});r.asyncDep=o}else wE(r,o)}else bz(r)}function wE(r,e,t){ye(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:We(e)&&(r.setupState=Aj(e)),bz(r)}function bz(r,e,t){const i=r.type;r.render||(r.render=i.render||jr);{const n=la(r);Ki();try{VW(r)}finally{Gi(),n()}}}const R4={get(r,e){return Dt(r,"get",""),r[e]}};function C4(r){const e=t=>{r.exposed=t||{}};return{attrs:new Proxy(r.attrs,R4),slots:r.slots,emit:r.emit,expose:e}}function Ju(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(Aj(xj(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in $o)return $o[t](r)},has(e,t){return t in e||t in $o}})):r.proxy}function x4(r){return ye(r)&&"__vccOpts"in r}const Sr=(r,e)=>SW(r,e,Wo);function Qu(r,e,t){const i=arguments.length;return i===2?We(e)&&!fe(e)?Ho(e)?at(r,null,[e]):at(r,e):at(r,null,e):(i>3?t=Array.prototype.slice.call(arguments,2):i===3&&Ho(t)&&(t=[t]),at(r,e,t))}const q4="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ow;const EE=typeof window<"u"&&window.trustedTypes;if(EE)try{ow=EE.createPolicy("vue",{createHTML:r=>r})}catch{}const _z=ow?r=>ow.createHTML(r):r=>r,A4="http://www.w3.org/2000/svg",D4="http://www.w3.org/1998/Math/MathML",Qr=typeof document<"u"?document:null,SE=Qr&&Qr.createElement("template"),M4={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,i)=>{const n=e==="svg"?Qr.createElementNS(A4,r):e==="mathml"?Qr.createElementNS(D4,r):t?Qr.createElement(r,{is:t}):Qr.createElement(r);return r==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:r=>Qr.createTextNode(r),createComment:r=>Qr.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Qr.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,i,n,s){const o=t?t.previousSibling:e.lastChild;if(n&&(n===s||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),t),!(n===s||!(n=n.nextSibling)););else{SE.innerHTML=_z(i==="svg"?`${r}`:i==="mathml"?`${r}`:r);const a=SE.content;if(i==="svg"||i==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Ei="transition",fo="animation",Uo=Symbol("_vtc"),wz={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},N4=Et({},Wj,wz),F4=r=>(r.displayName="Transition",r.props=N4,r),k4=F4((r,{slots:e})=>Qu(AW,B4(r),e)),on=(r,e=[])=>{fe(r)?r.forEach(t=>t(...e)):r&&r(...e)},OE=r=>r?fe(r)?r.some(e=>e.length>1):r.length>1:!1;function B4(r){const e={};for(const S in r)S in wz||(e[S]=r[S]);if(r.css===!1)return e;const{name:t="v",type:i,duration:n,enterFromClass:s=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:u=s,appearActiveClass:l=o,appearToClass:c=a,leaveFromClass:d=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=r,p=L4(n),v=p&&p[0],_=p&&p[1],{onBeforeEnter:m,onEnter:g,onEnterCancelled:E,onLeave:y,onLeaveCancelled:I,onBeforeAppear:O=m,onAppear:T=g,onAppearCancelled:b=E}=e,w=(S,$,q,F)=>{S._enterCancelled=F,an(S,$?c:a),an(S,$?l:o),q&&q()},R=(S,$)=>{S._isLeaving=!1,an(S,d),an(S,f),an(S,h),$&&$()},P=S=>($,q)=>{const F=S?T:g,Z=()=>w($,S,q);on(F,[$,Z]),IE(()=>{an($,S?u:s),Gr($,S?c:a),OE(F)||TE($,i,v,Z)})};return Et(e,{onBeforeEnter(S){on(m,[S]),Gr(S,s),Gr(S,o)},onBeforeAppear(S){on(O,[S]),Gr(S,u),Gr(S,l)},onEnter:P(!1),onAppear:P(!0),onLeave(S,$){S._isLeaving=!0;const q=()=>R(S,$);Gr(S,d),S._enterCancelled?(Gr(S,h),RE()):(RE(),Gr(S,h)),IE(()=>{S._isLeaving&&(an(S,d),Gr(S,f),OE(y)||TE(S,i,_,q))}),on(y,[S,q])},onEnterCancelled(S){w(S,!1,void 0,!0),on(E,[S])},onAppearCancelled(S){w(S,!0,void 0,!0),on(b,[S])},onLeaveCancelled(S){R(S),on(I,[S])}})}function L4(r){if(r==null)return null;if(We(r))return[Wl(r.enter),Wl(r.leave)];{const e=Wl(r);return[e,e]}}function Wl(r){return UH(r)}function Gr(r,e){e.split(/\s+/).forEach(t=>t&&r.classList.add(t)),(r[Uo]||(r[Uo]=new Set)).add(e)}function an(r,e){e.split(/\s+/).forEach(i=>i&&r.classList.remove(i));const t=r[Uo];t&&(t.delete(e),t.size||(r[Uo]=void 0))}function IE(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let j4=0;function TE(r,e,t,i){const n=r._endId=++j4,s=()=>{n===r._endId&&i()};if(t!=null)return setTimeout(s,t);const{type:o,timeout:a,propCount:u}=z4(r,e);if(!o)return i();const l=o+"end";let c=0;const d=()=>{r.removeEventListener(l,h),s()},h=f=>{f.target===r&&++c>=u&&d()};setTimeout(()=>{c(t[p]||"").split(", "),n=i(`${Ei}Delay`),s=i(`${Ei}Duration`),o=$E(n,s),a=i(`${fo}Delay`),u=i(`${fo}Duration`),l=$E(a,u);let c=null,d=0,h=0;e===Ei?o>0&&(c=Ei,d=o,h=s.length):e===fo?l>0&&(c=fo,d=l,h=u.length):(d=Math.max(o,l),c=d>0?o>l?Ei:fo:null,h=c?c===Ei?s.length:u.length:0);const f=c===Ei&&/\b(transform|all)(,|$)/.test(i(`${Ei}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:f}}function $E(r,e){for(;r.lengthPE(t)+PE(r[i])))}function PE(r){return r==="auto"?0:Number(r.slice(0,-1).replace(",","."))*1e3}function RE(){return document.body.offsetHeight}function H4(r,e,t){const i=r[Uo];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}const CE=Symbol("_vod"),W4=Symbol("_vsh"),U4=Symbol(""),V4=/(^|;)\s*display\s*:/;function K4(r,e,t){const i=r.style,n=ot(t);let s=!1;if(t&&!n){if(e)if(ot(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&fu(i,a,"")}else for(const o in e)t[o]==null&&fu(i,o,"");for(const o in t)o==="display"&&(s=!0),fu(i,o,t[o])}else if(n){if(e!==t){const o=i[U4];o&&(t+=";"+o),i.cssText=t,s=V4.test(t)}}else e&&r.removeAttribute("style");CE in r&&(r[CE]=s?i.display:"",r[W4]&&(i.display="none"))}const xE=/\s*!important$/;function fu(r,e,t){if(fe(t))t.forEach(i=>fu(r,e,i));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const i=G4(r,e);xE.test(t)?r.setProperty(Mn(i),t.replace(xE,""),"important"):r[i]=t}}const qE=["Webkit","Moz","ms"],Ul={};function G4(r,e){const t=Ul[e];if(t)return t;let i=zi(e);if(i!=="filter"&&i in r)return Ul[e]=i;i=uj(i);for(let n=0;nVl||(Q4.then(()=>Vl=0),Vl=Date.now());function eU(r,e){const t=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=t.attached)return;Tr(tU(i,t.value),e,5,[i])};return t.value=r,t.attached=Z4(),t}function tU(r,e){if(fe(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(i=>n=>!n._stopped&&i&&i(n))}else return e}const kE=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,rU=(r,e,t,i,n,s)=>{const o=n==="svg";e==="class"?H4(r,i,o):e==="style"?K4(r,t,i):Bu(e)?Rw(e)||X4(r,e,t,i,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):iU(r,e,i,o))?(ME(r,e,i),!r.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&DE(r,e,i,o,s,e!=="value")):r._isVueCE&&(/[A-Z]/.test(e)||!ot(i))?ME(r,zi(e),i,s,e):(e==="true-value"?r._trueValue=i:e==="false-value"&&(r._falseValue=i),DE(r,e,i,o))};function iU(r,e,t,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in r&&kE(e)&&ye(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const n=r.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return kE(e)&&ot(t)?!1:e in r}const Ou=r=>{const e=r.props["onUpdate:modelValue"]||!1;return fe(e)?t=>au(e,t):e};function nU(r){r.target.composing=!0}function BE(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Es=Symbol("_assign"),dn={created(r,{modifiers:{lazy:e,trim:t,number:i}},n){r[Es]=Ou(n);const s=i||n.props&&n.props.type==="number";fn(r,e?"change":"input",o=>{if(o.target.composing)return;let a=r.value;t&&(a=a.trim()),s&&(a=K_(a)),r[Es](a)}),t&&fn(r,"change",()=>{r.value=r.value.trim()}),e||(fn(r,"compositionstart",nU),fn(r,"compositionend",BE),fn(r,"change",BE))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,oldValue:t,modifiers:{lazy:i,trim:n,number:s}},o){if(r[Es]=Ou(o),r.composing)return;const a=(s||r.type==="number")&&!/^0\d/.test(r.value)?K_(r.value):r.value,u=e??"";a!==u&&(document.activeElement===r&&r.type!=="range"&&(i&&e===t||n&&r.value.trim()===u)||(r.value=u))}},sU={deep:!0,created(r,e,t){r[Es]=Ou(t),fn(r,"change",()=>{const i=r._modelValue,n=oU(r),s=r.checked,o=r[Es];if(fe(i)){const a=dj(i,n),u=a!==-1;if(s&&!u)o(i.concat(n));else if(!s&&u){const l=[...i];l.splice(a,1),o(l)}}else if(Lu(i)){const a=new Set(i);s?a.add(n):a.delete(n),o(a)}else o(Ez(r,s))})},mounted:LE,beforeUpdate(r,e,t){r[Es]=Ou(t),LE(r,e,t)}};function LE(r,{value:e,oldValue:t},i){r._modelValue=e;let n;if(fe(e))n=dj(e,i.props.value)>-1;else if(Lu(e))n=e.has(i.props.value);else{if(e===t)return;n=Hu(e,Ez(r,!0))}r.checked!==n&&(r.checked=n)}function oU(r){return"_value"in r?r._value:r.value}function Ez(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const aU=["ctrl","shift","alt","meta"],uU={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>aU.some(t=>r[`${t}Key`]&&!e.includes(t))},Sz=(r,e)=>{const t=r._withMods||(r._withMods={}),i=e.join(".");return t[i]||(t[i]=(n,...s)=>{for(let o=0;o{const e=cU().createApp(...r),{mount:t}=e;return e.mount=i=>{const n=fU(i);if(!n)return;const s=e._component;!ye(s)&&!s.render&&!s.template&&(s.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=t(n,!1,hU(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e};function hU(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function fU(r){return ot(r)?document.querySelector(r):r}/*! + * pinia v3.0.2 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const pU=Symbol();var zE;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(zE||(zE={}));function vU(){const r=ZH(!0),e=r.run(()=>it({}));let t=[],i=[];const n=xj({install(s){n._a=s,s.provide(pU,n),s.config.globalProperties.$pinia=n,i.forEach(o=>t.push(o)),i=[]},use(s){return this._a?t.push(s):i.push(s),this},_p:t,_a:null,_e:r,_s:new Map,state:e});return n}/*! + * vue-router v4.5.1 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const ls=typeof document<"u";function Oz(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function gU(r){return r.__esModule||r[Symbol.toStringTag]==="Module"||r.default&&Oz(r.default)}const Fe=Object.assign;function Kl(r,e){const t={};for(const i in e){const n=e[i];t[i]=$r(n)?n.map(r):r(n)}return t}const Ro=()=>{},$r=Array.isArray,Iz=/#/g,mU=/&/g,yU=/\//g,bU=/=/g,_U=/\?/g,Tz=/\+/g,wU=/%5B/g,EU=/%5D/g,$z=/%5E/g,SU=/%60/g,Pz=/%7B/g,OU=/%7C/g,Rz=/%7D/g,IU=/%20/g;function Uw(r){return encodeURI(""+r).replace(OU,"|").replace(wU,"[").replace(EU,"]")}function TU(r){return Uw(r).replace(Pz,"{").replace(Rz,"}").replace($z,"^")}function aw(r){return Uw(r).replace(Tz,"%2B").replace(IU,"+").replace(Iz,"%23").replace(mU,"%26").replace(SU,"`").replace(Pz,"{").replace(Rz,"}").replace($z,"^")}function $U(r){return aw(r).replace(bU,"%3D")}function PU(r){return Uw(r).replace(Iz,"%23").replace(_U,"%3F")}function RU(r){return r==null?"":PU(r).replace(yU,"%2F")}function Vo(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const CU=/\/$/,xU=r=>r.replace(CU,"");function Gl(r,e,t="/"){let i,n={},s="",o="";const a=e.indexOf("#");let u=e.indexOf("?");return a=0&&(u=-1),u>-1&&(i=e.slice(0,u),s=e.slice(u+1,a>-1?a:e.length),n=r(s)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=MU(i??e,t),{fullPath:i+(s&&"?")+s+o,path:i,query:n,hash:Vo(o)}}function qU(r,e){const t=e.query?r(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function HE(r,e){return!e||!r.toLowerCase().startsWith(e.toLowerCase())?r:r.slice(e.length)||"/"}function AU(r,e,t){const i=e.matched.length-1,n=t.matched.length-1;return i>-1&&i===n&&$s(e.matched[i],t.matched[n])&&Cz(e.params,t.params)&&r(e.query)===r(t.query)&&e.hash===t.hash}function $s(r,e){return(r.aliasOf||r)===(e.aliasOf||e)}function Cz(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(!DU(r[t],e[t]))return!1;return!0}function DU(r,e){return $r(r)?WE(r,e):$r(e)?WE(e,r):r===e}function WE(r,e){return $r(e)?r.length===e.length&&r.every((t,i)=>t===e[i]):r.length===1&&r[0]===e}function MU(r,e){if(r.startsWith("/"))return r;if(!r)return e;const t=e.split("/"),i=r.split("/"),n=i[i.length-1];(n===".."||n===".")&&i.push("");let s=t.length-1,o,a;for(o=0;o1&&s--;else break;return t.slice(0,s).join("/")+"/"+i.slice(o).join("/")}const Si={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ko;(function(r){r.pop="pop",r.push="push"})(Ko||(Ko={}));var Co;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Co||(Co={}));function NU(r){if(!r)if(ls){const e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),xU(r)}const FU=/^[^#]+#/;function kU(r,e){return r.replace(FU,"#")+e}function BU(r,e){const t=document.documentElement.getBoundingClientRect(),i=r.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const Zu=()=>({left:window.scrollX,top:window.scrollY});function LU(r){let e;if("el"in r){const t=r.el,i=typeof t=="string"&&t.startsWith("#"),n=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!n)return;e=BU(n,r)}else e=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function UE(r,e){return(history.state?history.state.position-e:-1)+r}const uw=new Map;function jU(r,e){uw.set(r,e)}function zU(r){const e=uw.get(r);return uw.delete(r),e}let HU=()=>location.protocol+"//"+location.host;function xz(r,e){const{pathname:t,search:i,hash:n}=e,s=r.indexOf("#");if(s>-1){let a=n.includes(r.slice(s))?r.slice(s).length:1,u=n.slice(a);return u[0]!=="/"&&(u="/"+u),HE(u,"")}return HE(t,r)+i+n}function WU(r,e,t,i){let n=[],s=[],o=null;const a=({state:h})=>{const f=xz(r,location),p=t.value,v=e.value;let _=0;if(h){if(t.value=f,e.value=h,o&&o===p){o=null;return}_=v?h.position-v.position:0}else i(f);n.forEach(m=>{m(t.value,p,{delta:_,type:Ko.pop,direction:_?_>0?Co.forward:Co.back:Co.unknown})})};function u(){o=t.value}function l(h){n.push(h);const f=()=>{const p=n.indexOf(h);p>-1&&n.splice(p,1)};return s.push(f),f}function c(){const{history:h}=window;h.state&&h.replaceState(Fe({},h.state,{scroll:Zu()}),"")}function d(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:u,listen:l,destroy:d}}function VE(r,e,t,i=!1,n=!1){return{back:r,current:e,forward:t,replaced:i,position:window.history.length,scroll:n?Zu():null}}function UU(r){const{history:e,location:t}=window,i={value:xz(r,t)},n={value:e.state};n.value||s(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(u,l,c){const d=r.indexOf("#"),h=d>-1?(t.host&&document.querySelector("base")?r:r.slice(d))+u:HU()+r+u;try{e[c?"replaceState":"pushState"](l,"",h),n.value=l}catch(f){console.error(f),t[c?"replace":"assign"](h)}}function o(u,l){const c=Fe({},e.state,VE(n.value.back,u,n.value.forward,!0),l,{position:n.value.position});s(u,c,!0),i.value=u}function a(u,l){const c=Fe({},n.value,e.state,{forward:u,scroll:Zu()});s(c.current,c,!0);const d=Fe({},VE(i.value,u,null),{position:c.position+1},l);s(u,d,!1),i.value=u}return{location:i,state:n,push:a,replace:o}}function VU(r){r=NU(r);const e=UU(r),t=WU(r,e.state,e.location,e.replace);function i(s,o=!0){o||t.pauseListeners(),history.go(s)}const n=Fe({location:"",base:r,go:i,createHref:kU.bind(null,r)},e,t);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function KU(r){return typeof r=="string"||r&&typeof r=="object"}function qz(r){return typeof r=="string"||typeof r=="symbol"}const Az=Symbol("");var KE;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(KE||(KE={}));function Ps(r,e){return Fe(new Error,{type:r,[Az]:!0},e)}function Yr(r,e){return r instanceof Error&&Az in r&&(e==null||!!(r.type&e))}const GE="[^/]+?",GU={sensitive:!1,strict:!1,start:!0,end:!0},YU=/[.+*?^${}()[\]/\\]/g;function XU(r,e){const t=Fe({},GU,e),i=[];let n=t.start?"^":"";const s=[];for(const l of r){const c=l.length?[]:[90];t.strict&&!l.length&&(n+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function Dz(r,e){let t=0;const i=r.score,n=e.score;for(;t0&&e[e.length-1]<0}const QU={type:0,value:""},ZU=/[a-zA-Z0-9_]/;function eV(r){if(!r)return[[]];if(r==="/")return[[QU]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function e(f){throw new Error(`ERR (${t})/"${l}": ${f}`)}let t=0,i=t;const n=[];let s;function o(){s&&n.push(s),s=[]}let a=0,u,l="",c="";function d(){l&&(t===0?s.push({type:0,value:l}):t===1||t===2||t===3?(s.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:l,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),l="")}function h(){l+=u}for(;a{o(E)}:Ro}function o(d){if(qz(d)){const h=i.get(d);h&&(i.delete(d),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(d);h>-1&&(t.splice(h,1),d.record.name&&i.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return t}function u(d){const h=sV(d,t);t.splice(h,0,d),d.record.name&&!QE(d)&&i.set(d.record.name,d)}function l(d,h){let f,p={},v,_;if("name"in d&&d.name){if(f=i.get(d.name),!f)throw Ps(1,{location:d});_=f.record.name,p=Fe(XE(h.params,f.keys.filter(E=>!E.optional).concat(f.parent?f.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),d.params&&XE(d.params,f.keys.map(E=>E.name))),v=f.stringify(p)}else if(d.path!=null)v=d.path,f=t.find(E=>E.re.test(v)),f&&(p=f.parse(v),_=f.record.name);else{if(f=h.name?i.get(h.name):t.find(E=>E.re.test(h.path)),!f)throw Ps(1,{location:d,currentLocation:h});_=f.record.name,p=Fe({},h.params,d.params),v=f.stringify(p)}const m=[];let g=f;for(;g;)m.unshift(g.record),g=g.parent;return{name:_,path:v,params:p,matched:m,meta:nV(m)}}r.forEach(d=>s(d));function c(){t.length=0,i.clear()}return{addRoute:s,resolve:l,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:n}}function XE(r,e){const t={};for(const i of e)i in r&&(t[i]=r[i]);return t}function JE(r){const e={path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:r.aliasOf,beforeEnter:r.beforeEnter,props:iV(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function iV(r){const e={},t=r.props||!1;if("component"in r)e.default=t;else for(const i in r.components)e[i]=typeof t=="object"?t[i]:t;return e}function QE(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function nV(r){return r.reduce((e,t)=>Fe(e,t.meta),{})}function ZE(r,e){const t={};for(const i in r)t[i]=i in e?e[i]:r[i];return t}function sV(r,e){let t=0,i=e.length;for(;t!==i;){const s=t+i>>1;Dz(r,e[s])<0?i=s:t=s+1}const n=oV(r);return n&&(i=e.lastIndexOf(n,i-1)),i}function oV(r){let e=r;for(;e=e.parent;)if(Mz(e)&&Dz(r,e)===0)return e}function Mz({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function aV(r){const e={};if(r===""||r==="?")return e;const i=(r[0]==="?"?r.slice(1):r).split("&");for(let n=0;ns&&aw(s)):[i&&aw(i)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function uV(r){const e={};for(const t in r){const i=r[t];i!==void 0&&(e[t]=$r(i)?i.map(n=>n==null?null:""+n):i==null?i:""+i)}return e}const lV=Symbol(""),tS=Symbol(""),Vw=Symbol(""),Nz=Symbol(""),lw=Symbol("");function po(){let r=[];function e(i){return r.push(i),()=>{const n=r.indexOf(i);n>-1&&r.splice(n,1)}}function t(){r=[]}return{add:e,list:()=>r.slice(),reset:t}}function Ri(r,e,t,i,n,s=o=>o()){const o=i&&(i.enterCallbacks[n]=i.enterCallbacks[n]||[]);return()=>new Promise((a,u)=>{const l=h=>{h===!1?u(Ps(4,{from:t,to:e})):h instanceof Error?u(h):KU(h)?u(Ps(2,{from:e,to:h})):(o&&i.enterCallbacks[n]===o&&typeof h=="function"&&o.push(h),a())},c=s(()=>r.call(i&&i.instances[n],e,t,l));let d=Promise.resolve(c);r.length<3&&(d=d.then(l)),d.catch(h=>u(h))})}function Yl(r,e,t,i,n=s=>s()){const s=[];for(const o of r)for(const a in o.components){let u=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(Oz(u)){const c=(u.__vccOpts||u)[e];c&&s.push(Ri(c,t,i,o,a,n))}else{let l=u();s.push(()=>l.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=gU(c)?c.default:c;o.mods[a]=c,o.components[a]=d;const f=(d.__vccOpts||d)[e];return f&&Ri(f,t,i,o,a,n)()}))}}return s}function rS(r){const e=ii(Vw),t=ii(Nz),i=Sr(()=>{const u=dr(r.to);return e.resolve(u)}),n=Sr(()=>{const{matched:u}=i.value,{length:l}=u,c=u[l-1],d=t.matched;if(!c||!d.length)return-1;const h=d.findIndex($s.bind(null,c));if(h>-1)return h;const f=iS(u[l-2]);return l>1&&iS(c)===f&&d[d.length-1].path!==f?d.findIndex($s.bind(null,u[l-2])):h}),s=Sr(()=>n.value>-1&&pV(t.params,i.value.params)),o=Sr(()=>n.value>-1&&n.value===t.matched.length-1&&Cz(t.params,i.value.params));function a(u={}){if(fV(u)){const l=e[dr(r.replace)?"replace":"push"](dr(r.to)).catch(Ro);return r.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:i,href:Sr(()=>i.value.href),isActive:s,isExactActive:o,navigate:a}}function cV(r){return r.length===1?r[0]:r}const dV=pr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:rS,setup(r,{slots:e}){const t=Uu(rS(r)),{options:i}=ii(Vw),n=Sr(()=>({[nS(r.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[nS(r.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&cV(e.default(t));return r.custom?s:Qu("a",{"aria-current":t.isExactActive?r.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:n.value},s)}}}),hV=dV;function fV(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function pV(r,e){for(const t in e){const i=e[t],n=r[t];if(typeof i=="string"){if(i!==n)return!1}else if(!$r(n)||n.length!==i.length||i.some((s,o)=>s!==n[o]))return!1}return!0}function iS(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const nS=(r,e,t)=>r??e??t,vV=pr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:e,slots:t}){const i=ii(lw),n=Sr(()=>r.route||i.value),s=ii(tS,0),o=Sr(()=>{let l=dr(s);const{matched:c}=n.value;let d;for(;(d=c[l])&&!d.components;)l++;return l}),a=Sr(()=>n.value.matched[o.value]);cu(tS,Sr(()=>o.value+1)),cu(lV,a),cu(lw,n);const u=it();return du(()=>[u.value,a.value,r.name],([l,c,d],[h,f,p])=>{c&&(c.instances[d]=l,f&&f!==c&&l&&l===h&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),l&&c&&(!f||!$s(c,f)||!h)&&(c.enterCallbacks[d]||[]).forEach(v=>v(l))},{flush:"post"}),()=>{const l=n.value,c=r.name,d=a.value,h=d&&d.components[c];if(!h)return sS(t.default,{Component:h,route:l});const f=d.props[c],p=f?f===!0?l.params:typeof f=="function"?f(l):f:null,_=Qu(h,Fe({},p,e,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[c]=null)},ref:u}));return sS(t.default,{Component:_,route:l})||_}}});function sS(r,e){if(!r)return null;const t=r(e);return t.length===1?t[0]:t}const Fz=vV;function gV(r){const e=rV(r.routes,r),t=r.parseQuery||aV,i=r.stringifyQuery||eS,n=r.history,s=po(),o=po(),a=po(),u=bW(Si);let l=Si;ls&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kl.bind(null,D=>""+D),d=Kl.bind(null,RU),h=Kl.bind(null,Vo);function f(D,U){let X,ne;return qz(D)?(X=e.getRecordMatcher(D),ne=U):ne=D,e.addRoute(ne,X)}function p(D){const U=e.getRecordMatcher(D);U&&e.removeRoute(U)}function v(){return e.getRoutes().map(D=>D.record)}function _(D){return!!e.getRecordMatcher(D)}function m(D,U){if(U=Fe({},U||u.value),typeof D=="string"){const A=Gl(t,D,U.path),k=e.resolve({path:A.path},U),B=n.createHref(A.fullPath);return Fe(A,k,{params:h(k.params),hash:Vo(A.hash),redirectedFrom:void 0,href:B})}let X;if(D.path!=null)X=Fe({},D,{path:Gl(t,D.path,U.path).path});else{const A=Fe({},D.params);for(const k in A)A[k]==null&&delete A[k];X=Fe({},D,{params:d(A)}),U.params=d(U.params)}const ne=e.resolve(X,U),Re=D.hash||"";ne.params=c(h(ne.params));const C=qU(i,Fe({},D,{hash:TU(Re),path:ne.path})),x=n.createHref(C);return Fe({fullPath:C,hash:Re,query:i===eS?uV(D.query):D.query||{}},ne,{redirectedFrom:void 0,href:x})}function g(D){return typeof D=="string"?Gl(t,D,u.value.path):Fe({},D)}function E(D,U){if(l!==D)return Ps(8,{from:U,to:D})}function y(D){return T(D)}function I(D){return y(Fe(g(D),{replace:!0}))}function O(D){const U=D.matched[D.matched.length-1];if(U&&U.redirect){const{redirect:X}=U;let ne=typeof X=="function"?X(D):X;return typeof ne=="string"&&(ne=ne.includes("?")||ne.includes("#")?ne=g(ne):{path:ne},ne.params={}),Fe({query:D.query,hash:D.hash,params:ne.path!=null?{}:D.params},ne)}}function T(D,U){const X=l=m(D),ne=u.value,Re=D.state,C=D.force,x=D.replace===!0,A=O(X);if(A)return T(Fe(g(A),{state:typeof A=="object"?Fe({},Re,A.state):Re,force:C,replace:x}),U||X);const k=X;k.redirectedFrom=U;let B;return!C&&AU(i,ne,X)&&(B=Ps(16,{to:k,from:ne}),re(ne,ne,!0,!1)),(B?Promise.resolve(B):R(k,ne)).catch(N=>Yr(N)?Yr(N,2)?N:we(N):te(N,k,ne)).then(N=>{if(N){if(Yr(N,2))return T(Fe({replace:x},g(N.to),{state:typeof N.to=="object"?Fe({},Re,N.to.state):Re,force:C}),U||k)}else N=S(k,ne,!0,x,Re);return P(k,ne,N),N})}function b(D,U){const X=E(D,U);return X?Promise.reject(X):Promise.resolve()}function w(D){const U=De.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(D):D()}function R(D,U){let X;const[ne,Re,C]=mV(D,U);X=Yl(ne.reverse(),"beforeRouteLeave",D,U);for(const A of ne)A.leaveGuards.forEach(k=>{X.push(Ri(k,D,U))});const x=b.bind(null,D,U);return X.push(x),_e(X).then(()=>{X=[];for(const A of s.list())X.push(Ri(A,D,U));return X.push(x),_e(X)}).then(()=>{X=Yl(Re,"beforeRouteUpdate",D,U);for(const A of Re)A.updateGuards.forEach(k=>{X.push(Ri(k,D,U))});return X.push(x),_e(X)}).then(()=>{X=[];for(const A of C)if(A.beforeEnter)if($r(A.beforeEnter))for(const k of A.beforeEnter)X.push(Ri(k,D,U));else X.push(Ri(A.beforeEnter,D,U));return X.push(x),_e(X)}).then(()=>(D.matched.forEach(A=>A.enterCallbacks={}),X=Yl(C,"beforeRouteEnter",D,U,w),X.push(x),_e(X))).then(()=>{X=[];for(const A of o.list())X.push(Ri(A,D,U));return X.push(x),_e(X)}).catch(A=>Yr(A,8)?A:Promise.reject(A))}function P(D,U,X){a.list().forEach(ne=>w(()=>ne(D,U,X)))}function S(D,U,X,ne,Re){const C=E(D,U);if(C)return C;const x=U===Si,A=ls?history.state:{};X&&(ne||x?n.replace(D.fullPath,Fe({scroll:x&&A&&A.scroll},Re)):n.push(D.fullPath,Re)),u.value=D,re(D,U,X,x),we()}let $;function q(){$||($=n.listen((D,U,X)=>{if(!ct.listening)return;const ne=m(D),Re=O(ne);if(Re){T(Fe(Re,{replace:!0,force:!0}),ne).catch(Ro);return}l=ne;const C=u.value;ls&&jU(UE(C.fullPath,X.delta),Zu()),R(ne,C).catch(x=>Yr(x,12)?x:Yr(x,2)?(T(Fe(g(x.to),{force:!0}),ne).then(A=>{Yr(A,20)&&!X.delta&&X.type===Ko.pop&&n.go(-1,!1)}).catch(Ro),Promise.reject()):(X.delta&&n.go(-X.delta,!1),te(x,ne,C))).then(x=>{x=x||S(ne,C,!1),x&&(X.delta&&!Yr(x,8)?n.go(-X.delta,!1):X.type===Ko.pop&&Yr(x,20)&&n.go(-1,!1)),P(ne,C,x)}).catch(Ro)}))}let F=po(),Z=po(),z;function te(D,U,X){we(D);const ne=Z.list();return ne.length?ne.forEach(Re=>Re(D,U,X)):console.error(D),Promise.reject(D)}function ve(){return z&&u.value!==Si?Promise.resolve():new Promise((D,U)=>{F.add([D,U])})}function we(D){return z||(z=!D,q(),F.list().forEach(([U,X])=>D?X(D):U()),F.reset()),D}function re(D,U,X,ne){const{scrollBehavior:Re}=r;if(!ls||!Re)return Promise.resolve();const C=!X&&zU(UE(D.fullPath,0))||(ne||!X)&&history.state&&history.state.scroll||null;return Mj().then(()=>Re(D,U,C)).then(x=>x&&LU(x)).catch(x=>te(x,D,U))}const me=D=>n.go(D);let qe;const De=new Set,ct={currentRoute:u,listening:!0,addRoute:f,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:_,getRoutes:v,resolve:m,options:r,push:y,replace:I,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:Z.add,isReady:ve,install(D){const U=this;D.component("RouterLink",hV),D.component("RouterView",Fz),D.config.globalProperties.$router=U,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>dr(u)}),ls&&!qe&&u.value===Si&&(qe=!0,y(n.location).catch(Re=>{}));const X={};for(const Re in Si)Object.defineProperty(X,Re,{get:()=>u.value[Re],enumerable:!0});D.provide(Vw,U),D.provide(Nz,Rj(X)),D.provide(lw,u);const ne=D.unmount;De.add(D),D.unmount=function(){De.delete(D),De.size<1&&(l=Si,$&&$(),$=null,u.value=Si,qe=!1,z=!1),ne()}}};function _e(D){return D.reduce((U,X)=>U.then(()=>w(X)),Promise.resolve())}return ct}function mV(r,e){const t=[],i=[],n=[],s=Math.max(e.matched.length,r.matched.length);for(let o=0;o$s(l,a))?i.push(a):t.push(a));const u=r.matched[o];u&&(e.matched.find(l=>$s(l,u))||n.push(u))}return[t,i,n]}const yV=pr({__name:"App",setup(r){return(e,t)=>(Oe(),hi(dr(Fz)))}}),bV=it({width:200,margin:1,color:{dark:"#000000",light:"ffffff"}}),_V=r=>{const e=wV(r);EV(e,"teams_qr_code.pdf","application/pdf;teams_qr_code.pdf")},wV=r=>{const e=atob(r),t=new Uint8Array(e.length);for(let i=0;i{const i=new Blob([r],{type:t}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,s.click(),URL.revokeObjectURL(n)},oS=async()=>{try{const r=await fetch(pi("/teams"));if(!r.ok)throw new Error(`http error status: ${r.status}`);return await r.json()}catch(r){throw console.error("[apiGetTeams] error:",r),r}},SV=async r=>{try{const e=await fetch(pi("/teams"),{method:"POST",body:JSON.stringify({teams:[{name:r}]})});if(!e.ok)throw new Error(`http error status: ${e.status}`)}catch(e){throw console.error("[apiAddTeam] error:",e),e}},OV=async()=>{try{const r=await fetch(pi("/game"));if(!r.ok)throw new Error(`http error status: ${r.status}`);return await r.json()}catch(r){throw console.error("[apiGetGame] error:",r),r}},IV=async()=>{try{const r=await fetch(pi("/game/start"),{method:"POST"});if(!r.ok)throw new Error(`http error status: ${r.status}`)}catch(r){throw console.error("[apiStartGame] error:",r),r}},TV=async()=>{try{const r=await fetch(pi("/game/stop"),{method:"POST"});if(!r.ok)throw new Error(`http error status: ${r.status}`)}catch(r){throw console.error("[apiStopGame] error:",r),r}},$V=async(r,e)=>{try{const t=await fetch(pi("/teams/"+r+"/applications"),{method:"POST",body:JSON.stringify({applications:[{id:e}]})});if(!t.ok)throw new Error(`http error status: ${t.status}`)}catch(t){throw console.error("[apiGaveApplication] error:",t),t}},aS=async()=>{try{const r=await fetch(pi("/teams/pdf"));if(!r.ok)throw new Error(`http error status: ${r.status}`);const e=await r.json();_V(e.result)}catch(r){throw console.error("[apiDownloadQrCodesFile] error:",r),r}},PV=async()=>{try{const r=await fetch(pi("/graph"));if(!r.ok)throw new Error(`http error status: ${r.status}`);return await r.json()}catch(r){throw console.error("[apiDownloadQrCodesFile] error:",r),r}},Xl=async(r,e)=>{try{const t=await fetch(pi("/graph/nodes"),{method:"PUT",body:JSON.stringify({code:r,node:e})});if(!t.ok)throw new Error(`http error status: ${t.status}`);return await t.json()}catch(t){throw console.error("[apiDownloadQrCodesFile] error:",t),t}};function pi(r){return"http://"+window.location.host.split(":")[0]+":8090"+r}var ns={},Jl,uS;function RV(){return uS||(uS=1,Jl=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Jl}var Ql={},Oi={},lS;function Nn(){if(lS)return Oi;lS=1;let r;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Oi.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},Oi.getSymbolTotalCodewords=function(i){return e[i]},Oi.getBCHDigit=function(t){let i=0;for(;t!==0;)i++,t>>>=1;return i},Oi.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');r=i},Oi.isKanjiModeEnabled=function(){return typeof r<"u"},Oi.toSJIS=function(i){return r(i)},Oi}var Zl={},cS;function Kw(){return cS||(cS=1,function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},r.from=function(i,n){if(r.isValid(i))return i;try{return e(i)}catch{return n}}}(Zl)),Zl}var ec,dS;function CV(){if(dS)return ec;dS=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},ec=r,ec}var tc,hS;function xV(){if(hS)return tc;hS=1;function r(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return r.prototype.set=function(e,t,i,n){const s=e*this.size+t;this.data[s]=i,n&&(this.reservedBit[s]=!0)},r.prototype.get=function(e,t){return this.data[e*this.size+t]},r.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i},r.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},tc=r,tc}var rc={},fS;function qV(){return fS||(fS=1,function(r){const e=Nn().getSymbolSize;r.getRowColCoords=function(i){if(i===1)return[];const n=Math.floor(i/7)+2,s=e(i),o=s===145?26:Math.ceil((s-13)/(2*n-2))*2,a=[s-7];for(let u=1;u=0&&n<=7},r.from=function(n){return r.isValid(n)?parseInt(n,10):void 0},r.getPenaltyN1=function(n){const s=n.size;let o=0,a=0,u=0,l=null,c=null;for(let d=0;d=5&&(o+=e.N1+(a-5)),l=f,a=1),f=n.get(h,d),f===c?u++:(u>=5&&(o+=e.N1+(u-5)),c=f,u=1)}a>=5&&(o+=e.N1+(a-5)),u>=5&&(o+=e.N1+(u-5))}return o},r.getPenaltyN2=function(n){const s=n.size;let o=0;for(let a=0;a=10&&(a===1488||a===93)&&o++,u=u<<1&2047|n.get(c,l),c>=10&&(u===1488||u===93)&&o++}return o*e.N3},r.getPenaltyN4=function(n){let s=0;const o=n.data.length;for(let u=0;u=0;){const o=s[0];for(let u=0;u0){const a=new Uint8Array(this.degree);return a.set(s,o),a}return s},oc=e,oc}var ac={},uc={},lc={},_S;function Bz(){return _S||(_S=1,lc.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),lc}var Ar={},wS;function Lz(){if(wS)return Ar;wS=1;const r="[0-9]+",e="[A-Z $%*+\\-./:]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r +]))+`;Ar.KANJI=new RegExp(t,"g"),Ar.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ar.BYTE=new RegExp(i,"g"),Ar.NUMERIC=new RegExp(r,"g"),Ar.ALPHANUMERIC=new RegExp(e,"g");const n=new RegExp("^"+t+"$"),s=new RegExp("^"+r+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ar.testKanji=function(u){return n.test(u)},Ar.testNumeric=function(u){return s.test(u)},Ar.testAlphanumeric=function(u){return o.test(u)},Ar}var ES;function Fn(){return ES||(ES=1,function(r){const e=Bz(),t=Lz();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},r.getBestModeForData=function(s){return t.testNumeric(s)?r.NUMERIC:t.testAlphanumeric(s)?r.ALPHANUMERIC:t.testKanji(s)?r.KANJI:r.BYTE},r.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},r.isValid=function(s){return s&&s.bit&&s.ccBits};function i(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+n)}}r.from=function(s,o){if(r.isValid(s))return s;try{return i(s)}catch{return o}}}(uc)),uc}var SS;function kV(){return SS||(SS=1,function(r){const e=Nn(),t=kz(),i=Kw(),n=Fn(),s=Bz(),o=7973,a=e.getBCHDigit(o);function u(h,f,p){for(let v=1;v<=40;v++)if(f<=r.getCapacity(v,p,h))return v}function l(h,f){return n.getCharCountIndicator(h,f)+4}function c(h,f){let p=0;return h.forEach(function(v){const _=l(v.mode,f);p+=_+v.getBitsLength()}),p}function d(h,f){for(let p=1;p<=40;p++)if(c(h,p)<=r.getCapacity(p,f,n.MIXED))return p}r.from=function(f,p){return s.isValid(f)?parseInt(f,10):p},r.getCapacity=function(f,p,v){if(!s.isValid(f))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=n.BYTE);const _=e.getSymbolTotalCodewords(f),m=t.getTotalCodewordsCount(f,p),g=(_-m)*8;if(v===n.MIXED)return g;const E=g-l(v,f);switch(v){case n.NUMERIC:return Math.floor(E/10*3);case n.ALPHANUMERIC:return Math.floor(E/11*2);case n.KANJI:return Math.floor(E/13);case n.BYTE:default:return Math.floor(E/8)}},r.getBestVersionForData=function(f,p){let v;const _=i.from(p,i.M);if(Array.isArray(f)){if(f.length>1)return d(f,_);if(f.length===0)return 1;v=f[0]}else v=f;return u(v.mode,v.getLength(),_)},r.getEncodedBits=function(f){if(!s.isValid(f)||f<7)throw new Error("Invalid QR Code version");let p=f<<12;for(;e.getBCHDigit(p)-a>=0;)p^=o<=0;)u^=e<0&&(s=this.data.substr(n),o=parseInt(s,10),i.put(o,a*3+1))},hc=e,hc}var fc,TS;function jV(){if(TS)return fc;TS=1;const r=Fn(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function t(i){this.mode=r.ALPHANUMERIC,this.data=i}return t.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let s;for(s=0;s+2<=this.data.length;s+=2){let o=e.indexOf(this.data[s])*45;o+=e.indexOf(this.data[s+1]),n.put(o,11)}this.data.length%2&&n.put(e.indexOf(this.data[s]),6)},fc=t,fc}var pc,$S;function zV(){if($S)return pc;$S=1;const r=Fn();function e(t){this.mode=r.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}return e.getBitsLength=function(i){return i*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let i=0,n=this.data.length;i=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[n]+` +Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),i.put(s,13)}},vc=t,vc}var gc={exports:{}},RS;function WV(){return RS||(RS=1,function(r){var e={single_source_shortest_paths:function(t,i,n){var s={},o={};o[i]=0;var a=e.PriorityQueue.make();a.push(i,0);for(var u,l,c,d,h,f,p,v,_;!a.empty();){u=a.pop(),l=u.value,d=u.cost,h=t[l]||{};for(c in h)h.hasOwnProperty(c)&&(f=h[c],p=d+f,v=o[c],_=typeof o[c]>"u",(_||v>p)&&(o[c]=p,a.push(c,p),s[c]=l))}if(typeof n<"u"&&typeof o[n]>"u"){var m=["Could not find a path from ",i," to ",n,"."].join("");throw new Error(m)}return s},extract_shortest_path_from_predecessor_list:function(t,i){for(var n=[],s=i;s;)n.push(s),t[s],s=t[s];return n.reverse(),n},find_path:function(t,i,n){var s=e.single_source_shortest_paths(t,i,n);return e.extract_shortest_path_from_predecessor_list(s,n)},PriorityQueue:{make:function(t){var i=e.PriorityQueue,n={},s;t=t||{};for(s in i)i.hasOwnProperty(s)&&(n[s]=i[s]);return n.queue=[],n.sorter=t.sorter||i.default_sorter,n},default_sorter:function(t,i){return t.cost-i.cost},push:function(t,i){var n={value:t,cost:i};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=e}(gc)),gc.exports}var CS;function UV(){return CS||(CS=1,function(r){const e=Fn(),t=LV(),i=jV(),n=zV(),s=HV(),o=Lz(),a=Nn(),u=WV();function l(m){return unescape(encodeURIComponent(m)).length}function c(m,g,E){const y=[];let I;for(;(I=m.exec(E))!==null;)y.push({data:I[0],index:I.index,mode:g,length:I[0].length});return y}function d(m){const g=c(o.NUMERIC,e.NUMERIC,m),E=c(o.ALPHANUMERIC,e.ALPHANUMERIC,m);let y,I;return a.isKanjiModeEnabled()?(y=c(o.BYTE,e.BYTE,m),I=c(o.KANJI,e.KANJI,m)):(y=c(o.BYTE_KANJI,e.BYTE,m),I=[]),g.concat(E,y,I).sort(function(T,b){return T.index-b.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function h(m,g){switch(g){case e.NUMERIC:return t.getBitsLength(m);case e.ALPHANUMERIC:return i.getBitsLength(m);case e.KANJI:return s.getBitsLength(m);case e.BYTE:return n.getBitsLength(m)}}function f(m){return m.reduce(function(g,E){const y=g.length-1>=0?g[g.length-1]:null;return y&&y.mode===E.mode?(g[g.length-1].data+=E.data,g):(g.push(E),g)},[])}function p(m){const g=[];for(let E=0;E=0&&$<=6&&(q===0||q===6)||q>=0&&q<=6&&($===0||$===6)||$>=2&&$<=4&&q>=2&&q<=4?O.set(P+$,S+q,!0,!0):O.set(P+$,S+q,!1,!0))}}function p(O){const T=O.size;for(let b=8;b>$&1)===1,O.set(R,P,S,!0),O.set(P,R,S,!0)}function m(O,T,b){const w=O.size,R=c.getEncodedBits(T,b);let P,S;for(P=0;P<15;P++)S=(R>>P&1)===1,P<6?O.set(P,8,S,!0):P<8?O.set(P+1,8,S,!0):O.set(w-15+P,8,S,!0),P<8?O.set(8,w-P-1,S,!0):P<9?O.set(8,15-P-1+1,S,!0):O.set(8,15-P-1,S,!0);O.set(w-8,8,1,!0)}function g(O,T){const b=O.size;let w=-1,R=b-1,P=7,S=0;for(let $=b-1;$>0;$-=2)for($===6&&$--;;){for(let q=0;q<2;q++)if(!O.isReserved(R,$-q)){let F=!1;S>>P&1)===1),O.set(R,$-q,F),P--,P===-1&&(S++,P=7)}if(R+=w,R<0||b<=R){R-=w,w=-w;break}}}function E(O,T,b){const w=new t;b.forEach(function(q){w.put(q.mode.bit,4),w.put(q.getLength(),d.getCharCountIndicator(q.mode,O)),q.write(w)});const R=r.getSymbolTotalCodewords(O),P=a.getTotalCodewordsCount(O,T),S=(R-P)*8;for(w.getLengthInBits()+4<=S&&w.put(0,4);w.getLengthInBits()%8!==0;)w.putBit(0);const $=(S-w.getLengthInBits())/8;for(let q=0;q<$;q++)w.put(q%2?17:236,8);return y(w,O,T)}function y(O,T,b){const w=r.getSymbolTotalCodewords(T),R=a.getTotalCodewordsCount(T,b),P=w-R,S=a.getBlocksCount(T,b),$=w%S,q=S-$,F=Math.floor(w/S),Z=Math.floor(P/S),z=Z+1,te=F-Z,ve=new u(te);let we=0;const re=new Array(S),me=new Array(S);let qe=0;const De=new Uint8Array(O.buffer);for(let X=0;X=7&&_(q,T),g(q,S),isNaN(w)&&(w=o.getBestMask(q,m.bind(null,q,b))),o.applyMask(w,q),m(q,b,w),{modules:q,version:T,errorCorrectionLevel:b,maskPattern:w,segments:R}}return Ql.create=function(T,b){if(typeof T>"u"||T==="")throw new Error("No input text");let w=e.M,R,P;return typeof b<"u"&&(w=e.from(b.errorCorrectionLevel,e.M),R=l.from(b.version),P=o.from(b.maskPattern),b.toSJISFunc&&r.setToSJISFunction(b.toSJISFunc)),I(T,R,w,P)},Ql}var mc={},yc={},qS;function jz(){return qS||(qS=1,function(r){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let i=t.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+t);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(s){return[s,s]}))),i.length===6&&i.push("F","F");const n=parseInt(i.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+i.slice(0,6).join("")}}r.getOptions=function(i){i||(i={}),i.color||(i.color={});const n=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,s=i.width&&i.width>=21?i.width:void 0,o=i.scale||4;return{width:s,scale:s?4:o,margin:n,color:{dark:e(i.color.dark||"#000000ff"),light:e(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},r.getScale=function(i,n){return n.width&&n.width>=i+n.margin*2?n.width/(i+n.margin*2):n.scale},r.getImageWidth=function(i,n){const s=r.getScale(i,n);return Math.floor((i+n.margin*2)*s)},r.qrToImageData=function(i,n,s){const o=n.modules.size,a=n.modules.data,u=r.getScale(o,s),l=Math.floor((o+s.margin*2)*u),c=s.margin*u,d=[s.color.light,s.color.dark];for(let h=0;h=c&&f>=c&&h"u"&&(!o||!o.getContext)&&(u=o,o=void 0),o||(l=i()),u=e.getOptions(u);const c=e.getImageWidth(s.modules.size,u),d=l.getContext("2d"),h=d.createImageData(c,c);return e.qrToImageData(h.data,s,u),t(d,l,c),d.putImageData(h,0,0),l},r.renderToDataURL=function(s,o,a){let u=a;typeof u>"u"&&(!o||!o.getContext)&&(u=o,o=void 0),u||(u={});const l=r.render(s,o,u),c=u.type||"image/png",d=u.rendererOpts||{};return l.toDataURL(c,d.quality)}}(mc)),mc}var bc={},DS;function GV(){if(DS)return bc;DS=1;const r=jz();function e(n,s){const o=n.a/255,a=s+'="'+n.hex+'"';return o<1?a+" "+s+'-opacity="'+o.toFixed(2).slice(1)+'"':a}function t(n,s,o){let a=n+s;return typeof o<"u"&&(a+=" "+o),a}function i(n,s,o){let a="",u=0,l=!1,c=0;for(let d=0;d0&&h>0&&n[d-1]||(a+=l?t("M",h+o,.5+f+o):t("m",u,0),u=0,l=!1),h+1':"",f="',p='viewBox="0 0 '+d+" "+d+'"',_=''+h+f+` +`;return typeof a=="function"&&a(null,_),_},bc}var MS;function YV(){if(MS)return ns;MS=1;const r=RV(),e=VV(),t=KV(),i=GV();function n(s,o,a,u,l){const c=[].slice.call(arguments,1),d=c.length,h=typeof c[d-1]=="function";if(!h&&!r())throw new Error("Callback required as last argument");if(h){if(d<2)throw new Error("Too few arguments provided");d===2?(l=a,a=o,o=u=void 0):d===3&&(o.getContext&&typeof l>"u"?(l=u,u=void 0):(l=u,u=a,a=o,o=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(a=o,o=u=void 0):d===2&&!o.getContext&&(u=a,a=o,o=void 0),new Promise(function(f,p){try{const v=e.create(a,u);f(s(v,o,u))}catch(v){p(v)}})}try{const f=e.create(a,u);l(null,s(f,o,u))}catch(f){l(f)}}return ns.create=e.create,ns.toCanvas=n.bind(null,t.render),ns.toDataURL=n.bind(null,t.renderToDataURL),ns.toString=n.bind(null,function(s,o,a){return i.render(s,a)}),ns}var _c=YV();/*! vue-qrcode v2.0.0 | (c) 2018-present Chen Fengyuan | MIT */const NS="ready";var XV=pr({name:"VueQrcode",props:{value:{type:String,default:void 0},options:{type:Object,default:void 0},tag:{type:String,default:"canvas"}},emits:[NS],watch:{$props:{deep:!0,immediate:!0,handler(){this.$el&&this.generate()}}},mounted(){this.generate()},methods:{generate(){const r=this.options||{},e=String(this.value),t=()=>{this.$emit(NS,this.$el)};switch(this.tag){case"canvas":_c.toCanvas(this.$el,e,r,i=>{if(i)throw i;t()});break;case"img":_c.toDataURL(e,r,(i,n)=>{if(i)throw i;this.$el.src=n,this.$el.onload=t});break;case"svg":_c.toString(e,r,(i,n)=>{if(i)throw i;const s=document.createElement("div");s.innerHTML=n;const o=s.querySelector("svg");if(o){const{attributes:a,childNodes:u}=o;Object.keys(a).forEach(l=>{const c=a[Number(l)];this.$el.setAttribute(c.name,c.value)}),Object.keys(u).forEach(l=>{const c=u[Number(l)];this.$el.appendChild(c.cloneNode(!0))}),t()}});break}}},render(){return Qu(this.tag,this.$slots.default)}});const JV={key:0,class:"qr"},QV=pr({__name:"TeamQRCode",props:{data:String,title:String},setup(r){return(e,t)=>{var i;return(((i=r.data)==null?void 0:i.length)??0)>1?(Oe(),Ne("div",JV,[at(dr(XV),{value:r.data,options:dr(bV),tag:"svg"},null,8,["value","options"]),W("div",null,Xe(r.title),1)])):Jr("",!0)}}}),ca=(r,e)=>{const t=r.__vccOpts||r;for(const[i,n]of e)t[i]=n;return t},ZV=ca(QV,[["__scopeId","data-v-eea3ea34"]]),eK={},tK={class:"header-block"};function rK(r,e){return Oe(),Ne("div",tK,[lu(r.$slots,"default",{},void 0)])}const Gw=ca(eK,[["render",rK],["__scopeId","data-v-5b6894ef"]]),iK={class:"modal-wrapper"},nK={class:"modal-header"},sK={class:"modal-body"},oK={class:"modal-footer"},aK=pr({__name:"ModalWindow",props:{isOpen:{type:Boolean,required:!0},title:{type:String,default:"Внимание"},buttonText:{type:String,required:!0}},emits:["close","confirm"],setup(r,{emit:e}){const t=r,i=e,n=()=>{i("close")},s=()=>{i("confirm")},o=a=>{t.isOpen&&a.key==="Escape"&&n()};return ua(()=>{document.addEventListener("keydown",o)}),jw(()=>{document.removeEventListener("keydown",o)}),(a,u)=>(Oe(),hi(CW,{to:"body"},[at(k4,{name:"modal"},{default:bn(()=>[r.isOpen?(Oe(),Ne("div",{key:0,class:"modal-mask",onClick:n},[W("div",iK,[W("div",{class:"modal-container",onClick:u[0]||(u[0]=Sz(()=>{},["stop"]))},[W("div",nK,[lu(a.$slots,"header",{},()=>[W("h3",null,Xe(r.title),1)],!0)]),W("div",sK,[lu(a.$slots,"default",{},()=>[u[1]||(u[1]=ar("Дефолтный текст модального окна"))],!0)]),W("div",oK,[lu(a.$slots,"footer",{},()=>[W("button",{class:"btn-cancel",onClick:n},"Отмена"),W("button",{class:"btn-primary",onClick:s},Xe(r.buttonText),1)],!0)])])])])):Jr("",!0)]),_:3})]))}}),FS=ca(aK,[["__scopeId","data-v-f97ce307"]]),uK={class:"buttons-block"},lK={class:"center-block-custom content-block"},cK={class:"team-content-block"},dK={class:"team-name-block"},hK=["onClick"],fK=["href"],pK=["onClick"],vK=pr({__name:"AdminWindow",setup(r){const e=it("-"),t=it("-"),i=it(!1),n=it(!1),s=it(""),o=it(),a=it({teams:[]}),u=it("");async function l(){await SV(u.value),u.value=""}async function c(){s.value="Загрузка...",await IV()}async function d(){s.value="Загрузка...",await TV()}async function h(){var O,T,b;o.value=await OV(),o.value.state==="NEW"&&(s.value="Игра ещё не началась"),o.value.state==="RUN"&&(s.value="Игра идет с "+((O=o.value)==null?void 0:O.startAt.substring(11))),o.value.state==="STOP"&&(s.value="Игра остановлена "+((T=o.value)==null?void 0:T.startAt.substring(11))+" - "+((b=o.value)==null?void 0:b.endAt.substring(11)))}function f(O,T){return T.applications.length-O.applications.length}let p=0;ua(async()=>{a.value=await oS(),p=setInterval(async()=>{a.value=await oS(),a.value.teams.sort(f),await h()},2e3),$w.beforeEach((O,T,b)=>{clearInterval(p),b()})});const v=it({id:0,name:"",password:"",url:"",spendTime:0,applications:[]}),_=it({id:0,name:""});function m(O,T){v.value=O,_.value=T,i.value=!0}async function g(){console.log("confirm"),await $V(v.value.id,_.value.id),i.value=!1}function E(){n.value=!1}function y(){console.log("close"),i.value=!1}function I(){e.value=location.href,t.value="Админ панель",n.value=!0}return(O,T)=>(Oe(),Ne(Qe,null,[at(Gw,null,{default:bn(()=>[W("div",null," Вечерний детектив - "+Xe(s.value),1),W("div",uK,[W("button",{onClick:T[0]||(T[0]=b=>dr($w).push("/editor")),class:"button-menu button-custom-inline"},"Редактор"),W("button",{onClick:c,class:"button-menu button-custom-inline"},"Начать"),W("button",{onClick:d,class:"button-menu button-custom-inline"},"Остановить"),W("button",{onClick:T[1]||(T[1]=(...b)=>dr(aS)&&dr(aS)(...b)),class:"button-menu button-custom-inline"},"Скачать qr‑ы"),W("button",{onClick:I,class:"button-menu button-custom-inline"},"Qr")])]),_:1}),W("div",lK,[T[4]||(T[4]=W("div",{class:"team-header-block"},"Команды",-1)),(Oe(!0),Ne(Qe,null,Xr(a.value.teams,b=>(Oe(),Ne("div",{class:"team-block",key:b.name},[W("div",cK,[W("div",dK,[W("a",{onClick:w=>(e.value=b.url,t.value=b.name,n.value=!0)}," QR ",8,hK),W("a",{href:b.url,class:"url-block",target:"_blank"}," URL ",8,fK),ar(" "+Xe(b.name),1)]),W("div",null,"Поездки: "+Xe(b.spendTime),1)]),(Oe(!0),Ne(Qe,null,Xr(b.applications,w=>(Oe(),Ne("div",{key:w.id,class:"link-button",onClick:R=>m(b,w)}," Выдать: "+Xe(w.name),9,pK))),128))]))),128)),W("form",{onSubmit:Sz(l,["prevent"])},[W("div",null,[Ii(W("input",{class:"input-custom","onUpdate:modelValue":T[2]||(T[2]=b=>u.value=b),type:"text",placeholder:"Название команды"},null,512),[[dn,u.value]])]),T[3]||(T[3]=W("div",{class:"button-container"},[W("button",{class:"button-custom",type:"submit"},"Добавить")],-1))],32)]),at(FS,{"is-open":i.value,onConfirm:g,onClose:y,buttonText:"Выдано"},{default:bn(()=>[W("div",null," Команда: "+Xe(v.value.name),1),W("div",null," Приложение: "+Xe(_.value.name),1)]),_:1},8,["is-open"]),at(FS,{"is-open":n.value,onConfirm:E,onClose:E,buttonText:"Ок",title:"Код"},{default:bn(()=>[at(ZV,{data:e.value,title:t.value},null,8,["data","title"])]),_:1},8,["is-open"])],64))}}),gK=ca(vK,[["__scopeId","data-v-3033f565"]]),mK=pr({__name:"HomeView",setup(r){return(e,t)=>(Oe(),hi(gK))}});/** + * vis-data + * http://visjs.org/ + * + * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data. + * + * @version 8.0.3 + * @date 2025-09-10T16:22:00.613Z + * + * @copyright (c) 2011-2017 Almende B.V, http://almende.com + * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs + * + * @license + * vis.js is dual licensed under both + * + * 1. The Apache 2.0 License + * http://www.apache.org/licenses/LICENSE-2.0 + * + * and + * + * 2. The MIT License + * http://opensource.org/licenses/MIT + * + * vis.js may be distributed under either license. + */var kS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var wc={exports:{}},BS={},go,LS;function vt(){if(LS)return go;LS=1;var r=function(e){return e&&e.Math===Math&&e};return go=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof kS=="object"&&kS)||r(typeof go=="object"&&go)||function(){return this}()||Function("return this")(),go}var Ec,jS;function Le(){return jS||(jS=1,Ec=function(r){try{return!!r()}catch{return!0}}),Ec}var Sc,zS;function da(){if(zS)return Sc;zS=1;var r=Le();return Sc=!r(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Sc}var Oc,HS;function el(){if(HS)return Oc;HS=1;var r=da(),e=Function.prototype,t=e.apply,i=e.call;return Oc=typeof Reflect=="object"&&Reflect.apply||(r?i.bind(t):function(){return i.apply(t,arguments)}),Oc}var Ic,WS;function Ue(){if(WS)return Ic;WS=1;var r=da(),e=Function.prototype,t=e.call,i=r&&e.bind.bind(t,t);return Ic=r?i:function(n){return function(){return t.apply(n,arguments)}},Ic}var Tc,US;function vi(){if(US)return Tc;US=1;var r=Ue(),e=r({}.toString),t=r("".slice);return Tc=function(i){return t(e(i),8,-1)},Tc}var $c,VS;function zz(){if(VS)return $c;VS=1;var r=vi(),e=Ue();return $c=function(t){if(r(t)==="Function")return e(t)},$c}var Pc,KS;function St(){if(KS)return Pc;KS=1;var r=typeof document=="object"&&document.all;return Pc=typeof r>"u"&&r!==void 0?function(e){return typeof e=="function"||e===r}:function(e){return typeof e=="function"},Pc}var Rc={},Cc,GS;function gt(){if(GS)return Cc;GS=1;var r=Le();return Cc=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Cc}var xc,YS;function Qt(){if(YS)return xc;YS=1;var r=da(),e=Function.prototype.call;return xc=r?e.bind(e):function(){return e.apply(e,arguments)},xc}var qc={},XS;function Yw(){if(XS)return qc;XS=1;var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,t=e&&!r.call({1:2},1);return qc.f=t?function(n){var s=e(this,n);return!!s&&s.enumerable}:r,qc}var Ac,JS;function ha(){return JS||(JS=1,Ac=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}),Ac}var Dc,QS;function tl(){if(QS)return Dc;QS=1;var r=Ue(),e=Le(),t=vi(),i=Object,n=r("".split);return Dc=e(function(){return!i("z").propertyIsEnumerable(0)})?function(s){return t(s)==="String"?n(s,""):i(s)}:i,Dc}var Mc,ZS;function fa(){return ZS||(ZS=1,Mc=function(r){return r==null}),Mc}var Nc,eO;function kn(){if(eO)return Nc;eO=1;var r=fa(),e=TypeError;return Nc=function(t){if(r(t))throw new e("Can't call method on "+t);return t},Nc}var Fc,tO;function Wr(){if(tO)return Fc;tO=1;var r=tl(),e=kn();return Fc=function(t){return r(e(t))},Fc}var kc,rO;function Kt(){if(rO)return kc;rO=1;var r=St();return kc=function(e){return typeof e=="object"?e!==null:r(e)},kc}var Bc,iO;function _t(){return iO||(iO=1,Bc={}),Bc}var Lc,nO;function ir(){if(nO)return Lc;nO=1;var r=_t(),e=vt(),t=St(),i=function(n){return t(n)?n:void 0};return Lc=function(n,s){return arguments.length<2?i(r[n])||i(e[n]):r[n]&&r[n][s]||e[n]&&e[n][s]},Lc}var jc,sO;function Ot(){if(sO)return jc;sO=1;var r=Ue();return jc=r({}.isPrototypeOf),jc}var zc,oO;function Fs(){if(oO)return zc;oO=1;var r=vt(),e=r.navigator,t=e&&e.userAgent;return zc=t?String(t):"",zc}var Hc,aO;function pa(){if(aO)return Hc;aO=1;var r=vt(),e=Fs(),t=r.process,i=r.Deno,n=t&&t.versions||i&&i.version,s=n&&n.v8,o,a;return s&&(o=s.split("."),a=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!a&&e&&(o=e.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=e.match(/Chrome\/(\d+)/),o&&(a=+o[1]))),Hc=a,Hc}var Wc,uO;function ks(){if(uO)return Wc;uO=1;var r=pa(),e=Le(),t=vt(),i=t.String;return Wc=!!Object.getOwnPropertySymbols&&!e(function(){var n=Symbol("symbol detection");return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&r&&r<41}),Wc}var Uc,lO;function Hz(){if(lO)return Uc;lO=1;var r=ks();return Uc=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uc}var Vc,cO;function va(){if(cO)return Vc;cO=1;var r=ir(),e=St(),t=Ot(),i=Hz(),n=Object;return Vc=i?function(s){return typeof s=="symbol"}:function(s){var o=r("Symbol");return e(o)&&t(o.prototype,n(s))},Vc}var Kc,dO;function Bs(){if(dO)return Kc;dO=1;var r=String;return Kc=function(e){try{return r(e)}catch{return"Object"}},Kc}var Gc,hO;function gi(){if(hO)return Gc;hO=1;var r=St(),e=Bs(),t=TypeError;return Gc=function(i){if(r(i))return i;throw new t(e(i)+" is not a function")},Gc}var Yc,fO;function Xw(){if(fO)return Yc;fO=1;var r=gi(),e=fa();return Yc=function(t,i){var n=t[i];return e(n)?void 0:r(n)},Yc}var Xc,pO;function yK(){if(pO)return Xc;pO=1;var r=Qt(),e=St(),t=Kt(),i=TypeError;return Xc=function(n,s){var o,a;if(s==="string"&&e(o=n.toString)&&!t(a=r(o,n))||e(o=n.valueOf)&&!t(a=r(o,n))||s!=="string"&&e(o=n.toString)&&!t(a=r(o,n)))return a;throw new i("Can't convert object to primitive value")},Xc}var Jc={exports:{}},Qc,vO;function Ls(){return vO||(vO=1,Qc=!0),Qc}var Zc,gO;function bK(){if(gO)return Zc;gO=1;var r=vt(),e=Object.defineProperty;return Zc=function(t,i){try{e(r,t,{value:i,configurable:!0,writable:!0})}catch{r[t]=i}return i},Zc}var mO;function Jw(){if(mO)return Jc.exports;mO=1;var r=Ls(),e=vt(),t=bK(),i="__core-js_shared__",n=Jc.exports=e[i]||t(i,{});return(n.versions||(n.versions=[])).push({version:"3.44.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Jc.exports}var ed,yO;function js(){if(yO)return ed;yO=1;var r=Jw();return ed=function(e,t){return r[e]||(r[e]=t||{})},ed}var td,bO;function Cr(){if(bO)return td;bO=1;var r=kn(),e=Object;return td=function(t){return e(r(t))},td}var rd,_O;function It(){if(_O)return rd;_O=1;var r=Ue(),e=Cr(),t=r({}.hasOwnProperty);return rd=Object.hasOwn||function(n,s){return t(e(n),s)},rd}var id,wO;function rl(){if(wO)return id;wO=1;var r=Ue(),e=0,t=Math.random(),i=r(1.1.toString);return id=function(n){return"Symbol("+(n===void 0?"":n)+")_"+i(++e+t,36)},id}var nd,EO;function Tt(){if(EO)return nd;EO=1;var r=vt(),e=js(),t=It(),i=rl(),n=ks(),s=Hz(),o=r.Symbol,a=e("wks"),u=s?o.for||o:o&&o.withoutSetter||i;return nd=function(l){return t(a,l)||(a[l]=n&&t(o,l)?o[l]:u("Symbol."+l)),a[l]},nd}var sd,SO;function Wz(){if(SO)return sd;SO=1;var r=Qt(),e=Kt(),t=va(),i=Xw(),n=yK(),s=Tt(),o=TypeError,a=s("toPrimitive");return sd=function(u,l){if(!e(u)||t(u))return u;var c=i(u,a),d;if(c){if(l===void 0&&(l="default"),d=r(c,u,l),!e(d)||t(d))return d;throw new o("Can't convert object to primitive value")}return l===void 0&&(l="number"),n(u,l)},sd}var od,OO;function Qw(){if(OO)return od;OO=1;var r=Wz(),e=va();return od=function(t){var i=r(t,"string");return e(i)?i:i+""},od}var ad,IO;function Uz(){if(IO)return ad;IO=1;var r=vt(),e=Kt(),t=r.document,i=e(t)&&e(t.createElement);return ad=function(n){return i?t.createElement(n):{}},ad}var ud,TO;function Vz(){if(TO)return ud;TO=1;var r=gt(),e=Le(),t=Uz();return ud=!r&&!e(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),ud}var $O;function il(){if($O)return Rc;$O=1;var r=gt(),e=Qt(),t=Yw(),i=ha(),n=Wr(),s=Qw(),o=It(),a=Vz(),u=Object.getOwnPropertyDescriptor;return Rc.f=r?u:function(c,d){if(c=n(c),d=s(d),a)try{return u(c,d)}catch{}if(o(c,d))return i(!e(t.f,c,d),c[d])},Rc}var ld,PO;function _K(){if(PO)return ld;PO=1;var r=Le(),e=St(),t=/#|\.prototype\./,i=function(u,l){var c=s[n(u)];return c===a?!0:c===o?!1:e(l)?r(l):!!l},n=i.normalize=function(u){return String(u).replace(t,".").toLowerCase()},s=i.data={},o=i.NATIVE="N",a=i.POLYFILL="P";return ld=i,ld}var cd,RO;function nl(){if(RO)return cd;RO=1;var r=zz(),e=gi(),t=da(),i=r(r.bind);return cd=function(n,s){return e(n),s===void 0?n:t?i(n,s):function(){return n.apply(s,arguments)}},cd}var dd={},hd,CO;function Kz(){if(CO)return hd;CO=1;var r=gt(),e=Le();return hd=r&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),hd}var fd,xO;function mi(){if(xO)return fd;xO=1;var r=Kt(),e=String,t=TypeError;return fd=function(i){if(r(i))return i;throw new t(e(i)+" is not an object")},fd}var qO;function vr(){if(qO)return dd;qO=1;var r=gt(),e=Vz(),t=Kz(),i=mi(),n=Qw(),s=TypeError,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return dd.f=r?t?function(h,f,p){if(i(h),f=n(f),i(p),typeof h=="function"&&f==="prototype"&&"value"in p&&c in p&&!p[c]){var v=a(h,f);v&&v[c]&&(h[f]=p.value,p={configurable:l in p?p[l]:v[l],enumerable:u in p?p[u]:v[u],writable:!1})}return o(h,f,p)}:o:function(h,f,p){if(i(h),f=n(f),i(p),e)try{return o(h,f,p)}catch{}if("get"in p||"set"in p)throw new s("Accessors not supported");return"value"in p&&(h[f]=p.value),h},dd}var pd,AO;function zs(){if(AO)return pd;AO=1;var r=gt(),e=vr(),t=ha();return pd=r?function(i,n,s){return e.f(i,n,t(1,s))}:function(i,n,s){return i[n]=s,i},pd}var vd,DO;function be(){if(DO)return vd;DO=1;var r=vt(),e=el(),t=zz(),i=St(),n=il().f,s=_K(),o=_t(),a=nl(),u=zs(),l=It(),c=function(d){var h=function(f,p,v){if(this instanceof h){switch(arguments.length){case 0:return new d;case 1:return new d(f);case 2:return new d(f,p)}return new d(f,p,v)}return e(d,this,arguments)};return h.prototype=d.prototype,h};return vd=function(d,h){var f=d.target,p=d.global,v=d.stat,_=d.proto,m=p?r:v?r[f]:r[f]&&r[f].prototype,g=p?o:o[f]||u(o,f,{})[f],E=g.prototype,y,I,O,T,b,w,R,P,S;for(T in h)y=s(p?T:f+(v?".":"#")+T,d.forced),I=!y&&m&&l(m,T),w=g[T],I&&(d.dontCallGetSet?(S=n(m,T),R=S&&S.value):R=m[T]),b=I&&R?R:h[T],!(!y&&!_&&typeof w==typeof b)&&(d.bind&&I?P=a(b,r):d.wrap&&I?P=c(b):_&&i(b)?P=t(b):P=b,(d.sham||b&&b.sham||w&&w.sham)&&u(P,"sham",!0),u(g,T,P),_&&(O=f+"Prototype",l(o,O)||u(o,O,{}),u(o[O],T,b),d.real&&E&&(y||!E[T])&&u(E,T,b)))},vd}var MO;function wK(){if(MO)return BS;MO=1;var r=be(),e=gt(),t=vr().f;return r({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!e},{defineProperty:t}),BS}var NO;function EK(){if(NO)return wc.exports;NO=1,wK();var r=_t(),e=r.Object,t=wc.exports=function(n,s,o){return e.defineProperty(n,s,o)};return e.defineProperty.sham&&(t.sham=!0),wc.exports}var gd,FO;function Gz(){if(FO)return gd;FO=1;var r=EK();return gd=r,gd}var md,kO;function SK(){if(kO)return md;kO=1;var r=Gz();return md=r,md}var yd,BO;function OK(){if(BO)return yd;BO=1;var r=SK();return yd=r,yd}var bd,LO;function IK(){return LO||(LO=1,bd=OK()),bd}var TK=IK(),$K=$e(TK),jO={},_d,zO;function Bn(){if(zO)return _d;zO=1;var r=vi();return _d=Array.isArray||function(t){return r(t)==="Array"},_d}var wd,HO;function PK(){if(HO)return wd;HO=1;var r=Math.ceil,e=Math.floor;return wd=Math.trunc||function(i){var n=+i;return(n>0?e:r)(n)},wd}var Ed,WO;function Hs(){if(WO)return Ed;WO=1;var r=PK();return Ed=function(e){var t=+e;return t!==t||t===0?0:r(t)},Ed}var Sd,UO;function Yz(){if(UO)return Sd;UO=1;var r=Hs(),e=Math.min;return Sd=function(t){var i=r(t);return i>0?e(i,9007199254740991):0},Sd}var Od,VO;function Yi(){if(VO)return Od;VO=1;var r=Yz();return Od=function(e){return r(e.length)},Od}var Id,KO;function Xz(){if(KO)return Id;KO=1;var r=TypeError,e=9007199254740991;return Id=function(t){if(t>e)throw r("Maximum allowed index exceeded");return t},Id}var Td,GO;function sl(){if(GO)return Td;GO=1;var r=gt(),e=vr(),t=ha();return Td=function(i,n,s){r?e.f(i,n,t(0,s)):i[n]=s},Td}var $d,YO;function Zw(){if(YO)return $d;YO=1;var r=Tt(),e=r("toStringTag"),t={};return t[e]="z",$d=String(t)==="[object z]",$d}var Pd,XO;function Xi(){if(XO)return Pd;XO=1;var r=Zw(),e=St(),t=vi(),i=Tt(),n=i("toStringTag"),s=Object,o=t(function(){return arguments}())==="Arguments",a=function(u,l){try{return u[l]}catch{}};return Pd=r?t:function(u){var l,c,d;return u===void 0?"Undefined":u===null?"Null":typeof(c=a(l=s(u),n))=="string"?c:o?t(l):(d=t(l))==="Object"&&e(l.callee)?"Arguments":d},Pd}var Rd,JO;function RK(){if(JO)return Rd;JO=1;var r=Ue(),e=St(),t=Jw(),i=r(Function.toString);return e(t.inspectSource)||(t.inspectSource=function(n){return i(n)}),Rd=t.inspectSource,Rd}var Cd,QO;function Jz(){if(QO)return Cd;QO=1;var r=Ue(),e=Le(),t=St(),i=Xi(),n=ir(),s=RK(),o=function(){},a=n("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=r(u.exec),c=!u.test(o),d=function(p){if(!t(p))return!1;try{return a(o,[],p),!0}catch{return!1}},h=function(p){if(!t(p))return!1;switch(i(p)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,s(p))}catch{return!0}};return h.sham=!0,Cd=!a||e(function(){var f;return d(d.call)||!d(Object)||!d(function(){f=!0})||f})?h:d,Cd}var xd,ZO;function CK(){if(ZO)return xd;ZO=1;var r=Bn(),e=Jz(),t=Kt(),i=Tt(),n=i("species"),s=Array;return xd=function(o){var a;return r(o)&&(a=o.constructor,e(a)&&(a===s||r(a.prototype))?a=void 0:t(a)&&(a=a[n],a===null&&(a=void 0))),a===void 0?s:a},xd}var qd,eI;function e0(){if(eI)return qd;eI=1;var r=CK();return qd=function(e,t){return new(r(e))(t===0?0:t)},qd}var Ad,tI;function ga(){if(tI)return Ad;tI=1;var r=Le(),e=Tt(),t=pa(),i=e("species");return Ad=function(n){return t>=51||!r(function(){var s=[],o=s.constructor={};return o[i]=function(){return{foo:1}},s[n](Boolean).foo!==1})},Ad}var rI;function Qz(){if(rI)return jO;rI=1;var r=be(),e=Le(),t=Bn(),i=Kt(),n=Cr(),s=Yi(),o=Xz(),a=sl(),u=e0(),l=ga(),c=Tt(),d=pa(),h=c("isConcatSpreadable"),f=d>=51||!e(function(){var _=[];return _[h]=!1,_.concat()[0]!==_}),p=function(_){if(!i(_))return!1;var m=_[h];return m!==void 0?!!m:t(_)},v=!f||!l("concat");return r({target:"Array",proto:!0,arity:1,forced:v},{concat:function(m){var g=n(this),E=u(g,0),y=0,I,O,T,b,w;for(I=-1,T=arguments.length;Ic;)if(d=u[c++],d!==d)return!0}else for(;l>c;c++)if((n||c in u)&&u[c]===o)return n||c||0;return!n&&-1}};return Fd={includes:i(!0),indexOf:i(!1)},Fd}var kd,uI;function ma(){return uI||(uI=1,kd={}),kd}var Bd,lI;function Zz(){if(lI)return Bd;lI=1;var r=Ue(),e=It(),t=Wr(),i=xK().indexOf,n=ma(),s=r([].push);return Bd=function(o,a){var u=t(o),l=0,c=[],d;for(d in u)!e(n,d)&&e(u,d)&&s(c,d);for(;a.length>l;)e(u,d=a[l++])&&(~i(c,d)||s(c,d));return c},Bd}var Ld,cI;function r0(){return cI||(cI=1,Ld=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Ld}var jd,dI;function ol(){if(dI)return jd;dI=1;var r=Zz(),e=r0();return jd=Object.keys||function(i){return r(i,e)},jd}var hI;function i0(){if(hI)return Md;hI=1;var r=gt(),e=Kz(),t=vr(),i=mi(),n=Wr(),s=ol();return Md.f=r&&!e?Object.defineProperties:function(a,u){i(a);for(var l=n(u),c=s(u),d=c.length,h=0,f;d>h;)t.f(a,f=c[h++],l[f]);return a},Md}var zd,fI;function qK(){if(fI)return zd;fI=1;var r=ir();return zd=r("document","documentElement"),zd}var Hd,pI;function al(){if(pI)return Hd;pI=1;var r=js(),e=rl(),t=r("keys");return Hd=function(i){return t[i]||(t[i]=e(i))},Hd}var Wd,vI;function ya(){if(vI)return Wd;vI=1;var r=mi(),e=i0(),t=r0(),i=ma(),n=qK(),s=Uz(),o=al(),a=">",u="<",l="prototype",c="script",d=o("IE_PROTO"),h=function(){},f=function(g){return u+c+a+g+u+"/"+c+a},p=function(g){g.write(f("")),g.close();var E=g.parentWindow.Object;return g=null,E},v=function(){var g=s("iframe"),E="java"+c+":",y;return g.style.display="none",n.appendChild(g),g.src=String(E),y=g.contentWindow.document,y.open(),y.write(f("document.F=Object")),y.close(),y.F},_,m=function(){try{_=new ActiveXObject("htmlfile")}catch{}m=typeof document<"u"?document.domain&&_?p(_):v():p(_);for(var g=t.length;g--;)delete m[l][t[g]];return m()};return i[d]=!0,Wd=Object.create||function(E,y){var I;return E!==null?(h[l]=r(E),I=new h,h[l]=null,I[d]=E):I=m(),y===void 0?I:e.f(I,y)},Wd}var Ud={},gI;function ul(){if(gI)return Ud;gI=1;var r=Zz(),e=r0(),t=e.concat("length","prototype");return Ud.f=Object.getOwnPropertyNames||function(n){return r(n,t)},Ud}var Vd={},Kd,mI;function Ws(){if(mI)return Kd;mI=1;var r=Ue();return Kd=r([].slice),Kd}var yI;function e3(){if(yI)return Vd;yI=1;var r=vi(),e=Wr(),t=ul().f,i=Ws(),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(o){try{return t(o)}catch{return i(n)}};return Vd.f=function(a){return n&&r(a)==="Window"?s(a):t(e(a))},Vd}var Gd={},bI;function ll(){return bI||(bI=1,Gd.f=Object.getOwnPropertySymbols),Gd}var Yd,_I;function ba(){if(_I)return Yd;_I=1;var r=zs();return Yd=function(e,t,i,n){return n&&n.enumerable?e[t]=i:r(e,t,i),e},Yd}var Xd,wI;function n0(){if(wI)return Xd;wI=1;var r=vr();return Xd=function(e,t,i){return r.f(e,t,i)},Xd}var Jd={},EI;function cl(){if(EI)return Jd;EI=1;var r=Tt();return Jd.f=r,Jd}var Qd,SI;function et(){if(SI)return Qd;SI=1;var r=_t(),e=It(),t=cl(),i=vr().f;return Qd=function(n){var s=r.Symbol||(r.Symbol={});e(s,n)||i(s,n,{value:t.f(n)})},Qd}var Zd,OI;function t3(){if(OI)return Zd;OI=1;var r=Qt(),e=ir(),t=Tt(),i=ba();return Zd=function(){var n=e("Symbol"),s=n&&n.prototype,o=s&&s.valueOf,a=t("toPrimitive");s&&!s[a]&&i(s,a,function(u){return r(o,this)},{arity:1})},Zd}var eh,II;function AK(){if(II)return eh;II=1;var r=Zw(),e=Xi();return eh=r?{}.toString:function(){return"[object "+e(this)+"]"},eh}var th,TI;function Ln(){if(TI)return th;TI=1;var r=Zw(),e=vr().f,t=zs(),i=It(),n=AK(),s=Tt(),o=s("toStringTag");return th=function(a,u,l,c){var d=l?a:a&&a.prototype;d&&(i(d,o)||e(d,o,{configurable:!0,value:u}),c&&!r&&t(d,"toString",n))},th}var rh,$I;function DK(){if($I)return rh;$I=1;var r=vt(),e=St(),t=r.WeakMap;return rh=e(t)&&/native code/.test(String(t)),rh}var ih,PI;function _a(){if(PI)return ih;PI=1;var r=DK(),e=vt(),t=Kt(),i=zs(),n=It(),s=Jw(),o=al(),a=ma(),u="Object already initialized",l=e.TypeError,c=e.WeakMap,d,h,f,p=function(g){return f(g)?h(g):d(g,{})},v=function(g){return function(E){var y;if(!t(E)||(y=h(E)).type!==g)throw new l("Incompatible receiver, "+g+" required");return y}};if(r||s.state){var _=s.state||(s.state=new c);_.get=_.get,_.has=_.has,_.set=_.set,d=function(g,E){if(_.has(g))throw new l(u);return E.facade=g,_.set(g,E),E},h=function(g){return _.get(g)||{}},f=function(g){return _.has(g)}}else{var m=o("state");a[m]=!0,d=function(g,E){if(n(g,m))throw new l(u);return E.facade=g,i(g,m,E),E},h=function(g){return n(g,m)?g[m]:{}},f=function(g){return n(g,m)}}return ih={set:d,get:h,has:f,enforce:p,getterFor:v},ih}var nh,RI;function Us(){if(RI)return nh;RI=1;var r=nl(),e=Ue(),t=tl(),i=Cr(),n=Yi(),s=e0(),o=e([].push),a=function(u){var l=u===1,c=u===2,d=u===3,h=u===4,f=u===6,p=u===7,v=u===5||f;return function(_,m,g,E){for(var y=i(_),I=t(y),O=n(I),T=r(m,g),b=0,w=E||s,R=l?w(_,O):c||p?w(_,0):void 0,P,S;O>b;b++)if((v||b in I)&&(P=I[b],S=T(P,b,y),u))if(l)R[b]=S;else if(S)switch(u){case 3:return!0;case 5:return P;case 6:return b;case 2:o(R,P)}else switch(u){case 4:return!1;case 7:o(R,P)}return f?-1:d||h?h:R}};return nh={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)},nh}var CI;function MK(){if(CI)return nI;CI=1;var r=be(),e=vt(),t=Qt(),i=Ue(),n=Ls(),s=gt(),o=ks(),a=Le(),u=It(),l=Ot(),c=mi(),d=Wr(),h=Qw(),f=Ji(),p=ha(),v=ya(),_=ol(),m=ul(),g=e3(),E=ll(),y=il(),I=vr(),O=i0(),T=Yw(),b=ba(),w=n0(),R=js(),P=al(),S=ma(),$=rl(),q=Tt(),F=cl(),Z=et(),z=t3(),te=Ln(),ve=_a(),we=Us().forEach,re=P("hidden"),me="Symbol",qe="prototype",De=ve.set,ct=ve.getterFor(me),_e=Object[qe],D=e.Symbol,U=D&&D[qe],X=e.RangeError,ne=e.TypeError,Re=e.QObject,C=y.f,x=I.f,A=g.f,k=T.f,B=i([].push),N=R("symbols"),G=R("op-symbols"),J=R("wks"),V=!Re||!Re[qe]||!Re[qe].findChild,L=function(ae,K,ee){var ie=C(_e,K);ie&&delete _e[K],x(ae,K,ee),ie&&ae!==_e&&x(_e,K,ie)},ce=s&&a(function(){return v(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a!==7})?L:x,Q=function(ae,K){var ee=N[ae]=v(U);return De(ee,{type:me,tag:ae,description:K}),s||(ee.description=K),ee},oe=function(K,ee,ie){K===_e&&oe(G,ee,ie),c(K);var se=h(ee);return c(ie),u(N,se)?(ie.enumerable?(u(K,re)&&K[re][se]&&(K[re][se]=!1),ie=v(ie,{enumerable:p(0,!1)})):(u(K,re)||x(K,re,p(1,v(null))),K[re][se]=!0),ce(K,se,ie)):x(K,se,ie)},he=function(K,ee){c(K);var ie=d(ee),se=_(ie).concat(dt(ie));return we(se,function(Ee){(!s||t(Ae,ie,Ee))&&oe(K,Ee,ie[Ee])}),K},Ie=function(K,ee){return ee===void 0?v(K):he(v(K),ee)},Ae=function(K){var ee=h(K),ie=t(k,this,ee);return this===_e&&u(N,ee)&&!u(G,ee)?!1:ie||!u(this,ee)||!u(N,ee)||u(this,re)&&this[re][ee]?ie:!0},Ce=function(K,ee){var ie=d(K),se=h(ee);if(!(ie===_e&&u(N,se)&&!u(G,se))){var Ee=C(ie,se);return Ee&&u(N,se)&&!(u(ie,re)&&ie[re][se])&&(Ee.enumerable=!0),Ee}},bt=function(K){var ee=A(d(K)),ie=[];return we(ee,function(se){!u(N,se)&&!u(S,se)&&B(ie,se)}),ie},dt=function(ae){var K=ae===_e,ee=A(K?G:d(ae)),ie=[];return we(ee,function(se){u(N,se)&&(!K||u(_e,se))&&B(ie,N[se])}),ie};return o||(D=function(){if(l(U,this))throw new ne("Symbol is not a constructor");var K=!arguments.length||arguments[0]===void 0?void 0:f(arguments[0]),ee=$(K),ie=function(se){var Ee=this===void 0?e:this;Ee===_e&&t(ie,G,se),u(Ee,re)&&u(Ee[re],ee)&&(Ee[re][ee]=!1);var wi=p(1,se);try{ce(Ee,ee,wi)}catch(co){if(!(co instanceof X))throw co;L(Ee,ee,wi)}};return s&&V&&ce(_e,ee,{configurable:!0,set:ie}),Q(ee,K)},U=D[qe],b(U,"toString",function(){return ct(this).tag}),b(D,"withoutSetter",function(ae){return Q($(ae),ae)}),T.f=Ae,I.f=oe,O.f=he,y.f=Ce,m.f=g.f=bt,E.f=dt,F.f=function(ae){return Q(q(ae),ae)},s&&(w(U,"description",{configurable:!0,get:function(){return ct(this).description}}),n||b(_e,"propertyIsEnumerable",Ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:D}),we(_(J),function(ae){Z(ae)}),r({target:me,stat:!0,forced:!o},{useSetter:function(){V=!0},useSimple:function(){V=!1}}),r({target:"Object",stat:!0,forced:!o,sham:!s},{create:Ie,defineProperty:oe,defineProperties:he,getOwnPropertyDescriptor:Ce}),r({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:bt}),z(),te(D,me),S[re]=!0,nI}var xI={},sh,qI;function r3(){if(qI)return sh;qI=1;var r=ks();return sh=r&&!!Symbol.for&&!!Symbol.keyFor,sh}var AI;function NK(){if(AI)return xI;AI=1;var r=be(),e=ir(),t=It(),i=Ji(),n=js(),s=r3(),o=n("string-to-symbol-registry"),a=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{for:function(u){var l=i(u);if(t(o,l))return o[l];var c=e("Symbol")(l);return o[l]=c,a[c]=l,c}}),xI}var DI={},MI;function FK(){if(MI)return DI;MI=1;var r=be(),e=It(),t=va(),i=Bs(),n=js(),s=r3(),o=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(u){if(!t(u))throw new TypeError(i(u)+" is not a symbol");if(e(o,u))return o[u]}}),DI}var NI={},oh,FI;function kK(){if(FI)return oh;FI=1;var r=Ue(),e=Bn(),t=St(),i=vi(),n=Ji(),s=r([].push);return oh=function(o){if(t(o))return o;if(e(o)){for(var a=o.length,u=[],l=0;l=p.length)return f.target=null,o(void 0,!0);switch(f.kind){case"keys":return o(v,!1);case"values":return o(p[v],!1)}return o([v,p[v]],!1)},"values");var h=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!a&&u&&h.name!=="values")try{n(h,"name",{value:"values"})}catch{}return wh}var Eh,NT;function aG(){return NT||(NT=1,Eh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Eh}var FT;function Zi(){if(FT)return wT;FT=1,Qi();var r=aG(),e=vt(),t=Ln(),i=Vs();for(var n in r)t(e[n],n),i[n]=i.Array;return wT}var Sh,kT;function d3(){if(kT)return Sh;kT=1;var r=QK();return Zi(),Sh=r,Sh}var BT={},LT;function uG(){if(LT)return BT;LT=1;var r=Tt(),e=vr().f,t=r("metadata"),i=Function.prototype;return i[t]===void 0&&e(i,t,{value:null}),BT}var jT={},zT;function lG(){return zT||(zT=1,s3()),jT}var HT={},WT;function cG(){return WT||(WT=1,o3()),HT}var UT={},VT;function dG(){if(VT)return UT;VT=1;var r=et();return r("metadata"),UT}var Oh,KT;function hG(){if(KT)return Oh;KT=1;var r=d3();return uG(),lG(),cG(),dG(),Oh=r,Oh}var GT={},Ih,YT;function h3(){if(YT)return Ih;YT=1;var r=ir(),e=Ue(),t=r("Symbol"),i=t.keyFor,n=e(t.prototype.valueOf);return Ih=t.isRegisteredSymbol||function(o){try{return i(n(o))!==void 0}catch{return!1}},Ih}var XT;function fG(){if(XT)return GT;XT=1;var r=be(),e=h3();return r({target:"Symbol",stat:!0},{isRegisteredSymbol:e}),GT}var JT={},Th,QT;function f3(){if(QT)return Th;QT=1;for(var r=js(),e=ir(),t=Ue(),i=va(),n=Tt(),s=e("Symbol"),o=s.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),u=t(s.prototype.valueOf),l=r("wks"),c=0,d=a(s),h=d.length;c=f?u?"":void 0:(p=s(d,h),p<55296||p>56319||h+1===f||(v=s(d,h+1))<56320||v>57343?u?n(d,h):p:u?o(d,h,h+2):(p-55296<<10)+(v-56320)+65536)}};return Rh={codeAt:a(!1),charAt:a(!0)},Rh}var _$;function dl(){if(_$)return y$;_$=1;var r=TG().charAt,e=Ji(),t=_a(),i=s0(),n=o0(),s="String Iterator",o=t.set,a=t.getterFor(s);return i(String,"String",function(u){o(this,{type:s,string:e(u),index:0})},function(){var l=a(this),c=l.string,d=l.index,h;return d>=c.length?n(void 0,!0):(h=r(c,d),l.index+=h.length,n(h,!1))}),y$}var Ch,w$;function $G(){if(w$)return Ch;w$=1,Qi(),dl(),a3();var r=cl();return Ch=r.f("iterator"),Ch}var xh,E$;function p3(){if(E$)return xh;E$=1;var r=$G();return Zi(),xh=r,xh}var qh,S$;function PG(){if(S$)return qh;S$=1;var r=p3();return qh=r,qh}var Ah,O$;function RG(){if(O$)return Ah;O$=1;var r=PG();return Ah=r,Ah}var Dh,I$;function CG(){return I$||(I$=1,Dh=RG()),Dh}var xG=CG(),qG=$e(xG);function Go(r){"@babel/helpers - typeof";return Go=typeof Za=="function"&&typeof qG=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Za=="function"&&e.constructor===Za&&e!==Za.prototype?"symbol":typeof e},Go(r)}var Mh,T$;function AG(){if(T$)return Mh;T$=1,u3();var r=cl();return Mh=r.f("toPrimitive"),Mh}var Nh,$$;function DG(){if($$)return Nh;$$=1;var r=AG();return Nh=r,Nh}var Fh,P$;function MG(){if(P$)return Fh;P$=1;var r=DG();return Fh=r,Fh}var kh,R$;function NG(){if(R$)return kh;R$=1;var r=MG();return kh=r,kh}var Bh,C$;function FG(){return C$||(C$=1,Bh=NG()),Bh}var kG=FG(),BG=$e(kG);function LG(r,e){if(Go(r)!="object"||!r)return r;var t=r[BG];if(t!==void 0){var i=t.call(r,e);if(Go(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function jG(r){var e=LG(r,"string");return Go(e)=="symbol"?e:e+""}function Ni(r,e,t){return(e=jG(e))in r?$K(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var x$={},Lh,q$;function zG(){if(q$)return Lh;q$=1;var r=Ue(),e=gi(),t=Kt(),i=It(),n=Ws(),s=da(),o=Function,a=r([].concat),u=r([].join),l={},c=function(d,h,f){if(!i(l,h)){for(var p=[],v=0;v=0:p>v;v+=_)v in f&&(d=l(d,f[v],v,h));return d}};return Vh={left:o(!1),right:o(!0)},Vh}var Kh,j$;function hl(){if(j$)return Kh;j$=1;var r=Le();return Kh=function(e,t){var i=[][e];return!!i&&r(function(){i.call(null,t||function(){return 1},1)})},Kh}var Gh,z$;function g3(){if(z$)return Gh;z$=1;var r=vt(),e=Fs(),t=vi(),i=function(n){return e.slice(0,n.length)===n};return Gh=function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":t(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"}(),Gh}var Yh,H$;function XG(){if(H$)return Yh;H$=1;var r=g3();return Yh=r==="NODE",Yh}var W$;function JG(){if(W$)return B$;W$=1;var r=be(),e=YG().left,t=hl(),i=pa(),n=XG(),s=!n&&i>79&&i<83,o=s||!t("reduce");return r({target:"Array",proto:!0,forced:o},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),B$}var Xh,U$;function QG(){if(U$)return Xh;U$=1,JG();var r=Zt();return Xh=r("Array","reduce"),Xh}var Jh,V$;function ZG(){if(V$)return Jh;V$=1;var r=Ot(),e=QG(),t=Array.prototype;return Jh=function(i){var n=i.reduce;return i===t||r(t,i)&&n===t.reduce?e:n},Jh}var Qh,K$;function e6(){if(K$)return Qh;K$=1;var r=ZG();return Qh=r,Qh}var Zh,G$;function t6(){return G$||(G$=1,Zh=e6()),Zh}var r6=t6(),i6=$e(r6),Y$={},X$;function n6(){if(X$)return Y$;X$=1;var r=be(),e=Us().filter,t=ga(),i=t("filter");return r({target:"Array",proto:!0,forced:!i},{filter:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),Y$}var ef,J$;function s6(){if(J$)return ef;J$=1,n6();var r=Zt();return ef=r("Array","filter"),ef}var tf,Q$;function o6(){if(Q$)return tf;Q$=1;var r=Ot(),e=s6(),t=Array.prototype;return tf=function(i){var n=i.filter;return i===t||r(t,i)&&n===t.filter?e:n},tf}var rf,Z$;function a6(){if(Z$)return rf;Z$=1;var r=o6();return rf=r,rf}var nf,eP;function u6(){return eP||(eP=1,nf=a6()),nf}var l6=u6(),cs=$e(l6),tP={},rP;function c6(){if(rP)return tP;rP=1;var r=be(),e=Us().map,t=ga(),i=t("map");return r({target:"Array",proto:!0,forced:!i},{map:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),tP}var sf,iP;function d6(){if(iP)return sf;iP=1,c6();var r=Zt();return sf=r("Array","map"),sf}var of,nP;function h6(){if(nP)return of;nP=1;var r=Ot(),e=d6(),t=Array.prototype;return of=function(i){var n=i.map;return i===t||r(t,i)&&n===t.map?e:n},of}var af,sP;function f6(){if(sP)return af;sP=1;var r=h6();return af=r,af}var uf,oP;function p6(){return oP||(oP=1,uf=f6()),uf}var v6=p6(),wr=$e(v6),lf,aP;function g6(){return aP||(aP=1,lf=d3()),lf}var m6=g6(),y6=$e(m6),uP={},lP;function b6(){if(lP)return uP;lP=1;var r=be(),e=Bn(),t=Jz(),i=Kt(),n=t0(),s=Yi(),o=Wr(),a=sl(),u=Tt(),l=ga(),c=Ws(),d=l("slice"),h=u("species"),f=Array,p=Math.max;return r({target:"Array",proto:!0,forced:!d},{slice:function(_,m){var g=o(this),E=s(g),y=n(_,E),I=n(m===void 0?E:m,E),O,T,b;if(e(g)&&(O=g.constructor,t(O)&&(O===f||e(O.prototype))?O=void 0:i(O)&&(O=O[h],O===null&&(O=void 0)),O===f||O===void 0))return c(g,y,I);for(T=new(O===void 0?f:O)(p(I-y,0)),b=0;y1?arguments[1]:void 0)},Of}var qP;function H6(){if(qP)return CP;qP=1;var r=be(),e=z6();return r({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e}),CP}var If,AP;function W6(){if(AP)return If;AP=1,H6();var r=Zt();return If=r("Array","forEach"),If}var Tf,DP;function U6(){if(DP)return Tf;DP=1;var r=W6();return Tf=r,Tf}var $f,MP;function V6(){if(MP)return $f;MP=1;var r=Xi(),e=It(),t=Ot(),i=U6(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return $f=function(o){var a=o.forEach;return o===n||t(n,o)&&a===n.forEach||e(s,r(o))?i:a},$f}var Pf,NP;function K6(){return NP||(NP=1,Pf=V6()),Pf}var G6=K6(),$n=$e(G6),FP={},kP;function Y6(){if(kP)return FP;kP=1;var r=be(),e=Ue(),t=Bn(),i=e([].reverse),n=[1,2];return r({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return t(this)&&(this.length=this.length),i(this)}}),FP}var Rf,BP;function X6(){if(BP)return Rf;BP=1,Y6();var r=Zt();return Rf=r("Array","reverse"),Rf}var Cf,LP;function J6(){if(LP)return Cf;LP=1;var r=Ot(),e=X6(),t=Array.prototype;return Cf=function(i){var n=i.reverse;return i===t||r(t,i)&&n===t.reverse?e:n},Cf}var xf,jP;function Q6(){if(jP)return xf;jP=1;var r=J6();return xf=r,xf}var qf,zP;function Z6(){return zP||(zP=1,qf=Q6()),qf}var e8=Z6(),t8=$e(e8),HP={},Af,WP;function r8(){if(WP)return Af;WP=1;var r=gt(),e=Bn(),t=TypeError,i=Object.getOwnPropertyDescriptor,n=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}();return Af=n?function(s,o){if(e(s)&&!i(s,"length").writable)throw new t("Cannot set read only .length");return s.length=o}:function(s,o){return s.length=o},Af}var Df,UP;function y3(){if(UP)return Df;UP=1;var r=Bs(),e=TypeError;return Df=function(t,i){if(!delete t[i])throw new e("Cannot delete property "+r(i)+" of "+r(t))},Df}var VP;function i8(){if(VP)return HP;VP=1;var r=be(),e=Cr(),t=t0(),i=Hs(),n=Yi(),s=r8(),o=Xz(),a=e0(),u=sl(),l=y3(),c=ga(),d=c("splice"),h=Math.max,f=Math.min;return r({target:"Array",proto:!0,forced:!d},{splice:function(v,_){var m=e(this),g=n(m),E=t(v,g),y=arguments.length,I,O,T,b,w,R;for(y===0?I=O=0:y===1?(I=0,O=g-E):(I=y-2,O=f(h(i(_),0),g-E)),o(g+I-O),T=a(m,O),b=0;bg-O+I;b--)l(m,b-1)}else if(I>O)for(b=g-O;b>E;b--)w=b+O-1,R=b+I-1,w in m?m[R]=m[w]:l(m,R);for(b=0;bm;)for(var y=u(arguments[m++]),I=g?d(n(y),g(y)):n(y),O=I.length,T=0,b;O>T;)b=I[T++],(!r||t(E,y,b))&&(v[b]=y[b]);return v}:l,Bf}var ZP;function c8(){if(ZP)return JP;ZP=1;var r=be(),e=l8();return r({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),JP}var Lf,eR;function d8(){if(eR)return Lf;eR=1,c8();var r=_t();return Lf=r.Object.assign,Lf}var jf,tR;function h8(){if(tR)return jf;tR=1;var r=d8();return jf=r,jf}var zf,rR;function f8(){return rR||(rR=1,zf=h8()),zf}var p8=f8(),v8=$e(p8),Hf,iR;function g8(){if(iR)return Hf;iR=1,Qz();var r=Zt();return Hf=r("Array","concat"),Hf}var Wf,nR;function m8(){if(nR)return Wf;nR=1;var r=Ot(),e=g8(),t=Array.prototype;return Wf=function(i){var n=i.concat;return i===t||r(t,i)&&n===t.concat?e:n},Wf}var Uf,sR;function y8(){if(sR)return Uf;sR=1;var r=m8();return Uf=r,Uf}var Vf,oR;function b8(){return oR||(oR=1,Vf=y8()),Vf}var _8=b8(),w8=$e(_8),aR={},uR;function E8(){if(uR)return aR;uR=1;var r=be(),e=gt(),t=ya();return r({target:"Object",stat:!0,sham:!e},{create:t}),aR}var Kf,lR;function S8(){if(lR)return Kf;lR=1,E8();var r=_t(),e=r.Object;return Kf=function(i,n){return e.create(i,n)},Kf}var Gf,cR;function O8(){if(cR)return Gf;cR=1;var r=S8();return Gf=r,Gf}var Yf,dR;function I8(){return dR||(dR=1,Yf=O8()),Yf}var T8=I8(),$8=$e(T8),hR={},Xf,fR;function P8(){if(fR)return Xf;fR=1;var r=Hs(),e=Ji(),t=kn(),i=RangeError;return Xf=function(s){var o=e(t(this)),a="",u=r(s);if(u<0||u===1/0)throw new i("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(o+=o))u&1&&(a+=o);return a},Xf}var Jf,pR;function R8(){if(pR)return Jf;pR=1;var r=Ue(),e=Yz(),t=Ji(),i=P8(),n=kn(),s=r(i),o=r("".slice),a=Math.ceil,u=function(l){return function(c,d,h){var f=t(n(c)),p=e(d),v=f.length,_=h===void 0?" ":t(h),m,g;return p<=v||_===""?f:(m=p-v,g=s(_,a(m/_.length)),g.length>m&&(g=o(g,0,m)),l?f+g:g+f)}};return Jf={start:u(!1),end:u(!0)},Jf}var Qf,vR;function C8(){if(vR)return Qf;vR=1;var r=Ue(),e=Le(),t=R8().start,i=RangeError,n=isFinite,s=Math.abs,o=Date.prototype,a=o.toISOString,u=r(o.getTime),l=r(o.getUTCDate),c=r(o.getUTCFullYear),d=r(o.getUTCHours),h=r(o.getUTCMilliseconds),f=r(o.getUTCMinutes),p=r(o.getUTCMonth),v=r(o.getUTCSeconds);return Qf=e(function(){return a.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!e(function(){a.call(new Date(NaN))})?function(){if(!n(u(this)))throw new i("Invalid time value");var m=this,g=c(m),E=h(m),y=g<0?"-":g>9999?"+":"";return y+t(s(g),y?6:4,0)+"-"+t(p(m)+1,2,0)+"-"+t(l(m),2,0)+"T"+t(d(m),2,0)+":"+t(f(m),2,0)+":"+t(v(m),2,0)+"."+t(E,3,0)+"Z"}:a,Qf}var gR;function x8(){if(gR)return hR;gR=1;var r=be(),e=Qt(),t=Cr(),i=Wz(),n=C8(),s=vi(),o=Le(),a=o(function(){return new Date(NaN).toJSON()!==null||e(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});return r({target:"Date",proto:!0,forced:a},{toJSON:function(l){var c=t(this),d=i(c,"number");return typeof d=="number"&&!isFinite(d)?null:!("toISOString"in c)&&s(c)==="Date"?e(n,c):c.toISOString()}}),hR}var Zf,mR;function q8(){if(mR)return Zf;mR=1,x8(),i3();var r=_t(),e=el();return r.JSON||(r.JSON={stringify:JSON.stringify}),Zf=function(i,n,s){return e(r.JSON.stringify,null,arguments)},Zf}var ep,yR;function A8(){if(yR)return ep;yR=1;var r=q8();return ep=r,ep}var tp,bR;function D8(){return bR||(bR=1,tp=A8()),tp}var M8=D8(),N8=$e(M8),_R={},wR={},rp,ER;function F8(){if(ER)return rp;ER=1;var r=TypeError;return rp=function(e,t){if(ed,v=t(h)?h:a(h),_=p?s(arguments,d):[],m=p?function(){e(v,this,_)}:v;return c?l(m,f):l(m)}:l},ip}var OR;function k8(){if(OR)return wR;OR=1;var r=be(),e=vt(),t=_3(),i=t(e.setInterval,!0);return r({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i}),wR}var IR={},TR;function B8(){if(TR)return IR;TR=1;var r=be(),e=vt(),t=_3(),i=t(e.setTimeout,!0);return r({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i}),IR}var $R;function L8(){return $R||($R=1,k8(),B8()),_R}var np,PR;function j8(){if(PR)return np;PR=1,L8();var r=_t();return np=r.setTimeout,np}var sp,RR;function z8(){return RR||(RR=1,sp=j8()),sp}var H8=z8(),W8=$e(H8),op={exports:{}},CR;function U8(){return CR||(CR=1,function(r){function e(i){if(i)return t(i);this._callbacks=new Map}function t(i){return Object.assign(i,e.prototype),i._callbacks=new Map,i}e.prototype.on=function(i,n){const s=this._callbacks.get(i)??[];return s.push(n),this._callbacks.set(i,s),this},e.prototype.once=function(i,n){const s=(...o)=>{this.off(i,s),n.apply(this,o)};return s.fn=n,this.on(i,s),this},e.prototype.off=function(i,n){if(i===void 0&&n===void 0)return this._callbacks.clear(),this;if(n===void 0)return this._callbacks.delete(i),this;const s=this._callbacks.get(i);if(s){for(const[o,a]of s.entries())if(a===n||a.fn===n){s.splice(o,1);break}s.length===0?this._callbacks.delete(i):this._callbacks.set(i,s)}return this},e.prototype.emit=function(i,...n){const s=this._callbacks.get(i);if(s){const o=[...s];for(const a of o)a.apply(this,n)}return this},e.prototype.listeners=function(i){return this._callbacks.get(i)??[]},e.prototype.listenerCount=function(i){if(i)return this.listeners(i).length;let n=0;for(const s of this._callbacks.values())n+=s.length;return n},e.prototype.hasListeners=function(i){return this.listenerCount(i)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,r.exports=e}(op)),op.exports}var V8=U8(),K8=$e(V8);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 + * http://naver.github.io/egjs + * + * Forked By Naver egjs + * Copyright (c) hammerjs + * Licensed under the MIT license */function Pr(){return Pr=Object.assign||function(r){for(var e=1;e"u"?{style:{}}:document.createElement("div"),Y8="function",ds=Math.round,Rn=Math.abs,u0=Date.now;function fl(r,e){for(var t,i,n=e[0].toUpperCase()+e.slice(1),s=0;s"u"?ni={}:ni=window;var w3=fl(G8.style,"touchAction"),E3=w3!==void 0;function X8(){if(!E3)return!1;var r={},e=ni.CSS&&ni.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return r[t]=e?ni.CSS.supports("touch-action",t):!0}),r}var S3="compute",O3="auto",dw="manipulation",_n="none",Yo="pan-x",Xo="pan-y",tu=X8(),J8=/mobile|tablet|ip(ad|hone|od)|android/i,I3="ontouchstart"in ni,Q8=fl(ni,"PointerEvent")!==void 0,Z8=I3&&J8.test(navigator.userAgent),wa="touch",e9="pen",l0="mouse",t9="kinect",r9=25,Ut=1,jn=2,ht=4,Xt=8,Iu=1,Ea=2,Sa=4,Oa=8,Rs=16,zr=Ea|Sa,wn=Oa|Rs,T3=zr|wn,$3=["x","y"],Tu=["clientX","clientY"];function si(r,e,t){var i;if(r)if(r.forEach)r.forEach(e,t);else if(r.length!==void 0)for(i=0;i-1}function i9(r){if(pn(r,_n))return _n;var e=pn(r,Yo),t=pn(r,Xo);return e&&t?_n:e||t?e?Yo:Xo:pn(r,dw)?dw:O3}var P3=function(){function r(t,i){this.manager=t,this.set(i)}var e=r.prototype;return e.set=function(i){i===S3&&(i=this.compute()),E3&&this.manager.element.style&&tu[i]&&(this.manager.element.style[w3]=i),this.actions=i.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var i=[];return si(this.manager.recognizers,function(n){pl(n.options.enable,[n])&&(i=i.concat(n.getTouchAction()))}),i9(i.join(" "))},e.preventDefaults=function(i){var n=i.srcEvent,s=i.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,a=pn(o,_n)&&!tu[_n],u=pn(o,Xo)&&!tu[Xo],l=pn(o,Yo)&&!tu[Yo];if(a){var c=i.pointers.length===1,d=i.distance<2,h=i.deltaTime<250;if(c&&d&&h)return}if(!(l&&u)&&(a||u&&s&zr||l&&s&wn))return this.preventSrc(n)},e.preventSrc=function(i){this.manager.session.prevented=!0,i.preventDefault()},r}();function c0(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}function R3(r){var e=r.length;if(e===1)return{x:ds(r[0].clientX),y:ds(r[0].clientY)};for(var t=0,i=0,n=0;n=Rn(e)?r<0?Ea:Sa:e<0?Oa:Rs}function n9(r,e){var t=e.center,i=r.offsetDelta||{},n=r.prevDelta||{},s=r.prevInput||{};(e.eventType===Ut||s.eventType===ht)&&(n=r.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=r.offsetDelta={x:t.x,y:t.y}),e.deltaX=n.x+(t.x-i.x),e.deltaY=n.y+(t.y-i.y)}function x3(r,e,t){return{x:e/r||0,y:t/r||0}}function s9(r,e){return $u(e[0],e[1],Tu)/$u(r[0],r[1],Tu)}function o9(r,e){return hw(e[1],e[0],Tu)+hw(r[1],r[0],Tu)}function a9(r,e){var t=r.lastInterval||e,i=e.timeStamp-t.timeStamp,n,s,o,a;if(e.eventType!==Xt&&(i>r9||t.velocity===void 0)){var u=e.deltaX-t.deltaX,l=e.deltaY-t.deltaY,c=x3(i,u,l);s=c.x,o=c.y,n=Rn(c.x)>Rn(c.y)?c.x:c.y,a=C3(u,l),r.lastInterval=e}else n=t.velocity,s=t.velocityX,o=t.velocityY,a=t.direction;e.velocity=n,e.velocityX=s,e.velocityY=o,e.direction=a}function u9(r,e){var t=r.session,i=e.pointers,n=i.length;t.firstInput||(t.firstInput=qR(e)),n>1&&!t.firstMultiple?t.firstMultiple=qR(e):n===1&&(t.firstMultiple=!1);var s=t.firstInput,o=t.firstMultiple,a=o?o.center:s.center,u=e.center=R3(i);e.timeStamp=u0(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=hw(a,u),e.distance=$u(a,u),n9(t,e),e.offsetDirection=C3(e.deltaX,e.deltaY);var l=x3(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=Rn(l.x)>Rn(l.y)?l.x:l.y,e.scale=o?s9(o.pointers,i):1,e.rotation=o?o9(o.pointers,i):0,e.maxPointers=t.prevInput?e.pointers.length>t.prevInput.maxPointers?e.pointers.length:t.prevInput.maxPointers:e.pointers.length,a9(t,e);var c=r.element,d=e.srcEvent,h;d.composedPath?h=d.composedPath()[0]:d.path?h=d.path[0]:h=d.target,c0(h,c)&&(c=h),e.target=c}function l9(r,e,t){var i=t.pointers.length,n=t.changedPointers.length,s=e&Ut&&i-n===0,o=e&(ht|Xt)&&i-n===0;t.isFirst=!!s,t.isFinal=!!o,s&&(r.session={}),t.eventType=e,u9(r,t),r.emit("hammer.input",t),r.recognize(t),r.session.prevInput=t}function Jo(r){return r.trim().split(/\s+/g)}function xo(r,e,t){si(Jo(e),function(i){r.addEventListener(i,t,!1)})}function qo(r,e,t){si(Jo(e),function(i){r.removeEventListener(i,t,!1)})}function AR(r){var e=r.ownerDocument||r;return e.defaultView||e.parentWindow||window}var Ks=function(){function r(t,i){var n=this;this.manager=t,this.callback=i,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(s){pl(t.options.enable,[t])&&n.handler(s)},this.init()}var e=r.prototype;return e.handler=function(){},e.init=function(){this.evEl&&xo(this.element,this.evEl,this.domHandler),this.evTarget&&xo(this.target,this.evTarget,this.domHandler),this.evWin&&xo(AR(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&qo(this.element,this.evEl,this.domHandler),this.evTarget&&qo(this.target,this.evTarget,this.domHandler),this.evWin&&qo(AR(this.element),this.evWin,this.domHandler)},r}();function Cn(r,e,t){if(r.indexOf&&!t)return r.indexOf(e);for(var i=0;iu[e]}):i=i.sort()),i}var h9={touchstart:Ut,touchmove:jn,touchend:ht,touchcancel:Xt},f9="touchstart touchmove touchend touchcancel",h0=function(r){gr(e,r);function e(){var i;return e.prototype.evTarget=f9,i=r.apply(this,arguments)||this,i.targetIds={},i}var t=e.prototype;return t.handler=function(n){var s=h9[n.type],o=p9.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:wa,srcEvent:n})},e}(Ks);function p9(r,e){var t=Qo(r.touches),i=this.targetIds;if(e&(Ut|jn)&&t.length===1)return i[t[0].identifier]=!0,[t,t];var n,s,o=Qo(r.changedTouches),a=[],u=this.target;if(s=t.filter(function(l){return c0(l.target,u)}),e===Ut)for(n=0;n-1&&n.splice(a,1)};setTimeout(s,y9)}}function b9(r,e){r&Ut?(this.primaryTouch=e.changedPointers[0].identifier,MR.call(this,e)):r&(ht|Xt)&&MR.call(this,e)}function _9(r){for(var e=r.srcEvent.clientX,t=r.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(n,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(i){return!!this.simultaneous[i.id]},e.emit=function(i){var n=this,s=this.state;function o(a){n.manager.emit(a,i)}s=Fi&&o(n.options.event+NR(s))},e.tryEmit=function(i){if(this.canEmit())return this.emit(i);this.state=kr},e.canEmit=function(){for(var i=0;is.threshold&&u&s.direction},t.attrTest=function(n){return xs.prototype.attrTest.call(this,n)&&(this.state&hr||!(this.state&hr)&&this.directionTest(n))},t.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=N3(n.direction);s&&(n.additionalEvent=this.options.event+s),r.prototype.emit.call(this,n)},e}(xs),F3=function(r){gr(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Pr({event:"swipe",threshold:10,velocity:.3,direction:zr|wn,pointers:1},i))||this}var t=e.prototype;return t.getTouchAction=function(){return p0.prototype.getTouchAction.call(this)},t.attrTest=function(n){var s=this.options.direction,o;return s&(zr|wn)?o=n.overallVelocity:s&zr?o=n.overallVelocityX:s&wn&&(o=n.overallVelocityY),r.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&Rn(o)>this.options.velocity&&n.eventType&ht},t.emit=function(n){var s=N3(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},e}(xs),k3=function(r){gr(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Pr({event:"pinch",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[_n]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&hr)},t.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}r.prototype.emit.call(this,n)},e}(xs),B3=function(r){gr(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Pr({event:"rotate",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[_n]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&hr)},e}(xs),L3=function(r){gr(e,r);function e(i){var n;return i===void 0&&(i={}),n=r.call(this,Pr({event:"press",pointers:1,time:251,threshold:9},i))||this,n._timer=null,n._input=null,n}var t=e.prototype;return t.getTouchAction=function(){return[O3]},t.process=function(n){var s=this,o=this.options,a=n.pointers.length===o.pointers,u=n.distanceo.time;if(this._input=n,!u||!a||n.eventType&(ht|Xt)&&!l)this.reset();else if(n.eventType&Ut)this.reset(),this._timer=setTimeout(function(){s.state=oi,s.tryEmit()},o.time);else if(n.eventType&ht)return oi;return kr},t.reset=function(){clearTimeout(this._timer)},t.emit=function(n){this.state===oi&&(n&&n.eventType&ht?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=u0(),this.manager.emit(this.options.event,this._input)))},e}(Ia),j3={domEvents:!1,touchAction:S3,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},FR=[[B3,{enable:!1}],[k3,{enable:!1},["rotate"]],[F3,{direction:zr}],[p0,{direction:zr},["swipe"]],[fw],[fw,{event:"doubletap",taps:2},["tap"]],[L3]],O9=1,kR=2;function BR(r,e){var t=r.element;if(t.style){var i;si(r.options.cssProps,function(n,s){i=fl(t.style,s),e?(r.oldCssProps[i]=t.style[i],t.style[i]=n):t.style[i]=r.oldCssProps[i]||""}),e||(r.oldCssProps={})}}function I9(r,e){var t=document.createEvent("Event");t.initEvent(r,!0,!0),t.gesture=e,e.target.dispatchEvent(t)}var LR=function(){function r(t,i){var n=this;this.options=Pn({},j3,i||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=w9(this),this.touchAction=new P3(this,this.options.touchAction),BR(this,!0),si(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var e=r.prototype;return e.set=function(i){return Pn(this.options,i),i.touchAction&&this.touchAction.update(),i.inputTarget&&(this.input.destroy(),this.input.target=i.inputTarget,this.input.init()),this},e.stop=function(i){this.session.stopped=i?kR:O9},e.recognize=function(i){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(i);var s,o=this.recognizers,a=n.curRecognizer;(!a||a&&a.state&oi)&&(n.curRecognizer=null,a=null);for(var u=0;u\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,s),r.apply(this,arguments)}}var H3=z3(function(r,e,t){for(var i=Object.keys(e),n=0;n1?e-1:0),i=1;i2)return Pu(U3(e[0],e[1]),...I6(e).call(e,2));const i=e[0],n=e[1];if(i instanceof Date&&n instanceof Date)return i.setTime(n.getTime()),i;for(const s of x6(n))Object.prototype.propertyIsEnumerable.call(n,s)&&(n[s]===W3?delete i[s]:i[s]!==null&&n[s]!==null&&typeof i[s]=="object"&&typeof n[s]=="object"&&!Mr(i[s])&&!Mr(n[s])?i[s]=Pu(i[s],n[s]):i[s]=V3(n[s]));return i}function V3(r){return Mr(r)?wr(r).call(r,e=>V3(e)):typeof r=="object"&&r!==null?r instanceof Date?new Date(r.getTime()):Pu({},r):r}function K3(r){for(const e of a0(r))r[e]===W3?delete r[e]:typeof r[e]=="object"&&r[e]!==null&&K3(r[e])}function M9(){const r=()=>{};return{on:r,off:r,destroy:r,emit:r,get(){return{set:r}}}}const N9=typeof window<"u"?window.Hammer||A9:function(){return M9()};function ti(r){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:r,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const t=N9(this._dom.overlay);t.on("tap",v3(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{t.destroy()});const i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];$n(i).call(i,n=>{t.on(n,s=>{s.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=n=>{F9(n.target,r)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=n=>{("key"in n?n.key==="Escape":n.keyCode===27)&&this.deactivate()}}K8(ti.prototype);ti.current=null;ti.prototype.destroy=function(){this.deactivate();for(const t of t8(r=b3(e=this._cleanupQueue).call(e,0)).call(r)){var r,e;t()}};ti.prototype.activate=function(){ti.current&&ti.current.deactivate(),ti.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};ti.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};ti.prototype._onTapOverlay=function(r){this.activate(),r.srcEvent.stopPropagation()};function F9(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}var ap,zR;function k9(){if(zR)return ap;zR=1,n3();var r=_t();return ap=r.Object.getOwnPropertySymbols,ap}var up,HR;function B9(){if(HR)return up;HR=1;var r=k9();return up=r,up}var lp,WR;function L9(){return WR||(WR=1,lp=B9()),lp}var j9=L9(),UR=$e(j9),cp={exports:{}},VR={},KR;function z9(){if(KR)return VR;KR=1;var r=be(),e=Le(),t=Wr(),i=il().f,n=gt(),s=!n||e(function(){i(1)});return r({target:"Object",stat:!0,forced:s,sham:!n},{getOwnPropertyDescriptor:function(a,u){return i(t(a),u)}}),VR}var GR;function H9(){if(GR)return cp.exports;GR=1,z9();var r=_t(),e=r.Object,t=cp.exports=function(n,s){return e.getOwnPropertyDescriptor(n,s)};return e.getOwnPropertyDescriptor.sham&&(t.sham=!0),cp.exports}var dp,YR;function W9(){if(YR)return dp;YR=1;var r=H9();return dp=r,dp}var hp,XR;function U9(){return XR||(XR=1,hp=W9()),hp}var V9=U9(),G3=$e(V9),JR={},QR;function K9(){if(QR)return JR;QR=1;var r=be(),e=gt(),t=m3(),i=Wr(),n=il(),s=sl();return r({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(a){for(var u=i(a),l=n.f,c=t(u),d={},h=0,f,p;c.length>h;)p=l(u,f=c[h++]),p!==void 0&&s(d,f,p);return d}}),JR}var fp,ZR;function G9(){if(ZR)return fp;ZR=1,K9();var r=_t();return fp=r.Object.getOwnPropertyDescriptors,fp}var pp,eC;function Y9(){if(eC)return pp;eC=1;var r=G9();return pp=r,pp}var vp,tC;function X9(){return tC||(tC=1,vp=Y9()),vp}var J9=X9(),rC=$e(J9),gp={exports:{}},iC={},nC;function Q9(){if(nC)return iC;nC=1;var r=be(),e=gt(),t=i0().f;return r({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!e},{defineProperties:t}),iC}var sC;function Z9(){if(sC)return gp.exports;sC=1,Q9();var r=_t(),e=r.Object,t=gp.exports=function(n,s){return e.defineProperties(n,s)};return e.defineProperties.sham&&(t.sham=!0),gp.exports}var mp,oC;function e7(){if(oC)return mp;oC=1;var r=Z9();return mp=r,mp}var yp,aC;function t7(){return aC||(aC=1,yp=e7()),yp}var r7=t7(),i7=$e(r7),bp,uC;function n7(){return uC||(uC=1,bp=Gz()),bp}var s7=n7(),o7=$e(s7),lC={},cC={},_p={exports:{}},wp,dC;function a7(){if(dC)return wp;dC=1;var r=Le();return wp=r(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),wp}var Ep,hC;function u7(){if(hC)return Ep;hC=1;var r=Le(),e=Kt(),t=vi(),i=a7(),n=Object.isExtensible,s=r(function(){});return Ep=s||i?function(a){return!e(a)||i&&t(a)==="ArrayBuffer"?!1:n?n(a):!0}:n,Ep}var Sp,fC;function l7(){if(fC)return Sp;fC=1;var r=Le();return Sp=!r(function(){return Object.isExtensible(Object.preventExtensions({}))}),Sp}var pC;function Y3(){if(pC)return _p.exports;pC=1;var r=be(),e=Ue(),t=ma(),i=Kt(),n=It(),s=vr().f,o=ul(),a=e3(),u=u7(),l=rl(),c=l7(),d=!1,h=l("meta"),f=0,p=function(y){s(y,h,{value:{objectID:"O"+f++,weakData:{}}})},v=function(y,I){if(!i(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!n(y,h)){if(!u(y))return"F";if(!I)return"E";p(y)}return y[h].objectID},_=function(y,I){if(!n(y,h)){if(!u(y))return!0;if(!I)return!1;p(y)}return y[h].weakData},m=function(y){return c&&d&&u(y)&&!n(y,h)&&p(y),y},g=function(){E.enable=function(){},d=!0;var y=o.f,I=e([].splice),O={};O[h]=1,y(O).length&&(o.f=function(T){for(var b=y(T),w=0,R=b.length;wb;b++)if(R=q(f[b]),R&&o(h,R))return R;return new d(!1)}O=a(f,T)}for(P=g?f.next:O.next;!(S=e(P,O)).done;){try{R=q(S.value)}catch(F){l(O,"throw",F)}if(typeof R=="object"&&R&&o(h,R))return R}return new d(!1)},Pp}var Rp,_C;function Q3(){if(_C)return Rp;_C=1;var r=Ot(),e=TypeError;return Rp=function(t,i){if(r(i,t))return t;throw new e("Incorrect invocation")},Rp}var Cp,wC;function Z3(){if(wC)return Cp;wC=1;var r=be(),e=vt(),t=Y3(),i=Le(),n=zs(),s=g0(),o=Q3(),a=St(),u=Kt(),l=fa(),c=Ln(),d=vr().f,h=Us().forEach,f=gt(),p=_a(),v=p.set,_=p.getterFor;return Cp=function(m,g,E){var y=m.indexOf("Map")!==-1,I=m.indexOf("Weak")!==-1,O=y?"set":"add",T=e[m],b=T&&T.prototype,w={},R;if(!f||!a(T)||!(I||b.forEach&&!i(function(){new T().entries().next()})))R=E.getConstructor(g,m,y,O),t.enable();else{R=g(function($,q){v(o($,P),{type:m,collection:new T}),l(q)||s(q,$[O],{that:$,AS_ENTRIES:y})});var P=R.prototype,S=_(m);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function($){var q=$==="add"||$==="set";$ in b&&!(I&&$==="clear")&&n(P,$,function(F,Z){var z=S(this).collection;if(!q&&I&&!u(F))return $==="get"?void 0:!1;var te=z[$](F===0?0:F,Z);return q?this:te})}),I||d(P,"size",{configurable:!0,get:function(){return S(this).collection.size}})}return c(R,m,!1,!0),w[m]=R,r({global:!0,forced:!0},w),I||E.setStrong(R,m,y),R},Cp}var xp,EC;function d7(){if(EC)return xp;EC=1;var r=ba();return xp=function(e,t,i){for(var n in t)i&&i.unsafe&&e[n]?e[n]=t[n]:r(e,n,t[n],i);return e},xp}var qp,SC;function h7(){if(SC)return qp;SC=1;var r=ir(),e=n0(),t=Tt(),i=gt(),n=t("species");return qp=function(s){var o=r(s);i&&o&&!o[n]&&e(o,n,{configurable:!0,get:function(){return this}})},qp}var Ap,OC;function e5(){if(OC)return Ap;OC=1;var r=ya(),e=n0(),t=d7(),i=nl(),n=Q3(),s=fa(),o=g0(),a=s0(),u=o0(),l=h7(),c=gt(),d=Y3().fastKey,h=_a(),f=h.set,p=h.getterFor;return Ap={getConstructor:function(v,_,m,g){var E=v(function(b,w){n(b,y),f(b,{type:_,index:r(null),first:null,last:null,size:0}),c||(b.size=0),s(w)||o(w,b[g],{that:b,AS_ENTRIES:m})}),y=E.prototype,I=p(_),O=function(b,w,R){var P=I(b),S=T(b,w),$,q;return S?S.value=R:(P.last=S={index:q=d(w,!0),key:w,value:R,previous:$=P.last,next:null,removed:!1},P.first||(P.first=S),$&&($.next=S),c?P.size++:b.size++,q!=="F"&&(P.index[q]=S)),b},T=function(b,w){var R=I(b),P=d(w),S;if(P!=="F")return R.index[P];for(S=R.first;S;S=S.next)if(S.key===w)return S};return t(y,{clear:function(){for(var w=this,R=I(w),P=R.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=null),P=P.next;R.first=R.last=null,R.index=r(null),c?R.size=0:w.size=0},delete:function(b){var w=this,R=I(w),P=T(w,b);if(P){var S=P.next,$=P.previous;delete R.index[P.index],P.removed=!0,$&&($.next=S),S&&(S.previous=$),R.first===P&&(R.first=S),R.last===P&&(R.last=$),c?R.size--:w.size--}return!!P},forEach:function(w){for(var R=I(this),P=i(w,arguments.length>1?arguments[1]:void 0),S;S=S?S.next:R.first;)for(P(S.value,S.key,this);S&&S.removed;)S=S.previous},has:function(w){return!!T(this,w)}}),t(y,m?{get:function(w){var R=T(this,w);return R&&R.value},set:function(w,R){return O(this,w===0?0:w,R)}}:{add:function(w){return O(this,w=w===0?0:w,w)}}),c&&e(y,"size",{configurable:!0,get:function(){return I(this).size}}),E},setStrong:function(v,_,m){var g=_+" Iterator",E=p(_),y=p(g);a(v,_,function(I,O){f(this,{type:g,target:I,state:E(I),kind:O,last:null})},function(){for(var I=y(this),O=I.kind,T=I.last;T&&T.removed;)T=T.previous;return!I.target||!(I.last=T=T?T.next:I.state.first)?(I.target=null,u(void 0,!0)):u(O==="keys"?T.key:O==="values"?T.value:[T.key,T.value],!1)},m?"entries":"values",!m,!0),l(_)}},Ap}var IC;function f7(){if(IC)return cC;IC=1;var r=Z3(),e=e5();return r("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),cC}var TC;function p7(){return TC||(TC=1,f7()),lC}var $C={},Dp,PC;function t5(){return PC||(PC=1,Dp=function(r,e){return e===1?function(t,i){return t[r](i)}:function(t,i,n){return t[r](i,n)}}),Dp}var Mp,RC;function v7(){if(RC)return Mp;RC=1;var r=ir(),e=t5(),t=r("Map");return Mp={Map:t,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:t.prototype},Mp}var CC;function g7(){if(CC)return $C;CC=1;var r=be(),e=Ue(),t=gi(),i=kn(),n=g0(),s=v7(),o=Ls(),a=Le(),u=s.Map,l=s.has,c=s.get,d=s.set,h=e([].push),f=o||a(function(){return u.groupBy("ab",function(p){return p}).get("a").length!==1});return r({target:"Map",stat:!0,forced:o||f},{groupBy:function(v,_){i(v),t(_);var m=new u,g=0;return n(v,function(E){var y=_(E,g++);l(m,y)?h(c(m,y),E):d(m,y,[E])}),m}}),$C}var Np,xC;function m7(){if(xC)return Np;xC=1,Qi(),p7(),g7(),dl();var r=_t();return Np=r.Map,Np}var Fp,qC;function y7(){if(qC)return Fp;qC=1;var r=m7();return Zi(),Fp=r,Fp}var kp,AC;function b7(){return AC||(AC=1,kp=y7()),kp}var _7=b7(),r5=$e(_7),DC={},MC;function w7(){if(MC)return DC;MC=1;var r=be(),e=Us().some,t=hl(),i=t("some");return r({target:"Array",proto:!0,forced:!i},{some:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),DC}var Bp,NC;function E7(){if(NC)return Bp;NC=1,w7();var r=Zt();return Bp=r("Array","some"),Bp}var Lp,FC;function S7(){if(FC)return Lp;FC=1;var r=Ot(),e=E7(),t=Array.prototype;return Lp=function(i){var n=i.some;return i===t||r(t,i)&&n===t.some?e:n},Lp}var jp,kC;function O7(){if(kC)return jp;kC=1;var r=S7();return jp=r,jp}var zp,BC;function I7(){return BC||(BC=1,zp=O7()),zp}var T7=I7(),$7=$e(T7),Hp,LC;function P7(){if(LC)return Hp;LC=1,Qi();var r=Zt();return Hp=r("Array","keys"),Hp}var Wp,jC;function R7(){if(jC)return Wp;jC=1;var r=P7();return Wp=r,Wp}var Up,zC;function C7(){if(zC)return Up;zC=1,Zi();var r=Xi(),e=It(),t=Ot(),i=R7(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return Up=function(o){var a=o.keys;return o===n||t(n,o)&&a===n.keys||e(s,r(o))?i:a},Up}var Vp,HC;function x7(){return HC||(HC=1,Vp=C7()),Vp}var q7=x7(),ss=$e(q7),WC={},Kp,UC;function A7(){if(UC)return Kp;UC=1;var r=Ws(),e=Math.floor,t=function(i,n){var s=i.length;if(s<8)for(var o=1,a,u;o0;)i[u]=i[--u];u!==o++&&(i[u]=a)}else for(var l=e(s/2),c=t(r(i,0,l),n),d=t(r(i,l),n),h=c.length,f=d.length,p=0,v=0;p3)){if(d)return!0;if(f)return f<603;var T="",b,w,R,P;for(b=65;b<76;b++){switch(w=String.fromCharCode(b),b){case 66:case 69:case 70:case 72:R=3;break;case 68:case 71:R=4;break;default:R=2}for(P=0;P<47;P++)p.push({k:w+P,v:R})}for(p.sort(function(S,$){return $.v-S.v}),P=0;Po(w)?1:-1}};return r({target:"Array",proto:!0,forced:I},{sort:function(b){b!==void 0&&t(b);var w=i(this);if(y)return b===void 0?v(w):v(w,b);var R=[],P=n(w),S,$;for($=0;$"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");cv=crypto.getRandomValues.bind(crypto)}return cv(iY)}const sY=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var cx={randomUUID:sY};function oY(r,e,t){var n;r=r||{};const i=r.random??((n=r.rng)==null?void 0:n.call(r))??nY();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,rY(i)}function aY(r,e,t){return cx.randomUUID&&!r?cx.randomUUID():oY(r)}function dx(r){return typeof r=="string"||typeof r=="number"}class m0{constructor(e){Ni(this,"_queue",[]),Ni(this,"_timeout",null),Ni(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}setOptions(e){e&&typeof e.delay<"u"&&(this.delay=e.delay),e&&typeof e.max<"u"&&(this.max=e.max),this._flushIfNeeded()}static extend(e,t){const i=new m0(t);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=()=>{i.flush()};const n=[{name:"flush",original:void 0}];if(t&&t.replace)for(let s=0;sthis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=W8(()=>{this.flush()},this.delay))}flush(){var e,t;$n(e=b3(t=this._queue).call(t,0)).call(e,i=>{i.fn.apply(i.context||i.fn,i.args||[])})}}class Ru{constructor(){Ni(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Ni(this,"subscribe",Ru.prototype.on),Ni(this,"unsubscribe",Ru.prototype.off)}_trigger(e,t,i){var n;if(e==="*")throw new Error("Cannot trigger event *");$n(n=[...this._subscribers[e],...this._subscribers["*"]]).call(n,s=>{s(e,t,i??null)})}on(e,t){typeof t=="function"&&this._subscribers[e].push(t)}off(e,t){var i;this._subscribers[e]=cs(i=this._subscribers[e]).call(i,n=>n!==t)}}var hx={},fx={},px;function uY(){if(px)return fx;px=1;var r=Z3(),e=e5();return r("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),fx}var vx;function lY(){return vx||(vx=1,uY()),hx}var gx={},dv,mx;function zn(){if(mx)return dv;mx=1;var r=Bs(),e=TypeError;return dv=function(t){if(typeof t=="object"&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new e(r(t)+" is not a set")},dv}var hv,yx;function Hn(){if(yx)return hv;yx=1;var r=ir(),e=t5(),t=r("Set"),i=t.prototype;return hv={Set:t,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:i},hv}var fv,bx;function Wn(){if(bx)return fv;bx=1;var r=Qt();return fv=function(e,t,i){for(var n=i?e:e.iterator,s=e.next,o,a;!(o=r(s,n)).done;)if(a=t(o.value),a!==void 0)return a},fv}var pv,_x;function Ta(){if(_x)return pv;_x=1;var r=Wn();return pv=function(e,t,i){return i?r(e.keys(),t,!0):e.forEach(t)},pv}var vv,wx;function y0(){if(wx)return vv;wx=1;var r=Hn(),e=Ta(),t=r.Set,i=r.add;return vv=function(n){var s=new t;return e(n,function(o){i(s,o)}),s},vv}var gv,Ex;function $a(){return Ex||(Ex=1,gv=function(r){return r.size}),gv}var mv,Sx;function cY(){return Sx||(Sx=1,mv=function(r){return{iterator:r,next:r.next,done:!1}}),mv}var yv,Ox;function Un(){if(Ox)return yv;Ox=1;var r=gi(),e=mi(),t=Qt(),i=Hs(),n=cY(),s="Invalid size",o=RangeError,a=TypeError,u=Math.max,l=function(c,d){this.set=c,this.size=u(d,0),this.has=r(c.has),this.keys=r(c.keys)};return l.prototype={getIterator:function(){return n(e(t(this.keys,this.set)))},includes:function(c){return t(this.has,this.set,c)}},yv=function(c){e(c);var d=+c.size;if(d!==d)throw new a(s);var h=i(d);if(h<0)throw new o(s);return new l(c,h)},yv}var bv,Ix;function dY(){if(Ix)return bv;Ix=1;var r=zn(),e=Hn(),t=y0(),i=$a(),n=Un(),s=Ta(),o=Wn(),a=e.has,u=e.remove;return bv=function(c){var d=r(this),h=n(c),f=t(d);return i(d)<=h.size?s(d,function(p){h.includes(p)&&u(f,p)}):o(h.getIterator(),function(p){a(f,p)&&u(f,p)}),f},bv}var _v,Tx;function Vn(){return Tx||(Tx=1,_v=function(){return!1}),_v}var $x;function hY(){if($x)return gx;$x=1;var r=be(),e=dY(),t=Le(),i=Vn(),n=!i("difference",function(o){return o.size===0}),s=n||t(function(){var o={size:1,has:function(){return!0},keys:function(){var u=0;return{next:function(){var l=u++>1;return a.has(1)&&a.clear(),{done:l,value:2}}}}},a=new Set([1,2,3,4]);return a.difference(o).size!==3});return r({target:"Set",proto:!0,real:!0,forced:s},{difference:e}),gx}var Px={},wv,Rx;function fY(){if(Rx)return wv;Rx=1;var r=zn(),e=Hn(),t=$a(),i=Un(),n=Ta(),s=Wn(),o=e.Set,a=e.add,u=e.has;return wv=function(c){var d=r(this),h=i(c),f=new o;return t(d)>h.size?s(h.getIterator(),function(p){u(d,p)&&a(f,p)}):n(d,function(p){h.includes(p)&&a(f,p)}),f},wv}var Cx;function pY(){if(Cx)return Px;Cx=1;var r=be(),e=Le(),t=fY(),i=Vn(),n=!i("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return r({target:"Set",proto:!0,real:!0,forced:n},{intersection:t}),Px}var xx={},Ev,qx;function vY(){if(qx)return Ev;qx=1;var r=zn(),e=Hn().has,t=$a(),i=Un(),n=Ta(),s=Wn(),o=v0();return Ev=function(u){var l=r(this),c=i(u);if(t(l)<=c.size)return n(l,function(h){if(c.includes(h))return!1},!0)!==!1;var d=c.getIterator();return s(d,function(h){if(e(l,h))return o(d,"normal",!1)})!==!1},Ev}var Ax;function gY(){if(Ax)return xx;Ax=1;var r=be(),e=vY(),t=Vn(),i=!t("isDisjointFrom",function(n){return!n});return r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:e}),xx}var Dx={},Sv,Mx;function mY(){if(Mx)return Sv;Mx=1;var r=zn(),e=$a(),t=Ta(),i=Un();return Sv=function(s){var o=r(this),a=i(s);return e(o)>a.size?!1:t(o,function(u){if(!a.includes(u))return!1},!0)!==!1},Sv}var Nx;function yY(){if(Nx)return Dx;Nx=1;var r=be(),e=mY(),t=Vn(),i=!t("isSubsetOf",function(n){return n});return r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:e}),Dx}var Fx={},Ov,kx;function bY(){if(kx)return Ov;kx=1;var r=zn(),e=Hn().has,t=$a(),i=Un(),n=Wn(),s=v0();return Ov=function(a){var u=r(this),l=i(a);if(t(u)t[0])}toItemArray(){var e;return wr(e=[...this._pairs]).call(e,t=>t[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){const e=$8(null);for(const[t,i]of this._pairs)e[t]=i;return e}toMap(){return new r5(this._pairs)}toIdSet(){return new xv(this.toIdArray())}toItemSet(){return new xv(this.toItemArray())}cache(){return new vn([...this._pairs])}distinct(e){const t=new xv;for(const[i,n]of this._pairs)t.add(e(n,i));return t}filter(e){const t=this._pairs;return new vn({*[fs](){for(const[i,n]of t)e(n,i)&&(yield[i,n])}})}forEach(e){for(const[t,i]of this._pairs)e(i,t)}map(e){const t=this._pairs;return new vn({*[fs](){for(const[i,n]of t)yield[i,e(n,i)]}})}max(e){const t=kv(this._pairs);let i=t.next();if(i.done)return null;let n=i.value[1],s=e(i.value[1],i.value[0]);for(;!(i=t.next()).done;){const[o,a]=i.value,u=e(a,o);u>s&&(s=u,n=a)}return n}min(e){const t=kv(this._pairs);let i=t.next();if(i.done)return null;let n=i.value[1],s=e(i.value[1],i.value[0]);for(;!(i=t.next()).done;){const[o,a]=i.value,u=e(a,o);u{var t;return kv(pw(t=[...this._pairs]).call(t,(i,n)=>{let[s,o]=i,[a,u]=n;return e(o,u,s,a)}))}})}}function rq(r,e){var t=a0(r);if(UR){var i=UR(r);e&&(i=cs(i).call(i,function(n){return G3(r,n).enumerable})),t.push.apply(t,i)}return t}function iq(r){for(var e=1;eo[this._idProp]);if($7(s).call(s,o=>this._data.has(o)))throw new Error("A duplicate id was found in the parameter array.");for(let o=0,a=e.length;o{const c=l[a];if(c!=null&&this._data.has(c)){const d=l,h=v8({},this._data.get(c)),f=this._updateItem(d);n.push(f),o.push(d),s.push(h)}else{const d=this._addItem(l);i.push(d)}};if(Mr(e))for(let l=0,c=e.length;l{const o=this._data.get(s[this._idProp]);if(o==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:o,update:s}})).call(i,s=>{let{oldData:o,update:a}=s;const u=o[this._idProp],l=D9(o,a);return this._data.set(u,l),{id:u,oldData:o,updatedData:l}});if(n.length){const s={items:wr(n).call(n,o=>o.id),oldData:wr(n).call(n,o=>o.oldData),data:wr(n).call(n,o=>o.updatedData)};return this._trigger("update",s,t),s.items}else return[]}get(e,t){let i,n,s;dx(e)?(i=e,s=t):Mr(e)?(n=e,s=t):s=e;const o=s&&s.returnType==="Object"?"Object":"Array",a=s&&cs(s),u=[];let l,c,d;if(i!=null)l=this._data.get(i),l&&a&&!a(l)&&(l=void 0);else if(n!=null)for(let f=0,p=n.length;f(n[s]=e[s],n),{})}_sort(e,t){if(typeof t=="string"){const i=t;pw(e).call(e,(n,s)=>{const o=n[i],a=s[i];return o>a?1:oi)&&(t=s,i=o)}return t||null}min(e){let t=null,i=null;for(const s of nx(n=this._data).call(n)){var n;const o=s[e];typeof o=="number"&&(i==null||o"u"&&r!==void 0?function(e){return typeof e=="function"||e===r}:function(e){return typeof e=="function"},Uv}var Vv={},Kv,pq;function lt(){if(pq)return Kv;pq=1;var r=Pe();return Kv=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Kv}var Gv,vq;function er(){if(vq)return Gv;vq=1;var r=Pa(),e=Function.prototype.call;return Gv=r?e.bind(e):function(){return e.apply(e,arguments)},Gv}var Yv={},gq;function gl(){if(gq)return Yv;gq=1;var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,t=e&&!r.call({1:2},1);return Yv.f=t?function(n){var s=e(this,n);return!!s&&s.enumerable}:r,Yv}var Xv,mq;function Ra(){return mq||(mq=1,Xv=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}),Xv}var Jv,yq;function ml(){if(yq)return Jv;yq=1;var r=xe(),e=Pe(),t=Ur(),i=Object,n=r("".split);return Jv=e(function(){return!i("z").propertyIsEnumerable(0)})?function(s){return t(s)==="String"?n(s,""):i(s)}:i,Jv}var Qv,bq;function Gs(){return bq||(bq=1,Qv=function(r){return r==null}),Qv}var Zv,_q;function yi(){if(_q)return Zv;_q=1;var r=Gs(),e=TypeError;return Zv=function(t){if(r(t))throw new e("Can't call method on "+t);return t},Zv}var eg,wq;function xr(){if(wq)return eg;wq=1;var r=ml(),e=yi();return eg=function(t){return r(e(t))},eg}var tg,Eq;function Pt(){if(Eq)return tg;Eq=1;var r=$t();return tg=function(e){return typeof e=="object"?e!==null:r(e)},tg}var rg,Sq;function je(){return Sq||(Sq=1,rg={}),rg}var ig,Oq;function nr(){if(Oq)return ig;Oq=1;var r=je(),e=Ze(),t=$t(),i=function(n){return t(n)?n:void 0};return ig=function(n,s){return arguments.length<2?i(r[n])||i(e[n]):r[n]&&r[n][s]||e[n]&&e[n][s]},ig}var ng,Iq;function mt(){if(Iq)return ng;Iq=1;var r=xe();return ng=r({}.isPrototypeOf),ng}var sg,Tq;function Ys(){if(Tq)return sg;Tq=1;var r=Ze(),e=r.navigator,t=e&&e.userAgent;return sg=t?String(t):"",sg}var og,$q;function Ca(){if($q)return og;$q=1;var r=Ze(),e=Ys(),t=r.process,i=r.Deno,n=t&&t.versions||i&&i.version,s=n&&n.v8,o,a;return s&&(o=s.split("."),a=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!a&&e&&(o=e.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=e.match(/Chrome\/(\d+)/),o&&(a=+o[1]))),og=a,og}var ag,Pq;function Xs(){if(Pq)return ag;Pq=1;var r=Ca(),e=Pe(),t=Ze(),i=t.String;return ag=!!Object.getOwnPropertySymbols&&!e(function(){var n=Symbol("symbol detection");return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&r&&r<41}),ag}var ug,Rq;function s5(){if(Rq)return ug;Rq=1;var r=Xs();return ug=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ug}var lg,Cq;function xa(){if(Cq)return lg;Cq=1;var r=nr(),e=$t(),t=mt(),i=s5(),n=Object;return lg=i?function(s){return typeof s=="symbol"}:function(s){var o=r("Symbol");return e(o)&&t(o.prototype,n(s))},lg}var cg,xq;function Js(){if(xq)return cg;xq=1;var r=String;return cg=function(e){try{return r(e)}catch{return"Object"}},cg}var dg,qq;function bi(){if(qq)return dg;qq=1;var r=$t(),e=Js(),t=TypeError;return dg=function(i){if(r(i))return i;throw new t(e(i)+" is not a function")},dg}var hg,Aq;function _0(){if(Aq)return hg;Aq=1;var r=bi(),e=Gs();return hg=function(t,i){var n=t[i];return e(n)?void 0:r(n)},hg}var fg,Dq;function kY(){if(Dq)return fg;Dq=1;var r=er(),e=$t(),t=Pt(),i=TypeError;return fg=function(n,s){var o,a;if(s==="string"&&e(o=n.toString)&&!t(a=r(o,n))||e(o=n.valueOf)&&!t(a=r(o,n))||s!=="string"&&e(o=n.toString)&&!t(a=r(o,n)))return a;throw new i("Can't convert object to primitive value")},fg}var pg={exports:{}},vg,Mq;function Qs(){return Mq||(Mq=1,vg=!0),vg}var gg,Nq;function BY(){if(Nq)return gg;Nq=1;var r=Ze(),e=Object.defineProperty;return gg=function(t,i){try{e(r,t,{value:i,configurable:!0,writable:!0})}catch{r[t]=i}return i},gg}var Fq;function w0(){if(Fq)return pg.exports;Fq=1;var r=Qs(),e=Ze(),t=BY(),i="__core-js_shared__",n=pg.exports=e[i]||t(i,{});return(n.versions||(n.versions=[])).push({version:"3.44.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),pg.exports}var mg,kq;function Zs(){if(kq)return mg;kq=1;var r=w0();return mg=function(e,t){return r[e]||(r[e]=t||{})},mg}var yg,Bq;function sr(){if(Bq)return yg;Bq=1;var r=yi(),e=Object;return yg=function(t){return e(r(t))},yg}var bg,Lq;function qt(){if(Lq)return bg;Lq=1;var r=xe(),e=sr(),t=r({}.hasOwnProperty);return bg=Object.hasOwn||function(n,s){return t(e(n),s)},bg}var _g,jq;function yl(){if(jq)return _g;jq=1;var r=xe(),e=0,t=Math.random(),i=r(1.1.toString);return _g=function(n){return"Symbol("+(n===void 0?"":n)+")_"+i(++e+t,36)},_g}var wg,zq;function yt(){if(zq)return wg;zq=1;var r=Ze(),e=Zs(),t=qt(),i=yl(),n=Xs(),s=s5(),o=r.Symbol,a=e("wks"),u=s?o.for||o:o&&o.withoutSetter||i;return wg=function(l){return t(a,l)||(a[l]=n&&t(o,l)?o[l]:u("Symbol."+l)),a[l]},wg}var Eg,Hq;function o5(){if(Hq)return Eg;Hq=1;var r=er(),e=Pt(),t=xa(),i=_0(),n=kY(),s=yt(),o=TypeError,a=s("toPrimitive");return Eg=function(u,l){if(!e(u)||t(u))return u;var c=i(u,a),d;if(c){if(l===void 0&&(l="default"),d=r(c,u,l),!e(d)||t(d))return d;throw new o("Can't convert object to primitive value")}return l===void 0&&(l="number"),n(u,l)},Eg}var Sg,Wq;function E0(){if(Wq)return Sg;Wq=1;var r=o5(),e=xa();return Sg=function(t){var i=r(t,"string");return e(i)?i:i+""},Sg}var Og,Uq;function a5(){if(Uq)return Og;Uq=1;var r=Ze(),e=Pt(),t=r.document,i=e(t)&&e(t.createElement);return Og=function(n){return i?t.createElement(n):{}},Og}var Ig,Vq;function u5(){if(Vq)return Ig;Vq=1;var r=lt(),e=Pe(),t=a5();return Ig=!r&&!e(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),Ig}var Kq;function bl(){if(Kq)return Vv;Kq=1;var r=lt(),e=er(),t=gl(),i=Ra(),n=xr(),s=E0(),o=qt(),a=u5(),u=Object.getOwnPropertyDescriptor;return Vv.f=r?u:function(c,d){if(c=n(c),d=s(d),a)try{return u(c,d)}catch{}if(o(c,d))return i(!e(t.f,c,d),c[d])},Vv}var Tg,Gq;function LY(){if(Gq)return Tg;Gq=1;var r=Pe(),e=$t(),t=/#|\.prototype\./,i=function(u,l){var c=s[n(u)];return c===a?!0:c===o?!1:e(l)?r(l):!!l},n=i.normalize=function(u){return String(u).replace(t,".").toLowerCase()},s=i.data={},o=i.NATIVE="N",a=i.POLYFILL="P";return Tg=i,Tg}var $g,Yq;function _l(){if(Yq)return $g;Yq=1;var r=b0(),e=bi(),t=Pa(),i=r(r.bind);return $g=function(n,s){return e(n),s===void 0?n:t?i(n,s):function(){return n.apply(s,arguments)}},$g}var Pg={},Rg,Xq;function l5(){if(Xq)return Rg;Xq=1;var r=lt(),e=Pe();return Rg=r&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Rg}var Cg,Jq;function Vr(){if(Jq)return Cg;Jq=1;var r=Pt(),e=String,t=TypeError;return Cg=function(i){if(r(i))return i;throw new t(e(i)+" is not an object")},Cg}var Qq;function mr(){if(Qq)return Pg;Qq=1;var r=lt(),e=u5(),t=l5(),i=Vr(),n=E0(),s=TypeError,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Pg.f=r?t?function(h,f,p){if(i(h),f=n(f),i(p),typeof h=="function"&&f==="prototype"&&"value"in p&&c in p&&!p[c]){var v=a(h,f);v&&v[c]&&(h[f]=p.value,p={configurable:l in p?p[l]:v[l],enumerable:u in p?p[u]:v[u],writable:!1})}return o(h,f,p)}:o:function(h,f,p){if(i(h),f=n(f),i(p),e)try{return o(h,f,p)}catch{}if("get"in p||"set"in p)throw new s("Accessors not supported");return"value"in p&&(h[f]=p.value),h},Pg}var xg,Zq;function eo(){if(Zq)return xg;Zq=1;var r=lt(),e=mr(),t=Ra();return xg=r?function(i,n,s){return e.f(i,n,t(1,s))}:function(i,n,s){return i[n]=s,i},xg}var qg,eA;function de(){if(eA)return qg;eA=1;var r=Ze(),e=vl(),t=b0(),i=$t(),n=bl().f,s=LY(),o=je(),a=_l(),u=eo(),l=qt(),c=function(d){var h=function(f,p,v){if(this instanceof h){switch(arguments.length){case 0:return new d;case 1:return new d(f);case 2:return new d(f,p)}return new d(f,p,v)}return e(d,this,arguments)};return h.prototype=d.prototype,h};return qg=function(d,h){var f=d.target,p=d.global,v=d.stat,_=d.proto,m=p?r:v?r[f]:r[f]&&r[f].prototype,g=p?o:o[f]||u(o,f,{})[f],E=g.prototype,y,I,O,T,b,w,R,P,S;for(T in h)y=s(p?T:f+(v?".":"#")+T,d.forced),I=!y&&m&&l(m,T),w=g[T],I&&(d.dontCallGetSet?(S=n(m,T),R=S&&S.value):R=m[T]),b=I&&R?R:h[T],!(!y&&!_&&typeof w==typeof b)&&(d.bind&&I?P=a(b,r):d.wrap&&I?P=c(b):_&&i(b)?P=t(b):P=b,(d.sham||b&&b.sham||w&&w.sham)&&u(P,"sham",!0),u(g,T,P),_&&(O=f+"Prototype",l(o,O)||u(o,O,{}),u(o[O],T,b),d.real&&E&&(y||!E[T])&&u(E,T,b)))},qg}var Ag,tA;function jY(){if(tA)return Ag;tA=1;var r=Math.ceil,e=Math.floor;return Ag=Math.trunc||function(i){var n=+i;return(n>0?e:r)(n)},Ag}var Dg,rA;function to(){if(rA)return Dg;rA=1;var r=jY();return Dg=function(e){var t=+e;return t!==t||t===0?0:r(t)},Dg}var Mg,iA;function wl(){if(iA)return Mg;iA=1;var r=to(),e=Math.max,t=Math.min;return Mg=function(i,n){var s=r(i);return s<0?e(s+n,0):t(s,n)},Mg}var Ng,nA;function c5(){if(nA)return Ng;nA=1;var r=to(),e=Math.min;return Ng=function(t){var i=r(t);return i>0?e(i,9007199254740991):0},Ng}var Fg,sA;function _i(){if(sA)return Fg;sA=1;var r=c5();return Fg=function(e){return r(e.length)},Fg}var kg,oA;function S0(){if(oA)return kg;oA=1;var r=xr(),e=wl(),t=_i(),i=function(n){return function(s,o,a){var u=r(s),l=t(u);if(l===0)return!n&&-1;var c=e(a,l),d;if(n&&o!==o){for(;l>c;)if(d=u[c++],d!==d)return!0}else for(;l>c;c++)if((n||c in u)&&u[c]===o)return n||c||0;return!n&&-1}};return kg={includes:i(!0),indexOf:i(!1)},kg}var Bg,aA;function qa(){return aA||(aA=1,Bg={}),Bg}var Lg,uA;function d5(){if(uA)return Lg;uA=1;var r=xe(),e=qt(),t=xr(),i=S0().indexOf,n=qa(),s=r([].push);return Lg=function(o,a){var u=t(o),l=0,c=[],d;for(d in u)!e(n,d)&&e(u,d)&&s(c,d);for(;a.length>l;)e(u,d=a[l++])&&(~i(c,d)||s(c,d));return c},Lg}var jg,lA;function O0(){return lA||(lA=1,jg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),jg}var zg,cA;function Aa(){if(cA)return zg;cA=1;var r=d5(),e=O0();return zg=Object.keys||function(i){return r(i,e)},zg}var Hg={},dA;function El(){return dA||(dA=1,Hg.f=Object.getOwnPropertySymbols),Hg}var Wg,hA;function zY(){if(hA)return Wg;hA=1;var r=lt(),e=xe(),t=er(),i=Pe(),n=Aa(),s=El(),o=gl(),a=sr(),u=ml(),l=Object.assign,c=Object.defineProperty,d=e([].concat);return Wg=!l||i(function(){if(r&&l({b:1},l(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},f={},p=Symbol("assign detection"),v="abcdefghijklmnopqrst";return h[p]=7,v.split("").forEach(function(_){f[_]=_}),l({},h)[p]!==7||n(l({},f)).join("")!==v})?function(f,p){for(var v=a(f),_=arguments.length,m=1,g=s.f,E=o.f;_>m;)for(var y=u(arguments[m++]),I=g?d(n(y),g(y)):n(y),O=I.length,T=0,b;O>T;)b=I[T++],(!r||t(E,y,b))&&(v[b]=y[b]);return v}:l,Wg}var fA;function HY(){if(fA)return sq;fA=1;var r=de(),e=zY();return r({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),sq}var Ug,pA;function WY(){if(pA)return Ug;pA=1,HY();var r=je();return Ug=r.Object.assign,Ug}var Vg,vA;function UY(){if(vA)return Vg;vA=1;var r=WY();return Vg=r,Vg}var Kg,gA;function VY(){return gA||(gA=1,Kg=UY()),Kg}var KY=VY(),ft=ge(KY),mA={},Gg,yA;function ro(){if(yA)return Gg;yA=1;var r=xe();return Gg=r([].slice),Gg}var Yg,bA;function GY(){if(bA)return Yg;bA=1;var r=xe(),e=bi(),t=Pt(),i=qt(),n=ro(),s=Pa(),o=Function,a=r([].concat),u=r([].join),l={},c=function(d,h,f){if(!i(l,h)){for(var p=[],v=0;v=.1;)p=+s[d++%o],p>c&&(p=c),f=Math.sqrt(p*p/(1+l*l)),f=a<0?-f:f,e+=f,t+=l*f,h===!0?r.lineTo(e,t):r.moveTo(e,t),c-=p,h=!h}function oX(r,e,t,i){r.beginPath();const n=6,s=Math.PI*2/n;r.moveTo(e+i,t);for(let o=1;o1?t-1:0),n=1;ne)throw r("Maximum allowed index exceeded");return t},im}var nm,xA;function Sl(){if(xA)return nm;xA=1;var r=lt(),e=mr(),t=Ra();return nm=function(i,n,s){r?e.f(i,n,t(0,s)):i[n]=s},nm}var sm,qA;function T0(){if(qA)return sm;qA=1;var r=yt(),e=r("toStringTag"),t={};return t[e]="z",sm=String(t)==="[object z]",sm}var om,AA;function io(){if(AA)return om;AA=1;var r=T0(),e=$t(),t=Ur(),i=yt(),n=i("toStringTag"),s=Object,o=t(function(){return arguments}())==="Arguments",a=function(u,l){try{return u[l]}catch{}};return om=r?t:function(u){var l,c,d;return u===void 0?"Undefined":u===null?"Null":typeof(c=a(l=s(u),n))=="string"?c:o?t(l):(d=t(l))==="Object"&&e(l.callee)?"Arguments":d},om}var am,DA;function cX(){if(DA)return am;DA=1;var r=xe(),e=$t(),t=w0(),i=r(Function.toString);return e(t.inspectSource)||(t.inspectSource=function(n){return i(n)}),am=t.inspectSource,am}var um,MA;function m5(){if(MA)return um;MA=1;var r=xe(),e=Pe(),t=$t(),i=io(),n=nr(),s=cX(),o=function(){},a=n("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=r(u.exec),c=!u.test(o),d=function(p){if(!t(p))return!1;try{return a(o,[],p),!0}catch{return!1}},h=function(p){if(!t(p))return!1;switch(i(p)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!l(u,s(p))}catch{return!0}};return h.sham=!0,um=!a||e(function(){var f;return d(d.call)||!d(Object)||!d(function(){f=!0})||f})?h:d,um}var lm,NA;function dX(){if(NA)return lm;NA=1;var r=Kn(),e=m5(),t=Pt(),i=yt(),n=i("species"),s=Array;return lm=function(o){var a;return r(o)&&(a=o.constructor,e(a)&&(a===s||r(a.prototype))?a=void 0:t(a)&&(a=a[n],a===null&&(a=void 0))),a===void 0?s:a},lm}var cm,FA;function $0(){if(FA)return cm;FA=1;var r=dX();return cm=function(e,t){return new(r(e))(t===0?0:t)},cm}var dm,kA;function Da(){if(kA)return dm;kA=1;var r=Pe(),e=yt(),t=Ca(),i=e("species");return dm=function(n){return t>=51||!r(function(){var s=[],o=s.constructor={};return o[i]=function(){return{foo:1}},s[n](Boolean).foo!==1})},dm}var BA;function y5(){if(BA)return PA;BA=1;var r=de(),e=Pe(),t=Kn(),i=Pt(),n=sr(),s=_i(),o=g5(),a=Sl(),u=$0(),l=Da(),c=yt(),d=Ca(),h=c("isConcatSpreadable"),f=d>=51||!e(function(){var _=[];return _[h]=!1,_.concat()[0]!==_}),p=function(_){if(!i(_))return!1;var m=_[h];return m!==void 0?!!m:t(_)},v=!f||!l("concat");return r({target:"Array",proto:!0,arity:1,forced:v},{concat:function(m){var g=n(this),E=u(g,0),y=0,I,O,T,b,w;for(I=-1,T=arguments.length;Ih;)t.f(a,f=c[h++],l[f]);return a},fm}var pm,WA;function hX(){if(WA)return pm;WA=1;var r=nr();return pm=r("document","documentElement"),pm}var vm,UA;function Ol(){if(UA)return vm;UA=1;var r=Zs(),e=yl(),t=r("keys");return vm=function(i){return t[i]||(t[i]=e(i))},vm}var gm,VA;function Ma(){if(VA)return gm;VA=1;var r=Vr(),e=P0(),t=O0(),i=qa(),n=hX(),s=a5(),o=Ol(),a=">",u="<",l="prototype",c="script",d=o("IE_PROTO"),h=function(){},f=function(g){return u+c+a+g+u+"/"+c+a},p=function(g){g.write(f("")),g.close();var E=g.parentWindow.Object;return g=null,E},v=function(){var g=s("iframe"),E="java"+c+":",y;return g.style.display="none",n.appendChild(g),g.src=String(E),y=g.contentWindow.document,y.open(),y.write(f("document.F=Object")),y.close(),y.F},_,m=function(){try{_=new ActiveXObject("htmlfile")}catch{}m=typeof document<"u"?document.domain&&_?p(_):v():p(_);for(var g=t.length;g--;)delete m[l][t[g]];return m()};return i[d]=!0,gm=Object.create||function(E,y){var I;return E!==null?(h[l]=r(E),I=new h,h[l]=null,I[d]=E):I=m(),y===void 0?I:e.f(I,y)},gm}var mm={},KA;function Il(){if(KA)return mm;KA=1;var r=d5(),e=O0(),t=e.concat("length","prototype");return mm.f=Object.getOwnPropertyNames||function(n){return r(n,t)},mm}var ym={},GA;function R0(){if(GA)return ym;GA=1;var r=Ur(),e=xr(),t=Il().f,i=ro(),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(o){try{return t(o)}catch{return i(n)}};return ym.f=function(a){return n&&r(a)==="Window"?s(a):t(e(a))},ym}var bm,YA;function Na(){if(YA)return bm;YA=1;var r=eo();return bm=function(e,t,i,n){return n&&n.enumerable?e[t]=i:r(e,t,i),e},bm}var _m,XA;function C0(){if(XA)return _m;XA=1;var r=mr();return _m=function(e,t,i){return r.f(e,t,i)},_m}var wm={},JA;function Tl(){if(JA)return wm;JA=1;var r=yt();return wm.f=r,wm}var Em,QA;function tt(){if(QA)return Em;QA=1;var r=je(),e=qt(),t=Tl(),i=mr().f;return Em=function(n){var s=r.Symbol||(r.Symbol={});e(s,n)||i(s,n,{value:t.f(n)})},Em}var Sm,ZA;function b5(){if(ZA)return Sm;ZA=1;var r=er(),e=nr(),t=yt(),i=Na();return Sm=function(){var n=e("Symbol"),s=n&&n.prototype,o=s&&s.valueOf,a=t("toPrimitive");s&&!s[a]&&i(s,a,function(u){return r(o,this)},{arity:1})},Sm}var Om,eD;function fX(){if(eD)return Om;eD=1;var r=T0(),e=io();return Om=r?{}.toString:function(){return"[object "+e(this)+"]"},Om}var Im,tD;function Gn(){if(tD)return Im;tD=1;var r=T0(),e=mr().f,t=eo(),i=qt(),n=fX(),s=yt(),o=s("toStringTag");return Im=function(a,u,l,c){var d=l?a:a&&a.prototype;d&&(i(d,o)||e(d,o,{configurable:!0,value:u}),c&&!r&&t(d,"toString",n))},Im}var Tm,rD;function _5(){if(rD)return Tm;rD=1;var r=Ze(),e=$t(),t=r.WeakMap;return Tm=e(t)&&/native code/.test(String(t)),Tm}var $m,iD;function Yn(){if(iD)return $m;iD=1;var r=_5(),e=Ze(),t=Pt(),i=eo(),n=qt(),s=w0(),o=Ol(),a=qa(),u="Object already initialized",l=e.TypeError,c=e.WeakMap,d,h,f,p=function(g){return f(g)?h(g):d(g,{})},v=function(g){return function(E){var y;if(!t(E)||(y=h(E)).type!==g)throw new l("Incompatible receiver, "+g+" required");return y}};if(r||s.state){var _=s.state||(s.state=new c);_.get=_.get,_.has=_.has,_.set=_.set,d=function(g,E){if(_.has(g))throw new l(u);return E.facade=g,_.set(g,E),E},h=function(g){return _.get(g)||{}},f=function(g){return _.has(g)}}else{var m=o("state");a[m]=!0,d=function(g,E){if(n(g,m))throw new l(u);return E.facade=g,i(g,m,E),E},h=function(g){return n(g,m)?g[m]:{}},f=function(g){return n(g,m)}}return $m={set:d,get:h,has:f,enforce:p,getterFor:v},$m}var Pm,nD;function en(){if(nD)return Pm;nD=1;var r=_l(),e=xe(),t=ml(),i=sr(),n=_i(),s=$0(),o=e([].push),a=function(u){var l=u===1,c=u===2,d=u===3,h=u===4,f=u===6,p=u===7,v=u===5||f;return function(_,m,g,E){for(var y=i(_),I=t(y),O=n(I),T=r(m,g),b=0,w=E||s,R=l?w(_,O):c||p?w(_,0):void 0,P,S;O>b;b++)if((v||b in I)&&(P=I[b],S=T(P,b,y),u))if(l)R[b]=S;else if(S)switch(u){case 3:return!0;case 5:return P;case 6:return b;case 2:o(R,P)}else switch(u){case 4:return!1;case 7:o(R,P)}return f?-1:d||h?h:R}};return Pm={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)},Pm}var sD;function pX(){if(sD)return jA;sD=1;var r=de(),e=Ze(),t=er(),i=xe(),n=Qs(),s=lt(),o=Xs(),a=Pe(),u=qt(),l=mt(),c=Vr(),d=xr(),h=E0(),f=yr(),p=Ra(),v=Ma(),_=Aa(),m=Il(),g=R0(),E=El(),y=bl(),I=mr(),O=P0(),T=gl(),b=Na(),w=C0(),R=Zs(),P=Ol(),S=qa(),$=yl(),q=yt(),F=Tl(),Z=tt(),z=b5(),te=Gn(),ve=Yn(),we=en().forEach,re=P("hidden"),me="Symbol",qe="prototype",De=ve.set,ct=ve.getterFor(me),_e=Object[qe],D=e.Symbol,U=D&&D[qe],X=e.RangeError,ne=e.TypeError,Re=e.QObject,C=y.f,x=I.f,A=g.f,k=T.f,B=i([].push),N=R("symbols"),G=R("op-symbols"),J=R("wks"),V=!Re||!Re[qe]||!Re[qe].findChild,L=function(ae,K,ee){var ie=C(_e,K);ie&&delete _e[K],x(ae,K,ee),ie&&ae!==_e&&x(_e,K,ie)},ce=s&&a(function(){return v(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a!==7})?L:x,Q=function(ae,K){var ee=N[ae]=v(U);return De(ee,{type:me,tag:ae,description:K}),s||(ee.description=K),ee},oe=function(K,ee,ie){K===_e&&oe(G,ee,ie),c(K);var se=h(ee);return c(ie),u(N,se)?(ie.enumerable?(u(K,re)&&K[re][se]&&(K[re][se]=!1),ie=v(ie,{enumerable:p(0,!1)})):(u(K,re)||x(K,re,p(1,v(null))),K[re][se]=!0),ce(K,se,ie)):x(K,se,ie)},he=function(K,ee){c(K);var ie=d(ee),se=_(ie).concat(dt(ie));return we(se,function(Ee){(!s||t(Ae,ie,Ee))&&oe(K,Ee,ie[Ee])}),K},Ie=function(K,ee){return ee===void 0?v(K):he(v(K),ee)},Ae=function(K){var ee=h(K),ie=t(k,this,ee);return this===_e&&u(N,ee)&&!u(G,ee)?!1:ie||!u(this,ee)||!u(N,ee)||u(this,re)&&this[re][ee]?ie:!0},Ce=function(K,ee){var ie=d(K),se=h(ee);if(!(ie===_e&&u(N,se)&&!u(G,se))){var Ee=C(ie,se);return Ee&&u(N,se)&&!(u(ie,re)&&ie[re][se])&&(Ee.enumerable=!0),Ee}},bt=function(K){var ee=A(d(K)),ie=[];return we(ee,function(se){!u(N,se)&&!u(S,se)&&B(ie,se)}),ie},dt=function(ae){var K=ae===_e,ee=A(K?G:d(ae)),ie=[];return we(ee,function(se){u(N,se)&&(!K||u(_e,se))&&B(ie,N[se])}),ie};return o||(D=function(){if(l(U,this))throw new ne("Symbol is not a constructor");var K=!arguments.length||arguments[0]===void 0?void 0:f(arguments[0]),ee=$(K),ie=function(se){var Ee=this===void 0?e:this;Ee===_e&&t(ie,G,se),u(Ee,re)&&u(Ee[re],ee)&&(Ee[re][ee]=!1);var wi=p(1,se);try{ce(Ee,ee,wi)}catch(co){if(!(co instanceof X))throw co;L(Ee,ee,wi)}};return s&&V&&ce(_e,ee,{configurable:!0,set:ie}),Q(ee,K)},U=D[qe],b(U,"toString",function(){return ct(this).tag}),b(D,"withoutSetter",function(ae){return Q($(ae),ae)}),T.f=Ae,I.f=oe,O.f=he,y.f=Ce,m.f=g.f=bt,E.f=dt,F.f=function(ae){return Q(q(ae),ae)},s&&(w(U,"description",{configurable:!0,get:function(){return ct(this).description}}),n||b(_e,"propertyIsEnumerable",Ae,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:D}),we(_(J),function(ae){Z(ae)}),r({target:me,stat:!0,forced:!o},{useSetter:function(){V=!0},useSimple:function(){V=!1}}),r({target:"Object",stat:!0,forced:!o,sham:!s},{create:Ie,defineProperty:oe,defineProperties:he,getOwnPropertyDescriptor:Ce}),r({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:bt}),z(),te(D,me),S[re]=!0,jA}var oD={},Rm,aD;function w5(){if(aD)return Rm;aD=1;var r=Xs();return Rm=r&&!!Symbol.for&&!!Symbol.keyFor,Rm}var uD;function vX(){if(uD)return oD;uD=1;var r=de(),e=nr(),t=qt(),i=yr(),n=Zs(),s=w5(),o=n("string-to-symbol-registry"),a=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{for:function(u){var l=i(u);if(t(o,l))return o[l];var c=e("Symbol")(l);return o[l]=c,a[c]=l,c}}),oD}var lD={},cD;function gX(){if(cD)return lD;cD=1;var r=de(),e=qt(),t=xa(),i=Js(),n=Zs(),s=w5(),o=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(u){if(!t(u))throw new TypeError(i(u)+" is not a symbol");if(e(o,u))return o[u]}}),lD}var dD={},Cm,hD;function mX(){if(hD)return Cm;hD=1;var r=xe(),e=Kn(),t=$t(),i=Ur(),n=yr(),s=r([].push);return Cm=function(o){if(t(o))return o;if(e(o)){for(var a=o.length,u=[],l=0;l=p.length)return f.target=null,o(void 0,!0);switch(f.kind){case"keys":return o(v,!1);case"values":return o(p[v],!1)}return o([v,p[v]],!1)},"values");var h=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!a&&u&&h.name!=="values")try{n(h,"name",{value:"values"})}catch{}return Um}var Vm,dM;function kX(){return dM||(dM=1,Vm={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Vm}var hM;function oo(){if(hM)return XD;hM=1,so();var r=kX(),e=Ze(),t=Gn(),i=no();for(var n in r)t(e[n],n),i[n]=i.Array;return XD}var Km,fM;function C5(){if(fM)return Km;fM=1;var r=xX();return oo(),Km=r,Km}var Gm,pM;function BX(){return pM||(pM=1,Gm=C5()),Gm}var LX=BX(),jX=ge(LX),vM={},gM;function zX(){if(gM)return vM;gM=1;var r=de(),e=Kn(),t=m5(),i=Pt(),n=wl(),s=_i(),o=xr(),a=Sl(),u=yt(),l=Da(),c=ro(),d=l("slice"),h=u("species"),f=Array,p=Math.max;return r({target:"Array",proto:!0,forced:!d},{slice:function(_,m){var g=o(this),E=s(g),y=n(_,E),I=n(m===void 0?E:m,E),O,T,b;if(e(g)&&(O=g.constructor,t(O)&&(O===f||e(O.prototype))?O=void 0:i(O)&&(O=O[h],O===null&&(O=void 0)),O===f||O===void 0))return c(g,y,I);for(T=new(O===void 0?f:O)(p(I-y,0)),b=0;y1?arguments[1]:void 0)}}),$M}var iy,RM;function tJ(){if(RM)return iy;RM=1,eJ();var r=At();return iy=r("Array","map"),iy}var ny,CM;function rJ(){if(CM)return ny;CM=1;var r=mt(),e=tJ(),t=Array.prototype;return ny=function(i){var n=i.map;return i===t||r(t,i)&&n===t.map?e:n},ny}var sy,xM;function iJ(){if(xM)return sy;xM=1;var r=rJ();return sy=r,sy}var oy,qM;function nJ(){return qM||(qM=1,oy=iJ()),oy}var sJ=nJ(),qs=ge(sJ),AM={},DM;function oJ(){if(DM)return AM;DM=1;var r=de(),e=sr(),t=Aa(),i=Pe(),n=i(function(){t(1)});return r({target:"Object",stat:!0,forced:n},{keys:function(o){return t(e(o))}}),AM}var ay,MM;function aJ(){if(MM)return ay;MM=1,oJ();var r=je();return ay=r.Object.keys,ay}var uy,NM;function uJ(){if(NM)return uy;NM=1;var r=aJ();return uy=r,uy}var ly,FM;function lJ(){return FM||(FM=1,ly=uJ()),ly}var cJ=lJ(),nt=ge(cJ),kM={},BM;function dJ(){if(BM)return kM;BM=1;var r=de(),e=xe(),t=Date,i=e(t.prototype.getTime);return r({target:"Date",stat:!0},{now:function(){return i(new t)}}),kM}var cy,LM;function hJ(){if(LM)return cy;LM=1,dJ();var r=je();return cy=r.Date.now,cy}var dy,jM;function fJ(){if(jM)return dy;jM=1;var r=hJ();return dy=r,dy}var hy,zM;function pJ(){return zM||(zM=1,hy=fJ()),hy}var vJ=pJ(),xu=ge(vJ),HM={},fy,WM;function ao(){if(WM)return fy;WM=1;var r=Pe();return fy=function(e,t){var i=[][e];return!!i&&r(function(){i.call(null,t||function(){return 1},1)})},fy}var py,UM;function gJ(){if(UM)return py;UM=1;var r=en().forEach,e=ao(),t=e("forEach");return py=t?[].forEach:function(n){return r(this,n,arguments.length>1?arguments[1]:void 0)},py}var VM;function mJ(){if(VM)return HM;VM=1;var r=de(),e=gJ();return r({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e}),HM}var vy,KM;function yJ(){if(KM)return vy;KM=1,mJ();var r=At();return vy=r("Array","forEach"),vy}var gy,GM;function bJ(){if(GM)return gy;GM=1;var r=yJ();return gy=r,gy}var my,YM;function _J(){if(YM)return my;YM=1;var r=io(),e=qt(),t=mt(),i=bJ(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return my=function(o){var a=o.forEach;return o===n||t(n,o)&&a===n.forEach||e(s,r(o))?i:a},my}var yy,XM;function wJ(){return XM||(XM=1,yy=_J()),yy}var EJ=wJ(),He=ge(EJ),JM={},QM;function SJ(){if(QM)return JM;QM=1;var r=de(),e=xe(),t=Kn(),i=e([].reverse),n=[1,2];return r({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return t(this)&&(this.length=this.length),i(this)}}),JM}var by,ZM;function OJ(){if(ZM)return by;ZM=1,SJ();var r=At();return by=r("Array","reverse"),by}var _y,eN;function IJ(){if(eN)return _y;eN=1;var r=mt(),e=OJ(),t=Array.prototype;return _y=function(i){var n=i.reverse;return i===t||r(t,i)&&n===t.reverse?e:n},_y}var wy,tN;function TJ(){if(tN)return wy;tN=1;var r=IJ();return wy=r,wy}var Ey,rN;function $J(){return rN||(rN=1,Ey=TJ()),Ey}var PJ=$J(),En=ge(PJ),iN={},Sy,nN;function RJ(){if(nN)return Sy;nN=1;var r=lt(),e=Kn(),t=TypeError,i=Object.getOwnPropertyDescriptor,n=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}();return Sy=n?function(s,o){if(e(s)&&!i(s,"length").writable)throw new t("Cannot set read only .length");return s.length=o}:function(s,o){return s.length=o},Sy}var Oy,sN;function x5(){if(sN)return Oy;sN=1;var r=Js(),e=TypeError;return Oy=function(t,i){if(!delete t[i])throw new e("Cannot delete property "+r(i)+" of "+r(t))},Oy}var oN;function CJ(){if(oN)return iN;oN=1;var r=de(),e=sr(),t=wl(),i=to(),n=_i(),s=RJ(),o=g5(),a=$0(),u=Sl(),l=x5(),c=Da(),d=c("splice"),h=Math.max,f=Math.min;return r({target:"Array",proto:!0,forced:!d},{splice:function(v,_){var m=e(this),g=n(m),E=t(v,g),y=arguments.length,I,O,T,b,w,R;for(y===0?I=O=0:y===1?(I=0,O=g-E):(I=y-2,O=f(h(i(_),0),g-E)),o(g+I-O),T=a(m,O),b=0;bg-O+I;b--)l(m,b-1)}else if(I>O)for(b=g-O;b>E;b--)w=b+O-1,R=b+I-1,w in m?m[R]=m[w]:l(m,R);for(b=0;b1?arguments[1]:void 0)}}),i("includes"),dN}var Ry,fN;function FJ(){if(fN)return Ry;fN=1,NJ();var r=At();return Ry=r("Array","includes"),Ry}var pN={},Cy,vN;function kJ(){if(vN)return Cy;vN=1;var r=Pt(),e=Ur(),t=yt(),i=t("match");return Cy=function(n){var s;return r(n)&&((s=n[i])!==void 0?!!s:e(n)==="RegExp")},Cy}var xy,gN;function BJ(){if(gN)return xy;gN=1;var r=kJ(),e=TypeError;return xy=function(t){if(r(t))throw new e("The method doesn't accept regular expressions");return t},xy}var qy,mN;function LJ(){if(mN)return qy;mN=1;var r=yt(),e=r("match");return qy=function(t){var i=/./;try{"/./"[t](i)}catch{try{return i[e]=!1,"/./"[t](i)}catch{}}return!1},qy}var yN;function jJ(){if(yN)return pN;yN=1;var r=de(),e=xe(),t=BJ(),i=yi(),n=yr(),s=LJ(),o=e("".indexOf);return r({target:"String",proto:!0,forced:!s("includes")},{includes:function(u){return!!~o(n(i(this)),n(t(u)),arguments.length>1?arguments[1]:void 0)}}),pN}var Ay,bN;function zJ(){if(bN)return Ay;bN=1,jJ();var r=At();return Ay=r("String","includes"),Ay}var Dy,_N;function HJ(){if(_N)return Dy;_N=1;var r=mt(),e=FJ(),t=zJ(),i=Array.prototype,n=String.prototype;return Dy=function(s){var o=s.includes;return s===i||r(i,s)&&o===i.includes?e:typeof s=="string"||s===n||r(n,s)&&o===n.includes?t:o},Dy}var My,wN;function WJ(){if(wN)return My;wN=1;var r=HJ();return My=r,My}var Ny,EN;function UJ(){return EN||(EN=1,Ny=WJ()),Ny}var VJ=UJ(),ki=ge(VJ),SN={},ON;function KJ(){if(ON)return SN;ON=1;var r=de(),e=Pe(),t=sr(),i=$l(),n=P5(),s=e(function(){i(1)});return r({target:"Object",stat:!0,forced:s,sham:!n},{getPrototypeOf:function(a){return i(t(a))}}),SN}var Fy,IN;function GJ(){if(IN)return Fy;IN=1,KJ();var r=je();return Fy=r.Object.getPrototypeOf,Fy}var ky,TN;function YJ(){if(TN)return ky;TN=1;var r=GJ();return ky=r,ky}var By,$N;function XJ(){return $N||($N=1,By=YJ()),By}var JJ=XJ(),PN=ge(JJ),Ly,RN;function QJ(){if(RN)return Ly;RN=1,y5();var r=At();return Ly=r("Array","concat"),Ly}var jy,CN;function ZJ(){if(CN)return jy;CN=1;var r=mt(),e=QJ(),t=Array.prototype;return jy=function(i){var n=i.concat;return i===t||r(t,i)&&n===t.concat?e:n},jy}var zy,xN;function eQ(){if(xN)return zy;xN=1;var r=ZJ();return zy=r,zy}var Hy,qN;function tQ(){return qN||(qN=1,Hy=eQ()),Hy}var rQ=tQ(),iQ=ge(rQ),AN={},DN;function nQ(){if(DN)return AN;DN=1;var r=de(),e=en().filter,t=Da(),i=t("filter");return r({target:"Array",proto:!0,forced:!i},{filter:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),AN}var Wy,MN;function sQ(){if(MN)return Wy;MN=1,nQ();var r=At();return Wy=r("Array","filter"),Wy}var Uy,NN;function oQ(){if(NN)return Uy;NN=1;var r=mt(),e=sQ(),t=Array.prototype;return Uy=function(i){var n=i.filter;return i===t||r(t,i)&&n===t.filter?e:n},Uy}var Vy,FN;function aQ(){if(FN)return Vy;FN=1;var r=oQ();return Vy=r,Vy}var Ky,kN;function uQ(){return kN||(kN=1,Ky=aQ()),Ky}var lQ=uQ(),Yt=ge(lQ),BN={},Gy,LN;function cQ(){if(LN)return Gy;LN=1;var r=lt(),e=Pe(),t=xe(),i=$l(),n=Aa(),s=xr(),o=gl().f,a=t(o),u=t([].push),l=r&&e(function(){var d=Object.create(null);return d[2]=2,!a(d,2)}),c=function(d){return function(h){for(var f=s(h),p=n(f),v=l&&i(f)===null,_=p.length,m=0,g=[],E;_>m;)E=p[m++],(!r||(v?E in f:a(f,E)))&&u(g,d?[E,f[E]]:f[E]);return g}};return Gy={entries:c(!0),values:c(!1)},Gy}var jN;function dQ(){if(jN)return BN;jN=1;var r=de(),e=cQ().values;return r({target:"Object",stat:!0},{values:function(i){return e(i)}}),BN}var Yy,zN;function hQ(){if(zN)return Yy;zN=1,dQ();var r=je();return Yy=r.Object.values,Yy}var Xy,HN;function fQ(){if(HN)return Xy;HN=1;var r=hQ();return Xy=r,Xy}var Jy,WN;function pQ(){return WN||(WN=1,Jy=fQ()),Jy}var vQ=pQ(),gQ=ge(vQ),UN={},Qy,VN;function D0(){return VN||(VN=1,Qy=` +\v\f\r                 \u2028\u2029\uFEFF`),Qy}var Zy,KN;function q5(){if(KN)return Zy;KN=1;var r=xe(),e=yi(),t=yr(),i=D0(),n=r("".replace),s=RegExp("^["+i+"]+"),o=RegExp("(^|[^"+i+"])["+i+"]+$"),a=function(u){return function(l){var c=t(e(l));return u&1&&(c=n(c,s,"")),u&2&&(c=n(c,o,"$1")),c}};return Zy={start:a(1),end:a(2),trim:a(3)},Zy}var eb,GN;function mQ(){if(GN)return eb;GN=1;var r=Ze(),e=Pe(),t=xe(),i=yr(),n=q5().trim,s=D0(),o=r.parseInt,a=r.Symbol,u=a&&a.iterator,l=/^[+-]?0x/i,c=t(l.exec),d=o(s+"08")!==8||o(s+"0x16")!==22||u&&!e(function(){o(Object(u))});return eb=d?function(f,p){var v=n(i(f));return o(v,p>>>0||(c(l,v)?16:10))}:o,eb}var YN;function yQ(){if(YN)return UN;YN=1;var r=de(),e=mQ();return r({global:!0,forced:parseInt!==e},{parseInt:e}),UN}var tb,XN;function bQ(){if(XN)return tb;XN=1,yQ();var r=je();return tb=r.parseInt,tb}var rb,JN;function _Q(){if(JN)return rb;JN=1;var r=bQ();return rb=r,rb}var ib,QN;function wQ(){return QN||(QN=1,ib=_Q()),ib}var EQ=wQ(),Er=ge(EQ),ZN={},eF;function SQ(){if(eF)return ZN;eF=1;var r=de(),e=b0(),t=S0().indexOf,i=ao(),n=e([].indexOf),s=!!n&&1/n([1],1,-0)<0,o=s||!i("indexOf");return r({target:"Array",proto:!0,forced:o},{indexOf:function(u){var l=arguments.length>1?arguments[1]:void 0;return s?n(this,u,l)||0:t(this,u,l)}}),ZN}var nb,tF;function OQ(){if(tF)return nb;tF=1,SQ();var r=At();return nb=r("Array","indexOf"),nb}var sb,rF;function IQ(){if(rF)return sb;rF=1;var r=mt(),e=OQ(),t=Array.prototype;return sb=function(i){var n=i.indexOf;return i===t||r(t,i)&&n===t.indexOf?e:n},sb}var ob,iF;function TQ(){if(iF)return ob;iF=1;var r=IQ();return ob=r,ob}var ab,nF;function $Q(){return nF||(nF=1,ab=TQ()),ab}var PQ=$Q(),Be=ge(PQ),sF={},oF;function RQ(){if(oF)return sF;oF=1;var r=de(),e=lt(),t=Ma();return r({target:"Object",stat:!0,sham:!e},{create:t}),sF}var ub,aF;function CQ(){if(aF)return ub;aF=1,RQ();var r=je(),e=r.Object;return ub=function(i,n){return e.create(i,n)},ub}var lb,uF;function xQ(){if(uF)return lb;uF=1;var r=CQ();return lb=r,lb}var cb,lF;function qQ(){return lF||(lF=1,cb=xQ()),cb}var AQ=qQ(),Sn=ge(AQ),cF={},db,dF;function DQ(){if(dF)return db;dF=1;var r=to(),e=yr(),t=yi(),i=RangeError;return db=function(s){var o=e(t(this)),a="",u=r(s);if(u<0||u===1/0)throw new i("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(o+=o))u&1&&(a+=o);return a},db}var hb,hF;function MQ(){if(hF)return hb;hF=1;var r=xe(),e=c5(),t=yr(),i=DQ(),n=yi(),s=r(i),o=r("".slice),a=Math.ceil,u=function(l){return function(c,d,h){var f=t(n(c)),p=e(d),v=f.length,_=h===void 0?" ":t(h),m,g;return p<=v||_===""?f:(m=p-v,g=s(_,a(m/_.length)),g.length>m&&(g=o(g,0,m)),l?f+g:g+f)}};return hb={start:u(!1),end:u(!0)},hb}var fb,fF;function NQ(){if(fF)return fb;fF=1;var r=xe(),e=Pe(),t=MQ().start,i=RangeError,n=isFinite,s=Math.abs,o=Date.prototype,a=o.toISOString,u=r(o.getTime),l=r(o.getUTCDate),c=r(o.getUTCFullYear),d=r(o.getUTCHours),h=r(o.getUTCMilliseconds),f=r(o.getUTCMinutes),p=r(o.getUTCMonth),v=r(o.getUTCSeconds);return fb=e(function(){return a.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!e(function(){a.call(new Date(NaN))})?function(){if(!n(u(this)))throw new i("Invalid time value");var m=this,g=c(m),E=h(m),y=g<0?"-":g>9999?"+":"";return y+t(s(g),y?6:4,0)+"-"+t(p(m)+1,2,0)+"-"+t(l(m),2,0)+"T"+t(d(m),2,0)+":"+t(f(m),2,0)+":"+t(v(m),2,0)+"."+t(E,3,0)+"Z"}:a,fb}var pF;function FQ(){if(pF)return cF;pF=1;var r=de(),e=er(),t=sr(),i=o5(),n=NQ(),s=Ur(),o=Pe(),a=o(function(){return new Date(NaN).toJSON()!==null||e(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});return r({target:"Date",proto:!0,forced:a},{toJSON:function(l){var c=t(this),d=i(c,"number");return typeof d=="number"&&!isFinite(d)?null:!("toISOString"in c)&&s(c)==="Date"?e(n,c):c.toISOString()}}),cF}var pb,vF;function kQ(){if(vF)return pb;vF=1,FQ(),E5();var r=je(),e=vl();return r.JSON||(r.JSON={stringify:JSON.stringify}),pb=function(i,n,s){return e(r.JSON.stringify,null,arguments)},pb}var vb,gF;function BQ(){if(gF)return vb;gF=1;var r=kQ();return vb=r,vb}var gb,mF;function LQ(){return mF||(mF=1,gb=BQ()),gb}var jQ=LQ(),Fa=ge(jQ),yF={},bF={},mb,_F;function A5(){if(_F)return mb;_F=1;var r=Ze(),e=Ys(),t=Ur(),i=function(n){return e.slice(0,n.length)===n};return mb=function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":t(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"}(),mb}var yb,wF;function zQ(){if(wF)return yb;wF=1;var r=TypeError;return yb=function(e,t){if(ed,v=t(h)?h:a(h),_=p?s(arguments,d):[],m=p?function(){e(v,this,_)}:v;return c?l(m,f):l(m)}:l},bb}var SF;function HQ(){if(SF)return bF;SF=1;var r=de(),e=Ze(),t=D5(),i=t(e.setInterval,!0);return r({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i}),bF}var OF={},IF;function WQ(){if(IF)return OF;IF=1;var r=de(),e=Ze(),t=D5(),i=t(e.setTimeout,!0);return r({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i}),OF}var TF;function M5(){return TF||(TF=1,HQ(),WQ()),yF}var _b,$F;function UQ(){if($F)return _b;$F=1,M5();var r=je();return _b=r.setTimeout,_b}var wb,PF;function VQ(){return PF||(PF=1,wb=UQ()),wb}var KQ=VQ(),ui=ge(KQ),RF={},Eb,CF;function GQ(){if(CF)return Eb;CF=1;var r=sr(),e=wl(),t=_i();return Eb=function(n){for(var s=r(this),o=t(s),a=arguments.length,u=e(a>1?arguments[1]:void 0,o),l=a>2?arguments[2]:void 0,c=l===void 0?o:e(l,o);c>u;)s[u++]=n;return s},Eb}var xF;function YQ(){if(xF)return RF;xF=1;var r=de(),e=GQ(),t=x0();return r({target:"Array",proto:!0},{fill:e}),t("fill"),RF}var Sb,qF;function XQ(){if(qF)return Sb;qF=1,YQ();var r=At();return Sb=r("Array","fill"),Sb}var Ob,AF;function JQ(){if(AF)return Ob;AF=1;var r=mt(),e=XQ(),t=Array.prototype;return Ob=function(i){var n=i.fill;return i===t||r(t,i)&&n===t.fill?e:n},Ob}var Ib,DF;function QQ(){if(DF)return Ib;DF=1;var r=JQ();return Ib=r,Ib}var Tb,MF;function ZQ(){return MF||(MF=1,Tb=QQ()),Tb}var eZ=ZQ(),ka=ge(eZ);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 + * http://naver.github.io/egjs + * + * Forked By Naver egjs + * Copyright (c) hammerjs + * Licensed under the MIT license */function Rr(){return Rr=Object.assign||function(r){for(var e=1;e"u"?{style:{}}:document.createElement("div"),rZ="function",ps=Math.round,qn=Math.abs,M0=Date.now;function Pl(r,e){for(var t,i,n=e[0].toUpperCase()+e.slice(1),s=0;s"u"?li={}:li=window;var N5=Pl(tZ.style,"touchAction"),F5=N5!==void 0;function iZ(){if(!F5)return!1;var r={},e=li.CSS&&li.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return r[t]=e?li.CSS.supports("touch-action",t):!0}),r}var k5="compute",B5="auto",mw="manipulation",On="none",ea="pan-x",ta="pan-y",nu=iZ(),nZ=/mobile|tablet|ip(ad|hone|od)|android/i,L5="ontouchstart"in li,sZ=Pl(li,"PointerEvent")!==void 0,oZ=L5&&nZ.test(navigator.userAgent),Ba="touch",aZ="pen",N0="mouse",uZ="kinect",lZ=25,Vt=1,Xn=2,pt=4,Jt=8,qu=1,La=2,ja=4,za=8,As=16,Hr=La|ja,In=za|As,j5=Hr|In,z5=["x","y"],Au=["clientX","clientY"];function ci(r,e,t){var i;if(r)if(r.forEach)r.forEach(e,t);else if(r.length!==void 0)for(i=0;i-1}function cZ(r){if(gn(r,On))return On;var e=gn(r,ea),t=gn(r,ta);return e&&t?On:e||t?e?ea:ta:gn(r,mw)?mw:B5}var H5=function(){function r(t,i){this.manager=t,this.set(i)}var e=r.prototype;return e.set=function(i){i===k5&&(i=this.compute()),F5&&this.manager.element.style&&nu[i]&&(this.manager.element.style[N5]=i),this.actions=i.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var i=[];return ci(this.manager.recognizers,function(n){Rl(n.options.enable,[n])&&(i=i.concat(n.getTouchAction()))}),cZ(i.join(" "))},e.preventDefaults=function(i){var n=i.srcEvent,s=i.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,a=gn(o,On)&&!nu[On],u=gn(o,ta)&&!nu[ta],l=gn(o,ea)&&!nu[ea];if(a){var c=i.pointers.length===1,d=i.distance<2,h=i.deltaTime<250;if(c&&d&&h)return}if(!(l&&u)&&(a||u&&s&Hr||l&&s&In))return this.preventSrc(n)},e.preventSrc=function(i){this.manager.session.prevented=!0,i.preventDefault()},r}();function F0(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}function W5(r){var e=r.length;if(e===1)return{x:ps(r[0].clientX),y:ps(r[0].clientY)};for(var t=0,i=0,n=0;n=qn(e)?r<0?La:ja:e<0?za:As}function dZ(r,e){var t=e.center,i=r.offsetDelta||{},n=r.prevDelta||{},s=r.prevInput||{};(e.eventType===Vt||s.eventType===pt)&&(n=r.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=r.offsetDelta={x:t.x,y:t.y}),e.deltaX=n.x+(t.x-i.x),e.deltaY=n.y+(t.y-i.y)}function V5(r,e,t){return{x:e/r||0,y:t/r||0}}function hZ(r,e){return Du(e[0],e[1],Au)/Du(r[0],r[1],Au)}function fZ(r,e){return yw(e[1],e[0],Au)+yw(r[1],r[0],Au)}function pZ(r,e){var t=r.lastInterval||e,i=e.timeStamp-t.timeStamp,n,s,o,a;if(e.eventType!==Jt&&(i>lZ||t.velocity===void 0)){var u=e.deltaX-t.deltaX,l=e.deltaY-t.deltaY,c=V5(i,u,l);s=c.x,o=c.y,n=qn(c.x)>qn(c.y)?c.x:c.y,a=U5(u,l),r.lastInterval=e}else n=t.velocity,s=t.velocityX,o=t.velocityY,a=t.direction;e.velocity=n,e.velocityX=s,e.velocityY=o,e.direction=a}function vZ(r,e){var t=r.session,i=e.pointers,n=i.length;t.firstInput||(t.firstInput=FF(e)),n>1&&!t.firstMultiple?t.firstMultiple=FF(e):n===1&&(t.firstMultiple=!1);var s=t.firstInput,o=t.firstMultiple,a=o?o.center:s.center,u=e.center=W5(i);e.timeStamp=M0(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=yw(a,u),e.distance=Du(a,u),dZ(t,e),e.offsetDirection=U5(e.deltaX,e.deltaY);var l=V5(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=qn(l.x)>qn(l.y)?l.x:l.y,e.scale=o?hZ(o.pointers,i):1,e.rotation=o?fZ(o.pointers,i):0,e.maxPointers=t.prevInput?e.pointers.length>t.prevInput.maxPointers?e.pointers.length:t.prevInput.maxPointers:e.pointers.length,pZ(t,e);var c=r.element,d=e.srcEvent,h;d.composedPath?h=d.composedPath()[0]:d.path?h=d.path[0]:h=d.target,F0(h,c)&&(c=h),e.target=c}function gZ(r,e,t){var i=t.pointers.length,n=t.changedPointers.length,s=e&Vt&&i-n===0,o=e&(pt|Jt)&&i-n===0;t.isFirst=!!s,t.isFinal=!!o,s&&(r.session={}),t.eventType=e,vZ(r,t),r.emit("hammer.input",t),r.recognize(t),r.session.prevInput=t}function ra(r){return r.trim().split(/\s+/g)}function Ao(r,e,t){ci(ra(e),function(i){r.addEventListener(i,t,!1)})}function Do(r,e,t){ci(ra(e),function(i){r.removeEventListener(i,t,!1)})}function kF(r){var e=r.ownerDocument||r;return e.defaultView||e.parentWindow||window}var uo=function(){function r(t,i){var n=this;this.manager=t,this.callback=i,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(s){Rl(t.options.enable,[t])&&n.handler(s)},this.init()}var e=r.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Ao(this.element,this.evEl,this.domHandler),this.evTarget&&Ao(this.target,this.evTarget,this.domHandler),this.evWin&&Ao(kF(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Do(this.element,this.evEl,this.domHandler),this.evTarget&&Do(this.target,this.evTarget,this.domHandler),this.evWin&&Do(kF(this.element),this.evWin,this.domHandler)},r}();function An(r,e,t){if(r.indexOf&&!t)return r.indexOf(e);for(var i=0;iu[e]}):i=i.sort()),i}var bZ={touchstart:Vt,touchmove:Xn,touchend:pt,touchcancel:Jt},_Z="touchstart touchmove touchend touchcancel",B0=function(r){br(e,r);function e(){var i;return e.prototype.evTarget=_Z,i=r.apply(this,arguments)||this,i.targetIds={},i}var t=e.prototype;return t.handler=function(n){var s=bZ[n.type],o=wZ.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:Ba,srcEvent:n})},e}(uo);function wZ(r,e){var t=ia(r.touches),i=this.targetIds;if(e&(Vt|Xn)&&t.length===1)return i[t[0].identifier]=!0,[t,t];var n,s,o=ia(r.changedTouches),a=[],u=this.target;if(s=t.filter(function(l){return F0(l.target,u)}),e===Vt)for(n=0;n-1&&n.splice(a,1)};setTimeout(s,IZ)}}function TZ(r,e){r&Vt?(this.primaryTouch=e.changedPointers[0].identifier,LF.call(this,e)):r&(pt|Jt)&&LF.call(this,e)}function $Z(r){for(var e=r.srcEvent.clientX,t=r.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(n,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(i){return!!this.simultaneous[i.id]},e.emit=function(i){var n=this,s=this.state;function o(a){n.manager.emit(a,i)}s=Bi&&o(n.options.event+jF(s))},e.tryEmit=function(i){if(this.canEmit())return this.emit(i);this.state=Br},e.canEmit=function(){for(var i=0;is.threshold&&u&s.direction},t.attrTest=function(n){return Ms.prototype.attrTest.call(this,n)&&(this.state&fr||!(this.state&fr)&&this.directionTest(n))},t.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=J5(n.direction);s&&(n.additionalEvent=this.options.event+s),r.prototype.emit.call(this,n)},e}(Ms),Q5=function(r){br(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Rr({event:"swipe",threshold:10,velocity:.3,direction:Hr|In,pointers:1},i))||this}var t=e.prototype;return t.getTouchAction=function(){return j0.prototype.getTouchAction.call(this)},t.attrTest=function(n){var s=this.options.direction,o;return s&(Hr|In)?o=n.overallVelocity:s&Hr?o=n.overallVelocityX:s&In&&(o=n.overallVelocityY),r.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&qn(o)>this.options.velocity&&n.eventType&pt},t.emit=function(n){var s=J5(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},e}(Ms),Z5=function(r){br(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Rr({event:"pinch",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[On]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&fr)},t.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}r.prototype.emit.call(this,n)},e}(Ms),eH=function(r){br(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Rr({event:"rotate",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[On]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&fr)},e}(Ms),tH=function(r){br(e,r);function e(i){var n;return i===void 0&&(i={}),n=r.call(this,Rr({event:"press",pointers:1,time:251,threshold:9},i))||this,n._timer=null,n._input=null,n}var t=e.prototype;return t.getTouchAction=function(){return[B5]},t.process=function(n){var s=this,o=this.options,a=n.pointers.length===o.pointers,u=n.distanceo.time;if(this._input=n,!u||!a||n.eventType&(pt|Jt)&&!l)this.reset();else if(n.eventType&Vt)this.reset(),this._timer=setTimeout(function(){s.state=di,s.tryEmit()},o.time);else if(n.eventType&pt)return di;return Br},t.reset=function(){clearTimeout(this._timer)},t.emit=function(n){this.state===di&&(n&&n.eventType&pt?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=M0(),this.manager.emit(this.options.event,this._input)))},e}(Ha),rH={domEvents:!1,touchAction:k5,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},zF=[[eH,{enable:!1}],[Z5,{enable:!1},["rotate"]],[Q5,{direction:Hr}],[j0,{direction:Hr},["swipe"]],[bw],[bw,{event:"doubletap",taps:2},["tap"]],[tH]],xZ=1,HF=2;function WF(r,e){var t=r.element;if(t.style){var i;ci(r.options.cssProps,function(n,s){i=Pl(t.style,s),e?(r.oldCssProps[i]=t.style[i],t.style[i]=n):t.style[i]=r.oldCssProps[i]||""}),e||(r.oldCssProps={})}}function qZ(r,e){var t=document.createEvent("Event");t.initEvent(r,!0,!0),t.gesture=e,e.target.dispatchEvent(t)}var UF=function(){function r(t,i){var n=this;this.options=xn({},rH,i||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=PZ(this),this.touchAction=new H5(this,this.options.touchAction),WF(this,!0),ci(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var e=r.prototype;return e.set=function(i){return xn(this.options,i),i.touchAction&&this.touchAction.update(),i.inputTarget&&(this.input.destroy(),this.input.target=i.inputTarget,this.input.init()),this},e.stop=function(i){this.session.stopped=i?HF:xZ},e.recognize=function(i){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(i);var s,o=this.recognizers,a=n.curRecognizer;(!a||a&&a.state&di)&&(n.curRecognizer=null,a=null);for(var u=0;u\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,s),r.apply(this,arguments)}}var nH=iH(function(r,e,t){for(var i=Object.keys(e),n=0;n{const o=2091639*e+n*23283064365386963e-26;return e=t,t=i,i=o-(n=o|0)};return s.uint32=()=>s()*4294967296,s.fract53=()=>s()+(s()*2097152|0)*11102230246251565e-32,s.algorithm="Alea",s.seed=r,s.version="0.9",s}function jZ(){const r=zZ();let e=r(" "),t=r(" "),i=r(" ");for(let n=0;n>>0,n-=r,n*=r,r=n>>>0,n-=r,r+=n*4294967296}return(r>>>0)*23283064365386963e-26}}function HZ(){const r=()=>{};return{on:r,off:r,destroy:r,emit:r,get(){return{set:r}}}}const z0=typeof window<"u"?window.Hammer||sH:function(){return HZ()};function Lr(r){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:r,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const t=z0(this._dom.overlay);t.on("tap",H(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{t.destroy()});const i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];He(i).call(i,n=>{t.on(n,s=>{s.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=n=>{WZ(n.target,r)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=n=>{("key"in n?n.key==="Escape":n.keyCode===27)&&this.deactivate()}}v5(Lr.prototype);Lr.current=null;Lr.prototype.destroy=function(){this.deactivate();for(const t of En(r=ai(e=this._cleanupQueue).call(e,0)).call(r)){var r,e;t()}};Lr.prototype.activate=function(){Lr.current&&Lr.current.deactivate(),Lr.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};Lr.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};Lr.prototype._onTapOverlay=function(r){this.activate(),r.srcEvent.stopPropagation()};function WZ(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}const UZ=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,VZ=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,KZ=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,GZ=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Ci(r){if(r)for(;r.hasChildNodes()===!0;){const e=r.firstChild;e&&(Ci(e),r.removeChild(e))}}function Ss(r){return r instanceof String||typeof r=="string"}function KF(r){return typeof r=="object"&&r!==null}function Dn(r,e,t,i){let n=!1;i===!0&&(n=e[t]===null&&r[t]!==void 0),n?delete r[t]:r[t]=e[t]}function oH(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(const i in r)if(e[i]!==void 0)if(e[i]===null||typeof e[i]!="object")Dn(r,e,i,t);else{const n=r[i],s=e[i];KF(n)&&KF(s)&&oH(n,s,t)}}function lo(r,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(st(t))throw new TypeError("Arrays are not supported by deepExtend");for(let n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;if(st(t))throw new TypeError("Arrays are not supported by deepExtend");for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&!ki(r).call(r,n))if(t[n]&&t[n].constructor===Object)e[n]===void 0&&(e[n]={}),e[n].constructor===Object?Ge(e[n],t[n]):Dn(e,t,n,i);else if(st(t[n])){e[n]=[];for(let s=0;s2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)||t===!0)if(typeof e[s]=="object"&&e[s]!==null&&PN(e[s])===Object.prototype)r[s]===void 0?r[s]=Ge({},e[s],t):typeof r[s]=="object"&&r[s]!==null&&PN(r[s])===Object.prototype?Ge(r[s],e[s],t):Dn(r,e,s,i);else if(st(e[s])){var n;r[s]=Fr(n=e[s]).call(n)}else Dn(r,e,s,i);return r}function Nu(r,e){return[...r,e]}function YZ(r){return Fr(r).call(r)}function XZ(r){return r.getBoundingClientRect().left}function JZ(r){return r.getBoundingClientRect().top}function Te(r,e){if(st(r)){const t=r.length;for(let i=0;i3&&arguments[3]!==void 0?arguments[3]:{};const n=function(f){return f!=null},s=function(f){return f!==null&&typeof f=="object"},o=function(f){for(const p in f)if(Object.prototype.hasOwnProperty.call(f,p))return!1;return!0};if(!s(r))throw new Error("Parameter mergeTarget must be an object");if(!s(e))throw new Error("Parameter options must be an object");if(!n(t))throw new Error("Parameter option must have a value");if(!s(i))throw new Error("Parameter globalOptions must be an object");const a=function(f,p,v){s(f[v])||(f[v]={});const _=p[v],m=f[v];for(const g in _)Object.prototype.hasOwnProperty.call(_,g)&&(m[g]=_[g])},u=e[t],c=s(i)&&!o(i)?i[t]:void 0,d=c?c.enabled:void 0;if(u===void 0)return;if(typeof u=="boolean"){s(r[t])||(r[t]={}),r[t].enabled=u;return}if(u===null&&!s(r[t]))if(n(c))r[t]=Sn(c);else return;if(!s(u))return;let h=!0;u.enabled!==void 0?h=u.enabled:d!==void 0&&(h=c.enabled),a(r,e,t),r[t].enabled=h}const eee={linear(r){return r},easeInQuad(r){return r*r},easeOutQuad(r){return r*(2-r)},easeInOutQuad(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic(r){return r*r*r},easeOutCubic(r){return--r*r*r+1},easeInOutCubic(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart(r){return r*r*r*r},easeOutQuart(r){return 1- --r*r*r*r},easeInOutQuart(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint(r){return r*r*r*r*r},easeOutQuint(r){return 1+--r*r*r*r*r},easeInOutQuint(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function xi(r,e){let t;st(e)||(e=[e]);for(const i of r)if(i){t=i[e[0]];for(let n=1;n0&&arguments[0]!==void 0?arguments[0]:1;this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}setCloseCallback(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}_isColorString(e){if(typeof e=="string")return tee[e]}setColor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e==="none")return;let i;const n=this._isColorString(e);if(n!==void 0&&(e=n),Ss(e)===!0){if(lH(e)===!0){const s=e.substr(4).substr(0,e.length-5).split(",");i={r:s[0],g:s[1],b:s[2],a:1}}else if(ZZ(e)===!0){const s=e.substr(5).substr(0,e.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(uH(e)===!0){const s=H0(e);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){const s=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:s}}if(i===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Fa(e));this._setColor(i,t)}show(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)===!0&&(this.previousColor=ft({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",ui(()=>{this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(e){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)===!0&&(this.initialColor=ft({},e)),this.color=e;const i=wo(e.r,e.g,e.b),n=2*Math.PI,s=this.r*i.s,o=this.centerCoordinates.x+s*Math.sin(n*i.h),a=this.centerCoordinates.y+s*Math.cos(n*i.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}_setOpacity(e){this.color.a=e/100,this._updatePicker(this.color)}_setBrightness(e){const t=wo(this.color.r,this.color.g,this.color.b);t.v=e/100;const i=gu(t.h,t.s,t.v);i.a=this.color.a,this.color=i,this._updatePicker()}_updatePicker(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color;const t=wo(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const n=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,s),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-t.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),ka(i).call(i),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var e,t,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){const o=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{const o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);const s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=H(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=H(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=H(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=H(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new z0(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",e=>{e.isFirst&&this._moveSelector(e)}),this.hammer.on("tap",e=>{this._moveSelector(e)}),this.hammer.on("panstart",e=>{this._moveSelector(e)}),this.hammer.on("panmove",e=>{this._moveSelector(e)}),this.hammer.on("panend",e=>{this._moveSelector(e)})}_generateHueCircle(){if(this.generated===!1){const e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const t=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,t,i);let n,s,o,a;this.centerCoordinates={x:t*.5,y:i*.5},this.r=.49*t;const u=2*Math.PI/360,l=1/360,c=1/this.r;let d;for(o=0;o<360;o++)for(a=0;a3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:()=>!1;this.parent=e,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},ft(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new ree(n),this.wrapper=void 0}setOptions(e){if(e!==void 0){this.popupHistory={},this._removePopup();let t=!0;if(typeof e=="string")this.options.filter=e;else if(st(e))this.options.filter=e.join();else if(typeof e=="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),Yt(e)!==void 0&&(this.options.filter=Yt(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(t=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,t=e):typeof e=="function"&&(this.options.filter=e,t=!0);Yt(this.options)===!1&&(t=!1),this.options.enabled=t}this._clean()}setModuleOptions(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];const e=Yt(this.options);let t=0,i=!1;for(const n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):(e===!0||Be(e).call(e,n)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),t++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let e=0;e1?t-1:0),n=1;n{s.appendChild(o)}),this.domElements.push(s),this.domElements.length}return 0}_makeHeader(e){const t=document.createElement("div");t.className="vis-configuration vis-config-header",t.innerText=e,this._makeItem([],t)}_makeLabel(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const n=document.createElement("div");if(n.className="vis-configuration vis-config-label vis-config-s"+t.length,i===!0){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(Ew("i","b",e))}else n.innerText=e+":";return n}_makeDropdown(e,t,i){const n=document.createElement("select");n.className="vis-configuration vis-config-select";let s=0;t!==void 0&&Be(e).call(e,t)!==-1&&(s=Be(e).call(e,t));for(let u=0;uo&&o!==1&&(u.max=Math.ceil(t*1.2),c=u.max,l="range increased"),u.value=t):u.value=n;const d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=u.value;const h=this;u.onchange=function(){d.value=this.value,h._update(Number(this.value),i)},u.oninput=function(){d.value=this.value};const f=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,f,u,d);l!==""&&this.popupHistory[p]!==c&&(this.popupHistory[p]=c,this._setupPopup(l,p))}_makeButton(){if(this.options.showButton===!0){const e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=()=>{this._printOptions()},e.onmouseover=()=>{e.className="vis-configuration vis-config-button hover"},e.onmouseout=()=>{e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}_setupPopup(e,t){if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:t}}}_removePopup(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(this.popupDiv.html!==void 0){const t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=ui(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=ui(()=>{this._removePopup()},1800)}}_makeCheckbox(e,t,i){const n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=e,t!==void 0&&(n.checked=t,t!==e&&(typeof e=="object"?t!==e.enabled&&this.changedOptions.push({path:i,value:t}):this.changedOptions.push({path:i,value:t})));const s=this;n.onchange=function(){s._update(this.checked,i)};const o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}_makeTextInput(e,t,i){const n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=t,t!==e&&this.changedOptions.push({path:i,value:t});const s=this;n.onchange=function(){s._update(this.value,i)};const o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}_makeColorField(e,t,i){const n=e[1],s=document.createElement("div");t=t===void 0?n:t,t!=="none"?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=t):s.className="vis-configuration vis-config-colorBlock none",t=t===void 0?n:t,s.onclick=()=>{this._showColorPicker(t,s,i)};const o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,s)}_showColorPicker(e,t,i){t.onclick=function(){},this.colorPicker.insertTo(t),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback(n=>{const s="rgba("+n.r+","+n.g+","+n.b+","+n.a+")";t.style.backgroundColor=s,this._update(s,i)}),this.colorPicker.setCloseCallback(()=>{t.onclick=()=>{this._showColorPicker(e,t,i)}})}_handleObject(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=!1;const s=Yt(this.options);let o=!1;for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){n=!0;const u=e[a],l=Nu(t,a);if(typeof s=="function"&&(n=s(a,t),n===!1&&!st(u)&&typeof u!="string"&&typeof u!="boolean"&&u instanceof Object&&(this.allowCreation=!1,n=this._handleObject(u,l,!0),this.allowCreation=i===!1)),n!==!1){o=!0;const c=this._getValue(l);if(st(u))this._handleArray(u,c,l);else if(typeof u=="string")this._makeTextInput(u,c,l);else if(typeof u=="boolean")this._makeCheckbox(u,c,l);else if(u instanceof Object){if(!this.hideOption(t,a,this.moduleOptions))if(u.enabled!==void 0){const d=Nu(l,"enabled"),h=this._getValue(d);if(h===!0){const f=this._makeLabel(a,l,!0);this._makeItem(l,f),o=this._handleObject(u,l)||o}else this._makeCheckbox(u,h,l)}else{const d=this._makeLabel(a,l,!0);this._makeItem(l,d),o=this._handleObject(u,l)||o}}else console.error("dont know how to handle",u,a,l)}}return o}_handleArray(e,t,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,t,i),e[1]!==t&&this.changedOptions.push({path:i,value:t})):typeof e[0]=="string"?(this._makeDropdown(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:t})):typeof e[0]=="number"&&(this._makeRange(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:Number(t)}))}_update(e,t){const i=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}_constructOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(let s=0;ss-this.padding&&(u=!0),u?o=this.x-i:o=this.x,l?a=this.y-t:a=this.y}else a=this.y-t,a+t+this.padding>n&&(a=n-t-this.padding),as&&(o=s-i-this.padding),os.distance?u=" in "+rt.printLocation(n.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+rt.printLocation(s.path,s.closestMatch,""):n.distance<=o?u='. Did you mean "'+n.closestMatch+'"?'+rt.printLocation(n.path,e):u=". Did you mean one of these: "+rt.print(nt(t))+rt.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+u,Sw),yo=!0}static findInOptions(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=1e9,o="",a=[];const u=e.toLowerCase();let l;for(const d in t){let h;if(t[d].__type__!==void 0&&n===!0){const f=rt.findInOptions(e,t[d],Nu(i,d));s>f.distance&&(o=f.closestMatch,a=f.path,s=f.distance,l=f.indexMatch)}else{var c;Be(c=d.toLowerCase()).call(c,u)!==-1&&(l=d),h=rt.levenshteinDistance(e,d),s>h&&(o=d,a=YZ(i),s=h)}}return{closestMatch:o,path:a,distance:s,indexMatch:l}}static printLocation(e,t){let n=` + +`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: +`)+`options = { +`;for(let s=0;s":!0,"--":!0},Di="",Ns=0,Se="",pe="",Gt=Lt.NULL;function dee(){Ns=0,Se=Di.charAt(0)}function wt(){Ns++,Se=Di.charAt(Ns)}function os(){return Di.charAt(Ns+1)}function XF(r){var e=r.charCodeAt(0);return e<47?e===35||e===46:e<59?e>47:e<91?e>64:e<96?e===95:e<123?e>96:!1}function Wi(r,e){if(r||(r={}),e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function hee(r,e,t){for(var i=e.split("."),n=r;i.length;){var s=i.shift();i.length?(n[s]||(n[s]={}),n=n[s]):n[s]=t}}function hH(r,e){for(var t,i,n=null,s=[r],o=r;o.parent;)s.push(o.parent),o=o.parent;if(o.nodes){for(t=0,i=o.nodes.length;t=0;t--){var a,u=s[t];u.nodes||(u.nodes=[]),Be(a=u.nodes).call(a,n)===-1&&u.nodes.push(n)}e.attr&&(n.attr=Wi(n.attr,e.attr))}function fee(r,e){if(r.edges||(r.edges=[]),r.edges.push(e),r.edge){var t=Wi({},r.edge);e.attr=Wi(t,e.attr)}}function fH(r,e,t,i,n){var s={from:e,to:t,type:i};return r.edge&&(s.attr=Wi({},r.edge)),s.attr=Wi(s.attr||{},n),n!=null&&n.hasOwnProperty("arrows")&&n.arrows!=null&&(s.arrows={to:{enabled:!0,type:n.arrows.type}},n.arrows=null),s}function Ye(){for(Gt=Lt.NULL,pe="";Se===" "||Se===" "||Se===` +`||Se==="\r";)wt();do{var r=!1;if(Se==="#"){for(var e=Ns-1;Di.charAt(e)===" "||Di.charAt(e)===" ";)e--;if(Di.charAt(e)===` +`||Di.charAt(e)===""){for(;Se!=""&&Se!=` +`;)wt();r=!0}}if(Se==="/"&&os()==="/"){for(;Se!=""&&Se!=` +`;)wt();r=!0}if(Se==="/"&&os()==="*"){for(;Se!="";)if(Se==="*"&&os()==="/"){wt(),wt();break}else wt();r=!0}for(;Se===" "||Se===" "||Se===` +`||Se==="\r";)wt()}while(r);if(Se===""){Gt=Lt.DELIMITER;return}var t=Se+os();if(YF[t]){Gt=Lt.DELIMITER,pe=t,wt(),wt();return}if(YF[Se]){Gt=Lt.DELIMITER,pe=Se,wt();return}if(XF(Se)||Se==="-"){for(pe+=Se,wt();XF(Se);)pe+=Se,wt();pe==="false"?pe=!1:pe==="true"?pe=!0:isNaN(Number(pe))||(pe=Number(pe)),Gt=Lt.IDENTIFIER;return}if(Se==='"'){for(wt();Se!=""&&(Se!='"'||Se==='"'&&os()==='"');)Se==='"'?(pe+=Se,wt()):Se==="\\"&&os()==="n"?(pe+=` +`,wt()):pe+=Se,wt();if(Se!='"')throw jt('End of string " expected');wt(),Gt=Lt.IDENTIFIER;return}for(Gt=Lt.UNKNOWN;Se!="";)pe+=Se,wt();throw new SyntaxError('Syntax error in part "'+mH(pe,30)+'"')}function pee(){var r={};if(dee(),Ye(),pe==="strict"&&(r.strict=!0,Ye()),(pe==="graph"||pe==="digraph")&&(r.type=pe,Ye()),Gt===Lt.IDENTIFIER&&(r.id=pe,Ye()),pe!="{")throw jt("Angle bracket { expected");if(Ye(),pH(r),pe!="}")throw jt("Angle bracket } expected");if(Ye(),pe!=="")throw jt("End of file expected");return Ye(),delete r.node,delete r.edge,delete r.graph,r}function pH(r){for(;pe!==""&&pe!="}";)vee(r),pe===";"&&Ye()}function vee(r){var e=vH(r);if(e){gH(r,e);return}var t=gee(r);if(!t){if(Gt!=Lt.IDENTIFIER)throw jt("Identifier expected");var i=pe;if(Ye(),pe==="="){if(Ye(),Gt!=Lt.IDENTIFIER)throw jt("Identifier expected");r[i]=pe,Ye()}else mee(r,i)}}function vH(r){var e=null;if(pe==="subgraph"&&(e={},e.type="subgraph",Ye(),Gt===Lt.IDENTIFIER&&(e.id=pe,Ye())),pe==="{"){if(Ye(),e||(e={}),e.parent=r,e.node=r.node,e.edge=r.edge,e.graph=r.graph,pH(e),pe!="}")throw jt("Angle bracket } expected");Ye(),delete e.node,delete e.edge,delete e.graph,delete e.parent,r.subgraphs||(r.subgraphs=[]),r.subgraphs.push(e)}return e}function gee(r){return pe==="node"?(Ye(),r.node=Mo(),"node"):pe==="edge"?(Ye(),r.edge=Mo(),"edge"):pe==="graph"?(Ye(),r.graph=Mo(),"graph"):null}function mee(r,e){var t={id:e},i=Mo();i&&(t.attr=i),hH(r,t),gH(r,e)}function gH(r,e){for(;pe==="->"||pe==="--";){var t,i=pe;Ye();var n=vH(r);if(n)t=n;else{if(Gt!=Lt.IDENTIFIER)throw jt("Identifier or subgraph expected");t=pe,hH(r,{id:t}),Ye()}var s=Mo(),o=fH(r,e,t,i,s);fee(r,o),e=t}}function Mo(){for(var r,e=null,t={dashed:!0,solid:!1,dotted:[1,5]},i={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},n=new Array,s=new Array;pe==="[";){for(Ye(),e={};pe!==""&&pe!="]";){if(Gt!=Lt.IDENTIFIER)throw jt("Attribute name expected");var o=pe;if(Ye(),pe!="=")throw jt("Equal sign = expected");if(Ye(),Gt!=Lt.IDENTIFIER)throw jt("Attribute value expected");var a=pe;o==="style"&&(a=t[a]);var u;o==="arrowhead"&&(u=i[a],o="arrows",a={to:{enabled:!0,type:u}}),o==="arrowtail"&&(u=i[a],o="arrows",a={from:{enabled:!0,type:u}}),n.push({attr:e,name:o,value:a}),s.push(o),Ye(),pe==","&&Ye()}if(pe!="]")throw jt("Bracket ] expected");Ye()}if(ki(s).call(s,"dir")){var l={};for(l.arrows={},r=0;r"&&(a.arrows="to"),a};He(n=e.edges).call(n,function(o){var a,u;if(o.from instanceof Object?a=o.from.nodes:a={id:o.from},o.to instanceof Object?u=o.to.nodes:u={id:o.to},o.from instanceof Object&&o.from.edges){var l;He(l=o.from.edges).call(l,function(d){var h=s(d);t.edges.push(h)})}if(yee(a,u,function(d,h){var f=fH(t,d.id,h.id,o.type,o.attr),p=s(f);t.edges.push(p)}),o.to instanceof Object&&o.to.edges){var c;He(c=o.to.edges).call(c,function(d){var h=s(d);t.edges.push(h)})}})}return e.attr&&(t.options=e.attr),t}function _ee(r,e){var t;const i={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};e!=null&&(e.fixed!=null&&(i.nodes.fixed=e.fixed),e.parseColor!=null&&(i.nodes.parseColor=e.parseColor),e.inheritColor!=null&&(i.edges.inheritColor=e.inheritColor));const n=r.edges,s=qs(n).call(n,a=>{const u={from:a.source,id:a.id,to:a.target};return a.attributes!=null&&(u.attributes=a.attributes),a.label!=null&&(u.label=a.label),a.attributes!=null&&a.attributes.title!=null&&(u.title=a.attributes.title),a.type==="Directed"&&(u.arrows="to"),a.color&&i.edges.inheritColor===!1&&(u.color=a.color),u});return{nodes:qs(t=r.nodes).call(t,a=>{const u={id:a.id,fixed:i.nodes.fixed&&a.x!=null&&a.y!=null};return a.attributes!=null&&(u.attributes=a.attributes),a.label!=null&&(u.label=a.label),a.size!=null&&(u.size=a.size),a.attributes!=null&&a.attributes.title!=null&&(u.title=a.attributes.title),a.title!=null&&(u.title=a.title),a.x!=null&&(u.x=a.x),a.y!=null&&(u.y=a.y),a.color!=null&&(i.nodes.parseColor===!0?u.color=a.color:u.color={background:a.color,border:a.color,highlight:{background:a.color,border:a.color},hover:{background:a.color,border:a.color}}),u}),edges:s}}const wee={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},Eee={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},See={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},Oee={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},Iee={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},Tee={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},$ee={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},Pee={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},Ree={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},Cee={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},xee={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"};var qee=Object.freeze({__proto__:null,cn:Pee,cs:xee,de:Eee,en:wee,es:See,fr:Cee,it:Oee,nl:Iee,pt:Tee,ru:$ee,uk:Ree});function Aee(r,e){try{const[i,n]=e.split(/[-_ /]/,2),s=i!=null?i.toLowerCase():null,o=n!=null?n.toUpperCase():null;if(s&&o){const a=s+"-"+o;if(Object.prototype.hasOwnProperty.call(r,a))return a;var t;console.warn(iQ(t="Unknown variant ".concat(o," of language ")).call(t,s,"."))}if(s){const a=s;if(Object.prototype.hasOwnProperty.call(r,a))return a;console.warn("Unknown language ".concat(s))}return console.warn("Unknown locale ".concat(e,", falling back to English.")),"en"}catch(i){return console.error(i),console.warn("Unexpected error while normalizing locale ".concat(e,", falling back to English.")),"en"}}class Dee{constructor(){this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}init(){if(this.initialized())return;this.src=this.image.src;const e=this.image.width,t=this.image.height;this.width=e,this.height=t;const i=Math.floor(t/2),n=Math.floor(t/4),s=Math.floor(t/8),o=Math.floor(t/16),a=Math.floor(e/2),u=Math.floor(e/4),l=Math.floor(e/8),c=Math.floor(e/16);this.canvas.width=3*u,this.canvas.height=i,this.coordinates=[[0,0,a,i],[a,0,u,n],[a,n,l,s],[5*l,n,c,o]],this._fillMipMap()}initialized(){return this.coordinates!==void 0}_fillMipMap(){const e=this.canvas.getContext("2d"),t=this.coordinates[0];e.drawImage(this.image,t[0],t[1],t[2],t[3]);for(let i=1;i2){t*=.5;let a=0;for(;t>2&&a=this.NUM_ITERATIONS&&(a=this.NUM_ITERATIONS-1);const u=this.coordinates[a];e.drawImage(this.canvas,u[0],u[1],u[2],u[3],i,n,s,o)}else e.drawImage(this.image,i,n,s,o)}}class Mee{constructor(e){this.images={},this.imageBroken={},this.callback=e}_tryloadBrokenUrl(e,t,i){if(!(e===void 0||i===void 0)){if(t===void 0){console.warn("No broken url image defined");return}i.image.onerror=()=>{console.error("Could not load brokenImage:",t)},i.image.src=t}}_redrawWithImage(e){this.callback&&this.callback(e)}load(e,t){const i=this.images[e];if(i)return i;const n=new Dee;return this.images[e]=n,n.image.onload=()=>{this._fixImageCoordinates(n.image),n.init(),this._redrawWithImage(n)},n.image.onerror=()=>{console.error("Could not load image:",e),this._tryloadBrokenUrl(e,t,n)},n.image.src=e,n}_fixImageCoordinates(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}var QF={},ZF={},Pb={exports:{}},Rb,ek;function Nee(){if(ek)return Rb;ek=1;var r=Pe();return Rb=r(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Rb}var Cb,tk;function Fee(){if(tk)return Cb;tk=1;var r=Pe(),e=Pt(),t=Ur(),i=Nee(),n=Object.isExtensible,s=r(function(){});return Cb=s||i?function(a){return!e(a)||i&&t(a)==="ArrayBuffer"?!1:n?n(a):!0}:n,Cb}var xb,rk;function yH(){if(rk)return xb;rk=1;var r=Pe();return xb=!r(function(){return Object.isExtensible(Object.preventExtensions({}))}),xb}var ik;function xl(){if(ik)return Pb.exports;ik=1;var r=de(),e=xe(),t=qa(),i=Pt(),n=qt(),s=mr().f,o=Il(),a=R0(),u=Fee(),l=yl(),c=yH(),d=!1,h=l("meta"),f=0,p=function(y){s(y,h,{value:{objectID:"O"+f++,weakData:{}}})},v=function(y,I){if(!i(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!n(y,h)){if(!u(y))return"F";if(!I)return"E";p(y)}return y[h].objectID},_=function(y,I){if(!n(y,h)){if(!u(y))return!0;if(!I)return!1;p(y)}return y[h].weakData},m=function(y){return c&&d&&u(y)&&!n(y,h)&&p(y),y},g=function(){E.enable=function(){},d=!0;var y=o.f,I=e([].splice),O={};O[h]=1,y(O).length&&(o.f=function(T){for(var b=y(T),w=0,R=b.length;wb;b++)if(R=q(f[b]),R&&o(h,R))return R;return new d(!1)}O=a(f,T)}for(P=g?f.next:O.next;!(S=e(P,O)).done;){try{R=q(S.value)}catch(F){l(O,"throw",F)}if(typeof R=="object"&&R&&o(h,R))return R}return new d(!1)},Nb}var Fb,lk;function V0(){if(lk)return Fb;lk=1;var r=mt(),e=TypeError;return Fb=function(t,i){if(r(i,t))return t;throw new e("Incorrect invocation")},Fb}var kb,ck;function K0(){if(ck)return kb;ck=1;var r=de(),e=Ze(),t=xl(),i=Pe(),n=eo(),s=ql(),o=V0(),a=$t(),u=Pt(),l=Gs(),c=Gn(),d=mr().f,h=en().forEach,f=lt(),p=Yn(),v=p.set,_=p.getterFor;return kb=function(m,g,E){var y=m.indexOf("Map")!==-1,I=m.indexOf("Weak")!==-1,O=y?"set":"add",T=e[m],b=T&&T.prototype,w={},R;if(!f||!a(T)||!(I||b.forEach&&!i(function(){new T().entries().next()})))R=E.getConstructor(g,m,y,O),t.enable();else{R=g(function($,q){v(o($,P),{type:m,collection:new T}),l(q)||s(q,$[O],{that:$,AS_ENTRIES:y})});var P=R.prototype,S=_(m);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function($){var q=$==="add"||$==="set";$ in b&&!(I&&$==="clear")&&n(P,$,function(F,Z){var z=S(this).collection;if(!q&&I&&!u(F))return $==="get"?void 0:!1;var te=z[$](F===0?0:F,Z);return q?this:te})}),I||d(P,"size",{configurable:!0,get:function(){return S(this).collection.size}})}return c(R,m,!1,!0),w[m]=R,r({global:!0,forced:!0},w),I||E.setStrong(R,m,y),R},kb}var Bb,dk;function G0(){if(dk)return Bb;dk=1;var r=Na();return Bb=function(e,t,i){for(var n in t)i&&i.unsafe&&e[n]?e[n]=t[n]:r(e,n,t[n],i);return e},Bb}var Lb,hk;function Lee(){if(hk)return Lb;hk=1;var r=nr(),e=C0(),t=yt(),i=lt(),n=t("species");return Lb=function(s){var o=r(s);i&&o&&!o[n]&&e(o,n,{configurable:!0,get:function(){return this}})},Lb}var jb,fk;function _H(){if(fk)return jb;fk=1;var r=Ma(),e=C0(),t=G0(),i=_l(),n=V0(),s=Gs(),o=ql(),a=q0(),u=A0(),l=Lee(),c=lt(),d=xl().fastKey,h=Yn(),f=h.set,p=h.getterFor;return jb={getConstructor:function(v,_,m,g){var E=v(function(b,w){n(b,y),f(b,{type:_,index:r(null),first:null,last:null,size:0}),c||(b.size=0),s(w)||o(w,b[g],{that:b,AS_ENTRIES:m})}),y=E.prototype,I=p(_),O=function(b,w,R){var P=I(b),S=T(b,w),$,q;return S?S.value=R:(P.last=S={index:q=d(w,!0),key:w,value:R,previous:$=P.last,next:null,removed:!1},P.first||(P.first=S),$&&($.next=S),c?P.size++:b.size++,q!=="F"&&(P.index[q]=S)),b},T=function(b,w){var R=I(b),P=d(w),S;if(P!=="F")return R.index[P];for(S=R.first;S;S=S.next)if(S.key===w)return S};return t(y,{clear:function(){for(var w=this,R=I(w),P=R.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=null),P=P.next;R.first=R.last=null,R.index=r(null),c?R.size=0:w.size=0},delete:function(b){var w=this,R=I(w),P=T(w,b);if(P){var S=P.next,$=P.previous;delete R.index[P.index],P.removed=!0,$&&($.next=S),S&&(S.previous=$),R.first===P&&(R.first=S),R.last===P&&(R.last=$),c?R.size--:w.size--}return!!P},forEach:function(w){for(var R=I(this),P=i(w,arguments.length>1?arguments[1]:void 0),S;S=S?S.next:R.first;)for(P(S.value,S.key,this);S&&S.removed;)S=S.previous},has:function(w){return!!T(this,w)}}),t(y,m?{get:function(w){var R=T(this,w);return R&&R.value},set:function(w,R){return O(this,w===0?0:w,R)}}:{add:function(w){return O(this,w=w===0?0:w,w)}}),c&&e(y,"size",{configurable:!0,get:function(){return I(this).size}}),E},setStrong:function(v,_,m){var g=_+" Iterator",E=p(_),y=p(g);a(v,_,function(I,O){f(this,{type:g,target:I,state:E(I),kind:O,last:null})},function(){for(var I=y(this),O=I.kind,T=I.last;T&&T.removed;)T=T.previous;return!I.target||!(I.last=T=T?T.next:I.state.first)?(I.target=null,u(void 0,!0)):u(O==="keys"?T.key:O==="values"?T.value:[T.key,T.value],!1)},m?"entries":"values",!m,!0),l(_)}},jb}var pk;function jee(){if(pk)return ZF;pk=1;var r=K0(),e=_H();return r("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),ZF}var vk;function zee(){return vk||(vk=1,jee()),QF}var gk={},zb,mk;function wH(){return mk||(mk=1,zb=function(r,e){return e===1?function(t,i){return t[r](i)}:function(t,i,n){return t[r](i,n)}}),zb}var Hb,yk;function Hee(){if(yk)return Hb;yk=1;var r=nr(),e=wH(),t=r("Map");return Hb={Map:t,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:t.prototype},Hb}var bk;function Wee(){if(bk)return gk;bk=1;var r=de(),e=xe(),t=bi(),i=yi(),n=ql(),s=Hee(),o=Qs(),a=Pe(),u=s.Map,l=s.has,c=s.get,d=s.set,h=e([].push),f=o||a(function(){return u.groupBy("ab",function(p){return p}).get("a").length!==1});return r({target:"Map",stat:!0,forced:o||f},{groupBy:function(v,_){i(v),t(_);var m=new u,g=0;return n(v,function(E){var y=_(E,g++);l(m,y)?h(c(m,y),E):d(m,y,[E])}),m}}),gk}var _k={},Wb,wk;function Uee(){if(wk)return Wb;wk=1;var r=xe(),e=to(),t=yr(),i=yi(),n=r("".charAt),s=r("".charCodeAt),o=r("".slice),a=function(u){return function(l,c){var d=t(i(l)),h=e(c),f=d.length,p,v;return h<0||h>=f?u?"":void 0:(p=s(d,h),p<55296||p>56319||h+1===f||(v=s(d,h+1))<56320||v>57343?u?n(d,h):p:u?o(d,h,h+2):(p-55296<<10)+(v-56320)+65536)}};return Wb={codeAt:a(!1),charAt:a(!0)},Wb}var Ek;function Y0(){if(Ek)return _k;Ek=1;var r=Uee().charAt,e=yr(),t=Yn(),i=q0(),n=A0(),s="String Iterator",o=t.set,a=t.getterFor(s);return i(String,"String",function(u){o(this,{type:s,string:e(u),index:0})},function(){var l=a(this),c=l.string,d=l.index,h;return d>=c.length?n(void 0,!0):(h=r(c,d),l.index+=h.length,n(h,!1))}),_k}var Ub,Sk;function Vee(){if(Sk)return Ub;Sk=1,so(),zee(),Wee(),Y0();var r=je();return Ub=r.Map,Ub}var Vb,Ok;function Kee(){if(Ok)return Vb;Ok=1;var r=Vee();return oo(),Vb=r,Vb}var Kb,Ik;function Gee(){return Ik||(Ik=1,Kb=Kee()),Kb}var Yee=Gee(),X0=ge(Yee);class Xee{constructor(){this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},ft(this.options,this.defaultOptions)}setOptions(e){const t=["useDefaultGroups"];if(e!==void 0){for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Be(t).call(t,i)===-1){const n=e[i];this.add(i,n)}}}clear(){this._groups=new X0,this._groupNames=[]}get(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&t)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){const n=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[n]),this._groups.set(e,i)}else{const n=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[n],this._groups.set(e,i)}return i}add(e,t){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,t),t}}var Tk={},$k;function Jee(){if($k)return Tk;$k=1;var r=de();return r({target:"Number",stat:!0},{isNaN:function(t){return t!==t}}),Tk}var Gb,Pk;function Qee(){if(Pk)return Gb;Pk=1,Jee();var r=je();return Gb=r.Number.isNaN,Gb}var Yb,Rk;function Zee(){if(Rk)return Yb;Rk=1;var r=Qee();return Yb=r,Yb}var Xb,Ck;function ete(){return Ck||(Ck=1,Xb=Zee()),Xb}var tte=ete(),Ow=ge(tte),xk={},Jb,qk;function rte(){if(qk)return Jb;qk=1;var r=Ze(),e=r.isFinite;return Jb=Number.isFinite||function(i){return typeof i=="number"&&e(i)},Jb}var Ak;function ite(){if(Ak)return xk;Ak=1;var r=de(),e=rte();return r({target:"Number",stat:!0},{isFinite:e}),xk}var Qb,Dk;function nte(){if(Dk)return Qb;Dk=1,ite();var r=je();return Qb=r.Number.isFinite,Qb}var Zb,Mk;function ste(){if(Mk)return Zb;Mk=1;var r=nte();return Zb=r,Zb}var e1,Nk;function ote(){return Nk||(Nk=1,e1=ste()),e1}var ate=ote(),mn=ge(ate),Fk={},kk;function ute(){if(kk)return Fk;kk=1;var r=de(),e=en().some,t=ao(),i=t("some");return r({target:"Array",proto:!0,forced:!i},{some:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),Fk}var t1,Bk;function lte(){if(Bk)return t1;Bk=1,ute();var r=At();return t1=r("Array","some"),t1}var r1,Lk;function cte(){if(Lk)return r1;Lk=1;var r=mt(),e=lte(),t=Array.prototype;return r1=function(i){var n=i.some;return i===t||r(t,i)&&n===t.some?e:n},r1}var i1,jk;function dte(){if(jk)return i1;jk=1;var r=cte();return i1=r,i1}var n1,zk;function hte(){return zk||(zk=1,n1=dte()),n1}var fte=hte(),pte=ge(fte),s1={exports:{}},Hk={},Wk;function vte(){if(Wk)return Hk;Wk=1;var r=de(),e=lt(),t=mr().f;return r({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!e},{defineProperty:t}),Hk}var Uk;function gte(){if(Uk)return s1.exports;Uk=1,vte();var r=je(),e=r.Object,t=s1.exports=function(n,s,o){return e.defineProperty(n,s,o)};return e.defineProperty.sham&&(t.sham=!0),s1.exports}var o1,Vk;function EH(){if(Vk)return o1;Vk=1;var r=gte();return o1=r,o1}var a1,Kk;function mte(){if(Kk)return a1;Kk=1;var r=EH();return a1=r,a1}var u1,Gk;function yte(){if(Gk)return u1;Gk=1;var r=mte();return u1=r,u1}var l1,Yk;function bte(){return Yk||(Yk=1,l1=yte()),l1}var _te=bte(),wte=ge(_te),Xk={},Jk;function Ete(){if(Jk)return Xk;Jk=1;var r=yt(),e=mr().f,t=r("metadata"),i=Function.prototype;return i[t]===void 0&&e(i,t,{value:null}),Xk}var Qk={},Zk;function Ste(){return Zk||(Zk=1,O5()),Qk}var e2={},t2;function Ote(){return t2||(t2=1,I5()),e2}var r2={},i2;function Ite(){if(i2)return r2;i2=1;var r=tt();return r("metadata"),r2}var c1,n2;function Tte(){if(n2)return c1;n2=1;var r=C5();return Ete(),Ste(),Ote(),Ite(),c1=r,c1}var s2={},d1,o2;function SH(){if(o2)return d1;o2=1;var r=nr(),e=xe(),t=r("Symbol"),i=t.keyFor,n=e(t.prototype.valueOf);return d1=t.isRegisteredSymbol||function(o){try{return i(n(o))!==void 0}catch{return!1}},d1}var a2;function $te(){if(a2)return s2;a2=1;var r=de(),e=SH();return r({target:"Symbol",stat:!0},{isRegisteredSymbol:e}),s2}var u2={},h1,l2;function OH(){if(l2)return h1;l2=1;for(var r=Zs(),e=nr(),t=xe(),i=xa(),n=yt(),s=e("Symbol"),o=s.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),u=t(s.prototype.valueOf),l=r("wks"),c=0,d=a(s),h=d.length;ch;)p=l(u,f=c[h++]),p!==void 0&&s(d,f,p);return d}}),nB}var k1,oB;function Ore(){if(oB)return k1;oB=1,Sre();var r=je();return k1=r.Object.getOwnPropertyDescriptors,k1}var B1,aB;function Ire(){if(aB)return B1;aB=1;var r=Ore();return B1=r,B1}var L1,uB;function Tre(){return uB||(uB=1,L1=Ire()),L1}var $re=Tre(),Vi=ge($re),j1={exports:{}},lB={},cB;function Pre(){if(cB)return lB;cB=1;var r=de(),e=lt(),t=P0().f;return r({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!e},{defineProperties:t}),lB}var dB;function Rre(){if(dB)return j1.exports;dB=1,Pre();var r=je(),e=r.Object,t=j1.exports=function(n,s){return e.defineProperties(n,s)};return e.defineProperties.sham&&(t.sham=!0),j1.exports}var z1,hB;function Cre(){if(hB)return z1;hB=1;var r=Rre();return z1=r,z1}var H1,fB;function xre(){return fB||(fB=1,H1=Cre()),H1}var qre=xre(),Al=ge(qre),W1,pB;function Are(){return pB||(pB=1,W1=EH()),W1}var Dre=Are(),Dl=ge(Dre);function J0(r,e){const t=["node","edge","label"];let i=!0;const n=xi(e,"chosen");if(typeof n=="boolean")i=n;else if(typeof n=="object"){if(Be(t).call(t,r)===-1)throw new Error("choosify: subOption '"+r+"' should be one of '"+t.join("', '")+"'");const s=xi(e,["chosen",r]);(typeof s=="boolean"||typeof s=="function")&&(i=s)}return i}function Iw(r,e,t){if(r.width<=0||r.height<=0)return!1;if(t!==void 0){const s={x:e.x-t.x,y:e.y-t.y};if(t.angle!==0){const o=-t.angle;e={x:Math.cos(o)*s.x-Math.sin(o)*s.y,y:Math.sin(o)*s.x+Math.cos(o)*s.y}}else e=s}const i=r.x+r.width,n=r.y+r.width;return r.lefte.x&&r.tope.y}function Fu(r){return typeof r=="string"&&r!==""}function TH(r,e,t,i){let n=i.x,s=i.y;if(typeof i.distanceToBorder=="function"){const o=i.distanceToBorder(r,e),a=Math.sin(e)*o,u=Math.cos(e)*o;u===o?(n+=o,s=i.y):a===o?(n=i.x,s-=o):(n+=u,s-=a)}else i.shape.width>i.shape.height?(n=i.x+i.shape.width*.5,s=i.y-t):(n=i.x+t,s=i.y-i.shape.height*.5);return{x:n,y:s}}var U1,vB;function Mre(){if(vB)return U1;vB=1,so();var r=At();return U1=r("Array","values"),U1}var V1,gB;function Nre(){if(gB)return V1;gB=1;var r=Mre();return V1=r,V1}var K1,mB;function Fre(){if(mB)return K1;mB=1,oo();var r=io(),e=qt(),t=mt(),i=Nre(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return K1=function(o){var a=o.values;return o===n||t(n,o)&&a===n.values||e(s,r(o))?i:a},K1}var G1,yB;function kre(){return yB||(yB=1,G1=Fre()),G1}var Bre=kre(),$H=ge(Bre);class Lre{constructor(e){this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}_add(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});let n=t;(t===void 0||t==="")&&(n=" ");const s=this.measureText(n,i),o=ft({},$H(s));o.text=t,o.width=s.width,o.mod=i,(t===void 0||t==="")&&(o.width=0),this.lines[e].blocks.push(o),this.lines[e].width+=o.width}curWidth(){const e=this.lines[this.current];return e===void 0?0:e.width}append(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t)}newLine(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t),this.current++}determineLineHeights(){for(let e=0;ee&&(e=n.width),t+=n.height}this.width=e,this.height=t}removeEmptyBlocks(){const e=[];for(let t=0;t"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/};class bB{constructor(e){this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}mod(){return this.modStack.length===0?"normal":this.modStack[0]}modName(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}emitBlock(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}add(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}parseWS(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}setTag(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}unsetTag(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}parseStartTag(e,t){return!this.mono&&!this[e]&&this.match(t)?(this.setTag(e),!0):!1}match(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const[i,n]=this.prepareRegExp(e),s=i.test(this.text.substr(this.position,n));return s&&t&&(this.position+=n-1),s}parseEndTag(e,t,i){let n=this.mod()===e;return e==="mono"?n=n&&this.mono:n=n&&!this.mono,n&&this.match(t)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}replace(e,t){return this.match(e)?(this.add(t),this.position+=length-1,!0):!1}prepareRegExp(e){let t,i;if(e instanceof RegExp)i=e,t=1;else{const n=jre[e];n!==void 0?i=n:i=new RegExp(e),t=e.length}return[i,t]}}class zre{constructor(e,t,i,n){this.ctx=e,this.parent=t,this.selected=i,this.hover=n;const s=(o,a)=>{if(o===void 0)return 0;const u=this.parent.getFormattingValues(e,i,n,a);let l=0;return o!==""&&(l=this.ctx.measureText(o).width),{width:l,values:u}};this.lines=new Lre(s)}process(e){if(!Fu(e))return this.lines.finalize();const t=this.parent.fontOptions;e=e.replace(/\r\n/g,` +`),e=e.replace(/\r/g,` +`);const i=String(e).split(` +`),n=i.length;if(t.multi)for(let s=0;s0)for(let a=0;a0)for(let s=0;s/&/.test(n)?(t.replace(t.text,"<","<")||t.replace(t.text,"&","&")||t.add("&"),!0):!1;for(;t.position")||t.parseStartTag("ital","")||t.parseStartTag("mono","")||t.parseEndTag("bold","")||t.parseEndTag("ital","")||t.parseEndTag("mono",""))||i(n)||t.add(n),t.position++}return t.emitBlock(),t.blocks}splitMarkdownBlocks(e){const t=new bB(e);let i=!0;const n=s=>/\\/.test(s)?(t.positionthis.parent.fontOptions.maxWdt}getLongestFit(e){let t="",i=0;for(;i1&&arguments[1]!==void 0?arguments[1]:"normal",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,t),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");let n=e.split("\r");for(;n.length>0;){let s=this.getLongestFit(n);if(s===0){const o=n[0],a=this.getLongestFitWord(o);this.lines.newLine(Fr(o).call(o,0,a),t),n[0]=Fr(o).call(o,a)}else{let o=s;n[s-1]===" "?s--:n[o]===" "&&o++;const a=Fr(n).call(n,0,s).join("");s==n.length&&i?this.lines.append(a,t):this.lines.newLine(a,t),n=Fr(n).call(n,o)}}}}const bo=["bold","ital","boldital","mono"];class Is{constructor(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(t),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=i}setOptions(e){if(this.elementOptions=e,this.initFontOptions(e.font),Fu(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(typeof e.font=="object"){const t=e.font.size;t!==void 0&&(this.baseSize=t)}}}initFontOptions(e){if(Te(bo,t=>{this.fontOptions[t]={}}),Is.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}Te(e,(t,i)=>{t!=null&&typeof t!="object"&&(this.fontOptions[i]=t)})}static parseFontString(e,t){if(!t||typeof t!="string")return!1;const i=t.split(" ");return e.size=+i[0].replace("px",""),e.face=i[1],e.color=i[2],!0}constrain(e){const t={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=xi(e,"widthConstraint");if(typeof i=="number")t.maxWdt=Number(i),t.minWdt=Number(i);else if(typeof i=="object"){const s=xi(e,["widthConstraint","maximum"]);typeof s=="number"&&(t.maxWdt=Number(s));const o=xi(e,["widthConstraint","minimum"]);typeof o=="number"&&(t.minWdt=Number(o))}const n=xi(e,"heightConstraint");if(typeof n=="number")t.minHgt=Number(n);else if(typeof n=="object"){const s=xi(e,["heightConstraint","minimum"]);typeof s=="number"&&(t.minHgt=Number(s));const o=xi(e,["heightConstraint","valign"]);typeof o=="string"&&(o==="top"||o==="bottom")&&(t.valign=o)}return t}update(e,t){this.setOptions(e,!0),this.propagateFonts(t),Ge(this.fontOptions,this.constrain(t)),this.fontOptions.chooser=J0("label",t)}adjustSizes(e){const t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);const i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}addFontOptionsToPile(e,t){for(let i=0;i{o!==void 0&&(Object.prototype.hasOwnProperty.call(t,a)||(Be(bo).call(bo,a)!==-1?t[a]={}:t[a]=o))})}return t}getFontOption(e,t,i){let n;for(let s=0;s{s[u]=a}),s.size=Number(s.size),s.vadjust=Number(s.vadjust)}}draw(e,t,i,n,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label===void 0)return;let a=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&a=this.elementOptions.scaling.label.maxVisible&&(a=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,n,s,t,i,o),this._drawBackground(e),this._drawText(e,t,this.size.yLine,o,a))}_drawBackground(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;const t=this.getSize();e.fillRect(t.left,t.top,t.width,t.height)}}_drawText(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",s=arguments.length>4?arguments[4]:void 0;[t,i]=this._setAlignment(e,t,i,n),e.textAlign="left",t=t-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(i-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(i+=(this.size.height-this.size.labelHeight)/2));for(let o=0;o0&&(e.lineWidth=c.strokeWidth,e.strokeStyle=h,e.lineJoin="round"),e.fillStyle=d,c.strokeWidth>0&&e.strokeText(c.text,t+u,i+c.vadjust),e.fillText(c.text,t+u,i+c.vadjust),u+=c.width}i+=a.height}}}_setAlignment(e,t,i,n){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){t=0,i=0;const s=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*s):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*s):e.textBaseline="middle"}else e.textBaseline=n;return[t,i]}_getColor(e,t,i){let n=e||"#000000",s=i||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){const o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));n=lr(n,o),s=lr(s,o)}return[n,s]}getTextSize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,t,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}getSize(){let t=this.size.left,i=this.size.top-.5*2;if(this.isEdgeLabel){const s=-this.size.width*.5;switch(this.fontOptions.align){case"middle":t=s,i=-this.size.height*.5;break;case"top":t=s,i=-(this.size.height+2);break;case"bottom":t=s,i=2;break}}return{left:t,top:i,width:this.size.width,height:this.size.height}}calculateLabelSize(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,t,i),this.size.left=n-this.size.width*.5,this.size.top=s-this.size.height*.5,this.size.yLine=s+(1-this.lineCount)*.5*this.fontOptions.size,o==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}getFormattingValues(e,t,i,n){const s=function(u,l,c){return l==="normal"?c==="mod"?"":u[c]:u[l][c]!==void 0?u[l][c]:u[c]},o={color:s(this.fontOptions,n,"color"),size:s(this.fontOptions,n,"size"),face:s(this.fontOptions,n,"face"),mod:s(this.fontOptions,n,"mod"),vadjust:s(this.fontOptions,n,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(t||i)&&(n==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?o.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(o,this.elementOptions.id,t,i));let a="";return o.mod!==void 0&&o.mod!==""&&(a+=o.mod+" "),a+=o.size+"px "+o.face,e.font=a.replace(/"/g,""),o.font=e.font,o.height=o.size,o}differentState(e,t){return e!==this.selectedState||t!==this.hoverState}_processLabelText(e,t,i,n){return new zre(e,this,t,i).process(n)}_processLabel(e,t,i){if(this.labelDirty===!1&&!this.differentState(t,i))return;const n=this._processLabelText(e,t,i,this.elementOptions.label);this.fontOptions.minWdt>0&&n.width0&&n.height0&&(this.enableBorderDashes(e,t),e.stroke(),this.disableBorderDashes(e,t)),e.restore()}performFill(e,t){e.save(),e.fillStyle=t.color,this.enableShadow(e,t),ka(e).call(e),this.disableShadow(e,t),e.restore(),this.performStroke(e,t)}_addBoundingBoxMargin(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}_updateBoundingBox(e,t,i,n,s){i!==void 0&&this.resize(i,n,s),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}updateBoundingBox(e,t,i,n,s){this._updateBoundingBox(e,t,i,n,s)}getDimensionsFromLabel(e,t,i){this.textSize=this.labelModule.getTextSize(e,t,i);let n=this.textSize.width,s=this.textSize.height;const o=14;return n===0&&(n=o,s=o),{width:n,height:s}}}let Hre=class extends Jn{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const n=this.getDimensionsFromLabel(e,t,i);this.width=n.width+this.margin.right+this.margin.left,this.height=n.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.initContextForDraw(e,o),h5(e,this.left,this.top,this.width,this.height,o.borderRadius),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s)}updateBoundingBox(e,t,i,n,s){this._updateBoundingBox(e,t,i,n,s);const o=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(o)}distanceToBorder(e,t){e&&this.resize(e);const i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+i}};class Q0 extends Jn{constructor(e,t,i){super(e,t,i),this.labelOffset=0,this.selected=!1}setOptions(e,t,i){this.options=e,t===void 0&&i===void 0||this.setImages(t,i)}setImages(e,t){t&&this.selected?(this.imageObj=t,this.imageObjAlt=e):(this.imageObj=e,this.imageObjAlt=t)}switchImages(e){const t=e&&!this.selected||!e&&this.selected;if(this.selected=e,this.imageObjAlt!==void 0&&t){const i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}_getImagePadding(){const e={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){const t=this.options.imagePadding;typeof t=="object"?(e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left):(e.top=t,e.right=t,e.bottom=t,e.left=t)}return e}_resizeImage(){let e,t;if(this.options.shapeProperties.useImageSize===!1){let i=1,n=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:n=this.imageObj.height/this.imageObj.width),e=this.options.size*2*i,t=this.options.size*2*n}else{const i=this._getImagePadding();e=this.imageObj.width+i.left+i.right,t=this.imageObj.height+i.top+i.bottom}this.width=e,this.height=t,this.radius=.5*this.width}_drawRawCircle(e,t,i,n){this.initContextForDraw(e,n),I0(e,t,i,n.size),this.performFill(e,n)}_drawImageAtPosition(e,t){if(this.imageObj.width!=0){e.globalAlpha=t.opacity!==void 0?t.opacity:1,this.enableShadow(e,t);let i=1;this.options.shapeProperties.interpolation===!0&&(i=this.imageObj.width/this.width/this.body.view.scale);const n=this._getImagePadding(),s=this.left+n.left,o=this.top+n.top,a=this.width-n.left-n.right,u=this.height-n.top-n.bottom;this.imageObj.drawImageAtPosition(e,i,s,o,a,u),this.disableShadow(e,t)}}_drawImageLabel(e,t,i,n,s){let o=0;if(this.height!==void 0){o=this.height*.5;const u=this.labelModule.getTextSize(e,n,s);u.lineCount>=1&&(o+=u.height/2)}const a=i+o;this.options.label&&(this.labelOffset=o),this.labelModule.draw(e,t,a,n,s,"hanging")}}let Wre=class extends Q0{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const n=this.getDimensionsFromLabel(e,t,i),s=Math.max(n.width+this.margin.right+this.margin.left,n.height+this.margin.top+this.margin.bottom);this.options.size=s/2,this.width=s,this.height=s,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this._drawRawCircle(e,t,i,o),this.updateBoundingBox(t,i),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,i,n,s)}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size}distanceToBorder(e){return e&&this.resize(e),this.width*.5}};class Ure extends Q0{constructor(e,t,i,n,s){super(e,t,i),this.setImages(n,s)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0){const s=this.options.size*2;this.width=s,this.height=s,this.radius=.5*this.width;return}this.needsRefresh(t,i)&&this._resizeImage()}draw(e,t,i,n,s,o){this.switchImages(n),this.resize();let a=t,u=i;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=t,this.top=i,a+=this.width/2,u+=this.height/2):(this.left=t-this.width/2,this.top=i-this.height/2),this._drawRawCircle(e,a,u,o),e.save(),e.clip(),this._drawImageAtPosition(e,o),e.restore(),this._drawImageLabel(e,a,u,n,s),this.updateBoundingBox(t,i)}updateBoundingBox(e,t){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=t,this.boundingBox.left=e,this.boundingBox.right=e+this.options.size*2,this.boundingBox.bottom=t+this.options.size*2):(this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}distanceToBorder(e){return e&&this.resize(e),this.width*.5}}class rn extends Jn{constructor(e,t,i){super(e,t,i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(t,i)){var s,o;this.labelModule.getTextSize(e,t,i);const a=2*n.size;this.width=(s=this.customSizeWidth)!==null&&s!==void 0?s:a,this.height=(o=this.customSizeHeight)!==null&&o!==void 0?o:a,this.radius=.5*this.width}}_drawShape(e,t,i,n,s,o,a,u){return this.resize(e,o,a,u),this.left=n-this.width/2,this.top=s-this.height/2,this.initContextForDraw(e,u),aX(t)(e,n,s,u.size),this.performFill(e,u),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(e.font=(o?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",e.fillText(this.options.icon.code,n,s)),{drawExternalLabel:()=>{if(this.options.label!==void 0){this.labelModule.calculateLabelSize(e,o,a,n,s,"hanging");const l=s+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(e,n,l,o,a,"hanging")}this.updateBoundingBox(n,s)}}}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}function _B(r,e){var t=nt(r);if(Ui){var i=Ui(r);e&&(i=Yt(i).call(i,function(n){return tn(r,n).enumerable})),t.push.apply(t,i)}return t}function Vre(r){for(var e=1;e{e.save(),u(),e.restore()}}return a.nodeDimensions&&(this.customSizeWidth=a.nodeDimensions.width,this.customSizeHeight=a.nodeDimensions.height),a}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class Gre extends Jn{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){if(this.needsRefresh(t,i)){const s=this.getDimensionsFromLabel(e,t,i).width+this.margin.right+this.margin.left;this.width=s,this.height=s,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.initContextForDraw(e,o),f5(e,t-this.width/2,i-this.height/2,this.width,this.height),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let Yre=class extends rn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"diamond",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class Xre extends rn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"circle",2,t,i,n,s,o)}distanceToBorder(e){return e&&this.resize(e),this.options.size}}class wB extends Jn{constructor(e,t,i){super(e,t,i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){const n=this.getDimensionsFromLabel(e,t,i);this.height=n.height*2,this.width=n.width+n.height,this.radius=.5*this.width}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width*.5,this.top=i-this.height*.5,this.initContextForDraw(e,o),vw(e,this.left,this.top,this.width,this.height),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,t,i,n,s)}distanceToBorder(e,t){e&&this.resize(e);const i=this.width*.5,n=this.height*.5,s=Math.sin(t)*i,o=Math.cos(t)*n;return i*n/Math.sqrt(s*s+o*o)}}class Jre extends Jn{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){this.needsRefresh(t,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}draw(e,t,i,n,s,o){return this.resize(e,n,s),this.options.icon.size=this.options.icon.size||50,this.left=t-this.width/2,this.top=i-this.height/2,this._icon(e,t,i,n,s,o),{drawExternalLabel:()=>{this.options.label!==void 0&&this.labelModule.draw(e,this.left+this.iconSize.width/2+this.margin.left,i+this.height/2+5,n),this.updateBoundingBox(t,i)}}}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.icon.size*.5,this.boundingBox.left=e-this.options.icon.size*.5,this.boundingBox.right=e+this.options.icon.size*.5,this.boundingBox.bottom=t+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5))}_icon(e,t,i,n,s,o){const a=Number(this.options.icon.size);this.options.icon.code!==void 0?(e.font=[this.options.icon.weight!=null?this.options.icon.weight:n?"bold":"",(this.options.icon.weight!=null&&n?5:0)+a+"px",this.options.icon.face].join(" "),e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",this.enableShadow(e,o),e.fillText(this.options.icon.code,t,i),this.disableShadow(e,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let Qre=class extends Q0{constructor(e,t,i,n,s){super(e,t,i),this.setImages(n,s)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0){const s=this.options.size*2;this.width=s,this.height=s;return}this.needsRefresh(t,i)&&this._resizeImage()}draw(e,t,i,n,s,o){e.save(),this.switchImages(n),this.resize();let a=t,u=i;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=t,this.top=i,a+=this.width/2,u+=this.height/2):(this.left=t-this.width/2,this.top=i-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){const l=this.options.borderWidth,c=this.options.borderWidthSelected||2*this.options.borderWidth,d=(n?c:l)/this.body.view.scale;e.lineWidth=Math.min(this.width,d),e.beginPath();let h=n?this.options.color.highlight.border:s?this.options.color.hover.border:this.options.color.border,f=n?this.options.color.highlight.background:s?this.options.color.hover.background:this.options.color.background;o.opacity!==void 0&&(h=lr(h,o.opacity),f=lr(f,o.opacity)),e.strokeStyle=h,e.fillStyle=f,e.rect(this.left-.5*e.lineWidth,this.top-.5*e.lineWidth,this.width+e.lineWidth,this.height+e.lineWidth),ka(e).call(e),this.performStroke(e,o),e.closePath()}this._drawImageAtPosition(e,o),this._drawImageLabel(e,a,u,n,s),this.updateBoundingBox(t,i),e.restore()}updateBoundingBox(e,t){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=e,this.top=t):(this.left=e-this.width/2,this.top=t-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class Zre extends rn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"square",2,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class eie extends rn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"hexagon",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class tie extends rn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"star",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}class rie extends Jn{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){this.needsRefresh(t,i)&&(this.textSize=this.labelModule.getTextSize(e,t,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.enableShadow(e,o),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s),this.disableShadow(e,o),this.updateBoundingBox(t,i,e,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}let iie=class extends rn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"triangle",3,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};class nie extends rn{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"triangleDown",3,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}}function EB(r,e){var t=nt(r);if(Ui){var i=Ui(r);e&&(i=Yt(i).call(i,function(n){return tn(r,n).enumerable})),t.push.apply(t,i)}return t}function SB(r){for(var e=1;et[l]!=null);u.push("font"),Mu(u,e,a),e.color=_w(e.color)}static parseOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(Mu(["color","fixed","shadow"],e,t,i),Je.checkMass(t),e.opacity!==void 0&&(Je.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),t.opacity!==void 0&&(Je.checkOpacity(t.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity),t.opacity=void 0)),t.shapeProperties&&!Je.checkCoordinateOrigin(t.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+t.shapeProperties.coordinateOrigin),ur(e,t,"shadow",n),t.color!==void 0&&t.color!==null){const a=_w(t.color);oH(e.color,a)}else i===!0&&t.color===null&&(e.color=Li(n.color));t.fixed!==void 0&&t.fixed!==null&&(typeof t.fixed=="boolean"?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(t.fixed.x!==void 0&&typeof t.fixed.x=="boolean"&&(e.fixed.x=t.fixed.x),t.fixed.y!==void 0&&typeof t.fixed.y=="boolean"&&(e.fixed.y=t.fixed.y))),i===!0&&t.font===null&&(e.font=Li(n.font)),Je.updateGroupOptions(e,t,s),t.scaling!==void 0&&ur(e.scaling,t.scaling,"label",n.scaling)}getFormattingValues(){const e={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?this.chooser===!0?this.selected?(this.options.borderWidthSelected!=null?e.borderWidth=this.options.borderWidthSelected:e.borderWidth*=2,e.color=this.options.color.highlight.background,e.borderColor=this.options.color.highlight.border,e.shadow=this.options.shadow.enabled):this.hover&&(e.color=this.options.color.hover.background,e.borderColor=this.options.color.hover.border,e.shadow=this.options.shadow.enabled):typeof this.chooser=="function"&&(this.chooser(e,this.options.id,this.selected,this.hover),e.shadow===!1&&(e.shadowColor!==this.options.shadow.color||e.shadowSize!==this.options.shadow.size||e.shadowX!==this.options.shadow.x||e.shadowY!==this.options.shadow.y)&&(e.shadow=!0)):e.shadow=this.options.shadow.enabled,this.options.opacity!==void 0){const t=this.options.opacity;e.borderColor=lr(e.borderColor,t),e.color=lr(e.color,t),e.shadowColor=lr(e.shadowColor,t)}return e}updateLabelModule(e){(this.options.label===void 0||this.options.label===null)&&(this.options.label=""),Je.updateGroupOptions(this.options,SB(SB({},e),{},{color:e&&e.color||this._localColor||void 0}),this.grouplist);const t=this.grouplist.get(this.options.group,!1),i=[e,this.options,t,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,i),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}updateShape(e){if(e===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new Hre(this.options,this.body,this.labelModule);break;case"circle":this.shape=new Wre(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new Ure(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new Kre(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new Gre(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new Yre(this.options,this.body,this.labelModule);break;case"dot":this.shape=new Xre(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new wB(this.options,this.body,this.labelModule);break;case"icon":this.shape=new Jre(this.options,this.body,this.labelModule);break;case"image":this.shape=new Qre(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new Zre(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new eie(this.options,this.body,this.labelModule);break;case"star":this.shape=new tie(this.options,this.body,this.labelModule);break;case"text":this.shape=new rie(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new iie(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new nie(this.options,this.body,this.labelModule);break;default:this.shape=new wB(this.options,this.body,this.labelModule);break}this.needsRefresh()}select(){this.selected=!0,this.needsRefresh()}unselect(){this.selected=!1,this.needsRefresh()}needsRefresh(){this.shape.refreshNeeded=!0}getTitle(){return this.options.title}distanceToBorder(e,t){return this.shape.distanceToBorder(e,t)}isFixed(){return this.options.fixed.x&&this.options.fixed.y}isSelected(){return this.selected}getValue(){return this.options.value}getLabelSize(){return this.labelModule.size()}setValueRange(e,t,i){if(this.options.value!==void 0){const n=this.options.scaling.customScalingFunction(e,t,i,this.options.value),s=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){const o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*o}this.options.size=this.options.scaling.min+n*s}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}draw(e){const t=this.getFormattingValues();return this.shape.draw(e,this.x,this.y,this.selected,this.hover,t)||{}}updateBoundingBox(e){this.shape.updateBoundingBox(this.x,this.y,e)}resize(e){const t=this.getFormattingValues();this.shape.resize(e,this.selected,this.hover,t)}getItemsOnPoint(e){const t=[];return this.labelModule.visible()&&Iw(this.labelModule.getSize(),e)&&t.push({nodeId:this.id,labelId:0}),Iw(this.shape.boundingBox,e)&&t.push({nodeId:this.id}),t}isOverlappingWith(e){return this.shape.lefte.left&&this.shape.tope.top}isBoundingBoxOverlappingWith(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}static checkMass(e,t){if(e.mass!==void 0&&e.mass<=0){let i="";t!==void 0&&(i=" in node id: "+t),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",cH),e.mass=1}}}class sie{constructor(e,t,i,n){var s;if(this.body=e,this.images=t,this.groups=i,this.layoutEngine=n,this.body.functions.createNode=H(s=this.create).call(s,this),this.nodesListeners={add:(o,a)=>{this.add(a.items)},update:(o,a)=>{this.update(a.items,a.data,a.oldData)},remove:(o,a)=>{this.remove(a.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:void 0,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(o,a,u,l){if(a===o)return .5;{const c=1/(a-o);return Math.max(0,(l-o)*c)}}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1,coordinateOrigin:"center"},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=Li(this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e,t;this.body.emitter.on("refreshNodes",H(e=this.refresh).call(e,this)),this.body.emitter.on("refresh",H(t=this.refresh).call(t,this)),this.body.emitter.on("destroy",()=>{Te(this.nodesListeners,(i,n)=>{this.body.data.nodes&&this.body.data.nodes.off(n,i)}),delete this.body.functions.createNode,delete this.nodesListeners.add,delete this.nodesListeners.update,delete this.nodesListeners.remove,delete this.nodesListeners})}setOptions(e){if(e!==void 0){if(Je.parseOptions(this.options,e),e.opacity!==void 0&&(Ow(e.opacity)||!mn(e.opacity)||e.opacity<0||e.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(const t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(const t of nt(this.body.nodes))this.body.nodes[t].updateLabelModule(),this.body.nodes[t].needsRefresh();if(e.size!==void 0)for(const t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].needsRefresh();(e.hidden!==void 0||e.physics!==void 0)&&this.body.emitter.emit("_dataChanged")}}setData(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.body.data.nodes;if(n5("id",e))this.body.data.nodes=e;else if(st(e))this.body.data.nodes=new Cu,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new Cu;else throw new TypeError("Array or DataSet expected");if(i&&Te(this.nodesListeners,function(n,s){i.off(s,n)}),this.body.nodes={},this.body.data.nodes){const n=this;Te(this.nodesListeners,function(o,a){n.body.data.nodes.on(a,o)});const s=this.body.data.nodes.getIds();this.add(s,!0)}t===!1&&this.body.emitter.emit("_dataChanged")}add(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i;const n=[];for(let s=0;s1&&arguments[1]!==void 0?arguments[1]:Je;return new t(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}refresh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Te(this.body.nodes,(t,i)=>{const n=this.body.data.nodes.get(i);n!==void 0&&(e===!0&&t.setOptions({x:null,y:null}),t.setOptions({fixed:!1}),t.setOptions(n))})}getPositions(e){const t={};if(e!==void 0){if(st(e)===!0){for(let i=0;i{this.body.emitter.emit("startSimulation")},0)):console.error("Node id supplied to moveNode does not exist. Provided: ",e)}}var OB={},IB;function oie(){if(IB)return OB;IB=1;var r=de(),e=Math.hypot,t=Math.abs,i=Math.sqrt,n=!!e&&e(1/0,NaN)!==1/0;return r({target:"Math",stat:!0,arity:2,forced:n},{hypot:function(o,a){for(var u=0,l=0,c=arguments.length,d=0,h,f;l0?(f=h/d,u+=f*f):u+=h;return d===1/0?1/0:d*i(u)}}),OB}var Y1,TB;function aie(){if(TB)return Y1;TB=1,oie();var r=je();return Y1=r.Math.hypot,Y1}var X1,$B;function uie(){if($B)return X1;$B=1;var r=aie();return X1=r,X1}var J1,PB;function lie(){return PB||(PB=1,J1=uie()),J1}var cie=lie(),die=ge(cie);class ut{static transform(e,t){st(e)||(e=[e]);const i=t.point.x,n=t.point.y,s=t.angle,o=t.length;for(let a=0;a4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,t),e.lineWidth=t.width,t.dashes!==!1?this._drawDashedLine(e,t,s):this._drawLine(e,t,s)}_drawLine(e,t,i,n,s){if(this.from!=this.to)this._line(e,t,i,n,s);else{const[o,a,u]=this._getCircleData(e);this._circle(e,t,o,a,u)}}_drawDashedLine(e,t,i,n,s){e.lineCap="round";const o=st(t.dashes)?t.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(o),e.lineDashOffset=0,this.from!=this.to)this._line(e,t,i);else{const[a,u,l]=this._getCircleData(e);this._circle(e,t,a,u,l)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)p5(e,this.from.x,this.from.y,this.to.x,this.to.y,o);else{const[a,u,l]=this._getCircleData(e);this._circle(e,t,a,u,l)}this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}}findBorderPosition(e,t,i){return this.from!=this.to?this._findBorderPosition(e,t,i):this._findBorderPositionCircle(e,t,i)}findBorderPositions(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};{var t;const[i,n]=Fr(t=this._getCircleData(e)).call(t,0,2);return{from:this._findBorderPositionCircle(this.from,e,{x:i,y:n,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:i,y:n,low:.6,high:.8,direction:1})}}}_getCircleData(e){const t=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);const i=TH(e,this.options.selfReference.angle,t,this.from);return[i.x,i.y,t]}_pointOnCircle(e,t,i,n){const s=n*2*Math.PI;return{x:e+i*Math.cos(s),y:t-i*Math.sin(s)}}_findBorderPositionCircle(e,t,i){const n=i.x,s=i.y;let o=i.low,a=i.high;const u=i.direction,l=10,c=this.options.selfReference.size,d=.05;let h,f=(o+a)*.5,p=0;this.options.arrowStrikethrough===!0&&(u===-1?p=this.options.endPointOffset.from:u===1&&(p=this.options.endPointOffset.to));let v=0;do{f=(o+a)*.5,h=this._pointOnCircle(n,s,c,f);const _=Math.atan2(e.y-h.y,e.x-h.x),m=e.distanceToBorder(t,_)+p,g=Math.sqrt(Math.pow(h.x-e.x,2)+Math.pow(h.y-e.y,2)),E=m-g;if(Math.abs(E)0?u>0?o=f:a=f:u>0?a=f:o=f,++v}while(o<=a&&v1?c=1:c<0&&(c=0);const d=e+c*a,h=t+c*u,f=d-s,p=h-o;return Math.sqrt(f*f+p*p)}getArrowData(e,t,i,n,s,o){let a,u,l,c,d,h,f;const p=o.width;t==="from"?(l=this.from,c=this.to,d=o.fromArrowScale<0,h=Math.abs(o.fromArrowScale),f=o.fromArrowType):t==="to"?(l=this.to,c=this.from,d=o.toArrowScale<0,h=Math.abs(o.toArrowScale),f=o.toArrowType):(l=this.to,c=this.from,d=o.middleArrowScale<0,h=Math.abs(o.middleArrowScale),f=o.middleArrowType);const v=15*h+3*p;if(l!=c){const E=die(l.x-c.x,l.y-c.y),y=v/E;if(t!=="middle")if(this.options.smooth.enabled===!0){const I=this._findBorderPosition(l,e,{via:i}),O=this.getPoint(I.t+y*(t==="from"?1:-1),i);a=Math.atan2(I.y-O.y,I.x-O.x),u=I}else a=Math.atan2(l.y-c.y,l.x-c.x),u=this._findBorderPosition(l,e);else{const I=(d?-y:y)/2,O=this.getPoint(.5+I,i),T=this.getPoint(.5-I,i);a=Math.atan2(O.y-T.y,O.x-T.x),u=this.getPoint(.5,i)}}else{const[E,y,I]=this._getCircleData(e);if(t==="from"){const O=this.options.selfReference.angle,T=this.options.selfReference.angle+Math.PI,b=this._findBorderPositionCircle(this.from,e,{x:E,y,low:O,high:T,direction:-1});a=b.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,u=b}else if(t==="to"){const O=this.options.selfReference.angle,T=this.options.selfReference.angle+Math.PI,b=this._findBorderPositionCircle(this.from,e,{x:E,y,low:O,high:T,direction:1});a=b.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,u=b}else{const O=this.options.selfReference.angle/(2*Math.PI);u=this._pointOnCircle(E,y,I,O),a=O*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}const _=u.x-v*.9*Math.cos(a),m=u.y-v*.9*Math.sin(a);return{point:u,core:{x:_,y:m},angle:a,length:v,type:f}}drawArrowHead(e,t,i,n,s){e.strokeStyle=this.getColor(e,t),e.fillStyle=e.strokeStyle,e.lineWidth=t.width,PH.draw(e,s)&&(this.enableShadow(e,t),ka(e).call(e),this.disableShadow(e,t))}enableShadow(e,t){t.shadow===!0&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}disableShadow(e,t){t.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}drawBackground(e,t){if(t.background!==!1){const i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=t.backgroundColor,e.lineWidth=t.backgroundSize,this.setStrokeDashed(e,t.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,t.dashes)}}setStrokeDashed(e,t){if(t!==!1)if(e.setLineDash!==void 0){const i=st(t)?t:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}function xB(r,e){var t=nt(r);if(Ui){var i=Ui(r);e&&(i=Yt(i).call(i,function(n){return tn(r,n).enumerable})),t.push.apply(t,i)}return t}function qB(r){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates();const n=10,s=.2;let o=!1,a=1,u=0,l=this.to,c,d,h=this.options.endPointOffset?this.options.endPointOffset.to:0;e.id===this.from.id&&(l=this.from,o=!0,h=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(h=0);let f=0;do{d=(u+a)*.5,c=this.getPoint(d,i);const p=Math.atan2(l.y-c.y,l.x-c.x),v=l.distanceToBorder(t,p)+h,_=Math.sqrt(Math.pow(c.x-l.x,2)+Math.pow(c.y-l.y,2)),m=v-_;if(Math.abs(m)0&&(l=this._getDistanceToLine(p,v,h,f,s,o),u=l{this.positionBezierNode()},this._body.emitter.on("_repositionBezierNodes",this._boundFunction)}setOptions(e){super.setOptions(e);let t=!1;this.options.physics!==e.physics&&(t=!0),this.options=e,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),t===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}connect(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}cleanup(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}setupSupportNode(){if(this.via===void 0){const e="edgeId:"+this.id,t=this._body.functions.createNode({id:e,shape:"circle",physics:!0,hidden:!0});this._body.nodes[e]=t,this.via=t,this.via.parentEdgeId=this.id,this.positionBezierNode()}}positionBezierNode(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}_line(e,t,i){this._bezierCurve(e,t,i)}_getViaCoordinates(){return this.via}getViaNode(){return this.via}getPoint(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){const[i,n,s]=this._getCircleData(),o=2*Math.PI*(1-e);return{x:i+s*Math.sin(o),y:n+s-s*(1-Math.cos(o))}}else return{x:Math.pow(1-e,2)*this.fromPoint.x+2*e*(1-e)*t.x+Math.pow(e,2)*this.toPoint.x,y:Math.pow(1-e,2)*this.fromPoint.y+2*e*(1-e)*t.y+Math.pow(e,2)*this.toPoint.y}}_findBorderPosition(e,t){return this._findBorderPositionBezier(e,t,this.via)}_getDistanceToEdge(e,t,i,n,s,o){return this._getDistanceToBezierEdge(e,t,i,n,s,o,this.via)}}class DB extends Z0{constructor(e,t,i){super(e,t,i)}_line(e,t,i){this._bezierCurve(e,t,i)}getViaNode(){return this._getViaCoordinates()}_getViaCoordinates(){const e=this.options.smooth.roundness,t=this.options.smooth.type;let i=Math.abs(this.from.x-this.to.x),n=Math.abs(this.from.y-this.to.y);if(t==="discrete"||t==="diagonalCross"){let s,o;i<=n?s=o=e*n:s=o=e*i,this.from.x>this.to.x&&(s=-s),this.from.y>=this.to.y&&(o=-o);let a=this.from.x+s,u=this.from.y+o;return t==="discrete"&&(i<=n?a=ithis.to.x&&(s=-s),this.from.y>=this.to.y&&(o=-o);let a=this.from.x+s,u=this.from.y+o;return i<=n?this.from.x<=this.to.x?a=this.to.xa?this.to.x:a:this.from.y>=this.to.y?u=this.to.y>u?this.to.y:u:u=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(e,t,i.via)}_getDistanceToEdge(e,t,i,n,s,o){let a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(e,t,i,n,s,o,a)}getPoint(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates();const i=e,n=Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*t.x+Math.pow(i,2)*this.toPoint.x,s=Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*t.y+Math.pow(i,2)*this.toPoint.y;return{x:n,y:s}}}class Oie extends Z0{constructor(e,t,i){super(e,t,i)}_getDistanceToBezierEdge2(e,t,i,n,s,o,a,u){let l=1e9,c=e,d=t;const h=[0,0,0,0];for(let f=1;f<10;f++){const p=.1*f;h[0]=Math.pow(1-p,3),h[1]=3*p*Math.pow(1-p,2),h[2]=3*Math.pow(p,2)*(1-p),h[3]=Math.pow(p,3);const v=h[0]*e+h[1]*a.x+h[2]*u.x+h[3]*i,_=h[0]*t+h[1]*a.y+h[2]*u.y+h[3]*n;if(f>0){const m=this._getDistanceToLine(c,d,v,_,s,o);l=mMath.abs(t)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(n=this.from.y,o=this.to.y,i=this.from.x-a*e,s=this.to.x+a*e):(n=this.from.y-a*t,o=this.to.y+a*t,i=this.from.x,s=this.to.x),[{x:i,y:n},{x:s,y:o}]}getViaNode(){return this._getViaCoordinates()}_findBorderPosition(e,t){return this._findBorderPositionBezier(e,t)}_getDistanceToEdge(e,t,i,n,s,o){let[a,u]=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge2(e,t,i,n,s,o,a,u)}getPoint(e){let[t,i]=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates();const n=e,s=[Math.pow(1-n,3),3*n*Math.pow(1-n,2),3*Math.pow(n,2)*(1-n),Math.pow(n,3)],o=s[0]*this.fromPoint.x+s[1]*t.x+s[2]*i.x+s[3]*this.toPoint.x,a=s[0]*this.fromPoint.y+s[1]*t.y+s[2]*i.y+s[3]*this.toPoint.y;return{x:o,y:a}}}class NB extends RH{constructor(e,t,i){super(e,t,i)}_line(e,t){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),e.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}getViaNode(){}getPoint(e){return{x:(1-e)*this.fromPoint.x+e*this.toPoint.x,y:(1-e)*this.fromPoint.y+e*this.toPoint.y}}_findBorderPosition(e,t){let i=this.to,n=this.from;e.id===this.from.id&&(i=this.from,n=this.to);const s=Math.atan2(i.y-n.y,i.x-n.x),o=i.x-n.x,a=i.y-n.y,u=Math.sqrt(o*o+a*a),l=e.distanceToBorder(t,s),c=(u-l)/u;return{x:(1-c)*n.x+c*i.x,y:(1-c)*n.y+c*i.y,t:0}}_getDistanceToEdge(e,t,i,n,s,o){return this._getDistanceToLine(e,t,i,n,s,o)}}class ji{constructor(e,t,i,n,s){if(t===void 0)throw new Error("No body provided");this.options=Li(n),this.globalOptions=n,this.defaultOptions=s,this.body=t,this.imagelist=i,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new Is(this.body,this.options,!0),this.setOptions(e)}setOptions(e){if(!e)return;let t=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;ji.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=IH(e.value));const i=[e,this.options,this.defaultOptions];return this.chooser=J0("edge",i),this.updateLabelModule(e),t=this.updateEdgeType()||t,this._setInteractionWidths(),this.connect(),t}static parseOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(lo(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],e,t,i),t.endPointOffset!==void 0&&t.endPointOffset.from!==void 0&&(mn(t.endPointOffset.from)?e.endPointOffset.from=t.endPointOffset.from:(e.endPointOffset.from=n.endPointOffset.from!==void 0?n.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),t.endPointOffset!==void 0&&t.endPointOffset.to!==void 0&&(mn(t.endPointOffset.to)?e.endPointOffset.to=t.endPointOffset.to:(e.endPointOffset.to=n.endPointOffset.to!==void 0?n.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Fu(t.label)?e.label=t.label:Fu(e.label)||(e.label=void 0),ur(e,t,"smooth",n),ur(e,t,"shadow",n),ur(e,t,"background",n),t.dashes!==void 0&&t.dashes!==null?e.dashes=t.dashes:i===!0&&t.dashes===null&&(e.dashes=Sn(n.dashes)),t.scaling!==void 0&&t.scaling!==null?(t.scaling.min!==void 0&&(e.scaling.min=t.scaling.min),t.scaling.max!==void 0&&(e.scaling.max=t.scaling.max),ur(e.scaling,t.scaling,"label",n.scaling)):i===!0&&t.scaling===null&&(e.scaling=Sn(n.scaling)),t.arrows!==void 0&&t.arrows!==null)if(typeof t.arrows=="string"){const a=t.arrows.toLowerCase();e.arrows.to.enabled=Be(a).call(a,"to")!=-1,e.arrows.middle.enabled=Be(a).call(a,"middle")!=-1,e.arrows.from.enabled=Be(a).call(a,"from")!=-1}else if(typeof t.arrows=="object")ur(e.arrows,t.arrows,"to",n.arrows),ur(e.arrows,t.arrows,"middle",n.arrows),ur(e.arrows,t.arrows,"from",n.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+Fa(t.arrows));else i===!0&&t.arrows===null&&(e.arrows=Sn(n.arrows));if(t.color!==void 0&&t.color!==null){const a=Ss(t.color)?{color:t.color,highlight:t.color,hover:t.color,inherit:!1,opacity:1}:t.color,u=e.color;if(s)Ge(u,n.color,!1,i);else for(const l in u)Object.prototype.hasOwnProperty.call(u,l)&&delete u[l];if(Ss(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,a.opacity===void 0&&(u.opacity=1);else{let l=!1;a.color!==void 0&&(u.color=a.color,l=!0),a.highlight!==void 0&&(u.highlight=a.highlight,l=!0),a.hover!==void 0&&(u.hover=a.hover,l=!0),a.inherit!==void 0&&(u.inherit=a.inherit),a.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,a.opacity))),l===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else i===!0&&t.color===null&&(e.color=Li(n.color));i===!0&&t.font===null&&(e.font=Li(n.font)),Object.prototype.hasOwnProperty.call(t,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=t.selfReferenceSize)}getFormattingValues(){const e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,t=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,n=this.options.color.inherit,s={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:t,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:n?void 0:this.options.color.color,inheritsColor:n,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){const o=this.options.selectionWidth;typeof o=="function"?s.width=o(s.width):typeof o=="number"&&(s.width+=o),s.width=Math.max(s.width,.3/this.body.view.scale),s.color=this.options.color.highlight,s.shadow=this.options.shadow.enabled}else if(this.hover){const o=this.options.hoverWidth;typeof o=="function"?s.width=o(s.width):typeof o=="number"&&(s.width+=o),s.width=Math.max(s.width,.3/this.body.view.scale),s.color=this.options.color.hover,s.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(s,this.options.id,this.selected,this.hover),s.color!==void 0&&(s.inheritsColor=!1),s.shadow===!1&&(s.shadowColor!==this.options.shadow.color||s.shadowSize!==this.options.shadow.size||s.shadowX!==this.options.shadow.x||s.shadowY!==this.options.shadow.y)&&(s.shadow=!0));else s.shadow=this.options.shadow.enabled,s.width=Math.max(s.width,.3/this.body.view.scale);return s}updateLabelModule(e){const t=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,t),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}updateEdgeType(){const e=this.options.smooth;let t=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof AB&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof MB&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof DB&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof NB&&e.type.enabled===!1)&&(i=!1),i===!0&&(t=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(t=!0,this.edgeType=new AB(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new MB(this.options,this.body,this.labelModule):this.edgeType=new DB(this.options,this.body,this.labelModule):this.edgeType=new NB(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),t}connect(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}disconnect(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}getTitle(){return this.title}isSelected(){return this.selected}getValue(){return this.options.value}setValueRange(e,t,i){if(this.options.value!==void 0){const n=this.options.scaling.customScalingFunction(e,t,i,this.options.value),s=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){const o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*o}this.options.width=this.options.scaling.min+n*s}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}_setInteractionWidths(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}draw(e){const t=this.getFormattingValues();if(t.hidden)return;const i=this.edgeType.getViaNode();this.edgeType.drawLine(e,t,this.selected,this.hover,i),this.drawLabel(e,i)}drawArrows(e){const t=this.getFormattingValues();if(t.hidden)return;const i=this.edgeType.getViaNode(),n={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,t.fromArrow&&(n.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.fromPoint=n.from.core),t.fromArrowSrc&&(n.from.image=this.imagelist.load(t.fromArrowSrc)),t.fromArrowImageWidth&&(n.from.imageWidth=t.fromArrowImageWidth),t.fromArrowImageHeight&&(n.from.imageHeight=t.fromArrowImageHeight)),t.toArrow&&(n.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.toPoint=n.to.core),t.toArrowSrc&&(n.to.image=this.imagelist.load(t.toArrowSrc)),t.toArrowImageWidth&&(n.to.imageWidth=t.toArrowImageWidth),t.toArrowImageHeight&&(n.to.imageHeight=t.toArrowImageHeight)),t.middleArrow&&(n.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,t),t.middleArrowSrc&&(n.middle.image=this.imagelist.load(t.middleArrowSrc)),t.middleArrowImageWidth&&(n.middle.imageWidth=t.middleArrowImageWidth),t.middleArrowImageHeight&&(n.middle.imageHeight=t.middleArrowImageHeight)),t.fromArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.from),t.middleArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.middle),t.toArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.to)}drawLabel(e,t){if(this.options.label!==void 0){const i=this.from,n=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);let s;if(i.id!=n.id){this.labelModule.pointToSelf=!1,s=this.edgeType.getPoint(.5,t),e.save();const o=this._getRotation(e);o.angle!=0&&(e.translate(o.x,o.y),e.rotate(o.angle)),this.labelModule.draw(e,s.x,s.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;const o=TH(e,this.options.selfReference.angle,this.options.selfReference.size,i);s=this._pointOnCircle(o.x,o.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,s.x,s.y,this.selected,this.hover)}}}getItemsOnPoint(e){const t=[];if(this.labelModule.visible()){const n=this._getRotation();Iw(this.labelModule.getSize(),e,n)&&t.push({edgeId:this.id,labelId:0})}const i={left:e.x,top:e.y};return this.isOverlappingWith(i)&&t.push({edgeId:this.id}),t}isOverlappingWith(e){if(this.connected){const i=this.from.x,n=this.from.y,s=this.to.x,o=this.to.y,a=e.left,u=e.top;return this.edgeType.getDistanceToEdge(i,n,s,o,a,u)<10}else return!1}_getRotation(e){const t=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,t);e!==void 0&&this.labelModule.calculateLabelSize(e,this.selected,this.hover,i.x,i.y);const n={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible()||this.options.font.align==="horizontal")return n;const s=this.from.y-this.to.y,o=this.from.x-this.to.x;let a=Math.atan2(s,o);return(a<-1&&o<0||a>0&&o<0)&&(a+=Math.PI),n.angle=a,n}_pointOnCircle(e,t,i,n){return{x:e+i*Math.cos(n),y:t-i*Math.sin(n)}}select(){this.selected=!0}unselect(){this.selected=!1}cleanup(){return this.edgeType.cleanup()}remove(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}endPointsValid(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}class Iie{constructor(e,t,i){var n;this.body=e,this.images=t,this.groups=i,this.body.functions.createEdge=H(n=this.create).call(n,this),this.edgesListeners={add:(s,o)=>{this.add(o.items)},update:(s,o)=>{this.update(o.items)},remove:(s,o)=>{this.remove(o.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,o,a,u){if(o===s)return .5;{const l=1/(o-s);return Math.max(0,(u-s)*l)}}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Ge(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e=this,t,i;this.body.emitter.on("_forceDisableDynamicCurves",function(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n==="dynamic"&&(n="continuous");let o=!1;for(const a in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,a)){const u=e.body.edges[a],l=e.body.data.edges.get(a);if(l!=null){const c=l.smooth;c!==void 0&&c.enabled===!0&&c.type==="dynamic"&&(n===void 0?u.setOptions({smooth:!1}):u.setOptions({smooth:{type:n}}),o=!0)}}s===!0&&o===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",()=>{this.reconnectEdges()}),this.body.emitter.on("refreshEdges",H(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",H(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",()=>{Te(this.edgesListeners,(n,s)=>{this.body.data.edges&&this.body.data.edges.off(s,n)}),delete this.body.functions.createEdge,delete this.edgesListeners.add,delete this.edgesListeners.update,delete this.edgesListeners.remove,delete this.edgesListeners})}setOptions(e){if(e!==void 0){ji.parseOptions(this.options,e,!0,this.defaultOptions,!0);let t=!1;if(e.smooth!==void 0)for(const i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(t=this.body.edges[i].updateEdgeType()||t);if(e.font!==void 0)for(const i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&this.body.edges[i].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||t===!0)&&this.body.emitter.emit("_dataChanged")}}setData(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.body.data.edges;if(n5("id",e))this.body.data.edges=e;else if(st(e))this.body.data.edges=new Cu,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new Cu;else throw new TypeError("Array or DataSet expected");if(i&&Te(this.edgesListeners,(n,s)=>{i.off(s,n)}),this.body.edges={},this.body.data.edges){Te(this.edgesListeners,(s,o)=>{this.body.data.edges.on(o,s)});const n=this.body.data.edges.getIds();this.add(n,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),t===!1&&this.body.emitter.emit("_dataChanged")}add(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.body.edges,n=this.body.data.edges;for(let s=0;s1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length===0)return;const i=this.body.edges;Te(e,n=>{const s=i[n];s!==void 0&&s.remove()}),t&&this.body.emitter.emit("_dataChanged")}refresh(){Te(this.body.edges,(e,t)=>{const i=this.body.data.edges.get(t);i!==void 0&&e.setOptions(i)})}create(e){return new ji(e,this.body,this.images,this.options,this.defaultOptions)}reconnectEdges(){let e;const t=this.body.nodes,i=this.body.edges;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const n=i[e];n.from=null,n.to=null,n.connect()}}getConnectedNodes(e){const t=[];if(this.body.edges[e]!==void 0){const i=this.body.edges[e];i.fromId!==void 0&&t.push(i.fromId),i.toId!==void 0&&t.push(i.toId)}return t}_updateState(){this._addMissingEdges(),this._removeInvalidEdges()}_removeInvalidEdges(){const e=[];Te(this.body.edges,(t,i)=>{const n=this.body.nodes[t.toId],s=this.body.nodes[t.fromId];n!==void 0&&n.isCluster===!0||s!==void 0&&s.isCluster===!0||(n===void 0||s===void 0)&&e.push(i)}),this.remove(e,!1)}_addMissingEdges(){const e=this.body.data.edges;if(e==null)return;const t=this.body.edges,i=[];He(e).call(e,(n,s)=>{t[s]===void 0&&i.push(s)}),this.add(i,!0)}}class CH{constructor(e,t,i){this.body=e,this.physicsBody=t,this.barnesHutTree,this.setOptions(i),this._rng=Cl("BARNES HUT SOLVER")}setOptions(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}solve(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){let e;const t=this.body.nodes,i=this.physicsBody.physicsNodeIndices,n=i.length,s=this._formBarnesHutTree(t,i);this.barnesHutTree=s;for(let o=0;o0&&this._getForceContributions(s.root,e)}}_getForceContributions(e,t){this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)}_getForceContribution(e,t){if(e.childrenCount>0){const i=e.centerOfMass.x-t.x,n=e.centerOfMass.y-t.y,s=Math.sqrt(i*i+n*n);s*e.calcSize>this.thetaInversed?this._calculateForces(s,i,n,t,e):e.childrenCount===4?this._getForceContributions(e,t):e.children.data.id!=t.id&&this._calculateForces(s,i,n,t,e)}}_calculateForces(e,t,i,n,s){e===0&&(e=.1,t=e),this.overlapAvoidanceFactor<1&&n.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,e-n.shape.radius));const o=this.options.gravitationalConstant*s.mass*n.options.mass/Math.pow(e,3),a=t*o,u=i*o;this.physicsBody.forces[n.id].x+=a,this.physicsBody.forces[n.id].y+=u}_formBarnesHutTree(e,t){let i;const n=t.length;let s=e[t[0]].x,o=e[t[0]].y,a=e[t[0]].x,u=e[t[0]].y;for(let _=1;_0&&(ga&&(a=g),Eu&&(u=E))}const l=Math.abs(a-s)-Math.abs(u-o);l>0?(o-=.5*l,u+=.5*l):(s+=.5*l,a-=.5*l);const d=Math.max(1e-5,Math.abs(a-s)),h=.5*d,f=.5*(s+a),p=.5*(o+u),v={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:f-h,maxX:f+h,minY:p-h,maxY:p+h},size:d,calcSize:1/d,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(v.root);for(let _=0;_0&&this._placeInTree(v.root,i);return v}_updateBranchMass(e,t){const i=e.centerOfMass,n=e.mass+t.options.mass,s=1/n;i.x=i.x*e.mass+t.x*t.options.mass,i.x*=s,i.y=i.y*e.mass+t.y*t.options.mass,i.y*=s,e.mass=n;const o=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidtht.x?n.maxY>t.y?s="NW":s="SW":n.maxY>t.y?s="NE":s="SE",this._placeInRegion(e,t,s)}_placeInRegion(e,t,i){const n=e.children[i];switch(n.childrenCount){case 0:n.children.data=t,n.childrenCount=1,this._updateBranchMass(n,t);break;case 1:n.children.data.x===t.x&&n.children.data.y===t.y?(t.x+=this._rng(),t.y+=this._rng()):(this._splitBranch(n),this._placeInTree(n,t));break;case 4:this._placeInTree(n,t);break}}_splitBranch(e){let t=null;e.childrenCount===1&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),t!=null&&this._placeInTree(e,t)}_insertRegion(e,t){let i,n,s,o;const a=.5*e.size;switch(t){case"NW":i=e.range.minX,n=e.range.minX+a,s=e.range.minY,o=e.range.minY+a;break;case"NE":i=e.range.minX+a,n=e.range.maxX,s=e.range.minY,o=e.range.minY+a;break;case"SW":i=e.range.minX,n=e.range.minX+a,s=e.range.minY+a,o=e.range.maxY;break;case"SE":i=e.range.minX+a,n=e.range.maxX,s=e.range.minY+a,o=e.range.maxY;break}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:n,minY:s,maxY:o},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}_debug(e,t){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}_drawBranch(e,t,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=i,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}}class Tie{constructor(e,t,i){this._rng=Cl("REPULSION SOLVER"),this.body=e,this.physicsBody=t,this.setOptions(i)}setOptions(e){this.options=e}solve(){let e,t,i,n,s,o,a,u;const l=this.body.nodes,c=this.physicsBody.physicsNodeIndices,d=this.physicsBody.forces,h=this.options.nodeDistance,f=-2/3/h,p=4/3;for(let v=0;v0){const o=s.edges.length+1,a=this.options.centralGravity*o*s.options.mass;n[s.id].x=t*a,n[s.id].y=i*a}}}class xie{constructor(e){this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},ft(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("initPhysics",()=>{this.initPhysics()}),this.body.emitter.on("_layoutFailed",()=>{this.layoutFailed=!0}),this.body.emitter.on("resetPhysics",()=>{this.stopSimulation(),this.ready=!1}),this.body.emitter.on("disablePhysics",()=>{this.physicsEnabled=!1,this.stopSimulation()}),this.body.emitter.on("restorePhysics",()=>{this.setOptions(this.options),this.ready===!0&&this.startSimulation()}),this.body.emitter.on("startSimulation",()=>{this.ready===!0&&this.startSimulation()}),this.body.emitter.on("stopSimulation",()=>{this.stopSimulation()}),this.body.emitter.on("destroy",()=>{this.stopSimulation(!1),this.body.emitter.off()}),this.body.emitter.on("_dataChanged",()=>{this.updatePhysicsData()})}setOptions(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Mu(["stabilization"],this.options,e),ur(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());const t=this.options.wind;t&&((typeof t.x!="number"||Ow(t.x))&&(t.x=0),(typeof t.y!="number"||Ow(t.y))&&(t.y=0)),this.timestep=this.options.timestep}this.init()}init(){let e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new Rie(this.body,this.physicsBody,e),this.edgesSolver=new Q1(this.body,this.physicsBody,e),this.gravitySolver=new Cie(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new Tie(this.body,this.physicsBody,e),this.edgesSolver=new Q1(this.body,this.physicsBody,e),this.gravitySolver=new mu(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new $ie(this.body,this.physicsBody,e),this.edgesSolver=new Pie(this.body,this.physicsBody,e),this.gravitySolver=new mu(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new CH(this.body,this.physicsBody,e),this.edgesSolver=new Q1(this.body,this.physicsBody,e),this.gravitySolver=new mu(this.body,this.physicsBody,e)),this.modelOptions=e}initPhysics(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}startSimulation(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=H(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}stopSimulation(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}simulationStep(){const e=xu();this.physicsTick(),(xu()-e<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}_emitStabilized(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&ui(()=>{this.body.emitter.emit("stabilized",{iterations:e}),this.startedStabilization=!1,this.stabilizationIterations=0},0)}physicsStep(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}adjustTimeStep(){this._evaluateStepQuality()===!0?this.timestep=1.2*this.timestep:this.timestep/1.2o))return!1;return!0}moveNodes(){const e=this.physicsBody.physicsNodeIndices;let t=0,i=0;const n=5;for(let s=0;so&&(e=e>0?o:-o),e}_performStep(e){const t=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);const n=this.physicsBody.velocities[e];return this.previousStates[e]={x:t.x,y:t.y,vx:n.x,vy:n.y},t.options.fixed.x===!1?(n.x=this.calculateComponentVelocity(n.x,i.x,t.options.mass),t.x+=n.x*this.timestep):(i.x=0,n.x=0),t.options.fixed.y===!1?(n.y=this.calculateComponentVelocity(n.y,i.y,t.options.mass),t.y+=n.y*this.timestep):(i.y=0,n.y=0),Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}_freezeNodes(){const e=this.body.nodes;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].x&&e[t].y){const i=e[t].options.fixed;this.freezeCache[t]={x:i.x,y:i.y},i.x=!0,i.y=!0}}_restoreFrozenNodes(){const e=this.body.nodes;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.freezeCache[t]!==void 0&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}stabilize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof e!="number"&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,ui(()=>this._stabilizationBatch(),0)}_startStabilizing(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}_stabilizationBatch(){const e=()=>this.stabilized===!1&&this.stabilizationIterations{this.body.emitter.emit("stabilizationProgress",{iterations:this.stabilizationIterations,total:this.targetIterations})};this._startStabilizing()&&t();let i=0;for(;e()&&i"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Z1=crypto.getRandomValues.bind(crypto)}return Z1(Aie)}const Mie=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var FB={randomUUID:Mie};function Nie(r,e,t){var n;r=r||{};const i=r.random??((n=r.rng)==null?void 0:n.call(r))??Die();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,qie(i)}function No(r,e,t){return FB.randomUUID&&!r?FB.randomUUID():Nie(r)}class Ht{constructor(){}static getRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,n=-1e9,s=1e9,o=-1e9,a;if(t.length>0)for(let u=0;ua.shape.boundingBox.left&&(s=a.shape.boundingBox.left),oa.shape.boundingBox.top&&(i=a.shape.boundingBox.top),n1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,n=-1e9,s=1e9,o=-1e9,a;if(t.length>0)for(let u=0;ua.x&&(s=a.x),oa.y&&(i=a.y),n{delete this.containedEdges[i.id]}),Te(t.containedNodes,(i,n)=>{this.containedNodes[n]=i}),t.containedNodes={},Te(t.containedEdges,(i,n)=>{this.containedEdges[n]=i}),t.containedEdges={},Te(t.edges,i=>{Te(this.edges,n=>{var s,o;const a=Be(s=n.clusteringEdgeReplacingIds).call(s,i.id);a!==-1&&(Te(i.clusteringEdgeReplacingIds,u=>{n.clusteringEdgeReplacingIds.push(u),this.body.edges[u].edgeReplacedById=n.id}),ai(o=n.clusteringEdgeReplacingIds).call(o,a,1))})}),t.edges=[]}}class kie{constructor(e){this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},ft(this.options,this.defaultOptions),this.body.emitter.on("_resetData",()=>{this.clusteredNodes={},this.clusteredEdges={}})}clusterByHubsize(e,t){e===void 0?e=this._getHubSize():typeof e=="object"&&(t=this._checkOptions(e),e=this._getHubSize());const i=[];for(let n=0;n=e&&i.push(s.id)}for(let n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);const i={},n={};Te(this.body.nodes,(s,o)=>{s.options&&e.joinCondition(s.options)===!0&&(i[o]=s,Te(s.edges,a=>{this.clusteredEdges[a.id]===void 0&&(n[a.id]=a)}))}),this._cluster(i,n,e,t)}clusterByEdgeCount(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;t=this._checkOptions(t);const n=[],s={};let o,a,u;for(let l=0;l0&&nt(d).length>0&&v===!0){const m=function(){for(let g=0;g1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,t)}clusterBridges(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,t)}clusterByConnection(e,t){var i;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");const s=this.body.nodes[e];t=this._checkOptions(t,s),t.clusterNodeProperties.x===void 0&&(t.clusterNodeProperties.x=s.x),t.clusterNodeProperties.y===void 0&&(t.clusterNodeProperties.y=s.y),t.clusterNodeProperties.fixed===void 0&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=s.options.fixed.x,t.clusterNodeProperties.fixed.y=s.options.fixed.y);const o={},a={},u=s.id,l=Ht.cloneOptions(s);o[u]=s;for(let d=0;d-1&&(a[p.id]=p)}}this._cluster(o,a,t,n)}_createClusterEdges(e,t,i,n){let s,o,a,u,l,c;const d=nt(e),h=[];for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}_cluster(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const s=[];for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&this.clusteredNodes[c]!==void 0&&s.push(c);for(let c=0;cn?a.x:n,s=a.yo?a.y:o;return{x:.5*(i+n),y:.5*(s+o)}}openCluster(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");const n=this.body.nodes[e];if(n===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(n.isCluster!==!0||n.containedNodes===void 0||n.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");const s=this.findNode(e),o=Be(s).call(s,e)-1;if(o>=0){const c=s[o];this.body.nodes[c]._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}const a=n.containedNodes,u=n.containedEdges;if(t!==void 0&&t.releaseFunction!==void 0&&typeof t.releaseFunction=="function"){const c={},d={x:n.x,y:n.y};for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)){const p=this.body.nodes[f];c[f]={x:p.x,y:p.y}}const h=t.releaseFunction(d,c);for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)){const p=this.body.nodes[f];h[f]!==void 0&&(p.x=h[f].x===void 0?n.x:h[f].x,p.y=h[f].y===void 0?n.y:h[f].y)}}else Te(a,function(c){c.options.fixed.x===!1&&(c.x=n.x),c.options.fixed.y===!1&&(c.y=n.y)});for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=this.body.nodes[c];d.vx=n.vx,d.vy=n.vy,d.setOptions({physics:!0}),delete this.clusteredNodes[c]}const l=[];for(let c=0;c0&&on&&(n=l.edges.length),e+=l.edges.length,t+=Math.pow(l.edges.length,2),i+=1}e=e/i,t=t/i;const s=t-Math.pow(e,2),o=Math.sqrt(s);let a=Math.floor(e+2*o);return a>n&&(a=n),a}_createClusteredEdge(e,t,i,n,s){const o=Ht.cloneOptions(i,"edge");Ge(o,n),o.from=e,o.to=t,o.id="clusterEdge:"+No(),s!==void 0&&Ge(o,s);const a=this.body.functions.createEdge(o);return a.clusteringEdgeReplacingIds=[i.id],a.connect(),this.body.edges[a.id]=a,a}_clusterEdges(e,t,i,n){if(t instanceof ji){const s=t,o={};o[s.id]=s,t=o}if(e instanceof Je){const s=e,o={};o[s.id]=s,e=o}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");n===void 0&&(n=i.clusterEdgeProperties),this._createClusterEdges(e,t,i,n);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&this.body.edges[s]!==void 0){const o=this.body.edges[s];this._backupEdgeOptions(o),o.setOptions({physics:!1})}for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(this.clusteredNodes[s]={clusterId:i.id,node:this.body.nodes[s]},this.body.nodes[s].setOptions({physics:!1}))}_getClusterNodeForNode(e){if(e===void 0)return;const t=this.clusteredNodes[e];if(t===void 0)return;const i=t.clusterId;if(i!==void 0)return this.body.nodes[i]}_filter(e,t){const i=[];return Te(e,n=>{t(n)&&i.push(n)}),i}_updateState(){let e;const t=[],i={},n=u=>{Te(this.body.nodes,l=>{l.isCluster===!0&&u(l)})};for(e in this.clusteredNodes){if(!Object.prototype.hasOwnProperty.call(this.clusteredNodes,e))continue;this.body.nodes[e]===void 0&&t.push(e)}n(function(u){for(let l=0;l{const l=this.body.edges[u];(l===void 0||!l.endPointsValid())&&(i[u]=u)}),n(function(u){Te(u.containedEdges,(l,c)=>{!l.endPointsValid()&&!i[c]&&(i[c]=c)})}),Te(this.body.edges,(u,l)=>{let c=!0;const d=u.clusteringEdgeReplacingIds;if(d!==void 0){let h=0;Te(d,f=>{const p=this.body.edges[f];p!==void 0&&p.endPointsValid()&&(h+=1)}),c=h>0}(!u.endPointsValid()||!c)&&(i[l]=l)}),n(u=>{Te(i,l=>{delete u.containedEdges[l],Te(u.edges,(c,d)=>{if(c.id===l){u.edges[d]=null;return}c.clusteringEdgeReplacingIds=this._filter(c.clusteringEdgeReplacingIds,function(h){return!i[h]})}),u.edges=this._filter(u.edges,function(c){return c!==null})})}),Te(i,u=>{delete this.clusteredEdges[u]}),Te(i,u=>{delete this.body.edges[u]});const s=nt(this.body.edges);Te(s,u=>{const l=this.body.edges[u],c=this._isClusteredNode(l.fromId)||this._isClusteredNode(l.toId);if(c!==this._isClusteredEdge(l.id))if(c){const d=this._getClusterNodeForNode(l.fromId);d!==void 0&&this._clusterEdges(this.body.nodes[l.fromId],l,d);const h=this._getClusterNodeForNode(l.toId);h!==void 0&&this._clusterEdges(this.body.nodes[l.toId],l,h)}else delete this._clusterEdges[u],this._restoreEdge(l)});let o=!1,a=!0;for(;a;){const u=[];n(function(l){const c=nt(l.containedNodes).length,d=l.options.allowSingleNodeCluster===!0;(d&&c<1||!d&&c<2)&&u.push(l.id)});for(let l=0;l0,o=o||a}o&&this._updateState()}_isClusteredNode(e){return this.clusteredNodes[e]!==void 0}_isClusteredEdge(e){return this.clusteredEdges[e]!==void 0}}class Bie{constructor(e,t){this.body=e,this.canvas=t,this.redrawRequested=!1,this.requestAnimationFrameRequestId=void 0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},ft(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e;this.body.emitter.on("dragStart",()=>{this.dragging=!0}),this.body.emitter.on("dragEnd",()=>{this.dragging=!1}),this.body.emitter.on("zoom",()=>{this.zooming=!0,window.clearTimeout(this.zoomTimeoutId),this.zoomTimeoutId=ui(()=>{var t;this.zooming=!1,H(t=this._requestRedraw).call(t,this)()},250)}),this.body.emitter.on("_resizeNodes",()=>{this._resizeNodes()}),this.body.emitter.on("_redraw",()=>{this.renderingActive===!1&&this._redraw()}),this.body.emitter.on("_blockRedraw",()=>{this.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",()=>{this.allowRedraw=!0,this.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",H(e=this._requestRedraw).call(e,this)),this.body.emitter.on("_startRendering",()=>{this.renderRequests+=1,this.renderingActive=!0,this._startRendering()}),this.body.emitter.on("_stopRendering",()=>{this.renderRequests-=1,this.renderingActive=this.renderRequests>0,this.requestAnimationFrameRequestId=void 0}),this.body.emitter.on("destroy",()=>{this.renderRequests=0,this.allowRedraw=!1,this.renderingActive=!1,window.cancelAnimationFrame(this.requestAnimationFrameRequestId),this.body.emitter.off()})}setOptions(e){e!==void 0&&lo(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,e)}_startRendering(){if(this.renderingActive===!0&&this.requestAnimationFrameRequestId===void 0){var e;this.requestAnimationFrameRequestId=window.requestAnimationFrame(H(e=this._renderStep).call(e,this),this.simulationInterval)}}_renderStep(){this.renderingActive===!0&&(this.requestAnimationFrameRequestId=void 0,this._startRendering(),this._redraw())}redraw(){this.body.emitter.emit("setSize"),this._redraw()}_requestRedraw(){this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,window.requestAnimationFrame(()=>{this._redraw(!1)}))}_redraw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;const t={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();const i=this.canvas.getContext(),n=this.canvas.frame.canvas.clientWidth,s=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,n,s),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){const{drawExternalLabels:o}=this._drawNodes(i,e);t.drawExternalLabels=o}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),t.drawExternalLabels!=null&&t.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,n,s)}}_resizeNodes(){this.canvas.setTransform();const e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);const t=this.body.nodes;let i;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i=t[n],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}_drawNodes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=this.body.nodes,n=this.body.nodeIndices;let s;const o=[],a=[],u=20,l=this.canvas.DOMtoCanvas({x:-u,y:-u}),c=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+u,y:this.canvas.frame.canvas.clientHeight+u}),d={top:l.y,left:l.x,bottom:c.y,right:c.x},h=[];for(let _=0;_{for(const _ of h)_()}}}_drawEdges(e){const t=this.body.edges,i=this.body.edgeIndices;for(let n=0;n{t.width!==0&&(this.body.view.translation.x=t.width*.5),t.height!==0&&(this.body.view.translation.y=t.height*.5)}),this.body.emitter.on("setSize",H(e=this.setSize).call(e,this)),this.body.emitter.on("destroy",()=>{this.hammerFrame.destroy(),this.hammer.destroy(),this._cleanUp()})}setOptions(e){if(e!==void 0&&lo(["width","height","autoResize"],this.options,e),this._cleanUp(),this.options.autoResize===!0){var t;if(window.ResizeObserver){const n=new ResizeObserver(()=>{this.setSize()===!0&&this.body.emitter.emit("_requestRedraw")}),{frame:s}=this;n.observe(s),this._cleanupCallbacks.push(()=>{n.unobserve(s)})}else{const n=Hie(()=>{this.setSize()===!0&&this.body.emitter.emit("_requestRedraw")},1e3);this._cleanupCallbacks.push(()=>{clearInterval(n)})}const i=H(t=this._onResize).call(t,this);window.addEventListener("resize",i),this._cleanupCallbacks.push(()=>{window.removeEventListener("resize",i)})}}_cleanUp(){var e,t,i;He(e=En(t=ai(i=this._cleanupCallbacks).call(i,0)).call(t)).call(e,n=>{try{n()}catch(s){console.error(s)}})}_onResize(){this.setSize(),this.body.emitter.emit("_redraw")}_getCameraState(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}_setCameraState(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){const e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight;let i=this.cameraState.scale;e!=1&&t!=1?i=this.cameraState.scale*.5*(e+t):e!=1?i=this.cameraState.scale*e:t!=1&&(i=this.cameraState.scale*t),this.body.view.scale=i;const n=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),s={x:n.x-this.cameraState.position.x,y:n.y-this.cameraState.position.y};this.body.view.translation.x+=s.x*this.body.view.scale,this.body.view.translation.y+=s.y*this.body.view.scale}}_prepareValue(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(Be(e).call(e,"%")!==-1||Be(e).call(e,"px")!==-1)return e;if(Be(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}_create(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{const e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}_bindHammer(){this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new Os(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:Os.DIRECTION_ALL}),ku(this.hammer,e=>{this.body.eventListeners.onTouch(e)}),this.hammer.on("tap",e=>{this.body.eventListeners.onTap(e)}),this.hammer.on("doubletap",e=>{this.body.eventListeners.onDoubleTap(e)}),this.hammer.on("press",e=>{this.body.eventListeners.onHold(e)}),this.hammer.on("panstart",e=>{this.body.eventListeners.onDragStart(e)}),this.hammer.on("panmove",e=>{this.body.eventListeners.onDrag(e)}),this.hammer.on("panend",e=>{this.body.eventListeners.onDragEnd(e)}),this.hammer.on("pinch",e=>{this.body.eventListeners.onPinch(e)}),this.frame.canvas.addEventListener("wheel",e=>{this.body.eventListeners.onMouseWheel(e)}),this.frame.canvas.addEventListener("mousemove",e=>{this.body.eventListeners.onMouseMove(e)}),this.frame.canvas.addEventListener("contextmenu",e=>{this.body.eventListeners.onContext(e)}),this.hammerFrame=new Os(this.frame),xH(this.hammerFrame,e=>{this.body.eventListeners.onRelease(e)})}setSize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);let i=!1;const n=this.frame.canvas.width,s=this.frame.canvas.height,o=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t)this._getCameraState(o),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{const a=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),u=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==a||this.frame.canvas.height!==u)&&this._getCameraState(o),this.frame.canvas.width!==a&&(this.frame.canvas.width=a,i=!0),this.frame.canvas.height!==u&&(this.frame.canvas.height=u,i=!0)}return i===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(n/this.pixelRatio),oldHeight:Math.round(s/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}getContext(){return this.frame.canvas.getContext("2d")}_determinePixelRatio(){const e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");let t=1;typeof window<"u"&&(t=window.devicePixelRatio||1);const i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}_setPixelRatio(){this.pixelRatio=this._determinePixelRatio()}setTransform(){const e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}_XconvertDOMtoCanvas(e){return(e-this.body.view.translation.x)/this.body.view.scale}_XconvertCanvasToDOM(e){return e*this.body.view.scale+this.body.view.translation.x}_YconvertDOMtoCanvas(e){return(e-this.body.view.translation.y)/this.body.view.scale}_YconvertCanvasToDOM(e){return e*this.body.view.scale+this.body.view.translation.y}canvasToDOM(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}DOMtoCanvas(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}function Uie(r,e){const t=ft({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},r??{});if(!st(t.nodes))throw new TypeError("Nodes has to be an array of ids.");if(t.nodes.length===0&&(t.nodes=e),!(typeof t.minZoomLevel=="number"&&t.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof t.maxZoomLevel=="number"&&t.minZoomLevel<=t.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return t}class Vie{constructor(e,t){var i,n;this.body=e,this.canvas=t,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",H(i=this.fit).call(i,this)),this.body.emitter.on("animationFinished",()=>{this.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",H(n=this.releaseNode).call(n,this))}setOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}fit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=Uie(e,this.body.nodeIndices);const i=this.canvas.frame.canvas.clientWidth,n=this.canvas.frame.canvas.clientHeight;let s,o;if(i===0||n===0)o=1,s=Ht.getRange(this.body.nodes,e.nodes);else if(t===!0){let l=0;for(const h in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,h)&&this.body.nodes[h].predefinedPosition===!0&&(l+=1);if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}s=Ht.getRange(this.body.nodes,e.nodes),o=12.662/(this.body.nodeIndices.length+7.4147)+.0964822;const d=Math.min(i/600,n/600);o*=d}else{this.body.emitter.emit("_resizeNodes"),s=Ht.getRange(this.body.nodes,e.nodes);const l=Math.abs(s.maxX-s.minX)*1.1,c=Math.abs(s.maxY-s.minY)*1.1,d=i/l,h=n/c;o=d<=h?d:h}o>e.maxZoomLevel?o=e.maxZoomLevel:o1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){const i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=i,t.lockedOnNode=e,this.moveTo(t)}else console.error("Node: "+e+" cannot be found.")}moveTo(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!mn(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!mn(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!mn(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!mn(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}animateView(e){if(e===void 0)return;this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;const t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:t.x-e.position.x,y:t.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var n;this.viewFunction=H(n=this._lockedRedraw).call(n,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var s;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=H(s=this._transitionRedraw).call(s,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}_lockedRedraw(){const e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:t.x-e.x,y:t.y-e.y},n=this.body.view.translation,s={x:n.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:n.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=s}releaseNode(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}_transitionRedraw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;const t=eee[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=H(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}getScale(){return this.body.view.scale}getViewPosition(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}function LB(r){var e=r&&r.preventDefault||!1,t=r&&r.container||window,i={},n={keydown:{},keyup:{}},s={},o;for(o=97;o<=122;o++)s[String.fromCharCode(o)]={code:65+(o-97),shift:!1};for(o=65;o<=90;o++)s[String.fromCharCode(o)]={code:o,shift:!0};for(o=0;o<=9;o++)s[""+o]={code:48+o,shift:!1};for(o=1;o<=12;o++)s["F"+o]={code:111+o,shift:!1};for(o=0;o<=9;o++)s["num"+o]={code:96+o,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(c){l(c,"keydown")},u=function(c){l(c,"keyup")},l=function(c,d){if(n[d][c.keyCode]!==void 0){for(var h=n[d][c.keyCode],f=0;f{this.activated=!0,this.configureKeyboardBindings()}),this.body.emitter.on("deactivate",()=>{this.activated=!1,this.configureKeyboardBindings()}),this.body.emitter.on("destroy",()=>{this.keycharm!==void 0&&this.keycharm.destroy()}),this.options={}}setOptions(e){e!==void 0&&(this.options=e,this.create())}create(){this.options.navigationButtons===!0?this.iconsCreated===!1&&this.loadNavigationElements():this.iconsCreated===!0&&this.cleanNavigation(),this.configureKeyboardBindings()}cleanNavigation(){if(this.navigationHammers.length!=0){for(let e=0;e{this._stopMovement()}),this.navigationHammers.push(s),this.iconsCreated=!0}bindToRedraw(e){if(this.boundFunctions[e]===void 0){var t;this.boundFunctions[e]=H(t=this[e]).call(t,this),this.body.emitter.on("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_startRendering")}}unbindFromRedraw(e){this.boundFunctions[e]!==void 0&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[e])}_fit(){new Date().valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}_stopMovement(){for(const e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}_moveUp(){this.body.view.translation.y+=this.options.keyboard.speed.y}_moveDown(){this.body.view.translation.y-=this.options.keyboard.speed.y}_moveLeft(){this.body.view.translation.x+=this.options.keyboard.speed.x}_moveRight(){this.body.view.translation.x-=this.options.keyboard.speed.x}_zoomIn(){const e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=t/e,s=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,o=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=t,this.body.view.translation={x:s,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}_zoomOut(){const e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=t/e,s=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,o=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=t,this.body.view.translation={x:s,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}configureKeyboardBindings(){if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=LB({container:window,preventDefault:!0}):this.keycharm=LB({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var e,t,i,n,s,o,a,u,l,c,d,h,f,p,v,_,m,g,E,y,I,O,T,b;H(e=this.keycharm).call(e,"up",()=>{this.bindToRedraw("_moveUp")},"keydown"),H(t=this.keycharm).call(t,"down",()=>{this.bindToRedraw("_moveDown")},"keydown"),H(i=this.keycharm).call(i,"left",()=>{this.bindToRedraw("_moveLeft")},"keydown"),H(n=this.keycharm).call(n,"right",()=>{this.bindToRedraw("_moveRight")},"keydown"),H(s=this.keycharm).call(s,"=",()=>{this.bindToRedraw("_zoomIn")},"keydown"),H(o=this.keycharm).call(o,"num+",()=>{this.bindToRedraw("_zoomIn")},"keydown"),H(a=this.keycharm).call(a,"num-",()=>{this.bindToRedraw("_zoomOut")},"keydown"),H(u=this.keycharm).call(u,"-",()=>{this.bindToRedraw("_zoomOut")},"keydown"),H(l=this.keycharm).call(l,"[",()=>{this.bindToRedraw("_zoomOut")},"keydown"),H(c=this.keycharm).call(c,"]",()=>{this.bindToRedraw("_zoomIn")},"keydown"),H(d=this.keycharm).call(d,"pageup",()=>{this.bindToRedraw("_zoomIn")},"keydown"),H(h=this.keycharm).call(h,"pagedown",()=>{this.bindToRedraw("_zoomOut")},"keydown"),H(f=this.keycharm).call(f,"up",()=>{this.unbindFromRedraw("_moveUp")},"keyup"),H(p=this.keycharm).call(p,"down",()=>{this.unbindFromRedraw("_moveDown")},"keyup"),H(v=this.keycharm).call(v,"left",()=>{this.unbindFromRedraw("_moveLeft")},"keyup"),H(_=this.keycharm).call(_,"right",()=>{this.unbindFromRedraw("_moveRight")},"keyup"),H(m=this.keycharm).call(m,"=",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),H(g=this.keycharm).call(g,"num+",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),H(E=this.keycharm).call(E,"num-",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),H(y=this.keycharm).call(y,"-",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),H(I=this.keycharm).call(I,"[",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),H(O=this.keycharm).call(O,"]",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),H(T=this.keycharm).call(T,"pageup",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),H(b=this.keycharm).call(b,"pagedown",()=>{this.unbindFromRedraw("_zoomOut")},"keyup")}}}class Gie{constructor(e,t,i){var n,s,o,a,u,l,c,d,h,f,p,v,_;this.body=e,this.canvas=t,this.selectionHandler=i,this.navigationHandler=new Kie(e,t),this.body.eventListeners.onTap=H(n=this.onTap).call(n,this),this.body.eventListeners.onTouch=H(s=this.onTouch).call(s,this),this.body.eventListeners.onDoubleTap=H(o=this.onDoubleTap).call(o,this),this.body.eventListeners.onHold=H(a=this.onHold).call(a,this),this.body.eventListeners.onDragStart=H(u=this.onDragStart).call(u,this),this.body.eventListeners.onDrag=H(l=this.onDrag).call(l,this),this.body.eventListeners.onDragEnd=H(c=this.onDragEnd).call(c,this),this.body.eventListeners.onMouseWheel=H(d=this.onMouseWheel).call(d,this),this.body.eventListeners.onPinch=H(h=this.onPinch).call(h,this),this.body.eventListeners.onMouseMove=H(f=this.onMouseMove).call(f,this),this.body.eventListeners.onRelease=H(p=this.onRelease).call(p,this),this.body.eventListeners.onContext=H(v=this.onContext).call(v,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=H(_=this.getPointer).call(_,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0,autoFocus:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},ft(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("destroy",()=>{clearTimeout(this.popupTimer),delete this.body.functions.getPointer})}setOptions(e){e!==void 0&&(Mu(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,e),ur(this.options,e,"keyboard"),e.tooltip&&(ft(this.options.tooltip,e.tooltip),e.tooltip.color&&(this.options.tooltip.color=_w(e.tooltip.color)))),this.navigationHandler.setOptions(this.options)}getPointer(e){return{x:e.x-XZ(this.canvas.frame.canvas),y:e.y-JZ(this.canvas.frame.canvas)}}onTouch(e){new Date().valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}onTap(e){const t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t)}onDoubleTap(e){const t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,t)}onHold(e){const t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t),this.selectionHandler.generateClickEvent("hold",e,t)}onRelease(e){if(new Date().valueOf()-this.touchTime>10){const t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,t),this.touchTime=new Date().valueOf()}}onContext(e){const t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,t)}checkSelectionChanges(e){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}_determineDifference(e,t){const i=function(n,s){const o=[];for(let a=0;a{const a=o.node;o.xFixed===!1&&(a.x=this.canvas._XconvertDOMtoCanvas(this.canvas._XconvertCanvasToDOM(o.x)+n)),o.yFixed===!1&&(a.y=this.canvas._YconvertDOMtoCanvas(this.canvas._YconvertCanvasToDOM(o.y)+s))}),this.body.emitter.emit("startSimulation")}else{if(e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,t,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(t.x),y:this.canvas._YconvertDOMtoCanvas(t.y)},this.body.emitter.emit("_requestRedraw")}if(this.options.dragView===!0&&!e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,t,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}const n=t.x-this.drag.pointer.x,s=t.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+n,y:this.drag.translation.y+s},this.body.emitter.emit("_requestRedraw")}}}onDragEnd(e){if(this.drag.dragging=!1,this.body.selectionBox.show){var t;this.body.selectionBox.show=!1;const i=this.body.selectionBox.position,n={minX:Math.min(i.start.x,i.end.x),minY:Math.min(i.start.y,i.end.y),maxX:Math.max(i.start.x,i.end.x),maxY:Math.max(i.start.y,i.end.y)},s=Yt(t=this.body.nodeIndices).call(t,a=>{const u=this.body.nodes[a];return u.x>=n.minX&&u.x<=n.maxX&&u.y>=n.minY&&u.y<=n.maxY});He(s).call(s,a=>this.selectionHandler.selectObject(this.body.nodes[a]));const o=this.getPointer(e.center);this.selectionHandler.commitAndEmit(o,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{const i=this.drag.selection;i&&i.length?(He(i).call(i,function(n){n.node.options.fixed.x=n.xFixed,n.node.options.fixed.y=n.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}onPinch(e){const t=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);const i=this.pinch.scale*e.scale;this.zoom(i,t)}zoom(e,t){if(this.options.zoomView===!0){const i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);let n;this.drag!==void 0&&this.drag.dragging===!0&&(n=this.canvas.DOMtoCanvas(this.drag.pointer));const s=this.body.view.translation,o=e/i,a=(1-o)*t.x+s.x*o,u=(1-o)*t.y+s.y*o;if(this.body.view.scale=e,this.body.view.translation={x:a,y:u},n!=null){const l=this.canvas.canvasToDOM(n);this.drag.pointer.x=l.x,this.drag.pointer.y=l.y}this.body.emitter.emit("_requestRedraw"),ithis._checkShowPopup(t),this.options.tooltipDelay))),this.options.hover===!0&&this.selectionHandler.hoverObject(e,t)}_checkShowPopup(e){const t=this.canvas._XconvertDOMtoCanvas(e.x),i=this.canvas._YconvertDOMtoCanvas(e.y),n={left:t,top:i,right:t,bottom:i},s=this.popupObj===void 0?void 0:this.popupObj.id;let o=!1,a="node";if(this.popupObj===void 0){const u=this.body.nodeIndices,l=this.body.nodes;let c;const d=[];for(let h=0;h0&&(this.popupObj=l[d[d.length-1]],o=!0)}if(this.popupObj===void 0&&o===!1){const u=this.body.edgeIndices,l=this.body.edges;let c;const d=[];for(let h=0;h0&&(this.popupObj=l[d[d.length-1]],a="edge")}this.popupObj!==void 0?this.popupObj.id!==s&&(this.popup===void 0&&(this.popup=new uee(this.canvas.frame)),this.popup.popupTargetType=a,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}_checkHidePopup(e){const t=this.selectionHandler._pointerToPositionObject(e);let i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),i===!0)){const n=this.selectionHandler.getNodeAt(e);i=n===void 0?!1:n.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}var jB={},zB={},HB;function Yie(){if(HB)return zB;HB=1;var r=K0(),e=_H();return r("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),zB}var WB;function Xie(){return WB||(WB=1,Yie()),jB}var UB={},r_,VB;function Qn(){if(VB)return r_;VB=1;var r=Js(),e=TypeError;return r_=function(t){if(typeof t=="object"&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new e(r(t)+" is not a set")},r_}var i_,KB;function Zn(){if(KB)return i_;KB=1;var r=nr(),e=wH(),t=r("Set"),i=t.prototype;return i_={Set:t,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:i},i_}var n_,GB;function es(){if(GB)return n_;GB=1;var r=er();return n_=function(e,t,i){for(var n=i?e:e.iterator,s=e.next,o,a;!(o=r(s,n)).done;)if(a=t(o.value),a!==void 0)return a},n_}var s_,YB;function Wa(){if(YB)return s_;YB=1;var r=es();return s_=function(e,t,i){return i?r(e.keys(),t,!0):e.forEach(t)},s_}var o_,XB;function eE(){if(XB)return o_;XB=1;var r=Zn(),e=Wa(),t=r.Set,i=r.add;return o_=function(n){var s=new t;return e(n,function(o){i(s,o)}),s},o_}var a_,JB;function Ua(){return JB||(JB=1,a_=function(r){return r.size}),a_}var u_,QB;function Jie(){return QB||(QB=1,u_=function(r){return{iterator:r,next:r.next,done:!1}}),u_}var l_,ZB;function ts(){if(ZB)return l_;ZB=1;var r=bi(),e=Vr(),t=er(),i=to(),n=Jie(),s="Invalid size",o=RangeError,a=TypeError,u=Math.max,l=function(c,d){this.set=c,this.size=u(d,0),this.has=r(c.has),this.keys=r(c.keys)};return l.prototype={getIterator:function(){return n(e(t(this.keys,this.set)))},includes:function(c){return t(this.has,this.set,c)}},l_=function(c){e(c);var d=+c.size;if(d!==d)throw new a(s);var h=i(d);if(h<0)throw new o(s);return new l(c,h)},l_}var c_,eL;function Qie(){if(eL)return c_;eL=1;var r=Qn(),e=Zn(),t=eE(),i=Ua(),n=ts(),s=Wa(),o=es(),a=e.has,u=e.remove;return c_=function(c){var d=r(this),h=n(c),f=t(d);return i(d)<=h.size?s(d,function(p){h.includes(p)&&u(f,p)}):o(h.getIterator(),function(p){a(f,p)&&u(f,p)}),f},c_}var d_,tL;function rs(){return tL||(tL=1,d_=function(){return!1}),d_}var rL;function Zie(){if(rL)return UB;rL=1;var r=de(),e=Qie(),t=Pe(),i=rs(),n=!i("difference",function(o){return o.size===0}),s=n||t(function(){var o={size:1,has:function(){return!0},keys:function(){var u=0;return{next:function(){var l=u++>1;return a.has(1)&&a.clear(),{done:l,value:2}}}}},a=new Set([1,2,3,4]);return a.difference(o).size!==3});return r({target:"Set",proto:!0,real:!0,forced:s},{difference:e}),UB}var iL={},h_,nL;function ene(){if(nL)return h_;nL=1;var r=Qn(),e=Zn(),t=Ua(),i=ts(),n=Wa(),s=es(),o=e.Set,a=e.add,u=e.has;return h_=function(c){var d=r(this),h=i(c),f=new o;return t(d)>h.size?s(h.getIterator(),function(p){u(d,p)&&a(f,p)}):n(d,function(p){h.includes(p)&&a(f,p)}),f},h_}var sL;function tne(){if(sL)return iL;sL=1;var r=de(),e=Pe(),t=ene(),i=rs(),n=!i("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return r({target:"Set",proto:!0,real:!0,forced:n},{intersection:t}),iL}var oL={},f_,aL;function rne(){if(aL)return f_;aL=1;var r=Qn(),e=Zn().has,t=Ua(),i=ts(),n=Wa(),s=es(),o=U0();return f_=function(u){var l=r(this),c=i(u);if(t(l)<=c.size)return n(l,function(h){if(c.includes(h))return!1},!0)!==!1;var d=c.getIterator();return s(d,function(h){if(e(l,h))return o(d,"normal",!1)})!==!1},f_}var uL;function ine(){if(uL)return oL;uL=1;var r=de(),e=rne(),t=rs(),i=!t("isDisjointFrom",function(n){return!n});return r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:e}),oL}var lL={},p_,cL;function nne(){if(cL)return p_;cL=1;var r=Qn(),e=Ua(),t=Wa(),i=ts();return p_=function(s){var o=r(this),a=i(s);return e(o)>a.size?!1:t(o,function(u){if(!a.includes(u))return!1},!0)!==!1},p_}var dL;function sne(){if(dL)return lL;dL=1;var r=de(),e=nne(),t=rs(),i=!t("isSubsetOf",function(n){return n});return r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:e}),lL}var hL={},v_,fL;function one(){if(fL)return v_;fL=1;var r=Qn(),e=Zn().has,t=Ua(),i=ts(),n=es(),s=U0();return v_=function(a){var u=r(this),l=i(a);if(t(u)0&&arguments[0]!==void 0?arguments[0]:()=>{};Fo(this,un,new DL),Fo(this,ln,new DL),Fo(this,T_,void 0),Tw(T_,this,e)}get sizeNodes(){return Ke(un,this).size}get sizeEdges(){return Ke(ln,this).size}getNodes(){return Ke(un,this).getSelection()}getEdges(){return Ke(ln,this).getSelection()}addNodes(){Ke(un,this).add(...arguments)}addEdges(){Ke(ln,this).add(...arguments)}deleteNodes(e){Ke(un,this).delete(e)}deleteEdges(e){Ke(ln,this).delete(e)}clear(){Ke(un,this).clear(),Ke(ln,this).clear()}commit(){const e={nodes:Ke(un,this).commit(),edges:Ke(ln,this).commit()};for(var t=arguments.length,i=new Array(t),n=0;n{this.updateSelection()})}setOptions(e){e!==void 0&&lo(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,e)}selectOnPoint(e){let t=!1;if(this.options.selectable===!0){const i=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),i!==void 0&&(t=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return t}selectAdditionalOnPoint(e){let t=!1;if(this.options.selectable===!0){const i=this.getNodeAt(e)||this.getEdgeAt(e);i!==void 0&&(t=!0,i.isSelected()===!0?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return t}_initBaseEvent(e,t){const i={};return i.pointer={DOM:{x:t.x,y:t.y},canvas:this.canvas.DOMtoCanvas(t)},i.event=e,i}generateClickEvent(e,t,i,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;const o=this._initBaseEvent(t,i);if(s===!0)o.nodes=[],o.edges=[];else{const a=this.getSelection();o.nodes=a.nodes,o.edges=a.edges}n!==void 0&&(o.previousSelection=n),e=="click"&&(o.items=this.getClickedItems(i)),t.controlEdge!==void 0&&(o.controlEdge=t.controlEdge),this.body.emitter.emit(e,o)}selectObject(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;return e!==void 0?(e instanceof Je?(t===!0&&this._selectionAccumulator.addEdges(...e.edges),this._selectionAccumulator.addNodes(e)):this._selectionAccumulator.addEdges(e),!0):!1}deselectObject(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}_getAllNodesOverlappingWith(e){const t=[],i=this.body.nodes;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;const i=this._pointerToPositionObject(e),n=this._getAllNodesOverlappingWith(i);if(n.length>0)return t===!0?this.body.nodes[n[n.length-1]]:n[n.length-1]}_getEdgesOverlappingWith(e,t){const i=this.body.edges;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;const i=this.canvas.DOMtoCanvas(e);let n=10,s=null;const o=this.body.edges;for(let a=0;a0&&(this.generateClickEvent("deselectEdge",t,e,s),i=!0),n.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",t,e,s),i=!0),n.nodes.added.length>0&&(this.generateClickEvent("selectNode",t,e),i=!0),n.edges.added.length>0&&(this.generateClickEvent("selectEdge",t,e),i=!0),i===!0&&this.generateClickEvent("select",t,e)}getSelection(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}getSelectedNodes(){return this._selectionAccumulator.getNodes()}getSelectedEdges(){return this._selectionAccumulator.getEdges()}getSelectedNodeIds(){var e;return qs(e=this._selectionAccumulator.getNodes()).call(e,t=>t.id)}getSelectedEdgeIds(){var e;return qs(e=this._selectionAccumulator.getEdges()).call(e,t=>t.id)}setSelection(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((t.unselectAll||t.unselectAll===void 0)&&this.unselectAll(),e.nodes)for(const i of e.nodes){const n=this.body.nodes[i];if(!n)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(n,t.highlightEdges)}if(e.edges)for(const i of e.edges){const n=this.body.edges[i];if(!n)throw new RangeError('Edge with id "'+i+'" not found');this.selectObject(n)}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}selectNodes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}selectEdges(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}updateSelection(){for(const e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(const e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}getClickedItems(e){const t=this.canvas.DOMtoCanvas(e),i=[],n=this.body.nodeIndices,s=this.body.nodes;for(let u=n.length-1;u>=0;u--){const c=s[n[u]].getItemsOnPoint(t);i.push.apply(i,c)}const o=this.body.edgeIndices,a=this.body.edges;for(let u=o.length-1;u>=0;u--){const c=a[o[u]].getItemsOnPoint(t);i.push.apply(i,c)}return i}}var ML={},$_,NL;function Tne(){if(NL)return $_;NL=1;var r=ro(),e=Math.floor,t=function(i,n){var s=i.length;if(s<8)for(var o=1,a,u;o0;)i[u]=i[--u];u!==o++&&(i[u]=a)}else for(var l=e(s/2),c=t(r(i,0,l),n),d=t(r(i,l),n),h=c.length,f=d.length,p=0,v=0;p3)){if(d)return!0;if(f)return f<603;var T="",b,w,R,P;for(b=65;b<76;b++){switch(w=String.fromCharCode(b),b){case 66:case 69:case 70:case 72:R=3;break;case 68:case 71:R=4;break;default:R=2}for(P=0;P<47;P++)p.push({k:w+P,v:R})}for(p.sort(function(S,$){return $.v-S.v}),P=0;Po(w)?1:-1}};return r({target:"Array",proto:!0,forced:I},{sort:function(b){b!==void 0&&t(b);var w=i(this);if(y)return b===void 0?v(w):v(w,b);var R=[],P=n(w),S,$;for($=0;$=0:p>v;v+=_)v in f&&(d=l(d,f[v],v,h));return d}};return M_={left:o(!1),right:o(!0)},M_}var N_,KL;function Fne(){if(KL)return N_;KL=1;var r=A5();return N_=r==="NODE",N_}var GL;function kne(){if(GL)return UL;GL=1;var r=de(),e=Nne().left,t=ao(),i=Ca(),n=Fne(),s=!n&&i>79&&i<83,o=s||!t("reduce");return r({target:"Array",proto:!0,forced:o},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),UL}var F_,YL;function Bne(){if(YL)return F_;YL=1,kne();var r=At();return F_=r("Array","reduce"),F_}var k_,XL;function Lne(){if(XL)return k_;XL=1;var r=mt(),e=Bne(),t=Array.prototype;return k_=function(i){var n=i.reduce;return i===t||r(t,i)&&n===t.reduce?e:n},k_}var B_,JL;function jne(){if(JL)return B_;JL=1;var r=Lne();return B_=r,B_}var L_,QL;function zne(){return QL||(QL=1,L_=jne()),L_}var Hne=zne(),DH=ge(Hne);class MH{abstract(){throw new Error("Can't instantiate abstract class!")}fake_use(){}curveType(){return this.abstract()}getPosition(e){return this.fake_use(e),this.abstract()}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,t,i),this.abstract()}getTreeSize(e){return this.fake_use(e),this.abstract()}sort(e){this.fake_use(e),this.abstract()}fix(e,t){this.fake_use(e,t),this.abstract()}shift(e,t){this.fake_use(e,t),this.abstract()}}class Wne extends MH{constructor(e){super(),this.layout=e}curveType(){return"horizontal"}getPosition(e){return e.x}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(e,i),e.x=t}getTreeSize(e){const t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,e);return{min:t.min_x,max:t.max_x}}sort(e){Ts(e).call(e,function(t,i){return t.x-i.x})}fix(e,t){e.y=this.layout.options.hierarchical.levelSeparation*t,e.options.fixed.y=!0}shift(e,t){this.layout.body.nodes[e].x+=t}}class Une extends MH{constructor(e){super(),this.layout=e}curveType(){return"vertical"}getPosition(e){return e.y}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(e,i),e.y=t}getTreeSize(e){const t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,e);return{min:t.min_y,max:t.max_y}}sort(e){Ts(e).call(e,function(t,i){return t.y-i.y})}fix(e,t){e.x=this.layout.options.hierarchical.levelSeparation*t,e.options.fixed.x=!0}shift(e,t){this.layout.body.nodes[e].y+=t}}var ZL={},ej;function Vne(){if(ej)return ZL;ej=1;var r=de(),e=en().every,t=ao(),i=t("every");return r({target:"Array",proto:!0,forced:!i},{every:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),ZL}var j_,tj;function Kne(){if(tj)return j_;tj=1,Vne();var r=At();return j_=r("Array","every"),j_}var z_,rj;function Gne(){if(rj)return z_;rj=1;var r=mt(),e=Kne(),t=Array.prototype;return z_=function(i){var n=i.every;return i===t||r(t,i)&&n===t.every?e:n},z_}var H_,ij;function Yne(){if(ij)return H_;ij=1;var r=Gne();return H_=r,H_}var W_,nj;function Xne(){return nj||(nj=1,W_=Yne()),W_}var Jne=Xne(),NH=ge(Jne);function Qne(r,e){const t=new Ai;return He(r).call(r,i=>{var n;He(n=i.edges).call(n,s=>{s.connected&&t.add(s)})}),He(t).call(t,i=>{const n=i.from.id,s=i.to.id;e[n]==null&&(e[n]=0),(e[s]==null||e[n]>=e[s])&&(e[s]=e[n]+1)}),e}function Zne(r){return FH(e=>{var t,i;return NH(t=Yt(i=e.edges).call(i,n=>r.has(n.toId))).call(t,n=>n.to===e)},(e,t)=>t>e,"from",r)}function ese(r){return FH(e=>{var t,i;return NH(t=Yt(i=e.edges).call(i,n=>r.has(n.toId))).call(t,n=>n.from===e)},(e,t)=>td+1+h.edges.length,0),a=t+"Id",u=t==="to"?1:-1;for(const[d,h]of i){if(!i.has(d)||!r(h))continue;s[d]=0;const f=[h];let p=0,v;for(;v=f.pop();){var l,c;if(!i.has(d))continue;const _=s[v.id]+u;if(He(l=Yt(c=v.edges).call(c,m=>m.connected&&m.to!==m.from&&m[t]!==v&&i.has(m.toId)&&i.has(m.fromId))).call(l,m=>{const g=m[a],E=s[g];(E==null||e(_,E))&&(s[g]=_,f.push(m[t]))}),p>o)return Qne(i,s);++p}}return s}class tse{constructor(){this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}addRelation(e,t){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(t),this.parentReference[t]===void 0&&(this.parentReference[t]=[]),this.parentReference[t].push(e)}checkIfTree(){for(const e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}numTrees(){return this.treeIndex+1}setTreeIndex(e,t){t!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=t,this.treeIndex=Math.max(t,this.treeIndex))}ensureLevel(e){this.levels[e]===void 0&&(this.levels[e]=0)}getMaxLevel(e){const t={},i=n=>{if(t[n]!==void 0)return t[n];let s=this.levels[n];if(this.childrenReference[n]){const o=this.childrenReference[n];if(o.length>0)for(let a=0;as-o);for(const s of n)t.set(s,i++);for(const s in this.levels)Object.prototype.hasOwnProperty.call(this.levels,s)&&(this.levels[s]=t.get(this.levels[s]))}getTreeSize(e,t){let i=1e9,n=-1e9,s=1e9,o=-1e9;for(const a in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,a)&&this.trees[a]===t){const u=e[a];i=Math.min(u.x,i),n=Math.max(u.x,n),s=Math.min(u.y,s),o=Math.max(u.y,o)}return{min_x:i,max_x:n,min_y:s,max_y:o}}hasSameParent(e,t){const i=this.parentReference[e.id],n=this.parentReference[t.id];if(i===void 0||n===void 0)return!1;for(let s=0;s{this.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",()=>{this.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",()=>{this.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",()=>{if(this.options.hierarchical.enabled!==!0)return;const e=this.direction.curveType();this.body.emitter.emit("_forceDisableDynamicCurves",e,!1)})}setOptions(e,t){if(e!==void 0){const i=this.options.hierarchical,n=i.enabled;if(lo(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),ur(this.options,e,"hierarchical"),e.randomSeed!==void 0&&this._resetRNG(e.randomSeed),i.enabled===!0)return n===!0&&this.body.emitter.emit("refresh",!0),i.direction==="RL"||i.direction==="DU"?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(n===!0)return this.body.emitter.emit("refresh"),Ge(t,this.optionsBackup)}return t}_resetRNG(e){this.initialRandomSeed=e,this._rng=Cl(this.initialRandomSeed)}adaptAllOptionsForHierarchicalLayout(e){if(this.options.hierarchical.enabled===!0){const t=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:t.enabled===void 0?!0:t.enabled,solver:"hierarchicalRepulsion"},t.enabled=t.enabled===void 0?!0:t.enabled,t.solver=t.solver||"barnesHut"):typeof e.physics=="object"?(t.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,t.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(t.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});let i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{const n=e.edges.smooth;n.type!==void 0&&n.type!=="dynamic"&&(i=n.type),this.optionsBackup.edges={smooth:{enabled:n.enabled===void 0?!0:n.enabled,type:n.type===void 0?"dynamic":n.type,roundness:n.roundness===void 0?.5:n.roundness,forceDirection:n.forceDirection===void 0?!1:n.forceDirection}},e.edges.smooth={enabled:n.enabled===void 0?!0:n.enabled,type:i,roundness:n.roundness===void 0?.5:n.roundness,forceDirection:n.forceDirection===void 0?!1:n.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}positionInitially(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);const t=e.length+50;for(let i=0;is){const u=e.length;for(;e.length>s&&n<=10;){n+=1;const l=e.length;n%3===0?this.body.modules.clustering.clusterBridges(o):this.body.modules.clustering.clusterOutliers(o);const c=e.length;if(l==c&&n%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}n>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();const a=70;for(let u=0;u0){let e,t,i=!1,n=!1;this.lastNodeOnLevel={},this.hierarchical=new tse;for(t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&(e=this.body.nodes[t],e.options.level!==void 0?(i=!0,this.hierarchical.levels[t]=e.options.level):n=!0);if(n===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");{if(n===!0){const o=this.options.hierarchical.sortMethod;o==="hubsize"?this._determineLevelsByHubsize():o==="directed"?this._determineLevelsDirected():o==="custom"&&this._determineLevelsCustomCallback()}for(const o in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,o)&&this.hierarchical.ensureLevel(o);const s=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(s),this._condenseHierarchy(),this._shiftToCenter()}}}_condenseHierarchy(){var e=this;let t=!1;const i={},n=()=>{const m=o();let g=0;for(let E=0;E{const E=this.hierarchical.trees;for(const y in E)Object.prototype.hasOwnProperty.call(E,y)&&E[y]===m&&this.direction.shift(y,g)},o=()=>{const m=[];for(let g=0;g{if(!g[m.id]&&(g[m.id]=!0,this.hierarchical.childrenReference[m.id])){const E=this.hierarchical.childrenReference[m.id];if(E.length>0)for(let y=0;y1&&arguments[1]!==void 0?arguments[1]:1e9,E=1e9,y=1e9,I=1e9,O=-1e9;for(const T in m)if(Object.prototype.hasOwnProperty.call(m,T)){const b=e.body.nodes[T],w=e.hierarchical.levels[b.id],R=e.direction.getPosition(b),[P,S]=e._getSpaceAroundNode(b,m);E=Math.min(P,E),y=Math.min(S,y),w<=g&&(I=Math.min(R,I),O=Math.max(R,O))}return[I,O,E,y]},l=(m,g)=>{const E=this.hierarchical.getMaxLevel(m.id),y=this.hierarchical.getMaxLevel(g.id);return Math.min(E,y)},c=(m,g,E)=>{const y=this.hierarchical;for(let I=0;I1)for(let b=0;b2&&arguments[2]!==void 0?arguments[2]:!1;const y=e.direction.getPosition(m),I=e.direction.getPosition(g),O=Math.abs(I-y),T=e.options.hierarchical.nodeSpacing;if(O>T){const b={},w={};a(m,b),a(g,w);const R=l(m,g),P=u(b,R),S=u(w,R),$=P[1],q=S[0],F=S[2];if(Math.abs($-q)>T){let z=$-q+T;z<-F+T&&(z=-F+T),z<0&&(e._shiftBlock(g.id,z),t=!0,E===!0&&e._centerParent(g))}}},h=(m,g)=>{const E=g.id,y=g.edges,I=this.hierarchical.levels[g.id],O=this.options.hierarchical.levelSeparation*this.options.hierarchical.levelSeparation,T={},b=[];for(let F=0;F{let z=0;for(let te=0;te{let z=0;for(let te=0;te{let z=this.direction.getPosition(g);const te={};for(let ve=0;ve{const Z=this.direction.getPosition(g);if(i[g.id]===void 0){const me={};a(g,me),i[g.id]=me}const z=u(i[g.id]),te=z[2],ve=z[3],we=F-Z;let re=0;we>0?re=Math.min(we,ve-this.options.hierarchical.nodeSpacing):we<0&&(re=-Math.min(-we,te-this.options.hierarchical.nodeSpacing)),re!=0&&(this._shiftBlock(g.id,re),t=!0)},$=F=>{const Z=this.direction.getPosition(g),[z,te]=this._getSpaceAroundNode(g),ve=F-Z;let we=Z;ve>0?we=Math.min(Z+(te-this.options.hierarchical.nodeSpacing),F):ve<0&&(we=Math.max(Z-(z-this.options.hierarchical.nodeSpacing),F)),we!==Z&&(this.direction.setPosition(g,we),t=!0)};let q=P(m,b);S(q),q=P(m,y),$(q)},f=m=>{let g=this.hierarchical.getLevels();g=En(g).call(g);for(let E=0;E{let g=this.hierarchical.getLevels();g=En(g).call(g);for(let E=0;E{for(const m in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,m)&&this._centerParent(this.body.nodes[m])},_=()=>{let m=this.hierarchical.getLevels();m=En(m).call(m);for(let g=0;g0&&Math.abs(d)0&&(l=this.direction.getPosition(n[o-1])+u),this.direction.setPosition(a,l,i),this._validatePositionAndContinue(a,i,l),s++}}}}_placeBranchNodes(e,t){var i;const n=this.hierarchical.childrenReference[e];if(n===void 0)return;const s=[];for(let a=0;at&&this.positionedNodes[u.id]===void 0){const c=this.options.hierarchical.nodeSpacing;let d;a===0?d=this.direction.getPosition(this.body.nodes[e]):d=this.direction.getPosition(s[a-1])+c,this.direction.setPosition(u,d,l),this._validatePositionAndContinue(u,l,d)}else return}const o=this._getCenterPosition(s);this.direction.setPosition(this.body.nodes[e],o,t)}_validatePositionAndContinue(e,t,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[t]!==void 0){const n=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[t]]);if(i-n{var n;Be(n=this.body.edgeIndices).call(n,i.id)!==-1&&t.push(i)}),t}_getHubSizes(){const e={},t=this.body.nodeIndices;Te(t,n=>{const s=this.body.nodes[n],o=this._getActiveEdges(s).length;e[o]=!0});const i=[];return Te(e,n=>{i.push(Number(n))}),Ts(i).call(i,function(n,s){return s-n}),i}_determineLevelsByHubsize(){const e=(i,n)=>{this.hierarchical.levelDownstream(i,n)},t=this._getHubSizes();for(let i=0;i{const o=this.body.nodes[s];n===this._getActiveEdges(o).length&&this._crawlNetwork(e,s)})}}_determineLevelsCustomCallback(){const t=function(n,s,o){},i=(n,s,o)=>{let a=this.hierarchical.levels[n.id];a===void 0&&(a=this.hierarchical.levels[n.id]=1e5);const u=t(Ht.cloneOptions(n,"node"),Ht.cloneOptions(s,"node"),Ht.cloneOptions(o,"edge"));this.hierarchical.levels[s.id]=a+u};this._crawlNetwork(i),this.hierarchical.setMinLevelToZero()}_determineLevelsDirected(){var e;const t=DH(e=this.body.nodeIndices).call(e,(i,n)=>(i.set(n,this.body.nodes[n]),i),new X0);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=ese(t):this.hierarchical.levels=Zne(t),this.hierarchical.setMinLevelToZero()}_generateMap(){const e=(t,i)=>{this.hierarchical.levels[i.id]>this.hierarchical.levels[t.id]&&this.hierarchical.addRelation(t.id,i.id)};this._crawlNetwork(e),this.hierarchical.checkIfTree()}_crawlNetwork(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},t=arguments.length>1?arguments[1]:void 0;const i={},n=(s,o)=>{if(i[s.id]===void 0){this.hierarchical.setTreeIndex(s,o),i[s.id]=!0;let a;const u=this._getActiveEdges(s);for(let l=0;l{if(i[s])return;i[s]=!0,this.direction.shift(s,t);const o=this.hierarchical.childrenReference[s];if(o!==void 0)for(let a=0;a{const u=this.hierarchical.parentReference[a];if(u!==void 0)for(let l=0;l{const u=this.hierarchical.parentReference[a];if(u!==void 0)for(let l=0;l{this._clean()}),this.body.emitter.on("_dataChanged",H(s=this._restore).call(s,this)),this.body.emitter.on("_resetData",H(o=this._restore).call(o,this))}_restore(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}setOptions(e,t,i){t!==void 0&&(t.locale!==void 0?this.options.locale=t.locale:this.options.locale=i.locale,t.locales!==void 0?this.options.locales=t.locales:this.options.locales=i.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,Ge(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}toggleEditMode(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}enableEditMode(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}disableEditMode(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}showManipulatorToolbar(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,t;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";const i=this.selectionHandler.getSelectedNodeCount(),n=this.selectionHandler.getSelectedEdgeCount(),s=i+n,o=this.options.locales[this.options.locale];let a=!1;this.options.addNode!==!1&&(this._createAddNodeButton(o),a=!0),this.options.addEdge!==!1&&(a===!0?this._createSeperator(1):a=!0,this._createAddEdgeButton(o)),i===1&&typeof this.options.editNode=="function"?(a===!0?this._createSeperator(2):a=!0,this._createEditNodeButton(o)):n===1&&i===0&&this.options.editEdge!==!1&&(a===!0?this._createSeperator(3):a=!0,this._createEditEdgeButton(o)),s!==0&&(i>0&&this.options.deleteNode!==!1?(a===!0&&this._createSeperator(4),this._createDeleteButton(o)):i===0&&this.options.deleteEdge!==!1&&(a===!0&&this._createSeperator(4),this._createDeleteButton(o))),this._bindElementEvents(this.closeDiv,H(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",H(t=this.showManipulatorToolbar).call(t,this))}this.body.emitter.emit("_redraw")}addNodeMode(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var t;const i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,H(t=this.toggleEditMode).call(t,this))}this._temporaryBindEvent("click",H(e=this._performAddNode).call(e,this))}editNode(){this.editMode!==!0&&this.enableEditMode(),this._clean();const e=this.selectionHandler.getSelectedNodes()[0];if(e!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(e.isCluster!==!0){const t=Ge({},e.options,!1);if(t.x=e.x,t.y=e.y,this.options.editNode.length===2)this.options.editNode(t,i=>{i!=null&&this.inMode==="editNode"&&this.body.data.nodes.getDataSet().update(i),this.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}addEdgeMode(){var e,t,i,n,s;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var o;const a=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(a),this._createSeperator(),this._createDescription(a.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,H(o=this.toggleEditMode).call(o,this))}this._temporaryBindUI("onTouch",H(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",H(t=this._finishConnect).call(t,this)),this._temporaryBindUI("onDrag",H(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",H(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDragStart",H(s=this._dragStartEdge).call(s,this)),this._temporaryBindUI("onHold",()=>{})}editEdgeMode(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",typeof this.options.editEdge=="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){const o=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(o.from.id,o.to.id);return}if(this.guiEnabled===!0){var e;const o=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(o),this._createSeperator(),this._createDescription(o.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,H(e=this.toggleEditMode).call(e,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var t,i,n,s;const o=this.body.edges[this.edgeBeingEditedId],a=this._getNewTargetNode(o.from.x,o.from.y),u=this._getNewTargetNode(o.to.x,o.to.y);this.temporaryIds.nodes.push(a.id),this.temporaryIds.nodes.push(u.id),this.body.nodes[a.id]=a,this.body.nodeIndices.push(a.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this._temporaryBindUI("onTouch",H(t=this._controlNodeTouch).call(t,this)),this._temporaryBindUI("onTap",()=>{}),this._temporaryBindUI("onHold",()=>{}),this._temporaryBindUI("onDragStart",H(i=this._controlNodeDragStart).call(i,this)),this._temporaryBindUI("onDrag",H(n=this._controlNodeDrag).call(n,this)),this._temporaryBindUI("onDragEnd",H(s=this._controlNodeDragEnd).call(s,this)),this._temporaryBindUI("onMouseMove",()=>{}),this._temporaryBindEvent("beforeDrawing",l=>{const c=o.edgeType.findBorderPositions(l);a.selected===!1&&(a.x=c.from.x,a.y=c.from.y),u.selected===!1&&(u.x=c.to.x,u.y=c.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}deleteSelected(){this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";const e=this.selectionHandler.getSelectedNodeIds(),t=this.selectionHandler.getSelectedEdgeIds();let i;if(e.length>0){for(let n=0;n0&&typeof this.options.deleteEdge=="function"&&(i=this.options.deleteEdge);if(typeof i=="function"){const n={nodes:e,edges:t};if(i.length===2)i(n,s=>{s!=null&&this.inMode==="delete"?(this.body.data.edges.getDataSet().remove(s.edges),this.body.data.nodes.getDataSet().remove(s.nodes),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()):(this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(t),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}_setup(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}_createWrappers(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,t;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(t=this.options.locales[this.options.locale])===null||t===void 0?void 0:t.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}_getNewTargetNode(e,t){const i=Ge({},this.options.controlNodeStyle);i.id="targetNode"+No(),i.hidden=!1,i.physics=!1,i.x=e,i.y=t;const n=this.body.functions.createNode(i);return n.shape.boundingBox={left:e,right:e,top:t,bottom:t},n}_createEditButton(){var e;this._clean(),this.manipulationDOM={},Ci(this.editModeDiv);const t=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",t.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,H(e=this.toggleEditMode).call(e,this))}_clean(){this.inMode=!1,this.guiEnabled===!0&&(Ci(this.editModeDiv),Ci(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}_cleanupDOMEventListeners(){for(const t of ai(e=this._domEventListenerCleanupQueue).call(e,0)){var e;t()}}_removeManipulationDOM(){this._clean(),Ci(this.manipulationDiv),Ci(this.editModeDiv),Ci(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}_createSeperator(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}_createAddNodeButton(e){var t;const i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.addNodeMode).call(t,this))}_createAddEdgeButton(e){var t;const i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.addEdgeMode).call(t,this))}_createEditNodeButton(e){var t;const i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.editNode).call(t,this))}_createEditEdgeButton(e){var t;const i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.editEdgeMode).call(t,this))}_createDeleteButton(e){var t;let i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";const n=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,H(t=this.deleteSelected).call(t,this))}_createBackButton(e){var t;const i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,H(t=this.showManipulatorToolbar).call(t,this))}_createButton(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+t,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=n,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}_createDescription(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}_temporaryBindEvent(e,t){this.temporaryEventFunctions.push({event:e,boundFunction:t}),this.body.emitter.on(e,t)}_temporaryBindUI(e,t){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=t;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+Fa(nt(this.body.eventListeners)))}_unbindTemporaryUIs(){for(const e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}_unbindTemporaryEvents(){for(let e=0;e{i.destroy()});const n=s=>{let{keyCode:o,key:a}=s;(a==="Enter"||a===" "||o===13||o===32)&&t()};e.addEventListener("keyup",n,!1),this._domEventListenerCleanupQueue.push(()=>{e.removeEventListener("keyup",n,!1)})}_cleanupTemporaryNodesAndEdges(){for(let s=0;s=0;a--)if(s[a]!==this.selectedControlNode.id){o=this.body.nodes[s[a]];break}if(o!==void 0&&this.selectedControlNode!==void 0)if(o.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{const a=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===a.id?this._performEditEdge(o.id,n.to.id):this._performEditEdge(n.from.id,o.id)}else n.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}_handleConnect(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=ft({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;const t=this.lastTouch,i=this.selectionHandler.getNodeAt(t);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{const n=this._getNewTargetNode(i.x,i.y);this.body.nodes[n.id]=n,this.body.nodeIndices.push(n.id);const s=this.body.functions.createEdge({id:"connectionEdge"+No(),from:i.id,to:n.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[s.id]=s,this.body.edgeIndices.push(s.id),this.temporaryIds.nodes.push(n.id),this.temporaryIds.edges.push(s.id)}this.touchTime=new Date().valueOf()}}_dragControlNode(e){const t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t);let n;this.temporaryIds.edges[0]!==void 0&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);const s=this.selectionHandler._getAllNodesOverlappingWith(i);let o;for(let u=s.length-1;u>=0;u--){var a;if(Be(a=this.temporaryIds.nodes).call(a,s[u])===-1){o=this.body.nodes[s[u]];break}}if(e.controlEdge={from:n,to:o?o.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,t),this.temporaryIds.nodes[0]!==void 0){const u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(t.x),u.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}_finishConnect(e){const t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t);let n;this.temporaryIds.edges[0]!==void 0&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);const s=this.selectionHandler._getAllNodesOverlappingWith(i);let o;for(let u=s.length-1;u>=0;u--){var a;if(Be(a=this.temporaryIds.nodes).call(a,s[u])===-1){o=this.body.nodes[s[u]];break}}this._cleanupTemporaryNodesAndEdges(),o!==void 0&&(o.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[n]!==void 0&&this.body.nodes[o.id]!==void 0&&this._performAddEdge(n,o.id)),e.controlEdge={from:n,to:o?o.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,t),this.body.emitter.emit("_redraw")}_dragStartEdge(e){const t=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,t,void 0,!0)}_performAddNode(e){const t={id:No(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(t,i=>{i!=null&&this.inMode==="addNode"&&this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(t),this.showManipulatorToolbar()}_performAddEdge(e,t){const i={from:e,to:t};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(i,n=>{n!=null&&this.inMode==="addEdge"&&(this.body.data.edges.getDataSet().add(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}_performEditEdge(e,t){const i={id:this.edgeBeingEditedId,from:e,to:t,label:this.body.data.edges.get(this.edgeBeingEditedId).label};let n=this.options.editEdge;if(typeof n=="object"&&(n=n.editWithoutDrag),typeof n=="function")if(n.length===2)n(i,s=>{s==null||this.inMode!=="editEdge"?(this.body.edges[i.id].updateEdgeType(),this.body.emitter.emit("_redraw"),this.showManipulatorToolbar()):(this.body.data.edges.getDataSet().update(s),this.selectionHandler.unselectAll(),this.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}const Y="string",j="boolean",M="number",Eo="array",le="object",kH="dom",nse="any",U_=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],V_={borderWidth:{number:M},borderWidthSelected:{number:M,undefined:"undefined"},brokenImage:{string:Y,undefined:"undefined"},chosen:{label:{boolean:j,function:"function"},node:{boolean:j,function:"function"},__type__:{object:le,boolean:j}},color:{border:{string:Y},background:{string:Y},highlight:{border:{string:Y},background:{string:Y},__type__:{object:le,string:Y}},hover:{border:{string:Y},background:{string:Y},__type__:{object:le,string:Y}},__type__:{object:le,string:Y}},opacity:{number:M,undefined:"undefined"},fixed:{x:{boolean:j},y:{boolean:j},__type__:{object:le,boolean:j}},font:{align:{string:Y},color:{string:Y},size:{number:M},face:{string:Y},background:{string:Y},strokeWidth:{number:M},strokeColor:{string:Y},vadjust:{number:M},multi:{boolean:j,string:Y},bold:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},boldital:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},ital:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},mono:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},__type__:{object:le,string:Y}},group:{string:Y,number:M,undefined:"undefined"},heightConstraint:{minimum:{number:M},valign:{string:Y},__type__:{object:le,boolean:j,number:M}},hidden:{boolean:j},icon:{face:{string:Y},code:{string:Y},size:{number:M},color:{string:Y},weight:{string:Y,number:M},__type__:{object:le}},id:{string:Y,number:M},image:{selected:{string:Y,undefined:"undefined"},unselected:{string:Y,undefined:"undefined"},__type__:{object:le,string:Y}},imagePadding:{top:{number:M},right:{number:M},bottom:{number:M},left:{number:M},__type__:{object:le,number:M}},label:{string:Y,undefined:"undefined"},labelHighlightBold:{boolean:j},level:{number:M,undefined:"undefined"},margin:{top:{number:M},right:{number:M},bottom:{number:M},left:{number:M},__type__:{object:le,number:M}},mass:{number:M},physics:{boolean:j},scaling:{min:{number:M},max:{number:M},label:{enabled:{boolean:j},min:{number:M},max:{number:M},maxVisible:{number:M},drawThreshold:{number:M},__type__:{object:le,boolean:j}},customScalingFunction:{function:"function"},__type__:{object:le}},shadow:{enabled:{boolean:j},color:{string:Y},size:{number:M},x:{number:M},y:{number:M},__type__:{object:le,boolean:j}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:j,array:Eo},borderRadius:{number:M},interpolation:{boolean:j},useImageSize:{boolean:j},useBorderWithImage:{boolean:j},coordinateOrigin:{string:["center","top-left"]},__type__:{object:le}},size:{number:M},title:{string:Y,dom:kH,undefined:"undefined"},value:{number:M,undefined:"undefined"},widthConstraint:{minimum:{number:M},maximum:{number:M},__type__:{object:le,boolean:j,number:M}},x:{number:M},y:{number:M},__type__:{object:le}},sse={configure:{enabled:{boolean:j},filter:{boolean:j,string:Y,array:Eo,function:"function"},container:{dom:kH},showButton:{boolean:j},__type__:{object:le,boolean:j,string:Y,array:Eo,function:"function"}},edges:{arrows:{to:{enabled:{boolean:j},scaleFactor:{number:M},type:{string:U_},imageHeight:{number:M},imageWidth:{number:M},src:{string:Y},__type__:{object:le,boolean:j}},middle:{enabled:{boolean:j},scaleFactor:{number:M},type:{string:U_},imageWidth:{number:M},imageHeight:{number:M},src:{string:Y},__type__:{object:le,boolean:j}},from:{enabled:{boolean:j},scaleFactor:{number:M},type:{string:U_},imageWidth:{number:M},imageHeight:{number:M},src:{string:Y},__type__:{object:le,boolean:j}},__type__:{string:["from","to","middle"],object:le}},endPointOffset:{from:{number:M},to:{number:M},__type__:{object:le,number:M}},arrowStrikethrough:{boolean:j},background:{enabled:{boolean:j},color:{string:Y},size:{number:M},dashes:{boolean:j,array:Eo},__type__:{object:le,boolean:j}},chosen:{label:{boolean:j,function:"function"},edge:{boolean:j,function:"function"},__type__:{object:le,boolean:j}},color:{color:{string:Y},highlight:{string:Y},hover:{string:Y},inherit:{string:["from","to","both"],boolean:j},opacity:{number:M},__type__:{object:le,string:Y}},dashes:{boolean:j,array:Eo},font:{color:{string:Y},size:{number:M},face:{string:Y},background:{string:Y},strokeWidth:{number:M},strokeColor:{string:Y},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:M},multi:{boolean:j,string:Y},bold:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},boldital:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},ital:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},mono:{color:{string:Y},size:{number:M},face:{string:Y},mod:{string:Y},vadjust:{number:M},__type__:{object:le,string:Y}},__type__:{object:le,string:Y}},hidden:{boolean:j},hoverWidth:{function:"function",number:M},label:{string:Y,undefined:"undefined"},labelHighlightBold:{boolean:j},length:{number:M,undefined:"undefined"},physics:{boolean:j},scaling:{min:{number:M},max:{number:M},label:{enabled:{boolean:j},min:{number:M},max:{number:M},maxVisible:{number:M},drawThreshold:{number:M},__type__:{object:le,boolean:j}},customScalingFunction:{function:"function"},__type__:{object:le}},selectionWidth:{function:"function",number:M},selfReferenceSize:{number:M},selfReference:{size:{number:M},angle:{number:M},renderBehindTheNode:{boolean:j},__type__:{object:le}},shadow:{enabled:{boolean:j},color:{string:Y},size:{number:M},x:{number:M},y:{number:M},__type__:{object:le,boolean:j}},smooth:{enabled:{boolean:j},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:M},forceDirection:{string:["horizontal","vertical","none"],boolean:j},__type__:{object:le,boolean:j}},title:{string:Y,undefined:"undefined"},width:{number:M},widthConstraint:{maximum:{number:M},__type__:{object:le,boolean:j,number:M}},value:{number:M,undefined:"undefined"},__type__:{object:le}},groups:{useDefaultGroups:{boolean:j},__any__:V_,__type__:{object:le}},interaction:{dragNodes:{boolean:j},dragView:{boolean:j},hideEdgesOnDrag:{boolean:j},hideEdgesOnZoom:{boolean:j},hideNodesOnDrag:{boolean:j},hover:{boolean:j},keyboard:{enabled:{boolean:j},speed:{x:{number:M},y:{number:M},zoom:{number:M},__type__:{object:le}},bindToWindow:{boolean:j},autoFocus:{boolean:j},__type__:{object:le,boolean:j}},multiselect:{boolean:j},navigationButtons:{boolean:j},selectable:{boolean:j},selectConnectedEdges:{boolean:j},hoverConnectedEdges:{boolean:j},tooltipDelay:{number:M},zoomView:{boolean:j},zoomSpeed:{number:M},__type__:{object:le}},layout:{randomSeed:{undefined:"undefined",number:M,string:Y},improvedLayout:{boolean:j},clusterThreshold:{number:M},hierarchical:{enabled:{boolean:j},levelSeparation:{number:M},nodeSpacing:{number:M},treeSpacing:{number:M},blockShifting:{boolean:j},edgeMinimization:{boolean:j},parentCentralization:{boolean:j},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:le,boolean:j}},__type__:{object:le}},manipulation:{enabled:{boolean:j},initiallyActive:{boolean:j},addNode:{boolean:j,function:"function"},addEdge:{boolean:j,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:le,boolean:j,function:"function"}},deleteNode:{boolean:j,function:"function"},deleteEdge:{boolean:j,function:"function"},controlNodeStyle:V_,__type__:{object:le,boolean:j}},nodes:V_,physics:{enabled:{boolean:j},barnesHut:{theta:{number:M},gravitationalConstant:{number:M},centralGravity:{number:M},springLength:{number:M},springConstant:{number:M},damping:{number:M},avoidOverlap:{number:M},__type__:{object:le}},forceAtlas2Based:{theta:{number:M},gravitationalConstant:{number:M},centralGravity:{number:M},springLength:{number:M},springConstant:{number:M},damping:{number:M},avoidOverlap:{number:M},__type__:{object:le}},repulsion:{centralGravity:{number:M},springLength:{number:M},springConstant:{number:M},nodeDistance:{number:M},damping:{number:M},__type__:{object:le}},hierarchicalRepulsion:{centralGravity:{number:M},springLength:{number:M},springConstant:{number:M},nodeDistance:{number:M},damping:{number:M},avoidOverlap:{number:M},__type__:{object:le}},maxVelocity:{number:M},minVelocity:{number:M},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:j},iterations:{number:M},updateInterval:{number:M},onlyDynamicEdges:{boolean:j},fit:{boolean:j},__type__:{object:le,boolean:j}},timestep:{number:M},adaptiveTimestep:{boolean:j},wind:{x:{number:M},y:{number:M},__type__:{object:le}},__type__:{object:le,boolean:j}},autoResize:{boolean:j},clickToUse:{boolean:j},locale:{string:Y},locales:{__any__:{any:nse},__type__:{object:le}},height:{string:Y},width:{string:Y},__type__:{object:le}},BH={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},ose=(r,e,t)=>{var i;return!!(ki(r).call(r,"physics")&&ki(i=BH.physics.solver).call(i,e)&&t.physics.solver!==e&&e!=="wind")};class ase{constructor(){}getDistances(e,t,i){const n={},s=e.edges;for(let a=0;a2&&arguments[2]!==void 0?arguments[2]:!1;const n=this.distanceSolver.getDistances(this.body,e,t);this._createL_matrix(n),this._createK_matrix(n),this._createE_matrix();const s=.01,o=1;let a=0;const u=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),l=5;let c=1e9,d=0,h=0,f=0,p=0,v=0;for(;c>s&&ao&&vthis.body.emitter.emit("_requestRedraw")),this.groups=new Xee,this.canvas=new Wie(this.body),this.selectionHandler=new Ine(this.body,this.canvas),this.interactionHandler=new Gie(this.body,this.canvas,this.selectionHandler),this.view=new Vie(this.body,this.canvas),this.renderer=new Bie(this.body,this.canvas),this.physics=new xie(this.body),this.layoutEngine=new rse(this.body),this.clustering=new kie(this.body),this.manipulation=new ise(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new sie(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new Iie(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new use(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(t),this.setData(e)}v5(ue.prototype);ue.prototype.setOptions=function(r){if(r===null&&(r=void 0),r!==void 0){if(lee.validate(r,sse)===!0&&console.error("%cErrors have been found in the supplied options object.",cH),lo(["locale","locales","clickToUse"],this.options,r),r.locale!==void 0&&(r.locale=Aee(r.locales||this.options.locales,r.locale)),r=this.layoutEngine.setOptions(r.layout,r),this.canvas.setOptions(r),this.groups.setOptions(r.groups),this.nodesHandler.setOptions(r.nodes),this.edgesHandler.setOptions(r.edges),this.physics.setOptions(r.physics),this.manipulation.setOptions(r.manipulation,r,this.options),this.interactionHandler.setOptions(r.interaction),this.renderer.setOptions(r.interaction),this.selectionHandler.setOptions(r.interaction),r.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in r&&(this.configurator||(this.configurator=new aee(this,this.body.container,BH,this.canvas.pixelRatio,ose)),this.configurator.setOptions(r.configure)),this.configurator&&this.configurator.options.enabled===!0){const i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Ge(i.nodes,this.nodesHandler.options),Ge(i.edges,this.edgesHandler.options),Ge(i.layout,this.layoutEngine.options),Ge(i.interaction,this.selectionHandler.options),Ge(i.interaction,this.renderer.options),Ge(i.interaction,this.interactionHandler.options),Ge(i.manipulation,this.manipulation.options),Ge(i.physics,this.physics.options),Ge(i.global,this.canvas.options),Ge(i.global,this.options),this.configurator.setModuleOptions(i)}r.clickToUse!==void 0?r.clickToUse===!0?this.activator===void 0&&(this.activator=new oee(this.canvas.frame),this.activator.on("change",()=>{this.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};ue.prototype._updateVisibleIndices=function(){const r=this.body.nodes,e=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&!this.clustering._isClusteredNode(t)&&r[t].options.hidden===!1&&this.body.nodeIndices.push(r[t].id);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const i=e[t],n=r[i.fromId],s=r[i.toId],o=n!==void 0&&s!==void 0;!this.clustering._isClusteredEdge(t)&&i.options.hidden===!1&&o&&n.options.hidden===!1&&s.options.hidden===!1&&this.body.edgeIndices.push(i.id)}};ue.prototype.bindEventListeners=function(){this.body.emitter.on("_dataChanged",()=>{this.edgesHandler._updateState(),this.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",()=>{this.clustering._updateState(),this._updateVisibleIndices(),this._updateValueRange(this.body.nodes),this._updateValueRange(this.body.edges),this.body.emitter.emit("startSimulation"),this.body.emitter.emit("_requestRedraw")})};ue.prototype.setData=function(r){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),r&&r.dot&&(r.nodes||r.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(r&&r.options),r&&r.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");const e=bee(r.dot);this.setData(e);return}else if(r&&r.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");const e=_ee(r.gephi);this.setData(e);return}else this.nodesHandler.setData(r&&r.nodes,!0),this.edgesHandler.setData(r&&r.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};ue.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(const r in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,r)&&delete this.body.nodes[r];for(const r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];Ci(this.body.container)};ue.prototype._updateValueRange=function(r){let e,t,i,n=0;for(e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const s=r[e].getValue();s!==void 0&&(t=t===void 0?s:Math.min(s,t),i=i===void 0?s:Math.max(s,i),n+=s)}if(t!==void 0&&i!==void 0)for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&r[e].setValueRange(t,i,n)};ue.prototype.isActive=function(){return!this.activator||this.activator.active};ue.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};ue.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};ue.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};ue.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};ue.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};ue.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};ue.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};ue.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};ue.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};ue.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};ue.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};ue.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};ue.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};ue.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};ue.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};ue.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};ue.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};ue.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};ue.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};ue.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};ue.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};ue.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};ue.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};ue.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};ue.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};ue.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};ue.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};ue.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};ue.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};ue.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};ue.prototype.getConnectedNodes=function(r){return this.body.nodes[r]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};ue.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};ue.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};ue.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};ue.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};ue.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};ue.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};ue.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};ue.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};ue.prototype.getNodeAt=function(){const r=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return r!==void 0&&r.id!==void 0?r.id:r};ue.prototype.getEdgeAt=function(){const r=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return r!==void 0&&r.id!==void 0?r.id:r};ue.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};ue.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};ue.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};ue.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};ue.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};ue.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};ue.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};ue.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};ue.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};ue.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};ue.prototype.getOptionsFromConfigurator=function(){let r={};return this.configurator&&(r=this.configurator.getOptions.apply(this.configurator)),r};const lse={class:"data-container text-container"},cse={class:"messages-block",ref:"scrollContainer"},dse={class:"center-block-custom"},hse=["onClick","id"],fse={key:0},pse={class:"message-content"},vse={key:1,class:"hr"},gse={key:0},mse={key:1},yse={class:"nodes-container"},bse={class:"checkbox-green"},_se={class:"checkbox-green"},wse={class:"scroll-y"},Ese=["onMouseenter"],Sse=["onClick"],Ose={key:0},Ise=["onClick"],Tse={class:"edit-node-container"},$se={class:"scroll-y-right"},Pse={key:0,class:"tb-5"},Rse=["onClick"],Cse=["onUpdate:modelValue"],xse=["onUpdate:modelValue"],qse=["onUpdate:modelValue"],Ase=["onClick"],Dse=["onUpdate:modelValue"],Mse=["onClick"],Nse=pr({__name:"EditorWindow",setup(r){const e=it(),t=it({nodes:[],edges:[]}),i={code:"",name:"",text:"",image:"",applications:[],hidden:!1,doors:[],id:"",label:"",links:[]},n=it(""),s=it({code:"",name:"",text:"",image:"",applications:[],hidden:!1,doors:[],id:"",label:"",links:[]}),o=it({code:"",name:"",text:"",image:"",applications:[],hidden:!1,doors:[],id:"",label:"",links:[]});let a={},u={};const l=it(0),c=it(0),d=it(!1),h=it(!0);async function f(){t.value=await PV(),c.value=t.value.edges.length,h.value&&(t.value.edges=t.value.edges.filter(function(P){return P.type!=="application"})),t.value.edges.map(function(P){P.type=="application"&&(P.color="#aaaaaa")}),t.value.nodes=t.value.nodes.map(function(P){return P.id=P.code,P.label=P.name,P}),l.value=t.value.edges.length,u={nodes:t.value.nodes,edges:t.value.edges.sort(function(P,S){return P.type=="application"?1:S.type=="application"?-1:0})},a.setData(u),console.log(t.value.edges)}ua(async()=>{if(!e.value)return;const P={interaction:{selectable:!0},nodes:{color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#960000",background:"#ff9494"},hover:{border:"#2B7CE9",background:"#D2E5FF"}}}};a=new ue(e.value,u,P),a.on("click",function(S){if(console.log("click graph:",S),S.nodes.length>0){const $=t.value.nodes.find(function(q){return q.code==S.nodes[0]});$!==void 0&&g($)}else S.edges.length>0&&console.log("Clicked edge:",S.edges[0])}),await f(),g(t.value.nodes[0])});function p(){s.value.applications.push({name:""})}function v(P){s.value.applications=s.value.applications.filter(function(S){return S.name!=P})}function _(){s.value.doors.push({code:"",name:"",show:!1})}function m(P){s.value.doors=s.value.doors.filter(function(S){return S.code!=P})}function g(P){var $;console.log("Select node:",P),n.value=P.code,s.value=P;const S=t.value.edges.filter(function(q){return q.from==P.code}).map(function(q){const F=q.to;return t.value.nodes.filter(function(z){return z.code==F})[0]});s.value.links=S,a.selectNodes([s.value.code]),d.value||($=window.document.getElementById(P.code))==null||$.scrollIntoView({behavior:"smooth",block:"center"})}function E(P){console.log("Focus node:",P.code),o.value=P}function y(P){console.log("Focus node:",P.code),navigator.clipboard.writeText("(["+P.code+"])"),o.value=i}async function I(){console.log("Update node:",s.value),await Xl(n.value,s.value),await f();const P=t.value.nodes.filter(function(S){return S.code==s.value.code});g(P[0])}async function O(){console.log("Delete node:",s.value),s.value.code="",await Xl(n.value,s.value),await f()}async function T(){console.log("Add node:",s.value),s.value.code=n.value,await Xl("",s.value),await f();const P=t.value.nodes.filter(function(S){return S.code==s.value.code});g(P[0])}function b(P){return t.value.nodes.filter(function($){return $.code==P})[0]}function w(P){return P==null?"undefined":"["+P.code+"]: "+P.name}function R(P){d.value=P,d.value&&f()}return(P,S)=>(Oe(),Ne(Qe,null,[at(Gw,null,{default:bn(()=>S[11]||(S[11]=[W("div",null," Редактор сценариев ",-1)])),_:1}),W("div",{class:qi([d.value?"text-container-disable":""])},[W("div",lse,[W("div",cse,[W("div",dse,[(Oe(!0),Ne(Qe,null,Xr(t.value.nodes,$=>(Oe(),Ne("div",{key:$.id,onClick:q=>g($),id:$.code},[W("div",{class:qi(["message-cloud",[$.code==s.value.code?"selected-message-cloud":""]])},[W("div",{class:qi(["message-header",[$.code==s.value.code?"selected-message-header":""]])},Xe($.code)+": "+Xe($.name),3),$.image!==""?(Oe(),Ne("div",fse,Xe($.image),1)):Jr("",!0),S[12]||(S[12]=W("hr",{class:"hr"},null,-1)),W("div",pse,Xe($.text),1),$.applications.length?(Oe(),Ne("hr",vse)):Jr("",!0),(Oe(!0),Ne(Qe,null,Xr($.doors,q=>(Oe(),Ne("div",{class:"message-footer",key:q.code},[q.show?(Oe(),Ne("span",gse,"Кнопка: ")):Jr("",!0),q.show?Jr("",!0):(Oe(),Ne("span",mse,"Дверь: ")),ar(" "+Xe(w(b(q.code))),1)]))),128)),(Oe(!0),Ne(Qe,null,Xr($.applications,q=>(Oe(),Ne("div",{class:"message-footer",key:q.name}," Приложение: "+Xe(q.name),1))),128))],2)],8,hse))),128))])],512)])],2),W("div",{class:qi([d.value?"":"graph-container-disable"])},[W("div",{ref_key:"network",ref:e,class:"data-container graph-container"},null,512)],2),W("div",yse,[S[17]||(S[17]=W("h2",null,"Точки",-1)),W("div",null,"Всего точек: "+Xe(t.value.nodes.length),1),W("div",null,[S[14]||(S[14]=ar(" Отображать граф: ")),W("label",bse,[W("input",{type:"checkbox",onClick:S[0]||(S[0]=$=>R(!d.value))}),S[13]||(S[13]=W("span",{class:"checkbox-green-switch","data-label-on":"Да","data-label-off":"Нет"},null,-1))])]),W("div",null,[ar(" Всего связей: "+Xe(c.value)+", показано: "+Xe(l.value)+" ",1),W("div",null,[S[16]||(S[16]=ar(" Показать все связи: ")),W("label",_se,[W("input",{type:"checkbox",onClick:S[1]||(S[1]=$=>(h.value=!h.value,f()))}),S[15]||(S[15]=W("span",{class:"checkbox-green-switch","data-label-on":"Да","data-label-off":"Нет"},null,-1))])])]),S[18]||(S[18]=W("hr",{class:"hr"},null,-1)),W("div",wse,[(Oe(!0),Ne(Qe,null,Xr(t.value.nodes,$=>(Oe(),Ne("div",{key:$.code},[W("span",{onMouseenter:q=>E($),onMouseleave:S[2]||(S[2]=q=>E(i))},[W("span",{class:qi([[$.code==s.value.code?"selected-node":""],"node-select-button"]),onClick:q=>g($)},Xe(w($)),11,Sse),$.applications.length>0?(Oe(),Ne("span",Ose," ("+Xe($.applications.length)+")",1)):Jr("",!0),$.code==o.value.code?(Oe(),Ne("span",{key:1,class:"copy-node-link",onClick:q=>y($)}," Ссылка ",8,Ise)):Jr("",!0)],40,Ese)]))),128))])]),W("div",Tse,[W("div",$se,[S[23]||(S[23]=W("h2",null,"Редактирование точки",-1)),W("div",null,[Ii(W("input",{"onUpdate:modelValue":S[3]||(S[3]=$=>n.value=$),type:"text",class:"node-code-edit-field",maxlength:"5"},null,512),[[dn,n.value]]),S[19]||(S[19]=ar(" - ")),Ii(W("input",{"onUpdate:modelValue":S[4]||(S[4]=$=>s.value.name=$),type:"text",class:"node-name-edit-field"},null,512),[[dn,s.value.name]])]),W("div",null,[Ii(W("textarea",{class:"node-text-edit-field",rows:"15","onUpdate:modelValue":S[5]||(S[5]=$=>s.value.text=$)},null,512),[[dn,s.value.text]])]),W("div",null,[W("h3",null,[ar("Двери: "+Xe(s.value.doors.length)+" ",1),W("button",{class:"editor-button application-add-button",onClick:S[6]||(S[6]=$=>_())},"+")]),s.value.doors.length>0?(Oe(),Ne("div",Pse,[(Oe(!0),Ne(Qe,null,Xr(s.value.doors,($,q)=>(Oe(),Ne("div",{key:q},[W("button",{class:"editor-button application-remove-button",onClick:F=>m($.code)},"-",8,Rse),Ii(W("input",{class:"node-code-edit-field","onUpdate:modelValue":F=>$.code=F,type:"text",maxlength:"5"},null,8,Cse),[[dn,$.code]]),S[20]||(S[20]=ar(" - ")),Ii(W("input",{class:"node-name-edit-field","onUpdate:modelValue":F=>$.name=F,type:"text"},null,8,xse),[[dn,$.name]]),S[21]||(S[21]=ar(" - ")),Ii(W("input",{class:"node-code-edit-field","onUpdate:modelValue":F=>$.show=F,type:"checkbox"},null,8,qse),[[sU,$.show]])]))),128))])):Jr("",!0)]),W("div",null,[W("h3",null,[ar("Приложения: "+Xe(s.value.applications.length)+" ",1),W("button",{class:"editor-button application-add-button",onClick:S[7]||(S[7]=$=>p())},"+")]),(Oe(!0),Ne(Qe,null,Xr(s.value.applications,($,q)=>(Oe(),Ne("div",{key:q},[W("button",{class:"editor-button application-remove-button",onClick:F=>v($.name)},"-",8,Ase),Ii(W("textarea",{class:"node-text-edit-field",rows:"2","onUpdate:modelValue":F=>$.name=F},null,8,Dse),[[dn,$.name]])]))),128))]),W("div",null,[W("h3",null,"Ссылки: "+Xe(s.value.links.length),1),(Oe(!0),Ne(Qe,null,Xr(s.value.links,$=>(Oe(),Ne("div",{key:$.code},[W("div",{class:"node-select-button",onClick:q=>g($)}," - "+Xe(w($)),9,Mse)]))),128))]),W("div",null,[S[22]||(S[22]=W("hr",{class:"hr"},null,-1)),W("div",null,[W("button",{class:"editor-button",onClick:S[8]||(S[8]=$=>I())},"Сохранить"),W("button",{class:"editor-button",onClick:S[9]||(S[9]=$=>T())},"Добавить"),W("button",{class:"editor-button",onClick:S[10]||(S[10]=$=>O())},"Удалить")])])])])],64))}}),Fse=ca(Nse,[["__scopeId","data-v-206916ac"]]),kse=pr({__name:"EditorView",setup(r){return(e,t)=>(Oe(),hi(Fse))}}),Bse=pr({__name:"GamesWindow",setup(r){return(e,t)=>(Oe(),hi(Gw,null,{default:bn(()=>t[0]||(t[0]=[W("div",null," Каталог игр ",-1)])),_:1}))}}),Lse=pr({__name:"GamesView",setup(r){return(e,t)=>(Oe(),hi(Bse))}}),$w=gV({history:VU("/"),routes:[{path:"/",name:"home",component:mK},{path:"/editor",name:"editor",component:kse},{path:"/games",name:"games",component:Lse}]}),tE=dU(yV);tE.use(vU());tE.use($w);tE.mount("#app"); diff --git a/cmd/evening_detective/static/admin/index.html b/cmd/evening_detective/static/admin/index.html index 3605500..5d4bd37 100644 --- a/cmd/evening_detective/static/admin/index.html +++ b/cmd/evening_detective/static/admin/index.html @@ -5,8 +5,8 @@ ВД Админка - - + +
diff --git a/cmd/evening_detective/static/user/assets/index-Ddu2UMn8.css b/cmd/evening_detective/static/user/assets/index-C2dfznw-.css similarity index 63% rename from cmd/evening_detective/static/user/assets/index-Ddu2UMn8.css rename to cmd/evening_detective/static/user/assets/index-C2dfznw-.css index bcdc670..1cb83ce 100644 --- a/cmd/evening_detective/static/user/assets/index-Ddu2UMn8.css +++ b/cmd/evening_detective/static/user/assets/index-C2dfznw-.css @@ -1 +1 @@ -:root{color-scheme:only light;--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64);--main-color: rgba(34, 50, 60, 1);--second-color: rgb(97, 74, 22);--main-back-color: rgba(240, 240, 240, 1);--main-back-item-color: rgba(254, 254, 254, 1)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100dvh;color:var(--color-text);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:url(/assets/forest-BtC0DC9-.png);background-size:cover}body{overflow:hidden;background-color:#000;scrollbar-width:none}@font-face{font-family:a_OldTyper;src:url(/assets/a_OldTyper-BsgRTrmO.ttf)}@font-face{font-family:main;src:url(/assets/main-28oI6zBg.ttf)}.center-message{display:flex;justify-content:center;align-items:center;height:calc(100dvh - 100px);text-align:center}@media (min-width: 1025px){.center-block-custom{width:700px;margin:0 auto}}.center-container{display:flex;align-items:center;justify-content:center}.controller-metal{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left{left:-15px}.controller-metal-right{right:-15px}header[data-v-913ef6b1]{line-height:1.5;max-height:100vh}.logo[data-v-913ef6b1]{display:block;margin:0 auto 2rem}nav[data-v-913ef6b1]{width:100%;font-size:12px;text-align:center;margin-top:2rem}nav a.router-link-exact-active[data-v-913ef6b1]{color:var(--color-text)}nav a.router-link-exact-active[data-v-913ef6b1]:hover{background-color:transparent}nav a[data-v-913ef6b1]{display:inline-block;padding:0 1rem;border-left:1px solid var(--color-border)}nav a[data-v-913ef6b1]:first-of-type{border:0}@media (min-width: 1024px){header[data-v-913ef6b1]{display:flex;place-items:center;padding-right:calc(var(--section-gap) / 2)}.logo[data-v-913ef6b1]{margin:0 2rem 0 0}header .wrapper[data-v-913ef6b1]{display:flex;place-items:flex-start;flex-wrap:wrap}nav[data-v-913ef6b1]{text-align:left;margin-left:-1rem;font-size:1rem;padding:1rem 0;margin-top:1rem}}.belt-block[data-v-5ed18f32]{height:100%;background-image:url(/assets/belt_mini-CjEl-eRA.png);background-size:cover;position:relative}.shadow[data-v-5ed18f32]{height:10px;width:100%;position:absolute;bottom:5px;background-color:#000;box-shadow:0 5px 10px #000}.belt-block[data-v-0effe39e]{height:100%;background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;position:relative}.shadow[data-v-0effe39e]{height:10px;width:100%;position:absolute;background-color:#000}.shadow-top[data-v-0effe39e]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-0effe39e]{bottom:0;box-shadow:0 5px 10px #000}.text-with-font[data-v-33b571eb]{font-family:a_OldTyper;color:#bfa07d;font-weight:600;letter-spacing:2px;line-height:20px;font-size:22px}.plate-block[data-v-34e952c0]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-34e952c0]{height:100%;background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;position:relative;border-radius:4px}.pin[data-v-34e952c0]{width:7px;height:7px;position:absolute;background-image:url(/assets/pin-CJfldk-j.png);background-size:cover}.pin-top-left[data-v-34e952c0]{top:3px;left:3px}.pin-top-right[data-v-34e952c0]{top:3px;right:3px}.pin-bottom-right[data-v-34e952c0]{bottom:3px;right:3px}.pin-bottom-left[data-v-34e952c0]{bottom:3px;left:3px}.game-header[data-v-b87f05d7]{height:100px;position:fixed;top:5px;left:0;width:100%;z-index:2000}.center[data-v-b87f05d7]{position:relative;max-width:1920px;margin:0 auto}.logo[data-v-b87f05d7]{width:90px;height:88px;float:left;margin:0 10px;position:relative;z-index:20;top:10px}.belt-mini[data-v-b87f05d7]{height:30px;position:relative;z-index:10}.belt[data-v-b87f05d7]{height:60px;position:relative;top:-5px}.position-right-center-block[data-v-b87f05d7]{height:100%;display:flex;align-items:center;justify-content:left}.controller-metal[data-v-b87f05d7]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px;z-index:15}.controller-metal-left[data-v-b87f05d7]{left:-30px}.controller-metal-right[data-v-b87f05d7]{right:-30px}.main[data-v-d5fe1f79]{position:relative}.message-cloud[data-v-d5fe1f79],.message-cloud-2[data-v-d5fe1f79],.message-cloud-3[data-v-d5fe1f79]{background-color:bisque}.message-cloud[data-v-d5fe1f79]{margin:15px 0;padding:16px;font-family:main;color:#000;line-height:20px;font-size:18px;font-weight:900;position:relative}.message-cloud[data-v-d5fe1f79],.message-cloud-2[data-v-d5fe1f79],.message-cloud-3[data-v-d5fe1f79]{border-radius:5px;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;display:flow-root;box-shadow:0 0 5px #000}.message-cloud-2[data-v-d5fe1f79],.message-cloud-3[data-v-d5fe1f79]{position:absolute;top:0;left:0}.message-cloud-2[data-v-d5fe1f79]{transform:rotate(-3deg);filter:brightness(50%);height:100%;width:100%}.message-cloud-3[data-v-d5fe1f79]{transform:rotate(2deg);filter:brightness(80%);height:100%;width:100%}.qr[data-v-7828595e]{text-align:center;width:200px}.qr-code[data-v-7828595e]{margin:12px 0;box-shadow:0 3px 15px #626262}.team-name[data-v-7828595e]{margin:10px 0;font-size:20px}.message[data-v-7828595e]{margin:7px 0}.hr[data-v-cffe3743]{margin:10px 0;border:dashed 1px;border-color:#000}.message-header[data-v-cffe3743]{font-size:20px;padding-right:50px}.collapse-icon[data-v-cffe3743]{position:absolute;top:12px;right:12px;width:45px;height:28px;cursor:pointer;background-image:url(/assets/collapse-B6YzUtGl.png);background-size:cover;background-position:center}.collapse-icon-up[data-v-cffe3743]{transform:rotate(-180deg)}.message-content[data-v-cffe3743]{font-weight:500;white-space:pre-wrap}.message-image-border[data-v-cffe3743]{width:40%;float:left;padding:7px;margin-right:15px;background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;box-shadow:0 3px 15px #626262;transform:rotate(-3deg)}.message-image[data-v-cffe3743]{width:100%}.button-dialog[data-v-cffe3743]{display:inline-block;font-weight:600;border-radius:5px;font-size:16px;margin-top:10px;margin-right:10px;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;color:#bfa07d}.button-dialog-text[data-v-cffe3743]{padding:5px 12px}.message-footer[data-v-cffe3743]{padding-right:50px;font-weight:400;color:var(--second-color);position:relative}.application-label[data-v-cffe3743]{background-image:url(/assets/label-BzqF2n2Z.png);background-size:cover;width:30px;height:52px;text-align:center;padding-top:22px;color:#000;position:absolute;bottom:-10px;right:5px;transform:rotate(9deg);font-size:30px;font-family:sans-serif}.form-custom[data-v-1272527b]{position:fixed;bottom:0;left:0;width:100%;color:#fff;z-index:1000}.input-form[data-v-1272527b]{height:76px;position:relative;z-index:1000;margin:0 auto;max-width:1920px}.controller-metal[data-v-1272527b]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-1272527b]{left:-30px}.controller-metal-right[data-v-1272527b]{right:-30px}.controller[data-v-1272527b]{display:flex;position:relative}.game-input[data-v-1272527b]{position:relative;top:14px;left:15px;height:50px;width:calc(100% - 175px)}.game-input-run[data-v-1272527b]{height:100%;width:100%;padding-left:27px;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;font-size:18px;font-family:a_OldTyper;background-color:transparent}.game-input-run[data-v-1272527b]::placeholder{color:#333}.game-input-run[data-v-1272527b]:focus{border:0;outline:none}.game-button-run-shadow[data-v-1272527b]{position:absolute;right:10px;top:-5px;height:80px;width:150px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-1272527b]{background-image:url(/assets/button-DdziMEJE.png);background-size:cover;font-size:1.5em;position:absolute;right:10px;top:-5px;height:80px;width:155px;border:0;background-color:transparent;margin:0;padding:0}.modal-overlay[data-v-0bc4d193]{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:9999;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-content[data-v-0bc4d193]{position:relative;width:90%;max-width:420px;min-height:250px;background-position:center;background-repeat:no-repeat;overflow:hidden;background-image:url(/assets/stop-DGMqnbBD.png);background-size:cover}.modal-body[data-v-0bc4d193]{position:relative;z-index:2;padding:30px}.game-input-form-shadow[data-v-0bc4d193]{height:90px;width:120%;left:-10%;top:3px;position:absolute;box-shadow:0 -5px 10px #000;z-index:9;background-color:#000}.messages-block[data-v-0bc4d193]{top:90px;height:calc(100dvh - 166px);overflow-y:auto;scrollbar-width:none;position:relative;padding:15px 10px}.team-name-block[data-v-0bc4d193]{margin-right:10px;width:50px;height:40px;font-family:a_OldTyper}.text-middle-wrapper[data-v-0bc4d193]{position:relative;height:100%}.text-middle-wrapper p[data-v-0bc4d193]{position:absolute;top:50%;left:50%;margin-right:-50%;transform:translate(-50%,-50%)}.text-truncate[data-v-0bc4d193]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:medium}.input-custom[data-v-7028a494]{width:100%;box-sizing:border-box;margin:10px 0}.error-message[data-v-7028a494]{color:brown;margin:16px 0}.input-custom[data-v-7028a494],.button-custom[data-v-7028a494]{padding:12px 16px;border:1px solid #ddd;border-radius:15px;font-size:16px}.button-container[data-v-7028a494]{display:flex} +:root{color-scheme:only light;--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64);--main-color: rgba(34, 50, 60, 1);--second-color: rgb(97, 74, 22);--main-back-color: rgba(240, 240, 240, 1);--main-back-item-color: rgba(254, 254, 254, 1)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100dvh;color:var(--color-text);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:url(/assets/forest-BtC0DC9-.png);background-size:cover}body{overflow:hidden;background-color:#000;scrollbar-width:none}@font-face{font-family:a_OldTyper;src:url(/assets/a_OldTyper-BsgRTrmO.ttf)}@font-face{font-family:main;src:url(/assets/main-28oI6zBg.ttf)}.center-message{display:flex;justify-content:center;align-items:center;height:calc(100dvh - 100px);text-align:center}@media (min-width: 1025px){.center-block-custom{width:700px;margin:0 auto}}.center-container{display:flex;align-items:center;justify-content:center}.controller-metal{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left{left:-15px}.controller-metal-right{right:-15px}header[data-v-913ef6b1]{line-height:1.5;max-height:100vh}.logo[data-v-913ef6b1]{display:block;margin:0 auto 2rem}nav[data-v-913ef6b1]{width:100%;font-size:12px;text-align:center;margin-top:2rem}nav a.router-link-exact-active[data-v-913ef6b1]{color:var(--color-text)}nav a.router-link-exact-active[data-v-913ef6b1]:hover{background-color:transparent}nav a[data-v-913ef6b1]{display:inline-block;padding:0 1rem;border-left:1px solid var(--color-border)}nav a[data-v-913ef6b1]:first-of-type{border:0}@media (min-width: 1024px){header[data-v-913ef6b1]{display:flex;place-items:center;padding-right:calc(var(--section-gap) / 2)}.logo[data-v-913ef6b1]{margin:0 2rem 0 0}header .wrapper[data-v-913ef6b1]{display:flex;place-items:flex-start;flex-wrap:wrap}nav[data-v-913ef6b1]{text-align:left;margin-left:-1rem;font-size:1rem;padding:1rem 0;margin-top:1rem}}.belt-block[data-v-5ed18f32]{height:100%;background-image:url(/assets/belt_mini-CjEl-eRA.png);background-size:cover;position:relative}.shadow[data-v-5ed18f32]{height:10px;width:100%;position:absolute;bottom:5px;background-color:#000;box-shadow:0 5px 10px #000}.belt-block[data-v-0effe39e]{height:100%;background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;position:relative}.shadow[data-v-0effe39e]{height:10px;width:100%;position:absolute;background-color:#000}.shadow-top[data-v-0effe39e]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-0effe39e]{bottom:0;box-shadow:0 5px 10px #000}.text-with-font[data-v-33b571eb]{font-family:a_OldTyper;color:#bfa07d;font-weight:600;letter-spacing:2px;line-height:20px;font-size:22px}.plate-block[data-v-34e952c0]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-34e952c0]{height:100%;background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;position:relative;border-radius:4px}.pin[data-v-34e952c0]{width:7px;height:7px;position:absolute;background-image:url(/assets/pin-CJfldk-j.png);background-size:cover}.pin-top-left[data-v-34e952c0]{top:3px;left:3px}.pin-top-right[data-v-34e952c0]{top:3px;right:3px}.pin-bottom-right[data-v-34e952c0]{bottom:3px;right:3px}.pin-bottom-left[data-v-34e952c0]{bottom:3px;left:3px}.game-header[data-v-b87f05d7]{height:100px;position:fixed;top:5px;left:0;width:100%;z-index:2000}.center[data-v-b87f05d7]{position:relative;max-width:1920px;margin:0 auto}.logo[data-v-b87f05d7]{width:90px;height:88px;float:left;margin:0 10px;position:relative;z-index:20;top:10px}.belt-mini[data-v-b87f05d7]{height:30px;position:relative;z-index:10}.belt[data-v-b87f05d7]{height:60px;position:relative;top:-5px}.position-right-center-block[data-v-b87f05d7]{height:100%;display:flex;align-items:center;justify-content:left}.controller-metal[data-v-b87f05d7]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px;z-index:15}.controller-metal-left[data-v-b87f05d7]{left:-30px}.controller-metal-right[data-v-b87f05d7]{right:-30px}.main[data-v-d5fe1f79]{position:relative}.message-cloud[data-v-d5fe1f79],.message-cloud-2[data-v-d5fe1f79],.message-cloud-3[data-v-d5fe1f79]{background-color:bisque}.message-cloud[data-v-d5fe1f79]{margin:15px 0;padding:16px;font-family:main;color:#000;line-height:20px;font-size:18px;font-weight:900;position:relative}.message-cloud[data-v-d5fe1f79],.message-cloud-2[data-v-d5fe1f79],.message-cloud-3[data-v-d5fe1f79]{border-radius:5px;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;display:flow-root;box-shadow:0 0 5px #000}.message-cloud-2[data-v-d5fe1f79],.message-cloud-3[data-v-d5fe1f79]{position:absolute;top:0;left:0}.message-cloud-2[data-v-d5fe1f79]{transform:rotate(-3deg);filter:brightness(50%);height:100%;width:100%}.message-cloud-3[data-v-d5fe1f79]{transform:rotate(2deg);filter:brightness(80%);height:100%;width:100%}.qr[data-v-7828595e]{text-align:center;width:200px}.qr-code[data-v-7828595e]{margin:12px 0;box-shadow:0 3px 15px #626262}.team-name[data-v-7828595e]{margin:10px 0;font-size:20px}.message[data-v-7828595e]{margin:7px 0}.hr[data-v-cd72111e]{margin:10px 0;border:dashed 1px;border-color:#000}.message-header[data-v-cd72111e]{font-size:20px;padding-right:50px}.collapse-icon[data-v-cd72111e]{position:absolute;top:12px;right:12px;width:45px;height:28px;cursor:pointer;background-image:url(/assets/collapse-B6YzUtGl.png);background-size:cover;background-position:center}.collapse-icon-up[data-v-cd72111e]{transform:rotate(-180deg)}.message-content[data-v-cd72111e]{font-weight:500;white-space:pre-wrap}.message-image-border[data-v-cd72111e]{width:40%;float:left;padding:7px;margin-right:15px;background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;box-shadow:0 3px 15px #626262;transform:rotate(-3deg)}.message-image[data-v-cd72111e]{width:100%}.button-dialog[data-v-cd72111e]{display:inline-block;font-weight:600;border-radius:5px;font-size:16px;margin-top:10px;margin-right:10px;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;color:#bfa07d}.button-dialog-text[data-v-cd72111e]{cursor:pointer;padding:5px 12px}.message-footer[data-v-cd72111e]{padding-right:50px;font-weight:400;color:var(--second-color);position:relative}.application-label[data-v-cd72111e]{background-image:url(/assets/label-BzqF2n2Z.png);background-size:cover;width:30px;height:52px;text-align:center;padding-top:22px;color:#000;position:absolute;bottom:-10px;right:5px;transform:rotate(9deg);font-size:30px;font-family:sans-serif}.form-custom[data-v-1272527b]{position:fixed;bottom:0;left:0;width:100%;color:#fff;z-index:1000}.input-form[data-v-1272527b]{height:76px;position:relative;z-index:1000;margin:0 auto;max-width:1920px}.controller-metal[data-v-1272527b]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-1272527b]{left:-30px}.controller-metal-right[data-v-1272527b]{right:-30px}.controller[data-v-1272527b]{display:flex;position:relative}.game-input[data-v-1272527b]{position:relative;top:14px;left:15px;height:50px;width:calc(100% - 175px)}.game-input-run[data-v-1272527b]{height:100%;width:100%;padding-left:27px;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;font-size:18px;font-family:a_OldTyper;background-color:transparent}.game-input-run[data-v-1272527b]::placeholder{color:#333}.game-input-run[data-v-1272527b]:focus{border:0;outline:none}.game-button-run-shadow[data-v-1272527b]{position:absolute;right:10px;top:-5px;height:80px;width:150px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-1272527b]{background-image:url(/assets/button-DdziMEJE.png);background-size:cover;font-size:1.5em;position:absolute;right:10px;top:-5px;height:80px;width:155px;border:0;background-color:transparent;margin:0;padding:0}.modal-overlay[data-v-0bc4d193]{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:9999;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-content[data-v-0bc4d193]{position:relative;width:90%;max-width:420px;min-height:250px;background-position:center;background-repeat:no-repeat;overflow:hidden;background-image:url(/assets/stop-DGMqnbBD.png);background-size:cover}.modal-body[data-v-0bc4d193]{position:relative;z-index:2;padding:30px}.game-input-form-shadow[data-v-0bc4d193]{height:90px;width:120%;left:-10%;top:3px;position:absolute;box-shadow:0 -5px 10px #000;z-index:9;background-color:#000}.messages-block[data-v-0bc4d193]{top:90px;height:calc(100dvh - 166px);overflow-y:auto;scrollbar-width:none;position:relative;padding:15px 10px}.team-name-block[data-v-0bc4d193]{margin-right:10px;width:50px;height:40px;font-family:a_OldTyper}.text-middle-wrapper[data-v-0bc4d193]{position:relative;height:100%}.text-middle-wrapper p[data-v-0bc4d193]{position:absolute;top:50%;left:50%;margin-right:-50%;transform:translate(-50%,-50%)}.text-truncate[data-v-0bc4d193]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:medium}.input-custom[data-v-7028a494]{width:100%;box-sizing:border-box;margin:10px 0}.error-message[data-v-7028a494]{color:brown;margin:16px 0}.input-custom[data-v-7028a494],.button-custom[data-v-7028a494]{padding:12px 16px;border:1px solid #ddd;border-radius:15px;font-size:16px}.button-container[data-v-7028a494]{display:flex} diff --git a/cmd/evening_detective/static/user/assets/index-nzyDlEjF.js b/cmd/evening_detective/static/user/assets/index-fGX07waq.js similarity index 99% rename from cmd/evening_detective/static/user/assets/index-nzyDlEjF.js rename to cmd/evening_detective/static/user/assets/index-fGX07waq.js index 6a45bf0..e9746f7 100644 --- a/cmd/evening_detective/static/user/assets/index-nzyDlEjF.js +++ b/cmd/evening_detective/static/user/assets/index-fGX07waq.js @@ -29,4 +29,4 @@ Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),r.put(o,13)}},Mr=n,M The chosen QR Code version cannot contain this amount of data. Minimum version required to store current data is: `+H+`. `);const j=P(L,U,V),k=e.getSymbolSize(L),J=new r(k);return p(J,L),b(J),w(J,L),S(J,U,0),L>=7&&B(J,L),R(J,j),isNaN(D)&&(D=i.getBestMask(J,S.bind(null,J,U))),i.applyMask(D,J),S(J,U,D),{modules:J,version:L,errorCorrectionLevel:U,maskPattern:D,segments:V}}return pr.create=function(L,U){if(typeof L>"u"||L==="")throw new Error("No input text");let D=t.M,V,H;return typeof U<"u"&&(D=t.from(U.errorCorrectionLevel,t.M),V=a.from(U.version),H=i.from(U.maskPattern),U.toSJISFunc&&e.setToSJISFunction(U.toSJISFunc)),G(L,V,D,H)},pr}var Nr={},Or={},Ko;function xl(){return Ko||(Ko=1,function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const s=parseInt(r.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const s=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:o,scale:o?4:i,margin:s,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,s){return s.width&&s.width>=r+s.margin*2?s.width/(r+s.margin*2):s.scale},e.getImageWidth=function(r,s){const o=e.getScale(r,s);return Math.floor((r+s.margin*2)*o)},e.qrToImageData=function(r,s,o){const i=s.modules.size,c=s.modules.data,l=e.getScale(i,o),a=Math.floor((i+o.margin*2)*l),u=o.margin*l,f=[o.color.light,o.color.dark];for(let g=0;g=u&&p>=u&&g"u"&&(!i||!i.getContext)&&(l=i,i=void 0),i||(a=r()),l=t.getOptions(l);const u=t.getImageWidth(o.modules.size,l),f=a.getContext("2d"),g=f.createImageData(u,u);return t.qrToImageData(g.data,o,l),n(f,a,u),f.putImageData(g,0,0),a},e.renderToDataURL=function(o,i,c){let l=c;typeof l>"u"&&(!i||!i.getContext)&&(l=i,i=void 0),l||(l={});const a=e.render(o,i,l),u=l.type||"image/png",f=l.rendererOpts||{};return a.toDataURL(u,f.quality)}}(Nr)),Nr}var Lr={},Go;function Hf(){if(Go)return Lr;Go=1;const e=xl();function t(s,o){const i=s.a/255,c=o+'="'+s.hex+'"';return i<1?c+" "+o+'-opacity="'+i.toFixed(2).slice(1)+'"':c}function n(s,o,i){let c=s+o;return typeof i<"u"&&(c+=" "+i),c}function r(s,o,i){let c="",l=0,a=!1,u=0;for(let f=0;f0&&g>0&&s[f-1]||(c+=a?n("M",g+i,.5+p+i):n("m",l,0),l=0,a=!1),g+1':"",p="',b='viewBox="0 0 '+f+" "+f+'"',B=''+g+p+` -`;return typeof c=="function"&&c(null,B),B},Lr}var Wo;function Vf(){if(Wo)return Nt;Wo=1;const e=Ef(),t=kf(),n=Uf(),r=Hf();function s(o,i,c,l,a){const u=[].slice.call(arguments,1),f=u.length,g=typeof u[f-1]=="function";if(!g&&!e())throw new Error("Callback required as last argument");if(g){if(f<2)throw new Error("Too few arguments provided");f===2?(a=c,c=i,i=l=void 0):f===3&&(i.getContext&&typeof a>"u"?(a=l,l=void 0):(a=l,l=c,c=i,i=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(c=i,i=l=void 0):f===2&&!i.getContext&&(l=c,c=i,i=void 0),new Promise(function(p,b){try{const w=t.create(c,l);p(o(w,i,l))}catch(w){b(w)}})}try{const p=t.create(c,l);a(null,o(p,i,l))}catch(p){a(p)}}return Nt.create=t.create,Nt.toCanvas=s.bind(null,n.render),Nt.toDataURL=s.bind(null,n.renderToDataURL),Nt.toString=s.bind(null,function(o,i,c){return r.render(o,c)}),Nt}var $r=Vf();/*! vue-qrcode v2.0.0 | (c) 2018-present Chen Fengyuan | MIT */const Jo="ready";var jf=Me({name:"VueQrcode",props:{value:{type:String,default:void 0},options:{type:Object,default:void 0},tag:{type:String,default:"canvas"}},emits:[Jo],watch:{$props:{deep:!0,immediate:!0,handler(){this.$el&&this.generate()}}},mounted(){this.generate()},methods:{generate(){const e=this.options||{},t=String(this.value),n=()=>{this.$emit(Jo,this.$el)};switch(this.tag){case"canvas":$r.toCanvas(this.$el,t,e,r=>{if(r)throw r;n()});break;case"img":$r.toDataURL(t,e,(r,s)=>{if(r)throw r;this.$el.src=s,this.$el.onload=n});break;case"svg":$r.toString(t,e,(r,s)=>{if(r)throw r;const o=document.createElement("div");o.innerHTML=s;const i=o.querySelector("svg");if(i){const{attributes:c,childNodes:l}=i;Object.keys(c).forEach(a=>{const u=c[Number(a)];this.$el.setAttribute(u.name,u.value)}),Object.keys(l).forEach(a=>{const u=l[Number(a)];this.$el.appendChild(u.cloneNode(!0))}),n()}});break}}},render(){return vs(this.tag,this.$slots.default)}});const qf={class:"main"},Kf={class:"message-cloud"},zf=Me({__name:"MessagePaper",setup(e){return(t,n)=>(ee(),fe("div",qf,[n[0]||(n[0]=K("div",{class:"message-cloud-3"},null,-1)),n[1]||(n[1]=K("div",{class:"message-cloud-2"},null,-1)),K("div",Kf,[vn(t.$slots,"default",{},void 0)])]))}}),Rs=ke(zf,[["__scopeId","data-v-d5fe1f79"]]),Gf={class:"qr"},Wf={class:"team-name"},Jf=Me({__name:"WelcomeGameBlock",props:{qrurl:{},team:{}},setup(e){const t=me({width:200,margin:1,color:{dark:"#303030",light:"#f0f0f0"}}),n=e;return(r,s)=>(ee(),fe("div",null,[ie(Rs,null,{default:yt(()=>[K("div",Gf,[K("div",Wf,Xe(r.team),1),ie(_t(jf),{value:n.qrurl,options:t.value,tag:"svg",class:"qr-code"},null,8,["value","options"]),s[0]||(s[0]=K("div",{class:"message"}," Пора решать загадку ",-1))])]),_:1})]))}}),Yf=ke(Jf,[["__scopeId","data-v-7828595e"]]),Qf={class:"message-header"},Xf={class:"message-content"},Zf={key:0},ed={class:"message-image-border"},td=["src"],nd={key:0},rd={key:0,class:"hr"},sd=["onClick","disabled"],od={class:"button-dialog-text"},id={key:1,class:"hr"},ld={class:"application-label"},cd=Me({__name:"MessageCloud",props:Li({action:{},gameState:{},login:{},password:{},index:{},count:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Qi(e,"modelValue");function r(){t.action.isOpen=!t.action.isOpen}async function s(o){n.value=!0,await Rl(t.login,t.password,o)}return(o,i)=>(ee(),Tt(Rs,null,{default:yt(()=>{var c;return[K("div",Qf,[jt(Xe(t.action.place)+": "+Xe(t.action.name)+" ",1),t.action.isOpen?(ee(),fe("span",{key:0,class:"collapse-icon collapse-icon-up",onClick:r})):(ee(),fe("span",{key:1,class:"collapse-icon",onClick:r}))]),Bn(K("div",null,[i[0]||(i[0]=K("hr",{class:"hr"},null,-1)),K("div",Xf,[t.action.image.length?(ee(),fe("div",Zf,[K("div",ed,[K("img",{src:t.action.image,class:"message-image"},null,8,td)])])):en("",!0),jt(Xe(t.action.text),1)]),o.index==o.count-1?(ee(),fe("div",nd,[(c=t.action.buttons)!=null&&c.length?(ee(),fe("hr",rd)):en("",!0),(ee(!0),fe(_e,null,jr(t.action.buttons,l=>(ee(),fe("div",{key:l.code,class:"button-dialog",onClick:a=>s(l.code),disabled:o.gameState!=="RUN"||!l.show},[K("div",od,Xe(l.name),1)],8,sd))),128))])):en("",!0),t.action.applications.length?(ee(),fe("hr",id)):en("",!0),(ee(!0),fe(_e,null,jr(t.action.applications,l=>(ee(),fe("div",{class:"message-footer",key:l.name},[jt(" Приложение: "+Xe(l.name)+" ",1),K("div",ld,Xe(l.number),1)]))),128))],512),[[Pu,t.action.isOpen]])]}),_:1}))}}),ud=ke(cd,[["__scopeId","data-v-cffe3743"]]),ad={class:"form-custom"},fd={class:"center-block-custom"},dd={class:"controller"},hd={class:"game-input"},pd=["disabled"],gd=["disabled"],md=Me({__name:"GameInputForm",props:Li({gameState:{},login:{},password:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=me(""),n=e,r=Qi(e,"modelValue");async function s(){r.value=!0;const o=t.value.trim();if(o===""){t.value="";return}await Rl(n.login,n.password,o),t.value=""}return(o,i)=>(ee(),fe("div",ad,[ie(El,{class:"input-form"},{default:yt(()=>[ie(Fn,{class:"controller-metal controller-metal-left"}),ie(Fn,{class:"controller-metal controller-metal-right"}),K("div",fd,[K("form",{onSubmit:ll(s,["prevent"])},[K("div",dd,[K("div",hd,[Bn(K("input",{id:"run",class:"game-input-run","onUpdate:modelValue":i[0]||(i[0]=c=>t.value=c),type:"text",placeholder:"Место назначения",disabled:n.gameState!=="RUN"},null,8,pd),[[Yr,t.value]])]),i[2]||(i[2]=K("div",{class:"game-button-run-shadow"},null,-1)),K("button",{class:"game-button-run",type:"submit",disabled:n.gameState!=="RUN"},[ie(Sl,null,{default:yt(()=>i[1]||(i[1]=[jt("Поехали")])),_:1})],8,gd)])],32)])]),_:1})]))}}),_d=ke(md,[["__scopeId","data-v-1272527b"]]),yd={key:0},vd={class:"messages-block center-container"},bd={key:1},wd={class:"center-block-custom"},Ed={key:0,class:"modal-overlay"},Sd=Me({__name:"GameWindow",setup(e){const t=wl(),n=Xa(),r=me(!1),s=me(""),o=me(""),i=me({name:"",actions:[]}),c=me([]),l=me(),a=me("STOP"),u=me(""),f=me("-");async function g(){var P;let B;try{B=await Cl(s.value,o.value)}catch(_){_ instanceof xt?t.push("/login"):console.error("Неизвестная ошибка:",_);return}const S=i.value.actions;i.value=B;const R=(P=i.value)==null?void 0:P.actions;R.forEach(_=>{_.isOpen=!0});for(let _=0;_N.show)}}const p=async(B="smooth")=>{await ds(),l.value&&l.value.scrollTo({top:l.value.scrollHeight,behavior:B})};async function b(){f.value=location.href;const B=await wf(s.value,o.value);a.value=B.state,B.state==="NEW"&&(u.value="Игра ещё не началась"),B.state==="RUN"&&(u.value=""),B.state==="STOP"&&(u.value="Игра остановлена")}on(c,()=>{r.value!==!1&&(p(),r.value=!1)},{deep:!0});let w=0;return gs(()=>{var B,S;s.value=sessionStorage.getItem("teamId")||"",o.value=sessionStorage.getItem("password")||"",s.value==""&&(s.value=((B=n.query.name)==null?void 0:B.toString())||"",o.value=((S=n.query.password)==null?void 0:S.toString())||"",sessionStorage.setItem("teamId",s.value),sessionStorage.setItem("password",o.value)),g(),w=setInterval(()=>{g(),b()},2e3),t.beforeEach((R,P,_)=>{clearInterval(w),_()})}),(B,S)=>(ee(),fe(_e,null,[K("div",null,[ie(bf),ie(_d,{modelValue:r.value,"onUpdate:modelValue":S[0]||(S[0]=R=>r.value=R),gameState:a.value,login:s.value,password:o.value},null,8,["modelValue","gameState","login","password"]),!i.value||!i.value.actions.length?(ee(),fe("div",yd,[K("div",vd,[ie(Yf,{qrurl:f.value,team:i.value.name},null,8,["qrurl","team"])])])):(ee(),fe("div",bd,[K("div",{class:"messages-block",ref_key:"scrollContainer",ref:l},[K("div",wd,[(ee(!0),fe(_e,null,jr(i.value.actions,(R,P)=>(ee(),fe("div",{key:R.id},[ie(ud,{modelValue:r.value,"onUpdate:modelValue":S[1]||(S[1]=_=>r.value=_),action:R,gameState:a.value,login:s.value,password:o.value,index:P,count:i.value.actions.length},null,8,["modelValue","action","gameState","login","password","index","count"])]))),128))])],512)]))]),a.value=="STOP"?(ee(),fe("div",Ed,S[2]||(S[2]=[K("div",{class:"modal-content"},[K("div",{class:"modal-body"})],-1)]))):en("",!0)],64))}}),Cd=ke(Sd,[["__scopeId","data-v-0bc4d193"]]),Rd=Me({__name:"HomeView",setup(e){return(t,n)=>(ee(),Tt(Cd))}}),Pd={class:"center-message"},Ad={class:"button-container"},Td={class:"button-custom",type:"submit"},xd={class:"error-message"},Id=Me({__name:"LoginWindow",setup(e){const t=wl(),n=me(""),r=me(""),s=me("Вход"),o=me("");async function i(){const c=s.value;s.value="Загрузка...",o.value="";try{await Cl(n.value,r.value)}catch(l){if(l instanceof xt){if(n.value==""&&r.value=="")return;o.value="Не верны название команды или пароль"}else o.value="Сервер не доступен";return}finally{s.value=c}sessionStorage.setItem("teamId",n.value),sessionStorage.setItem("password",r.value),t.push("/")}return gs(()=>{n.value=sessionStorage.getItem("teamId")||"",r.value=sessionStorage.getItem("password")||"",i()}),(c,l)=>(ee(),fe(_e,null,[l[2]||(l[2]=K("div",{class:"header-block"}," Вечерний детектив ",-1)),K("div",Pd,[ie(Rs,null,{default:yt(()=>[K("form",{onSubmit:ll(i,["prevent"])},[K("div",null,[Bn(K("input",{class:"input-custom","onUpdate:modelValue":l[0]||(l[0]=a=>n.value=a),type:"text",placeholder:"Название команды"},null,512),[[Yr,n.value]])]),K("div",null,[Bn(K("input",{class:"input-custom","onUpdate:modelValue":l[1]||(l[1]=a=>r.value=a),type:"text",placeholder:"Пароль",autocapitalize:"off"},null,512),[[Yr,r.value]])]),K("div",Ad,[K("button",Td,Xe(s.value),1)]),K("div",xd,Xe(o.value),1)],32)]),_:1})])],64))}}),Md=ke(Id,[["__scopeId","data-v-7028a494"]]),Bd=Me({__name:"LoginView",setup(e){return(t,n)=>(ee(),Tt(Md))}}),Nd=Ya({history:Pa("/"),routes:[{path:"/",name:"home",component:Rd},{path:"/login",name:"login",component:Bd}]}),Ps=Ku(ef);Ps.use(Ju());Ps.use(Nd);Ps.mount("#app"); +`;return typeof c=="function"&&c(null,B),B},Lr}var Wo;function Vf(){if(Wo)return Nt;Wo=1;const e=Ef(),t=kf(),n=Uf(),r=Hf();function s(o,i,c,l,a){const u=[].slice.call(arguments,1),f=u.length,g=typeof u[f-1]=="function";if(!g&&!e())throw new Error("Callback required as last argument");if(g){if(f<2)throw new Error("Too few arguments provided");f===2?(a=c,c=i,i=l=void 0):f===3&&(i.getContext&&typeof a>"u"?(a=l,l=void 0):(a=l,l=c,c=i,i=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(c=i,i=l=void 0):f===2&&!i.getContext&&(l=c,c=i,i=void 0),new Promise(function(p,b){try{const w=t.create(c,l);p(o(w,i,l))}catch(w){b(w)}})}try{const p=t.create(c,l);a(null,o(p,i,l))}catch(p){a(p)}}return Nt.create=t.create,Nt.toCanvas=s.bind(null,n.render),Nt.toDataURL=s.bind(null,n.renderToDataURL),Nt.toString=s.bind(null,function(o,i,c){return r.render(o,c)}),Nt}var $r=Vf();/*! vue-qrcode v2.0.0 | (c) 2018-present Chen Fengyuan | MIT */const Jo="ready";var jf=Me({name:"VueQrcode",props:{value:{type:String,default:void 0},options:{type:Object,default:void 0},tag:{type:String,default:"canvas"}},emits:[Jo],watch:{$props:{deep:!0,immediate:!0,handler(){this.$el&&this.generate()}}},mounted(){this.generate()},methods:{generate(){const e=this.options||{},t=String(this.value),n=()=>{this.$emit(Jo,this.$el)};switch(this.tag){case"canvas":$r.toCanvas(this.$el,t,e,r=>{if(r)throw r;n()});break;case"img":$r.toDataURL(t,e,(r,s)=>{if(r)throw r;this.$el.src=s,this.$el.onload=n});break;case"svg":$r.toString(t,e,(r,s)=>{if(r)throw r;const o=document.createElement("div");o.innerHTML=s;const i=o.querySelector("svg");if(i){const{attributes:c,childNodes:l}=i;Object.keys(c).forEach(a=>{const u=c[Number(a)];this.$el.setAttribute(u.name,u.value)}),Object.keys(l).forEach(a=>{const u=l[Number(a)];this.$el.appendChild(u.cloneNode(!0))}),n()}});break}}},render(){return vs(this.tag,this.$slots.default)}});const qf={class:"main"},Kf={class:"message-cloud"},zf=Me({__name:"MessagePaper",setup(e){return(t,n)=>(ee(),fe("div",qf,[n[0]||(n[0]=K("div",{class:"message-cloud-3"},null,-1)),n[1]||(n[1]=K("div",{class:"message-cloud-2"},null,-1)),K("div",Kf,[vn(t.$slots,"default",{},void 0)])]))}}),Rs=ke(zf,[["__scopeId","data-v-d5fe1f79"]]),Gf={class:"qr"},Wf={class:"team-name"},Jf=Me({__name:"WelcomeGameBlock",props:{qrurl:{},team:{}},setup(e){const t=me({width:200,margin:1,color:{dark:"#303030",light:"#f0f0f0"}}),n=e;return(r,s)=>(ee(),fe("div",null,[ie(Rs,null,{default:yt(()=>[K("div",Gf,[K("div",Wf,Xe(r.team),1),ie(_t(jf),{value:n.qrurl,options:t.value,tag:"svg",class:"qr-code"},null,8,["value","options"]),s[0]||(s[0]=K("div",{class:"message"}," Пора решать загадку ",-1))])]),_:1})]))}}),Yf=ke(Jf,[["__scopeId","data-v-7828595e"]]),Qf={class:"message-header"},Xf={class:"message-content"},Zf={key:0},ed={class:"message-image-border"},td=["src"],nd={key:0},rd={key:0,class:"hr"},sd=["onClick","disabled"],od={class:"button-dialog-text"},id={key:1,class:"hr"},ld={class:"application-label"},cd=Me({__name:"MessageCloud",props:Li({action:{},gameState:{},login:{},password:{},index:{},count:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Qi(e,"modelValue");function r(){t.action.isOpen=!t.action.isOpen}async function s(o){n.value=!0,await Rl(t.login,t.password,o)}return(o,i)=>(ee(),Tt(Rs,null,{default:yt(()=>{var c;return[K("div",Qf,[jt(Xe(t.action.place)+": "+Xe(t.action.name)+" ",1),t.action.isOpen?(ee(),fe("span",{key:0,class:"collapse-icon collapse-icon-up",onClick:r})):(ee(),fe("span",{key:1,class:"collapse-icon",onClick:r}))]),Bn(K("div",null,[i[0]||(i[0]=K("hr",{class:"hr"},null,-1)),K("div",Xf,[t.action.image.length?(ee(),fe("div",Zf,[K("div",ed,[K("img",{src:t.action.image,class:"message-image"},null,8,td)])])):en("",!0),jt(Xe(t.action.text),1)]),o.index==o.count-1?(ee(),fe("div",nd,[(c=t.action.buttons)!=null&&c.length?(ee(),fe("hr",rd)):en("",!0),(ee(!0),fe(_e,null,jr(t.action.buttons,l=>(ee(),fe("div",{key:l.code,class:"button-dialog",onClick:a=>s(l.code),disabled:o.gameState!=="RUN"||!l.show},[K("div",od,Xe(l.name),1)],8,sd))),128))])):en("",!0),t.action.applications.length?(ee(),fe("hr",id)):en("",!0),(ee(!0),fe(_e,null,jr(t.action.applications,l=>(ee(),fe("div",{class:"message-footer",key:l.name},[jt(" Приложение: "+Xe(l.name)+" ",1),K("div",ld,Xe(l.number),1)]))),128))],512),[[Pu,t.action.isOpen]])]}),_:1}))}}),ud=ke(cd,[["__scopeId","data-v-cd72111e"]]),ad={class:"form-custom"},fd={class:"center-block-custom"},dd={class:"controller"},hd={class:"game-input"},pd=["disabled"],gd=["disabled"],md=Me({__name:"GameInputForm",props:Li({gameState:{},login:{},password:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=me(""),n=e,r=Qi(e,"modelValue");async function s(){r.value=!0;const o=t.value.trim();if(o===""){t.value="";return}await Rl(n.login,n.password,o),t.value=""}return(o,i)=>(ee(),fe("div",ad,[ie(El,{class:"input-form"},{default:yt(()=>[ie(Fn,{class:"controller-metal controller-metal-left"}),ie(Fn,{class:"controller-metal controller-metal-right"}),K("div",fd,[K("form",{onSubmit:ll(s,["prevent"])},[K("div",dd,[K("div",hd,[Bn(K("input",{id:"run",class:"game-input-run","onUpdate:modelValue":i[0]||(i[0]=c=>t.value=c),type:"text",placeholder:"Место назначения",disabled:n.gameState!=="RUN"},null,8,pd),[[Yr,t.value]])]),i[2]||(i[2]=K("div",{class:"game-button-run-shadow"},null,-1)),K("button",{class:"game-button-run",type:"submit",disabled:n.gameState!=="RUN"},[ie(Sl,null,{default:yt(()=>i[1]||(i[1]=[jt("Поехали")])),_:1})],8,gd)])],32)])]),_:1})]))}}),_d=ke(md,[["__scopeId","data-v-1272527b"]]),yd={key:0},vd={class:"messages-block center-container"},bd={key:1},wd={class:"center-block-custom"},Ed={key:0,class:"modal-overlay"},Sd=Me({__name:"GameWindow",setup(e){const t=wl(),n=Xa(),r=me(!1),s=me(""),o=me(""),i=me({name:"",actions:[]}),c=me([]),l=me(),a=me("STOP"),u=me(""),f=me("-");async function g(){var P;let B;try{B=await Cl(s.value,o.value)}catch(_){_ instanceof xt?t.push("/login"):console.error("Неизвестная ошибка:",_);return}const S=i.value.actions;i.value=B;const R=(P=i.value)==null?void 0:P.actions;R.forEach(_=>{_.isOpen=!0});for(let _=0;_N.show)}}const p=async(B="smooth")=>{await ds(),l.value&&l.value.scrollTo({top:l.value.scrollHeight,behavior:B})};async function b(){f.value=location.href;const B=await wf(s.value,o.value);a.value=B.state,B.state==="NEW"&&(u.value="Игра ещё не началась"),B.state==="RUN"&&(u.value=""),B.state==="STOP"&&(u.value="Игра остановлена")}on(c,()=>{r.value!==!1&&(p(),r.value=!1)},{deep:!0});let w=0;return gs(()=>{var B,S;s.value=sessionStorage.getItem("teamId")||"",o.value=sessionStorage.getItem("password")||"",s.value==""&&(s.value=((B=n.query.name)==null?void 0:B.toString())||"",o.value=((S=n.query.password)==null?void 0:S.toString())||"",sessionStorage.setItem("teamId",s.value),sessionStorage.setItem("password",o.value)),g(),w=setInterval(()=>{g(),b()},2e3),t.beforeEach((R,P,_)=>{clearInterval(w),_()})}),(B,S)=>(ee(),fe(_e,null,[K("div",null,[ie(bf),ie(_d,{modelValue:r.value,"onUpdate:modelValue":S[0]||(S[0]=R=>r.value=R),gameState:a.value,login:s.value,password:o.value},null,8,["modelValue","gameState","login","password"]),!i.value||!i.value.actions.length?(ee(),fe("div",yd,[K("div",vd,[ie(Yf,{qrurl:f.value,team:i.value.name},null,8,["qrurl","team"])])])):(ee(),fe("div",bd,[K("div",{class:"messages-block",ref_key:"scrollContainer",ref:l},[K("div",wd,[(ee(!0),fe(_e,null,jr(i.value.actions,(R,P)=>(ee(),fe("div",{key:R.id},[ie(ud,{modelValue:r.value,"onUpdate:modelValue":S[1]||(S[1]=_=>r.value=_),action:R,gameState:a.value,login:s.value,password:o.value,index:P,count:i.value.actions.length},null,8,["modelValue","action","gameState","login","password","index","count"])]))),128))])],512)]))]),a.value=="STOP"?(ee(),fe("div",Ed,S[2]||(S[2]=[K("div",{class:"modal-content"},[K("div",{class:"modal-body"})],-1)]))):en("",!0)],64))}}),Cd=ke(Sd,[["__scopeId","data-v-0bc4d193"]]),Rd=Me({__name:"HomeView",setup(e){return(t,n)=>(ee(),Tt(Cd))}}),Pd={class:"center-message"},Ad={class:"button-container"},Td={class:"button-custom",type:"submit"},xd={class:"error-message"},Id=Me({__name:"LoginWindow",setup(e){const t=wl(),n=me(""),r=me(""),s=me("Вход"),o=me("");async function i(){const c=s.value;s.value="Загрузка...",o.value="";try{await Cl(n.value,r.value)}catch(l){if(l instanceof xt){if(n.value==""&&r.value=="")return;o.value="Не верны название команды или пароль"}else o.value="Сервер не доступен";return}finally{s.value=c}sessionStorage.setItem("teamId",n.value),sessionStorage.setItem("password",r.value),t.push("/")}return gs(()=>{n.value=sessionStorage.getItem("teamId")||"",r.value=sessionStorage.getItem("password")||"",i()}),(c,l)=>(ee(),fe(_e,null,[l[2]||(l[2]=K("div",{class:"header-block"}," Вечерний детектив ",-1)),K("div",Pd,[ie(Rs,null,{default:yt(()=>[K("form",{onSubmit:ll(i,["prevent"])},[K("div",null,[Bn(K("input",{class:"input-custom","onUpdate:modelValue":l[0]||(l[0]=a=>n.value=a),type:"text",placeholder:"Название команды"},null,512),[[Yr,n.value]])]),K("div",null,[Bn(K("input",{class:"input-custom","onUpdate:modelValue":l[1]||(l[1]=a=>r.value=a),type:"text",placeholder:"Пароль",autocapitalize:"off"},null,512),[[Yr,r.value]])]),K("div",Ad,[K("button",Td,Xe(s.value),1)]),K("div",xd,Xe(o.value),1)],32)]),_:1})])],64))}}),Md=ke(Id,[["__scopeId","data-v-7028a494"]]),Bd=Me({__name:"LoginView",setup(e){return(t,n)=>(ee(),Tt(Md))}}),Nd=Ya({history:Pa("/"),routes:[{path:"/",name:"home",component:Rd},{path:"/login",name:"login",component:Bd}]}),Ps=Ku(ef);Ps.use(Ju());Ps.use(Nd);Ps.mount("#app"); diff --git a/cmd/evening_detective/static/user/index.html b/cmd/evening_detective/static/user/index.html index 04d87dc..398d13c 100644 --- a/cmd/evening_detective/static/user/index.html +++ b/cmd/evening_detective/static/user/index.html @@ -5,8 +5,8 @@ Вечерний детектив - - + +