const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-CfxD1nqp.js","./html-Xm3MTC80.js","./javascript-Begb3drz.js","./css-g_GSZ1hr.js","./typescript-BeSffZBD.js","./json-DWmkr0yC.js","./vue-html-CZhY4ukh.js"])))=>i.map(i=>d[i]); (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function e(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=e(i);fetch(i.href,o)}})();var Dne=Object.create,PN=Object.defineProperty,Nne=Object.getOwnPropertyDescriptor,Yy=Object.getOwnPropertyNames,Bne=Object.getPrototypeOf,Fne=Object.prototype.hasOwnProperty,jne=(t,r)=>function(){return t&&(r=(0,t[Yy(t)[0]])(t=0)),r},Une=(t,r)=>function(){return r||(0,t[Yy(t)[0]])((r={exports:{}}).exports,r),r.exports},Gne=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Yy(r))!Fne.call(t,i)&&i!==e&&PN(t,i,{get:()=>r[i],enumerable:!(n=Nne(r,i))||n.enumerable});return t},Wne=(t,r,e)=>(e=t!=null?Dne(Bne(t)):{},Gne(PN(e,"default",{value:t,enumerable:!0}),t)),nf=jne({"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/esm_shims.js"(){}}),Zne=Une({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(t,r){nf(),r.exports=n;function e(o){return o instanceof Buffer?Buffer.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function n(o){if(o=o||{},o.circles)return i(o);const a=new Map;if(a.set(Date,g=>new Date(g)),a.set(Map,(g,h)=>new Map(l(Array.from(g),h))),a.set(Set,(g,h)=>new Set(l(Array.from(g),h))),o.constructorHandlers)for(const g of o.constructorHandlers)a.set(g[0],g[1]);let s=null;return o.proto?u:c;function l(g,h){const d=Object.keys(g),f=new Array(d.length);for(let C=0;Cnew Date(d)),l.set(Map,(d,f)=>new Map(u(Array.from(d),f))),l.set(Set,(d,f)=>new Set(u(Array.from(d),f))),o.constructorHandlers)for(const d of o.constructorHandlers)l.set(d[0],d[1]);let c=null;return o.proto?h:g;function u(d,f){const C=Object.keys(d),v=new Array(C.length);for(let A=0;Anavigator?.platform?navigator?.platform.toLowerCase().includes("mac"):/Macintosh/.test(navigator.userAgent),Xne=/(?:^|[-_/])(\w)/g,qne=/-(\w)/g,Qne=/([a-z0-9])([A-Z])/g;function NN(t,r){return r?r.toUpperCase():""}function BN(t){return t&&`${t}`.replace(Xne,NN)}function Jne(t){return t&&t.replace(qne,NN)}function eie(t){return t&&t.replace(Qne,(r,e,n)=>`${e}-${n}`).toLowerCase()}function tie(t,r){let e=t.replace(/^[a-z]:/i,"").replace(/\\/g,"/");e.endsWith(`index${r}`)&&(e=e.replace(`/index${r}`,r));const n=e.lastIndexOf("/"),i=e.substring(n+1);{const o=i.lastIndexOf(r);return i.substring(0,o)}}function FN(t){return t&&t.slice().sort((r,e)=>r.keye.key?1:0)}var rie=/^https?:\/\//;function nie(t){return t.startsWith("/")||rie.test(t)}var fv=(0,Yne.default)({circles:!0});function iie(){return Math.random().toString(36).slice(2)}function CM(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}function vM(t){return Array.isArray(t)}const oie={trailing:!0};function as(t,r=25,e={}){if(e={...oie,...e},!Number.isFinite(r))throw new TypeError("Expected `wait` to be a finite number");let n,i,o=[],a,s;const l=(c,u)=>(a=aie(t,c,u),a.finally(()=>{if(a=null,e.trailing&&s&&!i){const g=l(c,s);return s=null,g}}),a);return function(...c){return a?(e.trailing&&(s=c),a):new Promise(u=>{const g=!i&&e.leading;clearTimeout(i),i=setTimeout(()=>{i=null;const h=e.leading?n:l(this,c);for(const d of o)d(h);o=[]},r),g?(n=l(this,c),u(n)):o.push(u)})}}async function aie(t,r,e){return await t.apply(r,e)}function E6(t,r={},e){for(const n in t){const i=t[n],o=e?`${e}:${n}`:n;typeof i=="object"&&i!==null?E6(i,r,o):typeof i=="function"&&(r[o]=i)}return r}const sie={run:t=>t()},lie=()=>sie,jN=typeof console.createTask<"u"?console.createTask:lie;function cie(t,r){const e=r.shift(),n=jN(e);return t.reduce((i,o)=>i.then(()=>n.run(()=>o(...r))),Promise.resolve())}function uie(t,r){const e=r.shift(),n=jN(e);return Promise.all(t.map(i=>n.run(()=>i(...r))))}function Q4(t,r){for(const e of[...t])e(r)}let gie=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(r,e,n={}){if(!r||typeof e!="function")return()=>{};const i=r;let o;for(;this._deprecatedHooks[r];)o=this._deprecatedHooks[r],r=o.to;if(o&&!n.allowDeprecated){let a=o.message;a||(a=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!e.name)try{Object.defineProperty(e,"name",{get:()=>"_"+r.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[r]=this._hooks[r]||[],this._hooks[r].push(e),()=>{e&&(this.removeHook(r,e),e=void 0)}}hookOnce(r,e){let n,i=(...o)=>(typeof n=="function"&&n(),n=void 0,i=void 0,e(...o));return n=this.hook(r,i),n}removeHook(r,e){if(this._hooks[r]){const n=this._hooks[r].indexOf(e);n!==-1&&this._hooks[r].splice(n,1),this._hooks[r].length===0&&delete this._hooks[r]}}deprecateHook(r,e){this._deprecatedHooks[r]=typeof e=="string"?{to:e}:e;const n=this._hooks[r]||[];delete this._hooks[r];for(const i of n)this.hook(r,i)}deprecateHooks(r){Object.assign(this._deprecatedHooks,r);for(const e in r)this.deprecateHook(e,r[e])}addHooks(r){const e=E6(r),n=Object.keys(e).map(i=>this.hook(i,e[i]));return()=>{for(const i of n.splice(0,n.length))i()}}removeHooks(r){const e=E6(r);for(const n in e)this.removeHook(n,e[n])}removeAllHooks(){for(const r in this._hooks)delete this._hooks[r]}callHook(r,...e){return e.unshift(r),this.callHookWith(cie,r,...e)}callHookParallel(r,...e){return e.unshift(r),this.callHookWith(uie,r,...e)}callHookWith(r,e,...n){const i=this._before||this._after?{name:e,args:n,context:{}}:void 0;this._before&&Q4(this._before,i);const o=r(e in this._hooks?[...this._hooks[e]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&i&&Q4(this._after,i)}):(this._after&&i&&Q4(this._after,i),o)}beforeEach(r){return this._before=this._before||[],this._before.push(r),()=>{if(this._before!==void 0){const e=this._before.indexOf(r);e!==-1&&this._before.splice(e,1)}}}afterEach(r){return this._after=this._after||[],this._after.push(r),()=>{if(this._after!==void 0){const e=this._after.indexOf(r);e!==-1&&this._after.splice(e,1)}}}};function UN(){return new gie}const hie=6e4;function GN(t){return t}const die=GN,{clearTimeout:fie,setTimeout:Cie}=globalThis,vie=Math.random.bind(Math);function Aie(t,r){const{post:e,on:n,off:i=()=>{},eventNames:o=[],serialize:a=GN,deserialize:s=die,resolver:l,bind:c="rpc",timeout:u=hie}=r,g=new Map;let h,d=!1;const f=new Proxy({},{get(A,I){if(I==="$functions")return t;if(I==="$close")return C;if(I==="then"&&!o.includes("then")&&!("then"in t))return;const p=(...b)=>{e(a({m:I,a:b,t:"q"}))};if(o.includes(I))return p.asEvent=p,p;const m=async(...b)=>{if(d)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);if(h)try{await h}finally{h=void 0}return new Promise((_,S)=>{const E=pie();let T;u>=0&&(T=Cie(()=>{try{throw r.onTimeoutError?.(I,b),new Error(`[birpc] timeout on calling "${I}"`)}catch(L){S(L)}g.delete(E)},u),typeof T=="object"&&(T=T.unref?.())),g.set(E,{resolve:_,reject:S,timeoutId:T,method:I}),e(a({m:I,a:b,i:E,t:"q"}))})};return m.asEvent=p,m}});function C(){d=!0,g.forEach(({reject:A,method:I})=>{A(new Error(`[birpc] rpc is closed, cannot call "${I}"`))}),g.clear(),i(v)}async function v(A,...I){const p=s(A);if(p.t==="q"){const{m,a:b}=p;let _,S;const E=l?l(m,t[m]):t[m];if(!E)S=new Error(`[birpc] function "${m}" not found`);else try{_=await E.apply(c==="rpc"?f:t,b)}catch(T){S=T}p.i&&(S&&r.onError&&r.onError(S,m,b),e(a({t:"s",i:p.i,r:_,e:S}),...I))}else{const{i:m,r:b,e:_}=p,S=g.get(m);S&&(fie(S.timeoutId),_?S.reject(_):S.resolve(b)),g.delete(m)}}return h=n(v),f}const Iie="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function pie(t=21){let r="",e=t;for(;e--;)r+=Iie[vie()*64|0];return r}/** * @vue/shared v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Xy(t){const r=Object.create(null);for(const e of t.split(","))r[e]=1;return e=>e in r}const Ot={},D2=[],ha=()=>{},mie=()=>!1,NA=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),qy=t=>t.startsWith("onUpdate:"),Vr=Object.assign,Qy=(t,r)=>{const e=t.indexOf(r);e>-1&&t.splice(e,1)},yie=Object.prototype.hasOwnProperty,Vt=(t,r)=>yie.call(t,r),Ge=Array.isArray,N2=t=>af(t)==="[object Map]",Wu=t=>af(t)==="[object Set]",AM=t=>af(t)==="[object Date]",it=t=>typeof t=="function",fr=t=>typeof t=="string",Vo=t=>typeof t=="symbol",Zt=t=>t!==null&&typeof t=="object",WN=t=>(Zt(t)||it(t))&&it(t.then)&&it(t.catch),ZN=Object.prototype.toString,af=t=>ZN.call(t),bie=t=>af(t).slice(8,-1),KN=t=>af(t)==="[object Object]",Jy=t=>fr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,yh=Xy(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),BA=t=>{const r=Object.create(null);return e=>r[e]||(r[e]=t(e))},wie=/-(\w)/g,Ni=BA(t=>t.replace(wie,(r,e)=>e?e.toUpperCase():"")),$ie=/\B([A-Z])/g,Cs=BA(t=>t.replace($ie,"-$1").toLowerCase()),FA=BA(t=>t.charAt(0).toUpperCase()+t.slice(1)),y5=BA(t=>t?`on${FA(t)}`:""),ai=(t,r)=>!Object.is(t,r),b5=(t,...r)=>{for(let e=0;e{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,writable:n,value:e})},Cv=t=>{const r=parseFloat(t);return isNaN(r)?t:r},_ie=t=>{const r=fr(t)?Number(t):NaN;return isNaN(r)?t:r};let IM;const jA=()=>IM||(IM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function kr(t){if(Ge(t)){const r={};for(let e=0;e{if(e){const n=e.split(zie);n.length>1&&(r[n[0].trim()]=n[1].trim())}}),r}function Le(t){let r="";if(fr(t))r=t;else if(Ge(t))for(let e=0;eXl(e,r))}const qN=t=>!!(t&&t.__v_isRef===!0),Se=t=>fr(t)?t:t==null?"":Ge(t)||Zt(t)&&(t.toString===ZN||!it(t.toString))?qN(t)?Se(t.value):JSON.stringify(t,QN,2):String(t),QN=(t,r)=>qN(r)?QN(t,r.value):N2(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((e,[n,i],o)=>(e[J4(n,o)+" =>"]=i,e),{})}:Wu(r)?{[`Set(${r.size})`]:[...r.values()].map(e=>J4(e))}:Vo(r)?J4(r):Zt(r)&&!Ge(r)&&!KN(r)?String(r):r,J4=(t,r="")=>{var e;return Vo(t)?`Symbol(${(e=t.description)!=null?e:r})`:t};/** * @vue/reactivity v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Vn;class Oie{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Vn,!r&&Vn&&(this.index=(Vn.scopes||(Vn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let r,e;if(this.scopes)for(r=0,e=this.scopes.length;r0)return;if(wh){let r=wh;for(wh=void 0;r;){const e=r.next;r.next=void 0,r.flags&=-9,r=e}}let t;for(;bh;){let r=bh;for(bh=void 0;r;){const e=r.next;if(r.next=void 0,r.flags&=-9,r.flags&1)try{r.trigger()}catch(n){t||(t=n)}r=e}}if(t)throw t}function nB(t){for(let r=t.deps;r;r=r.nextDep)r.version=-1,r.prevActiveLink=r.dep.activeLink,r.dep.activeLink=r}function iB(t){let r,e=t.depsTail,n=e;for(;n;){const i=n.prevDep;n.version===-1?(n===e&&(e=i),ob(n),xie(n)):r=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=r,t.depsTail=e}function S6(t){for(let r=t.deps;r;r=r.nextDep)if(r.dep.version!==r.version||r.dep.computed&&(oB(r.dep.computed)||r.dep.version!==r.version))return!0;return!!t._dirty}function oB(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===rd))return;t.globalVersion=rd;const r=t.dep;if(t.flags|=2,r.version>0&&!t.isSSR&&t.deps&&!S6(t)){t.flags&=-3;return}const e=Qt,n=Lo;Qt=t,Lo=!0;try{nB(t);const i=t.fn(t._value);(r.version===0||ai(i,t._value))&&(t._value=i,r.version++)}catch(i){throw r.version++,i}finally{Qt=e,Lo=n,iB(t),t.flags&=-3}}function ob(t,r=!1){const{dep:e,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),e.subs===t&&(e.subs=n,!n&&e.computed)){e.computed.flags&=-5;for(let o=e.computed.deps;o;o=o.nextDep)ob(o,!0)}!r&&!--e.sc&&e.map&&e.map.delete(e.key)}function xie(t){const{prevDep:r,nextDep:e}=t;r&&(r.nextDep=e,t.prevDep=void 0),e&&(e.prevDep=r,t.nextDep=void 0)}let Lo=!0;const aB=[];function x1(){aB.push(Lo),Lo=!1}function H1(){const t=aB.pop();Lo=t===void 0?!0:t}function pM(t){const{cleanup:r}=t;if(t.cleanup=void 0,r){const e=Qt;Qt=void 0;try{r()}finally{Qt=e}}}let rd=0;class Hie{constructor(r,e){this.sub=r,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class UA{constructor(r){this.computed=r,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(r){if(!Qt||!Lo||Qt===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==Qt)e=this.activeLink=new Hie(Qt,this),Qt.deps?(e.prevDep=Qt.depsTail,Qt.depsTail.nextDep=e,Qt.depsTail=e):Qt.deps=Qt.depsTail=e,sB(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=Qt.depsTail,e.nextDep=void 0,Qt.depsTail.nextDep=e,Qt.depsTail=e,Qt.deps===e&&(Qt.deps=n)}return e}trigger(r){this.version++,rd++,this.notify(r)}notify(r){nb();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ib()}}}function sB(t){if(t.dep.sc++,t.sub.flags&4){const r=t.dep.computed;if(r&&!t.dep.subs){r.flags|=20;for(let n=r.deps;n;n=n.nextDep)sB(n)}const e=t.dep.subs;e!==t&&(t.prevSub=e,e&&(e.nextSub=t)),t.dep.subs=t}}const vv=new WeakMap,kl=Symbol(""),T6=Symbol(""),nd=Symbol("");function Ln(t,r,e){if(Lo&&Qt){let n=vv.get(t);n||vv.set(t,n=new Map);let i=n.get(e);i||(n.set(e,i=new UA),i.map=n,i.key=e),i.track()}}function Da(t,r,e,n,i,o){const a=vv.get(t);if(!a){rd++;return}const s=l=>{l&&l.trigger()};if(nb(),r==="clear")a.forEach(s);else{const l=Ge(t),c=l&&Jy(e);if(l&&e==="length"){const u=Number(n);a.forEach((g,h)=>{(h==="length"||h===nd||!Vo(h)&&h>=u)&&s(g)})}else switch((e!==void 0||a.has(void 0))&&s(a.get(e)),c&&s(a.get(nd)),r){case"add":l?c&&s(a.get("length")):(s(a.get(kl)),N2(t)&&s(a.get(T6)));break;case"delete":l||(s(a.get(kl)),N2(t)&&s(a.get(T6)));break;case"set":N2(t)&&s(a.get(kl));break}}ib()}function Vie(t,r){const e=vv.get(t);return e&&e.get(r)}function Zc(t){const r=mt(t);return r===t?r:(Ln(r,"iterate",nd),ao(t)?r:r.map(kn))}function GA(t){return Ln(t=mt(t),"iterate",nd),t}const Pie={__proto__:null,[Symbol.iterator](){return tp(this,Symbol.iterator,kn)},concat(...t){return Zc(this).concat(...t.map(r=>Ge(r)?Zc(r):r))},entries(){return tp(this,"entries",t=>(t[1]=kn(t[1]),t))},every(t,r){return Va(this,"every",t,r,void 0,arguments)},filter(t,r){return Va(this,"filter",t,r,e=>e.map(kn),arguments)},find(t,r){return Va(this,"find",t,r,kn,arguments)},findIndex(t,r){return Va(this,"findIndex",t,r,void 0,arguments)},findLast(t,r){return Va(this,"findLast",t,r,kn,arguments)},findLastIndex(t,r){return Va(this,"findLastIndex",t,r,void 0,arguments)},forEach(t,r){return Va(this,"forEach",t,r,void 0,arguments)},includes(...t){return rp(this,"includes",t)},indexOf(...t){return rp(this,"indexOf",t)},join(t){return Zc(this).join(t)},lastIndexOf(...t){return rp(this,"lastIndexOf",t)},map(t,r){return Va(this,"map",t,r,void 0,arguments)},pop(){return jg(this,"pop")},push(...t){return jg(this,"push",t)},reduce(t,...r){return mM(this,"reduce",t,r)},reduceRight(t,...r){return mM(this,"reduceRight",t,r)},shift(){return jg(this,"shift")},some(t,r){return Va(this,"some",t,r,void 0,arguments)},splice(...t){return jg(this,"splice",t)},toReversed(){return Zc(this).toReversed()},toSorted(t){return Zc(this).toSorted(t)},toSpliced(...t){return Zc(this).toSpliced(...t)},unshift(...t){return jg(this,"unshift",t)},values(){return tp(this,"values",kn)}};function tp(t,r,e){const n=GA(t),i=n[r]();return n!==t&&!ao(t)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=e(o.value)),o}),i}const Rie=Array.prototype;function Va(t,r,e,n,i,o){const a=GA(t),s=a!==t&&!ao(t),l=a[r];if(l!==Rie[r]){const g=l.apply(t,o);return s?kn(g):g}let c=e;a!==t&&(s?c=function(g,h){return e.call(this,kn(g),h,t)}:e.length>2&&(c=function(g,h){return e.call(this,g,h,t)}));const u=l.call(a,c,n);return s&&i?i(u):u}function mM(t,r,e,n){const i=GA(t);let o=e;return i!==t&&(ao(t)?e.length>3&&(o=function(a,s,l){return e.call(this,a,s,l,t)}):o=function(a,s,l){return e.call(this,a,kn(s),l,t)}),i[r](o,...n)}function rp(t,r,e){const n=mt(t);Ln(n,"iterate",nd);const i=n[r](...e);return(i===-1||i===!1)&&cb(e[0])?(e[0]=mt(e[0]),n[r](...e)):i}function jg(t,r,e=[]){x1(),nb();const n=mt(t)[r].apply(t,e);return ib(),H1(),n}const Die=Xy("__proto__,__v_isRef,__isVue"),lB=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Vo));function Nie(t){Vo(t)||(t=String(t));const r=mt(this);return Ln(r,"has",t),r.hasOwnProperty(t)}class cB{constructor(r=!1,e=!1){this._isReadonly=r,this._isShallow=e}get(r,e,n){const i=this._isReadonly,o=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return o;if(e==="__v_raw")return n===(i?o?Xie:dB:o?hB:gB).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(n)?r:void 0;const a=Ge(r);if(!i){let l;if(a&&(l=Pie[e]))return l;if(e==="hasOwnProperty")return Nie}const s=Reflect.get(r,e,Je(r)?r:n);return(Vo(e)?lB.has(e):Die(e))||(i||Ln(r,"get",e),o)?s:Je(s)?a&&Jy(e)?s:s.value:Zt(s)?i?V1(s):ba(s):s}}class uB extends cB{constructor(r=!1){super(!1,r)}set(r,e,n,i){let o=r[e];if(!this._isShallow){const l=ql(o);if(!ao(n)&&!ql(n)&&(o=mt(o),n=mt(n)),!Ge(r)&&Je(o)&&!Je(n))return l?!1:(o.value=n,!0)}const a=Ge(r)&&Jy(e)?Number(e)t,j0=t=>Reflect.getPrototypeOf(t);function Gie(t,r,e){return function(...n){const i=this.__v_raw,o=mt(i),a=N2(o),s=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,c=i[t](...n),u=e?L6:r?k6:kn;return!r&&Ln(o,"iterate",l?T6:kl),{next(){const{value:g,done:h}=c.next();return h?{value:g,done:h}:{value:s?[u(g[0]),u(g[1])]:u(g),done:h}},[Symbol.iterator](){return this}}}}function U0(t){return function(...r){return t==="delete"?!1:t==="clear"?void 0:this}}function Wie(t,r){const e={get(i){const o=this.__v_raw,a=mt(o),s=mt(i);t||(ai(i,s)&&Ln(a,"get",i),Ln(a,"get",s));const{has:l}=j0(a),c=r?L6:t?k6:kn;if(l.call(a,i))return c(o.get(i));if(l.call(a,s))return c(o.get(s));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!t&&Ln(mt(i),"iterate",kl),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=mt(o),s=mt(i);return t||(ai(i,s)&&Ln(a,"has",i),Ln(a,"has",s)),i===s?o.has(i):o.has(i)||o.has(s)},forEach(i,o){const a=this,s=a.__v_raw,l=mt(s),c=r?L6:t?k6:kn;return!t&&Ln(l,"iterate",kl),s.forEach((u,g)=>i.call(o,c(u),c(g),a))}};return Vr(e,t?{add:U0("add"),set:U0("set"),delete:U0("delete"),clear:U0("clear")}:{add(i){!r&&!ao(i)&&!ql(i)&&(i=mt(i));const o=mt(this);return j0(o).has.call(o,i)||(o.add(i),Da(o,"add",i,i)),this},set(i,o){!r&&!ao(o)&&!ql(o)&&(o=mt(o));const a=mt(this),{has:s,get:l}=j0(a);let c=s.call(a,i);c||(i=mt(i),c=s.call(a,i));const u=l.call(a,i);return a.set(i,o),c?ai(o,u)&&Da(a,"set",i,o):Da(a,"add",i,o),this},delete(i){const o=mt(this),{has:a,get:s}=j0(o);let l=a.call(o,i);l||(i=mt(i),l=a.call(o,i)),s&&s.call(o,i);const c=o.delete(i);return l&&Da(o,"delete",i,void 0),c},clear(){const i=mt(this),o=i.size!==0,a=i.clear();return o&&Da(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Gie(i,t,r)}),e}function ab(t,r){const e=Wie(t,r);return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Vt(e,i)&&i in n?e:n,i,o)}const Zie={get:ab(!1,!1)},Kie={get:ab(!1,!0)},Yie={get:ab(!0,!1)};const gB=new WeakMap,hB=new WeakMap,dB=new WeakMap,Xie=new WeakMap;function qie(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qie(t){return t.__v_skip||!Object.isExtensible(t)?0:qie(bie(t))}function ba(t){return ql(t)?t:lb(t,!1,Fie,Zie,gB)}function sb(t){return lb(t,!1,Uie,Kie,hB)}function V1(t){return lb(t,!0,jie,Yie,dB)}function lb(t,r,e,n,i){if(!Zt(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=Qie(t);if(a===0)return t;const s=new Proxy(t,a===2?n:e);return i.set(t,s),s}function B2(t){return ql(t)?B2(t.__v_raw):!!(t&&t.__v_isReactive)}function ql(t){return!!(t&&t.__v_isReadonly)}function ao(t){return!!(t&&t.__v_isShallow)}function cb(t){return t?!!t.__v_raw:!1}function mt(t){const r=t&&t.__v_raw;return r?mt(r):t}function fB(t){return!Vt(t,"__v_skip")&&Object.isExtensible(t)&&YN(t,"__v_skip",!0),t}const kn=t=>Zt(t)?ba(t):t,k6=t=>Zt(t)?V1(t):t;function Je(t){return t?t.__v_isRef===!0:!1}function G(t){return CB(t,!1)}function Bi(t){return CB(t,!0)}function CB(t,r){return Je(t)?t:new Jie(t,r)}class Jie{constructor(r,e){this.dep=new UA,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?r:mt(r),this._value=e?r:kn(r),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(r){const e=this._rawValue,n=this.__v_isShallow||ao(r)||ql(r);r=n?r:mt(r),ai(r,e)&&(this._rawValue=r,this._value=n?r:kn(r),this.dep.trigger())}}function y(t){return Je(t)?t.value:t}function id(t){return it(t)?t():y(t)}const eoe={get:(t,r,e)=>r==="__v_raw"?t:y(Reflect.get(t,r,e)),set:(t,r,e,n)=>{const i=t[r];return Je(i)&&!Je(e)?(i.value=e,!0):Reflect.set(t,r,e,n)}};function vB(t){return B2(t)?t:new Proxy(t,eoe)}class toe{constructor(r){this.__v_isRef=!0,this._value=void 0;const e=this.dep=new UA,{get:n,set:i}=r(e.track.bind(e),e.trigger.bind(e));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(r){this._set(r)}}function ub(t){return new toe(t)}function O6(t){const r=Ge(t)?new Array(t.length):{};for(const e in t)r[e]=AB(t,e);return r}class roe{constructor(r,e,n){this._object=r,this._key=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const r=this._object[this._key];return this._value=r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return Vie(mt(this._object),this._key)}}class noe{constructor(r){this._getter=r,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ioe(t,r,e){return Je(t)?t:it(t)?new noe(t):Zt(t)&&arguments.length>1?AB(t,r,e):G(t)}function AB(t,r,e){const n=t[r];return Je(n)?n:new roe(t,r,e)}class ooe{constructor(r,e,n){this.fn=r,this.setter=e,this._value=void 0,this.dep=new UA(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Qt!==this)return rB(this,!0),!0}get value(){const r=this.dep.track();return oB(this),r&&(r.version=this.dep.version),this._value}set value(r){this.setter&&this.setter(r)}}function aoe(t,r,e=!1){let n,i;return it(t)?n=t:(n=t.get,i=t.set),new ooe(n,i,e)}const G0={},Av=new WeakMap;let vl;function soe(t,r=!1,e=vl){if(e){let n=Av.get(e);n||Av.set(e,n=[]),n.push(t)}}function loe(t,r,e=Ot){const{immediate:n,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=e,c=m=>i?m:ao(m)||i===!1||i===0?Na(m,1):Na(m);let u,g,h,d,f=!1,C=!1;if(Je(t)?(g=()=>t.value,f=ao(t)):B2(t)?(g=()=>c(t),f=!0):Ge(t)?(C=!0,f=t.some(m=>B2(m)||ao(m)),g=()=>t.map(m=>{if(Je(m))return m.value;if(B2(m))return c(m);if(it(m))return l?l(m,2):m()})):it(t)?r?g=l?()=>l(t,2):t:g=()=>{if(h){x1();try{h()}finally{H1()}}const m=vl;vl=u;try{return l?l(t,3,[d]):t(d)}finally{vl=m}}:g=ha,r&&i){const m=g,b=i===!0?1/0:i;g=()=>Na(m(),b)}const v=rb(),A=()=>{u.stop(),v&&Qy(v.effects,u)};if(o&&r){const m=r;r=(...b)=>{m(...b),A()}}let I=C?new Array(t.length).fill(G0):G0;const p=m=>{if(!(!(u.flags&1)||!u.dirty&&!m))if(r){const b=u.run();if(i||f||(C?b.some((_,S)=>ai(_,I[S])):ai(b,I))){h&&h();const _=vl;vl=u;try{const S=[b,I===G0?void 0:C&&I[0]===G0?[]:I,d];l?l(r,3,S):r(...S),I=b}finally{vl=_}}}else u.run()};return s&&s(p),u=new eB(g),u.scheduler=a?()=>a(p,!1):p,d=m=>soe(m,!1,u),h=u.onStop=()=>{const m=Av.get(u);if(m){if(l)l(m,4);else for(const b of m)b();Av.delete(u)}},r?n?p(!0):I=u.run():a?a(p.bind(null,!0),!0):u.run(),A.pause=u.pause.bind(u),A.resume=u.resume.bind(u),A.stop=A,A}function Na(t,r=1/0,e){if(r<=0||!Zt(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),r--,Je(t))Na(t.value,r,e);else if(Ge(t))for(let n=0;n{Na(n,r,e)});else if(KN(t)){for(const n in t)Na(t[n],r,e);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&Na(t[n],r,e)}return t}/** * @vue/runtime-core v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function sf(t,r,e,n){try{return n?t(...n):t()}catch(i){lf(i,r,e)}}function Po(t,r,e,n){if(it(t)){const i=sf(t,r,e,n);return i&&WN(i)&&i.catch(o=>{lf(o,r,e)}),i}if(Ge(t)){const i=[];for(let o=0;o>>1,i=Bn[n],o=od(i);o=od(e)?Bn.push(t):Bn.splice(uoe(r),0,t),t.flags|=1,pB()}}function pB(){Iv||(Iv=IB.then(yB))}function goe(t){Ge(t)?F2.push(...t):Bs&&t.id===-1?Bs.splice(h2+1,0,t):t.flags&1||(F2.push(t),t.flags|=1),pB()}function yM(t,r,e=ta+1){for(;eod(e)-od(n));if(F2.length=0,Bs){Bs.push(...r);return}for(Bs=r,h2=0;h2t.id==null?t.flags&2?-1:1/0:t.id;function yB(t){try{for(ta=0;taY;function Y(t,r=cn,e){if(!r||t._n)return t;const n=(...i)=>{n._d&&OM(-1);const o=pv(r);let a;try{a=t(...i)}finally{pv(o),n._d&&OM(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function At(t,r){if(cn===null)return t;const e=JA(cn),n=t.dirs||(t.dirs=[]);for(let i=0;it.__isTeleport,$h=t=>t&&(t.disabled||t.disabled===""),hoe=t=>t&&(t.defer||t.defer===""),bM=t=>typeof SVGElement<"u"&&t instanceof SVGElement,wM=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,x6=(t,r)=>{const e=t&&t.to;return fr(e)?r?r(e):null:e},doe={name:"Teleport",__isTeleport:!0,process(t,r,e,n,i,o,a,s,l,c){const{mc:u,pc:g,pbc:h,o:{insert:d,querySelector:f,createText:C,createComment:v}}=c,A=$h(r.props);let{shapeFlag:I,children:p,dynamicChildren:m}=r;if(t==null){const b=r.el=C(""),_=r.anchor=C("");d(b,e,n),d(_,e,n);const S=(T,L)=>{I&16&&(i&&i.isCE&&(i.ce._teleportTarget=T),u(p,T,L,i,o,a,s,l))},E=()=>{const T=r.target=x6(r.props,f),L=EB(T,r,C,d);T&&(a!=="svg"&&bM(T)?a="svg":a!=="mathml"&&wM(T)&&(a="mathml"),A||(S(T,L),w5(r,!1)))};A&&(S(e,_),w5(r,!0)),hoe(r.props)?ni(E,o):E()}else{r.el=t.el,r.targetStart=t.targetStart;const b=r.anchor=t.anchor,_=r.target=t.target,S=r.targetAnchor=t.targetAnchor,E=$h(t.props),T=E?e:_,L=E?b:S;if(a==="svg"||bM(_)?a="svg":(a==="mathml"||wM(_))&&(a="mathml"),m?(h(t.dynamicChildren,m,T,i,o,a,s),Ib(t,r,!0)):l||g(t,r,T,L,i,o,a,s,!1),A)E?r.props&&t.props&&r.props.to!==t.props.to&&(r.props.to=t.props.to):W0(r,e,b,c,1);else if((r.props&&r.props.to)!==(t.props&&t.props.to)){const H=r.target=x6(r.props,f);H&&W0(r,H,null,c,0)}else E&&W0(r,_,S,c,1);w5(r,A)}},remove(t,r,e,{um:n,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:g,props:h}=t;if(g&&(i(c),i(u)),o&&i(l),a&16){const d=o||!$h(h);for(let f=0;f{t.isMounted=!0}),HB(()=>{t.isUnmounting=!0}),t}const Yi=[Function,Array],SB={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Yi,onEnter:Yi,onAfterEnter:Yi,onEnterCancelled:Yi,onBeforeLeave:Yi,onLeave:Yi,onAfterLeave:Yi,onLeaveCancelled:Yi,onBeforeAppear:Yi,onAppear:Yi,onAfterAppear:Yi,onAppearCancelled:Yi},TB=t=>{const r=t.subTree;return r.component?TB(r.component):r},voe={name:"BaseTransition",props:SB,setup(t,{slots:r}){const e=As(),n=Coe();return()=>{const i=r.default&&OB(r.default(),!0);if(!i||!i.length)return;const o=LB(i),a=mt(t),{mode:s}=a;if(n.isLeaving)return np(o);const l=$M(o);if(!l)return np(o);let c=H6(l,a,n,e,h=>c=h);l.type!==Gn&&ad(l,c);const u=e.subTree,g=u&&$M(u);if(g&&g.type!==Gn&&!yl(l,g)&&TB(e).type!==Gn){const h=H6(g,a,n,e);if(ad(g,h),s==="out-in"&&l.type!==Gn)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,e.job.flags&8||e.update(),delete h.afterLeave},np(o);s==="in-out"&&l.type!==Gn&&(h.delayLeave=(d,f,C)=>{const v=kB(n,g);v[String(g.key)]=g,d[Fs]=()=>{f(),d[Fs]=void 0,delete c.delayedLeave},c.delayedLeave=C})}return o}}};function LB(t){let r=t[0];if(t.length>1){for(const e of t)if(e.type!==Gn){r=e;break}}return r}const Aoe=voe;function kB(t,r){const{leavingVNodes:e}=t;let n=e.get(r.type);return n||(n=Object.create(null),e.set(r.type,n)),n}function H6(t,r,e,n,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:g,onBeforeLeave:h,onLeave:d,onAfterLeave:f,onLeaveCancelled:C,onBeforeAppear:v,onAppear:A,onAfterAppear:I,onAppearCancelled:p}=r,m=String(t.key),b=kB(e,t),_=(T,L)=>{T&&Po(T,n,9,L)},S=(T,L)=>{const H=L[1];_(T,L),Ge(T)?T.every(P=>P.length<=1)&&H():T.length<=1&&H()},E={mode:a,persisted:s,beforeEnter(T){let L=l;if(!e.isMounted)if(o)L=v||l;else return;T[Fs]&&T[Fs](!0);const H=b[m];H&&yl(t,H)&&H.el[Fs]&&H.el[Fs](),_(L,[T])},enter(T){let L=c,H=u,P=g;if(!e.isMounted)if(o)L=A||c,H=I||u,P=p||g;else return;let R=!1;const N=T[Z0]=U=>{R||(R=!0,U?_(P,[T]):_(H,[T]),E.delayedLeave&&E.delayedLeave(),T[Z0]=void 0)};L?S(L,[T,N]):N()},leave(T,L){const H=String(t.key);if(T[Z0]&&T[Z0](!0),e.isUnmounting)return L();_(h,[T]);let P=!1;const R=T[Fs]=N=>{P||(P=!0,L(),N?_(C,[T]):_(f,[T]),T[Fs]=void 0,b[H]===t&&delete b[H])};b[H]=t,d?S(d,[T,R]):R()},clone(T){const L=H6(T,r,e,n,i);return i&&i(L),L}};return E}function np(t){if(cf(t))return t=b1(t),t.children=null,t}function $M(t){if(!cf(t))return MB(t.type)&&t.children?LB(t.children):t;const{shapeFlag:r,children:e}=t;if(e){if(r&16)return e[0];if(r&32&&it(e.default))return e.default()}}function ad(t,r){t.shapeFlag&6&&t.component?(t.transition=r,ad(t.component.subTree,r)):t.shapeFlag&128?(t.ssContent.transition=r.clone(t.ssContent),t.ssFallback.transition=r.clone(t.ssFallback)):t.transition=r}function OB(t,r=!1,e){let n=[],i=0;for(let o=0;o1)for(let o=0;oV6(f,r&&(Ge(r)?r[C]:r),e,n,i));return}if(j2(n)&&!i)return;const o=n.shapeFlag&4?JA(n.component):n.el,a=i?null:o,{i:s,r:l}=t,c=r&&r.r,u=s.refs===Ot?s.refs={}:s.refs,g=s.setupState,h=mt(g),d=g===Ot?()=>!1:f=>Vt(h,f);if(c!=null&&c!==l&&(fr(c)?(u[c]=null,d(c)&&(g[c]=null)):Je(c)&&(c.value=null)),it(l))sf(l,s,12,[a,u]);else{const f=fr(l),C=Je(l);if(f||C){const v=()=>{if(t.f){const A=f?d(l)?g[l]:u[l]:l.value;i?Ge(A)&&Qy(A,o):Ge(A)?A.includes(o)||A.push(o):f?(u[l]=[o],d(l)&&(g[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else f?(u[l]=a,d(l)&&(g[l]=a)):C&&(l.value=a,t.k&&(u[t.k]=a))};a?(v.id=-1,ni(v,e)):v()}}}const _M=t=>t.nodeType===8;jA().requestIdleCallback;jA().cancelIdleCallback;function Ioe(t,r){if(_M(t)&&t.data==="["){let e=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(r(n)===!1)break}else if(_M(n))if(n.data==="]"){if(--e===0)break}else n.data==="["&&e++;n=n.nextSibling}}else r(t)}const j2=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function poe(t){it(t)&&(t={loader:t});const{loader:r,loadingComponent:e,errorComponent:n,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=t;let c=null,u,g=0;const h=()=>(g++,c=null,d()),d=()=>{let f;return c||(f=c=r().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),l)return new Promise((v,A)=>{l(C,()=>v(h()),()=>A(C),g+1)});throw C}).then(C=>f!==c&&c?c:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),u=C,C)))};return ce({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(f,C,v){const A=o?()=>{const I=o(v,p=>Ioe(f,p));I&&(C.bum||(C.bum=[])).push(I)}:v;u?A():d().then(()=>!C.isUnmounted&&A())},get __asyncResolved(){return u},setup(){const f=on;if(hb(f),u)return()=>ip(u,f);const C=p=>{c=null,lf(p,f,13,!n)};if(s&&f.suspense||su)return d().then(p=>()=>ip(p,f)).catch(p=>(C(p),()=>n?D(n,{error:p}):null));const v=G(!1),A=G(),I=G(!!i);return i&&setTimeout(()=>{I.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!A.value){const p=new Error(`Async component timed out after ${a}ms.`);C(p),A.value=p}},a),d().then(()=>{v.value=!0,f.parent&&cf(f.parent.vnode)&&f.parent.update()}).catch(p=>{C(p),A.value=p}),()=>{if(v.value&&u)return ip(u,f);if(A.value&&n)return D(n,{error:A.value});if(e&&!I.value)return D(e)}}})}function ip(t,r){const{ref:e,props:n,children:i,ce:o}=r.vnode,a=D(t,n,i);return a.ref=e,a.ce=o,delete r.vnode.ce,a}const cf=t=>t.type.__isKeepAlive;function moe(t,r){xB(t,"a",r)}function yoe(t,r){xB(t,"da",r)}function xB(t,r,e=on){const n=t.__wdc||(t.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(ZA(r,n,e),e){let i=e.parent;for(;i&&i.parent;)cf(i.parent.vnode)&&boe(n,r,e,i),i=i.parent}}function boe(t,r,e,n){const i=ZA(r,t,n,!0);fn(()=>{Qy(n[r],i)},e)}function ZA(t,r,e=on,n=!1){if(e){const i=e[t]||(e[t]=[]),o=r.__weh||(r.__weh=(...a)=>{x1();const s=uf(e),l=Po(r,e,t,a);return s(),H1(),l});return n?i.unshift(o):i.push(o),o}}const vs=t=>(r,e=on)=>{(!su||t==="sp")&&ZA(t,(...n)=>r(...n),e)},woe=vs("bm"),Ii=vs("m"),$oe=vs("bu"),_oe=vs("u"),HB=vs("bum"),fn=vs("um"),Moe=vs("sp"),zoe=vs("rtg"),Eoe=vs("rtc");function Soe(t,r=on){ZA("ec",t,r)}const db="components",Toe="directives";function Ro(t,r){return Cb(db,t,!0,r)||t}const VB=Symbol.for("v-ndc");function y1(t){return fr(t)?Cb(db,t,!1)||t:t||VB}function fb(t){return Cb(Toe,t)}function Cb(t,r,e=!0,n=!1){const i=cn||on;if(i){const o=i.type;if(t===db){const s=Cae(o,!1);if(s&&(s===r||s===Ni(r)||s===FA(Ni(r))))return o}const a=MM(i[t]||o[t],r)||MM(i.appContext[t],r);return!a&&n?o:a}}function MM(t,r){return t&&(t[r]||t[Ni(r)]||t[FA(Ni(r))])}function It(t,r,e,n){let i;const o=e,a=Ge(t);if(a||fr(t)){const s=a&&B2(t);let l=!1;s&&(l=!ao(t),t=GA(t)),i=new Array(t.length);for(let c=0,u=t.length;cr(s,l,void 0,o));else{const s=Object.keys(t);i=new Array(s.length);for(let l=0,c=s.length;l{const o=n.fn(...i);return o&&(o.key=n.key),o}:n.fn)}return t}function et(t,r,e={},n,i){if(cn.ce||cn.parent&&j2(cn.parent)&&cn.parent.ce)return r!=="default"&&(e.name=r),M(),oe(Te,null,[D("slot",e,n&&n())],64);let o=t[r];o&&o._c&&(o._d=!1),M();const a=o&&RB(o(e)),s=e.key||a&&a.key,l=oe(Te,{key:(s&&!Vo(s)?s:`_${r}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function RB(t){return t.some(r=>ld(r)?!(r.type===Gn||r.type===Te&&!RB(r.children)):!0)?t:null}function Loe(t,r){const e={};for(const n in t)e[y5(n)]=t[n];return e}const P6=t=>t?aF(t)?JA(t):P6(t.parent):null,_h=Vr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>P6(t.parent),$root:t=>P6(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>vb(t),$forceUpdate:t=>t.f||(t.f=()=>{gb(t.update)}),$nextTick:t=>t.n||(t.n=dn.bind(t.proxy)),$watch:t=>eae.bind(t)}),op=(t,r)=>t!==Ot&&!t.__isScriptSetup&&Vt(t,r),koe={get({_:t},r){if(r==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:o,accessCache:a,type:s,appContext:l}=t;let c;if(r[0]!=="$"){const d=a[r];if(d!==void 0)switch(d){case 1:return n[r];case 2:return i[r];case 4:return e[r];case 3:return o[r]}else{if(op(n,r))return a[r]=1,n[r];if(i!==Ot&&Vt(i,r))return a[r]=2,i[r];if((c=t.propsOptions[0])&&Vt(c,r))return a[r]=3,o[r];if(e!==Ot&&Vt(e,r))return a[r]=4,e[r];R6&&(a[r]=0)}}const u=_h[r];let g,h;if(u)return r==="$attrs"&&Ln(t.attrs,"get",""),u(t);if((g=s.__cssModules)&&(g=g[r]))return g;if(e!==Ot&&Vt(e,r))return a[r]=4,e[r];if(h=l.config.globalProperties,Vt(h,r))return h[r]},set({_:t},r,e){const{data:n,setupState:i,ctx:o}=t;return op(i,r)?(i[r]=e,!0):n!==Ot&&Vt(n,r)?(n[r]=e,!0):Vt(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(o[r]=e,!0)},has({_:{data:t,setupState:r,accessCache:e,ctx:n,appContext:i,propsOptions:o}},a){let s;return!!e[a]||t!==Ot&&Vt(t,a)||op(r,a)||(s=o[0])&&Vt(s,a)||Vt(n,a)||Vt(_h,a)||Vt(i.config.globalProperties,a)},defineProperty(t,r,e){return e.get!=null?t._.accessCache[r]=0:Vt(e,"value")&&this.set(t,r,e.value,null),Reflect.defineProperty(t,r,e)}};function DB(){return NB().slots}function Ooe(){return NB().attrs}function NB(){const t=As();return t.setupContext||(t.setupContext=lF(t))}function mv(t){return Ge(t)?t.reduce((r,e)=>(r[e]=null,r),{}):t}function au(t,r){return!t||!r?t||r:Ge(t)&&Ge(r)?t.concat(r):Vr({},mv(t),mv(r))}let R6=!0;function xoe(t){const r=vb(t),e=t.proxy,n=t.ctx;R6=!1,r.beforeCreate&&zM(r.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:g,mounted:h,beforeUpdate:d,updated:f,activated:C,deactivated:v,beforeDestroy:A,beforeUnmount:I,destroyed:p,unmounted:m,render:b,renderTracked:_,renderTriggered:S,errorCaptured:E,serverPrefetch:T,expose:L,inheritAttrs:H,components:P,directives:R,filters:N}=r;if(c&&Hoe(c,n,null),a)for(const K in a){const te=a[K];it(te)&&(n[K]=te.bind(e))}if(i){const K=i.call(e,e);Zt(K)&&(t.data=ba(K))}if(R6=!0,o)for(const K in o){const te=o[K],Me=it(te)?te.bind(e,e):it(te.get)?te.get.bind(e,e):ha,Ye=!it(te)&&it(te.set)?te.set.bind(e):ha,De=j({get:Me,set:Ye});Object.defineProperty(n,K,{enumerable:!0,configurable:!0,get:()=>De.value,set:we=>De.value=we})}if(s)for(const K in s)BB(s[K],n,e,K);if(l){const K=it(l)?l.call(e):l;Reflect.ownKeys(K).forEach(te=>{Di(te,K[te])})}u&&zM(u,t,"c");function F(K,te){Ge(te)?te.forEach(Me=>K(Me.bind(e))):te&&K(te.bind(e))}if(F(woe,g),F(Ii,h),F($oe,d),F(_oe,f),F(moe,C),F(yoe,v),F(Soe,E),F(Eoe,_),F(zoe,S),F(HB,I),F(fn,m),F(Moe,T),Ge(L))if(L.length){const K=t.exposed||(t.exposed={});L.forEach(te=>{Object.defineProperty(K,te,{get:()=>e[te],set:Me=>e[te]=Me})})}else t.exposed||(t.exposed={});b&&t.render===ha&&(t.render=b),H!=null&&(t.inheritAttrs=H),P&&(t.components=P),R&&(t.directives=R),T&&hb(t)}function Hoe(t,r,e=ha){Ge(t)&&(t=D6(t));for(const n in t){const i=t[n];let o;Zt(i)?"default"in i?o=br(i.from||n,i.default,!0):o=br(i.from||n):o=br(i),Je(o)?Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):r[n]=o}}function zM(t,r,e){Po(Ge(t)?t.map(n=>n.bind(r.proxy)):t.bind(r.proxy),r,e)}function BB(t,r,e,n){let i=n.includes(".")?JB(e,n):()=>e[n];if(fr(t)){const o=r[t];it(o)&&Ke(i,o)}else if(it(t))Ke(i,t.bind(e));else if(Zt(t))if(Ge(t))t.forEach(o=>BB(o,r,e,n));else{const o=it(t.handler)?t.handler.bind(e):r[t.handler];it(o)&&Ke(i,o,t)}}function vb(t){const r=t.type,{mixins:e,extends:n}=r,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,s=o.get(r);let l;return s?l=s:!i.length&&!e&&!n?l=r:(l={},i.length&&i.forEach(c=>yv(l,c,a,!0)),yv(l,r,a)),Zt(r)&&o.set(r,l),l}function yv(t,r,e,n=!1){const{mixins:i,extends:o}=r;o&&yv(t,o,e,!0),i&&i.forEach(a=>yv(t,a,e,!0));for(const a in r)if(!(n&&a==="expose")){const s=Voe[a]||e&&e[a];t[a]=s?s(t[a],r[a]):r[a]}return t}const Voe={data:EM,props:SM,emits:SM,methods:gh,computed:gh,beforeCreate:Hn,created:Hn,beforeMount:Hn,mounted:Hn,beforeUpdate:Hn,updated:Hn,beforeDestroy:Hn,beforeUnmount:Hn,destroyed:Hn,unmounted:Hn,activated:Hn,deactivated:Hn,errorCaptured:Hn,serverPrefetch:Hn,components:gh,directives:gh,watch:Roe,provide:EM,inject:Poe};function EM(t,r){return r?t?function(){return Vr(it(t)?t.call(this,this):t,it(r)?r.call(this,this):r)}:r:t}function Poe(t,r){return gh(D6(t),D6(r))}function D6(t){if(Ge(t)){const r={};for(let e=0;e1)return e&&it(r)?r.call(n&&n.proxy):r}}const jB={},UB=()=>Object.create(jB),GB=t=>Object.getPrototypeOf(t)===jB;function Boe(t,r,e,n=!1){const i={},o=UB();t.propsDefaults=Object.create(null),WB(t,r,i,o);for(const a in t.propsOptions[0])a in i||(i[a]=void 0);e?t.props=n?i:sb(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function Foe(t,r,e,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=t,s=mt(i),[l]=t.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const u=t.vnode.dynamicProps;for(let g=0;g{l=!0;const[h,d]=ZB(g,r,!0);Vr(a,h),d&&s.push(...d)};!e&&r.mixins.length&&r.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return Zt(t)&&n.set(t,D2),D2;if(Ge(o))for(let u=0;ut[0]==="_"||t==="$stable",Ab=t=>Ge(t)?t.map(ra):[ra(t)],Uoe=(t,r,e)=>{if(r._n)return r;const n=Y((...i)=>Ab(r(...i)),e);return n._c=!1,n},YB=(t,r,e)=>{const n=t._ctx;for(const i in t){if(KB(i))continue;const o=t[i];if(it(o))r[i]=Uoe(i,o,n);else if(o!=null){const a=Ab(o);r[i]=()=>a}}},XB=(t,r)=>{const e=Ab(r);t.slots.default=()=>e},qB=(t,r,e)=>{for(const n in r)(e||n!=="_")&&(t[n]=r[n])},Goe=(t,r,e)=>{const n=t.slots=UB();if(t.vnode.shapeFlag&32){const i=r._;i?(qB(n,r,e),e&&YN(n,"_",i,!0)):YB(r,n)}else r&&XB(t,r)},Woe=(t,r,e)=>{const{vnode:n,slots:i}=t;let o=!0,a=Ot;if(n.shapeFlag&32){const s=r._;s?e&&s===1?o=!1:qB(i,r,e):(o=!r.$stable,YB(r,i)),a=r}else r&&(XB(t,r),a={default:1});if(o)for(const s in i)!KB(s)&&a[s]==null&&delete i[s]},ni=aae;function Zoe(t){return Koe(t)}function Koe(t,r){const e=jA();e.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:g,nextSibling:h,setScopeId:d=ha,insertStaticContent:f}=t,C=(z,$,O,W=null,Z=null,ee=null,ue=void 0,ge=null,Ee=!!$.dynamicChildren)=>{if(z===$)return;z&&!yl(z,$)&&(W=X(z),we(z,Z,ee,!0),z=null),$.patchFlag===-2&&(Ee=!1,$.dynamicChildren=null);const{type:de,ref:rt,shapeFlag:ke}=$;switch(de){case qA:v(z,$,O,W);break;case Gn:A(z,$,O,W);break;case $5:z==null&&I($,O,W,ue);break;case Te:P(z,$,O,W,Z,ee,ue,ge,Ee);break;default:ke&1?b(z,$,O,W,Z,ee,ue,ge,Ee):ke&6?R(z,$,O,W,Z,ee,ue,ge,Ee):(ke&64||ke&128)&&de.process(z,$,O,W,Z,ee,ue,ge,Ee,x)}rt!=null&&Z&&V6(rt,z&&z.ref,ee,$||z,!$)},v=(z,$,O,W)=>{if(z==null)n($.el=s($.children),O,W);else{const Z=$.el=z.el;$.children!==z.children&&c(Z,$.children)}},A=(z,$,O,W)=>{z==null?n($.el=l($.children||""),O,W):$.el=z.el},I=(z,$,O,W)=>{[z.el,z.anchor]=f(z.children,$,O,W,z.el,z.anchor)},p=({el:z,anchor:$},O,W)=>{let Z;for(;z&&z!==$;)Z=h(z),n(z,O,W),z=Z;n($,O,W)},m=({el:z,anchor:$})=>{let O;for(;z&&z!==$;)O=h(z),i(z),z=O;i($)},b=(z,$,O,W,Z,ee,ue,ge,Ee)=>{$.type==="svg"?ue="svg":$.type==="math"&&(ue="mathml"),z==null?_($,O,W,Z,ee,ue,ge,Ee):T(z,$,Z,ee,ue,ge,Ee)},_=(z,$,O,W,Z,ee,ue,ge)=>{let Ee,de;const{props:rt,shapeFlag:ke,transition:We,dirs:at}=z;if(Ee=z.el=a(z.type,ee,rt&&rt.is,rt),ke&8?u(Ee,z.children):ke&16&&E(z.children,Ee,null,W,Z,ap(z,ee),ue,ge),at&&ol(z,null,W,"created"),S(Ee,z,z.scopeId,ue,W),rt){for(const Xt in rt)Xt!=="value"&&!yh(Xt)&&o(Ee,Xt,null,rt[Xt],ee,W);"value"in rt&&o(Ee,"value",null,rt.value,ee),(de=rt.onVnodeBeforeMount)&&Ko(de,W,z)}at&&ol(z,null,W,"beforeMount");const bt=Yoe(Z,We);bt&&We.beforeEnter(Ee),n(Ee,$,O),((de=rt&&rt.onVnodeMounted)||bt||at)&&ni(()=>{de&&Ko(de,W,z),bt&&We.enter(Ee),at&&ol(z,null,W,"mounted")},Z)},S=(z,$,O,W,Z)=>{if(O&&d(z,O),W)for(let ee=0;ee{for(let de=Ee;de{const ge=$.el=z.el;let{patchFlag:Ee,dynamicChildren:de,dirs:rt}=$;Ee|=z.patchFlag&16;const ke=z.props||Ot,We=$.props||Ot;let at;if(O&&al(O,!1),(at=We.onVnodeBeforeUpdate)&&Ko(at,O,$,z),rt&&ol($,z,O,"beforeUpdate"),O&&al(O,!0),(ke.innerHTML&&We.innerHTML==null||ke.textContent&&We.textContent==null)&&u(ge,""),de?L(z.dynamicChildren,de,ge,O,W,ap($,Z),ee):ue||te(z,$,ge,null,O,W,ap($,Z),ee,!1),Ee>0){if(Ee&16)H(ge,ke,We,O,Z);else if(Ee&2&&ke.class!==We.class&&o(ge,"class",null,We.class,Z),Ee&4&&o(ge,"style",ke.style,We.style,Z),Ee&8){const bt=$.dynamicProps;for(let Xt=0;Xt{at&&Ko(at,O,$,z),rt&&ol($,z,O,"updated")},W)},L=(z,$,O,W,Z,ee,ue)=>{for(let ge=0;ge<$.length;ge++){const Ee=z[ge],de=$[ge],rt=Ee.el&&(Ee.type===Te||!yl(Ee,de)||Ee.shapeFlag&70)?g(Ee.el):O;C(Ee,de,rt,null,W,Z,ee,ue,!0)}},H=(z,$,O,W,Z)=>{if($!==O){if($!==Ot)for(const ee in $)!yh(ee)&&!(ee in O)&&o(z,ee,$[ee],null,Z,W);for(const ee in O){if(yh(ee))continue;const ue=O[ee],ge=$[ee];ue!==ge&&ee!=="value"&&o(z,ee,ge,ue,Z,W)}"value"in O&&o(z,"value",$.value,O.value,Z)}},P=(z,$,O,W,Z,ee,ue,ge,Ee)=>{const de=$.el=z?z.el:s(""),rt=$.anchor=z?z.anchor:s("");let{patchFlag:ke,dynamicChildren:We,slotScopeIds:at}=$;at&&(ge=ge?ge.concat(at):at),z==null?(n(de,O,W),n(rt,O,W),E($.children||[],O,rt,Z,ee,ue,ge,Ee)):ke>0&&ke&64&&We&&z.dynamicChildren?(L(z.dynamicChildren,We,O,Z,ee,ue,ge),($.key!=null||Z&&$===Z.subTree)&&Ib(z,$,!0)):te(z,$,O,rt,Z,ee,ue,ge,Ee)},R=(z,$,O,W,Z,ee,ue,ge,Ee)=>{$.slotScopeIds=ge,z==null?$.shapeFlag&512?Z.ctx.activate($,O,W,ue,Ee):N($,O,W,Z,ee,ue,Ee):U(z,$,Ee)},N=(z,$,O,W,Z,ee,ue)=>{const ge=z.component=gae(z,W,Z);if(cf(z)&&(ge.ctx.renderer=x),hae(ge,!1,ue),ge.asyncDep){if(Z&&Z.registerDep(ge,F,ue),!z.el){const Ee=ge.subTree=D(Gn);A(null,Ee,$,O)}}else F(ge,z,$,O,Z,ee,ue)},U=(z,$,O)=>{const W=$.component=z.component;if(iae(z,$,O))if(W.asyncDep&&!W.asyncResolved){K(W,$,O);return}else W.next=$,W.update();else $.el=z.el,W.vnode=$},F=(z,$,O,W,Z,ee,ue)=>{const ge=()=>{if(z.isMounted){let{next:ke,bu:We,u:at,parent:bt,vnode:Xt}=z;{const zi=QB(z);if(zi){ke&&(ke.el=Xt.el,K(z,ke,ue)),zi.asyncDep.then(()=>{z.isUnmounted||ge()});return}}let Bt=ke,Mi;al(z,!1),ke?(ke.el=Xt.el,K(z,ke,ue)):ke=Xt,We&&b5(We),(Mi=ke.props&&ke.props.onVnodeBeforeUpdate)&&Ko(Mi,bt,ke,Xt),al(z,!0);const Sn=sp(z),po=z.subTree;z.subTree=Sn,C(po,Sn,g(po.el),X(po),z,Z,ee),ke.el=Sn.el,Bt===null&&oae(z,Sn.el),at&&ni(at,Z),(Mi=ke.props&&ke.props.onVnodeUpdated)&&ni(()=>Ko(Mi,bt,ke,Xt),Z)}else{let ke;const{el:We,props:at}=$,{bm:bt,m:Xt,parent:Bt,root:Mi,type:Sn}=z,po=j2($);if(al(z,!1),bt&&b5(bt),!po&&(ke=at&&at.onVnodeBeforeMount)&&Ko(ke,Bt,$),al(z,!0),We&&q){const zi=()=>{z.subTree=sp(z),q(We,z.subTree,z,Z,null)};po&&Sn.__asyncHydrate?Sn.__asyncHydrate(We,z,zi):zi()}else{Mi.ce&&Mi.ce._injectChildStyle(Sn);const zi=z.subTree=sp(z);C(null,zi,O,W,z,Z,ee),$.el=zi.el}if(Xt&&ni(Xt,Z),!po&&(ke=at&&at.onVnodeMounted)){const zi=$;ni(()=>Ko(ke,Bt,zi),Z)}($.shapeFlag&256||Bt&&j2(Bt.vnode)&&Bt.vnode.shapeFlag&256)&&z.a&&ni(z.a,Z),z.isMounted=!0,$=O=W=null}};z.scope.on();const Ee=z.effect=new eB(ge);z.scope.off();const de=z.update=Ee.run.bind(Ee),rt=z.job=Ee.runIfDirty.bind(Ee);rt.i=z,rt.id=z.uid,Ee.scheduler=()=>gb(rt),al(z,!0),de()},K=(z,$,O)=>{$.component=z;const W=z.vnode.props;z.vnode=$,z.next=null,Foe(z,$.props,W,O),Woe(z,$.children,O),x1(),yM(z),H1()},te=(z,$,O,W,Z,ee,ue,ge,Ee=!1)=>{const de=z&&z.children,rt=z?z.shapeFlag:0,ke=$.children,{patchFlag:We,shapeFlag:at}=$;if(We>0){if(We&128){Ye(de,ke,O,W,Z,ee,ue,ge,Ee);return}else if(We&256){Me(de,ke,O,W,Z,ee,ue,ge,Ee);return}}at&8?(rt&16&&ft(de,Z,ee),ke!==de&&u(O,ke)):rt&16?at&16?Ye(de,ke,O,W,Z,ee,ue,ge,Ee):ft(de,Z,ee,!0):(rt&8&&u(O,""),at&16&&E(ke,O,W,Z,ee,ue,ge,Ee))},Me=(z,$,O,W,Z,ee,ue,ge,Ee)=>{z=z||D2,$=$||D2;const de=z.length,rt=$.length,ke=Math.min(de,rt);let We;for(We=0;Wert?ft(z,Z,ee,!0,!1,ke):E($,O,W,Z,ee,ue,ge,Ee,ke)},Ye=(z,$,O,W,Z,ee,ue,ge,Ee)=>{let de=0;const rt=$.length;let ke=z.length-1,We=rt-1;for(;de<=ke&&de<=We;){const at=z[de],bt=$[de]=Ee?js($[de]):ra($[de]);if(yl(at,bt))C(at,bt,O,null,Z,ee,ue,ge,Ee);else break;de++}for(;de<=ke&&de<=We;){const at=z[ke],bt=$[We]=Ee?js($[We]):ra($[We]);if(yl(at,bt))C(at,bt,O,null,Z,ee,ue,ge,Ee);else break;ke--,We--}if(de>ke){if(de<=We){const at=We+1,bt=atWe)for(;de<=ke;)we(z[de],Z,ee,!0),de++;else{const at=de,bt=de,Xt=new Map;for(de=bt;de<=We;de++){const Ei=$[de]=Ee?js($[de]):ra($[de]);Ei.key!=null&&Xt.set(Ei.key,de)}let Bt,Mi=0;const Sn=We-bt+1;let po=!1,zi=0;const Fg=new Array(Sn);for(de=0;de=Sn){we(Ei,Z,ee,!0);continue}let Zo;if(Ei.key!=null)Zo=Xt.get(Ei.key);else for(Bt=bt;Bt<=We;Bt++)if(Fg[Bt-bt]===0&&yl(Ei,$[Bt])){Zo=Bt;break}Zo===void 0?we(Ei,Z,ee,!0):(Fg[Zo-bt]=de+1,Zo>=zi?zi=Zo:po=!0,C(Ei,$[Zo],O,null,Z,ee,ue,ge,Ee),Mi++)}const gM=po?Xoe(Fg):D2;for(Bt=gM.length-1,de=Sn-1;de>=0;de--){const Ei=bt+de,Zo=$[Ei],hM=Ei+1{const{el:ee,type:ue,transition:ge,children:Ee,shapeFlag:de}=z;if(de&6){De(z.component.subTree,$,O,W);return}if(de&128){z.suspense.move($,O,W);return}if(de&64){ue.move(z,$,O,x);return}if(ue===Te){n(ee,$,O);for(let ke=0;kege.enter(ee),Z);else{const{leave:ke,delayLeave:We,afterLeave:at}=ge,bt=()=>n(ee,$,O),Xt=()=>{ke(ee,()=>{bt(),at&&at()})};We?We(ee,bt,Xt):Xt()}else n(ee,$,O)},we=(z,$,O,W=!1,Z=!1)=>{const{type:ee,props:ue,ref:ge,children:Ee,dynamicChildren:de,shapeFlag:rt,patchFlag:ke,dirs:We,cacheIndex:at}=z;if(ke===-2&&(Z=!1),ge!=null&&V6(ge,null,O,z,!0),at!=null&&($.renderCache[at]=void 0),rt&256){$.ctx.deactivate(z);return}const bt=rt&1&&We,Xt=!j2(z);let Bt;if(Xt&&(Bt=ue&&ue.onVnodeBeforeUnmount)&&Ko(Bt,$,z),rt&6)ot(z.component,O,W);else{if(rt&128){z.suspense.unmount(O,W);return}bt&&ol(z,null,$,"beforeUnmount"),rt&64?z.type.remove(z,$,O,x,W):de&&!de.hasOnce&&(ee!==Te||ke>0&&ke&64)?ft(de,$,O,!1,!0):(ee===Te&&ke&384||!Z&&rt&16)&&ft(Ee,$,O),W&&Ne(z)}(Xt&&(Bt=ue&&ue.onVnodeUnmounted)||bt)&&ni(()=>{Bt&&Ko(Bt,$,z),bt&&ol(z,null,$,"unmounted")},O)},Ne=z=>{const{type:$,el:O,anchor:W,transition:Z}=z;if($===Te){Ue(O,W);return}if($===$5){m(z);return}const ee=()=>{i(O),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(z.shapeFlag&1&&Z&&!Z.persisted){const{leave:ue,delayLeave:ge}=Z,Ee=()=>ue(O,ee);ge?ge(z.el,ee,Ee):Ee()}else ee()},Ue=(z,$)=>{let O;for(;z!==$;)O=h(z),i(z),z=O;i($)},ot=(z,$,O)=>{const{bum:W,scope:Z,job:ee,subTree:ue,um:ge,m:Ee,a:de}=z;LM(Ee),LM(de),W&&b5(W),Z.stop(),ee&&(ee.flags|=8,we(ue,z,$,O)),ge&&ni(ge,$),ni(()=>{z.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve())},ft=(z,$,O,W=!1,Z=!1,ee=0)=>{for(let ue=ee;ue{if(z.shapeFlag&6)return X(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const $=h(z.anchor||z.el),O=$&&$[_B];return O?h(O):$};let ae=!1;const V=(z,$,O)=>{z==null?$._vnode&&we($._vnode,null,null,!0):C($._vnode||null,z,$,null,null,null,O),$._vnode=z,ae||(ae=!0,yM(),mB(),ae=!1)},x={p:C,um:we,m:De,r:Ne,mt:N,mc:E,pc:te,pbc:L,n:X,o:t};let B,q;return{render:V,hydrate:B,createApp:Noe(V,B)}}function ap({type:t,props:r},e){return e==="svg"&&t==="foreignObject"||e==="mathml"&&t==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:e}function al({effect:t,job:r},e){e?(t.flags|=32,r.flags|=4):(t.flags&=-33,r.flags&=-5)}function Yoe(t,r){return(!t||t&&!t.pendingBranch)&&r&&!r.persisted}function Ib(t,r,e=!1){const n=t.children,i=r.children;if(Ge(n)&&Ge(i))for(let o=0;o>1,t[e[s]]0&&(r[n]=e[o-1]),e[o]=n)}}for(o=e.length,a=e[o-1];o-- >0;)e[o]=a,a=r[a];return e}function QB(t){const r=t.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:QB(r)}function LM(t){if(t)for(let r=0;rbr(qoe);function gn(t,r){return KA(t,null,r)}function Joe(t,r){return KA(t,null,{flush:"sync"})}function Ke(t,r,e){return KA(t,r,e)}function KA(t,r,e=Ot){const{immediate:n,deep:i,flush:o,once:a}=e,s=Vr({},e),l=r&&n||!r&&o!=="post";let c;if(su){if(o==="sync"){const d=Qoe();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=ha,d.resume=ha,d.pause=ha,d}}const u=on;s.call=(d,f,C)=>Po(d,u,f,C);let g=!1;o==="post"?s.scheduler=d=>{ni(d,u&&u.suspense)}:o!=="sync"&&(g=!0,s.scheduler=(d,f)=>{f?d():gb(d)}),s.augmentJob=d=>{r&&(d.flags|=4),g&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=loe(t,r,s);return su&&(c?c.push(h):l&&h()),h}function eae(t,r,e){const n=this.proxy,i=fr(t)?t.includes(".")?JB(n,t):()=>n[t]:t.bind(n,n);let o;it(r)?o=r:(o=r.handler,e=r);const a=uf(this),s=KA(i,o.bind(n),e);return a(),s}function JB(t,r){const e=r.split(".");return()=>{let n=t;for(let i=0;i{let u,g=Ot,h;return Joe(()=>{const d=t[i];ai(u,d)&&(u=d,c())}),{get(){return l(),e.get?e.get(u):u},set(d){const f=e.set?e.set(d):d;if(!ai(f,u)&&!(g!==Ot&&ai(d,g)))return;const C=n.vnode.props;C&&(r in C||i in C||o in C)&&(`onUpdate:${r}`in C||`onUpdate:${i}`in C||`onUpdate:${o}`in C)||(u=d,c()),n.emit(`update:${r}`,f),ai(d,f)&&ai(d,g)&&!ai(f,h)&&c(),g=d,h=f}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Ot:s,done:!1}:{done:!0}}}},s}const eF=(t,r)=>r==="modelValue"||r==="model-value"?t.modelModifiers:t[`${r}Modifiers`]||t[`${Ni(r)}Modifiers`]||t[`${Cs(r)}Modifiers`];function tae(t,r,...e){if(t.isUnmounted)return;const n=t.vnode.props||Ot;let i=e;const o=r.startsWith("update:"),a=o&&eF(n,r.slice(7));a&&(a.trim&&(i=e.map(u=>fr(u)?u.trim():u)),a.number&&(i=e.map(Cv)));let s,l=n[s=y5(r)]||n[s=y5(Ni(r))];!l&&o&&(l=n[s=y5(Cs(r))]),l&&Po(l,t,6,i);const c=n[s+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Po(c,t,6,i)}}function tF(t,r,e=!1){const n=r.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let a={},s=!1;if(!it(t)){const l=c=>{const u=tF(c,r,!0);u&&(s=!0,Vr(a,u))};!e&&r.mixins.length&&r.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!s?(Zt(t)&&n.set(t,null),null):(Ge(o)?o.forEach(l=>a[l]=null):Vr(a,o),Zt(t)&&n.set(t,a),a)}function XA(t,r){return!t||!NA(r)?!1:(r=r.slice(2).replace(/Once$/,""),Vt(t,r[0].toLowerCase()+r.slice(1))||Vt(t,Cs(r))||Vt(t,r))}function sp(t){const{type:r,vnode:e,proxy:n,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:g,data:h,setupState:d,ctx:f,inheritAttrs:C}=t,v=pv(t);let A,I;try{if(e.shapeFlag&4){const m=i||n,b=m;A=ra(c.call(b,m,u,g,d,h,f)),I=s}else{const m=r;A=ra(m.length>1?m(g,{attrs:s,slots:a,emit:l}):m(g,null)),I=r.props?s:rae(s)}}catch(m){Mh.length=0,lf(m,t,1),A=D(Gn)}let p=A;if(I&&C!==!1){const m=Object.keys(I),{shapeFlag:b}=p;m.length&&b&7&&(o&&m.some(qy)&&(I=nae(I,o)),p=b1(p,I,!1,!0))}return e.dirs&&(p=b1(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(e.dirs):e.dirs),e.transition&&ad(p,e.transition),A=p,pv(v),A}const rae=t=>{let r;for(const e in t)(e==="class"||e==="style"||NA(e))&&((r||(r={}))[e]=t[e]);return r},nae=(t,r)=>{const e={};for(const n in t)(!qy(n)||!(n.slice(9)in r))&&(e[n]=t[n]);return e};function iae(t,r,e){const{props:n,children:i,component:o}=t,{props:a,children:s,patchFlag:l}=r,c=o.emitsOptions;if(r.dirs||r.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?kM(n,a,c):!!a;if(l&8){const u=r.dynamicProps;for(let g=0;gt.__isSuspense;function aae(t,r){r&&r.pendingBranch?Ge(t)?r.effects.push(...t):r.effects.push(t):goe(t)}const Te=Symbol.for("v-fgt"),qA=Symbol.for("v-txt"),Gn=Symbol.for("v-cmt"),$5=Symbol.for("v-stc"),Mh=[];let Vi=null;function M(t=!1){Mh.push(Vi=t?null:[])}function sae(){Mh.pop(),Vi=Mh[Mh.length-1]||null}let sd=1;function OM(t){sd+=t,t<0&&Vi&&(Vi.hasOnce=!0)}function nF(t){return t.dynamicChildren=sd>0?Vi||D2:null,sae(),sd>0&&Vi&&Vi.push(t),t}function k(t,r,e,n,i,o){return nF(w(t,r,e,n,i,o,!0))}function oe(t,r,e,n,i){return nF(D(t,r,e,n,i,!0))}function ld(t){return t?t.__v_isVNode===!0:!1}function yl(t,r){return t.type===r.type&&t.key===r.key}const iF=({key:t})=>t??null,_5=({ref:t,ref_key:r,ref_for:e})=>(typeof t=="number"&&(t=""+t),t!=null?fr(t)||Je(t)||it(t)?{i:cn,r:t,k:r,f:!!e}:t:null);function w(t,r=null,e=null,n=0,i=null,o=t===Te?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:r,key:r&&iF(r),ref:r&&_5(r),scopeId:WA,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:cn};return s?(pb(l,e),o&128&&t.normalize(l)):e&&(l.shapeFlag|=fr(e)?8:16),sd>0&&!a&&Vi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Vi.push(l),l}const D=lae;function lae(t,r=null,e=null,n=0,i=null,o=!1){if((!t||t===VB)&&(t=Gn),ld(t)){const s=b1(t,r,!0);return e&&pb(s,e),sd>0&&!o&&Vi&&(s.shapeFlag&6?Vi[Vi.indexOf(t)]=s:Vi.push(s)),s.patchFlag=-2,s}if(vae(t)&&(t=t.__vccOpts),r){r=QA(r);let{class:s,style:l}=r;s&&!fr(s)&&(r.class=Le(s)),Zt(l)&&(cb(l)&&!Ge(l)&&(l=Vr({},l)),r.style=kr(l))}const a=fr(t)?1:rF(t)?128:MB(t)?64:Zt(t)?4:it(t)?2:0;return w(t,r,e,n,i,a,o,!0)}function QA(t){return t?cb(t)||GB(t)?Vr({},t):t:null}function b1(t,r,e=!1,n=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=t,c=r?Xr(i||{},r):i,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&iF(c),ref:r&&r.ref?e&&o?Ge(o)?o.concat(_5(r)):[o,_5(r)]:_5(r):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==Te?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&b1(t.ssContent),ssFallback:t.ssFallback&&b1(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&ad(u,l.clone(u)),u}function ze(t=" ",r=0){return D(qA,null,t,r)}function oF(t,r){const e=D($5,null,t);return e.staticCount=r,e}function ie(t="",r=!1){return r?(M(),oe(Gn,null,t)):D(Gn,null,t)}function ra(t){return t==null||typeof t=="boolean"?D(Gn):Ge(t)?D(Te,null,t.slice()):ld(t)?js(t):D(qA,null,String(t))}function js(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:b1(t)}function pb(t,r){let e=0;const{shapeFlag:n}=t;if(r==null)r=null;else if(Ge(r))e=16;else if(typeof r=="object")if(n&65){const i=r.default;i&&(i._c&&(i._d=!1),pb(t,i()),i._c&&(i._d=!0));return}else{e=32;const i=r._;!i&&!GB(r)?r._ctx=cn:i===3&&cn&&(cn.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else it(r)?(r={default:r,_ctx:cn},e=32):(r=String(r),n&64?(e=16,r=[ze(r)]):e=8);t.children=r,t.shapeFlag|=e}function Xr(...t){const r={};for(let e=0;eon||cn;let bv,B6;{const t=jA(),r=(e,n)=>{let i;return(i=t[e])||(i=t[e]=[]),i.push(n),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};bv=r("__VUE_INSTANCE_SETTERS__",e=>on=e),B6=r("__VUE_SSR_SETTERS__",e=>su=e)}const uf=t=>{const r=on;return bv(t),t.scope.on(),()=>{t.scope.off(),bv(r)}},xM=()=>{on&&on.scope.off(),bv(null)};function aF(t){return t.vnode.shapeFlag&4}let su=!1;function hae(t,r=!1,e=!1){r&&B6(r);const{props:n,children:i}=t.vnode,o=aF(t);Boe(t,n,o,r),Goe(t,i,e);const a=o?dae(t,r):void 0;return r&&B6(!1),a}function dae(t,r){const e=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,koe);const{setup:n}=e;if(n){x1();const i=t.setupContext=n.length>1?lF(t):null,o=uf(t),a=sf(n,t,0,[t.props,i]),s=WN(a);if(H1(),o(),(s||t.sp)&&!j2(t)&&hb(t),s){if(a.then(xM,xM),r)return a.then(l=>{HM(t,l,r)}).catch(l=>{lf(l,t,0)});t.asyncDep=a}else HM(t,a,r)}else sF(t,r)}function HM(t,r,e){it(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:Zt(r)&&(t.setupState=vB(r)),sF(t,e)}let VM;function sF(t,r,e){const n=t.type;if(!t.render){if(!r&&VM&&!n.render){const i=n.template||vb(t).template;if(i){const{isCustomElement:o,compilerOptions:a}=t.appContext.config,{delimiters:s,compilerOptions:l}=n,c=Vr(Vr({isCustomElement:o,delimiters:s},a),l);n.render=VM(i,c)}}t.render=n.render||ha}{const i=uf(t);x1();try{xoe(t)}finally{H1(),i()}}}const fae={get(t,r){return Ln(t,"get",""),t[r]}};function lF(t){const r=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,fae),slots:t.slots,emit:t.emit,expose:r}}function JA(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(vB(fB(t.exposed)),{get(r,e){if(e in r)return r[e];if(e in _h)return _h[e](t)},has(r,e){return e in r||e in _h}})):t.proxy}function Cae(t,r=!0){return it(t)?t.displayName||t.name:t.name||r&&t.__name}function vae(t){return it(t)&&"__vccOpts"in t}const j=(t,r)=>aoe(t,r,su);function vc(t,r,e){const n=arguments.length;return n===2?Zt(r)&&!Ge(r)?ld(r)?D(t,null,[r]):D(t,r):D(t,null,r):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&ld(e)&&(e=[e]),D(t,r,e))}const Aae="3.5.12";/** * @vue/runtime-dom v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let F6;const PM=typeof window<"u"&&window.trustedTypes;if(PM)try{F6=PM.createPolicy("vue",{createHTML:t=>t})}catch{}const cF=F6?t=>F6.createHTML(t):t=>t,Iae="http://www.w3.org/2000/svg",pae="http://www.w3.org/1998/Math/MathML",Ra=typeof document<"u"?document:null,RM=Ra&&Ra.createElement("template"),mae={insert:(t,r,e)=>{r.insertBefore(t,e||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,e,n)=>{const i=r==="svg"?Ra.createElementNS(Iae,t):r==="mathml"?Ra.createElementNS(pae,t):e?Ra.createElement(t,{is:e}):Ra.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>Ra.createTextNode(t),createComment:t=>Ra.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ra.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,e,n,i,o){const a=e?e.previousSibling:r.lastChild;if(i&&(i===o||i.nextSibling))for(;r.insertBefore(i.cloneNode(!0),e),!(i===o||!(i=i.nextSibling)););else{RM.innerHTML=cF(n==="svg"?`${t}`:n==="mathml"?`${t}`:t);const s=RM.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}r.insertBefore(s,e)}return[a?a.nextSibling:r.firstChild,e?e.previousSibling:r.lastChild]}},Es="transition",Ug="animation",cd=Symbol("_vtc"),uF={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},yae=Vr({},SB,uF),bae=t=>(t.displayName="Transition",t.props=yae,t),mb=bae((t,{slots:r})=>vc(Aoe,wae(t),r)),sl=(t,r=[])=>{Ge(t)?t.forEach(e=>e(...r)):t&&t(...r)},DM=t=>t?Ge(t)?t.some(r=>r.length>1):t.length>1:!1;function wae(t){const r={};for(const P in t)P in uF||(r[P]=t[P]);if(t.css===!1)return r;const{name:e="v",type:n,duration:i,enterFromClass:o=`${e}-enter-from`,enterActiveClass:a=`${e}-enter-active`,enterToClass:s=`${e}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:g=`${e}-leave-from`,leaveActiveClass:h=`${e}-leave-active`,leaveToClass:d=`${e}-leave-to`}=t,f=$ae(i),C=f&&f[0],v=f&&f[1],{onBeforeEnter:A,onEnter:I,onEnterCancelled:p,onLeave:m,onLeaveCancelled:b,onBeforeAppear:_=A,onAppear:S=I,onAppearCancelled:E=p}=r,T=(P,R,N)=>{ll(P,R?u:s),ll(P,R?c:a),N&&N()},L=(P,R)=>{P._isLeaving=!1,ll(P,g),ll(P,d),ll(P,h),R&&R()},H=P=>(R,N)=>{const U=P?S:I,F=()=>T(R,P,N);sl(U,[R,F]),NM(()=>{ll(R,P?l:o),Ss(R,P?u:s),DM(U)||BM(R,n,C,F)})};return Vr(r,{onBeforeEnter(P){sl(A,[P]),Ss(P,o),Ss(P,a)},onBeforeAppear(P){sl(_,[P]),Ss(P,l),Ss(P,c)},onEnter:H(!1),onAppear:H(!0),onLeave(P,R){P._isLeaving=!0;const N=()=>L(P,R);Ss(P,g),Ss(P,h),zae(),NM(()=>{P._isLeaving&&(ll(P,g),Ss(P,d),DM(m)||BM(P,n,v,N))}),sl(m,[P,N])},onEnterCancelled(P){T(P,!1),sl(p,[P])},onAppearCancelled(P){T(P,!0),sl(E,[P])},onLeaveCancelled(P){L(P),sl(b,[P])}})}function $ae(t){if(t==null)return null;if(Zt(t))return[lp(t.enter),lp(t.leave)];{const r=lp(t);return[r,r]}}function lp(t){return _ie(t)}function Ss(t,r){r.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t[cd]||(t[cd]=new Set)).add(r)}function ll(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const e=t[cd];e&&(e.delete(r),e.size||(t[cd]=void 0))}function NM(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let _ae=0;function BM(t,r,e,n){const i=t._endId=++_ae,o=()=>{i===t._endId&&n()};if(e!=null)return setTimeout(o,e);const{type:a,timeout:s,propCount:l}=Mae(t,r);if(!a)return n();const c=a+"end";let u=0;const g=()=>{t.removeEventListener(c,h),o()},h=d=>{d.target===t&&++u>=l&&g()};setTimeout(()=>{u(e[f]||"").split(", "),i=n(`${Es}Delay`),o=n(`${Es}Duration`),a=FM(i,o),s=n(`${Ug}Delay`),l=n(`${Ug}Duration`),c=FM(s,l);let u=null,g=0,h=0;r===Es?a>0&&(u=Es,g=a,h=o.length):r===Ug?c>0&&(u=Ug,g=c,h=l.length):(g=Math.max(a,c),u=g>0?a>c?Es:Ug:null,h=u?u===Es?o.length:l.length:0);const d=u===Es&&/\b(transform|all)(,|$)/.test(n(`${Es}Property`).toString());return{type:u,timeout:g,propCount:h,hasTransform:d}}function FM(t,r){for(;t.lengthjM(e)+jM(t[n])))}function jM(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function zae(){return document.body.offsetHeight}function Eae(t,r,e){const n=t[cd];n&&(r=(r?[r,...n]:[...n]).join(" ")),r==null?t.removeAttribute("class"):e?t.setAttribute("class",r):t.className=r}const wv=Symbol("_vod"),gF=Symbol("_vsh"),Sae={beforeMount(t,{value:r},{transition:e}){t[wv]=t.style.display==="none"?"":t.style.display,e&&r?e.beforeEnter(t):Gg(t,r)},mounted(t,{value:r},{transition:e}){e&&r&&e.enter(t)},updated(t,{value:r,oldValue:e},{transition:n}){!r!=!e&&(n?r?(n.beforeEnter(t),Gg(t,!0),n.enter(t)):n.leave(t,()=>{Gg(t,!1)}):Gg(t,r))},beforeUnmount(t,{value:r}){Gg(t,r)}};function Gg(t,r){t.style.display=r?t[wv]:"none",t[gF]=!r}const Tae=Symbol(""),Lae=/(^|;)\s*display\s*:/;function kae(t,r,e){const n=t.style,i=fr(e);let o=!1;if(e&&!i){if(r)if(fr(r))for(const a of r.split(";")){const s=a.slice(0,a.indexOf(":")).trim();e[s]==null&&M5(n,s,"")}else for(const a in r)e[a]==null&&M5(n,a,"");for(const a in e)a==="display"&&(o=!0),M5(n,a,e[a])}else if(i){if(r!==e){const a=n[Tae];a&&(e+=";"+a),n.cssText=e,o=Lae.test(e)}}else r&&t.removeAttribute("style");wv in t&&(t[wv]=o?n.display:"",t[gF]&&(n.display="none"))}const UM=/\s*!important$/;function M5(t,r,e){if(Ge(e))e.forEach(n=>M5(t,r,n));else if(e==null&&(e=""),r.startsWith("--"))t.setProperty(r,e);else{const n=Oae(t,r);UM.test(e)?t.setProperty(Cs(n),e.replace(UM,""),"important"):t[n]=e}}const GM=["Webkit","Moz","ms"],cp={};function Oae(t,r){const e=cp[r];if(e)return e;let n=Ni(r);if(n!=="filter"&&n in t)return cp[r]=n;n=FA(n);for(let i=0;iup||(Pae.then(()=>up=0),up=Date.now());function Dae(t,r){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Po(Nae(n,e.value),r,5,[n])};return e.value=t,e.attached=Rae(),e}function Nae(t,r){if(Ge(r)){const e=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{e.call(t),t._stopped=!0},r.map(n=>i=>!i._stopped&&n&&n(i))}else return r}const qM=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Bae=(t,r,e,n,i,o)=>{const a=i==="svg";r==="class"?Eae(t,n,a):r==="style"?kae(t,e,n):NA(r)?qy(r)||Hae(t,r,e,n,o):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):Fae(t,r,n,a))?(KM(t,r,n),!t.tagName.includes("-")&&(r==="value"||r==="checked"||r==="selected")&&ZM(t,r,n,a,o,r!=="value")):t._isVueCE&&(/[A-Z]/.test(r)||!fr(n))?KM(t,Ni(r),n,o,r):(r==="true-value"?t._trueValue=n:r==="false-value"&&(t._falseValue=n),ZM(t,r,n,a))};function Fae(t,r,e,n){if(n)return!!(r==="innerHTML"||r==="textContent"||r in t&&qM(r)&&it(e));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return qM(r)&&fr(e)?!1:r in t}const w1=t=>{const r=t.props["onUpdate:modelValue"]||!1;return Ge(r)?e=>b5(r,e):r};function jae(t){t.target.composing=!0}function QM(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const so=Symbol("_assign"),JM={created(t,{modifiers:{lazy:r,trim:e,number:n}},i){t[so]=w1(i);const o=n||i.props&&i.props.type==="number";Ba(t,r?"change":"input",a=>{if(a.target.composing)return;let s=t.value;e&&(s=s.trim()),o&&(s=Cv(s)),t[so](s)}),e&&Ba(t,"change",()=>{t.value=t.value.trim()}),r||(Ba(t,"compositionstart",jae),Ba(t,"compositionend",QM),Ba(t,"change",QM))},mounted(t,{value:r}){t.value=r??""},beforeUpdate(t,{value:r,oldValue:e,modifiers:{lazy:n,trim:i,number:o}},a){if(t[so]=w1(a),t.composing)return;const s=(o||t.type==="number")&&!/^0\d/.test(t.value)?Cv(t.value):t.value,l=r??"";s!==l&&(document.activeElement===t&&t.type!=="range"&&(n&&r===e||i&&t.value.trim()===l)||(t.value=l))}},Uae={deep:!0,created(t,r,e){t[so]=w1(e),Ba(t,"change",()=>{const n=t._modelValue,i=lu(t),o=t.checked,a=t[so];if(Ge(n)){const s=tb(n,i),l=s!==-1;if(o&&!l)a(n.concat(i));else if(!o&&l){const c=[...n];c.splice(s,1),a(c)}}else if(Wu(n)){const s=new Set(n);o?s.add(i):s.delete(i),a(s)}else a(hF(t,o))})},mounted:ez,beforeUpdate(t,r,e){t[so]=w1(e),ez(t,r,e)}};function ez(t,{value:r,oldValue:e},n){t._modelValue=r;let i;if(Ge(r))i=tb(r,n.props.value)>-1;else if(Wu(r))i=r.has(n.props.value);else{if(r===e)return;i=Xl(r,hF(t,!0))}t.checked!==i&&(t.checked=i)}const Gae={created(t,{value:r},e){t.checked=Xl(r,e.props.value),t[so]=w1(e),Ba(t,"change",()=>{t[so](lu(t))})},beforeUpdate(t,{value:r,oldValue:e},n){t[so]=w1(n),r!==e&&(t.checked=Xl(r,n.props.value))}},Wae={deep:!0,created(t,{value:r,modifiers:{number:e}},n){const i=Wu(r);Ba(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>e?Cv(lu(a)):lu(a));t[so](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,dn(()=>{t._assigning=!1})}),t[so]=w1(n)},mounted(t,{value:r}){tz(t,r)},beforeUpdate(t,r,e){t[so]=w1(e)},updated(t,{value:r}){t._assigning||tz(t,r)}};function tz(t,r){const e=t.multiple,n=Ge(r);if(!(e&&!n&&!Wu(r))){for(let i=0,o=t.options.length;iString(c)===String(s)):a.selected=tb(r,s)>-1}else a.selected=r.has(s);else if(Xl(lu(a),r)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!e&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function lu(t){return"_value"in t?t._value:t.value}function hF(t,r){const e=r?"_trueValue":"_falseValue";return e in t?t[e]:r}const Zae={created(t,r,e){K0(t,r,e,null,"created")},mounted(t,r,e){K0(t,r,e,null,"mounted")},beforeUpdate(t,r,e,n){K0(t,r,e,n,"beforeUpdate")},updated(t,r,e,n){K0(t,r,e,n,"updated")}};function Kae(t,r){switch(t){case"SELECT":return Wae;case"TEXTAREA":return JM;default:switch(r){case"checkbox":return Uae;case"radio":return Gae;default:return JM}}}function K0(t,r,e,n,i){const a=Kae(t.tagName,e.props&&e.props.type)[i];a&&a(t,r,e,n)}const Yae=["ctrl","shift","alt","meta"],Xae={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>Yae.some(e=>t[`${e}Key`]&&!r.includes(e))},Wn=(t,r)=>{const e=t._withMods||(t._withMods={}),n=r.join(".");return e[n]||(e[n]=(i,...o)=>{for(let a=0;a{const e=t._withKeys||(t._withKeys={}),n=r.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const o=Cs(i.key);if(r.some(a=>a===o||qae[a]===o))return t(i)})},Qae=Vr({patchProp:Bae},mae);let rz;function fF(){return rz||(rz=Zoe(Qae))}const nz=(...t)=>{fF().render(...t)},CF=(...t)=>{const r=fF().createApp(...t),{mount:e}=r;return r.mount=n=>{const i=ese(n);if(!i)return;const o=r._component;!it(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=e(i,!1,Jae(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},r};function Jae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function ese(t){return fr(t)?document.querySelector(t):t}var tse=Object.create,vF=Object.defineProperty,rse=Object.getOwnPropertyDescriptor,yb=Object.getOwnPropertyNames,nse=Object.getPrototypeOf,ise=Object.prototype.hasOwnProperty,ose=(t,r)=>function(){return t&&(r=(0,t[yb(t)[0]])(t=0)),r},AF=(t,r)=>function(){return r||(0,t[yb(t)[0]])((r={exports:{}}).exports,r),r.exports},ase=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of yb(r))!ise.call(t,i)&&i!==e&&vF(t,i,{get:()=>r[i],enumerable:!(n=rse(r,i))||n.enumerable});return t},sse=(t,r,e)=>(e=t!=null?tse(nse(t)):{},ase(vF(e,"default",{value:t,enumerable:!0}),t)),se=ose({"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/esm_shims.js"(){}}),lse=AF({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,r){se(),function(e){var n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"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","ⓐ":"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","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},i=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),u=[".","!","~","*","'","(",")"].join(""),g=function(v,A){var I="-",p="",m="",b=!0,_={},S,E,T,L,H,P,R,N,U,F,K,te,Me,Ye,De="";if(typeof v!="string")return"";if(typeof A=="string"&&(I=A),R=s.en,N=a.en,typeof A=="object"){S=A.maintainCase||!1,_=A.custom&&typeof A.custom=="object"?A.custom:_,T=+A.truncate>1&&A.truncate||!1,L=A.uric||!1,H=A.uricNoSlash||!1,P=A.mark||!1,b=!(A.symbols===!1||A.lang===!1),I=A.separator||I,L&&(De+=l),H&&(De+=c),P&&(De+=u),R=A.lang&&s[A.lang]&&b?s[A.lang]:b?s.en:{},N=A.lang&&a[A.lang]?a[A.lang]:A.lang===!1||A.lang===!0?{}:a.en,A.titleCase&&typeof A.titleCase.length=="number"&&Array.prototype.toString.call(A.titleCase)?(A.titleCase.forEach(function(we){_[we+""]=we+""}),E=!0):E=!!A.titleCase,A.custom&&typeof A.custom.length=="number"&&Array.prototype.toString.call(A.custom)&&A.custom.forEach(function(we){_[we+""]=we+""}),Object.keys(_).forEach(function(we){var Ne;we.length>1?Ne=new RegExp("\\b"+d(we)+"\\b","gi"):Ne=new RegExp(d(we),"gi"),v=v.replace(Ne,_[we])});for(K in _)De+=K}for(De+=I,De=d(De),v=v.replace(/(^\s+|\s+$)/g,""),Me=!1,Ye=!1,F=0,te=v.length;F=0?(m+=K,K=""):Ye===!0?(K=o[m]+n[K],m=""):K=Me&&n[K].match(/[A-Za-z0-9]/)?" "+n[K]:n[K],Me=!1,Ye=!1):K in o?(m+=K,K="",F===te-1&&(K=o[m]),Ye=!0):R[K]&&!(L&&l.indexOf(K)!==-1)&&!(H&&c.indexOf(K)!==-1)?(K=Me||p.substr(-1).match(/[A-Za-z0-9]/)?I+R[K]:R[K],K+=v[F+1]!==void 0&&v[F+1].match(/[A-Za-z0-9]/)?I:"",Me=!0):(Ye===!0?(K=o[m]+K,m="",Ye=!1):Me&&(/[A-Za-z0-9]/.test(K)||p.substr(-1).match(/A-Za-z0-9]/))&&(K=" "+K),Me=!1),p+=K.replace(new RegExp("[^\\w\\s"+De+"_-]","g"),I);return E&&(p=p.replace(/(\w)(\S*)/g,function(we,Ne,Ue){var ot=Ne.toUpperCase()+(Ue!==null?Ue:"");return Object.keys(_).indexOf(ot.toLowerCase())<0?ot:ot.toLowerCase()})),p=p.replace(/\s+/g,I).replace(new RegExp("\\"+I+"+","g"),I).replace(new RegExp("(^\\"+I+"+|\\"+I+"+$)","g"),""),T&&p.length>T&&(U=p.charAt(T)===I,p=p.slice(0,T),U||(p=p.slice(0,p.lastIndexOf(I)))),!S&&!E&&(p=p.toLowerCase()),p},h=function(v){return function(I){return g(I,v)}},d=function(v){return v.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},f=function(C,v){for(var A in v)if(v[A]===C)return!0};if(typeof r<"u"&&r.exports)r.exports=g,r.exports.createSlug=h;else if(typeof define<"u"&&define.amd)define([],function(){return g});else try{if(e.getSlug||e.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";e.getSlug=g,e.createSlug=h}catch{}}(t)}}),cse=AF({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,r){se(),r.exports=lse()}});se();se();se();function use(t){if(le.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__){t();return}Object.defineProperty(le,"__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__",{set(r){r&&t()},configurable:!0})}se();se();se();se();function gse(t){return!!(t&&t.__v_isReadonly)}function IF(t){return gse(t)?IF(t.__v_raw):!!(t&&t.__v_isReactive)}function gp(t){return!!(t&&t.__v_isRef===!0)}function hh(t){const r=t&&t.__v_raw;return r?hh(r):t}se();function hse(t){var r;const e=t.name||t._componentTag||t.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||t.__name;return e==="index"&&((r=t.__file)!=null&&r.endsWith("index.vue"))?"":e}function pF(t){const r=t.__file;if(r)return BN(tie(r,".vue"))}function dse(t){const r=t.displayName||t.name||t._componentTag;return r||pF(t)}function iz(t,r){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=r,r}function ko(t){if(t.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return t.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(t.root)return t.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}async function z5(t){const{app:r,uid:e,instance:n}=t;try{if(n.__VUE_DEVTOOLS_NEXT_UID__)return n.__VUE_DEVTOOLS_NEXT_UID__;const i=await ko(r);if(!i)return null;const o=i.rootInstance===n;return`${i.id}:${o?"root":e}`}catch{}}function bb(t){var r,e;const n=(r=t.subTree)==null?void 0:r.type,i=ko(t);return i?((e=i?.types)==null?void 0:e.Fragment)===n:!1}function hp(t){return t._isBeingDestroyed||t.isUnmounted}function Go(t){var r,e,n;const i=hse(t?.type||{});if(i)return i;if(t?.root===t)return"Root";for(const a in(e=(r=t.parent)==null?void 0:r.type)==null?void 0:e.components)if(t.parent.type.components[a]===t?.type)return iz(t,a);for(const a in(n=t.appContext)==null?void 0:n.components)if(t.appContext.components[a]===t?.type)return iz(t,a);const o=pF(t?.type||{});return o||"Anonymous Component"}function mF(t){var r,e,n;const i=(n=(e=(r=t?.appContext)==null?void 0:r.app)==null?void 0:e.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?n:0,o=t===t?.root?"root":t.uid;return`${i}:${o}`}function fse(t){return t==null?"":typeof t=="number"?t:typeof t=="string"?`'${t}'`:Array.isArray(t)?"Array":"Object"}function P1(t){try{return t()}catch(r){return r}}function cu(t,r){return r=r||`${t.id}:root`,t.instanceMap.get(r)||t.instanceMap.get(":root")}function io(t,r,e=!1){return e||typeof t=="object"&&t!==null?r in t:!1}var yF=class{constructor(){this.refEditor=new Cse}set(t,r,e,n){const i=Array.isArray(r)?r:r.split(".");for(;i.length>1;){const s=i.shift();t instanceof Map&&(t=t.get(s)),t instanceof Set?t=Array.from(t.values())[s]:t=t[s],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}const o=i[0],a=this.refEditor.get(t)[o];n?n(t,o,e):this.refEditor.isRef(a)?this.refEditor.set(a,e):t[o]=e}get(t,r){const e=Array.isArray(r)?r:r.split(".");for(let n=0;n"u")return!1;const n=Array.isArray(r)?r.slice():r.split("."),i=e?2:1;for(;t&&n.length>i;){const o=n.shift();t=t[o],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}return t!=null&&Object.prototype.hasOwnProperty.call(t,n[0])}createDefaultSetCallback(t){return(r,e,n)=>{if((t.remove||t.newKey)&&(Array.isArray(r)?r.splice(e,1):hh(r)instanceof Map?r.delete(e):hh(r)instanceof Set?r.delete(Array.from(r.values())[e]):Reflect.deleteProperty(r,e)),!t.remove){const i=r[t.newKey||e];this.refEditor.isRef(i)?this.refEditor.set(i,n):hh(r)instanceof Map?r.set(t.newKey||e,n):hh(r)instanceof Set?r.add(n):r[t.newKey||e]=n}}}},Cse=class{set(t,r){if(gp(t))t.value=r;else{if(t instanceof Set&&Array.isArray(r)){t.clear(),r.forEach(i=>t.add(i));return}const e=Object.keys(r);if(t instanceof Map){const i=new Set(t.keys());e.forEach(o=>{t.set(o,Reflect.get(r,o)),i.delete(o)}),i.forEach(o=>t.delete(o));return}const n=new Set(Object.keys(t));e.forEach(i=>{Reflect.set(t,i,Reflect.get(r,i)),n.delete(i)}),n.forEach(i=>Reflect.deleteProperty(t,i))}}get(t){return gp(t)?t.value:t}isRef(t){return gp(t)||IF(t)}};async function vse(t,r){const{path:e,nodeId:n,state:i,type:o}=t,a=cu(Pt.value,n);if(!a)return;const s=e.slice();let l;a.devtoolsRawSetupState&&Object.keys(a.devtoolsRawSetupState).includes(e[0])&&(l=a.devtoolsRawSetupState),a.data&&Object.keys(a.data).includes(e[0])&&(l=a.data),l&&s&&(i.type,r.set(l,s,i.value,r.createDefaultSetCallback(i)))}var Ase=new yF;async function Ise(t){vse(t,Ase)}se();function ud(t){return bb(t)?pse(t.subTree):t.subTree?[t.subTree.el]:[]}function pse(t){if(!t.children)return[];const r=[];return t.children.forEach(e=>{e.component?r.push(...ud(e.component)):e?.el&&r.push(e.el)}),r}se();se();function mse(){const t={top:0,bottom:0,left:0,right:0,get width(){return t.right-t.left},get height(){return t.bottom-t.top}};return t}var Y0;function yse(t){return Y0||(Y0=document.createRange()),Y0.selectNode(t),Y0.getBoundingClientRect()}function bse(t){const r=mse();if(!t.children)return r;for(let e=0,n=t.children.length;et.bottom)&&(t.bottom=r.bottom),(!t.left||r.leftt.right)&&(t.right=r.right),t}var oz={top:0,left:0,right:0,bottom:0,width:0,height:0};function Ql(t){const r=t.subTree.el;return typeof window>"u"?oz:bb(t)?bse(t.subTree):r?.nodeType===1?r?.getBoundingClientRect():t.subTree.component?Ql(t.subTree.component):oz}var bF="__vue-devtools-component-inspector__",wF="__vue-devtools-component-inspector__card__",$F="__vue-devtools-component-inspector__name__",_F="__vue-devtools-component-inspector__indicator__",MF={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},$se={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},_se={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Zu(){return document.getElementById(bF)}function Mse(){return document.getElementById(wF)}function zse(){return document.getElementById(_F)}function Ese(){return document.getElementById($F)}function wb(t){return{left:`${Math.round(t.left*100)/100}px`,top:`${Math.round(t.top*100)/100}px`,width:`${Math.round(t.width*100)/100}px`,height:`${Math.round(t.height*100)/100}px`}}function $b(t){var r;const e=document.createElement("div");e.id=(r=t.elementId)!=null?r:bF,Object.assign(e.style,{...MF,...wb(t.bounds),...t.style});const n=document.createElement("span");n.id=wF,Object.assign(n.style,{...$se,top:t.bounds.top<35?0:"-35px"});const i=document.createElement("span");i.id=$F,i.innerHTML=`<${t.name}>  `;const o=document.createElement("i");return o.id=_F,o.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(o.style,_se),n.appendChild(i),n.appendChild(o),e.appendChild(n),document.body.appendChild(e),e}function _b(t){const r=Zu(),e=Mse(),n=Ese(),i=zse();r&&(Object.assign(r.style,{...MF,...wb(t.bounds)}),Object.assign(e.style,{top:t.bounds.top<35?0:"-35px"}),n.innerHTML=`<${t.name}>  `,i.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function Sse(t){const r=Ql(t),e=Go(t);Zu()?_b({bounds:r,name:e}):$b({bounds:r,name:e})}function zF(){const t=Zu();t&&(t.style.display="none")}var j6=null;function U6(t){const r=t.target;if(r){const e=r.__vueParentComponent;if(e&&(j6=e,e.vnode.el)){const i=Ql(e),o=Go(e);Zu()?_b({bounds:i,name:o}):$b({bounds:i,name:o})}}}function Tse(t,r){var e;if(t.preventDefault(),t.stopPropagation(),j6){const n=(e=Pt.value)==null?void 0:e.app;z5({app:n,uid:n.uid,instance:j6}).then(i=>{r(i)})}}var $v=null;function Lse(){zF(),window.removeEventListener("mouseover",U6),window.removeEventListener("click",$v,!0),$v=null}function kse(){return window.addEventListener("mouseover",U6),new Promise(t=>{function r(e){e.preventDefault(),e.stopPropagation(),Tse(e,n=>{window.removeEventListener("click",r,!0),$v=null,window.removeEventListener("mouseover",U6);const i=Zu();i&&(i.style.display="none"),t(JSON.stringify({id:n}))})}$v=r,window.addEventListener("click",r,!0)})}function Ose(t){const r=cu(Pt.value,t.id);if(r){const[e]=ud(r);if(typeof e.scrollIntoView=="function")e.scrollIntoView({behavior:"smooth"});else{const n=Ql(r),i=document.createElement("div"),o={...wb(n),position:"absolute"};Object.assign(i.style,o),document.body.appendChild(i),i.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(i)},2e3)}setTimeout(()=>{const n=Ql(r);if(n.width||n.height){const i=Go(r),o=Zu();o?_b({...t,name:i,bounds:n}):$b({...t,name:i,bounds:n}),setTimeout(()=>{o&&(o.style.display="none")},1500)}},1200)}}se();var az,sz;(sz=(az=le).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(az.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function xse(t){let r=0;const e=setInterval(()=>{le.__VUE_INSPECTOR__&&(clearInterval(e),r+=30,t()),r>=5e3&&clearInterval(e)},30)}function Hse(){const t=le.__VUE_INSPECTOR__,r=t.openInEditor;t.openInEditor=async(...e)=>{t.disable(),r(...e)}}function Vse(){return new Promise(t=>{function r(){Hse(),t(le.__VUE_INSPECTOR__)}le.__VUE_INSPECTOR__?r():xse(()=>{r()})})}se();se();se();var EF="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Pse(t){!Gu||typeof localStorage>"u"||localStorage===null||localStorage.setItem(EF,JSON.stringify(t))}function Rse(){if(!Gu||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const t=localStorage.getItem(EF);return t?JSON.parse(t):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}se();se();se();var lz,cz;(cz=(lz=le).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(lz.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var SF=new Proxy(le.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(t,r,e){return Reflect.get(t,r,e)}});function Dse(t,r){$t.timelineLayersState[r.id]=!1,SF.push({...t,descriptorId:r.id,appRecord:ko(r.app)})}function Nse(t){const r={...$t.timelineLayersState,...t};Pse(r),zh({timelineLayersState:r})}var uz,gz;(gz=(uz=le).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(uz.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var Mb=new Proxy(le.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(t,r,e){return Reflect.get(t,r,e)}}),TF=as(()=>{wa.hooks.callHook("sendInspectorToClient",zb())});function Bse(t,r){var e,n;Mb.push({options:t,descriptor:r,treeFilterPlaceholder:(e=t.treeFilterPlaceholder)!=null?e:"Search tree...",stateFilterPlaceholder:(n=t.stateFilterPlaceholder)!=null?n:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:ko(r.app)}),TF()}function zb(){return Mb.filter(t=>t.descriptor.app===Pt.value.app).filter(t=>t.descriptor.id!=="components").map(t=>{var r;const e=t.descriptor,n=t.options;return{id:n.id,label:n.label,logo:e.logo,icon:`custom-ic-baseline-${(r=n?.icon)==null?void 0:r.replace(/_/g,"-")}`,packageName:e.packageName,homepage:e.homepage,pluginId:e.id}})}function Fse(t){const r=i1(t,Pt.value.app);if(!r)return;const e=r.descriptor,n=r.options,i=SF.filter(o=>o.descriptorId===e.id).map(o=>({id:o.id,label:o.label,color:o.color}));return{id:n.id,label:n.label,logo:e.logo,packageName:e.packageName,homepage:e.homepage,timelineLayers:i,treeFilterPlaceholder:r.treeFilterPlaceholder,stateFilterPlaceholder:r.stateFilterPlaceholder}}function i1(t,r){return Mb.find(e=>e.options.id===t&&(r?e.descriptor.app===r:!0))}function hz(t){const r=i1(t);return r?.options.actions}function dz(t){const r=i1(t);return r?.options.nodeActions}var LF=(t=>(t.ADD_INSPECTOR="addInspector",t.SEND_INSPECTOR_TREE="sendInspectorTree",t.SEND_INSPECTOR_STATE="sendInspectorState",t.CUSTOM_INSPECTOR_SELECT_NODE="customInspectorSelectNode",t.TIMELINE_LAYER_ADDED="timelineLayerAdded",t.TIMELINE_EVENT_ADDED="timelineEventAdded",t.GET_COMPONENT_INSTANCES="getComponentInstances",t.GET_COMPONENT_BOUNDS="getComponentBounds",t.GET_COMPONENT_NAME="getComponentName",t.COMPONENT_HIGHLIGHT="componentHighlight",t.COMPONENT_UNHIGHLIGHT="componentUnhighlight",t))(LF||{}),xs=(t=>(t.SEND_INSPECTOR_TREE_TO_CLIENT="sendInspectorTreeToClient",t.SEND_INSPECTOR_STATE_TO_CLIENT="sendInspectorStateToClient",t.SEND_TIMELINE_EVENT_TO_CLIENT="sendTimelineEventToClient",t.SEND_INSPECTOR_TO_CLIENT="sendInspectorToClient",t.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT="sendActiveAppUpdatedToClient",t.DEVTOOLS_STATE_UPDATED="devtoolsStateUpdated",t.DEVTOOLS_CONNECTED_UPDATED="devtoolsConnectedUpdated",t.ROUTER_INFO_UPDATED="routerInfoUpdated",t))(xs||{});function jse(){const t=UN();t.hook("addInspector",({inspector:n,plugin:i})=>{Bse(n,i.descriptor)});const r=as(async({inspectorId:n,plugin:i})=>{var o;if(!n||!((o=i?.descriptor)!=null&&o.app)||$t.highPerfModeEnabled)return;const a=i1(n,i.descriptor.app),s={app:i.descriptor.app,inspectorId:n,filter:a?.treeFilter||"",rootNodes:[]};await new Promise(l=>{t.callHookWith(async c=>{await Promise.all(c.map(u=>u(s))),l()},"getInspectorTree")}),t.callHookWith(async l=>{await Promise.all(l.map(c=>c({inspectorId:n,rootNodes:s.rootNodes})))},"sendInspectorTreeToClient")},120);t.hook("sendInspectorTree",r);const e=as(async({inspectorId:n,plugin:i})=>{var o;if(!n||!((o=i?.descriptor)!=null&&o.app)||$t.highPerfModeEnabled)return;const a=i1(n,i.descriptor.app),s={app:i.descriptor.app,inspectorId:n,nodeId:a?.selectedNodeId||"",state:null},l={currentTab:`custom-inspector:${n}`};s.nodeId&&await new Promise(c=>{t.callHookWith(async u=>{await Promise.all(u.map(g=>g(s,l))),c()},"getInspectorState")}),t.callHookWith(async c=>{await Promise.all(c.map(u=>u({inspectorId:n,nodeId:s.nodeId,state:s.state})))},"sendInspectorStateToClient")},120);return t.hook("sendInspectorState",e),t.hook("customInspectorSelectNode",({inspectorId:n,nodeId:i,plugin:o})=>{const a=i1(n,o.descriptor.app);a&&(a.selectedNodeId=i)}),t.hook("timelineLayerAdded",({options:n,plugin:i})=>{Dse(n,i.descriptor)}),t.hook("timelineEventAdded",({options:n,plugin:i})=>{var o;const a=["performance","component-event","keyboard","mouse"];$t.highPerfModeEnabled||!((o=$t.timelineLayersState)!=null&&o[i.descriptor.id])&&!a.includes(n.layerId)||t.callHookWith(async s=>{await Promise.all(s.map(l=>l(n)))},"sendTimelineEventToClient")}),t.hook("getComponentInstances",async({app:n})=>{const i=n.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!i)return null;const o=i.id.toString();return[...i.instanceMap].filter(([s])=>s.split(":")[0]===o).map(([,s])=>s)}),t.hook("getComponentBounds",async({instance:n})=>Ql(n)),t.hook("getComponentName",({instance:n})=>Go(n)),t.hook("componentHighlight",({uid:n})=>{const i=Pt.value.instanceMap.get(n);i&&Sse(i)}),t.hook("componentUnhighlight",()=>{zF()}),t}var fz,Cz;(Cz=(fz=le).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(fz.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var vz,Az;(Az=(vz=le).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(vz.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Iz,pz;(pz=(Iz=le).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(Iz.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var mz,yz;(yz=(mz=le).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(mz.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var bz,wz;(wz=(bz=le).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(bz.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var oa="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Use(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Rse()}}var $z,_z;(_z=($z=le)[oa])!=null||($z[oa]=Use());var Gse=as(t=>{wa.hooks.callHook("devtoolsStateUpdated",{state:t})}),Wse=as((t,r)=>{wa.hooks.callHook("devtoolsConnectedUpdated",{state:t,oldState:r})}),$1=new Proxy(le.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(t,r,e){return r==="value"?le.__VUE_DEVTOOLS_KIT_APP_RECORDS__:le.__VUE_DEVTOOLS_KIT_APP_RECORDS__[r]}}),Zse=t=>{le.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[...le.__VUE_DEVTOOLS_KIT_APP_RECORDS__,t]},Kse=t=>{le.__VUE_DEVTOOLS_KIT_APP_RECORDS__=$1.value.filter(r=>r.app!==t)},Pt=new Proxy(le.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(t,r,e){return r==="value"?le.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:r==="id"?le.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:le.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[r]}});function Eb(){Gse({...le[oa],appRecords:$1.value,activeAppRecordId:Pt.id,tabs:le.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:le.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function G6(t){le.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=t,Eb()}function kF(t){le.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=t,Eb()}var $t=new Proxy(le[oa],{get(t,r){return r==="appRecords"?$1:r==="activeAppRecordId"?Pt.id:r==="tabs"?le.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:r==="commands"?le.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:le[oa][r]},deleteProperty(t,r){return delete t[r],!0},set(t,r,e){return{...le[oa]},t[r]=e,le[oa][r]=e,!0}});function zh(t){const r={...le[oa],appRecords:$1.value,activeAppRecordId:Pt.id};(r.connected!==t.connected&&t.connected||r.clientConnected!==t.clientConnected&&t.clientConnected)&&Wse(le[oa],r),Object.assign(le[oa],t),Eb()}function Yse(t){zh({clientConnected:t})}function Xse(t={}){var r,e,n;const{file:i,host:o,baseUrl:a=window.location.origin,line:s=0,column:l=0}=t;if(i){if(o==="chrome-extension"){const c=i.replace(/\\/g,"\\\\"),u=(e=(r=window.VUE_DEVTOOLS_CONFIG)==null?void 0:r.openInEditorHost)!=null?e:"/";fetch(`${u}__open-in-editor?file=${encodeURI(i)}`).then(g=>{if(!g.ok){const h=`Opening component ${c} failed`;console.log(`%c${h}`,"color:red")}})}else if($t.vitePluginDetected){const c=(n=le.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?n:a;le.__VUE_INSPECTOR__.openInEditor(c,i,s,l)}}}se();se();se();se();se();var Mz,zz;(zz=(Mz=le).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(Mz.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var gf=new Proxy(le.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(t,r,e){return Reflect.get(t,r,e)}});function qse(t,r){gf.push([t,r])}function W6(t){const r={};return Object.keys(t).forEach(e=>{r[e]=t[e].defaultValue}),r}function Sb(t){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${t}__`}function Qse(t){var r,e,n;const i=(e=(r=gf.find(o=>{var a;return o[0].id===t&&!!((a=o[0])!=null&&a.settings)}))==null?void 0:r[0])!=null?e:null;return(n=i?.settings)!=null?n:null}function OF(t,r){var e,n,i;const o=Sb(t);if(o){const a=localStorage.getItem(o);if(a)return JSON.parse(a)}if(t){const a=(n=(e=gf.find(s=>s[0].id===t))==null?void 0:e[0])!=null?n:null;return W6((i=a?.settings)!=null?i:{})}return W6(r)}function xF(t,r){const e=Sb(t);localStorage.getItem(e)||localStorage.setItem(e,JSON.stringify(W6(r)))}function Jse(t,r,e){const n=Sb(t),i=localStorage.getItem(n),o=JSON.parse(i||"{}"),a={...o,[r]:e};localStorage.setItem(n,JSON.stringify(a)),wa.hooks.callHookWith(s=>{s.forEach(l=>l({pluginId:t,key:r,oldValue:o[r],newValue:e,settings:a}))},"setPluginSettings")}se();se();se();se();se();se();se();se();se();se();se();var Ez,Sz,pr=(Sz=(Ez=le).__VUE_DEVTOOLS_HOOK)!=null?Sz:Ez.__VUE_DEVTOOLS_HOOK=UN(),e1e={vueAppInit(t){pr.hook("app:init",t)},vueAppUnmount(t){pr.hook("app:unmount",t)},vueAppConnected(t){pr.hook("app:connected",t)},componentAdded(t){return pr.hook("component:added",t)},componentEmit(t){return pr.hook("component:emit",t)},componentUpdated(t){return pr.hook("component:updated",t)},componentRemoved(t){return pr.hook("component:removed",t)},setupDevtoolsPlugin(t){pr.hook("devtools-plugin:setup",t)},perfStart(t){return pr.hook("perf:start",t)},perfEnd(t){return pr.hook("perf:end",t)}};function t1e(){return{id:"vue-devtools-next",devtoolsVersion:"7.0",enabled:!1,appRecords:[],apps:[],events:new Map,on(t,r){var e;return this.events.has(t)||this.events.set(t,[]),(e=this.events.get(t))==null||e.push(r),()=>this.off(t,r)},once(t,r){const e=(...n)=>{this.off(t,e),r(...n)};return this.on(t,e),[t,e]},off(t,r){if(this.events.has(t)){const e=this.events.get(t),n=e.indexOf(r);n!==-1&&e.splice(n,1)}},emit(t,...r){this.events.has(t)&&this.events.get(t).forEach(e=>e(...r))}}}function r1e(t){t.on("app:init",(r,e,n)=>{var i,o,a;(a=(o=(i=r?._instance)==null?void 0:i.type)==null?void 0:o.devtools)!=null&&a.hide||pr.callHook("app:init",r,e,n)}),t.on("app:unmount",r=>{pr.callHook("app:unmount",r)}),t.on("component:added",async(r,e,n,i)=>{var o,a,s;(s=(a=(o=r?._instance)==null?void 0:o.type)==null?void 0:a.devtools)!=null&&s.hide||$t.highPerfModeEnabled||!r||typeof e!="number"&&!e||!i||pr.callHook("component:added",r,e,n,i)}),t.on("component:updated",(r,e,n,i)=>{!r||typeof e!="number"&&!e||!i||$t.highPerfModeEnabled||pr.callHook("component:updated",r,e,n,i)}),t.on("component:removed",async(r,e,n,i)=>{!r||typeof e!="number"&&!e||!i||$t.highPerfModeEnabled||pr.callHook("component:removed",r,e,n,i)}),t.on("component:emit",async(r,e,n,i)=>{!r||!e||$t.highPerfModeEnabled||pr.callHook("component:emit",r,e,n,i)}),t.on("perf:start",(r,e,n,i,o)=>{!r||$t.highPerfModeEnabled||pr.callHook("perf:start",r,e,n,i,o)}),t.on("perf:end",(r,e,n,i,o)=>{!r||$t.highPerfModeEnabled||pr.callHook("perf:end",r,e,n,i,o)}),t.on("devtools-plugin:setup",(r,e,n)=>{n?.target!=="legacy"&&pr.callHook("devtools-plugin:setup",r,e)})}var lo={on:e1e,setupDevToolsPlugin(t,r){return pr.callHook("devtools-plugin:setup",t,r)}},n1e=class{constructor({plugin:t,ctx:r}){this.hooks=r.hooks,this.plugin=t}get on(){return{visitComponentTree:t=>{this.hooks.hook("visitComponentTree",t)},inspectComponent:t=>{this.hooks.hook("inspectComponent",t)},editComponentState:t=>{this.hooks.hook("editComponentState",t)},getInspectorTree:t=>{this.hooks.hook("getInspectorTree",t)},getInspectorState:t=>{this.hooks.hook("getInspectorState",t)},editInspectorState:t=>{this.hooks.hook("editInspectorState",t)},inspectTimelineEvent:t=>{this.hooks.hook("inspectTimelineEvent",t)},timelineCleared:t=>{this.hooks.hook("timelineCleared",t)},setPluginSettings:t=>{this.hooks.hook("setPluginSettings",t)}}}notifyComponentUpdate(t){var r;const e=zb().find(n=>n.packageName===this.plugin.descriptor.packageName);if(e?.id){if(t){const n=[t.appContext.app,t.uid,(r=t.parent)==null?void 0:r.uid,t];pr.callHook("component:updated",...n)}else pr.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:e.id,plugin:this.plugin})}}addInspector(t){this.hooks.callHook("addInspector",{inspector:t,plugin:this.plugin}),this.plugin.descriptor.settings&&xF(t.id,this.plugin.descriptor.settings)}sendInspectorTree(t){this.hooks.callHook("sendInspectorTree",{inspectorId:t,plugin:this.plugin})}sendInspectorState(t){this.hooks.callHook("sendInspectorState",{inspectorId:t,plugin:this.plugin})}selectInspectorNode(t,r){this.hooks.callHook("customInspectorSelectNode",{inspectorId:t,nodeId:r,plugin:this.plugin})}visitComponentTree(t){return this.hooks.callHook("visitComponentTree",t)}now(){return Date.now()}addTimelineLayer(t){this.hooks.callHook("timelineLayerAdded",{options:t,plugin:this.plugin})}addTimelineEvent(t){this.hooks.callHook("timelineEventAdded",{options:t,plugin:this.plugin})}getSettings(t){return OF(t??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(t){return this.hooks.callHook("getComponentInstances",{app:t})}getComponentBounds(t){return this.hooks.callHook("getComponentBounds",{instance:t})}getComponentName(t){return this.hooks.callHook("getComponentName",{instance:t})}highlightElement(t){const r=t.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:r})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},i1e=n1e;se();se();se();se();var o1e=new Set(["nextTick","defineComponent","defineAsyncComponent","defineCustomElement","ref","computed","reactive","readonly","watchEffect","watchPostEffect","watchSyncEffect","watch","isRef","unref","toRef","toRefs","isProxy","isReactive","isReadonly","shallowRef","triggerRef","customRef","shallowReactive","shallowReadonly","toRaw","markRaw","effectScope","getCurrentScope","onScopeDispose","onMounted","onUpdated","onUnmounted","onBeforeMount","onBeforeUpdate","onBeforeUnmount","onErrorCaptured","onRenderTracked","onRenderTriggered","onActivated","onDeactivated","onServerPrefetch","provide","inject","h","mergeProps","cloneVNode","isVNode","resolveComponent","resolveDirective","withDirectives","withModifiers"]),Tz=/^\[native Symbol Symbol\((.*)\)\]$/,a1e=/^\[object (\w+)\]$/,_v=/^\[native (\w+) (.*?)(<>(([\s\S])*))?\]$/,s1e=/^(?:function|class) (\w+)/,Lz=1e4,kz=5e3,Ku="__vue_devtool_undefined__",hf="__vue_devtool_infinity__",df="__vue_devtool_negative_infinity__",ff="__vue_devtool_nan__",l1e={"<":"<",">":">",'"':""","&":"&"};se();se();function HF(t){return!io(t,"_")||!eI(t._)?!1:Object.keys(t._).includes("vnode")}function eI(t){return Object.prototype.toString.call(t)==="[object Object]"}function c1e(t){if(t==null)return!0;const r=typeof t;return r==="string"||r==="number"||r==="boolean"}function VF(t){return!!t.__v_isRef}function u1e(t){return VF(t)&&!!t.effect}function g1e(t){return!!t.__v_isReactive}function h1e(t){return!!t.__v_isReadonly}var Mv={[Ku]:"undefined",[ff]:"NaN",[hf]:"Infinity",[df]:"-Infinity"},dp=Object.entries(Mv).reduce((t,[r,e])=>(t[e]=r,t),{});function d1e(t){return t===null?"null":typeof t=="string"&&Mv[t]||!1}function f1e(t){const r=new RegExp(`"(${Object.keys(Mv).join("|")})"`,"g");return t.replace(r,(e,n)=>Mv[n])}function C1e(t){const r=dp[t.trim()];if(r)return`"${r}"`;const e=new RegExp(`:\\s*(${Object.keys(dp).join("|")})`,"g");return t.replace(e,(n,i)=>`:"${dp[i]}"`)}function PF(t){if(Array.isArray(t))return t.map(e=>PF(e)).join(" or ");if(t==null)return"null";const r=t.toString().match(s1e);return typeof t=="function"&&r&&r[1]||"any"}function v1e(t){return!c1e(t)&&!Array.isArray(t)&&!eI(t)?Object.prototype.toString.call(t):t}function RF(t){return{ref:VF(t),computed:u1e(t),reactive:g1e(t),readonly:h1e(t)}}function DF(t){return t?.__v_raw?t.__v_raw:t}function Tb(t){return t.replace(/[<>"&]/g,r=>l1e[r]||r)}function zv(t,r,e){if(typeof r=="function"&&(r=r.options),!r)return t;const{mixins:n,extends:i}=r;i&&zv(t,i),n&&n.forEach(o=>zv(t,o));for(const o of["computed","inject"])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]?Object.assign(t[o],r[o]):t[o]=r[o]);return t}function A1e(t){const r=t?.type;if(!r)return{};const{mixins:e,extends:n}=r,i=t.appContext.mixins;if(!i.length&&!e&&!n)return r;const o={};return i.forEach(a=>zv(o,a)),zv(o,r),o}function I1e(t){const r=[],e=t.type.props;for(const n in t.props){const i=e?e[n]:null,o=Jne(n);r.push({type:"props",key:o,value:P1(()=>t.props[n]),meta:i?{type:i.type?PF(i.type):"any",required:!!i.required,...i.default?{default:i.default.toString()}:{}}:{type:"invalid"}})}return r}function p1e(t){const r=t.type,e=r.props,n=r.vuex&&r.vuex.getters,i=r.computed,o={...t.data,...t.renderContext};return Object.keys(o).filter(a=>!(e&&a in e)&&!(n&&a in n)&&!(i&&a in i)).map(a=>({key:a,type:"data",value:P1(()=>o[a]),editable:!0}))}function m1e(t){const r=t.computed?"computed":t.ref?"ref":t.reactive?"reactive":null,e=r?`${r.charAt(0).toUpperCase()}${r.slice(1)}`:null;return{stateType:r,stateTypeName:e}}function y1e(t){const r=t.devtoolsRawSetupState||{};return Object.keys(t.setupState).filter(e=>!o1e.has(e)&&e.split(/(?=[A-Z])/)[0]!=="use").map(e=>{var n,i,o,a;const s=P1(()=>DF(t.setupState[e])),l=r[e];let c,u=typeof s=="function"||io(s,"render")&&typeof s.render=="function"||io(s,"__asyncLoader")&&typeof s.__asyncLoader=="function"||typeof s=="object"&&s&&("setup"in s||"props"in s)||/^v[A-Z]/.test(e);if(l){const h=RF(l),{stateType:d,stateTypeName:f}=m1e(h),C=h.ref||h.computed||h.reactive,v=io(l,"effect")?((i=(n=l.effect)==null?void 0:n.raw)==null?void 0:i.toString())||((a=(o=l.effect)==null?void 0:o.fn)==null?void 0:a.toString()):null;d&&(u=!1),c={...d?{stateType:d,stateTypeName:f}:{},...v?{raw:v}:{},editable:C&&!h.readonly}}return{key:e,value:s,type:u?"setup (other)":"setup",...c}})}function b1e(t,r){const e=r,n=[],i=e.computed||{};for(const o in i){const a=i[o],s=typeof a=="function"&&a.vuex?"vuex bindings":"computed";n.push({type:s,key:o,value:P1(()=>{var l;return(l=t?.proxy)==null?void 0:l[o]}),editable:typeof a.set=="function"})}return n}function w1e(t){return Object.keys(t.attrs).map(r=>({type:"attrs",key:r,value:P1(()=>t.attrs[r])}))}function $1e(t){return Reflect.ownKeys(t.provides).map(r=>({type:"provided",key:r.toString(),value:P1(()=>t.provides[r])}))}function _1e(t,r){if(!r?.inject)return[];let e=[],n;return Array.isArray(r.inject)?e=r.inject.map(i=>({key:i,originalKey:i})):e=Reflect.ownKeys(r.inject).map(i=>{const o=r.inject[i];let a;return typeof o=="string"||typeof o=="symbol"?a=o:(a=o.from,n=o.default),{key:i,originalKey:a}}),e.map(({key:i,originalKey:o})=>({type:"injected",key:o&&i!==o?`${o.toString()} ➞ ${i.toString()}`:i.toString(),value:P1(()=>t.ctx.hasOwnProperty(i)?t.ctx[i]:t.provides.hasOwnProperty(o)?t.provides[o]:n)}))}function M1e(t){return Object.keys(t.refs).map(r=>({type:"template refs",key:r,value:P1(()=>t.refs[r])}))}function z1e(t){var r,e;const n=t.type.emits,i=Array.isArray(n)?n:Object.keys(n??{}),o=Object.keys((e=(r=t?.vnode)==null?void 0:r.props)!=null?e:{}),a=[];for(const s of o){const[l,...c]=s.split(/(?=[A-Z])/);if(l==="on"){const u=c.join("-").toLowerCase(),g=i.includes(u);a.push({type:"event listeners",key:u,value:{_custom:{displayText:g?"✅ Declared":"⚠️ Not declared",key:g?"✅ Declared":"⚠️ Not declared",value:g?"✅ Declared":"⚠️ Not declared",tooltipText:g?null:`The event ${u} is not declared in the emits option. It will leak into the component's attributes ($attrs).`}}})}}return a}function NF(t){const r=A1e(t);return I1e(t).concat(p1e(t),y1e(t),b1e(t,r),w1e(t),$1e(t),_1e(t,r),M1e(t),z1e(t))}function E1e(t){var r;const e=cu(Pt.value,t.instanceId),n=mF(e),i=Go(e),o=(r=e?.type)==null?void 0:r.__file,a=NF(e);return{id:n,name:i,file:o,state:a,instance:e}}se();se();var S1e=class{constructor(t){this.filter=t||""}isQualified(t){const r=Go(t);return BN(r).toLowerCase().includes(this.filter)||eie(r).toLowerCase().includes(this.filter)}};function T1e(t){return new S1e(t)}var L1e=class{constructor(t){this.captureIds=new Map;const{filterText:r="",maxDepth:e,recursively:n,api:i}=t;this.componentFilter=T1e(r),this.maxDepth=e,this.recursively=n,this.api=i}getComponentTree(t){return this.captureIds=new Map,this.findQualifiedChildren(t,0)}getComponentParents(t){this.captureIds=new Map;const r=[];this.captureId(t);let e=t;for(;e=e.parent;)this.captureId(e),r.push(e);return r}captureId(t){if(!t)return null;const r=t.__VUE_DEVTOOLS_NEXT_UID__!=null?t.__VUE_DEVTOOLS_NEXT_UID__:mF(t);return t.__VUE_DEVTOOLS_NEXT_UID__=r,this.captureIds.has(r)?null:(this.captureIds.set(r,void 0),this.mark(t),r)}async capture(t,r){var e;if(!t)return null;const n=this.captureId(t),i=Go(t),o=this.getInternalInstanceChildren(t.subTree).filter(g=>!hp(g)),a=this.getComponentParents(t)||[],s=!!t.isDeactivated||a.some(g=>g.isDeactivated),l={uid:t.uid,id:n,name:i,renderKey:fse(t.vnode?t.vnode.key:null),inactive:s,children:[],isFragment:bb(t),tags:typeof t.type!="function"?[]:[{label:"functional",textColor:5592405,backgroundColor:15658734}],autoOpen:this.recursively,file:t.type.__file||""};if((rg.type.__isKeepAlive))&&(l.children=await Promise.all(o.map(g=>this.capture(g,r+1)).filter(Boolean))),this.isKeepAlive(t)){const g=this.getKeepAliveCachedInstances(t),h=o.map(d=>d.__VUE_DEVTOOLS_NEXT_UID__);for(const d of g)if(!h.includes(d.__VUE_DEVTOOLS_NEXT_UID__)){const f=await this.capture({...d,isDeactivated:!0},r+1);f&&l.children.push(f)}}const u=ud(t)[0];if(u?.parentElement){const g=t.parent,h=g?ud(g):[];let d=u;const f=[];do f.push(Array.from(d.parentElement.childNodes).indexOf(d)),d=d.parentElement;while(d.parentElement&&h.length&&!h.includes(d));l.domOrder=f.reverse()}else l.domOrder=[-1];return(e=t.suspense)!=null&&e.suspenseKey&&(l.tags.push({label:t.suspense.suspenseKey,backgroundColor:14979812,textColor:16777215}),this.mark(t,!0)),this.api.visitComponentTree({treeNode:l,componentInstance:t,app:t.appContext.app,filter:this.componentFilter.filter}),l}async findQualifiedChildren(t,r){var e;if(this.componentFilter.isQualified(t)&&!((e=t.type.devtools)!=null&&e.hide))return[await this.capture(t,r)];if(t.subTree){const n=this.isKeepAlive(t)?this.getKeepAliveCachedInstances(t):this.getInternalInstanceChildren(t.subTree);return this.findQualifiedChildrenFromList(n,r)}else return[]}async findQualifiedChildrenFromList(t,r){return t=t.filter(e=>{var n;return!hp(e)&&!((n=e.type.devtools)!=null&&n.hide)}),this.componentFilter.filter?Array.prototype.concat.apply([],await Promise.all(t.map(e=>this.findQualifiedChildren(e,r)))):Promise.all(t.map(e=>this.capture(e,r)))}getInternalInstanceChildren(t,r=null){const e=[];if(t)if(t.component)r?e.push({...t.component,suspense:r}):e.push(t.component);else if(t.suspense){const n=t.suspense.isInFallback?"suspense fallback":"suspense default";e.push(...this.getInternalInstanceChildren(t.suspense.activeBranch,{...t.suspense,suspenseKey:n}))}else Array.isArray(t.children)&&t.children.forEach(n=>{n.component?r?e.push({...n.component,suspense:r}):e.push(n.component):e.push(...this.getInternalInstanceChildren(n,r))});return e.filter(n=>{var i;return!hp(n)&&!((i=n.type.devtools)!=null&&i.hide)})}mark(t,r=!1){const e=ko(t).instanceMap;(r||!e.has(t.__VUE_DEVTOOLS_NEXT_UID__))&&(e.set(t.__VUE_DEVTOOLS_NEXT_UID__,t),Pt.value.instanceMap=e)}isKeepAlive(t){return t.type.__isKeepAlive&&t.__v_cache}getKeepAliveCachedInstances(t){return Array.from(t.__v_cache.values()).map(r=>r.component).filter(Boolean)}};se();se();var E5=new Map,Lb="performance";async function k1e(t,r,e,n,i,o){const a=await ko(r);if(!a)return;const s=Go(n)||"Unknown Component",l=$t.perfUniqueGroupId++,c=`${e}-${i}`;if(a.perfGroupIds.set(c,{groupId:l,time:o}),await t.addTimelineEvent({layerId:Lb,event:{time:Date.now(),data:{component:s,type:i,measure:"start"},title:s,subtitle:i,groupId:l}}),E5.has(c)){const{app:u,uid:g,instance:h,type:d,time:f}=E5.get(c);E5.delete(c),await BF(t,u,g,h,d,f)}}function BF(t,r,e,n,i,o){const a=ko(r);if(!a)return;const s=Go(n)||"Unknown Component",l=`${e}-${i}`,c=a.perfGroupIds.get(l);if(c){const u=c.groupId,g=c.time,h=o-g;t.addTimelineEvent({layerId:Lb,event:{time:Date.now(),data:{component:s,type:i,measure:"end",duration:{_custom:{type:"Duration",value:h,display:`${h} ms`}}},title:s,subtitle:i,groupId:u}})}else E5.set(l,{app:r,uid:e,instance:n,type:i,time:o})}var Oz="component-event";function O1e(t){Gu&&(t.addTimelineLayer({id:"mouse",label:"Mouse",color:10768815}),["mousedown","mouseup","click","dblclick"].forEach(r=>{!$t.timelineLayersState.recordingState||!$t.timelineLayersState.mouseEventEnabled||window.addEventListener(r,async e=>{await t.addTimelineEvent({layerId:"mouse",event:{time:Date.now(),data:{type:r,x:e.clientX,y:e.clientY},title:r}})},{capture:!0,passive:!0})}),t.addTimelineLayer({id:"keyboard",label:"Keyboard",color:8475055}),["keyup","keydown","keypress"].forEach(r=>{window.addEventListener(r,async e=>{!$t.timelineLayersState.recordingState||!$t.timelineLayersState.keyboardEventEnabled||await t.addTimelineEvent({layerId:"keyboard",event:{time:Date.now(),data:{type:r,key:e.key,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},title:e.key}})},{capture:!0,passive:!0})}),t.addTimelineLayer({id:Oz,label:"Component events",color:5226637}),lo.on.componentEmit(async(r,e,n,i)=>{if(!$t.timelineLayersState.recordingState||!$t.timelineLayersState.componentEventEnabled)return;const o=await ko(r);if(!o)return;const a=`${o.id}:${e.uid}`,s=Go(e)||"Unknown Component";t.addTimelineEvent({layerId:Oz,event:{time:Date.now(),data:{component:{_custom:{type:"component-definition",display:s}},event:n,params:i},title:n,subtitle:`by ${s}`,meta:{componentId:a}}})}),t.addTimelineLayer({id:"performance",label:Lb,color:4307050}),lo.on.perfStart((r,e,n,i,o)=>{!$t.timelineLayersState.recordingState||!$t.timelineLayersState.performanceEventEnabled||k1e(t,r,e,n,i,o)}),lo.on.perfEnd((r,e,n,i,o)=>{!$t.timelineLayersState.recordingState||!$t.timelineLayersState.performanceEventEnabled||BF(t,r,e,n,i,o)}))}se();var x1e=10,cl=[];function H1e(t){if(typeof window>"u")return;const r=window;if(t&&(r.$vm=t,cl[0]!==t)){cl.length>=x1e&&cl.pop();for(let e=cl.length;e>0;e--)r[`$vm${e}`]=cl[e]=cl[e-1];r.$vm0=cl[0]=t}}var ul="components";function V1e(t){return[{id:ul,label:"Components",app:t},n=>{n.addInspector({id:ul,label:"Components",treeFilterPlaceholder:"Search components"}),O1e(n),n.on.getInspectorTree(async a=>{if(a.app===t&&a.inspectorId===ul){const s=cu(Pt.value,a.instanceId);if(s){const l=new L1e({filterText:a.filter,maxDepth:100,recursively:!1,api:n});a.rootNodes=await l.getComponentTree(s)}}}),n.on.getInspectorState(async a=>{var s;if(a.app===t&&a.inspectorId===ul){const l=E1e({instanceId:a.nodeId}),c=l.instance,u=(s=l.instance)==null?void 0:s.appContext.app,g={componentInstance:c,app:u,instanceData:l};wa.hooks.callHookWith(h=>{h.forEach(d=>d(g))},"inspectComponent"),a.state=l,H1e(c)}}),n.on.editInspectorState(async a=>{a.app===t&&a.inspectorId===ul&&(Ise(a),await n.sendInspectorState("components"))});const i=as(()=>{n.sendInspectorTree(ul)},120),o=as(()=>{n.sendInspectorState(ul)},120);lo.on.componentAdded(async(a,s,l,c)=>{var u,g,h;if($t.highPerfModeEnabled||(h=(g=(u=a?._instance)==null?void 0:u.type)==null?void 0:g.devtools)!=null&&h.hide||!a||typeof s!="number"&&!s||!c)return;const d=await z5({app:a,uid:s,instance:c}),f=await ko(a);c&&(c.__VUE_DEVTOOLS_NEXT_UID__==null&&(c.__VUE_DEVTOOLS_NEXT_UID__=d),f?.instanceMap.has(d)||(f?.instanceMap.set(d,c),Pt.value.id===f?.id&&(Pt.value.instanceMap=f.instanceMap))),f&&i()}),lo.on.componentUpdated(async(a,s,l,c)=>{var u,g,h;if($t.highPerfModeEnabled||(h=(g=(u=a?._instance)==null?void 0:u.type)==null?void 0:g.devtools)!=null&&h.hide||!a||typeof s!="number"&&!s||!c)return;const d=await z5({app:a,uid:s,instance:c}),f=await ko(a);c&&(c.__VUE_DEVTOOLS_NEXT_UID__==null&&(c.__VUE_DEVTOOLS_NEXT_UID__=d),f?.instanceMap.has(d)||(f?.instanceMap.set(d,c),Pt.value.id===f?.id&&(Pt.value.instanceMap=f.instanceMap))),f&&(i(),o())}),lo.on.componentRemoved(async(a,s,l,c)=>{var u,g,h;if($t.highPerfModeEnabled||(h=(g=(u=a?._instance)==null?void 0:u.type)==null?void 0:g.devtools)!=null&&h.hide||!a||typeof s!="number"&&!s||!c)return;const d=await ko(a);if(!d)return;const f=await z5({app:a,uid:s,instance:c});d?.instanceMap.delete(f),Pt.value.id===d?.id&&(Pt.value.instanceMap=d.instanceMap),i()})}]}var xz,Hz;(Hz=(xz=le).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(xz.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function P1e(t,r){return lo.setupDevToolsPlugin(t,r)}function FF(t,r){const[e,n]=t;if(e.app!==r)return;const i=new i1e({plugin:{setupFn:n,descriptor:e},ctx:wa});e.packageName==="vuex"&&i.on.editInspectorState(o=>{i.sendInspectorState(o.inspectorId)}),n(i)}function R1e(t){le.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.delete(t)}function jF(t){le.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(t)||(le.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(t),gf.forEach(r=>{FF(r,t)}))}se();se();var gd="__VUE_DEVTOOLS_ROUTER__",uu="__VUE_DEVTOOLS_ROUTER_INFO__",Vz,Pz;(Pz=(Vz=le)[uu])!=null||(Vz[uu]={currentRoute:null,routes:[]});var Rz,Dz;(Dz=(Rz=le)[gd])!=null||(Rz[gd]={});var D1e=new Proxy(le[uu],{get(t,r){return le[uu][r]}}),Nz=new Proxy(le[gd],{get(t,r){if(r==="value")return le[gd]}});function N1e(t){const r=new Map;return(t?.getRoutes()||[]).filter(e=>!r.has(e.path)&&r.set(e.path,1))}function kb(t){return t.map(r=>{let{path:e,name:n,children:i,meta:o}=r;return i?.length&&(i=kb(i)),{path:e,name:n,children:i,meta:o}})}function B1e(t){if(t){const{fullPath:r,hash:e,href:n,path:i,name:o,matched:a,params:s,query:l}=t;return{fullPath:r,hash:e,href:n,path:i,name:o,params:s,query:l,matched:kb(a)}}return t}function UF(t,r){function e(){var n;const i=(n=t.app)==null?void 0:n.config.globalProperties.$router,o=B1e(i?.currentRoute.value),a=kb(N1e(i)),s=console.warn;console.warn=()=>{},le[uu]={currentRoute:o?fv(o):{},routes:fv(a)},le[gd]=i,console.warn=s}e(),lo.on.componentUpdated(as(()=>{var n;((n=r.value)==null?void 0:n.app)===t.app&&(e(),!$t.highPerfModeEnabled&&wa.hooks.callHook("routerInfoUpdated",{state:le[uu]}))},200))}function F1e(t){return{async getInspectorTree(r){const e={...r,app:Pt.value.app,rootNodes:[]};return await new Promise(n=>{t.callHookWith(async i=>{await Promise.all(i.map(o=>o(e))),n()},"getInspectorTree")}),e.rootNodes},async getInspectorState(r){const e={...r,app:Pt.value.app,state:null},n={currentTab:`custom-inspector:${r.inspectorId}`};return await new Promise(i=>{t.callHookWith(async o=>{await Promise.all(o.map(a=>a(e,n))),i()},"getInspectorState")}),e.state},editInspectorState(r){const e=new yF,n={...r,app:Pt.value.app,set:(i,o=r.path,a=r.state.value,s)=>{e.set(i,o,a,s||e.createDefaultSetCallback(r.state))}};t.callHookWith(i=>{i.forEach(o=>o(n))},"editInspectorState")},sendInspectorState(r){const e=i1(r);t.callHook("sendInspectorState",{inspectorId:r,plugin:{descriptor:e.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return kse()},cancelInspectComponentInspector(){return Lse()},getComponentRenderCode(r){const e=cu(Pt.value,r);if(e)return e?.type instanceof Function?e.type.toString():e.render.toString()},scrollToComponent(r){return Ose({id:r})},openInEditor:Xse,getVueInspector:Vse,toggleApp(r){const e=$1.value.find(n=>n.id===r);e&&(kF(r),G6(e),UF(e,Pt),TF(),jF(e.app))},inspectDOM(r){const e=cu(Pt.value,r);if(e){const[n]=ud(e);n&&(le.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=n)}},updatePluginSettings(r,e,n){Jse(r,e,n)},getPluginSettings(r){return{options:Qse(r),values:OF(r)}}}}se();var Bz,Fz;(Fz=(Bz=le).__VUE_DEVTOOLS_ENV__)!=null||(Bz.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});function j1e(){return le.__VUE_DEVTOOLS_ENV__}var jz=jse(),Uz,Gz;(Gz=(Uz=le).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(Uz.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:jz,get state(){return{...$t,activeAppRecordId:Pt.id,activeAppRecord:Pt.value,appRecords:$1.value}},api:F1e(jz)});var wa=le.__VUE_DEVTOOLS_KIT_CONTEXT__;se();var U1e=sse(cse()),Wz,Zz,Xs=(Zz=(Wz=le).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null?Zz:Wz.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set};function G1e(t,r){var e;return((e=t?._component)==null?void 0:e.name)||`App ${r}`}function W1e(t){var r,e,n,i;if(t._instance)return t._instance;if((e=(r=t._container)==null?void 0:r._vnode)!=null&&e.component)return(i=(n=t._container)==null?void 0:n._vnode)==null?void 0:i.component}function Z1e(t){const r=t.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__;r!=null&&(Xs.appIds.delete(r),Xs.id--)}function K1e(t,r){if(t.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__!=null)return t.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__;let e=r??(Xs.id++).toString();if(r&&Xs.appIds.has(e)){let n=1;for(;Xs.appIds.has(`${r}_${n}`);)n++;e=`${r}_${n}`}return Xs.appIds.add(e),t.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__=e,e}function Y1e(t,r){const e=W1e(t);if(e){Xs.id++;const n=G1e(t,Xs.id.toString()),o={id:K1e(t,(0,U1e.default)(n)),name:n,types:r,instanceMap:new Map,perfGroupIds:new Map,rootInstance:e};t.__VUE_DEVTOOLS_NEXT_APP_RECORD__=o;const a=`${o.id}:root`;return o.instanceMap.set(a,o.rootInstance),o.rootInstance.__VUE_DEVTOOLS_NEXT_UID__=a,o}else return{}}function X1e(){var t;zh({vitePluginDetected:j1e().vitePluginDetected});const r=((t=le.__VUE_DEVTOOLS_GLOBAL_HOOK__)==null?void 0:t.id)==="vue-devtools-next";if(le.__VUE_DEVTOOLS_GLOBAL_HOOK__&&r)return;const e=t1e();if(le.__VUE_DEVTOOLS_HOOK_REPLAY__)try{le.__VUE_DEVTOOLS_HOOK_REPLAY__.forEach(n=>n(e)),le.__VUE_DEVTOOLS_HOOK_REPLAY__=[]}catch(n){console.error("[vue-devtools] Error during hook replay",n)}e.once("init",n=>{le.__VUE_DEVTOOLS_VUE2_APP_DETECTED__=!0,console.log("%c[_____Vue DevTools v7 log_____]","color: red; font-bold: 600; font-size: 16px;"),console.log("%cVue DevTools v7 detected in your Vue2 project. v7 only supports Vue3 and will not work.","font-bold: 500; font-size: 14px;"),console.log("%cThe legacy version that supports both Vue 2 and Vue 3 has been moved to %c https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp","font-size: 14px;","text-decoration: underline; cursor: pointer;font-size: 14px;"),console.log("%cPlease install and enable only the legacy version for your Vue2 app.","font-bold: 500; font-size: 14px;"),console.log("%c[_____Vue DevTools v7 log_____]","color: red; font-bold: 600; font-size: 16px;")}),lo.on.setupDevtoolsPlugin((n,i)=>{var o;qse(n,i);const{app:a}=(o=Pt)!=null?o:{};n.settings&&xF(n.id,n.settings),a&&FF([n,i],a)}),use(()=>{gf.filter(([i])=>i.id!=="components").forEach(([i,o])=>{e.emit("devtools-plugin:setup",i,o,{target:"legacy"})})}),lo.on.vueAppInit(async(n,i,o)=>{const s={...Y1e(n,o),app:n,version:i};Zse(s),$1.value.length===1&&(G6(s),kF(s.id),UF(s,Pt),jF(s.app)),P1e(...V1e(s.app)),zh({connected:!0}),e.apps.push(n)}),lo.on.vueAppUnmount(async n=>{const i=$1.value.filter(o=>o.app!==n);i.length===0&&zh({connected:!1}),Kse(n),Z1e(n),Pt.value.app===n&&(G6(i[0]),wa.hooks.callHook("sendActiveAppUpdatedToClient")),le.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.splice(le.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.indexOf(n),1),R1e(n)}),r1e(e),le.__VUE_DEVTOOLS_GLOBAL_HOOK__?Kne||Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__,e):Object.defineProperty(le,"__VUE_DEVTOOLS_GLOBAL_HOOK__",{get(){return e}})}se();function q1e(t){$t.highPerfModeEnabled=t??!$t.highPerfModeEnabled}se();se();function Q1e(t){const r=new Set,e=t._custom.value;for(let n=0;n"${a?.string?`${Wg(t)}`:Wg(t)}"`:t=a?.string?`${Wg(t)}`:Wg(t)}return t}function Wg(t){return Tb(t).replace(/ /g," ").replace(/\n/g,"\\n")}function Ob(t){var r,e,n;let i;const o=hd(t)==="custom";let a={};if(o){const s=t,l=(r=s._custom)==null?void 0:r.value,c=(e=s._custom)==null?void 0:e.type,u=typeof l=="object"&&l!==null&&"_custom"in l?Ob(l):{inherit:void 0,value:void 0,customType:void 0};a=u.inherit||((n=s._custom)==null?void 0:n.fields)||{},t=u.value||l,i=u.customType||c}return t&&t._isArray&&(t=t.items),{value:t,inherit:a,customType:i}}function ele(t,r){return r==="bigint"||r==="date"?t:f1e(JSON.stringify(t))}function S5(t,r){return r==="bigint"?BigInt(t):r==="date"?new Date(t):JSON.parse(C1e(t),GF)}se();function ZF(t){$t.devtoolsClientDetected={...$t.devtoolsClientDetected,...t};const r=Object.values($t.devtoolsClientDetected).some(Boolean);q1e(!r)}var Kz,Yz;(Yz=(Kz=le).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(Kz.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=ZF);se();se();se();se();se();se();se();var tle=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,r){this.keyToValue.set(t,r),this.valueToKey.set(r,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},KF=class{constructor(r){this.generateIdentifier=r,this.kv=new tle}register(r,e){this.kv.getByValue(r)||(e||(e=this.generateIdentifier(r)),this.kv.set(e,r))}clear(){this.kv.clear()}getIdentifier(r){return this.kv.getByValue(r)}getValue(r){return this.kv.getByKey(r)}},rle=class extends KF{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(t,r.allowProps),super.register(t,r.identifier)):super.register(t,r)}getAllowedProps(t){return this.classToAllowedProps.get(t)}};se();se();function nle(t){if("values"in Object)return Object.values(t);const r=[];for(const e in t)t.hasOwnProperty(e)&&r.push(t[e]);return r}function ile(t,r){const e=nle(t);if("find"in e)return e.find(r);const n=e;for(let i=0;ir(n,e))}function T5(t,r){return t.indexOf(r)!==-1}function Xz(t,r){for(let e=0;er.isApplicable(t))}findByName(t){return this.transfomers[t]}};se();se();var ale=t=>Object.prototype.toString.call(t).slice(8,-1),YF=t=>typeof t>"u",sle=t=>t===null,dd=t=>typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype,Z6=t=>dd(t)&&Object.keys(t).length===0,_1=t=>Array.isArray(t),lle=t=>typeof t=="string",cle=t=>typeof t=="number"&&!isNaN(t),ule=t=>typeof t=="boolean",gle=t=>t instanceof RegExp,fd=t=>t instanceof Map,Cd=t=>t instanceof Set,XF=t=>ale(t)==="Symbol",hle=t=>t instanceof Date&&!isNaN(t.valueOf()),dle=t=>t instanceof Error,qz=t=>typeof t=="number"&&isNaN(t),fle=t=>ule(t)||sle(t)||YF(t)||cle(t)||lle(t)||XF(t),Cle=t=>typeof t=="bigint",vle=t=>t===1/0||t===-1/0,Ale=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),Ile=t=>t instanceof URL;se();var qF=t=>t.replace(/\./g,"\\."),fp=t=>t.map(String).map(qF).join("."),Eh=t=>{const r=[];let e="";for(let i=0;inull,()=>{}),Yo(Cle,"bigint",t=>t.toString(),t=>typeof BigInt<"u"?BigInt(t):(console.error("Please add a BigInt polyfill."),t)),Yo(hle,"Date",t=>t.toISOString(),t=>new Date(t)),Yo(dle,"Error",(t,r)=>{const e={name:t.name,message:t.message};return r.allowedErrorProps.forEach(n=>{e[n]=t[n]}),e},(t,r)=>{const e=new Error(t.message);return e.name=t.name,e.stack=t.stack,r.allowedErrorProps.forEach(n=>{e[n]=t[n]}),e}),Yo(gle,"regexp",t=>""+t,t=>{const r=t.slice(1,t.lastIndexOf("/")),e=t.slice(t.lastIndexOf("/")+1);return new RegExp(r,e)}),Yo(Cd,"set",t=>[...t.values()],t=>new Set(t)),Yo(fd,"map",t=>[...t.entries()],t=>new Map(t)),Yo(t=>qz(t)||vle(t),"number",t=>qz(t)?"NaN":t>0?"Infinity":"-Infinity",Number),Yo(t=>t===0&&1/t===-1/0,"number",()=>"-0",Number),Yo(Ile,"URL",t=>t.toString(),t=>new URL(t))];function rI(t,r,e,n){return{isApplicable:t,annotation:r,transform:e,untransform:n}}var JF=rI((t,r)=>XF(t)?!!r.symbolRegistry.getIdentifier(t):!1,(t,r)=>["symbol",r.symbolRegistry.getIdentifier(t)],t=>t.description,(t,r,e)=>{const n=e.symbolRegistry.getValue(r[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),ple=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,r)=>(t[r.name]=r,t),{}),ej=rI(Ale,t=>["typed-array",t.constructor.name],t=>[...t],(t,r)=>{const e=ple[r[1]];if(!e)throw new Error("Trying to deserialize unknown typed array");return new e(t)});function tj(t,r){return t?.constructor?!!r.classRegistry.getIdentifier(t.constructor):!1}var rj=rI(tj,(t,r)=>["class",r.classRegistry.getIdentifier(t.constructor)],(t,r)=>{const e=r.classRegistry.getAllowedProps(t.constructor);if(!e)return{...t};const n={};return e.forEach(i=>{n[i]=t[i]}),n},(t,r,e)=>{const n=e.classRegistry.getValue(r[1]);if(!n)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),t)}),nj=rI((t,r)=>!!r.customTransformerRegistry.findApplicable(t),(t,r)=>["custom",r.customTransformerRegistry.findApplicable(t).name],(t,r)=>r.customTransformerRegistry.findApplicable(t).serialize(t),(t,r,e)=>{const n=e.customTransformerRegistry.findByName(r[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(t)}),mle=[rj,JF,nj,ej],Qz=(t,r)=>{const e=Xz(mle,i=>i.isApplicable(t,r));if(e)return{value:e.transform(t,r),type:e.annotation(t,r)};const n=Xz(QF,i=>i.isApplicable(t,r));if(n)return{value:n.transform(t,r),type:n.annotation}},ij={};QF.forEach(t=>{ij[t.annotation]=t});var yle=(t,r,e)=>{if(_1(r))switch(r[0]){case"symbol":return JF.untransform(t,r,e);case"class":return rj.untransform(t,r,e);case"custom":return nj.untransform(t,r,e);case"typed-array":return ej.untransform(t,r,e);default:throw new Error("Unknown transformation: "+r)}else{const n=ij[r];if(!n)throw new Error("Unknown transformation: "+r);return n.untransform(t,e)}};se();var I2=(t,r)=>{const e=t.keys();for(;r>0;)e.next(),r--;return e.next().value};function oj(t){if(T5(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(T5(t,"prototype"))throw new Error("prototype is not allowed as a property");if(T5(t,"constructor"))throw new Error("constructor is not allowed as a property")}var ble=(t,r)=>{oj(r);for(let e=0;e{if(oj(r),r.length===0)return e(t);let n=t;for(let o=0;oY6(o,r,[...e,...Eh(a)]));return}const[n,i]=t;i&&gu(i,(o,a)=>{Y6(o,r,[...e,...Eh(a)])}),r(n,e)}function wle(t,r,e){return Y6(r,(n,i)=>{t=K6(t,i,o=>yle(o,n,e))}),t}function $le(t,r){function e(n,i){const o=ble(t,Eh(i));n.map(Eh).forEach(a=>{t=K6(t,a,()=>o)})}if(_1(r)){const[n,i]=r;n.forEach(o=>{t=K6(t,Eh(o),()=>t)}),i&&gu(i,e)}else gu(r,e);return t}var _le=(t,r)=>dd(t)||_1(t)||fd(t)||Cd(t)||tj(t,r);function Mle(t,r,e){const n=e.get(t);n?n.push(r):e.set(t,[r])}function zle(t,r){const e={};let n;return t.forEach(i=>{if(i.length<=1)return;r||(i=i.map(s=>s.map(String)).sort((s,l)=>s.length-l.length));const[o,...a]=i;o.length===0?n=a.map(fp):e[fp(o)]=a.map(fp)}),n?Z6(e)?[n]:[n,e]:Z6(e)?void 0:e}var aj=(t,r,e,n,i=[],o=[],a=new Map)=>{var s;const l=fle(t);if(!l){Mle(t,i,r);const f=a.get(t);if(f)return n?{transformedValue:null}:f}if(!_le(t,e)){const f=Qz(t,e),C=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:t};return l||a.set(t,C),C}if(T5(o,t))return{transformedValue:null};const c=Qz(t,e),u=(s=c?.value)!=null?s:t,g=_1(u)?[]:{},h={};gu(u,(f,C)=>{if(C==="__proto__"||C==="constructor"||C==="prototype")throw new Error(`Detected property ${C}. This is a prototype pollution risk, please remove it from your object.`);const v=aj(f,r,e,n,[...i,C],[...o,t],a);g[C]=v.transformedValue,_1(v.annotations)?h[C]=v.annotations:dd(v.annotations)&&gu(v.annotations,(A,I)=>{h[qF(C)+"."+I]=A})});const d=Z6(h)?{transformedValue:g,annotations:c?[c.type]:void 0}:{transformedValue:g,annotations:c?[c.type,h]:h};return l||a.set(t,d),d};se();se();function sj(t){return Object.prototype.toString.call(t).slice(8,-1)}function Jz(t){return sj(t)==="Array"}function Ele(t){if(sj(t)!=="Object")return!1;const r=Object.getPrototypeOf(t);return!!r&&r.constructor===Object&&r===Object.prototype}function Sle(t,r,e,n,i){const o={}.propertyIsEnumerable.call(n,r)?"enumerable":"nonenumerable";o==="enumerable"&&(t[r]=e),i&&o==="nonenumerable"&&Object.defineProperty(t,r,{value:e,enumerable:!1,writable:!0,configurable:!0})}function X6(t,r={}){if(Jz(t))return t.map(i=>X6(i,r));if(!Ele(t))return t;const e=Object.getOwnPropertyNames(t),n=Object.getOwnPropertySymbols(t);return[...e,...n].reduce((i,o)=>{if(Jz(r.props)&&!r.props.includes(o))return i;const a=t[o],s=X6(a,r);return Sle(i,o,s,t,r.nonenumerable),i},{})}var Ze=class{constructor({dedupe:t=!1}={}){this.classRegistry=new rle,this.symbolRegistry=new KF(r=>{var e;return(e=r.description)!=null?e:""}),this.customTransformerRegistry=new ole,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const r=new Map,e=aj(t,r,this,this.dedupe),n={json:e.transformedValue};e.annotations&&(n.meta={...n.meta,values:e.annotations});const i=zle(r,this.dedupe);return i&&(n.meta={...n.meta,referentialEqualities:i}),n}deserialize(t){const{json:r,meta:e}=t;let n=X6(r);return e?.values&&(n=wle(n,e.values,this)),e?.referentialEqualities&&(n=$le(n,e.referentialEqualities)),n}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,r){this.classRegistry.register(t,r)}registerSymbol(t,r){this.symbolRegistry.register(t,r)}registerCustom(t,r){this.customTransformerRegistry.register({name:r,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}};Ze.defaultInstance=new Ze;Ze.serialize=Ze.defaultInstance.serialize.bind(Ze.defaultInstance);Ze.deserialize=Ze.defaultInstance.deserialize.bind(Ze.defaultInstance);Ze.stringify=Ze.defaultInstance.stringify.bind(Ze.defaultInstance);Ze.parse=Ze.defaultInstance.parse.bind(Ze.defaultInstance);Ze.registerClass=Ze.defaultInstance.registerClass.bind(Ze.defaultInstance);Ze.registerSymbol=Ze.defaultInstance.registerSymbol.bind(Ze.defaultInstance);Ze.registerCustom=Ze.defaultInstance.registerCustom.bind(Ze.defaultInstance);Ze.allowErrorProps=Ze.defaultInstance.allowErrorProps.bind(Ze.defaultInstance);Ze.serialize;Ze.deserialize;Ze.stringify;Ze.parse;Ze.registerClass;Ze.registerCustom;Ze.registerSymbol;Ze.allowErrorProps;se();var eE="__devtools-kit-broadcast-messaging-event-key__",Tle="__devtools-kit:broadcast-channel__";function tE(){const t=new BroadcastChannel(Tle);return{post:r=>{t.postMessage(Ze.stringify({event:eE,data:r}))},on:r=>{t.onmessage=e=>{const n=Ze.parse(e.data);n.event===eE&&r(n.data)}}}}se();se();se();var Lle="electron:client-context",kle="electron:proxy-context",Ole="electron:server-context",qs={CLIENT_TO_PROXY:"client->proxy",PROXY_TO_CLIENT:"proxy->client",PROXY_TO_SERVER:"proxy->server",SERVER_TO_PROXY:"server->proxy"};function xle(){return le[Lle]}function Hle(){return le[kle]}function Vle(){return le[Ole]}function Ple(){const t=xle();return{post:r=>{t.emit(qs.CLIENT_TO_PROXY,Ze.stringify(r))},on:r=>{t.on(qs.PROXY_TO_CLIENT,e=>{r(Ze.parse(e))})}}}se();function Rle(){const t=Hle();return{post:r=>{},on:r=>{t.on(qs.SERVER_TO_PROXY,e=>{t.broadcast.emit(qs.PROXY_TO_CLIENT,e)}),t.on(qs.CLIENT_TO_PROXY,e=>{t.broadcast.emit(qs.PROXY_TO_SERVER,e)})}}}se();function Dle(){const t=Vle();return{post:r=>{t.emit(qs.SERVER_TO_PROXY,Ze.stringify(r))},on:r=>{t.on(qs.PROXY_TO_SERVER,e=>{r(Ze.parse(e))})}}}se();se();se();var Nle="electron:client-context",Ev={CLIENT_TO_PROXY:"client->proxy",PROXY_TO_CLIENT:"proxy->client",PROXY_TO_SERVER:"proxy->server",SERVER_TO_PROXY:"server->proxy"};function Ble(t){le[Nle]=t}function Fle(){let t=!1,r=null,e=null,n=null;function i(){try{clearTimeout(e),r=chrome.runtime.connect({name:`${chrome.devtools.inspectedWindow.tabId}`}),Ble(r),t=!1,r?.onMessage.addListener(n),r.onDisconnect.addListener(()=>{t=!0,r?.onMessage.removeListener(n),e=setTimeout(i,1e3)})}catch{t=!0}}return i(),{post:o=>{t||r?.postMessage(Ze.stringify(o))},on:o=>{n=a=>{t||o(Ze.parse(a))},r?.onMessage.addListener(n)}}}se();function jle(){const t=chrome.runtime.connect({name:"content-script"});function r(n){window.postMessage({source:Ev.PROXY_TO_SERVER,payload:n},"*")}function e(n){if(n.data&&n.data.source===Ev.SERVER_TO_PROXY)try{t.postMessage(n.data.payload)}catch{}}return t.onMessage.addListener(r),window.addEventListener("message",e),t.onDisconnect.addListener(()=>{window.removeEventListener("message",e),r(Ze.stringify({event:"shutdown"}))}),r(Ze.stringify({event:"init"})),{post:n=>{},on:n=>{}}}se();function Ule(){return{post:t=>{window.postMessage({source:Ev.SERVER_TO_PROXY,payload:Ze.stringify(t)},"*")},on:t=>{const r=e=>{e.data.source===Ev.PROXY_TO_SERVER&&e.data.payload&&t(Ze.parse(e.data.payload))};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}}}}se();se();se();var Sv="__devtools-kit-iframe-messaging-event-key__",Gle="iframe:server-context";function rE(){return le[Gle]}function Wle(){return Gu?{post:t=>window.parent.postMessage(Ze.stringify({event:Sv,data:t}),"*"),on:t=>window.addEventListener("message",r=>{try{const e=Ze.parse(r.data);r.source===window.parent&&e.event===Sv&&t(e.data)}catch{}})}:{post:t=>{},on:t=>{}}}se();function Zle(){return Gu?{post:t=>{var r;const e=rE();(r=e?.contentWindow)==null||r.postMessage(Ze.stringify({event:Sv,data:t}),"*")},on:t=>{window.addEventListener("message",r=>{const e=rE();try{const n=Ze.parse(r.data);r.source===e?.contentWindow&&n.event===Sv&&t(n.data)}catch{}})}}:{post:t=>{},on:t=>{}}}se();se();se();var Tv="__devtools-kit-vite-messaging-event-key__",lj="vite:client-context",Kle="vite:server-context";function Yle(){return le[lj]}function Xle(t){le[lj]=t}function qle(){return le[Kle]}function Qle(){const t=Yle();return{post:r=>{t?.send(Tv,Ze.stringify(r))},on:r=>{t?.on(Tv,e=>{r(Ze.parse(e))})}}}se();function Jle(){var t;const r=qle(),e=(t=r.hot)!=null?t:r.ws;return{post:n=>e?.send(Tv,Ze.stringify(n)),on:n=>e?.on(Tv,i=>{n(Ze.parse(i))})}}se();se();se();se();var nE,iE;(iE=(nE=le).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(nE.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var oE,aE;(aE=(oE=le).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(oE.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var sE,lE;(lE=(sE=le).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(sE.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var cE,uE;(uE=(cE=le).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(cE.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var gE,hE;(hE=(gE=le).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(gE.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var dE,fE;(fE=(dE=le).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(dE.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);function ece(t){le.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=t}function tce(){return le.__VUE_DEVTOOLS_KIT_RPC_CLIENT__}function cj(){return le.__VUE_DEVTOOLS_KIT_RPC_SERVER__}function rce(t){le.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=t}function nce(){return le.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__}function ice(t,r="client"){const e={iframe:{client:Wle,server:Zle}[r],electron:{client:Ple,proxy:Rle,server:Dle}[r],vite:{client:Qle,server:Jle}[r],broadcast:{client:tE,server:tE}[r],extension:{client:Fle,proxy:jle,server:Ule}[r]}[t];return e()}function q6(t,r={}){const{channel:e,options:n,preset:i}=r,o=i?ice(i):e,a=Aie(t,{...n,...o,timeout:-1});if(i==="vite"){rce(a);return}return ece(a),a}se();se();se();se();se();se();function oce(t){let r="",e=null;try{r=Function.prototype.toString.call(t),e=String.prototype.match.call(r,/\([\s\S]*?\)/)}catch{}const n=e&&e[0],i=typeof n=="string"?n:"(?)",o=typeof t.name=="string"?t.name:"";return{_custom:{type:"function",displayText:`function ${Tb(o)}${i}`,tooltipText:r.trim()?`
${r}
`:null}}}function ace(t){const r=BigInt.prototype.toString.call(t);return{_custom:{type:"bigint",displayText:`BigInt(${r})`,value:r}}}function sce(t){const r=new Date(t.getTime());return r.setMinutes(r.getMinutes()-r.getTimezoneOffset()),{_custom:{type:"date",displayText:Date.prototype.toString.call(t),value:r.toISOString().slice(0,-1)}}}function lce(t){return{_custom:{type:"map",displayText:"Map",value:Object.fromEntries(t),readOnly:!0,fields:{abstract:!0}}}}function cce(t){const r=Array.from(t);return{_custom:{type:"set",displayText:`Set[${r.length}]`,value:r,readOnly:!0}}}function uce(t){const r={},e=t.getters||{},n=Object.keys(e);for(let i=0;i{try{return e[o]}catch(a){return a}}})}return r}function gce(t){if(t.length)return t.reduce((r,e)=>{const n=e.type||"data",i=r[n]=r[n]||{};return i[e.key]=e.value,r},{})}function hce(t){const r={},e=t.length;for(let n=0;n(${t.__file})`):r="Unknown Component",{_custom:{type:"component-definition",displayText:r,tooltipText:"Component definition",...t.__file?{file:t.__file}:{}}}}function Ace(t){try{return{_custom:{type:"HTMLElement",displayText:`<${t.tagName.toLowerCase()}>`,value:hce(t.attributes)}}}catch{return{_custom:{type:"HTMLElement",displayText:`${String(t)}`}}}}function Ice(t){if(io(t,"_value",!0))return t._value;if(io(t,"value",!0))return t.value}function pce(t){var r,e,n,i;const o=RF(t);if(o.ref||o.computed||o.reactive){const s=o.computed?"Computed":o.ref?"Ref":o.reactive?"Reactive":null,l=DF(o.reactive?t:Ice(t)),c=io(t,"effect")?((e=(r=t.effect)==null?void 0:r.raw)==null?void 0:e.toString())||((i=(n=t.effect)==null?void 0:n.fn)==null?void 0:i.toString()):null;return{_custom:{type:s?.toLowerCase(),stateTypeName:s,value:l,...c?{tooltipText:`${c}`}:{}}}}if(io(t,"__asyncLoader")&&typeof t.__asyncLoader=="function")return{_custom:{type:"component-definition",display:"Async component definition"}}}function mce(t,r,e,n){var i;if(t==="compilerOptions")return;const o=this[t],a=typeof o;if(Array.isArray(o)){const s=o.length;return s>kz?{_isArray:!0,length:s,items:o.slice(0,kz)}:o}else{if(typeof o=="string")return o.length>Lz?`${o.substring(0,Lz)}... (${o.length} total length)`:o;if(a==="undefined")return Ku;if(o===Number.POSITIVE_INFINITY)return hf;if(o===Number.NEGATIVE_INFINITY)return df;if(typeof o=="function")return oce(o);if(a==="symbol")return`[native Symbol ${Symbol.prototype.toString.call(o)}]`;if(typeof o=="bigint")return ace(o);if(o!==null&&typeof o=="object"){const s=Object.prototype.toString.call(o);if(s==="[object Map]")return lce(o);if(s==="[object Set]")return cce(o);if(s==="[object RegExp]")return`[native RegExp ${RegExp.prototype.toString.call(o)}]`;if(s==="[object Date]")return sce(o);if(s==="[object Error]")return`[native Error ${o.message}<>${o.stack}]`;if(io(o,"state",!0)&&io(o,"_vm",!0))return dce(o);if(o.constructor&&o.constructor.name==="VueRouter")return fce(o);if(HF(o)){const c=Cce(o),u=n?.get(o);return u&&u`:(n?.set(o,e),c)}else{if(io(o,"render",!0)&&typeof o.render=="function")return vce(o);if(o.constructor&&o.constructor.name==="VNode")return`[native VNode <${o.tag}>]`;if(typeof HTMLElement<"u"&&o instanceof HTMLElement)return Ace(o);if(((i=o.constructor)==null?void 0:i.name)==="Store"&&"_wrappedGetters"in o)return"[object Store]";if(io(o,"currentRoute",!0))return"[object Router]"}const l=pce(o);if(l!=null)return l}else if(Number.isNaN(o))return ff}return v1e(o)}se();var X0=2*1024*1024;function CE(t,r){return r==="[object Object]"}function yce(t,r){return r==="[object Array]"}function bce(t){var r;const e=(r=t?.constructor)==null?void 0:r.name;return e==="Dep"&&"activeLink"in t||e==="Link"&&"dep"in t}function Q6(t,r,e,n,i=0,o=new Map){let a,s,l,c,u;const g=n.get(t);if(g!=null)return g;const h=e.length,d=Object.prototype.toString.call(t);if(CE(t,d)){if(bce(t))return h;a={},n.set(t,h),e.push(a);const f=Object.keys(t);for(c=0,u=f.length;c{var a;return(a=r?.(i,o))==null?void 0:a.call(this)},e)}catch{n=_ce(t,r,e)}if(n.length>X0){const i=Math.ceil(n.length/X0),o=[];for(let a=0;a{X1e()},get ctx(){return wa},get api(){return wa.api}};const nI=G(!1),vd=async t=>{const r={file:t};return ya&&(r.host="chrome-extension"),he.value.openInEditor(r)};function J6(t,r={},e){for(const n in t){const i=t[n],o=e?`${e}:${n}`:n;typeof i=="object"&&i!==null?J6(i,r,o):typeof i=="function"&&(r[o]=i)}return r}var Mce={run:t=>t()},zce=()=>Mce,uj=typeof console.createTask<"u"?console.createTask:zce;function Ece(t,r){const e=r.shift(),n=uj(e);return t.reduce((i,o)=>i.then(()=>n.run(()=>o(...r))),Promise.resolve())}function Sce(t,r){const e=r.shift(),n=uj(e);return Promise.all(t.map(i=>n.run(()=>i(...r))))}function Cp(t,r){for(const e of[...t])e(r)}var Tce=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,e={}){if(!t||typeof r!="function")return()=>{};const n=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!e.allowDeprecated){let o=i.message;o||(o=`${n} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let e,n=(...i)=>(typeof e=="function"&&e(),e=void 0,n=void 0,r(...i));return e=this.hook(t,n),e}removeHook(t,r){if(this._hooks[t]){const e=this._hooks[t].indexOf(r);e!==-1&&this._hooks[t].splice(e,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const e=this._hooks[t]||[];delete this._hooks[t];for(const n of e)this.hook(t,n)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=J6(t),e=Object.keys(r).map(n=>this.hook(n,r[n]));return()=>{for(const n of e.splice(0,e.length))n()}}removeHooks(t){const r=J6(t);for(const e in r)this.removeHook(e,r[e])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(Ece,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(Sce,t,...r)}callHookWith(t,r,...e){const n=this._before||this._after?{name:r,args:e,context:{}}:void 0;this._before&&Cp(this._before,n);const i=t(r in this._hooks?[...this._hooks[r]]:[],e);return i instanceof Promise?i.finally(()=>{this._after&&n&&Cp(this._after,n)}):(this._after&&n&&Cp(this._after,n),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}};function gj(){return new Tce}var q0=gj(),Ft=(t=>(t.INSPECTOR_TREE_UPDATED="inspector-tree-updated",t.INSPECTOR_STATE_UPDATED="inspector-state-updated",t.DEVTOOLS_STATE_UPDATED="devtools-state-updated",t.ROUTER_INFO_UPDATED="router-info-updated",t.TIMELINE_EVENT_UPDATED="timeline-event-updated",t.INSPECTOR_UPDATED="inspector-updated",t.ACTIVE_APP_UNMOUNTED="active-app-updated",t.DESTROY_DEVTOOLS_CLIENT="destroy-devtools-client",t.RELOAD_DEVTOOLS_CLIENT="reload-devtools-client",t))(Ft||{});function AE(){var t;const r=ur.ctx.state;return{connected:r.connected,clientConnected:!0,vueVersion:((t=r?.activeAppRecord)==null?void 0:t.version)||"",tabs:r.tabs,commands:r.commands,vitePluginDetected:r.vitePluginDetected,appRecords:r.appRecords.map(e=>({id:e.id,name:e.name,version:e.version,routerId:e.routerId})),activeAppRecordId:r.activeAppRecordId,timelineLayersState:r.timelineLayersState}}var IE={on:(t,r)=>{q0.hook(t,r)},off:(t,r)=>{q0.removeHook(t,r)},once:(t,r)=>{q0.hookOnce(t,r)},emit:(t,...r)=>{q0.callHook(t,...r)},heartbeat:()=>!0,devtoolsState:()=>AE(),async getInspectorTree(t){const r=await ur.ctx.api.getInspectorTree(t);return Zg(r)},async getInspectorState(t){const r=i1(t.inspectorId);r&&(r.selectedNodeId=t.nodeId);const e=await ur.ctx.api.getInspectorState(t);return Zg(e)},async editInspectorState(t){return await ur.ctx.api.editInspectorState(t)},sendInspectorState(t){return ur.ctx.api.sendInspectorState(t)},inspectComponentInspector(){return ur.ctx.api.inspectComponentInspector()},cancelInspectComponentInspector(){return ur.ctx.api.cancelInspectComponentInspector()},getComponentRenderCode(t){return ur.ctx.api.getComponentRenderCode(t)},scrollToComponent(t){return ur.ctx.api.scrollToComponent(t)},inspectDOM(t){return ur.ctx.api.inspectDOM(t)},getInspectorNodeActions(t){return dz(t)},getInspectorActions(t){return hz(t)},updateTimelineLayersState(t){return Nse(t)},callInspectorNodeAction(t,r,e){var n;const i=dz(t);if(i?.length){const o=i[r];(n=o.action)==null||n.call(o,e)}},callInspectorAction(t,r){var e;const n=hz(t);if(n?.length){const i=n[r];(e=i.action)==null||e.call(i)}},openInEditor(t){return ur.ctx.api.openInEditor(t)},async checkVueInspectorDetected(){return!!await ur.ctx.api.getVueInspector()},async enableVueInspector(){var t,r,e;const n=await((e=(r=(t=ur)==null?void 0:t.api)==null?void 0:r.getVueInspector)==null?void 0:e.call(r));n&&await n.enable()},async toggleApp(t){return ur.ctx.api.toggleApp(t)},updatePluginSettings(t,r,e){return ur.ctx.api.updatePluginSettings(t,r,e)},getPluginSettings(t){return ur.ctx.api.getPluginSettings(t)},getRouterInfo(){return D1e},navigate(t){var r;return(r=Nz.value)==null?void 0:r.push(t).catch(()=>({}))},getMatchedRoutes(t){var r,e;const n=console.warn;console.warn=()=>{};const i=(e=(r=Nz.value)==null?void 0:r.resolve({path:t||"/"}).matched)!=null?e:[];return console.warn=n,i},toggleClientConnected(t){Yse(t)},getCustomInspector(){return zb()},getInspectorInfo(t){return Fse(t)},unhighlight(){ur.ctx.hooks.callHook(LF.COMPONENT_UNHIGHLIGHT)},updateDevToolsClientDetected(t){ZF(t)},initDevToolsServerListener(){const r=cj().broadcast;ur.ctx.hooks.hook(xs.SEND_INSPECTOR_TREE_TO_CLIENT,e=>{r.emit("inspector-tree-updated",Zg(e))}),ur.ctx.hooks.hook(xs.SEND_INSPECTOR_STATE_TO_CLIENT,e=>{r.emit("inspector-state-updated",Zg(e))}),ur.ctx.hooks.hook(xs.DEVTOOLS_STATE_UPDATED,()=>{r.emit("devtools-state-updated",AE())}),ur.ctx.hooks.hook(xs.ROUTER_INFO_UPDATED,({state:e})=>{r.emit("router-info-updated",e)}),ur.ctx.hooks.hook(xs.SEND_TIMELINE_EVENT_TO_CLIENT,e=>{r.emit("timeline-event-updated",Zg(e))}),ur.ctx.hooks.hook(xs.SEND_INSPECTOR_TO_CLIENT,e=>{r.emit("inspector-updated",e)}),ur.ctx.hooks.hook(xs.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT,()=>{r.emit("active-app-updated")})}},he=new Proxy({value:{},functions:{}},{get(t,r){const e=tce();if(r==="value")return e;if(r==="functions")return e.$functions}});new Proxy({value:{},functions:{}},{get(t,r){const e=cj();if(r==="value")return e;if(r==="functions")return e.functions}});function Ga(t){let r=null,e=0;function n(){var i,o;(o=(i=he.value)==null?void 0:i.heartbeat)==null||o.call(i).then(()=>{t(),clearTimeout(r)}).catch(()=>{})}r=setInterval(()=>{e>=30&&clearTimeout(r),e++,n()},e*200+200),n()}var Q0=gj(),Lce={on:(t,r)=>{Q0.hook(t,r)},off:(t,r)=>{Q0.removeHook(t,r)},once:(t,r)=>{Q0.hookOnce(t,r)},emit:(t,...r)=>{Q0.callHook(t,...r)},heartbeat:()=>!0},zo=new Proxy({value:{},functions:{}},{get(t,r){const e=nce();if(r==="value")return e;if(r==="functions")return e?.$functions}});function hj(t){let r=null;function e(){var n,i;(i=(n=zo.value)==null?void 0:n.heartbeat)==null||i.call(n).then(()=>{clearTimeout(r),t()}).catch(()=>({})),r=setTimeout(()=>{e()},80)}e()}function kce(){q6(Lce,{preset:"vite"})}var dj=Symbol.for("__VueDevToolsStateSymbol__");function Oce(){return{install(t){const r=xce();r.getDevToolsState(),t.provide(dj,r),t.config.globalProperties.$getDevToolsState=r.getDevToolsState,t.config.globalProperties.$disconnectDevToolsClient=()=>{r.clientConnected.value=!1,r.connected.value=!1}}}}function xce(){const t=G(!1),r=G(!1),e=G(""),n=G([]),i=G([]),o=G(!1),a=G([]),s=G(""),l=G({});function c(g){t.value=g.connected,r.value=g.clientConnected,e.value=g.vueVersion||"",n.value=g.tabs,i.value=g.commands,o.value=g.vitePluginDetected,a.value=g.appRecords,s.value=g.activeAppRecordId,l.value=g.timelineLayersState}function u(){Ga(()=>{he.value.devtoolsState().then(g=>{c(g)}),he.functions.off("devtools-state-updated",c),he.functions.on("devtools-state-updated",c)})}return{getDevToolsState:u,connected:t,clientConnected:r,vueVersion:e,tabs:n,commands:i,vitePluginDetected:o,appRecords:a,activeAppRecordId:s,timelineLayersState:l}}function ji(){return br(dj)}var d2=[];function xb(t){const{connected:r,clientConnected:e}=ji();d2.push(t),fn(()=>{d2.splice(d2.indexOf(t),1)});const n=j(()=>e.value&&r.value);if(n.value)t();else{const i=Ke(n,o=>{o&&(t(),i())})}return()=>{d2.splice(d2.indexOf(t),1)}}function fj(){d2.forEach(t=>t())}async function Hce(t="/",r=!0){try{const e=`${t}@vite/client`,n=await fetch(e);if((await n.text()).startsWith("<")||!n.headers.get("content-type")?.includes("javascript"))throw new Error("Not javascript");return await import(e)}catch{r&&console.error(`[vite-hot-client] Failed to import "${t}@vite/client"`)}}/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT */const f2=typeof document<"u";function Cj(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Vce(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&Cj(t.default)}const gr=Object.assign;function vp(t,r){const e={};for(const n in r){const i=r[n];e[n]=Do(i)?i.map(t):t(i)}return e}const Sh=()=>{},Do=Array.isArray,vj=/#/g,Pce=/&/g,Rce=/\//g,Dce=/=/g,Nce=/\?/g,Aj=/\+/g,Bce=/%5B/g,Fce=/%5D/g,Ij=/%5E/g,jce=/%60/g,pj=/%7B/g,Uce=/%7C/g,mj=/%7D/g,Gce=/%20/g;function Hb(t){return encodeURI(""+t).replace(Uce,"|").replace(Bce,"[").replace(Fce,"]")}function Wce(t){return Hb(t).replace(pj,"{").replace(mj,"}").replace(Ij,"^")}function e8(t){return Hb(t).replace(Aj,"%2B").replace(Gce,"+").replace(vj,"%23").replace(Pce,"%26").replace(jce,"`").replace(pj,"{").replace(mj,"}").replace(Ij,"^")}function Zce(t){return e8(t).replace(Dce,"%3D")}function Kce(t){return Hb(t).replace(vj,"%23").replace(Nce,"%3F")}function Yce(t){return t==null?"":Kce(t).replace(Rce,"%2F")}function Ad(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Xce=/\/$/,qce=t=>t.replace(Xce,"");function Ap(t,r,e="/"){let n,i={},o="",a="";const s=r.indexOf("#");let l=r.indexOf("?");return s=0&&(l=-1),l>-1&&(n=r.slice(0,l),o=r.slice(l+1,s>-1?s:r.length),i=t(o)),s>-1&&(n=n||r.slice(0,s),a=r.slice(s,r.length)),n=t2e(n??r,e),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:Ad(a)}}function Qce(t,r){const e=r.query?t(r.query):"";return r.path+(e&&"?")+e+(r.hash||"")}function Jce(t,r,e){const n=r.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&hu(r.matched[n],e.matched[i])&&yj(r.params,e.params)&&t(r.query)===t(e.query)&&r.hash===e.hash}function hu(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function yj(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const e in t)if(!e2e(t[e],r[e]))return!1;return!0}function e2e(t,r){return Do(t)?pE(t,r):Do(r)?pE(r,t):t===r}function pE(t,r){return Do(r)?t.length===r.length&&t.every((e,n)=>e===r[n]):t.length===1&&t[0]===r}function t2e(t,r){if(t.startsWith("/"))return t;if(!t)return r;const e=r.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=e.length-1,a,s;for(a=0;a1&&o--;else break;return e.slice(0,o).join("/")+"/"+n.slice(a).join("/")}const Ts={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Id;(function(t){t.pop="pop",t.push="push"})(Id||(Id={}));var Lv;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Lv||(Lv={}));const Ip="";function r2e(t){if(!t)if(f2){const r=document.querySelector("base");t=r&&r.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),qce(t)}const n2e=/^[^#]+#/;function i2e(t,r){return t.replace(n2e,"#")+r}function o2e(t,r){const e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:r.behavior,left:n.left-e.left-(r.left||0),top:n.top-e.top-(r.top||0)}}const a2e=()=>({left:window.scrollX,top:window.scrollY});function s2e(t){let r;if("el"in t){const e=t.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;r=o2e(i,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.scrollX,r.top!=null?r.top:window.scrollY)}function mE(t,r){return(history.state?history.state.position-r:-1)+t}const t8=new Map;function l2e(t,r){t8.set(t,r)}function c2e(t){const r=t8.get(t);return t8.delete(t),r}function u2e(t=""){let r=[],e=[Ip],n=0;t=r2e(t);function i(s){n++,n!==e.length&&e.splice(n),e.push(s)}function o(s,l,{direction:c,delta:u}){const g={direction:c,delta:u,type:Id.pop};for(const h of r)h(s,l,g)}const a={location:Ip,state:{},base:t,createHref:i2e.bind(null,t),replace(s){e.splice(n--,1),i(s)},push(s,l){i(s)},listen(s){return r.push(s),()=>{const l=r.indexOf(s);l>-1&&r.splice(l,1)}},destroy(){r=[],e=[Ip],n=0},go(s,l=!0){const c=this.location,u=s<0?Lv.back:Lv.forward;n=Math.max(0,Math.min(n+s,e.length-1)),l&&o(this.location,c,{direction:u,delta:s})}};return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e[n]}),a}function g2e(t){return typeof t=="string"||t&&typeof t=="object"}function bj(t){return typeof t=="string"||typeof t=="symbol"}const wj=Symbol("");var yE;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(yE||(yE={}));function du(t,r){return gr(new Error,{type:t,[wj]:!0},r)}function Pa(t,r){return t instanceof Error&&wj in t&&(r==null||!!(t.type&r))}const bE="[^/]+?",h2e={sensitive:!1,strict:!1,start:!0,end:!0},d2e=/[.+*?^${}()[\]/\\]/g;function f2e(t,r){const e=gr({},h2e,r),n=[];let i=e.start?"^":"";const o=[];for(const c of t){const u=c.length?[]:[90];e.strict&&!c.length&&(i+="/");for(let g=0;gr.length?r.length===1&&r[0]===80?1:-1:0}function $j(t,r){let e=0;const n=t.score,i=r.score;for(;e0&&r[r.length-1]<0}const v2e={type:0,value:""},A2e=/[a-zA-Z0-9_]/;function I2e(t){if(!t)return[[]];if(t==="/")return[[v2e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function r(d){throw new Error(`ERR (${e})/"${c}": ${d}`)}let e=0,n=e;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,c="",u="";function g(){c&&(e===0?o.push({type:0,value:c}):e===1||e===2||e===3?(o.length>1&&(l==="*"||l==="+")&&r(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):r("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;s{a(p)}:Sh}function a(g){if(bj(g)){const h=n.get(g);h&&(n.delete(g),e.splice(e.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=e.indexOf(g);h>-1&&(e.splice(h,1),g.record.name&&n.delete(g.record.name),g.children.forEach(a),g.alias.forEach(a))}}function s(){return e}function l(g){const h=w2e(g,e);e.splice(h,0,g),g.record.name&&!ME(g)&&n.set(g.record.name,g)}function c(g,h){let d,f={},C,v;if("name"in g&&g.name){if(d=n.get(g.name),!d)throw du(1,{location:g});v=d.record.name,f=gr($E(h.params,d.keys.filter(p=>!p.optional).concat(d.parent?d.parent.keys.filter(p=>p.optional):[]).map(p=>p.name)),g.params&&$E(g.params,d.keys.map(p=>p.name))),C=d.stringify(f)}else if(g.path!=null)C=g.path,d=e.find(p=>p.re.test(C)),d&&(f=d.parse(C),v=d.record.name);else{if(d=h.name?n.get(h.name):e.find(p=>p.re.test(h.path)),!d)throw du(1,{location:g,currentLocation:h});v=d.record.name,f=gr({},h.params,g.params),C=d.stringify(f)}const A=[];let I=d;for(;I;)A.unshift(I.record),I=I.parent;return{name:v,path:C,params:f,matched:A,meta:b2e(A)}}t.forEach(g=>o(g));function u(){e.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function $E(t,r){const e={};for(const n of r)n in t&&(e[n]=t[n]);return e}function _E(t){const r={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:y2e(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(r,"mods",{value:{}}),r}function y2e(t){const r={},e=t.props||!1;if("component"in t)r.default=e;else for(const n in t.components)r[n]=typeof e=="object"?e[n]:e;return r}function ME(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function b2e(t){return t.reduce((r,e)=>gr(r,e.meta),{})}function zE(t,r){const e={};for(const n in t)e[n]=n in r?r[n]:t[n];return e}function w2e(t,r){let e=0,n=r.length;for(;e!==n;){const o=e+n>>1;$j(t,r[o])<0?n=o:e=o+1}const i=$2e(t);return i&&(n=r.lastIndexOf(i,n-1)),n}function $2e(t){let r=t;for(;r=r.parent;)if(_j(r)&&$j(t,r)===0)return r}function _j({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function _2e(t){const r={};if(t===""||t==="?")return r;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&e8(o)):[n&&e8(n)]).forEach(o=>{o!==void 0&&(r+=(r.length?"&":"")+e,o!=null&&(r+="="+o))})}return r}function M2e(t){const r={};for(const e in t){const n=t[e];n!==void 0&&(r[e]=Do(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return r}const z2e=Symbol(""),SE=Symbol(""),iI=Symbol(""),Vb=Symbol(""),r8=Symbol("");function Kg(){let t=[];function r(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function e(){t=[]}return{add:r,list:()=>t.slice(),reset:e}}function Us(t,r,e,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=h=>{h===!1?l(du(4,{from:e,to:r})):h instanceof Error?l(h):g2e(h)?l(du(2,{from:r,to:h})):(a&&n.enterCallbacks[i]===a&&typeof h=="function"&&a.push(h),s())},u=o(()=>t.call(n&&n.instances[i],r,e,c));let g=Promise.resolve(u);t.length<3&&(g=g.then(c)),g.catch(h=>l(h))})}function pp(t,r,e,n,i=o=>o()){const o=[];for(const a of t)for(const s in a.components){let l=a.components[s];if(!(r!=="beforeRouteEnter"&&!a.instances[s]))if(Cj(l)){const u=(l.__vccOpts||l)[r];u&&o.push(Us(u,e,n,a,s,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const g=Vce(u)?u.default:u;a.mods[s]=u,a.components[s]=g;const d=(g.__vccOpts||g)[r];return d&&Us(d,e,n,a,s,i)()}))}}return o}function TE(t){const r=br(iI),e=br(Vb),n=j(()=>{const l=y(t.to);return r.resolve(l)}),i=j(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],g=e.matched;if(!u||!g.length)return-1;const h=g.findIndex(hu.bind(null,u));if(h>-1)return h;const d=LE(l[c-2]);return c>1&&LE(u)===d&&g[g.length-1].path!==d?g.findIndex(hu.bind(null,l[c-2])):h}),o=j(()=>i.value>-1&&T2e(e.params,n.value.params)),a=j(()=>i.value>-1&&i.value===e.matched.length-1&&yj(e.params,n.value.params));function s(l={}){return S2e(l)?r[y(t.replace)?"replace":"push"](y(t.to)).catch(Sh):Promise.resolve()}return{route:n,href:j(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}const E2e=ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:TE,setup(t,{slots:r}){const e=ba(TE(t)),{options:n}=br(iI),i=j(()=>({[kE(t.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[kE(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const o=r.default&&r.default(e);return t.custom?o:vc("a",{"aria-current":e.isExactActive?t.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},o)}}}),Mj=E2e;function S2e(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function T2e(t,r){for(const e in r){const n=r[e],i=t[e];if(typeof n=="string"){if(n!==i)return!1}else if(!Do(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function LE(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const kE=(t,r,e)=>t??r??e,L2e=ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:e}){const n=br(r8),i=j(()=>t.route||n.value),o=br(SE,0),a=j(()=>{let c=y(o);const{matched:u}=i.value;let g;for(;(g=u[c])&&!g.components;)c++;return c}),s=j(()=>i.value.matched[a.value]);Di(SE,j(()=>a.value+1)),Di(z2e,s),Di(r8,i);const l=G();return Ke(()=>[l.value,s.value,t.name],([c,u,g],[h,d,f])=>{u&&(u.instances[g]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!hu(u,d)||!h)&&(u.enterCallbacks[g]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,g=s.value,h=g&&g.components[u];if(!h)return OE(e.default,{Component:h,route:c});const d=g.props[u],f=d?d===!0?c.params:typeof d=="function"?d(c):d:null,v=vc(h,gr({},f,r,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(g.instances[u]=null)},ref:l}));return OE(e.default,{Component:v,route:c})||v}}});function OE(t,r){if(!t)return null;const e=t(r);return e.length===1?e[0]:e}const k2e=L2e;function O2e(t){const r=m2e(t.routes,t),e=t.parseQuery||_2e,n=t.stringifyQuery||EE,i=t.history,o=Kg(),a=Kg(),s=Kg(),l=Bi(Ts);let c=Ts;f2&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=vp.bind(null,X=>""+X),g=vp.bind(null,Yce),h=vp.bind(null,Ad);function d(X,ae){let V,x;return bj(X)?(V=r.getRecordMatcher(X),x=ae):x=X,r.addRoute(x,V)}function f(X){const ae=r.getRecordMatcher(X);ae&&r.removeRoute(ae)}function C(){return r.getRoutes().map(X=>X.record)}function v(X){return!!r.getRecordMatcher(X)}function A(X,ae){if(ae=gr({},ae||l.value),typeof X=="string"){const $=Ap(e,X,ae.path),O=r.resolve({path:$.path},ae),W=i.createHref($.fullPath);return gr($,O,{params:h(O.params),hash:Ad($.hash),redirectedFrom:void 0,href:W})}let V;if(X.path!=null)V=gr({},X,{path:Ap(e,X.path,ae.path).path});else{const $=gr({},X.params);for(const O in $)$[O]==null&&delete $[O];V=gr({},X,{params:g($)}),ae.params=g(ae.params)}const x=r.resolve(V,ae),B=X.hash||"";x.params=u(h(x.params));const q=Qce(n,gr({},X,{hash:Wce(B),path:x.path})),z=i.createHref(q);return gr({fullPath:q,hash:B,query:n===EE?M2e(X.query):X.query||{}},x,{redirectedFrom:void 0,href:z})}function I(X){return typeof X=="string"?Ap(e,X,l.value.path):gr({},X)}function p(X,ae){if(c!==X)return du(8,{from:ae,to:X})}function m(X){return S(X)}function b(X){return m(gr(I(X),{replace:!0}))}function _(X){const ae=X.matched[X.matched.length-1];if(ae&&ae.redirect){const{redirect:V}=ae;let x=typeof V=="function"?V(X):V;return typeof x=="string"&&(x=x.includes("?")||x.includes("#")?x=I(x):{path:x},x.params={}),gr({query:X.query,hash:X.hash,params:x.path!=null?{}:X.params},x)}}function S(X,ae){const V=c=A(X),x=l.value,B=X.state,q=X.force,z=X.replace===!0,$=_(V);if($)return S(gr(I($),{state:typeof $=="object"?gr({},B,$.state):B,force:q,replace:z}),ae||V);const O=V;O.redirectedFrom=ae;let W;return!q&&Jce(n,x,V)&&(W=du(16,{to:O,from:x}),De(x,x,!0,!1)),(W?Promise.resolve(W):L(O,x)).catch(Z=>Pa(Z)?Pa(Z,2)?Z:Ye(Z):te(Z,O,x)).then(Z=>{if(Z){if(Pa(Z,2))return S(gr({replace:z},I(Z.to),{state:typeof Z.to=="object"?gr({},B,Z.to.state):B,force:q}),ae||O)}else Z=P(O,x,!0,z,B);return H(O,x,Z),Z})}function E(X,ae){const V=p(X,ae);return V?Promise.reject(V):Promise.resolve()}function T(X){const ae=Ue.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(X):X()}function L(X,ae){let V;const[x,B,q]=x2e(X,ae);V=pp(x.reverse(),"beforeRouteLeave",X,ae);for(const $ of x)$.leaveGuards.forEach(O=>{V.push(Us(O,X,ae))});const z=E.bind(null,X,ae);return V.push(z),ft(V).then(()=>{V=[];for(const $ of o.list())V.push(Us($,X,ae));return V.push(z),ft(V)}).then(()=>{V=pp(B,"beforeRouteUpdate",X,ae);for(const $ of B)$.updateGuards.forEach(O=>{V.push(Us(O,X,ae))});return V.push(z),ft(V)}).then(()=>{V=[];for(const $ of q)if($.beforeEnter)if(Do($.beforeEnter))for(const O of $.beforeEnter)V.push(Us(O,X,ae));else V.push(Us($.beforeEnter,X,ae));return V.push(z),ft(V)}).then(()=>(X.matched.forEach($=>$.enterCallbacks={}),V=pp(q,"beforeRouteEnter",X,ae,T),V.push(z),ft(V))).then(()=>{V=[];for(const $ of a.list())V.push(Us($,X,ae));return V.push(z),ft(V)}).catch($=>Pa($,8)?$:Promise.reject($))}function H(X,ae,V){s.list().forEach(x=>T(()=>x(X,ae,V)))}function P(X,ae,V,x,B){const q=p(X,ae);if(q)return q;const z=ae===Ts,$=f2?history.state:{};V&&(x||z?i.replace(X.fullPath,gr({scroll:z&&$&&$.scroll},B)):i.push(X.fullPath,B)),l.value=X,De(X,ae,V,z),Ye()}let R;function N(){R||(R=i.listen((X,ae,V)=>{if(!ot.listening)return;const x=A(X),B=_(x);if(B){S(gr(B,{replace:!0}),x).catch(Sh);return}c=x;const q=l.value;f2&&l2e(mE(q.fullPath,V.delta),a2e()),L(x,q).catch(z=>Pa(z,12)?z:Pa(z,2)?(S(z.to,x).then($=>{Pa($,20)&&!V.delta&&V.type===Id.pop&&i.go(-1,!1)}).catch(Sh),Promise.reject()):(V.delta&&i.go(-V.delta,!1),te(z,x,q))).then(z=>{z=z||P(x,q,!1),z&&(V.delta&&!Pa(z,8)?i.go(-V.delta,!1):V.type===Id.pop&&Pa(z,20)&&i.go(-1,!1)),H(x,q,z)}).catch(Sh)}))}let U=Kg(),F=Kg(),K;function te(X,ae,V){Ye(X);const x=F.list();return x.length?x.forEach(B=>B(X,ae,V)):console.error(X),Promise.reject(X)}function Me(){return K&&l.value!==Ts?Promise.resolve():new Promise((X,ae)=>{U.add([X,ae])})}function Ye(X){return K||(K=!X,N(),U.list().forEach(([ae,V])=>X?V(X):ae()),U.reset()),X}function De(X,ae,V,x){const{scrollBehavior:B}=t;if(!f2||!B)return Promise.resolve();const q=!V&&c2e(mE(X.fullPath,0))||(x||!V)&&history.state&&history.state.scroll||null;return dn().then(()=>B(X,ae,q)).then(z=>z&&s2e(z)).catch(z=>te(z,X,ae))}const we=X=>i.go(X);let Ne;const Ue=new Set,ot={currentRoute:l,listening:!0,addRoute:d,removeRoute:f,clearRoutes:r.clearRoutes,hasRoute:v,getRoutes:C,resolve:A,options:t,push:m,replace:b,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:F.add,isReady:Me,install(X){const ae=this;X.component("RouterLink",Mj),X.component("RouterView",k2e),X.config.globalProperties.$router=ae,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>y(l)}),f2&&!Ne&&l.value===Ts&&(Ne=!0,m(i.location).catch(B=>{}));const V={};for(const B in Ts)Object.defineProperty(V,B,{get:()=>l.value[B],enumerable:!0});X.provide(iI,ae),X.provide(Vb,sb(V)),X.provide(r8,l);const x=X.unmount;Ue.add(X),X.unmount=function(){Ue.delete(X),Ue.size<1&&(c=Ts,R&&R(),R=null,l.value=Ts,Ne=!1,K=!1),x()}}};function ft(X){return X.reduce((ae,V)=>ae.then(()=>T(V)),Promise.resolve())}return ot}function x2e(t,r){const e=[],n=[],i=[],o=Math.max(r.matched.length,t.matched.length);for(let a=0;ahu(c,s))?n.push(s):e.push(s));const l=t.matched[a];l&&(r.matched.find(c=>hu(c,l))||i.push(l))}return[e,n,i]}function Ac(){return br(iI)}function Cf(t){return br(Vb)}const H2e="modulepreload",V2e=function(t,r){return new URL(t,r).href},xE={},Si=function(r,e,n){let i=Promise.resolve();if(e&&e.length>0){const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=Promise.allSettled(e.map(c=>{if(c=V2e(c,n),c in xE)return;xE[c]=!0;const u=c.endsWith(".css"),g=u?'[rel="stylesheet"]':"";if(!!n)for(let f=a.length-1;f>=0;f--){const C=a[f];if(C.href===c&&(!u||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${g}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":H2e,u||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((f,C)=>{d.addEventListener("load",f),d.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return r().catch(o)})},P2e=["top","right","bottom","left"],HE=["start","end"],VE=P2e.reduce((t,r)=>t.concat(r,r+"-"+HE[0],r+"-"+HE[1]),[]),pd=Math.min,Al=Math.max,R2e={left:"right",right:"left",bottom:"top",top:"bottom"},D2e={start:"end",end:"start"};function n8(t,r,e){return Al(t,pd(r,e))}function Ic(t,r){return typeof t=="function"?t(r):t}function $a(t){return t.split("-")[0]}function Oo(t){return t.split("-")[1]}function zj(t){return t==="x"?"y":"x"}function Pb(t){return t==="y"?"height":"width"}function vf(t){return["top","bottom"].includes($a(t))?"y":"x"}function Rb(t){return zj(vf(t))}function Ej(t,r,e){e===void 0&&(e=!1);const n=Oo(t),i=Rb(t),o=Pb(i);let a=i==="x"?n===(e?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[o]>r.floating[o]&&(a=Ov(a)),[a,Ov(a)]}function N2e(t){const r=Ov(t);return[kv(t),r,kv(r)]}function kv(t){return t.replace(/start|end/g,r=>D2e[r])}function B2e(t,r,e){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?r?i:n:r?n:i;case"left":case"right":return r?o:a;default:return[]}}function F2e(t,r,e,n){const i=Oo(t);let o=B2e($a(t),e==="start",n);return i&&(o=o.map(a=>a+"-"+i),r&&(o=o.concat(o.map(kv)))),o}function Ov(t){return t.replace(/left|right|bottom|top/g,r=>R2e[r])}function j2e(t){return{top:0,right:0,bottom:0,left:0,...t}}function Sj(t){return typeof t!="number"?j2e(t):{top:t,right:t,bottom:t,left:t}}function Th(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function PE(t,r,e){let{reference:n,floating:i}=t;const o=vf(r),a=Rb(r),s=Pb(a),l=$a(r),c=o==="y",u=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let d;switch(l){case"top":d={x:u,y:n.y-i.height};break;case"bottom":d={x:u,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:g};break;case"left":d={x:n.x-i.width,y:g};break;default:d={x:n.x,y:n.y}}switch(Oo(r)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1);break}return d}const U2e=async(t,r,e)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=e,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(r));let c=await a.getElementRects({reference:t,floating:r,strategy:i}),{x:u,y:g}=PE(c,n,l),h=n,d={},f=0;for(let C=0;C({name:"arrow",options:t,async fn(r){const{x:e,y:n,placement:i,rects:o,platform:a,elements:s}=r,{element:l,padding:c=0}=Ic(t,r)||{};if(l==null)return{};const u=Sj(c),g={x:e,y:n},h=Rb(i),d=Pb(h),f=await a.getDimensions(l),C=h==="y",v=C?"top":"left",A=C?"bottom":"right",I=C?"clientHeight":"clientWidth",p=o.reference[d]+o.reference[h]-g[h]-o.floating[d],m=g[h]-o.reference[h],b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let _=b?b[I]:0;(!_||!await(a.isElement==null?void 0:a.isElement(b)))&&(_=s.floating[I]||o.floating[d]);const S=p/2-m/2,E=_/2-f[d]/2-1,T=pd(u[v],E),L=pd(u[A],E),H=T,P=_-f[d]-L,R=_/2-f[d]/2+S,N=n8(H,R,P),F=Oo(i)!=null&&R!=N&&o.reference[d]/2-(ROo(i)===t),...e.filter(i=>Oo(i)!==t)]:e.filter(i=>$a(i)===i)).filter(i=>t?Oo(i)===t||(r?kv(i)!==i:!1):!0)}const Z2e=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(r){var e,n,i;const{rects:o,middlewareData:a,placement:s,platform:l,elements:c}=r,{crossAxis:u=!1,alignment:g,allowedPlacements:h=VE,autoAlignment:d=!0,...f}=Ic(t,r),C=g!==void 0||h===VE?W2e(g||null,d,h):h,v=await oI(r,f),A=((e=a.autoPlacement)==null?void 0:e.index)||0,I=C[A];if(I==null)return{};const p=Ej(I,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(s!==I)return{reset:{placement:C[0]}};const m=[v[$a(I)],v[p[0]],v[p[1]]],b=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:I,overflows:m}],_=C[A+1];if(_)return{data:{index:A+1,overflows:b},reset:{placement:_}};const S=b.map(L=>{const H=Oo(L.placement);return[L.placement,H&&u?L.overflows.slice(0,2).reduce((P,R)=>P+R,0):L.overflows[0],L.overflows]}).sort((L,H)=>L[1]-H[1]),T=((i=S.filter(L=>L[2].slice(0,Oo(L[0])?2:3).every(H=>H<=0))[0])==null?void 0:i[0])||S[0][0];return T!==s?{data:{index:A+1,overflows:b},reset:{placement:T}}:{}}}},K2e=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var e;const{placement:n,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=r,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:f=!0,...C}=Ic(t,r),v=$a(n),A=$a(a)===a,I=await(s.isRTL==null?void 0:s.isRTL(l.floating)),p=g||(A||!f?[Ov(a)]:N2e(a));!g&&d!=="none"&&p.push(...F2e(a,f,d,I));const m=[a,...p],b=await oI(r,C),_=[];let S=((e=i.flip)==null?void 0:e.overflows)||[];if(c&&_.push(b[v]),u){const H=Ej(n,o,I);_.push(b[H[0]],b[H[1]])}if(S=[...S,{placement:n,overflows:_}],!_.every(H=>H<=0)){var E,T;const H=(((E=i.flip)==null?void 0:E.index)||0)+1,P=m[H];if(P)return{data:{index:H,overflows:S},reset:{placement:P}};let R=(T=S.filter(N=>N.overflows[0]<=0).sort((N,U)=>N.overflows[1]-U.overflows[1])[0])==null?void 0:T.placement;if(!R)switch(h){case"bestFit":{var L;const N=(L=S.map(U=>[U.placement,U.overflows.filter(F=>F>0).reduce((F,K)=>F+K,0)]).sort((U,F)=>U[1]-F[1])[0])==null?void 0:L[0];N&&(R=N);break}case"initialPlacement":R=a;break}if(n!==R)return{reset:{placement:R}}}return{}}}};async function Y2e(t,r){const{placement:e,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=$a(e),s=Oo(e),l=vf(e)==="y",c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,g=Ic(r,t);let{mainAxis:h,crossAxis:d,alignmentAxis:f}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return s&&typeof f=="number"&&(d=s==="end"?f*-1:f),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}const X2e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){const{x:e,y:n}=r,i=await Y2e(r,t);return{x:e+i.x,y:n+i.y,data:i}}}},q2e=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:e,y:n,placement:i}=r,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x:A,y:I}=v;return{x:A,y:I}}},...l}=Ic(t,r),c={x:e,y:n},u=await oI(r,l),g=vf($a(i)),h=zj(g);let d=c[h],f=c[g];if(o){const v=h==="y"?"top":"left",A=h==="y"?"bottom":"right",I=d+u[v],p=d-u[A];d=n8(I,d,p)}if(a){const v=g==="y"?"top":"left",A=g==="y"?"bottom":"right",I=f+u[v],p=f-u[A];f=n8(I,f,p)}const C=s.fn({...r,[h]:d,[g]:f});return{...C,data:{x:C.x-e,y:C.y-n}}}}},Q2e=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){const{placement:e,rects:n,platform:i,elements:o}=r,{apply:a=()=>{},...s}=Ic(t,r),l=await oI(r,s),c=$a(e),u=Oo(e),g=vf(e)==="y",{width:h,height:d}=n.floating;let f,C;c==="top"||c==="bottom"?(f=c,C=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(C=c,f=u==="end"?"top":"bottom");const v=d-l[f],A=h-l[C],I=!r.middlewareData.shift;let p=v,m=A;if(g){const _=h-l.left-l.right;m=u||I?pd(A,_):_}else{const _=d-l.top-l.bottom;p=u||I?pd(v,_):_}if(I&&!u){const _=Al(l.left,0),S=Al(l.right,0),E=Al(l.top,0),T=Al(l.bottom,0);g?m=h-2*(_!==0||S!==0?_+S:Al(l.left,l.right)):p=d-2*(E!==0||T!==0?E+T:Al(l.top,l.bottom))}await a({...r,availableWidth:m,availableHeight:p});const b=await i.getDimensions(o.floating);return h!==b.width||d!==b.height?{reset:{rects:!0}}:{}}}};function oo(t){var r;return((r=t.ownerDocument)==null?void 0:r.defaultView)||window}function da(t){return oo(t).getComputedStyle(t)}const RE=Math.min,Lh=Math.max,xv=Math.round;function Tj(t){const r=da(t);let e=parseFloat(r.width),n=parseFloat(r.height);const i=t.offsetWidth,o=t.offsetHeight,a=xv(e)!==i||xv(n)!==o;return a&&(e=i,n=o),{width:e,height:n,fallback:a}}function M1(t){return kj(t)?(t.nodeName||"").toLowerCase():""}let J0;function Lj(){if(J0)return J0;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(J0=t.brands.map(r=>r.brand+"/"+r.version).join(" "),J0):navigator.userAgent}function fa(t){return t instanceof oo(t).HTMLElement}function o1(t){return t instanceof oo(t).Element}function kj(t){return t instanceof oo(t).Node}function DE(t){return typeof ShadowRoot>"u"?!1:t instanceof oo(t).ShadowRoot||t instanceof ShadowRoot}function aI(t){const{overflow:r,overflowX:e,overflowY:n,display:i}=da(t);return/auto|scroll|overlay|hidden|clip/.test(r+n+e)&&!["inline","contents"].includes(i)}function J2e(t){return["table","td","th"].includes(M1(t))}function i8(t){const r=/firefox/i.test(Lj()),e=da(t),n=e.backdropFilter||e.WebkitBackdropFilter;return e.transform!=="none"||e.perspective!=="none"||!!n&&n!=="none"||r&&e.willChange==="filter"||r&&!!e.filter&&e.filter!=="none"||["transform","perspective"].some(i=>e.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const o=e.contain;return o!=null&&o.includes(i)})}function Oj(){return!/^((?!chrome|android).)*safari/i.test(Lj())}function Db(t){return["html","body","#document"].includes(M1(t))}function xj(t){return o1(t)?t:t.contextElement}const Hj={x:1,y:1};function G2(t){const r=xj(t);if(!fa(r))return Hj;const e=r.getBoundingClientRect(),{width:n,height:i,fallback:o}=Tj(r);let a=(o?xv(e.width):e.width)/n,s=(o?xv(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function md(t,r,e,n){var i,o;r===void 0&&(r=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),s=xj(t);let l=Hj;r&&(n?o1(n)&&(l=G2(n)):l=G2(t));const c=s?oo(s):window,u=!Oj()&&e;let g=(a.left+(u&&((i=c.visualViewport)==null?void 0:i.offsetLeft)||0))/l.x,h=(a.top+(u&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,d=a.width/l.x,f=a.height/l.y;if(s){const C=oo(s),v=n&&o1(n)?oo(n):n;let A=C.frameElement;for(;A&&n&&v!==C;){const I=G2(A),p=A.getBoundingClientRect(),m=getComputedStyle(A);p.x+=(A.clientLeft+parseFloat(m.paddingLeft))*I.x,p.y+=(A.clientTop+parseFloat(m.paddingTop))*I.y,g*=I.x,h*=I.y,d*=I.x,f*=I.y,g+=p.x,h+=p.y,A=oo(A).frameElement}}return{width:d,height:f,top:h,right:g+d,bottom:h+f,left:g,x:g,y:h}}function a1(t){return((kj(t)?t.ownerDocument:t.document)||window.document).documentElement}function sI(t){return o1(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vj(t){return md(a1(t)).left+sI(t).scrollLeft}function yd(t){if(M1(t)==="html")return t;const r=t.assignedSlot||t.parentNode||DE(t)&&t.host||a1(t);return DE(r)?r.host:r}function Pj(t){const r=yd(t);return Db(r)?r.ownerDocument.body:fa(r)&&aI(r)?r:Pj(r)}function Hv(t,r){var e;r===void 0&&(r=[]);const n=Pj(t),i=n===((e=t.ownerDocument)==null?void 0:e.body),o=oo(n);return i?r.concat(o,o.visualViewport||[],aI(n)?n:[]):r.concat(n,Hv(n))}function NE(t,r,e){return r==="viewport"?Th(function(n,i){const o=oo(n),a=a1(n),s=o.visualViewport;let l=a.clientWidth,c=a.clientHeight,u=0,g=0;if(s){l=s.width,c=s.height;const h=Oj();(h||!h&&i==="fixed")&&(u=s.offsetLeft,g=s.offsetTop)}return{width:l,height:c,x:u,y:g}}(t,e)):o1(r)?Th(function(n,i){const o=md(n,!0,i==="fixed"),a=o.top+n.clientTop,s=o.left+n.clientLeft,l=fa(n)?G2(n):{x:1,y:1};return{width:n.clientWidth*l.x,height:n.clientHeight*l.y,x:s*l.x,y:a*l.y}}(r,e)):Th(function(n){const i=a1(n),o=sI(n),a=n.ownerDocument.body,s=Lh(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),l=Lh(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight);let c=-o.scrollLeft+Vj(n);const u=-o.scrollTop;return da(a).direction==="rtl"&&(c+=Lh(i.clientWidth,a.clientWidth)-s),{width:s,height:l,x:c,y:u}}(a1(t)))}function BE(t){return fa(t)&&da(t).position!=="fixed"?t.offsetParent:null}function FE(t){const r=oo(t);let e=BE(t);for(;e&&J2e(e)&&da(e).position==="static";)e=BE(e);return e&&(M1(e)==="html"||M1(e)==="body"&&da(e).position==="static"&&!i8(e))?r:e||function(n){let i=yd(n);for(;fa(i)&&!Db(i);){if(i8(i))return i;i=yd(i)}return null}(t)||r}function eue(t,r,e){const n=fa(r),i=a1(r),o=md(t,!0,e==="fixed",r);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&e!=="fixed")if((M1(r)!=="body"||aI(i))&&(a=sI(r)),fa(r)){const l=md(r,!0);s.x=l.x+r.clientLeft,s.y=l.y+r.clientTop}else i&&(s.x=Vj(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}const tue={getClippingRect:function(t){let{element:r,boundary:e,rootBoundary:n,strategy:i}=t;const o=e==="clippingAncestors"?function(c,u){const g=u.get(c);if(g)return g;let h=Hv(c).filter(v=>o1(v)&&M1(v)!=="body"),d=null;const f=da(c).position==="fixed";let C=f?yd(c):c;for(;o1(C)&&!Db(C);){const v=da(C),A=i8(C);(f?A||d:A||v.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=v:h=h.filter(I=>I!==C),C=yd(C)}return u.set(c,h),h}(r,this._c):[].concat(e),a=[...o,n],s=a[0],l=a.reduce((c,u)=>{const g=NE(r,u,i);return c.top=Lh(g.top,c.top),c.right=RE(g.right,c.right),c.bottom=RE(g.bottom,c.bottom),c.left=Lh(g.left,c.left),c},NE(r,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:r,offsetParent:e,strategy:n}=t;const i=fa(e),o=a1(e);if(e===o)return r;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&n!=="fixed")&&((M1(e)!=="body"||aI(o))&&(a=sI(e)),fa(e))){const c=md(e);s=G2(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-a.scrollLeft*s.x+l.x,y:r.y*s.y-a.scrollTop*s.y+l.y}},isElement:o1,getDimensions:function(t){return fa(t)?Tj(t):t.getBoundingClientRect()},getOffsetParent:FE,getDocumentElement:a1,getScale:G2,async getElementRects(t){let{reference:r,floating:e,strategy:n}=t;const i=this.getOffsetParent||FE,o=this.getDimensions;return{reference:eue(r,await i(e),n),floating:{x:0,y:0,...await o(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>da(t).direction==="rtl"},rue=(t,r,e)=>{const n=new Map,i={platform:tue,...e},o={...i.platform,_c:n};return U2e(t,r,{...i,platform:o})},Ol={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function bd(t,r){let e=Ol.themes[t]||{},n;do n=e[r],typeof n>"u"?e.$extend?e=Ol.themes[e.$extend]||{}:(e=null,n=Ol[r]):e=null;while(e);return n}function nue(t){const r=[t];let e=Ol.themes[t]||{};do e.$extend&&!e.$resetCss?(r.push(e.$extend),e=Ol.themes[e.$extend]||{}):e=null;while(e);return r.map(n=>`v-popper--theme-${n}`)}function jE(t){const r=[t];let e=Ol.themes[t]||{};do e.$extend?(r.push(e.$extend),e=Ol.themes[e.$extend]||{}):e=null;while(e);return r}let fu=!1;if(typeof window<"u"){fu=!1;try{const t=Object.defineProperty({},"passive",{get(){fu=!0}});window.addEventListener("test",null,t)}catch{}}let Rj=!1;typeof window<"u"&&typeof navigator<"u"&&(Rj=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Dj=["auto","top","bottom","left","right"].reduce((t,r)=>t.concat([r,`${r}-start`,`${r}-end`]),[]),UE={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},GE={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function WE(t,r){const e=t.indexOf(r);e!==-1&&t.splice(e,1)}function mp(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const Mo=[];let gl=null;const ZE={};function KE(t){let r=ZE[t];return r||(r=ZE[t]=[]),r}let o8=function(){};typeof window<"u"&&(o8=window.Element);function wt(t){return function(r){return bd(r.theme,t)}}const yp="__floating-vue__popper",Nj=()=>ce({name:"VPopper",provide(){return{[yp]:{parentPopper:this}}},inject:{[yp]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:wt("disabled")},positioningDisabled:{type:Boolean,default:wt("positioningDisabled")},placement:{type:String,default:wt("placement"),validator:t=>Dj.includes(t)},delay:{type:[String,Number,Object],default:wt("delay")},distance:{type:[Number,String],default:wt("distance")},skidding:{type:[Number,String],default:wt("skidding")},triggers:{type:Array,default:wt("triggers")},showTriggers:{type:[Array,Function],default:wt("showTriggers")},hideTriggers:{type:[Array,Function],default:wt("hideTriggers")},popperTriggers:{type:Array,default:wt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:wt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:wt("popperHideTriggers")},container:{type:[String,Object,o8,Boolean],default:wt("container")},boundary:{type:[String,o8],default:wt("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:wt("strategy")},autoHide:{type:[Boolean,Function],default:wt("autoHide")},handleResize:{type:Boolean,default:wt("handleResize")},instantMove:{type:Boolean,default:wt("instantMove")},eagerMount:{type:Boolean,default:wt("eagerMount")},popperClass:{type:[String,Array,Object],default:wt("popperClass")},computeTransformOrigin:{type:Boolean,default:wt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:wt("autoMinSize")},autoSize:{type:[Boolean,String],default:wt("autoSize")},autoMaxSize:{type:Boolean,default:wt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:wt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:wt("preventOverflow")},overflowPadding:{type:[Number,String],default:wt("overflowPadding")},arrowPadding:{type:[Number,String],default:wt("arrowPadding")},arrowOverflow:{type:Boolean,default:wt("arrowOverflow")},flip:{type:Boolean,default:wt("flip")},shift:{type:Boolean,default:wt("shift")},shiftCrossAxis:{type:Boolean,default:wt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:wt("noAutoFocus")},disposeTimeout:{type:Number,default:wt("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[yp])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,r;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((r=this.popperShowTriggers)==null?void 0:r.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,r)=>(t[r]="$_computePosition",t),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:r=!1,force:e=!1}={}){var n,i;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(e||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,r),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:r=!1}={}){var e;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:r}),this.parentPopper.lockedChild=null)},1e3));return}((e=this.parentPopper)==null?void 0:e.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(t,r),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(r=>r.nodeType===r.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(X2e({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");if(r?t.middleware.push(Z2e({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(q2e({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&t.middleware.push(K2e({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(G2e({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:i,middlewareData:o})=>{let a;const{centerOffset:s}=o.arrow;return n.startsWith("top")||n.startsWith("bottom")?a=Math.abs(s)>i.reference.width/2:a=Math.abs(s)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:o,middlewareData:a})=>{var s;if((s=a.autoSize)!=null&&s.skip)return{};let l,c;return o.startsWith("top")||o.startsWith("bottom")?l=i.reference.width:c=i.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(Q2e({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:n,availableHeight:i})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const e=await rue(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:e.x,y:e.y,placement:e.placement,strategy:e.strategy,arrow:{...e.middlewareData.arrow,...e.middlewareData.arrowOverflow}})},$_scheduleShow(t,r=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),gl&&this.instantMove&&gl.instantMove&&gl!==this.parentPopper){gl.$_applyHide(!0),this.$_applyShow(!0);return}r?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t,r=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(gl=this),r?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const r=this.delay;return parseInt(r&&r[t]||r||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await mp(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Hv(this.$_referenceNode),...Hv(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const r=this.$_referenceNode.getBoundingClientRect(),e=this.$_popperNode.querySelector(".v-popper__wrapper"),n=e.parentNode.getBoundingClientRect(),i=r.x+r.width/2-(n.left+e.offsetLeft),o=r.y+r.height/2-(n.top+e.offsetTop);this.result.transformOrigin=`${i}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let r;for(let e=0;e0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,WE(Mo,this),Mo.length===0&&document.body.classList.remove("v-popper--some-open");for(const e of jE(this.theme)){const n=KE(e);WE(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}gl===this&&(gl=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const r=this.disposeTimeout;r!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},r)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await mp(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,UE,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],UE,this.popperTriggers,this.popperShowTriggers,t);const r=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,GE,this.triggers,this.hideTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],GE,this.popperTriggers,this.popperHideTriggers,r)},$_registerEventListeners(t,r,e){this.$_events.push({targetNodes:t,eventType:r,handler:e}),t.forEach(n=>n.addEventListener(r,e,fu?{passive:!0}:void 0))},$_registerTriggerListeners(t,r,e,n,i){let o=e;n!=null&&(o=typeof n=="function"?n(o):n),o.forEach(a=>{const s=r[a];s&&this.$_registerEventListeners(t,s,i)})},$_removeEventListeners(t){const r=[];this.$_events.forEach(e=>{const{targetNodes:n,eventType:i,handler:o}=e;!t||t===i?n.forEach(a=>a.removeEventListener(i,o)):r.push(e)}),this.$_events=r},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,r=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),r&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,r){for(const e of this.$_targetNodes){const n=e.getAttribute(t);n&&(e.removeAttribute(t),e.setAttribute(r,n))}},$_applyAttrsToTarget(t){for(const r of this.$_targetNodes)for(const e in t){const n=t[e];n==null?r.removeAttribute(e):r.setAttribute(e,n)}},$_updateParentShownChildren(t){let r=this.parentPopper;for(;r;)t?r.shownChildren.add(this.randomId):(r.shownChildren.delete(this.randomId),r.pendingHide&&r.hide()),r=r.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(kh>=t.left&&kh<=t.right&&Oh>=t.top&&Oh<=t.bottom){const r=this.$_popperNode.getBoundingClientRect(),e=kh-Hs,n=Oh-Vs,i=r.left+r.width/2-Hs+(r.top+r.height/2)-Vs+r.width+r.height,o=Hs+e*i,a=Vs+n*i;return eC(Hs,Vs,o,a,r.left,r.top,r.left,r.bottom)||eC(Hs,Vs,o,a,r.left,r.top,r.right,r.top)||eC(Hs,Vs,o,a,r.right,r.top,r.right,r.bottom)||eC(Hs,Vs,o,a,r.left,r.bottom,r.right,r.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Rj){const t=fu?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",r=>YE(r),t),document.addEventListener("touchend",r=>XE(r,!0),t)}else window.addEventListener("mousedown",t=>YE(t),!0),window.addEventListener("click",t=>XE(t,!1),!0);window.addEventListener("resize",aue)}function YE(t,r){for(let e=0;e=0;n--){const i=Mo[n];try{const o=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(t.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!e[i.randomId]&&qE(i,o,t)){if(i.$_handleGlobalClose(t,r),!t.closeAllPopover&&t.closePopover&&o){let s=i.parentPopper;for(;s;)e[s.randomId]=!0,s=s.parentPopper;return}let a=i.parentPopper;for(;a&&qE(a,a.containsGlobalTarget,t);)a.$_handleGlobalClose(t,r),a=a.parentPopper}})}catch{}}}function qE(t,r,e){return e.closeAllPopover||e.closePopover&&r||oue(t,e)&&!r}function oue(t,r){if(typeof t.autoHide=="function"){const e=t.autoHide(r);return t.lastAutoHide=e,e}return t.autoHide}function aue(){for(let t=0;t{Hs=kh,Vs=Oh,kh=t.clientX,Oh=t.clientY},fu?{passive:!0}:void 0);function eC(t,r,e,n,i,o,a,s){const l=((a-i)*(r-o)-(s-o)*(t-i))/((s-o)*(e-t)-(a-i)*(n-r)),c=((e-t)*(r-o)-(n-r)*(t-i))/((s-o)*(e-t)-(a-i)*(n-r));return l>=0&&l<=1&&c>=0&&c<=1}const sue={extends:Nj()},lI=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e};function lue(t,r,e,n,i,o){return M(),k("div",{ref:"reference",class:Le(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[et(t.$slots,"default",eb(QA(t.slotData)))],2)}const cue=lI(sue,[["render",lue]]);function uue(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let L5;function a8(){a8.init||(a8.init=!0,L5=uue()!==-1)}var cI={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){a8(),dn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",L5&&this.$el.appendChild(t),t.data="about:blank",L5||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!L5&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const gue=$B();bB("data-v-b329ee4c");const hue={class:"resize-observer",tabindex:"-1"};wB();const due=gue((t,r,e,n,i,o)=>(M(),oe("div",hue)));cI.render=due;cI.__scopeId="data-v-b329ee4c";cI.__file="src/components/ResizeObserver.vue";const Bj=(t="theme")=>({computed:{themeClass(){return nue(this[t])}}}),fue=ce({name:"VPopperContent",components:{ResizeObserver:cI},mixins:[Bj()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),Cue=["id","aria-hidden","tabindex","data-popper-placement"],vue={ref:"inner",class:"v-popper__inner"},Aue=w("div",{class:"v-popper__arrow-outer"},null,-1),Iue=w("div",{class:"v-popper__arrow-inner"},null,-1),pue=[Aue,Iue];function mue(t,r,e,n,i,o){const a=Ro("ResizeObserver");return M(),k("div",{id:t.popperId,ref:"popover",class:Le(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:kr(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:r[2]||(r[2]=dF(s=>t.autoHide&&t.$emit("hide"),["esc"]))},[w("div",{class:"v-popper__backdrop",onClick:r[0]||(r[0]=s=>t.autoHide&&t.$emit("hide"))}),w("div",{class:"v-popper__wrapper",style:kr(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[w("div",vue,[t.mounted?(M(),k(Te,{key:0},[w("div",null,[et(t.$slots,"default")]),t.handleResize?(M(),oe(a,{key:0,onNotify:r[1]||(r[1]=s=>t.$emit("resize",s))})):ie("",!0)],64)):ie("",!0)],512),w("div",{ref:"arrow",class:"v-popper__arrow-container",style:kr(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},pue,4)],4)],46,Cue)}const Fj=lI(fue,[["render",mue]]),jj={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};let s8=function(){};typeof window<"u"&&(s8=window.Element);const yue=ce({name:"VPopperWrapper",components:{Popper:cue,PopperContent:Fj},mixins:[jj,Bj("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,s8,Boolean],default:void 0},boundary:{type:[String,s8],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function bue(t,r,e,n,i,o){const a=Ro("PopperContent"),s=Ro("Popper");return M(),oe(s,Xr({ref:"popper"},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:r[0]||(r[0]=()=>t.$emit("show")),onHide:r[1]||(r[1]=()=>t.$emit("hide")),"onUpdate:shown":r[2]||(r[2]=l=>t.$emit("update:shown",l)),onApplyShow:r[3]||(r[3]=()=>t.$emit("apply-show")),onApplyHide:r[4]||(r[4]=()=>t.$emit("apply-hide")),onCloseGroup:r[5]||(r[5]=()=>t.$emit("close-group")),onCloseDirective:r[6]||(r[6]=()=>t.$emit("close-directive")),onAutoHide:r[7]||(r[7]=()=>t.$emit("auto-hide")),onResize:r[8]||(r[8]=()=>t.$emit("resize"))}),{default:Y(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:g,autoHide:h,show:d,hide:f,handleResize:C,onResize:v,classes:A,result:I})=>[et(t.$slots,"default",{shown:c,show:d,hide:f}),D(a,{ref:"popperContent","popper-id":l,theme:t.finalTheme,shown:c,mounted:u,"skip-transition":g,"auto-hide":h,"handle-resize":C,classes:A,result:I,onHide:f,onResize:v},{default:Y(()=>[et(t.$slots,"popper",{shown:c,hide:f})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Nb=lI(yue,[["render",bue]]),wue={...Nb,name:"VDropdown",vPopperTheme:"dropdown"};({...Nb});const $ue={...Nb,name:"VTooltip",vPopperTheme:"tooltip"},_ue=ce({name:"VTooltipDirective",components:{Popper:Nj(),PopperContent:Fj},mixins:[jj],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>bd(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>bd(t.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const r=++this.$_fetchId,e=this.content(this);e.then?e.then(n=>this.onResult(r,n)):this.onResult(r,e)}},onResult(t,r){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=r)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Mue=["innerHTML"],zue=["textContent"];function Eue(t,r,e,n,i,o){const a=Ro("PopperContent"),s=Ro("Popper");return M(),oe(s,Xr({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Y(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:g,autoHide:h,hide:d,handleResize:f,onResize:C,classes:v,result:A})=>[D(a,{ref:"popperContent",class:Le({"v-popper--tooltip-loading":t.loading}),"popper-id":l,theme:t.theme,shown:c,mounted:u,"skip-transition":g,"auto-hide":h,"handle-resize":f,classes:v,result:A,onHide:d,onResize:C},{default:Y(()=>[t.html?(M(),k("div",{key:0,innerHTML:t.finalContent},null,8,Mue)):(M(),k("div",{key:1,textContent:Se(t.finalContent)},null,8,zue))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Sue=lI(_ue,[["render",Eue]]),Uj="v-popper--has-tooltip";function Tue(t,r){let e=t.placement;if(!e&&r)for(const n of Dj)r[n]&&(e=n);return e||(e=bd(t.theme||"tooltip","placement")),e}function Gj(t,r,e){let n;const i=typeof r;return i==="string"?n={content:r}:r&&i==="object"?n=r:n={content:!1},n.placement=Tue(n,e),n.targetNodes=()=>[t],n.referenceNode=()=>t,n}let bp,wd,Lue=0;function kue(){if(bp)return;wd=G([]),bp=CF({name:"VTooltipDirectiveApp",setup(){return{directives:wd}},render(){return this.directives.map(r=>vc(Sue,{...r.options,shown:r.shown||r.options.shown,key:r.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),bp.mount(t)}function Oue(t,r,e){kue();const n=G(Gj(t,r,e)),i=G(!1),o={id:Lue++,options:n,shown:i};return wd.value.push(o),t.classList&&t.classList.add(Uj),t.$_popper={options:n,item:o,show(){i.value=!0},hide(){i.value=!1}}}function Wj(t){if(t.$_popper){const r=wd.value.indexOf(t.$_popper.item);r!==-1&&wd.value.splice(r,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(Uj)}function QE(t,{value:r,modifiers:e}){const n=Gj(t,r,e);if(!n.content||bd(n.theme||"tooltip","disabled"))Wj(t);else{let i;t.$_popper?(i=t.$_popper,i.options.value=n):i=Oue(t,r,e),typeof r.shown<"u"&&r.shown!==t.$_popperOldShown&&(t.$_popperOldShown=r.shown,r.shown?i.show():i.hide())}}const xue={beforeMount:QE,updated:QE,beforeUnmount(t){Wj(t)}};function JE(t){t.addEventListener("mousedown",Vv),t.addEventListener("click",Vv),t.addEventListener("touchstart",Zj,fu?{passive:!0}:!1)}function eS(t){t.removeEventListener("mousedown",Vv),t.removeEventListener("click",Vv),t.removeEventListener("touchstart",Zj),t.removeEventListener("touchend",Kj),t.removeEventListener("touchcancel",Yj)}function Vv(t){const r=t.currentTarget;t.closePopover=!r.$_vclosepopover_touch,t.closeAllPopover=r.$_closePopoverModifiers&&!!r.$_closePopoverModifiers.all}function Zj(t){if(t.changedTouches.length===1){const r=t.currentTarget;r.$_vclosepopover_touch=!0;const e=t.changedTouches[0];r.$_vclosepopover_touchPoint=e,r.addEventListener("touchend",Kj),r.addEventListener("touchcancel",Yj)}}function Kj(t){const r=t.currentTarget;if(r.$_vclosepopover_touch=!1,t.changedTouches.length===1){const e=t.changedTouches[0],n=r.$_vclosepopover_touchPoint;t.closePopover=Math.abs(e.screenY-n.screenY)<20&&Math.abs(e.screenX-n.screenX)<20,t.closeAllPopover=r.$_closePopoverModifiers&&!!r.$_closePopoverModifiers.all}}function Yj(t){const r=t.currentTarget;r.$_vclosepopover_touch=!1}const Xj={beforeMount(t,{value:r,modifiers:e}){t.$_closePopoverModifiers=e,(typeof r>"u"||r)&&JE(t)},updated(t,{value:r,oldValue:e,modifiers:n}){t.$_closePopoverModifiers=n,r!==e&&(typeof r>"u"||r?JE(t):eS(t))},beforeUnmount(t){eS(t)}},Rt=xue,Hue=Xj,Vue=Xj,Pue=wue,Rue=$ue;function No(t){return rb()?(JN(t),!0):!1}function Due(t,r,{enumerable:e=!1,unwrap:n=!0}={}){for(const[i,o]of Object.entries(r))i!=="value"&&(Je(o)&&n?Object.defineProperty(t,i,{get(){return o.value},set(a){o.value=a},enumerable:e}):Object.defineProperty(t,i,{value:o,enumerable:e}));return t}function wr(t){return typeof t=="function"?t():y(t)}function Nue(t){if(!Je(t))return ba(t);const r=new Proxy({},{get(e,n,i){return y(Reflect.get(t.value,n,i))},set(e,n,i){return Je(t.value[n])&&!Je(i)?t.value[n].value=i:t.value[n]=i,!0},deleteProperty(e,n){return Reflect.deleteProperty(t.value,n)},has(e,n){return Reflect.has(t.value,n)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ba(r)}const Jl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Bue=t=>typeof t<"u",qj=t=>t!=null,Fue=Object.prototype.toString,jue=t=>Fue.call(t)==="[object Object]",xo=()=>{},l8=Uue();function Uue(){var t,r;return Jl&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((r=window?.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Qj(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const Jj=t=>t();function eU(t,r={}){let e,n,i=xo;const o=s=>{clearTimeout(s),i(),i=xo};return s=>{const l=wr(t),c=wr(r.maxWait);return e&&o(e),l<=0||c!==void 0&&c<=0?(n&&(o(n),n=null),Promise.resolve(s())):new Promise((u,g)=>{i=r.rejectOnCancel?g:u,c&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,u(s())},c)),e=setTimeout(()=>{n&&o(n),n=null,u(s())},l)})}}function Gue(t=Jj){const r=G(!0);function e(){r.value=!1}function n(){r.value=!0}const i=(...o)=>{r.value&&t(...o)};return{isActive:V1(r),pause:e,resume:n,eventFilter:i}}function Wue(t){let r;function e(){return r||(r=t()),r}return e.reset=async()=>{const n=r;r=void 0,n&&await n},e}function Zue(t){return As()}function tU(...t){if(t.length!==1)return ioe(...t);const r=t[0];return typeof r=="function"?V1(ub(()=>({get:r,set:xo}))):G(r)}function Kue(t,r=200,e={}){return Qj(eU(r,e),t)}function Yue(t,r=200,e={}){const n=G(t.value),i=Kue(()=>{n.value=t.value},r,e);return Ke(t,()=>i()),n}function Xue(t,r={}){let e=t,n,i;const o=ub((h,d)=>(n=h,i=d,{get(){return a()},set(f){s(f)}}));function a(h=!0){return h&&n(),e}function s(h,d=!0){var f,C;if(h===e)return;const v=e;((f=r.onBeforeChange)==null?void 0:f.call(r,h,v))!==!1&&(e=h,(C=r.onChanged)==null||C.call(r,h,v),d&&i())}return Due(o,{get:a,set:s,untrackedGet:()=>a(!1),silentSet:h=>s(h,!1),peek:()=>a(!1),lay:h=>s(h,!1)},{enumerable:!0})}function rU(t,r,e={}){const{eventFilter:n=Jj,...i}=e;return Ke(t,Qj(n,r),i)}function que(t,r,e={}){const{eventFilter:n,...i}=e,{eventFilter:o,pause:a,resume:s,isActive:l}=Gue(n);return{stop:rU(t,r,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function Yu(t,r=!0,e){Zue()?Ii(t,e):r?t():dn(t)}function Que(t,r=1e3,e={}){const{immediate:n=!0,immediateCallback:i=!1}=e;let o=null;const a=G(!1);function s(){o&&(clearInterval(o),o=null)}function l(){a.value=!1,s()}function c(){const u=wr(r);u<=0||(a.value=!0,i&&t(),s(),o=setInterval(t,u))}if(n&&Jl&&c(),Je(r)||typeof r=="function"){const u=Ke(r,()=>{a.value&&Jl&&c()});No(u)}return No(l),{isActive:a,pause:l,resume:c}}function Jue(t,r,e={}){const{immediate:n=!0}=e,i=G(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...c){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...c)},wr(r))}return n&&(i.value=!0,Jl&&l()),No(s),{isPending:V1(i),start:l,stop:s}}function Bb(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=Je(t),o=G(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=wr(e);return o.value=o.value===l?wr(n):l,o.value}}return i?a:[o,a]}function nU(t,r,e={}){const{debounce:n=0,maxWait:i=void 0,...o}=e;return rU(t,r,{...o,eventFilter:eU(n,{maxWait:i})})}function ege(t,r,e){const n=Ke(t,(...i)=>(dn(()=>n()),r(...i)),e);return n}function wp(t,r,e){let n;Je(e)?n={evaluating:e}:n={};const{lazy:i=!1,evaluating:o=void 0,shallow:a=!0,onError:s=xo}=n,l=G(!i),c=a?Bi(r):G(r);let u=0;return gn(async g=>{if(!l.value)return;u++;const h=u;let d=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const f=await t(C=>{g(()=>{o&&(o.value=!1),d||C()})});h===u&&(c.value=f)}catch(f){s(f)}finally{o&&h===u&&(o.value=!1),d=!0}}),i?j(()=>(l.value=!0,c.value)):c}const fi=Jl?window:void 0,tge=Jl?window.document:void 0,iU=Jl?window.navigator:void 0;function un(t){var r;const e=wr(t);return(r=e?.$el)!=null?r:e}function hi(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=fi):[r,e,n,i]=t,!r)return xo;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,g,h,d)=>(u.addEventListener(g,h,d),()=>u.removeEventListener(g,h,d)),l=Ke(()=>[un(r),wr(i)],([u,g])=>{if(a(),!u)return;const h=jue(g)?{...g}:g;o.push(...e.flatMap(d=>n.map(f=>s(u,d,f,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return No(c),c}let tS=!1;function rge(t,r,e={}){const{window:n=fi,ignore:i=[],capture:o=!0,detectIframe:a=!1}=e;if(!n)return xo;l8&&!tS&&(tS=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",xo)),n.document.documentElement.addEventListener("click",xo));let s=!0;const l=d=>wr(i).some(f=>{if(typeof f=="string")return Array.from(n.document.querySelectorAll(f)).some(C=>C===d.target||d.composedPath().includes(C));{const C=un(f);return C&&(d.target===C||d.composedPath().includes(C))}}),c=d=>{const f=un(t);if(!(!f||f===d.target||d.composedPath().includes(f))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}r(d)}};let u=!1;const g=[hi(n,"click",d=>{u||(u=!0,setTimeout(()=>{u=!1},0),c(d))},{passive:!0,capture:o}),hi(n,"pointerdown",d=>{const f=un(t);s=!l(d)&&!!(f&&!d.composedPath().includes(f))},{passive:!0}),a&&hi(n,"blur",d=>{setTimeout(()=>{var f;const C=un(t);((f=n.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!C?.contains(n.document.activeElement)&&r(d)},0)})].filter(Boolean);return()=>g.forEach(d=>d())}function nge(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function oU(...t){let r,e,n={};t.length===3?(r=t[0],e=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,e=t[0],n=t[1]):(r=t[0],e=t[1]):(r=!0,e=t[0]);const{target:i=fi,eventName:o="keydown",passive:a=!1,dedupe:s=!1}=n,l=nge(r);return hi(i,o,u=>{u.repeat&&wr(s)||l(u)&&e(u)},a)}function ige(){const t=G(!1),r=As();return r&&Ii(()=>{t.value=!0},r),t}function pc(t){const r=ige();return j(()=>(r.value,!!t()))}function oge(t,r,e={}){const{window:n=fi,...i}=e;let o;const a=pc(()=>n&&"MutationObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=j(()=>{const h=wr(t),d=(Array.isArray(h)?h:[h]).map(un).filter(qj);return new Set(d)}),c=Ke(()=>l.value,h=>{s(),a.value&&h.size&&(o=new MutationObserver(r),h.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),u=()=>o?.takeRecords(),g=()=>{c(),s()};return No(g),{isSupported:a,stop:g,takeRecords:u}}function age(t,r={}){const{immediate:e=!0,fpsLimit:n=void 0,window:i=fi}=r,o=G(!1),a=n?1e3/n:null;let s=0,l=null;function c(h){if(!o.value||!i)return;s||(s=h);const d=h-s;if(a&&de&&"matchMedia"in e&&typeof e.matchMedia=="function");let i;const o=G(!1),a=c=>{o.value=c.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=gn(()=>{n.value&&(s(),i=e.matchMedia(wr(t)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return No(()=>{l(),s(),i=void 0}),o}function rS(t,r={}){const{controls:e=!1,navigator:n=iU}=r,i=pc(()=>n&&"permissions"in n),o=Bi(),a=typeof t=="string"?{name:t}:t,s=Bi(),l=()=>{var u,g;s.value=(g=(u=o.value)==null?void 0:u.state)!=null?g:"prompt"};hi(o,"change",l);const c=Wue(async()=>{if(i.value){if(!o.value)try{o.value=await n.permissions.query(a)}catch{o.value=void 0}finally{l()}if(e)return mt(o.value)}});return c(),e?{state:s,isSupported:i,query:c}:s}function sU(t={}){const{navigator:r=iU,read:e=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=t,a=pc(()=>r&&"clipboard"in r),s=rS("clipboard-read"),l=rS("clipboard-write"),c=j(()=>a.value||o),u=G(""),g=G(!1),h=Jue(()=>g.value=!1,i);function d(){a.value&&A(s.value)?r.clipboard.readText().then(I=>{u.value=I}):u.value=v()}c.value&&e&&hi(["copy","cut"],d);async function f(I=wr(n)){c.value&&I!=null&&(a.value&&A(l.value)?await r.clipboard.writeText(I):C(I),u.value=I,g.value=!0,h.start())}function C(I){const p=document.createElement("textarea");p.value=I??"",p.style.position="absolute",p.style.opacity="0",document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function v(){var I,p,m;return(m=(p=(I=document?.getSelection)==null?void 0:I.call(document))==null?void 0:p.toString())!=null?m:""}function A(I){return I==="granted"||I==="prompt"}return{isSupported:c,text:u,copied:g,copy:f}}function sge(t){return JSON.parse(JSON.stringify(t))}const tC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rC="__vueuse_ssr_handlers__",lge=cge();function cge(){return rC in tC||(tC[rC]=tC[rC]||{}),tC[rC]}function lU(t,r){return lge[t]||r}function uge(t){return aU("(prefers-color-scheme: dark)",t)}function gge(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const hge={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},nS="vueuse-storage";function cU(t,r,e,n={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:g=fi,eventFilter:h,onError:d=L=>{console.error(L)},initOnMounted:f}=n,C=(u?Bi:G)(typeof r=="function"?r():r);if(!e)try{e=lU("getDefaultStorage",()=>{var L;return(L=fi)==null?void 0:L.localStorage})()}catch(L){d(L)}if(!e)return C;const v=wr(r),A=gge(v),I=(i=n.serializer)!=null?i:hge[A],{pause:p,resume:m}=que(C,()=>_(C.value),{flush:o,deep:a,eventFilter:h});g&&s&&Yu(()=>{e instanceof Storage?hi(g,"storage",E):hi(g,nS,T),f&&E()}),f||E();function b(L,H){if(g){const P={key:t,oldValue:L,newValue:H,storageArea:e};g.dispatchEvent(e instanceof Storage?new StorageEvent("storage",P):new CustomEvent(nS,{detail:P}))}}function _(L){try{const H=e.getItem(t);if(L==null)b(H,null),e.removeItem(t);else{const P=I.write(L);H!==P&&(e.setItem(t,P),b(H,P))}}catch(H){d(H)}}function S(L){const H=L?L.newValue:e.getItem(t);if(H==null)return l&&v!=null&&e.setItem(t,I.write(v)),v;if(!L&&c){const P=I.read(H);return typeof c=="function"?c(P,v):A==="object"&&!Array.isArray(P)?{...v,...P}:P}else return typeof H!="string"?H:I.read(H)}function E(L){if(!(L&&L.storageArea!==e)){if(L&&L.key==null){C.value=v;return}if(!(L&&L.key!==t)){p();try{L?.newValue!==I.write(C.value)&&(C.value=S(L))}catch(H){d(H)}finally{L?dn(m):m()}}}}function T(L){E(L.detail)}return C}const dge="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fge(t={}){const{selector:r="html",attribute:e="class",initialValue:n="auto",window:i=fi,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=t,g={auto:"",light:"light",dark:"dark",...t.modes||{}},h=uge({window:i}),d=j(()=>h.value?"dark":"light"),f=l||(a==null?tU(n):cU(a,n,o,{window:i,listenToStorageChanges:s})),C=j(()=>f.value==="auto"?d.value:f.value),v=lU("updateHTMLAttrs",(m,b,_)=>{const S=typeof m=="string"?i?.document.querySelector(m):un(m);if(!S)return;const E=new Set,T=new Set;let L=null;if(b==="class"){const P=_.split(/\s/g);Object.values(g).flatMap(R=>(R||"").split(/\s/g)).filter(Boolean).forEach(R=>{P.includes(R)?E.add(R):T.add(R)})}else L={key:b,value:_};if(E.size===0&&T.size===0&&L===null)return;let H;u&&(H=i.document.createElement("style"),H.appendChild(document.createTextNode(dge)),i.document.head.appendChild(H));for(const P of E)S.classList.add(P);for(const P of T)S.classList.remove(P);L&&S.setAttribute(L.key,L.value),u&&(i.getComputedStyle(H).opacity,document.head.removeChild(H))});function A(m){var b;v(r,e,(b=g[m])!=null?b:m)}function I(m){t.onChanged?t.onChanged(m,A):A(m)}Ke(C,I,{flush:"post",immediate:!0}),Yu(()=>I(C.value));const p=j({get(){return c?f.value:C.value},set(m){f.value=m}});try{return Object.assign(p,{store:f,system:d,state:C})}catch{return p}}function Fb(t,r,e={}){const{window:n=fi,...i}=e;let o;const a=pc(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=j(()=>{const g=wr(t);return Array.isArray(g)?g.map(h=>un(h)):[un(g)]}),c=Ke(l,g=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const h of g)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return No(u),{isSupported:a,stop:u}}function Cge(t,r={}){const{reset:e=!0,windowResize:n=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:a="sync"}=r,s=G(0),l=G(0),c=G(0),u=G(0),g=G(0),h=G(0),d=G(0),f=G(0);function C(){const A=un(t);if(!A){e&&(s.value=0,l.value=0,c.value=0,u.value=0,g.value=0,h.value=0,d.value=0,f.value=0);return}const I=A.getBoundingClientRect();s.value=I.height,l.value=I.bottom,c.value=I.left,u.value=I.right,g.value=I.top,h.value=I.width,d.value=I.x,f.value=I.y}function v(){a==="sync"?C():a==="next-frame"&&requestAnimationFrame(()=>C())}return Fb(t,v),Ke(()=>un(t),A=>!A&&v()),oge(t,v,{attributeFilter:["style","class"]}),i&&hi("scroll",v,{capture:!0,passive:!0}),n&&hi("resize",v,{passive:!0}),Yu(()=>{o&&v()}),{height:s,bottom:l,left:c,right:u,top:g,width:h,x:d,y:f,update:v}}function uU(t,r={width:0,height:0},e={}){const{window:n=fi,box:i="content-box"}=e,o=j(()=>{var g,h;return(h=(g=un(t))==null?void 0:g.namespaceURI)==null?void 0:h.includes("svg")}),a=G(r.width),s=G(r.height),{stop:l}=Fb(t,([g])=>{const h=i==="border-box"?g.borderBoxSize:i==="content-box"?g.contentBoxSize:g.devicePixelContentBoxSize;if(n&&o.value){const d=un(t);if(d){const f=d.getBoundingClientRect();a.value=f.width,s.value=f.height}}else if(h){const d=Array.isArray(h)?h:[h];a.value=d.reduce((f,{inlineSize:C})=>f+C,0),s.value=d.reduce((f,{blockSize:C})=>f+C,0)}else a.value=g.contentRect.width,s.value=g.contentRect.height},e);Yu(()=>{const g=un(t);g&&(a.value="offsetWidth"in g?g.offsetWidth:r.width,s.value="offsetHeight"in g?g.offsetHeight:r.height)});const c=Ke(()=>un(t),g=>{a.value=g?r.width:0,s.value=g?r.height:0});function u(){l(),c()}return{width:a,height:s,stop:u}}function vge(t,r,e={}){const{root:n,rootMargin:i="0px",threshold:o=0,window:a=fi,immediate:s=!0}=e,l=pc(()=>a&&"IntersectionObserver"in a),c=j(()=>{const f=wr(t);return(Array.isArray(f)?f:[f]).map(un).filter(qj)});let u=xo;const g=G(s),h=l.value?Ke(()=>[c.value,un(n),g.value],([f,C])=>{if(u(),!g.value||!f.length)return;const v=new IntersectionObserver(r,{root:un(C),rootMargin:i,threshold:o});f.forEach(A=>A&&v.observe(A)),u=()=>{v.disconnect(),u=xo}},{immediate:s,flush:"post"}):xo,d=()=>{u(),h(),g.value=!1};return No(d),{isSupported:l,isActive:g,pause(){u(),g.value=!1},resume(){g.value=!0},stop:d}}function Age(t={}){const{initialValue:r=""}=t,e=pc(()=>typeof window<"u"&&"EyeDropper"in window),n=G(r);async function i(o){if(!e.value)return;const s=await new window.EyeDropper().open(o);return n.value=s.sRGBHex,s}return{isSupported:e,sRGBHex:n,open:i}}function $p(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function Ige(t,r,e={}){const{window:n=fi}=e;return cU(t,r,n?.localStorage,e)}function pge(t={}){const{controls:r=!1,interval:e="requestAnimationFrame"}=t,n=G(new Date),i=()=>n.value=new Date,o=e==="requestAnimationFrame"?age(i,{immediate:!0}):Que(i,e,{immediate:!0});return r?{now:n,...o}:n}function gU(t){const r=window.getComputedStyle(t);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&t.clientWidth1?!0:(r.preventDefault&&r.preventDefault(),!1)}const _p=new WeakMap;function yge(t,r=!1){const e=G(r);let n=null,i="";Ke(tU(t),s=>{const l=$p(wr(s));if(l){const c=l;if(_p.get(c)||_p.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(i=c.style.overflow),c.style.overflow==="hidden")return e.value=!0;if(e.value)return c.style.overflow="hidden"}},{immediate:!0});const o=()=>{const s=$p(wr(t));!s||e.value||(l8&&(n=hi(s,"touchmove",l=>{mge(l)},{passive:!1})),s.style.overflow="hidden",e.value=!0)},a=()=>{const s=$p(wr(t));!s||!e.value||(l8&&n?.(),s.style.overflow=i,_p.delete(s),e.value=!1)};return No(a),j({get(){return e.value},set(s){s?o():a()}})}let bge=0;function wge(t,r={}){const e=G(!1),{document:n=tge,immediate:i=!0,manual:o=!1,id:a=`vueuse_styletag_${++bge}`}=r,s=G(t);let l=()=>{};const c=()=>{if(!n)return;const g=n.getElementById(a)||n.createElement("style");g.isConnected||(g.id=a,r.media&&(g.media=r.media),n.head.appendChild(g)),!e.value&&(l=Ke(s,h=>{g.textContent=h},{immediate:!0}),e.value=!0)},u=()=>{!n||!e.value||(l(),n.head.removeChild(n.getElementById(a)),e.value=!1)};return i&&!o&&Yu(c),o||No(u),{id:a,css:s,unload:u,load:c,isLoaded:V1(e)}}const $ge=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],_ge={justNow:"just now",past:t=>t.match(/\d/)?`${t} ago`:t,future:t=>t.match(/\d/)?`in ${t}`:t,month:(t,r)=>t===1?r?"last month":"next month":`${t} month${t>1?"s":""}`,year:(t,r)=>t===1?r?"last year":"next year":`${t} year${t>1?"s":""}`,day:(t,r)=>t===1?r?"yesterday":"tomorrow":`${t} day${t>1?"s":""}`,week:(t,r)=>t===1?r?"last week":"next week":`${t} week${t>1?"s":""}`,hour:t=>`${t} hour${t>1?"s":""}`,minute:t=>`${t} minute${t>1?"s":""}`,second:t=>`${t} second${t>1?"s":""}`,invalid:""};function Mge(t){return t.toISOString().slice(0,10)}function zge(t,r={}){const{controls:e=!1,updateInterval:n=3e4}=r,{now:i,...o}=pge({interval:n,controls:!0}),a=j(()=>Ege(new Date(wr(t)),r,wr(i)));return e?{timeAgo:a,...o}:a}function Ege(t,r={},e=Date.now()){var n;const{max:i,messages:o=_ge,fullDateFormatter:a=Mge,units:s=$ge,showSecond:l=!1,rounding:c="round"}=r,u=typeof c=="number"?v=>+v.toFixed(c):Math[c],g=+e-+t,h=Math.abs(g);function d(v,A){return u(Math.abs(v)/A.value)}function f(v,A){const I=d(v,A),p=v>0,m=C(A.name,I,p);return C(p?"past":"future",m,p)}function C(v,A,I){const p=o[v];return typeof p=="function"?p(A,I):p.replace("{0}",A.toString())}if(h<6e4&&!l)return o.justNow;if(typeof i=="number"&&h>i)return a(new Date(t));if(typeof i=="string"){const v=(n=s.find(A=>A.name===i))==null?void 0:n.max;if(v&&h>v)return a(new Date(t))}for(const[v,A]of s.entries()){if(d(g,A)<=0&&s[v-1])return f(g,s[v-1]);if(hs?typeof s=="function"?s(p):sge(p):p,A=()=>Bue(t[r])?v(t[r]):g,I=p=>{h?h(p)&&f(C,p):f(C,p)};if(l){const p=A(),m=G(p);let b=!1;return Ke(()=>t[r],_=>{b||(b=!0,m.value=v(_),dn(()=>b=!1))}),Ke(m,_=>{!b&&(_!==t[r]||u)&&I(_)},{deep:u}),m}else return j({get(){return A()},set(p){I(p)}})}function Sge(t={}){const{window:r=fi,initialWidth:e=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=t,s=G(e),l=G(n),c=()=>{r&&(a==="outer"?(s.value=r.outerWidth,l.value=r.outerHeight):o?(s.value=r.innerWidth,l.value=r.innerHeight):(s.value=r.document.documentElement.clientWidth,l.value=r.document.documentElement.clientHeight))};if(c(),Yu(c),hi("resize",c,{passive:!0}),i){const u=aU("(orientation: portrait)");Ke(u,()=>c())}return{width:s,height:l}}let xl=class extends Error{constructor(r){super(r),this.name="ShikiError"}},jb=class extends Error{constructor(r){super(r),this.name="ShikiError"}};function Tge(){return 2147483648}function Lge(){return typeof performance<"u"?performance.now():Date.now()}const kge=(t,r)=>t+(r-t%r)%r;async function Oge(t){let r,e;const n={};function i(d){e=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function o(d,f,C){n.HEAPU8.copyWithin(d,f,f+C)}function a(d){try{return r.grow(d-e.byteLength+65535>>>16),i(r.buffer),1}catch{}}function s(d){const f=n.HEAPU8.length;d=d>>>0;const C=Tge();if(d>C)return!1;for(let v=1;v<=4;v*=2){let A=f*(1+.2/v);A=Math.min(A,d+100663296);const I=Math.min(C,kge(Math.max(d,A),65536));if(a(I))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(d,f,C=1024){const v=f+C;let A=f;for(;d[A]&&!(A>=v);)++A;if(A-f>16&&d.buffer&&l)return l.decode(d.subarray(f,A));let I="";for(;f>10,56320|_&1023)}}return I}function u(d,f){return d?c(n.HEAPU8,d,f):""}const g={emscripten_get_now:Lge,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await t({env:g,wasi_snapshot_preview1:g});r=f.memory,i(r.buffer),Object.assign(n,f),n.UTF8ToString=u}return await h(),n}let nn=null;function xge(t){throw new jb(t.UTF8ToString(t.getLastOnigError()))}class uI{static _utf8ByteLength(r){let e=0;for(let n=0,i=r.length;n=55296&&o<=56319&&n+1=56320&&l<=57343&&(a=(o-55296<<10)+65536|l-56320,s=!0)}a<=127?e+=1:a<=2047?e+=2:a<=65535?e+=3:e+=4,s&&n++}return e}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(r){const e=r.length,n=uI._utf8ByteLength(r),i=n!==e,o=i?new Uint32Array(e+1):null;i&&(o[e]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=e);const s=new Uint8Array(n);let l=0;for(let c=0;c=55296&&u<=56319&&c+1=56320&&d<=57343&&(g=(u-55296<<10)+65536|d-56320,h=!0)}i&&(o[c]=l,h&&(o[c+1]=l),g<=127?a[l+0]=c:g<=2047?(a[l+0]=c,a[l+1]=c):g<=65535?(a[l+0]=c,a[l+1]=c,a[l+2]=c):(a[l+0]=c,a[l+1]=c,a[l+2]=c,a[l+3]=c)),g<=127?s[l++]=g:g<=2047?(s[l++]=192|(g&1984)>>>6,s[l++]=128|(g&63)>>>0):g<=65535?(s[l++]=224|(g&61440)>>>12,s[l++]=128|(g&4032)>>>6,s[l++]=128|(g&63)>>>0):(s[l++]=240|(g&1835008)>>>18,s[l++]=128|(g&258048)>>>12,s[l++]=128|(g&4032)>>>6,s[l++]=128|(g&63)>>>0),h&&c++}this.utf16Length=e,this.utf8Length=n,this.utf16Value=r,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}createString(r){const e=r.omalloc(this.utf8Length);return r.HEAPU8.set(this.utf8Value,e),e}}class Ji{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++Ji.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(r){if(!nn)throw new jb("Must invoke loadWasm first.");this._onigBinding=nn,this.content=r;const e=new uI(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!Ji._sharedPtrInUse?(Ji._sharedPtr||(Ji._sharedPtr=nn.omalloc(1e4)),Ji._sharedPtrInUse=!0,nn.HEAPU8.set(e.utf8Value,Ji._sharedPtr),this.ptr=Ji._sharedPtr):this.ptr=e.createString(nn)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===Ji._sharedPtr?Ji._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class Hge{_onigBinding;_ptr;constructor(r){if(!nn)throw new jb("Must invoke loadWasm first.");const e=[],n=[];for(let s=0,l=r.length;s{let n=t;return n=await n,typeof n=="function"&&(n=await n(e)),typeof n=="function"&&(n=await n(e)),Vge(n)?n=await n.instantiator(e):Pge(n)?n=await n.default(e):(Rge(n)&&(n=n.data),Dge(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Fge(n)(e):n=await jge(n)(e):Nge(n)?n=await Mp(n)(e):n instanceof WebAssembly.Module?n=await Mp(n)(e):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Mp(n.default)(e))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return nC=r(),nC}function Mp(t){return r=>WebAssembly.instantiate(t,r)}function Fge(t){return r=>WebAssembly.instantiateStreaming(t,r)}function jge(t){return async r=>{const e=await t.arrayBuffer();return WebAssembly.instantiate(e,r)}}let Uge;function Gge(){return Uge}async function Wge(t){return t&&await Bge(t),{createScanner(r){return new Hge(r)},createString(r){return new Ji(r)}}}function Zge(t){return Ub(t)}function Ub(t){return Array.isArray(t)?Kge(t):typeof t=="object"?Yge(t):t}function Kge(t){let r=[];for(let e=0,n=t.length;e{for(let n in e)t[n]=e[n]}),t}function dU(t){const r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return r===0?t:~r===t.length-1?dU(t.substring(0,t.length-1)):t.substr(~r+1)}var zp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,iC=class{static hasCaptures(t){return t===null?!1:(zp.lastIndex=0,zp.test(t))}static replaceCaptures(t,r,e){return t.replace(zp,(n,i,o,a)=>{let s=e[parseInt(i||o,10)];if(s){let l=r.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function fU(t,r){return tr?1:0}function CU(t,r){if(t===null&&r===null)return 0;if(!t)return-1;if(!r)return 1;let e=t.length,n=r.length;if(e===n){for(let i=0;ithis._root.match(n))}static createFromRawTheme(t,r){return this.createFromParsedTheme(Qge(t),r)}static createFromParsedTheme(t,r){return ehe(t,r)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const r=t.scopeName,n=this._cachedMatchRoot.get(r).find(i=>Xge(t.parent,i.parentScopes));return n?new IU(n.fontStyle,n.foreground,n.background):null}},Ep=class k5{constructor(r,e){this.parent=r,this.scopeName=e}static push(r,e){for(const n of e)r=new k5(r,n);return r}static from(...r){let e=null;for(let n=0;n"){if(e===r.length-1)return!1;n=r[++e],i=!0}for(;t&&!qge(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function qge(t,r){return r===t||t.startsWith(r)&&t[r.length]==="."}var IU=class{constructor(t,r,e){this.fontStyle=t,this.foregroundId=r,this.backgroundId=e}};function Qge(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let r=t.settings,e=[],n=0;for(let i=0,o=r.length;i1&&(v=f.slice(0,f.length-1),v.reverse()),e[n++]=new Jge(C,v,i,l,c,u)}}return e}var Jge=class{constructor(t,r,e,n,i,o){this.scope=t,this.parentScopes=r,this.index=e,this.fontStyle=n,this.foreground=i,this.background=o}},ja=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(ja||{});function ehe(t,r){t.sort((l,c)=>{let u=fU(l.scope,c.scope);return u!==0||(u=CU(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let e=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(e=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new the(r),a=new IU(e,o.getId(n),o.getId(i)),s=new nhe(new c8(0,null,-1,0,0),[]);for(let l=0,c=t.length;lr?console.log("how did this happen?"):this.scopeDepth=r,e!==-1&&(this.fontStyle=e),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},nhe=class u8{constructor(r,e=[],n={}){this._mainRule=r,this._children=n,this._rulesWithParentScopes=e}static _cmpBySpecificity(r,e){if(r.scopeDepth!==e.scopeDepth)return e.scopeDepth-r.scopeDepth;let n=0,i=0;for(;r.parentScopes[n]===">"&&n++,e.parentScopes[i]===">"&&i++,!(n>=r.parentScopes.length||i>=e.parentScopes.length);){const o=e.parentScopes[i].length-r.parentScopes[n].length;if(o!==0)return o;n++,i++}return e.parentScopes.length-r.parentScopes.length}match(r){if(r!==""){let n=r.indexOf("."),i,o;if(n===-1?(i=r,o=""):(i=r.substring(0,n),o=r.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const e=this._rulesWithParentScopes.concat(this._mainRule);return e.sort(u8._cmpBySpecificity),e}insert(r,e,n,i,o,a){if(e===""){this._doInsertHere(r,n,i,o,a);return}let s=e.indexOf("."),l,c;s===-1?(l=e,c=""):(l=e.substring(0,s),c=e.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new u8(this._mainRule.clone(),c8.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(r+1,c,n,i,o,a)}_doInsertHere(r,e,n,i,o){if(e===null){this._mainRule.acceptOverwrite(r,n,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a>>0}static getTokenType(r){return(r&768)>>>8}static containsBalancedBrackets(r){return(r&1024)!==0}static getFontStyle(r){return(r&30720)>>>11}static getForeground(r){return(r&16744448)>>>15}static getBackground(r){return(r&4278190080)>>>24}static set(r,e,n,i,o,a,s){let l=Xi.getLanguageId(r),c=Xi.getTokenType(r),u=Xi.containsBalancedBrackets(r)?1:0,g=Xi.getFontStyle(r),h=Xi.getForeground(r),d=Xi.getBackground(r);return e!==0&&(l=e),n!==8&&(c=n),i!==null&&(u=i?1:0),o!==-1&&(g=o),a!==0&&(h=a),s!==0&&(d=s),(l<<0|c<<8|u<<10|g<<11|h<<15|d<<24)>>>0}};function Rv(t,r){const e=[],n=ihe(t);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let c=a();if(e.push({matcher:c,priority:l}),i!==",")break;i=n.next()}return e;function o(){if(i==="-"){i=n.next();const l=o();return c=>!!l&&!l(c)}if(i==="("){i=n.next();const l=s();return i===")"&&(i=n.next()),l}if(oS(i)){const l=[];do l.push(i),i=n.next();while(oS(i));return c=>r(l,c)}return null}function a(){const l=[];let c=o();for(;c;)l.push(c),c=o();return u=>l.every(g=>g(u))}function s(){const l=[];let c=a();for(;c&&(l.push(c),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");c=a()}return u=>l.some(g=>g(u))}}function oS(t){return!!t&&!!t.match(/[\w\.:]+/)}function ihe(t){let r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,e=r.exec(t);return{next:()=>{if(!e)return null;const n=e[0];return e=r.exec(t),n}}}function mU(t){typeof t.dispose=="function"&&t.dispose()}var $d=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},ohe=class{constructor(t,r){this.scopeName=t,this.ruleName=r}toKey(){return`${this.scopeName}#${this.ruleName}`}},ahe=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(t){const r=t.toKey();this._seenReferenceKeys.has(r)||(this._seenReferenceKeys.add(r),this._references.push(t))}},she=class{constructor(t,r){this.repo=t,this.initialScopeName=r,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new $d(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const r=new ahe;for(const e of t)lhe(e,this.initialScopeName,this.repo,r);for(const e of r.references)if(e instanceof $d){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function lhe(t,r,e,n){const i=e.lookup(t.scopeName);if(!i){if(t.scopeName===r)throw new Error(`No grammar provided for <${r}>`);return}const o=e.lookup(r);t instanceof $d?O5({baseGrammar:o,selfGrammar:i},n):g8(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const a=e.injections(t.scopeName);if(a)for(const s of a)n.add(new $d(s))}function g8(t,r,e){if(r.repository&&r.repository[t]){const n=r.repository[t];Dv([n],r,e)}}function O5(t,r){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Dv(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},r),t.selfGrammar.injections&&Dv(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},r)}function Dv(t,r,e){for(const n of t){if(e.visitedRule.has(n))continue;e.visitedRule.add(n);const i=n.repository?hU({},r.repository,n.repository):r.repository;Array.isArray(n.patterns)&&Dv(n.patterns,{...r,repository:i},e);const o=n.include;if(!o)continue;const a=yU(o);switch(a.kind){case 0:O5({...r,selfGrammar:r.baseGrammar},e);break;case 1:O5(r,e);break;case 2:g8(a.ruleName,{...r,repository:i},e);break;case 3:case 4:const s=a.scopeName===r.selfGrammar.scopeName?r.selfGrammar:a.scopeName===r.baseGrammar.scopeName?r.baseGrammar:void 0;if(s){const l={baseGrammar:r.baseGrammar,selfGrammar:s,repository:i};a.kind===4?g8(a.ruleName,l,e):O5(l,e)}else a.kind===4?e.add(new ohe(a.scopeName,a.ruleName)):e.add(new $d(a.scopeName));break}}}var che=class{constructor(){this.kind=0}},uhe=class{constructor(){this.kind=1}},ghe=class{constructor(t){this.ruleName=t,this.kind=2}},hhe=class{constructor(t){this.scopeName=t,this.kind=3}},dhe=class{constructor(t,r){this.scopeName=t,this.ruleName=r,this.kind=4}};function yU(t){if(t==="$base")return new che;if(t==="$self")return new uhe;const r=t.indexOf("#");if(r===-1)return new hhe(t);if(r===0)return new ghe(t.substring(1));{const e=t.substring(0,r),n=t.substring(r+1);return new dhe(e,n)}}var fhe=/\\(\d+)/,aS=/\\(\d+)/g,Che=-1,bU=-2;var Af=class{constructor(t,r,e,n){this.$location=t,this.id=r,this._name=e||null,this._nameIsCapturing=iC.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=iC.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${dU(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,r){return!this._nameIsCapturing||this._name===null||t===null||r===null?this._name:iC.replaceCaptures(this._name,t,r)}getContentName(t,r){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:iC.replaceCaptures(this._contentName,t,r)}},vhe=class extends Af{constructor(t,r,e,n,i){super(t,r,e,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,e,n){throw new Error("Not supported!")}},Ahe=class extends Af{constructor(t,r,e,n,i){super(t,r,e,null),this._match=new _d(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,e,n){return this._getCachedCompiledPatterns(t).compileAG(t,e,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Md,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},sS=class extends Af{constructor(t,r,e,n,i){super(t,r,e,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const e of this.patterns)t.getRule(e).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,e,n){return this._getCachedCompiledPatterns(t).compileAG(t,e,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Md,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},h8=class extends Af{constructor(t,r,e,n,i,o,a,s,l,c){super(t,r,e,n),this._begin=new _d(i,this.id),this.beginCaptures=o,this._end=new _d(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,e,n){return this._getCachedCompiledPatterns(t,r).compileAG(t,e,n)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Md;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},Nv=class extends Af{constructor(t,r,e,n,i,o,a,s,l){super(t,r,e,n),this._begin=new _d(i,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=new _d(a,bU),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,e,n){return this._getCachedCompiledPatterns(t).compileAG(t,e,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Md;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,e,n){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,e,n)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Md,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},wU=class Tn{static createCaptureRule(r,e,n,i,o){return r.registerRule(a=>new vhe(e,a,n,i,o))}static getCompiledRuleId(r,e,n){return r.id||e.registerRule(i=>{if(r.id=i,r.match)return new Ahe(r.$vscodeTextmateLocation,r.id,r.name,r.match,Tn._compileCaptures(r.captures,e,n));if(typeof r.begin>"u"){r.repository&&(n=hU({},n,r.repository));let o=r.patterns;return typeof o>"u"&&r.include&&(o=[{include:r.include}]),new sS(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,Tn._compilePatterns(o,e,n))}return r.while?new Nv(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,r.begin,Tn._compileCaptures(r.beginCaptures||r.captures,e,n),r.while,Tn._compileCaptures(r.whileCaptures||r.captures,e,n),Tn._compilePatterns(r.patterns,e,n)):new h8(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,r.begin,Tn._compileCaptures(r.beginCaptures||r.captures,e,n),r.end,Tn._compileCaptures(r.endCaptures||r.captures,e,n),r.applyEndPatternLast,Tn._compilePatterns(r.patterns,e,n))}),r.id}static _compileCaptures(r,e,n){let i=[];if(r){let o=0;for(const a in r){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(const a in r){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);let l=0;r[a].patterns&&(l=Tn.getCompiledRuleId(r[a],e,n)),i[s]=Tn.createCaptureRule(e,r[a].$vscodeTextmateLocation,r[a].name,r[a].contentName,l)}}return i}static _compilePatterns(r,e,n){let i=[];if(r)for(let o=0,a=r.length;or.substring(i.start,i.end));return aS.lastIndex=0,this.source.replace(aS,(i,o)=>vU(n[parseInt(o,10)]||""))}_buildAnchorCache(){let r=[],e=[],n=[],i=[],o,a,s,l;for(o=0,a=this.source.length;oe.source);this._cached=new lS(t,r,this._items.map(e=>e.ruleId))}return this._cached}compileAG(t,r,e){return this._hasAnchors?r?e?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,r,e)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,r,e)),this._anchorCache.A1_G0):e?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,r,e)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,r,e)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,r,e){let n=this._items.map(i=>i.resolveAnchors(r,e));return new lS(t,n,this._items.map(i=>i.ruleId))}},lS=class{constructor(t,r,e){this.regExps=r,this.rules=e,this.scanner=t.createOnigScanner(r)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let r=0,e=this.rules.length;r{const i=this._scopeToLanguage(n),o=this._toStandardTokenType(n);return new d8(i,o)}),this._defaultAttributes=new d8(r,8),this._embeddedLanguagesMatcher=new phe(Object.entries(e||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(r){return r===null?f8._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(r)}_scopeToLanguage(r){return this._embeddedLanguagesMatcher.match(r)||0}_toStandardTokenType(r){const e=r.match(f8.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};Gb._NULL_SCOPE_METADATA=new d8(0,0);Gb.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var Ihe=Gb,phe=class{constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const r=t.map(([e,n])=>vU(e));r.sort(),r.reverse(),this.scopesRegExp=new RegExp(`^((${r.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const r=t.match(this.scopesRegExp);if(r)return this.values.get(r[1])}},cS=class{constructor(t,r){this.stack=t,this.stoppedEarly=r}};function _U(t,r,e,n,i,o,a,s){const l=r.content.length;let c=!1,u=-1;if(a){const d=mhe(t,r,e,n,i,o);i=d.stack,n=d.linePos,e=d.isFirstLine,u=d.anchorPosition}const g=Date.now();for(;!c;){if(s!==0&&Date.now()-g>s)return new cS(i,!0);h()}return new cS(i,!1);function h(){const d=yhe(t,r,e,n,i,u);if(!d){o.produce(i,l),c=!0;return}const f=d.captureIndices,C=d.matchedRuleId,v=f&&f.length>0?f[0].end>n:!1;if(C===Che){const A=i.getRule(t);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),dh(t,r,e,i,o,A.endCaptures,f),o.produce(i,f[0].end);const I=i;if(i=i.parent,u=I.getAnchorPos(),!v&&I.getEnterPos()===n){i=I,o.produce(i,l),c=!0;return}}else{const A=t.getRule(C);o.produce(i,f[0].start);const I=i,p=A.getName(r.content,f),m=i.contentNameScopesList.pushAttributed(p,t);if(i=i.push(C,n,u,f[0].end===l,null,m,m),A instanceof h8){const b=A;dh(t,r,e,i,o,b.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;const _=b.getContentName(r.content,f),S=m.pushAttributed(_,t);if(i=i.withContentNameScopesList(S),b.endHasBackReferences&&(i=i.withEndRule(b.getEndWithResolvedBackReferences(r.content,f))),!v&&I.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),c=!0;return}}else if(A instanceof Nv){const b=A;dh(t,r,e,i,o,b.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;const _=b.getContentName(r.content,f),S=m.pushAttributed(_,t);if(i=i.withContentNameScopesList(S),b.whileHasBackReferences&&(i=i.withEndRule(b.getWhileWithResolvedBackReferences(r.content,f))),!v&&I.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),c=!0;return}}else if(dh(t,r,e,i,o,A.captures,f),o.produce(i,f[0].end),i=i.pop(),!v){i=i.safePop(),o.produce(i,l),c=!0;return}}f[0].end>n&&(n=f[0].end,e=!1)}}function mhe(t,r,e,n,i,o){let a=i.beginRuleCapturedEOL?0:-1;const s=[];for(let l=i;l;l=l.pop()){const c=l.getRule(t);c instanceof Nv&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:c,findOptions:u}=$he(l.rule,t,l.stack.endRule,e,n===a),g=c.findNextMatchSync(r,n,u);if(g){if(g.ruleId!==bU){i=l.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(o.produce(l.stack,g.captureIndices[0].start),dh(t,r,e,l.stack,o,l.rule.whileCaptures,g.captureIndices),o.produce(l.stack,g.captureIndices[0].end),a=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,e=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:e}}function yhe(t,r,e,n,i,o){const a=bhe(t,r,e,n,i,o),s=t.getInjections();if(s.length===0)return a;const l=whe(s,t,r,e,n,i,o);if(!l)return a;if(!a)return l;const c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u=s)&&(s=p,l=I.captureIndices,c=I.ruleId,u=f.priority,s===i))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function MU(t,r,e,n,i){return{ruleScanner:t.compileAG(r,e,n,i),findOptions:0}}function $he(t,r,e,n,i){return{ruleScanner:t.compileWhileAG(r,e,n,i),findOptions:0}}function dh(t,r,e,n,i,o,a){if(o.length===0)return;const s=r.content,l=Math.min(o.length,a.length),c=[],u=a[0].end;for(let g=0;gu)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(n,d.start),h.retokenizeCapturedWithRuleId){const C=h.getName(s,a),v=n.contentNameScopesList.pushAttributed(C,t),A=h.getContentName(s,a),I=v.pushAttributed(A,t),p=n.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,v,I),m=t.createOnigString(s.substring(0,d.end));_U(t,m,e&&d.start===0,d.start,p,i,!1,0),mU(m);continue}const f=h.getName(s,a);if(f!==null){const v=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(f,t);c.push(new _he(v,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var _he=class{constructor(t,r){this.scopes=t,this.endPos=r}};function Mhe(t,r,e,n,i,o,a,s){return new Ehe(t,r,e,n,i,o,a,s)}function uS(t,r,e,n,i){const o=Rv(r,Bv),a=wU.getCompiledRuleId(e,n,i.repository);for(const s of o)t.push({debugSelector:r,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function Bv(t,r){if(r.length{for(let i=e;ie&&t.substr(0,e)===r&&t[e]==="."}var Ehe=class{constructor(t,r,e,n,i,o,a,s){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new Ihe(e,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=gS(r,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const c=Rv(l,Bv);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:i[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},r=[],e=this._rootScopeName,n=t.lookup(e);if(n){const i=n.injections;if(i)for(let a in i)uS(r,a,i[a],this,n);const o=this._grammarRepository.injections(e);o&&o.forEach(a=>{const s=this.getExternalGrammar(a);if(s){const l=s.injectionSelector;l&&uS(r,l,s,this,s)}})}return r.sort((i,o)=>i.priority-o.priority),r}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const r=++this._lastRuleId,e=t(r);return this._ruleId2desc[r]=e,e}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,r){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const e=this._grammarRepository.lookup(t);if(e)return this._includedGrammars[t]=gS(e,r&&r.$base),this._includedGrammars[t]}}tokenizeLine(t,r,e=0){const n=this._tokenize(t,r,!1,e);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,r,e=0){const n=this._tokenize(t,r,!0,e);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,r,e,n){this._rootId===-1&&(this._rootId=wU.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!r||r===v8.NULL){i=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),g=Cu.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=xh.createRootAndLookUpScopeName(h,g,this):d=xh.createRoot("unknown",g),r=new v8(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,r.reset();t=t+` `;const o=this.createOnigString(t),a=o.content.length,s=new The(e,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=_U(this,o,i,0,r,s,!0,n);return mU(o),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function gS(t,r){return t=Zge(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=r||t.repository.$self,t}var xh=class ea{constructor(r,e,n){this.parent=r,this.scopePath=e,this.tokenAttributes=n}static fromExtension(r,e){let n=r,i=r?.scopePath??null;for(const o of e)i=Ep.push(i,o.scopeNames),n=new ea(n,i,o.encodedTokenAttributes);return n}static createRoot(r,e){return new ea(null,new Ep(null,r),e)}static createRootAndLookUpScopeName(r,e,n){const i=n.getMetadataForScope(r),o=new Ep(null,r),a=n.themeProvider.themeMatch(o),s=ea.mergeAttributes(e,i,a);return new ea(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(r){return ea.equals(this,r)}static equals(r,e){do{if(r===e||!r&&!e)return!0;if(!r||!e||r.scopeName!==e.scopeName||r.tokenAttributes!==e.tokenAttributes)return!1;r=r.parent,e=e.parent}while(!0)}static mergeAttributes(r,e,n){let i=-1,o=0,a=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,a=n.backgroundId),Cu.set(r,e.languageId,e.tokenType,null,i,o,a)}pushAttributed(r,e){if(r===null)return this;if(r.indexOf(" ")===-1)return ea._pushAttributed(this,r,e);const n=r.split(/ /g);let i=this;for(const o of n)i=ea._pushAttributed(i,o,e);return i}static _pushAttributed(r,e,n){const i=n.getMetadataForScope(e),o=r.scopePath.push(e),a=n.themeProvider.themeMatch(o),s=ea.mergeAttributes(r.tokenAttributes,i,a);return new ea(r,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(r){const e=[];let n=this;for(;n&&n!==r;)e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===r?e.reverse():void 0}},C8=class C2{constructor(r,e,n,i,o,a,s,l){this.parent=r,this.ruleId=e,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(r){return r===null?!1:C2._equals(this,r)}static _equals(r,e){return r===e?!0:this._structuralEquals(r,e)?xh.equals(r.contentNameScopesList,e.contentNameScopesList):!1}static _structuralEquals(r,e){do{if(r===e||!r&&!e)return!0;if(!r||!e||r.depth!==e.depth||r.ruleId!==e.ruleId||r.endRule!==e.endRule)return!1;r=r.parent,e=e.parent}while(!0)}clone(){return this}static _reset(r){for(;r;)r._enterPos=-1,r._anchorPos=-1,r=r.parent}reset(){C2._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(r,e,n,i,o,a,s){return new C2(this,r,e,n,i,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(r){return r.getRule(this.ruleId)}toString(){const r=[];return this._writeString(r,0),"["+r.join(",")+"]"}_writeString(r,e){return this.parent&&(e=this.parent._writeString(r,e)),r[e++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,e}withContentNameScopesList(r){return this.contentNameScopesList===r?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,r)}withEndRule(r){return this.endRule===r?this:new C2(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,r,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(r){let e=this;for(;e&&e._enterPos===r._enterPos;){if(e.ruleId===r.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(r,e){const n=xh.fromExtension(r?.nameScopesList??null,e.nameScopesList);return new C2(r,e.ruleId,e.enterPos??-1,e.anchorPos??-1,e.beginRuleCapturedEOL,e.endRule,n,xh.fromExtension(n,e.contentNameScopesList))}};C8.NULL=new C8(null,0,0,0,!1,null,null,null);var v8=C8,She=class{constructor(t,r){this.allowAny=!1,this.balancedBracketScopes=t.flatMap(e=>e==="*"?(this.allowAny=!0,[]):Rv(e,Bv).map(n=>n.matcher)),this.unbalancedBracketScopes=r.flatMap(e=>Rv(e,Bv).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const r of this.unbalancedBracketScopes)if(r(t))return!1;for(const r of this.balancedBracketScopes)if(r(t))return!0;return this.allowAny}},The=class{constructor(t,r,e,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=e,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,r){this.produceFromScopes(t.contentNameScopesList,r)}produceFromScopes(t,r){if(this._lastTokenEndIndex>=r)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(n=Cu.set(n,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=Cu.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=r;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=r;return}const e=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:r,scopes:e}),this._lastTokenEndIndex=r}getResult(t,r){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===r-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,r),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,r){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===r-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,r),this._binaryTokens[this._binaryTokens.length-2]=0);const e=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n0;)a.Q.map(s=>this._loadSingleGrammar(s.scopeName)),a.processQueue();return this._grammarForScopeName(r,e,n,i,o)}_loadSingleGrammar(r){this._ensureGrammarCache.has(r)||(this._doLoadSingleGrammar(r),this._ensureGrammarCache.set(r,!0))}_doLoadSingleGrammar(r){const e=this._options.loadGrammar(r);if(e){const n=typeof this._options.getInjections=="function"?this._options.getInjections(r):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(r,e=[],n=0,i=null){return this._syncRegistry.addGrammar(r,e),this._grammarForScopeName(r.scopeName,n,i)}_grammarForScopeName(r,e=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(r,e,n,i,o)}},A8=v8.NULL;const Ohe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class If{constructor(r,e,n){this.property=r,this.normal=e,n&&(this.space=n)}}If.prototype.property={};If.prototype.normal={};If.prototype.space=null;function zU(t,r){const e={},n={};let i=-1;for(;++i4&&e.slice(0,4)==="data"&&Rhe.test(r)){if(r.charAt(4)==="-"){const o=r.slice(5).replace(dS,Fhe);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=r.slice(4);if(!dS.test(o)){let a=o.replace(Dhe,Bhe);a.charAt(0)!=="-"&&(a="-"+a),r="data"+a}}i=Wb}return new i(n,r)}function Bhe(t){return"-"+t.toLowerCase()}function Fhe(t){return t.charAt(1).toUpperCase()}const jhe=zU([TU,SU,OU,xU,Vhe],"html"),HU=zU([TU,SU,OU,xU,Phe],"svg"),fS={}.hasOwnProperty;function Uhe(t,r){const e=r||{};function n(i,...o){let a=n.invalid;const s=n.handlers;if(i&&fS.call(i,t)){const l=String(i[t]);a=fS.call(s,l)?s[l]:n.unknown}if(a)return a.call(this,i,...o)}return n.handlers=e.handlers||{},n.invalid=e.invalid,n.unknown=e.unknown,n}const Ghe=/["&'<>`]/g,Whe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zhe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Khe=/[|\\{}()[\]^$+*?.]/g,CS=new WeakMap;function Yhe(t,r){if(t=t.replace(r.subset?Xhe(r.subset):Ghe,n),r.subset||r.escapeOnly)return t;return t.replace(Whe,e).replace(Zhe,n);function e(i,o,a){return r.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),r)}function n(i,o,a){return r.format(i.charCodeAt(0),a.charCodeAt(o+1),r)}}function Xhe(t){let r=CS.get(t);return r||(r=qhe(t),CS.set(t,r)),r}function qhe(t){const r=[];let e=-1;for(;++e",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},nde=["cent","copy","divide","gt","lt","not","para","times"],VU={}.hasOwnProperty,m8={};let oC;for(oC in Tp)VU.call(Tp,oC)&&(m8[Tp[oC]]=oC);const ide=/[^\dA-Za-z]/;function ode(t,r,e,n){const i=String.fromCharCode(t);if(VU.call(m8,i)){const o=m8[i],a="&"+o;return e&&rde.includes(o)&&!nde.includes(o)&&(!n||r&&r!==61&&ide.test(String.fromCharCode(r)))?a:a+";"}return""}function ade(t,r,e){let n=Jhe(t,r,e.omitOptionalSemicolons),i;if((e.useNamedReferences||e.useShortestReferences)&&(i=ode(t,r,e.omitOptionalSemicolons,e.attribute)),(e.useShortestReferences||!i)&&e.useShortestReferences){const o=tde(t,r,e.omitOptionalSemicolons);o.length|^->||--!>|"],cde=["<",">"];function ude(t,r,e,n){return n.settings.bogusComments?"":"";function i(o){return Z2(o,Object.assign({},n.settings.characterReferences,{subset:cde}))}}function gde(t,r,e,n){return""}function vS(t,r){const e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,i=e.indexOf(r);for(;i!==-1;)n++,i=e.indexOf(r,i+r.length);return n}function hde(t,r){const e=r||{};return(t[t.length-1]===""?[...t,""]:t).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}function dde(t){return t.join(" ").trim()}const fde=/[ \t\n\f\r]/g;function Zb(t){return typeof t=="object"?t.type==="text"?AS(t.value):!1:AS(t)}function AS(t){return t.replace(fde,"")===""}const Jr=RU(1),PU=RU(-1),Cde=[];function RU(t){return r;function r(e,n,i){const o=e?e.children:Cde;let a=(n||0)+t,s=o[a];if(!i)for(;s&&Zb(s);)a+=t,s=o[a];return s}}const vde={}.hasOwnProperty;function DU(t){return r;function r(e,n,i){return vde.call(t,e.tagName)&&t[e.tagName](e,n,i)}}const Kb=DU({body:Ide,caption:Lp,colgroup:Lp,dd:bde,dt:yde,head:Lp,html:Ade,li:mde,optgroup:wde,option:$de,p:pde,rp:IS,rt:IS,tbody:Mde,td:pS,tfoot:zde,th:pS,thead:_de,tr:Ede});function Lp(t,r,e){const n=Jr(e,r,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Zb(n.value.charAt(0)))}function Ade(t,r,e){const n=Jr(e,r);return!n||n.type!=="comment"}function Ide(t,r,e){const n=Jr(e,r);return!n||n.type!=="comment"}function pde(t,r,e){const n=Jr(e,r);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!e||!(e.type==="element"&&(e.tagName==="a"||e.tagName==="audio"||e.tagName==="del"||e.tagName==="ins"||e.tagName==="map"||e.tagName==="noscript"||e.tagName==="video"))}function mde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&n.tagName==="li"}function yde(t,r,e){const n=Jr(e,r);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function bde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function IS(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function wde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&n.tagName==="optgroup"}function $de(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function _de(t,r,e){const n=Jr(e,r);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Mde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function zde(t,r,e){return!Jr(e,r)}function Ede(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&n.tagName==="tr"}function pS(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Sde=DU({body:kde,colgroup:Ode,head:Lde,html:Tde,tbody:xde});function Tde(t){const r=Jr(t,-1);return!r||r.type!=="comment"}function Lde(t){const r=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(r.has(n.tagName))return!1;r.add(n.tagName)}const e=t.children[0];return!e||e.type==="element"}function kde(t){const r=Jr(t,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Zb(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function Ode(t,r,e){const n=PU(e,r),i=Jr(t,-1,!0);return e&&n&&n.type==="element"&&n.tagName==="colgroup"&&Kb(n,e.children.indexOf(n),e)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function xde(t,r,e){const n=PU(e,r),i=Jr(t,-1);return e&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Kb(n,e.children.indexOf(n),e)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const aC={name:[[` \f\r &/=>`.split(""),` \f\r "&'/=>\``.split("")],[`\0 \f\r "&'/<=>`.split(""),`\0 \f\r "&'/<=>\``.split("")]],unquoted:[[` \f\r &>`.split(""),`\0 \f\r "&'<=>\``.split("")],[`\0 \f\r "&'<=>\``.split(""),`\0 \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Hde(t,r,e,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const s=[];let l;i.space==="html"&&t.tagName==="svg"&&(n.schema=HU);const c=Vde(n,t.properties),u=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,u&&(a=!1),(c||!o||!Sde(t,r,e))&&(s.push("<",t.tagName,c?" "+c:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!a&&(!o||!Kb(t,r,e))&&s.push(""),s.join("")}function Vde(t,r){const e=[];let n=-1,i;if(r){for(i in r)if(r[i]!==null&&r[i]!==void 0){const o=Pde(t,i,r[i]);o&&e.push(o)}}for(;++nvS(e,t.alternative)&&(a=t.alternative),s=a+Z2(e,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?aC.single:aC.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}const Rde=["<","&"];function NU(t,r,e,n){return e&&e.type==="element"&&(e.tagName==="script"||e.tagName==="style")?t.value:Z2(t.value,Object.assign({},n.settings.characterReferences,{subset:Rde}))}function Dde(t,r,e,n){return n.settings.allowDangerousHtml?t.value:NU(t,r,e,n)}function Nde(t,r,e,n){return n.all(t)}const Bde=Uhe("type",{invalid:Fde,unknown:jde,handlers:{comment:ude,doctype:gde,element:Hde,raw:Dde,root:Nde,text:NU}});function Fde(t){throw new Error("Expected node, not `"+t+"`")}function jde(t){const r=t;throw new Error("Cannot compile unknown node `"+r.type+"`")}const Ude={},Gde={},Wde=[];function Zde(t,r){const e=Ude,n=e.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Kde,all:Yde,settings:{omitOptionalTags:e.omitOptionalTags||!1,allowParseErrors:e.allowParseErrors||!1,allowDangerousCharacters:e.allowDangerousCharacters||!1,quoteSmart:e.quoteSmart||!1,preferUnquoted:e.preferUnquoted||!1,tightAttributes:e.tightAttributes||!1,upperDoctype:e.upperDoctype||!1,tightDoctype:e.tightDoctype||!1,bogusComments:e.bogusComments||!1,tightCommaSeparatedLists:e.tightCommaSeparatedLists||!1,tightSelfClosing:e.tightSelfClosing||!1,collapseEmptyAttributes:e.collapseEmptyAttributes||!1,allowDangerousHtml:e.allowDangerousHtml||!1,voids:e.voids||Ohe,characterReferences:e.characterReferences||Gde,closeSelfClosing:e.closeSelfClosing||!1,closeEmptyElements:e.closeEmptyElements||!1},schema:e.space==="svg"?HU:jhe,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Kde(t,r,e){return Bde(t,r,e,this)}function Yde(t){const r=[],e=t&&t.children||Wde;let n=-1;for(;++n\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,s="";for(const l of t.matchAll(i)){const{0:c,groups:{$skip:u}}=l;if(!u&&(!n||n===di.DEFAULT==!a)){e instanceof Function?s+=e(l,{context:a?di.CHAR_CLASS:di.DEFAULT,negated:o[o.length-1]}):s+=e;continue}c[0]==="["?(a++,o.push(c[1]==="^")):c==="]"&&a&&(a--,o.pop()),s+=c}return s}function Yb(t,r,e,n){vu(t,r,e,n)}function Xb(t,r,e=0,n){if(!new RegExp(r,"su").test(t))return null;const i=new RegExp(`${r}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=e;let o=0,a;for(;a=i.exec(t);){const{0:s,groups:{$skip:l}}=a;if(!l&&(!n||n===di.DEFAULT==!o))return a;s==="["?o++:s==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function Xde(t,r,e){return!!Xb(t,r,0,e)}function BU(t,r){const e=/\\?./gsu;e.lastIndex=r;let n=t.length,i=0,o=1,a;for(;a=e.exec(t);){const[s]=a;if(s==="[")i++;else if(i)s==="]"&&i--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){n=a.index;break}}return t.slice(r,n)}var y8=class{#e;constructor(t){this.#e=t}toString(){return String(this.#e)}};function qde(t,...r){if(Array.isArray(t?.raw))return new y8(t.raw.flatMap((e,n)=>n{try{new RegExp("(?i:)")}catch{return!1}return!0})();var Qde=(()=>{try{new RegExp("","v")}catch{return!1}return!0})(),qb="&!#$%*+,.:;<=>?@^`~",Qb="$E$",Jb=String.raw`\(\?<(?![=!])(?[^>]+)>`,ew=String.raw`\((?!\?)(?!(?<=\(\?\()DEFINE\))|${Jb}`,tw=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Jde(t){return t.replace(new RegExp(`^([${qb}])(?!\\1)`),(r,e,n)=>`\\${r}${n+1===t.length?"":r}`)}function efe(t,r){return vu(t,String.raw`\\0(?!\d)`,"\\x00",r)}var mS=new RegExp(String.raw` (?\(\?<(?![=!])|\\[gk]<) | (?\\[pPu]\{) | (?\\q\{) | (?\{) | (?\\(?: $ | c(?![A-Za-z]) | u(?![A-Fa-f\d]{4})[A-Fa-f\d]{0,3} | x(?![A-Fa-f\d]{2})[A-Fa-f\d]? ) ) | -- | \\?. `.replace(/\s+/g,""),"gsu");function FU(t,{regexContext:r=Br.DEFAULT,charClassContext:e=Fr.DEFAULT,charClassDepth:n=0,lastPos:i=0}={}){mS.lastIndex=i;let o;for(;o=mS.exec(t);){const{0:a,groups:{groupN:s,enclosedT:l,qT:c,intervalQ:u,incompleteT:g}}=o;a==="["?(n++,r=Br.CHAR_CLASS,e=Fr.DEFAULT):a==="]"&&r===Br.CHAR_CLASS?(n&&n--,n||(r=Br.DEFAULT),e=Fr.DEFAULT):r===Br.CHAR_CLASS?g?e=Fr.INVALID_INCOMPLETE_TOKEN:a==="-"?e=Fr.RANGE:l?e=Fr.ENCLOSED_TOKEN:c?e=Fr.Q_TOKEN:(a==="}"&&(e===Fr.ENCLOSED_TOKEN||e===Fr.Q_TOKEN)||e===Fr.INVALID_INCOMPLETE_TOKEN||e===Fr.RANGE)&&(e=Fr.DEFAULT):g?r=Br.INVALID_INCOMPLETE_TOKEN:s?r=Br.GROUP_NAME:l?r=Br.ENCLOSED_TOKEN:u?r=Br.INTERVAL_QUANTIFIER:(a===">"&&r===Br.GROUP_NAME||a==="}"&&(r===Br.ENCLOSED_TOKEN||r===Br.INTERVAL_QUANTIFIER)||r===Br.INVALID_INCOMPLETE_TOKEN)&&(r=Br.DEFAULT)}return{regexContext:r,charClassContext:e,charClassDepth:n,lastPos:t.length}}function tfe(t){let r=0;return Yb(t,ew,()=>r++,di.DEFAULT),r}function x5(t,r,e,n){return t.slice(0,r)+n+t.slice(r+e.length)}var rfe=["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"].join("|");new RegExp(String.raw` \\(?: c[A-Za-z] | p\{(?${rfe})\} | [pP]\{[^\}]+\} | (?q) | u(?:[A-Fa-f\d]{4}|\{[A-Fa-f\d]+\}) | x[A-Fa-f\d]{2} | . ) | -- | && | . `.replace(/\s+/g,""),"gsu");function nfe(t,r,e,n){let i={raw:[]},o=[],a;return t.raw.forEach((s,l)=>{const c=e(s,{...a,lastPos:0},n);if(i.raw.push(c.transformed),a=c.runningContext,l\\[1-9]\d*) | \\?. `.replace(/\s+/g,""),"gsu");function ofe(t,r){t=String(t);let e="",n="";for(const{0:i,groups:{backrefNum:o}}of t.matchAll(ife)){e+=i,r=FU(e,r);const{regexContext:a}=r;if(a===Br.DEFAULT)if(i==="(")n+="(?:";else{if(o)throw new Error(`Invalid decimal escape "${i}" with implicit flag n; replace with named backreference`);n+=i}else n+=i}return{transformed:n,runningContext:r}}var yS=/^\s$/,afe=/^\\[\s#]$/,kp=/^[ \t]$/,sfe=/^\\[ \t]$/,lfe=new RegExp(String.raw` \\(?: [gk]< | [pPu]\{ | c[A-Za-z] | u[A-Fa-f\d]{4} | x[A-Fa-f\d]{2} | 0\d+ ) | \[\^ | ${tw} | \(\?< | (?[${qb}])\k | -- | \\?. `.replace(/\s+/g,""),"gsu");function cfe(t,r,e){t=String(t);let n=!1,i=!1,o=!1,a="",s="",l="",c="",u=!1;const g=(h,{prefix:d=!0,postfix:f=!1}={})=>(h=(u&&d?"(?:)":"")+h+(f?"(?:)":""),u=!1,h);for(const{0:h,index:d}of t.matchAll(lfe)){if(o){h===` `&&(o=!1,u=!0);continue}if(n){if(yS.test(h))continue;n=!1,u=!0}else if(i){if(kp.test(h))continue;i=!1}a+=h,r=FU(a,r);const{regexContext:f,charClassContext:C}=r;if(h==="-"&&f===Br.CHAR_CLASS&&c===Fr.RANGE&&(e.flags.includes("v")||e.unicodeSetsPlugin))throw new Error("Invalid unescaped hyphen as the end value for a range");if(f===Br.DEFAULT&&/^(?:[?*+]|\?\?)$/.test(h)||f===Br.INTERVAL_QUANTIFIER&&h==="{")s+=g(h,{prefix:!1,postfix:l==="("&&h==="?"});else if(f===Br.DEFAULT)yS.test(h)?n=!0:h.startsWith("#")?o=!0:afe.test(h)?s+=g(h[1],{prefix:!1}):s+=g(h);else if(f===Br.CHAR_CLASS&&h!=="["&&h!=="[^")if(kp.test(h)&&(C===Fr.DEFAULT||C===Fr.RANGE||C===Fr.Q_TOKEN))i=!0;else{if(C===Fr.INVALID_INCOMPLETE_TOKEN)throw new Error(`Invalid incomplete token in character class: "${h}"`);if(sfe.test(h)&&(C===Fr.DEFAULT||C===Fr.Q_TOKEN))s+=g(h[1],{prefix:!1});else if(C===Fr.DEFAULT){const v=t[d+1]??"";let A=efe(h);(kp.test(v)||h==="^")&&(A=Jde(A)),s+=g(A)}else s+=g(h)}else s+=g(h);n||i||o||(l=h,c=C)}return{transformed:s,runningContext:r}}function ufe(t){const r=String.raw`\(\?:\)`;t=vu(t,`(?:${r}){2,}`,"(?:)",di.DEFAULT);const e=Qb.replace(/\$/g,"\\$");return t=vu(t,String.raw`(?:${r}(?=[)|.[$\\]|\((?!DEFINE)|$)|(?<=[()|.\]^>]|\\[bBdDfnrsStvwW]|\(\?(?:[:=!]|<[=!])|^)${r}(?![?*+{]))(?!${e})`,"",di.DEFAULT),t}var bS=new RegExp(String.raw`(?${tw})|(?\((?:\?<[^>]+>)?)|\\?.`,"gsu");function gfe(t,r){if(!/\(\?>/.test(t))return t;const e="(?>",n=`(?:(?=(${r.useEmulationGroups?Qb:""}`,i=[0];let o=0,a=0,s=NaN,l;do{l=!1;let c=0,u=0,g=!1,h;for(bS.lastIndex=Number.isNaN(s)?0:s+n.length;h=bS.exec(t);){const{0:d,index:f,groups:{capturingStart:C,noncapturingStart:v}}=h;if(d==="[")c++;else if(c)d==="]"&&c--;else if(d===e&&!g)s=f,g=!0;else if(g&&v)u++;else if(C)g?u++:(o++,i.push(o+a));else if(d===")"&&g){if(!u){a++,t=`${t.slice(0,s)}${n}${t.slice(s+e.length,f)}))<$$${a+o}>)${t.slice(f+1)}`,l=!0;break}u--}}}while(l);return t=vu(t,String.raw`\\(?[1-9]\d*)|<\$\$(?\d+)>`,({0:c,groups:{backrefNum:u,wrappedBackrefNum:g}})=>{if(u){const h=+u;if(h>i.length-1)throw new Error(`Backref "${c}" greater than number of captures`);return`\\${i[h]}`}return`\\${g}`},di.DEFAULT),t}var jU=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Op=new RegExp(String.raw` \\(?: \d+ | c[A-Za-z] | [gk]<[^>]+> | [pPu]\{[^\}]+\} | u[A-Fa-f\d]{4} | x[A-Fa-f\d]{2} ) | \((?: \? (?: [:=!>] | <(?:[=!]|[^>]+>) | [A-Za-z\-]+: | \(DEFINE\) ))? | (?${jU})(?[?+]?)(?[?*+\{]?) | \\?. `.replace(/\s+/g,""),"gsu");function hfe(t){if(!new RegExp(`${jU}\\+`).test(t))return t;const r=[];let e=null,n=null,i="",o=0,a;for(Op.lastIndex=0;a=Op.exec(t);){const{0:s,index:l,groups:{qBase:c,qMod:u,invalidQ:g}}=a;if(s==="[")o||(n=l),o++;else if(s==="]")o?o--:n=null;else if(!o)if(u==="+"&&i&&!i.startsWith("(")){if(g)throw new Error(`Invalid quantifier "${s}"`);let h=-1;if(/^\{\d+\}$/.test(c))t=x5(t,l+c.length,u,"");else{if(i===")"||i==="]"){const d=i===")"?e:n;if(d===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,d)}(?>${t.slice(d,l)}${c})${t.slice(l+s.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${c})${t.slice(l+s.length)}`;h+=4}Op.lastIndex+=h}else s[0]==="("?r.push(l):s===")"&&(e=r.length?r.pop():null);i=s}return t}function dfe(t,r){const e=UU(t,{includeContents:!0}),n=Cfe(t,e,r.useEmulationGroups);return vfe(n,e)}var ffe=String.raw`\\g<(?[^>&]+)>`,Yg=new RegExp(String.raw` ${ffe} | (?${ew}) | \\(?[1-9]\d*) | \\k<(?[^>]+)> | \\?. `.replace(/\s+/g,""),"gsu");function Cfe(t,r,e){if(!/\\g]+>)",di.DEFAULT),i=n?`(${e?Qb:""}`:"(?:",o=new Map,a=[],s=[0];let l=0,c=0,u=0,g=0,h=0,d=t,f;for(Yg.lastIndex=0;f=Yg.exec(d);){const{0:C,index:v,groups:{subroutineName:A,capturingStart:I,backrefNum:p,backrefName:m}}=f;if(C==="[")h++;else if(h)C==="]"&&h--;else if(A){if(!r.has(A))throw new Error(`Invalid named capture referenced by subroutine ${C}`);if(o.has(A))throw new Error(`Subroutine ${C} followed a recursive reference`);const b=r.get(A).contents,_=`${i}${b})`;n&&(u=0,c++),o.set(A,{unclosedGroupCount:Afe(_)}),a.push(A),d=x5(d,v,C,_),Yg.lastIndex-=C.length-i.length}else if(I)o.size?(n&&(u++,c++),C!=="("&&(d=x5(d,v,C,i),Yg.lastIndex-=C.length-i.length)):n&&(s.push(Hp(s)+1+c-g),g=c,l++);else if((p||m)&&o.size){const b=p?+p:r.get(m)?.groupNum;let _=!1;for(const S of a){const E=r.get(S);if(b>=E.groupNum&&b<=E.groupNum+E.numCaptures){_=!0;break}}if(_){const S=r.get(Hp(a)),E=l+c-u,T=`\\k<$$b${b}s${E}r${S.groupNum}c${S.numCaptures}>`;d=x5(d,v,C,T),Yg.lastIndex+=T.length-C.length}}else if(C===")"&&o.size){const b=o.get(Hp(a));b.unclosedGroupCount--,b.unclosedGroupCount||o.delete(a.pop())}}return n&&(d=vu(d,String.raw`\\(?:(?[1-9]\d*)|k<\$\$b(?\d+)s(?\d+)r(?\d+)c(?\d+)>)`,({0:C,groups:{bNum:v,bNumSub:A,subNum:I,refNum:p,refCaps:m}})=>{if(v){const T=+v;if(T>s.length-1)throw new Error(`Backref "${C}" greater than number of captures`);return`\\${s[T]}`}const b=+A,_=+I,S=+p,E=+m;return bS+E?`\\${s[b]}`:`\\${_-S+b}`},di.DEFAULT)),d}var xp=new RegExp(String.raw`${Jb}|\(\?:\)|(?\\?.)`,"gsu");function vfe(t,r){const e=Xb(t,String.raw`\(\?\(DEFINE\)`,0,di.DEFAULT);if(!e)return t;const n=wS(t,e);if(n.afterPost.length)throw new Error("DEFINE group is unclosed");let i;for(xp.lastIndex=0;i=xp.exec(n.contents);){const{captureName:o,invalid:a}=i.groups;if(o){const s=wS(n.contents,i);let l;if(!r.get(o).isUnique)l=o;else{const c=UU(s.contents);for(const u of c.keys())if(!r.get(u).isUnique){l=u;break}}if(l)throw new Error(`Duplicate group name "${l}" within DEFINE`);xp.lastIndex=s.afterPos}else if(a)throw new Error("DEFINE group includes unsupported syntax at top level")}return t.slice(0,e.index)}function Afe(t){let r=0;return Yb(t,"\\(",()=>r++,di.DEFAULT),r}function Ife(t,r){let e=0,n=0,i;for(;i=Xb(t,ew,n,di.DEFAULT);){const{0:o,index:a,groups:{captureName:s}}=i;if(e++,s===r)break;n=a+o.length}return e}function wS(t,r){const e=r.index+r[0].length,n=BU(t,e),i=e+n.length+1;return{contents:n,afterPos:i}}function UU(t,{includeContents:r}={}){const e=new Map;return Yb(t,Jb,({0:n,index:i,groups:{captureName:o}})=>{if(e.has(o))e.get(o).isUnique=!1;else{const a={isUnique:!0};if(r){const s=BU(t,i+n.length);Object.assign(a,{contents:s,groupNum:Ife(t,o),numCaptures:tfe(s)})}e.set(o,a)}},di.DEFAULT),e}function Hp(t){return t[t.length-1]}var pfe="&!#%,:;<=>@`~",mfe=new RegExp(String.raw` \[\^?-? | --?\] | (?[${qb}])\k | -- | \\(?[${pfe}]) | \\[pPu]\{[^}]+\} | \\?. `.replace(/\s+/g,""),"gsu");function yfe(t){const r='Invalid unescaped "-" in character class';let e=!1,n="";for(const{0:i,groups:{dp:o,vOnlyEscape:a}}of t.matchAll(mfe)){if(i[0]==="["){if(e)throw new Error("Invalid nested character class when flag v not supported; possibly from interpolation");if(i.endsWith("-"))throw new Error(r);e=!0}else if(i.endsWith("]")){if(i[0]==="-")throw new Error(r);e=!1}else if(e){if(i==="&&"||i==="--")throw new Error(`Invalid set operator "${i}" when flag v not supported`);if(o)throw new Error(`Invalid double punctuator "${i}", reserved by flag v`);if("(){}/|".includes(i))throw new Error(`Invalid unescaped "${i}" in character class`);if(a){n+=a;continue}}n+=i}return n}function bfe(t="",r={}){const e=wfe(r);if(e.subclass)throw new Error("Cannot use option subclass");return{expression:_fe($fe({raw:[t]},[],e).template.raw[0],e),flags:e.flags}}function wfe(t){const r={flags:"",subclass:!1,plugins:[],unicodeSetsPlugin:yfe,disable:{},force:{},...t};if(/[nuvx]/.test(r.flags))throw new Error("Implicit flags v/u/x/n cannot be explicitly added");const e=r.force.v||(r.disable.v?!1:Qde);return r.flags+=e?"v":"u",e&&(r.unicodeSetsPlugin=null),r}function $fe(t,r,e){const n=[];e.disable.x||n.push(cfe),e.disable.n||n.push(ofe);for(const i of n)({template:t,substitutions:r}=nfe(t,r,i,e));return{template:t,substitutions:r}}function _fe(t,r){const{flags:e,plugins:n,unicodeSetsPlugin:i,disable:o,subclass:a}=r;return[...n,...o.subroutines?[]:[dfe],...o.atomic?[]:[hfe,gfe],...o.x?[]:[ufe],...i?[i]:[]].forEach(s=>t=s(t,{flags:e,useEmulationGroups:a})),t}var Mfe=Object.defineProperty,zfe=(t,r,e)=>r in t?Mfe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,Vp=(t,r,e)=>(zfe(t,typeof r!="symbol"?r+"":r,e),e);class Fa extends SyntaxError{constructor(r,e){super(r,{cause:e.cause}),Vp(this,"patternOriginal"),Vp(this,"patternConverted"),Vp(this,"cursorPosition"),this.patternOriginal=e.pattern,this.patternConverted=e.converted,this.cursorPosition=e.cursor}}const Efe=new Set("!?:=+$(){}_><# "),Sfe=new Set("-!:=_>< "),Tfe={alnum:"0-9A-Za-z",alpha:"A-Za-z",ascii:"\0-",blank:" \\t",cntrl:"\0-",digit:"\\d",graph:"!-~",lower:"a-z",print:" -~",punct:"!-/:-@[-`{-~",space:"\\s",upper:"A-Z",xdigit:"0-9A-Fa-f",word:"\\w"},Lfe={alnum:"0-9A-Za-z",alpha:"A-Za-z",alphabetic:"A-Za-z",blank:"\\s",greek:"\\p{Script=Greek}",print:"\\p{L}\\p{N}\\p{P}\\p{S}\\p{Zs}",word:"\\w"},$S=new Set("gimsuyx");function kfe(t,r={}){const{useRegex:e=!1,preserveFlags:n=!1,removePossessiveQuantifier:i=!1,removeAtomicGroup:o=!1,convertHexDigitsShorthand:a=!1,convertUnicodeCategory:s=!1,expandNestedCharacterClass:l=!1}=r;let c="";const u=new Set,g=[],h=[];let d=!1,f=!1,C=0;try{for(;Cg.length;)h.shift();const I=g[0],p=d||h.length;if(A==="\\"){if(a){if(t[C+1]==="h"){const m="0-9A-Fa-f";I==="["?c+=m:c+=`[${m}]`,C+=2;continue}if(t[C+1]==="H"){if(I==="[")throw new Fa("Expending \\H in character class is not supported",{pattern:t,converted:c,cursor:C});c+="[^0-9A-Fa-f]",C+=2;continue}}if(s&&t[C+1]==="p"&&t[C+2]==="{"){const m=t.indexOf("}",C+3);if(m===-1)throw new Fa("Unmatched \\p{...}",{pattern:t,converted:c,cursor:C});const b=t.slice(C+3,m),_=Lfe[b.toLowerCase()];if(_){I==="["?c+=_:c+=`[${_}]`,C=m+1;continue}}if(I==="["&&Efe.has(t[C+1])){c+=t[C+1],C+=2;continue}if(I!=="["&&Sfe.has(t[C+1])){c+=t[C+1],C+=2;continue}c+=A+t[C+1],C+=2;continue}if(A==="#"&&p&&t[C-1].match(/\s/)&&I!=="["){for(let m=C+1;m<=t.length;m++)if(t[m]===` `||m===t.length){C=m;break}continue}if(A==="("&&I!=="["){if(t[C+1]==="?"){if(t[C+2]==="#"){for(let m=C+3;m"){c+="(?:",C+=3;continue}if($S.has(t[C+2])){let m=C+3;for(;mE!=="x").join("");if(!n){if(S[0]==="-"){S=S.slice(1);for(const E of b)u.delete(E)}else for(const E of S)u.add(E);S=""}if(t[m]===")"){C=m+1,_&&(d=!0),S.length&&(c+=`(?${S})`);continue}else if(t[m]===":"){C=m+1,g.unshift(A),_&&h.unshift(g.length),c+=`(?${S}:`;continue}}g.unshift(A),c+=A+t[C+1]+t[C+2],C+=3}else g.unshift(A),c+=A,C+=1;continue}if(A===")"&&I!=="["){I==="("&&g.shift(),c+=A,C+=1;continue}if(A==="["){if(t[C+1]===":"){let m="",b=!1;t[C+2]==="^"&&(b=!0,C+=1);for(let _=C+2;_`\\u${a.padStart(4,"0")}`).replace(/\(\?(-)?(\w+):/g,(o,a,s)=>{if(a)for(const l of s)i.delete(l);else for(const l of s)i.add(l);return"(?:"}).replace(/\(\?(-)?(\w+)\)/g,(o,a,s)=>{if(a)for(const l of s)i.delete(l);else for(const l of s)i.add(l);return""}),r.ignoreContiguousAnchors&&(t.includes("\\G")&&i.add("y"),t.startsWith("\\G")&&(t=t.slice(2)),t=t.replace(/\|\\G(\||\))/g,"$1").replace(/(\(|\|)\\G\|/g,"$1").replace(/\\G/g,"")),i.has("x"))throw new Fa("JavaScript does not support extended mode (x flag), you might want to run syntaxLowering() first",{pattern:e,converted:t});try{return new RegExp(t,[...i].join(""))}catch(o){throw new Fa("Failed to construct RegExp",{pattern:e,converted:t,cause:o})}}function xfe(t,r={}){const{pattern:e,flags:n}=kfe(t,{convertHexDigitsShorthand:!0,convertUnicodeCategory:!0,useRegex:!0,expandNestedCharacterClass:!0,...r});return Ofe(e,{original:t,...r,flags:[...new Set([...n,...r.flags||[]])].join("")})}const Hfe=[["(?[^\\[\\]\\\\]|\\\\.|\\[\\g*+\\])","(?[^\\[\\]\\\\]|\\\\.|\\[(?:[^\\[\\]\\\\]|\\\\.|\\[(?:[^\\[\\]\\\\]|\\\\.|\\[(?:[^\\[\\]\\\\])*+\\])*+\\])*+\\])"],["(?(?>[^\\s()]+)|\\(\\g*\\))","(?(?>[^\\s()]+)|\\((?:(?>[^\\s()]+)|\\((?:(?>[^\\s()]+)|\\((?>[^\\s()]+)*\\))*\\))*\\))"]];var Vfe=Object.defineProperty,Pfe=(t,r,e)=>r in t?Vfe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,_S=(t,r,e)=>(Pfe(t,typeof r!="symbol"?r+"":r,e),e);const MS=4294967295;function Rfe(t){return xfe(t,{flags:"dgm",ignoreContiguousAnchors:!0})}class Dfe{constructor(r,e={}){this.patterns=r,this.options=e,_S(this,"regexps"),_S(this,"contiguousAnchorSimulation");const{forgiving:n=!1,cache:i,simulation:o=!0,regexConstructor:a=Rfe}=e;this.contiguousAnchorSimulation=Array.from({length:r.length},()=>!1),this.regexps=r.map((s,l)=>{o&&(s=s.replaceAll("(^|\\￿)","(^|\\G)")),o&&(s.startsWith("(^|\\G)")||s.startsWith("(\\G|^)"))&&(this.contiguousAnchorSimulation[l]=!0);const c=i?.get(s);if(c){if(c instanceof RegExp)return c;if(n)return null;throw c}try{let u=s;if(o)for(const[h,d]of Hfe)u=u.replaceAll(h,d);const g=a(u);return i?.set(s,g),g}catch(u){if(i?.set(s,u),n)return null;throw u}})}findNextMatchSync(r,e){const n=typeof r=="string"?r:r.content,i=[];function o(a,s,l=0){return{index:a,captureIndices:s.indices.map(c=>c==null?{end:MS,start:MS,length:0}:{start:c[0]+l,length:c[1]-c[0],end:c[1]+l})}}for(let a=0;as[1].index));for(const[s,l,c]of i)if(l.index===a)return o(s,l,c)}return null}}function Nfe(t={}){const r={cache:new Map,...t};return{createScanner(e){return new Dfe(e,r)},createString(e){return{content:e}}}}function Bfe(t){return Array.isArray(t)?t:[t]}function gI(t,r=!1){const e=t.split(/(\r?\n)/g);let n=0;const i=[];for(let o=0;oe&&n.push({...t,content:t.content.slice(e,i),offset:t.offset+e}),e=i;return en-i);return e.length?t.map(n=>n.flatMap(i=>{const o=e.filter(a=>i.offseta-i.offset).sort((a,s)=>a-s);return o.length?Ufe(i,o):i})):t}async function WU(t){return Promise.resolve(typeof t=="function"?t():t).then(r=>r.default||r)}function Fv(t,r){const e=typeof t=="string"?{}:{...t.colorReplacements},n=typeof t=="string"?t:t.name;for(const[i,o]of Object.entries(r?.colorReplacements||{}))typeof o=="string"?e[i]=o:i===n&&Object.assign(e,o);return e}function $l(t,r){return t&&(r?.[t?.toLowerCase()]||t)}function ZU(t){const r={};return t.color&&(r.color=t.color),t.bgColor&&(r["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&ja.Italic&&(r["font-style"]="italic"),t.fontStyle&ja.Bold&&(r["font-weight"]="bold"),t.fontStyle&ja.Underline&&(r["text-decoration"]="underline")),r}function Wfe(t){return typeof t=="string"?t:Object.entries(t).map(([r,e])=>`${r}:${e}`).join(";")}function Zfe(t){const r=gI(t,!0).map(([i])=>i);function e(i){if(i===t.length)return{line:r.length-1,character:r[r.length-1].length};let o=i,a=0;for(const s of r){if(or in t?Kfe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,zS=(t,r,e)=>(Yfe(t,typeof r!="symbol"?r+"":r,e),e);const KU=new WeakMap;function hI(t,r){KU.set(t,r)}function zd(t){return KU.get(t)}class qu{constructor(...r){if(zS(this,"_stacks",{}),zS(this,"lang"),r.length===2){const[e,n]=r;this.lang=n,this._stacks=e}else{const[e,n,i]=r;this.lang=n,this._stacks={[i]:e}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(r,e){return new qu(Object.fromEntries(Bfe(e).map(n=>[n,A8])),r)}getInternalStack(r=this.theme){return this._stacks[r]}get scopes(){return ES(this._stacks[this.theme])}getScopes(r=this.theme){return ES(this._stacks[r])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function ES(t){const r=[],e=new Set;function n(i){if(e.has(i))return;e.add(i);const o=i?.nameScopesList?.scopeName;o&&r.push(o),i.parent&&n(i.parent)}return n(t),r}function Xfe(t,r){if(!(t instanceof qu))throw new Fn("Invalid grammar state");return t.getInternalStack(r)}function qfe(){const t=new WeakMap;function r(e){if(!t.has(e.meta)){let n=function(a){if(typeof a=="number"){if(a<0||a>e.source.length)throw new Fn(`Invalid decoration offset: ${a}. Code length: ${e.source.length}`);return{...i.indexToPos(a),offset:a}}else{const s=i.lines[a.line];if(s===void 0)throw new Fn(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);if(a.character<0||a.character>s.length)throw new Fn(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,offset:i.posToIndex(a.line,a.character)}}};const i=Zfe(e.source),o=(e.options.decorations||[]).map(a=>({...a,start:n(a.start),end:n(a.end)}));Qfe(o),t.set(e.meta,{decorations:o,converter:i,source:e.source})}return t.get(e.meta)}return{name:"shiki:decorations",tokens(e){if(!this.options.decorations?.length)return;const i=r(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Gfe(e,i)},code(e){if(!this.options.decorations?.length)return;const n=r(this),i=Array.from(e.children).filter(u=>u.type==="element"&&u.tagName==="span");if(i.length!==n.converter.lines.length)throw new Fn(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(u,g,h,d){const f=i[u];let C="",v=-1,A=-1;if(g===0&&(v=0),h===0&&(A=0),h===Number.POSITIVE_INFINITY&&(A=f.children.length),v===-1||A===-1)for(let p=0;pC);return u.tagName=g.tagName||"span",u.properties={...u.properties,...d,class:u.properties.class},g.properties?.class&&GU(u,g.properties.class),u=f(u,h)||u,u}const l=[],c=n.decorations.sort((u,g)=>g.start.offset-u.start.offset);for(const u of c){const{start:g,end:h}=u;if(g.line===h.line)o(g.line,g.character,h.character,u);else if(g.linea(d,u));o(h.line,0,h.character,u)}}l.forEach(u=>u())}}}function Qfe(t){for(let r=0;re.end.offset)throw new Fn(`Invalid decoration range: ${JSON.stringify(e.start)} - ${JSON.stringify(e.end)}`);for(let n=r+1;nNumber.parseInt(a));o.length===3&&!o.some(a=>Number.isNaN(a))&&(i={type:"rgb",rgb:o})}else if(n==="5"){const o=Number.parseInt(t[r+e]);Number.isNaN(o)||(i={type:"table",index:Number(o)})}return[e,i]}function t0e(t){const r=[];for(let e=0;e=90&&i<=97?r.push({type:"setForegroundColor",value:{type:"named",name:_l[i-90+8]}}):i>=100&&i<=107&&r.push({type:"setBackgroundColor",value:{type:"named",name:_l[i-100+8]}})}return r}function r0e(){let t=null,r=null,e=new Set;return{parse(n){const i=[];let o=0;do{const a=e0e(n,o),s=a.sequence?n.substring(o,a.startPosition):n.substring(o);if(s.length>0&&i.push({value:s,foreground:t,background:r,decorations:new Set(e)}),a.sequence){const l=t0e(a.sequence);for(const c of l)c.type==="resetAll"?(t=null,r=null,e.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?r=null:c.type==="resetDecoration"&&e.delete(c.value);for(const c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?r=c.value:c.type==="setDecoration"&&e.add(c.value)}o=a.position}while(oMath.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let c=0;c<_l.length;c++)n.push(r(_l[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let g=0;g<6;g++)n.push(e([s[c],s[u],s[g]]));let l=8;for(let c=0;c<24;c++,l+=10)n.push(e([l,l,l]));return n}function o(s){return i()[s]}function a(s){switch(s.type){case"named":return r(s.name);case"rgb":return e(s.rgb);case"table":return o(s.index)}}return{value:a}}function o0e(t,r,e){const n=Fv(t,e),i=gI(r),o=i0e(Object.fromEntries(_l.map(s=>[s,t.colors?.[`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`]]))),a=r0e();return i.map(s=>a.parse(s[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?o.value(l.background):t.bg,u=l.foreground?o.value(l.foreground):t.fg):(c=l.foreground?o.value(l.foreground):t.fg,u=l.background?o.value(l.background):void 0),c=$l(c,n),u=$l(u,n),l.decorations.has("dim")&&(c=a0e(c));let g=ja.None;return l.decorations.has("bold")&&(g|=ja.Bold),l.decorations.has("italic")&&(g|=ja.Italic),l.decorations.has("underline")&&(g|=ja.Underline),{content:l.value,offset:s[1],color:c,bgColor:u,fontStyle:g}}))}function a0e(t){const r=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(r)if(r[3]){const n=Math.round(Number.parseInt(r[3],16)/2).toString(16).padStart(2,"0");return`#${r[1]}${r[2]}${n}`}else return r[2]?`#${r[1]}${r[2]}80`:`#${Array.from(r[1]).map(n=>`${n}${n}`).join("")}80`;const e=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return e?`var(${e[1]}-dim)`:t}function iw(t,r,e={}){const{lang:n="text",theme:i=t.getLoadedThemes()[0]}=e;if(rw(n)||nw(i))return gI(r).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:a}=t.setTheme(i);if(n==="ansi")return o0e(o,r,e);const s=t.getLanguage(n);if(e.grammarState){if(e.grammarState.lang!==s.name)throw new xl(`Grammar state language "${e.grammarState.lang}" does not match highlight language "${s.name}"`);if(!e.grammarState.themes.includes(o.name))throw new xl(`Grammar state themes "${e.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return l0e(r,s,o,a,e)}function s0e(...t){if(t.length===2)return zd(t[1]);const[r,e,n={}]=t,{lang:i="text",theme:o=r.getLoadedThemes()[0]}=n;if(rw(i)||nw(o))throw new xl("Plain language does not have grammar state");if(i==="ansi")throw new xl("ANSI language does not have grammar state");const{theme:a,colorMap:s}=r.setTheme(o),l=r.getLanguage(i);return new qu(Uv(e,l,a,s,n).stateStack,l.name,a.name)}function l0e(t,r,e,n,i){const o=Uv(t,r,e,n,i),a=new qu(Uv(t,r,e,n,i).stateStack,r.name,e.name);return hI(o.tokens,a),o.tokens}function Uv(t,r,e,n,i){const o=Fv(e,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=i,l=gI(t);let c=i.grammarState?Xfe(i.grammarState,e.name)??A8:i.grammarContextCode!=null?Uv(i.grammarContextCode,r,e,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:A8,u=[];const g=[];for(let h=0,d=l.length;h0&&f.length>=a){u=[],g.push([{content:f,offset:C,color:"",fontStyle:0}]);continue}let v,A,I;i.includeExplanation&&(v=r.tokenizeLine(f,c),A=v.tokens,I=0);const p=r.tokenizeLine2(f,c,s),m=p.tokens.length/2;for(let b=0;bF.trim());break;case"object":U=N.scope;break;default:continue}P.push({settings:N,selectors:U.map(F=>F.split(/ /))})}H.explanation=[];let R=0;for(;_+R({scopeName:r}))}function u0e(t,r){const e=[];for(let n=0,i=r.length;n=0&&i>=0;)TS(t[n],e[i])&&(n-=1),i-=1;return n===-1}function h0e(t,r,e){const n=[];for(const{selectors:i,settings:o}of t)for(const a of i)if(g0e(a,r,e)){n.push(o);break}return n}function XU(t,r,e){const n=Object.entries(e.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=n.map(l=>{const c=iw(t,r,{...e,theme:l.theme}),u=zd(c),g=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:g}}),o=d0e(...i.map(l=>l.tokens)),a=o[0].map((l,c)=>l.map((u,g)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in e&&e.includeExplanation&&(h.explanation=u.explanation),o.forEach((d,f)=>{const{content:C,explanation:v,offset:A,...I}=d[c][g];h.variants[n[f].color]=I}),h})),s=i[0].state?new qu(Object.fromEntries(i.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;return s&&hI(a,s),a}function d0e(...t){const r=t.map(()=>[]),e=t.length;for(let n=0;nl[n]),o=r.map(()=>[]);r.forEach((l,c)=>l.push(o[c]));const a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(c=>c.content.length));for(let c=0;cv[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,A)=>v.color===c?-1:A.color===c?1:0);if(g.length===0)throw new xl("`themes` option must not be empty");const h=XU(t,r,e);if(l=zd(h),c&&!g.find(v=>v.color===c))throw new xl(`\`themes\` option must contain the defaultColor key \`${c}\``);const d=g.map(v=>t.getTheme(v.theme)),f=g.map(v=>v.color);o=h.map(v=>v.map(A=>f0e(A,f,u,c))),l&&hI(o,l);const C=g.map(v=>Fv(v.theme,e));i=g.map((v,A)=>(A===0&&c?"":`${u+v.color}:`)+($l(d[A].fg,C[A])||"inherit")).join(";"),n=g.map((v,A)=>(A===0&&c?"":`${u+v.color}-bg:`)+($l(d[A].bg,C[A])||"inherit")).join(";"),a=`shiki-themes ${d.map(v=>v.name).join(" ")}`,s=c?void 0:[i,n].join(";")}else if("theme"in e){const c=Fv(e.theme,e);o=iw(t,r,e);const u=t.getTheme(e.theme);n=$l(u.bg,c),i=$l(u.fg,c),a=u.name,l=zd(o)}else throw new xl("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:a,rootStyle:s,grammarState:l}}function f0e(t,r,e,n){const i={content:t.content,explanation:t.explanation,offset:t.offset},o=r.map(l=>ZU(t.variants[l])),a=new Set(o.flatMap(l=>Object.keys(l))),s={};return o.forEach((l,c)=>{for(const u of a){const g=l[u]||"inherit";if(c===0&&n)s[u]=g;else{const h=u==="color"?"":u==="background-color"?"-bg":`-${u}`,d=e+r[c]+(u==="color"?"":h);s[d]=g}}}),i.htmlStyle=s,i}function Wv(t,r,e,n={meta:{},options:e,codeToHast:(i,o)=>Wv(t,i,o),codeToTokens:(i,o)=>Gv(t,i,o)}){let i=r;for(const d of jv(e))i=d.preprocess?.call(n,i,e)||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:c,grammarState:u}=Gv(t,i,e);const{mergeWhitespaces:g=!0}=e;g===!0?o=v0e(o):g==="never"&&(o=A0e(o));const h={...n,get source(){return i}};for(const d of jv(e))o=d.tokens?.call(h,o)||o;return C0e(o,{...e,fg:a,bg:s,themeName:l,rootStyle:c},h,u)}function C0e(t,r,e,n=zd(t)){const i=jv(r),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=r;let c={type:"element",tagName:"pre",properties:{class:`shiki ${r.themeName||""}`,style:r.rootStyle||`background-color:${r.bg};color:${r.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(r.meta||{})).filter(([f])=>!f.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const g=[],h={...e,structure:s,addClassToHast:GU,get source(){return e.source},get tokens(){return t},get options(){return r},get root(){return a},get pre(){return c},get code(){return u},get lines(){return g}};if(t.forEach((f,C)=>{C&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:` `}));let v={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const I of f){let p={type:"element",tagName:"span",properties:{...I.htmlAttrs},children:[{type:"text",value:I.content}]};I.htmlStyle;const m=Wfe(I.htmlStyle||ZU(I));m&&(p.properties.style=m);for(const b of i)p=b?.span?.call(h,p,C+1,A,v,I)||p;s==="inline"?a.children.push(p):s==="classic"&&v.children.push(p),A+=I.content.length}if(s==="classic"){for(const I of i)v=I?.line?.call(h,v,C+1)||v;g.push(v),o.push(v)}}),s==="classic"){for(const f of i)u=f?.code?.call(h,u)||u;c.children.push(u);for(const f of i)c=f?.pre?.call(h,c)||c;a.children.push(c)}let d=a;for(const f of i)d=f?.root?.call(h,d)||d;return n&&hI(d,n),d}function v0e(t){return t.map(r=>{const e=[];let n="",i=0;return r.forEach((o,a)=>{const l=!(o.fontStyle&&o.fontStyle&ja.Underline);l&&o.content.match(/^\s+$/)&&r[a+1]?(i||(i=o.offset),n+=o.content):n?(l?e.push({...o,offset:i,content:n+o.content}):e.push({content:n,offset:i},o),i=0,n=""):e.push(o)}),e})}function A0e(t){return t.map(r=>r.flatMap(e=>{if(e.content.match(/^\s+$/))return e;const n=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return e;const[,i,o,a]=n;if(!i&&!a)return e;const s=[{...e,offset:e.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:e.offset}),a&&s.push({content:a,offset:e.offset+i.length+o.length}),s}))}function I0e(t,r,e){const n={meta:{},options:e,codeToHast:(o,a)=>Wv(t,o,a),codeToTokens:(o,a)=>Gv(t,o,a)};let i=Zde(Wv(t,r,e,n));for(const o of jv(e))i=o.postprocess?.call(n,i,e)||i;return i}const LS={light:"#333333",dark:"#bbbbbb"},kS={light:"#fffffe",dark:"#1e1e1e"},OS="__shiki_resolved";function ow(t){if(t?.[OS])return t;const r={...t};r.tokenColors&&!r.settings&&(r.settings=r.tokenColors,delete r.tokenColors),r.type||(r.type="dark"),r.colorReplacements={...r.colorReplacements},r.settings||(r.settings=[]);let{bg:e,fg:n}=r;if(!e||!n){const s=r.settings?r.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(n=s.settings.foreground),s?.settings?.background&&(e=s.settings.background),!n&&r?.colors?.["editor.foreground"]&&(n=r.colors["editor.foreground"]),!e&&r?.colors?.["editor.background"]&&(e=r.colors["editor.background"]),n||(n=r.type==="light"?LS.light:LS.dark),e||(e=r.type==="light"?kS.light:kS.dark),r.fg=n,r.bg=e}r.settings[0]&&r.settings[0].settings&&!r.settings[0].scope||r.settings.unshift({settings:{foreground:r.fg,background:r.bg}});let i=0;const o=new Map;function a(s){if(o.has(s))return o.get(s);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return r.colorReplacements?.[`#${l}`]?a(s):(o.set(s,l),l)}r.settings=r.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;const u={...s,settings:{...s.settings}};if(l){const g=a(s.settings.foreground);r.colorReplacements[g]=s.settings.foreground,u.settings.foreground=g}if(c){const g=a(s.settings.background);r.colorReplacements[g]=s.settings.background,u.settings.background=g}return u});for(const s of Object.keys(r.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!r.colors[s]?.startsWith("#")){const l=a(r.colors[s]);r.colorReplacements[l]=r.colors[s],r.colors[s]=l}return Object.defineProperty(r,OS,{enumerable:!1,writable:!1,value:!0}),r}async function qU(t){return Array.from(new Set((await Promise.all(t.filter(r=>!Ffe(r)).map(async r=>await WU(r).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function QU(t){return(await Promise.all(t.map(async e=>jfe(e)?null:ow(await WU(e))))).filter(e=>!!e)}var p0e=Object.defineProperty,m0e=(t,r,e)=>r in t?p0e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,hl=(t,r,e)=>(m0e(t,typeof r!="symbol"?r+"":r,e),e);class y0e extends khe{constructor(r,e,n,i={}){super(r),this._resolver=r,this._themes=e,this._langs=n,this._alias=i,hl(this,"_resolvedThemes",new Map),hl(this,"_resolvedGrammars",new Map),hl(this,"_langMap",new Map),hl(this,"_langGraph",new Map),hl(this,"_textmateThemeCache",new WeakMap),hl(this,"_loadedThemesCache",null),hl(this,"_loadedLanguagesCache",null),this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const e=ow(r);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let e=this._textmateThemeCache.get(r);e||(e=Pv.createFromRawTheme(r),this._textmateThemeCache.set(r,e)),this._syncRegistry.setTheme(e)}getGrammar(r){if(this._alias[r]){const e=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],e.has(r))throw new Fn(`Circular alias \`${Array.from(e).join(" -> ")} -> ${r}\``);e.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){if(this.getGrammar(r.name))return;const e=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(r.name)));this._resolver.addLanguage(r);const n={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const i=this.loadGrammarWithConfiguration(r.scopeName,1,n);if(i.name=r.name,this._resolvedGrammars.set(r.name,i),r.aliases&&r.aliases.forEach(o=>{this._alias[o]=r.name}),this._loadedLanguagesCache=null,e.size)for(const o of e)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const i of r)this.resolveEmbeddedLanguages(i);const e=Array.from(this._langGraph.entries()),n=e.filter(([i,o])=>!o);if(n.length){const i=e.filter(([o,a])=>a&&a.embeddedLangs?.some(s=>n.map(([l])=>l).includes(s))).filter(o=>!n.includes(o));throw new Fn(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of e)this._resolver.addLanguage(o);for(const[i,o]of e)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const e of r.embeddedLangs)this._langGraph.set(e,this._langMap.get(e))}}var b0e=Object.defineProperty,w0e=(t,r,e)=>r in t?b0e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,sC=(t,r,e)=>(w0e(t,typeof r!="symbol"?r+"":r,e),e);class $0e{constructor(r,e){sC(this,"_langs",new Map),sC(this,"_scopeToLang",new Map),sC(this,"_injections",new Map),sC(this,"_onigLib"),this._onigLib={createOnigScanner:n=>r.createScanner(n),createOnigString:n=>r.createString(n)},e.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(r){return this._langs.get(r)}loadGrammar(r){return this._scopeToLang.get(r)}addLanguage(r){this._langs.set(r.name,r),r.aliases&&r.aliases.forEach(e=>{this._langs.set(e,r)}),this._scopeToLang.set(r.scopeName,r),r.injectTo&&r.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(r.scopeName)})}getInjections(r){const e=r.split(".");let n=[];for(let i=1;i<=e.length;i++){const o=e.slice(0,i).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}let Xg=0;function _0e(t){Xg+=1,t.warnings!==!1&&Xg>=10&&Xg%10===0&&console.warn(`[Shiki] ${Xg} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!t.engine)throw new Fn("`engine` option is required for synchronous mode");const e=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(ow),i=new $0e(t.engine,e),o=new y0e(i,n,e,t.langAlias);let a;function s(I){v();const p=o.getGrammar(typeof I=="string"?I:I.name);if(!p)throw new Fn(`Language \`${I}\` not found, you may need to load it first`);return p}function l(I){if(I==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const p=o.getTheme(I);if(!p)throw new Fn(`Theme \`${I}\` not found, you may need to load it first`);return p}function c(I){v();const p=l(I);a!==I&&(o.setTheme(p),a=I);const m=o.getColorMap();return{theme:p,colorMap:m}}function u(){return v(),o.getLoadedThemes()}function g(){return v(),o.getLoadedLanguages()}function h(...I){v(),o.loadLanguages(I.flat(1))}async function d(...I){return h(await qU(I))}function f(...I){v();for(const p of I.flat(1))o.loadTheme(p)}async function C(...I){return v(),f(await QU(I))}function v(){if(r)throw new Fn("Shiki instance has been disposed")}function A(){r||(r=!0,o.dispose(),Xg-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:g,loadLanguage:d,loadLanguageSync:h,loadTheme:C,loadThemeSync:f,dispose:A,[Symbol.dispose]:A}}async function M0e(t={}){t.loadWasm;const[r,e,n]=await Promise.all([QU(t.themes||[]),qU(t.langs||[]),t.engine||Wge(t.loadWasm||Gge())]);return _0e({...t,loadWasm:void 0,themes:r,langs:e,engine:n})}async function z0e(t={}){const r=await M0e(t);return{getLastGrammarState:(...e)=>s0e(r,...e),codeToTokensBase:(e,n)=>iw(r,e,n),codeToTokensWithThemes:(e,n)=>XU(r,e,n),codeToTokens:(e,n)=>Gv(r,e,n),codeToHast:(e,n)=>Wv(r,e,n),codeToHtml:(e,n)=>I0e(r,e,n),...r,getInternalContext:()=>r}}function E0e(t){return Nfe(t)}const S0e={"baseline-10k":'',"baseline-10mp":'',"baseline-11mp":'',"baseline-123":'',"baseline-12mp":'',"baseline-13mp":'',"baseline-14mp":'',"baseline-15mp":'',"baseline-16mp":'',"baseline-17mp":'',"baseline-18-up-rating":'',"baseline-18mp":'',"baseline-19mp":'',"baseline-1k":'',"baseline-1k-plus":'',"baseline-1x-mobiledata":'',"baseline-20mp":'',"baseline-21mp":'',"baseline-22mp":'',"baseline-23mp":'',"baseline-24mp":'',"baseline-2k":'',"baseline-2k-plus":'',"baseline-2mp":'',"baseline-30fps":'',"baseline-30fps-select":'',"baseline-360":'',"baseline-3d-rotation":'',"baseline-3g-mobiledata":'',"baseline-3k":'',"baseline-3k-plus":'',"baseline-3mp":'',"baseline-3p":'',"baseline-4g-mobiledata":'',"baseline-4g-plus-mobiledata":'',"baseline-4k":'',"baseline-4k-plus":'',"baseline-4mp":'',"baseline-5g":'',"baseline-5k":'',"baseline-5k-plus":'',"baseline-5mp":'',"baseline-6-ft-apart":'',"baseline-60fps":'',"baseline-60fps-select":'',"baseline-6k":'',"baseline-6k-plus":'',"baseline-6mp":'',"baseline-7k":'',"baseline-7k-plus":'',"baseline-7mp":'',"baseline-8k":'',"baseline-8k-plus":'',"baseline-8mp":'',"baseline-9k":'',"baseline-9k-plus":'',"baseline-9mp":'',"baseline-abc":'',"baseline-ac-unit":'',"baseline-access-alarm":'',"baseline-access-alarms":'',"baseline-access-time":'',"baseline-access-time-filled":'',"baseline-accessibility":'',"baseline-accessibility-new":'',"baseline-accessible":'',"baseline-accessible-forward":'',"baseline-account-balance":'',"baseline-account-balance-wallet":'',"baseline-account-box":'',"baseline-account-circle":'',"baseline-account-tree":'',"baseline-ad-units":'',"baseline-adb":'',"baseline-add":'',"baseline-add-a-photo":'',"baseline-add-alarm":'',"baseline-add-alert":'',"baseline-add-box":'',"baseline-add-business":'',"baseline-add-card":'',"baseline-add-chart":'',"baseline-add-circle":'',"baseline-add-circle-outline":'',"baseline-add-comment":'',"baseline-add-home":'',"baseline-add-home-work":'',"baseline-add-ic-call":'',"baseline-add-link":'',"baseline-add-location":'',"baseline-add-location-alt":'',"baseline-add-moderator":'',"baseline-add-photo-alternate":'',"baseline-add-reaction":'',"baseline-add-road":'',"baseline-add-shopping-cart":'',"baseline-add-task":'',"baseline-add-to-drive":'',"baseline-add-to-home-screen":'',"baseline-add-to-photos":'',"baseline-add-to-queue":'',"baseline-addchart":'',"baseline-adf-scanner":'',"baseline-adjust":'',"baseline-admin-panel-settings":'',"baseline-adobe":'',"baseline-ads-click":'',"baseline-agriculture":'',"baseline-air":'',"baseline-airline-seat-flat":'',"baseline-airline-seat-flat-angled":'',"baseline-airline-seat-individual-suite":'',"baseline-airline-seat-legroom-extra":'',"baseline-airline-seat-legroom-normal":'',"baseline-airline-seat-legroom-reduced":'',"baseline-airline-seat-recline-extra":'',"baseline-airline-seat-recline-normal":'',"baseline-airline-stops":'',"baseline-airlines":'',"baseline-airplane-ticket":'',"baseline-airplanemode-active":'',"baseline-airplanemode-inactive":'',"baseline-airplay":'',"baseline-airport-shuttle":'',"baseline-alarm":'',"baseline-alarm-add":'',"baseline-alarm-off":'',"baseline-alarm-on":'',"baseline-album":'',"baseline-align-horizontal-center":'',"baseline-align-horizontal-left":'',"baseline-align-horizontal-right":'',"baseline-align-vertical-bottom":'',"baseline-align-vertical-center":'',"baseline-align-vertical-top":'',"baseline-all-inbox":'',"baseline-all-inclusive":'',"baseline-all-out":'',"baseline-alt-route":'',"baseline-alternate-email":'',"baseline-amp-stories":'',"baseline-analytics":'',"baseline-anchor":'',"baseline-android":'',"baseline-animation":'',"baseline-announcement":'',"baseline-aod":'',"baseline-apartment":'',"baseline-api":'',"baseline-app-blocking":'',"baseline-app-registration":'',"baseline-app-settings-alt":'',"baseline-app-shortcut":'',"baseline-apple":'',"baseline-approval":'',"baseline-apps":'',"baseline-apps-outage":'',"baseline-architecture":'',"baseline-archive":'',"baseline-area-chart":'',"baseline-arrow-back":'',"baseline-arrow-back-ios":'',"baseline-arrow-back-ios-new":'',"baseline-arrow-circle-down":'',"baseline-arrow-circle-left":'',"baseline-arrow-circle-right":'',"baseline-arrow-circle-up":'',"baseline-arrow-downward":'',"baseline-arrow-drop-down":'',"baseline-arrow-drop-down-circle":'',"baseline-arrow-drop-up":'',"baseline-arrow-forward":'',"baseline-arrow-forward-ios":'',"baseline-arrow-left":'',"baseline-arrow-outward":'',"baseline-arrow-right":'',"baseline-arrow-right-alt":'',"baseline-arrow-upward":'',"baseline-art-track":'',"baseline-article":'',"baseline-aspect-ratio":'',"baseline-assessment":'',"baseline-assignment":'',"baseline-assignment-ind":'',"baseline-assignment-late":'',"baseline-assignment-return":'',"baseline-assignment-returned":'',"baseline-assignment-turned-in":'',"baseline-assist-walker":'',"baseline-assistant":'',"baseline-assistant-direction":'',"baseline-assistant-photo":'',"baseline-assured-workload":'',"baseline-atm":'',"baseline-attach-email":'',"baseline-attach-file":'',"baseline-attach-money":'',"baseline-attachment":'',"baseline-attractions":'',"baseline-attribution":'',"baseline-audio-file":'',"baseline-audiotrack":'',"baseline-auto-awesome":'',"baseline-auto-awesome-mosaic":'',"baseline-auto-awesome-motion":'',"baseline-auto-delete":'',"baseline-auto-fix-high":'',"baseline-auto-fix-normal":'',"baseline-auto-fix-off":'',"baseline-auto-graph":'',"baseline-auto-mode":'',"baseline-auto-stories":'',"baseline-autofps-select":'',"baseline-autorenew":'',"baseline-av-timer":'',"baseline-baby-changing-station":'',"baseline-back-hand":'',"baseline-backpack":'',"baseline-backspace":'',"baseline-backup":'',"baseline-backup-table":'',"baseline-badge":'',"baseline-bakery-dining":'',"baseline-balance":'',"baseline-balcony":'',"baseline-ballot":'',"baseline-bar-chart":'',"baseline-barcode":'',"baseline-batch-prediction":'',"baseline-bathroom":'',"baseline-bathtub":'',"baseline-battery-0-bar":'',"baseline-battery-1-bar":'',"baseline-battery-2-bar":'',"baseline-battery-20":'',"baseline-battery-3-bar":'',"baseline-battery-30":'',"baseline-battery-4-bar":'',"baseline-battery-5-bar":'',"baseline-battery-50":'',"baseline-battery-6-bar":'',"baseline-battery-60":'',"baseline-battery-80":'',"baseline-battery-90":'',"baseline-battery-alert":'',"baseline-battery-charging-20":'',"baseline-battery-charging-30":'',"baseline-battery-charging-50":'',"baseline-battery-charging-60":'',"baseline-battery-charging-80":'',"baseline-battery-charging-90":'',"baseline-battery-charging-full":'',"baseline-battery-full":'',"baseline-battery-saver":'',"baseline-battery-std":'',"baseline-battery-unknown":'',"baseline-beach-access":'',"baseline-bed":'',"baseline-bedroom-baby":'',"baseline-bedroom-child":'',"baseline-bedroom-parent":'',"baseline-bedtime":'',"baseline-bedtime-off":'',"baseline-beenhere":'',"baseline-bento":'',"baseline-bike-scooter":'',"baseline-biotech":'',"baseline-blender":'',"baseline-blind":'',"baseline-blinds":'',"baseline-blinds-closed":'',"baseline-block":'',"baseline-bloodtype":'',"baseline-bluetooth":'',"baseline-bluetooth-audio":'',"baseline-bluetooth-connected":'',"baseline-bluetooth-disabled":'',"baseline-bluetooth-drive":'',"baseline-bluetooth-searching":'',"baseline-blur-circular":'',"baseline-blur-linear":'',"baseline-blur-off":'',"baseline-blur-on":'',"baseline-bolt":'',"baseline-book":'',"baseline-book-online":'',"baseline-bookmark":'',"baseline-bookmark-add":'',"baseline-bookmark-added":'',"baseline-bookmark-border":'',"baseline-bookmark-remove":'',"baseline-bookmarks":'',"baseline-border-all":'',"baseline-border-bottom":'',"baseline-border-clear":'',"baseline-border-color":'',"baseline-border-horizontal":'',"baseline-border-inner":'',"baseline-border-left":'',"baseline-border-outer":'',"baseline-border-right":'',"baseline-border-style":'',"baseline-border-top":'',"baseline-border-vertical":'',"baseline-boy":'',"baseline-branding-watermark":'',"baseline-breakfast-dining":'',"baseline-brightness-1":'',"baseline-brightness-2":'',"baseline-brightness-3":'',"baseline-brightness-4":'',"baseline-brightness-5":'',"baseline-brightness-6":'',"baseline-brightness-7":'',"baseline-brightness-auto":'',"baseline-brightness-high":'',"baseline-brightness-low":'',"baseline-brightness-medium":'',"baseline-broadcast-on-home":'',"baseline-broadcast-on-personal":'',"baseline-broken-image":'',"baseline-browse-gallery":'',"baseline-browser-not-supported":'',"baseline-browser-updated":'',"baseline-brunch-dining":'',"baseline-brush":'',"baseline-bubble-chart":'',"baseline-bug-report":'',"baseline-build":'',"baseline-build-circle":'',"baseline-bungalow":'',"baseline-burst-mode":'',"baseline-bus-alert":'',"baseline-business":'',"baseline-business-center":'',"baseline-cabin":'',"baseline-cable":'',"baseline-cached":'',"baseline-cake":'',"baseline-calculate":'',"baseline-calendar-month":'',"baseline-calendar-today":'',"baseline-calendar-view-day":'',"baseline-calendar-view-month":'',"baseline-calendar-view-week":'',"baseline-call":'',"baseline-call-end":'',"baseline-call-made":'',"baseline-call-merge":'',"baseline-call-missed":'',"baseline-call-missed-outgoing":'',"baseline-call-received":'',"baseline-call-split":'',"baseline-call-to-action":'',"baseline-camera":'',"baseline-camera-alt":'',"baseline-camera-enhance":'',"baseline-camera-front":'',"baseline-camera-indoor":'',"baseline-camera-outdoor":'',"baseline-camera-rear":'',"baseline-camera-roll":'',"baseline-cameraswitch":'',"baseline-campaign":'',"baseline-cancel":'',"baseline-cancel-presentation":'',"baseline-cancel-schedule-send":'',"baseline-candlestick-chart":'',"baseline-car-crash":'',"baseline-car-rental":'',"baseline-car-repair":'',"baseline-card-giftcard":'',"baseline-card-membership":'',"baseline-card-travel":'',"baseline-carpenter":'',"baseline-cases":'',"baseline-casino":'',"baseline-cast":'',"baseline-cast-connected":'',"baseline-cast-for-education":'',"baseline-castle":'',"baseline-catching-pokemon":'',"baseline-category":'',"baseline-celebration":'',"baseline-cell-tower":'',"baseline-cell-wifi":'',"baseline-center-focus-strong":'',"baseline-center-focus-weak":'',"baseline-chair":'',"baseline-chair-alt":'',"baseline-chalet":'',"baseline-change-circle":'',"baseline-change-history":'',"baseline-charging-station":'',"baseline-chat":'',"baseline-chat-bubble":'',"baseline-chat-bubble-outline":'',"baseline-check":'',"baseline-check-box":'',"baseline-check-box-outline-blank":'',"baseline-check-circle":'',"baseline-check-circle-outline":'',"baseline-checklist":'',"baseline-checklist-rtl":'',"baseline-checkroom":'',"baseline-chevron-left":'',"baseline-chevron-right":'',"baseline-child-care":'',"baseline-child-friendly":'',"baseline-chrome-reader-mode":'',"baseline-church":'',"baseline-circle":'',"baseline-circle-notifications":'',"baseline-class":'',"baseline-clean-hands":'',"baseline-cleaning-services":'',"baseline-clear":'',"baseline-clear-all":'',"baseline-close":'',"baseline-close-fullscreen":'',"baseline-closed-caption":'',"baseline-closed-caption-disabled":'',"baseline-closed-caption-off":'',"baseline-cloud":'',"baseline-cloud-circle":'',"baseline-cloud-done":'',"baseline-cloud-download":'',"baseline-cloud-off":'',"baseline-cloud-queue":'',"baseline-cloud-sync":'',"baseline-cloud-upload":'',"baseline-co-present":'',"baseline-co2":'',"baseline-code":'',"baseline-code-off":'',"baseline-coffee":'',"baseline-coffee-maker":'',"baseline-collections":'',"baseline-collections-bookmark":'',"baseline-color-lens":'',"baseline-colorize":'',"baseline-comment":'',"baseline-comment-bank":'',"baseline-comments-disabled":'',"baseline-commit":'',"baseline-commute":'',"baseline-compare":'',"baseline-compare-arrows":'',"baseline-compass-calibration":'',"baseline-compost":'',"baseline-compress":'',"baseline-computer":'',"baseline-confirmation-number":'',"baseline-connect-without-contact":'',"baseline-connected-tv":'',"baseline-connecting-airports":'',"baseline-construction":'',"baseline-contact-emergency":'',"baseline-contact-mail":'',"baseline-contact-page":'',"baseline-contact-phone":'',"baseline-contact-support":'',"baseline-contactless":'',"baseline-contacts":'',"baseline-content-copy":'',"baseline-content-cut":'',"baseline-content-paste":'',"baseline-content-paste-go":'',"baseline-content-paste-off":'',"baseline-content-paste-search":'',"baseline-contrast":'',"baseline-control-camera":'',"baseline-control-point":'',"baseline-control-point-duplicate":'',"baseline-cookie":'',"baseline-copy-all":'',"baseline-copyright":'',"baseline-coronavirus":'',"baseline-corporate-fare":'',"baseline-cottage":'',"baseline-countertops":'',"baseline-create":'',"baseline-create-new-folder":'',"baseline-credit-card":'',"baseline-credit-card-off":'',"baseline-credit-score":'',"baseline-crib":'',"baseline-crisis-alert":'',"baseline-crop":'',"baseline-crop-16-9":'',"baseline-crop-3-2":'',"baseline-crop-5-4":'',"baseline-crop-7-5":'',"baseline-crop-din":'',"baseline-crop-free":'',"baseline-crop-landscape":'',"baseline-crop-original":'',"baseline-crop-portrait":'',"baseline-crop-rotate":'',"baseline-crop-square":'',"baseline-cruelty-free":'',"baseline-css":'',"baseline-currency-bitcoin":'',"baseline-currency-exchange":'',"baseline-currency-franc":'',"baseline-currency-lira":'',"baseline-currency-pound":'',"baseline-currency-ruble":'',"baseline-currency-rupee":'',"baseline-currency-yen":'',"baseline-currency-yuan":'',"baseline-curtains":'',"baseline-curtains-closed":'',"baseline-cyclone":'',"baseline-dangerous":'',"baseline-dark-mode":'',"baseline-dashboard":'',"baseline-dashboard-customize":'',"baseline-data-array":'',"baseline-data-exploration":'',"baseline-data-object":'',"baseline-data-saver-off":'',"baseline-data-saver-on":'',"baseline-data-thresholding":'',"baseline-data-usage":'',"baseline-dataset":'',"baseline-dataset-linked":'',"baseline-date-range":'',"baseline-deblur":'',"baseline-deck":'',"baseline-dehaze":'',"baseline-delete":'',"baseline-delete-forever":'',"baseline-delete-outline":'',"baseline-delete-sweep":'',"baseline-delivery-dining":'',"baseline-density-large":'',"baseline-density-medium":'',"baseline-density-small":'',"baseline-departure-board":'',"baseline-description":'',"baseline-deselect":'',"baseline-design-services":'',"baseline-desk":'',"baseline-desktop-access-disabled":'',"baseline-desktop-mac":'',"baseline-desktop-windows":'',"baseline-details":'',"baseline-developer-board":'',"baseline-developer-board-off":'',"baseline-developer-mode":'',"baseline-device-hub":'',"baseline-device-thermostat":'',"baseline-device-unknown":'',"baseline-devices":'',"baseline-devices-fold":'',"baseline-devices-other":'',"baseline-dialer-sip":'',"baseline-dialpad":'',"baseline-diamond":'',"baseline-difference":'',"baseline-dining":'',"baseline-dinner-dining":'',"baseline-directions":'',"baseline-directions-bike":'',"baseline-directions-boat":'',"baseline-directions-boat-filled":'',"baseline-directions-bus":'',"baseline-directions-bus-filled":'',"baseline-directions-car":'',"baseline-directions-car-filled":'',"baseline-directions-off":'',"baseline-directions-railway":'',"baseline-directions-railway-filled":'',"baseline-directions-run":'',"baseline-directions-subway":'',"baseline-directions-subway-filled":'',"baseline-directions-transit":'',"baseline-directions-transit-filled":'',"baseline-directions-walk":'',"baseline-dirty-lens":'',"baseline-disabled-by-default":'',"baseline-disabled-visible":'',"baseline-disc-full":'',"baseline-discord":'',"baseline-discount":'',"baseline-display-settings":'',"baseline-diversity-1":'',"baseline-diversity-2":'',"baseline-diversity-3":'',"baseline-divide":'',"baseline-dns":'',"baseline-do-disturb":'',"baseline-do-disturb-alt":'',"baseline-do-disturb-off":'',"baseline-do-disturb-on":'',"baseline-do-not-disturb":'',"baseline-do-not-disturb-alt":'',"baseline-do-not-disturb-off":'',"baseline-do-not-disturb-on":'',"baseline-do-not-disturb-on-total-silence":'',"baseline-do-not-step":'',"baseline-do-not-touch":'',"baseline-dock":'',"baseline-document-scanner":'',"baseline-domain":'',"baseline-domain-add":'',"baseline-domain-disabled":'',"baseline-domain-verification":'',"baseline-done":'',"baseline-done-all":'',"baseline-done-outline":'',"baseline-donut-large":'',"baseline-donut-small":'',"baseline-door-back":'',"baseline-door-front":'',"baseline-door-sliding":'',"baseline-doorbell":'',"baseline-double-arrow":'',"baseline-downhill-skiing":'',"baseline-download":'',"baseline-download-done":'',"baseline-download-for-offline":'',"baseline-downloading":'',"baseline-drafts":'',"baseline-drag-handle":'',"baseline-drag-indicator":'',"baseline-draw":'',"baseline-drive-eta":'',"baseline-drive-file-move":'',"baseline-drive-file-move-rtl":'',"baseline-drive-file-rename-outline":'',"baseline-drive-folder-upload":'',"baseline-dry":'',"baseline-dry-cleaning":'',"baseline-duo":'',"baseline-dvr":'',"baseline-dynamic-feed":'',"baseline-dynamic-form":'',"baseline-e-mobiledata":'',"baseline-earbuds":'',"baseline-earbuds-battery":'',"baseline-east":'',"baseline-eco":'',"baseline-edgesensor-high":'',"baseline-edgesensor-low":'',"baseline-edit":'',"baseline-edit-attributes":'',"baseline-edit-calendar":'',"baseline-edit-location":'',"baseline-edit-location-alt":'',"baseline-edit-note":'',"baseline-edit-notifications":'',"baseline-edit-off":'',"baseline-edit-road":'',"baseline-egg":'',"baseline-egg-alt":'',"baseline-eject":'',"baseline-elderly":'',"baseline-elderly-woman":'',"baseline-electric-bike":'',"baseline-electric-bolt":'',"baseline-electric-car":'',"baseline-electric-meter":'',"baseline-electric-moped":'',"baseline-electric-rickshaw":'',"baseline-electric-scooter":'',"baseline-electrical-services":'',"baseline-elevator":'',"baseline-email":'',"baseline-emergency":'',"baseline-emergency-recording":'',"baseline-emergency-share":'',"baseline-emoji-emotions":'',"baseline-emoji-events":'',"baseline-emoji-flags":'',"baseline-emoji-food-beverage":'',"baseline-emoji-nature":'',"baseline-emoji-objects":'',"baseline-emoji-people":'',"baseline-emoji-symbols":'',"baseline-emoji-transportation":'',"baseline-energy-savings-leaf":'',"baseline-engineering":'',"baseline-enhanced-encryption":'',"baseline-equalizer":'',"baseline-equals":'',"baseline-error":'',"baseline-error-outline":'',"baseline-escalator":'',"baseline-escalator-warning":'',"baseline-euro":'',"baseline-euro-symbol":'',"baseline-ev-station":'',"baseline-event":'',"baseline-event-available":'',"baseline-event-busy":'',"baseline-event-note":'',"baseline-event-repeat":'',"baseline-event-seat":'',"baseline-exit-to-app":'',"baseline-expand":'',"baseline-expand-circle-down":'',"baseline-expand-less":'',"baseline-expand-more":'',"baseline-explicit":'',"baseline-explore":'',"baseline-explore-off":'',"baseline-exposure":'',"baseline-exposure-neg-1":'',"baseline-exposure-neg-2":'',"baseline-exposure-plus-1":'',"baseline-exposure-plus-2":'',"baseline-exposure-zero":'',"baseline-extension":'',"baseline-extension-off":'',"baseline-face":'',"baseline-face-2":'',"baseline-face-3":'',"baseline-face-4":'',"baseline-face-5":'',"baseline-face-6":'',"baseline-face-retouching-natural":'',"baseline-face-retouching-off":'',"baseline-facebook":'',"baseline-fact-check":'',"baseline-factory":'',"baseline-family-restroom":'',"baseline-fast-forward":'',"baseline-fast-rewind":'',"baseline-fastfood":'',"baseline-favorite":'',"baseline-favorite-border":'',"baseline-fax":'',"baseline-featured-play-list":'',"baseline-featured-video":'',"baseline-feed":'',"baseline-feedback":'',"baseline-female":'',"baseline-fence":'',"baseline-festival":'',"baseline-fiber-dvr":'',"baseline-fiber-manual-record":'',"baseline-fiber-new":'',"baseline-fiber-pin":'',"baseline-fiber-smart-record":'',"baseline-file-copy":'',"baseline-file-download":'',"baseline-file-download-done":'',"baseline-file-download-off":'',"baseline-file-open":'',"baseline-file-present":'',"baseline-file-upload":'',"baseline-filter":'',"baseline-filter-1":'',"baseline-filter-2":'',"baseline-filter-3":'',"baseline-filter-4":'',"baseline-filter-5":'',"baseline-filter-6":'',"baseline-filter-7":'',"baseline-filter-8":'',"baseline-filter-9":'',"baseline-filter-9-plus":'',"baseline-filter-alt":'',"baseline-filter-alt-off":'',"baseline-filter-b-and-w":'',"baseline-filter-center-focus":'',"baseline-filter-drama":'',"baseline-filter-frames":'',"baseline-filter-hdr":'',"baseline-filter-list":'',"baseline-filter-list-off":'',"baseline-filter-none":'',"baseline-filter-tilt-shift":'',"baseline-filter-vintage":'',"baseline-find-in-page":'',"baseline-find-replace":'',"baseline-fingerprint":'',"baseline-fire-extinguisher":'',"baseline-fire-hydrant-alt":'',"baseline-fire-truck":'',"baseline-fireplace":'',"baseline-first-page":'',"baseline-fit-screen":'',"baseline-fitbit":'',"baseline-fitness-center":'',"baseline-flag":'',"baseline-flag-circle":'',"baseline-flaky":'',"baseline-flare":'',"baseline-flash-auto":'',"baseline-flash-off":'',"baseline-flash-on":'',"baseline-flashlight-off":'',"baseline-flashlight-on":'',"baseline-flatware":'',"baseline-flight":'',"baseline-flight-class":'',"baseline-flight-land":'',"baseline-flight-takeoff":'',"baseline-flip":'',"baseline-flip-camera-android":'',"baseline-flip-camera-ios":'',"baseline-flip-to-back":'',"baseline-flip-to-front":'',"baseline-flood":'',"baseline-flourescent":'',"baseline-fluorescent":'',"baseline-flutter-dash":'',"baseline-fmd-bad":'',"baseline-fmd-good":'',"baseline-folder":'',"baseline-folder-copy":'',"baseline-folder-delete":'',"baseline-folder-off":'',"baseline-folder-open":'',"baseline-folder-shared":'',"baseline-folder-special":'',"baseline-folder-zip":'',"baseline-follow-the-signs":'',"baseline-font-download":'',"baseline-font-download-off":'',"baseline-food-bank":'',"baseline-forest":'',"baseline-fork-left":'',"baseline-fork-right":'',"baseline-format-align-center":'',"baseline-format-align-justify":'',"baseline-format-align-left":'',"baseline-format-align-right":'',"baseline-format-bold":'',"baseline-format-clear":'',"baseline-format-color-fill":'',"baseline-format-color-reset":'',"baseline-format-color-text":'',"baseline-format-indent-decrease":'',"baseline-format-indent-increase":'',"baseline-format-italic":'',"baseline-format-line-spacing":'',"baseline-format-list-bulleted":'',"baseline-format-list-numbered":'',"baseline-format-list-numbered-rtl":'',"baseline-format-overline":'',"baseline-format-paint":'',"baseline-format-quote":'',"baseline-format-shapes":'',"baseline-format-size":'',"baseline-format-strikethrough":'',"baseline-format-textdirection-l-to-r":'',"baseline-format-textdirection-r-to-l":'',"baseline-format-underlined":'',"baseline-fort":'',"baseline-forum":'',"baseline-forward":'',"baseline-forward-10":'',"baseline-forward-30":'',"baseline-forward-5":'',"baseline-forward-to-inbox":'',"baseline-foundation":'',"baseline-free-breakfast":'',"baseline-free-cancellation":'',"baseline-front-hand":'',"baseline-fullscreen":'',"baseline-fullscreen-exit":'',"baseline-functions":'',"baseline-g-mobiledata":'',"baseline-g-translate":'',"baseline-gamepad":'',"baseline-games":'',"baseline-garage":'',"baseline-gas-meter":'',"baseline-gavel":'',"baseline-generating-tokens":'',"baseline-gesture":'',"baseline-get-app":'',"baseline-gif":'',"baseline-gif-box":'',"baseline-girl":'',"baseline-gite":'',"baseline-golf-course":'',"baseline-gpp-bad":'',"baseline-gpp-good":'',"baseline-gpp-maybe":'',"baseline-gps-fixed":'',"baseline-gps-not-fixed":'',"baseline-gps-off":'',"baseline-grade":'',"baseline-gradient":'',"baseline-grading":'',"baseline-grain":'',"baseline-graphic-eq":'',"baseline-grass":'',"baseline-greater-than":'',"baseline-greater-than-equal":'',"baseline-grid-3x3":'',"baseline-grid-4x4":'',"baseline-grid-goldenratio":'',"baseline-grid-off":'',"baseline-grid-on":'',"baseline-grid-view":'',"baseline-group":'',"baseline-group-add":'',"baseline-group-off":'',"baseline-group-remove":'',"baseline-group-work":'',"baseline-groups":'',"baseline-groups-2":'',"baseline-groups-3":'',"baseline-h-mobiledata":'',"baseline-h-plus-mobiledata":'',"baseline-hail":'',"baseline-handshake":'',"baseline-handyman":'',"baseline-hardware":'',"baseline-hd":'',"baseline-hdr-auto":'',"baseline-hdr-auto-select":'',"baseline-hdr-enhanced-select":'',"baseline-hdr-off":'',"baseline-hdr-off-select":'',"baseline-hdr-on":'',"baseline-hdr-on-select":'',"baseline-hdr-plus":'',"baseline-hdr-strong":'',"baseline-hdr-weak":'',"baseline-headphones":'',"baseline-headphones-battery":'',"baseline-headset":'',"baseline-headset-mic":'',"baseline-headset-off":'',"baseline-healing":'',"baseline-health-and-safety":'',"baseline-hearing":'',"baseline-hearing-disabled":'',"baseline-heart-broken":'',"baseline-heat-pump":'',"baseline-height":'',"baseline-help":'',"baseline-help-center":'',"baseline-help-outline":'',"baseline-hevc":'',"baseline-hexagon":'',"baseline-hide-image":'',"baseline-hide-source":'',"baseline-high-quality":'',"baseline-highlight":'',"baseline-highlight-alt":'',"baseline-highlight-off":'',"baseline-hiking":'',"baseline-history":'',"baseline-history-edu":'',"baseline-history-toggle-off":'',"baseline-hive":'',"baseline-hls":'',"baseline-hls-off":'',"baseline-holiday-village":'',"baseline-home":'',"baseline-home-max":'',"baseline-home-mini":'',"baseline-home-repair-service":'',"baseline-home-work":'',"baseline-horizontal-distribute":'',"baseline-horizontal-rule":'',"baseline-horizontal-split":'',"baseline-hot-tub":'',"baseline-hotel":'',"baseline-hotel-class":'',"baseline-hourglass-bottom":'',"baseline-hourglass-disabled":'',"baseline-hourglass-empty":'',"baseline-hourglass-full":'',"baseline-hourglass-top":'',"baseline-house":'',"baseline-house-siding":'',"baseline-houseboat":'',"baseline-how-to-reg":'',"baseline-how-to-vote":'',"baseline-html":'',"baseline-http":'',"baseline-https":'',"baseline-hub":'',"baseline-hvac":'',"baseline-ice-skating":'',"baseline-icecream":'',"baseline-image":'',"baseline-image-aspect-ratio":'',"baseline-image-not-supported":'',"baseline-image-search":'',"baseline-imagesearch-roller":'',"baseline-import-contacts":'',"baseline-import-export":'',"baseline-important-devices":'',"baseline-inbox":'',"baseline-incomplete-circle":'',"baseline-indeterminate-check-box":'',"baseline-info":'',"baseline-input":'',"baseline-insert-chart":'',"baseline-insert-chart-outlined":'',"baseline-insert-comment":'',"baseline-insert-drive-file":'',"baseline-insert-emoticon":'',"baseline-insert-invitation":'',"baseline-insert-link":'',"baseline-insert-page-break":'',"baseline-insert-photo":'',"baseline-insights":'',"baseline-install-desktop":'',"baseline-install-mobile":'',"baseline-integration-instructions":'',"baseline-interests":'',"baseline-interpreter-mode":'',"baseline-inventory":'',"baseline-inventory-2":'',"baseline-invert-colors":'',"baseline-invert-colors-off":'',"baseline-ios-share":'',"baseline-iron":'',"baseline-iso":'',"baseline-javascript":'',"baseline-join-full":'',"baseline-join-inner":'',"baseline-join-left":'',"baseline-join-right":'',"baseline-kayaking":'',"baseline-kebab-dining":'',"baseline-key":'',"baseline-key-off":'',"baseline-keyboard":'',"baseline-keyboard-alt":'',"baseline-keyboard-arrow-down":'',"baseline-keyboard-arrow-left":'',"baseline-keyboard-arrow-right":'',"baseline-keyboard-arrow-up":'',"baseline-keyboard-backspace":'',"baseline-keyboard-capslock":'',"baseline-keyboard-command-key":'',"baseline-keyboard-control-key":'',"baseline-keyboard-double-arrow-down":'',"baseline-keyboard-double-arrow-left":'',"baseline-keyboard-double-arrow-right":'',"baseline-keyboard-double-arrow-up":'',"baseline-keyboard-hide":'',"baseline-keyboard-option-key":'',"baseline-keyboard-return":'',"baseline-keyboard-tab":'',"baseline-keyboard-voice":'',"baseline-king-bed":'',"baseline-kitchen":'',"baseline-kitesurfing":'',"baseline-label":'',"baseline-label-important":'',"baseline-label-off":'',"baseline-lan":'',"baseline-landscape":'',"baseline-landslide":'',"baseline-language":'',"baseline-laptop":'',"baseline-laptop-chromebook":'',"baseline-laptop-mac":'',"baseline-laptop-windows":'',"baseline-last-page":'',"baseline-launch":'',"baseline-layers":'',"baseline-layers-clear":'',"baseline-leaderboard":'',"baseline-leak-add":'',"baseline-leak-remove":'',"baseline-leave-bags-at-home":'',"baseline-legend-toggle":'',"baseline-lens":'',"baseline-lens-blur":'',"baseline-less-than":'',"baseline-less-than-equal":'',"baseline-library-add":'',"baseline-library-add-check":'',"baseline-library-books":'',"baseline-library-music":'',"baseline-light":'',"baseline-light-mode":'',"baseline-lightbulb":'',"baseline-lightbulb-circle":'',"baseline-line-axis":'',"baseline-line-style":'',"baseline-line-weight":'',"baseline-linear-scale":'',"baseline-link":'',"baseline-link-off":'',"baseline-linked-camera":'',"baseline-liquor":'',"baseline-list":'',"baseline-list-alt":'',"baseline-live-help":'',"baseline-live-tv":'',"baseline-living":'',"baseline-local-activity":'',"baseline-local-airport":'',"baseline-local-atm":'',"baseline-local-bar":'',"baseline-local-cafe":'',"baseline-local-car-wash":'',"baseline-local-convenience-store":'',"baseline-local-dining":'',"baseline-local-drink":'',"baseline-local-fire-department":'',"baseline-local-florist":'',"baseline-local-gas-station":'',"baseline-local-grocery-store":'',"baseline-local-hospital":'',"baseline-local-hotel":'',"baseline-local-laundry-service":'',"baseline-local-library":'',"baseline-local-mall":'',"baseline-local-movies":'',"baseline-local-offer":'',"baseline-local-parking":'',"baseline-local-pharmacy":'',"baseline-local-phone":'',"baseline-local-pizza":'',"baseline-local-play":'',"baseline-local-police":'',"baseline-local-post-office":'',"baseline-local-printshop":'',"baseline-local-see":'',"baseline-local-shipping":'',"baseline-local-taxi":'',"baseline-location-city":'',"baseline-location-disabled":'',"baseline-location-off":'',"baseline-location-on":'',"baseline-location-searching":'',"baseline-lock":'',"baseline-lock-clock":'',"baseline-lock-open":'',"baseline-lock-person":'',"baseline-lock-reset":'',"baseline-log-in":'',"baseline-log-out":'',"baseline-login":'',"baseline-logo-dev":'',"baseline-logout":'',"baseline-looks":'',"baseline-looks-3":'',"baseline-looks-4":'',"baseline-looks-5":'',"baseline-looks-6":'',"baseline-looks-one":'',"baseline-looks-two":'',"baseline-loop":'',"baseline-loupe":'',"baseline-low-priority":'',"baseline-loyalty":'',"baseline-lte-mobiledata":'',"baseline-lte-plus-mobiledata":'',"baseline-luggage":'',"baseline-lunch-dining":'',"baseline-lyrics":'',"baseline-macro-off":'',"baseline-mail":'',"baseline-mail-lock":'',"baseline-mail-outline":'',"baseline-male":'',"baseline-man":'',"baseline-man-2":'',"baseline-man-3":'',"baseline-man-4":'',"baseline-manage-accounts":'',"baseline-manage-history":'',"baseline-manage-search":'',"baseline-map":'',"baseline-maps-home-work":'',"baseline-maps-ugc":'',"baseline-margin":'',"baseline-mark-as-unread":'',"baseline-mark-chat-read":'',"baseline-mark-chat-unread":'',"baseline-mark-email-read":'',"baseline-mark-email-unread":'',"baseline-mark-unread-chat-alt":'',"baseline-markunread":'',"baseline-markunread-mailbox":'',"baseline-masks":'',"baseline-maximize":'',"baseline-media-bluetooth-off":'',"baseline-media-bluetooth-on":'',"baseline-mediation":'',"baseline-medical-information":'',"baseline-medical-services":'',"baseline-medication":'',"baseline-medication-liquid":'',"baseline-meeting-room":'',"baseline-memory":'',"baseline-menu":'',"baseline-menu-book":'',"baseline-menu-open":'',"baseline-merge":'',"baseline-merge-type":'',"baseline-message":'',"baseline-mic":'',"baseline-mic-external-off":'',"baseline-mic-external-on":'',"baseline-mic-none":'',"baseline-mic-off":'',"baseline-microwave":'',"baseline-military-tech":'',"baseline-minimize":'',"baseline-minor-crash":'',"baseline-minus":'',"baseline-miscellaneous-services":'',"baseline-missed-video-call":'',"baseline-mms":'',"baseline-mobile-friendly":'',"baseline-mobile-off":'',"baseline-mobile-screen-share":'',"baseline-mobiledata-off":'',"baseline-mode":'',"baseline-mode-comment":'',"baseline-mode-edit":'',"baseline-mode-edit-outline":'',"baseline-mode-fan-off":'',"baseline-mode-night":'',"baseline-mode-of-travel":'',"baseline-mode-standby":'',"baseline-model-training":'',"baseline-monetization-on":'',"baseline-money":'',"baseline-money-off":'',"baseline-money-off-csred":'',"baseline-monitor":'',"baseline-monitor-heart":'',"baseline-monitor-weight":'',"baseline-monochrome-photos":'',"baseline-mood":'',"baseline-mood-bad":'',"baseline-moped":'',"baseline-more":'',"baseline-more-horiz":'',"baseline-more-time":'',"baseline-more-vert":'',"baseline-mosque":'',"baseline-motion-photos-auto":'',"baseline-motion-photos-off":'',"baseline-motion-photos-on":'',"baseline-motion-photos-pause":'',"baseline-motion-photos-paused":'',"baseline-motorcycle":'',"baseline-mouse":'',"baseline-move-down":'',"baseline-move-to-inbox":'',"baseline-move-up":'',"baseline-movie":'',"baseline-movie-creation":'',"baseline-movie-filter":'',"baseline-moving":'',"baseline-mp":'',"baseline-multiline-chart":'',"baseline-multiple-stop":'',"baseline-museum":'',"baseline-music-note":'',"baseline-music-off":'',"baseline-music-video":'',"baseline-my-location":'',"baseline-nat":'',"baseline-nature":'',"baseline-nature-people":'',"baseline-navigate-before":'',"baseline-navigate-next":'',"baseline-navigation":'',"baseline-near-me":'',"baseline-near-me-disabled":'',"baseline-nearby-error":'',"baseline-nearby-off":'',"baseline-nest-cam-wired-stand":'',"baseline-network-cell":'',"baseline-network-check":'',"baseline-network-locked":'',"baseline-network-ping":'',"baseline-network-wifi":'',"baseline-network-wifi-1-bar":'',"baseline-network-wifi-2-bar":'',"baseline-network-wifi-3-bar":'',"baseline-new-label":'',"baseline-new-releases":'',"baseline-newspaper":'',"baseline-next-plan":'',"baseline-next-week":'',"baseline-nfc":'',"baseline-night-shelter":'',"baseline-nightlife":'',"baseline-nightlight":'',"baseline-nightlight-round":'',"baseline-nights-stay":'',"baseline-no-accounts":'',"baseline-no-adult-content":'',"baseline-no-backpack":'',"baseline-no-cell":'',"baseline-no-crash":'',"baseline-no-drinks":'',"baseline-no-encryption":'',"baseline-no-encryption-gmailerrorred":'',"baseline-no-flash":'',"baseline-no-food":'',"baseline-no-luggage":'',"baseline-no-meals":'',"baseline-no-meeting-room":'',"baseline-no-photography":'',"baseline-no-sim":'',"baseline-no-stroller":'',"baseline-no-transfer":'',"baseline-noise-aware":'',"baseline-noise-control-off":'',"baseline-nordic-walking":'',"baseline-north":'',"baseline-north-east":'',"baseline-north-west":'',"baseline-not-accessible":'',"baseline-not-equal":'',"baseline-not-interested":'',"baseline-not-listed-location":'',"baseline-not-started":'',"baseline-note":'',"baseline-note-add":'',"baseline-note-alt":'',"baseline-notes":'',"baseline-notification-add":'',"baseline-notification-important":'',"baseline-notifications":'',"baseline-notifications-active":'',"baseline-notifications-none":'',"baseline-notifications-off":'',"baseline-notifications-paused":'',"baseline-numbers":'',"baseline-offline-bolt":'',"baseline-offline-pin":'',"baseline-offline-share":'',"baseline-oil-barrel":'',"baseline-on-device-training":'',"baseline-ondemand-video":'',"baseline-online-prediction":'',"baseline-opacity":'',"baseline-open-in-browser":'',"baseline-open-in-full":'',"baseline-open-in-new":'',"baseline-open-in-new-off":'',"baseline-open-with":'',"baseline-other-houses":'',"baseline-outbond":'',"baseline-outbound":'',"baseline-outbox":'',"baseline-outdoor-grill":'',"baseline-outlet":'',"baseline-outlined-flag":'',"baseline-output":'',"baseline-padding":'',"baseline-pages":'',"baseline-pageview":'',"baseline-paid":'',"baseline-palette":'',"baseline-pan-tool":'',"baseline-pan-tool-alt":'',"baseline-panorama":'',"baseline-panorama-fish-eye":'',"baseline-panorama-horizontal":'',"baseline-panorama-horizontal-select":'',"baseline-panorama-photosphere":'',"baseline-panorama-photosphere-select":'',"baseline-panorama-vertical":'',"baseline-panorama-vertical-select":'',"baseline-panorama-wide-angle":'',"baseline-panorama-wide-angle-select":'',"baseline-paragliding":'',"baseline-park":'',"baseline-party-mode":'',"baseline-password":'',"baseline-pattern":'',"baseline-pause":'',"baseline-pause-circle":'',"baseline-pause-circle-filled":'',"baseline-pause-circle-outline":'',"baseline-pause-presentation":'',"baseline-payment":'',"baseline-payments":'',"baseline-paypal":'',"baseline-pedal-bike":'',"baseline-pending":'',"baseline-pending-actions":'',"baseline-pentagon":'',"baseline-people":'',"baseline-people-alt":'',"baseline-people-outline":'',"baseline-percent":'',"baseline-percentage":'',"baseline-perm-camera-mic":'',"baseline-perm-contact-calendar":'',"baseline-perm-data-setting":'',"baseline-perm-device-information":'',"baseline-perm-identity":'',"baseline-perm-media":'',"baseline-perm-phone-msg":'',"baseline-perm-scan-wifi":'',"baseline-person":'',"baseline-person-2":'',"baseline-person-3":'',"baseline-person-4":'',"baseline-person-add":'',"baseline-person-add-alt":'',"baseline-person-add-alt-1":'',"baseline-person-add-disabled":'',"baseline-person-off":'',"baseline-person-outline":'',"baseline-person-pin":'',"baseline-person-pin-circle":'',"baseline-person-remove":'',"baseline-person-remove-alt-1":'',"baseline-person-search":'',"baseline-personal-injury":'',"baseline-personal-video":'',"baseline-pest-control":'',"baseline-pest-control-rodent":'',"baseline-pets":'',"baseline-phishing":'',"baseline-phone":'',"baseline-phone-android":'',"baseline-phone-bluetooth-speaker":'',"baseline-phone-callback":'',"baseline-phone-disabled":'',"baseline-phone-enabled":'',"baseline-phone-forwarded":'',"baseline-phone-in-talk":'',"baseline-phone-iphone":'',"baseline-phone-locked":'',"baseline-phone-missed":'',"baseline-phone-paused":'',"baseline-phonelink":'',"baseline-phonelink-erase":'',"baseline-phonelink-lock":'',"baseline-phonelink-off":'',"baseline-phonelink-ring":'',"baseline-phonelink-setup":'',"baseline-photo":'',"baseline-photo-album":'',"baseline-photo-camera":'',"baseline-photo-camera-back":'',"baseline-photo-camera-front":'',"baseline-photo-filter":'',"baseline-photo-library":'',"baseline-photo-size-select-actual":'',"baseline-photo-size-select-large":'',"baseline-photo-size-select-small":'',"baseline-php":'',"baseline-piano":'',"baseline-piano-off":'',"baseline-picture-as-pdf":'',"baseline-picture-in-picture":'',"baseline-picture-in-picture-alt":'',"baseline-pie-chart":'',"baseline-pie-chart-outline":'',"baseline-pin":'',"baseline-pin-drop":'',"baseline-pin-end":'',"baseline-pin-invoke":'',"baseline-pin-off":'',"baseline-pinch":'',"baseline-pivot-table-chart":'',"baseline-pix":'',"baseline-place":'',"baseline-plagiarism":'',"baseline-play-arrow":'',"baseline-play-circle":'',"baseline-play-circle-filled":'',"baseline-play-circle-filled-white":'',"baseline-play-circle-outline":'',"baseline-play-disabled":'',"baseline-play-for-work":'',"baseline-play-lesson":'',"baseline-playlist-add":'',"baseline-playlist-add-check":'',"baseline-playlist-add-check-circle":'',"baseline-playlist-add-circle":'',"baseline-playlist-play":'',"baseline-playlist-remove":'',"baseline-plumbing":'',"baseline-plus":'',"baseline-plus-minus":'',"baseline-plus-minus-alt":'',"baseline-plus-one":'',"baseline-podcasts":'',"baseline-point-of-sale":'',"baseline-policy":'',"baseline-poll":'',"baseline-polyline":'',"baseline-polymer":'',"baseline-pool":'',"baseline-portable-wifi-off":'',"baseline-portrait":'',"baseline-post-add":'',"baseline-power":'',"baseline-power-input":'',"baseline-power-off":'',"baseline-power-settings-new":'',"baseline-precision-manufacturing":'',"baseline-pregnant-woman":'',"baseline-present-to-all":'',"baseline-preview":'',"baseline-price-change":'',"baseline-price-check":'',"baseline-print":'',"baseline-print-disabled":'',"baseline-priority-high":'',"baseline-privacy-tip":'',"baseline-private-connectivity":'',"baseline-production-quantity-limits":'',"baseline-propane":'',"baseline-propane-tank":'',"baseline-psychology":'',"baseline-psychology-alt":'',"baseline-public":'',"baseline-public-off":'',"baseline-publish":'',"baseline-published-with-changes":'',"baseline-punch-clock":'',"baseline-push-pin":'',"baseline-qr-code":'',"baseline-qr-code-2":'',"baseline-qr-code-scanner":'',"baseline-qrcode":'',"baseline-query-builder":'',"baseline-query-stats":'',"baseline-question-answer":'',"baseline-question-mark":'',"baseline-queue":'',"baseline-queue-music":'',"baseline-queue-play-next":'',"baseline-quickreply":'',"baseline-quiz":'',"baseline-quora":'',"baseline-r-mobiledata":'',"baseline-radar":'',"baseline-radio":'',"baseline-radio-button-checked":'',"baseline-radio-button-unchecked":'',"baseline-railway-alert":'',"baseline-ramen-dining":'',"baseline-ramp-left":'',"baseline-ramp-right":'',"baseline-rate-review":'',"baseline-raw-off":'',"baseline-raw-on":'',"baseline-read-more":'',"baseline-real-estate-agent":'',"baseline-receipt":'',"baseline-receipt-long":'',"baseline-recent-actors":'',"baseline-recommend":'',"baseline-record-voice-over":'',"baseline-rectangle":'',"baseline-recycling":'',"baseline-reddit":'',"baseline-redeem":'',"baseline-redo":'',"baseline-reduce-capacity":'',"baseline-refresh":'',"baseline-remember-me":'',"baseline-remove":'',"baseline-remove-circle":'',"baseline-remove-circle-outline":'',"baseline-remove-done":'',"baseline-remove-from-queue":'',"baseline-remove-moderator":'',"baseline-remove-red-eye":'',"baseline-remove-road":'',"baseline-remove-shopping-cart":'',"baseline-reorder":'',"baseline-repartition":'',"baseline-repeat":'',"baseline-repeat-on":'',"baseline-repeat-one":'',"baseline-repeat-one-on":'',"baseline-replay":'',"baseline-replay-10":'',"baseline-replay-30":'',"baseline-replay-5":'',"baseline-replay-circle-filled":'',"baseline-reply":'',"baseline-reply-all":'',"baseline-report":'',"baseline-report-gmailerrorred":'',"baseline-report-off":'',"baseline-report-problem":'',"baseline-request-page":'',"baseline-request-quote":'',"baseline-reset-tv":'',"baseline-restart-alt":'',"baseline-restaurant":'',"baseline-restaurant-menu":'',"baseline-restore":'',"baseline-restore-from-trash":'',"baseline-restore-page":'',"baseline-reviews":'',"baseline-rice-bowl":'',"baseline-ring-volume":'',"baseline-rocket":'',"baseline-rocket-launch":'',"baseline-roller-shades":'',"baseline-roller-shades-closed":'',"baseline-roller-skating":'',"baseline-roofing":'',"baseline-room":'',"baseline-room-preferences":'',"baseline-room-service":'',"baseline-rotate-90-degrees-ccw":'',"baseline-rotate-90-degrees-cw":'',"baseline-rotate-left":'',"baseline-rotate-right":'',"baseline-roundabout-left":'',"baseline-roundabout-right":'',"baseline-rounded-corner":'',"baseline-route":'',"baseline-router":'',"baseline-rowing":'',"baseline-rss-feed":'',"baseline-rsvp":'',"baseline-rtt":'',"baseline-rule":'',"baseline-rule-folder":'',"baseline-run-circle":'',"baseline-running-with-errors":'',"baseline-rv-hookup":'',"baseline-safety-check":'',"baseline-safety-divider":'',"baseline-sailing":'',"baseline-sanitizer":'',"baseline-satellite":'',"baseline-satellite-alt":'',"baseline-save":'',"baseline-save-all":'',"baseline-save-alt":'',"baseline-save-as":'',"baseline-saved-search":'',"baseline-savings":'',"baseline-scale":'',"baseline-scanner":'',"baseline-scatter-plot":'',"baseline-schedule":'',"baseline-schedule-send":'',"baseline-schema":'',"baseline-school":'',"baseline-science":'',"baseline-score":'',"baseline-scoreboard":'',"baseline-screen-lock-landscape":'',"baseline-screen-lock-portrait":'',"baseline-screen-lock-rotation":'',"baseline-screen-rotation":'',"baseline-screen-rotation-alt":'',"baseline-screen-search-desktop":'',"baseline-screen-share":'',"baseline-screenshot":'',"baseline-screenshot-monitor":'',"baseline-scuba-diving":'',"baseline-sd":'',"baseline-sd-card":'',"baseline-sd-card-alert":'',"baseline-sd-storage":'',"baseline-search":'',"baseline-search-off":'',"baseline-security":'',"baseline-security-update":'',"baseline-security-update-good":'',"baseline-security-update-warning":'',"baseline-segment":'',"baseline-select-all":'',"baseline-self-improvement":'',"baseline-sell":'',"baseline-send":'',"baseline-send-and-archive":'',"baseline-send-time-extension":'',"baseline-send-to-mobile":'',"baseline-sensor-door":'',"baseline-sensor-occupied":'',"baseline-sensor-window":'',"baseline-sensors":'',"baseline-sensors-off":'',"baseline-sentiment-dissatisfied":'',"baseline-sentiment-neutral":'',"baseline-sentiment-satisfied":'',"baseline-sentiment-satisfied-alt":'',"baseline-sentiment-slightly-dissatisfied":'',"baseline-sentiment-very-dissatisfied":'',"baseline-sentiment-very-satisfied":'',"baseline-set-meal":'',"baseline-settings":'',"baseline-settings-accessibility":'',"baseline-settings-applications":'',"baseline-settings-backup-restore":'',"baseline-settings-bluetooth":'',"baseline-settings-brightness":'',"baseline-settings-cell":'',"baseline-settings-ethernet":'',"baseline-settings-input-antenna":'',"baseline-settings-input-component":'',"baseline-settings-input-composite":'',"baseline-settings-input-hdmi":'',"baseline-settings-input-svideo":'',"baseline-settings-overscan":'',"baseline-settings-phone":'',"baseline-settings-power":'',"baseline-settings-remote":'',"baseline-settings-suggest":'',"baseline-settings-system-daydream":'',"baseline-settings-voice":'',"baseline-severe-cold":'',"baseline-shape-line":'',"baseline-share":'',"baseline-share-arrival-time":'',"baseline-share-location":'',"baseline-shield":'',"baseline-shield-moon":'',"baseline-shop":'',"baseline-shop-2":'',"baseline-shop-two":'',"baseline-shopify":'',"baseline-shopping-bag":'',"baseline-shopping-basket":'',"baseline-shopping-cart":'',"baseline-shopping-cart-checkout":'',"baseline-short-text":'',"baseline-shortcut":'',"baseline-show-chart":'',"baseline-shower":'',"baseline-shuffle":'',"baseline-shuffle-on":'',"baseline-shutter-speed":'',"baseline-sick":'',"baseline-sign-language":'',"baseline-signal-cellular-0-bar":'',"baseline-signal-cellular-1-bar":'',"baseline-signal-cellular-2-bar":'',"baseline-signal-cellular-3-bar":'',"baseline-signal-cellular-4-bar":'',"baseline-signal-cellular-alt":'',"baseline-signal-cellular-alt-1-bar":'',"baseline-signal-cellular-alt-2-bar":'',"baseline-signal-cellular-connected-no-internet-0-bar":'',"baseline-signal-cellular-connected-no-internet-1-bar":'',"baseline-signal-cellular-connected-no-internet-2-bar":'',"baseline-signal-cellular-connected-no-internet-3-bar":'',"baseline-signal-cellular-connected-no-internet-4-bar":'',"baseline-signal-cellular-no-sim":'',"baseline-signal-cellular-nodata":'',"baseline-signal-cellular-null":'',"baseline-signal-cellular-off":'',"baseline-signal-wifi-0-bar":'',"baseline-signal-wifi-1-bar":'',"baseline-signal-wifi-1-bar-lock":'',"baseline-signal-wifi-2-bar":'',"baseline-signal-wifi-2-bar-lock":'',"baseline-signal-wifi-3-bar":'',"baseline-signal-wifi-3-bar-lock":'',"baseline-signal-wifi-4-bar":'',"baseline-signal-wifi-4-bar-lock":'',"baseline-signal-wifi-bad":'',"baseline-signal-wifi-connected-no-internet-4":'',"baseline-signal-wifi-off":'',"baseline-signal-wifi-statusbar-4-bar":'',"baseline-signal-wifi-statusbar-connected-no-internet-4":'',"baseline-signal-wifi-statusbar-null":'',"baseline-signpost":'',"baseline-sim-card":'',"baseline-sim-card-alert":'',"baseline-sim-card-download":'',"baseline-single-bed":'',"baseline-sip":'',"baseline-skateboarding":'',"baseline-skip-next":'',"baseline-skip-previous":'',"baseline-sledding":'',"baseline-slideshow":'',"baseline-slow-motion-video":'',"baseline-smart-button":'',"baseline-smart-display":'',"baseline-smart-screen":'',"baseline-smart-toy":'',"baseline-smartphone":'',"baseline-smoke-free":'',"baseline-smoking-rooms":'',"baseline-sms":'',"baseline-sms-failed":'',"baseline-snapchat":'',"baseline-snippet-folder":'',"baseline-snooze":'',"baseline-snowboarding":'',"baseline-snowmobile":'',"baseline-snowshoeing":'',"baseline-soap":'',"baseline-social-distance":'',"baseline-solar-power":'',"baseline-sort":'',"baseline-sort-by-alpha":'',"baseline-sos":'',"baseline-soup-kitchen":'',"baseline-source":'',"baseline-south":'',"baseline-south-america":'',"baseline-south-east":'',"baseline-south-west":'',"baseline-spa":'',"baseline-space-bar":'',"baseline-space-dashboard":'',"baseline-spatial-audio":'',"baseline-spatial-audio-off":'',"baseline-spatial-tracking":'',"baseline-speaker":'',"baseline-speaker-group":'',"baseline-speaker-notes":'',"baseline-speaker-notes-off":'',"baseline-speaker-phone":'',"baseline-speed":'',"baseline-spellcheck":'',"baseline-splitscreen":'',"baseline-spoke":'',"baseline-sports":'',"baseline-sports-bar":'',"baseline-sports-baseball":'',"baseline-sports-basketball":'',"baseline-sports-cricket":'',"baseline-sports-esports":'',"baseline-sports-football":'',"baseline-sports-golf":'',"baseline-sports-gymnastics":'',"baseline-sports-handball":'',"baseline-sports-hockey":'',"baseline-sports-kabaddi":'',"baseline-sports-martial-arts":'',"baseline-sports-mma":'',"baseline-sports-motorsports":'',"baseline-sports-rugby":'',"baseline-sports-score":'',"baseline-sports-soccer":'',"baseline-sports-tennis":'',"baseline-sports-volleyball":'',"baseline-square":'',"baseline-square-foot":'',"baseline-ssid-chart":'',"baseline-stacked-bar-chart":'',"baseline-stacked-line-chart":'',"baseline-stadium":'',"baseline-stairs":'',"baseline-star":'',"baseline-star-border":'',"baseline-star-border-purple500":'',"baseline-star-half":'',"baseline-star-outline":'',"baseline-star-purple500":'',"baseline-star-rate":'',"baseline-stars":'',"baseline-start":'',"baseline-stay-current-landscape":'',"baseline-stay-current-portrait":'',"baseline-stay-primary-landscape":'',"baseline-stay-primary-portrait":'',"baseline-sticky-note-2":'',"baseline-stop":'',"baseline-stop-circle":'',"baseline-stop-screen-share":'',"baseline-storage":'',"baseline-store":'',"baseline-store-mall-directory":'',"baseline-storefront":'',"baseline-storm":'',"baseline-straight":'',"baseline-straighten":'',"baseline-stream":'',"baseline-streetview":'',"baseline-strikethrough-s":'',"baseline-stroller":'',"baseline-style":'',"baseline-subdirectory-arrow-left":'',"baseline-subdirectory-arrow-right":'',"baseline-subject":'',"baseline-subscript":'',"baseline-subscriptions":'',"baseline-subtitles":'',"baseline-subtitles-off":'',"baseline-subway":'',"baseline-summarize":'',"baseline-superscript":'',"baseline-supervised-user-circle":'',"baseline-supervisor-account":'',"baseline-support":'',"baseline-support-agent":'',"baseline-surfing":'',"baseline-surround-sound":'',"baseline-swap-calls":'',"baseline-swap-horiz":'',"baseline-swap-horizontal-circle":'',"baseline-swap-vert":'',"baseline-swap-vertical-circle":'',"baseline-swipe":'',"baseline-swipe-down":'',"baseline-swipe-down-alt":'',"baseline-swipe-left":'',"baseline-swipe-left-alt":'',"baseline-swipe-right":'',"baseline-swipe-right-alt":'',"baseline-swipe-up":'',"baseline-swipe-up-alt":'',"baseline-swipe-vertical":'',"baseline-switch-access-shortcut":'',"baseline-switch-access-shortcut-add":'',"baseline-switch-account":'',"baseline-switch-camera":'',"baseline-switch-left":'',"baseline-switch-right":'',"baseline-switch-video":'',"baseline-synagogue":'',"baseline-sync":'',"baseline-sync-alt":'',"baseline-sync-disabled":'',"baseline-sync-lock":'',"baseline-sync-problem":'',"baseline-system-security-update":'',"baseline-system-security-update-good":'',"baseline-system-security-update-warning":'',"baseline-system-update":'',"baseline-system-update-alt":'',"baseline-tab":'',"baseline-tab-unselected":'',"baseline-table-bar":'',"baseline-table-chart":'',"baseline-table-restaurant":'',"baseline-table-rows":'',"baseline-table-view":'',"baseline-tablet":'',"baseline-tablet-android":'',"baseline-tablet-mac":'',"baseline-tag":'',"baseline-tag-faces":'',"baseline-takeout-dining":'',"baseline-tap-and-play":'',"baseline-tapas":'',"baseline-task":'',"baseline-task-alt":'',"baseline-taxi-alert":'',"baseline-telegram":'',"baseline-temple-buddhist":'',"baseline-temple-hindu":'',"baseline-terminal":'',"baseline-terrain":'',"baseline-text-decrease":'',"baseline-text-fields":'',"baseline-text-format":'',"baseline-text-increase":'',"baseline-text-rotate-up":'',"baseline-text-rotate-vertical":'',"baseline-text-rotation-angledown":'',"baseline-text-rotation-angleup":'',"baseline-text-rotation-down":'',"baseline-text-rotation-none":'',"baseline-text-snippet":'',"baseline-textsms":'',"baseline-texture":'',"baseline-theater-comedy":'',"baseline-theaters":'',"baseline-thermostat":'',"baseline-thermostat-auto":'',"baseline-thumb-down":'',"baseline-thumb-down-alt":'',"baseline-thumb-down-off-alt":'',"baseline-thumb-up":'',"baseline-thumb-up-alt":'',"baseline-thumb-up-off-alt":'',"baseline-thumbs-up-down":'',"baseline-thunderstorm":'',"baseline-tiktok":'',"baseline-time-to-leave":'',"baseline-timelapse":'',"baseline-timeline":'',"baseline-timer":'',"baseline-timer-10":'',"baseline-timer-10-select":'',"baseline-timer-3":'',"baseline-timer-3-select":'',"baseline-timer-off":'',"baseline-tips-and-updates":'',"baseline-tire-repair":'',"baseline-title":'',"baseline-toc":'',"baseline-today":'',"baseline-toggle-off":'',"baseline-toggle-on":'',"baseline-token":'',"baseline-toll":'',"baseline-tonality":'',"baseline-topic":'',"baseline-tornado":'',"baseline-touch-app":'',"baseline-tour":'',"baseline-toys":'',"baseline-track-changes":'',"baseline-traffic":'',"baseline-train":'',"baseline-tram":'',"baseline-transcribe":'',"baseline-transfer-within-a-station":'',"baseline-transform":'',"baseline-transgender":'',"baseline-transit-enterexit":'',"baseline-translate":'',"baseline-travel-explore":'',"baseline-trending-down":'',"baseline-trending-flat":'',"baseline-trending-up":'',"baseline-trip-origin":'',"baseline-troubleshoot":'',"baseline-try":'',"baseline-tsunami":'',"baseline-tty":'',"baseline-tune":'',"baseline-tungsten":'',"baseline-turn-left":'',"baseline-turn-right":'',"baseline-turn-sharp-left":'',"baseline-turn-sharp-right":'',"baseline-turn-slight-left":'',"baseline-turn-slight-right":'',"baseline-turned-in":'',"baseline-turned-in-not":'',"baseline-tv":'',"baseline-tv-off":'',"baseline-two-wheeler":'',"baseline-type-specimen":'',"baseline-u-turn-left":'',"baseline-u-turn-right":'',"baseline-umbrella":'',"baseline-unarchive":'',"baseline-undo":'',"baseline-unfold-less":'',"baseline-unfold-less-double":'',"baseline-unfold-more":'',"baseline-unfold-more-double":'',"baseline-unpublished":'',"baseline-unsubscribe":'',"baseline-upcoming":'',"baseline-update":'',"baseline-update-disabled":'',"baseline-upgrade":'',"baseline-upload":'',"baseline-upload-file":'',"baseline-usb":'',"baseline-usb-off":'',"baseline-vaccines":'',"baseline-vape-free":'',"baseline-vaping-rooms":'',"baseline-verified":'',"baseline-verified-user":'',"baseline-vertical-align-bottom":'',"baseline-vertical-align-center":'',"baseline-vertical-align-top":'',"baseline-vertical-distribute":'',"baseline-vertical-shades":'',"baseline-vertical-shades-closed":'',"baseline-vertical-split":'',"baseline-vibration":'',"baseline-video-call":'',"baseline-video-camera-back":'',"baseline-video-camera-front":'',"baseline-video-chat":'',"baseline-video-file":'',"baseline-video-label":'',"baseline-video-library":'',"baseline-video-settings":'',"baseline-video-stable":'',"baseline-videocam":'',"baseline-videocam-off":'',"baseline-videogame-asset":'',"baseline-videogame-asset-off":'',"baseline-view-agenda":'',"baseline-view-array":'',"baseline-view-carousel":'',"baseline-view-column":'',"baseline-view-comfy":'',"baseline-view-comfy-alt":'',"baseline-view-compact":'',"baseline-view-compact-alt":'',"baseline-view-cozy":'',"baseline-view-day":'',"baseline-view-headline":'',"baseline-view-in-ar":'',"baseline-view-kanban":'',"baseline-view-list":'',"baseline-view-module":'',"baseline-view-quilt":'',"baseline-view-sidebar":'',"baseline-view-stream":'',"baseline-view-timeline":'',"baseline-view-week":'',"baseline-vignette":'',"baseline-villa":'',"baseline-visibility":'',"baseline-visibility-off":'',"baseline-voice-chat":'',"baseline-voice-over-off":'',"baseline-voicemail":'',"baseline-volcano":'',"baseline-volume-down":'',"baseline-volume-mute":'',"baseline-volume-off":'',"baseline-volume-up":'',"baseline-volunteer-activism":'',"baseline-vpn-key":'',"baseline-vpn-key-off":'',"baseline-vpn-lock":'',"baseline-vrpano":'',"baseline-wallet":'',"baseline-wallpaper":'',"baseline-warehouse":'',"baseline-warning":'',"baseline-warning-amber":'',"baseline-wash":'',"baseline-watch":'',"baseline-watch-later":'',"baseline-watch-off":'',"baseline-water":'',"baseline-water-damage":'',"baseline-water-drop":'',"baseline-waterfall-chart":'',"baseline-waves":'',"baseline-waving-hand":'',"baseline-wb-auto":'',"baseline-wb-cloudy":'',"baseline-wb-incandescent":'',"baseline-wb-iridescent":'',"baseline-wb-shade":'',"baseline-wb-sunny":'',"baseline-wb-twilight":'',"baseline-wc":'',"baseline-web":'',"baseline-web-asset":'',"baseline-web-asset-off":'',"baseline-web-stories":'',"baseline-webhook":'',"baseline-wechat":'',"baseline-weekend":'',"baseline-west":'',"baseline-whatsapp":'',"baseline-whatshot":'',"baseline-wheelchair-pickup":'',"baseline-where-to-vote":'',"baseline-widgets":'',"baseline-width-full":'',"baseline-width-normal":'',"baseline-width-wide":'',"baseline-wifi":'',"baseline-wifi-1-bar":'',"baseline-wifi-2-bar":'',"baseline-wifi-calling":'',"baseline-wifi-calling-3":'',"baseline-wifi-channel":'',"baseline-wifi-find":'',"baseline-wifi-lock":'',"baseline-wifi-off":'',"baseline-wifi-password":'',"baseline-wifi-protected-setup":'',"baseline-wifi-tethering":'',"baseline-wifi-tethering-error":'',"baseline-wifi-tethering-error-rounded":'',"baseline-wifi-tethering-off":'',"baseline-wind-power":'',"baseline-window":'',"baseline-wine-bar":'',"baseline-woman":'',"baseline-woman-2":'',"baseline-woo-commerce":'',"baseline-wordpress":'',"baseline-work":'',"baseline-work-history":'',"baseline-work-off":'',"baseline-work-outline":'',"baseline-workspace-premium":'',"baseline-workspaces":'',"baseline-wrap-text":'',"baseline-wrong-location":'',"baseline-wysiwyg":'',"baseline-yard":'',"baseline-youtube-searched-for":'',"baseline-zoom-in":'',"baseline-zoom-in-map":'',"baseline-zoom-out":'',"baseline-zoom-out-map":''},aw=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},T0e={},L0e={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function k0e(t,r){return M(),k("span",L0e,[et(t.$slots,"default")])}const xS=aw(T0e,[["render",k0e]]),O0e={},x0e={class:"h-3 w-3 $ui-inline-fcc"};function H0e(t,r){return M(),k("div",x0e,r[0]||(r[0]=[w("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[w("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),w("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))}const JU=aw(O0e,[["render",H0e]]),V0e={key:2},ct=ce({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:r}){const e=t,n=r,i=Ooe(),o=j(()=>i.to?"router-link":i.href?"a":"button"),a=j(()=>e.loading||e.disabled);function s(g){if(a.value){g.preventDefault(),g.stopPropagation(),g.stopImmediatePropagation();return}n("click",g)}const l={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},c=DB(),u=j(()=>e.flat?l.flat[e.type]:e.outlined?l.outlined[e.type]:l.normal[e.type]);return(g,h)=>(M(),oe(y1(o.value),Xr(g.$attrs,{role:"button","aria-disabled":a.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[l.common[e.type]],{"rounded-full":e.round==="full","$ui-base-br":e.round==="normal","opacity-50 cursor-not-allowed":a.value,"bg-transparent":e.flat||e.outlined},[g.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",g.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",u.value]]],onClickCapture:s}),{default:Y(()=>[g.loading?(M(),oe(JU,{key:0,class:"mt0.5 h-full w3"})):et(g.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),y(c).default?(M(),k("div",V0e,[et(g.$slots,"default")])):ie("",!0),et(g.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),P0e={},R0e={class:"$ui-base border $ui-border-base rounded shadow-sm"};function D0e(t,r){return M(),k("div",R0e,[et(t.$slots,"default")])}const H5=aw(P0e,[["render",D0e]]),p2=ce({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(t,{emit:r}){const e=Ea(t,"modelValue",r);return(n,i)=>(M(),k("div",{class:Le(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[y(e)?n.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:i[0]||(i[0]=o=>e.value=!y(e))},[w("div",{class:Le([[y(e)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),lC=Bi();let HS=null;function N0e(t,r="text"){var e;if(!HS&&!lC.value){const i=E0e();HS=z0e({themes:[Si(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url),Si(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url)],langs:[Si(()=>import("./json-DWmkr0yC.js"),[],import.meta.url),Si(()=>import("./yaml-CIiI48o2.js"),[],import.meta.url),Si(()=>import("./css-g_GSZ1hr.js"),[],import.meta.url),Si(()=>import("./javascript-Begb3drz.js"),[],import.meta.url),Si(()=>import("./typescript-BeSffZBD.js"),[],import.meta.url),Si(()=>import("./vue-CfxD1nqp.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),Si(()=>import("./vue-html-CZhY4ukh.js"),__vite__mapDeps([6,0,1,2,3,4,5]),import.meta.url),Si(()=>import("./html-Xm3MTC80.js"),__vite__mapDeps([1,2,3]),import.meta.url),Si(()=>import("./diff-Dnfm4U7b.js"),[],import.meta.url),Si(()=>import("./shellscript-HNM5thJl.js"),[],import.meta.url)],engine:i}).then(o=>{lC.value=o})}const n=(e=lC.value)==null?void 0:e.getLoadedLanguages().includes(r);return n?{code:lC.value.codeToHtml(t,{lang:r,themes:{dark:"vitesse-dark",light:"vitesse-light"}}),supported:!0}:{code:t,supported:n}}const B0e=["innerHTML"],F0e={class:"shiki"},j0e=["textContent"],sw=ce({__name:"CodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},emits:["loaded"],setup(t,{emit:r}){const e=t,n=r,i=j(()=>{const o=e.lang==="text"?{code:e.code,supported:!1}:N0e(e.code,e.lang)||{code:e.code,supported:!1};return o.supported&&e.transformRendered&&(o.code=e.transformRendered(o.code)),o.supported&&dn(()=>n("loaded")),o});return(o,a)=>o.lang&&i.value.supported?(M(),k("pre",{key:0,class:Le(["code-block",o.lines?"code-block-lines":""]),innerHTML:i.value.code},null,10,B0e)):(M(),k("pre",{key:1,class:Le(["code-block",o.lines?"code-block-lines":""])},[w("pre",F0e,[w("code",null,[(M(!0),k(Te,null,It(o.code.split(` `),(s,l)=>(M(),k(Te,{key:l},[w("span",{class:"line",textContent:Se(s)},null,8,j0e),a[0]||(a[0]=w("br",null,null,-1))],64))),128))])])],2))}}),lw=ce({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean},position:{default:"fixed"}},setup(t){return(r,e)=>(M(),k("div",{class:Le(["left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[r.dim?"bg-opacity-50!":"bg-opacity-0!",r.blur?"backdrop-blur-sm":"",r.position]])},[et(r.$slots,"default")],2))}}),U0e={class:"h7.5 w-full $ui-fbc"},G0e={class:"text-4.5"},W0e={class:"content transition-all transition-duration-300"},Z0e={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},K0e={class:"$ui-fcc"},eG=ce({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean},position:{}},emits:["close","update:modelValue"],setup(t,{emit:r}){const e=t,n=Ea(e,"modelValue",r,{passive:!0}),i=yge(()=>window.document.documentElement);gn(()=>{n.value?i.value=!0:i.value=!1});function o(){n.value&&e.autoClose&&(n.value=!1)}oU("Escape",()=>{o()});const a=G(!1);return Ii(()=>a.value=!0),(s,l)=>a.value||s.mountTo==="body"?(M(),oe(zB,{key:0,to:s.mountTo},[D(mb,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:Y(()=>[y(n)?(M(),oe(lw,{key:0,dim:s.dim,blur:s.blur,position:s.position},{default:Y(()=>[w("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:kr({width:e.width,height:e.height})},[w("div",U0e,[w("div",G0e,[et(s.$slots,"title",{},()=>[ze(Se(e.title),1)])]),s.closable?(M(),k("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:o},l[0]||(l[0]=[w("div",{class:"i-carbon-close"},null,-1)]))):ie("",!0)]),w("div",W0e,[et(s.$slots,"default")]),w("div",Z0e,[et(s.$slots,"footer",{},()=>[et(s.$slots,"footer",{},()=>[w("div",K0e,[D(ct,{type:"primary",onClick:o},{default:Y(()=>l[1]||(l[1]=[ze(" close ")])),_:1})])])])])],4)]),_:3},8,["dim","blur","position"])):ie("",!0)]),_:3})],8,["to"])):ie("",!0)}}),Y0e={class:"$ui-fec gap2.5"},X0e=ce({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:r}){const e=t,n=r,i=Ea(e,"modelValue",n);gn(()=>{i.value||n("close")});function o(a=!1){(e.autoClose||a)&&(i.value=!1)}return(a,s)=>(M(),oe(eG,{modelValue:y(i),"onUpdate:modelValue":s[2]||(s[2]=l=>Je(i)?i.value=l:null),width:a.width,height:a.height,title:a.title,closable:!1},{footer:Y(()=>[w("div",Y0e,[D(ct,{onClick:s[0]||(s[0]=()=>{n("cancel"),o(!0)})},{default:Y(()=>[ze(Se(a.cancelText),1)]),_:1}),D(ct,{loading:a.loading,type:"primary",onClick:s[1]||(s[1]=()=>{n("confirm"),o()})},{default:Y(()=>[ze(Se(a.confirmText),1)]),_:1},8,["loading"])])]),default:Y(()=>[et(a.$slots,"default",{class:"h-auto w-auto"},()=>[ze(Se(a.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),q0e=ce({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(t){const r=t,e={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},n={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},i=G(!1);Ii(()=>{i.value=!0,setTimeout(()=>{i.value=!1},r.duration)});const o=j(()=>r.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(a,s)=>(M(),k("div",{class:Le(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":a.placement.startsWith("top")},{"bottom-0":a.placement.startsWith("bottom")}]])},[D(mb,{"enter-from-class":o.value,"leave-to-class":o.value,onAfterLeave:s[0]||(s[0]=()=>{var l;i.value||(l=a.onClose)==null||l.call(a)})},{default:Y(()=>[i.value?(M(),k("div",{key:0,class:"flex transition-all duration-300",style:kr({justifyContent:a.placement.includes("right")?"right":a.placement.includes("left")?"left":"center"})},[w("div",{class:Le(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[a.classes,n[a.type]]])},[w("div",{class:Le(e[a.type])},null,2),w("div",null,Se(a.message),1)],2)],4)):ie("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}});function b8(t){const r=document.createElement("div");r.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(r);const e=t.onClose;function n(){nz(null,r)}t.onClose=()=>{n(),e?.(),document.body.removeChild(r)};const i=vc(q0e,t);nz(i,r)}const Q0e="__vue-devtools-theme__";function pf(t={}){const r=fge({...t,storageKey:Q0e});return{colorMode:r,isDark:j(()=>r.value==="dark")}}const J0e={class:"$ui-dark-toggle-vtr"},tG=ce({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(t){const r=t,e=Ea(r,"isDark"),{colorMode:n}=pf({initialValue:e.value?"dark":"light",onChanged:s=>{e.value=s==="dark"}}),i=j({get:()=>n.value==="dark",set:s=>n.value=s?"dark":"light"}),o=!!document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function a(s){if(!o||!s||!r.animation){i.value=!i.value;return}const l=s.clientX,c=s.clientY,u=Math.hypot(Math.max(l,innerWidth-l),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{i.value=!i.value,await dn()}).ready.then(()=>{const g=[`circle(0px at ${l}px ${c}px)`,`circle(${u}px at ${l}px ${c}px)`];document.documentElement.animate({clipPath:i.value?[...g].reverse():g},{duration:r.animationDuration,easing:"ease-in",pseudoElement:i.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(s,l)=>(M(),k("span",J0e,[et(s.$slots,"default",eb(QA({mode:y(n),isDark:i.value,toggle:a})))]))}}),rG=ce({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean},position:{}},emits:["update:modelValue","close"],setup(t,{emit:r}){const e=t,n=r,{height:i}=uU(()=>typeof e.top=="string"?document.querySelector(e.top):e.top,void 0,{box:"border-box"}),o=Ea(e,"modelValue",n),a={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};oU("Escape",()=>{e.closable&&(o.value=!1)});const s=j(()=>a[e.placement]),l=G(!1);return Ii(()=>l.value=!0),(c,u)=>l.value||c.mountTo==="body"?(M(),oe(zB,{key:0,to:c.mountTo},[D(mb,{"enter-from-class":`${s.value.transition}`,"leave-to-class":`${s.value.transition}`},{default:Y(()=>[y(o)?(M(),oe(lw,{key:0,class:Le({"pointer-events-none":c.permanent}),dim:c.dim,blur:c.blur,position:c.position,onClick:u[2]||(u[2]=g=>c.closeOutside&&c.closable&&(o.value=!1))},{default:Y(()=>[w("div",{class:Le([[s.value.class,c.contentClass??"",c.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:kr({top:c.placement==="bottom"?"auto":`${y(i)}px`,height:["top","bottom"].includes(c.placement)?"auto":`calc(100% - ${y(i)}px)`}),onClick:u[1]||(u[1]=Wn(()=>{},["stop"]))},[c.closable?(M(),k("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:u[0]||(u[0]=g=>o.value=!1)})):ie("",!0),et(c.$slots,"default")],6)]),_:3},8,["class","dim","blur","position"])):ie("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):ie("",!0)}}),eCe={class:"overflow-hidden rounded-lg shadow-lg"},Au=ce({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(t){const r=t;return Di("$ui-dropdown-disabled",j(()=>r.disabled)),(e,n)=>(M(),oe(y(Pue),{disabled:e.disabled,class:"inline-block w-auto",shown:e.shown,triggers:[e.trigger],distance:e.distance+6,placement:e.placement,skidding:e.skidding,"onUpdate:shown":n[0]||(n[0]=i=>e.$emit("update:visible",i)),onClick:n[1]||(n[1]=i=>{i.stopPropagation()})},{popper:Y(({hide:i})=>[w("div",eCe,[et(e.$slots,"popper",eb(QA({hide:i})),()=>[n[2]||(n[2]=w("div",{class:"p2 opacity-40"}," Empty... ",-1))])])]),default:Y(()=>[et(e.$slots,"default",{},()=>[D(ct,Xr({...e.buttonProps,disabled:e.disabled},{class:e.buttonClass}),PB({icon:Y(()=>[et(e.$slots,"button-icon")]),"icon-right":Y(()=>[et(e.$slots,"button-icon-right")]),_:2},[e.label?{name:"default",fn:Y(()=>[ze(Se(e.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),VS=ce({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(t){const r=t,e=br("$ui-dropdown-disabled",void 0);return(n,i)=>At((M(),oe(ct,Xr({...r,round:!1},{disabled:y(e),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:Y(()=>[et(n.$slots,"icon")]),default:Y(()=>[et(n.$slots,"default")]),_:3},16,["disabled"])),[[y(Hue)]])}}),Gt=ce({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(t){return(r,e)=>(M(),oe(y1(r.inline?"span":"div"),{class:Le(["$ui-base",[r.icon,r.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}}),tCe=["type","placeholder","disabled"],rCe={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},Rp="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",Fi=ce({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0},readonly:{type:Boolean,default:!1},type:{default:"text"}},emits:["update:modelValue","updateFocused","keyTab"],setup(t,{emit:r}){const e=t,n=r,i=Ea(e,"modelValue",n),o=Yue(j(()=>e.loading),e.loadingDebounceTime),a=Xue(!1,{onChanged(g){n("updateFocused",g)}}),s=j(()=>e.variant==="flat"||e.variant==="warning"||e.disabled||e.readonly),l=j(()=>e.disabled||o.value),c=G();let u=!1;return gn(()=>{o.value&&a.value?u=!0:!o.value&&u&&(u=!1,dn(()=>{a.value=!0}))}),Ii(()=>{e.autoFocus&&(a.value=!0)}),gn(()=>{var g;a.value&&((g=c.value)==null||g.focus())}),(g,h)=>(M(),k("div",{class:Le(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":g.variant==="flat","cursor-not-allowed opacity-50":l.value,accent:g.variant==="accent",focused:y(a)},[g.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:h[2]||(h[2]=()=>{a.value=!0})},[g.leftIcon?(M(),k("div",{key:0,class:Le(Rp)},[D(Gt,{icon:g.leftIcon},null,8,["icon"])])):ie("",!0),At(w("input",{ref_key:"inputRef",ref:c,"onUpdate:modelValue":h[0]||(h[0]=d=>Je(i)?i.value=d:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:g.type,placeholder:g.placeholder,disabled:l.value||g.readonly,onBlur:h[1]||(h[1]=d=>a.value=!1)},null,40,tCe),[[Zae,y(i)]]),y(o)?(M(),k("div",{key:1,class:Le(Rp)},[D(JU)])):g.rightIcon?(M(),k("div",{key:2,class:Le(Rp)},[D(Gt,{icon:g.rightIcon},null,8,["icon"])])):ie("",!0),s.value?ie("",!0):(M(),k("div",rCe))],2))}}),nCe=["innerHTML"],ec=ce({__name:"IcIcon",props:{name:{}},setup(t){const r=t,e=j(()=>S0e[r.name]??"");return(n,i)=>(M(),k("div",null,[(M(),k("svg",{class:"custom-svg h-1em w-1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",innerHTML:e.value},null,8,nCe))]))}}),iCe={class:"m1 min-w-35 w-auto flex flex-col"},oCe=["onClick"],Ed=ce({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:t=>String(t)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=DB(),o=j({get:()=>e.modelValue,set:l=>n("update:modelValue",l)}),a=j(()=>{const l=e.options.find(c=>c.value===o.value);return l!=null&&l.label?e.labelRenderer(l.label):e.placeholder});function s(l){e.multiple?o.value=o.value.includes(l.value)?o.value.filter(c=>c!==l.value):[...o.value,l.value]:o.value=l.value}return(l,c)=>(M(),oe(Au,Xr({label:a.value},{buttonProps:l.buttonProps,disabled:l.disabled}),PB({popper:Y(()=>[w("div",iCe,[y(i).item?(M(!0),k(Te,{key:0},It(l.options,u=>(M(),k("div",{key:u.value,class:"cursor-pointer",onClick:g=>s(u)},[et(l.$slots,"item",Xr({ref_for:!0},{item:u,active:l.multiple?o.value.includes(u.value):u.value===o.value,disabled:l.disabled}))],8,oCe))),128)):(M(!0),k(Te,{key:1},It(l.options,u=>At((M(),oe(ct,{key:u.value,disabled:l.disabled,round:"normal",class:Le(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:l.multiple?o.value.includes(u.value):u.value===o.value}]),onClick:g=>s(u)},{default:Y(()=>[ze(Se(u.label),1)]),_:2},1032,["disabled","class","onClick"])),[[y(Vue),l.autoClose]])),128))])]),"button-icon-right":Y(()=>[c[0]||(c[0]=w("div",{class:"i-mdi-chevron-down"},null,-1))]),_:2},[y(i).button?{name:"default",fn:Y(()=>[et(l.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),w8=ce({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:r}){const e=Ea(t,"modelValue",r),n=Bb(e);return(i,o)=>(M(),k("div",{class:Le([[i.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:o[0]||(o[0]=a=>!i.disabled&&y(n)())},[et(i.$slots,"default"),w("div",{class:Le([{selected:y(e)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[w("div",{class:Le(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!i.disabled},{"opacity-65":i.disabled}]])},null,2)],2)],2))}}),aCe=ce({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(t){return(r,e)=>(M(),oe(y(Rue),Xr({disabled:r.disabled,placement:r.placement},r.$attrs),{popper:Y(()=>[et(r.$slots,"popper")]),default:Y(()=>[et(r.$slots,"default")]),_:3},16,["disabled","placement"]))}}),sCe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20id='svg2'%20version='1.1'%20inkscape:version='0.91%20r13725'%20xml:space='preserve'%20width='375'%20height='375'%20viewBox='0%200%20375%20375'%20sodipodi:docname='vue-logo.svg'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4'%20showgrid='false'%20inkscape:zoom='0.62933333'%20inkscape:cx='187.5'%20inkscape:cy='187.5'%20inkscape:window-x='0'%20inkscape:window-y='30'%20inkscape:window-maximized='1'%20inkscape:current-layer='g10'%20/%3e%3cg%20id='g10'%20inkscape:groupmode='layer'%20inkscape:label='logo'%20transform='matrix(1.25,0,0,-1.25,0,375)'%3e%3cg%20id='g12'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-120.829,0%20-22.669,-170.017%2075.491,0%200,0%20Z'%20style='fill:%2341b883;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path14'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3cg%20id='g16'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-81.565,0%20-22.669,-102.01%2036.227,0%200,0%20Z'%20style='fill:%2334495e;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path18'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",lCe={class:"h-screen w-screen $ui-fcc flex-col"},cCe={class:"outer"},uCe={class:"inner"},gCe=["src"],hCe=ce({__name:"AppConnecting",setup(t){return(r,e)=>(M(),k("div",lCe,[w("div",cCe,[w("div",uCe,[w("img",{src:y(sCe),class:"max-w-18",alt:"Vue logo"},null,8,gCe)])]),et(r.$slots,"default",{},void 0,!0)]))}}),dI=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},dCe=dI(hCe,[["__scopeId","data-v-56eba732"]]);function fI(){const{copy:t,copied:r}=sU();return{copy:(n,i={})=>{const{silent:o=!1,type:a=""}=i;t(n).then(()=>{o||b8({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{o||b8({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:r}}const fCe={key:0,relative:"","code-block":""},CCe={flex:"~ wrap","w-full":""},vCe=["onClick"],ACe={flex:"~ gap-2",px3:"",pb3:""},ICe=ce({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(t){const r=t,e=Bi(r.codeSnippets[0]),{copy:n}=fI(),i=j(()=>e.value?.lang||"text");return gn(()=>{r.codeSnippets.includes(e.value)||(e.value=r.codeSnippets[0])}),(o,a)=>o.codeSnippets.length?(M(),k("div",fCe,[w("div",CCe,[(M(!0),k(Te,null,It(o.codeSnippets,(s,l)=>(M(),k("button",{key:l,px4:"",py2:"",border:"r base",hover:"bg-active",class:Le(s===y(e)?"":"border-b"),onClick:c=>e.value=s},[w("div",{class:Le(s===y(e)?"":"op30"),"font-mono":""},Se(s.name),3)],10,vCe))),128)),a[1]||(a[1]=w("div",{border:"b base","flex-auto":""},null,-1))]),y(e)?(M(),k(Te,{key:0},[D(y(sw),{code:y(e).code,lang:y(i),lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),w("div",ACe,[D(y(ct),{onClick:a[0]||(a[0]=s=>y(n)(y(e).code,{silent:!1,type:o.eventType||`code-snippet-${y(e).name}`}))},{icon:Y(()=>[et(o.$slots,"i-carbon-copy")]),default:Y(()=>[a[2]||(a[2]=ze(" Copy "))]),_:3}),y(e)?.docs?(M(),oe(y(ct),{key:0,to:y(e).docs,target:"_blank"},{icon:Y(()=>[et(o.$slots,"i-carbon-catalog")]),default:Y(()=>[a[3]||(a[3]=ze(" Docs "))]),_:3},8,["to"])):ie("",!0)])],64)):ie("",!0)])):ie("",!0)}}),pCe=["title"],mCe=ce({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean}},setup(t){const r=t,e=j(()=>({path:r.filepath})),{copy:n}=fI();return(i,o)=>At((M(),k("button",{"font-mono":"","hover:underline":"",class:Le(i.lineBreak?"":"ws-nowrap of-hidden truncate"),title:i.filepath,onClick:o[0]||(o[0]=a=>y(n)(i.filepath))},[ze(Se(y(e).path),1)],10,pCe)),[[y(Rt),"Copy file path"]])}}),PS=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function yCe(t,r){r?r={...PS,...r}:r=PS;const e=nG(r);return e.dispatch(t),e.toString()}const bCe=Object.freeze(["prototype","__proto__","constructor"]);function nG(t){let r="",e=new Map;const n=i=>{r+=i};return{toString(){return r},getContext(){return e},dispatch(i){return t.replacer&&(i=t.replacer(i)),this[i===null?"null":typeof i](i)},object(i){if(i&&typeof i.toJSON=="function")return this.object(i.toJSON());const o=Object.prototype.toString.call(i);let a="";const s=o.length;s<10?a="unknown:["+o+"]":a=o.slice(8,s-1),a=a.toLowerCase();let l=null;if((l=e.get(i))===void 0)e.set(i,e.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(i))return n("buffer:"),n(i.toString("utf8"));if(a!=="object"&&a!=="function"&&a!=="asyncfunction")this[a]?this[a](i):t.ignoreUnknown||this.unkown(i,a);else{let c=Object.keys(i);t.unorderedObjects&&(c=c.sort());let u=[];t.respectType!==!1&&!RS(i)&&(u=bCe),t.excludeKeys&&(c=c.filter(h=>!t.excludeKeys(h)),u=u.filter(h=>!t.excludeKeys(h))),n("object:"+(c.length+u.length)+":");const g=h=>{this.dispatch(h),n(":"),t.excludeValues||this.dispatch(i[h]),n(",")};for(const h of c)g(h);for(const h of u)g(h)}},array(i,o){if(o=o===void 0?t.unorderedArrays!==!1:o,n("array:"+i.length+":"),!o||i.length<=1){for(const l of i)this.dispatch(l);return}const a=new Map,s=i.map(l=>{const c=nG(t);c.dispatch(l);for(const[u,g]of c.getContext())a.set(u,g);return c.toString()});return e=a,s.sort(),this.array(s,!1)},date(i){return n("date:"+i.toJSON())},symbol(i){return n("symbol:"+i.toString())},unkown(i,o){if(n(o),!!i&&(n(":"),i&&typeof i.entries=="function"))return this.array(Array.from(i.entries()),!0)},error(i){return n("error:"+i.toString())},boolean(i){return n("bool:"+i)},string(i){n("string:"+i.length+":"),n(i)},function(i){n("fn:"),RS(i)?this.dispatch("[native]"):this.dispatch(i.toString()),t.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(i.name)),t.respectFunctionProperties&&this.object(i)},number(i){return n("number:"+i)},xml(i){return n("xml:"+i.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(i){return n("regex:"+i.toString())},uint8array(i){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(i))},uint8clampedarray(i){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(i))},int8array(i){return n("int8array:"),this.dispatch(Array.prototype.slice.call(i))},uint16array(i){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(i))},int16array(i){return n("int16array:"),this.dispatch(Array.prototype.slice.call(i))},uint32array(i){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(i))},int32array(i){return n("int32array:"),this.dispatch(Array.prototype.slice.call(i))},float32array(i){return n("float32array:"),this.dispatch(Array.prototype.slice.call(i))},float64array(i){return n("float64array:"),this.dispatch(Array.prototype.slice.call(i))},arraybuffer(i){return n("arraybuffer:"),this.dispatch(new Uint8Array(i))},url(i){return n("url:"+i.toString())},map(i){n("map:");const o=[...i];return this.array(o,t.unorderedSets!==!1)},set(i){n("set:");const o=[...i];return this.array(o,t.unorderedSets!==!1)},file(i){return n("file:"),this.dispatch([i.name,i.size,i.type,i.lastModfied])},blob(){if(t.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return n("domwindow")},bigint(i){return n("bigint:"+i.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")},context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const iG="[native code] }",wCe=iG.length;function RS(t){return typeof t!="function"?!1:Function.prototype.toString.call(t).slice(-wCe)===iG}var $Ce=Object.defineProperty,_Ce=(t,r,e)=>r in t?$Ce(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,m2=(t,r,e)=>(_Ce(t,typeof r!="symbol"?r+"":r,e),e);class s1{constructor(r,e){m2(this,"words"),m2(this,"sigBytes"),r=this.words=r||[],this.sigBytes=e===void 0?r.length*4:e}toString(r){return(r||MCe).stringify(this)}concat(r){if(this.clamp(),this.sigBytes%4)for(let e=0;e>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=n<<24-(this.sigBytes+e)%4*8}else for(let e=0;e>>2]=r.words[e>>>2];return this.sigBytes+=r.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new s1([...this.words])}}const MCe={stringify(t){const r=[];for(let e=0;e>>2]>>>24-e%4*8&255;r.push((n>>>4).toString(16),(n&15).toString(16))}return r.join("")}},zCe={stringify(t){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=[];for(let n=0;n>>2]>>>24-n%4*8&255,o=t.words[n+1>>>2]>>>24-(n+1)%4*8&255,a=t.words[n+2>>>2]>>>24-(n+2)%4*8&255,s=i<<16|o<<8|a;for(let l=0;l<4&&n*8+l*6>>6*(3-l)&63))}return e.join("")}},ECe={parse(t){const r=t.length,e=[];for(let n=0;n>>2]|=(t.charCodeAt(n)&255)<<24-n%4*8;return new s1(e,r)}},SCe={parse(t){return ECe.parse(unescape(encodeURIComponent(t)))}};class TCe{constructor(){m2(this,"_data",new s1),m2(this,"_nDataBytes",0),m2(this,"_minBufferSize",0),m2(this,"blockSize",512/32)}reset(){this._data=new s1,this._nDataBytes=0}_append(r){typeof r=="string"&&(r=SCe.parse(r)),this._data.concat(r),this._nDataBytes+=r.sigBytes}_doProcessBlock(r,e){}_process(r){let e,n=this._data.sigBytes/(this.blockSize*4);r?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const i=n*this.blockSize,o=Math.min(i*4,this._data.sigBytes);if(i){for(let a=0;ar in t?kCe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,xCe=(t,r,e)=>(OCe(t,r+"",e),e);const DS=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],HCe=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],dl=[];class VCe extends LCe{constructor(){super(...arguments),xCe(this,"_hash",new s1([...DS]))}reset(){super.reset(),this._hash=new s1([...DS])}_doProcessBlock(r,e){const n=this._hash.words;let i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=n[6],g=n[7];for(let h=0;h<64;h++){if(h<16)dl[h]=r[e+h]|0;else{const p=dl[h-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,b=dl[h-2],_=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;dl[h]=m+dl[h-7]+_+dl[h-16]}const d=l&c^~l&u,f=i&o^i&a^o&a,C=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),v=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),A=g+v+d+HCe[h]+dl[h],I=C+f;g=u,u=c,c=l,l=s+A|0,s=a,a=o,o=i,i=A+I|0}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+g|0}finalize(r){super.finalize(r);const e=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(n+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function PCe(t){return new VCe().finalize(t).toString(zCe)}function RCe(t,r={}){const e=typeof t=="string"?t:yCe(t,r);return PCe(e).slice(0,10)}const DCe=ce({__name:"AssetFontPreview",props:{asset:{}},setup(t){const r=t,e=j(()=>`devtools-assets-${RCe(r.asset)}`);return wge(j(()=>` @font-face { font-family: '${e.value}'; src: url('${r.asset.publicPath}'); } `)),(n,i)=>(M(),k("div",{"of-hidden":"",style:kr({fontFamily:`'${y(e)}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),NCe={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},BCe=["src"],FCe={key:2,"i-carbon-document":"","text-3xl":"",op20:""},jCe={key:3,"w-full":"","self-start":"",p4:""},UCe=["textContent"],GCe={key:4},WCe=["src","autoplay","controls"],ZCe={key:5},KCe={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},YCe=["src"],XCe={key:6,"i-vscode-icons-file-type-wasm":"","text-3xl":""},qCe={key:7,"i-carbon-help":"","text-3xl":"",op20:""},oG=ce({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(t){return(r,e)=>{const n=DCe;return M(),k("div",NCe,[r.asset.type==="image"?(M(),k("img",{key:0,src:r.asset.publicPath},null,8,BCe)):r.asset.type==="font"?(M(),oe(n,{key:r.asset.publicPath,asset:r.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):r.asset.type==="text"&&!r.textContent?(M(),k("div",FCe)):r.asset.type==="text"&&r.textContent?(M(),k("div",jCe,[w("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:Se(r.textContent)},null,8,UCe)])):r.asset.type==="video"?(M(),k("div",GCe,[w("video",{src:r.asset.publicPath,autoplay:r.detail,controls:r.detail},null,8,WCe)])):r.asset.type==="audio"?(M(),k("div",ZCe,[r.detail?(M(),k("audio",{key:1,src:r.asset.publicPath,controls:""},null,8,YCe)):(M(),k("div",KCe))])):r.asset.type==="wasm"?(M(),k("div",XCe)):(M(),k("div",qCe))])}}}),QCe={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},JCe={flex:"~","items-center":"","justify-center":""},e5e={"max-w-full":"","w-full":"","table-fixed":""},t5e={flex:"~ gap-1","w-full":"","items-center":""},r5e={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},n5e={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},i5e={capitalize:""},o5e={key:0},a5e={op70:""},s5e={flex:"~ gap2 wrap"},l5e=ce({__name:"AssetDetails",props:{modelValue:{}},setup(t,{emit:r}){const e=t,n=r,i=ji(),o=Ea(e,"modelValue",n,{passive:!0}),a=j(()=>i.vitePluginDetected.value),s=wp(()=>zo.value.getAssetImporters(o.value.publicPath).then(p=>p),[]),l=j(()=>nI.value),c=wp(()=>{if(o.value.type==="image")return zo.value.getImageMeta(o.value.filePath).then(p=>p)}),u=G(),g=G(0),h=wp(async()=>{if(o.value.type!=="text")return;g.value;const p=await zo.value.getTextAssetContent(o.value.filePath).then(m=>m);return u.value=p,p}),d=j(()=>{const p=[];if(o.value.type==="image"){const m=c.value?.width?` width="${c.value.width}" height="${c.value.height}" `:" ";return p.push({lang:"vue-html",code:``,name:"Plain Image"}),p}return p.push({lang:"html",code:` Download ${o.value.path.split("/").slice(-1)[0]} `,name:"Download link"}),p}),{copy:f}=fI(),C=zge(()=>o.value.mtime),v=j(()=>{const p=o.value.size;return p<1024?`${p} B`:p<1024*1024?`${(p/1024).toFixed(2)} KB`:`${(p/1024/1024).toFixed(2)} MB`}),A=j(()=>{if(!c.value?.width||!c.value?.height)return"";const p=(b,_)=>_?p(_,b%_):b,m=p(c.value.width,c.value.height);return m>3?`${c.value.width/m}:${c.value.height/m}`:""}),I=j(()=>["image","text","video","audio","font"].includes(o.value.type));return(p,m)=>{const b=oG,_=mCe,S=Ro("RouterLink"),E=ICe;return M(),k("div",QCe,[y(I)?(M(),k(Te,{key:0},[m[2]||(m[2]=w("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[w("div",{"x-divider":""}),w("div",{"flex-none":""}," Preview "),w("div",{"x-divider":""})],-1)),w("div",JCe,[D(b,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:y(o),"text-content":y(h)},null,8,["asset","text-content"])])],64)):ie("",!0),m[12]||(m[12]=w("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[w("div",{"x-divider":""}),w("div",{"flex-none":""}," Details "),w("div",{"x-divider":""})],-1)),w("table",e5e,[w("tbody",null,[w("tr",null,[m[3]||(m[3]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1)),w("td",null,[w("div",t5e,[D(_,{filepath:y(o).filePath,"text-left":""},null,8,["filepath"]),y(a)&&y(l)?At((M(),oe(y(Gt),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:m[0]||(m[0]=T=>y(vd)(y(o).filePath))},null,512)),[[y(Rt),"Open in Editor"]]):ie("",!0)])])]),w("tr",null,[m[4]||(m[4]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1)),w("td",null,[w("div",r5e,[w("div",n5e,Se(y(o).publicPath),1),At(D(y(Gt),{title:"Copy public path",icon:"i-carbon-copy",action:"",mr1:"","mt--2px":"","flex-none":"",border:!1,onClick:m[1]||(m[1]=T=>y(f)(y(o).publicPath,{type:"assets-public-path"}))},null,512),[[y(Rt),"Copy public path"]]),D(S,{to:y(o).publicPath,target:"_blank"},{default:Y(()=>[At(D(y(Gt),{icon:"i-carbon-launch",action:"","flex-none":"",border:!1,title:"Open in Browser"},null,512),[[y(Rt),"Open in Browser"]])]),_:1},8,["to"])])])]),w("tr",null,[m[5]||(m[5]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1)),w("td",i5e,Se(y(o).type),1)]),y(c)?.width?(M(),k(Te,{key:0},[w("tr",null,[m[6]||(m[6]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1)),w("td",null,Se(y(c).width)+" x "+Se(y(c).height),1)]),y(A)?(M(),k("tr",o5e,[m[7]||(m[7]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1)),w("td",null,Se(y(A)),1)])):ie("",!0)],64)):ie("",!0),w("tr",null,[m[8]||(m[8]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1)),w("td",null,Se(y(v)),1)]),w("tr",null,[m[9]||(m[9]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1)),w("td",null,[ze(Se(new Date(y(o).mtime).toLocaleString())+" ",1),w("span",a5e,"("+Se(y(C))+")",1)])]),w("tr",null,[m[10]||(m[10]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"","align-top":"",op50:""}," Importers ",-1)),w("td",null,[y(s).length>0?(M(!0),k(Te,{key:0},It(y(s),T=>(M(),k("div",{key:T.url,flex:"~ gap-1","w-full":"","items-center":""},[D(_,{filepath:T.id||T.url,"text-left":""},null,8,["filepath"]),y(i).vitePluginDetected.value&&y(l)&&T.id?At((M(),oe(y(Gt),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:L=>y(vd)(T.id)},null,8,["onClick"])),[[y(Rt),"Open in Editor"]]):ie("",!0)]))),128)):(M(),k(Te,{key:1},[ze(" None ")],64))])])])]),m[13]||(m[13]=w("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[w("div",{"x-divider":""}),w("div",{"flex-none":""}," Actions "),w("div",{"x-divider":""})],-1)),w("div",s5e,[D(y(ct),{to:y(o).publicPath,download:"",target:"_blank"},{icon:Y(()=>[et(p.$slots,"i-carbon-download")]),default:Y(()=>[m[11]||(m[11]=ze(" Download "))]),_:3},8,["to"])]),m[14]||(m[14]=w("div",{"flex-auto":""},null,-1)),y(d).length?(M(),oe(E,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":y(d)},null,8,["code-snippets"])):ie("",!0)])}}}),c5e=ce({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(t,{emit:r}){const e=t,i=Ea(e,"modelValue",r,{passive:!0}),o=j(()=>e.item?.children?.length),a=G(!0),s=j(()=>o.value?"i-carbon-folder":e.item.type==="image"?"i-carbon-image":e.item.type==="video"?"i-carbon-video":e.item.type==="audio"?"i-carbon-volume-up":e.item.type==="font"?"i-carbon-text-small-caps":e.item.type==="text"?"i-carbon-document":e.item.type==="json"?"i-carbon-json":e.item.type==="wasm"?"i-vscode-icons-file-type-wasm":"i-carbon-document-blank");return(l,c)=>{const u=Ro("AssetListItem",!0);return M(),k("div",null,[w("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:kr({paddingLeft:`calc(1rem + ${l.index*1.5}em)`}),class:Le({"bg-active":!y(o)&&y(i)?.filePath===l.item?.filePath}),border:"b base",onClick:c[0]||(c[0]=g=>y(o)?a.value=!y(a):i.value=l.item)},[w("div",{class:Le(y(s))},null,2),w("span",{class:Le({"flex items-center":y(o)}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},Se(l.item.path),3),y(o)?(M(),oe(y(Gt),{key:0,icon:"carbon:chevron-right","transform-rotate":y(a)?90:0,transition:""},null,8,["transform-rotate"])):ie("",!0)],6),y(a)?et(l.$slots,"default",{key:0},()=>[(M(!0),k(Te,null,It(l.item?.children,g=>(M(),oe(u,{key:g.filepath,modelValue:y(i),"onUpdate:modelValue":c[1]||(c[1]=h=>Je(i)?i.value=h:null),item:g,index:l.index+1},null,8,["modelValue","item","index"]))),128))]):ie("",!0)])}}}),u5e={flex:"~ gap-3","items-center":""},cw=ce({__name:"IconTitle",props:{icon:{},text:{}},setup(t){return(r,e)=>(M(),k("div",u5e,[r.icon?(M(),k("div",{key:0,class:Le(r.icon)},null,2)):ie("",!0),et(r.$slots,"default",{},()=>[w("div",null,Se(r.text),1)])]))}}),g5e=["open"],h5e={"text-base":""},d5e={key:0,"text-sm":"",op50:""},f5e=ce({__name:"SectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const e=Ea(t,"open",void 0,{passive:!0});function n(i){e.value=i.target.open}return(i,o)=>{const a=cw,s=fb("lazy-show");return M(),k(Te,null,[w("details",{open:y(e),onToggle:n},[w("summary",{class:Le(["cursor-pointer select-none hover:bg-active p4",i.collapse?"":"pointer-events-none"])},[D(a,{icon:i.icon,text:i.text,"text-xl":"",transition:"",class:Le(y(e)?"op100":"op60")},{default:Y(()=>[w("div",null,[w("div",h5e,[et(i.$slots,"text",{},()=>[ze(Se(i.text),1)],!0)]),i.description||i.$slots.description?(M(),k("div",d5e,[et(i.$slots,"description",{},()=>[ze(Se(i.description),1)],!0)])):ie("",!0)]),o[0]||(o[0]=w("div",{class:"flex-auto"},null,-1)),et(i.$slots,"actions",{},void 0,!0),i.collapse?(M(),oe(y(Gt),{key:0,icon:"i-carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"",op75:"",transition:"","duration-500":"","text-base":""})):ie("",!0)]),_:3},8,["icon","text","class"])],2),At((M(),k("div",{class:Le(["flex flex-col flex-gap2 pb6 pt2",typeof i.padding=="string"?i.padding:i.padding?"px4":""])},[et(i.$slots,"details",{},void 0,!0),w("div",{class:Le([i.containerClass,"mt1"])},[et(i.$slots,"default",{},void 0,!0)],2),et(i.$slots,"footer",{},void 0,!0)],2)),[[s,y(e)]])],40,g5e),o[1]||(o[1]=w("div",{class:"x-divider"},null,-1))],64)}}}),aG=dI(f5e,[["__scopeId","data-v-785c4654"]]),C5e={flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},v5e={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},A5e=ce({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(t){const r=t,e=j(()=>r.folder&&r.asset.path.startsWith(r.folder)?r.asset.path.slice(r.folder.length):r.asset.path);return(n,i)=>{const o=oG;return M(),k("button",C5e,[D(o,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:n.asset},null,8,["asset"]),w("div",v5e,Se(y(e)),1)])}}}),I5e={flex:"~ col gap2",border:"b base","flex-1":"",p4:"","navbar-glass":""},p5e={flex:"~ gap4","items-center":""},m5e=ce({__name:"Navbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(t,{emit:r}){const e=t,n=r,i=G(e.search);return Ke(()=>e.search,o=>{i.value=o}),Ke(i,()=>{n("update:search",i.value)}),(o,a)=>(M(),k("div",I5e,[w("div",p5e,[et(o.$slots,"search",{},()=>[o.search!==void 0?(M(),oe(y(Fi),{key:0,modelValue:y(i),"onUpdate:modelValue":a[0]||(a[0]=s=>Je(i)?i.value=s:null),placeholder:"Search...","left-icon":"i-carbon-search",class:Le(["flex-auto",{"px-5 py-2":!o.noPadding}])},null,8,["modelValue","class"])):ie("",!0)]),et(o.$slots,"actions")]),et(o.$slots,"default")]))}});function ss(t){return Array.isArray?Array.isArray(t):cG(t)==="[object Array]"}const y5e=1/0;function b5e(t){if(typeof t=="string")return t;let r=t+"";return r=="0"&&1/t==-y5e?"-0":r}function w5e(t){return t==null?"":b5e(t)}function aa(t){return typeof t=="string"}function sG(t){return typeof t=="number"}function $5e(t){return t===!0||t===!1||_5e(t)&&cG(t)=="[object Boolean]"}function lG(t){return typeof t=="object"}function _5e(t){return lG(t)&&t!==null}function Hi(t){return t!=null}function Dp(t){return!t.trim().length}function cG(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const M5e="Incorrect 'index' type",z5e=t=>`Invalid value for key ${t}`,E5e=t=>`Pattern length exceeds max of ${t}.`,S5e=t=>`Missing ${t} property in key`,T5e=t=>`Property 'weight' in key '${t}' must be a positive integer`,NS=Object.prototype.hasOwnProperty;class L5e{constructor(r){this._keys=[],this._keyMap={};let e=0;r.forEach(n=>{let i=uG(n);this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(n=>{n.weight/=e})}get(r){return this._keyMap[r]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function uG(t){let r=null,e=null,n=null,i=1,o=null;if(aa(t)||ss(t))n=t,r=BS(t),e=$8(t);else{if(!NS.call(t,"name"))throw new Error(S5e("name"));const a=t.name;if(n=a,NS.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(T5e(a));r=BS(a),e=$8(a),o=t.getFn}return{path:r,id:e,weight:i,src:n,getFn:o}}function BS(t){return ss(t)?t:t.split(".")}function $8(t){return ss(t)?t.join("."):t}function k5e(t,r){let e=[],n=!1;const i=(o,a,s)=>{if(Hi(o))if(!a[s])e.push(o);else{let l=a[s];const c=o[l];if(!Hi(c))return;if(s===a.length-1&&(aa(c)||sG(c)||$5e(c)))e.push(w5e(c));else if(ss(c)){n=!0;for(let u=0,g=c.length;ut.score===r.score?t.idx{this._keysMap[e.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,aa(this.docs[0])?this.docs.forEach((r,e)=>{this._addString(r,e)}):this.docs.forEach((r,e)=>{this._addObject(r,e)}),this.norm.clear())}add(r){const e=this.size();aa(r)?this._addString(r,e):this._addObject(r,e)}removeAt(r){this.records.splice(r,1);for(let e=r,n=this.size();e{let a=i.getFn?i.getFn(r):this.getFn(r,i.path);if(Hi(a)){if(ss(a)){let s=[];const l=[{nestedArrIndex:-1,value:a}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(Hi(u))if(aa(u)&&!Dp(u)){let g={v:u,i:c,n:this.norm.get(u)};s.push(g)}else ss(u)&&u.forEach((g,h)=>{l.push({nestedArrIndex:h,value:g})})}n.$[o]=s}else if(aa(a)&&!Dp(a)){let s={v:a,n:this.norm.get(a)};n.$[o]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function gG(t,r,{getFn:e=st.getFn,fieldNormWeight:n=st.fieldNormWeight}={}){const i=new uw({getFn:e,fieldNormWeight:n});return i.setKeys(t.map(uG)),i.setSources(r),i.create(),i}function D5e(t,{getFn:r=st.getFn,fieldNormWeight:e=st.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new uw({getFn:r,fieldNormWeight:e});return o.setKeys(n),o.setIndexRecords(i),o}function cC(t,{errors:r=0,currentLocation:e=0,expectedLocation:n=0,distance:i=st.distance,ignoreLocation:o=st.ignoreLocation}={}){const a=r/t.length;if(o)return a;const s=Math.abs(n-e);return i?a+s/i:s?1:a}function N5e(t=[],r=st.minMatchCharLength){let e=[],n=-1,i=-1,o=0;for(let a=t.length;o=r&&e.push([n,i]),n=-1)}return t[o-1]&&o-n>=r&&e.push([n,o-1]),e}const bl=32;function B5e(t,r,e,{location:n=st.location,distance:i=st.distance,threshold:o=st.threshold,findAllMatches:a=st.findAllMatches,minMatchCharLength:s=st.minMatchCharLength,includeMatches:l=st.includeMatches,ignoreLocation:c=st.ignoreLocation}={}){if(r.length>bl)throw new Error(E5e(bl));const u=r.length,g=t.length,h=Math.max(0,Math.min(n,g));let d=o,f=h;const C=s>1||l,v=C?Array(g):[];let A;for(;(A=t.indexOf(r,f))>-1;){let S=cC(r,{currentLocation:A,expectedLocation:h,distance:i,ignoreLocation:c});if(d=Math.min(S,d),f=A+u,C){let E=0;for(;E=L;N-=1){let U=N-1,F=e[t.charAt(U)];if(C&&(v[U]=+!!F),P[N]=(P[N+1]<<1|1)&F,S&&(P[N]|=(I[N+1]|I[N])<<1|1|I[N+1]),P[N]&b&&(p=cC(r,{errors:S,currentLocation:U,expectedLocation:h,distance:i,ignoreLocation:c}),p<=d)){if(d=p,f=U,f<=h)break;L=Math.max(1,2*h-f)}}if(cC(r,{errors:S+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:c})>d)break;I=P}const _={isMatch:f>=0,score:Math.max(.001,p)};if(C){const S=N5e(v,s);S.length?l&&(_.indices=S):_.isMatch=!1}return _}function F5e(t){let r={};for(let e=0,n=t.length;e{this.chunks.push({pattern:h,alphabet:F5e(h),startIndex:d})},g=this.pattern.length;if(g>bl){let h=0;const d=g%bl,f=g-d;for(;h{const{isMatch:A,score:I,indices:p}=B5e(r,f,C,{location:i+v,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});A&&(h=!0),g+=I,A&&p&&(u=[...u,...p])});let d={isMatch:h,score:h?g/this.chunks.length:1};return h&&n&&(d.indices=u),d}}class R1{constructor(r){this.pattern=r}static isMultiMatch(r){return FS(r,this.multiRegex)}static isSingleMatch(r){return FS(r,this.singleRegex)}search(){}}function FS(t,r){const e=t.match(r);return e?e[1]:null}class j5e extends R1{constructor(r){super(r)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(r){const e=r===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class U5e extends R1{constructor(r){super(r)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(r){const n=r.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,r.length-1]}}}class G5e extends R1{constructor(r){super(r)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(r){const e=r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class W5e extends R1{constructor(r){super(r)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(r){const e=!r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class Z5e extends R1{constructor(r){super(r)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(r){const e=r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[r.length-this.pattern.length,r.length-1]}}}class K5e extends R1{constructor(r){super(r)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(r){const e=!r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class dG extends R1{constructor(r,{location:e=st.location,threshold:n=st.threshold,distance:i=st.distance,includeMatches:o=st.includeMatches,findAllMatches:a=st.findAllMatches,minMatchCharLength:s=st.minMatchCharLength,isCaseSensitive:l=st.isCaseSensitive,ignoreLocation:c=st.ignoreLocation}={}){super(r),this._bitapSearch=new hG(r,{location:e,threshold:n,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(r){return this._bitapSearch.searchIn(r)}}class fG extends R1{constructor(r){super(r)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(r){let e=0,n;const i=[],o=this.pattern.length;for(;(n=r.indexOf(this.pattern,e))>-1;)e=n+o,i.push([n,e-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}}const _8=[j5e,fG,G5e,W5e,K5e,Z5e,U5e,dG],jS=_8.length,Y5e=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,X5e="|";function q5e(t,r={}){return t.split(X5e).map(e=>{let n=e.trim().split(Y5e).filter(o=>o&&!!o.trim()),i=[];for(let o=0,a=n.length;o!!(t[Zv.AND]||t[Zv.OR]),tve=t=>!!t[E8.PATH],rve=t=>!ss(t)&&lG(t)&&!S8(t),US=t=>({[Zv.AND]:Object.keys(t).map(r=>({[r]:t[r]}))});function CG(t,r,{auto:e=!0}={}){const n=i=>{let o=Object.keys(i);const a=tve(i);if(!a&&o.length>1&&!S8(i))return n(US(i));if(rve(i)){const l=a?i[E8.PATH]:o[0],c=a?i[E8.PATTERN]:i[l];if(!aa(c))throw new Error(z5e(l));const u={keyId:$8(l),pattern:c};return e&&(u.searcher=z8(c,r)),u}let s={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];ss(c)&&c.forEach(u=>{s.children.push(n(u))})}),s};return S8(t)||(t=US(t)),n(t)}function nve(t,{ignoreFieldNorm:r=st.ignoreFieldNorm}){t.forEach(e=>{let n=1;e.matches.forEach(({key:i,norm:o,score:a})=>{const s=i?i.weight:null;n*=Math.pow(a===0&&s?Number.EPSILON:a,(s||1)*(r?1:o))}),e.score=n})}function ive(t,r){const e=t.matches;r.matches=[],Hi(e)&&e.forEach(n=>{if(!Hi(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let a={indices:i,value:o};n.key&&(a.key=n.key.src),n.idx>-1&&(a.refIndex=n.idx),r.matches.push(a)})}function ove(t,r){r.score=t.score}function ave(t,r,{includeMatches:e=st.includeMatches,includeScore:n=st.includeScore}={}){const i=[];return e&&i.push(ive),n&&i.push(ove),t.map(o=>{const{idx:a}=o,s={item:r[a],refIndex:a};return i.length&&i.forEach(l=>{l(o,s)}),s})}class yc{constructor(r,e={},n){this.options={...st,...e},this.options.useExtendedSearch,this._keyStore=new L5e(this.options.keys),this.setCollection(r,n)}setCollection(r,e){if(this._docs=r,e&&!(e instanceof uw))throw new Error(M5e);this._myIndex=e||gG(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(r){Hi(r)&&(this._docs.push(r),this._myIndex.add(r))}remove(r=()=>!1){const e=[];for(let n=0,i=this._docs.length;n-1&&(l=l.slice(0,e)),ave(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(r){const e=z8(r,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:a,n:s})=>{if(!Hi(o))return;const{isMatch:l,score:c,indices:u}=e.searchIn(o);l&&i.push({item:o,idx:a,matches:[{score:c,value:o,norm:s,indices:u}]})}),i}_searchLogical(r){const e=CG(r,this.options),n=(s,l,c)=>{if(!s.children){const{keyId:g,searcher:h}=s,d=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(l,g),searcher:h});return d&&d.length?[{idx:c,item:l,matches:d}]:[]}const u=[];for(let g=0,h=s.children.length;g{if(Hi(s)){let c=n(e,s,l);c.length&&(o[l]||(o[l]={idx:l,item:s,matches:[]},a.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),a}_searchObjectList(r){const e=z8(r,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:a,i:s})=>{if(!Hi(a))return;let l=[];n.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:a[u],searcher:e}))}),l.length&&o.push({idx:s,item:a,matches:l})}),o}_findMatches({key:r,value:e,searcher:n}){if(!Hi(e))return[];let i=[];if(ss(e))e.forEach(({v:o,i:a,n:s})=>{if(!Hi(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({score:c,key:r,value:o,idx:a,norm:s,indices:u})});else{const{v:o,n:a}=e,{isMatch:s,score:l,indices:c}=n.searchIn(o);s&&i.push({score:l,key:r,value:o,norm:a,indices:c})}return i}}yc.version="7.0.0";yc.createIndex=gG;yc.parseIndex=D5e;yc.config=st;yc.parseQuery=CG;eve(J5e);const sve={block:"","h-full":"","of-hidden":"",class:"drawer-container relative"},lve={"h-full":"","w-full":"","of-auto":""},cve={"flex-none":"",flex:"~ gap2 items-center","text-lg":""},uve={flex:"~ items-center justify-center",absolute:"","bottom-0":"","right-2px":"","h-4":"","w-4":"","rounded-full":"","bg-primary-800":"","text-8px":"","text-white":""},gve={"w-full":"",flex:"~ gap-2 items-center",rounded:"",px2:"",py2:""},hve={"text-xs":"",op75:""},dve={op50:""},fve={key:0},Cve={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},vve={key:1,p2:"",grid:"~ cols-minmax-8rem"},Ave={key:1},Ive=50,pve=ce({__name:"assets",setup(t){const r=G(""),e=G(),n=G("grid"),i=G([]),o=j(()=>{const C=[];for(const v of i.value||[]){const A=v.path.split(".").pop();A&&!C.find(I=>I.value===A)&&C.push({label:A,value:A})}return C}),a=G([]);ege(()=>o.value,C=>{a.value=C.map(v=>v.value)});const s=G(),l=j(()=>new yc(i.value||[],{keys:["path"]})),c=j(()=>(r.value?l.value.search(r.value).map(v=>v.item):i.value||[]).filter(v=>{const A=v.path.split(".").pop();return!A||a.value.includes(A)})),u=j(()=>{const C={};for(const v of c.value){const A=`${v.relativePath.split("/").slice(0,-1).join("/")}/`;C[A]||(C[A]=[]),C[A].push(v)}return Object.entries(C).sort(([v],[A])=>v.localeCompare(A))}),g=j(()=>{const C={path:"public",children:[]},v=(A,I,p)=>{const[m,...b]=I;let _=A.children.find(S=>S.path===m);_||(_={...p,path:m,children:[]},A.children.push(_)),b.length>1?v(_,b,p):b.length===1&&_.children.push({...p,path:b[0]})};return c.value.forEach(A=>{const I=A.relativePath.split("/").filter(p=>p!=="");v(C,I,A)}),C.children});function h(){zo.value.getStaticAssets().then(C=>{i.value=C})}function d(){h()}hj(()=>{h(),zo.functions.on("assetsUpdated",d)});function f(){n.value=n.value==="list"?"grid":"list"}return fn(()=>{zo.functions.off("assetsUpdated",d)}),(C,v)=>{const A=cw,I=m5e,p=A5e,m=aG,b=c5e,_=l5e,S=fb("tooltip");return M(),k("div",sve,[w("div",lve,[D(I,{ref_key:"navbar",ref:e,search:y(r),"onUpdate:search":v[1]||(v[1]=E=>Je(r)?r.value=E:null),pb2:"","no-padding":!0},{actions:Y(()=>[w("div",cve,[D(y(Ed),{modelValue:y(a),"onUpdate:modelValue":v[0]||(v[0]=E=>Je(a)?a.value=E:null),multiple:!0,options:y(o)},{button:Y(()=>[At((M(),oe(A,{icon:"i-carbon-filter hover:op50",border:!1,title:"Filter",relative:"","cursor-pointer":"",p2:"","text-lg":"",onClick:()=>{}},{default:Y(()=>[w("span",uve,Se(y(a).length),1)]),_:1})),[[S,"Filter",void 0,{"bottom-end":!0}]])]),item:Y(({item:E,active:T})=>[w("div",gve,[D(y(p2),{"model-value":T},null,8,["model-value"]),w("span",hve,Se(E.label),1)])]),_:1},8,["modelValue","options"]),At(D(y(Gt),{border:!1,icon:y(n)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",action:"","cursor-pointer":"","text-lg":"",onClick:f},null,8,["icon"]),[[S,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:Y(()=>[w("div",dve,[y(r)?(M(),k("span",fve,Se(y(c).length)+" matched · ",1)):ie("",!0),w("span",null,Se(y(i)?.length)+" assets in total",1)])]),_:1},8,["search"]),y(n)==="grid"?(M(),k(Te,{key:0},[y(u).length>1?(M(!0),k(Te,{key:0},It(y(u),([E,T])=>(M(),oe(m,{key:E,text:E,description:`${T.length} items`,open:T.length<=Ive,padding:!1},{default:Y(()=>[w("div",Cve,[(M(!0),k(Te,null,It(T,L=>(M(),oe(p,{key:L.path,asset:L,folder:E,onClick:H=>s.value=L},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(M(),k("div",vve,[(M(!0),k(Te,null,It(y(c),E=>(M(),oe(p,{key:E.path,asset:E,onClick:T=>s.value=E},null,8,["asset","onClick"]))),128))]))],64)):(M(),k("div",Ave,[(M(!0),k(Te,null,It(y(g),(E,T)=>(M(),oe(b,{key:T,modelValue:y(s),"onUpdate:modelValue":v[2]||(v[2]=L=>Je(s)?s.value=L:null),item:E},null,8,["modelValue","item"]))),128))]))]),D(y(rG),{"model-value":!!y(s),top:y(e),permanent:"","mount-to":".drawer-container",position:"absolute","content-class":"w120 text-sm","onUpdate:modelValue":v[4]||(v[4]=E=>{E||(s.value=void 0)})},{default:Y(()=>[y(s)?(M(),oe(_,{key:0,modelValue:y(s),"onUpdate:modelValue":v[3]||(v[3]=E=>Je(s)?s.value=E:null)},null,8,["modelValue"])):ie("",!0)]),_:1},8,["model-value","top"])])}}}),D1={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,r)=>(t[r.id]=r)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,r){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=r},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,r){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===r?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,r),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=r,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[r])},onSplitterDblClick(t,r){let e=0;this.panes=this.panes.map((n,i)=>(n.size=i===r?n.max:n.min,i!==r&&(e+=n.min),n)),this.panes[r].size-=e,this.$emit("pane-maximize",this.panes[r]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(t,r){this.$emit("pane-click",this.indexedPanes[r])},getCurrentMouseDrag(t){const r=this.container.getBoundingClientRect(),{clientX:e,clientY:n}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:e-r.left,y:n-r.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const r=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=r-t),t*100/r},calculatePanesSize(t){const r=this.touch.activeSplitter;let e={prevPanesSize:this.sumPrevPanesSize(r),nextPanesSize:this.sumNextPanesSize(r),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:e.prevPanesSize),i=100-(this.pushOtherPanes?0:e.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(t),i),n);let a=[r,r+1],s=this.panes[a[0]]||null,l=this.panes[a[1]]||null;const c=s.max<100&&o>=s.max+e.prevPanesSize,u=l.max<100&&o<=100-(l.max+this.sumNextPanesSize(r+1));if(c||u){c?(s.size=s.max,l.size=Math.max(100-s.max-e.prevPanesSize-e.nextPanesSize,0)):(s.size=Math.max(100-l.max-e.prevPanesSize-this.sumNextPanesSize(r+1),0),l.size=l.max);return}if(this.pushOtherPanes){const g=this.doPushOtherPanes(e,o);if(!g)return;({sums:e,panesToResize:a}=g),s=this.panes[a[0]]||null,l=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(o-e.prevPanesSize-e.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-o-e.nextPanesSize-e.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,r){const e=this.touch.activeSplitter,n=[e,e+1];return r{o>n[0]&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),t.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,o)=>{o>0&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),this.panes[n[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):r>100-t.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(e).index,t.nextReachedMinPanes=0,n[1]>e+1&&this.panes.forEach((i,o)=>{o>e&&o{o=e+1&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),this.panes[n[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:n}},sumPrevPanesSize(t){return this.panes.reduce((r,e,n)=>r+(nr+(n>t+1?e.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(r=>r.indexr.min)||{}},findNextExpandedPane(t){return this.panes.find(r=>r.index>t+1&&r.size>r.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const r=t.classList.contains("splitpanes__pane"),e=t.classList.contains("splitpanes__splitter");!r&&!e&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,r,e=!1){const n=t-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),e||(i.onmousedown=o=>this.onMouseDown(o,n),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=o=>this.onMouseDown(o,n)),i.onclick=o=>this.onSplitterClick(o,n+1)),this.dblClickSplitter&&(i.ondblclick=o=>this.onSplitterDblClick(o,n+1)),r.parentNode.insertBefore(i,r)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let r=0;t.forEach(e=>{e.className.includes("splitpanes__pane")&&(!r&&this.firstSplitter?this.addSplitter(r,e,!0):r&&this.addSplitter(r,e),r++)})},requestUpdate({target:t,...r}){const e=this.indexedPanes[t._.uid];Object.entries(r).forEach(([n,i])=>e[n]=i)},onPaneAdd(t){let r=-1;Array.from(t.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&r++,i===t.$el));const e=parseFloat(t.minSize),n=parseFloat(t.maxSize);this.panes.splice(r,0,{id:t._.uid,index:r,min:isNaN(e)?0:e,max:isNaN(n)?100:n,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((i,o)=>i.index=o),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[r]}),this.$emit("pane-add",{index:r,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(t){const r=this.panes.findIndex(n=>n.id===t._.uid),e=this.panes.splice(r,1)[0];this.panes.forEach((n,i)=>n.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...e,index:r}}),this.$emit("pane-remove",{removed:e,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(r=>r.givenSize!==null||r.min||r.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},equalize(){const t=100/this.panesCount;let r=0;const e=[],n=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(t,i.max),i.min),r-=i.size,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)}),r>.1&&this.readjustSizes(r,e,n)},initialPanesSizing(){let t=100;const r=[],e=[];let n=0;this.panes.forEach(o=>{t-=o.size,o.size!==null&&n++,o.size>=o.max&&r.push(o.id),o.size<=o.min&&e.push(o.id)});let i=100;t>.1&&(this.panes.forEach(o=>{o.size===null&&(o.size=Math.max(Math.min(t/(this.panesCount-n),o.max),o.min)),i-=o.size}),i>.1&&this.readjustSizes(t,r,e))},equalizeAfterAddOrRemove({addedPane:t,removedPane:r}={}){let e=100/this.panesCount,n=0;const i=[],o=[];t&&t.givenSize!==null&&(e=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(a=>{t&&t.givenSize!==null&&t.id===a.id||(a.size=Math.max(Math.min(e,a.max),a.min)),n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,i,o))},readjustSizes(t,r,e){let n;t>0?n=t/(this.panesCount-r.length):n=t/(this.panesCount-e.length),this.panes.forEach((i,o)=>{if(t>0&&!r.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}else if(!e.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((r,e)=>{r.ondblclick=t?n=>this.onSplitterDblClick(n,e):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return vc("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},mve=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},yve={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function bve(t,r,e,n,i,o){return M(),k("div",{class:"splitpanes__pane",onClick:r[0]||(r[0]=a=>o.onPaneClick(a,t._.uid)),style:kr(t.style)},[et(t.$slots,"default")],4)}const hn=mve(yve,[["render",bve]]);function wve(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let V5;function T8(){T8.init||(T8.init=!0,V5=wve()!==-1)}var CI={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){T8(),dn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",V5&&this.$el.appendChild(t),t.data="about:blank",V5||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!V5&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const $ve=$B();bB("data-v-b329ee4c");const _ve={class:"resize-observer",tabindex:"-1"};wB();const Mve=$ve((t,r,e,n,i,o)=>(M(),oe("div",_ve)));CI.render=Mve;CI.__scopeId="data-v-b329ee4c";CI.__file="src/components/ResizeObserver.vue";function P5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P5=function(r){return typeof r}:P5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},P5(t)}function zve(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Eve(t,r){for(var e=0;et.length)&&(r=t.length);for(var e=0,n=new Array(r);e2&&arguments[2]!==void 0?arguments[2]:{},n,i,o,a=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),g=1;g1){var c=s.find(function(g){return g.isIntersecting});c&&(l=c)}if(i.callback){var u=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(u===i.oldResult)return;i.oldResult=u,i.callback(u,l)}},this.options.intersection),dn(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),t}();function AG(t,r,e){var n=r.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new Vve(t,n,e);t._vue_visibilityState=i}}function Pve(t,r,e){var n=r.value,i=r.oldValue;if(!vG(n,i)){var o=t._vue_visibilityState;if(!n){IG(t);return}o?o.createObserver(n,e):AG(t,{value:n},e)}}function IG(t){var r=t._vue_visibilityState;r&&(r.destroyObserver(),delete t._vue_visibilityState)}var Rve={beforeMount:AG,updated:Pve,unmounted:IG},Dve={itemsLimit:1e3},Nve=/(auto|scroll)/;function pG(t,r){return t.parentNode===null?r:pG(t.parentNode,r.concat([t]))}var Np=function(r,e){return getComputedStyle(r,null).getPropertyValue(e)},Bve=function(r){return Np(r,"overflow")+Np(r,"overflow-y")+Np(r,"overflow-x")},Fve=function(r){return Nve.test(Bve(r))};function WS(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var r=pG(t.parentNode,[]),e=0;e{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeUnmount(){this.removeListeners()},methods:{addView(t,r,e,n,i){const o=fB({id:Wve++,index:r,used:!0,key:n,type:i}),a=sb({item:e,position:0,nr:o});return t.push(a),a},unuseView(t,r=!1){const e=this.$_unusedViews,n=t.nr.type;let i=e.get(n);i||(i=[],e.set(n,i)),i.push(t),r||(t.nr.used=!1,t.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const r=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});r(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&r()},this.updateInterval))}},handleVisibilityChange(t,r){this.ready&&(t||r.boundingClientRect.width!==0||r.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,r=!1){const e=this.itemSize,n=this.gridItems||1,i=this.itemSecondarySize||e,o=this.$_computedMinItemSize,a=this.typeField,s=this.simpleArray?null:this.keyField,l=this.items,c=l.length,u=this.sizes,g=this.$_views,h=this.$_unusedViews,d=this.pool,f=this.itemIndexByKey;let C,v,A,I,p;if(!c)C=v=I=p=A=0;else if(this.$_prerender)C=I=0,v=p=Math.min(this.prerender,l.length),A=null;else{const L=this.getScroll();if(r){let R=L.start-this.$_lastUpdateScrollPosition;if(R<0&&(R=-R),e===null&&RL.start&&(U=F),F=~~((N+U)/2);while(F!==K);for(F<0&&(F=0),C=F,A=u[c-1].accumulator,v=F;vc&&(v=c)),I=C;Ic&&(v=c),I<0&&(I=0),p>c&&(p=c),A=Math.ceil(c/n)*e}}v-C>Dve.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let m;const b=C<=this.$_endIndex&&v>=this.$_startIndex;if(b)for(let L=0,H=d.length;L=v)&&this.unuseView(m));const _=b?null:new Map;let S,E,T;for(let L=C;L=P.length)&&(m=this.addView(d,L,S,H,E),this.unuseView(m,!0),P=h.get(E)),m=P[T],_.set(E,T+1)),g.delete(m.nr.key),m.nr.used=!0,m.nr.index=L,m.nr.key=H,m.nr.type=E,g.set(H,m),R=!0;else if(!m.nr.used&&(m.nr.used=!0,R=!0,P)){const N=P.indexOf(m);N!==-1&&P.splice(N,1)}m.item=S,R&&(L===l.length-1&&this.$emit("scroll-end"),L===0&&this.$emit("scroll-start")),e===null?(m.position=u[L-1].accumulator,m.offset=0):(m.position=Math.floor(L/n)*e,m.offset=L%n*i)}return this.$_startIndex=C,this.$_endIndex=v,this.emitUpdate&&this.$emit("update",C,v,I,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let t=WS(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:r}=this,e=r==="vertical";let n;if(this.pageMode){const i=t.getBoundingClientRect(),o=e?i.height:i.width;let a=-(e?i.top:i.left),s=e?window.innerHeight:window.innerWidth;a<0&&(s+=a,a=0),a+s>o&&(s=o-a),n={start:a,end:a+s}}else e?n={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:n={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,O8?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(t){let r;const e=this.gridItems||1;this.itemSize===null?r=t>0?this.sizes[t-1].accumulator:0:r=Math.floor(t/e)*this.itemSize,this.scrollToPosition(r)},scrollToPosition(t){const r=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,n,i;if(this.pageMode){const o=WS(this.$el),a=o.tagName==="HTML"?0:o[r.scroll],s=o.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[r.start]-s[r.start];e=o,n=r.scroll,i=t+a+c}else e=this.$el,n=r.scroll,i=t;e[n]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((t,r)=>t.nr.index-r.nr.index)}}};const Zve={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Kve={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Yve(t,r,e,n,i,o){const a=Ro("ResizeObserver"),s=fb("observe-visibility");return At((M(),k("div",{class:Le(["vue-recycle-scroller",{ready:i.ready,"page-mode":e.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:r[0]||(r[0]=(...l)=>o.handleScroll&&o.handleScroll(...l))},[t.$slots.before?(M(),k("div",Zve,[et(t.$slots,"before")],512)):ie("v-if",!0),(M(),oe(y1(e.listTag),{ref:"wrapper",style:kr({[t.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:Le(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:Y(()=>[(M(!0),k(Te,null,It(i.pool,l=>(M(),oe(y1(e.itemTag),Xr({key:l.nr.id,style:i.ready?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${l.position}px) translate${t.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:e.gridItems?`${t.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${t.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&i.hoverKey===l.nr.key}]]},Loe(e.skipHover?{}:{mouseenter:()=>{i.hoverKey=l.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:Y(()=>[et(t.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),et(t.$slots,"empty")]),_:3},8,["style","class"])),t.$slots.after?(M(),k("div",Kve,[et(t.$slots,"after")],512)):ie("v-if",!0),D(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[s,o.handleVisibilityChange]])}gw.render=Yve;gw.__file="src/components/RecycleScroller.vue";var mG=typeof global=="object"&&global&&global.Object===Object&&global,Xve=typeof self=="object"&&self&&self.Object===Object&&self,Is=mG||Xve||Function("return this")(),_a=Is.Symbol,yG=Object.prototype,qve=yG.hasOwnProperty,Qve=yG.toString,qg=_a?_a.toStringTag:void 0;function Jve(t){var r=qve.call(t,qg),e=t[qg];try{t[qg]=void 0;var n=!0}catch{}var i=Qve.call(t);return n&&(r?t[qg]=e:delete t[qg]),i}var eAe=Object.prototype,tAe=eAe.toString;function rAe(t){return tAe.call(t)}var nAe="[object Null]",iAe="[object Undefined]",ZS=_a?_a.toStringTag:void 0;function Qu(t){return t==null?t===void 0?iAe:nAe:ZS&&ZS in Object(t)?Jve(t):rAe(t)}function Iu(t){return t!=null&&typeof t=="object"}var oAe="[object Symbol]";function hw(t){return typeof t=="symbol"||Iu(t)&&Qu(t)==oAe}function aAe(t,r){for(var e=-1,n=t==null?0:t.length,i=Array(n);++e-1&&t%1==0&&t-1&&t%1==0&&t<=EAe}function MG(t){return t!=null&&fw(t.length)&&!wG(t)}var SAe=Object.prototype;function TAe(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||SAe;return t===e}function LAe(t,r){for(var e=-1,n=Array(t);++e-1}function RIe(t,r){var e=this.__data__,n=vI(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function ps(t){var r=-1,e=t==null?0:t.length;for(this.clear();++rs))return!1;var c=o.get(t),u=o.get(r);if(c&&u)return c==r&&u==t;var g=-1,h=!0,d=e&z4e?new Kv:void 0;for(o.set(t,r),o.set(r,t);++gPG)return!1;let i=!1;const o=Object.keys(t);let a,s;for(let l=0;lPG)return!1;let i=!1,o;for(let a=0;a$pe({[s.key]:s.value},e));a.length&&(i[o]=n?n(a):a)}return i}const NG=ce({__name:"NodeTag",props:{tag:{}},setup(t){return(r,e)=>At((M(),k("span",{style:kr({color:`#${y(vT)(r.tag.textColor)}`,backgroundColor:`#${y(vT)(r.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[ze(Se(r.tag.label),1)],4)),[[y(Rt),{content:r.tag.tooltip,html:!0}]])}}),zpe={class:"p2"},Epe=["onClick"],BG=ce({__name:"SelectiveList",props:au({data:{}},{modelValue:{},modelModifiers:{}}),emits:au(["select"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=YA(t,"modelValue");function i(o){n.value=o,e("select",o)}return(o,a)=>(M(),k("ul",zpe,[(M(!0),k(Te,null,It(o.data,s=>(M(),k("li",{key:s.id,class:Le(["selectable-item",{active:s.id===n.value}]),onClick:l=>i(s.id)},[ze(Se(s.label)+" ",1),(M(!0),k(Te,null,It(s.tags,(l,c)=>(M(),oe(NG,{key:c,tag:l},null,8,["tag"]))),128))],10,Epe))),128))]))}}),yw=Symbol("VirtualRouteKey"),FG=Symbol("VirtualRoutesKey");function bw(t,r){const e=r?.defaultRoutePath??id(t)[0].path,n=G({path:e}),i=j(()=>id(t)),o=j(()=>n.value.path),a=ce({setup(){return()=>{const l=i.value.find(c=>c.path===o.value);return l?vc(l.component):null}}});function s(){n.value.path=e}return Di(yw,n),Di(FG,i),{VirtualRouterView:a,restoreRouter:s}}function mf(){const t=br(yw);return{push(r){t.value.path=r}}}function Spe(){const t=br(FG),r=br(yw);return{routes:t,currentRoute:r}}const Tpe={border:"b base",class:"flex items-center justify-between px3"},Lpe=["href"],kpe=["href"],Ju=ce({__name:"DevToolsHeader",props:{githubRepoLink:{},docLink:{}},setup(t){const r=mf();return(e,n)=>(M(),k("div",Tpe,[w("div",null,[et(e.$slots,"default",{},()=>[w("i",{class:"i-ep:back cursor-pointer op70 text-base hover:op100",onClick:n[0]||(n[0]=i=>y(r).push("/"))})])]),w("div",null,[w("a",{class:"pr2",href:e.docLink,target:"_blank",title:"View Documentation"},n[1]||(n[1]=[w("i",{class:"i-clarity:document-line cursor-pointer op70 text-base hover:op100"},null,-1)]),8,Lpe),e.githubRepoLink?(M(),k("a",{key:0,href:e.githubRepoLink,target:"_blank",title:"Star on GitHub"},n[2]||(n[2]=[w("i",{class:"i-mdi:github cursor-pointer op70 text-base hover:op100"},null,-1)]),8,kpe)):ie("",!0)])]))}}),N1=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},Ope={},xpe={class:"h-full flex flex-col items-center justify-center op50"};function Hpe(t,r){return M(),k("div",xpe,[r[0]||(r[0]=w("i",{class:"i-lets-icons:blank-light"},null,-1)),w("span",null,[et(t.$slots,"default")])])}const K2=N1(Ope,[["render",Hpe]]),Vpe={class:"flex gap3"},Ppe=["onClick"],eg=ce({__name:"Navbar",setup(t){const{routes:r,currentRoute:e}=Spe(),n=mf();return(i,o)=>(M(),k("ul",Vpe,[(M(!0),k(Te,null,It(y(r),(a,s)=>(M(),k("li",{key:s,class:Le(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100",y(e).path===a.path?"op-100 font-medium text-primary-400 border-primary-400":"border-transparent op-70"]),onClick:l=>y(n).push(a.path)},Se(a.name),11,Ppe))),128))]))}}),ww=ce({__name:"ToggleExpanded",props:{value:{type:Boolean}},setup(t){return(r,e)=>(M(),k("i",{class:Le(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base",{"transform rotate-90":r.value}])},null,2))}}),jG=Symbol("StateEditorSymbol");function Rpe(t){const r=G(t);return Di(jG,r),{context:r}}function $w(){return br(jG)}function Dpe(){const t=G(""),r=G("string"),e=G(!1),n=$w();return{editingText:t,editing:e,toggleEditing(i){i&&(r.value=i),e.value=!e.value},editingType:r,nodeId:j(()=>n.value.nodeId)}}function Npe(t,r){if(t==="array")return r.length;const e="newProp";let n=1;for(;;){const i=`${e}${n}`;if(!r[i])return i;n++}}function Bpe(){const t=G({enable:!1,key:"",value:"undefined"});function r(n,i){const o=Npe(n,i);t.value={enable:!0,key:o.toString(),value:"undefined"}}function e(){t.value={enable:!1,key:"",value:"undefined"}}return{addNewProp:r,resetDrafting:e,draftingNewProp:t}}const UG="expanded-state";function ls(t=""){const r=G([]);return Di(`${UG}-${t}`,r),{expanded:r}}function _w(t=""){const r=br(`${UG}-${t}`,G([]));function e(n){const i=r.value.indexOf(n);i===-1?r.value.push(n):r.value.splice(i,1)}return{expanded:r,toggleExpanded:e}}function Mw(t){return rb()?(JN(t),!0):!1}function On(t){return typeof t=="function"?t():y(t)}const zw=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fpe=t=>typeof t<"u",jpe=Object.prototype.toString,Upe=t=>jpe.call(t)==="[object Object]",Yv=()=>{};function Gpe(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const Wpe=t=>t();function Zpe(t,r={}){let e,n,i=Yv;const o=a=>{clearTimeout(a),i(),i=Yv};return a=>{const s=On(t),l=On(r.maxWait);return e&&o(e),s<=0||l!==void 0&&l<=0?(n&&(o(n),n=null),Promise.resolve(a())):new Promise((c,u)=>{i=r.rejectOnCancel?u:c,l&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,c(a())},l)),e=setTimeout(()=>{n&&o(n),n=null,c(a())},s)})}}function IT(t,r=!1,e="Timeout"){return new Promise((n,i)=>{setTimeout(r?()=>i(e):n,t)})}function Kpe(t){let r;function e(){return r||(r=t()),r}return e.reset=async()=>{const n=r;r=void 0,n&&await n},e}function Ype(t){return As()}function Xpe(t,r,e={}){const{eventFilter:n=Wpe,...i}=e;return Ke(t,Gpe(n,r),i)}function qpe(t,r=!0,e){Ype()?Ii(t,e):r?t():dn(t)}function D8(t,r=!1){function e(g,{flush:h="sync",deep:d=!1,timeout:f,throwOnTimeout:C}={}){let v=null;const A=[new Promise(I=>{v=Ke(t,p=>{g(p)!==r&&(v?v():dn(()=>v?.()),I(p))},{flush:h,deep:d,immediate:!0})})];return f!=null&&A.push(IT(f,C).then(()=>On(t)).finally(()=>v?.())),Promise.race(A)}function n(g,h){if(!Je(g))return e(p=>p===g,h);const{flush:d="sync",deep:f=!1,timeout:C,throwOnTimeout:v}=h??{};let A=null;const I=[new Promise(p=>{A=Ke([t,g],([m,b])=>{r!==(m===b)&&(A?A():dn(()=>A?.()),p(m))},{flush:d,deep:f,immediate:!0})})];return C!=null&&I.push(IT(C,v).then(()=>On(t)).finally(()=>(A?.(),On(t)))),Promise.race(I)}function i(g){return e(h=>!!h,g)}function o(g){return n(null,g)}function a(g){return n(void 0,g)}function s(g){return e(Number.isNaN,g)}function l(g,h){return e(d=>{const f=Array.from(d);return f.includes(g)||f.includes(On(g))},h)}function c(g){return u(1,g)}function u(g=1,h){let d=-1;return e(()=>(d+=1,d>=g),h)}return Array.isArray(On(t))?{toMatch:e,toContains:l,changed:c,changedTimes:u,get not(){return D8(t,!r)}}:{toMatch:e,toBe:n,toBeTruthy:i,toBeNull:o,toBeNaN:s,toBeUndefined:a,changed:c,changedTimes:u,get not(){return D8(t,!r)}}}function GG(t){return D8(t)}function Qpe(t,r,e={}){const{immediate:n=!0}=e,i=G(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...c){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...c)},On(r))}return n&&(i.value=!0,zw&&l()),Mw(s),{isPending:V1(i),start:l,stop:s}}function Jpe(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=Je(t),o=G(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=On(e);return o.value=o.value===l?On(n):l,o.value}}return i?a:[o,a]}function e3e(t,r,e={}){const{debounce:n=0,maxWait:i=void 0,...o}=e;return Xpe(t,r,{...o,eventFilter:Zpe(n,{maxWait:i})})}const pI=zw?window:void 0,WG=zw?window.navigator:void 0;function Ml(t){var r;const e=On(t);return(r=e?.$el)!=null?r:e}function Qs(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=pI):[r,e,n,i]=t,!r)return Yv;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,g,h,d)=>(u.addEventListener(g,h,d),()=>u.removeEventListener(g,h,d)),l=Ke(()=>[Ml(r),On(i)],([u,g])=>{if(a(),!u)return;const h=Upe(g)?{...g}:g;o.push(...e.flatMap(d=>n.map(f=>s(u,d,f,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Mw(c),c}function t3e(){const t=G(!1),r=As();return r&&Ii(()=>{t.value=!0},r),t}function Ew(t){const r=t3e();return j(()=>(r.value,!!t()))}function pT(t,r={}){const{controls:e=!1,navigator:n=WG}=r,i=Ew(()=>n&&"permissions"in n),o=Bi(),a=typeof t=="string"?{name:t}:t,s=Bi(),l=()=>{var u,g;s.value=(g=(u=o.value)==null?void 0:u.state)!=null?g:"prompt"};Qs(o,"change",l);const c=Kpe(async()=>{if(i.value){if(!o.value)try{o.value=await n.permissions.query(a)}catch{o.value=void 0}finally{l()}if(e)return mt(o.value)}});return c(),e?{state:s,isSupported:i,query:c}:s}function r3e(t={}){const{navigator:r=WG,read:e=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=t,a=Ew(()=>r&&"clipboard"in r),s=pT("clipboard-read"),l=pT("clipboard-write"),c=j(()=>a.value||o),u=G(""),g=G(!1),h=Qpe(()=>g.value=!1,i);function d(){a.value&&A(s.value)?r.clipboard.readText().then(I=>{u.value=I}):u.value=v()}c.value&&e&&Qs(["copy","cut"],d);async function f(I=On(n)){c.value&&I!=null&&(a.value&&A(l.value)?await r.clipboard.writeText(I):C(I),u.value=I,g.value=!0,h.start())}function C(I){const p=document.createElement("textarea");p.value=I??"",p.style.position="absolute",p.style.opacity="0",document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function v(){var I,p,m;return(m=(p=(I=document?.getSelection)==null?void 0:I.call(document))==null?void 0:p.toString())!=null?m:""}function A(I){return I==="granted"||I==="prompt"}return{isSupported:c,text:u,copied:g,copy:f}}function n3e(t){return JSON.parse(JSON.stringify(t))}function i3e(t,r,e={}){const{window:n=pI,...i}=e;let o;const a=Ew(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=j(()=>{const g=On(t);return Array.isArray(g)?g.map(h=>Ml(h)):[Ml(g)]}),c=Ke(l,g=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const h of g)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Mw(u),{isSupported:a,stop:u}}function o3e(t,r={width:0,height:0},e={}){const{window:n=pI,box:i="content-box"}=e,o=j(()=>{var g,h;return(h=(g=Ml(t))==null?void 0:g.namespaceURI)==null?void 0:h.includes("svg")}),a=G(r.width),s=G(r.height),{stop:l}=i3e(t,([g])=>{const h=i==="border-box"?g.borderBoxSize:i==="content-box"?g.contentBoxSize:g.devicePixelContentBoxSize;if(n&&o.value){const d=Ml(t);if(d){const f=d.getBoundingClientRect();a.value=f.width,s.value=f.height}}else if(h){const d=Array.isArray(h)?h:[h];a.value=d.reduce((f,{inlineSize:C})=>f+C,0),s.value=d.reduce((f,{blockSize:C})=>f+C,0)}else a.value=g.contentRect.width,s.value=g.contentRect.height},e);qpe(()=>{const g=Ml(t);g&&(a.value="offsetWidth"in g?g.offsetWidth:r.width,s.value="offsetHeight"in g?g.offsetHeight:r.height)});const c=Ke(()=>Ml(t),g=>{a.value=g?r.width:0,s.value=g?r.height:0});function u(){l(),c()}return{width:a,height:s,stop:u}}const a3e={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function s3e(t={}){const{reactive:r=!1,target:e=pI,aliasMap:n=a3e,passive:i=!0,onEventFired:o=Yv}=t,a=ba(new Set),s={toJSON(){return{}},current:a},l=r?ba(s):s,c=new Set,u=new Set;function g(C,v){C in l&&(r?l[C]=v:l[C].value=v)}function h(){a.clear();for(const C of u)g(C,!1)}function d(C,v){var A,I;const p=(A=C.key)==null?void 0:A.toLowerCase(),m=[(I=C.code)==null?void 0:I.toLowerCase(),p].filter(Boolean);p&&(v?a.add(p):a.delete(p));for(const b of m)u.add(b),g(b,v);p==="meta"&&!v?(c.forEach(b=>{a.delete(b),g(b,!1)}),c.clear()):typeof C.getModifierState=="function"&&C.getModifierState("Meta")&&v&&[...a,...m].forEach(b=>c.add(b))}Qs(e,"keydown",C=>(d(C,!0),o(C)),{passive:i}),Qs(e,"keyup",C=>(d(C,!1),o(C)),{passive:i}),Qs("blur",h,{passive:!0}),Qs("focus",h,{passive:!0});const f=new Proxy(l,{get(C,v,A){if(typeof v!="string")return Reflect.get(C,v,A);if(v=v.toLowerCase(),v in n&&(v=n[v]),!(v in l))if(/[+_-]/.test(v)){const p=v.split(/[+_-]/g).map(m=>m.trim());l[v]=j(()=>p.every(m=>On(f[m])))}else l[v]=G(!1);const I=Reflect.get(C,v,A);return r?On(I):I}});return f}function l3e(t,r,e,n={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:g,shouldEmit:h}=n,d=As(),f=e||d?.emit||((i=d?.$emit)==null?void 0:i.bind(d))||((a=(o=d?.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(d?.proxy));let C=c;C=C||`update:${r.toString()}`;const v=p=>s?typeof s=="function"?s(p):n3e(p):p,A=()=>Fpe(t[r])?v(t[r]):g,I=p=>{h?h(p)&&f(C,p):f(C,p)};if(l){const p=A(),m=G(p);let b=!1;return Ke(()=>t[r],_=>{b||(b=!0,m.value=v(_),dn(()=>b=!1))}),Ke(m,_=>{!b&&(_!==t[r]||u)&&I(_)},{deep:u}),m}else return j({get(){return A()},set(p){I(p)}})}function c3e(t,r={}){const{enter:e=()=>{},leave:n=()=>{},initial:i=!1}=r,o=G(i);return Qs(t,"mouseenter",()=>{o.value=!0,e()}),Qs(t,"mouseleave",()=>{o.value=!1,n()}),{isHovering:o}}const u3e={class:"flex pl5px"},g3e={class:"w160px py5px"},h3e=ce({__name:"StateFieldEditor",props:{data:{},hovering:{type:Boolean},depth:{},showAddIfNeeded:{type:Boolean,default:!0},disableEdit:{type:Boolean}},emits:["enableEditInput","addNewProp"],setup(t){const r=t,e=$w(),{copy:n,isSupported:i}=r3e(),o=G(!1),a=j(()=>Ob(r.data.value)),s=j(()=>a.value.value),l=j(()=>a.value.customType),c=j(()=>s.value===null?"null":typeof s.value),u={flat:!0,size:"mini"},g=j(()=>({"opacity-0":!r.hovering}));async function h(f,C=!1){await he.value.editInspectorState({path:r.data.path||[r.data.key],inspectorId:e.value.inspectorId,type:r.data.stateType,nodeId:e.value.nodeId,state:{newKey:null,value:mt(f),type:c.value,remove:C}}),await he.value.sendInspectorState(e.value.inspectorId)}function d(f,C){const v=typeof f=="number"?f+C:BigInt(f)+BigInt(C);h(v)}return(f,C)=>(M(),k("div",u3e,[!r.disableEdit&&f.data.editable?(M(),k(Te,{key:0},[c.value==="string"||c.value==="number"||c.value==="object"||c.value==="null"?(M(),k(Te,{key:0},[At((M(),oe(y(ct),Xr(u,{class:g.value,onClick:C[0]||(C[0]=Wn(v=>f.$emit("enableEditInput",c.value),["stop"]))}),{icon:Y(()=>[D(y(Gt),{icon:"i-material-symbols-edit-rounded"})]),_:1},16,["class"])),[[y(Rt),{content:"Edit value"}]]),c.value==="object"&&f.showAddIfNeeded?At((M(),oe(y(ct),Xr({key:0},u,{class:g.value,onClick:C[1]||(C[1]=Wn(v=>f.$emit("addNewProp",Array.isArray(s.value)?"array":"object"),["stop"]))}),{icon:Y(()=>[D(y(Gt),{icon:"i-material-symbols-add-circle-rounded"})]),_:1},16,["class"])),[[y(Rt),{content:"Add new value"}]]):ie("",!0)],64)):ie("",!0),c.value==="boolean"?(M(),oe(y(ct),Xr({key:1},u,{class:g.value,onClick:C[2]||(C[2]=v=>h(!s.value))}),{icon:Y(()=>[D(y(Gt),{icon:s.value?"i-material-symbols-check-box-sharp":"i-material-symbols-check-box-outline-blank-sharp"},null,8,["icon"])]),_:1},16,["class"])):c.value==="number"||l.value==="bigint"?(M(),k(Te,{key:2},[D(y(ct),Xr(u,{class:g.value,onClick:C[3]||(C[3]=Wn(v=>d(s.value,1),["stop"]))}),{icon:Y(()=>[D(y(Gt),{icon:"i-carbon-add"})]),_:1},16,["class"]),D(y(ct),Xr(u,{class:g.value,onClick:C[4]||(C[4]=Wn(v=>d(s.value,-1),["stop"]))}),{icon:Y(()=>[D(y(Gt),{icon:"i-carbon-subtract"})]),_:1},16,["class"])],64)):ie("",!0)],64)):ie("",!0),!r.disableEdit&&f.depth>0&&f.data.editable?(M(),oe(y(ct),Xr({key:1},u,{class:g.value,onClick:C[5]||(C[5]=Wn(v=>h(s.value,!0),["stop"]))}),{icon:Y(()=>[D(y(Gt),{icon:"i-material-symbols-delete-rounded"})]),_:1},16,["class"])):ie("",!0),D(y(Au),{class:Le({"opacity-0":!f.hovering&&!o.value}),"button-props":{flat:!0,size:"mini"},disabled:!y(i),"onUpdate:visible":C[8]||(C[8]=v=>o.value=v)},{popper:Y(()=>[w("div",g3e,[D(y(VS),{onClick:C[6]||(C[6]=v=>y(n)(typeof s.value=="object"?JSON.stringify(s.value):s.value.toString()))},{icon:Y(()=>[D(y(Gt),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),C[9]||(C[9]=ze(" Copy Value "))]),_:1}),D(y(VS),{onClick:C[7]||(C[7]=()=>{y(n)(f.data.key)})},{icon:Y(()=>[D(y(Gt),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),C[10]||(C[10]=ze(" Copy Path "))]),_:1})])]),"button-icon":Y(()=>[D(y(Gt),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}}),d3e={class:"flex-inline items-center gap4px"},Up=ce({__name:"StateFieldInputEditor",props:{modelValue:{},customType:{},showActions:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0}},emits:["cancel","submit","update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=j(()=>e.customType==="date"?"datetime-local":""),{escape:o,enter:a}=s3e();gn(()=>{o.value?n("cancel"):a.value&&n("submit")});const s=l3e(e,"modelValue",n);function l(u){try{return S5(u,e.customType),!0}catch{return!1}}const c=G(!1);return Ke(s,as(()=>{c.value=!l(s.value)},300)),(u,g)=>(M(),k("span",d3e,[D(y(Fi),{modelValue:y(s),"onUpdate:modelValue":g[0]||(g[0]=h=>Je(s)?s.value=h:null),type:i.value,variant:c.value?"warning":"normal",class:Le(["h25px px4px",u.customType==="date"?"w240px":"w120px"]),"auto-focus":u.autoFocus,onClick:g[1]||(g[1]=Wn(()=>{},["stop"]))},null,8,["modelValue","type","variant","class","auto-focus"]),u.showActions?(M(),k(Te,{key:0},[At((M(),oe(y(ct),{size:"mini",flat:"",class:"p2px!",onClick:g[2]||(g[2]=Wn(h=>u.$emit("cancel"),["stop"]))},{icon:Y(()=>[D(y(Gt),{icon:"i-material-symbols-cancel"})]),_:1})),[[y(Rt),{content:"Esc to cancel"}]]),c.value?At((M(),oe(y(Gt),{key:1,icon:"i-material-symbols-warning",class:"color-warning-500 dark:color-warning-300"},null,512)),[[y(Rt),{content:"Invalid value"}]]):At((M(),oe(y(ct),{key:0,size:"mini",flat:"",class:"p2px!",onClick:g[3]||(g[3]=Wn(h=>u.$emit("submit"),["stop"]))},{icon:Y(()=>[D(y(Gt),{icon:"i-material-symbols-save"})]),_:1})),[[y(Rt),{content:"Enter to submit change"}]])],64)):ie("",!0)]))}}),f3e={key:1,pl5:""},C3e={op70:"",class:"whitespace-nowrap"},v3e=["innerHTML"],A3e={key:0},I3e={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},mT=30,p3e=ce({__name:"StateFieldViewer",props:{data:{},depth:{},index:{},expandedStateId:{}},setup(t){const r=t,e=G(mT),n=j(()=>WF(r.data.value,!1,{customClass:{string:"max-w-120 truncate"}})),i=j(()=>hd(r.data.value)),o=j(()=>Ob(r.data.value)),{expanded:a,toggleExpanded:s}=_w(r.expandedStateId??""),l=j(()=>{var R;return i.value==="custom"?`${((R=r.data.value._custom)==null?void 0:R.type)??"string"}-custom-state`:""}),c=j(()=>{const{value:R}=o.value;return vM(R)?R.length:CM(R)?Object.keys(R).length:0}),u=j(()=>r.data.path||[r.data.key]),g=j(()=>u.value[u.value.length-1]),h=j(()=>{var R,N,U,F,K,te,Me;const Ye=["Reactive"],De=((N=(R=r.data.value)==null?void 0:R._custom)==null?void 0:N.stateTypeName)||((U=r.data)==null?void 0:U.stateTypeName);if(Ye.includes(De))return De;if((K=(F=r.data.value)==null?void 0:F.fields)!=null&&K.abstract)return"";{const we=(Me=(te=r.data.value)==null?void 0:te._custom)==null?void 0:Me.type,Ne=i.value==="custom"&&!we?`"${n.value}"`:n.value===""?'""':n.value,Ue=i.value==="custom"&&we==="ref"?hd(Ne):i.value,ot=i.value==="string"?"select-text":"",ft=`${Ne}`;return De?`${ft} (${De})`:ft}}),d=j(()=>{const{value:R,inherit:N,customType:U}=o.value,F=U==="set";let K=[];return vM(R)?R.slice(0,e.value).map((te,Me)=>({key:Me.toString(),path:[...u.value,Me.toString()],value:te,...N,editable:r.data.editable&&!F,creating:!1})):(CM(R)&&(K=Object.keys(R).slice(0,e.value).map(te=>({key:te,path:[...u.value,te],value:R[te],...N,editable:r.data.editable&&!F,creating:!1})),i.value!=="custom"&&(K=FN(K))),K===r.data.value?[]:K)}),f=j(()=>d.value.length>0),C=G(),v=$w(),{isHovering:A}=c3e(()=>C.value),{editingType:I,editing:p,editingText:m,toggleEditing:b,nodeId:_}=Dpe();Ke(()=>p.value,R=>{if(R){const{value:N}=o.value;m.value=ele(N,o.value.customType)}else m.value=""});async function S(){const R=r.data;await he.value.editInspectorState({path:u.value,inspectorId:v.value.inspectorId,type:R.stateType,nodeId:_.value,state:{newKey:null,type:I.value,value:S5(m.value,o.value.customType)}}),await he.value.sendInspectorState(v.value.inspectorId),b()}const{addNewProp:E,draftingNewProp:T,resetDrafting:L}=Bpe();function H(R){const N=`${r.depth}-${r.index}`;a.value.includes(N)||s(N),E(R,o.value.value)}async function P(){const R=r.data;await he.value.editInspectorState({path:[...u.value,T.value.key],inspectorId:v.value.inspectorId,type:R.stateType,nodeId:_.value,state:{newKey:T.value.key,type:typeof S5(T.value.value),value:S5(T.value.value)}}),await he.value.sendInspectorState(v.value.inspectorId),L()}return(R,N)=>(M(),k("div",null,[w("div",{ref_key:"containerRef",ref:C,class:Le(["font-state-field flex items-center text-3.5",[f.value&&"cursor-pointer hover:bg-active"]]),style:kr({paddingLeft:`${R.depth*15+4}px`}),onClick:N[1]||(N[1]=U=>y(s)(`${R.depth}-${R.index}`))},[f.value?(M(),oe(ww,{key:0,value:y(a).includes(`${R.depth}-${R.index}`)},null,8,["value"])):(M(),k("span",f3e)),w("span",C3e,Se(g.value),1),N[5]||(N[5]=w("span",{mx1:""},":",-1)),y(p)?(M(),oe(Up,{key:2,modelValue:y(m),"onUpdate:modelValue":N[0]||(N[0]=U=>Je(m)?m.value=U:null),class:"mr-1","custom-type":o.value.customType,onCancel:y(b),onSubmit:S},null,8,["modelValue","custom-type","onCancel"])):ie("",!0),w("span",{class:Le([l.value,"flex whitespace-nowrap"])},[w("span",{class:"flex",innerHTML:h.value},null,8,v3e)],2),D(h3e,{hovering:y(A),"disable-edit":y(v).disableEdit||y(p),data:R.data,depth:R.depth,onEnableEditInput:y(b),onAddNewProp:H},null,8,["hovering","disable-edit","data","depth","onEnableEditInput"])],6),f.value&&y(a).includes(`${R.depth}-${R.index}`)?(M(),k("div",A3e,[D(ZG,{data:d.value,depth:R.depth,index:R.index},null,8,["data","depth","index"]),c.value>e.value?At((M(),oe(y(ct),{key:0,flat:"",size:"mini",class:"ml-4",onClick:N[2]||(N[2]=U=>e.value+=mT)},{icon:Y(()=>[D(y(Gt),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[y(Rt),"Show more"]]):ie("",!0),y(T).enable?(M(),k("div",{key:1,style:kr({paddingLeft:`${(R.depth+1)*15+4}px`})},[w("span",I3e,[D(Up,{modelValue:y(T).key,"onUpdate:modelValue":N[3]||(N[3]=U=>y(T).key=U),"show-actions":!1},null,8,["modelValue"])]),N[6]||(N[6]=w("span",{"mx-1":""},":",-1)),D(Up,{modelValue:y(T).value,"onUpdate:modelValue":N[4]||(N[4]=U=>y(T).value=U),"auto-focus":!1,onCancel:y(L),onSubmit:P},null,8,["modelValue","onCancel"])],4)):ie("",!0)])):ie("",!0)]))}}),m3e=N1(p3e,[["__scopeId","data-v-18a10784"]]),ZG=ce({__name:"ChildStateViewer",props:{data:{},depth:{default:0},index:{},expandedStateId:{default:""}},setup(t){return(r,e)=>(M(),k("div",null,[(M(!0),k(Te,null,It(r.data,(n,i)=>(M(),k("div",{key:i},[D(m3e,{data:n,depth:r.depth+1,index:`${r.index}-${i}`,"expanded-state-id":r.expandedStateId},null,8,["data","depth","index","expanded-state-id"])]))),128))]))}}),y3e=["onClick"],b3e={key:1,pl5:""},w3e={"font-state-field":"","text-3.5":""},$3e={key:0},yf=ce({__name:"RootStateViewer",props:{data:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1},expandedStateId:{default:""}},setup(t){const r=t;function e(){return{nodeId:r.nodeId,inspectorId:r.inspectorId,disableEdit:r.disableEdit}}const{context:n}=Rpe(e());gn(()=>{n.value=e()});const{expanded:i,toggleExpanded:o}=_w(r.expandedStateId);return(a,s)=>(M(),k("div",null,[(M(!0),k(Te,null,It(a.data,(l,c,u)=>(M(),k("div",{key:u},[w("div",{class:Le(["flex items-center",[l?.length&&"cursor-pointer hover:bg-active"]]),onClick:g=>y(o)(`${u}`)},[l!=null&&l.length?(M(),oe(ww,{key:0,value:y(i).includes(`${u}`)},null,8,["value"])):(M(),k("span",b3e)),w("span",w3e,Se(c),1)],10,y3e),l!=null&&l.length&&y(i).includes(`${u}`)?(M(),k("div",$3e,[D(ZG,{data:l,index:`${u}`,"expanded-state-id":a.expandedStateId},null,8,["data","index","expanded-state-id"])])):ie("",!0)]))),128))]))}}),_3e={class:"p3"},M3e=["onClick"],z3e={key:0,class:"absolute left-5px top-4.5 h10 w0 border-l-2",border:"solid gray2"},E3e={class:"h-full flex items-center truncate pl5"},S3e={absolute:"","top-5":"",pr2:"","text-3":"",op40:""},T3e={pl2:"",op30:""},L3e=ce({__name:"EventList",props:au({data:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=YA(t,"modelValue"),n=["#3e5770","#42b983","#0098c4"],i=G(null),o=j(()=>{let a=-1,s=0;return r.data.forEach((l,c)=>{(l.groupId!==s||a===-1)&&(a=(a+1)%n.length),s=l.groupId??s,l.id=c,l.color=n[a]}),r.data});return Ke(()=>o.value.length,a=>{var s;(s=i.value)==null||s.scrollToItem(a-1)},{flush:"post"}),(a,s)=>(M(),k("div",_3e,[D(y(gw),{ref_key:"scrollerRef",ref:i,items:o.value,"min-item-size":52,"key-field":"id","page-mode":"","item-tag":"li","list-tag":"ul",buffer:20},{default:Y(({item:l})=>[w("div",{class:"relative mb7 h6 cursor-pointer",style:kr({color:e.value===l.id?l.color:""}),onClick:c=>e.value=l.id},[w("span",{class:"absolute top-1.5 inline-block h3 w3 b rounded-50%",style:kr({border:`3px solid ${l.color}`})},null,4),l.id{var I;return(I=s.timelineLayersState.value)==null?void 0:I[e.pluginId]}),c=j(()=>i.value[a.value]??null),u=j(()=>l.value?"Stop recording":"Start recording"),g=j(()=>{var I;const p=[];for(const m in(I=c.value)==null?void 0:I.data)p.push({key:m,type:m,editable:!1,value:c.value.data[m]});return p}),h=j(()=>{var I,p,m;const b=(I=c.value)==null?void 0:I.groupId,_=o.value.get(b);if(_){const S=((p=_[_.length-1])==null?void 0:p.time)-(((m=_[0])==null?void 0:m.time)??0);return[{key:"events",type:"events",editable:!1,value:_.length},S&&{key:"duration",type:"duration",editable:!1,value:`${S}ms`}].filter(Boolean)}}),d=j(()=>({"Event Info":g.value,...h.value&&{"Group Info":h.value}}));function f(I){var p;const m=I.groupId;m!==void 0&&(o.value.set(m,o.value.get(m)??[]),(p=o.value.get(m))==null||p.push(I))}function C(I){const p=Qr(I);if(!p)return;const{layerId:m,event:b}=p;e.layerIds.includes(m)&&(i.value.push(b),f(b))}he.functions.on(Ft.TIMELINE_EVENT_UPDATED,C),fn(()=>{he.functions.off(Ft.TIMELINE_EVENT_UPDATED,C)});function v(){i.value=[],o.value.clear()}r({clear:v});function A(){he.value.updateTimelineLayersState({[e.pluginId]:!l.value})}return(I,p)=>(M(),k("div",k3e,[I.headerVisible?(M(),oe(Ju,{key:0,"doc-link":I.docLink,"github-repo-link":I.githubRepoLink},{default:Y(()=>[D(eg)]),_:1},8,["doc-link","github-repo-link"])):ie("",!0),i.value.length?(M(),k("div",O3e,[D(y(D1),{class:"h-full"},{default:Y(()=>[D(y(hn),{border:"r base",size:"40","h-full":""},{default:Y(()=>[w("div",x3e,[D(L3e,{modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=m=>a.value=m),data:i.value},null,8,["modelValue","data"])])]),_:1}),D(y(hn),{size:"60"},{default:Y(()=>[w("div",H3e,[D(yf,{class:"p3",data:d.value,"node-id":"","inspector-id":"","disable-edit":!0,"expanded-state-id":"timeline-state"},null,8,["data"])])]),_:1})]),_:1})])):(M(),oe(K2,{key:2,class:"flex-1"},{default:Y(()=>p[1]||(p[1]=[ze(" No events ")])),_:1})),I.switcherVisible?(M(),k("div",V3e,[w("div",P3e,[At((M(),k("div",{class:"flex items-center gap1",onClick:A},[l.value?(M(),k("span",R3e)):(M(),k("span",D3e))])),[[y(Rt),{content:u.value},void 0,{"bottom-end":!0}]]),At((M(),k("div",{class:"flex items-center gap1",onClick:v},[D(y(ec),{name:"baseline-delete","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(Rt),{content:"Clear all timelines"},void 0,{"bottom-end":!0}]]),At((M(),k("div",N3e,[D(y(ec),{name:"baseline-tips-and-updates","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(Rt),{content:"

Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand.

",html:!0},void 0,{"bottom-end":!0}]])])])):ie("",!0)]))}}),mI=N1(B3e,[["__scopeId","data-v-f59e6cce"]]);function KG(){const t=G([]),r=G([]);function e(i){r.value=i,i.length{n(o)})}Ga(()=>{he.value.getCustomInspector().then(i=>{r.value=i,r.value.forEach(o=>{n(o)})}),he.functions.on(Ft.INSPECTOR_UPDATED,e)});function n(i){t.value.some(o=>o.id===i.id)||t.value.push(i)}return fn(()=>{he.functions.off(Ft.INSPECTOR_UPDATED,e)}),{registeredInspector:t,register:n}}const YG=Symbol("SelectedSymbolKey");function F3e(){const t=G("");return Di(YG,t),{selected:t}}function j3e(){const t=br(YG,G(""));function r(e){t.value=e}return{selected:t,select:r}}const U3e=["onClick","onDblclick"],G3e={key:1,pl5:""},W3e={"font-state-field":"","text-3.5":""},Z3e={key:0,class:"text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"},K3e={"group-hover:text-white":"",class:"ws-nowrap [.active_&]:text-white"},Y3e={key:2,class:"text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"},X3e={key:2,class:"ml-2 rounded-sm bg-blue-400 px-1 text-[0.75rem] leading-snug dark:bg-blue-800"},q3e={key:3,class:"ml-2 rounded-sm bg-gray-500 px-1 text-[0.75rem] leading-snug"},Q3e={key:0},bf=ce({__name:"TreeViewer",props:au({data:{},depth:{default:0},withTag:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=YA(t,"modelValue"),{expanded:e,toggleExpanded:n}=_w();j3e();function i(a){return"name"in a&&a?.name||"label"in a&&a.label}function o(a){r.value=a}return(a,s)=>(M(!0),k(Te,null,It(a.data,(l,c)=>{var u,g;return M(),k("div",{key:c,class:Le({"min-w-max":a.depth===0})},[w("div",{class:Le(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600",{"bg-primary-600! active":r.value===l.id}]),style:kr({paddingLeft:`${15*a.depth+4}px`}),onClick:h=>o(l.id),onDblclick:h=>y(n)(l.id)},[(u=l?.children)!=null&&u.length?(M(),oe(ww,{key:0,value:y(e).includes(l.id),class:"[.active_&]:op20 group-hover:op20",onClick:Wn(h=>y(n)(l.id),["stop"])},null,8,["value","onClick"])):(M(),k("span",G3e)),w("span",W3e,[a.withTag?(M(),k("span",Z3e,"<")):ie("",!0),w("span",K3e,Se(i(l)),1),(l.renderKey===0||l.renderKey)&&l.renderKey!==y(Ku)?(M(),k("span",{key:1,class:Le(["text-xs opacity-50",{"opacity-100":r.value===l.id}])},[w("span",{class:Le([r.value===l.id?"text-purple-200":"text-purple-500"])}," key",2),s[1]||(s[1]=ze("=")),w("span",null,Se(l.renderKey),1)],2)):ie("",!0),a.withTag?(M(),k("span",Y3e,">")):ie("",!0)]),l.isFragment?At((M(),k("span",X3e,s[2]||(s[2]=[ze(" fragment ")]))),[[y(Rt),"Has multiple root DOM nodes"]]):ie("",!0),l.inactive?At((M(),k("span",q3e,s[3]||(s[3]=[ze(" inactive ")]))),[[y(Rt),"Currently inactive but not destroyed"]]):ie("",!0),(M(!0),k(Te,null,It(l.tags,(h,d)=>(M(),oe(NG,{key:d,tag:h},null,8,["tag"]))),128))],46,U3e),(g=l?.children)!=null&&g.length&&y(e).includes(l.id)?(M(),k("div",Q3e,[D(bf,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=h=>r.value=h),data:l?.children,depth:a.depth+1,"with-tag":a.withTag},null,8,["modelValue","data","depth","with-tag"])])):ie("",!0)],2)}),128))}}),J3e={class:"absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]"},eme={class:"flex-1 overflow-scroll text-3.5"},tme=ce({__name:"RenderCode",props:{code:{}},emits:["close"],setup(t,{emit:r}){const e=r;function n(){e("close")}return(i,o)=>(M(),k("div",J3e,[w("div",{class:"h-12 w-full flex items-center justify-between p-2"},[o[0]||(o[0]=w("span",{class:"font-500"},"Render Code",-1)),w("i",{class:"i-carbon-close cursor-pointer hover:op80",onClick:n})]),w("div",eme,[D(y(sw),{code:i.code,lang:"javascript"},null,8,["code"])])]))}}),rme={class:"h-full w-full"},nme={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},ime={key:0,class:"h-full flex flex-col p2"},ome={class:"flex py2"},ame={xmlns:"http://www.w3.org/2000/svg",style:{height:"1.1em",width:"1.1em"},class:"op-80 hover:op-100",viewBox:"0 0 24 24"},sme={class:"h-full flex flex-col p2"},lme={class:"flex py2"},cme={key:0,class:"font-state-field flex items-center px-1 text-3.5"},ume={"group-hover:text-white":"",class:"max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"},gme={class:"flex items-center gap-2 px-1"},hme={class:"h-full flex flex-col items-center justify-center gap-2"},dme={class:"block"},fme={xmlns:"http://www.w3.org/2000/svg",style:{height:"2em",width:"2em",opacity:"0.5",color:"#00dc82"},class:"animate-fade",viewBox:"0 0 24 24"},Cme={class:"flex items-center justify-center"},Qg="components",vme=ce({__name:"index",emits:["openInEditor","onInspectComponentStart","onInspectComponentEnd"],setup(t,{emit:r}){const e=r,n=G(),i=G(!1),{width:o}=o3e(n),a=j(()=>i.value?o.value<700:!1),s=G(""),l=G(""),[c,u]=Jpe(!0),g=G(!1),h=G(!1),d=G(""),f=G(!1);function C($,O=[],W=[]){var Z;return O.push($.id),((Z=$.children)==null?void 0:Z.length)===0&&W.push([...O]),Array.isArray($.children)&&$.children.forEach(ee=>{C(ee,O,W)}),O.pop(),W}function v($){const O=[],W=Z=>{Z?.forEach(ee=>{var ue;O.push(ee),(ue=ee.children)!=null&&ue.length&&W(ee.children)})};return W($),O}function A($,O){const W=[];return $?.forEach(Z=>{W.push(...Z.slice(0,O+1))}),[...new Set(W)]}function I($,O){const W=[];return $.forEach(Z=>{const ee=Z.indexOf(O);ee!==-1&&W.push(...Z.slice(0,ee+1))}),[...new Set(W)]}const p=G([]),m=j(()=>{var $,O;return($=p.value)!=null&&$.length?C((O=p.value)==null?void 0:O[0]):[]}),b=j(()=>v(p.value)),_=j(()=>b.value.map($=>$.id)),S=G({}),E=G(""),T=j(()=>{const $=[],O=W=>{W.forEach(Z=>{var ee;Z.id===E.value&&$.push(Z),(ee=Z.children)!=null&&ee.length&&O(Z.children)})};return O(p.value),$[0]}),L=j(()=>{var $;return(($=T.value)==null?void 0:$.file)??""}),H=j(()=>mw({state:S.value,filterKey:l.value,processGroup($){return r4e(Object.values(bpe(FN($),"stateType")))}})),{expanded:P}=ls(),{expanded:R}=ls("component-state");F3e();async function N($=""){return he.value.getInspectorTree({inspectorId:Qg,filter:$}).then(O=>{var W,Z;const ee=Qr(O);p.value=ee,E.value=(Z=(W=p.value)==null?void 0:W[0])==null?void 0:Z.id,P.value=A(m.value,1),g.value=!0})}function U($){if(!$||!($!=null&&$.state))return{};const O={};return $.state.forEach(W=>{O[W.type]||(O[W.type]=[]),O[W.type].push(W)}),O}function F($){he.value.getInspectorState({inspectorId:Qg,nodeId:$}).then(O=>{const W=Qr(O);W&&(S.value=U(W),R.value=Array.from({length:Object.keys(S.value).length},(Z,ee)=>`${ee}`))})}Ke(E,$=>{F($),f.value&&Ue()});function K($){const O=Qr($);O.inspectorId!==Qg||O.nodeId!==E.value||(S.value=U({state:O.state.state}))}he.functions.on(Ft.INSPECTOR_STATE_UPDATED,K),N();function te($){const O=$.trim().toLowerCase();u(),N(O).then(()=>{u()})}e3e(s,$=>{te($)},{debounce:300});function Me($){var O,W;const Z=Qr($);Z.inspectorId===Qg&&(s.value?te(s.value):p.value=Z.rootNodes,_.value.includes(E.value)||(E.value=(W=(O=p.value)==null?void 0:O[0])==null?void 0:W.id,P.value=A(m.value,1)))}he.functions.on(Ft.INSPECTOR_TREE_UPDATED,Me),fn(()=>{he.functions.off(Ft.INSPECTOR_STATE_UPDATED,K),he.functions.off(Ft.INSPECTOR_TREE_UPDATED,Me)});function Ye(){h.value=!0,e("onInspectComponentStart"),he.value.inspectComponentInspector().then($=>{const O=JSON.parse($);E.value=O.id,P.value.includes(O.id)||P.value.push(O.id),P.value=[...new Set([...P.value,...I(m.value,O.id)])],X()}).finally(()=>{h.value=!1,e("onInspectComponentEnd")})}function De(){h.value=!1,he.value.cancelInspectComponentInspector()}function we(){he.value.scrollToComponent(E.value)}function Ne(){he.value.inspectDOM(E.value).then(()=>{chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)")})}function Ue(){he.value.getComponentRenderCode(E.value).then($=>{d.value=$,f.value=!0})}function ot(){e("openInEditor",L.value)}const ft=G();function X(){setTimeout(()=>{var $;const O=($=ft.value)==null?void 0:$.querySelector(".active");O?.scrollIntoView({behavior:"smooth",block:"center"})},300)}function ae(){d.value="",f.value=!1}const V=ji(),x=j(()=>V.appRecords.value.map($=>({label:$.name+($.version?` (${$.version})`:""),value:$.id}))),B=j(()=>x.value.map($=>({label:$.label,id:$.value}))),q=G(V.activeAppRecordId.value);gn(()=>{q.value=V.activeAppRecordId.value});function z($){he.value.toggleApp($).then(()=>{E.value="",N()})}return($,O)=>(M(),k("div",rme,[D(y(D1),{ref_key:"splitpanesRef",ref:n,class:"flex-1 overflow-auto",horizontal:a.value,onReady:O[4]||(O[4]=W=>i.value=!0)},{default:Y(()=>[x.value.length>1?(M(),oe(y(hn),{key:0,border:"base h-full",size:"20"},{default:Y(()=>[w("div",nme,[D(BG,{modelValue:q.value,"onUpdate:modelValue":O[0]||(O[0]=W=>q.value=W),data:B.value,class:"w-full",onSelect:z},null,8,["modelValue","data"])])]),_:1})):ie("",!0),D(y(hn),{border:"base","h-full":""},{default:Y(()=>[g.value?(M(),k("div",ime,[w("div",ome,[D(y(Fi),{modelValue:s.value,"onUpdate:modelValue":O[1]||(O[1]=W=>s.value=W),"loading-debounce-time":250,loading:!y(c),placeholder:"Find components...",class:"flex-1 text-3.5"},null,8,["modelValue","loading"]),y(DN)?ie("",!0):At((M(),k("button",{key:0,"px-1":"",class:"hover:color-#00dc82",onClick:Ye},[(M(),k("svg",ame,O[6]||(O[6]=[w("path",{fill:"currentColor",d:"M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"},null,-1)])))])),[[y(Rt),"Select component in the page",void 0,{bottom:!0}]])]),w("div",{ref_key:"componentTreeContainer",ref:ft,class:"no-scrollbar flex-1 select-none overflow-scroll"},[D(bf,{modelValue:E.value,"onUpdate:modelValue":O[2]||(O[2]=W=>E.value=W),data:p.value,"with-tag":!0},null,8,["modelValue","data"])],512)])):ie("",!0)]),_:1}),D(y(hn),{relative:"","h-full":""},{default:Y(()=>{var W;return[w("div",sme,[w("div",lme,[(W=T.value)!=null&&W.name?(M(),k("span",cme,[O[7]||(O[7]=w("span",{class:"text-gray-400 dark:text-gray-600"},"<",-1)),w("span",ume,Se(T.value.name),1),O[8]||(O[8]=w("span",{class:"text-gray-400 dark:text-gray-600"},">",-1))])):ie("",!0),D(y(Fi),{modelValue:l.value,"onUpdate:modelValue":O[3]||(O[3]=Z=>l.value=Z),"loading-debounce-time":250,placeholder:"Filter State...",class:"flex-1 text-3.5"},null,8,["modelValue"]),w("div",gme,[At(w("i",{class:"i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",onClick:we},null,512),[[y(Rt),"Scroll to component",void 0,{bottom:!0}]]),At(w("i",{class:"i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",onClick:Ue},null,512),[[y(Rt),"Show render code",void 0,{bottom:!0}]]),y(ya)?At((M(),k("i",{key:0,class:"i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",onClick:Ne},null,512)),[[y(Rt),"Inspect DOM",void 0,{bottom:!0}]]):ie("",!0),L.value?At((M(),k("i",{key:1,class:"i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",onClick:ot},null,512)),[[y(Rt),"Open in Editor",void 0,{bottom:!0}]]):ie("",!0)])]),D(yf,{class:"no-scrollbar flex-1 select-none overflow-scroll",data:H.value,"node-id":E.value,"inspector-id":Qg,"expanded-state-id":"component-state"},null,8,["data","node-id"])]),f.value&&d.value?(M(),oe(tme,{key:0,code:d.value,onClose:ae},null,8,["code"])):ie("",!0)]}),_:1})]),_:1},8,["horizontal"]),y(ya)?(M(),oe(y(eG),{key:0,modelValue:h.value,"onUpdate:modelValue":O[5]||(O[5]=W=>h.value=W),title:"",height:"12rem",closable:!1},{footer:Y(()=>[w("div",Cme,[D(y(ct),{onClick:De},{default:Y(()=>O[11]||(O[11]=[ze(" Cancel ")])),_:1})])]),default:Y(()=>[w("div",hme,[w("span",dme,[(M(),k("svg",fme,O[9]||(O[9]=[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("circle",{cx:"12",cy:"12",r:".5",fill:"currentColor"}),w("path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2"})],-1)])))]),O[10]||(O[10]=w("p",null," Click on a component on the page to select it ",-1))])]),_:1},8,["modelValue"])):ie("",!0)]))}}),Ame=N1(vme,[["__scopeId","data-v-b2392cef"]]),Ime={},pme={class:"h-screen w-screen $ui-fcc flex-col"};function mme(t,r){return M(),k("div",pme,[r[0]||(r[0]=w("div",{class:"outer"},[w("div",{class:"inner"},[w("i",{class:"i-logos-vue inline-block h8! w8!",alt:"Vue logo"})])],-1)),et(t.$slots,"default",{},void 0,!0)])}const yme=N1(Ime,[["render",mme],["__scopeId","data-v-b8018f07"]]),XG=Symbol.for("VueDevToolsCustomInspectorStateSymbol");function z1(){return br(XG)}function Sw(){const t=G({homepage:"",id:"",label:"",logo:"",timelineLayerIds:[]});return Di(XG,t),t}const bme={},wme={width:"175",height:"34",viewBox:"0 0 175 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $me(t,r){return M(),k("svg",wme,r[0]||(r[0]=[w("path",{fill:"currentColor",d:"M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"},null,-1)]))}const _me=N1(bme,[["render",$me]]),Mme={"h-full":"","w-full":"",flex:"","items-center":""},zme={flex:"~ col gap2",ma:"","px-5":""},Eme={flex:"~ col","mt-20":"","items-center":""},Sme={flex:"~","mt--10":"","items-center":"","justify-center":""},Tme={class:"mr-1"},Lme={key:0,class:"inline-block w20"},kme=["src","alt"],Ome={key:1,class:"mr2 inline-block min-w-20 text-center text-10 font-600"},xme={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},Hme={op40:""},Vme={flex:"~ gap2 wrap"},Pme={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},Rme=["href"],Dme=ce({__name:"About",setup(t){const r=mf(),e=z1(),n=G(!1),i=G(!1);function o(){n.value=!0}function a(){n.value=!0,i.value=!0}return(s,l)=>{var c;return M(),k("div",Mme,[w("div",zme,[l[5]||(l[5]=w("div",{"flex-auto":""},null,-1)),w("div",Eme,[w("div",Sme,[w("span",Tme,[n.value?ie("",!0):(M(),k("span",Lme)),At(w("img",{src:y(e).logo,alt:`${y(e).label} Logo`,class:"inline-block h16",onError:a,onLoad:o},null,40,kme),[[Sae,n.value&&!i.value]]),i.value?(M(),k("span",Ome,Se(y(e).label),1)):ie("",!0)]),w("span",null,[D(_me,{"h-18":""})])]),w("div",xme,[w("span",Hme,Se(y(e).label)+" DevTools ",1)])]),l[6]||(l[6]=w("div",{"flex-auto":""},null,-1)),w("div",Vme,[w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:l[0]||(l[0]=u=>y(r).push("/state"))},l[2]||(l[2]=[w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),w("code",null,"State",-1)])),(c=y(e).timelineLayerIds)!=null&&c.length?(M(),k("div",{key:0,flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:l[1]||(l[1]=u=>y(r).push("/timeline"))},l[3]||(l[3]=[w("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),w("div",null,"Timeline",-1)]))):ie("",!0)]),w("div",Pme,[w("a",{href:y(e).homepage,target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},l[4]||(l[4]=[w("div",{"i-carbon-document":""},null,-1),ze(" View Documentation ")]),8,Rme)]),l[7]||(l[7]=w("div",{"flex-auto":""},null,-1))])])}}}),Nme={class:"flex-1 overflow-y-auto p2"},Bme={class:"max-w-[190px] flex-1 select-none py-1.5 text-sm"},Fme={class:"w-4/5"},jme={key:0,class:"flex justify-start"},Ume={key:1},qG=ce({__name:"Settings",props:{pluginId:{},options:{},values:{}},emits:["update"],setup(t,{emit:r}){const e=t,n=r,i=j(()=>e.options),o=j(()=>e.values);function a(s,l){he.value.updatePluginSettings(e.pluginId,s,l),he.value.getPluginSettings(e.pluginId).then(c=>{n("update",c)})}return(s,l)=>(M(),k("div",Nme,[w("ul",null,[(M(!0),k(Te,null,It(i.value,(c,u)=>(M(),k("li",{key:u,class:"flex items-center py-2"},[w("div",Bme,Se(c.label),1),w("div",Fme,[c.type==="boolean"?(M(),k("div",jme,[D(y(w8),{"model-value":o.value[u],class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","onUpdate:modelValue"])])):c.type==="choice"?(M(),k("div",Ume,[D(y(Ed),{"model-value":o.value[u],options:c.options,"onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","options","onUpdate:modelValue"])])):c.type==="text"?(M(),oe(y(Fi),{key:2,"model-value":o.value[u],"onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","onUpdate:modelValue"])):ie("",!0)])]))),128))])]))}}),Gme={class:"h-full flex flex-col"},Wme=ce({__name:"Settings",setup(t){const r=br("pluginSettings"),e=z1(),n=j(()=>r.value.options),i=j(()=>r.value.values);function o(a){r.value=a}return(a,s)=>(M(),k("div",Gme,[D(Ju,{"doc-link":y(e).homepage},{default:Y(()=>[D(eg)]),_:1},8,["doc-link"]),D(qG,{"plugin-id":y(e).pluginId,options:n.value,values:i.value,onUpdate:o},null,8,["plugin-id","options","values"])]))}}),Zme={class:"h-full flex flex-col"},Kme={class:"h-full flex flex-col p2"},Yme={class:"grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",border:"b dashed base"},Xme={key:0,class:"flex items-center gap-2 px-1"},qme=["onClick"],Qme={key:0,class:"no-scrollbar flex-1 select-none overflow-scroll"},Jme={class:"h-full flex flex-col p2"},e9e={class:"grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",border:"b dashed base"},t9e={key:0,class:"flex items-center gap-2 px-1"},r9e=["onClick"],n9e=ce({__name:"Index",setup(t){const{expanded:r}=ls(),{expanded:e}=ls("custom-inspector-state"),n=z1(),i=j(()=>n.value.id),o=G([]),a=G([]),s=G([]),l=j(()=>{var U,F;return(U=s.value)!=null&&U.length?I((F=s.value)==null?void 0:F[0]):[]}),c=j(()=>m(s.value)),u=j(()=>c.value.map(U=>U.id)),g=G(""),h=G({}),d=j(()=>!Object.keys(h.value).length),f=z1(),C=G(""),v=G("");Ke(C,(U,F)=>{!U.trim().length&&!F.trim().length||P(U)});const A=j(()=>mw({state:h.value,filterKey:v.value}));function I(U,F=[],K=[]){var te;return F.push(U.id),((te=U.children)==null?void 0:te.length)===0&&K.push([...F]),Array.isArray(U.children)&&U.children.forEach(Me=>{I(Me,F,K)}),F.pop(),K}function p(U,F){const K=[];return U?.forEach(te=>{K.push(...te.slice(0,F+1))}),[...new Set(K)]}function m(U){const F=[],K=te=>{te?.forEach(Me=>{var Ye;F.push(Me),(Ye=Me.children)!=null&&Ye.length&&K(Me.children)})};return K(U),F}function b(){he.value.getInspectorNodeActions(i.value).then(U=>{o.value=U})}function _(){he.value.getInspectorActions(i.value).then(U=>{a.value=U})}b(),_();function S(U){he.value.callInspectorNodeAction(i.value,U,g.value)}function E(U){he.value.callInspectorAction(i.value,U)}function T(U){var F;for(const K in U)(F=U[K])!=null&&F.length||delete U[K];return U}function L(U){he.value.getInspectorState({inspectorId:i.value,nodeId:U}).then(F=>{const K=Qr(F);K&&(h.value=T(K),e.value=Array.from({length:Object.keys(h.value).length},(te,Me)=>`${Me}`))})}function H(){h.value={}}Ke(g,()=>{H(),L(g.value)});function P(U=""){he.value.getInspectorTree({inspectorId:i.value,filter:U}).then(F=>{const K=Qr(F);s.value=K,!g.value&&K.length&&(g.value=K[0].id,r.value=p(l.value,1),L(K[0].id))})}GG(i).toBeTruthy().then(()=>P());function R(U){var F,K;const te=Qr(U);!te.rootNodes.length||te.inspectorId!==i.value||(s.value=te.rootNodes,u.value.includes(g.value)||(g.value=(K=(F=s.value)==null?void 0:F[0])==null?void 0:K.id,r.value=p(l.value,1)))}function N(U){const F=Qr(U);if(F.inspectorId!==i.value||!F.state||F.nodeId!==g.value)return;const{inspectorId:K,...te}=F.state;h.value=T(te)}return Ga(()=>{he.functions.on(Ft.INSPECTOR_TREE_UPDATED,R),he.functions.on(Ft.INSPECTOR_STATE_UPDATED,N)}),fn(()=>{he.functions.off(Ft.INSPECTOR_TREE_UPDATED,R),he.functions.off(Ft.INSPECTOR_STATE_UPDATED,N)}),(U,F)=>(M(),k("div",Zme,[D(Ju,{"doc-link":y(n).homepage},{default:Y(()=>[D(eg)]),_:1},8,["doc-link"]),!s.value.length&&!C.value.trim().length?(M(),oe(K2,{key:0},{default:Y(()=>F[3]||(F[3]=[ze(" No Data ")])),_:1})):(M(),oe(y(D1),{key:1,class:"flex-1 overflow-auto"},{default:Y(()=>[D(y(hn),{border:"r base",size:"40","h-full":""},{default:Y(()=>{var K;return[w("div",Kme,[w("div",Yme,[D(y(Fi),{modelValue:C.value,"onUpdate:modelValue":F[0]||(F[0]=te=>C.value=te),placeholder:y(f).treeFilterPlaceholder},null,8,["modelValue","placeholder"]),(K=a.value)!=null&&K.length?(M(),k("div",Xme,[(M(!0),k(Te,null,It(a.value,(te,Me)=>At((M(),k("div",{key:Me,class:"flex items-center gap1",onClick:Ye=>E(Me)},[D(y(ec),{name:`baseline-${te.icon.replace(/\_/g,"-")}`,"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,8,["name"])],8,qme)),[[y(Rt),{content:te.tooltip},void 0,{"bottom-end":!0}]])),128))])):ie("",!0)]),s.value.length?(M(),k("div",Qme,[D(bf,{modelValue:g.value,"onUpdate:modelValue":F[1]||(F[1]=te=>g.value=te),data:s.value},null,8,["modelValue","data"])])):(M(),oe(K2,{key:1},{default:Y(()=>F[4]||(F[4]=[ze(" No Data ")])),_:1}))])]}),_:1}),D(y(hn),{size:"60"},{default:Y(()=>{var K;return[w("div",Jme,[w("div",e9e,[D(y(Fi),{modelValue:v.value,"onUpdate:modelValue":F[2]||(F[2]=te=>v.value=te),placeholder:y(f).stateFilterPlaceholder},null,8,["modelValue","placeholder"]),(K=o.value)!=null&&K.length?(M(),k("div",t9e,[(M(!0),k(Te,null,It(o.value,(te,Me)=>At((M(),k("div",{key:Me,class:"flex items-center gap1",onClick:Ye=>S(Me)},[D(y(ec),{name:`baseline-${te.icon.replace(/\_/g,"-")}`,"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,8,["name"])],8,r9e)),[[y(Rt),{content:te.tooltip},void 0,{"bottom-end":!0}]])),128))])):ie("",!0)]),g.value&&!d.value?(M(),oe(yf,{key:0,data:A.value,"node-id":g.value,"inspector-id":i.value,"expanded-state-id":"custom-inspector-state",class:"no-scrollbar flex-1 select-none overflow-scroll"},null,8,["data","node-id","inspector-id"])):(M(),oe(K2,{key:1},{default:Y(()=>F[5]||(F[5]=[ze(" No Data ")])),_:1}))])]}),_:1})]),_:1}))]))}}),i9e=ce({__name:"Index",setup(t){const r=z1();return(e,n)=>(M(),oe(mI,{"layer-ids":y(r).timelineLayerIds,"doc-link":y(r).homepage,"plugin-id":y(r).pluginId},null,8,["layer-ids","doc-link","plugin-id"]))}}),o9e={"h-full":"","w-full":""},a9e={key:0},QG=ce({__name:"index",props:{id:{},pluginId:{}},emits:["loadError"],setup(t,{emit:r}){const e=t,n=r,i=Sw(),o=G(!1),a=G(null);Di("pluginSettings",a);const s=j(()=>{var g;return[{path:"/state",name:"State",component:n9e,icon:"i-carbon-tree-view-alt"},((g=i.value.timelineLayerIds)==null?void 0:g.length)&&{path:"/timeline",name:"Timeline",component:i9e,icon:"i-mdi:timeline-clock-outline"},{path:"/about",name:"About",component:Dme},a.value&&{path:"/settings",name:"Settings",component:Wme,icon:"i-mdi:cog-outline"}].filter(Boolean)}),{VirtualRouterView:l,restoreRouter:c}=bw(s,{defaultRoutePath:"/state"});function u(){o.value=!0,Ga(()=>{he.value.getInspectorInfo(e.id).then(g=>{if(!g){n("loadError");return}const h={homepage:g?.homepage,id:g?.id,label:g?.label,logo:g?.logo,timelineLayerIds:g?.timelineLayers.map(d=>d.id),pluginId:e.pluginId,treeFilterPlaceholder:g.treeFilterPlaceholder,stateFilterPlaceholder:g.stateFilterPlaceholder};i.value=h,c(),o.value=!1}),he.value.getPluginSettings(e.pluginId).then(g=>{g.options?a.value=g:a.value=null})})}return Ke(()=>e.id,()=>{u()},{immediate:!0}),fn(()=>{he.value.unhighlight()}),(g,h)=>(M(),k("div",o9e,[o.value?(M(),k("div",a9e,[D(yme)])):(M(),oe(y(l),{key:1}))]))}}),s9e={},l9e={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c9e(t,r){return M(),k("svg",l9e,r[0]||(r[0]=[oF('',2)]))}const u9e=N1(s9e,[["render",c9e]]),g9e={"h-full":"","w-full":"",flex:"","items-center":""},h9e={flex:"~ col gap2",ma:"","px-5":""},d9e={flex:"~ col","mt-20":"","items-center":""},f9e={flex:"~","mt--10":"","items-center":"","justify-center":""},C9e={flex:"~ gap2 wrap"},v9e=ce({__name:"About",setup(t){const r=mf();return(e,n)=>(M(),k("div",g9e,[w("div",h9e,[n[5]||(n[5]=w("div",{"flex-auto":""},null,-1)),w("div",d9e,[w("div",f9e,[D(u9e,{"h-18":""})]),n[2]||(n[2]=w("div",{mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},[w("span",{op40:""}," Pinia DevTools ")],-1))]),n[6]||(n[6]=w("div",{"flex-auto":""},null,-1)),w("div",C9e,[w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[0]||(n[0]=i=>y(r).push("/store"))},n[3]||(n[3]=[w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),w("code",null,"Store",-1)])),w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[1]||(n[1]=i=>y(r).push("/timeline"))},n[4]||(n[4]=[w("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),w("div",null,"Timeline",-1)]))]),n[7]||(n[7]=w("div",{flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},[w("a",{href:"https://github.com/vuejs/pinia",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),ze(" Star on GitHub ")]),w("a",{href:"https://pinia.vuejs.org/",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-document":""}),ze(" View Documentation ")])],-1)),n[8]||(n[8]=w("div",{"flex-auto":""},null,-1))])]))}}),A9e={class:"h-full flex flex-col"},I9e=ce({__name:"Settings",setup(t){const r=br("pluginSettings"),e=j(()=>r.value.options),n=j(()=>r.value.values);function i(o){r.value=o}return(o,a)=>(M(),k("div",A9e,[D(Ju,{"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"},{default:Y(()=>[D(eg)]),_:1}),D(qG,{"plugin-id":"dev.esm.pinia",options:e.value,values:n.value,onUpdate:i},null,8,["options","values"])]))}}),p9e="dev.esm.pinia",JG="pinia",m9e={class:"h-full flex flex-col"},y9e={class:"h-full flex flex-col p2"},b9e={class:"grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",border:"b dashed base"},w9e={key:0,class:"flex items-center gap-2 px-1"},$9e=["onClick"],_9e={class:"no-scrollbar flex-1 select-none overflow-scroll"},M9e={class:"h-full flex flex-col p2"},z9e={class:"grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",border:"b dashed base"},E9e={key:0,class:"flex items-center gap-2 px-1"},S9e=["onClick"],T9e=ce({__name:"Index",setup(t){const{expanded:r}=ls(),{expanded:e}=ls("pinia-store-state"),n=JG,i=G([]),o=G([]),a=z1(),s=G(""),l=G([]),c=j(()=>{var N,U;return(N=l.value)!=null&&N.length?A((U=l.value)==null?void 0:U[0]):[]}),u=j(()=>p(l.value)),g=j(()=>u.value.map(N=>N.id)),h=G({}),d=G(""),f=G("");Ke(d,(N,U)=>{!N.trim().length&&!U.trim().length||H(N)});const C=j(()=>mw({state:h.value,filterKey:f.value})),v=j(()=>{var N,U;return!((N=h.value.state)!=null&&N.length)&&!((U=h.value.getters)!=null&&U.length)});function A(N,U=[],F=[]){var K;return U.push(N.id),((K=N.children)==null?void 0:K.length)===0&&F.push([...U]),Array.isArray(N.children)&&N.children.forEach(te=>{A(te,U,F)}),U.pop(),F}function I(N,U){const F=[];return N?.forEach(K=>{F.push(...K.slice(0,U+1))}),[...new Set(F)]}function p(N){const U=[],F=K=>{K?.forEach(te=>{var Me;U.push(te),(Me=te.children)!=null&&Me.length&&F(te.children)})};return F(N),U}function m(){he.value.getInspectorNodeActions(n).then(N=>{i.value=N})}function b(){he.value.getInspectorActions(n).then(N=>{o.value=N})}m(),b();function _(N){he.value.callInspectorNodeAction(n,N,s.value)}function S(N){he.value.callInspectorAction(n,N)}function E(N){var U;for(const F in N)(U=N[F])!=null&&U.length||delete N[F];return N}function T(N){he.value.getInspectorState({inspectorId:n,nodeId:N}).then(U=>{const F=Qr(U);F&&(h.value=E(F),e.value=Array.from({length:Object.keys(h.value).length},(K,te)=>`${te}`))})}function L(){h.value={}}Ke(s,()=>{L(),T(s.value)});function H(N=""){he.value.getInspectorTree({inspectorId:n,filter:N}).then(U=>{const F=Qr(U);l.value=F,!s.value&&F.length&&(s.value=F[0].id,T(F[0].id),r.value=I(c.value,1))})}H();function P(N){const U=Qr(N);U.inspectorId!==n||!U.rootNodes.length||(l.value=U.rootNodes,g.value.includes(s.value)||(s.value=U.rootNodes[0].id,r.value=I(c.value,1),T(U.rootNodes[0].id)))}function R(N){const U=Qr(N);if(U.inspectorId!==n)return;const F=U.state;h.value=E({state:F.state,getters:F.getters})}return he.functions.on(Ft.INSPECTOR_TREE_UPDATED,P),he.functions.on(Ft.INSPECTOR_STATE_UPDATED,R),fn(()=>{he.functions.off(Ft.INSPECTOR_TREE_UPDATED,P),he.functions.off(Ft.INSPECTOR_STATE_UPDATED,R)}),(N,U)=>(M(),k("div",m9e,[D(Ju,{"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"},{default:Y(()=>[D(eg)]),_:1}),D(y(D1),{class:"flex-1 overflow-auto"},{default:Y(()=>[D(y(hn),{border:"r base",size:"40","h-full":""},{default:Y(()=>{var F;return[w("div",y9e,[w("div",b9e,[D(y(Fi),{modelValue:d.value,"onUpdate:modelValue":U[0]||(U[0]=K=>d.value=K),placeholder:y(a).treeFilterPlaceholder},null,8,["modelValue","placeholder"]),(F=o.value)!=null&&F.length?(M(),k("div",w9e,[(M(!0),k(Te,null,It(o.value,(K,te)=>At((M(),k("div",{key:te,class:"flex items-center gap1",onClick:Me=>S(te)},[w("i",{class:Le(`i-ic-baseline-${K.icon.replace(/\_/g,"-")}`),"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,2)],8,$9e)),[[y(Rt),{content:K.tooltip},void 0,{"bottom-end":!0}]])),128))])):ie("",!0)]),w("div",_9e,[D(bf,{modelValue:s.value,"onUpdate:modelValue":U[1]||(U[1]=K=>s.value=K),data:l.value},null,8,["modelValue","data"])])])]}),_:1}),D(y(hn),{size:"60"},{default:Y(()=>{var F;return[w("div",M9e,[w("div",z9e,[D(y(Fi),{modelValue:f.value,"onUpdate:modelValue":U[2]||(U[2]=K=>f.value=K),placeholder:y(a).stateFilterPlaceholder},null,8,["modelValue","placeholder"]),(F=i.value)!=null&&F.length?(M(),k("div",E9e,[(M(!0),k(Te,null,It(i.value,(K,te)=>At((M(),k("div",{key:te,class:"flex items-center gap1",onClick:Me=>_(te)},[w("i",{class:Le(`i-ic-baseline-${K.icon.replace(/\_/g,"-")}`),"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,2)],8,S9e)),[[y(Rt),{content:K.tooltip},void 0,{"bottom-end":!0}]])),128))])):ie("",!0)]),s.value&&!v.value?(M(),oe(yf,{key:0,class:"no-scrollbar flex-1 select-none overflow-scroll",data:C.value,"node-id":s.value,"inspector-id":y(n),"expanded-state-id":"pinia-store-state"},null,8,["data","node-id","inspector-id"])):(M(),oe(K2,{key:1},{default:Y(()=>U[3]||(U[3]=[ze(" No Data ")])),_:1}))])]}),_:1})]),_:1})]))}}),L9e="dev.esm.pinia",k9e=ce({__name:"Index",setup(t){const r=["pinia:mutations"];return(e,n)=>(M(),oe(mI,{"layer-ids":r,"doc-link":"https://pinia.vuejs.org/","plugin-id":L9e,"github-repo-link":"https://github.com/vuejs/pinia"}))}}),O9e={"h-full":"","w-full":""},x9e=ce({__name:"index",setup(t){const r=G(null);Di("pluginSettings",r);const e=j(()=>[{path:"/store",name:"Store",component:T9e,icon:"i-carbon-tree-view-alt"},{path:"/timeline",name:"Timeline",component:k9e,icon:"i-mdi:timeline-clock-outline"},{path:"/",name:"About",component:v9e,icon:"i-logos-pinia"},r.value&&{path:"/settings",name:"Settings",component:I9e,icon:"i-mdi:cog-outline"}].filter(Boolean)),{VirtualRouterView:n,restoreRouter:i}=bw(e,{defaultRoutePath:"/store"}),o=Sw();return Ga(()=>{he.value.getPluginSettings(p9e).then(a=>{a.options?r.value=a:r.value=null}),he.value.getInspectorInfo(JG).then(a=>{a&&(o.value={stateFilterPlaceholder:a.stateFilterPlaceholder,treeFilterPlaceholder:a.treeFilterPlaceholder})})}),(a,s)=>(M(),k("div",O9e,[D(y(n))]))}}),H9e={},V9e={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P9e(t,r){return M(),k("svg",V9e,r[0]||(r[0]=[w("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8em",height:"8em",viewBox:"0 -4 24 24"},[w("path",{fill:"#3dd68c",d:"M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"})],-1),w("path",{d:"M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",fill:"currentColor"},null,-1)]))}const R9e=N1(H9e,[["render",P9e]]),D9e={"h-full":"","w-full":"",flex:"","items-center":""},N9e={flex:"~ col gap2",ma:"","px-5":""},B9e={flex:"~ col","mt-20":"","items-center":""},F9e={flex:"~","mt--10":"","items-center":"","justify-center":""},j9e={flex:"~ gap2 wrap"},U9e=ce({__name:"About",setup(t){const r=mf();return(e,n)=>(M(),k("div",D9e,[w("div",N9e,[n[5]||(n[5]=w("div",{"flex-auto":""},null,-1)),w("div",B9e,[w("div",F9e,[D(R9e,{"h-18":""})]),n[2]||(n[2]=w("div",{mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},[w("span",{op40:""}," Router DevTools ")],-1))]),n[6]||(n[6]=w("div",{"flex-auto":""},null,-1)),w("div",j9e,[w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[0]||(n[0]=i=>y(r).push("/routes"))},n[3]||(n[3]=[w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),w("code",null,"Routes",-1)])),w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[1]||(n[1]=i=>y(r).push("/timeline"))},n[4]||(n[4]=[w("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),w("div",null,"Timeline",-1)]))]),n[7]||(n[7]=w("div",{flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},[w("a",{href:"https://github.com/vuejs/router",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),ze(" Star on GitHub ")]),w("a",{href:"https://router.vuejs.org/",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-document":""}),ze(" View Documentation ")])],-1)),n[8]||(n[8]=w("div",{"flex-auto":""},null,-1))])]))}}),G9e={class:"h-full flex flex-col"},W9e={"h-full":"","select-none":"","overflow-scroll":"",p2:"",class:"no-scrollbar"},Z9e={"h-full":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},K9e=ce({__name:"Index",setup(t){const{expanded:r}=ls(),{expanded:e}=ls("routes-state"),n=z1(),i=j(()=>n.value.id),o=G(""),a=G([]),s=j(()=>{var m,b;return(m=a.value)!=null&&m.length?g((b=a.value)==null?void 0:b[0]):[]}),l=j(()=>d(a.value)),c=j(()=>l.value.map(m=>m.id)),u=G({});function g(m,b=[],_=[]){var S;return b.push(m.id),((S=m.children)==null?void 0:S.length)===0&&_.push([...b]),Array.isArray(m.children)&&m.children.forEach(E=>{g(E,b,_)}),b.pop(),_}function h(m,b){const _=[];return m?.forEach(S=>{_.push(...S.slice(0,b+1))}),[...new Set(_)]}function d(m){const b=[],_=S=>{S?.forEach(E=>{var T;b.push(E),(T=E.children)!=null&&T.length&&_(E.children)})};return _(m),b}function f(m){var b;for(const _ in m)(b=m[_])!=null&&b.length||delete m[_];return m}function C(m){he.value.getInspectorState({inspectorId:i.value,nodeId:m}).then(b=>{const _=Qr(b);_&&(u.value=f(_),e.value=Array.from({length:Object.keys(u.value).length},(S,E)=>`${E}`))})}function v(){u.value={}}Ke(o,()=>{v(),C(o.value)});const A=()=>{he.value.getInspectorTree({inspectorId:i.value,filter:""}).then(m=>{const b=Qr(m);a.value=b,!o.value&&b.length&&(o.value=b[0].id,C(b[0].id),r.value=h(s.value,1))})};GG(i).toBeTruthy().then(A);function I(m){const b=Qr(m);b.inspectorId!==i.value||!b.rootNodes.length||(a.value=b.rootNodes,c.value.includes(o.value)||(o.value=b.rootNodes[0].id,r.value=h(s.value,1),C(b.rootNodes[0].id)))}function p(m){const b=Qr(m);if(b.inspectorId!==i.value)return;const _=b.state;u.value=f(_)}return he.functions.on(Ft.INSPECTOR_TREE_UPDATED,I),he.functions.on(Ft.INSPECTOR_STATE_UPDATED,p),fn(()=>{he.functions.off(Ft.INSPECTOR_TREE_UPDATED,I),he.functions.off(Ft.INSPECTOR_STATE_UPDATED,p)}),(m,b)=>(M(),k("div",G9e,[D(Ju,{"doc-link":"https://router.vuejs.org/","github-repo-link":"https://github.com/vuejs/router"},{default:Y(()=>[D(eg)]),_:1}),D(y(D1),{class:"flex-1 overflow-auto"},{default:Y(()=>[D(y(hn),{border:"r base",size:"40","h-full":""},{default:Y(()=>[w("div",W9e,[D(bf,{modelValue:o.value,"onUpdate:modelValue":b[0]||(b[0]=_=>o.value=_),data:a.value},null,8,["modelValue","data"])])]),_:1}),D(y(hn),{size:"60"},{default:Y(()=>[w("div",Z9e,[o.value?(M(),oe(yf,{key:0,class:"p3",data:u.value,"node-id":"","inspector-id":"router","expanded-state-id":"routes-state"},null,8,["data"])):(M(),oe(K2,{key:1},{default:Y(()=>b[1]||(b[1]=[ze(" No Data ")])),_:1}))])]),_:1})]),_:1})]))}}),Y9e="org.vuejs.router",X9e=ce({__name:"Index",setup(t){const r=z1();return(e,n)=>(M(),oe(mI,{"layer-ids":y(r).timelineLayerIds,"doc-link":"https://router.vuejs.org/","plugin-id":Y9e,"github-repo-link":"https://github.com/vuejs/router"},null,8,["layer-ids"]))}}),q9e={"h-full":"","w-full":""},Q9e=ce({__name:"index",props:{id:{}},setup(t){const r=t,e=Sw(),n=G(!1),{VirtualRouterView:i,restoreRouter:o}=bw([{path:"/routes",name:"Routes",component:K9e,icon:"i-carbon-tree-view-alt"},{path:"/timeline",name:"Timeline",component:X9e,icon:"i-mdi:timeline-clock-outline"},{path:"/about",name:"About",component:U9e,icon:"i-ri-route-line"}],{defaultRoutePath:"/routes"});function a(){n.value=!0,Ga(()=>{he.value.getInspectorInfo(r.id).then(s=>{if(!s)return;const l={homepage:s?.homepage,id:s?.id,label:s?.label,logo:s?.logo,timelineLayerIds:s?.timelineLayers.map(c=>c.id)};e.value=l,o(),n.value=!1})})}return Ke(()=>r.id,s=>{s&&a()}),(s,l)=>(M(),k("div",q9e,[D(y(i))]))}}),J9e=ce({__name:"components",setup(t){function r(){he.value.emit("toggle-panel",!1)}function e(){he.value.emit("toggle-panel",!0)}return(n,i)=>(M(),oe(y(Ame),{onOpenInEditor:y(vd),onOnInspectComponentStart:r,onOnInspectComponentEnd:e},null,8,["onOpenInEditor"]))}}),e6e=[["app",[{icon:"i-carbon-information",name:"overview",order:-100,path:"overview",title:"Overview"},{icon:"i-carbon-assembly-cluster",name:"components",order:-100,path:"components",title:"Components"},{icon:"i-carbon-tree-view-alt",name:"pages",order:-100,path:"pages",title:"Pages"},{icon:"i-carbon-roadmap",name:"Timeline",order:-100,path:"timeline",title:"Timeline"},{icon:"i-carbon-image-copy",name:"assets",order:-100,path:"assets",title:"Assets"}]],["modules",[{icon:"i-ri-route-line",name:"router",order:-100,path:"router",title:"Router"},{icon:"i-logos-pinia",name:"pinia",order:-100,path:"pinia",title:"Pinia"}]],["advanced",[{icon:"i-carbon-network-4",name:"graph",order:-100,path:"graph",title:"Graph"}]]],eW=["assets","graph","vite-inspect"];function t6e(t,r){const e=fv(e6e);return e.forEach(n=>{if(n[0]==="modules"){n[1]=n[1].filter(o=>o.name==="router"?r.findIndex(a=>a.name.startsWith("router-inspector"))>-1:o.name==="pinia"?r.findIndex(a=>a.name==="pinia")>-1:!0);const i=r.filter(o=>!(o.name.startsWith("router-inspector")||o.name==="pinia"));n[1]=[...n[1],...i]}}),t&&!of&&!ya?e:e.map(([n,i])=>[n,i.filter(o=>!eW.includes(o.name))])}const N8="custom-tab-view",Vh="custom-inspector-tab-view";function tW(){const{registeredInspector:t}=KG();return j(()=>t.value.map((e,n)=>({order:n,name:e.id,icon:e.logo,fallbackIcon:e.icon,title:e.label,path:`${Vh}/${e.id}`,category:"modules",pluginId:e.pluginId})))}const r6e={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},n6e={flex:"~ col gap2",mxa:"","items-center":""},i6e={"text-xl":""},o6e={"text-rose":""},a6e=ce({__name:"custom-inspector-tab-view",setup(t){const r=Cf(),e=Ac(),n=G(!1),i=tW(),o=j(()=>i.value.find(s=>s.name===r.params.name)?.pluginId);function a(){n.value=!0;const s=setTimeout(()=>{clearTimeout(s),e.replace("/overview")},2e3)}return(s,l)=>y(n)?(M(),k("div",r6e,[w("div",n6e,[l[1]||(l[1]=w("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),w("p",i6e,[w("code",o6e,Se(y(r).params.name),1),l[0]||(l[0]=ze(" not found "))]),l[2]||(l[2]=w("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])])):!y(n)&&y(o)?(M(),oe(y(QG),{key:1,id:y(r).params.name,"plugin-id":y(o),onLoadError:a},null,8,["id","plugin-id"])):ie("",!0)}}),s6e={key:0,absolute:"","inset-0":"",flex:"","items-center":"","justify-center":""},Gp=new Map,l6e=ce({__name:"IframeView",props:{src:{},inline:{type:Boolean,default:!1}},setup(t){const r=t,{colorMode:e}=pf(),n=G(),i=j(()=>r.src),o=G(),a=ba(Cge(n)),s=G(!1);Ii(()=>{if(Gp.get(i.value))o.value=Gp.get(i.value),o.value.style.visibility="visible",o.value.style.opacity="1",s.value=!0;else{o.value=document.createElement("iframe"),Gp.set(i.value,o.value),o.value.src=r.src;try{o.value.style.opacity="0.01",o.value.onload=()=>{c(),o.value.style.opacity="1",s.value=!0}}catch{o.value.style.opacity="1"}document.body.appendChild(o.value),dn(u)}const g=setTimeout(l,100);setTimeout(c,100),fn(()=>{clearTimeout(g)})}),gn(u),gn(c),fn(()=>{o.value&&(o.value.style.visibility="hidden",o.value.style.opacity="0")});function l(){o.value&&(o.value.style.visibility="visible",o.value.style.opacity="1")}function c(){if(!(!o.value||!o.value.contentWindow))try{const g=o.value.contentWindow.document.querySelector("html");g?.classList.toggle("dark",e.value==="dark"),g?.classList.toggle("light",e.value==="dark")}catch{}}function u(){o.value&&Object.assign(o.value.style,{position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${r.inline?a.height-a.top:a.height}px`,outline:"none"})}return(g,h)=>(M(),k("div",{ref_key:"anchor",ref:n,"h-full":"","w-full":""},[y(s)?ie("",!0):(M(),k("div",s6e,h[0]||(h[0]=[w("i",{class:"mdi:loading animate-spin text-3xl"},null,-1)])))],512))}}),c6e={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},u6e={flex:"~ col gap2",mxa:"","items-center":""},g6e={"text-xl":""},h6e={"text-rose":""},d6e={key:3},rW=ce({__name:"CustomTabComponent",props:{tab:{},iframeInline:{type:Boolean}},setup(t){const e=O6(t),n=j(()=>e.tab.value?.name),i=G(!0);return Ke(()=>n.value,()=>{i.value=!1,setTimeout(()=>{i.value=!0},100)}),(o,a)=>{const s=l6e,l=Ro("NCard");return o.tab?o.tab?.view?.type==="iframe"?(M(),k(Te,{key:1},[y(i)?(M(),oe(s,{key:0,src:o.tab.view.src,inline:o.iframeInline},null,8,["src","inline"])):ie("",!0)],64)):o.tab?.view?.type==="vnode"?(M(),oe(y1(o.tab.view.vnode),{key:2})):(M(),k("div",d6e,[D(l,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:Y(()=>[ze(" Unknown tab type "+Se(o.tab?.view),1)]),_:1})])):(M(),k("div",c6e,[w("div",u6e,[a[2]||(a[2]=w("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),w("p",g6e,[a[0]||(a[0]=ze(" Tab ")),w("code",h6e,Se(y(n)),1),a[1]||(a[1]=ze(" not found "))]),a[3]||(a[3]=w("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]))}}});function f6e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var C6e=function t(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var n,i,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!t(r[i],e[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(o=Object.keys(r),n=o.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(r[a],e[a]))return!1}return!0}return r!==r&&e!==e};const nW=f6e(C6e);function iW(){return{isFirstVisit:!0,route:"/",graphSettings:{node_modules:!1,virtual:!1,lib:!1},tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},expandSidebar:!1,scrollableSidebar:!0,splitScreen:{enabled:!1,view:"overview",size:[50,50]},scale:1,interactionCloseOnOutsideClick:!1,showPanel:!0,minimizePanelInteractive:5e3}}const dr=Ige("__VUE_DEVTOOLS_CLIENT_STATE__",iW(),{mergeDefaults:!0});function v6e(){dr.value=iW()}Ke(()=>dr.value.splitScreen.enabled,(t,r)=>{r&&!t&&(dr.value.splitScreen.size=[50,50])});function wf(){const t=ji(),r=tW();let e=[];const n=j(()=>nW(t.tabs.value,e)?e:(e=t.tabs.value,t.tabs.value)),i=j(()=>{const c=t.vitePluginDetected.value,u=[...t6e(c,r.value)];return n.value.forEach(g=>{const h=u.find(d=>d[0]===g.category);if(h){if(h[1].some(d=>d.name===g.name)||(!c||of||ya)&&eW.includes(g.name))return;h[1].push({...g})}}),[...u]}),o=j(()=>i.value.reduce((c,[u,g])=>(g.forEach(h=>{c.push(h)}),c),[])),a=j(()=>{const{hiddenTabCategories:c,hiddenTabs:u,pinnedTabs:g}=dr.value.tabSettings,h=c.includes("pinned"),d=i.value.reduce((f,[C,v])=>{const A=[{hidden:!1,name:C},[]],I=c.includes(C);return v.forEach(p=>{const m=u.includes(p.name);if(g.includes(p.name))f[0][1].push({...p,hidden:m||h});else{const b=m||I;A[1].push({...p,hidden:b})}}),A[0].hidden=A[1].every(p=>p.hidden),f.push(A),f},[[{name:"pinned",hidden:!1},[]]]);return d[0][0].hidden=d[0][1].every(f=>f.hidden),d[0][1].sort((f,C)=>g.indexOf(f.name)-g.indexOf(C.name)),d}),s=j(()=>a.value.reduce((c,[u,g])=>{if(u.hidden)return c;const h=g.filter(d=>!d.hidden);return h.length&&c.push([u,h]),c},[])),l=j(()=>s.value.reduce((c,[u,g])=>(g.forEach(h=>{c.push(h)}),c),[]));return{categorizedTabs:a,flattenedTabs:o,enabledTabs:s,enabledFlattenTabs:l}}function yT(t,r){return j(()=>{const e=[],n=dr.value.tabSettings.pinnedTabs;id(r).reduce((a,[{name:s,hidden:l},c])=>(c.forEach(u=>{if(id(t).some(g=>g.name===u.name)){const g=n.includes(u.name)?"pinned":s||"app";a.push({tab:u,category:{name:g,hidden:l}})}}),a),[]).forEach(({tab:a,category:s})=>{const l=e.find(([{name:c}])=>c===s.name);l?l[1].push(a):e.push([s,[a]])});const o=e.find(([{name:a}])=>a==="pinned");return o&&o[1].sort((a,s)=>n.indexOf(a.name)-n.indexOf(s.name)),e})}const A6e=ce({__name:"custom-tab-view",setup(t){const r=Cf(),e=Ac(),{flattenedTabs:n}=wf(),i=j(()=>r.params.name),o=j(()=>n.value.find(a=>i.value===a.name)||null);return Ii(()=>{if(!o.value){const a=setTimeout(()=>{if(o.value){clearTimeout(a);return}e.replace("/overview")},2e3)}}),(a,s)=>{const l=rW;return M(),oe(l,{tab:y(o)},null,8,["tab"])}}});/** * vis-network * https://visjs.github.io/vis-network/ * * A dynamic, browser-based visualization library. * * @version 9.1.9 * @date 2023-11-03T01:42:27.418Z * * @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 Wp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gC=function(t){return t&&t.Math===Math&&t},Yt=gC(typeof globalThis=="object"&&globalThis)||gC(typeof window=="object"&&window)||gC(typeof self=="object"&&self)||gC(typeof Wp=="object"&&Wp)||function(){return this}()||Wp||Function("return this")(),yt=function(t){try{return!!t()}catch{return!0}},I6e=yt,$f=!I6e(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),p6e=$f,oW=Function.prototype,bT=oW.apply,wT=oW.call,tg=typeof Reflect=="object"&&Reflect.apply||(p6e?wT.bind(bT):function(){return wT.apply(bT,arguments)}),aW=$f,sW=Function.prototype,B8=sW.call,m6e=aW&&sW.bind.bind(B8,B8),St=aW?m6e:function(t){return function(){return B8.apply(t,arguments)}},lW=St,y6e=lW({}.toString),b6e=lW("".slice),ys=function(t){return b6e(y6e(t),8,-1)},w6e=ys,$6e=St,Tw=function(t){if(w6e(t)==="Function")return $6e(t)},F8=typeof document=="object"&&document.all,_6e=typeof F8>"u"&&F8!==void 0,cW={all:F8,IS_HTMLDDA:_6e},uW=cW,M6e=uW.all,$r=uW.IS_HTMLDDA?function(t){return typeof t=="function"||t===M6e}:function(t){return typeof t=="function"},B1={},z6e=yt,Cn=!z6e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),E6e=$f,hC=Function.prototype.call,en=E6e?hC.bind(hC):function(){return hC.apply(hC,arguments)},yI={},gW={}.propertyIsEnumerable,hW=Object.getOwnPropertyDescriptor,S6e=hW&&!gW.call({1:2},1);yI.f=S6e?function(r){var e=hW(this,r);return!!e&&e.enumerable}:gW;var $c=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}},T6e=St,L6e=yt,k6e=ys,Zp=Object,O6e=T6e("".split),bI=L6e(function(){return!Zp("z").propertyIsEnumerable(0)})?function(t){return k6e(t)==="String"?O6e(t,""):Zp(t)}:Zp,_c=function(t){return t==null},x6e=_c,H6e=TypeError,_f=function(t){if(x6e(t))throw new H6e("Can't call method on "+t);return t},V6e=bI,P6e=_f,Sa=function(t){return V6e(P6e(t))},$T=$r,dW=cW,R6e=dW.all,Pr=dW.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:$T(t)||t===R6e}:function(t){return typeof t=="object"?t!==null:$T(t)},_t={},Kp=_t,Yp=Yt,D6e=$r,_T=function(t){return D6e(t)?t:void 0},Xn=function(t,r){return arguments.length<2?_T(Kp[t])||_T(Yp[t]):Kp[t]&&Kp[t][r]||Yp[t]&&Yp[t][r]},N6e=St,Cr=N6e({}.isPrototypeOf),F1=typeof navigator<"u"&&String(navigator.userAgent)||"",fW=Yt,Xp=F1,MT=fW.process,zT=fW.Deno,ET=MT&&MT.versions||zT&&zT.version,ST=ET&&ET.v8,mo,Xv;ST&&(mo=ST.split("."),Xv=mo[0]>0&&mo[0]<4?1:+(mo[0]+mo[1]));!Xv&&Xp&&(mo=Xp.match(/Edge\/(\d+)/),(!mo||mo[1]>=74)&&(mo=Xp.match(/Chrome\/(\d+)/),mo&&(Xv=+mo[1])));var rg=Xv,TT=rg,B6e=yt,F6e=Yt,j6e=F6e.String,ng=!!Object.getOwnPropertySymbols&&!B6e(function(){var t=Symbol("symbol detection");return!j6e(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&TT&&TT<41}),U6e=ng,CW=U6e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",G6e=Xn,W6e=$r,Z6e=Cr,K6e=CW,Y6e=Object,Mf=K6e?function(t){return typeof t=="symbol"}:function(t){var r=G6e("Symbol");return W6e(r)&&Z6e(r.prototype,Y6e(t))},X6e=String,ig=function(t){try{return X6e(t)}catch{return"Object"}},q6e=$r,Q6e=ig,J6e=TypeError,pi=function(t){if(q6e(t))return t;throw new J6e(Q6e(t)+" is not a function")},e8e=pi,t8e=_c,Lw=function(t,r){var e=t[r];return t8e(e)?void 0:e8e(e)},qp=en,Qp=$r,Jp=Pr,r8e=TypeError,n8e=function(t,r){var e,n;if(r==="string"&&Qp(e=t.toString)&&!Jp(n=qp(e,t))||Qp(e=t.valueOf)&&!Jp(n=qp(e,t))||r!=="string"&&Qp(e=t.toString)&&!Jp(n=qp(e,t)))return n;throw new r8e("Can't convert object to primitive value")},vW={exports:{}},i8e=!0,LT=Yt,o8e=Object.defineProperty,a8e=function(t,r){try{o8e(LT,t,{value:r,configurable:!0,writable:!0})}catch{LT[t]=r}return r},s8e=Yt,l8e=a8e,kT="__core-js_shared__",c8e=s8e[kT]||l8e(kT,{}),kw=c8e,OT=kw;(vW.exports=function(t,r){return OT[t]||(OT[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var og=vW.exports,u8e=_f,g8e=Object,qn=function(t){return g8e(u8e(t))},h8e=St,d8e=qn,f8e=h8e({}.hasOwnProperty),_r=Object.hasOwn||function(r,e){return f8e(d8e(r),e)},C8e=St,v8e=0,A8e=Math.random(),I8e=C8e(1 .toString),wI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+I8e(++v8e+A8e,36)},p8e=Yt,m8e=og,xT=_r,y8e=wI,b8e=ng,w8e=CW,y2=p8e.Symbol,e3=m8e("wks"),$8e=w8e?y2.for||y2:y2&&y2.withoutSetter||y8e,lr=function(t){return xT(e3,t)||(e3[t]=b8e&&xT(y2,t)?y2[t]:$8e("Symbol."+t)),e3[t]},_8e=en,HT=Pr,VT=Mf,M8e=Lw,z8e=n8e,E8e=lr,S8e=TypeError,T8e=E8e("toPrimitive"),L8e=function(t,r){if(!HT(t)||VT(t))return t;var e=M8e(t,T8e),n;if(e){if(r===void 0&&(r="default"),n=_8e(e,t,r),!HT(n)||VT(n))return n;throw new S8e("Can't convert object to primitive value")}return r===void 0&&(r="number"),z8e(t,r)},k8e=L8e,O8e=Mf,$I=function(t){var r=k8e(t,"string");return O8e(r)?r:r+""},x8e=Yt,PT=Pr,j8=x8e.document,H8e=PT(j8)&&PT(j8.createElement),Ow=function(t){return H8e?j8.createElement(t):{}},V8e=Cn,P8e=yt,R8e=Ow,AW=!V8e&&!P8e(function(){return Object.defineProperty(R8e("div"),"a",{get:function(){return 7}}).a!==7}),D8e=Cn,N8e=en,B8e=yI,F8e=$c,j8e=Sa,U8e=$I,G8e=_r,W8e=AW,RT=Object.getOwnPropertyDescriptor;B1.f=D8e?RT:function(r,e){if(r=j8e(r),e=U8e(e),W8e)try{return RT(r,e)}catch{}if(G8e(r,e))return F8e(!N8e(B8e.f,r,e),r[e])};var Z8e=yt,K8e=$r,Y8e=/#|\.prototype\./,zf=function(t,r){var e=q8e[X8e(t)];return e===J8e?!0:e===Q8e?!1:K8e(r)?Z8e(r):!!r},X8e=zf.normalize=function(t){return String(t).replace(Y8e,".").toLowerCase()},q8e=zf.data={},Q8e=zf.NATIVE="N",J8e=zf.POLYFILL="P",IW=zf,DT=Tw,e7e=pi,t7e=$f,r7e=DT(DT.bind),j1=function(t,r){return e7e(t),r===void 0?t:t7e?r7e(t,r):function(){return t.apply(r,arguments)}},mi={},n7e=Cn,i7e=yt,pW=n7e&&i7e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),o7e=Pr,a7e=String,s7e=TypeError,Qn=function(t){if(o7e(t))return t;throw new s7e(a7e(t)+" is not an object")},l7e=Cn,c7e=AW,u7e=pW,dC=Qn,NT=$I,g7e=TypeError,t3=Object.defineProperty,h7e=Object.getOwnPropertyDescriptor,r3="enumerable",n3="configurable",i3="writable";mi.f=l7e?u7e?function(r,e,n){if(dC(r),e=NT(e),dC(n),typeof r=="function"&&e==="prototype"&&"value"in n&&i3 in n&&!n[i3]){var i=h7e(r,e);i&&i[i3]&&(r[e]=n.value,n={configurable:n3 in n?n[n3]:i[n3],enumerable:r3 in n?n[r3]:i[r3],writable:!1})}return t3(r,e,n)}:t3:function(r,e,n){if(dC(r),e=NT(e),dC(n),c7e)try{return t3(r,e,n)}catch{}if("get"in n||"set"in n)throw new g7e("Accessors not supported");return"value"in n&&(r[e]=n.value),r};var d7e=Cn,f7e=mi,C7e=$c,bs=d7e?function(t,r,e){return f7e.f(t,r,C7e(1,e))}:function(t,r,e){return t[r]=e,t},fC=Yt,v7e=tg,A7e=Tw,I7e=$r,p7e=B1.f,m7e=IW,Kc=_t,y7e=j1,Yc=bs,BT=_r,b7e=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return v7e(t,this,arguments)};return r.prototype=t.prototype,r},xe=function(t,r){var e=t.target,n=t.global,i=t.stat,o=t.proto,a=n?fC:i?fC[e]:(fC[e]||{}).prototype,s=n?Kc:Kc[e]||Yc(Kc,e,{})[e],l=s.prototype,c,u,g,h,d,f,C,v,A;for(h in r)c=m7e(n?h:e+(i?".":"#")+h,t.forced),u=!c&&a&&BT(a,h),f=s[h],u&&(t.dontCallGetSet?(A=p7e(a,h),C=A&&A.value):C=a[h]),d=u&&C?C:r[h],!(u&&typeof f==typeof d)&&(t.bind&&u?v=y7e(d,fC):t.wrap&&u?v=b7e(d):o&&I7e(d)?v=A7e(d):v=d,(t.sham||d&&d.sham||f&&f.sham)&&Yc(v,"sham",!0),Yc(s,h,v),o&&(g=e+"Prototype",BT(Kc,g)||Yc(Kc,g,{}),Yc(Kc[g],h,d),t.real&&l&&(c||!l[h])&&Yc(l,h,d)))},w7e=Math.ceil,$7e=Math.floor,_7e=Math.trunc||function(r){var e=+r;return(e>0?$7e:w7e)(e)},M7e=_7e,_I=function(t){var r=+t;return r!==r||r===0?0:M7e(r)},z7e=_I,E7e=Math.max,S7e=Math.min,Ef=function(t,r){var e=z7e(t);return e<0?E7e(e+r,0):S7e(e,r)},T7e=_I,L7e=Math.min,k7e=function(t){return t>0?L7e(T7e(t),9007199254740991):0},O7e=k7e,yi=function(t){return O7e(t.length)},x7e=Sa,H7e=Ef,V7e=yi,FT=function(t){return function(r,e,n){var i=x7e(r),o=V7e(i),a=H7e(n,o),s;if(t&&e!==e){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},xw={includes:FT(!0),indexOf:FT(!1)},Sf={},P7e=St,o3=_r,R7e=Sa,D7e=xw.indexOf,N7e=Sf,jT=P7e([].push),mW=function(t,r){var e=R7e(t),n=0,i=[],o;for(o in e)!o3(N7e,o)&&o3(e,o)&&jT(i,o);for(;r.length>n;)o3(e,o=r[n++])&&(~D7e(i,o)||jT(i,o));return i},Hw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B7e=mW,F7e=Hw,MI=Object.keys||function(r){return B7e(r,F7e)},Tf={};Tf.f=Object.getOwnPropertySymbols;var UT=Cn,j7e=St,U7e=en,G7e=yt,a3=MI,W7e=Tf,Z7e=yI,K7e=qn,Y7e=bI,Xc=Object.assign,GT=Object.defineProperty,X7e=j7e([].concat),q7e=!Xc||G7e(function(){if(UT&&Xc({b:1},Xc(GT({},"a",{enumerable:!0,get:function(){GT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach(function(i){r[i]=i}),Xc({},t)[e]!==7||a3(Xc({},r)).join("")!==n})?function(r,e){for(var n=K7e(r),i=arguments.length,o=1,a=W7e.f,s=Z7e.f;i>o;)for(var l=Y7e(arguments[o++]),c=a?X7e(a3(l),a(l)):a3(l),u=c.length,g=0,h;u>g;)h=c[g++],(!UT||U7e(s,l,h))&&(n[h]=l[h]);return n}:Xc,Q7e=xe,WT=q7e;Q7e({target:"Object",stat:!0,arity:2,forced:Object.assign!==WT},{assign:WT});var J7e=_t,eye=J7e.Object.assign,tye=eye,rye=tye,nye=rye,Or=Oe(nye),iye=St,Lf=iye([].slice),yW=St,oye=pi,aye=Pr,sye=_r,ZT=Lf,lye=$f,bW=Function,cye=yW([].concat),uye=yW([].join),s3={},gye=function(t,r,e){if(!sye(s3,r)){for(var n=[],i=0;i=.1;)f=+o[g++%a],f>u&&(f=u),d=Math.sqrt(f*f/(1+c*c)),d=s<0?-d:d,r+=d,e+=c*d,h===!0?t.lineTo(r,e):t.moveTo(r,e),u-=f,h=!h}function Mye(t,r,e,n){t.beginPath();var i=6,o=Math.PI*2/i;t.moveTo(r+n,e);for(var a=1;a1?e-1:0),i=1;i"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var Eye=`.vis-overlay { position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; /* Must be displayed above for example selected Timeline items */ z-index: 10; } .vis-active { box-shadow: 0 0 10px #86d5f8; } `;Mc(Eye);var Sye=`/* override some bootstrap styles screwing up the timelines css */ .vis [class*="span"] { min-height: 0; width: auto; } `;Mc(Sye);var Tye=`div.vis-color-picker { position: absolute; top: 0px; left: 30px; margin-top: -140px; margin-left: 30px; width: 310px; height: 444px; z-index: 1; padding: 10px; border-radius: 15px; background-color: #ffffff; display: none; box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 0px; } div.vis-color-picker div.vis-arrow { position: absolute; top: 147px; left: 5px; } div.vis-color-picker div.vis-arrow::after, div.vis-color-picker div.vis-arrow::before { right: 100%; top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } div.vis-color-picker div.vis-arrow:after { border-color: rgba(255, 255, 255, 0); border-right-color: #ffffff; border-width: 30px; margin-top: -30px; } div.vis-color-picker div.vis-color { position: absolute; width: 289px; height: 289px; cursor: pointer; } div.vis-color-picker div.vis-brightness { position: absolute; top: 313px; } div.vis-color-picker div.vis-opacity { position: absolute; top: 350px; } div.vis-color-picker div.vis-selector { position: absolute; top: 137px; left: 137px; width: 15px; height: 15px; border-radius: 15px; border: 1px solid #ffffff; background: #4c4c4c; /* Old browsers */ background: -moz-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #4c4c4c), color-stop(12%, #595959), color-stop(25%, #666666), color-stop(39%, #474747), color-stop(50%, #2c2c2c), color-stop(51%, #000000), color-stop(60%, #111111), color-stop(76%, #2b2b2b), color-stop(91%, #1c1c1c), color-stop(100%, #131313) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* Opera 11.10+ */ background: -ms-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* IE10+ */ background: linear-gradient( to bottom, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */ } div.vis-color-picker div.vis-new-color { position: absolute; width: 140px; height: 20px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 5px; top: 380px; left: 159px; text-align: right; padding-right: 2px; font-size: 10px; color: rgba(0, 0, 0, 0.4); vertical-align: middle; line-height: 20px; } div.vis-color-picker div.vis-initial-color { position: absolute; width: 140px; height: 20px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 5px; top: 380px; left: 10px; text-align: left; padding-left: 2px; font-size: 10px; color: rgba(0, 0, 0, 0.4); vertical-align: middle; line-height: 20px; } div.vis-color-picker div.vis-label { position: absolute; width: 300px; left: 10px; } div.vis-color-picker div.vis-label.vis-brightness { top: 300px; } div.vis-color-picker div.vis-label.vis-opacity { top: 338px; } div.vis-color-picker div.vis-button { position: absolute; width: 68px; height: 25px; border-radius: 10px; vertical-align: middle; text-align: center; line-height: 25px; top: 410px; border: 2px solid #d9d9d9; background-color: #f7f7f7; cursor: pointer; } div.vis-color-picker div.vis-button.vis-cancel { /*border:2px solid #ff4e33;*/ /*background-color: #ff7761;*/ left: 5px; } div.vis-color-picker div.vis-button.vis-load { /*border:2px solid #a153e6;*/ /*background-color: #cb8dff;*/ left: 82px; } div.vis-color-picker div.vis-button.vis-apply { /*border:2px solid #4588e6;*/ /*background-color: #82b6ff;*/ left: 159px; } div.vis-color-picker div.vis-button.vis-save { /*border:2px solid #45e655;*/ /*background-color: #6dff7c;*/ left: 236px; } div.vis-color-picker input.vis-range { width: 290px; height: 20px; } /* TODO: is this redundant? div.vis-color-picker input.vis-range-brightness { width: 289px !important; } div.vis-color-picker input.vis-saturation-range { width: 289px !important; }*/ `;Mc(Tye);var Lye=`div.vis-configuration { position: relative; display: block; float: left; font-size: 12px; } div.vis-configuration-wrapper { display: block; width: 700px; } div.vis-configuration-wrapper::after { clear: both; content: ""; display: block; } div.vis-configuration.vis-config-option-container { display: block; width: 495px; background-color: #ffffff; border: 2px solid #f7f8fa; border-radius: 4px; margin-top: 20px; left: 10px; padding-left: 5px; } div.vis-configuration.vis-config-button { display: block; width: 495px; height: 25px; vertical-align: middle; line-height: 25px; background-color: #f7f8fa; border: 2px solid #ceced0; border-radius: 4px; margin-top: 20px; left: 10px; padding-left: 5px; cursor: pointer; margin-bottom: 30px; } div.vis-configuration.vis-config-button.hover { background-color: #4588e6; border: 2px solid #214373; color: #ffffff; } div.vis-configuration.vis-config-item { display: block; float: left; width: 495px; height: 25px; vertical-align: middle; line-height: 25px; } div.vis-configuration.vis-config-item.vis-config-s2 { left: 10px; background-color: #f7f8fa; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-item.vis-config-s3 { left: 20px; background-color: #e4e9f0; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-item.vis-config-s4 { left: 30px; background-color: #cfd8e6; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-header { font-size: 18px; font-weight: bold; } div.vis-configuration.vis-config-label { width: 120px; height: 25px; line-height: 25px; } div.vis-configuration.vis-config-label.vis-config-s3 { width: 110px; } div.vis-configuration.vis-config-label.vis-config-s4 { width: 100px; } div.vis-configuration.vis-config-colorBlock { top: 1px; width: 30px; height: 19px; border: 1px solid #444444; border-radius: 2px; padding: 0px; margin: 0px; cursor: pointer; } input.vis-configuration.vis-config-checkbox { left: -5px; } input.vis-configuration.vis-config-rangeinput { position: relative; top: -5px; width: 60px; /*height:13px;*/ padding: 1px; margin: 0; pointer-events: none; } input.vis-configuration.vis-config-range { /*removes default webkit styles*/ -webkit-appearance: none; /*fix for FF unable to apply focus style bug */ border: 0px solid white; background-color: rgba(0, 0, 0, 0); /*required for proper track sizing in FF*/ width: 300px; height: 20px; } input.vis-configuration.vis-config-range::-webkit-slider-runnable-track { width: 300px; height: 5px; background: #dedede; /* Old browsers */ background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ border: 1px solid #999999; box-shadow: #aaaaaa 0px 0px 3px 0px; border-radius: 3px; } input.vis-configuration.vis-config-range::-webkit-slider-thumb { -webkit-appearance: none; border: 1px solid #14334b; height: 17px; width: 17px; border-radius: 50%; background: #3876c2; /* Old browsers */ background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #3876c2), color-stop(100%, #385380) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #3876c2 0%, #385380 100% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #3876c2 0%, #385380 100% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */ background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */ box-shadow: #111927 0px 0px 1px 0px; margin-top: -7px; } input.vis-configuration.vis-config-range:focus { outline: none; } input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track { background: #9d9d9d; /* Old browsers */ background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #9d9d9d), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #9d9d9d 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #9d9d9d 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ } input.vis-configuration.vis-config-range::-moz-range-track { width: 300px; height: 10px; background: #dedede; /* Old browsers */ background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ border: 1px solid #999999; box-shadow: #aaaaaa 0px 0px 3px 0px; border-radius: 3px; } input.vis-configuration.vis-config-range::-moz-range-thumb { border: none; height: 16px; width: 16px; border-radius: 50%; background: #385380; } /*hide the outline behind the border*/ input.vis-configuration.vis-config-range:-moz-focusring { outline: 1px solid white; outline-offset: -1px; } input.vis-configuration.vis-config-range::-ms-track { width: 300px; height: 5px; /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */ background: transparent; /*leave room for the larger thumb to overflow with a transparent border */ border-color: transparent; border-width: 6px 0; /*remove default tick marks*/ color: transparent; } input.vis-configuration.vis-config-range::-ms-fill-lower { background: #777; border-radius: 10px; } input.vis-configuration.vis-config-range::-ms-fill-upper { background: #ddd; border-radius: 10px; } input.vis-configuration.vis-config-range::-ms-thumb { border: none; height: 16px; width: 16px; border-radius: 50%; background: #385380; } input.vis-configuration.vis-config-range:focus::-ms-fill-lower { background: #888; } input.vis-configuration.vis-config-range:focus::-ms-fill-upper { background: #ccc; } .vis-configuration-popup { position: absolute; background: rgba(57, 76, 89, 0.85); border: 2px solid #f2faff; line-height: 30px; height: 30px; width: 150px; text-align: center; color: #ffffff; font-size: 14px; border-radius: 4px; -webkit-transition: opacity 0.3s ease-in-out; -moz-transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out; } .vis-configuration-popup:after, .vis-configuration-popup:before { left: 100%; top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } .vis-configuration-popup:after { border-color: rgba(136, 183, 213, 0); border-left-color: rgba(57, 76, 89, 0.85); border-width: 8px; margin-top: -8px; } .vis-configuration-popup:before { border-color: rgba(194, 225, 245, 0); border-left-color: #f2faff; border-width: 12px; margin-top: -12px; } `;Mc(Lye);var kye=`div.vis-tooltip { position: absolute; visibility: hidden; padding: 5px; white-space: nowrap; font-family: verdana; font-size: 14px; color: #000000; background-color: #f5f4ed; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; border: 1px solid #808074; box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); pointer-events: none; z-index: 5; } `;Mc(kye);var EW={exports:{}};(function(t){t.exports=r;function r(n){if(n)return e(n)}function e(n){for(var i in r.prototype)n[i]=r.prototype[i];return n}r.prototype.on=r.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},r.prototype.once=function(n,i){function o(){this.off(n,o),i.apply(this,arguments)}return o.fn=i,this.on(n,o),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+n];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var a,s=0;s=o?t?"":void 0:(a=XT(n,i),a<55296||a>56319||i+1===o||(s=XT(n,i+1))<56320||s>57343?t?Kye(n,i):a:t?Yye(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},Xye={codeAt:qT(!1),charAt:qT(!0)},qye=Yt,Qye=$r,QT=qye.WeakMap,LW=Qye(QT)&&/native code/.test(String(QT)),Jye=og,ebe=wI,JT=Jye("keys"),zI=function(t){return JT[t]||(JT[t]=ebe(t))},tbe=LW,kW=Yt,rbe=Pr,nbe=bs,c3=_r,u3=kw,ibe=zI,obe=Sf,eL="Object already initialized",G8=kW.TypeError,abe=kW.WeakMap,qv,Ld,Qv,sbe=function(t){return Qv(t)?Ld(t):qv(t,{})},lbe=function(t){return function(r){var e;if(!rbe(r)||(e=Ld(r)).type!==t)throw new G8("Incompatible receiver, "+t+" required");return e}};if(tbe||u3.state){var Xo=u3.state||(u3.state=new abe);Xo.get=Xo.get,Xo.has=Xo.has,Xo.set=Xo.set,qv=function(t,r){if(Xo.has(t))throw new G8(eL);return r.facade=t,Xo.set(t,r),r},Ld=function(t){return Xo.get(t)||{}},Qv=function(t){return Xo.has(t)}}else{var qc=ibe("state");obe[qc]=!0,qv=function(t,r){if(c3(t,qc))throw new G8(eL);return r.facade=t,nbe(t,qc,r),r},Ld=function(t){return c3(t,qc)?t[qc]:{}},Qv=function(t){return c3(t,qc)}}var U1={set:qv,get:Ld,has:Qv,enforce:sbe,getterFor:lbe},W8=Cn,cbe=_r,OW=Function.prototype,ube=W8&&Object.getOwnPropertyDescriptor,Dw=cbe(OW,"name"),gbe=Dw&&function(){}.name==="something",hbe=Dw&&(!W8||W8&&ube(OW,"name").configurable),dbe={EXISTS:Dw,PROPER:gbe,CONFIGURABLE:hbe},EI={},fbe=Cn,Cbe=pW,vbe=mi,Abe=Qn,Ibe=Sa,pbe=MI;EI.f=fbe&&!Cbe?Object.defineProperties:function(r,e){Abe(r);for(var n=Ibe(e),i=pbe(e),o=i.length,a=0,s;o>a;)vbe.f(r,s=i[a++],n[s]);return r};var mbe=Xn,xW=mbe("document","documentElement"),ybe=Qn,bbe=EI,tL=Hw,wbe=Sf,$be=xW,_be=Ow,Mbe=zI,rL=">",nL="<",Z8="prototype",K8="script",HW=Mbe("IE_PROTO"),g3=function(){},VW=function(t){return nL+K8+rL+t+nL+"/"+K8+rL},iL=function(t){t.write(VW("")),t.close();var r=t.parentWindow.Object;return t=null,r},zbe=function(){var t=_be("iframe"),r="java"+K8+":",e;return t.style.display="none",$be.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(VW("document.F=Object")),e.close(),e.F},CC,D5=function(){try{CC=new ActiveXObject("htmlfile")}catch{}D5=typeof document<"u"?document.domain&&CC?iL(CC):zbe():iL(CC);for(var t=tL.length;t--;)delete D5[Z8][tL[t]];return D5()};wbe[HW]=!0;var zc=Object.create||function(r,e){var n;return r!==null?(g3[Z8]=ybe(r),n=new g3,g3[Z8]=null,n[HW]=r):n=D5(),e===void 0?n:bbe.f(n,e)},Ebe=yt,PW=!Ebe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Sbe=_r,Tbe=$r,Lbe=qn,kbe=zI,Obe=PW,oL=kbe("IE_PROTO"),Y8=Object,xbe=Y8.prototype,kf=Obe?Y8.getPrototypeOf:function(t){var r=Lbe(t);if(Sbe(r,oL))return r[oL];var e=r.constructor;return Tbe(e)&&r instanceof e?e.prototype:r instanceof Y8?xbe:null},Hbe=bs,ag=function(t,r,e,n){return n&&n.enumerable?t[r]=e:Hbe(t,r,e),t},Vbe=yt,Pbe=$r,Rbe=Pr,Dbe=zc,aL=kf,Nbe=ag,Bbe=lr,X8=Bbe("iterator"),RW=!1,Za,h3,d3;[].keys&&(d3=[].keys(),"next"in d3?(h3=aL(aL(d3)),h3!==Object.prototype&&(Za=h3)):RW=!0);var Fbe=!Rbe(Za)||Vbe(function(){var t={};return Za[X8].call(t)!==t});Fbe?Za={}:Za=Dbe(Za);Pbe(Za[X8])||Nbe(Za,X8,function(){return this});var DW={IteratorPrototype:Za,BUGGY_SAFARI_ITERATORS:RW},jbe=Pw,Ube=ws,Gbe=jbe?{}.toString:function(){return"[object "+Ube(this)+"]"},Wbe=Pw,Zbe=mi.f,Kbe=bs,Ybe=_r,Xbe=Gbe,qbe=lr,sL=qbe("toStringTag"),Ec=function(t,r,e,n){if(t){var i=e?t:t.prototype;Ybe(i,sL)||Zbe(i,sL,{configurable:!0,value:r}),n&&!Wbe&&Kbe(i,"toString",Xbe)}},sg={},Qbe=DW.IteratorPrototype,Jbe=zc,ewe=$c,twe=Ec,rwe=sg,nwe=function(){return this},iwe=function(t,r,e,n){var i=r+" Iterator";return t.prototype=Jbe(Qbe,{next:ewe(+!n,e)}),twe(t,i,!1,!0),rwe[i]=nwe,t},owe=St,awe=pi,swe=function(t,r,e){try{return owe(awe(Object.getOwnPropertyDescriptor(t,r)[e]))}catch{}},lwe=$r,cwe=String,uwe=TypeError,gwe=function(t){if(typeof t=="object"||lwe(t))return t;throw new uwe("Can't set "+cwe(t)+" as a prototype")},hwe=swe,dwe=Qn,fwe=gwe,NW=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,r={},e;try{e=hwe(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch{}return function(i,o){return dwe(i),fwe(o),t?e(i,o):i.__proto__=o,i}}():void 0),Cwe=xe,vwe=en,Awe=dbe,Iwe=iwe,pwe=kf,mwe=Ec,lL=ag,ywe=lr,cL=sg,bwe=DW,wwe=Awe.PROPER,vC=bwe.BUGGY_SAFARI_ITERATORS,f3=ywe("iterator"),uL="keys",AC="values",gL="entries",$we=function(){return this},Nw=function(t,r,e,n,i,o,a){Iwe(e,r,n);var s=function(A){if(A===i&&h)return h;if(!vC&&A&&A in u)return u[A];switch(A){case uL:return function(){return new e(this,A)};case AC:return function(){return new e(this,A)};case gL:return function(){return new e(this,A)}}return function(){return new e(this)}},l=r+" Iterator",c=!1,u=t.prototype,g=u[f3]||u["@@iterator"]||i&&u[i],h=!vC&&g||s(i),d=r==="Array"&&u.entries||g,f,C,v;if(d&&(f=pwe(d.call(new t)),f!==Object.prototype&&f.next&&(mwe(f,l,!0,!0),cL[l]=$we)),wwe&&i===AC&&g&&g.name!==AC&&(c=!0,h=function(){return vwe(g,this)}),i)if(C={values:s(AC),keys:o?h:s(uL),entries:s(gL)},a)for(v in C)(vC||c||!(v in u))&&lL(u,v,C[v]);else Cwe({target:r,proto:!0,forced:vC||c},C);return a&&u[f3]!==h&&lL(u,f3,h,{name:i}),cL[r]=h,C},Bw=function(t,r){return{value:t,done:r}},_we=Xye.charAt,Mwe=Wo,BW=U1,zwe=Nw,hL=Bw,FW="String Iterator",Ewe=BW.set,Swe=BW.getterFor(FW);zwe(String,"String",function(t){Ewe(this,{type:FW,string:Mwe(t),index:0})},function(){var r=Swe(this),e=r.string,n=r.index,i;return n>=e.length?hL(void 0,!0):(i=_we(e,n),r.index+=i.length,hL(i,!1))});var Twe=en,dL=Qn,Lwe=Lw,jW=function(t,r,e){var n,i;dL(t);try{if(n=Lwe(t,"return"),!n){if(r==="throw")throw e;return e}n=Twe(n,t)}catch(o){i=!0,n=o}if(r==="throw")throw e;if(i)throw n;return dL(n),e},kwe=Qn,Owe=jW,xwe=function(t,r,e,n){try{return n?r(kwe(e)[0],e[1]):r(e)}catch(i){Owe(t,"throw",i)}},Hwe=lr,Vwe=sg,Pwe=Hwe("iterator"),Rwe=Array.prototype,UW=function(t){return t!==void 0&&(Vwe.Array===t||Rwe[Pwe]===t)},Dwe=St,Nwe=$r,q8=kw,Bwe=Dwe(Function.toString);Nwe(q8.inspectSource)||(q8.inspectSource=function(t){return Bwe(t)});var GW=q8.inspectSource,Fwe=St,jwe=yt,WW=$r,Uwe=ws,Gwe=Xn,Wwe=GW,ZW=function(){},Zwe=[],KW=Gwe("Reflect","construct"),Fw=/^\s*(?:class|function)\b/,Kwe=Fwe(Fw.exec),Ywe=!Fw.test(ZW),Jg=function(r){if(!WW(r))return!1;try{return KW(ZW,Zwe,r),!0}catch{return!1}},YW=function(r){if(!WW(r))return!1;switch(Uwe(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ywe||!!Kwe(Fw,Wwe(r))}catch{return!0}};YW.sham=!0;var SI=!KW||jwe(function(){var t;return Jg(Jg.call)||!Jg(Object)||!Jg(function(){t=!0})||t})?YW:Jg,Xwe=$I,qwe=mi,Qwe=$c,lg=function(t,r,e){var n=Xwe(r);n in t?qwe.f(t,n,Qwe(0,e)):t[n]=e},Jwe=ws,fL=Lw,e$e=_c,t$e=sg,r$e=lr,n$e=r$e("iterator"),TI=function(t){if(!e$e(t))return fL(t,n$e)||fL(t,"@@iterator")||t$e[Jwe(t)]},i$e=en,o$e=pi,a$e=Qn,s$e=ig,l$e=TI,c$e=TypeError,jw=function(t,r){var e=arguments.length<2?l$e(t):r;if(o$e(e))return a$e(i$e(e,t));throw new c$e(s$e(t)+" is not iterable")},u$e=j1,g$e=en,h$e=qn,d$e=xwe,f$e=UW,C$e=SI,v$e=yi,CL=lg,A$e=jw,I$e=TI,vL=Array,p$e=function(r){var e=h$e(r),n=C$e(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=u$e(o,i>2?arguments[2]:void 0));var s=I$e(e),l=0,c,u,g,h,d,f;if(s&&!(this===vL&&f$e(s)))for(h=A$e(e,s),d=h.next,u=n?new this:[];!(g=g$e(d,h)).done;l++)f=a?d$e(h,o,[g.value,l],!0):g.value,CL(u,l,f);else for(c=v$e(e),u=n?new this(c):vL(c);c>l;l++)f=a?o(e[l],l):e[l],CL(u,l,f);return u.length=l,u},m$e=lr,XW=m$e("iterator"),qW=!1;try{var y$e=0,AL={next:function(){return{done:!!y$e++}},return:function(){qW=!0}};AL[XW]=function(){return this},Array.from(AL,function(){throw 2})}catch{}var QW=function(t,r){try{if(!r&&!qW)return!1}catch{return!1}var e=!1;try{var n={};n[XW]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch{}return e},b$e=xe,w$e=p$e,$$e=QW,_$e=!$$e(function(t){Array.from(t)});b$e({target:"Array",stat:!0,forced:_$e},{from:w$e});var M$e=_t,z$e=M$e.Array.from,E$e=z$e,JW=E$e,S$e=JW,G1=Oe(S$e),T$e=Sa,IL=sg,eZ=U1;mi.f;var L$e=Nw,IC=Bw,tZ="Array Iterator",k$e=eZ.set,O$e=eZ.getterFor(tZ);L$e(Array,"Array",function(t,r){k$e(this,{type:tZ,target:T$e(t),index:0,kind:r})},function(){var t=O$e(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,IC(void 0,!0);switch(e){case"keys":return IC(n,!1);case"values":return IC(r[n],!1)}return IC([n,r[n]],!1)},"values");IL.Arguments=IL.Array;var x$e=TI,H$e=x$e,V$e={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},P$e=V$e,R$e=Yt,D$e=ws,N$e=bs,pL=sg,B$e=lr,mL=B$e("toStringTag");for(var C3 in P$e){var yL=R$e[C3],v3=yL&&yL.prototype;v3&&D$e(v3)!==mL&&N$e(v3,mL,C3),pL[C3]=pL.Array}var F$e=H$e,j$e=F$e,U$e=j$e,G$e=U$e,W$e=G$e,Z$e=W$e,rZ=Z$e,nZ=Oe(rZ),K$e=rZ,W1=Oe(K$e);function pe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var iZ={exports:{}},Y$e=xe,X$e=Cn,bL=mi.f;Y$e({target:"Object",stat:!0,forced:Object.defineProperty!==bL,sham:!X$e},{defineProperty:bL});var q$e=_t,oZ=q$e.Object,Q$e=iZ.exports=function(r,e,n){return oZ.defineProperty(r,e,n)};oZ.defineProperty.sham&&(Q$e.sham=!0);var J$e=iZ.exports,e_e=J$e,aZ=e_e,t_e=aZ,r_e=t_e,n_e=r_e,i_e=n_e,sZ=i_e,LI=Oe(sZ),o_e=ys,Z1=Array.isArray||function(r){return o_e(r)==="Array"},a_e=TypeError,s_e=9007199254740991,kI=function(t){if(t>s_e)throw a_e("Maximum allowed index exceeded");return t},wL=Z1,l_e=SI,c_e=Pr,u_e=lr,g_e=u_e("species"),$L=Array,h_e=function(t){var r;return wL(t)&&(r=t.constructor,l_e(r)&&(r===$L||wL(r.prototype))?r=void 0:c_e(r)&&(r=r[g_e],r===null&&(r=void 0))),r===void 0?$L:r},d_e=h_e,OI=function(t,r){return new(d_e(t))(r===0?0:r)},f_e=yt,C_e=lr,v_e=rg,A_e=C_e("species"),Of=function(t){return v_e>=51||!f_e(function(){var r=[],e=r.constructor={};return e[A_e]=function(){return{foo:1}},r[t](Boolean).foo!==1})},I_e=xe,p_e=yt,m_e=Z1,y_e=Pr,b_e=qn,w_e=yi,_L=kI,ML=lg,$_e=OI,__e=Of,M_e=lr,z_e=rg,lZ=M_e("isConcatSpreadable"),E_e=z_e>=51||!p_e(function(){var t=[];return t[lZ]=!1,t.concat()[0]!==t}),S_e=function(t){if(!y_e(t))return!1;var r=t[lZ];return r!==void 0?!!r:m_e(t)},T_e=!E_e||!__e("concat");I_e({target:"Array",proto:!0,arity:1,forced:T_e},{concat:function(r){var e=b_e(this),n=$_e(e,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;ov;v++)if((s||v in d)&&(p=d[v],m=f(p,v,h),t))if(r)I[v]=m;else if(m)switch(t){case 3:return!0;case 5:return p;case 6:return v;case 2:SL(I,p)}else switch(t){case 4:return!1;case 7:SL(I,p)}return o?-1:n||i?i:I}},K1={forEach:Ls(0),map:Ls(1),filter:Ls(2),some:Ls(3),every:Ls(4),find:Ls(5),findIndex:Ls(6),filterReject:Ls(7)},HI=xe,VI=Yt,Gw=en,nMe=St,pu=Cn,mu=ng,iMe=yt,an=_r,oMe=Cr,Q8=Qn,PI=Sa,Ww=$I,aMe=Wo,J8=$c,kd=zc,dZ=MI,sMe=xf,fZ=xI,lMe=Tf,CZ=B1,vZ=mi,cMe=EI,AZ=yI,TL=ag,uMe=Uw,Zw=og,gMe=zI,IZ=Sf,LL=wI,hMe=lr,dMe=Hf,fMe=Mr,CMe=hZ,vMe=Ec,pZ=U1,RI=K1.forEach,si=gMe("hidden"),DI="Symbol",Od="prototype",AMe=pZ.set,kL=pZ.getterFor(DI),Eo=Object[Od],Hl=VI.Symbol,fh=Hl&&Hl[Od],IMe=VI.RangeError,pMe=VI.TypeError,A3=VI.QObject,mZ=CZ.f,Vl=vZ.f,yZ=fZ.f,mMe=AZ.f,bZ=nMe([].push),cs=Zw("symbols"),Vf=Zw("op-symbols"),yMe=Zw("wks"),e7=!A3||!A3[Od]||!A3[Od].findChild,wZ=function(t,r,e){var n=mZ(Eo,r);n&&delete Eo[r],Vl(t,r,e),n&&t!==Eo&&Vl(Eo,r,n)},t7=pu&&iMe(function(){return kd(Vl({},"a",{get:function(){return Vl(this,"a",{value:7}).a}})).a!==7})?wZ:Vl,I3=function(t,r){var e=cs[t]=kd(fh);return AMe(e,{type:DI,tag:t,description:r}),pu||(e.description=r),e},NI=function(r,e,n){r===Eo&&NI(Vf,e,n),Q8(r);var i=Ww(e);return Q8(n),an(cs,i)?(n.enumerable?(an(r,si)&&r[si][i]&&(r[si][i]=!1),n=kd(n,{enumerable:J8(0,!1)})):(an(r,si)||Vl(r,si,J8(1,{})),r[si][i]=!0),t7(r,i,n)):Vl(r,i,n)},Kw=function(r,e){Q8(r);var n=PI(e),i=dZ(n).concat(zZ(n));return RI(i,function(o){(!pu||Gw($Z,n,o))&&NI(r,o,n[o])}),r},bMe=function(r,e){return e===void 0?kd(r):Kw(kd(r),e)},$Z=function(r){var e=Ww(r),n=Gw(mMe,this,e);return this===Eo&&an(cs,e)&&!an(Vf,e)?!1:n||!an(this,e)||!an(cs,e)||an(this,si)&&this[si][e]?n:!0},_Z=function(r,e){var n=PI(r),i=Ww(e);if(!(n===Eo&&an(cs,i)&&!an(Vf,i))){var o=mZ(n,i);return o&&an(cs,i)&&!(an(n,si)&&n[si][i])&&(o.enumerable=!0),o}},MZ=function(r){var e=yZ(PI(r)),n=[];return RI(e,function(i){!an(cs,i)&&!an(IZ,i)&&bZ(n,i)}),n},zZ=function(t){var r=t===Eo,e=yZ(r?Vf:PI(t)),n=[];return RI(e,function(i){an(cs,i)&&(!r||an(Eo,i))&&bZ(n,cs[i])}),n};mu||(Hl=function(){if(oMe(fh,this))throw new pMe("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:aMe(arguments[0]),e=LL(r),n=function(i){this===Eo&&Gw(n,Vf,i),an(this,si)&&an(this[si],e)&&(this[si][e]=!1);var o=J8(1,i);try{t7(this,e,o)}catch(a){if(!(a instanceof IMe))throw a;wZ(this,e,o)}};return pu&&e7&&t7(Eo,e,{configurable:!0,set:n}),I3(e,r)},fh=Hl[Od],TL(fh,"toString",function(){return kL(this).tag}),TL(Hl,"withoutSetter",function(t){return I3(LL(t),t)}),AZ.f=$Z,vZ.f=NI,cMe.f=Kw,CZ.f=_Z,sMe.f=fZ.f=MZ,lMe.f=zZ,dMe.f=function(t){return I3(hMe(t),t)},pu&&uMe(fh,"description",{configurable:!0,get:function(){return kL(this).description}}));HI({global:!0,constructor:!0,wrap:!0,forced:!mu,sham:!mu},{Symbol:Hl});RI(dZ(yMe),function(t){fMe(t)});HI({target:DI,stat:!0,forced:!mu},{useSetter:function(){e7=!0},useSimple:function(){e7=!1}});HI({target:"Object",stat:!0,forced:!mu,sham:!pu},{create:bMe,defineProperty:NI,defineProperties:Kw,getOwnPropertyDescriptor:_Z});HI({target:"Object",stat:!0,forced:!mu},{getOwnPropertyNames:MZ});CMe();vMe(Hl,DI);IZ[si]=!0;var wMe=ng,EZ=wMe&&!!Symbol.for&&!!Symbol.keyFor,$Me=xe,_Me=Xn,MMe=_r,zMe=Wo,SZ=og,EMe=EZ,p3=SZ("string-to-symbol-registry"),SMe=SZ("symbol-to-string-registry");$Me({target:"Symbol",stat:!0,forced:!EMe},{for:function(t){var r=zMe(t);if(MMe(p3,r))return p3[r];var e=_Me("Symbol")(r);return p3[r]=e,SMe[e]=r,e}});var TMe=xe,LMe=_r,kMe=Mf,OMe=ig,xMe=og,HMe=EZ,OL=xMe("symbol-to-string-registry");TMe({target:"Symbol",stat:!0,forced:!HMe},{keyFor:function(r){if(!kMe(r))throw new TypeError(OMe(r)+" is not a symbol");if(LMe(OL,r))return OL[r]}});var VMe=St,xL=Z1,PMe=$r,HL=ys,RMe=Wo,VL=VMe([].push),DMe=function(t){if(PMe(t))return t;if(xL(t)){for(var r=t.length,e=[],n=0;nt.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?arguments[1]:void 0)}});var gTe=Rr,hTe=gTe("Array").map,dTe=Cr,fTe=hTe,_3=Array.prototype,CTe=function(t){var r=t.map;return t===_3||dTe(_3,t)&&r===_3.map?fTe:r},vTe=CTe,ATe=vTe,ITe=ATe,Mn=Oe(ITe),pTe=xe,mTe=qn,qZ=MI,yTe=yt,bTe=yTe(function(){qZ(1)});pTe({target:"Object",stat:!0,forced:bTe},{keys:function(r){return qZ(mTe(r))}});var wTe=_t,$Te=wTe.Object.keys,_Te=$Te,MTe=_Te,zTe=MTe,ar=Oe(zTe),ETe=xe,STe=St,QZ=Date,TTe=STe(QZ.prototype.getTime);ETe({target:"Date",stat:!0},{now:function(){return TTe(new QZ)}});var LTe=_t,kTe=LTe.Date.now,OTe=kTe,xTe=OTe,HTe=xTe,eA=Oe(HTe),VTe=yt,cg=function(t,r){var e=[][t];return!!e&&VTe(function(){e.call(null,r||function(){return 1},1)})},PTe=K1.forEach,RTe=cg,DTe=RTe("forEach"),NTe=DTe?[].forEach:function(r){return PTe(this,r,arguments.length>1?arguments[1]:void 0)},BTe=xe,JL=NTe;BTe({target:"Array",proto:!0,forced:[].forEach!==JL},{forEach:JL});var FTe=Rr,jTe=FTe("Array").forEach,UTe=jTe,GTe=UTe,WTe=ws,ZTe=_r,KTe=Cr,YTe=GTe,M3=Array.prototype,XTe={DOMTokenList:!0,NodeList:!0},JZ=function(t){var r=t.forEach;return t===M3||KTe(M3,t)&&r===M3.forEach||ZTe(XTe,WTe(t))?YTe:r},qTe=JZ,Mt=Oe(qTe),QTe=xe,JTe=St,eLe=Z1,tLe=JTe([].reverse),ek=[1,2];QTe({target:"Array",proto:!0,forced:String(ek)===String(ek.reverse())},{reverse:function(){return eLe(this)&&(this.length=this.length),tLe(this)}});var rLe=Rr,nLe=rLe("Array").reverse,iLe=Cr,oLe=nLe,z3=Array.prototype,aLe=function(t){var r=t.reverse;return t===z3||iLe(z3,t)&&r===z3.reverse?oLe:r},sLe=aLe,eK=sLe,lLe=eK,Pl=Oe(lLe),tk=ig,cLe=TypeError,tK=function(t,r){if(!delete t[r])throw new cLe("Cannot delete property "+tk(r)+" of "+tk(t))},uLe=xe,gLe=qn,hLe=Ef,dLe=_I,fLe=yi,CLe=GZ,vLe=kI,ALe=OI,ILe=lg,E3=tK,pLe=Of,mLe=pLe("splice"),yLe=Math.max,bLe=Math.min;uLe({target:"Array",proto:!0,forced:!mLe},{splice:function(r,e){var n=gLe(this),i=fLe(n),o=hLe(r,i),a=arguments.length,s,l,c,u,g,h;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=bLe(yLe(dLe(e),0),i-o)),vLe(i+s-l),c=ALe(n,l),u=0;ui-l+s;u--)E3(n,u-1)}else if(s>l)for(u=i-l;u>o;u--)g=u+l-1,h=u+s-1,g in n?n[h]=n[g]:E3(n,h);for(u=0;u1?arguments[1]:void 0)}});var HLe=Rr,VLe=HLe("Array").includes,PLe=Pr,RLe=ys,DLe=lr,NLe=DLe("match"),BLe=function(t){var r;return PLe(t)&&((r=t[NLe])!==void 0?!!r:RLe(t)==="RegExp")},FLe=BLe,jLe=TypeError,ULe=function(t){if(FLe(t))throw new jLe("The method doesn't accept regular expressions");return t},GLe=lr,WLe=GLe("match"),ZLe=function(t){var r=/./;try{"/./"[t](r)}catch{try{return r[WLe]=!1,"/./"[t](r)}catch{}}return!1},KLe=xe,YLe=St,XLe=ULe,qLe=_f,rk=Wo,QLe=ZLe,JLe=YLe("".indexOf);KLe({target:"String",proto:!0,forced:!QLe("includes")},{includes:function(r){return!!~JLe(rk(qLe(this)),rk(XLe(r)),arguments.length>1?arguments[1]:void 0)}});var eke=Rr,tke=eke("String").includes,nk=Cr,rke=VLe,nke=tke,T3=Array.prototype,L3=String.prototype,ike=function(t){var r=t.includes;return t===T3||nk(T3,t)&&r===T3.includes?rke:typeof t=="string"||t===L3||nk(L3,t)&&r===L3.includes?nke:r},oke=ike,ake=oke,ske=ake,c1=Oe(ske),lke=xe,cke=yt,uke=qn,rK=kf,gke=PW,hke=cke(function(){rK(1)});lke({target:"Object",stat:!0,forced:hke,sham:!gke},{getPrototypeOf:function(r){return rK(uke(r))}});var dke=_t,fke=dke.Object.getPrototypeOf,Cke=fke,nK=Cke,vke=nK,ik=Oe(vke),Ake=xe,Ike=K1.filter,pke=Of,mke=pke("filter");Ake({target:"Array",proto:!0,forced:!mke},{filter:function(r){return Ike(this,r,arguments.length>1?arguments[1]:void 0)}});var yke=Rr,bke=yke("Array").filter,wke=Cr,$ke=bke,k3=Array.prototype,_ke=function(t){var r=t.filter;return t===k3||wke(k3,t)&&r===k3.filter?$ke:r},Mke=_ke,zke=Mke,Eke=zke,jr=Oe(Eke),Qw=` \v\f\r                 \u2028\u2029\uFEFF`,Ske=St,Tke=_f,Lke=Wo,n7=Qw,ok=Ske("".replace),kke=RegExp("^["+n7+"]+"),Oke=RegExp("(^|[^"+n7+"])["+n7+"]+$"),O3=function(t){return function(r){var e=Lke(Tke(r));return t&1&&(e=ok(e,kke,"")),t&2&&(e=ok(e,Oke,"$1")),e}},iK={start:O3(1),end:O3(2),trim:O3(3)},oK=Yt,xke=yt,Hke=St,Vke=Wo,Pke=iK.trim,ak=Qw,Ph=oK.parseInt,sk=oK.Symbol,lk=sk&&sk.iterator,aK=/^[+-]?0x/i,Rke=Hke(aK.exec),Dke=Ph(ak+"08")!==8||Ph(ak+"0x16")!==22||lk&&!xke(function(){Ph(Object(lk))}),Nke=Dke?function(r,e){var n=Pke(Vke(r));return Ph(n,e>>>0||(Rke(aK,n)?16:10))}:Ph,Bke=xe,ck=Nke;Bke({global:!0,forced:parseInt!==ck},{parseInt:ck});var Fke=_t,jke=Fke.parseInt,Uke=jke,Gke=Uke,Wke=Gke,yo=Oe(Wke),Zke=xe,Kke=Tw,Yke=xw.indexOf,Xke=cg,i7=Kke([].indexOf),sK=!!i7&&1/i7([1],1,-0)<0,qke=sK||!Xke("indexOf");Zke({target:"Array",proto:!0,forced:qke},{indexOf:function(r){var e=arguments.length>1?arguments[1]:void 0;return sK?i7(this,r,e)||0:Yke(this,r,e)}});var Qke=Rr,Jke=Qke("Array").indexOf,eOe=Cr,tOe=Jke,x3=Array.prototype,rOe=function(t){var r=t.indexOf;return t===x3||eOe(x3,t)&&r===x3.indexOf?tOe:r},nOe=rOe,iOe=nOe,oOe=iOe,zt=Oe(oOe),aOe=xe,sOe=Cn,lOe=zc;aOe({target:"Object",stat:!0,sham:!sOe},{create:lOe});var cOe=_t,uOe=cOe.Object,gOe=function(r,e){return uOe.create(r,e)},hOe=gOe,lK=hOe,dOe=lK,u1=Oe(dOe),o7=_t,fOe=tg;o7.JSON||(o7.JSON={stringify:JSON.stringify});var COe=function(r,e,n){return fOe(o7.JSON.stringify,null,arguments)},vOe=COe,AOe=vOe,IOe=AOe,ug=Oe(IOe),pOe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",mOe=TypeError,cK=function(t,r){if(te,a=bOe(n)?n:zOe(n),s=o?_Oe(arguments,e):[],l=o?function(){yOe(a,this,s)}:a;return r?t(l,i):t(l)}:t},SOe=xe,hK=Yt,TOe=gK,uk=TOe(hK.setInterval,!0);SOe({global:!0,bind:!0,forced:hK.setInterval!==uk},{setInterval:uk});var LOe=xe,dK=Yt,kOe=gK,gk=kOe(dK.setTimeout,!0);LOe({global:!0,bind:!0,forced:dK.setTimeout!==gk},{setTimeout:gk});var OOe=_t,xOe=OOe.setTimeout,HOe=xOe,Ho=Oe(HOe),VOe=qn,hk=Ef,POe=yi,ROe=function(r){for(var e=VOe(this),n=POe(e),i=arguments.length,o=hk(i>1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,s=a===void 0?n:hk(a,n);s>o;)e[o++]=r;return e},DOe=xe,NOe=ROe;DOe({target:"Array",proto:!0},{fill:NOe});var BOe=Rr,FOe=BOe("Array").fill,jOe=Cr,UOe=FOe,H3=Array.prototype,GOe=function(t){var r=t.fill;return t===H3||jOe(H3,t)&&r===H3.fill?UOe:r},WOe=GOe,ZOe=WOe,KOe=ZOe,Rf=Oe(KOe);/*! 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 Fo(){return Fo=Object.assign||function(t){for(var r=1;r"u"?{style:{}}:document.createElement("div"),XOe="function",w2=Math.round,nc=Math.abs,Jw=Date.now;function BI(t,r){for(var e,n,i=r[0].toUpperCase()+r.slice(1),o=0;o"u"?Ka={}:Ka=window;var fK=BI(YOe.style,"touchAction"),CK=fK!==void 0;function qOe(){if(!CK)return!1;var t={},r=Ka.CSS&&Ka.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return t[e]=r?Ka.CSS.supports("touch-action",e):!0}),t}var vK="compute",AK="auto",s7="manipulation",Rl="none",xd="pan-x",Hd="pan-y",yC=qOe(),QOe=/mobile|tablet|ip(ad|hone|od)|android/i,IK="ontouchstart"in Ka,JOe=BI(Ka,"PointerEvent")!==void 0,exe=IK&&QOe.test(navigator.userAgent),Df="touch",txe="pen",e$="mouse",rxe="kinect",nxe=25,Zn=1,Tc=2,Ur=4,Ci=8,tA=1,Nf=2,Bf=4,Ff=8,yu=16,va=Nf|Bf,Dl=Ff|yu,pK=va|Dl,mK=["x","y"],rA=["clientX","clientY"];function Ya(t,r,e){var n;if(t)if(t.forEach)t.forEach(r,e);else if(t.length!==void 0)for(n=0;n-1}function ixe(t){if(zl(t,Rl))return Rl;var r=zl(t,xd),e=zl(t,Hd);return r&&e?Rl:r||e?r?xd:Hd:zl(t,s7)?s7:AK}var yK=function(){function t(e,n){this.manager=e,this.set(n)}var r=t.prototype;return r.set=function(n){n===vK&&(n=this.compute()),CK&&this.manager.element.style&&yC[n]&&(this.manager.element.style[fK]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return Ya(this.manager.recognizers,function(i){FI(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),ixe(n.join(" "))},r.preventDefaults=function(n){var i=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var a=this.actions,s=zl(a,Rl)&&!yC[Rl],l=zl(a,Hd)&&!yC[Hd],c=zl(a,xd)&&!yC[xd];if(s){var u=n.pointers.length===1,g=n.distance<2,h=n.deltaTime<250;if(u&&g&&h)return}if(!(c&&l)&&(s||l&&o&va||c&&o&Dl))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function t$(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}function bK(t){var r=t.length;if(r===1)return{x:w2(t[0].clientX),y:w2(t[0].clientY)};for(var e=0,n=0,i=0;i=nc(r)?t<0?Nf:Bf:r<0?Ff:yu}function oxe(t,r){var e=r.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};(r.eventType===Zn||o.eventType===Ur)&&(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:e.x,y:e.y}),r.deltaX=i.x+(e.x-n.x),r.deltaY=i.y+(e.y-n.y)}function $K(t,r,e){return{x:r/t||0,y:e/t||0}}function axe(t,r){return nA(r[0],r[1],rA)/nA(t[0],t[1],rA)}function sxe(t,r){return l7(r[1],r[0],rA)+l7(t[1],t[0],rA)}function lxe(t,r){var e=t.lastInterval||r,n=r.timeStamp-e.timeStamp,i,o,a,s;if(r.eventType!==Ci&&(n>nxe||e.velocity===void 0)){var l=r.deltaX-e.deltaX,c=r.deltaY-e.deltaY,u=$K(n,l,c);o=u.x,a=u.y,i=nc(u.x)>nc(u.y)?u.x:u.y,s=wK(l,c),t.lastInterval=r}else i=e.velocity,o=e.velocityX,a=e.velocityY,s=e.direction;r.velocity=i,r.velocityX=o,r.velocityY=a,r.direction=s}function cxe(t,r){var e=t.session,n=r.pointers,i=n.length;e.firstInput||(e.firstInput=fk(r)),i>1&&!e.firstMultiple?e.firstMultiple=fk(r):i===1&&(e.firstMultiple=!1);var o=e.firstInput,a=e.firstMultiple,s=a?a.center:o.center,l=r.center=bK(n);r.timeStamp=Jw(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=l7(s,l),r.distance=nA(s,l),oxe(e,r),r.offsetDirection=wK(r.deltaX,r.deltaY);var c=$K(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=c.x,r.overallVelocityY=c.y,r.overallVelocity=nc(c.x)>nc(c.y)?c.x:c.y,r.scale=a?axe(a.pointers,n):1,r.rotation=a?sxe(a.pointers,n):0,r.maxPointers=e.prevInput?r.pointers.length>e.prevInput.maxPointers?r.pointers.length:e.prevInput.maxPointers:r.pointers.length,lxe(e,r);var u=t.element,g=r.srcEvent,h;g.composedPath?h=g.composedPath()[0]:g.path?h=g.path[0]:h=g.target,t$(h,u)&&(u=h),r.target=u}function uxe(t,r,e){var n=e.pointers.length,i=e.changedPointers.length,o=r&Zn&&n-i===0,a=r&(Ur|Ci)&&n-i===0;e.isFirst=!!o,e.isFinal=!!a,o&&(t.session={}),e.eventType=r,cxe(t,e),t.emit("hammer.input",e),t.recognize(e),t.session.prevInput=e}function Vd(t){return t.trim().split(/\s+/g)}function Rh(t,r,e){Ya(Vd(r),function(n){t.addEventListener(n,e,!1)})}function Dh(t,r,e){Ya(Vd(r),function(n){t.removeEventListener(n,e,!1)})}function Ck(t){var r=t.ownerDocument||t;return r.defaultView||r.parentWindow||window}var gg=function(){function t(e,n){var i=this;this.manager=e,this.callback=n,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(o){FI(e.options.enable,[e])&&i.handler(o)},this.init()}var r=t.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Rh(this.element,this.evEl,this.domHandler),this.evTarget&&Rh(this.target,this.evTarget,this.domHandler),this.evWin&&Rh(Ck(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Dh(this.element,this.evEl,this.domHandler),this.evTarget&&Dh(this.target,this.evTarget,this.domHandler),this.evWin&&Dh(Ck(this.element),this.evWin,this.domHandler)},t}();function ic(t,r,e){if(t.indexOf&&!e)return t.indexOf(r);for(var n=0;nl[r]}):n=n.sort()),n}var dxe={touchstart:Zn,touchmove:Tc,touchend:Ur,touchcancel:Ci},fxe="touchstart touchmove touchend touchcancel",n$=function(t){fo(r,t);function r(){var n;return r.prototype.evTarget=fxe,n=t.apply(this,arguments)||this,n.targetIds={},n}var e=r.prototype;return e.handler=function(i){var o=dxe[i.type],a=Cxe.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:Df,srcEvent:i})},r}(gg);function Cxe(t,r){var e=Pd(t.touches),n=this.targetIds;if(r&(Zn|Tc)&&e.length===1)return n[e[0].identifier]=!0,[e,e];var i,o,a=Pd(t.changedTouches),s=[],l=this.target;if(o=e.filter(function(c){return t$(c.target,l)}),r===Zn)for(i=0;i-1&&i.splice(s,1)};setTimeout(o,pxe)}}function mxe(t,r){t&Zn?(this.primaryTouch=r.changedPointers[0].identifier,Ak.call(this,r)):t&(Ur|Ci)&&Ak.call(this,r)}function yxe(t){for(var r=t.srcEvent.clientX,e=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(i,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},r.emit=function(n){var i=this,o=this.state;function a(s){i.manager.emit(s,n)}o=g1&&a(i.options.event+Ik(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=sa},r.canEmit=function(){for(var n=0;no.threshold&&l&o.direction},e.attrTest=function(i){return wu.prototype.attrTest.call(this,i)&&(this.state&co||!(this.state&co)&&this.directionTest(i))},e.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=SK(i.direction);o&&(i.additionalEvent=this.options.event+o),t.prototype.emit.call(this,i)},r}(wu),TK=function(t){fo(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Fo({event:"swipe",threshold:10,velocity:.3,direction:va|Dl,pointers:1},n))||this}var e=r.prototype;return e.getTouchAction=function(){return o$.prototype.getTouchAction.call(this)},e.attrTest=function(i){var o=this.options.direction,a;return o&(va|Dl)?a=i.overallVelocity:o&va?a=i.overallVelocityX:o&Dl&&(a=i.overallVelocityY),t.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&nc(a)>this.options.velocity&&i.eventType&Ur},e.emit=function(i){var o=SK(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(wu),LK=function(t){fo(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Fo({event:"pinch",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Rl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&co)},e.emit=function(i){if(i.scale!==1){var o=i.scale<1?"in":"out";i.additionalEvent=this.options.event+o}t.prototype.emit.call(this,i)},r}(wu),kK=function(t){fo(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Fo({event:"rotate",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Rl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&co)},r}(wu),OK=function(t){fo(r,t);function r(n){var i;return n===void 0&&(n={}),i=t.call(this,Fo({event:"press",pointers:1,time:251,threshold:9},n))||this,i._timer=null,i._input=null,i}var e=r.prototype;return e.getTouchAction=function(){return[AK]},e.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distancea.time;if(this._input=i,!l||!s||i.eventType&(Ur|Ci)&&!c)this.reset();else if(i.eventType&Zn)this.reset(),this._timer=setTimeout(function(){o.state=Xa,o.tryEmit()},a.time);else if(i.eventType&Ur)return Xa;return sa},e.reset=function(){clearTimeout(this._timer)},e.emit=function(i){this.state===Xa&&(i&&i.eventType&Ur?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=Jw(),this.manager.emit(this.options.event,this._input)))},r}(jf),xK={domEvents:!1,touchAction:vK,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},pk=[[kK,{enable:!1}],[LK,{enable:!1},["rotate"]],[TK,{direction:va}],[o$,{direction:va},["swipe"]],[c7],[c7,{event:"doubletap",taps:2},["tap"]],[OK]],_xe=1,mk=2;function yk(t,r){var e=t.element;if(e.style){var n;Ya(t.options.cssProps,function(i,o){n=BI(e.style,o),r?(t.oldCssProps[n]=e.style[n],e.style[n]=i):e.style[n]=t.oldCssProps[n]||""}),r||(t.oldCssProps={})}}function Mxe(t,r){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.gesture=r,r.target.dispatchEvent(e)}var bk=function(){function t(e,n){var i=this;this.options=rc({},xK,n||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=bxe(this),this.touchAction=new yK(this,this.options.touchAction),yk(this,!0),Ya(this.options.recognizers,function(o){var a=i.add(new o[0](o[1]));o[2]&&a.recognizeWith(o[2]),o[3]&&a.requireFailure(o[3])},this)}var r=t.prototype;return r.set=function(n){return rc(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},r.stop=function(n){this.session.stopped=n?mk:_xe},r.recognize=function(n){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(n);var o,a=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&Xa)&&(i.curRecognizer=null,s=null);for(var l=0;l\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,n,o),t.apply(this,arguments)}}var VK=HK(function(t,r,e){for(var n=Object.keys(r),i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Hxe(t,r){var e;if(t){if(typeof t=="string")return $k(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return G1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $k(t,r)}}function $k(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?e-1:0),i=1;i2){var n;return iA.apply(void 0,Sc(n=[DK(r[0],r[1])]).call(n,hr(qr(r).call(r,2))))}var i=r[0],o=r[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a=a$(oTe(o)),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===RK?delete i[l]:i[l]!==null&&o[l]!==null&&dt(i[l])==="object"&&dt(o[l])==="object"&&!ut(i[l])&&!ut(o[l])?i[l]=iA(i[l],o[l]):i[l]=NK(o[l]))}}catch(c){a.e(c)}finally{a.f()}return i}function NK(t){return ut(t)?Mn(t).call(t,function(r){return NK(r)}):dt(t)==="object"&&t!==null?t instanceof Date?new Date(t.getTime()):iA({},t):t}function BK(t){for(var r=0,e=ar(t);r>>0,i-=t,i*=t,t=i>>>0,i-=t,t+=i*4294967296}return(t>>>0)*23283064365386963e-26}}function Nxe(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}var s$=typeof window<"u"?window.Hammer||xxe:function(){return Nxe()};function la(t){var r=this,e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var n=s$(this._dom.overlay);n.on("tap",ve(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){n.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Mt(i).call(i,function(o){n.on(o,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(o){Bxe(o.target,t)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})),this._escListener=function(o){("key"in o?o.key==="Escape":o.keyCode===27)&&r.deactivate()}}SW(la.prototype);la.current=null;la.prototype.destroy=function(){var t,r;this.deactivate();var e=a$(Pl(t=Ca(r=this._cleanupQueue).call(r,0)).call(t)),n;try{for(e.s();!(n=e.n()).done;){var i=n.value;i()}}catch(o){e.e(o)}finally{e.f()}};la.prototype.activate=function(){la.current&&la.current.deactivate(),la.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)};la.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")};la.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};function Bxe(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Fxe=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,jxe=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Uxe=/^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,Gxe=/^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 Ws(t){if(t)for(;t.hasChildNodes()===!0;){var r=t.firstChild;r&&(Ws(r),t.removeChild(r))}}function Y2(t){return t instanceof String||typeof t=="string"}function _k(t){return dt(t)==="object"&&t!==null}function oc(t,r,e,n){var i=!1;n===!0&&(i=r[e]===null&&t[e]!==void 0),i?delete t[e]:t[e]=r[e]}function FK(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var n in t)if(r[n]!==void 0)if(r[n]===null||dt(r[n])!=="object")oc(t,r,n,e);else{var i=t[n],o=r[n];_k(i)&&_k(o)&&FK(i,o,e)}}function hg(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ut(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!1;if(ut(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!c1(t).call(t,i))if(e[i]&&e[i].constructor===Object)r[i]===void 0&&(r[i]={}),r[i].constructor===Object?tr(r[i],e[i]):oc(r,e,i,n);else if(ut(e[i])){r[i]=[];for(var o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)||e===!0)if(dt(r[i])==="object"&&r[i]!==null&&ik(r[i])===Object.prototype)t[i]===void 0?t[i]=tr({},r[i],e):dt(t[i])==="object"&&t[i]!==null&&ik(t[i])===Object.prototype?tr(t[i],r[i],e):oc(t,r,i,n);else if(ut(r[i])){var o;t[i]=qr(o=r[i]).call(o)}else oc(t,r,i,n);return t}function aA(t,r){var e;return Sc(e=[]).call(e,hr(t),[r])}function Wxe(t){return qr(t).call(t)}function Zxe(t){return t.getBoundingClientRect().left}function Kxe(t){return t.getBoundingClientRect().top}function Ct(t,r){if(ut(t))for(var e=t.length,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=function(f){return f!=null},o=function(f){return f!==null&&dt(f)==="object"},a=function(f){for(var C in f)if(Object.prototype.hasOwnProperty.call(f,C))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(r))throw new Error("Parameter options must be an object");if(!i(e))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var s=function(f,C,v){o(f[v])||(f[v]={});var A=C[v],I=f[v];for(var p in A)Object.prototype.hasOwnProperty.call(A,p)&&(I[p]=A[p])},l=r[e],c=o(n)&&!a(n),u=c?n[e]:void 0,g=u?u.enabled:void 0;if(l!==void 0){if(typeof l=="boolean"){o(t[e])||(t[e]={}),t[e].enabled=l;return}if(l===null&&!o(t[e]))if(i(u))t[e]=u1(u);else return;if(o(l)){var h=!0;l.enabled!==void 0?h=l.enabled:g!==void 0&&(h=u.enabled),s(t,r,e),t[e].enabled=h}}}var qxe={linear:function(r){return r},easeInQuad:function(r){return r*r},easeOutQuad:function(r){return r*(2-r)},easeInOutQuad:function(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic:function(r){return r*r*r},easeOutCubic:function(r){return--r*r*r+1},easeInOutCubic:function(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart:function(r){return r*r*r*r},easeOutQuart:function(r){return 1- --r*r*r*r},easeInOutQuart:function(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint:function(r){return r*r*r*r*r},easeOutQuint:function(r){return 1+--r*r*r*r*r},easeInOutQuint:function(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function Zs(t,r){var e;ut(r)||(r=[r]);var n=a$(t),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o){e=o[r[0]];for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:1;pe(this,t),this.pixelRatio=r,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=function(){},this.closeCallback=function(){},this._create()}return me(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return Qxe[e]}},{key:"setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var i,o=this._isColorString(e);if(o!==void 0&&(e=o),Y2(e)===!0){if(GK(e)===!0){var a=e.substr(4).substr(0,e.length-5).split(",");i={r:a[0],g:a[1],b:a[2],a:1}}else if(Xxe(e)===!0){var 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(UK(e)===!0){var l=l$(e);i={r:l.r,g:l.g,b:l.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var c=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:c}}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: "+ug(e));this._setColor(i,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=Or({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ho(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=Or({},e)),this.color=e;var i=Ch(e.r,e.g,e.b),o=2*Math.PI,a=this.r*i.s,s=this.centerCoordinates.x+a*Math.sin(o*i.h),l=this.centerCoordinates.y+a*Math.cos(o*i.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=Ch(this.color.r,this.color.g,this.color.b);n.v=e/100;var i=B5(n.h,n.s,n.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=Ch(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);var o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,o,a),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-n.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Rf(i).call(i),this.brightnessRange.value=100*n.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+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,n,i,o;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){var s=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var a=document.createElement("DIV");a.style.color="red",a.style.fontWeight="bold",a.style.padding="10px",a.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(a)}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);var l=this;this.opacityRange.onchange=function(){l._setOpacity(this.value)},this.opacityRange.oninput=function(){l._setOpacity(this.value)},this.brightnessRange.onchange=function(){l._setBrightness(this.value)},this.brightnessRange.oninput=function(){l._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=ve(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=ve(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=ve(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=ve(o=this._loadLast).call(o,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)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new s$(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var 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);var n=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,n,i);var o,a,s,l;this.centerCoordinates={x:n*.5,y:i*.5},this.r=.49*n;var c=2*Math.PI/360,u=1/360,g=1/this.r,h;for(s=0;s<360;s++)for(l=0;l3&&arguments[3]!==void 0?arguments[3]:1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};pe(this,t),this.parent=r,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Or(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Jxe(i),this.wrapper=void 0}return me(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(ut(e))this.options.filter=e.join();else if(dt(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),jr(e)!==void 0&&(this.options.filter=jr(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);jr(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=jr(this.options),n=0,i=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(o,[]),i=i||this._handleObject(this.configureOptions[o],[o],!0)):(e===!0||zt(e).call(e,o)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?i-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:!1,o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,i===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(h7("i","b",e))}else o.innerText=e+":";return o}},{key:"_makeDropdown",value:function(e,n,i){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&zt(e).call(e,n)!==-1&&(a=zt(e).call(e,n));for(var s=0;ss&&s!==1&&(c.max=Math.ceil(n*h),g=c.max,u="range increased"),c.value=n}else c.value=o;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=c.value;var f=this;c.onchange=function(){d.value=this.value,f._update(Number(this.value),i)},c.oninput=function(){d.value=this.value};var C=this._makeLabel(i[i.length-1],i),v=this._makeItem(i,C,c,d);u!==""&&this.popupHistory[v]!==g&&(this.popupHistory[v]=g,this._setupPopup(u,v))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){e._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.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(n)}}},{key:"_setupPopup",value:function(e,n){var i=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=!1,a=jr(this.options),s=!1;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){o=!0;var c=e[l],u=aA(n,l);if(typeof a=="function"&&(o=a(l,n),o===!1&&!ut(c)&&typeof c!="string"&&typeof c!="boolean"&&c instanceof Object&&(this.allowCreation=!1,o=this._handleObject(c,u,!0),this.allowCreation=i===!1)),o!==!1){s=!0;var g=this._getValue(u);if(ut(c))this._handleArray(c,g,u);else if(typeof c=="string")this._makeTextInput(c,g,u);else if(typeof c=="boolean")this._makeCheckbox(c,g,u);else if(c instanceof Object){if(!this.hideOption(n,l,this.moduleOptions))if(c.enabled!==void 0){var h=aA(u,"enabled"),d=this._getValue(h);if(d===!0){var f=this._makeLabel(l,u,!0);this._makeItem(u,f),s=this._handleObject(c,u)||s}else this._makeCheckbox(c,d,u)}else{var C=this._makeLabel(l,u,!0);this._makeItem(u,C),s=this._handleObject(c,u)||s}}else console.error("dont know how to handle",c,l,u)}}return s}},{key:"_handleArray",value:function(e,n,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,i),e[1]!==n&&this.changedOptions.push({path:i,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,i),e[0]!==n&&this.changedOptions.push({path:i,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,i),e[0]!==n&&this.changedOptions.push({path:i,value:Number(n)}))}},{key:"_update",value:function(e,n){var i=this._constructOptions(e,n);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)}},{key:"_constructOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var a=0;aa-this.padding&&(c=!0),c?s=this.x-i:s=this.x,u?l=this.y-n:l=this.y}else l=this.y-n,l+n+this.padding>o&&(l=o-n-this.padding),la&&(s=a-i-this.padding),sa.distance?c=" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=s?c='. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):c=". Did you mean one of these: "+t.print(ar(n))+t.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+c,d7),eh=!0}},{key:"findInOptions",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=1e9,s="",l=[],c=e.toLowerCase(),u=void 0;for(var g in n){var h=void 0;if(n[g].__type__!==void 0&&o===!0){var d=t.findInOptions(e,n[g],aA(i,g));a>d.distance&&(s=d.closestMatch,l=d.path,a=d.distance,u=d.indexMatch)}else{var f;zt(f=g.toLowerCase()).call(f,c)!==-1&&(u=g),h=t.levenshteinDistance(e,g),a>h&&(s=g,l=Wxe(i),a=h)}}return{closestMatch:s,path:l,distance:a,indexMatch:u}}},{key:"printLocation",value:function(e,n){for(var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `,o=` `+i+`options = { `,a=0;a":!0,"--":!0},Js="",$u=0,gt="",qe="",ii=Pn.NULL;function lHe(){$u=0,gt=Js.charAt(0)}function tn(){$u++,gt=Js.charAt($u)}function Qc(){return Js.charAt($u+1)}function Ek(t){var r=t.charCodeAt(0);return r<47?r===35||r===46:r<59?r>47:r<91?r>64:r<96?r===95:r<123?r>96:!1}function E1(t,r){if(t||(t={}),r)for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t}function cHe(t,r,e){for(var n=r.split("."),i=t;n.length;){var o=n.shift();n.length?(i[o]||(i[o]={}),i=i[o]):i[o]=e}}function KK(t,r){for(var e,n,i=null,o=[t],a=t;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes){for(e=0,n=a.nodes.length;e=0;e--){var s,l=o[e];l.nodes||(l.nodes=[]),zt(s=l.nodes).call(s,i)===-1&&l.nodes.push(i)}r.attr&&(i.attr=E1(i.attr,r.attr))}function uHe(t,r){if(t.edges||(t.edges=[]),t.edges.push(r),t.edge){var e=E1({},t.edge);r.attr=E1(e,r.attr)}}function YK(t,r,e,n,i){var o={from:r,to:e,type:n};return t.edge&&(o.attr=E1({},t.edge)),o.attr=E1(o.attr||{},i),i!=null&&i.hasOwnProperty("arrows")&&i.arrows!=null&&(o.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),o}function nr(){for(ii=Pn.NULL,qe="";gt===" "||gt===" "||gt===` `||gt==="\r";)tn();do{var t=!1;if(gt==="#"){for(var r=$u-1;Js.charAt(r)===" "||Js.charAt(r)===" ";)r--;if(Js.charAt(r)===` `||Js.charAt(r)===""){for(;gt!=""&>!=` `;)tn();t=!0}}if(gt==="/"&&Qc()==="/"){for(;gt!=""&>!=` `;)tn();t=!0}if(gt==="/"&&Qc()==="*"){for(;gt!="";)if(gt==="*"&&Qc()==="/"){tn(),tn();break}else tn();t=!0}for(;gt===" "||gt===" "||gt===` `||gt==="\r";)tn()}while(t);if(gt===""){ii=Pn.DELIMITER;return}var e=gt+Qc();if(zk[e]){ii=Pn.DELIMITER,qe=e,tn(),tn();return}if(zk[gt]){ii=Pn.DELIMITER,qe=gt,tn();return}if(Ek(gt)||gt==="-"){for(qe+=gt,tn();Ek(gt);)qe+=gt,tn();qe==="false"?qe=!1:qe==="true"?qe=!0:isNaN(Number(qe))||(qe=Number(qe)),ii=Pn.IDENTIFIER;return}if(gt==='"'){for(tn();gt!=""&&(gt!='"'||gt==='"'&&Qc()==='"');)gt==='"'?(qe+=gt,tn()):gt==="\\"&&Qc()==="n"?(qe+=` `,tn()):qe+=gt,tn();if(gt!='"')throw Rn('End of string " expected');tn(),ii=Pn.IDENTIFIER;return}for(ii=Pn.UNKNOWN;gt!="";)qe+=gt,tn();throw new SyntaxError('Syntax error in part "'+JK(qe,30)+'"')}function gHe(){var t={};if(lHe(),nr(),qe==="strict"&&(t.strict=!0,nr()),(qe==="graph"||qe==="digraph")&&(t.type=qe,nr()),ii===Pn.IDENTIFIER&&(t.id=qe,nr()),qe!="{")throw Rn("Angle bracket { expected");if(nr(),XK(t),qe!="}")throw Rn("Angle bracket } expected");if(nr(),qe!=="")throw Rn("End of file expected");return nr(),delete t.node,delete t.edge,delete t.graph,t}function XK(t){for(;qe!==""&&qe!="}";)hHe(t),qe===";"&&nr()}function hHe(t){var r=qK(t);if(r){QK(t,r);return}var e=dHe(t);if(!e){if(ii!=Pn.IDENTIFIER)throw Rn("Identifier expected");var n=qe;if(nr(),qe==="="){if(nr(),ii!=Pn.IDENTIFIER)throw Rn("Identifier expected");t[n]=qe,nr()}else fHe(t,n)}}function qK(t){var r=null;if(qe==="subgraph"&&(r={},r.type="subgraph",nr(),ii===Pn.IDENTIFIER&&(r.id=qe,nr())),qe==="{"){if(nr(),r||(r={}),r.parent=t,r.node=t.node,r.edge=t.edge,r.graph=t.graph,XK(r),qe!="}")throw Rn("Angle bracket } expected");nr(),delete r.node,delete r.edge,delete r.graph,delete r.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(r)}return r}function dHe(t){return qe==="node"?(nr(),t.node=Nh(),"node"):qe==="edge"?(nr(),t.edge=Nh(),"edge"):qe==="graph"?(nr(),t.graph=Nh(),"graph"):null}function fHe(t,r){var e={id:r},n=Nh();n&&(e.attr=n),KK(t,e),QK(t,r)}function QK(t,r){for(;qe==="->"||qe==="--";){var e,n=qe;nr();var i=qK(t);if(i)e=i;else{if(ii!=Pn.IDENTIFIER)throw Rn("Identifier or subgraph expected");e=qe,KK(t,{id:e}),nr()}var o=Nh(),a=YK(t,r,e,n,o);uHe(t,a),r=e}}function Nh(){for(var t,r=null,e={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},i=new Array,o=new Array;qe==="[";){for(nr(),r={};qe!==""&&qe!="]";){if(ii!=Pn.IDENTIFIER)throw Rn("Attribute name expected");var a=qe;if(nr(),qe!="=")throw Rn("Equal sign = expected");if(nr(),ii!=Pn.IDENTIFIER)throw Rn("Attribute value expected");var s=qe;a==="style"&&(s=e[s]);var l;a==="arrowhead"&&(l=n[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=n[s],a="arrows",s={from:{enabled:!0,type:l}}),i.push({attr:r,name:a,value:s}),o.push(a),nr(),qe==","&&nr()}if(qe!="]")throw Rn("Bracket ] expected");nr()}if(c1(o).call(o,"dir")){var c={};for(c.arrows={},t=0;t"&&(l.arrows="to"),l};Mt(i=r.edges).call(i,function(a){var s,l;if(a.from instanceof Object?s=a.from.nodes:s={id:a.from},a.to instanceof Object?l=a.to.nodes:l={id:a.to},a.from instanceof Object&&a.from.edges){var c;Mt(c=a.from.edges).call(c,function(g){var h=o(g);e.edges.push(h)})}if(CHe(s,l,function(g,h){var d=YK(e,g.id,h.id,a.type,a.attr),f=o(d);e.edges.push(f)}),a.to instanceof Object&&a.to.edges){var u;Mt(u=a.to.edges).call(u,function(g){var h=o(g);e.edges.push(h)})}})}return r.attr&&(e.options=r.attr),e}function AHe(t,r){var e,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};r!=null&&(r.fixed!=null&&(n.nodes.fixed=r.fixed),r.parseColor!=null&&(n.nodes.parseColor=r.parseColor),r.inheritColor!=null&&(n.edges.inheritColor=r.inheritColor));var i=t.edges,o=Mn(i).call(i,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&n.edges.inheritColor===!1&&(l.color=s.color),l}),a=Mn(e=t.nodes).call(e,function(s){var l={id:s.id,fixed:n.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(n.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:a,edges:o}}var IHe={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"},pHe={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"},mHe={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"},yHe={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"},bHe={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"},wHe={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ó"},$He={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},_He={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},MHe={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},zHe={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"},EHe={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"},SHe=Object.freeze({__proto__:null,cn:_He,cs:EHe,de:pHe,en:IHe,es:mHe,fr:zHe,it:yHe,nl:bHe,pt:wHe,ru:$He,uk:MHe});function THe(t,r){try{var e=r.split(/[-_ /]/,2),n=pt(e,2),i=n[0],o=n[1],a=i!=null?i.toLowerCase():null,s=o!=null?o.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(t,l))return l;var c;console.warn(Sc(c="Unknown variant ".concat(s," of language ")).call(c,a,"."))}if(a){var u=a;if(Object.prototype.hasOwnProperty.call(t,u))return u;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(r,", falling back to English.")),"en"}catch(g){return console.error(g),console.warn("Unexpected error while normalizing locale ".concat(r,", falling back to English.")),"en"}}var LHe=function(){function t(){pe(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return me(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,n=this.image.height;this.width=e,this.height=n;var i=Math.floor(n/2),o=Math.floor(n/4),a=Math.floor(n/8),s=Math.floor(n/16),l=Math.floor(e/2),c=Math.floor(e/4),u=Math.floor(e/8),g=Math.floor(e/16);this.canvas.width=3*c,this.canvas.height=i,this.coordinates=[[0,0,l,i],[l,0,c,o],[l,o,u,a],[5*u,o,g,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),n=this.coordinates[0];e.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var i=1;i2){n*=.5;for(var l=0;n>2&&l=this.NUM_ITERATIONS&&(l=this.NUM_ITERATIONS-1);var c=this.coordinates[l];e.drawImage(this.canvas,c[0],c[1],c[2],c[3],i,o,a,s)}else e.drawImage(this.image,i,o,a,s)}}]),t}(),kHe=function(){function t(r){pe(this,t),this.images={},this.imageBroken={},this.callback=r}return me(t,[{key:"_tryloadBrokenUrl",value:function(e,n,i){if(!(e===void 0||i===void 0)){if(n===void 0){console.warn("No broken url image defined");return}i.image.onerror=function(){console.error("Could not load brokenImage:",n)},i.image.src=n}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,n){var i=this,o=this.images[e];if(o)return o;var a=new LHe;return this.images[e]=a,a.image.onload=function(){i._fixImageCoordinates(a.image),a.init(),i._redrawWithImage(a)},a.image.onerror=function(){console.error("Could not load image:",e),i._tryloadBrokenUrl(e,n,a)},a.image.src=e,a}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),t}(),eY={exports:{}},OHe=yt,xHe=OHe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),HHe=yt,VHe=Pr,PHe=ys,Tk=xHe,F5=Object.isExtensible,RHe=HHe(function(){F5(1)}),DHe=RHe||Tk?function(r){return!VHe(r)||Tk&&PHe(r)==="ArrayBuffer"?!1:F5?F5(r):!0}:F5,NHe=yt,tY=!NHe(function(){return Object.isExtensible(Object.preventExtensions({}))}),BHe=xe,FHe=St,jHe=Sf,UHe=Pr,u$=_r,GHe=mi.f,Lk=xf,WHe=xI,g$=DHe,ZHe=wI,KHe=tY,rY=!1,us=ZHe("meta"),YHe=0,h$=function(t){GHe(t,us,{value:{objectID:"O"+YHe++,weakData:{}}})},XHe=function(t,r){if(!UHe(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!u$(t,us)){if(!g$(t))return"F";if(!r)return"E";h$(t)}return t[us].objectID},qHe=function(t,r){if(!u$(t,us)){if(!g$(t))return!0;if(!r)return!1;h$(t)}return t[us].weakData},QHe=function(t){return KHe&&rY&&g$(t)&&!u$(t,us)&&h$(t),t},JHe=function(){eVe.enable=function(){},rY=!0;var t=Lk.f,r=FHe([].splice),e={};e[us]=1,t(e).length&&(Lk.f=function(n){for(var i=t(n),o=0,a=i.length;og;g++)if(d=A(t[g]),d&&kk(xk,d))return d;return new j5(!1)}c=sVe(t,u)}for(f=o?t.next:c.next;!(C=rVe(f,c)).done;){try{d=A(C.value)}catch(I){Ok(c,"throw",I)}if(typeof d=="object"&&d&&kk(xk,d))return d}return new j5(!1)},uVe=Cr,gVe=TypeError,GI=function(t,r){if(uVe(r,t))return t;throw new gVe("Incorrect invocation")},hVe=xe,dVe=Yt,fVe=UI,CVe=yt,vVe=bs,AVe=Y1,IVe=GI,pVe=$r,mVe=Pr,yVe=_c,bVe=Ec,wVe=mi.f,$Ve=K1.forEach,_Ve=Cn,nY=U1,MVe=nY.set,zVe=nY.getterFor,d$=function(t,r,e){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,o=n?"set":"add",a=dVe[t],s=a&&a.prototype,l={},c;if(!_Ve||!pVe(a)||!(i||s.forEach&&!CVe(function(){new a().entries().next()})))c=e.getConstructor(r,t,n,o),fVe.enable();else{c=r(function(h,d){MVe(IVe(h,u),{type:t,collection:new a}),yVe(d)||AVe(d,h[o],{that:h,AS_ENTRIES:n})});var u=c.prototype,g=zVe(t);$Ve(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(h){var d=h==="add"||h==="set";h in s&&!(i&&h==="clear")&&vVe(u,h,function(f,C){var v=g(this).collection;if(!d&&i&&!mVe(f))return h==="get"?void 0:!1;var A=v[h](f===0?0:f,C);return d?this:A})}),i||wVe(u,"size",{configurable:!0,get:function(){return g(this).collection.size}})}return bVe(c,t,!1,!0),l[t]=c,hVe({global:!0,forced:!0},l),i||e.setStrong(c,t,n),c},EVe=ag,f$=function(t,r,e){for(var n in r)e&&e.unsafe&&t[n]?t[n]=r[n]:EVe(t,n,r[n],e);return t},SVe=Xn,TVe=Uw,LVe=lr,kVe=Cn,Hk=LVe("species"),iY=function(t){var r=SVe(t);kVe&&r&&!r[Hk]&&TVe(r,Hk,{configurable:!0,get:function(){return this}})},OVe=zc,xVe=Uw,Vk=f$,HVe=j1,VVe=GI,PVe=_c,RVe=Y1,DVe=Nw,wC=Bw,NVe=iY,th=Cn,Pk=UI.fastKey,oY=U1,Rk=oY.set,P3=oY.getterFor,aY={getConstructor:function(t,r,e,n){var i=t(function(c,u){VVe(c,o),Rk(c,{type:r,index:OVe(null),first:void 0,last:void 0,size:0}),th||(c.size=0),PVe(u)||RVe(u,c[n],{that:c,AS_ENTRIES:e})}),o=i.prototype,a=P3(r),s=function(c,u,g){var h=a(c),d=l(c,u),f,C;return d?d.value=g:(h.last=d={index:C=Pk(u,!0),key:u,value:g,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=d),f&&(f.next=d),th?h.size++:c.size++,C!=="F"&&(h.index[C]=d)),c},l=function(c,u){var g=a(c),h=Pk(u),d;if(h!=="F")return g.index[h];for(d=g.first;d;d=d.next)if(d.key===u)return d};return Vk(o,{clear:function(){for(var u=this,g=a(u),h=g.index,d=g.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete h[d.index],d=d.next;g.first=g.last=void 0,th?g.size=0:u.size=0},delete:function(c){var u=this,g=a(u),h=l(u,c);if(h){var d=h.next,f=h.previous;delete g.index[h.index],h.removed=!0,f&&(f.next=d),d&&(d.previous=f),g.first===h&&(g.first=d),g.last===h&&(g.last=f),th?g.size--:u.size--}return!!h},forEach:function(u){for(var g=a(this),h=HVe(u,arguments.length>1?arguments[1]:void 0),d;d=d?d.next:g.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),Vk(o,e?{get:function(u){var g=l(this,u);return g&&g.value},set:function(u,g){return s(this,u===0?0:u,g)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),th&&xVe(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,r,e){var n=r+" Iterator",i=P3(r),o=P3(n);DVe(t,r,function(a,s){Rk(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,wC(void 0,!0)):wC(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),NVe(r)}},BVe=d$,FVe=aY;BVe("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},FVe);var jVe=_t,UVe=jVe.Map,GVe=UVe,WVe=GVe,ZVe=WVe,WI=Oe(ZVe),KVe=function(){function t(){pe(this,t),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},Or(this.options,this.defaultOptions)}return me(t,[{key:"setOptions",value:function(e){var n=["useDefaultGroups"];if(e!==void 0){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&zt(n).call(n,i)===-1){var o=e[i];this.add(i,o)}}}},{key:"clear",value:function(){this._groups=new WI,this._groupNames=[]}},{key:"get",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[o]),this._groups.set(e,i)}else{var a=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[a],this._groups.set(e,i)}return i}},{key:"add",value:function(e,n){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,n),n}}]),t}(),YVe=xe;YVe({target:"Number",stat:!0},{isNaN:function(r){return r!==r}});var XVe=_t,qVe=XVe.Number.isNaN,QVe=qVe,JVe=QVe,ePe=JVe,f7=Oe(ePe),tPe=Yt,rPe=tPe.isFinite,nPe=Number.isFinite||function(r){return typeof r=="number"&&rPe(r)},iPe=xe,oPe=nPe;iPe({target:"Number",stat:!0},{isFinite:oPe});var aPe=_t,sPe=aPe.Number.isFinite,lPe=sPe,cPe=lPe,uPe=cPe,El=Oe(uPe),gPe=xe,hPe=K1.some,dPe=cg,fPe=dPe("some");gPe({target:"Array",proto:!0,forced:!fPe},{some:function(r){return hPe(this,r,arguments.length>1?arguments[1]:void 0)}});var CPe=Rr,vPe=CPe("Array").some,APe=Cr,IPe=vPe,R3=Array.prototype,pPe=function(t){var r=t.some;return t===R3||APe(R3,t)&&r===R3.some?IPe:r},mPe=pPe,yPe=mPe,bPe=yPe,sY=Oe(bPe);function Il(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var wPe=lK,$Pe=wPe,_Pe=$Pe,MPe=_Pe,lY=MPe,zPe=Oe(lY),EPe=xe,SPe=NW;EPe({target:"Object",stat:!0},{setPrototypeOf:SPe});var TPe=_t,LPe=TPe.Object.setPrototypeOf,kPe=LPe,OPe=kPe,xPe=OPe,HPe=xPe,VPe=HPe,PPe=VPe,cY=PPe,C7=Oe(cY),RPe=$W,DPe=RPe,NPe=DPe,BPe=NPe,FPe=BPe,C$=Oe(FPe);function v7(t,r){var e;return v7=C7?C$(e=C7).call(e):function(i,o){return i.__proto__=o,i},v7(t,r)}function Tt(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=zPe(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),LI(t,"prototype",{writable:!1}),r&&v7(t,r)}function Dt(t,r){if(r&&(dt(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Il(t)}var jPe=nK,UPe=jPe,GPe=UPe,WPe=GPe,uY=WPe,Dk=Oe(uY);function He(t){var r;return He=C7?C$(r=Dk).call(r):function(n){return n.__proto__||Dk(n)},He(t)}function sr(t,r,e){return r=FZ(r),r in t?LI(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var gY={exports:{}},hY={exports:{}};(function(t){var r=Xw,e=BZ;function n(i){"@babel/helpers - typeof";return t.exports=n=typeof r=="function"&&typeof e=="symbol"?function(o){return typeof o}:function(o){return o&&typeof r=="function"&&o.constructor===r&&o!==r.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(hY);var ZPe=hY.exports,KPe=JZ,YPe=KPe,XPe=YPe,qPe=XPe,QPe=qPe,Nk=_r,JPe=qw,eRe=B1,tRe=mi,rRe=function(t,r,e){for(var n=JPe(r),i=tRe.f,o=eRe.f,a=0;a2&&$Re(i,arguments[2]);var o=[];return MRe(r,TRe,{that:o}),D3(i,"errors",o),i};sA?sA(_u,lA):wRe(_u,lA,{name:!0});var B3=_u.prototype=CY(lA.prototype,{constructor:N3(1,_u),message:N3(1,""),name:N3(1,"AggregateError")});mRe({global:!0,constructor:!0,arity:2},{AggregateError:_u});var LRe=Yt,kRe=ys,Uf=kRe(LRe.process)==="process",ORe=SI,xRe=ig,HRe=TypeError,vY=function(t){if(ORe(t))return t;throw new HRe(xRe(t)+" is not a constructor")},Fk=Qn,VRe=vY,PRe=_c,RRe=lr,DRe=RRe("species"),AY=function(t,r){var e=Fk(t).constructor,n;return e===void 0||PRe(n=Fk(e)[DRe])?r:VRe(n)},NRe=F1,IY=/(?:ipad|iphone|ipod).*applewebkit/i.test(NRe),Pi=Yt,BRe=tg,FRe=j1,jk=$r,jRe=_r,pY=yt,Uk=xW,URe=Lf,Gk=Ow,GRe=cK,WRe=IY,ZRe=Uf,A7=Pi.setImmediate,I7=Pi.clearImmediate,KRe=Pi.process,F3=Pi.Dispatch,YRe=Pi.Function,Wk=Pi.MessageChannel,XRe=Pi.String,j3=0,Bh={},Zk="onreadystatechange",Dd,fl,U3,G3;pY(function(){Dd=Pi.location});var v$=function(t){if(jRe(Bh,t)){var r=Bh[t];delete Bh[t],r()}},W3=function(t){return function(){v$(t)}},Kk=function(t){v$(t.data)},Yk=function(t){Pi.postMessage(XRe(t),Dd.protocol+"//"+Dd.host)};(!A7||!I7)&&(A7=function(r){GRe(arguments.length,1);var e=jk(r)?r:YRe(r),n=URe(arguments,1);return Bh[++j3]=function(){BRe(e,void 0,n)},fl(j3),j3},I7=function(r){delete Bh[r]},ZRe?fl=function(t){KRe.nextTick(W3(t))}:F3&&F3.now?fl=function(t){F3.now(W3(t))}:Wk&&!WRe?(U3=new Wk,G3=U3.port2,U3.port1.onmessage=Kk,fl=FRe(G3.postMessage,G3)):Pi.addEventListener&&jk(Pi.postMessage)&&!Pi.importScripts&&Dd&&Dd.protocol!=="file:"&&!pY(Yk)?(fl=Yk,Pi.addEventListener("message",Kk,!1)):Zk in Gk("script")?fl=function(t){Uk.appendChild(Gk("script"))[Zk]=function(){Uk.removeChild(this),v$(t)}}:fl=function(t){setTimeout(W3(t),0)});var mY={set:A7,clear:I7},yY=function(){this.head=null,this.tail=null};yY.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}};var bY=yY,qRe=F1,QRe=/ipad|iphone|ipod/i.test(qRe)&&typeof Pebble<"u",JRe=F1,eDe=/web0s(?!.*chrome)/i.test(JRe),ac=Yt,Xk=j1,tDe=B1.f,Z3=mY.set,rDe=bY,nDe=IY,iDe=QRe,oDe=eDe,K3=Uf,qk=ac.MutationObserver||ac.WebKitMutationObserver,Qk=ac.document,Jk=ac.process,$C=ac.Promise,eO=tDe(ac,"queueMicrotask"),p7=eO&&eO.value,Jc,Y3,X3,_C,tO;if(!p7){var MC=new rDe,zC=function(){var t,r;for(K3&&(t=Jk.domain)&&t.exit();r=MC.get();)try{r()}catch(e){throw MC.head&&Jc(),e}t&&t.enter()};!nDe&&!K3&&!oDe&&qk&&Qk?(Y3=!0,X3=Qk.createTextNode(""),new qk(zC).observe(X3,{characterData:!0}),Jc=function(){X3.data=Y3=!Y3}):!iDe&&$C&&$C.resolve?(_C=$C.resolve(void 0),_C.constructor=$C,tO=Xk(_C.then,_C),Jc=function(){tO(zC)}):K3?Jc=function(){Jk.nextTick(zC)}:(Z3=Xk(Z3,ac),Jc=function(){Z3(zC)}),p7=function(t){MC.head||Jc(),MC.add(t)}}var aDe=p7,sDe=function(t,r){try{arguments.length===1?console.error(t):console.error(t,r)}catch{}},dg=function(t){try{return{error:!1,value:t()}}catch(r){return{error:!0,value:r}}},lDe=Yt,fg=lDe.Promise,wY=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",cDe=wY,uDe=Uf,gDe=!cDe&&!uDe&&typeof window=="object"&&typeof document=="object",hDe=Yt,Fh=fg,dDe=$r,fDe=IW,CDe=GW,vDe=lr,ADe=gDe,IDe=wY,q3=rg,rO=Fh&&Fh.prototype,pDe=vDe("species"),m7=!1,$Y=dDe(hDe.PromiseRejectionEvent),mDe=fDe("Promise",function(){var t=CDe(Fh),r=t!==String(Fh);if(!r&&q3===66||!(rO.catch&&rO.finally))return!0;if(!q3||q3<51||!/native code/.test(t)){var e=new Fh(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=e.constructor={};if(i[pDe]=n,m7=e.then(function(){})instanceof n,!m7)return!0}return!r&&(ADe||IDe)&&!$Y}),Gf={CONSTRUCTOR:mDe,REJECTION_EVENT:$Y,SUBCLASSING:m7},Ta={},nO=pi,yDe=TypeError,bDe=function(t){var r,e;this.promise=new t(function(n,i){if(r!==void 0||e!==void 0)throw new yDe("Bad Promise constructor");r=n,e=i}),this.resolve=nO(r),this.reject=nO(e)};Ta.f=function(t){return new bDe(t)};var wDe=xe,cA=Uf,S1=Yt,Wf=en,$De=ag,_De=Ec,MDe=iY,zDe=pi,y7=$r,EDe=Pr,SDe=GI,TDe=AY,_Y=mY.set,A$=aDe,LDe=sDe,kDe=dg,ODe=bY,MY=U1,b7=fg,zY=Gf,EY=Ta,ZI="Promise",SY=zY.CONSTRUCTOR,xDe=zY.REJECTION_EVENT,Q3=MY.getterFor(ZI),HDe=MY.set,VDe=b7&&b7.prototype,_2=b7,J3=VDe,TY=S1.TypeError,w7=S1.document,I$=S1.process,$7=EY.f,PDe=$7,RDe=!!(w7&&w7.createEvent&&S1.dispatchEvent),LY="unhandledrejection",DDe="rejectionhandled",iO=0,kY=1,NDe=2,p$=1,OY=2,EC,oO,BDe,xY=function(t){var r;return EDe(t)&&y7(r=t.then)?r:!1},HY=function(t,r){var e=r.value,n=r.state===kY,i=n?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain,l,c,u;try{i?(n||(r.rejection===OY&&jDe(r),r.rejection=p$),i===!0?l=e:(s&&s.enter(),l=i(e),s&&(s.exit(),u=!0)),l===t.promise?a(new TY("Promise-chain cycle")):(c=xY(l))?Wf(c,l,o,a):o(l)):a(e)}catch(g){s&&!u&&s.exit(),a(g)}},VY=function(t,r){t.notified||(t.notified=!0,A$(function(){for(var e=t.reactions,n;n=e.get();)HY(n,t);t.notified=!1,r&&!t.rejection&&FDe(t)}))},PY=function(t,r,e){var n,i;RDe?(n=w7.createEvent("Event"),n.promise=r,n.reason=e,n.initEvent(t,!1,!0),S1.dispatchEvent(n)):n={promise:r,reason:e},!xDe&&(i=S1["on"+t])?i(n):t===LY&&LDe("Unhandled promise rejection",e)},FDe=function(t){Wf(_Y,S1,function(){var r=t.facade,e=t.value,n=aO(t),i;if(n&&(i=kDe(function(){cA?I$.emit("unhandledRejection",e,r):PY(LY,r,e)}),t.rejection=cA||aO(t)?OY:p$,i.error))throw i.value})},aO=function(t){return t.rejection!==p$&&!t.parent},jDe=function(t){Wf(_Y,S1,function(){var r=t.facade;cA?I$.emit("rejectionHandled",r):PY(DDe,r,t.value)})},M2=function(t,r,e){return function(n){t(r,n,e)}},q2=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=NDe,VY(t,!0))},_7=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new TY("Promise can't be resolved itself");var n=xY(r);n?A$(function(){var i={done:!1};try{Wf(n,r,M2(_7,i,t),M2(q2,i,t))}catch(o){q2(i,o,t)}}):(t.value=r,t.state=kY,VY(t,!1))}catch(i){q2({done:!1},i,t)}}};SY&&(_2=function(r){SDe(this,J3),zDe(r),Wf(EC,this);var e=Q3(this);try{r(M2(_7,e),M2(q2,e))}catch(n){q2(e,n)}},J3=_2.prototype,EC=function(r){HDe(this,{type:ZI,done:!1,notified:!1,parent:!1,reactions:new ODe,rejection:!1,state:iO,value:void 0})},EC.prototype=$De(J3,"then",function(r,e){var n=Q3(this),i=$7(TDe(this,_2));return n.parent=!0,i.ok=y7(r)?r:!0,i.fail=y7(e)&&e,i.domain=cA?I$.domain:void 0,n.state===iO?n.reactions.add(i):A$(function(){HY(i,n)}),i.promise}),oO=function(){var t=new EC,r=Q3(t);this.promise=t,this.resolve=M2(_7,r),this.reject=M2(q2,r)},EY.f=$7=function(t){return t===_2||t===BDe?new oO(t):PDe(t)});wDe({global:!0,constructor:!0,wrap:!0,forced:SY},{Promise:_2});_De(_2,ZI,!1,!0);MDe(ZI);var UDe=fg,GDe=QW,WDe=Gf.CONSTRUCTOR,KI=WDe||!GDe(function(t){UDe.all(t).then(void 0,function(){})}),ZDe=xe,KDe=en,YDe=pi,XDe=Ta,qDe=dg,QDe=Y1,JDe=KI;ZDe({target:"Promise",stat:!0,forced:JDe},{all:function(r){var e=this,n=XDe.f(e),i=n.resolve,o=n.reject,a=qDe(function(){var s=YDe(e.resolve),l=[],c=0,u=1;QDe(r,function(g){var h=c++,d=!1;u++,KDe(s,e,g).then(function(f){d||(d=!0,l[h]=f,--u||i(l))},o)}),--u||i(l)});return a.error&&o(a.value),n.promise}});var eNe=xe,tNe=Gf.CONSTRUCTOR,sO=fg;sO&&sO.prototype;eNe({target:"Promise",proto:!0,forced:tNe,real:!0},{catch:function(t){return this.then(void 0,t)}});var rNe=xe,nNe=en,iNe=pi,oNe=Ta,aNe=dg,sNe=Y1,lNe=KI;rNe({target:"Promise",stat:!0,forced:lNe},{race:function(r){var e=this,n=oNe.f(e),i=n.reject,o=aNe(function(){var a=iNe(e.resolve);sNe(r,function(s){nNe(a,e,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var cNe=xe,uNe=en,gNe=Ta,hNe=Gf.CONSTRUCTOR;cNe({target:"Promise",stat:!0,forced:hNe},{reject:function(r){var e=gNe.f(this);return uNe(e.reject,void 0,r),e.promise}});var dNe=Qn,fNe=Pr,CNe=Ta,RY=function(t,r){if(dNe(t),fNe(r)&&r.constructor===t)return r;var e=CNe.f(t),n=e.resolve;return n(r),e.promise},vNe=xe,ANe=Xn,INe=i8e,pNe=fg,mNe=Gf.CONSTRUCTOR,yNe=RY,bNe=ANe("Promise"),wNe=!mNe;vNe({target:"Promise",stat:!0,forced:INe},{resolve:function(r){return yNe(wNe&&this===bNe?pNe:this,r)}});var $Ne=xe,_Ne=en,MNe=pi,zNe=Ta,ENe=dg,SNe=Y1,TNe=KI;$Ne({target:"Promise",stat:!0,forced:TNe},{allSettled:function(r){var e=this,n=zNe.f(e),i=n.resolve,o=n.reject,a=ENe(function(){var s=MNe(e.resolve),l=[],c=0,u=1;SNe(r,function(g){var h=c++,d=!1;u++,_Ne(s,e,g).then(function(f){d||(d=!0,l[h]={status:"fulfilled",value:f},--u||i(l))},function(f){d||(d=!0,l[h]={status:"rejected",reason:f},--u||i(l))})}),--u||i(l)});return a.error&&o(a.value),n.promise}});var LNe=xe,kNe=en,ONe=pi,xNe=Xn,HNe=Ta,VNe=dg,PNe=Y1,RNe=KI,lO="No one promise resolved";LNe({target:"Promise",stat:!0,forced:RNe},{any:function(r){var e=this,n=xNe("AggregateError"),i=HNe.f(e),o=i.resolve,a=i.reject,s=VNe(function(){var l=ONe(e.resolve),c=[],u=0,g=1,h=!1;PNe(r,function(d){var f=u++,C=!1;g++,kNe(l,e,d).then(function(v){C||h||(h=!0,o(v))},function(v){C||h||(C=!0,c[f]=v,--g||a(new n(c,lO)))})}),--g||a(new n(c,lO))});return s.error&&a(s.value),i.promise}});var DNe=xe,M7=fg,NNe=yt,BNe=Xn,FNe=$r,jNe=AY,cO=RY,UNe=M7&&M7.prototype,GNe=!!M7&&NNe(function(){UNe.finally.call({then:function(){}},function(){})});DNe({target:"Promise",proto:!0,real:!0,forced:GNe},{finally:function(t){var r=jNe(this,BNe("Promise")),e=FNe(t);return this.then(e?function(n){return cO(r,t()).then(function(){return n})}:t,e?function(n){return cO(r,t()).then(function(){throw n})}:t)}});var WNe=_t,ZNe=WNe.Promise,KNe=ZNe,YNe=KNe,XNe=xe,qNe=Ta;XNe({target:"Promise",stat:!0},{withResolvers:function(){var r=qNe.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var QNe=YNe,JNe=QNe,eBe=xe,tBe=Ta,rBe=dg;eBe({target:"Promise",stat:!0,forced:!0},{try:function(t){var r=tBe.f(this),e=rBe(t);return(e.error?r.reject:r.resolve)(e.value),r.promise}});var nBe=JNe,iBe=nBe,oBe=iBe,aBe=eK,sBe=aBe,lBe=sBe,cBe=lBe,uBe=cBe;(function(t){var r=ZPe.default,e=sZ,n=Xw,i=lY,o=uY,a=QPe,s=WZ,l=cY,c=oBe,u=uBe,g=KZ;function h(){t.exports=h=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var d,f={},C=Object.prototype,v=C.hasOwnProperty,A=e||function(V,x,B){V[x]=B.value},I=typeof n=="function"?n:{},p=I.iterator||"@@iterator",m=I.asyncIterator||"@@asyncIterator",b=I.toStringTag||"@@toStringTag";function _(V,x,B){return e(V,x,{value:B,enumerable:!0,configurable:!0,writable:!0}),V[x]}try{_({},"")}catch{_=function(B,q,z){return B[q]=z}}function S(V,x,B,q){var z=x&&x.prototype instanceof N?x:N,$=i(z.prototype),O=new X(q||[]);return A($,"_invoke",{value:Ne(V,B,O)}),$}function E(V,x,B){try{return{type:"normal",arg:V.call(x,B)}}catch(q){return{type:"throw",arg:q}}}f.wrap=S;var T="suspendedStart",L="suspendedYield",H="executing",P="completed",R={};function N(){}function U(){}function F(){}var K={};_(K,p,function(){return this});var te=o,Me=te&&te(te(ae([])));Me&&Me!==C&&v.call(Me,p)&&(K=Me);var Ye=F.prototype=N.prototype=i(K);function De(V){var x;a(x=["next","throw","return"]).call(x,function(B){_(V,B,function(q){return this._invoke(B,q)})})}function we(V,x){function B(z,$,O,W){var Z=E(V[z],V,$);if(Z.type!=="throw"){var ee=Z.arg,ue=ee.value;return ue&&r(ue)=="object"&&v.call(ue,"__await")?x.resolve(ue.__await).then(function(ge){B("next",ge,O,W)},function(ge){B("throw",ge,O,W)}):x.resolve(ue).then(function(ge){ee.value=ge,O(ee)},function(ge){return B("throw",ge,O,W)})}W(Z.arg)}var q;A(this,"_invoke",{value:function($,O){function W(){return new x(function(Z,ee){B($,O,Z,ee)})}return q=q?q.then(W,W):W()}})}function Ne(V,x,B){var q=T;return function(z,$){if(q===H)throw new Error("Generator is already running");if(q===P){if(z==="throw")throw $;return{value:d,done:!0}}for(B.method=z,B.arg=$;;){var O=B.delegate;if(O){var W=Ue(O,B);if(W){if(W===R)continue;return W}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(q===T)throw q=P,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);q=H;var Z=E(V,x,B);if(Z.type==="normal"){if(q=B.done?P:L,Z.arg===R)continue;return{value:Z.arg,done:B.done}}Z.type==="throw"&&(q=P,B.method="throw",B.arg=Z.arg)}}}function Ue(V,x){var B=x.method,q=V.iterator[B];if(q===d)return x.delegate=null,B==="throw"&&V.iterator.return&&(x.method="return",x.arg=d,Ue(V,x),x.method==="throw")||B!=="return"&&(x.method="throw",x.arg=new TypeError("The iterator does not provide a '"+B+"' method")),R;var z=E(q,V.iterator,x.arg);if(z.type==="throw")return x.method="throw",x.arg=z.arg,x.delegate=null,R;var $=z.arg;return $?$.done?(x[V.resultName]=$.value,x.next=V.nextLoc,x.method!=="return"&&(x.method="next",x.arg=d),x.delegate=null,R):$:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,R)}function ot(V){var x,B={tryLoc:V[0]};1 in V&&(B.catchLoc=V[1]),2 in V&&(B.finallyLoc=V[2],B.afterLoc=V[3]),s(x=this.tryEntries).call(x,B)}function ft(V){var x=V.completion||{};x.type="normal",delete x.arg,V.completion=x}function X(V){this.tryEntries=[{tryLoc:"root"}],a(V).call(V,ot,this),this.reset(!0)}function ae(V){if(V||V===""){var x=V[p];if(x)return x.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var B=-1,q=function z(){for(;++B=0;--z){var $=this.tryEntries[z],O=$.completion;if($.tryLoc==="root")return q("end");if($.tryLoc<=this.prev){var W=v.call($,"catchLoc"),Z=v.call($,"finallyLoc");if(W&&Z){if(this.prev<$.catchLoc)return q($.catchLoc,!0);if(this.prev<$.finallyLoc)return q($.finallyLoc)}else if(W){if(this.prev<$.catchLoc)return q($.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return q($.finallyLoc)}}}},abrupt:function(x,B){for(var q=this.tryEntries.length-1;q>=0;--q){var z=this.tryEntries[q];if(z.tryLoc<=this.prev&&v.call(z,"finallyLoc")&&this.prev=0;--B){var q=this.tryEntries[B];if(q.finallyLoc===x)return this.complete(q.completion,q.afterLoc),ft(q),R}},catch:function(x){for(var B=this.tryEntries.length-1;B>=0;--B){var q=this.tryEntries[B];if(q.tryLoc===x){var z=q.completion;if(z.type==="throw"){var $=z.arg;ft(q)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(x,B,q){return this.delegate={iterator:ae(x),resultName:B,nextLoc:q},this.method==="next"&&(this.arg=d),R}},f}t.exports=h,t.exports.__esModule=!0,t.exports.default=t.exports})(gY);var gBe=gY.exports,U5=gBe(),hBe=U5;try{regeneratorRuntime=U5}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=U5:Function("r","regeneratorRuntime = r")(U5)}var ti=Oe(hBe),dBe=pi,fBe=qn,CBe=bI,vBe=yi,ABe=TypeError,uO=function(t){return function(r,e,n,i){dBe(e);var o=fBe(r),a=CBe(o),s=vBe(o),l=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=c;break}if(l+=c,t?l<0:s<=l)throw new ABe("Reduce of empty array with no initial value")}for(;t?l>=0:s>l;l+=c)l in a&&(i=e(i,a[l],l,o));return i}},IBe={left:uO(!1),right:uO(!0)},pBe=xe,mBe=IBe.left,yBe=cg,gO=rg,bBe=Uf,wBe=!bBe&&gO>79&&gO<83,$Be=wBe||!yBe("reduce");pBe({target:"Array",proto:!0,forced:$Be},{reduce:function(r){var e=arguments.length;return mBe(this,r,e,e>1?arguments[1]:void 0)}});var _Be=Rr,MBe=_Be("Array").reduce,zBe=Cr,EBe=MBe,em=Array.prototype,SBe=function(t){var r=t.reduce;return t===em||zBe(em,t)&&r===em.reduce?EBe:r},TBe=SBe,LBe=TBe,kBe=LBe,m$=Oe(kBe),OBe=Z1,xBe=yi,HBe=kI,VBe=j1,DY=function(t,r,e,n,i,o,a,s){for(var l=i,c=0,u=a?VBe(a,s):!1,g,h;c0&&OBe(g)?(h=xBe(g),l=DY(t,r,g,h,l,o-1)-1):(HBe(l+1),t[l]=g),l++),c++;return l},PBe=DY,RBe=xe,DBe=PBe,NBe=pi,BBe=qn,FBe=yi,jBe=OI;RBe({target:"Array",proto:!0},{flatMap:function(r){var e=BBe(this),n=FBe(e),i;return NBe(r),i=jBe(e,0),i.length=DBe(i,e,e,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}});var UBe=Rr;UBe("Array").flatMap;var GBe=d$,WBe=aY;GBe("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},WBe);var ZBe=_t,KBe=ZBe.Set,YBe=KBe,XBe=YBe,qBe=XBe,na=Oe(qBe),QBe=NZ,Q2=Oe(QBe),JBe=jw,eFe=JBe,tFe=eFe,rFe=tFe,nFe=rFe,iFe=nFe,oFe=iFe,aFe=oFe,sFe=aFe,lFe=sFe,tm=Oe(lFe),hO=cZ,cFe=Math.floor,z7=function(t,r){var e=t.length,n=cFe(e/2);return e<8?uFe(t,r):gFe(t,z7(hO(t,0,n),r),z7(hO(t,n),r),r)},uFe=function(t,r){for(var e=t.length,n=1,i,o;n0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},gFe=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a3)){if(_Fe)return!0;if(pO)return pO<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)e1.push({k:e+i,v:n})}for(e1.sort(function(o,a){return a.v-o.v}),i=0;ivO(e)?1:-1}};pFe({target:"Array",proto:!0,forced:TFe},{sort:function(r){r!==void 0&&mFe(r);var e=yFe(this);if(BY)return r===void 0?mO(e):mO(e,r);var n=[],i=CO(e),o,a;for(a=0;aa;)l=n(e,s=i[a++]),l!==void 0&&Qje(o,s,l);return o}});var Jje=_t,eUe=Jje.Object.getOwnPropertyDescriptors,tUe=eUe,rUe=tUe,nUe=rUe,za=Oe(nUe),XY={exports:{}},iUe=xe,oUe=Cn,$O=EI.f;iUe({target:"Object",stat:!0,forced:Object.defineProperties!==$O,sham:!oUe},{defineProperties:$O});var aUe=_t,qY=aUe.Object,sUe=XY.exports=function(r,e){return qY.defineProperties(r,e)};qY.defineProperties.sham&&(sUe.sham=!0);var lUe=XY.exports,cUe=lUe,uUe=cUe,gUe=uUe,Kf=Oe(gUe);let SC;const hUe=new Uint8Array(16);function dUe(){if(!SC&&(SC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!SC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return SC(hUe)}const wn=[];for(let t=0;t<256;++t)wn.push((t+256).toString(16).slice(1));function fUe(t,r=0){return wn[t[r+0]]+wn[t[r+1]]+wn[t[r+2]]+wn[t[r+3]]+"-"+wn[t[r+4]]+wn[t[r+5]]+"-"+wn[t[r+6]]+wn[t[r+7]]+"-"+wn[t[r+8]]+wn[t[r+9]]+"-"+wn[t[r+10]]+wn[t[r+11]]+wn[t[r+12]]+wn[t[r+13]]+wn[t[r+14]]+wn[t[r+15]]}const CUe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var _O={randomUUID:CUe};function J2(t,r,e){if(_O.randomUUID&&!r&&!t)return _O.randomUUID();t=t||{};const n=t.random||(t.rng||dUe)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,fUe(n)}var QY;function MO(t,r){var e=ar(t);if(Ma){var n=Ma(t);r&&(n=jr(n).call(n,function(i){return La(t,i).enumerable})),e.push.apply(e,n)}return e}function zO(t){for(var r=1;r"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}function Li(t,r){var e=typeof $s<"u"&&W1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=IUe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function IUe(t,r){var e;if(t){if(typeof t=="string")return EO(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return G1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EO(t,r)}}function EO(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);ethis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=Ho(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,n;Mt(e=Ca(n=this._queue).call(n,0)).call(e,function(i){i.fn.apply(i.context||i.fn,i.args||[])})}}],[{key:"extend",value:function(e,n){var i=new t(n);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var a=0;aa&&(a=u,o=c)}return o}},{key:"min",value:function(e){var n=tm(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],a=e(i.value[1],i.value[0]);!(i=n.next()).done;){var s=pt(i.value,2),l=s[0],c=s[1],u=e(c,l);uu?1:cs)&&(a=u,s=g)}}catch(h){l.e(h)}finally{l.f()}return a||null}},{key:"min",value:function(i){var o,a=null,s=null,l=Li(uA(o=this._data).call(o)),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=u[i];typeof g=="number"&&(s==null||gr.x&&t.topr.y}function hA(t){return typeof t=="string"&&t!==""}function rX(t,r,e,n){var i=n.x,o=n.y;if(typeof n.distanceToBorder=="function"){var a=n.distanceToBorder(t,r),s=Math.sin(r)*a,l=Math.cos(r)*a;l===a?(i+=a,o=n.y):s===a?(i=n.x,o-=a):(i+=l,o-=s)}else n.shape.width>n.shape.height?(i=n.x+n.shape.width*.5,o=n.y-e):(i=n.x+e,o=n.y-n.shape.height*.5);return{x:i,y:o}}var KUe=function(){function t(r){pe(this,t),this.measureText=r,this.current=0,this.width=0,this.height=0,this.lines=[]}return me(t,[{key:"_add",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var a=this.measureText(o,i),s=Or({},uA(a));s.text=n,s.width=a.width,s.mod=i,(n===void 0||n==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n)}},{key:"newLine",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=o.width),n+=o.height}this.width=e,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var e=[],n=0;n"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},xO=function(){function t(r){pe(this,t),this.text=r,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return me(t,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){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"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,n){return!this.mono&&!this[e]&&this.match(n)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.prepareRegExp(e),o=pt(i,2),a=o[0],s=o[1],l=a.test(this.text.substr(this.position,s));return l&&n&&(this.position+=s-1),l}},{key:"parseEndTag",value:function(e,n,i){var o=this.mod()===e;return e==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,n){return this.match(e)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var n,i;if(e instanceof RegExp)i=e,n=1;else{var o=YUe[e];o!==void 0?i=o:i=new RegExp(e),n=e.length}return[i,n]}}]),t}(),XUe=function(){function t(r,e,n,i){var o=this;pe(this,t),this.ctx=r,this.parent=e,this.selected=n,this.hover=i;var a=function(l,c){if(l===void 0)return 0;var u=o.parent.getFormattingValues(r,n,i,c),g=0;if(l!==""){var h=o.ctx.measureText(l);g=h.width}return{width:g,values:u}};this.lines=new KUe(a)}return me(t,[{key:"process",value:function(e){if(!hA(e))return this.lines.finalize();var n=this.parent.fontOptions;e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `);var i=String(e).split(` `),o=i.length;if(n.multi)for(var a=0;a0)for(var l=0;l0)for(var f=0;f")||n.parseStartTag("ital","")||n.parseStartTag("mono","")||n.parseEndTag("bold","")||n.parseEndTag("ital","")||n.parseEndTag("mono",""))||i(o);a||n.add(o),n.position++}return n.emitBlock(),n.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var n=this,i=new xO(e),o=!0,a=function(u){return/\\/.test(u)?(i.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var n="",i=0;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,n),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=e.split("\r");o.length>0;){var a=this.getLongestFit(o);if(a===0){var s=o[0],l=this.getLongestFitWord(s);this.lines.newLine(qr(s).call(s,0,l),n),o[0]=qr(s).call(s,l)}else{var c=a;o[a-1]===" "?a--:o[c]===" "&&c++;var u=qr(o).call(o,0,a).join("");a==o.length&&i?this.lines.append(u,n):this.lines.newLine(u,n),o=qr(o).call(o,c)}}}}]),t}(),rh=["bold","ital","boldital","mono"],nX=function(){function t(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;pe(this,t),this.body=r,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return me(t,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),hA(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(dt(e.font)==="object"){var n=e.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(e){var n=this;if(Ct(rh,function(i){n.fontOptions[i]={}}),t.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}Ct(e,function(i,o){i!=null&&dt(i)!=="object"&&(n.fontOptions[o]=i)})}},{key:"constrain",value:function(e){var n={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=Zs(e,"widthConstraint");if(typeof i=="number")n.maxWdt=Number(i),n.minWdt=Number(i);else if(dt(i)==="object"){var o=Zs(e,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var a=Zs(e,["widthConstraint","minimum"]);typeof a=="number"&&(n.minWdt=Number(a))}var s=Zs(e,"heightConstraint");if(typeof s=="number")n.minHgt=Number(s);else if(dt(s)==="object"){var l=Zs(e,["heightConstraint","minimum"]);typeof l=="number"&&(n.minHgt=Number(l));var c=Zs(e,["heightConstraint","valign"]);typeof c=="string"&&(c==="top"||c==="bottom")&&(n.valign=c)}return n}},{key:"update",value:function(e,n){this.setOptions(e,!0),this.propagateFonts(n),tr(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=w$("label",n)}},{key:"adjustSizes",value:function(e){var n=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=n,this.fontOptions.minWdt-=n);var i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(e,n){for(var i=0;i5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var l=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&l=this.elementOptions.scaling.label.maxVisible&&(l=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,o,a,n,i,s),this._drawBackground(e),this._drawText(e,n,this.size.yLine,s,l))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var n=this.getSize();e.fillRect(n.left,n.top,n.width,n.height)}}},{key:"_drawText",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",a=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(e,n,i,o),l=pt(s,2);n=l[0],i=l[1],e.textAlign="left",n=n-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(var c=0;c0&&(e.lineWidth=d.strokeWidth,e.strokeStyle=A,e.lineJoin="round"),e.fillStyle=v,d.strokeWidth>0&&e.strokeText(d.text,n+g,i+d.vadjust),e.fillText(d.text,n+g,i+d.vadjust),g+=d.width}i+=u.height}}}},{key:"_setAlignment",value:function(e,n,i,o){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){n=0,i=0;var a=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*a):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*a):e.textBaseline="middle"}else e.textBaseline=o;return[n,i]}},{key:"_getColor",value:function(e,n,i){var o=e||"#000000",a=i||"#ffffff";if(n<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-n)));o=ro(o,s),a=ro(a,s)}return[o,a]}},{key:"getTextSize",value:function(e){var n=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,n,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,n=this.size.left,i=this.size.top-.5*e;if(this.isEdgeLabel){var o=-this.size.width*.5;switch(this.fontOptions.align){case"middle":n=o,i=-this.size.height*.5;break;case"top":n=o,i=-(this.size.height+e);break;case"bottom":n=o,i=e;break}}var a={left:n,top:i,width:this.size.width,height:this.size.height};return a}},{key:"calculateLabelSize",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,n,i),this.size.left=o-this.size.width*.5,this.size.top=a-this.size.height*.5,this.size.yLine=a+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,n,i,o){var a=function(u,g,h){return g==="normal"?h==="mod"?"":u[h]:u[g][h]!==void 0?u[g][h]:u[h]},s={color:a(this.fontOptions,o,"color"),size:a(this.fontOptions,o,"size"),face:a(this.fontOptions,o,"face"),mod:a(this.fontOptions,o,"mod"),vadjust:a(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(n||i)&&(o==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,n,i));var l="";return s.mod!==void 0&&s.mod!==""&&(l+=s.mod+" "),l+=s.size+"px "+s.face,e.font=l.replace(/"/g,""),s.font=e.font,s.height=s.size,s}},{key:"differentState",value:function(e,n){return e!==this.selectedState||n!==this.hoverState}},{key:"_processLabelText",value:function(e,n,i,o){var a=new XUe(e,this,n,i);return a.process(o)}},{key:"_processLabel",value:function(e,n,i){if(!(this.labelDirty===!1&&!this.differentState(n,i))){var o=this._processLabelText(e,n,i,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width0&&o.height0&&(this.enableBorderDashes(e,n),e.stroke(),this.disableBorderDashes(e,n)),e.restore()}},{key:"performFill",value:function(e,n){e.save(),e.fillStyle=n.color,this.enableShadow(e,n),Rf(e).call(e),this.disableShadow(e,n),e.restore(),this.performStroke(e,n)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,n,i,o,a){i!==void 0&&this.resize(i,o,a),this.left=e-this.width/2,this.top=n-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}},{key:"updateBoundingBox",value:function(e,n,i,o,a){this._updateBoundingBox(e,n,i,o,a)}},{key:"getDimensionsFromLabel",value:function(e,n,i){this.textSize=this.labelModule.getTextSize(e,n,i);var o=this.textSize.width,a=this.textSize.height,s=14;return o===0&&(o=s,a=s),{width:o,height:a}}}]),t}();function qUe(t){var r=QUe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function QUe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var JUe=function(t){Tt(e,t);var r=qUe(e);function e(n,i,o){var a;return pe(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return me(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,c),_W(i,this.left,this.top,this.width,this.height,c.borderRadius),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"updateBoundingBox",value:function(i,o,a,s,l){this._updateBoundingBox(i,o,a,s,l);var c=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(c)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(o)),Math.abs(this.height/2/Math.sin(o)))+a}}]),e}(Lc);function eGe(t){var r=tGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function tGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var $$=function(t){Tt(e,t);var r=eGe(e);function e(n,i,o){var a;return pe(this,e),a=r.call(this,n,i,o),a.labelOffset=0,a.selected=!1,a}return me(e,[{key:"setOptions",value:function(i,o,a){this.options=i,o===void 0&&a===void 0||this.setImages(o,a)}},{key:"setImages",value:function(i,o){o&&this.selected?(this.imageObj=o,this.imageObjAlt=i):(this.imageObj=i,this.imageObjAlt=o)}},{key:"switchImages",value:function(i){var o=i&&!this.selected||!i&&this.selected;if(this.selected=i,this.imageObjAlt!==void 0&&o){var a=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=a}}},{key:"_getImagePadding",value:function(){var i={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var o=this.options.imagePadding;dt(o)=="object"?(i.top=o.top,i.right=o.right,i.bottom=o.bottom,i.left=o.left):(i.top=o,i.right=o,i.bottom=o,i.left=o)}return i}},{key:"_resizeImage",value:function(){var i,o;if(this.options.shapeProperties.useImageSize===!1){var a=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?a=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),i=this.options.size*2*a,o=this.options.size*2*s}else{var l=this._getImagePadding();i=this.imageObj.width+l.left+l.right,o=this.imageObj.height+l.top+l.bottom}this.width=i,this.height=o,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(i,o,a,s){this.initContextForDraw(i,s),Vw(i,o,a,s.size),this.performFill(i,s)}},{key:"_drawImageAtPosition",value:function(i,o){if(this.imageObj.width!=0){i.globalAlpha=o.opacity!==void 0?o.opacity:1,this.enableShadow(i,o);var a=1;this.options.shapeProperties.interpolation===!0&&(a=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),l=this.left+s.left,c=this.top+s.top,u=this.width-s.left-s.right,g=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(i,a,l,c,u,g),this.disableShadow(i,o)}}},{key:"_drawImageLabel",value:function(i,o,a,s,l){var c=0;if(this.height!==void 0){c=this.height*.5;var u=this.labelModule.getTextSize(i,s,l);u.lineCount>=1&&(c+=u.height/2)}var g=a+c;this.options.label&&(this.labelOffset=c),this.labelModule.draw(i,o,g,s,l,"hanging")}}]),e}(Lc);function rGe(t){var r=nGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function nGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var iGe=function(t){Tt(e,t);var r=rGe(e);function e(n,i,o){var a;return pe(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return me(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=l/2,this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this._drawRawCircle(i,o,a,c),this.updateBoundingBox(o,a),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,a,s,l)}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}($$);function oGe(t){var r=aGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function aGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var sGe=function(t){Tt(e,t);var r=oGe(e);function e(n,i,o,a,s){var l;return pe(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return me(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l,this.radius=.5*this.width;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,c){this.switchImages(s),this.resize();var u=o,g=a;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,g+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this._drawRawCircle(i,u,g,c),i.save(),i.clip(),this._drawImageAtPosition(i,c),i.restore(),this._drawImageLabel(i,u,g,s,l),this.updateBoundingBox(o,a)}},{key:"updateBoundingBox",value:function(i,o){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=o,this.boundingBox.left=i,this.boundingBox.right=i+this.options.size*2,this.boundingBox.bottom=o+this.options.size*2):(this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+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)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}($$);function lGe(t){var r=cGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function cGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var X1=function(t){Tt(e,t);var r=lGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(o,a)){var l,c;this.labelModule.getTextSize(i,o,a);var u=2*s.size;this.width=(l=this.customSizeWidth)!==null&&l!==void 0?l:u,this.height=(c=this.customSizeHeight)!==null&&c!==void 0?c:u,this.radius=.5*this.width}}},{key:"_drawShape",value:function(i,o,a,s,l,c,u,g){var h=this;return this.resize(i,c,u,g),this.left=s-this.width/2,this.top=l-this.height/2,this.initContextForDraw(i,g),zye(o)(i,s,l,g.size),this.performFill(i,g),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(i.font=(c?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",i.fillText(this.options.icon.code,s,l)),{drawExternalLabel:function(){if(h.options.label!==void 0){h.labelModule.calculateLabelSize(i,c,u,s,l,"hanging");var f=l+.5*h.height+.5*h.labelModule.size.height;h.labelModule.draw(i,s,f,c,u,"hanging")}h.updateBoundingBox(s,l)}}}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+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))}}]),e}(Lc);function HO(t,r){var e=ar(t);if(Ma){var n=Ma(t);r&&(n=jr(n).call(n,function(i){return La(t,i).enumerable})),e.push.apply(e,n)}return e}function uGe(t){for(var r=1;r"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var dGe=function(t){Tt(e,t);var r=gGe(e);function e(n,i,o,a){var s;return pe(this,e),s=r.call(this,n,i,o,a),s.ctxRenderer=a,s}return me(e,[{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l,c),this.left=o-this.width/2,this.top=a-this.height/2,i.save();var u=this.ctxRenderer({ctx:i,id:this.options.id,x:o,y:a,state:{selected:s,hover:l},style:uGe({},c),label:this.options.label});if(u.drawNode!=null&&u.drawNode(),i.restore(),u.drawExternalLabel){var g=u.drawExternalLabel;u.drawExternalLabel=function(){i.save(),g(),i.restore()}}return u.nodeDimensions&&(this.customSizeWidth=u.nodeDimensions.width,this.customSizeHeight=u.nodeDimensions.height),u}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(X1);function fGe(t){var r=CGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function CGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var vGe=function(t){Tt(e,t);var r=fGe(e);function e(n,i,o){var a;return pe(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return me(e,[{key:"resize",value:function(i,o,a){if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=s.width+this.margin.right+this.margin.left;this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,c),MW(i,o-this.width/2,a-this.height/2,this.width,this.height),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Lc);function AGe(t){var r=IGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function IGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var pGe=function(t){Tt(e,t);var r=AGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"diamond",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(X1);function mGe(t){var r=yGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function yGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var bGe=function(t){Tt(e,t);var r=mGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"circle",2,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.options.size}}]),e}(X1);function wGe(t){var r=$Ge();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function $Ge(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var VO=function(t){Tt(e,t);var r=wGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width*.5,this.top=a-this.height*.5,this.initContextForDraw(i,c),U8(i,this.left,this.top,this.width,this.height),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,o,a,s,l)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.width*.5,s=this.height*.5,l=Math.sin(o)*a,c=Math.cos(o)*s;return a*s/Math.sqrt(l*l+c*c)}}]),e}(Lc);function _Ge(t){var r=MGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function MGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var zGe=function(t){Tt(e,t);var r=_Ge(e);function e(n,i,o){var a;return pe(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return me(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(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)}},{key:"draw",value:function(i,o,a,s,l,c){var u=this;return this.resize(i,s,l),this.options.icon.size=this.options.icon.size||50,this.left=o-this.width/2,this.top=a-this.height/2,this._icon(i,o,a,s,l,c),{drawExternalLabel:function(){if(u.options.label!==void 0){var h=5;u.labelModule.draw(i,u.left+u.iconSize.width/2+u.margin.left,a+u.height/2+h,s)}u.updateBoundingBox(o,a)}}}},{key:"updateBoundingBox",value:function(i,o){if(this.boundingBox.top=o-this.options.icon.size*.5,this.boundingBox.left=i-this.options.icon.size*.5,this.boundingBox.right=i+this.options.icon.size*.5,this.boundingBox.bottom=o+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var a=5;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+a)}}},{key:"_icon",value:function(i,o,a,s,l,c){var u=Number(this.options.icon.size);this.options.icon.code!==void 0?(i.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+u+"px",this.options.icon.face].join(" "),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",this.enableShadow(i,c),i.fillText(this.options.icon.code,o,a),this.disableShadow(i,c)):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.")}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Lc);function EGe(t){var r=SGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function SGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var TGe=function(t){Tt(e,t);var r=EGe(e);function e(n,i,o,a,s){var l;return pe(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return me(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,c){i.save(),this.switchImages(s),this.resize();var u=o,g=a;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,g+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var h=this.options.borderWidth,d=this.options.borderWidthSelected||2*this.options.borderWidth,f=(s?d:h)/this.body.view.scale;i.lineWidth=Math.min(this.width,f),i.beginPath();var C=s?this.options.color.highlight.border:l?this.options.color.hover.border:this.options.color.border,v=s?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background;c.opacity!==void 0&&(C=ro(C,c.opacity),v=ro(v,c.opacity)),i.strokeStyle=C,i.fillStyle=v,i.rect(this.left-.5*i.lineWidth,this.top-.5*i.lineWidth,this.width+i.lineWidth,this.height+i.lineWidth),Rf(i).call(i),this.performStroke(i,c),i.closePath()}this._drawImageAtPosition(i,c),this._drawImageLabel(i,u,g,s,l),this.updateBoundingBox(o,a),i.restore()}},{key:"updateBoundingBox",value:function(i,o){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=o):(this.left=i-this.width/2,this.top=o-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))}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}($$);function LGe(t){var r=kGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function kGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var OGe=function(t){Tt(e,t);var r=LGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"square",2,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(X1);function xGe(t){var r=HGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function HGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var VGe=function(t){Tt(e,t);var r=xGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"hexagon",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(X1);function PGe(t){var r=RGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function RGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var DGe=function(t){Tt(e,t);var r=PGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"star",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(X1);function NGe(t){var r=BGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function BGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var FGe=function(t){Tt(e,t);var r=NGe(e);function e(n,i,o){var a;return pe(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return me(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.textSize=this.labelModule.getTextSize(i,o,a),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)}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.enableShadow(i,c),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l),this.disableShadow(i,c),this.updateBoundingBox(o,a,i,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Lc);function jGe(t){var r=UGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function UGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var GGe=function(t){Tt(e,t);var r=jGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"triangle",3,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(X1);function WGe(t){var r=ZGe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function ZGe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var KGe=function(t){Tt(e,t);var r=WGe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"triangleDown",3,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(X1);function PO(t,r){var e=ar(t);if(Ma){var n=Ma(t);r&&(n=jr(n).call(n,function(i){return La(t,i).enumerable})),e.push.apply(e,n)}return e}function RO(t){for(var r=1;re.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,n,i){var o;if(i!==void 0){var a=e.group;if(n!==void 0&&n.group!==void 0&&a!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof a=="number"||typeof a=="string"&&a!="";if(s){var l=i.get(a);l.opacity!==void 0&&n.opacity===void 0&&(t.checkOpacity(l.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+l.opacity),l.opacity=void 0));var c=jr(o=ZUe(n)).call(o,function(u){return n[u]!=null});c.push("font"),oA(c,e,l),e.color=u7(e.color)}}}},{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(oA(s,e,n,i),t.checkMass(n),e.opacity!==void 0&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),n.opacity!==void 0&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),eo(e,n,"shadow",o),n.color!==void 0&&n.color!==null){var l=u7(n.color);FK(e.color,l)}else i===!0&&n.color===null&&(e.color=h1(o.color));n.fixed!==void 0&&n.fixed!==null&&(typeof n.fixed=="boolean"?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(n.fixed.x!==void 0&&typeof n.fixed.x=="boolean"&&(e.fixed.x=n.fixed.x),n.fixed.y!==void 0&&typeof n.fixed.y=="boolean"&&(e.fixed.y=n.fixed.y))),i===!0&&n.font===null&&(e.font=h1(o.font)),t.updateGroupOptions(e,n,a),n.scaling!==void 0&&eo(e.scaling,n.scaling,"label",o.scaling)}},{key:"checkMass",value:function(e,n){if(e.mass!==void 0&&e.mass<=0){var i="";n!==void 0&&(i=" in node id: "+n),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",WK),e.mass=1}}}]),t}();function YGe(t,r){var e=typeof $s<"u"&&W1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=XGe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function XGe(t,r){var e;if(t){if(typeof t=="string")return DO(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return G1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DO(t,r)}}function DO(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?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(var n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&this.body.nodes[n].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var i=0,o=ar(this.body.nodes);i1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(JY("id",e))this.body.data.nodes=e;else if(ut(e))this.body.data.nodes=new Mu,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new Mu;else throw new TypeError("Array or DataSet expected");if(i&&Ct(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var o=this;Ct(this.nodesListeners,function(s,l){o.body.data.nodes.on(l,s)});var a=this.body.data.nodes.getIds();this.add(a,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,o=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:ki;return new n(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ct(this.body.nodes,function(i,o){var a=e.body.data.nodes.get(o);a!==void 0&&(n===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(a))})}},{key:"getPositions",value:function(e){var n={};if(e!==void 0){if(ut(e)===!0){for(var i=0;i0?(l=s/a,n+=l*l):n+=s;return a===1/0?1/0:a*$We(n)}});var MWe=_t,zWe=MWe.Math.hypot,EWe=zWe,SWe=EWe,TWe=SWe,LWe=Oe(TWe);function oX(t){var r=kWe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function kWe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var xr=function(){function t(){pe(this,t)}return me(t,null,[{key:"transform",value:function(e,n){ut(e)||(e=[e]);for(var i=n.point.x,o=n.point.y,a=n.angle,s=n.length,l=0;l4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,n),e.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(e,n,a):this._drawLine(e,n,a)}},{key:"_drawLine",value:function(e,n,i,o,a){if(this.from!=this.to)this._line(e,n,i,o,a);else{var s=this._getCircleData(e),l=pt(s,3),c=l[0],u=l[1],g=l[2];this._circle(e,n,c,u,g)}}},{key:"_drawDashedLine",value:function(e,n,i,o,a){e.lineCap="round";var s=ut(n.dashes)?n.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,n,i);else{var l=this._getCircleData(e),c=pt(l,3),u=c[0],g=c[1],h=c[2];this._circle(e,n,u,g,h)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)zW(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var d=this._getCircleData(e),f=pt(d,3),C=f[0],v=f[1],A=f[2];this._circle(e,n,C,v,A)}this.enableShadow(e,n),e.stroke(),this.disableShadow(e,n)}}},{key:"findBorderPosition",value:function(e,n,i){return this.from!=this.to?this._findBorderPosition(e,n,i):this._findBorderPositionCircle(e,n,i)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var n,i=qr(n=this._getCircleData(e)).call(n,0,2),o=pt(i,2),a=o[0],s=o[1];return{from:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var n=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var i=rX(e,this.options.selfReference.angle,n,this.from);return[i.x,i.y,n]}},{key:"_pointOnCircle",value:function(e,n,i,o){var a=o*2*Math.PI;return{x:e+i*Math.cos(a),y:n-i*Math.sin(a)}}},{key:"_findBorderPositionCircle",value:function(e,n,i){var o=i.x,a=i.y,s=i.low,l=i.high,c=i.direction,u=10,g=this.options.selfReference.size,h=.05,d,f=(s+l)*.5,C=0;this.options.arrowStrikethrough===!0&&(c===-1?C=this.options.endPointOffset.from:c===1&&(C=this.options.endPointOffset.to));var v=0;do{f=(s+l)*.5,d=this._pointOnCircle(o,a,g,f);var A=Math.atan2(e.y-d.y,e.x-d.x),I=e.distanceToBorder(n,A)+C,p=Math.sqrt(Math.pow(d.x-e.x,2)+Math.pow(d.y-e.y,2)),m=I-p;if(Math.abs(m)0?c>0?s=f:l=f:c>0?l=f:s=f,++v}while(s<=l&&v1?g=1:g<0&&(g=0);var h=e+g*l,d=n+g*c,f=h-a,C=d-s;return Math.sqrt(f*f+C*C)}},{key:"getArrowData",value:function(e,n,i,o,a,s){var l,c,u,g,h,d,f,C=s.width;n==="from"?(u=this.from,g=this.to,h=s.fromArrowScale<0,d=Math.abs(s.fromArrowScale),f=s.fromArrowType):n==="to"?(u=this.to,g=this.from,h=s.toArrowScale<0,d=Math.abs(s.toArrowScale),f=s.toArrowType):(u=this.to,g=this.from,h=s.middleArrowScale<0,d=Math.abs(s.middleArrowScale),f=s.middleArrowType);var v=15*d+3*C;if(u!=g){var A=LWe(u.x-g.x,u.y-g.y),I=v/A;if(n!=="middle")if(this.options.smooth.enabled===!0){var p=this._findBorderPosition(u,e,{via:i}),m=this.getPoint(p.t+I*(n==="from"?1:-1),i);l=Math.atan2(p.y-m.y,p.x-m.x),c=p}else l=Math.atan2(u.y-g.y,u.x-g.x),c=this._findBorderPosition(u,e);else{var b=(h?-I:I)/2,_=this.getPoint(.5+b,i),S=this.getPoint(.5-b,i);l=Math.atan2(_.y-S.y,_.x-S.x),c=this.getPoint(.5,i)}}else{var E=this._getCircleData(e),T=pt(E,3),L=T[0],H=T[1],P=T[2];if(n==="from"){var R=this.options.selfReference.angle,N=this.options.selfReference.angle+Math.PI,U=this._findBorderPositionCircle(this.from,e,{x:L,y:H,low:R,high:N,direction:-1});l=U.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,c=U}else if(n==="to"){var F=this.options.selfReference.angle,K=this.options.selfReference.angle+Math.PI,te=this._findBorderPositionCircle(this.from,e,{x:L,y:H,low:F,high:K,direction:1});l=te.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,c=te}else{var Me=this.options.selfReference.angle/(2*Math.PI);c=this._pointOnCircle(L,H,P,Me),l=Me*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var Ye=c.x-v*.9*Math.cos(l),De=c.y-v*.9*Math.sin(l),we={x:Ye,y:De};return{point:c,core:we,angle:l,length:v,type:f}}},{key:"drawArrowHead",value:function(e,n,i,o,a){e.strokeStyle=this.getColor(e,n),e.fillStyle=e.strokeStyle,e.lineWidth=n.width;var s=aX.draw(e,a);s&&(this.enableShadow(e,n),Rf(e).call(e),this.disableShadow(e,n))}},{key:"enableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,n){if(n.background!==!1){var i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=n.backgroundColor,e.lineWidth=n.backgroundSize,this.setStrokeDashed(e,n.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,n.dashes)}}},{key:"setStrokeDashed",value:function(e,n){if(n!==!1)if(e.setLineDash!==void 0){var i=ut(n)?n:[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.")}}]),t}();function GO(t,r){var e=ar(t);if(Ma){var n=Ma(t);r&&(n=jr(n).call(n,function(i){return La(t,i).enumerable})),e.push.apply(e,n)}return e}function WO(t){for(var r=1;r"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var _$=function(t){Tt(e,t);var r=GWe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"_findBorderPositionBezier",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,l=.2,c=!1,u=1,g=0,h=this.to,d,f,C=this.options.endPointOffset?this.options.endPointOffset.to:0;i.id===this.from.id&&(h=this.from,c=!0,C=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(C=0);var v=0;do{f=(g+u)*.5,d=this.getPoint(f,a);var A=Math.atan2(h.y-d.y,h.x-d.x),I=h.distanceToBorder(o,A)+C,p=Math.sqrt(Math.pow(d.x-h.x,2)+Math.pow(d.y-h.y,2)),m=I-p;if(Math.abs(m)0&&(h=this._getDistanceToLine(A,I,C,v,l,c),g=h"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var ZO=function(t){Tt(e,t);var r=ZWe(e);function e(n,i,o){var a;return pe(this,e),a=r.call(this,n,i,o),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return me(e,[{key:"setOptions",value:function(i){G5(He(e.prototype),"setOptions",this).call(this,i);var o=!1;this.options.physics!==i.physics&&(o=!0),this.options=i,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(),o===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){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})}},{key:"cleanup",value:function(){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}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var i="edgeId:"+this.id,o=this._body.functions.createNode({id:i,shape:"circle",physics:!0,hidden:!0});this._body.nodes[i]=o,this.via=o,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){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)}},{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var a=this._getCircleData(),s=pt(a,3),l=s[0],c=s[1],u=s[2],g=2*Math.PI*(1-i);return{x:l+u*Math.sin(g),y:c+u-u*(1-Math.cos(g))}}else return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o,this.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){return this._getDistanceToBezierEdge(i,o,a,s,l,c,this.via)}}]),e}(_$);function YWe(t){var r=XWe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function XWe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var KO=function(t){Tt(e,t);var r=YWe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var i=this.options.smooth.roundness,o=this.options.smooth.type,a=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var l,c;a<=s?l=c=i*s:l=c=i*a,this.from.x>this.to.x&&(l=-l),this.from.y>=this.to.y&&(c=-c);var u=this.from.x+l,g=this.from.y+c;return o==="discrete"&&(a<=s?u=athis.to.x&&(E=-E),this.from.y>=this.to.y&&(T=-T);var L=this.from.x+E,H=this.from.y+T;return a<=s?this.from.x<=this.to.x?L=this.to.xL?this.to.x:L:this.from.y>=this.to.y?H=this.to.y>H?this.to.y:H:H=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(i,o,a.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(i,o,a,s,l,c,u)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=i,s=Math.pow(1-a,2)*this.fromPoint.x+2*a*(1-a)*o.x+Math.pow(a,2)*this.toPoint.x,l=Math.pow(1-a,2)*this.fromPoint.y+2*a*(1-a)*o.y+Math.pow(a,2)*this.toPoint.y;return{x:s,y:l}}}]),e}(_$);function qWe(t){var r=QWe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function QWe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var JWe=function(t){Tt(e,t);var r=qWe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"_getDistanceToBezierEdge2",value:function(i,o,a,s,l,c,u,g){for(var h=1e9,d=i,f=o,C=[0,0,0,0],v=1;v<10;v++){var A=.1*v;C[0]=Math.pow(1-A,3),C[1]=3*A*Math.pow(1-A,2),C[2]=3*Math.pow(A,2)*(1-A),C[3]=Math.pow(A,3);var I=C[0]*i+C[1]*u.x+C[2]*g.x+C[3]*a,p=C[0]*o+C[1]*u.y+C[2]*g.y+C[3]*s;if(v>0){var m=this._getDistanceToLine(d,f,I,p,l,c);h=m"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var YO=function(t){Tt(e,t);var r=eZe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"_line",value:function(i,o,a){var s=a[0],l=a[1];this._bezierCurve(i,o,s,l)}},{key:"_getViaCoordinates",value:function(){var i=this.from.x-this.to.x,o=this.from.y-this.to.y,a,s,l,c,u=this.options.smooth.roundness;return(Math.abs(i)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,c=this.to.y,a=this.from.x-u*i,l=this.to.x+u*i):(s=this.from.y-u*o,c=this.to.y+u*o,a=this.from.x,l=this.to.x),[{x:a,y:s},{x:l,y:c}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),g=pt(u,2),h=g[0],d=g[1];return this._getDistanceToBezierEdge2(i,o,a,s,l,c,h,d)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=pt(o,2),s=a[0],l=a[1],c=i,u=[Math.pow(1-c,3),3*c*Math.pow(1-c,2),3*Math.pow(c,2)*(1-c),Math.pow(c,3)],g=u[0]*this.fromPoint.x+u[1]*s.x+u[2]*l.x+u[3]*this.toPoint.x,h=u[0]*this.fromPoint.y+u[1]*s.y+u[2]*l.y+u[3]*this.toPoint.y;return{x:g,y:h}}}]),e}(JWe);function rZe(t){var r=nZe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function nZe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var XO=function(t){Tt(e,t);var r=rZe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"_line",value:function(i,o){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),i.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(i){return{x:(1-i)*this.fromPoint.x+i*this.toPoint.x,y:(1-i)*this.fromPoint.y+i*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){var a=this.to,s=this.from;i.id===this.from.id&&(a=this.from,s=this.to);var l=Math.atan2(a.y-s.y,a.x-s.x),c=a.x-s.x,u=a.y-s.y,g=Math.sqrt(c*c+u*u),h=i.distanceToBorder(o,l),d=(g-h)/g;return{x:(1-d)*s.x+d*a.x,y:(1-d)*s.y+d*a.y,t:0}}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){return this._getDistanceToLine(i,o,a,s,l,c)}}]),e}(sX),eu=function(){function t(r,e,n,i,o){if(pe(this,t),e===void 0)throw new Error("No body provided");this.options=h1(i),this.globalOptions=i,this.defaultOptions=o,this.body=e,this.imagelist=n,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 nX(this.body,this.options,!0),this.setOptions(r)}return me(t,[{key:"setOptions",value:function(e){if(e){var n=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;t.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=tX(e.value));var i=[e,this.options,this.defaultOptions];return this.chooser=w$("edge",i),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,a={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:n,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:o?void 0:this.options.color.color,inheritsColor:o,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){var s=this.options.selectionWidth;typeof s=="function"?a.width=s(a.width):typeof s=="number"&&(a.width+=s),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.highlight,a.shadow=this.options.shadow.enabled}else if(this.hover){var l=this.options.hoverWidth;typeof l=="function"?a.width=l(a.width):typeof l=="number"&&(a.width+=l),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.hover,a.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(a,this.options.id,this.selected,this.hover),a.color!==void 0&&(a.inheritsColor=!1),a.shadow===!1&&(a.shadowColor!==this.options.shadow.color||a.shadowSize!==this.options.shadow.size||a.shadowX!==this.options.shadow.x||a.shadowY!==this.options.shadow.y)&&(a.shadow=!0));else a.shadow=this.options.shadow.enabled,a.width=Math.max(a.width,.3/this.body.view.scale);return a}},{key:"updateLabelModule",value:function(e){var n=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,n=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof ZO&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof YO&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof KO&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof XO&&e.type.enabled===!1)&&(i=!1),i===!0&&(n=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(n=!0,this.edgeType=new ZO(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new YO(this.options,this.body,this.labelModule):this.edgeType=new KO(this.options,this.body,this.labelModule):this.edgeType=new XO(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),n}},{key:"connect",value:function(){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()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.width=this.options.scaling.min+o*a}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){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}},{key:"draw",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(e,n,this.selected,this.hover,i),this.drawLabel(e,i)}}},{key:"drawArrows",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.fromPoint=o.from.core),n.fromArrowSrc&&(o.from.image=this.imagelist.load(n.fromArrowSrc)),n.fromArrowImageWidth&&(o.from.imageWidth=n.fromArrowImageWidth),n.fromArrowImageHeight&&(o.from.imageHeight=n.fromArrowImageHeight)),n.toArrow&&(o.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.toPoint=o.to.core),n.toArrowSrc&&(o.to.image=this.imagelist.load(n.toArrowSrc)),n.toArrowImageWidth&&(o.to.imageWidth=n.toArrowImageWidth),n.toArrowImageHeight&&(o.to.imageHeight=n.toArrowImageHeight)),n.middleArrow&&(o.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,n),n.middleArrowSrc&&(o.middle.image=this.imagelist.load(n.middleArrowSrc)),n.middleArrowImageWidth&&(o.middle.imageWidth=n.middleArrowImageWidth),n.middleArrowImageHeight&&(o.middle.imageHeight=n.middleArrowImageHeight)),n.fromArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(e,n){if(this.options.label!==void 0){var i=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var a;if(i.id!=o.id){this.labelModule.pointToSelf=!1,a=this.edgeType.getPoint(.5,n),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var l=rX(e,this.options.selfReference.angle,this.options.selfReference.size,i);a=this._pointOnCircle(l.x,l.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var n=[];if(this.labelModule.visible()){var i=this._getRotation();E7(this.labelModule.getSize(),e,i)&&n.push({edgeId:this.id,labelId:0})}var o={left:e.x,top:e.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){if(this.connected){var n=10,i=this.from.x,o=this.from.y,a=this.to.x,s=this.to.y,l=e.left,c=e.top,u=this.edgeType.getDistanceToEdge(i,o,a,s,l,c);return u0&&s<0)&&(l+=Math.PI),o.angle=l,o}},{key:"_pointOnCircle",value:function(e,n,i,o){return{x:e+i*Math.cos(o),y:n-i*Math.sin(o)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(hg(s,e,n,i),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(El(n.endPointOffset.from)?e.endPointOffset.from=n.endPointOffset.from:(e.endPointOffset.from=o.endPointOffset.from!==void 0?o.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),n.endPointOffset!==void 0&&n.endPointOffset.to!==void 0&&(El(n.endPointOffset.to)?e.endPointOffset.to=n.endPointOffset.to:(e.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),hA(n.label)?e.label=n.label:hA(e.label)||(e.label=void 0),eo(e,n,"smooth",o),eo(e,n,"shadow",o),eo(e,n,"background",o),n.dashes!==void 0&&n.dashes!==null?e.dashes=n.dashes:i===!0&&n.dashes===null&&(e.dashes=u1(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(e.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(e.scaling.max=n.scaling.max),eo(e.scaling,n.scaling,"label",o.scaling)):i===!0&&n.scaling===null&&(e.scaling=u1(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var l=n.arrows.toLowerCase();e.arrows.to.enabled=zt(l).call(l,"to")!=-1,e.arrows.middle.enabled=zt(l).call(l,"middle")!=-1,e.arrows.from.enabled=zt(l).call(l,"from")!=-1}else if(dt(n.arrows)==="object")eo(e.arrows,n.arrows,"to",o.arrows),eo(e.arrows,n.arrows,"middle",o.arrows),eo(e.arrows,n.arrows,"from",o.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+ug(n.arrows));else i===!0&&n.arrows===null&&(e.arrows=u1(o.arrows));if(n.color!==void 0&&n.color!==null){var c=Y2(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,u=e.color;if(a)tr(u,o.color,!1,i);else for(var g in u)Object.prototype.hasOwnProperty.call(u,g)&&delete u[g];if(Y2(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,c.opacity===void 0&&(u.opacity=1);else{var h=!1;c.color!==void 0&&(u.color=c.color,h=!0),c.highlight!==void 0&&(u.highlight=c.highlight,h=!0),c.hover!==void 0&&(u.hover=c.hover,h=!0),c.inherit!==void 0&&(u.inherit=c.inherit),c.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,c.opacity))),h===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else i===!0&&n.color===null&&(e.color=h1(o.color));i===!0&&n.font===null&&(e.font=h1(o.font)),Object.prototype.hasOwnProperty.call(n,"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=n.selfReferenceSize)}}]),t}(),iZe=function(){function t(r,e,n){var i,o=this;pe(this,t),this.body=r,this.images=e,this.groups=n,this.body.functions.createEdge=ve(i=this.create).call(i,this),this.edgesListeners={add:function(s,l){o.add(l.items)},update:function(s,l){o.update(l.items)},remove:function(s,l){o.remove(l.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,l,c,u){if(l===s)return .5;var g=1/(l-s);return Math.max(0,(u-s)*g)}},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},tr(this.options,this.defaultOptions),this.bindEventListeners()}return me(t,[{key:"bindEventListeners",value:function(){var e=this,n,i;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var s=!1;for(var l in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,l)){var c=e.body.edges[l],u=e.body.data.edges.get(l);if(u!=null){var g=u.smooth;g!==void 0&&g.enabled===!0&&g.type==="dynamic"&&(o===void 0?c.setOptions({smooth:!1}):c.setOptions({smooth:{type:o}}),s=!0)}}a===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",ve(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",ve(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){Ct(e.edgesListeners,function(o,a){e.body.data.edges&&e.body.data.edges.off(a,o)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){eu.parseOptions(this.options,e,!0,this.defaultOptions,!0);var n=!1;if(e.smooth!==void 0)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(n=this.body.edges[i].updateEdgeType()||n);if(e.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(JY("id",e))this.body.data.edges=e;else if(ut(e))this.body.data.edges=new Mu,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new Mu;else throw new TypeError("Array or DataSet expected");if(o&&Ct(this.edgesListeners,function(s,l){o.off(l,s)}),this.body.edges={},this.body.data.edges){Ct(this.edgesListeners,function(s,l){n.body.data.edges.on(l,s)});var a=this.body.data.edges.getIds();this.add(a,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),i===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,o=this.body.data.edges,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var i=this.body.edges;Ct(e,function(o){var a=i[o];a!==void 0&&a.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;Ct(this.body.edges,function(n,i){var o=e.body.data.edges.get(i);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(e){return new eu(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,n=this.body.nodes,i=this.body.edges;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var o=i[e];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(e){var n=[];if(this.body.edges[e]!==void 0){var i=this.body.edges[e];i.fromId!==void 0&&n.push(i.fromId),i.toId!==void 0&&n.push(i.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,n=[];Ct(this.body.edges,function(i,o){var a=e.body.nodes[i.toId],s=e.body.nodes[i.fromId];a!==void 0&&a.isCluster===!0||s!==void 0&&s.isCluster===!0||(a===void 0||s===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var n=this.body.edges,i=[];Mt(e).call(e,function(o,a){var s=n[a];s===void 0&&i.push(a)}),this.add(i,!0)}}}]),t}(),lX=function(){function t(r,e,n){pe(this,t),this.body=r,this.physicsBody=e,this.barnesHutTree,this.setOptions(n),this._rng=jI("BARNES HUT SOLVER")}return me(t,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,n=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,a=this._formBarnesHutTree(n,i);this.barnesHutTree=a;for(var s=0;s0&&this._getForceContributions(a.root,e)}}},{key:"_getForceContributions",value:function(e,n){this._getForceContribution(e.children.NW,n),this._getForceContribution(e.children.NE,n),this._getForceContribution(e.children.SW,n),this._getForceContribution(e.children.SE,n)}},{key:"_getForceContribution",value:function(e,n){if(e.childrenCount>0){var i=e.centerOfMass.x-n.x,o=e.centerOfMass.y-n.y,a=Math.sqrt(i*i+o*o);a*e.calcSize>this.thetaInversed?this._calculateForces(a,i,o,n,e):e.childrenCount===4?this._getForceContributions(e,n):e.children.data.id!=n.id&&this._calculateForces(a,i,o,n,e)}}},{key:"_calculateForces",value:function(e,n,i,o,a){e===0&&(e=.1,n=e),this.overlapAvoidanceFactor<1&&o.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,e-o.shape.radius));var s=this.options.gravitationalConstant*a.mass*o.options.mass/Math.pow(e,3),l=n*s,c=i*s;this.physicsBody.forces[o.id].x+=l,this.physicsBody.forces[o.id].y+=c}},{key:"_formBarnesHutTree",value:function(e,n){for(var i,o=n.length,a=e[n[0]].x,s=e[n[0]].y,l=e[n[0]].x,c=e[n[0]].y,u=1;u0&&(hl&&(l=h),dc&&(c=d))}var f=Math.abs(l-a)-Math.abs(c-s);f>0?(s-=.5*f,c+=.5*f):(a+=.5*f,l-=.5*f);var C=1e-5,v=Math.max(C,Math.abs(l-a)),A=.5*v,I=.5*(a+l),p=.5*(s+c),m={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:I-A,maxX:I+A,minY:p-A,maxY:p+A},size:v,calcSize:1/v,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(m.root);for(var b=0;b0&&this._placeInTree(m.root,i);return m}},{key:"_updateBranchMass",value:function(e,n){var i=e.centerOfMass,o=e.mass+n.options.mass,a=1/o;i.x=i.x*e.mass+n.x*n.options.mass,i.x*=a,i.y=i.y*e.mass+n.y*n.options.mass,i.y*=a,e.mass=o;var s=Math.max(Math.max(n.height,n.radius),n.width);e.maxWidth=e.maxWidthn.x?o.maxY>n.y?a="NW":a="SW":o.maxY>n.y?a="NE":a="SE",this._placeInRegion(e,n,a)}},{key:"_placeInRegion",value:function(e,n,i){var o=e.children[i];switch(o.childrenCount){case 0:o.children.data=n,o.childrenCount=1,this._updateBranchMass(o,n);break;case 1:o.children.data.x===n.x&&o.children.data.y===n.y?(n.x+=this._rng(),n.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,n));break;case 4:this._placeInTree(o,n);break}}},{key:"_splitBranch",value:function(e){var n=null;e.childrenCount===1&&(n=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"),n!=null&&this._placeInTree(e,n)}},{key:"_insertRegion",value:function(e,n){var i,o,a,s,l=.5*e.size;switch(n){case"NW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY,s=e.range.minY+l;break;case"NE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY,s=e.range.minY+l;break;case"SW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY+l,s=e.range.maxY;break;case"SE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY+l,s=e.range.maxY;break}e.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:a,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,n){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,n))}},{key:"_drawBranch",value:function(e,n,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,n),this._drawBranch(e.children.NE,n),this._drawBranch(e.children.SE,n),this._drawBranch(e.children.SW,n)),n.strokeStyle=i,n.beginPath(),n.moveTo(e.range.minX,e.range.minY),n.lineTo(e.range.maxX,e.range.minY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.minY),n.lineTo(e.range.maxX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.maxY),n.lineTo(e.range.minX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.minX,e.range.maxY),n.lineTo(e.range.minX,e.range.minY),n.stroke()}}]),t}(),oZe=function(){function t(r,e,n){pe(this,t),this._rng=jI("REPULSION SOLVER"),this.body=r,this.physicsBody=e,this.setOptions(n)}return me(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a,s,l,c,u=this.body.nodes,g=this.physicsBody.physicsNodeIndices,h=this.physicsBody.forces,d=this.options.nodeDistance,f=-2/3/d,C=4/3,v=0;v"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var uZe=function(t){Tt(e,t);var r=lZe(e);function e(n,i,o){var a;return pe(this,e),a=r.call(this,n,i,o),a._rng=jI("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return me(e,[{key:"_calculateForces",value:function(i,o,a,s,l){i===0&&(i=.1*this._rng(),o=i),this.overlapAvoidanceFactor<1&&s.shape.radius&&(i=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,i-s.shape.radius));var c=s.edges.length+1,u=this.options.gravitationalConstant*l.mass*s.options.mass*c/Math.pow(i,2),g=o*u,h=a*u;this.physicsBody.forces[s.id].x+=g,this.physicsBody.forces[s.id].y+=h}}]),e}(lX);function gZe(t){var r=hZe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function hZe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var dZe=function(t){Tt(e,t);var r=gZe(e);function e(n,i,o){return pe(this,e),r.call(this,n,i,o)}return me(e,[{key:"_calculateForces",value:function(i,o,a,s,l){if(i>0){var c=l.edges.length+1,u=this.options.centralGravity*c*l.options.mass;s[l.id].x=o*u,s[l.id].y=a*u}}}]),e}(W5),fZe=function(){function t(r){pe(this,t),this.body=r,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}},Or(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return me(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(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,oA(["stabilization"],this.options,e),eo(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var n=this.options.wind;n&&((typeof n.x!="number"||f7(n.x))&&(n.x=0),(typeof n.y!="number"||f7(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new uZe(this.body,this.physicsBody,e),this.edgesSolver=new sm(this.body,this.physicsBody,e),this.gravitySolver=new dZe(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new oZe(this.body,this.physicsBody,e),this.edgesSolver=new sm(this.body,this.physicsBody,e),this.gravitySolver=new W5(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new aZe(this.body,this.physicsBody,e),this.edgesSolver=new sZe(this.body,this.physicsBody,e),this.gravitySolver=new W5(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new lX(this.body,this.physicsBody,e),this.edgesSolver=new sm(this.body,this.physicsBody,e),this.gravitySolver=new W5(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){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"))}},{key:"startSimulation",value:function(){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=ve(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var 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"))}},{key:"simulationStep",value:function(){var e=eA();this.physicsTick();var n=eA()-e;(n<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&Ho(function(){e.body.emitter.emit("stabilized",{iterations:n}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/es))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,n=0,i=0,o=5,a=0;as&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var n=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var o=this.physicsBody.velocities[e];this.previousStates[e]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,i.x,n.options.mass),n.x+=o.x*this.timestep):(i.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,i.y,n.options.mass),n.y+=o.y*this.timestep):(i.y=0,o.y=0);var a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return a}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].x&&e[n].y){var i=e[n].options.fixed;this.freezeCache[n]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.freezeCache[n]!==void 0&&(e[n].options.fixed.x=this.freezeCache[n].x,e[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof n!="number"&&(n=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",n)),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=n,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,Ho(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,n=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var c=0;cl.shape.boundingBox.left&&(a=l.shape.boundingBox.left),sl.shape.boundingBox.top&&(i=l.shape.boundingBox.top),o1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var c=0;cl.x&&(a=l.x),sl.y&&(i=l.y),o"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var AZe=function(t){Tt(e,t);var r=CZe(e);function e(n,i,o,a,s,l){var c;return pe(this,e),c=r.call(this,n,i,o,a,s,l),c.isCluster=!0,c.containedNodes={},c.containedEdges={},c}return me(e,[{key:"_openChildCluster",value:function(i){var o=this,a=this.body.nodes[i];if(this.containedNodes[i]===void 0)throw new Error("node with id: "+i+" not in current cluster");if(!a.isCluster)throw new Error("node with id: "+i+" is not a cluster");delete this.containedNodes[i],Ct(a.edges,function(s){delete o.containedEdges[s.id]}),Ct(a.containedNodes,function(s,l){o.containedNodes[l]=s}),a.containedNodes={},Ct(a.containedEdges,function(s,l){o.containedEdges[l]=s}),a.containedEdges={},Ct(a.edges,function(s){Ct(o.edges,function(l){var c,u,g=zt(c=l.clusteringEdgeReplacingIds).call(c,s.id);g!==-1&&(Ct(s.clusteringEdgeReplacingIds,function(h){l.clusteringEdgeReplacingIds.push(h),o.body.edges[h].edgeReplacedById=l.id}),Ca(u=l.clusteringEdgeReplacingIds).call(u,g,1))})}),a.edges=[]}}]),e}(ki),IZe=function(){function t(r){var e=this;pe(this,t),this.body=r,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Or(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return me(t,[{key:"clusterByHubsize",value:function(e,n){e===void 0?e=this._getHubSize():dt(e)==="object"&&(n=this._checkOptions(e),e=this._getHubSize());for(var i=[],o=0;o=e&&i.push(a.id)}for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(n.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");n=this._checkOptions(n);var o={},a={};Ct(this.body.nodes,function(s,l){s.options&&n.joinCondition(s.options)===!0&&(o[l]=s,Ct(s.edges,function(c){e.clusteredEdges[c.id]===void 0&&(a[c.id]=c)}))}),this._cluster(o,a,n,i)}},{key:"clusterByEdgeCount",value:function(e,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var a=[],s={},l,c,u,g=function(){var C={},v={},A=i.body.nodeIndices[h],I=i.body.nodes[A];if(s[A]===void 0){u=0,c=[];for(var p=0;p0&&ar(v).length>0&&b===!0){var E=function(){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,n)}},{key:"clusterBridges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,n)}},{key:"clusterByConnection",value:function(e,n){var i,o=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!");var a=this.body.nodes[e];n=this._checkOptions(n,a),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=a.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=a.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=a.options.fixed.x,n.clusterNodeProperties.fixed.y=a.options.fixed.y);var s={},l={},c=a.id,u=jn.cloneOptions(a);s[c]=a;for(var g=0;g-1&&(l[p.id]=p)}this._cluster(s,l,n,o)}},{key:"_createClusterEdges",value:function(e,n,i,o){for(var a,s,l,c,u,g,h=ar(e),d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&a.push(s);for(var l=0;lo?l.x:o,a=l.ys?l.y:s;return{x:.5*(i+o),y:.5*(a+s)}}},{key:"openCluster",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[e];if(o===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(o.isCluster!==!0||o.containedNodes===void 0||o.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var a=this.findNode(e),s=zt(a).call(a,e)-1;if(s>=0){var l=a[s],c=this.body.nodes[l];c._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}var u=o.containedNodes,g=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var h={},d={x:o.x,y:o.y};for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var C=this.body.nodes[f];h[f]={x:C.x,y:C.y}}var v=n.releaseFunction(d,h);for(var A in u)if(Object.prototype.hasOwnProperty.call(u,A)){var I=this.body.nodes[A];v[A]!==void 0&&(I.x=v[A].x===void 0?o.x:v[A].x,I.y=v[A].y===void 0?o.y:v[A].y)}}else Ct(u,function(te){te.options.fixed.x===!1&&(te.x=o.x),te.options.fixed.y===!1&&(te.y=o.y)});for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var m=this.body.nodes[p];m.vx=o.vx,m.vy=o.vy,m.setOptions({physics:!0}),delete this.clusteredNodes[p]}for(var b=[],_=0;_0&&so&&(o=s.edges.length),e+=s.edges.length,n+=Math.pow(s.edges.length,2),i+=1}e=e/i,n=n/i;var l=n-Math.pow(e,2),c=Math.sqrt(l),u=Math.floor(e+2*c);return u>o&&(u=o),u}},{key:"_createClusteredEdge",value:function(e,n,i,o,a){var s=jn.cloneOptions(i,"edge");tr(s,o),s.from=e,s.to=n,s.id="clusterEdge:"+J2(),a!==void 0&&tr(s,a);var l=this.body.functions.createEdge(s);return l.clusteringEdgeReplacingIds=[i.id],l.connect(),this.body.edges[l.id]=l,l}},{key:"_clusterEdges",value:function(e,n,i,o){if(n instanceof eu){var a=n,s={};s[a.id]=a,n=s}if(e instanceof ki){var l=e,c={};c[l.id]=l,e=c}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=i.clusterEdgeProperties),this._createClusterEdges(e,n,i,o);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&this.body.edges[u]!==void 0){var g=this.body.edges[u];this._backupEdgeOptions(g),g.setOptions({physics:!1})}for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(this.clusteredNodes[h]={clusterId:i.id,node:this.body.nodes[h]},this.body.nodes[h].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var n=this.clusteredNodes[e];if(n!==void 0){var i=n.clusterId;if(i!==void 0)return this.body.nodes[i]}}}},{key:"_filter",value:function(e,n){var i=[];return Ct(e,function(o){n(o)&&i.push(o)}),i}},{key:"_updateState",value:function(){var e=this,n,i=[],o={},a=function(f){Ct(e.body.nodes,function(C){C.isCluster===!0&&f(C)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var s=this.body.nodes[n];s===void 0&&i.push(n)}a(function(d){for(var f=0;f0}(!d.endPointsValid()||!C)&&(o[f]=f)}),a(function(d){Ct(o,function(f){delete d.containedEdges[f],Ct(d.edges,function(C,v){if(C.id===f){d.edges[v]=null;return}C.clusteringEdgeReplacingIds=e._filter(C.clusteringEdgeReplacingIds,function(A){return!o[A]})}),d.edges=e._filter(d.edges,function(C){return C!==null})})}),Ct(o,function(d){delete e.clusteredEdges[d]}),Ct(o,function(d){delete e.body.edges[d]});var c=ar(this.body.edges);Ct(c,function(d){var f=e.body.edges[d],C=e._isClusteredNode(f.fromId)||e._isClusteredNode(f.toId);if(C!==e._isClusteredEdge(f.id))if(C){var v=e._getClusterNodeForNode(f.fromId);v!==void 0&&e._clusterEdges(e.body.nodes[f.fromId],f,v);var A=e._getClusterNodeForNode(f.toId);A!==void 0&&e._clusterEdges(e.body.nodes[f.toId],f,A)}else delete e._clusterEdges[d],e._restoreEdge(f)});for(var u=!1,g=!0,h=function(){var f=[];a(function(v){var A=ar(v.containedNodes).length,I=v.options.allowSingleNodeCluster===!0;(I&&A<1||!I&&A<2)&&f.push(v.id)});for(var C=0;C0,u=u||g};g;)h();u&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),t}();function pZe(){var t;window!==void 0&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),t===void 0?window.requestAnimationFrame=function(r){r()}:window.requestAnimationFrame=t}var mZe=function(){function t(r,e){pe(this,t),pZe(),this.body=r,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!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},Or(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return me(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=Ho(function(){var i;e.zooming=!1,ve(i=e._requestRedraw).call(i,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",ve(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];hg(n,this.options,e)}}},{key:"_requestNextFrame",value:function(e,n){if(!(typeof window>"u")){var i,o=window;return this.requiresTimeout===!0?i=Ho(e,n):o.requestAnimationFrame&&(i=o.requestAnimationFrame(e)),i}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(ve(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var n={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,o,a),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){var s=this._drawNodes(i,e),l=s.drawExternalLabels;n.drawExternalLabels=l}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),n.drawExternalLabels!=null&&n.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,o,a)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var 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);var n=this.body.nodes,i;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i=n[o],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,o=this.body.nodeIndices,a,s=[],l=[],c=20,u=this.canvas.DOMtoCanvas({x:-c,y:-c}),g=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+c,y:this.canvas.frame.canvas.clientHeight+c}),h={top:u.y,left:u.x,bottom:g.y,right:g.x},d=[],f=0;f0&&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}))}},{key:"_setCameraState",value:function(){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){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;e!=1&&n!=1?i=this.cameraState.scale*.5*(e+n):e!=1?i=this.cameraState.scale*e:n!=1&&(i=this.cameraState.scale*n),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),a={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=a.x*this.body.view.scale,this.body.view.translation.y+=a.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(zt(e).call(e,"%")!==-1||zt(e).call(e,"px")!==-1)return e;if(zt(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){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{var 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()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new X2(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:X2.DIRECTION_ALL}),dA(this.hammer,function(n){e.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){e.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){e.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){e.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){e.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){e.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){e.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){e.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){e.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){e.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){e.body.eventListeners.onContext(n)}),this.hammerFrame=new X2(this.frame),cX(this.hammerFrame,function(n){e.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),n=this._prepareValue(n);var i=!1,o=this.frame.canvas.width,a=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||n!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=n)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=n,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=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var l=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),c=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==l||this.frame.canvas.height!==c)&&this._getCameraState(s),this.frame.canvas.width!==l&&(this.frame.canvas.width=l,i=!0),this.frame.canvas.height!==c&&(this.frame.canvas.height=c,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(o/this.pixelRatio),oldHeight:Math.round(a/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/i}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var 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)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),t}();function MZe(t,r){var e=Or({nodes:r,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},t??{});if(!ut(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=r),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var zZe=function(){function t(r,e){var n,i=this,o;pe(this,t),this.body=r,this.canvas=e,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",ve(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",ve(o=this.releaseNode).call(o,this))}return me(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=MZe(e,this.body.nodeIndices);var i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,a,s;if(i===0||o===0)s=1,a=jn.getRange(this.body.nodes,e.nodes);else if(n===!0){var l=0;for(var c in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,c)){var u=this.body.nodes[c];u.predefinedPosition===!0&&(l+=1)}if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}a=jn.getRange(this.body.nodes,e.nodes);var g=this.body.nodeIndices.length;s=12.662/(g+7.4147)+.0964822;var h=Math.min(i/600,o/600);s*=h}else{this.body.emitter.emit("_resizeNodes"),a=jn.getRange(this.body.nodes,e.nodes);var d=Math.abs(a.maxX-a.minX)*1.1,f=Math.abs(a.maxY-a.minY)*1.1,C=i/d,v=o/f;s=C<=v?C:v}s>e.maxZoomLevel?s=e.maxZoomLevel:s1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};n.position=i,n.lockedOnNode=e,this.moveTo(n)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!El(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,!El(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,!El(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,!El(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)}},{key:"animateView",value:function(e){if(e!==void 0){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;var n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.position.x,y:n.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 o;this.viewFunction=ve(o=this._lockedRedraw).call(o,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 a;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=ve(a=this._transitionRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.x,y:n.y-e.y},o=this.body.view.translation,a={x:o.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=a}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var n=qxe[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=ve(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}(),EZe=`div.vis-network div.vis-navigation div.vis-button { width: 34px; height: 34px; -moz-border-radius: 17px; border-radius: 17px; position: absolute; display: inline-block; background-position: 2px 2px; background-repeat: no-repeat; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } div.vis-network div.vis-navigation div.vis-button:hover { box-shadow: 0 0 3px 3px rgba(56, 207, 21, 0.3); } div.vis-network div.vis-navigation div.vis-button:active { box-shadow: 0 0 1px 3px rgba(56, 207, 21, 0.95); } div.vis-network div.vis-navigation div.vis-button.vis-up { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABphJREFUeNqcV2twU9cR/nbPlVTHxpKRbNnBLyEbPyJisLEcPwgwUMKQtjNJAzNJZkgNNJOmJaZAaDKlxaXDTIBAcJtOOzSYKSkdiimhAdIMjyT4bYgBYxA2BgcUQPLrCiGDR4qt2x+yXTASFt1/957d7zt3z3d39xDCMQWUfgAz/RI/T4pSTAJpAGL8rECAXX7QFQGq9wOHOxYO1oCgjAdJj1wtB095Giv9TFuZAIWHAziATMPhTAwiHgUkYPXFJu92lMP/2MTpB1AKUCVEgNAcleUo1M+2F8TO6crSTncb1QleAOj2OTSX3Ge1p+Va42m5JrnzbnsCE8Ov+EHgpa0LPLvCJjZ/whuIlN8wAcXG+e1LUn9hm238QU84p1Ld83nsXvuO7Lq+LzKYGAT6/dn58m/HJTYf4O3EShkT8Irpzab1Uz9sGevT5+tWn+j6NB4A5hp/5NSr43xjfd5rW5tT9e3OAhCBiCua5/WsDEls/hdvYklZSwDefmrT8eXmtzuDkb5YZ33p9ndylICAVjWxf39xw/5g5Luv/9H84ZWNcwNEypZT87rXjqyJB85UYDMJYN3U7UdLJ6/6JlgqV517teRqf9uTlug8e1zEk27HgD22o98WsTBh8fWxvjm6ApdONbGvse8LM5NUPOm1Cfabuz3nACAgxX0QEFTJAnjNvLJ+Sepb14KRHnN+Ev+1XJOhZs3Qu1mbG97J2NQgsXroa1dtxrGuf8cHi1mUtPTay0lv1DMJSCRVLtoX+FgGgDQNysBAcez89l9nbbsQSji7rlXkEhjPxb/QatHOcFu0M9zz419oFSRhj/3PuaHiyqasv1Con9NGxHAYUsoCxAqImbYSgCWmFbZQwdsur7N0eC4m6tT6/jUZ750Zeb82c+OZGLWh/2p/W+Kfrmy0hIp/aVKpTSIJEqu2QgFx2iE8CwDp0RbH7Ljng/4yXr+XT3QdyhYsodS0slGr0g2OrEUK7eCrKW82SqzCVz3/yfb6vRwM4xn9rN7JkRkOQRLmfJn2LBPxQjDBqp9lD7XbX7X8pKTP160zR2bdeiX5jYeU/nLSTztNkem3XL5eXbltRUkonBxdgZ2IIUmahUxERQSCVT+rK5hzQ89xQ6P8VaaK1f5VmRvqQ4G+lba+nlnlb5brMhvlk7FBiaPzuwQEmEQhg5BOxMjWTncHc2501cQLkjDTsMCWpyuRQxFP0xXIJfp5FyVW4Zy7KajC06ItbiIGg6ZITBxDxIgbrr1jTSM0fibGIHz8O9sKK0GAibEua9spANh4aY2VmcEg+DEkiBgR/L2hYFgGtcErkQQAMVJgBxyy9hboZzv32v+Kpr7qbEECTAIMAoaJa3qPTmNiiAAgJAjk6J5xhu6HDAIgQYGLmI29PocmMcI8MNYvT1ckfzD9H/ub5br4e4Me9WfOKqtyX6Ud2cwC449PRamifDm6Auc0rTXokci+Xo1EAgBckiDuYGLjpTvntcGIA+SFcp6uUAaAI879VhWrRteYAqn/edq758brXJ1327QMhgJcZjA3EBjNrgZjOG1PkAjyTGENMjZPq5ECQ0MDE9ERBqFZrk0OJ3i4x/7vyIjBxGERt3takgVJEAp9xq3f769WiPDNvSsJdT3HDOEASPelmoBRYT3Kzt5uMtwauJEgSOCpwrk1DIJCoNUMwj9v7MweP9XSQ8/hJPp496fZTAICvLqcyv2B7nRbrgCA03JN5h8ub7A8VqpB437xHvsOy3l3cyaB4L2uqxhti1WLMcSgZQCw7+bOooO3Pk4JBZIYYXISMV5sKH59UePM10GESRGpIf/bE92HU452HywSJIGIllctrhp6YAK5+fHds0lLtJFMXNwkV6fFqA29mROefqiMJj1h6um4a5vY/92dKGaBxIhU5zJTWW2cJmEgGOmeb3c8FxAfb9mdf2RzyGGv5MvU7QwuEySwKHFp/c/M71zA/2F7b1RajnYdLAqMukMVu2YcfmDYE2MD7H+7/Xlq6cRIJqm4zXM+qd3TGjVBir43KSLlXjiELe5TsX+3/yW/ST45PaAHbKmccWh12AP93JNZywj0kSABIobpiXRHjtZ6faout2tyZMadGLXBCxBcvl6NfaAz+tKdFmObpzWl2+tIIBACYy0t/yj34M7HvsKUK+CGassvicX7alYDwwq+vykIEqPVa+Q9gdYk5+V+UE7lj3+FGbuBM/X5JUT8QwIVSSSZiTgmoFR2MfiqYFFPfjpkyrfWPopwxP47AP1pK1g9/dqeAAAAAElFTkSuQmCC'); bottom: 50px; left: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-down { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABpdJREFUeNqcV21QlNcVfp5zX9ikoAvLEsAIIgsoHwpqWAQUNKLNaNv8iZ1JMkNG6/Qj/dDUyCSTtCHpmEkwVk3TToZRMjXj5MOG2KidjIkxQYSAQUAtX6IgIN8su8KCoOzbH4sk4q5g77/33uee555z7rnneYmZDB2MKcJKlyYbqOsZVIgGEOgSHQoy4AKbFFjqAo5dWn/rNAh9OpO852oeJHYxtrmEu4WALhMbxG2ZE9uFAlImDRLY/t/y0b3Ig+u+iWOKsAlgIZSb0OIf15kWtKo1NXh1d5xxiSPEN2wUAHrGOg11jirjWVtJyFnb6YgrzoYwocClu0DI5guPDb43Y2LLp/Iaqf9JCGSErGvIifxd7aqQn/TOJCvFvZ8Hf9haEH+m/6sFQgHBv1Sts/15WmJLkeyl6FuFwFPzny1/ZdE7Nfg/xhv1uUmH2w6kggQp+yqze7d5JbZ8Im+KpucSwI6EN7/cYtlxZarBCts3ptfrtq9odjaGKihE+sV0vRC3u8RqWmmbij149W+Wd5p2rnET6bsqsntyb6+pO3KqkE8FvLxo74lNUX9s9uTJb8/9fG2L81KoogJFYfCm3b9usNq0MXxzw1RsUkDqQICPqf/b/q8sQi3j4WdmtV47OFgNAO6r+DEUFAtFAc9YtpXmRP6hxVsI24cvhyoqnFtrK6jM7isgBa3Dl0O94TeGb255MvzXpUIFjVrhxo/dzgoARBuwFQJkBK9reCnurxfvXX8CRW3yW1G749vT2Br7ysW0oNX1pKDTPG+rm1gHRbibAHLm/7522sKnQCZqFgCUaBCqaS/bEw9vqtWoQROf3dBBiT6KTACImZ3YueqhDdOWjDbFQ4IzIl4elNUX5begU1HD6lPRmULKeghhDcpqnUmZuD3+nkgTH6gZEE9ctlZSoGmG9UIynSCsQVndMyX+IZGiBoHMjHh2SreCglClaSBiSEG8cYnD24bv7CWms/3FocO3hnw13plTggAFb196NdlPM44tC0zrSg5ItXmyEz070UEKCMRqQgkkBQ9NvL2eSJ+revoJTORSpoT6do4/7/7UShBFHQexM+HdfyUHWO8iN/uaRzX3/QjUSLlnqM72F4cCRIY5u9Zf+Y+BAv4AvzpkQ7WAIBRujA/7Vg6cia9xlId6InafVEAAGnQMUCSkb6zTMPdBy8hU3JjrphIq+CrD+Mvxeyumrr+4IH9y7o2GF5eDghuuGx4L2zbWZ9Dc0RoQRbkkFNRdP2/0BH7EtLJLKCjr+zqh2l5u8haZ847vTBW24kRFQXKAtcsT5oqz3igQENIoECkjBJUDZSGewBlBj/ammjLrdX1c/t70ero34gMte9IByLLAjPrUwKweT5jawQshdIuGMiF5XEBU2koivBl9NeEfJeYHwuxtI81zPrn2z6ip60c6DkV1jLTOCTaE2HNjd5Z4s9MwWBOhqEHp/I9cWDtUrJNoHm4KO9P7hdnTBoMYXI8Gb6gVCg63FS53jg9O5tA57tSOdHywnCAygrJrfcTgUe5U2cvNHSPtYYoKCWlrTgsIneB2AfFR+4F4b6f9ZdTzF6P8Ytud407/dy/nL7k9X9i8J9l5y+Ef6RfbnjPvWa8N5suez+KFCgqyPY95Lnd3stv2AcBZ2+mFbze+lui1xc3dXCUUlPafXNx4/aKxcajWWNp/MklRw8/mPFntbd+h1oLE847KhQQxejVg36QQqD0MPTzHv42Ux+uGasJNBnPfwllJd71kkX7RQ3WDNf7dox3BLcNNs6vt34bbbvYHJhlTGp6O+JVHb0/2HJtX1PH+aqECqG/5YN1nlXcokGvvO6vCc4x+QskotxVHB/qa+xbOWuzw8NB3nuo+Ht0z2hHsuGU3GrWAoZfi3jrxgHpw3BPpobaCH7vbqOw6mHI836vYW3Eqcq9AtioqbJy7ufQ3lhfu8sR+s9+3vL8klACsQSu7AnxMY1MxH7YXJp7oPpLulrrj+9575Ni2aeVt1teWfEWfHQLCaspseHzOU7VWU+aM5G2NoyL4i+6j8XWDNQsmGsKu/cv+nTtjQb/mm7hfENyvqEAK5v8opjPJaL26KGBpd5TfguuBvuZRgBgY6zO0jlyZXXe9JqR+8MK8ntHOMHfHIkhu2b/0yIH7/oXJ0yFlxYnPUdRbvuILgO7+y+91l6Ka6M+cnCf4fMSypXvymHf/vzBTD3CuNGUFKT8lmK5Rs5ASqKiBlAGBXFaiSuni0fkp1pJ7Ed4e/xsAqLk46EWsG1EAAAAASUVORK5CYII='); bottom: 10px; left: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-left { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABt5JREFUeNqsl2lUlOcVx//3Pi9DZRsGBgYiS2RYBQKIjAhEJW4pNrXNMbZpWtTGNkttYmJMG5soSZckRk+0p+dYPYY0Gk0ihlhRj63GhVUgBhDD5oIOy8AAMwzD4lCYtx+GqCQKuNyP7/Pc+3u2+7/3JUzEZFBYLh62S7yIZDmVBEIBqOwsQ4DNdtBFASq2A4cuZAwVgCCPF5LGHM0Chz+E1XamzUyAzCMO7IhMI+5MDCK+HpCANd+U2rYgC/Y7BoflYgVA2RAOoNYtyjDTe45+hk96e5QywaJR+NsAwDhocK61VCjLTYWaclNB0OW+en8mhl22g8C/rn7U+uGEwdov+C0i+Q0mIFWzoD7zwVU1czQ/6pjIreR3HPX5VL9jalHXiQgmBoH+XLHAtH5csDaXtxDLLzIBv5jyfOmG2H9U4S7snbpX43KaPpgBIhDx1rPzOlbfPC5GQT/nd1mS1zABa6PfPf5y5F/rcJeWpp7fPkly6f7KXBRCoOSATFfXll19x74HDsvFCghsJAG8HrvlvytCXm7EPVqc5wyzp5NX15muE1omKXXyMnd9yy5r5Q3wPghvJzrLAlimXV38+7D1DbhPFq1M6O4b6rPVWKsCBfHi5EWWv9TkQBYAEPpLvERMC9N8FtRvjt9dPl6wwo5jPvuas7WV5jNqEjz8wA+CBsaan+w9x1hrrXJtuaZX97ooLfqPLCUEGRR+iOwAsF2X98Uc30W3fb02u41frVqeVmo6FUkkwCAwCWxJ2Ls/0TPFNBb8TNdp9WvnVz4OAKdmX2QOzcMsAAjziDGMBd3asCF6SXHyknJTfqQTK+zpvhnVKT5zawCgzFTgN94pJXvP7gxxjTAIkpB+MnSWRMQZYEDnPVt/K4ejbZ/77726Lb6h95tAAiPELaJ1bcTbRfGeM8xv1azWSeyEa0P9igk+Nr1+oNFfkpwzJCJKIQA679ntN08yDXYo3qh+LuUrc0E4EcNL4dP7VNDzpU8FP3vpekoQQ5CEw4bPdEfa9+sAgEZUmkmAAAS5hLQ9p11XGO+pM8V5JLUfMeQARDMlEMKIGFOVCZYb0C7Fz0oeXmIZ6nZzYoV9od/jVS+GbahUOnn9b7T6sEOviUGyA8bMDlUa0W79wBW/bZf+lrY98cDBUI8YCxGDgHCJiVVEDN8R7QWAE8Z/+1mGut2i3eP1r0S+XRztkdBzq6NbF7WpbF3UprKxjvfHxbrfttla/QBArVDbJJIAQCURMRg8ugrKIAKBSNxzHtN3VdmxY0iQYSZmTeegwTlgknYAAB7RZBh2Nm7urbeeC1r19ROT52kWn3shfH2Fu1AO3RxjY/0fdac7/hPPJMDE11GC+HpBJmIEuAS3Oa6w01lybMbMgvgCE6O255zy24DeCr/Bvckn9+u8ZjXYIYvjxoMJy8oeXZrT9GHIqMWTwA2oI6cFMeDIcAiSEOyibXsmZG0hAFzuq1OyY6xBAnMJgdPOmks08zU/bbsB9x18P37PqS/b8+o/a96ZcLm3PmBH46Z5x40HW1eFvl4Uq0w0MwiCBOb7/qTsd6GvVY537DXWas1Iw1AiNJnOgwJi+bXhAbE08OnvaXSIW0TvYw88eaF/uM/WNdju3m5r9TlhPBzVNNDoPGC/5tRma/GJ80xqjPPUjVuvP2narrMOWd1Jlv/E1fN782UiNPZf9C/qOKa+ndOz2j+cz046sn+6KrVOsODirpOxld0lUxmEBK/ktvGgFd2l6taBZn9BAtEz5xYIvAn4/8rFKkgstAyZ6Yf+S67ezlkiSU73XXRV6xqh93TyssR4JF75efBvymLdE03jgT/Wb5tutLWpGbTm7wHZxQQAT+yDuKLyHRIk4cnAZ4pfCF9/HvfR9uh3xBxtz00BANsVDylnac6wAICaHMiBmW5NRLy4trcq0MtZ3RnpHme5H9AvjYeCc1t3pzMJgOSVnyw4eHZUB9Kyu68iMFPpysSppab8UJVC3Rnp/pDlXqF7mnYsdKQbv7cr6fDGW/Zczbt6jgUtV6kIlFxuyg/tH+6zJXmlGe8G+mlzdsyB1j3pTAwZ9q3/Sspbc9tmDwD0H3UffXCFlyuTlFpnPRdYb612c5c8+idPCu6fCLDKUubzsf6fSaWm0wmO9hbvZU8fDR2zoZ97OuppAu0UJEDEmOISZohT6q7Gek5rD3GN6FEp1DaAYB7sdNYPXPao7anS1Fmrg402g7+jYhGIaOXOaQc+uONfmCwZXJIf8xKx2KRgxYgOS+CROuyoyQKCxIhkOr4T6JWgxGnvZ1HWnf/CfHcBXxcnpRHxYwRKkUjSErFKkAQiNjP4kmBRTHbKm5KkKxwL+K39fwDX1XGF8ct++QAAAABJRU5ErkJggg=='); bottom: 10px; left: 15px; } div.vis-network div.vis-navigation div.vis-button.vis-right { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABs1JREFUeNqsl3tQlOcVxp9z3m+XygK7C4sLxkW5o4CAkYssFSkRjabjJEOSJm1IbZx2krapiZdeprW0NVVJ0pqMM0kYJQlqkoZImGioE1ItiCAgIsFwE4Es99vCslwChf36xy5EW1A0Pn9+73fO772e93kJC5EMCszFd20SbyFZNpJAAACtjWUI8KAN1CRAJTbg9LXNU+dBkG+Xkm7Zmg4OWoUdNqZXmQCZHQFsz0yOcCYGEc8mJGDnl2UTh5AO2x2DA3OxDaAsCDvQ32VF11qP9aZYz6SeFeooi17pPQEAvZNdTnWWKnWFuVhfYT7v0zza4M3EsMk2EPgnNZusby8Y7P8x/5lI/gMTYNSnNKQt/0Xtev1DfQtZlaK+M54fmDJXXhg4G8zEINBfqlLMe28L9s/lQ8Tyr5iAJ32fK/tj+OFq3IUO1O+JyGk7GgsiEPFrlQ/07bixXdwEPckHWZJ3MgG7Qw9+/mLIS/W4SyXoNvQskpyHLg1e8CNQ3NI0laoje7Tg/8CBudgGgQwSwO/DD322ze/FFnxLRWhiBzUK94GLA2f9mSTjfU+7mjqyrVe+AX8I4aGgShbA0/47Sn4ZuLcR90ih6qih0anRiVprtUEQb43bYtlXmwNZAEDAj/ACMW1M8ExpeDXyWMVCEl4yF7vntR/zLeov8JJlWfZR+Y3N92+cx/reOmu1quNrk27EWW0xvWspJcigoNNkA4C3Yk59vH7xltvu3ktDxe7PX34ilQCQfeci1j2xfn94ZrGCneY8uxcHCnW/vbr9EQD4d2ITc8AprAOAQLewroVAAaB8oMiLiRHvmVy7znNTjWCFrXKoJOSHFQ+kvnF9f+jco07s91MFdwmSkHQuYB0T8WYwIcYj0bTQdRufGlFKJMFVaCb/GvZW6aGI4yeXOwd2mr/u05zsyDY+W5X64Nm+fO85NpuJiCFJTpslIoonADEeiT2zIzIXuh+o25PQNtbsNVMOBUn2g08MiSTHN3uZjNTEDr4dnX/6H+1H/XPasmKvW+sMGfW/MXzende4K3h/ibvSYxIAItyie/K7cgCitQxCIBFjpTrKMgM+WPfrhLbxFi9iMQtlYjAJSCSBSYBAIPBNI3p86TPXj8bk56R4PVylFE626uFLQc9efiTVPDmgBIAAtzALEYNBQRITa4kYix21FwBax655CVagPLk7806Pj1qo/7MraF/FQ14/aMhszYhvGqn3KTef89rklWrSKXUTkn3mtJK9Bzf3XJA0e/PcrdgxIwSCDPmbZMQgABJkDBKzvn+yy2npIv9xAPB1Ceo2jTZ7Gc8afipIgEhAkACDwcSQQZBIIGnx5it7gg+U3wgcnbZKR1r+FnW+v2DVtDwtXCXNSKz797oAwDzZ7ySRAIBBFsTXmBh1w1+oZ4J3h+wv9lUFdbMDOrO+5IAqWIGZthuV13nC77nKRx8r7PssyibLIkoT1/h65HsfzWyu5tF6NYNB4EYJzKUETqgcLNVv0D/cDQBrNAnm9+LOfTLfNB5u2hf5z+6TMexYji+tVdrM5leMbWOtSwQx/F1C2rcuebIqwSO568a4WmuN3mEYSiUi+pRl2l1pLvYBsKArUKVwnZRYgdHpMWVG4+/WXhwoDBXE7OmkHzJ6JNemLfv51bniGqzVPoIkyLbpfK7ZMFIkE6FlrMn7Ql+BbiHg+zXGbgLjylDpyosD58KZmKM0cfWHI9//aD5o1VCZrnO83VuQQOja5PMCfwK8n3K2ChIbLVOD9KB36le3A+u/s2Q81C2yRavQmQNdVnamLnmq4nHD9jpB0rwm77jpjTW9E906Bu18fWlWCQHAox9CtGoXTwmS8IThZyXPB+29inuoE6bMsDM9ufEAMNHqJuU8ljMtAKA2B7IhzaWNiLfWjVQb3J10/SGuEZZ7Af1X7+lluZ3HkpgEQPL291M+qbzJgXQcG60ypKlVTGwsMxcFaJW6/hDXVZZvCz3RlrmRiQHwy9nRn2bM6bnas4cLfH6s1RIorsJcFDA2PToR7Z7QezfQD9qzwvI6TyTZC47ttXeiT+2c1+wBgOndoTPLt7mrmCRjvfULQ4O1xsVVchu7b9GysYUAqy3lnsdNb0aXmQuj7PYWL2etuRl6S0OfXLjiGQIdEY6K5esc2BWhjvkqXLO6x08VPKxV6iYAwuBkv5NpvNmtbrhaX2+tWdY70eVNINhtLW0/sjrv6B0/YdJlcGlR2AvE4hUlKwHQ7BU5cz8LRx0HaPY7gXb53L/67+mUfudPmP/twOWS6AQi/j6B4iWS/IlYK+yGYJDB1wWLErLRKd/omOJbAWf03wEAyO9m+/TtS3AAAAAASUVORK5CYII='); bottom: 10px; left: 95px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomIn { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABiBJREFUeNqkV2tQlOcVfp7zvgvDRe66y8htXUBR1GoFI+BtFJvRtjPJBGeaH2a8DGmbttgSTWbSJEw6TWOsrbbpTIeJZGqaTipTa6LJZDTVUTYQdNAohoso6qLucnERN0Axcb/8+HaJUHDX9Pz6vnnPe57vXJ5zzkeEIwaYcwBL/VrW0TCKqZANINEvBhSk3w9eUmC9HzjcsfarOhBGKJN84GkVJHcetvqFu4SAIYELYlpm4LpQQMqoQQKVnzeO7EYV/A8NnHMAGwHWQJmAjtg895LkFa7FU1d258UvGLBGpI4AQM9dd2TrwNn4016n9bS3LqNzsD1VKPAbfhCyqflR31thAzv+La+QxotCoNi6pn1D1s9aVli/3xtOVk72fjT1XVf17E9uHZspFBD8zdk13pdCAjsOyG6KUSEEnrT/tPHluW+cw7eQ19q2z6/t2rsYJEjZ07S6d+ukwI5/yQ7RxnYC2DZnx8dbHNs6xxs85T2R9GprZcmVwYs2BYWsmBzP83m7nIVJS73jdfdd+7PjjUu/XWUCGTtPre7ZHjxTY3Kq8DoV8Ou5u49snPGrKxN58syZ9aVXBztsigoUBd+Xt2NbfZ8llaVvah+vOz9hcX+CJenWp7eOOYS6ePpTU1w39vk+AwCzFPdDQbFGFPCUY2v9hqxfXJ0shNeHLtsUFc6UequbVvdVkwLX0GXbZPpl6Zuu/ij9x/VCBU1dU7bfdFYAIDsSFRCgeOqa9hfy/nDhwfwTKOrRd0U95n0iqch9+cKS5JVtpMCdkllhAhugCHcRwAb7z1tCEp8CCXAWAJRoCFXIYnti+sYWTQ0tll0wQMk+hGUAkBOX714xbV1IyuhxHhIMC/iR5OV9M2JmuhU1Vh7PXiakrIUQhcnLXeHQxPT4GyAtFqgwgAPF5iIFWkeu1SSLCKAweXn3/ZR5rXV7SddQpy3YDoNems9qTI5hGCitm1MOAAx0aaFCerTd84zjBed3Egq9ADA/rqD7Q3ctQC4REDmkYHb8goGgsR2tz5V0DV+xUdQoqAQ81RybU4IgFWgACgpaLLCIBUo0bv63y/aXy6+WBHWz4/IHSIGAuVooiaRgWqD3AsDVoQ6bEgtOrfJUhwrf0WUtk+r8sL6wvHvk5ijVUiJSRrQZuURtfoGMuaCoRyfP/yMy0XykgAA0DPRTxNp31x2ZFuUYBgB7bK7HNdhpKz6WXq6oQCooKghMKhkgji77vBoA1jkXlAvVfRQjFMUcmxSkRWd6gpjeu32R2kxTvyhKh1DQeud8fFBh26zfOe0xuR4JgAbzywCoRSzfeDUKatJKUQK+CjKiHZ6nZ2xzBnU7B9vixTy7qCHSQEhJU3+DtdT6mAcAFiWUeP/xyPH3Jwrfo3XzysemRcEA8F5RY8h6aPE1WwMLQ4OQ/EBANHmdGWHlzZyxk3ayB0m771yGooYy+KE0l35x0iBxZehS6ie9R1PCMaDvCzWDXA4hZ283ptwcvp6qqDBnyao6AWEQrBQQ/7y+d3YoA+NBTAaElo973p8tVFCQyipW+c3pdNu7BwBOe+tm/eniK/kPFWowpMfvuKrzzw80zSKIkWsJe0bHYu163BNwMwDsv7G36ODNtzMnM5IWZfeQgscbisvLPl1aDhLTo7I8k+n/p+dw5pGeg0WKGiS31K6vvTdmA7nx9uDZ9A3xMUIpbvSezE6MSOmbNWXewHhD6dH23o7BlqQvvrwTK6KQFpXl2WyvcE6LTB2eCPSdrurvmcUnO/cVfPD6pMteyfGs3QKpUFQoS9tU/xPH8xe+Tdd693pN/pHug0Xmqntvz1uLDo9Z9v5nnrn+dvujrI1JMUJd3OY7n97ua46douOGpkdlDoUDeG7g1NS/u/5a0Og9scCsB+ysWXSoMuyFftWJvM0E31SBjmWPznHPjy+8NjdhYfeMmJl3EiNSRgCi/25fpGu4M671zjlrm685s2fEnUoQ5lrLLW8uPLj3oX9hqgxIw8n8X1LU7yMkItCHzREZrGQV6ONmy5TggHk247sL/1jFqof/hRn/AWfqC0pI+QHBIk3tICXRrFTpF8hlJaqefh6yFxQ6HwQYlK8HAKyt3WsWxl7fAAAAAElFTkSuQmCC'); bottom: 10px; right: 15px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomOut { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABV5JREFUeNq0l2tQVVUYht/3W/vACMr16IFRQDiAgChpgiikMqY1WjnN9KsfGOXYTOVgkvbDUsZuXrK0qZmGUSvNspjI8TZOmo6AGBoZYly8YB6Qw80DBwQ6jJ3dj30OZZmiwvtv77XW96y91l7v9y1iMNLBuCI84tZkIXU9gwqxAILdokNBOtzgJQWWuYEDFxfcLAGh3y0k79iaD4mfjOVu4WYhoItngBiR6RkuFJAyEJBA3m/lri3Ih/uewXFFyAG4A8oAWkcm2meEzrFNH53Vkhg4xWnxCXcBQGu/3bfGeTbwjKPUcsZRElnfUxcuFLh1Nwh5vurx7s8GDbZ+L+tI/U0hkGGZX5c9/pXqOZYn2gazK8Vth0fvsRUknbx+bIJQQPCts/Mda+4KthbJFoqeKwSejX6pfO2kjytxH1pfuyqlsGH7dJAgZWvFo23L/9muboF+JxtE0/OEwMqJG46uSHinFvepTPO8lhGaX+fPHSdjCKaPy/b3v7az58h/wHFFyIHCRirgjUlbfsiJWXEFD6iUoOkdQaaQ6z9dP2YVahljF4+yXdvZ/evf4G+hQk2sEAUsti4vWxa35gKGSBMDp3T23OxxVXdXRijKovSFzrerC6ELAMT6IhcCZIyeX7c68YPzGGLlxq89PyM0q5YU2M1RuQAg0EERbiaA7Ohl1RgmPTM2p1qjBk1Mm6GDErsfswAgLiDZPmfMwrbhAqeHzm6P8Z9gV9SQdTx2lpCyAEKkhc62YZiVEjTdRgo0zXeBRnImAaSFzm7xdjjtOBGyvmZVZkNvfZjXDhU14+BToFEDKRAQpAJ0HRTjP6XHpYUKEX7RzS9bV5c+FJTmAICUgNSWQ/ZCgJwhIOJIQVLgFKcXvKHm9cyGvithFDUAFQqECho1CBUIggYapAJ1QEFBExNMYoISDU1/NIR9cvndTG/c2IBkp2fC8ZpQgknBGI/3AsDvvRfDlJhwem5zwYMs7VNlaUtbXE1h3mezj9mlGSsXrBkzkFsGKGoDmedBJLfLjxQQgAYdHRSxtPfbfceNsPYBQPTI+GZbT31YxrGIpYoKpIKigkAgFOggNBrbQBBCBaEM2L+iGGmTgnF+Uc1epqO/3VejAoAOUZSLQkFN17lAb4eVCe+VRvvHN4sH6t1feqAmMUGoPHvvhdLzTjzfKoj0sza/GLOy1Bu3vqc20Pgl5YIGkVOEZFZ0nLLMszzdDADTgjIdX6Uf3zfUx6m6u8riKRhOCcmDAqLCURo53Oe4rrsyUlGD0nlIqubdKNZJXOm9FH6y7Yh5uKBnO8vNTX2N4YoKE2fMLREQOsE8AfFN4/ak4QIfbd2XJFRQkLx85ruN7NTp2AoAZxwlCR9dWJc81NDdtoLkc86KBIJwXQ3aOpCPqwuhR2SPbCBlUc2NyogQX3N7wqgU51BAf2w9EFXUtCtLqADqS76ev6/ilgrk2q6esxHZgf5CySh3FMcG+5jbE0ZNdj4odHdDwWPGcZNNO1MPbrxtzdW4s+tI5HPBwQTTzziKY3v/7HGlhmS23g90T+OO5L1Nu7MMw3Fv/Tx1f97/FnsAYPui8/D4nBB/oZZR230uoq67auQoLaB37Iio3sEAK52nR39p+zS13HFiilHeYtOOabdC71jQzz2R+ALBbcrjWNF+cfaUwLSrk4KmtsT4T+gK9jG7AKKjv93X1lcfUNNVaantropqddnDCcIoa7lk29S92+/5CpOvQ04VJ79KUe/7iI/Hh40U6c3PyuPjhmWKN8G8Fvnw1A/zmX/vV5h/T+CXstRMUp4kOFOjZiUlWBkFQYdALitRZXRzf3RqWumdgF79NQDBOa2V/iYSHAAAAABJRU5ErkJggg=='); bottom: 10px; right: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABptJREFUeNqsl21QlNcVx///cx9hIipuAJHasgHlRdw0xay7yK7smg6sb2DSdtqZduLUNENmOk1tQuM4U7UzTvshSRlFZzoNCWSSSTJp+6VNkLCAeQHBoCCgqNBE0wUqL+KuwIiiZZ9+eHa3aAS3Sf8zO8/L3nt+95x7z7n3YWlpKUQEJAEgch9+Jola9xEC2ADBVgAOKqwCYAqKDgUJBIHPBWwFWQNdbyZFBwAC0GGIAHQSj3/8HHRdhzYbdDfwg4IjAsGvICgXAroYBiCEDkBBACBZoyST4gDwQqh7mQ4cEkhQD0EBIIggRMQAh2EiEvEYAGrdR3YSqIYCIEDaotVDeYnu/ryEjSOr43PHl8WmTBPA6PRQ7IWJrvhT/ubkU/7m1EvX+1KEUh7Ug+WkPEXgdUSkR+xrd0NJ4qjr8AEI9pGAI7mo78mHfnF+Y/K2K7iHUheuvJG6cOUNz/LvDwPobrpSl/Ruf2VOy9UPs4RSTSANwH4Y449EVdnt9ojHIeghCHYLgR+n/7zt4Np32tIWZU4hSpnjVk1t/caPfOO3/f++MNH5TVJcisoEoo4ksgbsXwYfdR1+kQplQuCFNS82Pp/9+158RTkTC0ce0OKutQeOp5PME0qcUBqyBmwGOC8vz4AWVOyE4CUqYO/Dh+p3pj//Bb6mHllqCyxd8ODVT69+uFKoOYTSnzFg7SJpzHFNQYWiQrUIsCN9V+uOh375zz179pSGI1FSUuK12+2+aGDt7e3muro6T/h57969lZdvDrT+ZbA6n0B1nfPVN7e0PjMjIgIIdkEAR1JR329yDvaE0+l/hQKA1Wr1bd682SsikUW7K+O3PesTNvaSAiXaLhGBvO86RFEoJ4Adac+eDxsgiZKSEm9NTY3n5MmT5mjBHR0d5vr6es+mTZu8SqnI+x+s+Ol5jRo0auX1jtepQaEAADKWWIbcy7ZGUmb79u1eu93uI+mtra31HLj5TGDs9rBJICCNn1GRCKGCUJAUuzzw6CfbTB6Px7t27VofAG/YXl6Ceyw9LmvIN3UxZUafKRACWyCELcHVP3vk4fDabDZf+2N/D9g+fsLEEFSooFGDogZNFkBRgSCsTcWm066jgRAU4et/F5u9nxRosmCLRmE+QdgSXCNzhW/s9rDJ63wVJx77V+V8YS6UNaW8BdOcqzx+3Ujt0F8Bcr1GMIMU5CzJHZ+rg6IGCYV2PimoyIK6lzIWrxkPTVGmRoqJFCyLTZmeq4MB5f3BVADnbpcQkzStUQMAk0YKBPfzxlhA95NQQe43QBotBECAFFyZHo6dz6CKCizAPFPivzUWqxm2AqIgnwkFvZNn4uczGK3Hah7wpet98UZ85R8aKScIcXYEWpMLkx8fvleHpNjlAWtTsakQa0pVKGcJQqMGUqCHBvfdjp/gTP6xwFzg85PdyaH2J4SUowKiw3889e4KBACnT582W5uKTV2uusAdUFlgzBcFQoFGDT35HwW+82mhqaenxwwA4WtYfRNnUkMZUqsJpEkn8cXU5yktYw2JjsTCMQDwer0ekt6GhgZPUVGRd3fu7qjqdU9Mj7mlpcVD0tvS0uKxWCyVANB5rS3x8s3BFEUFgTTLtuZndQHLBMSfB6pyZtfqMDQ3NzfqTcJisficTqc3BI+8bxh9L8corarM3fnDoIT+rACAU/7m7MOfHbCEwQDQ2Njo6erqinqTOHfuXNjjiI23+ystZ8c7smmkWgVJcN++fRARfLDhlacEUqVEQ1nm77xPrHjSh/+Djo3WmN/s/6OHEOgIPr2h63tVuq5Dud1ukETWoK3zorkzTiiONn/TKlNM4lj24m+Pf13o2wOVHqGA5MsAXjKPrDaqnMvlQnjTzhy0Nlw0d5oI5p3yN62amrk+ve5B5+hXgb47WGX52+V3NgoFOvQKAGUkkTqcbZy5XC7XHYf4zEFr3aXU7jih5uidPPOtvsmzixZr8VMrHjBHddLsHj+Z9Fb/n9a1+T/JDaXey0IpEzEKkHnU8Jj79++PeEwSSimQRGP+Gz8j5DVFBVKQtjBj6JGlNt/D8Y+OpMdlTphiEqcB4tqtsVjfjUtLLkx0J/dOnjWPTg+lEARIEHwaQJVQIYggACC/qxi6rn8ZHL4XETSsf0MU1HOk/CFGYgAwskUqY5eBitRxzn7/a0V1EEBwdqkN6jPI7y4xPmHmC5unbWdQRMqP2d86qANOksU6gvmArNQRNClqABnQgYuK0krI+wCOAyH3DK/vqOXhaf3PAO7mIRjDNV25AAAAAElFTkSuQmCC'); bottom: 50px; right: 15px; } `;Mc(EZe);function qO(t){var r=t&&t.preventDefault||!1,e=t&&t.container||window,n={},i={keydown:{},keyup:{}},o={},a;for(a=97;a<=122;a++)o[String.fromCharCode(a)]={code:65+(a-97),shift:!1};for(a=65;a<=90;a++)o[String.fromCharCode(a)]={code:a,shift:!0};for(a=0;a<=9;a++)o[""+a]={code:48+a,shift:!1};for(a=1;a<=12;a++)o["F"+a]={code:111+a,shift:!1};for(a=0;a<=9;a++)o["num"+a]={code:96+a,shift:!1};o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var s=function(u){c(u,"keydown")},l=function(u){c(u,"keyup")},c=function(u,g){if(i[g][u.keyCode]!==void 0){for(var h=i[g][u.keyCode],d=0;d700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var 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={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=qO({container:window,preventDefault:!0}):this.keycharm=qO({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var n,i,o,a,s,l,c,u,g,h,d,f,C,v,A,I,p,m,b,_,S,E,T,L;ve(n=this.keycharm).call(n,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),ve(i=this.keycharm).call(i,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),ve(o=this.keycharm).call(o,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),ve(a=this.keycharm).call(a,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),ve(s=this.keycharm).call(s,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),ve(l=this.keycharm).call(l,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),ve(c=this.keycharm).call(c,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),ve(u=this.keycharm).call(u,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),ve(g=this.keycharm).call(g,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),ve(h=this.keycharm).call(h,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),ve(d=this.keycharm).call(d,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),ve(f=this.keycharm).call(f,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),ve(C=this.keycharm).call(C,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),ve(v=this.keycharm).call(v,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),ve(A=this.keycharm).call(A,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),ve(I=this.keycharm).call(I,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),ve(p=this.keycharm).call(p,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ve(m=this.keycharm).call(m,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ve(b=this.keycharm).call(b,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ve(_=this.keycharm).call(_,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ve(S=this.keycharm).call(S,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ve(E=this.keycharm).call(E,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ve(T=this.keycharm).call(T,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ve(L=this.keycharm).call(L,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),t}();function TZe(t,r){var e=typeof $s<"u"&&W1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=LZe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function LZe(t,r){var e;if(t){if(typeof t=="string")return QO(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return G1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QO(t,r)}}function QO(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n)}},{key:"onDoubleTap",value:function(e){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,n)}},{key:"onHold",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n),this.selectionHandler.generateClickEvent("hold",e,n)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var n=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,n)}},{key:"checkSelectionChanges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,n){var i=function(a,s){for(var l=[],c=0;c=a.minX&&g.x<=a.maxX&&g.y>=a.minY&&g.y<=a.maxY});Mt(s).call(s,function(u){return n.selectionHandler.selectObject(n.body.nodes[u])});var l=this.getPointer(e.center);this.selectionHandler.commitAndEmit(l,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var c=this.drag.selection;c&&c.length?(Mt(c).call(c,function(u){u.node.options.fixed.x=u.xFixed,u.node.options.fixed.y=u.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"))}}},{key:"onPinch",value:function(e){var n=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var i=this.pinch.scale*e.scale;this.zoom(i,n)}},{key:"zoom",value:function(e,n){if(this.options.zoomView===!0){var i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var a=this.body.view.translation,s=e/i,l=(1-s)*n.x+a.x*s,c=(1-s)*n.y+a.y*s;if(this.body.view.scale=e,this.body.view.translation={x:l,y:c},o!=null){var u=this.canvas.canvasToDOM(o);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),i0&&(this.popupObj=u[h[h.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var f=this.body.edgeIndices,C=this.body.edges,v,A=[],I=0;I0&&(this.popupObj=C[A[A.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==a&&(this.popup===void 0&&(this.popup=new oHe(this.canvas.frame)),this.popup.popupTargetType=l,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"))}},{key:"_checkHidePopup",value:function(e){var n=this.selectionHandler._pointerToPositionObject(e),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),i===!0)){var o=this.selectionHandler.getNodeAt(e);i=o===void 0?!1:o.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(n));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),OZe=St,JO=f$,TC=UI.getWeakData,xZe=GI,HZe=Qn,VZe=_c,lm=Pr,PZe=Y1,uX=K1,ex=_r,gX=U1,RZe=gX.set,DZe=gX.getterFor,NZe=uX.find,BZe=uX.findIndex,FZe=OZe([].splice),jZe=0,LC=function(t){return t.frozen||(t.frozen=new hX)},hX=function(){this.entries=[]},cm=function(t,r){return NZe(t.entries,function(e){return e[0]===r})};hX.prototype={get:function(t){var r=cm(this,t);if(r)return r[1]},has:function(t){return!!cm(this,t)},set:function(t,r){var e=cm(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=BZe(this.entries,function(e){return e[0]===t});return~r&&FZe(this.entries,r,1),!!~r}};var UZe={getConstructor:function(t,r,e,n){var i=t(function(l,c){xZe(l,o),RZe(l,{type:r,id:jZe++,frozen:void 0}),VZe(c)||PZe(c,l[n],{that:l,AS_ENTRIES:e})}),o=i.prototype,a=DZe(r),s=function(l,c,u){var g=a(l),h=TC(HZe(c),!0);return h===!0?LC(g).set(c,u):h[g.id]=u,l};return JO(o,{delete:function(l){var c=a(this);if(!lm(l))return!1;var u=TC(l);return u===!0?LC(c).delete(l):u&&ex(u,c.id)&&delete u[c.id]},has:function(c){var u=a(this);if(!lm(c))return!1;var g=TC(c);return g===!0?LC(u).has(c):g&&ex(g,u.id)}}),JO(o,e?{get:function(c){var u=a(this);if(lm(c)){var g=TC(c);return g===!0?LC(u).get(c):g?g[u.id]:void 0}},set:function(c,u){return s(this,c,u)}}:{add:function(c){return s(this,c,!0)}}),i}},GZe=tY,tx=Yt,Z5=St,rx=f$,WZe=UI,ZZe=d$,dX=UZe,kC=Pr,OC=U1.enforce,KZe=yt,YZe=LW,Yf=Object,XZe=Array.isArray,xC=Yf.isExtensible,fX=Yf.isFrozen,qZe=Yf.isSealed,CX=Yf.freeze,QZe=Yf.seal,nx={},ix={},JZe=!tx.ActiveXObject&&"ActiveXObject"in tx,nh,vX=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},AX=ZZe("WeakMap",vX,dX),v2=AX.prototype,K5=Z5(v2.set),eKe=function(){return GZe&&KZe(function(){var t=CX([]);return K5(new AX,t,1),!fX(t)})};if(YZe)if(JZe){nh=dX.getConstructor(vX,"WeakMap",!0),WZe.enable();var ox=Z5(v2.delete),HC=Z5(v2.has),ax=Z5(v2.get);rx(v2,{delete:function(t){if(kC(t)&&!xC(t)){var r=OC(this);return r.frozen||(r.frozen=new nh),ox(this,t)||r.frozen.delete(t)}return ox(this,t)},has:function(r){if(kC(r)&&!xC(r)){var e=OC(this);return e.frozen||(e.frozen=new nh),HC(this,r)||e.frozen.has(r)}return HC(this,r)},get:function(r){if(kC(r)&&!xC(r)){var e=OC(this);return e.frozen||(e.frozen=new nh),HC(this,r)?ax(this,r):e.frozen.get(r)}return ax(this,r)},set:function(r,e){if(kC(r)&&!xC(r)){var n=OC(this);n.frozen||(n.frozen=new nh),HC(this,r)?K5(this,r,e):n.frozen.set(r,e)}else K5(this,r,e);return this}})}else eKe()&&rx(v2,{set:function(r,e){var n;return XZe(r)&&(fX(r)?n=nx:qZe(r)&&(n=ix)),K5(this,r,e),n===nx&&CX(r),n===ix&&QZe(r),this}});var tKe=_t,rKe=tKe.WeakMap,nKe=rKe,iKe=nKe,oKe=iKe,jh=Oe(oKe);function Jt(t,r,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?t!==r||!n:!r.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(t):n?n.value:r.get(t)}function S7(t,r,e,n,i){if(typeof r=="function"?t!==r||!i:!r.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r.set(t,e),e}function T7(t,r){var e=typeof $s<"u"&&W1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=aKe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function aKe(t,r){var e;if(t){if(typeof t=="string")return sx(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return G1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sx(t,r)}}function sx(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&arguments[0]!==void 0?arguments[0]:function(){};pe(this,t),Ps.set(this,new cx),Rs.set(this,new cx),Y5.set(this,void 0),S7(this,Y5,r)}return me(t,[{key:"sizeNodes",get:function(){return Jt(this,Ps,"f").size}},{key:"sizeEdges",get:function(){return Jt(this,Rs,"f").size}},{key:"getNodes",value:function(){return Jt(this,Ps,"f").getSelection()}},{key:"getEdges",value:function(){return Jt(this,Rs,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=Jt(this,Ps,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=Jt(this,Rs,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){Jt(this,Ps,"f").delete(e)}},{key:"deleteEdges",value:function(e){Jt(this,Rs,"f").delete(e)}},{key:"clear",value:function(){Jt(this,Ps,"f").clear(),Jt(this,Rs,"f").clear()}},{key:"commit",value:function(){for(var e,n,i={nodes:Jt(this,Ps,"f").commit(),edges:Jt(this,Rs,"f").commit()},o=arguments.length,a=new Array(o),s=0;s=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function lKe(t,r){var e;if(t){if(typeof t=="string")return gx(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return G1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gx(t,r)}}function gx(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(n,i);if(a===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}o!==void 0&&(s.previousSelection=o),e=="click"&&(s.items=this.getClickedItems(i)),n.controlEdge!==void 0&&(s.controlEdge=n.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof ki){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,hr(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],i=this.body.nodes,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(i);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var i=this.body.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),o=10,a=null,s=this.body.edges,l=0;l0&&(this.generateClickEvent("deselectEdge",n,e,a),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,a),i=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),i=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),i=!0),i===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return Mn(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Mn(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=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((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var i=ux(e.nodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.body.nodes[a];if(!s)throw new RangeError('Node with id "'+a+'" not found');this.selectObject(s,n.highlightEdges)}}catch(h){i.e(h)}finally{i.f()}}if(e.edges){var l=ux(e.edges),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=this.body.edges[u];if(!g)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(g)}}catch(h){l.e(h)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=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:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),i=[],o=this.body.nodeIndices,a=this.body.nodes,s=o.length-1;s>=0;s--){var l=a[o[s]],c=l.getItemsOnPoint(n);i.push.apply(i,c)}for(var u=this.body.edgeIndices,g=this.body.edges,h=u.length-1;h>=0;h--){var d=g[u[h]],f=d.getItemsOnPoint(n);i.push.apply(i,f)}return i}}]),t}();function IX(t){var r=uKe();return function(){var n=He(t),i;if(r){var o=He(this).constructor;i=re(n,arguments,o)}else i=n.apply(this,arguments);return Dt(this,i)}}function uKe(){if(typeof Reflect>"u"||!re||re.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(re(Boolean,[],function(){})),!0}catch{return!1}}var pX=function(){function t(){pe(this,t)}return me(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,i),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),gKe=function(t){Tt(e,t);var r=IX(e);function e(n){var i;return pe(this,e),i=r.call(this),i.layout=n,i}return me(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.x=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(i){d1(i).call(i,function(o,a){return o.x-a.x})}},{key:"fix",value:function(i,o){i.y=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.y=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].x+=o}}]),e}(pX),hKe=function(t){Tt(e,t);var r=IX(e);function e(n){var i;return pe(this,e),i=r.call(this),i.layout=n,i}return me(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.y=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(i){d1(i).call(i,function(o,a){return o.y-a.y})}},{key:"fix",value:function(i,o){i.x=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.x=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].y+=o}}]),e}(pX),dKe=xe,fKe=K1.every,CKe=cg,vKe=CKe("every");dKe({target:"Array",proto:!0,forced:!vKe},{every:function(r){return fKe(this,r,arguments.length>1?arguments[1]:void 0)}});var AKe=Rr,IKe=AKe("Array").every,pKe=Cr,mKe=IKe,um=Array.prototype,yKe=function(t){var r=t.every;return t===um||pKe(um,t)&&r===um.every?mKe:r},bKe=yKe,wKe=bKe,$Ke=wKe,mX=Oe($Ke);function _Ke(t,r){var e=typeof $s<"u"&&W1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=MKe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function MKe(t,r){var e;if(t){if(typeof t=="string")return hx(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return G1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hx(t,r)}}function hx(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=r[o])&&(r[o]=r[i]+1)}),r}function EKe(t){return yX(function(r){var e,n;return mX(e=jr(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.to===r})},function(r,e){return e>r},"from",t)}function SKe(t){return yX(function(r){var e,n;return mX(e=jr(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.from===r})},function(r,e){return ea)return{v:{v:zKe(n,o)}};++I},b;p=A.pop();)if(b=m(),b!==0&&b)return b.v},h;for(c.s();!(u=c.n()).done;)if(h=g(),h!==0&&h)return h.v}catch(d){c.e(d)}finally{c.f()}return o}var TKe=function(){function t(){pe(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return me(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,i={},o=function a(s){if(i[s]!==void 0)return i[s];var l=n.levels[s];if(n.childrenReference[s]){var c=n.childrenReference[s];if(c.length>0)for(var u=0;u0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),tr(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=jI(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):dt(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var 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{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(i=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:i,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,i=0;il){for(var u=e.length;e.length>l&&s<=a;){s+=1;var g=e.length;s%3===0?this.body.modules.clustering.clusterBridges(c):this.body.modules.clustering.clusterOutliers(c);var h=e.length;if(g==h&&s%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)})}s>a&&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();for(var d=70,f=0;f0){var e,n,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new TKe;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(i=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!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(o===!0){var a=this.options.hierarchical.sortMethod;a==="hubsize"?this._determineLevelsByHubsize():a==="directed"?this._determineLevelsDirected():a==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,i={},o=function(){for(var p=s(),m=0,b=0;b0)for(var _=0;_1&&arguments[1]!==void 0?arguments[1]:1e9,b=1e9,_=1e9,S=1e9,E=-1e9;for(var T in p)if(Object.prototype.hasOwnProperty.call(p,T)){var L=e.body.nodes[T],H=e.hierarchical.levels[L.id],P=e.direction.getPosition(L),R=e._getSpaceAroundNode(L,p),N=pt(R,2),U=N[0],F=N[1];b=Math.min(U,b),_=Math.min(F,_),H<=m&&(S=Math.min(P,S),E=Math.max(P,E))}return[S,E,b,_]},u=function(p,m){var b=e.hierarchical.getMaxLevel(p.id),_=e.hierarchical.getMaxLevel(m.id);return Math.min(b,_)},g=function(p,m,b){for(var _=e.hierarchical,S=0;S1)for(var L=0;L2&&arguments[2]!==void 0?arguments[2]:!1,_=e.direction.getPosition(p),S=e.direction.getPosition(m),E=Math.abs(S-_),T=e.options.hierarchical.nodeSpacing;if(E>T){var L={},H={};l(p,L),l(m,H);var P=u(p,m),R=c(L,P),N=c(H,P),U=R[1],F=N[0],K=N[2],te=Math.abs(U-F);if(te>T){var Me=U-F+T;Me<-K+T&&(Me=-K+T),Me<0&&(e._shiftBlock(m.id,Me),n=!0,b===!0&&e._centerParent(m))}}},d=function(p,m){for(var b=m.id,_=m.edges,S=e.hierarchical.levels[m.id],E=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,T={},L=[],H=0;H<_.length;H++){var P=_[H];if(P.toId!=P.fromId){var R=P.toId==b?P.from:P.to;T[_[H].id]=R,e.hierarchical.levels[R.id]0?ae=Math.min(X,ft-e.options.hierarchical.nodeSpacing):X<0&&(ae=-Math.min(-X,ot-e.options.hierarchical.nodeSpacing)),ae!=0&&(e._shiftBlock(m.id,ae),n=!0)},te=function(De){var we=e.direction.getPosition(m),Ne=e._getSpaceAroundNode(m),Ue=pt(Ne,2),ot=Ue[0],ft=Ue[1],X=De-we,ae=we;X>0?ae=Math.min(we+(ft-e.options.hierarchical.nodeSpacing),De):X<0&&(ae=Math.max(we-(ot-e.options.hierarchical.nodeSpacing),De)),ae!==we&&(e.direction.setPosition(m,ae),n=!0)},Me=F(p,L);K(Me),Me=F(p,_),te(Me)},f=function(p){var m=e.hierarchical.getLevels();m=Pl(m).call(m);for(var b=0;b0&&Math.abs(f)0&&(u=this.direction.getPosition(o[s-1])+c),this.direction.setPosition(l,u,n),this._validatePositionAndContinue(l,n,u),a++}}}}},{key:"_placeBranchNodes",value:function(e,n){var i,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var a=[],s=0;sn&&this.positionedNodes[c.id]===void 0){var g=this.options.hierarchical.nodeSpacing,h=void 0;l===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(a[l-1])+g,this.direction.setPosition(c,h,u),this._validatePositionAndContinue(c,u,h)}else return}var d=this._getCenterPosition(a);this.direction.setPosition(this.body.nodes[e],d,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(i-oe.hierarchical.levels[o.id]&&e.hierarchical.addRelation(o.id,a.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},a=function h(d,f){if(o[d.id]===void 0){e.hierarchical.setTreeIndex(d,f),o[d.id]=!0;for(var C,v=e._getActiveEdges(d),A=0;A({key:e,color:n.color,capitalize:BKe.includes(e)})),fileTypeShow:t,toggleFileType:r}}const{isDark:jKe}=pf(),fx=j(()=>({nodes:{shape:"dot",size:16,font:{color:jKe.value?"#fff":"#000",multi:"html"}},interaction:{hover:!0},physics:{maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:$X})),Uh=j({get:()=>dr.value.graphSettings,set:t=>{dr.value.graphSettings=t}});Ke(Uh,()=>{S$()},{deep:!0});const M$=G("");nU(M$,()=>{S$()},{debounce:350});const z$=G(""),zu=new Mu([]),Eu=new Mu([]),E$=Bi([]),_X=new Map,Aa=new Map,tu=new Map,UKe=t=>t.reduce((r,e)=>(r.some(n=>n.id===e.id)||r.push(e),r),[]),MX=t=>t.reduce((r,e)=>(r.some(n=>n.from===e.from&&n.to===e.to)||r.push(e),r),[]);function GKe(){E$.value=[],_X.clear(),zu.clear(),Eu.clear(),Aa.clear(),tu.clear()}function Su(t){const r=t.id.includes("node_modules");return!(!Uh.value.node_modules&&r||!Uh.value.virtual&&t.virtual&&!r||!Uh.value.lib&&!t.id.includes(z$.value)&&!t.virtual)}function zX(t){const r=tu.get(t);return r?r.some(e=>Su(e.mod)):!0}const WKe=/(?:.*\/){3}([^/]+$)/;function S$(){zu.clear(),Eu.clear(),XKe();const t=[],r=[],e=[],n=QKe();(n?n.slice():E$.value.slice()).forEach(({node:a,edges:s,mod:l})=>{Su(l)&&zX(l.id)&&(t.push(a),r.push({id:l.id.match(WKe)?.[0]??l.id,fullId:l.id,node:a,edges:s,deps:l.deps}),e.push(...s))});const o=M$.value;if(o.trim().length){const a=r.filter(({id:s})=>s.includes(o));if(e.length=0,t.length=0,a.length){const{node:s,edges:l}=ZKe(a);t.push(...s),e.push(...l)}}zu.add(UKe(t)),Eu.add(MX(e))}function ZKe(t){const r=new Map,e=new Map;return t.forEach(n=>{n=fv(n),n.node.font||(n.node.font={color:"#F19B4A"}),n.node.label=`${n.node.label}`,r.set(n.fullId,n.node),n.deps.forEach(i=>{const o=Aa.get(i);o&&Su(o.mod)&&(r.set(o.mod.id,o.node),e.set(`${n.fullId}-${o.mod.id}`,L7(o.mod.id,n.fullId)),o.edges.forEach(a=>e.set(`${a.from}-${a.to}`,a)))})}),{node:Array.from(r.values()),edges:Array.from(e.values())}}function L7(t,r){return{from:t,to:r,arrows:{to:{enabled:!0,scaleFactor:.8}}}}function T$(t){return t.replace(/\?.*$/,"").replace(/#.*$/,"").replace(/\/{2,}/g,"/")}function EX(t){return t.includes("vue&type=style")}function k7(t){return t.replace(z$.value,"")}function Cx(t){return 15+Math.min(t/2,8)}function vx(t,r){const e=[];return t.forEach(n=>{EX(n)||(n=T$(n),!e.includes(n)&&(e.push(n),r?.(n)))}),e}function KKe(t,r){if(!t)return;z$.value=r,zu.clear(),Eu.clear();const e=[],n=[];t.forEach(i=>{if(EX(i.id))return;if(i.id=T$(i.id),n.some(g=>g.id===i.id)){const g=Aa.get(i.id);g.node.size=Cx(g.edges.length+i.deps.length);const h=[],f=vx(i.deps,C=>{h.push(L7(i.id,C))}).filter(C=>!g.mod.deps.includes(C));if(!f.length)return;g.mod.deps.push(...f),e.push(...h);return}const o=i.id,s=o.split("/").at(-1)??"",l=k7(o),c={mod:i,info:{displayName:s,displayPath:l},node:{id:i.id,label:s,group:o.match(/\.(\w+)$/)?.[1]||"unknown",size:Cx(i.deps.length),shape:i.id.includes("/node_modules/")?"hexagon":i.virtual?"diamond":"dot"},edges:[]},u=vx(i.deps,g=>{c.edges.push(L7(i.id,g)),tu.has(g)||tu.set(g,[]);const h=tu.get(g),d=k7(o);h.find(C=>C.path===o&&C.displayPath===d&&C.mod.id===i.id)||h.push({path:o,displayPath:d,mod:i})});i.deps=u,E$.value.push(c),_X.set(i.id,c),Aa.set(i.id,c),Su(i)&&zX(i.id)&&(n.push(c.node),e.push(...c.edges))}),zu.add(n.slice()),Eu.add(MX(e))}const SX=G(),[YKe,O7]=Bb(!1);function XKe(){O7(!1)}function qKe(t){const r=Aa.get(t);if(!r)return;const e=r.mod.deps.reduce((o,a)=>{const s=Aa.get(a);return s&&Su(s.mod)&&o.push({path:a,displayPath:k7(T$(a))}),o},[]),i=(tu.get(r.mod.id)||[]).reduce((o,a)=>{const s=Aa.get(a.path);return s&&Su(s.mod)&&o.push({path:a.path,displayPath:a.displayPath}),o},[]);SX.value={name:r.info.displayName,displayPath:r.info.displayPath,path:r.mod.id,deps:e,refs:i}}const Tu=G("");Ke(Tu,()=>{S$()});function QKe(){const t=Tu.value;return Tu.value=t,!t||!Aa.get(t)?null:TX(t)}function TX(t,r=0){const e=Aa.get(t);if(r+=1,!e||r>20)return[];const n=[e];return e.mod.deps.forEach(i=>{const o=Aa.get(i);o&&n.push(...TX(o.mod.id,r))}),n.reduce((i,o)=>(i.some(a=>a.mod.id===o.mod.id)||i.push(o),i),[])}const JKe={class:"w-300px","h-full":"","of-auto":""},eYe={"text-md":"","h-80px":"","border-b":"","border-base":"",p3:"",flex:"~ col gap1"},tYe={"text-lg":"",flex:"~ gap2 items-center"},rYe={key:0,"i-material-symbols-check-small":"","text-primary-500":""},nYe=["title"],iYe={pb2:"","text-gray-500":""},oYe={"text-primary-500":""},aYe={flex:"~ col gap2 items-start"},sYe=["onClick"],lYe={p3:""},Ax=1500,cYe=ce({__name:"GraphDrawer",props:{top:{}},setup(t){const r=SX,e=YKe,n=Tu,i=ji(),o=g=>{if(i.vitePluginDetected.value&&nI.value){vd(g);return}c(g)},{copy:a,isSupported:s,copied:l}=sU({copiedDuring:Ax});function c(g){a(g),b8({message:"Copied to clipboard",type:"success",duration:Ax})}const u=[["refs","references"],["deps","dependencies"]];return(g,h)=>(M(),oe(y(rG),{modelValue:y(e),"onUpdate:modelValue":h[3]||(h[3]=d=>Je(e)?e.value=d:null),top:g.top,"close-outside":!1,permanent:!0,"content-blur":!0,position:"absolute","mount-to":".graph-body"},{default:Y(()=>[w("div",JKe,[w("div",eYe,[w("span",tYe,[ze(Se(y(r)?.name)+" ",1),y(l)?(M(),k("span",rYe)):y(r)?(M(),k("span",{key:1,hover:"op-100","i-carbon-copy":"","cursor-pointer":"","text-sm":"","op-50":"",class:Le({"text-gray-200":!y(s)}),onClick:h[0]||(h[0]=d=>c(y(r).name))},null,2)):ie("",!0)]),w("button",{hover:"underline",truncate:"","text-left":"","text-gray-500":"",title:y(r)?.displayPath,onClick:h[1]||(h[1]=d=>o(y(r).path))},Se(y(r)?.displayPath),9,nYe)]),(M(),k(Te,null,It(u,([d,f])=>w("div",{key:d,"max-h-60":"","of-auto":"","border-b":"","border-base":"",p3:"","text-sm":""},[w("div",iYe,[w("span",oYe,Se(y(r)?.[d].length),1),ze(" "+Se(f),1)]),w("div",aYe,[(M(!0),k(Te,null,It(y(r)?.[d],C=>(M(),k("button",{key:C.path,dark:"text-gray-200","of-hidden":"",truncate:"","ws-nowrap":"","pr-3":"","text-gray-800":"",hover:"underline",onClick:v=>o(C.path)},Se(C.displayPath),9,sYe))),128))])])),64)),w("div",lYe,[D(y(ct),{type:"primary",onClick:h[2]||(h[2]=d=>n.value=y(r).path)},{default:Y(()=>h[4]||(h[4]=[ze(" Filter to this module ")])),_:1})])])]),_:1},8,["modelValue","top"]))}}),uYe=ce({__name:"GraphFileType",setup(t){const{fileTypeData:r,fileTypeShow:e,toggleFileType:n}=FKe();return(i,o)=>(M(),k("div",{absolute:"","bottom-0":"",grid:"","grid-cols-3":"","w-260px":"","gap-2":"","b-1":"","b-l-0":"","border-base":"","rounded-tr-lg":"",px4:"",py2:"","text-sm":"","transition-transform":"","duration-300":"","glass-effect":"",class:Le(["group",{"translate-x-[calc(-100%+30px)] translate-y-[calc(100%-30px)]":!y(e)}])},[w("div",{class:Le(["group",{"rounded-bl-lg opacity-0 group-hover:opacity-100":y(e)}]),absolute:"","right-0":"",h30px:"",w30px:"","cursor-pointer":"","rounded-tr-lg":"","bg-primary-500":"","text-white":"","transition-opacity":"",flex:"~ justify-center items-center",onClick:o[0]||(o[0]=()=>y(n)())},[w("div",{"transition-transform":"",class:Le([y(e)?"i-material-symbols-arrow-downward-alt rotate-45 hover:translate-x--10% hover:translate-y-10%":"i-mdi-file-outline"])},null,2)],2),(M(!0),k(Te,null,It(y(r),a=>(M(),k("div",{key:a.key,flex:"","items-center":"","gap-2":""},[w("div",{h12px:"",w12px:"","rounded-full":"",style:kr({backgroundColor:a.color})},null,4),w("span",{class:Le([a.capitalize?"capitalize":"uppercase"])},Se(a.key),3)]))),128))],2))}}),gYe={flex:"~ items-center gap-4 nowrap",class:"[&_>*]:flex-[0_0_auto]",absolute:"","left-0":"","top-0":"","z-10":"","navbar-base":"","w-full":"","overflow-x-auto":"",px4:"","text-sm":"","glass-effect":""},hYe=ce({__name:"GraphNavbar",setup(t){const r=M$,e=Uh,n=[["node_modules"],["virtual","virtual module"],["lib","library module"]],i=Tu;return(o,a)=>(M(),k("div",gYe,[D(y(Fi),{modelValue:y(r),"onUpdate:modelValue":a[0]||(a[0]=s=>Je(r)?r.value=s:null),placeholder:"Search modules..."},null,8,["modelValue"]),(M(),k(Te,null,It(n,s=>w("div",{key:s[0],flex:"~ gap-2 items-center"},[D(y(p2),{modelValue:y(e)[s[0]],"onUpdate:modelValue":l=>y(e)[s[0]]=l},null,8,["modelValue","onUpdate:modelValue"]),w("span",{class:Le({"text-gray-400 dark:text-gray-600":!y(e)[s[0]]})},"Show "+Se(s[1]??s[0]),3)])),64)),a[3]||(a[3]=w("div",{"flex-auto":""},null,-1)),y(i)?(M(),k("button",{key:0,"rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:a[1]||(a[1]=s=>i.value="")},a[2]||(a[2]=[ze(" Clear filter "),w("div",{"i-carbon-close":"",mb2px:""},null,-1)]))):ie("",!0)]))}});/** * vis-data * http://visjs.org/ * * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data. * * @version 7.1.9 * @date 2023-11-24T17:53:34.179Z * * @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. */function YI(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var dm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var LX={exports:{}},VC=function(t){return t&&t.Math===Math&&t},vr=VC(typeof globalThis=="object"&&globalThis)||VC(typeof window=="object"&&window)||VC(typeof self=="object"&&self)||VC(typeof dm=="object"&&dm)||function(){return this}()||dm||Function("return this")(),Nt=function(t){try{return!!t()}catch{return!0}},dYe=Nt,Xf=!dYe(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),fYe=Xf,kX=Function.prototype,Ix=kX.apply,px=kX.call,Cg=typeof Reflect=="object"&&Reflect.apply||(fYe?px.bind(Ix):function(){return px.apply(Ix,arguments)}),OX=Xf,xX=Function.prototype,x7=xX.call,CYe=OX&&xX.bind.bind(x7,x7),cr=OX?CYe:function(t){return function(){return x7.apply(t,arguments)}},HX=cr,vYe=HX({}.toString),AYe=HX("".slice),q1=function(t){return AYe(vYe(t),8,-1)},IYe=q1,pYe=cr,VX=function(t){if(IYe(t)==="Function")return pYe(t)},H7=typeof document=="object"&&document.all,mYe=typeof H7>"u"&&H7!==void 0,PX={all:H7,IS_HTMLDDA:mYe},RX=PX,yYe=RX.all,zr=RX.IS_HTMLDDA?function(t){return typeof t=="function"||t===yYe}:function(t){return typeof t=="function"},kc={},bYe=Nt,vn=!bYe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),wYe=Xf,PC=Function.prototype.call,An=wYe?PC.bind(PC):function(){return PC.apply(PC,arguments)},XI={},DX={}.propertyIsEnumerable,NX=Object.getOwnPropertyDescriptor,$Ye=NX&&!DX.call({1:2},1);XI.f=$Ye?function(r){var e=NX(this,r);return!!e&&e.enumerable}:DX;var Oc=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}},_Ye=cr,MYe=Nt,zYe=q1,fm=Object,EYe=_Ye("".split),qI=MYe(function(){return!fm("z").propertyIsEnumerable(0)})?function(t){return zYe(t)==="String"?EYe(t,""):fm(t)}:fm,vg=function(t){return t==null},SYe=vg,TYe=TypeError,L$=function(t){if(SYe(t))throw new TYe("Can't call method on "+t);return t},LYe=qI,kYe=L$,ka=function(t){return LYe(kYe(t))},mx=zr,BX=PX,OYe=BX.all,En=BX.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:mx(t)||t===OYe}:function(t){return typeof t=="object"?t!==null:mx(t)},Ar={},Cm=Ar,vm=vr,xYe=zr,yx=function(t){return xYe(t)?t:void 0},Jn=function(t,r){return arguments.length<2?yx(Cm[t])||yx(vm[t]):Cm[t]&&Cm[t][r]||vm[t]&&vm[t][r]},HYe=cr,Kr=HYe({}.isPrototypeOf),Q1=typeof navigator<"u"&&String(navigator.userAgent)||"",FX=vr,Am=Q1,bx=FX.process,wx=FX.Deno,$x=bx&&bx.versions||wx&&wx.version,_x=$x&&$x.v8,bo,fA;_x&&(bo=_x.split("."),fA=bo[0]>0&&bo[0]<4?1:+(bo[0]+bo[1]));!fA&&Am&&(bo=Am.match(/Edge\/(\d+)/),(!bo||bo[1]>=74)&&(bo=Am.match(/Chrome\/(\d+)/),bo&&(fA=+bo[1])));var Ag=fA,Mx=Ag,VYe=Nt,PYe=vr,RYe=PYe.String,Ig=!!Object.getOwnPropertySymbols&&!VYe(function(){var t=Symbol("symbol detection");return!RYe(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Mx&&Mx<41}),DYe=Ig,jX=DYe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",NYe=Jn,BYe=zr,FYe=Kr,jYe=jX,UYe=Object,qf=jYe?function(t){return typeof t=="symbol"}:function(t){var r=NYe("Symbol");return BYe(r)&&FYe(r.prototype,UYe(t))},GYe=String,pg=function(t){try{return GYe(t)}catch{return"Object"}},WYe=zr,ZYe=pg,KYe=TypeError,bi=function(t){if(WYe(t))return t;throw new KYe(ZYe(t)+" is not a function")},YYe=bi,XYe=vg,k$=function(t,r){var e=t[r];return XYe(e)?void 0:YYe(e)},Im=An,pm=zr,mm=En,qYe=TypeError,QYe=function(t,r){var e,n;if(r==="string"&&pm(e=t.toString)&&!mm(n=Im(e,t))||pm(e=t.valueOf)&&!mm(n=Im(e,t))||r!=="string"&&pm(e=t.toString)&&!mm(n=Im(e,t)))return n;throw new qYe("Can't convert object to primitive value")},UX={exports:{}},JYe=!0,zx=vr,eXe=Object.defineProperty,tXe=function(t,r){try{eXe(zx,t,{value:r,configurable:!0,writable:!0})}catch{zx[t]=r}return r},rXe=vr,nXe=tXe,Ex="__core-js_shared__",iXe=rXe[Ex]||nXe(Ex,{}),O$=iXe,Sx=O$;(UX.exports=function(t,r){return Sx[t]||(Sx[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var mg=UX.exports,oXe=L$,aXe=Object,wi=function(t){return aXe(oXe(t))},sXe=cr,lXe=wi,cXe=sXe({}.hasOwnProperty),Yr=Object.hasOwn||function(r,e){return cXe(lXe(r),e)},uXe=cr,gXe=0,hXe=Math.random(),dXe=uXe(1 .toString),QI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+dXe(++gXe+hXe,36)},fXe=vr,CXe=mg,Tx=Yr,vXe=QI,AXe=Ig,IXe=jX,z2=fXe.Symbol,ym=CXe("wks"),pXe=IXe?z2.for||z2:z2&&z2.withoutSetter||vXe,Ir=function(t){return Tx(ym,t)||(ym[t]=AXe&&Tx(z2,t)?z2[t]:pXe("Symbol."+t)),ym[t]},mXe=An,Lx=En,kx=qf,yXe=k$,bXe=QYe,wXe=Ir,$Xe=TypeError,_Xe=wXe("toPrimitive"),MXe=function(t,r){if(!Lx(t)||kx(t))return t;var e=yXe(t,_Xe),n;if(e){if(r===void 0&&(r="default"),n=mXe(e,t,r),!Lx(n)||kx(n))return n;throw new $Xe("Can't convert object to primitive value")}return r===void 0&&(r="number"),bXe(t,r)},zXe=MXe,EXe=qf,JI=function(t){var r=zXe(t,"string");return EXe(r)?r:r+""},SXe=vr,Ox=En,V7=SXe.document,TXe=Ox(V7)&&Ox(V7.createElement),x$=function(t){return TXe?V7.createElement(t):{}},LXe=vn,kXe=Nt,OXe=x$,GX=!LXe&&!kXe(function(){return Object.defineProperty(OXe("div"),"a",{get:function(){return 7}}).a!==7}),xXe=vn,HXe=An,VXe=XI,PXe=Oc,RXe=ka,DXe=JI,NXe=Yr,BXe=GX,xx=Object.getOwnPropertyDescriptor;kc.f=xXe?xx:function(r,e){if(r=RXe(r),e=DXe(e),BXe)try{return xx(r,e)}catch{}if(NXe(r,e))return PXe(!HXe(VXe.f,r,e),r[e])};var FXe=Nt,jXe=zr,UXe=/#|\.prototype\./,Qf=function(t,r){var e=WXe[GXe(t)];return e===KXe?!0:e===ZXe?!1:jXe(r)?FXe(r):!!r},GXe=Qf.normalize=function(t){return String(t).replace(UXe,".").toLowerCase()},WXe=Qf.data={},ZXe=Qf.NATIVE="N",KXe=Qf.POLYFILL="P",WX=Qf,Hx=VX,YXe=bi,XXe=Xf,qXe=Hx(Hx.bind),J1=function(t,r){return YXe(t),r===void 0?t:XXe?qXe(t,r):function(){return t.apply(r,arguments)}},$i={},QXe=vn,JXe=Nt,ZX=QXe&&JXe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),eqe=En,tqe=String,rqe=TypeError,Ui=function(t){if(eqe(t))return t;throw new rqe(tqe(t)+" is not an object")},nqe=vn,iqe=GX,oqe=ZX,RC=Ui,Vx=JI,aqe=TypeError,bm=Object.defineProperty,sqe=Object.getOwnPropertyDescriptor,wm="enumerable",$m="configurable",_m="writable";$i.f=nqe?oqe?function(r,e,n){if(RC(r),e=Vx(e),RC(n),typeof r=="function"&&e==="prototype"&&"value"in n&&_m in n&&!n[_m]){var i=sqe(r,e);i&&i[_m]&&(r[e]=n.value,n={configurable:$m in n?n[$m]:i[$m],enumerable:wm in n?n[wm]:i[wm],writable:!1})}return bm(r,e,n)}:bm:function(r,e,n){if(RC(r),e=Vx(e),RC(n),iqe)try{return bm(r,e,n)}catch{}if("get"in n||"set"in n)throw new aqe("Accessors not supported");return"value"in n&&(r[e]=n.value),r};var lqe=vn,cqe=$i,uqe=Oc,_s=lqe?function(t,r,e){return cqe.f(t,r,uqe(1,e))}:function(t,r,e){return t[r]=e,t},DC=vr,gqe=Cg,hqe=VX,dqe=zr,fqe=kc.f,Cqe=WX,t2=Ar,vqe=J1,r2=_s,Px=Yr,Aqe=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return gqe(t,this,arguments)};return r.prototype=t.prototype,r},Xe=function(t,r){var e=t.target,n=t.global,i=t.stat,o=t.proto,a=n?DC:i?DC[e]:(DC[e]||{}).prototype,s=n?t2:t2[e]||r2(t2,e,{})[e],l=s.prototype,c,u,g,h,d,f,C,v,A;for(h in r)c=Cqe(n?h:e+(i?".":"#")+h,t.forced),u=!c&&a&&Px(a,h),f=s[h],u&&(t.dontCallGetSet?(A=fqe(a,h),C=A&&A.value):C=a[h]),d=u&&C?C:r[h],!(u&&typeof f==typeof d)&&(t.bind&&u?v=vqe(d,DC):t.wrap&&u?v=Aqe(d):o&&dqe(d)?v=hqe(d):v=d,(t.sham||d&&d.sham||f&&f.sham)&&r2(v,"sham",!0),r2(s,h,v),o&&(g=e+"Prototype",Px(t2,g)||r2(t2,g,{}),r2(t2[g],h,d),t.real&&l&&(c||!l[h])&&r2(l,h,d)))},Iqe=Xe,pqe=vn,Rx=$i.f;Iqe({target:"Object",stat:!0,forced:Object.defineProperty!==Rx,sham:!pqe},{defineProperty:Rx});var mqe=Ar,KX=mqe.Object,yqe=LX.exports=function(r,e,n){return KX.defineProperty(r,e,n)};KX.defineProperty.sham&&(yqe.sham=!0);var bqe=LX.exports,wqe=bqe,YX=wqe,$qe=YX,_qe=$qe,Mqe=_qe,zqe=Mqe,XX=zqe,e4=nt(XX),Eqe=q1,el=Array.isArray||function(r){return Eqe(r)==="Array"},Sqe=Math.ceil,Tqe=Math.floor,Lqe=Math.trunc||function(r){var e=+r;return(e>0?Tqe:Sqe)(e)},kqe=Lqe,t4=function(t){var r=+t;return r!==r||r===0?0:kqe(r)},Oqe=t4,xqe=Math.min,Hqe=function(t){return t>0?xqe(Oqe(t),9007199254740991):0},Vqe=Hqe,Gi=function(t){return Vqe(t.length)},Pqe=TypeError,Rqe=9007199254740991,r4=function(t){if(t>Rqe)throw Pqe("Maximum allowed index exceeded");return t},Dqe=JI,Nqe=$i,Bqe=Oc,yg=function(t,r,e){var n=Dqe(r);n in t?Nqe.f(t,n,Bqe(0,e)):t[n]=e},Fqe=Ir,jqe=Fqe("toStringTag"),qX={};qX[jqe]="z";var H$=String(qX)==="[object z]",Uqe=H$,Gqe=zr,X5=q1,Wqe=Ir,Zqe=Wqe("toStringTag"),Kqe=Object,Yqe=X5(function(){return arguments}())==="Arguments",Xqe=function(t,r){try{return t[r]}catch{}},Ms=Uqe?X5:function(t){var r,e,n;return t===void 0?"Undefined":t===null?"Null":typeof(e=Xqe(r=Kqe(t),Zqe))=="string"?e:Yqe?X5(r):(n=X5(r))==="Object"&&Gqe(r.callee)?"Arguments":n},qqe=cr,Qqe=zr,P7=O$,Jqe=qqe(Function.toString);Qqe(P7.inspectSource)||(P7.inspectSource=function(t){return Jqe(t)});var QX=P7.inspectSource,eQe=cr,tQe=Nt,JX=zr,rQe=Ms,nQe=Jn,iQe=QX,eq=function(){},oQe=[],tq=nQe("Reflect","construct"),V$=/^\s*(?:class|function)\b/,aQe=eQe(V$.exec),sQe=!V$.test(eq),ih=function(r){if(!JX(r))return!1;try{return tq(eq,oQe,r),!0}catch{return!1}},rq=function(r){if(!JX(r))return!1;switch(rQe(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return sQe||!!aQe(V$,iQe(r))}catch{return!0}};rq.sham=!0;var n4=!tq||tQe(function(){var t;return ih(ih.call)||!ih(Object)||!ih(function(){t=!0})||t})?rq:ih,Dx=el,lQe=n4,cQe=En,uQe=Ir,gQe=uQe("species"),Nx=Array,hQe=function(t){var r;return Dx(t)&&(r=t.constructor,lQe(r)&&(r===Nx||Dx(r.prototype))?r=void 0:cQe(r)&&(r=r[gQe],r===null&&(r=void 0))),r===void 0?Nx:r},dQe=hQe,i4=function(t,r){return new(dQe(t))(r===0?0:r)},fQe=Nt,CQe=Ir,vQe=Ag,AQe=CQe("species"),Jf=function(t){return vQe>=51||!fQe(function(){var r=[],e=r.constructor={};return e[AQe]=function(){return{foo:1}},r[t](Boolean).foo!==1})},IQe=Xe,pQe=Nt,mQe=el,yQe=En,bQe=wi,wQe=Gi,Bx=r4,Fx=yg,$Qe=i4,_Qe=Jf,MQe=Ir,zQe=Ag,nq=MQe("isConcatSpreadable"),EQe=zQe>=51||!pQe(function(){var t=[];return t[nq]=!1,t.concat()[0]!==t}),SQe=function(t){if(!yQe(t))return!1;var r=t[nq];return r!==void 0?!!r:mQe(t)},TQe=!EQe||!_Qe("concat");IQe({target:"Array",proto:!0,arity:1,forced:TQe},{concat:function(r){var e=bQe(this),n=$Qe(e,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;oa;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},DQe={includes:jx(!0),indexOf:jx(!1)},e0={},NQe=cr,Mm=Yr,BQe=ka,FQe=DQe.indexOf,jQe=e0,Ux=NQe([].push),iq=function(t,r){var e=BQe(t),n=0,i=[],o;for(o in e)!Mm(jQe,o)&&Mm(e,o)&&Ux(i,o);for(;r.length>n;)Mm(e,o=r[n++])&&(~FQe(i,o)||Ux(i,o));return i},P$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],UQe=iq,GQe=P$,s4=Object.keys||function(r){return UQe(r,GQe)},WQe=vn,ZQe=ZX,KQe=$i,YQe=Ui,XQe=ka,qQe=s4;o4.f=WQe&&!ZQe?Object.defineProperties:function(r,e){YQe(r);for(var n=XQe(e),i=qQe(e),o=i.length,a=0,s;o>a;)KQe.f(r,s=i[a++],n[s]);return r};var QQe=Jn,oq=QQe("document","documentElement"),JQe=mg,eJe=QI,Gx=JQe("keys"),l4=function(t){return Gx[t]||(Gx[t]=eJe(t))},tJe=Ui,rJe=o4,Wx=P$,nJe=e0,iJe=oq,oJe=x$,aJe=l4,Zx=">",Kx="<",R7="prototype",D7="script",aq=aJe("IE_PROTO"),zm=function(){},sq=function(t){return Kx+D7+Zx+t+Kx+"/"+D7+Zx},Yx=function(t){t.write(sq("")),t.close();var r=t.parentWindow.Object;return t=null,r},sJe=function(){var t=oJe("iframe"),r="java"+D7+":",e;return t.style.display="none",iJe.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(sq("document.F=Object")),e.close(),e.F},NC,q5=function(){try{NC=new ActiveXObject("htmlfile")}catch{}q5=typeof document<"u"?document.domain&&NC?Yx(NC):sJe():Yx(NC);for(var t=Wx.length;t--;)delete q5[R7][Wx[t]];return q5()};nJe[aq]=!0;var Hc=Object.create||function(r,e){var n;return r!==null?(zm[R7]=tJe(r),n=new zm,zm[R7]=null,n[aq]=r):n=q5(),e===void 0?n:rJe.f(n,e)},t0={},lJe=iq,cJe=P$,uJe=cJe.concat("length","prototype");t0.f=Object.getOwnPropertyNames||function(r){return lJe(r,uJe)};var R$={},Xx=a4,gJe=Gi,hJe=yg,dJe=Array,fJe=Math.max,lq=function(t,r,e){for(var n=gJe(t),i=Xx(r,n),o=Xx(e===void 0?n:e,n),a=dJe(fJe(o-i,0)),s=0;iv;v++)if((s||v in d)&&(p=d[v],m=f(p,v,h),t))if(r)I[v]=m;else if(m)switch(t){case 3:return!0;case 5:return p;case 6:return v;case 2:tH(I,p)}else switch(t){case 4:return!1;case 7:tH(I,p)}return o?-1:n||i?i:I}},$g={forEach:ks(0),map:ks(1),filter:ks(2),some:ks(3),every:ks(4),find:ks(5),findIndex:ks(6),filterReject:ks(7)},c4=Xe,i0=vr,N$=An,tet=cr,Lu=vn,ku=Ig,ret=Nt,sn=Yr,net=Kr,B7=Ui,u4=ka,B$=JI,iet=xc,F7=Oc,Bd=Hc,dq=s4,oet=t0,fq=R$,aet=r0,Cq=kc,vq=$i,set=o4,Aq=XI,rH=bg,cet=D$,F$=mg,uet=l4,Iq=e0,nH=QI,get=Ir,het=n0,det=Er,fet=gq,Cet=Vc,pq=wg,g4=$g.forEach,li=uet("hidden"),h4="Symbol",Fd="prototype",vet=pq.set,iH=pq.getterFor(h4),So=Object[Fd],Nl=i0.Symbol,Ah=Nl&&Nl[Fd],Aet=i0.RangeError,Iet=i0.TypeError,Tm=i0.QObject,mq=Cq.f,Bl=vq.f,yq=fq.f,pet=Aq.f,bq=tet([].push),gs=F$("symbols"),o0=F$("op-symbols"),met=F$("wks"),j7=!Tm||!Tm[Fd]||!Tm[Fd].findChild,wq=function(t,r,e){var n=mq(So,r);n&&delete So[r],Bl(t,r,e),n&&t!==So&&Bl(So,r,n)},U7=Lu&&ret(function(){return Bd(Bl({},"a",{get:function(){return Bl(this,"a",{value:7}).a}})).a!==7})?wq:Bl,Lm=function(t,r){var e=gs[t]=Bd(Ah);return vet(e,{type:h4,tag:t,description:r}),Lu||(e.description=r),e},d4=function(r,e,n){r===So&&d4(o0,e,n),B7(r);var i=B$(e);return B7(n),sn(gs,i)?(n.enumerable?(sn(r,li)&&r[li][i]&&(r[li][i]=!1),n=Bd(n,{enumerable:F7(0,!1)})):(sn(r,li)||Bl(r,li,F7(1,{})),r[li][i]=!0),U7(r,i,n)):Bl(r,i,n)},j$=function(r,e){B7(r);var n=u4(e),i=dq(n).concat(zq(n));return g4(i,function(o){(!Lu||N$($q,n,o))&&d4(r,o,n[o])}),r},yet=function(r,e){return e===void 0?Bd(r):j$(Bd(r),e)},$q=function(r){var e=B$(r),n=N$(pet,this,e);return this===So&&sn(gs,e)&&!sn(o0,e)?!1:n||!sn(this,e)||!sn(gs,e)||sn(this,li)&&this[li][e]?n:!0},_q=function(r,e){var n=u4(r),i=B$(e);if(!(n===So&&sn(gs,i)&&!sn(o0,i))){var o=mq(n,i);return o&&sn(gs,i)&&!(sn(n,li)&&n[li][i])&&(o.enumerable=!0),o}},Mq=function(r){var e=yq(u4(r)),n=[];return g4(e,function(i){!sn(gs,i)&&!sn(Iq,i)&&bq(n,i)}),n},zq=function(t){var r=t===So,e=yq(r?o0:u4(t)),n=[];return g4(e,function(i){sn(gs,i)&&(!r||sn(So,i))&&bq(n,gs[i])}),n};ku||(Nl=function(){if(net(Ah,this))throw new Iet("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:iet(arguments[0]),e=nH(r),n=function(i){var o=this===void 0?i0:this;o===So&&N$(n,o0,i),sn(o,li)&&sn(o[li],e)&&(o[li][e]=!1);var a=F7(1,i);try{U7(o,e,a)}catch(s){if(!(s instanceof Aet))throw s;wq(o,e,a)}};return Lu&&j7&&U7(So,e,{configurable:!0,set:n}),Lm(e,r)},Ah=Nl[Fd],rH(Ah,"toString",function(){return iH(this).tag}),rH(Nl,"withoutSetter",function(t){return Lm(nH(t),t)}),Aq.f=$q,vq.f=d4,set.f=j$,Cq.f=_q,oet.f=fq.f=Mq,aet.f=zq,het.f=function(t){return Lm(get(t),t)},Lu&&cet(Ah,"description",{configurable:!0,get:function(){return iH(this).description}}));c4({global:!0,constructor:!0,wrap:!0,forced:!ku,sham:!ku},{Symbol:Nl});g4(dq(met),function(t){det(t)});c4({target:h4,stat:!0,forced:!ku},{useSetter:function(){j7=!0},useSimple:function(){j7=!1}});c4({target:"Object",stat:!0,forced:!ku,sham:!Lu},{create:yet,defineProperty:d4,defineProperties:j$,getOwnPropertyDescriptor:_q});c4({target:"Object",stat:!0,forced:!ku},{getOwnPropertyNames:Mq});fet();Cet(Nl,h4);Iq[li]=!0;var bet=Ig,Eq=bet&&!!Symbol.for&&!!Symbol.keyFor,wet=Xe,$et=Jn,_et=Yr,Met=xc,Sq=mg,zet=Eq,km=Sq("string-to-symbol-registry"),Eet=Sq("symbol-to-string-registry");wet({target:"Symbol",stat:!0,forced:!zet},{for:function(t){var r=Met(t);if(_et(km,r))return km[r];var e=$et("Symbol")(r);return km[r]=e,Eet[e]=r,e}});var Tet=Xe,Let=Yr,ket=qf,Oet=pg,xet=mg,Het=Eq,oH=xet("symbol-to-string-registry");Tet({target:"Symbol",stat:!0,forced:!Het},{keyFor:function(r){if(!ket(r))throw new TypeError(Oet(r)+" is not a symbol");if(Let(oH,r))return oH[r]}});var Vet=cr,a0=Vet([].slice),Pet=cr,aH=el,Ret=zr,sH=q1,Det=xc,lH=Pet([].push),Net=function(t){if(Ret(t))return t;if(aH(t)){for(var r=t.length,e=[],n=0;n=r.length)return t.target=void 0,UC(void 0,!0);switch(t.kind){case"keys":return UC(e,!1);case"values":return UC(r[e],!1)}return UC([e,r[e]],!1)},"values");bH.Arguments=bH.Array;var prt={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},mrt=prt,yrt=vr,brt=Ms,wrt=_s,wH=_g,$rt=Ir,$H=$rt("toStringTag");for(var Vm in mrt){var _H=yrt[Vm],Pm=_H&&_H.prototype;Pm&&brt(Pm)!==$H&&wrt(Pm,$H,Vm),wH[Vm]=wH.Array}var _rt=btt,Fq=_rt,Mrt=Ir,zrt=$i.f,MH=Mrt("metadata"),zH=Function.prototype;zH[MH]===void 0&&zrt(zH,MH,{value:null});var Ert=Er;Ert("asyncDispose");var Srt=Er;Srt("dispose");var Trt=Er;Trt("metadata");var Lrt=Fq,krt=Lrt,Ort=Jn,xrt=cr,Z$=Ort("Symbol"),Hrt=Z$.keyFor,Vrt=xrt(Z$.prototype.valueOf),jq=Z$.isRegisteredSymbol||function(r){try{return Hrt(Vrt(r))!==void 0}catch{return!1}},Prt=Xe,Rrt=jq;Prt({target:"Symbol",stat:!0},{isRegisteredSymbol:Rrt});var Drt=mg,Uq=Jn,Nrt=cr,Brt=qf,Frt=Ir,AA=Uq("Symbol"),EH=AA.isWellKnownSymbol,Gq=Uq("Object","getOwnPropertyNames"),jrt=Nrt(AA.prototype.valueOf),SH=Drt("wks");for(var Rm=0,TH=Gq(AA),Urt=TH.length;Rm=o?t?"":void 0:(a=kH(n,i),a<55296||a>56319||i+1===o||(s=kH(n,i+1))<56320||s>57343?t?snt(n,i):a:t?lnt(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},cnt={codeAt:OH(!1),charAt:OH(!0)},unt=cnt.charAt,gnt=xc,Zq=wg,hnt=G$,xH=W$,Kq="String Iterator",dnt=Zq.set,fnt=Zq.getterFor(Kq);hnt(String,"String",function(t){dnt(this,{type:Kq,string:gnt(t),index:0})},function(){var r=fnt(this),e=r.string,n=r.index,i;return n>=e.length?xH(void 0,!0):(i=unt(e,n),r.index+=i.length,xH(i,!1))});var Cnt=n0,vnt=Cnt.f("iterator"),Ant=vnt,Yq=Ant,Int=Yq,pnt=Int,mnt=pnt,ynt=mnt,Xq=ynt,bnt=nt(Xq);function Ou(t){"@babel/helpers - typeof";return Ou=typeof E2=="function"&&typeof bnt=="symbol"?function(r){return typeof r}:function(r){return r&&typeof E2=="function"&&r.constructor===E2&&r!==E2.prototype?"symbol":typeof r},Ou(t)}var wnt=n0,$nt=wnt.f("toPrimitive"),_nt=$nt,Mnt=_nt,znt=Mnt,Ent=znt,Snt=Ent,Tnt=Snt,Lnt=Tnt,knt=nt(Lnt);function Ont(t,r){if(Ou(t)!=="object"||t===null)return t;var e=t[knt];if(e!==void 0){var n=e.call(t,r||"default");if(Ou(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function qq(t){var r=Ont(t,"string");return Ou(r)==="symbol"?r:String(r)}function HH(t,r){for(var e=0;e=0:s>l;l+=c)l in a&&(i=e(i,a[l],l,o));return i}},rit={left:RH(!1),right:RH(!0)},nit=Nt,v4=function(t,r){var e=[][t];return!!e&&nit(function(){e.call(null,r||function(){return 1},1)})},iit=vr,oit=q1,l0=oit(iit.process)==="process",ait=Xe,sit=rit.left,lit=v4,DH=Ag,cit=l0,uit=!cit&&DH>79&&DH<83,git=uit||!lit("reduce");ait({target:"Array",proto:!0,forced:git},{reduce:function(r){var e=arguments.length;return sit(this,r,e,e>1?arguments[1]:void 0)}});var hit=xn,dit=hit("Array","reduce"),fit=Kr,Cit=dit,Bm=Array.prototype,vit=function(t){var r=t.reduce;return t===Bm||fit(Bm,t)&&r===Bm.reduce?Cit:r},Ait=vit,Iit=Ait,pit=Iit,mit=nt(pit),yit=Xe,bit=$g.filter,wit=Jf,$it=wit("filter");yit({target:"Array",proto:!0,forced:!$it},{filter:function(r){return bit(this,r,arguments.length>1?arguments[1]:void 0)}});var _it=xn,Mit=_it("Array","filter"),zit=Kr,Eit=Mit,Fm=Array.prototype,Sit=function(t){var r=t.filter;return t===Fm||zit(Fm,t)&&r===Fm.filter?Eit:r},Tit=Sit,Lit=Tit,kit=Lit,S2=nt(kit),Oit=Xe,xit=$g.map,Hit=Jf,Vit=Hit("map");Oit({target:"Array",proto:!0,forced:!Vit},{map:function(r){return xit(this,r,arguments.length>1?arguments[1]:void 0)}});var Pit=xn,Rit=Pit("Array","map"),Dit=Kr,Nit=Rit,jm=Array.prototype,Bit=function(t){var r=t.map;return t===jm||Dit(jm,t)&&r===jm.map?Nit:r},Fit=Bit,jit=Fit,Uit=jit,wo=nt(Uit),Git=el,Wit=Gi,Zit=r4,Kit=J1,nQ=function(t,r,e,n,i,o,a,s){for(var l=i,c=0,u=a?Kit(a,s):!1,g,h;c0&&Git(g)?(h=Wit(g),l=nQ(t,r,g,h,l,o-1)-1):(Zit(l+1),t[l]=g),l++),c++;return l},Yit=nQ,Xit=Xe,qit=Yit,Qit=bi,Jit=wi,eot=Gi,tot=i4;Xit({target:"Array",proto:!0},{flatMap:function(r){var e=Jit(this),n=eot(e),i;return Qit(r),i=tot(e,0),i.length=qit(i,e,e,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}});var rot=xn;rot("Array","flatMap");var not=An,NH=Ui,iot=k$,iQ=function(t,r,e){var n,i;NH(t);try{if(n=iot(t,"return"),!n){if(r==="throw")throw e;return e}n=not(n,t)}catch(o){i=!0,n=o}if(r==="throw")throw e;if(i)throw n;return NH(n),e},oot=Ui,aot=iQ,sot=function(t,r,e,n){try{return n?r(oot(e)[0],e[1]):r(e)}catch(i){aot(t,"throw",i)}},lot=Ir,cot=_g,uot=lot("iterator"),got=Array.prototype,oQ=function(t){return t!==void 0&&(cot.Array===t||got[uot]===t)},hot=Ms,BH=k$,dot=vg,fot=_g,Cot=Ir,vot=Cot("iterator"),A4=function(t){if(!dot(t))return BH(t,vot)||BH(t,"@@iterator")||fot[hot(t)]},Aot=An,Iot=bi,pot=Ui,mot=pg,yot=A4,bot=TypeError,X$=function(t,r){var e=arguments.length<2?yot(t):r;if(Iot(e))return pot(Aot(e,t));throw new bot(mot(t)+" is not iterable")},wot=J1,$ot=An,_ot=wi,Mot=sot,zot=oQ,Eot=n4,Sot=Gi,FH=yg,Tot=X$,Lot=A4,jH=Array,kot=function(r){var e=_ot(r),n=Eot(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=wot(o,i>2?arguments[2]:void 0));var s=Lot(e),l=0,c,u,g,h,d,f;if(s&&!(this===jH&&zot(s)))for(h=Tot(e,s),d=h.next,u=n?new this:[];!(g=$ot(d,h)).done;l++)f=a?Mot(h,o,[g.value,l],!0):g.value,FH(u,l,f);else for(c=Sot(e),u=n?new this(c):jH(c);c>l;l++)f=a?o(e[l],l):e[l],FH(u,l,f);return u.length=l,u},Oot=Ir,aQ=Oot("iterator"),sQ=!1;try{var xot=0,UH={next:function(){return{done:!!xot++}},return:function(){sQ=!0}};UH[aQ]=function(){return this},Array.from(UH,function(){throw 2})}catch{}var lQ=function(t,r){try{if(!r&&!sQ)return!1}catch{return!1}var e=!1;try{var n={};n[aQ]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch{}return e},Hot=Xe,Vot=kot,Pot=lQ,Rot=!Pot(function(t){Array.from(t)});Hot({target:"Array",stat:!0,forced:Rot},{from:Vot});var Dot=Ar,Not=Dot.Array.from,Bot=Not,cQ=Bot,Fot=cQ,q$=nt(Fot),jot=A4,Uot=jot,Got=Uot,Wot=Got,Zot=Wot,Kot=Zot,Yot=Kot,Xot=Yot,uQ=Xot,gQ=nt(uQ),qot=uQ,Q$=nt(qot),Qot=Xe,Jot=el;Qot({target:"Array",stat:!0},{isArray:Jot});var eat=Ar,tat=eat.Array.isArray,rat=tat,hQ=rat,nat=hQ,iat=nat,oat=iat,aat=oat,sat=aat,dQ=nt(sat);function lat(t){if(dQ(t))return t}var cat=vn,uat=el,gat=TypeError,hat=Object.getOwnPropertyDescriptor,dat=cat&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),fQ=dat?function(t,r){if(uat(t)&&!hat(t,"length").writable)throw new gat("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r},fat=Xe,Cat=wi,vat=Gi,Aat=fQ,Iat=r4,pat=Nt,mat=pat(function(){return[].push.call({length:4294967296},1)!==4294967297}),yat=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},bat=mat||!yat();fat({target:"Array",proto:!0,arity:1,forced:bat},{push:function(r){var e=Cat(this),n=vat(e),i=arguments.length;Iat(n+i);for(var o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?arguments[1]:void 0)},Qst=Xe,ZH=qst;Qst({target:"Array",proto:!0,forced:[].forEach!==ZH},{forEach:ZH});var Jst=xn,e1t=Jst("Array","forEach"),t1t=e1t,r1t=t1t,n1t=Ms,i1t=Yr,o1t=Kr,a1t=r1t,Km=Array.prototype,s1t={DOMTokenList:!0,NodeList:!0},yQ=function(t){var r=t.forEach;return t===Km||o1t(Km,t)&&r===Km.forEach||i1t(s1t,n1t(t))?a1t:r},l1t=yQ,sc=nt(l1t),c1t=Xe,u1t=cr,g1t=el,h1t=u1t([].reverse),KH=[1,2];c1t({target:"Array",proto:!0,forced:String(KH)===String(KH.reverse())},{reverse:function(){return g1t(this)&&(this.length=this.length),h1t(this)}});var d1t=xn,f1t=d1t("Array","reverse"),C1t=Kr,v1t=f1t,Ym=Array.prototype,A1t=function(t){var r=t.reverse;return t===Ym||C1t(Ym,t)&&r===Ym.reverse?v1t:r},I1t=A1t,bQ=I1t,p1t=bQ,m1t=nt(p1t),YH=pg,y1t=TypeError,wQ=function(t,r){if(!delete t[r])throw new y1t("Cannot delete property "+YH(r)+" of "+YH(t))},b1t=Xe,w1t=wi,$1t=a4,_1t=t4,M1t=Gi,z1t=fQ,E1t=r4,S1t=i4,T1t=yg,Xm=wQ,L1t=Jf,k1t=L1t("splice"),O1t=Math.max,x1t=Math.min;b1t({target:"Array",proto:!0,forced:!k1t},{splice:function(r,e){var n=w1t(this),i=M1t(n),o=$1t(r,i),a=arguments.length,s,l,c,u,g,h;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=x1t(O1t(_1t(e),0),i-o)),E1t(i+s-l),c=S1t(n,l),u=0;ui-l+s;u--)Xm(n,u-1)}else if(s>l)for(u=i-l;u>o;u--)g=u+l-1,h=u+s-1,g in n?n[h]=n[g]:Xm(n,h);for(u=0;uo;)for(var l=Y1t(arguments[o++]),c=a?X1t(Qm(l),a(l)):Qm(l),u=c.length,g=0,h;u>g;)h=c[g++],(!XH||U1t(s,l,h))&&(n[h]=l[h]);return n}:i2,Q1t=Xe,QH=q1t;Q1t({target:"Object",stat:!0,arity:2,forced:Object.assign!==QH},{assign:QH});var J1t=Ar,elt=J1t.Object.assign,tlt=elt,rlt=tlt,nlt=rlt,ilt=nt(nlt),olt=Xe,alt=Nt,slt=wi,_Q=f4,llt=Vq,clt=alt(function(){_Q(1)});olt({target:"Object",stat:!0,forced:clt,sham:!llt},{getPrototypeOf:function(r){return _Q(slt(r))}});var ult=Ar,glt=ult.Object.getPrototypeOf,hlt=glt,dlt=hlt,flt=Xe,Clt=vn,vlt=Hc;flt({target:"Object",stat:!0,sham:!Clt},{create:vlt});var Alt=Ar,Ilt=Alt.Object,plt=function(r,e){return Ilt.create(r,e)},mlt=plt,MQ=mlt,ylt=MQ,blt=nt(ylt),Y7=Ar,wlt=Cg;Y7.JSON||(Y7.JSON={stringify:JSON.stringify});var $lt=function(r,e,n){return wlt(Y7.JSON.stringify,null,arguments)},_lt=$lt,Mlt=_lt,zlt=Mlt,Elt=nt(zlt),Slt=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Tlt=TypeError,zQ=function(t,r){if(te,a=klt(n)?n:Plt(n),s=o?Hlt(arguments,e):[],l=o?function(){Llt(a,this,s)}:a;return r?t(l,i):t(l)}:t},Dlt=Xe,TQ=vr,Nlt=SQ,JH=Nlt(TQ.setInterval,!0);Dlt({global:!0,bind:!0,forced:TQ.setInterval!==JH},{setInterval:JH});var Blt=Xe,LQ=vr,Flt=SQ,eV=Flt(LQ.setTimeout,!0);Blt({global:!0,bind:!0,forced:LQ.setTimeout!==eV},{setTimeout:eV});var jlt=Ar,Ult=jlt.setTimeout,Glt=Ult,Wlt=nt(Glt),kQ={exports:{}};(function(t){function r(n){if(n)return e(n);this._callbacks=new Map}function e(n){return Object.assign(n,r.prototype),n._callbacks=new Map,n}r.prototype.on=function(n,i){const o=this._callbacks.get(n)??[];return o.push(i),this._callbacks.set(n,o),this},r.prototype.once=function(n,i){const o=(...a)=>{this.off(n,o),i.apply(this,a)};return o.fn=i,this.on(n,o),this},r.prototype.off=function(n,i){if(n===void 0&&i===void 0)return this._callbacks.clear(),this;if(i===void 0)return this._callbacks.delete(n),this;const o=this._callbacks.get(n);if(o){for(const[a,s]of o.entries())if(s===i||s.fn===i){o.splice(a,1);break}o.length===0?this._callbacks.delete(n):this._callbacks.set(n,o)}return this},r.prototype.emit=function(n,...i){const o=this._callbacks.get(n);if(o){const a=[...o];for(const s of a)s.apply(this,i)}return this},r.prototype.listeners=function(n){return this._callbacks.get(n)??[]},r.prototype.listenerCount=function(n){if(n)return this.listeners(n).length;let i=0;for(const o of this._callbacks.values())i+=o.length;return i},r.prototype.hasListeners=function(n){return this.listenerCount(n)>0},r.prototype.addEventListener=r.prototype.on,r.prototype.removeListener=r.prototype.off,r.prototype.removeEventListener=r.prototype.off,r.prototype.removeAllListeners=r.prototype.off,t.exports=r})(kQ);var Zlt=kQ.exports,Klt=nt(Zlt);/*! 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 jo(){return jo=Object.assign||function(t){for(var r=1;r"u"?{style:{}}:document.createElement("div"),Xlt="function",T2=Math.round,cc=Math.abs,t_=Date.now;function y4(t,r){for(var e,n,i=r[0].toUpperCase()+r.slice(1),o=0;o"u"?Qa={}:Qa=window;var OQ=y4(Ylt.style,"touchAction"),xQ=OQ!==void 0;function qlt(){if(!xQ)return!1;var t={},r=Qa.CSS&&Qa.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return t[e]=r?Qa.CSS.supports("touch-action",e):!0}),t}var HQ="compute",VQ="auto",q7="manipulation",Fl="none",jd="pan-x",Ud="pan-y",WC=qlt(),Qlt=/mobile|tablet|ip(ad|hone|od)|android/i,PQ="ontouchstart"in Qa,Jlt=y4(Qa,"PointerEvent")!==void 0,ect=PQ&&Qlt.test(navigator.userAgent),c0="touch",tct="pen",r_="mouse",rct="kinect",nct=25,Kn=1,Pc=2,Gr=4,vi=8,IA=1,u0=2,g0=4,h0=8,xu=16,Ia=u0|g0,jl=h0|xu,RQ=Ia|jl,DQ=["x","y"],pA=["clientX","clientY"];function Ja(t,r,e){var n;if(t)if(t.forEach)t.forEach(r,e);else if(t.length!==void 0)for(n=0;n-1}function ict(t){if(Sl(t,Fl))return Fl;var r=Sl(t,jd),e=Sl(t,Ud);return r&&e?Fl:r||e?r?jd:Ud:Sl(t,q7)?q7:VQ}var NQ=function(){function t(e,n){this.manager=e,this.set(n)}var r=t.prototype;return r.set=function(n){n===HQ&&(n=this.compute()),xQ&&this.manager.element.style&&WC[n]&&(this.manager.element.style[OQ]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return Ja(this.manager.recognizers,function(i){b4(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),ict(n.join(" "))},r.preventDefaults=function(n){var i=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var a=this.actions,s=Sl(a,Fl)&&!WC[Fl],l=Sl(a,Ud)&&!WC[Ud],c=Sl(a,jd)&&!WC[jd];if(s){var u=n.pointers.length===1,g=n.distance<2,h=n.deltaTime<250;if(u&&g&&h)return}if(!(c&&l)&&(s||l&&o&Ia||c&&o&jl))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function n_(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}function BQ(t){var r=t.length;if(r===1)return{x:T2(t[0].clientX),y:T2(t[0].clientY)};for(var e=0,n=0,i=0;i=cc(r)?t<0?u0:g0:r<0?h0:xu}function oct(t,r){var e=r.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};(r.eventType===Kn||o.eventType===Gr)&&(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:e.x,y:e.y}),r.deltaX=i.x+(e.x-n.x),r.deltaY=i.y+(e.y-n.y)}function jQ(t,r,e){return{x:r/t||0,y:e/t||0}}function act(t,r){return mA(r[0],r[1],pA)/mA(t[0],t[1],pA)}function sct(t,r){return Q7(r[1],r[0],pA)+Q7(t[1],t[0],pA)}function lct(t,r){var e=t.lastInterval||r,n=r.timeStamp-e.timeStamp,i,o,a,s;if(r.eventType!==vi&&(n>nct||e.velocity===void 0)){var l=r.deltaX-e.deltaX,c=r.deltaY-e.deltaY,u=jQ(n,l,c);o=u.x,a=u.y,i=cc(u.x)>cc(u.y)?u.x:u.y,s=FQ(l,c),t.lastInterval=r}else i=e.velocity,o=e.velocityX,a=e.velocityY,s=e.direction;r.velocity=i,r.velocityX=o,r.velocityY=a,r.direction=s}function cct(t,r){var e=t.session,n=r.pointers,i=n.length;e.firstInput||(e.firstInput=rV(r)),i>1&&!e.firstMultiple?e.firstMultiple=rV(r):i===1&&(e.firstMultiple=!1);var o=e.firstInput,a=e.firstMultiple,s=a?a.center:o.center,l=r.center=BQ(n);r.timeStamp=t_(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=Q7(s,l),r.distance=mA(s,l),oct(e,r),r.offsetDirection=FQ(r.deltaX,r.deltaY);var c=jQ(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=c.x,r.overallVelocityY=c.y,r.overallVelocity=cc(c.x)>cc(c.y)?c.x:c.y,r.scale=a?act(a.pointers,n):1,r.rotation=a?sct(a.pointers,n):0,r.maxPointers=e.prevInput?r.pointers.length>e.prevInput.maxPointers?r.pointers.length:e.prevInput.maxPointers:r.pointers.length,lct(e,r);var u=t.element,g=r.srcEvent,h;g.composedPath?h=g.composedPath()[0]:g.path?h=g.path[0]:h=g.target,n_(h,u)&&(u=h),r.target=u}function uct(t,r,e){var n=e.pointers.length,i=e.changedPointers.length,o=r&Kn&&n-i===0,a=r&(Gr|vi)&&n-i===0;e.isFirst=!!o,e.isFinal=!!a,o&&(t.session={}),e.eventType=r,cct(t,e),t.emit("hammer.input",e),t.recognize(e),t.session.prevInput=e}function Gd(t){return t.trim().split(/\s+/g)}function Gh(t,r,e){Ja(Gd(r),function(n){t.addEventListener(n,e,!1)})}function Wh(t,r,e){Ja(Gd(r),function(n){t.removeEventListener(n,e,!1)})}function nV(t){var r=t.ownerDocument||t;return r.defaultView||r.parentWindow||window}var Mg=function(){function t(e,n){var i=this;this.manager=e,this.callback=n,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(o){b4(e.options.enable,[e])&&i.handler(o)},this.init()}var r=t.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Gh(this.element,this.evEl,this.domHandler),this.evTarget&&Gh(this.target,this.evTarget,this.domHandler),this.evWin&&Gh(nV(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Wh(this.element,this.evEl,this.domHandler),this.evTarget&&Wh(this.target,this.evTarget,this.domHandler),this.evWin&&Wh(nV(this.element),this.evWin,this.domHandler)},t}();function uc(t,r,e){if(t.indexOf&&!e)return t.indexOf(r);for(var n=0;nl[r]}):n=n.sort()),n}var dct={touchstart:Kn,touchmove:Pc,touchend:Gr,touchcancel:vi},fct="touchstart touchmove touchend touchcancel",o_=function(t){Co(r,t);function r(){var n;return r.prototype.evTarget=fct,n=t.apply(this,arguments)||this,n.targetIds={},n}var e=r.prototype;return e.handler=function(i){var o=dct[i.type],a=Cct.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:c0,srcEvent:i})},r}(Mg);function Cct(t,r){var e=Wd(t.touches),n=this.targetIds;if(r&(Kn|Pc)&&e.length===1)return n[e[0].identifier]=!0,[e,e];var i,o,a=Wd(t.changedTouches),s=[],l=this.target;if(o=e.filter(function(c){return n_(c.target,l)}),r===Kn)for(i=0;i-1&&i.splice(s,1)};setTimeout(o,pct)}}function mct(t,r){t&Kn?(this.primaryTouch=r.changedPointers[0].identifier,oV.call(this,r)):t&(Gr|vi)&&oV.call(this,r)}function yct(t){for(var r=t.srcEvent.clientX,e=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(i,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},r.emit=function(n){var i=this,o=this.state;function a(s){i.manager.emit(s,n)}o=v1&&a(i.options.event+aV(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=ca},r.canEmit=function(){for(var n=0;no.threshold&&l&o.direction},e.attrTest=function(i){return Vu.prototype.attrTest.call(this,i)&&(this.state&uo||!(this.state&uo)&&this.directionTest(i))},e.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=KQ(i.direction);o&&(i.additionalEvent=this.options.event+o),t.prototype.emit.call(this,i)},r}(Vu),YQ=function(t){Co(r,t);function r(n){return n===void 0&&(n={}),t.call(this,jo({event:"swipe",threshold:10,velocity:.3,direction:Ia|jl,pointers:1},n))||this}var e=r.prototype;return e.getTouchAction=function(){return s_.prototype.getTouchAction.call(this)},e.attrTest=function(i){var o=this.options.direction,a;return o&(Ia|jl)?a=i.overallVelocity:o&Ia?a=i.overallVelocityX:o&jl&&(a=i.overallVelocityY),t.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&cc(a)>this.options.velocity&&i.eventType&Gr},e.emit=function(i){var o=KQ(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(Vu),XQ=function(t){Co(r,t);function r(n){return n===void 0&&(n={}),t.call(this,jo({event:"pinch",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Fl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&uo)},e.emit=function(i){if(i.scale!==1){var o=i.scale<1?"in":"out";i.additionalEvent=this.options.event+o}t.prototype.emit.call(this,i)},r}(Vu),qQ=function(t){Co(r,t);function r(n){return n===void 0&&(n={}),t.call(this,jo({event:"rotate",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Fl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&uo)},r}(Vu),QQ=function(t){Co(r,t);function r(n){var i;return n===void 0&&(n={}),i=t.call(this,jo({event:"press",pointers:1,time:251,threshold:9},n))||this,i._timer=null,i._input=null,i}var e=r.prototype;return e.getTouchAction=function(){return[VQ]},e.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distancea.time;if(this._input=i,!l||!s||i.eventType&(Gr|vi)&&!c)this.reset();else if(i.eventType&Kn)this.reset(),this._timer=setTimeout(function(){o.state=es,o.tryEmit()},a.time);else if(i.eventType&Gr)return es;return ca},e.reset=function(){clearTimeout(this._timer)},e.emit=function(i){this.state===es&&(i&&i.eventType&Gr?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=t_(),this.manager.emit(this.options.event,this._input)))},r}(d0),JQ={domEvents:!1,touchAction:HQ,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},sV=[[qQ,{enable:!1}],[XQ,{enable:!1},["rotate"]],[YQ,{direction:Ia}],[s_,{direction:Ia},["swipe"]],[J7],[J7,{event:"doubletap",taps:2},["tap"]],[QQ]],_ct=1,lV=2;function cV(t,r){var e=t.element;if(e.style){var n;Ja(t.options.cssProps,function(i,o){n=y4(e.style,o),r?(t.oldCssProps[n]=e.style[n],e.style[n]=i):e.style[n]=t.oldCssProps[n]||""}),r||(t.oldCssProps={})}}function Mct(t,r){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.gesture=r,r.target.dispatchEvent(e)}var uV=function(){function t(e,n){var i=this;this.options=lc({},JQ,n||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=bct(this),this.touchAction=new NQ(this,this.options.touchAction),cV(this,!0),Ja(this.options.recognizers,function(o){var a=i.add(new o[0](o[1]));o[2]&&a.recognizeWith(o[2]),o[3]&&a.requireFailure(o[3])},this)}var r=t.prototype;return r.set=function(n){return lc(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},r.stop=function(n){this.session.stopped=n?lV:_ct},r.recognize=function(n){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(n);var o,a=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&es)&&(i.curRecognizer=null,s=null);for(var l=0;l\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,n,o),t.apply(this,arguments)}}var tJ=eJ(function(t,r,e){for(var n=Object.keys(r),i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Vct(t,r){var e;if(t){if(typeof t=="string")return hV(t,r);var n=m4(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return q$(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hV(t,r)}}function hV(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?e-1:0),i=1;i2){var n;return yA.apply(void 0,p4(n=[iJ(r[0],r[1])]).call(n,ci(m4(r).call(r,2))))}var i=r[0],o=r[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a=rJ(Pst(o)),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===nJ?delete i[l]:i[l]!==null&&o[l]!==null&&typeof i[l]=="object"&&typeof o[l]=="object"&&!xi(i[l])&&!xi(o[l])?i[l]=yA(i[l],o[l]):i[l]=oJ(o[l]))}}catch(c){a.e(c)}finally{a.f()}return i}function oJ(t){return xi(t)?wo(t).call(t,function(r){return oJ(r)}):typeof t=="object"&&t!==null?t instanceof Date?new Date(t.getTime()):yA({},t):t}function aJ(t){for(var r=0,e=e_(t);ra;)l=n(e,s=i[a++]),l!==void 0&&b2t(o,s,l);return o}});var w2t=Ar,$2t=w2t.Object.getOwnPropertyDescriptors,_2t=$2t,M2t=_2t,z2t=M2t,AV=nt(z2t),vJ={exports:{}},E2t=Xe,S2t=vn,IV=o4.f;E2t({target:"Object",stat:!0,forced:Object.defineProperties!==IV,sham:!S2t},{defineProperties:IV});var T2t=Ar,AJ=T2t.Object,L2t=vJ.exports=function(r,e){return AJ.defineProperties(r,e)};AJ.defineProperties.sham&&(L2t.sham=!0);var k2t=vJ.exports,O2t=k2t,x2t=O2t,H2t=x2t,V2t=nt(H2t),P2t=YX,R2t=nt(P2t);function IJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var D2t=MQ,N2t=D2t,B2t=N2t,F2t=B2t,pJ=F2t,j2t=nt(pJ),U2t=Xe,G2t=Dq;U2t({target:"Object",stat:!0},{setPrototypeOf:G2t});var W2t=Ar,Z2t=W2t.Object.setPrototypeOf,K2t=Z2t,Y2t=K2t,X2t=Y2t,q2t=X2t,Q2t=q2t,J2t=Q2t,mJ=J2t,ey=nt(mJ),eut=tQ,tut=eut,rut=tut,nut=rut,iut=nut,yJ=nt(iut);function ty(t,r){var e;return ty=ey?yJ(e=ey).call(e):function(i,o){return i.__proto__=o,i},ty(t,r)}function out(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=j2t(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e4(t,"prototype",{writable:!1}),r&&ty(t,r)}function aut(t,r){if(r&&(Ou(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IJ(t)}var sut=dlt,lut=sut,cut=lut,uut=cut,bJ=uut,pV=nt(bJ);function bA(t){var r;return bA=ey?yJ(r=pV).call(r):function(n){return n.__proto__||pV(n)},bA(t)}var wJ={exports:{}},$J={exports:{}};(function(t){var r=K$,e=Xq;function n(i){"@babel/helpers - typeof";return t.exports=n=typeof r=="function"&&typeof e=="symbol"?function(o){return typeof o}:function(o){return o&&typeof r=="function"&&o.constructor===r&&o!==r.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})($J);var gut=$J.exports,hut=yQ,dut=hut,fut=dut,Cut=fut,vut=Cut,mV=Yr,Aut=J$,Iut=kc,put=$i,mut=function(t,r,e){for(var n=Aut(r),i=put.f,o=Iut.f,a=0;ag;g++)if(d=A(t[g]),d&&bV($V,d))return d;return new ev(!1)}c=Fut(t,u)}for(f=o?t.next:c.next;!(C=Put(f,c)).done;){try{d=A(C.value)}catch(I){wV(c,"throw",I)}if(typeof d=="object"&&d&&bV($V,d))return d}return new ev(!1)},Gut=xc,Wut=function(t,r){return t===void 0?arguments.length<2?"":r:Gut(t)},Zut=Xe,Kut=Kr,Yut=f4,wA=Dq,Xut=mut,zJ=Hc,e9=_s,t9=Oc,qut=wut,Qut=Hut,Jut=Rc,egt=Wut,tgt=Ir,rgt=tgt("toStringTag"),$A=Error,ngt=[].push,Pu=function(r,e){var n=Kut(r9,this),i;wA?i=wA(new $A,n?Yut(this):r9):(i=n?this:zJ(r9),e9(i,rgt,"Error")),e!==void 0&&e9(i,"message",egt(e)),Qut(i,Pu,i.stack,1),arguments.length>2&&qut(i,arguments[2]);var o=[];return Jut(r,ngt,{that:o}),e9(i,"errors",o),i};wA?wA(Pu,$A):Xut(Pu,$A,{name:!0});var r9=Pu.prototype=zJ($A.prototype,{constructor:t9(1,Pu),message:t9(1,""),name:t9(1,"AggregateError")});Zut({global:!0,constructor:!0,arity:2},{AggregateError:Pu});var igt=Jn,ogt=D$,agt=Ir,sgt=vn,_V=agt("species"),EJ=function(t){var r=igt(t);sgt&&r&&!r[_V]&&ogt(r,_V,{configurable:!0,get:function(){return this}})},lgt=Kr,cgt=TypeError,c_=function(t,r){if(lgt(r,t))return t;throw new cgt("Incorrect invocation")},MV=Ui,ugt=sJ,ggt=vg,hgt=Ir,dgt=hgt("species"),SJ=function(t,r){var e=MV(t).constructor,n;return e===void 0||ggt(n=MV(e)[dgt])?r:ugt(n)},fgt=Q1,TJ=/(?:ipad|iphone|ipod).*applewebkit/i.test(fgt),Ri=vr,Cgt=Cg,vgt=J1,zV=zr,Agt=Yr,LJ=Nt,EV=oq,Igt=a0,SV=x$,pgt=zQ,mgt=TJ,ygt=l0,ry=Ri.setImmediate,ny=Ri.clearImmediate,bgt=Ri.process,n9=Ri.Dispatch,wgt=Ri.Function,TV=Ri.MessageChannel,$gt=Ri.String,i9=0,Zh={},LV="onreadystatechange",Kd,Cl,o9,a9;LJ(function(){Kd=Ri.location});var u_=function(t){if(Agt(Zh,t)){var r=Zh[t];delete Zh[t],r()}},s9=function(t){return function(){u_(t)}},kV=function(t){u_(t.data)},OV=function(t){Ri.postMessage($gt(t),Kd.protocol+"//"+Kd.host)};(!ry||!ny)&&(ry=function(r){pgt(arguments.length,1);var e=zV(r)?r:wgt(r),n=Igt(arguments,1);return Zh[++i9]=function(){Cgt(e,void 0,n)},Cl(i9),i9},ny=function(r){delete Zh[r]},ygt?Cl=function(t){bgt.nextTick(s9(t))}:n9&&n9.now?Cl=function(t){n9.now(s9(t))}:TV&&!mgt?(o9=new TV,a9=o9.port2,o9.port1.onmessage=kV,Cl=vgt(a9.postMessage,a9)):Ri.addEventListener&&zV(Ri.postMessage)&&!Ri.importScripts&&Kd&&Kd.protocol!=="file:"&&!LJ(OV)?(Cl=OV,Ri.addEventListener("message",kV,!1)):LV in SV("script")?Cl=function(t){EV.appendChild(SV("script"))[LV]=function(){EV.removeChild(this),u_(t)}}:Cl=function(t){setTimeout(s9(t),0)});var kJ={set:ry,clear:ny},OJ=function(){this.head=null,this.tail=null};OJ.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}};var xJ=OJ,_gt=Q1,Mgt=/ipad|iphone|ipod/i.test(_gt)&&typeof Pebble<"u",zgt=Q1,Egt=/web0s(?!.*chrome)/i.test(zgt),gc=vr,xV=J1,Sgt=kc.f,l9=kJ.set,Tgt=xJ,Lgt=TJ,kgt=Mgt,Ogt=Egt,c9=l0,HV=gc.MutationObserver||gc.WebKitMutationObserver,VV=gc.document,PV=gc.process,KC=gc.Promise,RV=Sgt(gc,"queueMicrotask"),iy=RV&&RV.value,o2,u9,g9,YC,DV;if(!iy){var XC=new Tgt,qC=function(){var t,r;for(c9&&(t=PV.domain)&&t.exit();r=XC.get();)try{r()}catch(e){throw XC.head&&o2(),e}t&&t.enter()};!Lgt&&!c9&&!Ogt&&HV&&VV?(u9=!0,g9=VV.createTextNode(""),new HV(qC).observe(g9,{characterData:!0}),o2=function(){g9.data=u9=!u9}):!kgt&&KC&&KC.resolve?(YC=KC.resolve(void 0),YC.constructor=KC,DV=xV(YC.then,YC),o2=function(){DV(qC)}):c9?o2=function(){PV.nextTick(qC)}:(l9=xV(l9,gc),o2=function(){l9(qC)}),iy=function(t){XC.head||o2(),XC.add(t)}}var xgt=iy,Hgt=function(t,r){try{arguments.length===1?console.error(t):console.error(t,r)}catch{}},zg=function(t){try{return{error:!1,value:t()}}catch(r){return{error:!0,value:r}}},Vgt=vr,Eg=Vgt.Promise,HJ=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",Pgt=HJ,Rgt=l0,Dgt=!Pgt&&!Rgt&&typeof window=="object"&&typeof document=="object",Ngt=vr,Kh=Eg,Bgt=zr,Fgt=WX,jgt=QX,Ugt=Ir,Ggt=Dgt,Wgt=HJ,h9=Ag,NV=Kh&&Kh.prototype,Zgt=Ugt("species"),oy=!1,VJ=Bgt(Ngt.PromiseRejectionEvent),Kgt=Fgt("Promise",function(){var t=jgt(Kh),r=t!==String(Kh);if(!r&&h9===66||!(NV.catch&&NV.finally))return!0;if(!h9||h9<51||!/native code/.test(t)){var e=new Kh(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=e.constructor={};if(i[Zgt]=n,oy=e.then(function(){})instanceof n,!oy)return!0}return!r&&(Ggt||Wgt)&&!VJ}),f0={CONSTRUCTOR:Kgt,REJECTION_EVENT:VJ,SUBCLASSING:oy},Oa={},BV=bi,Ygt=TypeError,Xgt=function(t){var r,e;this.promise=new t(function(n,i){if(r!==void 0||e!==void 0)throw new Ygt("Bad Promise constructor");r=n,e=i}),this.resolve=BV(r),this.reject=BV(e)};Oa.f=function(t){return new Xgt(t)};var qgt=Xe,_A=l0,T1=vr,C0=An,Qgt=bg,Jgt=Vc,eht=EJ,tht=bi,ay=zr,rht=En,nht=c_,iht=SJ,PJ=kJ.set,g_=xgt,oht=Hgt,aht=zg,sht=xJ,RJ=wg,sy=Eg,DJ=f0,NJ=Oa,w4="Promise",BJ=DJ.CONSTRUCTOR,lht=DJ.REJECTION_EVENT,d9=RJ.getterFor(w4),cht=RJ.set,uht=sy&&sy.prototype,k2=sy,f9=uht,FJ=T1.TypeError,ly=T1.document,h_=T1.process,cy=NJ.f,ght=cy,hht=!!(ly&&ly.createEvent&&T1.dispatchEvent),jJ="unhandledrejection",dht="rejectionhandled",FV=0,UJ=1,fht=2,d_=1,GJ=2,QC,jV,Cht,WJ=function(t){var r;return rht(t)&&ay(r=t.then)?r:!1},ZJ=function(t,r){var e=r.value,n=r.state===UJ,i=n?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain,l,c,u;try{i?(n||(r.rejection===GJ&&Aht(r),r.rejection=d_),i===!0?l=e:(s&&s.enter(),l=i(e),s&&(s.exit(),u=!0)),l===t.promise?a(new FJ("Promise-chain cycle")):(c=WJ(l))?C0(c,l,o,a):o(l)):a(e)}catch(g){s&&!u&&s.exit(),a(g)}},KJ=function(t,r){t.notified||(t.notified=!0,g_(function(){for(var e=t.reactions,n;n=e.get();)ZJ(n,t);t.notified=!1,r&&!t.rejection&&vht(t)}))},YJ=function(t,r,e){var n,i;hht?(n=ly.createEvent("Event"),n.promise=r,n.reason=e,n.initEvent(t,!1,!0),T1.dispatchEvent(n)):n={promise:r,reason:e},!lht&&(i=T1["on"+t])?i(n):t===jJ&&oht("Unhandled promise rejection",e)},vht=function(t){C0(PJ,T1,function(){var r=t.facade,e=t.value,n=UV(t),i;if(n&&(i=aht(function(){_A?h_.emit("unhandledRejection",e,r):YJ(jJ,r,e)}),t.rejection=_A||UV(t)?GJ:d_,i.error))throw i.value})},UV=function(t){return t.rejection!==d_&&!t.parent},Aht=function(t){C0(PJ,T1,function(){var r=t.facade;_A?h_.emit("rejectionHandled",r):YJ(dht,r,t.value)})},O2=function(t,r,e){return function(n){t(r,n,e)}},ru=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=fht,KJ(t,!0))},uy=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new FJ("Promise can't be resolved itself");var n=WJ(r);n?g_(function(){var i={done:!1};try{C0(n,r,O2(uy,i,t),O2(ru,i,t))}catch(o){ru(i,o,t)}}):(t.value=r,t.state=UJ,KJ(t,!1))}catch(i){ru({done:!1},i,t)}}};BJ&&(k2=function(r){nht(this,f9),tht(r),C0(QC,this);var e=d9(this);try{r(O2(uy,e),O2(ru,e))}catch(n){ru(e,n)}},f9=k2.prototype,QC=function(r){cht(this,{type:w4,done:!1,notified:!1,parent:!1,reactions:new sht,rejection:!1,state:FV,value:void 0})},QC.prototype=Qgt(f9,"then",function(r,e){var n=d9(this),i=cy(iht(this,k2));return n.parent=!0,i.ok=ay(r)?r:!0,i.fail=ay(e)&&e,i.domain=_A?h_.domain:void 0,n.state===FV?n.reactions.add(i):g_(function(){ZJ(i,n)}),i.promise}),jV=function(){var t=new QC,r=d9(t);this.promise=t,this.resolve=O2(uy,r),this.reject=O2(ru,r)},NJ.f=cy=function(t){return t===k2||t===Cht?new jV(t):ght(t)});qgt({global:!0,constructor:!0,wrap:!0,forced:BJ},{Promise:k2});Jgt(k2,w4,!1,!0);eht(w4);var Iht=Eg,pht=lQ,mht=f0.CONSTRUCTOR,$4=mht||!pht(function(t){Iht.all(t).then(void 0,function(){})}),yht=Xe,bht=An,wht=bi,$ht=Oa,_ht=zg,Mht=Rc,zht=$4;yht({target:"Promise",stat:!0,forced:zht},{all:function(r){var e=this,n=$ht.f(e),i=n.resolve,o=n.reject,a=_ht(function(){var s=wht(e.resolve),l=[],c=0,u=1;Mht(r,function(g){var h=c++,d=!1;u++,bht(s,e,g).then(function(f){d||(d=!0,l[h]=f,--u||i(l))},o)}),--u||i(l)});return a.error&&o(a.value),n.promise}});var Eht=Xe,Sht=f0.CONSTRUCTOR,GV=Eg;GV&&GV.prototype;Eht({target:"Promise",proto:!0,forced:Sht,real:!0},{catch:function(t){return this.then(void 0,t)}});var Tht=Xe,Lht=An,kht=bi,Oht=Oa,xht=zg,Hht=Rc,Vht=$4;Tht({target:"Promise",stat:!0,forced:Vht},{race:function(r){var e=this,n=Oht.f(e),i=n.reject,o=xht(function(){var a=kht(e.resolve);Hht(r,function(s){Lht(a,e,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var Pht=Xe,Rht=An,Dht=Oa,Nht=f0.CONSTRUCTOR;Pht({target:"Promise",stat:!0,forced:Nht},{reject:function(r){var e=Dht.f(this);return Rht(e.reject,void 0,r),e.promise}});var Bht=Ui,Fht=En,jht=Oa,XJ=function(t,r){if(Bht(t),Fht(r)&&r.constructor===t)return r;var e=jht.f(t),n=e.resolve;return n(r),e.promise},Uht=Xe,Ght=Jn,Wht=JYe,Zht=Eg,Kht=f0.CONSTRUCTOR,Yht=XJ,Xht=Ght("Promise"),qht=!Kht;Uht({target:"Promise",stat:!0,forced:Wht},{resolve:function(r){return Yht(qht&&this===Xht?Zht:this,r)}});var Qht=Xe,Jht=An,edt=bi,tdt=Oa,rdt=zg,ndt=Rc,idt=$4;Qht({target:"Promise",stat:!0,forced:idt},{allSettled:function(r){var e=this,n=tdt.f(e),i=n.resolve,o=n.reject,a=rdt(function(){var s=edt(e.resolve),l=[],c=0,u=1;ndt(r,function(g){var h=c++,d=!1;u++,Jht(s,e,g).then(function(f){d||(d=!0,l[h]={status:"fulfilled",value:f},--u||i(l))},function(f){d||(d=!0,l[h]={status:"rejected",reason:f},--u||i(l))})}),--u||i(l)});return a.error&&o(a.value),n.promise}});var odt=Xe,adt=An,sdt=bi,ldt=Jn,cdt=Oa,udt=zg,gdt=Rc,hdt=$4,WV="No one promise resolved";odt({target:"Promise",stat:!0,forced:hdt},{any:function(r){var e=this,n=ldt("AggregateError"),i=cdt.f(e),o=i.resolve,a=i.reject,s=udt(function(){var l=sdt(e.resolve),c=[],u=0,g=1,h=!1;gdt(r,function(d){var f=u++,C=!1;g++,adt(l,e,d).then(function(v){C||h||(h=!0,o(v))},function(v){C||h||(C=!0,c[f]=v,--g||a(new n(c,WV)))})}),--g||a(new n(c,WV))});return s.error&&a(s.value),i.promise}});var ddt=Xe,gy=Eg,fdt=Nt,Cdt=Jn,vdt=zr,Adt=SJ,ZV=XJ,Idt=gy&&gy.prototype,pdt=!!gy&&fdt(function(){Idt.finally.call({then:function(){}},function(){})});ddt({target:"Promise",proto:!0,real:!0,forced:pdt},{finally:function(t){var r=Adt(this,Cdt("Promise")),e=vdt(t);return this.then(e?function(n){return ZV(r,t()).then(function(){return n})}:t,e?function(n){return ZV(r,t()).then(function(){throw n})}:t)}});var mdt=Ar,ydt=mdt.Promise,bdt=ydt,wdt=bdt,$dt=Xe,_dt=Oa;$dt({target:"Promise",stat:!0},{withResolvers:function(){var r=_dt.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var Mdt=wdt,zdt=Mdt,Edt=Xe,Sdt=Oa,Tdt=zg;Edt({target:"Promise",stat:!0,forced:!0},{try:function(t){var r=Sdt.f(this),e=Tdt(t);return(e.error?r.reject:r.resolve)(e.value),r.promise}});var Ldt=zdt,kdt=Ldt,Odt=kdt,xdt=bQ,Hdt=xdt,Vdt=Hdt,Pdt=Vdt,Rdt=Pdt;(function(t){var r=gut.default,e=XX,n=K$,i=pJ,o=bJ,a=vut,s=CQ,l=mJ,c=Odt,u=Rdt,g=AQ;function h(){t.exports=h=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var d,f={},C=Object.prototype,v=C.hasOwnProperty,A=e||function(V,x,B){V[x]=B.value},I=typeof n=="function"?n:{},p=I.iterator||"@@iterator",m=I.asyncIterator||"@@asyncIterator",b=I.toStringTag||"@@toStringTag";function _(V,x,B){return e(V,x,{value:B,enumerable:!0,configurable:!0,writable:!0}),V[x]}try{_({},"")}catch{_=function(B,q,z){return B[q]=z}}function S(V,x,B,q){var z=x&&x.prototype instanceof N?x:N,$=i(z.prototype),O=new X(q||[]);return A($,"_invoke",{value:Ne(V,B,O)}),$}function E(V,x,B){try{return{type:"normal",arg:V.call(x,B)}}catch(q){return{type:"throw",arg:q}}}f.wrap=S;var T="suspendedStart",L="suspendedYield",H="executing",P="completed",R={};function N(){}function U(){}function F(){}var K={};_(K,p,function(){return this});var te=o,Me=te&&te(te(ae([])));Me&&Me!==C&&v.call(Me,p)&&(K=Me);var Ye=F.prototype=N.prototype=i(K);function De(V){var x;a(x=["next","throw","return"]).call(x,function(B){_(V,B,function(q){return this._invoke(B,q)})})}function we(V,x){function B(z,$,O,W){var Z=E(V[z],V,$);if(Z.type!=="throw"){var ee=Z.arg,ue=ee.value;return ue&&r(ue)=="object"&&v.call(ue,"__await")?x.resolve(ue.__await).then(function(ge){B("next",ge,O,W)},function(ge){B("throw",ge,O,W)}):x.resolve(ue).then(function(ge){ee.value=ge,O(ee)},function(ge){return B("throw",ge,O,W)})}W(Z.arg)}var q;A(this,"_invoke",{value:function($,O){function W(){return new x(function(Z,ee){B($,O,Z,ee)})}return q=q?q.then(W,W):W()}})}function Ne(V,x,B){var q=T;return function(z,$){if(q===H)throw new Error("Generator is already running");if(q===P){if(z==="throw")throw $;return{value:d,done:!0}}for(B.method=z,B.arg=$;;){var O=B.delegate;if(O){var W=Ue(O,B);if(W){if(W===R)continue;return W}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(q===T)throw q=P,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);q=H;var Z=E(V,x,B);if(Z.type==="normal"){if(q=B.done?P:L,Z.arg===R)continue;return{value:Z.arg,done:B.done}}Z.type==="throw"&&(q=P,B.method="throw",B.arg=Z.arg)}}}function Ue(V,x){var B=x.method,q=V.iterator[B];if(q===d)return x.delegate=null,B==="throw"&&V.iterator.return&&(x.method="return",x.arg=d,Ue(V,x),x.method==="throw")||B!=="return"&&(x.method="throw",x.arg=new TypeError("The iterator does not provide a '"+B+"' method")),R;var z=E(q,V.iterator,x.arg);if(z.type==="throw")return x.method="throw",x.arg=z.arg,x.delegate=null,R;var $=z.arg;return $?$.done?(x[V.resultName]=$.value,x.next=V.nextLoc,x.method!=="return"&&(x.method="next",x.arg=d),x.delegate=null,R):$:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,R)}function ot(V){var x,B={tryLoc:V[0]};1 in V&&(B.catchLoc=V[1]),2 in V&&(B.finallyLoc=V[2],B.afterLoc=V[3]),s(x=this.tryEntries).call(x,B)}function ft(V){var x=V.completion||{};x.type="normal",delete x.arg,V.completion=x}function X(V){this.tryEntries=[{tryLoc:"root"}],a(V).call(V,ot,this),this.reset(!0)}function ae(V){if(V||V===""){var x=V[p];if(x)return x.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var B=-1,q=function z(){for(;++B=0;--z){var $=this.tryEntries[z],O=$.completion;if($.tryLoc==="root")return q("end");if($.tryLoc<=this.prev){var W=v.call($,"catchLoc"),Z=v.call($,"finallyLoc");if(W&&Z){if(this.prev<$.catchLoc)return q($.catchLoc,!0);if(this.prev<$.finallyLoc)return q($.finallyLoc)}else if(W){if(this.prev<$.catchLoc)return q($.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return q($.finallyLoc)}}}},abrupt:function(x,B){for(var q=this.tryEntries.length-1;q>=0;--q){var z=this.tryEntries[q];if(z.tryLoc<=this.prev&&v.call(z,"finallyLoc")&&this.prev=0;--B){var q=this.tryEntries[B];if(q.finallyLoc===x)return this.complete(q.completion,q.afterLoc),ft(q),R}},catch:function(x){for(var B=this.tryEntries.length-1;B>=0;--B){var q=this.tryEntries[B];if(q.tryLoc===x){var z=q.completion;if(z.type==="throw"){var $=z.arg;ft(q)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(x,B,q){return this.delegate={iterator:ae(x),resultName:B,nextLoc:q},this.method==="next"&&(this.arg=d),R}},f}t.exports=h,t.exports.__esModule=!0,t.exports.default=t.exports})(wJ);var Ddt=wJ.exports,tv=Ddt(),Ndt=tv;try{regeneratorRuntime=tv}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=tv:Function("r","regeneratorRuntime = r")(tv)}var ri=nt(Ndt),qJ={exports:{}},Bdt=Nt,Fdt=Bdt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),jdt=Nt,Udt=En,Gdt=q1,KV=Fdt,rv=Object.isExtensible,Wdt=jdt(function(){rv(1)}),Zdt=Wdt||KV?function(r){return!Udt(r)||KV&&Gdt(r)==="ArrayBuffer"?!1:rv?rv(r):!0}:rv,Kdt=Nt,Ydt=!Kdt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Xdt=Xe,qdt=cr,Qdt=e0,Jdt=En,f_=Yr,eft=$i.f,YV=t0,tft=R$,C_=Zdt,rft=QI,nft=Ydt,QJ=!1,hs=rft("meta"),ift=0,v_=function(t){eft(t,hs,{value:{objectID:"O"+ift++,weakData:{}}})},oft=function(t,r){if(!Jdt(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!f_(t,hs)){if(!C_(t))return"F";if(!r)return"E";v_(t)}return t[hs].objectID},aft=function(t,r){if(!f_(t,hs)){if(!C_(t))return!0;if(!r)return!1;v_(t)}return t[hs].weakData},sft=function(t){return nft&&QJ&&C_(t)&&!f_(t,hs)&&v_(t),t},lft=function(){cft.enable=function(){},QJ=!0;var t=YV.f,r=qdt([].splice),e={};e[hs]=1,t(e).length&&(YV.f=function(n){for(var i=t(n),o=0,a=i.length;o1?arguments[1]:void 0),d;d=d?d.next:g.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),XV(o,e?{get:function(u){var g=l(this,u);return g&&g.value},set:function(u,g){return s(this,u===0?0:u,g)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),oh&&Sft(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,r,e){var n=r+" Iterator",i=C9(r),o=C9(n);xft(t,r,function(a,s){QV(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,JC(void 0,!0)):JC(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),Hft(r)}},Vft=tee,Pft=nee;Vft("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Pft);var Rft=Ar,Dft=Rft.Map,Nft=Dft,Bft=Nft,Fft=Bft,iee=nt(Fft),jft=Xe,Uft=$g.some,Gft=v4,Wft=Gft("some");jft({target:"Array",proto:!0,forced:!Wft},{some:function(r){return Uft(this,r,arguments.length>1?arguments[1]:void 0)}});var Zft=xn,Kft=Zft("Array","some"),Yft=Kr,Xft=Kft,v9=Array.prototype,qft=function(t){var r=t.some;return t===v9||Yft(v9,t)&&r===v9.some?Xft:r},Qft=qft,Jft=Qft,e0t=Jft,t0t=nt(e0t),r0t=xn,n0t=r0t("Array","keys"),i0t=n0t,o0t=i0t,a0t=Ms,s0t=Yr,l0t=Kr,c0t=o0t,A9=Array.prototype,u0t={DOMTokenList:!0,NodeList:!0},g0t=function(t){var r=t.keys;return t===A9||l0t(A9,t)&&r===A9.keys||s0t(u0t,a0t(t))?c0t:r},h0t=g0t,a2=nt(h0t),JV=lq,d0t=Math.floor,hy=function(t,r){var e=t.length,n=d0t(e/2);return e<8?f0t(t,r):C0t(t,hy(JV(t,0,n),r),hy(JV(t,n),r),r)},f0t=function(t,r){for(var e=t.length,n=1,i,o;n0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},C0t=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a3)){if(S0t)return!0;if(aP)return aP<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)t1.push({k:e+i,v:n})}for(t1.sort(function(o,a){return a.v-o.v}),i=0;inP(e)?1:-1}};w0t({target:"Array",proto:!0,forced:x0t},{sort:function(r){r!==void 0&&$0t(r);var e=_0t(this);if(aee)return r===void 0?sP(e):sP(e,r);var n=[],i=rP(e),o,a;for(a=0;athis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=Wlt(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,n;sc(e=$Q(n=this._queue).call(n,0)).call(e,function(i){i.fn.apply(i.context||i.fn,i.args||[])})}}],[{key:"extend",value:function(e,n){var i=new t(n);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var a=0;a=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function RCt(t,r){var e;if(t){if(typeof t=="string")return gP(t,r);var n=m4(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return q$(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gP(t,r)}}function gP(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);es&&(s=g,a=u)}return a}},{key:"min",value:function(n){var i=b9(this._pairs),o=i.next();if(o.done)return null;for(var a=o.value[1],s=n(o.value[1],o.value[0]);!(o=i.next()).done;){var l=ei(o.value,2),c=l[0],u=l[1],g=n(u,c);g=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function DCt(t,r){var e;if(t){if(typeof t=="string")return CP(t,r);var n=m4(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return q$(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CP(t,r)}}function CP(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e"u"||!J5||J5.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J5(Boolean,[],function(){})),!0}catch{return!1}}function FCt(t,r){return t[r]==null&&(t[r]=ICt()),t}var MA=function(t){out(e,t);var r=NCt(e);function e(n,i){var o;return YI(this,e),o=r.call(this),C1(IJ(o),"_queue",null),n&&!xi(n)&&(i=n,n=[]),o._options=i||{},o._data=new iee,o.length=0,o._idProp=o._options.fieldId||"id",n&&n.length&&o.add(n),o.setOptions(i),o}return C4(e,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(i){i&&i.queue!==void 0&&(i.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=pCt.extend(this,{replace:["add","update","remove"]})),i.queue&&typeof i.queue=="object"&&this._queue.setOptions(i.queue)))}},{key:"add",value:function(i,o){var a=this,s=[],l;if(xi(i)){var c=wo(i).call(i,function(h){return h[a._idProp]});if(t0t(c).call(c,function(h){return a._data.has(h)}))throw new Error("A duplicate id was found in the parameter array.");for(var u=0,g=i.length;uu?1:cs)&&(a=u,s=g)}}catch(h){l.e(h)}finally{l.f()}return a||null}},{key:"min",value:function(i){var o,a=null,s=null,l=w9(lP(o=this._data).call(o)),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=u[i];typeof g=="number"&&(s==null||g"u"&&Cy!==void 0,hee={all:Cy,IS_HTMLDDA:qCt},dee=hee,QCt=dee.all,In=dee.IS_HTMLDDA?function(t){return typeof t=="function"||t===QCt}:function(t){return typeof t=="function"},Sg={},JCt=Lt,pn=!JCt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),e5t=v0,r5=Function.prototype.call,Wi=e5t?r5.bind(r5):function(){return r5.apply(r5,arguments)},_4={},fee={}.propertyIsEnumerable,Cee=Object.getOwnPropertyDescriptor,t5t=Cee&&!fee.call({1:2},1);_4.f=t5t?function(r){var e=Cee(this,r);return!!e&&e.enumerable}:fee;var I0=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}},r5t=xt,n5t=Lt,i5t=zs,_9=Object,o5t=r5t("".split),M4=n5t(function(){return!_9("z").propertyIsEnumerable(0)})?function(t){return i5t(t)==="String"?o5t(t,""):_9(t)}:_9,Tg=function(t){return t==null},a5t=Tg,s5t=TypeError,p0=function(t){if(a5t(t))throw new s5t("Can't call method on "+t);return t},l5t=M4,c5t=p0,xa=function(t){return l5t(c5t(t))},IP=In,vee=hee,u5t=vee.all,mn=vee.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:IP(t)||t===u5t}:function(t){return typeof t=="object"?t!==null:IP(t)},kt={},M9=kt,z9=Sr,g5t=In,pP=function(t){return g5t(t)?t:void 0},vo=function(t,r){return arguments.length<2?pP(M9[t])||pP(z9[t]):M9[t]&&M9[t][r]||z9[t]&&z9[t][r]},h5t=xt,Dr=h5t({}.isPrototypeOf),m0=typeof navigator<"u"&&String(navigator.userAgent)||"",Aee=Sr,E9=m0,mP=Aee.process,yP=Aee.Deno,bP=mP&&mP.versions||yP&&yP.version,wP=bP&&bP.v8,$o,zA;wP&&($o=wP.split("."),zA=$o[0]>0&&$o[0]<4?1:+($o[0]+$o[1]));!zA&&E9&&($o=E9.match(/Edge\/(\d+)/),(!$o||$o[1]>=74)&&($o=E9.match(/Chrome\/(\d+)/),$o&&(zA=+$o[1])));var y0=zA,$P=y0,d5t=Lt,f5t=Sr,C5t=f5t.String,Lg=!!Object.getOwnPropertySymbols&&!d5t(function(){var t=Symbol("symbol detection");return!C5t(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$P&&$P<41}),v5t=Lg,Iee=v5t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",A5t=vo,I5t=In,p5t=Dr,m5t=Iee,y5t=Object,b0=m5t?function(t){return typeof t=="symbol"}:function(t){var r=A5t("Symbol");return I5t(r)&&p5t(r.prototype,y5t(t))},b5t=String,kg=function(t){try{return b5t(t)}catch{return"Object"}},w5t=In,$5t=kg,_5t=TypeError,Dc=function(t){if(w5t(t))return t;throw new _5t($5t(t)+" is not a function")},M5t=Dc,z5t=Tg,p_=function(t,r){var e=t[r];return z5t(e)?void 0:M5t(e)},S9=Wi,T9=In,L9=mn,E5t=TypeError,S5t=function(t,r){var e,n;if(r==="string"&&T9(e=t.toString)&&!L9(n=S9(e,t))||T9(e=t.valueOf)&&!L9(n=S9(e,t))||r!=="string"&&T9(e=t.toString)&&!L9(n=S9(e,t)))return n;throw new E5t("Can't convert object to primitive value")},pee={exports:{}},_P=Sr,T5t=Object.defineProperty,L5t=function(t,r){try{T5t(_P,t,{value:r,configurable:!0,writable:!0})}catch{_P[t]=r}return r},k5t=Sr,O5t=L5t,MP="__core-js_shared__",x5t=k5t[MP]||O5t(MP,{}),m_=x5t,zP=m_;(pee.exports=function(t,r){return zP[t]||(zP[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Og=pee.exports,H5t=p0,V5t=Object,_i=function(t){return V5t(H5t(t))},P5t=xt,R5t=_i,D5t=P5t({}.hasOwnProperty),yn=Object.hasOwn||function(r,e){return D5t(R5t(r),e)},N5t=xt,B5t=0,F5t=Math.random(),j5t=N5t(1 .toString),z4=function(t){return"Symbol("+(t===void 0?"":t)+")_"+j5t(++B5t+F5t,36)},U5t=Sr,G5t=Og,EP=yn,W5t=z4,Z5t=Lg,K5t=Iee,H2=U5t.Symbol,k9=G5t("wks"),Y5t=K5t?H2.for||H2:H2&&H2.withoutSetter||W5t,Tr=function(t){return EP(k9,t)||(k9[t]=Z5t&&EP(H2,t)?H2[t]:Y5t("Symbol."+t)),k9[t]},X5t=Wi,SP=mn,TP=b0,q5t=p_,Q5t=S5t,J5t=Tr,evt=TypeError,tvt=J5t("toPrimitive"),rvt=function(t,r){if(!SP(t)||TP(t))return t;var e=q5t(t,tvt),n;if(e){if(r===void 0&&(r="default"),n=X5t(e,t,r),!SP(n)||TP(n))return n;throw new evt("Can't convert object to primitive value")}return r===void 0&&(r="number"),Q5t(t,r)},nvt=rvt,ivt=b0,E4=function(t){var r=nvt(t,"string");return ivt(r)?r:r+""},ovt=Sr,LP=mn,vy=ovt.document,avt=LP(vy)&&LP(vy.createElement),mee=function(t){return avt?vy.createElement(t):{}},svt=pn,lvt=Lt,cvt=mee,yee=!svt&&!lvt(function(){return Object.defineProperty(cvt("div"),"a",{get:function(){return 7}}).a!==7}),uvt=pn,gvt=Wi,hvt=_4,dvt=I0,fvt=xa,Cvt=E4,vvt=yn,Avt=yee,kP=Object.getOwnPropertyDescriptor;Sg.f=uvt?kP:function(r,e){if(r=fvt(r),e=Cvt(e),Avt)try{return kP(r,e)}catch{}if(vvt(r,e))return dvt(!gvt(hvt.f,r,e),r[e])};var Ivt=Lt,pvt=In,mvt=/#|\.prototype\./,w0=function(t,r){var e=bvt[yvt(t)];return e===$vt?!0:e===wvt?!1:pvt(r)?Ivt(r):!!r},yvt=w0.normalize=function(t){return String(t).replace(mvt,".").toLowerCase()},bvt=w0.data={},wvt=w0.NATIVE="N",$vt=w0.POLYFILL="P",_vt=w0,OP=I_,Mvt=Dc,zvt=v0,Evt=OP(OP.bind),$0=function(t,r){return Mvt(t),r===void 0?t:zvt?Evt(t,r):function(){return t.apply(r,arguments)}},Zi={},Svt=pn,Tvt=Lt,bee=Svt&&Tvt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Lvt=mn,kvt=String,Ovt=TypeError,Ki=function(t){if(Lvt(t))return t;throw new Ovt(kvt(t)+" is not an object")},xvt=pn,Hvt=yee,Vvt=bee,n5=Ki,xP=E4,Pvt=TypeError,O9=Object.defineProperty,Rvt=Object.getOwnPropertyDescriptor,x9="enumerable",H9="configurable",V9="writable";Zi.f=xvt?Vvt?function(r,e,n){if(n5(r),e=xP(e),n5(n),typeof r=="function"&&e==="prototype"&&"value"in n&&V9 in n&&!n[V9]){var i=Rvt(r,e);i&&i[V9]&&(r[e]=n.value,n={configurable:H9 in n?n[H9]:i[H9],enumerable:x9 in n?n[x9]:i[x9],writable:!1})}return O9(r,e,n)}:O9:function(r,e,n){if(n5(r),e=xP(e),n5(n),Hvt)try{return O9(r,e,n)}catch{}if("get"in n||"set"in n)throw new Pvt("Accessors not supported");return"value"in n&&(r[e]=n.value),r};var Dvt=pn,Nvt=Zi,Bvt=I0,xg=Dvt?function(t,r,e){return Nvt.f(t,r,Bvt(1,e))}:function(t,r,e){return t[r]=e,t},i5=Sr,Fvt=A0,jvt=I_,Uvt=In,Gvt=Sg.f,Wvt=_vt,s2=kt,Zvt=$0,l2=xg,HP=yn,Kvt=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return Fvt(t,this,arguments)};return r.prototype=t.prototype,r},tt=function(t,r){var e=t.target,n=t.global,i=t.stat,o=t.proto,a=n?i5:i?i5[e]:(i5[e]||{}).prototype,s=n?s2:s2[e]||l2(s2,e,{})[e],l=s.prototype,c,u,g,h,d,f,C,v,A;for(h in r)c=Wvt(n?h:e+(i?".":"#")+h,t.forced),u=!c&&a&&HP(a,h),f=s[h],u&&(t.dontCallGetSet?(A=Gvt(a,h),C=A&&A.value):C=a[h]),d=u&&C?C:r[h],!(u&&typeof f==typeof d)&&(t.bind&&u?v=Zvt(d,i5):t.wrap&&u?v=Kvt(d):o&&Uvt(d)?v=jvt(d):v=d,(t.sham||d&&d.sham||f&&f.sham)&&l2(v,"sham",!0),l2(s,h,v),o&&(g=e+"Prototype",HP(s2,g)||l2(s2,g,{}),l2(s2[g],h,d),t.real&&l&&(c||!l[h])&&l2(l,h,d)))},Yvt=Math.ceil,Xvt=Math.floor,qvt=Math.trunc||function(r){var e=+r;return(e>0?Xvt:Yvt)(e)},Qvt=qvt,S4=function(t){var r=+t;return r!==r||r===0?0:Qvt(r)},Jvt=S4,eAt=Math.max,tAt=Math.min,_0=function(t,r){var e=Jvt(t);return e<0?eAt(e+r,0):tAt(e,r)},rAt=S4,nAt=Math.min,iAt=function(t){return t>0?nAt(rAt(t),9007199254740991):0},oAt=iAt,Ao=function(t){return oAt(t.length)},aAt=xa,sAt=_0,lAt=Ao,VP=function(t){return function(r,e,n){var i=aAt(r),o=lAt(i),a=sAt(n,o),s;if(t&&e!==e){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},y_={includes:VP(!0),indexOf:VP(!1)},M0={},cAt=xt,P9=yn,uAt=xa,gAt=y_.indexOf,hAt=M0,PP=cAt([].push),wee=function(t,r){var e=uAt(t),n=0,i=[],o;for(o in e)!P9(hAt,o)&&P9(e,o)&&PP(i,o);for(;r.length>n;)P9(e,o=r[n++])&&(~gAt(i,o)||PP(i,o));return i},b_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dAt=wee,fAt=b_,T4=Object.keys||function(r){return dAt(r,fAt)},z0={};z0.f=Object.getOwnPropertySymbols;var RP=pn,CAt=xt,vAt=Wi,AAt=Lt,R9=T4,IAt=z0,pAt=_4,mAt=_i,yAt=M4,c2=Object.assign,DP=Object.defineProperty,bAt=CAt([].concat),wAt=!c2||AAt(function(){if(RP&&c2({b:1},c2(DP({},"a",{enumerable:!0,get:function(){DP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach(function(i){r[i]=i}),c2({},t)[e]!==7||R9(c2({},r)).join("")!==n})?function(r,e){for(var n=mAt(r),i=arguments.length,o=1,a=IAt.f,s=pAt.f;i>o;)for(var l=yAt(arguments[o++]),c=a?bAt(R9(l),a(l)):R9(l),u=c.length,g=0,h;u>g;)h=c[g++],(!RP||vAt(s,l,h))&&(n[h]=l[h]);return n}:c2,$At=tt,NP=wAt;$At({target:"Object",stat:!0,arity:2,forced:Object.assign!==NP},{assign:NP});var _At=kt,MAt=_At.Object.assign,zAt=MAt,EAt=zAt,SAt=EAt,Wr=je(SAt),TAt=xt,L4=TAt([].slice),$ee=xt,LAt=Dc,kAt=mn,OAt=yn,BP=L4,xAt=v0,_ee=Function,HAt=$ee([].concat),VAt=$ee([].join),D9={},PAt=function(t,r,e){if(!OAt(D9,r)){for(var n=[],i=0;i=.1;)f=+o[g++%a],f>u&&(f=u),d=Math.sqrt(f*f/(1+c*c)),d=s<0?-d:d,r+=d,e+=c*d,h===!0?t.lineTo(r,e):t.moveTo(r,e),u-=f,h=!h}function QAt(t,r,e,n){t.beginPath();var i=6,o=Math.PI*2/i;t.moveTo(r+n,e);for(var a=1;a1?e-1:0),i=1;i=o?t?"":void 0:(a=UP(n,i),a<55296||a>56319||i+1===o||(s=UP(n,i+1))<56320||s>57343?t?CIt(n,i):a:t?vIt(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},AIt={codeAt:GP(!1),charAt:GP(!0)},IIt=Sr,pIt=In,WP=IIt.WeakMap,xee=pIt(WP)&&/native code/.test(String(WP)),mIt=Og,yIt=z4,ZP=mIt("keys"),k4=function(t){return ZP[t]||(ZP[t]=yIt(t))},bIt=xee,Hee=Sr,wIt=mn,$It=xg,B9=yn,F9=m_,_It=k4,MIt=M0,KP="Object already initialized",Iy=Hee.TypeError,zIt=Hee.WeakMap,EA,Yd,SA,EIt=function(t){return SA(t)?Yd(t):EA(t,{})},SIt=function(t){return function(r){var e;if(!wIt(r)||(e=Yd(r)).type!==t)throw new Iy("Incompatible receiver, "+t+" required");return e}};if(bIt||F9.state){var Jo=F9.state||(F9.state=new zIt);Jo.get=Jo.get,Jo.has=Jo.has,Jo.set=Jo.set,EA=function(t,r){if(Jo.has(t))throw new Iy(KP);return r.facade=t,Jo.set(t,r),r},Yd=function(t){return Jo.get(t)||{}},SA=function(t){return Jo.has(t)}}else{var u2=_It("state");MIt[u2]=!0,EA=function(t,r){if(B9(t,u2))throw new Iy(KP);return r.facade=t,$It(t,u2,r),r},Yd=function(t){return B9(t,u2)?t[u2]:{}},SA=function(t){return B9(t,u2)}}var Bc={set:EA,get:Yd,has:SA,enforce:EIt,getterFor:SIt},py=pn,TIt=yn,Vee=Function.prototype,LIt=py&&Object.getOwnPropertyDescriptor,M_=TIt(Vee,"name"),kIt=M_&&function(){}.name==="something",OIt=M_&&(!py||py&&LIt(Vee,"name").configurable),xIt={EXISTS:M_,PROPER:kIt,CONFIGURABLE:OIt},O4={},HIt=pn,VIt=bee,PIt=Zi,RIt=Ki,DIt=xa,NIt=T4;O4.f=HIt&&!VIt?Object.defineProperties:function(r,e){RIt(r);for(var n=DIt(e),i=NIt(e),o=i.length,a=0,s;o>a;)PIt.f(r,s=i[a++],n[s]);return r};var BIt=vo,FIt=BIt("document","documentElement"),jIt=Ki,UIt=O4,YP=b_,GIt=M0,WIt=FIt,ZIt=mee,KIt=k4,XP=">",qP="<",my="prototype",yy="script",Pee=KIt("IE_PROTO"),j9=function(){},Ree=function(t){return qP+yy+XP+t+qP+"/"+yy+XP},QP=function(t){t.write(Ree("")),t.close();var r=t.parentWindow.Object;return t=null,r},YIt=function(){var t=ZIt("iframe"),r="java"+yy+":",e;return t.style.display="none",WIt.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(Ree("document.F=Object")),e.close(),e.F},o5,iv=function(){try{o5=new ActiveXObject("htmlfile")}catch{}iv=typeof document<"u"?document.domain&&o5?QP(o5):YIt():QP(o5);for(var t=YP.length;t--;)delete iv[my][YP[t]];return iv()};GIt[Pee]=!0;var Hg=Object.create||function(r,e){var n;return r!==null?(j9[my]=jIt(r),n=new j9,j9[my]=null,n[Pee]=r):n=iv(),e===void 0?n:UIt.f(n,e)},XIt=Lt,Dee=!XIt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),qIt=yn,QIt=In,JIt=_i,e4t=k4,t4t=Dee,JP=e4t("IE_PROTO"),by=Object,r4t=by.prototype,x4=t4t?by.getPrototypeOf:function(t){var r=JIt(t);if(qIt(r,JP))return r[JP];var e=r.constructor;return QIt(e)&&r instanceof e?e.prototype:r instanceof by?r4t:null},n4t=xg,E0=function(t,r,e,n){return n&&n.enumerable?t[r]=e:n4t(t,r,e),t},i4t=Lt,o4t=In,a4t=mn,s4t=Hg,eR=x4,l4t=E0,c4t=Tr,wy=c4t("iterator"),Nee=!1,ts,U9,G9;[].keys&&(G9=[].keys(),"next"in G9?(U9=eR(eR(G9)),U9!==Object.prototype&&(ts=U9)):Nee=!0);var u4t=!a4t(ts)||i4t(function(){var t={};return ts[wy].call(t)!==t});u4t?ts={}:ts=s4t(ts);o4t(ts[wy])||l4t(ts,wy,function(){return this});var Bee={IteratorPrototype:ts,BUGGY_SAFARI_ITERATORS:Nee},g4t=$_,h4t=Nc,d4t=g4t?{}.toString:function(){return"[object "+h4t(this)+"]"},f4t=$_,C4t=Zi.f,v4t=xg,A4t=yn,I4t=d4t,p4t=Tr,tR=p4t("toStringTag"),Vg=function(t,r,e,n){if(t){var i=e?t:t.prototype;A4t(i,tR)||C4t(i,tR,{configurable:!0,value:r}),n&&!f4t&&v4t(i,"toString",I4t)}},Pg={},m4t=Bee.IteratorPrototype,y4t=Hg,b4t=I0,w4t=Vg,$4t=Pg,_4t=function(){return this},M4t=function(t,r,e,n){var i=r+" Iterator";return t.prototype=y4t(m4t,{next:b4t(+!n,e)}),w4t(t,i,!1,!0),$4t[i]=_4t,t},z4t=xt,E4t=Dc,S4t=function(t,r,e){try{return z4t(E4t(Object.getOwnPropertyDescriptor(t,r)[e]))}catch{}},T4t=In,L4t=String,k4t=TypeError,O4t=function(t){if(typeof t=="object"||T4t(t))return t;throw new k4t("Can't set "+L4t(t)+" as a prototype")},x4t=S4t,H4t=Ki,V4t=O4t,P4t=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,r={},e;try{e=x4t(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch{}return function(i,o){return H4t(i),V4t(o),t?e(i,o):i.__proto__=o,i}}():void 0),R4t=tt,D4t=Wi,N4t=xIt,B4t=M4t,F4t=x4,j4t=Vg,rR=E0,U4t=Tr,nR=Pg,G4t=Bee,W4t=N4t.PROPER,a5=G4t.BUGGY_SAFARI_ITERATORS,W9=U4t("iterator"),iR="keys",s5="values",oR="entries",Z4t=function(){return this},z_=function(t,r,e,n,i,o,a){B4t(e,r,n);var s=function(A){if(A===i&&h)return h;if(!a5&&A&&A in u)return u[A];switch(A){case iR:return function(){return new e(this,A)};case s5:return function(){return new e(this,A)};case oR:return function(){return new e(this,A)}}return function(){return new e(this)}},l=r+" Iterator",c=!1,u=t.prototype,g=u[W9]||u["@@iterator"]||i&&u[i],h=!a5&&g||s(i),d=r==="Array"&&u.entries||g,f,C,v;if(d&&(f=F4t(d.call(new t)),f!==Object.prototype&&f.next&&(j4t(f,l,!0,!0),nR[l]=Z4t)),W4t&&i===s5&&g&&g.name!==s5&&(c=!0,h=function(){return D4t(g,this)}),i)if(C={values:s(s5),keys:o?h:s(iR),entries:s(oR)},a)for(v in C)(a5||c||!(v in u))&&rR(u,v,C[v]);else R4t({target:r,proto:!0,forced:a5||c},C);return a&&u[W9]!==h&&rR(u,W9,h,{name:i}),nR[r]=h,C},E_=function(t,r){return{value:t,done:r}},K4t=AIt.charAt,Y4t=Ha,Fee=Bc,X4t=z_,aR=E_,jee="String Iterator",q4t=Fee.set,Q4t=Fee.getterFor(jee);X4t(String,"String",function(t){q4t(this,{type:jee,string:Y4t(t),index:0})},function(){var r=Q4t(this),e=r.string,n=r.index,i;return n>=e.length?aR(void 0,!0):(i=K4t(e,n),r.index+=i.length,aR(i,!1))});var J4t=Wi,sR=Ki,ept=p_,Uee=function(t,r,e){var n,i;sR(t);try{if(n=ept(t,"return"),!n){if(r==="throw")throw e;return e}n=J4t(n,t)}catch(o){i=!0,n=o}if(r==="throw")throw e;if(i)throw n;return sR(n),e},tpt=Ki,rpt=Uee,npt=function(t,r,e,n){try{return n?r(tpt(e)[0],e[1]):r(e)}catch(i){rpt(t,"throw",i)}},ipt=Tr,opt=Pg,apt=ipt("iterator"),spt=Array.prototype,Gee=function(t){return t!==void 0&&(opt.Array===t||spt[apt]===t)},lpt=xt,cpt=In,$y=m_,upt=lpt(Function.toString);cpt($y.inspectSource)||($y.inspectSource=function(t){return upt(t)});var gpt=$y.inspectSource,hpt=xt,dpt=Lt,Wee=In,fpt=Nc,Cpt=vo,vpt=gpt,Zee=function(){},Apt=[],Kee=Cpt("Reflect","construct"),S_=/^\s*(?:class|function)\b/,Ipt=hpt(S_.exec),ppt=!S_.test(Zee),ah=function(r){if(!Wee(r))return!1;try{return Kee(Zee,Apt,r),!0}catch{return!1}},Yee=function(r){if(!Wee(r))return!1;switch(fpt(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ppt||!!Ipt(S_,vpt(r))}catch{return!0}};Yee.sham=!0;var H4=!Kee||dpt(function(){var t;return ah(ah.call)||!ah(Object)||!ah(function(){t=!0})||t})?Yee:ah,mpt=E4,ypt=Zi,bpt=I0,Rg=function(t,r,e){var n=mpt(r);n in t?ypt.f(t,n,bpt(0,e)):t[n]=e},wpt=Nc,lR=p_,$pt=Tg,_pt=Pg,Mpt=Tr,zpt=Mpt("iterator"),V4=function(t){if(!$pt(t))return lR(t,zpt)||lR(t,"@@iterator")||_pt[wpt(t)]},Ept=Wi,Spt=Dc,Tpt=Ki,Lpt=kg,kpt=V4,Opt=TypeError,Xee=function(t,r){var e=arguments.length<2?kpt(t):r;if(Spt(e))return Tpt(Ept(e,t));throw new Opt(Lpt(t)+" is not iterable")},xpt=$0,Hpt=Wi,Vpt=_i,Ppt=npt,Rpt=Gee,Dpt=H4,Npt=Ao,cR=Rg,Bpt=Xee,Fpt=V4,uR=Array,jpt=function(r){var e=Vpt(r),n=Dpt(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=xpt(o,i>2?arguments[2]:void 0));var s=Fpt(e),l=0,c,u,g,h,d,f;if(s&&!(this===uR&&Rpt(s)))for(h=Bpt(e,s),d=h.next,u=n?new this:[];!(g=Hpt(d,h)).done;l++)f=a?Ppt(h,o,[g.value,l],!0):g.value,cR(u,l,f);else for(c=Npt(e),u=n?new this(c):uR(c);c>l;l++)f=a?o(e[l],l):e[l],cR(u,l,f);return u.length=l,u},Upt=Tr,qee=Upt("iterator"),Qee=!1;try{var Gpt=0,gR={next:function(){return{done:!!Gpt++}},return:function(){Qee=!0}};gR[qee]=function(){return this},Array.from(gR,function(){throw 2})}catch{}var Wpt=function(t,r){try{if(!r&&!Qee)return!1}catch{return!1}var e=!1;try{var n={};n[qee]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch{}return e},Zpt=tt,Kpt=jpt,Ypt=Wpt,Xpt=!Ypt(function(t){Array.from(t)});Zpt({target:"Array",stat:!0,forced:Xpt},{from:Kpt});var qpt=kt,Qpt=qpt.Array.from,Jpt=Qpt,Jee=Jpt,e3t=Jee,Fc=je(e3t),t3t=xa,hR=Pg,ete=Bc;Zi.f;var r3t=z_,l5=E_,tte="Array Iterator",n3t=ete.set,i3t=ete.getterFor(tte);r3t(Array,"Array",function(t,r){n3t(this,{type:tte,target:t3t(t),index:0,kind:r})},function(){var t=i3t(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,l5(void 0,!0);switch(e){case"keys":return l5(n,!1);case"values":return l5(r[n],!1)}return l5([n,r[n]],!1)},"values");hR.Arguments=hR.Array;var o3t=V4,a3t=o3t,s3t={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},l3t=s3t,c3t=Sr,u3t=Nc,g3t=xg,dR=Pg,h3t=Tr,fR=h3t("toStringTag");for(var Z9 in l3t){var CR=c3t[Z9],K9=CR&&CR.prototype;K9&&u3t(K9)!==fR&&g3t(K9,fR,Z9),dR[Z9]=dR.Array}var d3t=a3t,f3t=d3t,C3t=f3t,v3t=C3t,A3t=v3t,I3t=A3t,rte=I3t,nte=je(rte),p3t=rte,jc=je(p3t);function $e(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var ite={exports:{}},m3t=tt,y3t=pn,vR=Zi.f;m3t({target:"Object",stat:!0,forced:Object.defineProperty!==vR,sham:!y3t},{defineProperty:vR});var b3t=kt,ote=b3t.Object,w3t=ite.exports=function(r,e,n){return ote.defineProperty(r,e,n)};ote.defineProperty.sham&&(w3t.sham=!0);var $3t=ite.exports,_3t=$3t,ate=_3t,M3t=ate,z3t=M3t,E3t=z3t,S3t=E3t,T3t=S3t,P4=je(T3t),L3t=zs,Uc=Array.isArray||function(r){return L3t(r)==="Array"},k3t=TypeError,O3t=9007199254740991,T_=function(t){if(t>O3t)throw k3t("Maximum allowed index exceeded");return t},AR=Uc,x3t=H4,H3t=mn,V3t=Tr,P3t=V3t("species"),IR=Array,R3t=function(t){var r;return AR(t)&&(r=t.constructor,x3t(r)&&(r===IR||AR(r.prototype))?r=void 0:H3t(r)&&(r=r[P3t],r===null&&(r=void 0))),r===void 0?IR:r},D3t=R3t,L_=function(t,r){return new(D3t(t))(r===0?0:r)},N3t=Lt,B3t=Tr,F3t=y0,j3t=B3t("species"),S0=function(t){return F3t>=51||!N3t(function(){var r=[],e=r.constructor={};return e[j3t]=function(){return{foo:1}},r[t](Boolean).foo!==1})},U3t=tt,G3t=Lt,W3t=Uc,Z3t=mn,K3t=_i,Y3t=Ao,pR=T_,mR=Rg,X3t=L_,q3t=S0,Q3t=Tr,J3t=y0,ste=Q3t("isConcatSpreadable"),emt=J3t>=51||!G3t(function(){var t=[];return t[ste]=!1,t.concat()[0]!==t}),tmt=function(t){if(!Z3t(t))return!1;var r=t[ste];return r!==void 0?!!r:W3t(t)},rmt=!emt||!q3t("concat");U3t({target:"Array",proto:!0,arity:1,forced:rmt},{concat:function(r){var e=K3t(this),n=X3t(e,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;ov;v++)if((s||v in d)&&(p=d[v],m=f(p,v,h),t))if(r)I[v]=m;else if(m)switch(t){case 3:return!0;case 5:return p;case 6:return v;case 2:wR(I,p)}else switch(t){case 4:return!1;case 7:wR(I,p)}return o?-1:n||i?i:I}},tl={forEach:Os(0),map:Os(1),filter:Os(2),some:Os(3),every:Os(4),find:Os(5),findIndex:Os(6),filterReject:Os(7)},D4=tt,N4=Sr,O_=Wi,Smt=xt,Ru=pn,Du=Lg,Tmt=Lt,ln=yn,Lmt=Dr,_y=Ki,B4=xa,x_=E4,kmt=Ha,My=I0,Xd=Hg,hte=T4,Omt=T0,dte=R4,xmt=z0,fte=Sg,Cte=Zi,Hmt=O4,vte=_4,$R=E0,Vmt=k_,H_=Og,Pmt=k4,Ate=M0,_R=z4,Rmt=Tr,Dmt=L0,Nmt=Lr,Bmt=gte,Fmt=Vg,Ite=Bc,F4=tl.forEach,ui=Pmt("hidden"),j4="Symbol",qd="prototype",jmt=Ite.set,MR=Ite.getterFor(j4),To=Object[qd],Ul=N4.Symbol,Ih=Ul&&Ul[qd],Umt=N4.RangeError,Gmt=N4.TypeError,Y9=N4.QObject,pte=fte.f,Gl=Cte.f,mte=dte.f,Wmt=vte.f,yte=Smt([].push),ds=H_("symbols"),k0=H_("op-symbols"),Zmt=H_("wks"),zy=!Y9||!Y9[qd]||!Y9[qd].findChild,bte=function(t,r,e){var n=pte(To,r);n&&delete To[r],Gl(t,r,e),n&&t!==To&&Gl(To,r,n)},Ey=Ru&&Tmt(function(){return Xd(Gl({},"a",{get:function(){return Gl(this,"a",{value:7}).a}})).a!==7})?bte:Gl,X9=function(t,r){var e=ds[t]=Xd(Ih);return jmt(e,{type:j4,tag:t,description:r}),Ru||(e.description=r),e},U4=function(r,e,n){r===To&&U4(k0,e,n),_y(r);var i=x_(e);return _y(n),ln(ds,i)?(n.enumerable?(ln(r,ui)&&r[ui][i]&&(r[ui][i]=!1),n=Xd(n,{enumerable:My(0,!1)})):(ln(r,ui)||Gl(r,ui,My(1,{})),r[ui][i]=!0),Ey(r,i,n)):Gl(r,i,n)},V_=function(r,e){_y(r);var n=B4(e),i=hte(n).concat(Mte(n));return F4(i,function(o){(!Ru||O_(wte,n,o))&&U4(r,o,n[o])}),r},Kmt=function(r,e){return e===void 0?Xd(r):V_(Xd(r),e)},wte=function(r){var e=x_(r),n=O_(Wmt,this,e);return this===To&&ln(ds,e)&&!ln(k0,e)?!1:n||!ln(this,e)||!ln(ds,e)||ln(this,ui)&&this[ui][e]?n:!0},$te=function(r,e){var n=B4(r),i=x_(e);if(!(n===To&&ln(ds,i)&&!ln(k0,i))){var o=pte(n,i);return o&&ln(ds,i)&&!(ln(n,ui)&&n[ui][i])&&(o.enumerable=!0),o}},_te=function(r){var e=mte(B4(r)),n=[];return F4(e,function(i){!ln(ds,i)&&!ln(Ate,i)&&yte(n,i)}),n},Mte=function(t){var r=t===To,e=mte(r?k0:B4(t)),n=[];return F4(e,function(i){ln(ds,i)&&(!r||ln(To,i))&&yte(n,ds[i])}),n};Du||(Ul=function(){if(Lmt(Ih,this))throw new Gmt("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:kmt(arguments[0]),e=_R(r),n=function(i){this===To&&O_(n,k0,i),ln(this,ui)&&ln(this[ui],e)&&(this[ui][e]=!1);var o=My(1,i);try{Ey(this,e,o)}catch(a){if(!(a instanceof Umt))throw a;bte(this,e,o)}};return Ru&&zy&&Ey(To,e,{configurable:!0,set:n}),X9(e,r)},Ih=Ul[qd],$R(Ih,"toString",function(){return MR(this).tag}),$R(Ul,"withoutSetter",function(t){return X9(_R(t),t)}),vte.f=wte,Cte.f=U4,Hmt.f=V_,fte.f=$te,Omt.f=dte.f=_te,xmt.f=Mte,Dmt.f=function(t){return X9(Rmt(t),t)},Ru&&Vmt(Ih,"description",{configurable:!0,get:function(){return MR(this).description}}));D4({global:!0,constructor:!0,wrap:!0,forced:!Du,sham:!Du},{Symbol:Ul});F4(hte(Zmt),function(t){Nmt(t)});D4({target:j4,stat:!0,forced:!Du},{useSetter:function(){zy=!0},useSimple:function(){zy=!1}});D4({target:"Object",stat:!0,forced:!Du,sham:!Ru},{create:Kmt,defineProperty:U4,defineProperties:V_,getOwnPropertyDescriptor:$te});D4({target:"Object",stat:!0,forced:!Du},{getOwnPropertyNames:_te});Bmt();Fmt(Ul,j4);Ate[ui]=!0;var Ymt=Lg,zte=Ymt&&!!Symbol.for&&!!Symbol.keyFor,Xmt=tt,qmt=vo,Qmt=yn,Jmt=Ha,Ete=Og,e9t=zte,q9=Ete("string-to-symbol-registry"),t9t=Ete("symbol-to-string-registry");Xmt({target:"Symbol",stat:!0,forced:!e9t},{for:function(t){var r=Jmt(t);if(Qmt(q9,r))return q9[r];var e=qmt("Symbol")(r);return q9[r]=e,t9t[e]=r,e}});var r9t=tt,n9t=yn,i9t=b0,o9t=kg,a9t=Og,s9t=zte,zR=a9t("symbol-to-string-registry");r9t({target:"Symbol",stat:!0,forced:!s9t},{keyFor:function(r){if(!i9t(r))throw new TypeError(o9t(r)+" is not a symbol");if(n9t(zR,r))return zR[r]}});var l9t=xt,ER=Uc,c9t=In,SR=zs,u9t=Ha,TR=l9t([].push),g9t=function(t){if(c9t(t))return t;if(ER(t)){for(var r=t.length,e=[],n=0;nt.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?arguments[1]:void 0)}});var H7t=bn,V7t=H7t("Array").map,P7t=Dr,R7t=V7t,n6=Array.prototype,D7t=function(t){var r=t.map;return t===n6||P7t(n6,t)&&r===n6.map?R7t:r},N7t=D7t,B7t=N7t,F7t=B7t,Nu=je(F7t),j7t=tt,U7t=_i,Wte=T4,G7t=Lt,W7t=G7t(function(){Wte(1)});j7t({target:"Object",stat:!0,forced:W7t},{keys:function(r){return Wte(U7t(r))}});var Z7t=kt,K7t=Z7t.Object.keys,Y7t=K7t,X7t=Y7t,q7t=X7t,mr=je(q7t),Q7t=tt,J7t=xt,Zte=Date,eyt=J7t(Zte.prototype.getTime);Q7t({target:"Date",stat:!0},{now:function(){return eyt(new Zte)}});var tyt=kt,ryt=tyt.Date.now,nyt=ryt,iyt=nyt,oyt=iyt,LA=je(oyt),ayt=Lt,Dg=function(t,r){var e=[][t];return!!e&&ayt(function(){e.call(null,r||function(){return 1},1)})},syt=tl.forEach,lyt=Dg,cyt=lyt("forEach"),uyt=cyt?[].forEach:function(r){return syt(this,r,arguments.length>1?arguments[1]:void 0)},gyt=tt,ZR=uyt;gyt({target:"Array",proto:!0,forced:[].forEach!==ZR},{forEach:ZR});var hyt=bn,dyt=hyt("Array").forEach,fyt=dyt,Cyt=fyt,vyt=Nc,Ayt=yn,Iyt=Dr,pyt=Cyt,i6=Array.prototype,myt={DOMTokenList:!0,NodeList:!0},yyt=function(t){var r=t.forEach;return t===i6||Iyt(i6,t)&&r===i6.forEach||Ayt(myt,vyt(t))?pyt:r},byt=yyt,Kt=je(byt),wyt=tt,$yt=xt,_yt=Uc,Myt=$yt([].reverse),KR=[1,2];wyt({target:"Array",proto:!0,forced:String(KR)===String(KR.reverse())},{reverse:function(){return _yt(this)&&(this.length=this.length),Myt(this)}});var zyt=bn,Eyt=zyt("Array").reverse,Syt=Dr,Tyt=Eyt,o6=Array.prototype,Lyt=function(t){var r=t.reverse;return t===o6||Syt(o6,t)&&r===o6.reverse?Tyt:r},kyt=Lyt,Oyt=kyt,xyt=Oyt,Wl=je(xyt),YR=kg,Hyt=TypeError,Kte=function(t,r){if(!delete t[r])throw new Hyt("Cannot delete property "+YR(r)+" of "+YR(t))},Vyt=tt,Pyt=_i,Ryt=_0,Dyt=S4,Nyt=Ao,Byt=Fte,Fyt=T_,jyt=L_,Uyt=Rg,a6=Kte,Gyt=S0,Wyt=Gyt("splice"),Zyt=Math.max,Kyt=Math.min;Vyt({target:"Array",proto:!0,forced:!Wyt},{splice:function(r,e){var n=Pyt(this),i=Nyt(n),o=Ryt(r,i),a=arguments.length,s,l,c,u,g,h;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=Kyt(Zyt(Dyt(e),0),i-o)),Fyt(i+s-l),c=jyt(n,l),u=0;ui-l+s;u--)a6(n,u-1)}else if(s>l)for(u=i-l;u>o;u--)g=u+l-1,h=u+s-1,g in n?n[h]=n[g]:a6(n,h);for(u=0;u1?arguments[1]:void 0)}});var sbt=bn,lbt=sbt("Array").includes,cbt=mn,ubt=zs,gbt=Tr,hbt=gbt("match"),dbt=function(t){var r;return cbt(t)&&((r=t[hbt])!==void 0?!!r:ubt(t)==="RegExp")},fbt=dbt,Cbt=TypeError,vbt=function(t){if(fbt(t))throw new Cbt("The method doesn't accept regular expressions");return t},Abt=Tr,Ibt=Abt("match"),pbt=function(t){var r=/./;try{"/./"[t](r)}catch{try{return r[Ibt]=!1,"/./"[t](r)}catch{}}return!1},mbt=tt,ybt=xt,bbt=vbt,wbt=p0,XR=Ha,$bt=pbt,_bt=ybt("".indexOf);mbt({target:"String",proto:!0,forced:!$bt("includes")},{includes:function(r){return!!~_bt(XR(wbt(this)),XR(bbt(r)),arguments.length>1?arguments[1]:void 0)}});var Mbt=bn,zbt=Mbt("String").includes,qR=Dr,Ebt=lbt,Sbt=zbt,l6=Array.prototype,c6=String.prototype,Tbt=function(t){var r=t.includes;return t===l6||qR(l6,t)&&r===l6.includes?Ebt:typeof t=="string"||t===c6||qR(c6,t)&&r===c6.includes?Sbt:r},Lbt=Tbt,kbt=Lbt,Obt=kbt,I1=je(Obt),xbt=tt,Hbt=Lt,Vbt=_i,Yte=x4,Pbt=Dee,Rbt=Hbt(function(){Yte(1)});xbt({target:"Object",stat:!0,forced:Rbt,sham:!Pbt},{getPrototypeOf:function(r){return Yte(Vbt(r))}});var Dbt=kt,Nbt=Dbt.Object.getPrototypeOf,Bbt=Nbt,Xte=Bbt,Fbt=Xte,QR=je(Fbt),jbt=tt,Ubt=tl.filter,Gbt=S0,Wbt=Gbt("filter");jbt({target:"Array",proto:!0,forced:!Wbt},{filter:function(r){return Ubt(this,r,arguments.length>1?arguments[1]:void 0)}});var Zbt=bn,Kbt=Zbt("Array").filter,Ybt=Dr,Xbt=Kbt,u6=Array.prototype,qbt=function(t){var r=t.filter;return t===u6||Ybt(u6,t)&&r===u6.filter?Xbt:r},Qbt=qbt,Jbt=Qbt,ewt=Jbt,gi=je(ewt),D_=` \v\f\r                 \u2028\u2029\uFEFF`,twt=xt,rwt=p0,nwt=Ha,Ty=D_,JR=twt("".replace),iwt=RegExp("^["+Ty+"]+"),owt=RegExp("(^|[^"+Ty+"])["+Ty+"]+$"),g6=function(t){return function(r){var e=nwt(rwt(r));return t&1&&(e=JR(e,iwt,"")),t&2&&(e=JR(e,owt,"$1")),e}},qte={start:g6(1),end:g6(2),trim:g6(3)},Qte=Sr,awt=Lt,swt=xt,lwt=Ha,cwt=qte.trim,eD=D_,Yh=Qte.parseInt,tD=Qte.Symbol,rD=tD&&tD.iterator,Jte=/^[+-]?0x/i,uwt=swt(Jte.exec),gwt=Yh(eD+"08")!==8||Yh(eD+"0x16")!==22||rD&&!awt(function(){Yh(Object(rD))}),hwt=gwt?function(r,e){var n=cwt(lwt(r));return Yh(n,e>>>0||(uwt(Jte,n)?16:10))}:Yh,dwt=tt,nD=hwt;dwt({global:!0,forced:parseInt!==nD},{parseInt:nD});var fwt=kt,Cwt=fwt.parseInt,vwt=Cwt,Awt=vwt,Iwt=Awt,_o=je(Iwt),pwt=tt,mwt=I_,ywt=y_.indexOf,bwt=Dg,Ly=mwt([].indexOf),ere=!!Ly&&1/Ly([1],1,-0)<0,wwt=ere||!bwt("indexOf");pwt({target:"Array",proto:!0,forced:wwt},{indexOf:function(r){var e=arguments.length>1?arguments[1]:void 0;return ere?Ly(this,r,e)||0:ywt(this,r,e)}});var $wt=bn,_wt=$wt("Array").indexOf,Mwt=Dr,zwt=_wt,h6=Array.prototype,Ewt=function(t){var r=t.indexOf;return t===h6||Mwt(h6,t)&&r===h6.indexOf?zwt:r},Swt=Ewt,Twt=Swt,Lwt=Twt,Et=je(Lwt),kwt=tt,Owt=pn,xwt=Hg;kwt({target:"Object",stat:!0,sham:!Owt},{create:xwt});var Hwt=kt,Vwt=Hwt.Object,Pwt=function(r,e){return Vwt.create(r,e)},Rwt=Pwt,tre=Rwt,Dwt=tre,Zl=je(Dwt),ky=kt,Nwt=A0;ky.JSON||(ky.JSON={stringify:JSON.stringify});var Bwt=function(r,e,n){return Nwt(ky.JSON.stringify,null,arguments)},Fwt=Bwt,jwt=Fwt,Uwt=jwt,x0=je(Uwt),Gwt=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Wwt=TypeError,Zwt=function(t,r){if(te,a=Ywt(n)?n:e$t(n),s=o?Qwt(arguments,e):[],l=o?function(){Kwt(a,this,s)}:a;return r?t(l,i):t(l)}:t},r$t=tt,ire=Sr,n$t=nre,iD=n$t(ire.setInterval,!0);r$t({global:!0,bind:!0,forced:ire.setInterval!==iD},{setInterval:iD});var i$t=tt,ore=Sr,o$t=nre,oD=o$t(ore.setTimeout,!0);i$t({global:!0,bind:!0,forced:ore.setTimeout!==oD},{setTimeout:oD});var a$t=kt,s$t=a$t.setTimeout,l$t=s$t,pa=je(l$t),c$t=_i,aD=_0,u$t=Ao,g$t=function(r){for(var e=c$t(this),n=u$t(e),i=arguments.length,o=aD(i>1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,s=a===void 0?n:aD(a,n);s>o;)e[o++]=r;return e},h$t=tt,d$t=g$t;h$t({target:"Array",proto:!0},{fill:d$t});var f$t=bn,C$t=f$t("Array").fill,v$t=Dr,A$t=C$t,d6=Array.prototype,I$t=function(t){var r=t.fill;return t===d6||v$t(d6,t)&&r===d6.fill?A$t:r},p$t=I$t,m$t=p$t,y$t=m$t,H0=je(y$t);/*! 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 Uo(){return Uo=Object.assign||function(t){for(var r=1;r"u"?{style:{}}:document.createElement("div"),w$t="function",P2=Math.round,dc=Math.abs,N_=Date.now;function G4(t,r){for(var e,n,i=r[0].toUpperCase()+r.slice(1),o=0;o"u"?ns={}:ns=window;var are=G4(b$t.style,"touchAction"),sre=are!==void 0;function $$t(){if(!sre)return!1;var t={},r=ns.CSS&&ns.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return t[e]=r?ns.CSS.supports("touch-action",e):!0}),t}var lre="compute",cre="auto",xy="manipulation",Kl="none",Qd="pan-x",Jd="pan-y",g5=$$t(),_$t=/mobile|tablet|ip(ad|hone|od)|android/i,ure="ontouchstart"in ns,M$t=G4(ns,"PointerEvent")!==void 0,z$t=ure&&_$t.test(navigator.userAgent),V0="touch",E$t="pen",B_="mouse",S$t="kinect",T$t=25,Yn=1,Gc=2,Zr=4,Ai=8,kA=1,P0=2,R0=4,D0=8,Bu=16,ma=P0|R0,Yl=D0|Bu,gre=ma|Yl,hre=["x","y"],OA=["clientX","clientY"];function is(t,r,e){var n;if(t)if(t.forEach)t.forEach(r,e);else if(t.length!==void 0)for(n=0;n-1}function L$t(t){if(Tl(t,Kl))return Kl;var r=Tl(t,Qd),e=Tl(t,Jd);return r&&e?Kl:r||e?r?Qd:Jd:Tl(t,xy)?xy:cre}var dre=function(){function t(e,n){this.manager=e,this.set(n)}var r=t.prototype;return r.set=function(n){n===lre&&(n=this.compute()),sre&&this.manager.element.style&&g5[n]&&(this.manager.element.style[are]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return is(this.manager.recognizers,function(i){W4(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),L$t(n.join(" "))},r.preventDefaults=function(n){var i=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var a=this.actions,s=Tl(a,Kl)&&!g5[Kl],l=Tl(a,Jd)&&!g5[Jd],c=Tl(a,Qd)&&!g5[Qd];if(s){var u=n.pointers.length===1,g=n.distance<2,h=n.deltaTime<250;if(u&&g&&h)return}if(!(c&&l)&&(s||l&&o&ma||c&&o&Yl))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function F_(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}function fre(t){var r=t.length;if(r===1)return{x:P2(t[0].clientX),y:P2(t[0].clientY)};for(var e=0,n=0,i=0;i=dc(r)?t<0?P0:R0:r<0?D0:Bu}function k$t(t,r){var e=r.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};(r.eventType===Yn||o.eventType===Zr)&&(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:e.x,y:e.y}),r.deltaX=i.x+(e.x-n.x),r.deltaY=i.y+(e.y-n.y)}function vre(t,r,e){return{x:r/t||0,y:e/t||0}}function O$t(t,r){return xA(r[0],r[1],OA)/xA(t[0],t[1],OA)}function x$t(t,r){return Hy(r[1],r[0],OA)+Hy(t[1],t[0],OA)}function H$t(t,r){var e=t.lastInterval||r,n=r.timeStamp-e.timeStamp,i,o,a,s;if(r.eventType!==Ai&&(n>T$t||e.velocity===void 0)){var l=r.deltaX-e.deltaX,c=r.deltaY-e.deltaY,u=vre(n,l,c);o=u.x,a=u.y,i=dc(u.x)>dc(u.y)?u.x:u.y,s=Cre(l,c),t.lastInterval=r}else i=e.velocity,o=e.velocityX,a=e.velocityY,s=e.direction;r.velocity=i,r.velocityX=o,r.velocityY=a,r.direction=s}function V$t(t,r){var e=t.session,n=r.pointers,i=n.length;e.firstInput||(e.firstInput=lD(r)),i>1&&!e.firstMultiple?e.firstMultiple=lD(r):i===1&&(e.firstMultiple=!1);var o=e.firstInput,a=e.firstMultiple,s=a?a.center:o.center,l=r.center=fre(n);r.timeStamp=N_(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=Hy(s,l),r.distance=xA(s,l),k$t(e,r),r.offsetDirection=Cre(r.deltaX,r.deltaY);var c=vre(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=c.x,r.overallVelocityY=c.y,r.overallVelocity=dc(c.x)>dc(c.y)?c.x:c.y,r.scale=a?O$t(a.pointers,n):1,r.rotation=a?x$t(a.pointers,n):0,r.maxPointers=e.prevInput?r.pointers.length>e.prevInput.maxPointers?r.pointers.length:e.prevInput.maxPointers:r.pointers.length,H$t(e,r);var u=t.element,g=r.srcEvent,h;g.composedPath?h=g.composedPath()[0]:g.path?h=g.path[0]:h=g.target,F_(h,u)&&(u=h),r.target=u}function P$t(t,r,e){var n=e.pointers.length,i=e.changedPointers.length,o=r&Yn&&n-i===0,a=r&(Zr|Ai)&&n-i===0;e.isFirst=!!o,e.isFinal=!!a,o&&(t.session={}),e.eventType=r,V$t(t,e),t.emit("hammer.input",e),t.recognize(e),t.session.prevInput=e}function ef(t){return t.trim().split(/\s+/g)}function Xh(t,r,e){is(ef(r),function(n){t.addEventListener(n,e,!1)})}function qh(t,r,e){is(ef(r),function(n){t.removeEventListener(n,e,!1)})}function cD(t){var r=t.ownerDocument||t;return r.defaultView||r.parentWindow||window}var Ng=function(){function t(e,n){var i=this;this.manager=e,this.callback=n,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(o){W4(e.options.enable,[e])&&i.handler(o)},this.init()}var r=t.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Xh(this.element,this.evEl,this.domHandler),this.evTarget&&Xh(this.target,this.evTarget,this.domHandler),this.evWin&&Xh(cD(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&qh(this.element,this.evEl,this.domHandler),this.evTarget&&qh(this.target,this.evTarget,this.domHandler),this.evWin&&qh(cD(this.element),this.evWin,this.domHandler)},t}();function fc(t,r,e){if(t.indexOf&&!e)return t.indexOf(r);for(var n=0;nl[r]}):n=n.sort()),n}var N$t={touchstart:Yn,touchmove:Gc,touchend:Zr,touchcancel:Ai},B$t="touchstart touchmove touchend touchcancel",U_=function(t){Io(r,t);function r(){var n;return r.prototype.evTarget=B$t,n=t.apply(this,arguments)||this,n.targetIds={},n}var e=r.prototype;return e.handler=function(i){var o=N$t[i.type],a=F$t.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:V0,srcEvent:i})},r}(Ng);function F$t(t,r){var e=tf(t.touches),n=this.targetIds;if(r&(Yn|Gc)&&e.length===1)return n[e[0].identifier]=!0,[e,e];var i,o,a=tf(t.changedTouches),s=[],l=this.target;if(o=e.filter(function(c){return F_(c.target,l)}),r===Yn)for(i=0;i-1&&i.splice(s,1)};setTimeout(o,W$t)}}function Z$t(t,r){t&Yn?(this.primaryTouch=r.changedPointers[0].identifier,gD.call(this,r)):t&(Zr|Ai)&&gD.call(this,r)}function K$t(t){for(var r=t.srcEvent.clientX,e=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(i,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},r.emit=function(n){var i=this,o=this.state;function a(s){i.manager.emit(s,n)}o=p1&&a(i.options.event+hD(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=ua},r.canEmit=function(){for(var n=0;no.threshold&&l&o.direction},e.attrTest=function(i){return ju.prototype.attrTest.call(this,i)&&(this.state&go||!(this.state&go)&&this.directionTest(i))},e.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=yre(i.direction);o&&(i.additionalEvent=this.options.event+o),t.prototype.emit.call(this,i)},r}(ju),bre=function(t){Io(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Uo({event:"swipe",threshold:10,velocity:.3,direction:ma|Yl,pointers:1},n))||this}var e=r.prototype;return e.getTouchAction=function(){return W_.prototype.getTouchAction.call(this)},e.attrTest=function(i){var o=this.options.direction,a;return o&(ma|Yl)?a=i.overallVelocity:o&ma?a=i.overallVelocityX:o&Yl&&(a=i.overallVelocityY),t.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&dc(a)>this.options.velocity&&i.eventType&Zr},e.emit=function(i){var o=yre(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(ju),wre=function(t){Io(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Uo({event:"pinch",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Kl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&go)},e.emit=function(i){if(i.scale!==1){var o=i.scale<1?"in":"out";i.additionalEvent=this.options.event+o}t.prototype.emit.call(this,i)},r}(ju),$re=function(t){Io(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Uo({event:"rotate",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Kl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&go)},r}(ju),_re=function(t){Io(r,t);function r(n){var i;return n===void 0&&(n={}),i=t.call(this,Uo({event:"press",pointers:1,time:251,threshold:9},n))||this,i._timer=null,i._input=null,i}var e=r.prototype;return e.getTouchAction=function(){return[cre]},e.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distancea.time;if(this._input=i,!l||!s||i.eventType&(Zr|Ai)&&!c)this.reset();else if(i.eventType&Yn)this.reset(),this._timer=setTimeout(function(){o.state=os,o.tryEmit()},a.time);else if(i.eventType&Zr)return os;return ua},e.reset=function(){clearTimeout(this._timer)},e.emit=function(i){this.state===os&&(i&&i.eventType&Zr?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=N_(),this.manager.emit(this.options.event,this._input)))},r}(N0),Mre={domEvents:!1,touchAction:lre,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},dD=[[$re,{enable:!1}],[wre,{enable:!1},["rotate"]],[bre,{direction:ma}],[W_,{direction:ma},["swipe"]],[Vy],[Vy,{event:"doubletap",taps:2},["tap"]],[_re]],Q$t=1,fD=2;function CD(t,r){var e=t.element;if(e.style){var n;is(t.options.cssProps,function(i,o){n=G4(e.style,o),r?(t.oldCssProps[n]=e.style[n],e.style[n]=i):e.style[n]=t.oldCssProps[n]||""}),r||(t.oldCssProps={})}}function J$t(t,r){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.gesture=r,r.target.dispatchEvent(e)}var vD=function(){function t(e,n){var i=this;this.options=hc({},Mre,n||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=Y$t(this),this.touchAction=new dre(this,this.options.touchAction),CD(this,!0),is(this.options.recognizers,function(o){var a=i.add(new o[0](o[1]));o[2]&&a.recognizeWith(o[2]),o[3]&&a.requireFailure(o[3])},this)}var r=t.prototype;return r.set=function(n){return hc(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},r.stop=function(n){this.session.stopped=n?fD:Q$t},r.recognize=function(n){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(n);var o,a=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&os)&&(i.curRecognizer=null,s=null);for(var l=0;l\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,n,o),t.apply(this,arguments)}}var Ere=zre(function(t,r,e){for(var n=Object.keys(r),i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function l_t(t,r){var e;if(t){if(typeof t=="string")return ID(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Fc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ID(t,r)}}function ID(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e>>0,i-=t,i*=t,t=i>>>0,i-=t,t+=i*4294967296}return(t>>>0)*23283064365386963e-26}}function h_t(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}var Z_=typeof window<"u"?window.Hammer||s_t:function(){return h_t()};function ga(t){var r=this,e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var n=Z_(this._dom.overlay);n.on("tap",Ie(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){n.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Kt(i).call(i,function(o){n.on(o,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(o){d_t(o.target,t)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})),this._escListener=function(o){("key"in o?o.key==="Escape":o.keyCode===27)&&r.deactivate()}}kee(ga.prototype);ga.current=null;ga.prototype.destroy=function(){var t,r;this.deactivate();var e=Tre(Wl(t=rs(r=this._cleanupQueue).call(r,0)).call(t)),n;try{for(e.s();!(n=e.n()).done;){var i=n.value;i()}}catch(o){e.e(o)}finally{e.f()}};ga.prototype.activate=function(){ga.current&&ga.current.deactivate(),ga.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)};ga.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")};ga.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};function d_t(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var f_t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,C_t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,v_t=/^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,A_t=/^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 Ks(t){if(t)for(;t.hasChildNodes()===!0;){var r=t.firstChild;r&&(Ks(r),t.removeChild(r))}}function nu(t){return t instanceof String||typeof t=="string"}function pD(t){return Wt(t)==="object"&&t!==null}function Cc(t,r,e,n){var i=!1;n===!0&&(i=r[e]===null&&t[e]!==void 0),i?delete t[e]:t[e]=r[e]}function Lre(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var n in t)if(r[n]!==void 0)if(r[n]===null||Wt(r[n])!=="object")Cc(t,r,n,e);else{var i=t[n],o=r[n];pD(i)&&pD(o)&&Lre(i,o,e)}}function Bg(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(jt(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!1;if(jt(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!I1(t).call(t,i))if(e[i]&&e[i].constructor===Object)r[i]===void 0&&(r[i]={}),r[i].constructor===Object?rr(r[i],e[i]):Cc(r,e,i,n);else if(jt(e[i])){r[i]=[];for(var o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)||e===!0)if(Wt(r[i])==="object"&&r[i]!==null&&QR(r[i])===Object.prototype)t[i]===void 0?t[i]=rr({},r[i],e):Wt(t[i])==="object"&&t[i]!==null&&QR(t[i])===Object.prototype?rr(t[i],r[i],e):Cc(t,r,i,n);else if(jt(r[i])){var o;t[i]=zn(o=r[i]).call(o)}else Cc(t,r,i,n);return t}function VA(t,r){var e;return R_(e=[]).call(e,ia(t),[r])}function I_t(t){return zn(t).call(t)}function p_t(t){return t.getBoundingClientRect().left}function m_t(t){return t.getBoundingClientRect().top}function vt(t,r){if(jt(t))for(var e=t.length,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=function(f){return f!=null},o=function(f){return f!==null&&Wt(f)==="object"},a=function(f){for(var C in f)if(Object.prototype.hasOwnProperty.call(f,C))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(r))throw new Error("Parameter options must be an object");if(!i(e))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var s=function(f,C,v){o(f[v])||(f[v]={});var A=C[v],I=f[v];for(var p in A)Object.prototype.hasOwnProperty.call(A,p)&&(I[p]=A[p])},l=r[e],c=o(n)&&!a(n),u=c?n[e]:void 0,g=u?u.enabled:void 0;if(l!==void 0){if(typeof l=="boolean"){o(t[e])||(t[e]={}),t[e].enabled=l;return}if(l===null&&!o(t[e]))if(i(u))t[e]=Zl(u);else return;if(o(l)){var h=!0;l.enabled!==void 0?h=l.enabled:g!==void 0&&(h=u.enabled),s(t,r,e),t[e].enabled=h}}}var w_t={linear:function(r){return r},easeInQuad:function(r){return r*r},easeOutQuad:function(r){return r*(2-r)},easeInOutQuad:function(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic:function(r){return r*r*r},easeOutCubic:function(r){return--r*r*r+1},easeInOutCubic:function(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart:function(r){return r*r*r*r},easeOutQuart:function(r){return 1- --r*r*r*r},easeInOutQuart:function(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint:function(r){return r*r*r*r*r},easeOutQuint:function(r){return 1+--r*r*r*r*r},easeInOutQuint:function(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function Ys(t,r){var e;jt(r)||(r=[r]);var n=Tre(t),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o){e=o[r[0]];for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:1;$e(this,t),this.pixelRatio=r,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=function(){},this.closeCallback=function(){},this._create()}return _e(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return $_t[e]}},{key:"setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var i,o=this._isColorString(e);if(o!==void 0&&(e=o),nu(e)===!0){if(xre(e)===!0){var a=e.substr(4).substr(0,e.length-5).split(",");i={r:a[0],g:a[1],b:a[2],a:1}}else if(b_t(e)===!0){var 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(Ore(e)===!0){var l=K_(e);i={r:l.r,g:l.g,b:l.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var c=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:c}}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: "+x0(e));this._setColor(i,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=Wr({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",pa(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=Wr({},e)),this.color=e;var i=ph(e.r,e.g,e.b),o=2*Math.PI,a=this.r*i.s,s=this.centerCoordinates.x+a*Math.sin(o*i.h),l=this.centerCoordinates.y+a*Math.cos(o*i.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=ph(this.color.r,this.color.g,this.color.b);n.v=e/100;var i=av(n.h,n.s,n.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=ph(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);var o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,o,a),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-n.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),H0(i).call(i),this.brightnessRange.value=100*n.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+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,n,i,o;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){var s=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var a=document.createElement("DIV");a.style.color="red",a.style.fontWeight="bold",a.style.padding="10px",a.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(a)}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);var l=this;this.opacityRange.onchange=function(){l._setOpacity(this.value)},this.opacityRange.oninput=function(){l._setOpacity(this.value)},this.brightnessRange.onchange=function(){l._setBrightness(this.value)},this.brightnessRange.oninput=function(){l._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=Ie(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=Ie(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Ie(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=Ie(o=this._loadLast).call(o,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)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new Z_(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var 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);var n=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,n,i);var o,a,s,l;this.centerCoordinates={x:n*.5,y:i*.5},this.r=.49*n;var c=2*Math.PI/360,u=1/360,g=1/this.r,h;for(s=0;s<360;s++)for(l=0;l3&&arguments[3]!==void 0?arguments[3]:1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};$e(this,t),this.parent=r,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Wr(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new __t(i),this.wrapper=void 0}return _e(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(jt(e))this.options.filter=e.join();else if(Wt(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),gi(e)!==void 0&&(this.options.filter=gi(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);gi(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=gi(this.options),n=0,i=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(o,[]),i=i||this._handleObject(this.configureOptions[o],[o],!0)):(e===!0||Et(e).call(e,o)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?i-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:!1,o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,i===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(Dy("i","b",e))}else o.innerText=e+":";return o}},{key:"_makeDropdown",value:function(e,n,i){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&Et(e).call(e,n)!==-1&&(a=Et(e).call(e,n));for(var s=0;ss&&s!==1&&(c.max=Math.ceil(n*h),g=c.max,u="range increased"),c.value=n}else c.value=o;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=c.value;var f=this;c.onchange=function(){d.value=this.value,f._update(Number(this.value),i)},c.oninput=function(){d.value=this.value};var C=this._makeLabel(i[i.length-1],i),v=this._makeItem(i,C,c,d);u!==""&&this.popupHistory[v]!==g&&(this.popupHistory[v]=g,this._setupPopup(u,v))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){e._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.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(n)}}},{key:"_setupPopup",value:function(e,n){var i=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=!1,a=gi(this.options),s=!1;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){o=!0;var c=e[l],u=VA(n,l);if(typeof a=="function"&&(o=a(l,n),o===!1&&!jt(c)&&typeof c!="string"&&typeof c!="boolean"&&c instanceof Object&&(this.allowCreation=!1,o=this._handleObject(c,u,!0),this.allowCreation=i===!1)),o!==!1){s=!0;var g=this._getValue(u);if(jt(c))this._handleArray(c,g,u);else if(typeof c=="string")this._makeTextInput(c,g,u);else if(typeof c=="boolean")this._makeCheckbox(c,g,u);else if(c instanceof Object){if(!this.hideOption(n,l,this.moduleOptions))if(c.enabled!==void 0){var h=VA(u,"enabled"),d=this._getValue(h);if(d===!0){var f=this._makeLabel(l,u,!0);this._makeItem(u,f),s=this._handleObject(c,u)||s}else this._makeCheckbox(c,d,u)}else{var C=this._makeLabel(l,u,!0);this._makeItem(u,C),s=this._handleObject(c,u)||s}}else console.error("dont know how to handle",c,l,u)}}return s}},{key:"_handleArray",value:function(e,n,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,i),e[1]!==n&&this.changedOptions.push({path:i,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,i),e[0]!==n&&this.changedOptions.push({path:i,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,i),e[0]!==n&&this.changedOptions.push({path:i,value:Number(n)}))}},{key:"_update",value:function(e,n){var i=this._constructOptions(e,n);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)}},{key:"_constructOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var a=0;aa-this.padding&&(c=!0),c?s=this.x-i:s=this.x,u?l=this.y-n:l=this.y}else l=this.y-n,l+n+this.padding>o&&(l=o-n-this.padding),la&&(s=a-i-this.padding),sa.distance?c=" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=s?c='. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):c=". Did you mean one of these: "+t.print(mr(n))+t.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+c,Ny),sh=!0}},{key:"findInOptions",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=1e9,s="",l=[],c=e.toLowerCase(),u=void 0;for(var g in n){var h=void 0;if(n[g].__type__!==void 0&&o===!0){var d=t.findInOptions(e,n[g],VA(i,g));a>d.distance&&(s=d.closestMatch,l=d.path,a=d.distance,u=d.indexMatch)}else{var f;Et(f=g.toLowerCase()).call(f,c)!==-1&&(u=g),h=t.levenshteinDistance(e,g),a>h&&(s=g,l=I_t(i),a=h)}}return{closestMatch:s,path:l,distance:a,indexMatch:u}}},{key:"printLocation",value:function(e,n){for(var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `,o=` `+i+`options = { `,a=0;a":!0,"--":!0},r1="",Uu=0,ht="",Qe="",oi=Dn.NULL;function x_t(){Uu=0,ht=r1.charAt(0)}function rn(){Uu++,ht=r1.charAt(Uu)}function g2(){return r1.charAt(Uu+1)}function bD(t){var r=t.charCodeAt(0);return r<47?r===35||r===46:r<59?r>47:r<91?r>64:r<96?r===95:r<123?r>96:!1}function L1(t,r){if(t||(t={}),r)for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t}function H_t(t,r,e){for(var n=r.split("."),i=t;n.length;){var o=n.shift();n.length?(i[o]||(i[o]={}),i=i[o]):i[o]=e}}function Pre(t,r){for(var e,n,i=null,o=[t],a=t;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes){for(e=0,n=a.nodes.length;e=0;e--){var s,l=o[e];l.nodes||(l.nodes=[]),Et(s=l.nodes).call(s,i)===-1&&l.nodes.push(i)}r.attr&&(i.attr=L1(i.attr,r.attr))}function V_t(t,r){if(t.edges||(t.edges=[]),t.edges.push(r),t.edge){var e=L1({},t.edge);r.attr=L1(e,r.attr)}}function Rre(t,r,e,n,i){var o={from:r,to:e,type:n};return t.edge&&(o.attr=L1({},t.edge)),o.attr=L1(o.attr||{},i),i!=null&&i.hasOwnProperty("arrows")&&i.arrows!=null&&(o.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),o}function ir(){for(oi=Dn.NULL,Qe="";ht===" "||ht===" "||ht===` `||ht==="\r";)rn();do{var t=!1;if(ht==="#"){for(var r=Uu-1;r1.charAt(r)===" "||r1.charAt(r)===" ";)r--;if(r1.charAt(r)===` `||r1.charAt(r)===""){for(;ht!=""&&ht!=` `;)rn();t=!0}}if(ht==="/"&&g2()==="/"){for(;ht!=""&&ht!=` `;)rn();t=!0}if(ht==="/"&&g2()==="*"){for(;ht!="";)if(ht==="*"&&g2()==="/"){rn(),rn();break}else rn();t=!0}for(;ht===" "||ht===" "||ht===` `||ht==="\r";)rn()}while(t);if(ht===""){oi=Dn.DELIMITER;return}var e=ht+g2();if(yD[e]){oi=Dn.DELIMITER,Qe=e,rn(),rn();return}if(yD[ht]){oi=Dn.DELIMITER,Qe=ht,rn();return}if(bD(ht)||ht==="-"){for(Qe+=ht,rn();bD(ht);)Qe+=ht,rn();Qe==="false"?Qe=!1:Qe==="true"?Qe=!0:isNaN(Number(Qe))||(Qe=Number(Qe)),oi=Dn.IDENTIFIER;return}if(ht==='"'){for(rn();ht!=""&&(ht!='"'||ht==='"'&&g2()==='"');)ht==='"'?(Qe+=ht,rn()):ht==="\\"&&g2()==="n"?(Qe+=` `,rn()):Qe+=ht,rn();if(ht!='"')throw Nn('End of string " expected');rn(),oi=Dn.IDENTIFIER;return}for(oi=Dn.UNKNOWN;ht!="";)Qe+=ht,rn();throw new SyntaxError('Syntax error in part "'+Fre(Qe,30)+'"')}function P_t(){var t={};if(x_t(),ir(),Qe==="strict"&&(t.strict=!0,ir()),(Qe==="graph"||Qe==="digraph")&&(t.type=Qe,ir()),oi===Dn.IDENTIFIER&&(t.id=Qe,ir()),Qe!="{")throw Nn("Angle bracket { expected");if(ir(),Dre(t),Qe!="}")throw Nn("Angle bracket } expected");if(ir(),Qe!=="")throw Nn("End of file expected");return ir(),delete t.node,delete t.edge,delete t.graph,t}function Dre(t){for(;Qe!==""&&Qe!="}";)R_t(t),Qe===";"&&ir()}function R_t(t){var r=Nre(t);if(r){Bre(t,r);return}var e=D_t(t);if(!e){if(oi!=Dn.IDENTIFIER)throw Nn("Identifier expected");var n=Qe;if(ir(),Qe==="="){if(ir(),oi!=Dn.IDENTIFIER)throw Nn("Identifier expected");t[n]=Qe,ir()}else N_t(t,n)}}function Nre(t){var r=null;if(Qe==="subgraph"&&(r={},r.type="subgraph",ir(),oi===Dn.IDENTIFIER&&(r.id=Qe,ir())),Qe==="{"){if(ir(),r||(r={}),r.parent=t,r.node=t.node,r.edge=t.edge,r.graph=t.graph,Dre(r),Qe!="}")throw Nn("Angle bracket } expected");ir(),delete r.node,delete r.edge,delete r.graph,delete r.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(r)}return r}function D_t(t){return Qe==="node"?(ir(),t.node=Qh(),"node"):Qe==="edge"?(ir(),t.edge=Qh(),"edge"):Qe==="graph"?(ir(),t.graph=Qh(),"graph"):null}function N_t(t,r){var e={id:r},n=Qh();n&&(e.attr=n),Pre(t,e),Bre(t,r)}function Bre(t,r){for(;Qe==="->"||Qe==="--";){var e,n=Qe;ir();var i=Nre(t);if(i)e=i;else{if(oi!=Dn.IDENTIFIER)throw Nn("Identifier or subgraph expected");e=Qe,Pre(t,{id:e}),ir()}var o=Qh(),a=Rre(t,r,e,n,o);V_t(t,a),r=e}}function Qh(){for(var t,r=null,e={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},i=new Array,o=new Array;Qe==="[";){for(ir(),r={};Qe!==""&&Qe!="]";){if(oi!=Dn.IDENTIFIER)throw Nn("Attribute name expected");var a=Qe;if(ir(),Qe!="=")throw Nn("Equal sign = expected");if(ir(),oi!=Dn.IDENTIFIER)throw Nn("Attribute value expected");var s=Qe;a==="style"&&(s=e[s]);var l;a==="arrowhead"&&(l=n[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=n[s],a="arrows",s={from:{enabled:!0,type:l}}),i.push({attr:r,name:a,value:s}),o.push(a),ir(),Qe==","&&ir()}if(Qe!="]")throw Nn("Bracket ] expected");ir()}if(I1(o).call(o,"dir")){var c={};for(c.arrows={},t=0;t"&&(l.arrows="to"),l};Kt(i=r.edges).call(i,function(a){var s,l;if(a.from instanceof Object?s=a.from.nodes:s={id:a.from},a.to instanceof Object?l=a.to.nodes:l={id:a.to},a.from instanceof Object&&a.from.edges){var c;Kt(c=a.from.edges).call(c,function(g){var h=o(g);e.edges.push(h)})}if(B_t(s,l,function(g,h){var d=Rre(e,g.id,h.id,a.type,a.attr),f=o(d);e.edges.push(f)}),a.to instanceof Object&&a.to.edges){var u;Kt(u=a.to.edges).call(u,function(g){var h=o(g);e.edges.push(h)})}})}return r.attr&&(e.options=r.attr),e}function j_t(t,r){var e,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};r!=null&&(r.fixed!=null&&(n.nodes.fixed=r.fixed),r.parseColor!=null&&(n.nodes.parseColor=r.parseColor),r.inheritColor!=null&&(n.edges.inheritColor=r.inheritColor));var i=t.edges,o=Nu(i).call(i,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&n.edges.inheritColor===!1&&(l.color=s.color),l}),a=Nu(e=t.nodes).call(e,function(s){var l={id:s.id,fixed:n.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(n.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:a,edges:o}}var U_t={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"},G_t={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"},W_t={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"},Z_t={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"},K_t={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"},Y_t={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ó"},X_t={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},q_t={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},Q_t={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},J_t={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"},eMt={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"},tMt=Object.freeze({__proto__:null,cn:q_t,cs:eMt,de:G_t,en:U_t,es:W_t,fr:J_t,it:Z_t,nl:K_t,pt:Y_t,ru:X_t,uk:Q_t});function rMt(t,r){try{var e=r.split(/[-_ /]/,2),n=yr(e,2),i=n[0],o=n[1],a=i!=null?i.toLowerCase():null,s=o!=null?o.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(t,l))return l;var c;console.warn(R_(c="Unknown variant ".concat(s," of language ")).call(c,a,"."))}if(a){var u=a;if(Object.prototype.hasOwnProperty.call(t,u))return u;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(r,", falling back to English.")),"en"}catch(g){return console.error(g),console.warn("Unexpected error while normalizing locale ".concat(r,", falling back to English.")),"en"}}var nMt=function(){function t(){$e(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return _e(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,n=this.image.height;this.width=e,this.height=n;var i=Math.floor(n/2),o=Math.floor(n/4),a=Math.floor(n/8),s=Math.floor(n/16),l=Math.floor(e/2),c=Math.floor(e/4),u=Math.floor(e/8),g=Math.floor(e/16);this.canvas.width=3*c,this.canvas.height=i,this.coordinates=[[0,0,l,i],[l,0,c,o],[l,o,u,a],[5*u,o,g,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),n=this.coordinates[0];e.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var i=1;i2){n*=.5;for(var l=0;n>2&&l=this.NUM_ITERATIONS&&(l=this.NUM_ITERATIONS-1);var c=this.coordinates[l];e.drawImage(this.canvas,c[0],c[1],c[2],c[3],i,o,a,s)}else e.drawImage(this.image,i,o,a,s)}}]),t}(),iMt=function(){function t(r){$e(this,t),this.images={},this.imageBroken={},this.callback=r}return _e(t,[{key:"_tryloadBrokenUrl",value:function(e,n,i){if(!(e===void 0||i===void 0)){if(n===void 0){console.warn("No broken url image defined");return}i.image.onerror=function(){console.error("Could not load brokenImage:",n)},i.image.src=n}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,n){var i=this,o=this.images[e];if(o)return o;var a=new nMt;return this.images[e]=a,a.image.onload=function(){i._fixImageCoordinates(a.image),a.init(),i._redrawWithImage(a)},a.image.onerror=function(){console.error("Could not load image:",e),i._tryloadBrokenUrl(e,n,a)},a.image.src=e,a}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),t}(),jre={exports:{}},oMt=Lt,aMt=oMt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),sMt=Lt,lMt=mn,cMt=zs,$D=aMt,sv=Object.isExtensible,uMt=sMt(function(){sv(1)}),gMt=uMt||$D?function(r){return!lMt(r)||$D&&cMt(r)==="ArrayBuffer"?!1:sv?sv(r):!0}:sv,hMt=Lt,Ure=!hMt(function(){return Object.isExtensible(Object.preventExtensions({}))}),dMt=tt,fMt=xt,CMt=M0,vMt=mn,X_=yn,AMt=Zi.f,_D=T0,IMt=R4,q_=gMt,pMt=z4,mMt=Ure,Gre=!1,fs=pMt("meta"),yMt=0,Q_=function(t){AMt(t,fs,{value:{objectID:"O"+yMt++,weakData:{}}})},bMt=function(t,r){if(!vMt(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!X_(t,fs)){if(!q_(t))return"F";if(!r)return"E";Q_(t)}return t[fs].objectID},wMt=function(t,r){if(!X_(t,fs)){if(!q_(t))return!0;if(!r)return!1;Q_(t)}return t[fs].weakData},$Mt=function(t){return mMt&&Gre&&q_(t)&&!X_(t,fs)&&Q_(t),t},_Mt=function(){MMt.enable=function(){},Gre=!0;var t=_D.f,r=fMt([].splice),e={};e[fs]=1,t(e).length&&(_D.f=function(n){for(var i=t(n),o=0,a=i.length;og;g++)if(d=A(t[g]),d&&MD(ED,d))return d;return new lv(!1)}c=OMt(t,u)}for(f=o?t.next:c.next;!(C=EMt(f,c)).done;){try{d=A(C.value)}catch(I){zD(c,"throw",I)}if(typeof d=="object"&&d&&MD(ED,d))return d}return new lv(!1)},VMt=Dr,PMt=TypeError,eM=function(t,r){if(VMt(r,t))return t;throw new PMt("Incorrect invocation")},RMt=tt,DMt=Sr,NMt=K4,BMt=Lt,FMt=xg,jMt=J_,UMt=eM,GMt=In,WMt=mn,ZMt=Tg,KMt=Vg,YMt=Zi.f,XMt=tl.forEach,qMt=pn,Wre=Bc,QMt=Wre.set,JMt=Wre.getterFor,tM=function(t,r,e){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,o=n?"set":"add",a=DMt[t],s=a&&a.prototype,l={},c;if(!qMt||!GMt(a)||!(i||s.forEach&&!BMt(function(){new a().entries().next()})))c=e.getConstructor(r,t,n,o),NMt.enable();else{c=r(function(h,d){QMt(UMt(h,u),{type:t,collection:new a}),ZMt(d)||jMt(d,h[o],{that:h,AS_ENTRIES:n})});var u=c.prototype,g=JMt(t);XMt(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(h){var d=h==="add"||h==="set";h in s&&!(i&&h==="clear")&&FMt(u,h,function(f,C){var v=g(this).collection;if(!d&&i&&!WMt(f))return h==="get"?void 0:!1;var A=v[h](f===0?0:f,C);return d?this:A})}),i||YMt(u,"size",{configurable:!0,get:function(){return g(this).collection.size}})}return KMt(c,t,!1,!0),l[t]=c,RMt({global:!0,forced:!0},l),i||e.setStrong(c,t,n),c},ezt=E0,rM=function(t,r,e){for(var n in r)e&&e.unsafe&&t[n]?t[n]=r[n]:ezt(t,n,r[n],e);return t},tzt=vo,rzt=k_,nzt=Tr,izt=pn,SD=nzt("species"),ozt=function(t){var r=tzt(t);izt&&r&&!r[SD]&&rzt(r,SD,{configurable:!0,get:function(){return this}})},azt=Hg,szt=k_,TD=rM,lzt=$0,czt=eM,uzt=Tg,gzt=J_,hzt=z_,d5=E_,dzt=ozt,lh=pn,LD=K4.fastKey,Zre=Bc,kD=Zre.set,C6=Zre.getterFor,Kre={getConstructor:function(t,r,e,n){var i=t(function(c,u){czt(c,o),kD(c,{type:r,index:azt(null),first:void 0,last:void 0,size:0}),lh||(c.size=0),uzt(u)||gzt(u,c[n],{that:c,AS_ENTRIES:e})}),o=i.prototype,a=C6(r),s=function(c,u,g){var h=a(c),d=l(c,u),f,C;return d?d.value=g:(h.last=d={index:C=LD(u,!0),key:u,value:g,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=d),f&&(f.next=d),lh?h.size++:c.size++,C!=="F"&&(h.index[C]=d)),c},l=function(c,u){var g=a(c),h=LD(u),d;if(h!=="F")return g.index[h];for(d=g.first;d;d=d.next)if(d.key===u)return d};return TD(o,{clear:function(){for(var u=this,g=a(u),h=g.index,d=g.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete h[d.index],d=d.next;g.first=g.last=void 0,lh?g.size=0:u.size=0},delete:function(c){var u=this,g=a(u),h=l(u,c);if(h){var d=h.next,f=h.previous;delete g.index[h.index],h.removed=!0,f&&(f.next=d),d&&(d.previous=f),g.first===h&&(g.first=d),g.last===h&&(g.last=f),lh?g.size--:u.size--}return!!h},forEach:function(u){for(var g=a(this),h=lzt(u,arguments.length>1?arguments[1]:void 0),d;d=d?d.next:g.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),TD(o,e?{get:function(u){var g=l(this,u);return g&&g.value},set:function(u,g){return s(this,u===0?0:u,g)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),lh&&szt(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,r,e){var n=r+" Iterator",i=C6(r),o=C6(n);hzt(t,r,function(a,s){kD(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,d5(void 0,!0)):d5(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),dzt(r)}},fzt=tM,Czt=Kre;fzt("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Czt);var vzt=kt,Azt=vzt.Map,Izt=Azt,pzt=Izt,mzt=pzt,Yre=je(mzt),yzt=function(){function t(){$e(this,t),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},Wr(this.options,this.defaultOptions)}return _e(t,[{key:"setOptions",value:function(e){var n=["useDefaultGroups"];if(e!==void 0){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Et(n).call(n,i)===-1){var o=e[i];this.add(i,o)}}}},{key:"clear",value:function(){this._groups=new Yre,this._groupNames=[]}},{key:"get",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[o]),this._groups.set(e,i)}else{var a=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[a],this._groups.set(e,i)}return i}},{key:"add",value:function(e,n){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,n),n}}]),t}(),bzt=tt;bzt({target:"Number",stat:!0},{isNaN:function(r){return r!==r}});var wzt=kt,$zt=wzt.Number.isNaN,_zt=$zt,Mzt=_zt,zzt=Mzt,By=je(zzt),Ezt=Sr,Szt=Ezt.isFinite,Tzt=Number.isFinite||function(r){return typeof r=="number"&&Szt(r)},Lzt=tt,kzt=Tzt;Lzt({target:"Number",stat:!0},{isFinite:kzt});var Ozt=kt,xzt=Ozt.Number.isFinite,Hzt=xzt,Vzt=Hzt,Pzt=Vzt,Ll=je(Pzt),Rzt=tt,Dzt=tl.some,Nzt=Dg,Bzt=Nzt("some");Rzt({target:"Array",proto:!0,forced:!Bzt},{some:function(r){return Dzt(this,r,arguments.length>1?arguments[1]:void 0)}});var Fzt=bn,jzt=Fzt("Array").some,Uzt=Dr,Gzt=jzt,v6=Array.prototype,Wzt=function(t){var r=t.some;return t===v6||Uzt(v6,t)&&r===v6.some?Gzt:r},Zzt=Wzt,Kzt=Zzt,Yzt=Kzt,Xzt=je(Yzt),qzt=kt,Qzt=qzt.Object.getOwnPropertySymbols,Jzt=Qzt,eEt=Jzt,tEt=eEt,k1=je(tEt),Xre={exports:{}},rEt=tt,nEt=Lt,iEt=xa,qre=Sg.f,Qre=pn,oEt=!Qre||nEt(function(){qre(1)});rEt({target:"Object",stat:!0,forced:oEt,sham:!Qre},{getOwnPropertyDescriptor:function(r,e){return qre(iEt(r),e)}});var aEt=kt,Jre=aEt.Object,sEt=Xre.exports=function(r,e){return Jre.getOwnPropertyDescriptor(r,e)};Jre.getOwnPropertyDescriptor.sham&&(sEt.sham=!0);var lEt=Xre.exports,cEt=lEt,ene=cEt,uEt=ene,nl=je(uEt),gEt=tt,hEt=pn,dEt=S7t,fEt=xa,CEt=Sg,vEt=Rg;gEt({target:"Object",stat:!0,sham:!hEt},{getOwnPropertyDescriptors:function(r){for(var e=fEt(r),n=CEt.f,i=dEt(e),o={},a=0,s,l;i.length>a;)l=n(e,s=i[a++]),l!==void 0&&vEt(o,s,l);return o}});var AEt=kt,IEt=AEt.Object.getOwnPropertyDescriptors,pEt=IEt,mEt=pEt,yEt=mEt,O1=je(yEt),tne={exports:{}},bEt=tt,wEt=pn,OD=O4.f;bEt({target:"Object",stat:!0,forced:Object.defineProperties!==OD,sham:!wEt},{defineProperties:OD});var $Et=kt,rne=$Et.Object,_Et=tne.exports=function(r,e){return rne.defineProperties(r,e)};rne.defineProperties.sham&&(_Et.sham=!0);var MEt=tne.exports,zEt=MEt,EEt=zEt,SEt=EEt,Y4=je(SEt),TEt=ate,X4=je(TEt);function q4(t,r,e){return r=Dte(r),r in t?P4(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var nne=Sr,LEt=Lt,kEt=xt,OEt=Ha,xEt=qte.trim,HEt=D_,VEt=kEt("".charAt),PA=nne.parseFloat,xD=nne.Symbol,HD=xD&&xD.iterator,PEt=1/PA(HEt+"-0")!==-1/0||HD&&!LEt(function(){PA(Object(HD))}),REt=PEt?function(r){var e=xEt(OEt(r)),n=PA(e);return n===0&&VEt(e,0)==="-"?-0:n}:PA,DEt=tt,VD=REt;DEt({global:!0,forced:parseFloat!==VD},{parseFloat:VD});var NEt=kt,BEt=NEt.parseFloat,FEt=BEt,jEt=FEt,UEt=jEt,ine=je(UEt),GEt=tt,WEt=Lt,ZEt=R4.f,KEt=WEt(function(){return!Object.getOwnPropertyNames(1)});GEt({target:"Object",stat:!0,forced:KEt},{getOwnPropertyNames:ZEt});var YEt=kt,XEt=YEt.Object,qEt=function(r){return XEt.getOwnPropertyNames(r)},QEt=qEt,JEt=QEt,eSt=JEt,tSt=je(eSt);function nM(t,r){var e=["node","edge","label"],n=!0,i=Ys(r,"chosen");if(typeof i=="boolean")n=i;else if(Wt(i)==="object"){if(Et(e).call(e,t)===-1)throw new Error("choosify: subOption '"+t+"' should be one of '"+e.join("', '")+"'");var o=Ys(r,["chosen",t]);(typeof o=="boolean"||typeof o=="function")&&(n=o)}return n}function Fy(t,r,e){if(t.width<=0||t.height<=0)return!1;if(e!==void 0){var n={x:r.x-e.x,y:r.y-e.y};if(e.angle!==0){var i=-e.angle,o={x:Math.cos(i)*n.x-Math.sin(i)*n.y,y:Math.sin(i)*n.x+Math.cos(i)*n.y};r=o}else r=n}var a=t.x+t.width,s=t.y+t.width;return t.leftr.x&&t.topr.y}function RA(t){return typeof t=="string"&&t!==""}function one(t,r,e,n){var i=n.x,o=n.y;if(typeof n.distanceToBorder=="function"){var a=n.distanceToBorder(t,r),s=Math.sin(r)*a,l=Math.cos(r)*a;l===a?(i+=a,o=n.y):s===a?(i=n.x,o-=a):(i+=l,o-=s)}else n.shape.width>n.shape.height?(i=n.x+n.shape.width*.5,o=n.y-e):(i=n.x+e,o=n.y-n.shape.height*.5);return{x:i,y:o}}var rSt=bn,nSt=rSt("Array").values,iSt=nSt,oSt=iSt,aSt=Nc,sSt=yn,lSt=Dr,cSt=oSt,A6=Array.prototype,uSt={DOMTokenList:!0,NodeList:!0},gSt=function(t){var r=t.values;return t===A6||lSt(A6,t)&&r===A6.values||sSt(uSt,aSt(t))?cSt:r},hSt=gSt,ane=je(hSt),dSt=function(){function t(r){$e(this,t),this.measureText=r,this.current=0,this.width=0,this.height=0,this.lines=[]}return _e(t,[{key:"_add",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var a=this.measureText(o,i),s=Wr({},ane(a));s.text=n,s.width=a.width,s.mod=i,(n===void 0||n==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n)}},{key:"newLine",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=o.width),n+=o.height}this.width=e,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var e=[],n=0;n"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},PD=function(){function t(r){$e(this,t),this.text=r,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return _e(t,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){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"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,n){return!this.mono&&!this[e]&&this.match(n)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.prepareRegExp(e),o=yr(i,2),a=o[0],s=o[1],l=a.test(this.text.substr(this.position,s));return l&&n&&(this.position+=s-1),l}},{key:"parseEndTag",value:function(e,n,i){var o=this.mod()===e;return e==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,n){return this.match(e)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var n,i;if(e instanceof RegExp)i=e,n=1;else{var o=fSt[e];o!==void 0?i=o:i=new RegExp(e),n=e.length}return[i,n]}}]),t}(),CSt=function(){function t(r,e,n,i){var o=this;$e(this,t),this.ctx=r,this.parent=e,this.selected=n,this.hover=i;var a=function(l,c){if(l===void 0)return 0;var u=o.parent.getFormattingValues(r,n,i,c),g=0;if(l!==""){var h=o.ctx.measureText(l);g=h.width}return{width:g,values:u}};this.lines=new dSt(a)}return _e(t,[{key:"process",value:function(e){if(!RA(e))return this.lines.finalize();var n=this.parent.fontOptions;e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `);var i=String(e).split(` `),o=i.length;if(n.multi)for(var a=0;a0)for(var l=0;l0)for(var f=0;f")||n.parseStartTag("ital","")||n.parseStartTag("mono","")||n.parseEndTag("bold","")||n.parseEndTag("ital","")||n.parseEndTag("mono",""))||i(o);a||n.add(o),n.position++}return n.emitBlock(),n.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var n=this,i=new PD(e),o=!0,a=function(u){return/\\/.test(u)?(i.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var n="",i=0;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,n),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=e.split("\r");o.length>0;){var a=this.getLongestFit(o);if(a===0){var s=o[0],l=this.getLongestFitWord(s);this.lines.newLine(zn(s).call(s,0,l),n),o[0]=zn(s).call(s,l)}else{var c=a;o[a-1]===" "?a--:o[c]===" "&&c++;var u=zn(o).call(o,0,a).join("");a==o.length&&i?this.lines.append(u,n):this.lines.newLine(u,n),o=zn(o).call(o,c)}}}}]),t}(),ch=["bold","ital","boldital","mono"],sne=function(){function t(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$e(this,t),this.body=r,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return _e(t,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),RA(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(Wt(e.font)==="object"){var n=e.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(e){var n=this;if(vt(ch,function(i){n.fontOptions[i]={}}),t.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}vt(e,function(i,o){i!=null&&Wt(i)!=="object"&&(n.fontOptions[o]=i)})}},{key:"constrain",value:function(e){var n={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=Ys(e,"widthConstraint");if(typeof i=="number")n.maxWdt=Number(i),n.minWdt=Number(i);else if(Wt(i)==="object"){var o=Ys(e,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var a=Ys(e,["widthConstraint","minimum"]);typeof a=="number"&&(n.minWdt=Number(a))}var s=Ys(e,"heightConstraint");if(typeof s=="number")n.minHgt=Number(s);else if(Wt(s)==="object"){var l=Ys(e,["heightConstraint","minimum"]);typeof l=="number"&&(n.minHgt=Number(l));var c=Ys(e,["heightConstraint","valign"]);typeof c=="string"&&(c==="top"||c==="bottom")&&(n.valign=c)}return n}},{key:"update",value:function(e,n){this.setOptions(e,!0),this.propagateFonts(n),rr(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=nM("label",n)}},{key:"adjustSizes",value:function(e){var n=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=n,this.fontOptions.minWdt-=n);var i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(e,n){for(var i=0;i5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var l=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&l=this.elementOptions.scaling.label.maxVisible&&(l=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,o,a,n,i,s),this._drawBackground(e),this._drawText(e,n,this.size.yLine,s,l))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var n=this.getSize();e.fillRect(n.left,n.top,n.width,n.height)}}},{key:"_drawText",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",a=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(e,n,i,o),l=yr(s,2);n=l[0],i=l[1],e.textAlign="left",n=n-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(var c=0;c0&&(e.lineWidth=d.strokeWidth,e.strokeStyle=A,e.lineJoin="round"),e.fillStyle=v,d.strokeWidth>0&&e.strokeText(d.text,n+g,i+d.vadjust),e.fillText(d.text,n+g,i+d.vadjust),g+=d.width}i+=u.height}}}},{key:"_setAlignment",value:function(e,n,i,o){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){n=0,i=0;var a=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*a):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*a):e.textBaseline="middle"}else e.textBaseline=o;return[n,i]}},{key:"_getColor",value:function(e,n,i){var o=e||"#000000",a=i||"#ffffff";if(n<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-n)));o=no(o,s),a=no(a,s)}return[o,a]}},{key:"getTextSize",value:function(e){var n=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,n,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,n=this.size.left,i=this.size.top-.5*e;if(this.isEdgeLabel){var o=-this.size.width*.5;switch(this.fontOptions.align){case"middle":n=o,i=-this.size.height*.5;break;case"top":n=o,i=-(this.size.height+e);break;case"bottom":n=o,i=e;break}}var a={left:n,top:i,width:this.size.width,height:this.size.height};return a}},{key:"calculateLabelSize",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,n,i),this.size.left=o-this.size.width*.5,this.size.top=a-this.size.height*.5,this.size.yLine=a+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,n,i,o){var a=function(u,g,h){return g==="normal"?h==="mod"?"":u[h]:u[g][h]!==void 0?u[g][h]:u[h]},s={color:a(this.fontOptions,o,"color"),size:a(this.fontOptions,o,"size"),face:a(this.fontOptions,o,"face"),mod:a(this.fontOptions,o,"mod"),vadjust:a(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(n||i)&&(o==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,n,i));var l="";return s.mod!==void 0&&s.mod!==""&&(l+=s.mod+" "),l+=s.size+"px "+s.face,e.font=l.replace(/"/g,""),s.font=e.font,s.height=s.size,s}},{key:"differentState",value:function(e,n){return e!==this.selectedState||n!==this.hoverState}},{key:"_processLabelText",value:function(e,n,i,o){var a=new CSt(e,this,n,i);return a.process(o)}},{key:"_processLabel",value:function(e,n,i){if(!(this.labelDirty===!1&&!this.differentState(n,i))){var o=this._processLabelText(e,n,i,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width0&&o.height0&&(this.enableBorderDashes(e,n),e.stroke(),this.disableBorderDashes(e,n)),e.restore()}},{key:"performFill",value:function(e,n){e.save(),e.fillStyle=n.color,this.enableShadow(e,n),H0(e).call(e),this.disableShadow(e,n),e.restore(),this.performStroke(e,n)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,n,i,o,a){i!==void 0&&this.resize(i,o,a),this.left=e-this.width/2,this.top=n-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}},{key:"updateBoundingBox",value:function(e,n,i,o,a){this._updateBoundingBox(e,n,i,o,a)}},{key:"getDimensionsFromLabel",value:function(e,n,i){this.textSize=this.labelModule.getTextSize(e,n,i);var o=this.textSize.width,a=this.textSize.height,s=14;return o===0&&(o=s,a=s),{width:o,height:a}}}]),t}();function aTt(t){var r=sTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function sTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var lTt=function(t){Ht(e,t);var r=aTt(e);function e(n,i,o){var a;return $e(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return _e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,c),Eee(i,this.left,this.top,this.width,this.height,c.borderRadius),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"updateBoundingBox",value:function(i,o,a,s,l){this._updateBoundingBox(i,o,a,s,l);var c=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(c)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(o)),Math.abs(this.height/2/Math.sin(o)))+a}}]),e}(Wc);function cTt(t){var r=uTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function uTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var aM=function(t){Ht(e,t);var r=cTt(e);function e(n,i,o){var a;return $e(this,e),a=r.call(this,n,i,o),a.labelOffset=0,a.selected=!1,a}return _e(e,[{key:"setOptions",value:function(i,o,a){this.options=i,o===void 0&&a===void 0||this.setImages(o,a)}},{key:"setImages",value:function(i,o){o&&this.selected?(this.imageObj=o,this.imageObjAlt=i):(this.imageObj=i,this.imageObjAlt=o)}},{key:"switchImages",value:function(i){var o=i&&!this.selected||!i&&this.selected;if(this.selected=i,this.imageObjAlt!==void 0&&o){var a=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=a}}},{key:"_getImagePadding",value:function(){var i={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var o=this.options.imagePadding;Wt(o)=="object"?(i.top=o.top,i.right=o.right,i.bottom=o.bottom,i.left=o.left):(i.top=o,i.right=o,i.bottom=o,i.left=o)}return i}},{key:"_resizeImage",value:function(){var i,o;if(this.options.shapeProperties.useImageSize===!1){var a=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?a=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),i=this.options.size*2*a,o=this.options.size*2*s}else{var l=this._getImagePadding();i=this.imageObj.width+l.left+l.right,o=this.imageObj.height+l.top+l.bottom}this.width=i,this.height=o,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(i,o,a,s){this.initContextForDraw(i,s),w_(i,o,a,s.size),this.performFill(i,s)}},{key:"_drawImageAtPosition",value:function(i,o){if(this.imageObj.width!=0){i.globalAlpha=o.opacity!==void 0?o.opacity:1,this.enableShadow(i,o);var a=1;this.options.shapeProperties.interpolation===!0&&(a=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),l=this.left+s.left,c=this.top+s.top,u=this.width-s.left-s.right,g=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(i,a,l,c,u,g),this.disableShadow(i,o)}}},{key:"_drawImageLabel",value:function(i,o,a,s,l){var c=0;if(this.height!==void 0){c=this.height*.5;var u=this.labelModule.getTextSize(i,s,l);u.lineCount>=1&&(c+=u.height/2)}var g=a+c;this.options.label&&(this.labelOffset=c),this.labelModule.draw(i,o,g,s,l,"hanging")}}]),e}(Wc);function gTt(t){var r=hTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function hTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var dTt=function(t){Ht(e,t);var r=gTt(e);function e(n,i,o){var a;return $e(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return _e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=l/2,this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this._drawRawCircle(i,o,a,c),this.updateBoundingBox(o,a),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,a,s,l)}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(aM);function fTt(t){var r=CTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function CTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var vTt=function(t){Ht(e,t);var r=fTt(e);function e(n,i,o,a,s){var l;return $e(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return _e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l,this.radius=.5*this.width;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,c){this.switchImages(s),this.resize();var u=o,g=a;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,g+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this._drawRawCircle(i,u,g,c),i.save(),i.clip(),this._drawImageAtPosition(i,c),i.restore(),this._drawImageLabel(i,u,g,s,l),this.updateBoundingBox(o,a)}},{key:"updateBoundingBox",value:function(i,o){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=o,this.boundingBox.left=i,this.boundingBox.right=i+this.options.size*2,this.boundingBox.bottom=o+this.options.size*2):(this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+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)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(aM);function ATt(t){var r=ITt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function ITt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var il=function(t){Ht(e,t);var r=ATt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(o,a)){var l,c;this.labelModule.getTextSize(i,o,a);var u=2*s.size;this.width=(l=this.customSizeWidth)!==null&&l!==void 0?l:u,this.height=(c=this.customSizeHeight)!==null&&c!==void 0?c:u,this.radius=.5*this.width}}},{key:"_drawShape",value:function(i,o,a,s,l,c,u,g){var h=this;return this.resize(i,c,u,g),this.left=s-this.width/2,this.top=l-this.height/2,this.initContextForDraw(i,g),JAt(o)(i,s,l,g.size),this.performFill(i,g),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(i.font=(c?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",i.fillText(this.options.icon.code,s,l)),{drawExternalLabel:function(){if(h.options.label!==void 0){h.labelModule.calculateLabelSize(i,c,u,s,l,"hanging");var f=l+.5*h.height+.5*h.labelModule.size.height;h.labelModule.draw(i,s,f,c,u,"hanging")}h.updateBoundingBox(s,l)}}}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+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))}}]),e}(Wc);function FD(t,r){var e=mr(t);if(k1){var n=k1(t);r&&(n=gi(n).call(n,function(i){return nl(t,i).enumerable})),e.push.apply(e,n)}return e}function pTt(t){for(var r=1;r"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var bTt=function(t){Ht(e,t);var r=mTt(e);function e(n,i,o,a){var s;return $e(this,e),s=r.call(this,n,i,o,a),s.ctxRenderer=a,s}return _e(e,[{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l,c),this.left=o-this.width/2,this.top=a-this.height/2,i.save();var u=this.ctxRenderer({ctx:i,id:this.options.id,x:o,y:a,state:{selected:s,hover:l},style:pTt({},c),label:this.options.label});if(u.drawNode!=null&&u.drawNode(),i.restore(),u.drawExternalLabel){var g=u.drawExternalLabel;u.drawExternalLabel=function(){i.save(),g(),i.restore()}}return u.nodeDimensions&&(this.customSizeWidth=u.nodeDimensions.width,this.customSizeHeight=u.nodeDimensions.height),u}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(il);function wTt(t){var r=$Tt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function $Tt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var _Tt=function(t){Ht(e,t);var r=wTt(e);function e(n,i,o){var a;return $e(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return _e(e,[{key:"resize",value:function(i,o,a){if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=s.width+this.margin.right+this.margin.left;this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,c),See(i,o-this.width/2,a-this.height/2,this.width,this.height),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Wc);function MTt(t){var r=zTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function zTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var ETt=function(t){Ht(e,t);var r=MTt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"diamond",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(il);function STt(t){var r=TTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function TTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var LTt=function(t){Ht(e,t);var r=STt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"circle",2,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.options.size}}]),e}(il);function kTt(t){var r=OTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function OTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var jD=function(t){Ht(e,t);var r=kTt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width*.5,this.top=a-this.height*.5,this.initContextForDraw(i,c),Ay(i,this.left,this.top,this.width,this.height),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,o,a,s,l)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.width*.5,s=this.height*.5,l=Math.sin(o)*a,c=Math.cos(o)*s;return a*s/Math.sqrt(l*l+c*c)}}]),e}(Wc);function xTt(t){var r=HTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function HTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var VTt=function(t){Ht(e,t);var r=xTt(e);function e(n,i,o){var a;return $e(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return _e(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(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)}},{key:"draw",value:function(i,o,a,s,l,c){var u=this;return this.resize(i,s,l),this.options.icon.size=this.options.icon.size||50,this.left=o-this.width/2,this.top=a-this.height/2,this._icon(i,o,a,s,l,c),{drawExternalLabel:function(){if(u.options.label!==void 0){var h=5;u.labelModule.draw(i,u.left+u.iconSize.width/2+u.margin.left,a+u.height/2+h,s)}u.updateBoundingBox(o,a)}}}},{key:"updateBoundingBox",value:function(i,o){if(this.boundingBox.top=o-this.options.icon.size*.5,this.boundingBox.left=i-this.options.icon.size*.5,this.boundingBox.right=i+this.options.icon.size*.5,this.boundingBox.bottom=o+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var a=5;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+a)}}},{key:"_icon",value:function(i,o,a,s,l,c){var u=Number(this.options.icon.size);this.options.icon.code!==void 0?(i.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+u+"px",this.options.icon.face].join(" "),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",this.enableShadow(i,c),i.fillText(this.options.icon.code,o,a),this.disableShadow(i,c)):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.")}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Wc);function PTt(t){var r=RTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function RTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var DTt=function(t){Ht(e,t);var r=PTt(e);function e(n,i,o,a,s){var l;return $e(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return _e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,c){i.save(),this.switchImages(s),this.resize();var u=o,g=a;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,g+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var h=this.options.borderWidth,d=this.options.borderWidthSelected||2*this.options.borderWidth,f=(s?d:h)/this.body.view.scale;i.lineWidth=Math.min(this.width,f),i.beginPath();var C=s?this.options.color.highlight.border:l?this.options.color.hover.border:this.options.color.border,v=s?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background;c.opacity!==void 0&&(C=no(C,c.opacity),v=no(v,c.opacity)),i.strokeStyle=C,i.fillStyle=v,i.rect(this.left-.5*i.lineWidth,this.top-.5*i.lineWidth,this.width+i.lineWidth,this.height+i.lineWidth),H0(i).call(i),this.performStroke(i,c),i.closePath()}this._drawImageAtPosition(i,c),this._drawImageLabel(i,u,g,s,l),this.updateBoundingBox(o,a),i.restore()}},{key:"updateBoundingBox",value:function(i,o){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=o):(this.left=i-this.width/2,this.top=o-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))}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(aM);function NTt(t){var r=BTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function BTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var FTt=function(t){Ht(e,t);var r=NTt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"square",2,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(il);function jTt(t){var r=UTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function UTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var GTt=function(t){Ht(e,t);var r=jTt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"hexagon",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(il);function WTt(t){var r=ZTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function ZTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var KTt=function(t){Ht(e,t);var r=WTt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"star",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(il);function YTt(t){var r=XTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function XTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var qTt=function(t){Ht(e,t);var r=YTt(e);function e(n,i,o){var a;return $e(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return _e(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.textSize=this.labelModule.getTextSize(i,o,a),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)}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.enableShadow(i,c),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l),this.disableShadow(i,c),this.updateBoundingBox(o,a,i,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Wc);function QTt(t){var r=JTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function JTt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var eLt=function(t){Ht(e,t);var r=QTt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"triangle",3,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(il);function tLt(t){var r=rLt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function rLt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var nLt=function(t){Ht(e,t);var r=tLt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"triangleDown",3,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(il);function UD(t,r){var e=mr(t);if(k1){var n=k1(t);r&&(n=gi(n).call(n,function(i){return nl(t,i).enumerable})),e.push.apply(e,n)}return e}function GD(t){for(var r=1;re.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,n,i){var o;if(i!==void 0){var a=e.group;if(n!==void 0&&n.group!==void 0&&a!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof a=="number"||typeof a=="string"&&a!="";if(s){var l=i.get(a);l.opacity!==void 0&&n.opacity===void 0&&(t.checkOpacity(l.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+l.opacity),l.opacity=void 0));var c=gi(o=tSt(n)).call(o,function(u){return n[u]!=null});c.push("font"),HA(c,e,l),e.color=Py(e.color)}}}},{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(HA(s,e,n,i),t.checkMass(n),e.opacity!==void 0&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),n.opacity!==void 0&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),to(e,n,"shadow",o),n.color!==void 0&&n.color!==null){var l=Py(n.color);Lre(e.color,l)}else i===!0&&n.color===null&&(e.color=m1(o.color));n.fixed!==void 0&&n.fixed!==null&&(typeof n.fixed=="boolean"?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(n.fixed.x!==void 0&&typeof n.fixed.x=="boolean"&&(e.fixed.x=n.fixed.x),n.fixed.y!==void 0&&typeof n.fixed.y=="boolean"&&(e.fixed.y=n.fixed.y))),i===!0&&n.font===null&&(e.font=m1(o.font)),t.updateGroupOptions(e,n,a),n.scaling!==void 0&&to(e.scaling,n.scaling,"label",o.scaling)}},{key:"checkMass",value:function(e,n){if(e.mass!==void 0&&e.mass<=0){var i="";n!==void 0&&(i=" in node id: "+n),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",Hre),e.mass=1}}}]),t}();function iLt(t,r){var e=typeof rl<"u"&&jc(t)||t["@@iterator"];if(!e){if(jt(t)||(e=oLt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function oLt(t,r){var e;if(t){if(typeof t=="string")return WD(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Fc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WD(t,r)}}function WD(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?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(var n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&this.body.nodes[n].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var i=0,o=mr(this.body.nodes);i1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(see("id",e))this.body.data.nodes=e;else if(jt(e))this.body.data.nodes=new MA,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new MA;else throw new TypeError("Array or DataSet expected");if(i&&vt(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var o=this;vt(this.nodesListeners,function(s,l){o.body.data.nodes.on(l,s)});var a=this.body.data.nodes.getIds();this.add(a,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,o=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:Oi;return new n(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;vt(this.body.nodes,function(i,o){var a=e.body.data.nodes.get(o);a!==void 0&&(n===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(a))})}},{key:"getPositions",value:function(e){var n={};if(e!==void 0){if(jt(e)===!0){for(var i=0;i0?(l=s/a,n+=l*l):n+=s;return a===1/0?1/0:a*OLt(n)}});var HLt=kt,VLt=HLt.Math.hypot,PLt=VLt,RLt=PLt,DLt=RLt,NLt=je(DLt);function hne(t){var r=BLt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function BLt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var Hr=function(){function t(){$e(this,t)}return _e(t,null,[{key:"transform",value:function(e,n){jt(e)||(e=[e]);for(var i=n.point.x,o=n.point.y,a=n.angle,s=n.length,l=0;l4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,n),e.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(e,n,a):this._drawLine(e,n,a)}},{key:"_drawLine",value:function(e,n,i,o,a){if(this.from!=this.to)this._line(e,n,i,o,a);else{var s=this._getCircleData(e),l=yr(s,3),c=l[0],u=l[1],g=l[2];this._circle(e,n,c,u,g)}}},{key:"_drawDashedLine",value:function(e,n,i,o,a){e.lineCap="round";var s=jt(n.dashes)?n.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,n,i);else{var l=this._getCircleData(e),c=yr(l,3),u=c[0],g=c[1],h=c[2];this._circle(e,n,u,g,h)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)Tee(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var d=this._getCircleData(e),f=yr(d,3),C=f[0],v=f[1],A=f[2];this._circle(e,n,C,v,A)}this.enableShadow(e,n),e.stroke(),this.disableShadow(e,n)}}},{key:"findBorderPosition",value:function(e,n,i){return this.from!=this.to?this._findBorderPosition(e,n,i):this._findBorderPositionCircle(e,n,i)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var n,i=zn(n=this._getCircleData(e)).call(n,0,2),o=yr(i,2),a=o[0],s=o[1];return{from:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var n=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var i=one(e,this.options.selfReference.angle,n,this.from);return[i.x,i.y,n]}},{key:"_pointOnCircle",value:function(e,n,i,o){var a=o*2*Math.PI;return{x:e+i*Math.cos(a),y:n-i*Math.sin(a)}}},{key:"_findBorderPositionCircle",value:function(e,n,i){var o=i.x,a=i.y,s=i.low,l=i.high,c=i.direction,u=10,g=this.options.selfReference.size,h=.05,d,f=(s+l)*.5,C=0;this.options.arrowStrikethrough===!0&&(c===-1?C=this.options.endPointOffset.from:c===1&&(C=this.options.endPointOffset.to));var v=0;do{f=(s+l)*.5,d=this._pointOnCircle(o,a,g,f);var A=Math.atan2(e.y-d.y,e.x-d.x),I=e.distanceToBorder(n,A)+C,p=Math.sqrt(Math.pow(d.x-e.x,2)+Math.pow(d.y-e.y,2)),m=I-p;if(Math.abs(m)0?c>0?s=f:l=f:c>0?l=f:s=f,++v}while(s<=l&&v1?g=1:g<0&&(g=0);var h=e+g*l,d=n+g*c,f=h-a,C=d-s;return Math.sqrt(f*f+C*C)}},{key:"getArrowData",value:function(e,n,i,o,a,s){var l,c,u,g,h,d,f,C=s.width;n==="from"?(u=this.from,g=this.to,h=s.fromArrowScale<0,d=Math.abs(s.fromArrowScale),f=s.fromArrowType):n==="to"?(u=this.to,g=this.from,h=s.toArrowScale<0,d=Math.abs(s.toArrowScale),f=s.toArrowType):(u=this.to,g=this.from,h=s.middleArrowScale<0,d=Math.abs(s.middleArrowScale),f=s.middleArrowType);var v=15*d+3*C;if(u!=g){var A=NLt(u.x-g.x,u.y-g.y),I=v/A;if(n!=="middle")if(this.options.smooth.enabled===!0){var p=this._findBorderPosition(u,e,{via:i}),m=this.getPoint(p.t+I*(n==="from"?1:-1),i);l=Math.atan2(p.y-m.y,p.x-m.x),c=p}else l=Math.atan2(u.y-g.y,u.x-g.x),c=this._findBorderPosition(u,e);else{var b=(h?-I:I)/2,_=this.getPoint(.5+b,i),S=this.getPoint(.5-b,i);l=Math.atan2(_.y-S.y,_.x-S.x),c=this.getPoint(.5,i)}}else{var E=this._getCircleData(e),T=yr(E,3),L=T[0],H=T[1],P=T[2];if(n==="from"){var R=this.options.selfReference.angle,N=this.options.selfReference.angle+Math.PI,U=this._findBorderPositionCircle(this.from,e,{x:L,y:H,low:R,high:N,direction:-1});l=U.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,c=U}else if(n==="to"){var F=this.options.selfReference.angle,K=this.options.selfReference.angle+Math.PI,te=this._findBorderPositionCircle(this.from,e,{x:L,y:H,low:F,high:K,direction:1});l=te.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,c=te}else{var Me=this.options.selfReference.angle/(2*Math.PI);c=this._pointOnCircle(L,H,P,Me),l=Me*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var Ye=c.x-v*.9*Math.cos(l),De=c.y-v*.9*Math.sin(l),we={x:Ye,y:De};return{point:c,core:we,angle:l,length:v,type:f}}},{key:"drawArrowHead",value:function(e,n,i,o,a){e.strokeStyle=this.getColor(e,n),e.fillStyle=e.strokeStyle,e.lineWidth=n.width;var s=dne.draw(e,a);s&&(this.enableShadow(e,n),H0(e).call(e),this.disableShadow(e,n))}},{key:"enableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,n){if(n.background!==!1){var i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=n.backgroundColor,e.lineWidth=n.backgroundSize,this.setStrokeDashed(e,n.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,n.dashes)}}},{key:"setStrokeDashed",value:function(e,n){if(n!==!1)if(e.setLineDash!==void 0){var i=jt(n)?n:[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.")}}]),t}();function QD(t,r){var e=mr(t);if(k1){var n=k1(t);r&&(n=gi(n).call(n,function(i){return nl(t,i).enumerable})),e.push.apply(e,n)}return e}function JD(t){for(var r=1;r"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var sM=function(t){Ht(e,t);var r=ekt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"_findBorderPositionBezier",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,l=.2,c=!1,u=1,g=0,h=this.to,d,f,C=this.options.endPointOffset?this.options.endPointOffset.to:0;i.id===this.from.id&&(h=this.from,c=!0,C=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(C=0);var v=0;do{f=(g+u)*.5,d=this.getPoint(f,a);var A=Math.atan2(h.y-d.y,h.x-d.x),I=h.distanceToBorder(o,A)+C,p=Math.sqrt(Math.pow(d.x-h.x,2)+Math.pow(d.y-h.y,2)),m=I-p;if(Math.abs(m)0&&(h=this._getDistanceToLine(A,I,C,v,l,c),g=h"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var eN=function(t){Ht(e,t);var r=rkt(e);function e(n,i,o){var a;return $e(this,e),a=r.call(this,n,i,o),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return _e(e,[{key:"setOptions",value:function(i){cv(Ve(e.prototype),"setOptions",this).call(this,i);var o=!1;this.options.physics!==i.physics&&(o=!0),this.options=i,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(),o===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){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})}},{key:"cleanup",value:function(){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}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var i="edgeId:"+this.id,o=this._body.functions.createNode({id:i,shape:"circle",physics:!0,hidden:!0});this._body.nodes[i]=o,this.via=o,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){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)}},{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var a=this._getCircleData(),s=yr(a,3),l=s[0],c=s[1],u=s[2],g=2*Math.PI*(1-i);return{x:l+u*Math.sin(g),y:c+u-u*(1-Math.cos(g))}}else return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o,this.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){return this._getDistanceToBezierEdge(i,o,a,s,l,c,this.via)}}]),e}(sM);function ikt(t){var r=okt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function okt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var tN=function(t){Ht(e,t);var r=ikt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var i=this.options.smooth.roundness,o=this.options.smooth.type,a=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var l,c;a<=s?l=c=i*s:l=c=i*a,this.from.x>this.to.x&&(l=-l),this.from.y>=this.to.y&&(c=-c);var u=this.from.x+l,g=this.from.y+c;return o==="discrete"&&(a<=s?u=athis.to.x&&(E=-E),this.from.y>=this.to.y&&(T=-T);var L=this.from.x+E,H=this.from.y+T;return a<=s?this.from.x<=this.to.x?L=this.to.xL?this.to.x:L:this.from.y>=this.to.y?H=this.to.y>H?this.to.y:H:H=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(i,o,a.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(i,o,a,s,l,c,u)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=i,s=Math.pow(1-a,2)*this.fromPoint.x+2*a*(1-a)*o.x+Math.pow(a,2)*this.toPoint.x,l=Math.pow(1-a,2)*this.fromPoint.y+2*a*(1-a)*o.y+Math.pow(a,2)*this.toPoint.y;return{x:s,y:l}}}]),e}(sM);function akt(t){var r=skt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function skt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var lkt=function(t){Ht(e,t);var r=akt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"_getDistanceToBezierEdge2",value:function(i,o,a,s,l,c,u,g){for(var h=1e9,d=i,f=o,C=[0,0,0,0],v=1;v<10;v++){var A=.1*v;C[0]=Math.pow(1-A,3),C[1]=3*A*Math.pow(1-A,2),C[2]=3*Math.pow(A,2)*(1-A),C[3]=Math.pow(A,3);var I=C[0]*i+C[1]*u.x+C[2]*g.x+C[3]*a,p=C[0]*o+C[1]*u.y+C[2]*g.y+C[3]*s;if(v>0){var m=this._getDistanceToLine(d,f,I,p,l,c);h=m"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var rN=function(t){Ht(e,t);var r=ckt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"_line",value:function(i,o,a){var s=a[0],l=a[1];this._bezierCurve(i,o,s,l)}},{key:"_getViaCoordinates",value:function(){var i=this.from.x-this.to.x,o=this.from.y-this.to.y,a,s,l,c,u=this.options.smooth.roundness;return(Math.abs(i)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,c=this.to.y,a=this.from.x-u*i,l=this.to.x+u*i):(s=this.from.y-u*o,c=this.to.y+u*o,a=this.from.x,l=this.to.x),[{x:a,y:s},{x:l,y:c}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),g=yr(u,2),h=g[0],d=g[1];return this._getDistanceToBezierEdge2(i,o,a,s,l,c,h,d)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=yr(o,2),s=a[0],l=a[1],c=i,u=[Math.pow(1-c,3),3*c*Math.pow(1-c,2),3*Math.pow(c,2)*(1-c),Math.pow(c,3)],g=u[0]*this.fromPoint.x+u[1]*s.x+u[2]*l.x+u[3]*this.toPoint.x,h=u[0]*this.fromPoint.y+u[1]*s.y+u[2]*l.y+u[3]*this.toPoint.y;return{x:g,y:h}}}]),e}(lkt);function gkt(t){var r=hkt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function hkt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var nN=function(t){Ht(e,t);var r=gkt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"_line",value:function(i,o){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),i.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(i){return{x:(1-i)*this.fromPoint.x+i*this.toPoint.x,y:(1-i)*this.fromPoint.y+i*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){var a=this.to,s=this.from;i.id===this.from.id&&(a=this.from,s=this.to);var l=Math.atan2(a.y-s.y,a.x-s.x),c=a.x-s.x,u=a.y-s.y,g=Math.sqrt(c*c+u*u),h=i.distanceToBorder(o,l),d=(g-h)/g;return{x:(1-d)*s.x+d*a.x,y:(1-d)*s.y+d*a.y,t:0}}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){return this._getDistanceToLine(i,o,a,s,l,c)}}]),e}(fne),ou=function(){function t(r,e,n,i,o){if($e(this,t),e===void 0)throw new Error("No body provided");this.options=m1(i),this.globalOptions=i,this.defaultOptions=o,this.body=e,this.imagelist=n,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 sne(this.body,this.options,!0),this.setOptions(r)}return _e(t,[{key:"setOptions",value:function(e){if(e){var n=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;t.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=ine(e.value));var i=[e,this.options,this.defaultOptions];return this.chooser=nM("edge",i),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,a={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:n,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:o?void 0:this.options.color.color,inheritsColor:o,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){var s=this.options.selectionWidth;typeof s=="function"?a.width=s(a.width):typeof s=="number"&&(a.width+=s),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.highlight,a.shadow=this.options.shadow.enabled}else if(this.hover){var l=this.options.hoverWidth;typeof l=="function"?a.width=l(a.width):typeof l=="number"&&(a.width+=l),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.hover,a.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(a,this.options.id,this.selected,this.hover),a.color!==void 0&&(a.inheritsColor=!1),a.shadow===!1&&(a.shadowColor!==this.options.shadow.color||a.shadowSize!==this.options.shadow.size||a.shadowX!==this.options.shadow.x||a.shadowY!==this.options.shadow.y)&&(a.shadow=!0));else a.shadow=this.options.shadow.enabled,a.width=Math.max(a.width,.3/this.body.view.scale);return a}},{key:"updateLabelModule",value:function(e){var n=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,n=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof eN&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof rN&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof tN&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof nN&&e.type.enabled===!1)&&(i=!1),i===!0&&(n=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(n=!0,this.edgeType=new eN(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new rN(this.options,this.body,this.labelModule):this.edgeType=new tN(this.options,this.body,this.labelModule):this.edgeType=new nN(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),n}},{key:"connect",value:function(){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()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.width=this.options.scaling.min+o*a}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){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}},{key:"draw",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(e,n,this.selected,this.hover,i),this.drawLabel(e,i)}}},{key:"drawArrows",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.fromPoint=o.from.core),n.fromArrowSrc&&(o.from.image=this.imagelist.load(n.fromArrowSrc)),n.fromArrowImageWidth&&(o.from.imageWidth=n.fromArrowImageWidth),n.fromArrowImageHeight&&(o.from.imageHeight=n.fromArrowImageHeight)),n.toArrow&&(o.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.toPoint=o.to.core),n.toArrowSrc&&(o.to.image=this.imagelist.load(n.toArrowSrc)),n.toArrowImageWidth&&(o.to.imageWidth=n.toArrowImageWidth),n.toArrowImageHeight&&(o.to.imageHeight=n.toArrowImageHeight)),n.middleArrow&&(o.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,n),n.middleArrowSrc&&(o.middle.image=this.imagelist.load(n.middleArrowSrc)),n.middleArrowImageWidth&&(o.middle.imageWidth=n.middleArrowImageWidth),n.middleArrowImageHeight&&(o.middle.imageHeight=n.middleArrowImageHeight)),n.fromArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(e,n){if(this.options.label!==void 0){var i=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var a;if(i.id!=o.id){this.labelModule.pointToSelf=!1,a=this.edgeType.getPoint(.5,n),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var l=one(e,this.options.selfReference.angle,this.options.selfReference.size,i);a=this._pointOnCircle(l.x,l.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var n=[];if(this.labelModule.visible()){var i=this._getRotation();Fy(this.labelModule.getSize(),e,i)&&n.push({edgeId:this.id,labelId:0})}var o={left:e.x,top:e.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){if(this.connected){var n=10,i=this.from.x,o=this.from.y,a=this.to.x,s=this.to.y,l=e.left,c=e.top,u=this.edgeType.getDistanceToEdge(i,o,a,s,l,c);return u0&&s<0)&&(l+=Math.PI),o.angle=l,o}},{key:"_pointOnCircle",value:function(e,n,i,o){return{x:e+i*Math.cos(o),y:n-i*Math.sin(o)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(Bg(s,e,n,i),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(Ll(n.endPointOffset.from)?e.endPointOffset.from=n.endPointOffset.from:(e.endPointOffset.from=o.endPointOffset.from!==void 0?o.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),n.endPointOffset!==void 0&&n.endPointOffset.to!==void 0&&(Ll(n.endPointOffset.to)?e.endPointOffset.to=n.endPointOffset.to:(e.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),RA(n.label)?e.label=n.label:RA(e.label)||(e.label=void 0),to(e,n,"smooth",o),to(e,n,"shadow",o),to(e,n,"background",o),n.dashes!==void 0&&n.dashes!==null?e.dashes=n.dashes:i===!0&&n.dashes===null&&(e.dashes=Zl(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(e.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(e.scaling.max=n.scaling.max),to(e.scaling,n.scaling,"label",o.scaling)):i===!0&&n.scaling===null&&(e.scaling=Zl(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var l=n.arrows.toLowerCase();e.arrows.to.enabled=Et(l).call(l,"to")!=-1,e.arrows.middle.enabled=Et(l).call(l,"middle")!=-1,e.arrows.from.enabled=Et(l).call(l,"from")!=-1}else if(Wt(n.arrows)==="object")to(e.arrows,n.arrows,"to",o.arrows),to(e.arrows,n.arrows,"middle",o.arrows),to(e.arrows,n.arrows,"from",o.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+x0(n.arrows));else i===!0&&n.arrows===null&&(e.arrows=Zl(o.arrows));if(n.color!==void 0&&n.color!==null){var c=nu(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,u=e.color;if(a)rr(u,o.color,!1,i);else for(var g in u)Object.prototype.hasOwnProperty.call(u,g)&&delete u[g];if(nu(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,c.opacity===void 0&&(u.opacity=1);else{var h=!1;c.color!==void 0&&(u.color=c.color,h=!0),c.highlight!==void 0&&(u.highlight=c.highlight,h=!0),c.hover!==void 0&&(u.hover=c.hover,h=!0),c.inherit!==void 0&&(u.inherit=c.inherit),c.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,c.opacity))),h===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else i===!0&&n.color===null&&(e.color=m1(o.color));i===!0&&n.font===null&&(e.font=m1(o.font)),Object.prototype.hasOwnProperty.call(n,"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=n.selfReferenceSize)}}]),t}(),dkt=function(){function t(r,e,n){var i,o=this;$e(this,t),this.body=r,this.images=e,this.groups=n,this.body.functions.createEdge=Ie(i=this.create).call(i,this),this.edgesListeners={add:function(s,l){o.add(l.items)},update:function(s,l){o.update(l.items)},remove:function(s,l){o.remove(l.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,l,c,u){if(l===s)return .5;var g=1/(l-s);return Math.max(0,(u-s)*g)}},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},rr(this.options,this.defaultOptions),this.bindEventListeners()}return _e(t,[{key:"bindEventListeners",value:function(){var e=this,n,i;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var s=!1;for(var l in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,l)){var c=e.body.edges[l],u=e.body.data.edges.get(l);if(u!=null){var g=u.smooth;g!==void 0&&g.enabled===!0&&g.type==="dynamic"&&(o===void 0?c.setOptions({smooth:!1}):c.setOptions({smooth:{type:o}}),s=!0)}}a===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",Ie(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",Ie(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){vt(e.edgesListeners,function(o,a){e.body.data.edges&&e.body.data.edges.off(a,o)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){ou.parseOptions(this.options,e,!0,this.defaultOptions,!0);var n=!1;if(e.smooth!==void 0)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(n=this.body.edges[i].updateEdgeType()||n);if(e.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(see("id",e))this.body.data.edges=e;else if(jt(e))this.body.data.edges=new MA,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new MA;else throw new TypeError("Array or DataSet expected");if(o&&vt(this.edgesListeners,function(s,l){o.off(l,s)}),this.body.edges={},this.body.data.edges){vt(this.edgesListeners,function(s,l){n.body.data.edges.on(l,s)});var a=this.body.data.edges.getIds();this.add(a,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),i===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,o=this.body.data.edges,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var i=this.body.edges;vt(e,function(o){var a=i[o];a!==void 0&&a.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;vt(this.body.edges,function(n,i){var o=e.body.data.edges.get(i);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(e){return new ou(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,n=this.body.nodes,i=this.body.edges;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var o=i[e];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(e){var n=[];if(this.body.edges[e]!==void 0){var i=this.body.edges[e];i.fromId!==void 0&&n.push(i.fromId),i.toId!==void 0&&n.push(i.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,n=[];vt(this.body.edges,function(i,o){var a=e.body.nodes[i.toId],s=e.body.nodes[i.fromId];a!==void 0&&a.isCluster===!0||s!==void 0&&s.isCluster===!0||(a===void 0||s===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var n=this.body.edges,i=[];Kt(e).call(e,function(o,a){var s=n[a];s===void 0&&i.push(a)}),this.add(i,!0)}}}]),t}(),Cne=function(){function t(r,e,n){$e(this,t),this.body=r,this.physicsBody=e,this.barnesHutTree,this.setOptions(n),this._rng=Z4("BARNES HUT SOLVER")}return _e(t,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,n=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,a=this._formBarnesHutTree(n,i);this.barnesHutTree=a;for(var s=0;s0&&this._getForceContributions(a.root,e)}}},{key:"_getForceContributions",value:function(e,n){this._getForceContribution(e.children.NW,n),this._getForceContribution(e.children.NE,n),this._getForceContribution(e.children.SW,n),this._getForceContribution(e.children.SE,n)}},{key:"_getForceContribution",value:function(e,n){if(e.childrenCount>0){var i=e.centerOfMass.x-n.x,o=e.centerOfMass.y-n.y,a=Math.sqrt(i*i+o*o);a*e.calcSize>this.thetaInversed?this._calculateForces(a,i,o,n,e):e.childrenCount===4?this._getForceContributions(e,n):e.children.data.id!=n.id&&this._calculateForces(a,i,o,n,e)}}},{key:"_calculateForces",value:function(e,n,i,o,a){e===0&&(e=.1,n=e),this.overlapAvoidanceFactor<1&&o.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,e-o.shape.radius));var s=this.options.gravitationalConstant*a.mass*o.options.mass/Math.pow(e,3),l=n*s,c=i*s;this.physicsBody.forces[o.id].x+=l,this.physicsBody.forces[o.id].y+=c}},{key:"_formBarnesHutTree",value:function(e,n){for(var i,o=n.length,a=e[n[0]].x,s=e[n[0]].y,l=e[n[0]].x,c=e[n[0]].y,u=1;u0&&(hl&&(l=h),dc&&(c=d))}var f=Math.abs(l-a)-Math.abs(c-s);f>0?(s-=.5*f,c+=.5*f):(a+=.5*f,l-=.5*f);var C=1e-5,v=Math.max(C,Math.abs(l-a)),A=.5*v,I=.5*(a+l),p=.5*(s+c),m={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:I-A,maxX:I+A,minY:p-A,maxY:p+A},size:v,calcSize:1/v,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(m.root);for(var b=0;b0&&this._placeInTree(m.root,i);return m}},{key:"_updateBranchMass",value:function(e,n){var i=e.centerOfMass,o=e.mass+n.options.mass,a=1/o;i.x=i.x*e.mass+n.x*n.options.mass,i.x*=a,i.y=i.y*e.mass+n.y*n.options.mass,i.y*=a,e.mass=o;var s=Math.max(Math.max(n.height,n.radius),n.width);e.maxWidth=e.maxWidthn.x?o.maxY>n.y?a="NW":a="SW":o.maxY>n.y?a="NE":a="SE",this._placeInRegion(e,n,a)}},{key:"_placeInRegion",value:function(e,n,i){var o=e.children[i];switch(o.childrenCount){case 0:o.children.data=n,o.childrenCount=1,this._updateBranchMass(o,n);break;case 1:o.children.data.x===n.x&&o.children.data.y===n.y?(n.x+=this._rng(),n.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,n));break;case 4:this._placeInTree(o,n);break}}},{key:"_splitBranch",value:function(e){var n=null;e.childrenCount===1&&(n=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"),n!=null&&this._placeInTree(e,n)}},{key:"_insertRegion",value:function(e,n){var i,o,a,s,l=.5*e.size;switch(n){case"NW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY,s=e.range.minY+l;break;case"NE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY,s=e.range.minY+l;break;case"SW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY+l,s=e.range.maxY;break;case"SE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY+l,s=e.range.maxY;break}e.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:a,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,n){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,n))}},{key:"_drawBranch",value:function(e,n,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,n),this._drawBranch(e.children.NE,n),this._drawBranch(e.children.SE,n),this._drawBranch(e.children.SW,n)),n.strokeStyle=i,n.beginPath(),n.moveTo(e.range.minX,e.range.minY),n.lineTo(e.range.maxX,e.range.minY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.minY),n.lineTo(e.range.maxX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.maxY),n.lineTo(e.range.minX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.minX,e.range.maxY),n.lineTo(e.range.minX,e.range.minY),n.stroke()}}]),t}(),fkt=function(){function t(r,e,n){$e(this,t),this._rng=Z4("REPULSION SOLVER"),this.body=r,this.physicsBody=e,this.setOptions(n)}return _e(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a,s,l,c,u=this.body.nodes,g=this.physicsBody.physicsNodeIndices,h=this.physicsBody.forces,d=this.options.nodeDistance,f=-2/3/d,C=4/3,v=0;v"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var pkt=function(t){Ht(e,t);var r=Akt(e);function e(n,i,o){var a;return $e(this,e),a=r.call(this,n,i,o),a._rng=Z4("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return _e(e,[{key:"_calculateForces",value:function(i,o,a,s,l){i===0&&(i=.1*this._rng(),o=i),this.overlapAvoidanceFactor<1&&s.shape.radius&&(i=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,i-s.shape.radius));var c=s.edges.length+1,u=this.options.gravitationalConstant*l.mass*s.options.mass*c/Math.pow(i,2),g=o*u,h=a*u;this.physicsBody.forces[s.id].x+=g,this.physicsBody.forces[s.id].y+=h}}]),e}(Cne);function mkt(t){var r=ykt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function ykt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var bkt=function(t){Ht(e,t);var r=mkt(e);function e(n,i,o){return $e(this,e),r.call(this,n,i,o)}return _e(e,[{key:"_calculateForces",value:function(i,o,a,s,l){if(i>0){var c=l.edges.length+1,u=this.options.centralGravity*c*l.options.mass;s[l.id].x=o*u,s[l.id].y=a*u}}}]),e}(uv),wkt=function(){function t(r){$e(this,t),this.body=r,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}},Wr(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return _e(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(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,HA(["stabilization"],this.options,e),to(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var n=this.options.wind;n&&((typeof n.x!="number"||By(n.x))&&(n.x=0),(typeof n.y!="number"||By(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new pkt(this.body,this.physicsBody,e),this.edgesSolver=new p6(this.body,this.physicsBody,e),this.gravitySolver=new bkt(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new fkt(this.body,this.physicsBody,e),this.edgesSolver=new p6(this.body,this.physicsBody,e),this.gravitySolver=new uv(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new Ckt(this.body,this.physicsBody,e),this.edgesSolver=new vkt(this.body,this.physicsBody,e),this.gravitySolver=new uv(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new Cne(this.body,this.physicsBody,e),this.edgesSolver=new p6(this.body,this.physicsBody,e),this.gravitySolver=new uv(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){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"))}},{key:"startSimulation",value:function(){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=Ie(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var 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"))}},{key:"simulationStep",value:function(){var e=LA();this.physicsTick();var n=LA()-e;(n<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&pa(function(){e.body.emitter.emit("stabilized",{iterations:n}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/es))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,n=0,i=0,o=5,a=0;as&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var n=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var o=this.physicsBody.velocities[e];this.previousStates[e]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,i.x,n.options.mass),n.x+=o.x*this.timestep):(i.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,i.y,n.options.mass),n.y+=o.y*this.timestep):(i.y=0,o.y=0);var a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return a}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].x&&e[n].y){var i=e[n].options.fixed;this.freezeCache[n]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.freezeCache[n]!==void 0&&(e[n].options.fixed.x=this.freezeCache[n].x,e[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof n!="number"&&(n=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",n)),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=n,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,pa(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,n=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var c=0;cl.shape.boundingBox.left&&(a=l.shape.boundingBox.left),sl.shape.boundingBox.top&&(i=l.shape.boundingBox.top),o1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var c=0;cl.x&&(a=l.x),sl.y&&(i=l.y),o"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var Tkt=function(t){Ht(e,t);var r=Ekt(e);function e(n,i,o,a,s,l){var c;return $e(this,e),c=r.call(this,n,i,o,a,s,l),c.isCluster=!0,c.containedNodes={},c.containedEdges={},c}return _e(e,[{key:"_openChildCluster",value:function(i){var o=this,a=this.body.nodes[i];if(this.containedNodes[i]===void 0)throw new Error("node with id: "+i+" not in current cluster");if(!a.isCluster)throw new Error("node with id: "+i+" is not a cluster");delete this.containedNodes[i],vt(a.edges,function(s){delete o.containedEdges[s.id]}),vt(a.containedNodes,function(s,l){o.containedNodes[l]=s}),a.containedNodes={},vt(a.containedEdges,function(s,l){o.containedEdges[l]=s}),a.containedEdges={},vt(a.edges,function(s){vt(o.edges,function(l){var c,u,g=Et(c=l.clusteringEdgeReplacingIds).call(c,s.id);g!==-1&&(vt(s.clusteringEdgeReplacingIds,function(h){l.clusteringEdgeReplacingIds.push(h),o.body.edges[h].edgeReplacedById=l.id}),rs(u=l.clusteringEdgeReplacingIds).call(u,g,1))})}),a.edges=[]}}]),e}(Oi),Lkt=function(){function t(r){var e=this;$e(this,t),this.body=r,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Wr(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return _e(t,[{key:"clusterByHubsize",value:function(e,n){e===void 0?e=this._getHubSize():Wt(e)==="object"&&(n=this._checkOptions(e),e=this._getHubSize());for(var i=[],o=0;o=e&&i.push(a.id)}for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(n.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");n=this._checkOptions(n);var o={},a={};vt(this.body.nodes,function(s,l){s.options&&n.joinCondition(s.options)===!0&&(o[l]=s,vt(s.edges,function(c){e.clusteredEdges[c.id]===void 0&&(a[c.id]=c)}))}),this._cluster(o,a,n,i)}},{key:"clusterByEdgeCount",value:function(e,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var a=[],s={},l,c,u,g=function(){var C={},v={},A=i.body.nodeIndices[h],I=i.body.nodes[A];if(s[A]===void 0){u=0,c=[];for(var p=0;p0&&mr(v).length>0&&b===!0){var E=function(){for(var R=0;R1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,n)}},{key:"clusterBridges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,n)}},{key:"clusterByConnection",value:function(e,n){var i,o=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!");var a=this.body.nodes[e];n=this._checkOptions(n,a),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=a.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=a.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=a.options.fixed.x,n.clusterNodeProperties.fixed.y=a.options.fixed.y);var s={},l={},c=a.id,u=Un.cloneOptions(a);s[c]=a;for(var g=0;g-1&&(l[p.id]=p)}this._cluster(s,l,n,o)}},{key:"_createClusterEdges",value:function(e,n,i,o){for(var a,s,l,c,u,g,h=mr(e),d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&a.push(s);for(var l=0;lo?l.x:o,a=l.ys?l.y:s;return{x:.5*(i+o),y:.5*(a+s)}}},{key:"openCluster",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[e];if(o===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(o.isCluster!==!0||o.containedNodes===void 0||o.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var a=this.findNode(e),s=Et(a).call(a,e)-1;if(s>=0){var l=a[s],c=this.body.nodes[l];c._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}var u=o.containedNodes,g=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var h={},d={x:o.x,y:o.y};for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var C=this.body.nodes[f];h[f]={x:C.x,y:C.y}}var v=n.releaseFunction(d,h);for(var A in u)if(Object.prototype.hasOwnProperty.call(u,A)){var I=this.body.nodes[A];v[A]!==void 0&&(I.x=v[A].x===void 0?o.x:v[A].x,I.y=v[A].y===void 0?o.y:v[A].y)}}else vt(u,function(te){te.options.fixed.x===!1&&(te.x=o.x),te.options.fixed.y===!1&&(te.y=o.y)});for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var m=this.body.nodes[p];m.vx=o.vx,m.vy=o.vy,m.setOptions({physics:!0}),delete this.clusteredNodes[p]}for(var b=[],_=0;_0&&so&&(o=s.edges.length),e+=s.edges.length,n+=Math.pow(s.edges.length,2),i+=1}e=e/i,n=n/i;var l=n-Math.pow(e,2),c=Math.sqrt(l),u=Math.floor(e+2*c);return u>o&&(u=o),u}},{key:"_createClusteredEdge",value:function(e,n,i,o,a){var s=Un.cloneOptions(i,"edge");rr(s,o),s.from=e,s.to=n,s.id="clusterEdge:"+Jh(),a!==void 0&&rr(s,a);var l=this.body.functions.createEdge(s);return l.clusteringEdgeReplacingIds=[i.id],l.connect(),this.body.edges[l.id]=l,l}},{key:"_clusterEdges",value:function(e,n,i,o){if(n instanceof ou){var a=n,s={};s[a.id]=a,n=s}if(e instanceof Oi){var l=e,c={};c[l.id]=l,e=c}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=i.clusterEdgeProperties),this._createClusterEdges(e,n,i,o);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&this.body.edges[u]!==void 0){var g=this.body.edges[u];this._backupEdgeOptions(g),g.setOptions({physics:!1})}for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(this.clusteredNodes[h]={clusterId:i.id,node:this.body.nodes[h]},this.body.nodes[h].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var n=this.clusteredNodes[e];if(n!==void 0){var i=n.clusterId;if(i!==void 0)return this.body.nodes[i]}}}},{key:"_filter",value:function(e,n){var i=[];return vt(e,function(o){n(o)&&i.push(o)}),i}},{key:"_updateState",value:function(){var e=this,n,i=[],o={},a=function(f){vt(e.body.nodes,function(C){C.isCluster===!0&&f(C)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var s=this.body.nodes[n];s===void 0&&i.push(n)}a(function(d){for(var f=0;f0}(!d.endPointsValid()||!C)&&(o[f]=f)}),a(function(d){vt(o,function(f){delete d.containedEdges[f],vt(d.edges,function(C,v){if(C.id===f){d.edges[v]=null;return}C.clusteringEdgeReplacingIds=e._filter(C.clusteringEdgeReplacingIds,function(A){return!o[A]})}),d.edges=e._filter(d.edges,function(C){return C!==null})})}),vt(o,function(d){delete e.clusteredEdges[d]}),vt(o,function(d){delete e.body.edges[d]});var c=mr(this.body.edges);vt(c,function(d){var f=e.body.edges[d],C=e._isClusteredNode(f.fromId)||e._isClusteredNode(f.toId);if(C!==e._isClusteredEdge(f.id))if(C){var v=e._getClusterNodeForNode(f.fromId);v!==void 0&&e._clusterEdges(e.body.nodes[f.fromId],f,v);var A=e._getClusterNodeForNode(f.toId);A!==void 0&&e._clusterEdges(e.body.nodes[f.toId],f,A)}else delete e._clusterEdges[d],e._restoreEdge(f)});for(var u=!1,g=!0,h=function(){var f=[];a(function(v){var A=mr(v.containedNodes).length,I=v.options.allowSingleNodeCluster===!0;(I&&A<1||!I&&A<2)&&f.push(v.id)});for(var C=0;C0,u=u||g};g;)h();u&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),t}();function kkt(){var t;window!==void 0&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),t===void 0?window.requestAnimationFrame=function(r){r()}:window.requestAnimationFrame=t}var Okt=function(){function t(r,e){$e(this,t),kkt(),this.body=r,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!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},Wr(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return _e(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=pa(function(){var i;e.zooming=!1,Ie(i=e._requestRedraw).call(i,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",Ie(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];Bg(n,this.options,e)}}},{key:"_requestNextFrame",value:function(e,n){if(!(typeof window>"u")){var i,o=window;return this.requiresTimeout===!0?i=pa(e,n):o.requestAnimationFrame&&(i=o.requestAnimationFrame(e)),i}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(Ie(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var n={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,o,a),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){var s=this._drawNodes(i,e),l=s.drawExternalLabels;n.drawExternalLabels=l}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),n.drawExternalLabels!=null&&n.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,o,a)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var 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);var n=this.body.nodes,i;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i=n[o],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,o=this.body.nodeIndices,a,s=[],l=[],c=20,u=this.canvas.DOMtoCanvas({x:-c,y:-c}),g=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+c,y:this.canvas.frame.canvas.clientHeight+c}),h={top:u.y,left:u.x,bottom:g.y,right:g.x},d=[],f=0;f0&&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}))}},{key:"_setCameraState",value:function(){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){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;e!=1&&n!=1?i=this.cameraState.scale*.5*(e+n):e!=1?i=this.cameraState.scale*e:n!=1&&(i=this.cameraState.scale*n),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),a={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=a.x*this.body.view.scale,this.body.view.translation.y+=a.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(Et(e).call(e,"%")!==-1||Et(e).call(e,"px")!==-1)return e;if(Et(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){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{var 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()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new iu(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:iu.DIRECTION_ALL}),DA(this.hammer,function(n){e.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){e.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){e.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){e.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){e.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){e.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){e.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){e.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){e.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){e.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){e.body.eventListeners.onContext(n)}),this.hammerFrame=new iu(this.frame),vne(this.hammerFrame,function(n){e.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),n=this._prepareValue(n);var i=!1,o=this.frame.canvas.width,a=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||n!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=n)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=n,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=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var l=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),c=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==l||this.frame.canvas.height!==c)&&this._getCameraState(s),this.frame.canvas.width!==l&&(this.frame.canvas.width=l,i=!0),this.frame.canvas.height!==c&&(this.frame.canvas.height=c,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(o/this.pixelRatio),oldHeight:Math.round(a/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/i}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var 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)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),t}();function Dkt(t,r){var e=Wr({nodes:r,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},t??{});if(!jt(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=r),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var Nkt=function(){function t(r,e){var n,i=this,o;$e(this,t),this.body=r,this.canvas=e,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",Ie(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",Ie(o=this.releaseNode).call(o,this))}return _e(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=Dkt(e,this.body.nodeIndices);var i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,a,s;if(i===0||o===0)s=1,a=Un.getRange(this.body.nodes,e.nodes);else if(n===!0){var l=0;for(var c in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,c)){var u=this.body.nodes[c];u.predefinedPosition===!0&&(l+=1)}if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}a=Un.getRange(this.body.nodes,e.nodes);var g=this.body.nodeIndices.length;s=12.662/(g+7.4147)+.0964822;var h=Math.min(i/600,o/600);s*=h}else{this.body.emitter.emit("_resizeNodes"),a=Un.getRange(this.body.nodes,e.nodes);var d=Math.abs(a.maxX-a.minX)*1.1,f=Math.abs(a.maxY-a.minY)*1.1,C=i/d,v=o/f;s=C<=v?C:v}s>e.maxZoomLevel?s=e.maxZoomLevel:s1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};n.position=i,n.lockedOnNode=e,this.moveTo(n)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!Ll(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,!Ll(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,!Ll(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,!Ll(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)}},{key:"animateView",value:function(e){if(e!==void 0){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;var n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.position.x,y:n.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 o;this.viewFunction=Ie(o=this._lockedRedraw).call(o,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 a;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=Ie(a=this._transitionRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.x,y:n.y-e.y},o=this.body.view.translation,a={x:o.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=a}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var n=w_t[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=Ie(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function oN(t){var r=t&&t.preventDefault||!1,e=t&&t.container||window,n={},i={keydown:{},keyup:{}},o={},a;for(a=97;a<=122;a++)o[String.fromCharCode(a)]={code:65+(a-97),shift:!1};for(a=65;a<=90;a++)o[String.fromCharCode(a)]={code:a,shift:!0};for(a=0;a<=9;a++)o[""+a]={code:48+a,shift:!1};for(a=1;a<=12;a++)o["F"+a]={code:111+a,shift:!1};for(a=0;a<=9;a++)o["num"+a]={code:96+a,shift:!1};o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var s=function(u){c(u,"keydown")},l=function(u){c(u,"keyup")},c=function(u,g){if(i[g][u.keyCode]!==void 0){for(var h=i[g][u.keyCode],d=0;d700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var 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={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=oN({container:window,preventDefault:!0}):this.keycharm=oN({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var n,i,o,a,s,l,c,u,g,h,d,f,C,v,A,I,p,m,b,_,S,E,T,L;Ie(n=this.keycharm).call(n,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),Ie(i=this.keycharm).call(i,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),Ie(o=this.keycharm).call(o,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),Ie(a=this.keycharm).call(a,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),Ie(s=this.keycharm).call(s,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),Ie(l=this.keycharm).call(l,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),Ie(c=this.keycharm).call(c,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),Ie(u=this.keycharm).call(u,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),Ie(g=this.keycharm).call(g,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),Ie(h=this.keycharm).call(h,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),Ie(d=this.keycharm).call(d,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),Ie(f=this.keycharm).call(f,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),Ie(C=this.keycharm).call(C,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),Ie(v=this.keycharm).call(v,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),Ie(A=this.keycharm).call(A,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),Ie(I=this.keycharm).call(I,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),Ie(p=this.keycharm).call(p,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Ie(m=this.keycharm).call(m,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Ie(b=this.keycharm).call(b,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Ie(_=this.keycharm).call(_,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Ie(S=this.keycharm).call(S,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),Ie(E=this.keycharm).call(E,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Ie(T=this.keycharm).call(T,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),Ie(L=this.keycharm).call(L,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),t}();function Fkt(t,r){var e=typeof rl<"u"&&jc(t)||t["@@iterator"];if(!e){if(jt(t)||(e=jkt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function jkt(t,r){var e;if(t){if(typeof t=="string")return aN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Fc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aN(t,r)}}function aN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n)}},{key:"onDoubleTap",value:function(e){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,n)}},{key:"onHold",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n),this.selectionHandler.generateClickEvent("hold",e,n)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var n=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,n)}},{key:"checkSelectionChanges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,n){var i=function(a,s){for(var l=[],c=0;c=a.minX&&g.x<=a.maxX&&g.y>=a.minY&&g.y<=a.maxY});Kt(s).call(s,function(u){return n.selectionHandler.selectObject(n.body.nodes[u])});var l=this.getPointer(e.center);this.selectionHandler.commitAndEmit(l,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var c=this.drag.selection;c&&c.length?(Kt(c).call(c,function(u){u.node.options.fixed.x=u.xFixed,u.node.options.fixed.y=u.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"))}}},{key:"onPinch",value:function(e){var n=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var i=this.pinch.scale*e.scale;this.zoom(i,n)}},{key:"zoom",value:function(e,n){if(this.options.zoomView===!0){var i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var a=this.body.view.translation,s=e/i,l=(1-s)*n.x+a.x*s,c=(1-s)*n.y+a.y*s;if(this.body.view.scale=e,this.body.view.translation={x:l,y:c},o!=null){var u=this.canvas.canvasToDOM(o);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),i0&&(this.popupObj=u[h[h.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var f=this.body.edgeIndices,C=this.body.edges,v,A=[],I=0;I0&&(this.popupObj=C[A[A.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==a&&(this.popup===void 0&&(this.popup=new L_t(this.canvas.frame)),this.popup.popupTargetType=l,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"))}},{key:"_checkHidePopup",value:function(e){var n=this.selectionHandler._pointerToPositionObject(e),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),i===!0)){var o=this.selectionHandler.getNodeAt(e);i=o===void 0?!1:o.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(n));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),Gkt=tM,Wkt=Kre;Gkt("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Wkt);var Zkt=kt,Kkt=Zkt.Set,Ykt=Kkt,Xkt=Ykt,qkt=Xkt,wl=je(qkt),Qkt=xt,sN=rM,C5=K4.getWeakData,Jkt=eM,eOt=Ki,tOt=Tg,m6=mn,rOt=J_,Ane=tl,lN=yn,Ine=Bc,nOt=Ine.set,iOt=Ine.getterFor,oOt=Ane.find,aOt=Ane.findIndex,sOt=Qkt([].splice),lOt=0,v5=function(t){return t.frozen||(t.frozen=new pne)},pne=function(){this.entries=[]},y6=function(t,r){return oOt(t.entries,function(e){return e[0]===r})};pne.prototype={get:function(t){var r=y6(this,t);if(r)return r[1]},has:function(t){return!!y6(this,t)},set:function(t,r){var e=y6(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=aOt(this.entries,function(e){return e[0]===t});return~r&&sOt(this.entries,r,1),!!~r}};var cOt={getConstructor:function(t,r,e,n){var i=t(function(l,c){Jkt(l,o),nOt(l,{type:r,id:lOt++,frozen:void 0}),tOt(c)||rOt(c,l[n],{that:l,AS_ENTRIES:e})}),o=i.prototype,a=iOt(r),s=function(l,c,u){var g=a(l),h=C5(eOt(c),!0);return h===!0?v5(g).set(c,u):h[g.id]=u,l};return sN(o,{delete:function(l){var c=a(this);if(!m6(l))return!1;var u=C5(l);return u===!0?v5(c).delete(l):u&&lN(u,c.id)&&delete u[c.id]},has:function(c){var u=a(this);if(!m6(c))return!1;var g=C5(c);return g===!0?v5(u).has(c):g&&lN(g,u.id)}}),sN(o,e?{get:function(c){var u=a(this);if(m6(c)){var g=C5(c);return g===!0?v5(u).get(c):g?g[u.id]:void 0}},set:function(c,u){return s(this,c,u)}}:{add:function(c){return s(this,c,!0)}}),i}},uOt=Ure,cN=Sr,gv=xt,uN=rM,gOt=K4,hOt=tM,mne=cOt,A5=mn,I5=Bc.enforce,dOt=Lt,fOt=xee,B0=Object,COt=Array.isArray,p5=B0.isExtensible,yne=B0.isFrozen,vOt=B0.isSealed,bne=B0.freeze,AOt=B0.seal,gN={},hN={},IOt=!cN.ActiveXObject&&"ActiveXObject"in cN,uh,wne=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},$ne=hOt("WeakMap",wne,mne),A2=$ne.prototype,hv=gv(A2.set),pOt=function(){return uOt&&dOt(function(){var t=bne([]);return hv(new $ne,t,1),!yne(t)})};if(fOt)if(IOt){uh=mne.getConstructor(wne,"WeakMap",!0),gOt.enable();var dN=gv(A2.delete),m5=gv(A2.has),fN=gv(A2.get);uN(A2,{delete:function(t){if(A5(t)&&!p5(t)){var r=I5(this);return r.frozen||(r.frozen=new uh),dN(this,t)||r.frozen.delete(t)}return dN(this,t)},has:function(r){if(A5(r)&&!p5(r)){var e=I5(this);return e.frozen||(e.frozen=new uh),m5(this,r)||e.frozen.has(r)}return m5(this,r)},get:function(r){if(A5(r)&&!p5(r)){var e=I5(this);return e.frozen||(e.frozen=new uh),m5(this,r)?fN(this,r):e.frozen.get(r)}return fN(this,r)},set:function(r,e){if(A5(r)&&!p5(r)){var n=I5(this);n.frozen||(n.frozen=new uh),m5(this,r)?hv(this,r,e):n.frozen.set(r,e)}else hv(this,r,e);return this}})}else pOt()&&uN(A2,{set:function(r,e){var n;return COt(r)&&(yne(r)?n=gN:vOt(r)&&(n=hN)),hv(this,r,e),n===gN&&bne(r),n===hN&&AOt(r),this}});var mOt=kt,yOt=mOt.WeakMap,bOt=yOt,wOt=bOt,$Ot=wOt,ed=je($Ot);function er(t,r,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?t!==r||!n:!r.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(t):n?n.value:r.get(t)}function Gy(t,r,e,n,i){if(typeof r=="function"?t!==r||!i:!r.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r.set(t,e),e}function Wy(t,r){var e=typeof rl<"u"&&jc(t)||t["@@iterator"];if(!e){if(jt(t)||(e=_Ot(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function _Ot(t,r){var e;if(t){if(typeof t=="string")return CN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Fc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CN(t,r)}}function CN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&arguments[0]!==void 0?arguments[0]:function(){};$e(this,t),Ds.set(this,new AN),Ns.set(this,new AN),dv.set(this,void 0),Gy(this,dv,r)}return _e(t,[{key:"sizeNodes",get:function(){return er(this,Ds,"f").size}},{key:"sizeEdges",get:function(){return er(this,Ns,"f").size}},{key:"getNodes",value:function(){return er(this,Ds,"f").getSelection()}},{key:"getEdges",value:function(){return er(this,Ns,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=er(this,Ds,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=er(this,Ns,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){er(this,Ds,"f").delete(e)}},{key:"deleteEdges",value:function(e){er(this,Ns,"f").delete(e)}},{key:"clear",value:function(){er(this,Ds,"f").clear(),er(this,Ns,"f").clear()}},{key:"commit",value:function(){for(var e,n,i={nodes:er(this,Ds,"f").commit(),edges:er(this,Ns,"f").commit()},o=arguments.length,a=new Array(o),s=0;s=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function zOt(t,r){var e;if(t){if(typeof t=="string")return pN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Fc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pN(t,r)}}function pN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(n,i);if(a===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}o!==void 0&&(s.previousSelection=o),e=="click"&&(s.items=this.getClickedItems(i)),n.controlEdge!==void 0&&(s.controlEdge=n.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Oi){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,ia(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],i=this.body.nodes,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(i);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var i=this.body.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),o=10,a=null,s=this.body.edges,l=0;l0&&(this.generateClickEvent("deselectEdge",n,e,a),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,a),i=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),i=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),i=!0),i===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return Nu(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Nu(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=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((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var i=IN(e.nodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.body.nodes[a];if(!s)throw new RangeError('Node with id "'+a+'" not found');this.selectObject(s,n.highlightEdges)}}catch(h){i.e(h)}finally{i.f()}}if(e.edges){var l=IN(e.edges),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=this.body.edges[u];if(!g)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(g)}}catch(h){l.e(h)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=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:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),i=[],o=this.body.nodeIndices,a=this.body.nodes,s=o.length-1;s>=0;s--){var l=a[o[s]],c=l.getItemsOnPoint(n);i.push.apply(i,c)}for(var u=this.body.edgeIndices,g=this.body.edges,h=u.length-1;h>=0;h--){var d=g[u[h]],f=d.getItemsOnPoint(n);i.push.apply(i,f)}return i}}]),t}(),mN=lte,SOt=Math.floor,Zy=function(t,r){var e=t.length,n=SOt(e/2);return e<8?TOt(t,r):LOt(t,Zy(mN(t,0,n),r),Zy(mN(t,n),r),r)},TOt=function(t,r){for(var e=t.length,n=1,i,o;n0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},LOt=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a3)){if(GOt)return!0;if(zN)return zN<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)n1.push({k:e+i,v:n})}for(n1.sort(function(o,a){return a.v-o.v}),i=0;i$N(e)?1:-1}};DOt({target:"Array",proto:!0,forced:XOt},{sort:function(r){r!==void 0&&NOt(r);var e=BOt(this);if(Mne)return r===void 0?EN(e):EN(e,r);var n=[],i=wN(e),o,a;for(a=0;a=0:s>l;l+=c)l in a&&(i=e(i,a[l],l,o));return i}},gxt={left:SN(!1),right:SN(!0)},hxt=Sr,dxt=zs,fxt=dxt(hxt.process)==="process",Cxt=tt,vxt=gxt.left,Axt=Dg,TN=y0,Ixt=fxt,pxt=!Ixt&&TN>79&&TN<83,mxt=pxt||!Axt("reduce");Cxt({target:"Array",proto:!0,forced:mxt},{reduce:function(r){var e=arguments.length;return vxt(this,r,e,e>1?arguments[1]:void 0)}});var yxt=bn,bxt=yxt("Array").reduce,wxt=Dr,$xt=bxt,w6=Array.prototype,_xt=function(t){var r=t.reduce;return t===w6||wxt(w6,t)&&r===w6.reduce?$xt:r},Mxt=_xt,zxt=Mxt,Ext=zxt,zne=je(Ext);function Ene(t){var r=Sxt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=ne(n,arguments,o)}else i=n.apply(this,arguments);return Ut(this,i)}}function Sxt(){if(typeof Reflect>"u"||!ne||ne.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ne(Boolean,[],function(){})),!0}catch{return!1}}var Sne=function(){function t(){$e(this,t)}return _e(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,i),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),Txt=function(t){Ht(e,t);var r=Ene(e);function e(n){var i;return $e(this,e),i=r.call(this),i.layout=n,i}return _e(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.x=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(i){td(i).call(i,function(o,a){return o.x-a.x})}},{key:"fix",value:function(i,o){i.y=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.y=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].x+=o}}]),e}(Sne),Lxt=function(t){Ht(e,t);var r=Ene(e);function e(n){var i;return $e(this,e),i=r.call(this),i.layout=n,i}return _e(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.y=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(i){td(i).call(i,function(o,a){return o.y-a.y})}},{key:"fix",value:function(i,o){i.x=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.x=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].y+=o}}]),e}(Sne),kxt=tt,Oxt=tl.every,xxt=Dg,Hxt=xxt("every");kxt({target:"Array",proto:!0,forced:!Hxt},{every:function(r){return Oxt(this,r,arguments.length>1?arguments[1]:void 0)}});var Vxt=bn,Pxt=Vxt("Array").every,Rxt=Dr,Dxt=Pxt,$6=Array.prototype,Nxt=function(t){var r=t.every;return t===$6||Rxt($6,t)&&r===$6.every?Dxt:r},Bxt=Nxt,Fxt=Bxt,jxt=Fxt,Tne=je(jxt);function Uxt(t,r){var e=typeof rl<"u"&&jc(t)||t["@@iterator"];if(!e){if(jt(t)||(e=Gxt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Gxt(t,r){var e;if(t){if(typeof t=="string")return LN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Fc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LN(t,r)}}function LN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=r[o])&&(r[o]=r[i]+1)}),r}function Zxt(t){return Lne(function(r){var e,n;return Tne(e=gi(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.to===r})},function(r,e){return e>r},"from",t)}function Kxt(t){return Lne(function(r){var e,n;return Tne(e=gi(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.from===r})},function(r,e){return ea)return{v:{v:Wxt(n,o)}};++I},b;p=A.pop();)if(b=m(),b!==0&&b)return b.v},h;for(c.s();!(u=c.n()).done;)if(h=g(),h!==0&&h)return h.v}catch(d){c.e(d)}finally{c.f()}return o}var Yxt=function(){function t(){$e(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return _e(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,i={},o=function a(s){if(i[s]!==void 0)return i[s];var l=n.levels[s];if(n.childrenReference[s]){var c=n.childrenReference[s];if(c.length>0)for(var u=0;u0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),rr(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=Z4(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):Wt(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var 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{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(i=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:i,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,i=0;il){for(var u=e.length;e.length>l&&s<=a;){s+=1;var g=e.length;s%3===0?this.body.modules.clustering.clusterBridges(c):this.body.modules.clustering.clusterOutliers(c);var h=e.length;if(g==h&&s%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)})}s>a&&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();for(var d=70,f=0;f0){var e,n,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new Yxt;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(i=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!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(o===!0){var a=this.options.hierarchical.sortMethod;a==="hubsize"?this._determineLevelsByHubsize():a==="directed"?this._determineLevelsDirected():a==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,i={},o=function(){for(var p=s(),m=0,b=0;b0)for(var _=0;_1&&arguments[1]!==void 0?arguments[1]:1e9,b=1e9,_=1e9,S=1e9,E=-1e9;for(var T in p)if(Object.prototype.hasOwnProperty.call(p,T)){var L=e.body.nodes[T],H=e.hierarchical.levels[L.id],P=e.direction.getPosition(L),R=e._getSpaceAroundNode(L,p),N=yr(R,2),U=N[0],F=N[1];b=Math.min(U,b),_=Math.min(F,_),H<=m&&(S=Math.min(P,S),E=Math.max(P,E))}return[S,E,b,_]},u=function(p,m){var b=e.hierarchical.getMaxLevel(p.id),_=e.hierarchical.getMaxLevel(m.id);return Math.min(b,_)},g=function(p,m,b){for(var _=e.hierarchical,S=0;S1)for(var L=0;L2&&arguments[2]!==void 0?arguments[2]:!1,_=e.direction.getPosition(p),S=e.direction.getPosition(m),E=Math.abs(S-_),T=e.options.hierarchical.nodeSpacing;if(E>T){var L={},H={};l(p,L),l(m,H);var P=u(p,m),R=c(L,P),N=c(H,P),U=R[1],F=N[0],K=N[2],te=Math.abs(U-F);if(te>T){var Me=U-F+T;Me<-K+T&&(Me=-K+T),Me<0&&(e._shiftBlock(m.id,Me),n=!0,b===!0&&e._centerParent(m))}}},d=function(p,m){for(var b=m.id,_=m.edges,S=e.hierarchical.levels[m.id],E=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,T={},L=[],H=0;H<_.length;H++){var P=_[H];if(P.toId!=P.fromId){var R=P.toId==b?P.from:P.to;T[_[H].id]=R,e.hierarchical.levels[R.id]0?ae=Math.min(X,ft-e.options.hierarchical.nodeSpacing):X<0&&(ae=-Math.min(-X,ot-e.options.hierarchical.nodeSpacing)),ae!=0&&(e._shiftBlock(m.id,ae),n=!0)},te=function(De){var we=e.direction.getPosition(m),Ne=e._getSpaceAroundNode(m),Ue=yr(Ne,2),ot=Ue[0],ft=Ue[1],X=De-we,ae=we;X>0?ae=Math.min(we+(ft-e.options.hierarchical.nodeSpacing),De):X<0&&(ae=Math.max(we-(ot-e.options.hierarchical.nodeSpacing),De)),ae!==we&&(e.direction.setPosition(m,ae),n=!0)},Me=F(p,L);K(Me),Me=F(p,_),te(Me)},f=function(p){var m=e.hierarchical.getLevels();m=Wl(m).call(m);for(var b=0;b0&&Math.abs(f)0&&(u=this.direction.getPosition(o[s-1])+c),this.direction.setPosition(l,u,n),this._validatePositionAndContinue(l,n,u),a++}}}}},{key:"_placeBranchNodes",value:function(e,n){var i,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var a=[],s=0;sn&&this.positionedNodes[c.id]===void 0){var g=this.options.hierarchical.nodeSpacing,h=void 0;l===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(a[l-1])+g,this.direction.setPosition(c,h,u),this._validatePositionAndContinue(c,u,h)}else return}var d=this._getCenterPosition(a);this.direction.setPosition(this.body.nodes[e],d,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(i-oe.hierarchical.levels[o.id]&&e.hierarchical.addRelation(o.id,a.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},a=function h(d,f){if(o[d.id]===void 0){e.hierarchical.setTreeIndex(d,f),o[d.id]=!0;for(var C,v=e._getActiveEdges(d),A=0;A=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Qxt(t,r){var e;if(t){if(typeof t=="string")return kN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Fc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kN(t,r)}}function kN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&this.options.deleteNode!==!1?(l===!0&&this._createSeperator(4),this._createDeleteButton(s)):i===0&&this.options.deleteEdge!==!1&&(l===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,Ie(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",Ie(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,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,Ie(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",Ie(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var i=rr({},n.options,!1);if(i.x=n.x,i.y=n.y,this.options.editNode.length===2)this.options.editNode(i,function(o){o!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(o),e.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()}},{key:"addEdgeMode",value:function(){var e,n,i,o,a;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,l=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(l),this._createSeperator(),this._createDescription(l.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Ie(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",Ie(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",Ie(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",Ie(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",Ie(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",Ie(a=this._dragStartEdge).call(a,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",Wt(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Ie(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,a,s,l,c=this.body.edges[this.edgeBeingEditedId],u=this._getNewTargetNode(c.from.x,c.from.y),g=this._getNewTargetNode(c.to.x,c.to.y);this.temporaryIds.nodes.push(u.id),this.temporaryIds.nodes.push(g.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this.body.nodes[g.id]=g,this.body.nodeIndices.push(g.id),this._temporaryBindUI("onTouch",Ie(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",Ie(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",Ie(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",Ie(l=this._controlNodeDragEnd).call(l,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var d=c.edgeType.findBorderPositions(h);u.selected===!1&&(u.x=d.from.x,u.y=d.from.y),g.selected===!1&&(g.x=d.to.x,g.y=d.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var a=0;a0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var s={nodes:n,edges:i};if(o.length===2)o(s,function(l){l!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(l.edges),e.body.data.nodes.getDataSet().remove(l.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){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,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.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)}}},{key:"_getNewTargetNode",value:function(e,n){var i=rr({},this.options.controlNodeStyle);i.id="targetNode"+Jh(),i.hidden=!1,i.physics=!1,i.x=e,i.y=n;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:e,right:e,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},Ks(this.editModeDiv);var n=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,Ie(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(Ks(this.editModeDiv),Ks(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=qxt(rs(e=this._domEventListenerCleanupQueue).call(e,0)),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o()}}catch(a){n.e(a)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),Ks(this.manipulationDiv),Ks(this.editModeDiv),Ks(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}},{key:"_createSeperator",value:function(){var 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])}},{key:"_createAddNodeButton",value:function(e){var n,i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";var o=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,Ie(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Ie(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,i){var o=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 "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=o,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+x0(mr(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e=0;l--)if(a[l]!==this.selectedControlNode.id){s=this.body.nodes[a[l]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var c=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===c.id?this._performEditEdge(s.id,o.to.id):this._performEditEdge(o.from.id,s.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Wr({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,i=this.selectionHandler.getNodeAt(n);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var a=this.body.functions.createEdge({id:"connectionEdge"+Jh(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[a.id]=a,this.body.edgeIndices.push(a.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(a.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var c;if(Et(c=this.temporaryIds.nodes).call(c,a[l])===-1){s=this.body.nodes[a[l]];break}}if(e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(n.x),u.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var c;if(Et(c=this.temporaryIds.nodes).call(c,a[l])===-1){s=this.body.nodes[a[l]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(o,s.id)),e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,i={id:Jh(),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(i,function(o){o!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(o),n.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(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var i=this,o={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(a){a!=null&&i.inMode==="addEdge"&&(i.body.data.edges.getDataSet().add(a),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var i=this,o={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},a=this.options.editEdge;if(Wt(a)==="object"&&(a=a.editWithoutDrag),typeof a=="function")if(a.length===2)a(o,function(s){s==null||i.inMode!=="editEdge"?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(s),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),be="string",Ce="boolean",J="number",mh="array",Fe="object",kne="dom",eHt="any",_6=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],M6={borderWidth:{number:J},borderWidthSelected:{number:J,undefined:"undefined"},brokenImage:{string:be,undefined:"undefined"},chosen:{label:{boolean:Ce,function:"function"},node:{boolean:Ce,function:"function"},__type__:{object:Fe,boolean:Ce}},color:{border:{string:be},background:{string:be},highlight:{border:{string:be},background:{string:be},__type__:{object:Fe,string:be}},hover:{border:{string:be},background:{string:be},__type__:{object:Fe,string:be}},__type__:{object:Fe,string:be}},opacity:{number:J,undefined:"undefined"},fixed:{x:{boolean:Ce},y:{boolean:Ce},__type__:{object:Fe,boolean:Ce}},font:{align:{string:be},color:{string:be},size:{number:J},face:{string:be},background:{string:be},strokeWidth:{number:J},strokeColor:{string:be},vadjust:{number:J},multi:{boolean:Ce,string:be},bold:{color:{string:be},size:{number:J},face:{string:be},mod:{string:be},vadjust:{number:J},__type__:{object:Fe,string:be}},boldital:{color:{string:be},size:{number:J},face:{string:be},mod:{string:be},vadjust:{number:J},__type__:{object:Fe,string:be}},ital:{color:{string:be},size:{number:J},face:{string:be},mod:{string:be},vadjust:{number:J},__type__:{object:Fe,string:be}},mono:{color:{string:be},size:{number:J},face:{string:be},mod:{string:be},vadjust:{number:J},__type__:{object:Fe,string:be}},__type__:{object:Fe,string:be}},group:{string:be,number:J,undefined:"undefined"},heightConstraint:{minimum:{number:J},valign:{string:be},__type__:{object:Fe,boolean:Ce,number:J}},hidden:{boolean:Ce},icon:{face:{string:be},code:{string:be},size:{number:J},color:{string:be},weight:{string:be,number:J},__type__:{object:Fe}},id:{string:be,number:J},image:{selected:{string:be,undefined:"undefined"},unselected:{string:be,undefined:"undefined"},__type__:{object:Fe,string:be}},imagePadding:{top:{number:J},right:{number:J},bottom:{number:J},left:{number:J},__type__:{object:Fe,number:J}},label:{string:be,undefined:"undefined"},labelHighlightBold:{boolean:Ce},level:{number:J,undefined:"undefined"},margin:{top:{number:J},right:{number:J},bottom:{number:J},left:{number:J},__type__:{object:Fe,number:J}},mass:{number:J},physics:{boolean:Ce},scaling:{min:{number:J},max:{number:J},label:{enabled:{boolean:Ce},min:{number:J},max:{number:J},maxVisible:{number:J},drawThreshold:{number:J},__type__:{object:Fe,boolean:Ce}},customScalingFunction:{function:"function"},__type__:{object:Fe}},shadow:{enabled:{boolean:Ce},color:{string:be},size:{number:J},x:{number:J},y:{number:J},__type__:{object:Fe,boolean:Ce}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:Ce,array:mh},borderRadius:{number:J},interpolation:{boolean:Ce},useImageSize:{boolean:Ce},useBorderWithImage:{boolean:Ce},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Fe}},size:{number:J},title:{string:be,dom:kne,undefined:"undefined"},value:{number:J,undefined:"undefined"},widthConstraint:{minimum:{number:J},maximum:{number:J},__type__:{object:Fe,boolean:Ce,number:J}},x:{number:J},y:{number:J},__type__:{object:Fe}},tHt={configure:{enabled:{boolean:Ce},filter:{boolean:Ce,string:be,array:mh,function:"function"},container:{dom:kne},showButton:{boolean:Ce},__type__:{object:Fe,boolean:Ce,string:be,array:mh,function:"function"}},edges:{arrows:{to:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:_6},imageHeight:{number:J},imageWidth:{number:J},src:{string:be},__type__:{object:Fe,boolean:Ce}},middle:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:_6},imageWidth:{number:J},imageHeight:{number:J},src:{string:be},__type__:{object:Fe,boolean:Ce}},from:{enabled:{boolean:Ce},scaleFactor:{number:J},type:{string:_6},imageWidth:{number:J},imageHeight:{number:J},src:{string:be},__type__:{object:Fe,boolean:Ce}},__type__:{string:["from","to","middle"],object:Fe}},endPointOffset:{from:{number:J},to:{number:J},__type__:{object:Fe,number:J}},arrowStrikethrough:{boolean:Ce},background:{enabled:{boolean:Ce},color:{string:be},size:{number:J},dashes:{boolean:Ce,array:mh},__type__:{object:Fe,boolean:Ce}},chosen:{label:{boolean:Ce,function:"function"},edge:{boolean:Ce,function:"function"},__type__:{object:Fe,boolean:Ce}},color:{color:{string:be},highlight:{string:be},hover:{string:be},inherit:{string:["from","to","both"],boolean:Ce},opacity:{number:J},__type__:{object:Fe,string:be}},dashes:{boolean:Ce,array:mh},font:{color:{string:be},size:{number:J},face:{string:be},background:{string:be},strokeWidth:{number:J},strokeColor:{string:be},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:J},multi:{boolean:Ce,string:be},bold:{color:{string:be},size:{number:J},face:{string:be},mod:{string:be},vadjust:{number:J},__type__:{object:Fe,string:be}},boldital:{color:{string:be},size:{number:J},face:{string:be},mod:{string:be},vadjust:{number:J},__type__:{object:Fe,string:be}},ital:{color:{string:be},size:{number:J},face:{string:be},mod:{string:be},vadjust:{number:J},__type__:{object:Fe,string:be}},mono:{color:{string:be},size:{number:J},face:{string:be},mod:{string:be},vadjust:{number:J},__type__:{object:Fe,string:be}},__type__:{object:Fe,string:be}},hidden:{boolean:Ce},hoverWidth:{function:"function",number:J},label:{string:be,undefined:"undefined"},labelHighlightBold:{boolean:Ce},length:{number:J,undefined:"undefined"},physics:{boolean:Ce},scaling:{min:{number:J},max:{number:J},label:{enabled:{boolean:Ce},min:{number:J},max:{number:J},maxVisible:{number:J},drawThreshold:{number:J},__type__:{object:Fe,boolean:Ce}},customScalingFunction:{function:"function"},__type__:{object:Fe}},selectionWidth:{function:"function",number:J},selfReferenceSize:{number:J},selfReference:{size:{number:J},angle:{number:J},renderBehindTheNode:{boolean:Ce},__type__:{object:Fe}},shadow:{enabled:{boolean:Ce},color:{string:be},size:{number:J},x:{number:J},y:{number:J},__type__:{object:Fe,boolean:Ce}},smooth:{enabled:{boolean:Ce},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:J},forceDirection:{string:["horizontal","vertical","none"],boolean:Ce},__type__:{object:Fe,boolean:Ce}},title:{string:be,undefined:"undefined"},width:{number:J},widthConstraint:{maximum:{number:J},__type__:{object:Fe,boolean:Ce,number:J}},value:{number:J,undefined:"undefined"},__type__:{object:Fe}},groups:{useDefaultGroups:{boolean:Ce},__any__:M6,__type__:{object:Fe}},interaction:{dragNodes:{boolean:Ce},dragView:{boolean:Ce},hideEdgesOnDrag:{boolean:Ce},hideEdgesOnZoom:{boolean:Ce},hideNodesOnDrag:{boolean:Ce},hover:{boolean:Ce},keyboard:{enabled:{boolean:Ce},speed:{x:{number:J},y:{number:J},zoom:{number:J},__type__:{object:Fe}},bindToWindow:{boolean:Ce},autoFocus:{boolean:Ce},__type__:{object:Fe,boolean:Ce}},multiselect:{boolean:Ce},navigationButtons:{boolean:Ce},selectable:{boolean:Ce},selectConnectedEdges:{boolean:Ce},hoverConnectedEdges:{boolean:Ce},tooltipDelay:{number:J},zoomView:{boolean:Ce},zoomSpeed:{number:J},__type__:{object:Fe}},layout:{randomSeed:{undefined:"undefined",number:J,string:be},improvedLayout:{boolean:Ce},clusterThreshold:{number:J},hierarchical:{enabled:{boolean:Ce},levelSeparation:{number:J},nodeSpacing:{number:J},treeSpacing:{number:J},blockShifting:{boolean:Ce},edgeMinimization:{boolean:Ce},parentCentralization:{boolean:Ce},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Fe,boolean:Ce}},__type__:{object:Fe}},manipulation:{enabled:{boolean:Ce},initiallyActive:{boolean:Ce},addNode:{boolean:Ce,function:"function"},addEdge:{boolean:Ce,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Fe,boolean:Ce,function:"function"}},deleteNode:{boolean:Ce,function:"function"},deleteEdge:{boolean:Ce,function:"function"},controlNodeStyle:M6,__type__:{object:Fe,boolean:Ce}},nodes:M6,physics:{enabled:{boolean:Ce},barnesHut:{theta:{number:J},gravitationalConstant:{number:J},centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:Fe}},forceAtlas2Based:{theta:{number:J},gravitationalConstant:{number:J},centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:Fe}},repulsion:{centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},nodeDistance:{number:J},damping:{number:J},__type__:{object:Fe}},hierarchicalRepulsion:{centralGravity:{number:J},springLength:{number:J},springConstant:{number:J},nodeDistance:{number:J},damping:{number:J},avoidOverlap:{number:J},__type__:{object:Fe}},maxVelocity:{number:J},minVelocity:{number:J},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:Ce},iterations:{number:J},updateInterval:{number:J},onlyDynamicEdges:{boolean:Ce},fit:{boolean:Ce},__type__:{object:Fe,boolean:Ce}},timestep:{number:J},adaptiveTimestep:{boolean:Ce},wind:{x:{number:J},y:{number:J},__type__:{object:Fe}},__type__:{object:Fe,boolean:Ce}},autoResize:{boolean:Ce},clickToUse:{boolean:Ce},locale:{string:be},locales:{__any__:{any:eHt},__type__:{object:Fe}},height:{string:be},width:{string:be},__type__:{object:Fe}},One={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]}}},rHt=function(r,e,n){var i;return!!(I1(r).call(r,"physics")&&I1(i=One.physics.solver).call(i,e)&&n.physics.solver!==e&&e!=="wind")},nHt=function(){function t(){$e(this,t)}return _e(t,[{key:"getDistances",value:function(e,n,i){for(var o={},a=e.edges,s=0;s2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var a=.01,s=1,l=0,c=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),u=5,g=1e9,h=0,d=0,f=0,C=0,v=0;g>a&&ls&&vl);zo.value.getGraphModules().then(l=>{KKe(l,s)})}function e(){r()}hj(()=>{r(),zo.functions.on("graphModuleUpdated",e)});const n=G(),i=Bi();function o(){const s=n.value,l=i.value=new Pe(s,{nodes:zu,edges:Eu},fx.value);Ke(fx,c=>{l.setOptions(c)},{immediate:!0}),l.on("selectNode",c=>{qKe(c.nodes[0]),O7(!0)}),l.on("deselectNode",()=>{O7(!1)}),Ke(()=>Tu.value,c=>{c&&l.moveTo({position:{x:0,y:0}})})}Ii(()=>{o()}),fn(()=>{GKe(),i.value?.destroy(),zo.functions.off("graphModuleUpdated",e)});const a=G();return(s,l)=>{const c=hYe,u=uYe,g=cYe;return M(),k("div",oHt,[D(c,{ref_key:"navbarRef",ref:a},null,512),w("div",{ref_key:"container",ref:n,class:"absolute h-full w-full"},null,512),D(u),D(g,{top:y(a)},null,8,["top"])])}}}),sHt={},lHt={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cHt(t,r){return M(),k("svg",lHt,r[0]||(r[0]=[oF('',2)]))}const xne=dI(sHt,[["render",cHt]]);function cM(){return of?"electron":ya?"chrome":RN?"iframe":"separate-window"}const uHt={key:0,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},gHt={key:1,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},hHt={"max-w-190":"","text-lg":""},dHt=ce({__name:"index",setup(t){const r=cM(),e=Ac(),n=dr;function i(){n.value.isFirstVisit=!1,e.replace("/overview")}return(o,a)=>{const s=xne;return y(r)==="chrome"?(M(),k("div",uHt,[a[1]||(a[1]=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Welcome to the new Vue Devtools v7! ",-1)),a[2]||(a[2]=w("p",{"max-w-190":"","text-lg":""},[ze(" This new version supports only Vue 3. "),w("span",{op50:""},[ze(" (Learn more at "),w("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org "),ze(") ")]),w("br"),ze(" The legacy version that supports both Vue 2 and Vue 3 has been moved to "),w("a",{href:"https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp",target:"_blank",class:"op50"},"here"),ze(". ")],-1)),D(y(ct),{type:"primary",onClick:i},{default:Y(()=>a[0]||(a[0]=[w("span",null,"Get Started",-1)])),_:1})])):(M(),k("div",gHt,[a[6]||(a[6]=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Vue DevTools! ",-1)),w("p",hHt,[D(s,{"mr-0.5":"","inline-block":"","h-8":"","translate-y--1.1":"","align-mid":""}),a[3]||(a[3]=ze(" is a set of visual tools that help you to know your Vue app better, and enhance your development experience with Vue. Enjoy!")),a[4]||(a[4]=w("br",null,null,-1))]),a[7]||(a[7]=w("p",{mb6:"",op50:""},[ze(" Learn more at "),w("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org ")],-1)),D(y(ct),{type:"primary",onClick:i},{default:Y(()=>a[5]||(a[5]=[w("span",null,"Get Started",-1)])),_:1})]))}}}),fHt="7.6.2",CHt={"h-full":"","w-full":"",flex:"","of-auto":""},vHt={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},AHt={flex:"~ col","mt-20":"","items-center":""},IHt={flex:"~","mt--10":"","items-center":"","justify-center":""},pHt={key:0,mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},mHt={op40:""},yHt={flex:"~ gap2 wrap"},bHt={p4:"","theme-card-green":"",flex:"~ col auto"},wHt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},$Ht={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},_Ht={key:0,flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},MHt=ce({__name:"overview",setup(t){const{vueVersion:r}=ji(),e=G(1),n=G(0);function i(s){let l=0;for(const c of s)l++,c.children?.length&&(l+=i(c.children));return l}function o(s){e.value=s?.routes?.length||1}function a(s){const l=Qr(s);l.inspectorId==="components"&&(n.value=i(l.rootNodes))}return xb(()=>{he.value.getRouterInfo().then(s=>{e.value=s?.routes?.length||1}),he.functions.on(Ft.ROUTER_INFO_UPDATED,o),he.value.getInspectorTree({inspectorId:"components",filter:""}).then(s=>{const l=Qr(s);n.value=i(l)})}),he.functions.on(Ft.INSPECTOR_TREE_UPDATED,a),fn(()=>{he.functions.off(Ft.INSPECTOR_TREE_UPDATED,a),he.functions.off(Ft.ROUTER_INFO_UPDATED,o)}),(s,l)=>{const c=xne,u=Ro("RouterLink");return M(),k("div",CHt,[w("div",vHt,[l[29]||(l[29]=w("div",{"flex-auto":""},null,-1)),w("div",AHt,[w("div",IHt,[D(c,{"h-18":""})]),y(ya)?ie("",!0):(M(),k("div",pHt,[l[0]||(l[0]=w("span",{op40:""}," Vue DevTools ",-1)),w("code",mHt,"v"+Se(y(fHt)),1)]))]),w("div",yHt,[w("div",bHt,[l[1]||(l[1]=w("div",{"i-logos-vue":"","text-3xl":""},null,-1)),w("code",null,"v"+Se(y(r)),1)]),D(u,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:Y(()=>[l[2]||(l[2]=w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1)),w("div",null,Se(y(e))+" pages",1)]),_:1}),y(n)?(M(),oe(u,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:Y(()=>[l[3]||(l[3]=w("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),w("div",null,Se(y(n))+" components",1)]),_:1})):ie("",!0)]),w("div",wHt,[l[5]||(l[5]=w("a",{href:"https://github.com/vuejs/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),ze(" Star on GitHub ")],-1)),l[6]||(l[6]=w("a",{href:"https://github.com/vuejs/devtools/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-data-enrichment":""}),ze(" Ideas & Suggestions ")],-1)),l[7]||(l[7]=w("a",{href:"https://github.com/vuejs/devtools/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[w("div",{"i-carbon-plan":""}),ze(" Project Roadmap ")],-1)),l[8]||(l[8]=w("a",{href:"https://github.com/vuejs/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[w("div",{"i-carbon-debug":""}),ze(" Bug Reports ")],-1)),D(u,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:Y(()=>l[4]||(l[4]=[w("div",{"i-carbon-settings":""},null,-1),ze(" Settings ")])),_:1})]),l[30]||(l[30]=w("div",{"flex-auto":""},null,-1)),w("div",$Ht,[l[15]||(l[15]=ze(" Press ")),y(fM)()?(M(),k(Te,{key:0},[D(y(ct),null,{default:Y(()=>l[9]||(l[9]=[ze(" ⌘ Command ")])),_:1}),l[11]||(l[11]=w("span",null,"+",-1)),D(y(ct),null,{default:Y(()=>l[10]||(l[10]=[ze(" K ")])),_:1})],64)):(M(),k(Te,{key:1},[D(y(ct),null,{default:Y(()=>l[12]||(l[12]=[ze(" Alt ")])),_:1}),l[14]||(l[14]=w("span",null,"+",-1)),D(y(ct),null,{default:Y(()=>l[13]||(l[13]=[ze(" K ")])),_:1})],64)),l[16]||(l[16]=ze(" to toggle Command Palette "))]),!y(of)&&!y(ya)?(M(),k("div",_Ht,[l[27]||(l[27]=ze(" Press ")),y(fM)()?(M(),k(Te,{key:0},[D(y(ct),null,{default:Y(()=>l[17]||(l[17]=[ze(" ⇧ Shift ")])),_:1}),l[20]||(l[20]=w("span",null,"+",-1)),D(y(ct),null,{default:Y(()=>l[18]||(l[18]=[ze(" ⌥ Option ")])),_:1}),l[21]||(l[21]=w("span",null,"+",-1)),D(y(ct),null,{default:Y(()=>l[19]||(l[19]=[ze(" D ")])),_:1})],64)):(M(),k(Te,{key:1},[D(y(ct),null,{default:Y(()=>l[22]||(l[22]=[ze(" Shift ")])),_:1}),l[25]||(l[25]=w("span",null,"+",-1)),D(y(ct),null,{default:Y(()=>l[23]||(l[23]=[ze(" Alt ")])),_:1}),l[26]||(l[26]=w("span",null,"+",-1)),D(y(ct),null,{default:Y(()=>l[24]||(l[24]=[ze(" D ")])),_:1})],64)),l[28]||(l[28]=ze(" to toggle DevTools "))])):ie("",!0)])])}}}),zHt={"p-2":""},EHt={class:"flex items-center justify-between"},SHt=ce({__name:"RouteMetaDetail",props:{meta:{}},emits:["close"],setup(t){return(r,e)=>(M(),k("div",zHt,[w("div",EHt,[e[1]||(e[1]=w("span",{class:"font-500"},"Route meta detail",-1)),w("div",{class:"i-carbon-close cursor-pointer p1 $ui-text",onClick:e[0]||(e[0]=n=>r.$emit("close"))})]),D(y(sw),{code:JSON.stringify(r.meta,null,2),lang:"json",lines:""},null,8,["code"])]))}}),THt={block:"","cursor-pointer":""},LHt={p2:""},kHt=["onSubmit"],OHt={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},xHt={key:1},HHt=ce({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(t,{emit:r}){const e=t,n=r;function i(u){return u.split(/(:\w+[?*+]?(?:\([^)]*\))?[?*+]?)/).filter(Boolean)}const o=G([]),a=j(()=>i(e.route.path));gn(()=>{o.value=Array.from({length:a.value.length},()=>"")});const s=j(()=>a.value.map((u,g)=>u[0]===":"?o.value[g]:u).join("").replace(/\/+/g,"/")),l=j(()=>e.route.path.includes(":"));function c(){n("navigate",s.value)}return(u,g)=>y(l)?(M(),oe(y(Au),{key:1},{popper:Y(({hide:h})=>[w("div",LHt,[w("form",{flex:"~ col",onSubmit:Wn(()=>{c(),h()},["prevent"])},[y(l)?(M(),k(Te,{key:0},[g[0]||(g[0]=w("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),w("div",OHt,[(M(!0),k(Te,null,It(y(a),(d,f)=>(M(),k(Te,{key:f},[d[0]===":"?(M(),oe(y(Fi),{key:0,modelValue:y(o)[f],"onUpdate:modelValue":C=>y(o)[f]=C,"n-sm":"","w-20":"",placeholder:d.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(M(),k("span",xHt,Se(d),1))],64))),128))])],64)):ie("",!0),D(y(ct),{block:"",type:"primary"},{default:Y(()=>g[1]||(g[1]=[ze(" Navigate ")])),_:1})],40,kHt)])]),default:Y(()=>[w("code",THt,[(M(!0),k(Te,null,It(y(a),(h,d)=>(M(),k("span",{key:d,class:Le(h[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},Se(h[0]===":"?h.slice(1):h),3))),128))])]),_:1})):(M(),k("button",{key:0,onClick:c},[w("code",null,Se(u.route.path),1)]))}}),VHt={"w-full":""},PHt={border:"b base","px-3":""},RHt={key:0,"text-left":""},DHt={"w-20":"","pr-1":""},NHt={flex:"","items-center":"","justify-end":""},BHt={"text-sm":""},FHt={flex:"inline gap3","items-center":""},jHt={op0:"","group-hover:op100":"",flex:"~ gap1"},UHt=["onClick"],GHt={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},WHt={key:0,"w-50":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:"",hover:"text-primary op100"},ZHt=["title","onClick"],KHt=ce({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate","selectMeta"],setup(t){const r=t,e=j(()=>[...r.pages].sort((s,l)=>s.path.localeCompare(l.path))),n=j(()=>nI.value),i=ji();function o(s,l=0){const c=JSON.stringify(s,null,l);return c==="{}"?"-":c}const a=j(()=>e.value.some(s=>Object.keys(s.meta)?.length));return(s,l)=>{const c=HHt;return M(),k("div",null,[w("table",VHt,[w("thead",PHt,[w("tr",null,[l[1]||(l[1]=w("th",{"text-left":""},null,-1)),l[2]||(l[2]=w("th",{"text-left":""}," Route Path ",-1)),l[3]||(l[3]=w("th",{"text-left":""}," Name ",-1)),y(a)?(M(),k("th",RHt," Route Meta ")):ie("",!0)])]),w("tbody",null,[(M(!0),k(Te,null,It(y(e),u=>(M(),k("tr",{key:u.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[w("td",DHt,[w("div",NHt,[s.matched.find(g=>g.name===u.name)?(M(),oe(y(xS),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):s.matchedPending.find(g=>g.name===u.name)?(M(),oe(y(xS),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):ie("",!0)])]),w("td",BHt,[w("div",FHt,[D(c,{route:u,class:Le(s.matched.find(g=>g.name===u.name)?"text-primary-400":s.matchedPending.find(g=>g.name===u.name)?"text-teal":""),onNavigate:l[0]||(l[0]=g=>s.$emit("navigate",g))},null,8,["route","class"]),w("div",jHt,[u.meta?.file&&y(i).vitePluginDetected.value&&y(n)?(M(),k("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>y(vd)(u.meta?.file)},l[4]||(l[4]=[w("div",{"i-carbon-script-reference":""},null,-1)]),8,UHt)):ie("",!0)])])]),w("td",GHt,Se(u.name),1),y(a)?(M(),k("td",WHt,[w("span",{"inline-block":"","w-50":"","cursor-pointer":"","overflow-hidden":"","text-ellipsis":"",title:o(u.meta,2),onClick:()=>s.$emit("selectMeta",u.meta)},Se(o(u.meta)),9,ZHt)])):ie("",!0)]))),128))])])])}}}),YHt={block:"","h-screen":"","of-auto":""},XHt={"h-full":"",class:"grid grid-rows-[auto_1fr]"},qHt={border:"b base",flex:"~ col gap1",px4:"",py3:""},QHt={key:1,op50:""},JHt={key:0,"text-orange":"",op75:""},eVt={key:1,op50:""},tVt=ce({__name:"pages",setup(t){const r=G(""),e=G(null),n=G([]),i=j(()=>r.value===e.value?.path?[]:n.value),o=G([]),a=G();function s(u){o.value=u.routes,e.value=u.currentRoute,r.value=e.value?.path??"/"}function l(){i.value.length&&c(r.value)}function c(u){he.value.navigate(u)}return xb(()=>{he.value.getRouterInfo().then(u=>{s(u)}),he.functions.on(Ft.ROUTER_INFO_UPDATED,s)}),nU(r,()=>{r.value!==e.value?.path&&he.value.getMatchedRoutes(r.value).then(u=>{n.value=u})}),fn(()=>{he.functions.off(Ft.ROUTER_INFO_UPDATED,s)}),(u,g)=>{const h=KHt,d=aG,f=SHt;return M(),k("div",YHt,[w("div",XHt,[w("div",qHt,[w("div",null,[(M(),k("span",QHt,"Current route"))]),D(y(Fi),{modelValue:y(r),"onUpdate:modelValue":g[0]||(g[0]=C=>Je(r)?r.value=C:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Le(y(e)?.path===y(r)?"":y(i).length?"text-green!":"text-orange!"),onKeydown:dF(l,["enter"])},null,8,["modelValue","class"]),w("div",null,[y(e)?.path!==y(r)?(M(),k(Te,{key:0},[g[6]||(g[6]=w("span",null,[ze("Press "),w("b",{"font-bold":""},"Enter"),ze(" to navigate")],-1)),y(i).length?ie("",!0):(M(),k("span",JHt," (no match)"))],64)):(M(),k("span",eVt,"Edit path above to navigate"))])]),D(y(D1),{class:"of-hidden"},{default:Y(()=>[D(y(hn),{size:"70",class:"of-auto!"},{default:Y(()=>[D(d,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${y(o).length} routes registered in your application`,padding:!1},{default:Y(()=>[y(o).length?(M(),oe(h,{key:0,pages:y(o),matched:y(e)?.matched??[],"matched-pending":y(i),onNavigate:c,onSelectMeta:g[1]||(g[1]=C=>a.value=C)},null,8,["pages","matched","matched-pending"])):ie("",!0)]),_:1},8,["description"])]),_:1}),y(a)?(M(),oe(y(hn),{key:0,size:"30",class:"of-auto!"},{default:Y(()=>[D(f,{meta:y(a),onClose:g[2]||(g[2]=C=>a.value=void 0)},null,8,["meta"])]),_:1})):ie("",!0)]),_:1})])])}}}),rVt=ce({__name:"pinia",setup(t){return(r,e)=>(M(),oe(y(x9e)))}}),nVt=ce({__name:"router",setup(t){const{registeredInspector:r}=KG(),e=j(()=>r.value?.find(i=>i.packageName==="vue-router")),n=j(()=>e.value?.id);return(i,o)=>(M(),oe(y(Q9e),{id:y(n)},null,8,["id"]))}}),iVt=["src","alt"],oVt=["title"],ON="custom-ic-",F0=ce({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0},fallback:{}},setup(t){const r=t,e=G(r.icon);Ke(()=>r.icon,i=>{e.value=i});function n(){e.value=r.fallback}return(i,o)=>y(e)&&y(nie)(y(e))?(M(),k("img",Xr({key:0,style:{width:"1em",height:"1em"}},i.$attrs,{src:y(e),alt:i.title,onError:n}),null,16,iVt)):y(e)?.startsWith(ON)?(M(),oe(y(ec),Xr({key:1,name:y(e).slice(ON.length)},i.$attrs,{title:i.showTitle?i.title:void 0}),null,16,["name","title"])):(M(),k("div",Xr({key:2,style:{width:"1em",height:"1em"}},i.$attrs,{class:y(e)||"i-carbon-bring-forward",title:i.showTitle?i.title:void 0}),null,16,oVt))}}),aVt={"h-full":"","w-full":"","of-auto":"",px8:"",py6:""},sVt={grid:"~ md:cols-[repeat(auto-fit,minmax(16rem,1fr))] gap-x-10 gap-y-3","max-w-300":""},lVt={flex:"~ col gap-2"},cVt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},uVt={capitalize:"",op75:""},gVt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"","text-sm":""},hVt=["onClick"],dVt=["onClick"],fVt=["onClick"],CVt={flex:"~ col gap-2"},vVt={flex:"~ gap2"},AVt={class:"flex items-center gap2 text-sm"},IVt={class:"flex items-center gap2 text-sm"},pVt={class:"flex items-center gap2 text-sm"},mVt={class:"flex items-center gap2 text-sm"},yVt={flex:"~ gap-2"},bVt=ce({__name:"settings",setup(t){const{categorizedTabs:r}=wf(),e=cM(),n=e==="iframe"||e==="separate-window",{scale:i,interactionCloseOnOutsideClick:o,showPanel:a,minimizePanelInteractive:s,expandSidebar:l,scrollableSidebar:c}=O6(Nue(dr)),u=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],g=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],{hiddenTabCategories:h,hiddenTabs:d,pinnedTabs:f}=O6(dr.value.tabSettings);function C(S,E){E?d.value=d.value.filter(T=>T!==S):d.value.push(S)}function v(S,E){E?h.value=h.value.filter(T=>T!==S):h.value.push(S)}function A(S){f.value.includes(S)?f.value=f.value.filter(E=>E!==S):f.value.push(S)}function I(S,E){const T=f.value.indexOf(S);if(T===-1)return;const L=T+E;if(L<0||L>=f.value.length)return;const H=[...f.value];H.splice(T,1),H.splice(L,0,S),f.value=H}const p=G(!1);async function m(){v6e(),window.location.reload()}const b=g.map(([S,E])=>({label:S,value:E})),_=j(()=>`${b.find(E=>E.value===s.value)?.label??"Select..."}`);return(S,E)=>{const T=cw,L=F0;return M(),k("div",aVt,[D(T,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),w("div",sVt,[w("div",lVt,[E[12]||(E[12]=w("h3",{"text-lg":""}," Tabs ",-1)),(M(!0),k(Te,null,It(y(r),([{name:H,hidden:P},R])=>(M(),k(Te,{key:H},[R.length?(M(),oe(y(H5),{key:0,p3:"",flex:"~ col gap-1",class:Le(P?"op50 grayscale":"")},{default:Y(()=>[D(y(w8),{"model-value":!y(h).includes(H),class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":N=>v(H,N)},{default:Y(()=>[w("div",cVt,[w("span",uVt,Se(H),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),E[11]||(E[11]=w("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),(M(!0),k(Te,null,It(R,N=>(M(),oe(y(w8),{key:N.name,class:Le(["row-reverse n-primary flex hover:bg-active py1 pl2 pr1",N.hidden?"op35":""]),"model-value":!y(d).includes(N.name),"onUpdate:modelValue":U=>C(N.name,U)},{default:Y(()=>[w("div",gVt,[D(L,{"text-xl":"",icon:N.icon,fallback:N.fallbackIcon,title:N.title},null,8,["icon","fallback","title"]),w("span",null,Se(N.title),1),E[10]||(E[10]=w("div",{"flex-auto":""},null,-1)),y(f).includes(N.name)?(M(),k(Te,{key:0},[w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(()=>{y(f).indexOf(N.name)!==0&&I(N.name,-1)},["stop"])},E[8]||(E[8]=[w("div",{class:"i-carbon-caret-up"},null,-1)]),8,hVt),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(()=>{y(f).indexOf(N.name)!==y(f).length-1&&I(N.name,1)},["stop"])},E[9]||(E[9]=[w("div",{class:"i-carbon-caret-down"},null,-1)]),8,dVt)],64)):ie("",!0),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(U=>A(N.name),["stop"])},[w("div",{class:Le(y(f).includes(N.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op45")},null,2)],8,fVt)])]),_:2},1032,["model-value","class","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):ie("",!0)],64))),128))]),w("div",CVt,[E[25]||(E[25]=w("h3",{"text-lg":""}," Appearance ",-1)),D(y(H5),{p4:"",flex:"~ col gap-2"},{default:Y(()=>[w("div",vVt,[D(y(tG),null,{default:Y(({isDark:H,toggle:P})=>[D(y(ct),{outlined:"",type:"primary",onClick:P},{default:Y(()=>[E[13]||(E[13]=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),ze(" "+Se(H?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),E[16]||(E[16]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),E[17]||(E[17]=w("p",null,"UI Scale",-1)),w("div",null,[D(y(Ed),{modelValue:y(i),"onUpdate:modelValue":E[0]||(E[0]=H=>Je(i)?i.value=H:null),options:u.map(([H,P])=>({label:H,value:P})),"button-props":{outlined:!0}},null,8,["modelValue","options"])]),E[18]||(E[18]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),w("div",AVt,[D(y(p2),{modelValue:y(l),"onUpdate:modelValue":E[1]||(E[1]=H=>Je(l)?l.value=H:null)},null,8,["modelValue"]),E[14]||(E[14]=w("span",{op75:""},"Expand Sidebar",-1))]),w("div",IVt,[D(y(p2),{modelValue:y(c),"onUpdate:modelValue":E[2]||(E[2]=H=>Je(c)?c.value=H:null)},null,8,["modelValue"]),E[15]||(E[15]=w("span",{op75:""},"Scrollable Sidebar",-1))])]),_:1}),y(n)?(M(),k(Te,{key:0},[E[23]||(E[23]=w("h3",{mt2:"","text-lg":""}," Features ",-1)),D(y(H5),{p4:"",flex:"~ col gap-2"},{default:Y(()=>[w("div",pVt,[D(y(p2),{modelValue:y(o),"onUpdate:modelValue":E[3]||(E[3]=H=>Je(o)?o.value=H:null)},null,8,["modelValue"]),E[19]||(E[19]=w("span",{op75:""},"Close DevTools when clicking outside",-1))]),w("div",mVt,[D(y(p2),{modelValue:y(a),"onUpdate:modelValue":E[4]||(E[4]=H=>Je(a)?a.value=H:null)},null,8,["modelValue"]),E[20]||(E[20]=w("span",{op75:""},"Always show the floating panel",-1))]),E[21]||(E[21]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),E[22]||(E[22]=w("p",null,"Minimize floating panel on inactive",-1)),w("div",null,[D(y(Ed),{modelValue:y(s),"onUpdate:modelValue":E[5]||(E[5]=H=>Je(s)?s.value=H:null),"button-props":{outlined:!0},options:y(b),placeholder:y(_)},null,8,["modelValue","options","placeholder"])])]),_:1})],64)):ie("",!0),E[26]||(E[26]=w("h3",{mt2:"","text-lg":""}," Debug ",-1)),w("div",yVt,[D(y(ct),{outlined:"",type:"warning",onClick:E[6]||(E[6]=H=>p.value=!0)},{default:Y(()=>E[24]||(E[24]=[w("div",{"i-carbon-breaking-change":""},null,-1),ze(" Reset Local Settings & State ")])),_:1}),D(y(X0e),{modelValue:y(p),"onUpdate:modelValue":E[7]||(E[7]=H=>Je(p)?p.value=H:null),title:"Clear Local Settings & State",width:"40%",height:"200px",content:"Are you sure you to reset all local settings & state? Devtools will reload.",onConfirm:m},null,8,["modelValue"])])])])])}}}),wVt={"h-full":"",flex:"","flex-col":"",p2:""},$Vt={class:"relative mb-1 w-full flex items-center justify-end pb-1",border:"b dashed base"},_Vt={key:0,class:"absolute left-0 text-xs text-gray-300 dark:text-gray-500"},MVt={class:"flex items-center gap-2 px-1"},zVt={key:0,class:"recording recording-btn bg-[#ef4444]"},EVt={key:1,class:"recording-btn bg-black op70 dark:bg-white hover:op100"},SVt={class:"flex items-center gap1"},TVt={class:"p2"},LVt=["onClick"],kVt=["onClick"],OVt=ce({__name:"TimelineLayers",props:au({data:{}},{modelValue:{},modelModifiers:{}}),emits:au(["select","clear"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=ji(),i=j(()=>n.timelineLayersState.value.recordingState),o=j(()=>n.timelineLayersState.value),a=j(()=>i.value?"Stop recording":"Start recording"),{colorMode:s}=pf();j(()=>s.value==="dark");const l=YA(t,"modelValue");function c(d){l.value=d,e("select",d),he.value.updateTimelineLayersState({selected:d})}Ke(()=>o.value.selected,d=>{l.value=d},{immediate:!0});function u(d){return{mouse:o.value.mouseEventEnabled,keyboard:o.value.keyboardEventEnabled,"component-event":o.value.componentEventEnabled,performance:o.value.performanceEventEnabled}[d]}function g(){he.value.updateTimelineLayersState({recordingState:!i.value})}function h(d){const f={mouse:"mouseEventEnabled",keyboard:"keyboardEventEnabled","component-event":"componentEventEnabled",performance:"performanceEventEnabled"}[d];he.value.updateTimelineLayersState({[f]:!u(d)})}return(d,f)=>(M(),k("div",wVt,[w("div",$Vt,[y(i)?ie("",!0):(M(),k("span",_Vt,"Not recording")),w("div",MVt,[At((M(),k("div",{class:"flex items-center gap1",onClick:g},[y(i)?(M(),k("span",zVt)):(M(),k("span",EVt))])),[[y(Rt),{content:y(a)},void 0,{"bottom-end":!0}]]),At((M(),k("div",{class:"flex items-center gap1",onClick:f[0]||(f[0]=C=>e("clear"))},[D(y(ec),{name:"baseline-delete","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(Rt),{content:"Clear all timelines"},void 0,{"bottom-end":!0}]]),At((M(),k("div",SVt,[D(y(ec),{name:"baseline-tips-and-updates","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(Rt),{content:"

Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand.

",html:!0},void 0,{"bottom-end":!0}]])])]),w("ul",TVt,[(M(!0),k(Te,null,It(d.data,C=>(M(),k("li",{key:C.id,class:Le(["group relative selectable-item",{active:C.id===l.value,op60:!u(C.id)}]),onClick:v=>c(C.id)},[ze(Se(C.label)+" ",1),w("span",{class:"absolute right-2 rounded-1 bg-primary-500 px1 text-3 text-white op0 [.active_&]:bg-primary-400 [.active_&]:dark:bg-gray-600 group-hover:op80 hover:op100!",onClick:Wn(v=>h(C.id),["stop"])},Se(u(C.id)?"Disable":"Enable"),9,kVt)],10,LVt))),128))])]))}}),xVt=dI(OVt,[["__scopeId","data-v-ba7472d9"]]),HVt={class:"h-full w-full"},VVt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},PVt={class:"h-full flex flex-col"},RVt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},DVt={class:"h-full flex flex-col p2"},NVt=ce({__name:"timeline",setup(t){const r=G(),e=G(),n=G(!1),{width:i}=uU(e),o=j(()=>n.value?i.value<700:!1),a=ji(),s=j(()=>a.appRecords.value.map(C=>({label:C.name+(C.version?` (${C.version})`:""),value:C.id}))),l=j(()=>s.value.map(C=>({label:C.label,id:C.value}))),c=G(a.activeAppRecordId.value);gn(()=>{c.value=a.activeAppRecordId.value});function u(C){he.value.toggleApp(C).then(()=>{d()})}const g=G(""),h=[{label:"Mouse",id:"mouse"},{label:"Keyboard",id:"keyboard"},{label:"Component events",id:"component-event"},{label:"Performance",id:"performance"}];function d(){r.value?.clear()}function f(){d()}return(C,v)=>{const A=xVt;return M(),k("div",HVt,[D(y(D1),{ref_key:"splitpanesRef",ref:e,class:"flex-1 overflow-auto",horizontal:y(o),onReady:v[2]||(v[2]=I=>n.value=!0)},{default:Y(()=>[y(s).length>1?(M(),oe(y(hn),{key:0,border:"base h-full",size:"20"},{default:Y(()=>[w("div",VVt,[D(y(BG),{modelValue:y(c),"onUpdate:modelValue":v[0]||(v[0]=I=>Je(c)?c.value=I:null),data:y(l),class:"w-full",onSelect:u},null,8,["modelValue","data"])])]),_:1})):ie("",!0),D(y(hn),{border:"base","h-full":""},{default:Y(()=>[w("div",PVt,[w("div",RVt,[D(A,{modelValue:y(g),"onUpdate:modelValue":v[1]||(v[1]=I=>Je(g)?g.value=I:null),data:h,class:"w-full",onSelect:f,onClear:d},null,8,["modelValue"])])])]),_:1}),D(y(hn),{relative:"","h-full":"",size:"65"},{default:Y(()=>[w("div",DVt,[D(y(mI),{ref_key:"timelineRef",ref:r,"layer-ids":[y(g)],"header-visible":!1,"doc-link":"","plugin-id":"","switcher-visible":!1},null,8,["layer-ids"])])]),_:1})]),_:1},8,["horizontal"])])}}});function BVt(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const Ky=ba(new Map);function FVt(){const{enabledFlattenTabs:t}=wf(),r=Ac(),e=ji();let n=[];const i=j(()=>nW(e.commands.value,n)?n:(n=e.commands.value,e.commands.value)),o=[{id:"fixed:settings",title:"Settings",icon:"i-carbon-settings-adjust",action:()=>{r.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>UVt()}],a=j(()=>t.value.map(s=>({id:`tab:${s.name}`,title:s.title||s.name,icon:s.icon,action:()=>{"onClick"in s&&s.onClick?s.onClick():r.push("path"in s&&s.path?s.path:`/custom-tab-view/${s.name}`)}})));return j(()=>BVt([...o,...a.value,...jVt(i.value),...Array.from(Ky.values()).flatMap(s=>id(s))]))}function xN(t){t?.type==="url"&&window.open(t.src,"_blank")}function jVt(t){return t.map(r=>({id:`${r.id}`,title:r.title,icon:r.icon,description:r.description,order:r.order,action:()=>{if(r.children)return r.children.map(e=>({id:e.id,title:e.title,icon:e.icon,description:e.description,order:e.order,action:()=>{xN(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));xN(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function HN(t){const r=iie();Ky.set(r,t),fn(()=>{Ky.delete(r)})}let z6;const VN={"utility-types":"i-mdi-language-typescript",ssr:"i-codicon-server-process","custom-renderer":"i-codicon-server-process","sfc-script-setup":"i-material-symbols:magic-button","sfc-css-features":"i-material-symbols-css","built-in-directives":"i-material-symbols-code","built-in-special-attributes":"i-material-symbols-code","component-instance":"i-material-symbols-code","composition-api-dependency-injection":"i-material-symbols-code","composition-api-lifecycle":"i-material-symbols-code",general:"i-material-symbols-code","compile-time-flags":"i-material-symbols-toggle-on","reactivity-utilities":"i-mdi-api","reactivity-advanced":"i-mdi-api","render-function":"i-mdi-api","...others":"i-uim-vuejs"};async function UVt(){return z6||(z6=(await Si(()=>import("./vue-apis-DWRQGgDp.js"),[],import.meta.url).then(r=>r.default)).map(r=>({...r,icon:VN[r.description]??VN["...others"],action:()=>{window.open(r.url,"_blank")}}))),z6}const GVt={flex:"~ col",h:"60%",border:"1 base","m-x-4":"","max-h-120":"","min-h-60":"","w-xl":"","of-hidden":"","rounded-md":"","text-3.75":""},WVt={border:"b base","flex-none":""},ZVt={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},KVt=["id","onClick","onMouseover"],YVt={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},XVt={"ws-nowrap":""},qVt={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},QVt={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},JVt={"text-primary":""},ePt={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},tPt={"text-xs":"",flex:"~ items-center gap2"},rPt={px1:""},nPt={px1:""},iPt={"text-xs":"",flex:"~ items-center gap2"},oPt={op75:""},aPt={"text-xs":"",flex:"~ items-center gap2"},sPt={px1:""},lPt=ce({__name:"CommandPalette",setup(t){const r=G(!1),e=G(""),n=FVt(),i=G(),o=j(()=>i.value||n.value),a=j(()=>new yc(o.value,{keys:["id","title"],distance:50})),s=j(()=>e.value?a.value.search(e.value).map(h=>h.item):o.value||[]),l=G(0);Ke(e,()=>{l.value=0,u()});function c(h){l.value=(l.value+h+s.value.length)%s.value.length,u()}function u(){document.getElementById(s.value[l.value]?.id)?.scrollIntoView({block:"center"})}async function g(h){const d=await h.action();d?(i.value=d,e.value=""):(i.value=void 0,e.value="",r.value=!1)}return hi("keydown",h=>{if((h.altKey||h.metaKey)&&h.key==="k"){h.preventDefault(),i.value=void 0,e.value="",r.value=!r.value;return}if(r.value)switch(h.key){case"ArrowDown":case"ArrowUp":h.preventDefault(),c(h.key==="ArrowDown"?1:-1);break;case"Enter":{const d=s.value[l.value];d&&(h.preventDefault(),g(d));break}case"Escape":{h.preventDefault(),i.value?(i.value=void 0,e.value=""):r.value=!1;break}}}),(h,d)=>{const f=F0;return y(r)?(M(),oe(y(lw),{key:0,dim:"",class:"$ui-z-max-override backdrop-blur-2xl!"},{default:Y(()=>[w("div",GVt,[w("header",WVt,[D(y(Fi),{modelValue:y(e),"onUpdate:modelValue":d[0]||(d[0]=C=>Je(e)?e.value=C:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),w("div",ZVt,[(M(!0),k(Te,null,It(y(s),(C,v)=>(M(),k("button",{id:C.id,key:C.id,onClick:A=>g(C),onMouseover:A=>l.value=v},[w("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Le(y(l)===v?"op100 saturate-100 bg-active":"op80")},[D(f,{icon:C.icon,title:C.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),w("span",YVt,[w("span",XVt,Se(C.title),1),w("span",qVt,Se(C.description),1)]),y(l)===v?(M(),oe(y(Gt),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):ie("",!0)],2)],40,KVt))),128)),y(s).length?ie("",!0):(M(),k("div",QVt,[D(y(Gt),{icon:"carbon-search",op50:""}),w("div",null,[d[1]||(d[1]=w("span",{op50:""},"No results for",-1)),w("strong",JVt,' "'+Se(y(e))+'" ',1)])]))]),w("footer",ePt,[w("div",tPt,[w("button",rPt,[D(y(Gt),{icon:"i-carbon-arrow-down"})]),w("button",nPt,[D(y(Gt),{icon:"i-carbon-arrow-up"})]),d[2]||(d[2]=w("span",{op75:""},"to navigate",-1))]),w("div",iPt,[d[3]||(d[3]=w("button",{px1:""}," Esc ",-1)),w("span",oPt,"to "+Se(y(i)?"go back":"close"),1)]),w("div",aPt,[w("button",sPt,[D(y(Gt),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),d[4]||(d[4]=w("span",{op75:""},"to select",-1))])])])]),_:1})):ie("",!0)}}}),cPt={flex:"~ items-center gap-3"},uPt={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},gPt={"translate-y-0.5px":""},hPt={key:0,hidden:"","lg:block":""},Hne=ce({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,e=Cf(),n=j(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=j(()=>"badge"in r.tab&&r.tab.badge?.()),o=j(()=>e.path.startsWith(n.value));function a(){r.disabled||("onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(dr.value.splitScreen.view=r.tab.name))}return(s,l)=>{const c=F0;return M(),oe(y(aCe),{disabled:!s.minimized,placement:"right",class:Le({"w-full":!s.minimized})},{popper:Y(()=>[w("div",null,Se(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?(M(),k("div",hPt,[(M(),oe(y1(s.tab.extraTabVNode)))])):ie("",!0)]),default:Y(()=>[(M(),oe(y1(s.target==="main"?y(Mj):"button"),{to:y(n),flex:`~ items-center ${s.minimized?"justify-center":"justify-between"}`,"text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"",disabled:s.disabled,class:Le([s.disabled?"cursor-not-allowed op40!":"hover:bg-active hover:op-100"]),w:s.minimized?"10":"full",rounded:s.minimized?"xl":"",p:s.minimized?"1":"x3","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:a},{default:Y(()=>[w("div",cPt,[D(c,{"text-xl":"",icon:s.tab.icon,fallback:s.tab.fallbackIcon,title:s.tab.name,"show-title":!1},null,8,["icon","fallback","title"]),s.minimized?ie("",!0):(M(),k("span",uPt,Se(s.tab.title),1))]),y(i)?(M(),k("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Le([y(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[w("span",gPt,Se(y(wr)(y(i))),1)],2)):ie("",!0)]),_:1},8,["to","flex","disabled","class","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),dPt={flex:"~ col gap-1","max-w-80":"",py1:""},fPt={key:0,"h-1px":"",border:"b base"},CPt={flex:"~ wrap",px1:""},Vne=ce({__name:"TabsGrid",props:{categories:{},target:{},disabledItems:{}},setup(t){return(r,e)=>{const n=Hne;return M(),k("div",dPt,[(M(!0),k(Te,null,It(r.categories,([i,o],a)=>(M(),k(Te,{key:i},[o.length?(M(),k(Te,{key:0},[a?(M(),k("div",fPt)):ie("",!0),w("div",CPt,[(M(!0),k(Te,null,It(o,s=>(M(),oe(n,{key:s.name,disabled:r.disabledItems?.includes(s.name),target:r.target,tab:s},null,8,["disabled","target","tab"]))),128))])],64)):ie("",!0)],64))),128))])}}}),vPt={"h-full":"","h-screen":"","of-hidden":""},APt={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},IPt={flex:"","cursor-pointer":"","items-center":"",gap2:""},pPt={capitalize:""},mPt={key:2,"of-auto":"",class:"h-[calc(100%-50px)]"},yPt={key:3,class:"h-full w-full $ui-fcc"},bPt=ce({__name:"SplitScreen",setup(t){function r(){dr.value.splitScreen.enabled=!1}const e=j(()=>dr.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=wf(),o=Ac(),a=Cf(),s=Bi(),l=G(null),c=G(null),u=G(null);function g(v){const A=f();return v?v.name===A:!1}const h=j(()=>{const v=i.value.find(A=>A.name===e.value.view);return g(v)?void 0:v}),d=j(()=>f());function f(){return a.path.startsWith(`/${N8}/`)?a.path.slice(N8.length+2):a.path.startsWith(`/${Vh}/`)?a.path.slice(Vh.length+2):a.path.startsWith("/")?a.path.slice(1):a.path}Ke(()=>h.value,v=>{if(!v)return;if(v.view){l.value=v.name,u.value="custom-tab";return}if(v.path.startsWith(Vh)){l.value=v.name,c.value=v.pluginId,u.value="custom-inspector";return}l.value=null;const p=o.getRoutes().find(m=>m.path===`/${v.path}`)?.components?.default;typeof p=="function"?s.value=poe(p):s.value=p},{immediate:!0});const C=G(!1);return(v,A)=>{const I=F0,p=Vne,m=rW;return M(),k("div",vPt,[(y(s)||y(l))&&y(h)?(M(),k("div",APt,[D(y(Au),{placement:"bottom-start",distance:12,skidding:5,shown:y(C),trigger:"click"},{popper:Y(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),default:Y(()=>[w("div",IPt,[A[0]||(A[0]=w("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1)),D(I,{"text-xl":"",icon:y(h)?.icon,title:y(h).name,fallback:y(h).fallbackIcon,"show-title":!1},null,8,["icon","title","fallback"]),w("span",pPt,Se(y(h)?.name),1)])]),_:1},8,["shown"]),A[2]||(A[2]=w("div",{"flex-auto":""},null,-1)),At((M(),k("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},A[1]||(A[1]=[w("div",{"i-carbon:side-panel-open":""},null,-1)]))),[[y(Rt),"Close split screen"]])])):ie("",!0),y(l)&&y(h)?(M(),k(Te,{key:1},[y(u)==="custom-tab"?(M(),oe(m,{key:0,tab:y(h),class:"h-[calc(100%-50px)]","iframe-inline":"","of-auto":""},null,8,["tab"])):y(c)?(M(),oe(y(QG),{key:1,id:y(l),"plugin-id":y(c)},null,8,["id","plugin-id"])):ie("",!0)],64)):y(s)&&y(h)?(M(),k("div",mPt,[(M(),oe(y1(y(s)),{key:`tab-${y(h).name}`}))])):(M(),k("div",yPt,[w("div",null,[A[4]||(A[4]=w("span",{"text-lg":"",op50:""}," Select a tab to start ",-1)),D(y(H5),{px4:"",py2:"","bg-base":""},{default:Y(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),_:1}),D(y(ct),{type:"warning",outlined:"",mt2:"",onClick:r},{default:Y(()=>A[3]||(A[3]=[ze(" Close Split Screen ")])),_:1})])]))])}}}),wPt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},$Pt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},_Pt={px3:"",py2:"",flex:"~ gap2"},MPt=ce({__name:"DockingPanel",setup(t){const r=Ac(),e=j({get:()=>dr.value.expandSidebar,set:u=>dr.value.expandSidebar=u}),n=j({get:()=>dr.value.splitScreen.enabled,set:u=>dr.value.splitScreen.enabled=u});function i(){location.reload()}const o=ji(),a=j(()=>o.appRecords.value.map(u=>({label:u.name+(u.version?` (${u.version})`:""),value:u.id}))),s=G(o.activeAppRecordId.value);gn(()=>{s.value=o.activeAppRecordId.value});const l=j(()=>a.value.find(u=>u.value===s.value)?.label??"");function c(u){he.value.toggleApp(u).then(()=>{r.push("/overview").then(()=>{fj()})})}return(u,g)=>(M(),k("div",null,[w("div",wPt,[D(y(tG),null,{default:Y(({isDark:h,toggle:d})=>[D(y(ct),{outlined:"",type:"primary",onClick:d},{default:Y(()=>[g[3]||(g[3]=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),ze(" "+Se(h?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),D(y(ct),{outlined:"",type:"primary",onClick:g[0]||(g[0]=h=>e.value=!y(e))},{default:Y(()=>[D(y(Gt),{icon:y(e)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),ze(" "+Se(y(e)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),D(y(ct),{to:"/settings",outlined:"",type:"primary"},{default:Y(()=>g[4]||(g[4]=[w("div",{"i-carbon-settings-adjust":""},null,-1),ze(" Settings ")])),_:1})]),w("div",$Pt,[D(y(ct),{outlined:"",type:"primary",onClick:g[1]||(g[1]=h=>n.value=!y(n))},{default:Y(()=>[g[5]||(g[5]=w("div",{"i-carbon-split-screen":""},null,-1)),ze(" "+Se(y(n)?"Close Split Screen":"Split Screen"),1)]),_:1})]),w("div",_Pt,[y(a).length>1?(M(),oe(y(Ed),{key:0,modelValue:y(s),"onUpdate:modelValue":[g[2]||(g[2]=h=>Je(s)?s.value=h:null),c],options:y(a),placeholder:y(l)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):ie("",!0),D(y(ct),{outlined:"",type:"primary",onClick:i},{default:Y(()=>g[6]||(g[6]=[ze(" Refresh Page ")])),_:1})])]))}}),zPt={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},EPt={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},SPt={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},TPt=["flex"],LPt={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},kPt={"translate-y-0.5px":""},OPt=45,xPt=ce({__name:"SideNav",emits:["toggleDevtoolsClientVisible"],setup(t,{emit:r}){const e=r,n=G(!1),i=G(!1),o=G(),a=G(),s=G(),l=j(()=>dr.value.expandSidebar),c=j(()=>dr.value.scrollableSidebar),{enabledTabs:u,flattenedTabs:g}=wf(),{height:h}=Sge(),d=j(()=>{const _=h.value-130;return Math.max(0,Math.floor(_/OPt))}),f=j(()=>g.value.slice(0,d.value)),C=j(()=>g.value.slice(d.value)),v=yT(f,u),A=yT(C,u),I=j(()=>c.value||l.value?u.value:v.value);rge(o,_=>{a.value&&_.composedPath().includes(a.value)||s.value&&_.composedPath().includes(s.value)||(n.value=!1,i.value=!1)},{detectIframe:!0});const p=G(),m=G(6);Fb(p,()=>{m.value=m.value===6?6.01:6});const b=cM();return vge(p,([{isIntersecting:_}])=>{e("toggleDevtoolsClientVisible",{visible:_,host:b})}),(_,S)=>{const E=MPt,T=Hne,L=F0,H=Vne;return M(),k("div",{ref_key:"containerRef",ref:p,border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},[w("div",zPt,[D(y(Au),{placement:"left-start",distance:y(m),skidding:5,trigger:"click",shown:y(n),class:"w-full"},{popper:Y(()=>[D(E)]),default:Y(()=>[w("button",{ref_key:"buttonDocking",ref:a,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-full":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:Le([y(l)?"rounded pl2.5":"rounded-xl"])},[S[3]||(S[3]=w("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1)),y(l)?(M(),k(Te,{key:0},[S[0]||(S[0]=w("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1)),S[1]||(S[1]=w("div",{"flex-auto":""},null,-1)),S[2]||(S[2]=w("div",{"i-carbon-overflow-menu-vertical":""},null,-1))],64)):ie("",!0)],2)]),_:1},8,["distance","shown"])]),w("div",EPt,[(M(!0),k(Te,null,It(y(I),([P,R],N)=>(M(),k(Te,{key:P},[N?(M(),k("div",SPt)):ie("",!0),(M(!0),k(Te,null,It(R.filter(U=>!U.hidden),U=>(M(),oe(T,{key:U.name,tab:U,minimized:!y(l)},null,8,["tab","minimized"]))),128))],64))),128)),S[4]||(S[4]=w("div",{"flex-auto":""},null,-1))]),w("div",{flex:`~ items-center gap-1 ${y(l)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[y(C).length&&!y(c)&&!y(l)?(M(),oe(y(Au),{key:0,placement:"left-end",distance:6},{popper:Y(()=>[D(H,{categories:y(A),"max-w-80":"",target:"main"},null,8,["categories"])]),default:Y(()=>[w("button",{ref_key:"buttonMoreTabs",ref:s,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[D(L,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),w("div",LPt,[w("span",kPt,Se(y(C).length),1)])],512)]),_:1})):ie("",!0),D(T,{minimized:!y(l),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,TPt)],512)}}}),Pne=Bi([]),Rne=G(null);j(()=>Pne.value.find(t=>t.id===Rne.value));const HPt={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},VPt=ce({__name:"App",setup(t){pf();const r=Ac(),e=Cf(),{connected:n,clientConnected:i,activeAppRecordId:o,appRecords:a}=ji(),s=dr,l=j(()=>n.value&&i.value),c=j(()=>e.path.startsWith("/__")||e.path==="/"),u=j(()=>s.value.expandSidebar),g=j(()=>s.value.splitScreen.enabled),h=j({get:()=>s.value.splitScreen.size,set:A=>s.value.splitScreen.size=A});gn(()=>{const A=dr.value.scale;document.documentElement.style.fontSize=`${A*15}px`}),Ga(()=>{gn(()=>{he.value.emit("update-client-state",{minimizePanelInteractive:dr.value.minimizePanelInteractive,closeOnOutsideClick:dr.value.interactionCloseOnOutsideClick,showFloatingPanel:dr.value.showPanel})})}),Ke(l,A=>{A&&(r.replace(s.value.isFirstVisit?"/":s.value.route),r.afterEach(()=>{const I=e.path;I.includes("__")||(s.value.route=I)}))},{immediate:!0}),hi("keydown",A=>{A.code==="KeyD"&&A.altKey&&A.shiftKey&&he.value.emit("toggle-panel")}),gn(()=>{Pne.value=a.value,Rne.value=o.value}),Ga(()=>{he.value.initDevToolsServerListener(),he.value.checkVueInspectorDetected().then(A=>{A&&(nI.value=!0,HN(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{he.value.emit("toggle-panel",!1),await he.value.enableVueInspector()}}]))})});function d(){r.push("/overview").then(()=>{fj()})}xb(()=>{he.functions.on(Ft.ACTIVE_APP_UNMOUNTED,d)});const{copy:f}=fI(),C=Age({});HN(()=>[...C.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{he.value.emit("toggle-panel",!1);const{sRGBHex:A}=await C.open()||{};A&&f(A)}}]:[]]),Ii(()=>{Ga(()=>{he.value.toggleClientConnected(!0)})}),fn(()=>{he.value.toggleClientConnected(!1),he.functions.off(Ft.ACTIVE_APP_UNMOUNTED,d)});function v(A){const{host:I,visible:p}=A;he.value.updateDevToolsClientDetected({[I]:p})}return(A,I)=>{const p=dCe,m=xPt,b=Ro("RouterView"),_=bPt,S=lPt;return M(),k("main",HPt,[y(l)?(M(),k("div",{key:1,class:Le(["h-full of-auto transition-base",y(c)?"flex":y(u)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[y(c)?ie("",!0):(M(),oe(m,{key:0,"of-x-hidden":"","of-y-auto":"",onToggleDevtoolsClientVisible:v})),D(y(D1),{"h-full":"","of-hidden":"",onResize:I[0]||(I[0]=E=>h.value=E.map(T=>T.size))},{default:Y(()=>[D(y(hn),{"h-full":"",class:"of-auto!","min-size":"10",size:y(h)[0]},{default:Y(()=>[D(b)]),_:1},8,["size"]),!y(c)&&y(g)?(M(),oe(y(hn),{key:0,relative:"","h-full":"",class:"of-auto!",size:y(h)[1]},{default:Y(()=>[D(_)]),_:1},8,["size"])):ie("",!0)]),_:1})],2)):(M(),oe(p,{key:0})),D(S)])}}}),PPt=[{path:"/",component:dHt},{path:"/overview",component:MHt},{path:"/components",component:J9e},{path:"/pinia",component:rVt},{path:"/router",component:nVt},{path:"/pages",component:tVt},{path:"/timeline",component:NVt},{path:"/assets",component:pve},{path:"/graph",component:aHt},{path:"/settings",component:bVt},{path:`/${N8}/:name`,component:A6e},{path:`/${Vh}/:name`,component:a6e}],RPt=O2e({history:u2e(),routes:PPt}),uM=CF(VPt);uM.use(RPt);uM.use(Oce());uM.mount("#app");async function DPt(){return ya?void 0:(await Hce(`${location.pathname.split("/__devtools__")[0]||""}/`.replace(/\/\//g,"/"),!1))?.createHotContext("/____")}async function NPt(){const t=await DPt();return t&&Xle(t),t}NPt().then(t=>{t&&kce()});DN?q6(IE,{preset:"broadcast"}):q6(IE,{preset:"iframe"});