@vitest/browser 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context.js +17 -1
- package/dist/client/.vite/manifest.json +2 -2
- package/dist/client/__vitest__/assets/{index-DsWp6aFQ.js → index-CADIw8eX.js} +5 -5
- package/dist/client/__vitest__/index.html +1 -1
- package/dist/client/__vitest_browser__/orchestrator-N9hisloQ.js +1096 -0
- package/dist/client/__vitest_browser__/{tester-Bm6k0JOu.js → tester-iPUw4msx.js} +3 -0
- package/dist/client/orchestrator.html +1 -1
- package/dist/client/tester/tester.html +1 -1
- package/dist/index.js +23 -4
- package/dist/locators/preview.js +1 -1
- package/package.json +9 -9
- package/dist/client/__vitest_browser__/orchestrator-qtq9EW1J.js +0 -541
|
@@ -18,11 +18,11 @@ var z_=Object.defineProperty;var I_=(e,t,r)=>t in e?z_(e,t,{enumerable:!0,config
|
|
|
18
18
|
* vue-router v4.4.3
|
|
19
19
|
* (c) 2024 Eduardo San Martin Morote
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/const ds=typeof document<"u";function TC(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const wt=Object.assign;function Yf(e,t){const r={};for(const o in t){const s=t[o];r[o]=kr(s)?s.map(e):e(s)}return r}const Ol=()=>{},kr=Array.isArray,Ky=/#/g,EC=/&/g,LC=/\//g,AC=/=/g,MC=/\?/g,Xy=/\+/g,NC=/%5B/g,$C=/%5D/g,Yy=/%5E/g,PC=/%60/g,Zy=/%7B/g,OC=/%7C/g,Jy=/%7D/g,RC=/%20/g;function Nh(e){return encodeURI(""+e).replace(OC,"|").replace(NC,"[").replace($C,"]")}function DC(e){return Nh(e).replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function Ed(e){return Nh(e).replace(Xy,"%2B").replace(RC,"+").replace(Ky,"%23").replace(EC,"%26").replace(PC,"`").replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function zC(e){return Ed(e).replace(AC,"%3D")}function IC(e){return Nh(e).replace(Ky,"%23").replace(MC,"%3F")}function FC(e){return e==null?"":IC(e).replace(LC,"%2F")}function Kl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const HC=/\/$/,qC=e=>e.replace(HC,"");function Zf(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=VC(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:Kl(f)}}function BC(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Kv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function WC(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&As(t.matched[o],r.matched[s])&&Qy(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!UC(e[r],t[r]))return!1;return!0}function UC(e,t){return kr(e)?Xv(e,t):kr(t)?Xv(t,e):e===t}function Xv(e,t){return kr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function VC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const $i={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Xl;(function(e){e.pop="pop",e.push="push"})(Xl||(Xl={}));var Rl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rl||(Rl={}));function jC(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qC(e)}const GC=/^[^#]+#/;function KC(e,t){return e.replace(GC,"#")+t}function XC(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Lu=()=>({left:window.scrollX,top:window.scrollY});function YC(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=XC(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Yv(e,t){return(history.state?history.state.position-t:-1)+e}const Ld=new Map;function ZC(e,t){Ld.set(e,t)}function JC(e){const t=Ld.get(e);return Ld.delete(e),t}let QC=()=>location.protocol+"//"+location.host;function eb(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),Kv(h,"")}return Kv(r,e)+o+s}function eT(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=eb(e,location),A=r.value,T=t.value;let E=0;if(b){if(r.value=x,t.value=b,f&&f===A){f=null;return}E=T?b.position-T.position:0}else o(x);s.forEach(L=>{L(r.value,A,{delta:E,type:Xl.pop,direction:E?E>0?Rl.forward:Rl.back:Rl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const A=s.indexOf(b);A>-1&&s.splice(A,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(wt({},b.state,{scroll:Lu()}),"")}function y(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:y}}function Zv(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Lu():null}}function tT(e){const{history:t,location:r}=window,o={value:eb(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const y=e.indexOf("#"),b=y>-1?(r.host&&document.querySelector("base")?e:e.slice(y))+h:QC()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=wt({},t.state,Zv(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=wt({},s.value,t.state,{forward:h,scroll:Lu()});c(v.current,v,!0);const y=wt({},Zv(o.value,h,null),{position:v.position+1},p);c(h,y,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function nT(e){e=jC(e);const t=tT(e),r=eT(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=wt({location:"",base:e,go:o,createHref:KC.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function rT(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nT(e)}function iT(e){return typeof e=="string"||e&&typeof e=="object"}function tb(e){return typeof e=="string"||typeof e=="symbol"}const nb=Symbol("");var Jv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Jv||(Jv={}));function Ms(e,t){return wt(new Error,{type:e,[nb]:!0},t)}function ti(e,t){return e instanceof Error&&nb in e&&(t==null||!!(e.type&t))}const Qv="[^/]+?",oT={sensitive:!1,strict:!1,start:!0,end:!0},sT=/[.+*?^${}()[\]/\\]/g;function lT(e,t){const r=wt({},oT,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let y=0;y<p.length;y++){const b=p[y];let x=40+(r.sensitive?.25:0);if(b.type===0)y||(s+="/"),s+=b.value.replace(sT,"\\$&"),x+=40;else if(b.type===1){const{value:A,repeatable:T,optional:E,regexp:L}=b;c.push({name:A,repeatable:T,optional:E});const M=L||Qv;if(M!==Qv){x+=10;try{new RegExp(`(${M})`)}catch(N){throw new Error(`Invalid custom RegExp for param "${A}" (${M}): `+N.message)}}let P=T?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;y||(P=E&&p.length<2?`(?:/${P})`:"/"+P),E&&(P+="?"),s+=P,x+=20,E&&(x+=-8),T&&(x+=-20),M===".*"&&(x+=-50)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),y={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",A=c[b-1];y[A.name]=x&&A.repeatable?x.split("/"):x}return y}function h(p){let v="",y=!1;for(const b of e){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:A,repeatable:T,optional:E}=x,L=A in p?p[A]:"";if(kr(L)&&!T)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const M=kr(L)?L.join("/"):L;if(!M)if(E)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${A}"`);v+=M}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function aT(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function rb(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=aT(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(em(o))return 1;if(em(s))return-1}return s.length-o.length}function em(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const cT={type:0,value:""},uT=/[a-zA-Z0-9_]/;function fT(e){if(!e)return[[]];if(e==="/")return[[cT]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function y(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&y(),f()):h===":"?(y(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:uT.test(h)?b():(y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),y(),f(),s}function dT(e,t,r){const o=lT(fT(e.path),r),s=wt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function hT(e,t){const r=[],o=new Map;t=rm({strict:!1,end:!0,sensitive:!1},t);function s(y){return o.get(y)}function c(y,b,x){const A=!x,T=pT(y);T.aliasOf=x&&x.record;const E=rm(t,y),L=[T];if("alias"in y){const N=typeof y.alias=="string"?[y.alias]:y.alias;for(const q of N)L.push(wt({},T,{components:x?x.record.components:T.components,path:q,aliasOf:x?x.record:T}))}let M,P;for(const N of L){const{path:q}=N;if(b&&q[0]!=="/"){const W=b.record.path,X=W[W.length-1]==="/"?"":"/";N.path=b.record.path+(q&&X+q)}if(M=dT(N,b,E),x?x.alias.push(M):(P=P||M,P!==M&&P.alias.push(M),A&&y.name&&!nm(M)&&f(y.name)),ib(M)&&h(M),T.children){const W=T.children;for(let X=0;X<W.length;X++)c(W[X],M,x&&x.children[X])}x=x||M}return P?()=>{f(P)}:Ol}function f(y){if(tb(y)){const b=o.get(y);b&&(o.delete(y),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(y);b>-1&&(r.splice(b,1),y.record.name&&o.delete(y.record.name),y.children.forEach(f),y.alias.forEach(f))}}function d(){return r}function h(y){const b=mT(y,r);r.splice(b,0,y),y.record.name&&!nm(y)&&o.set(y.record.name,y)}function p(y,b){let x,A={},T,E;if("name"in y&&y.name){if(x=o.get(y.name),!x)throw Ms(1,{location:y});E=x.record.name,A=wt(tm(b.params,x.keys.filter(P=>!P.optional).concat(x.parent?x.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),y.params&&tm(y.params,x.keys.map(P=>P.name))),T=x.stringify(A)}else if(y.path!=null)T=y.path,x=r.find(P=>P.re.test(T)),x&&(A=x.parse(T),E=x.record.name);else{if(x=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!x)throw Ms(1,{location:y,currentLocation:b});E=x.record.name,A=wt({},b.params,y.params),T=x.stringify(A)}const L=[];let M=x;for(;M;)L.unshift(M.record),M=M.parent;return{name:E,path:T,params:A,matched:L,meta:vT(L)}}e.forEach(y=>c(y));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function tm(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function pT(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gT(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gT(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function nm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vT(e){return e.reduce((t,r)=>wt(t,r.meta),{})}function rm(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function mT(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;rb(e,t[c])<0?o=c:r=c+1}const s=yT(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function yT(e){let t=e;for(;t=t.parent;)if(ib(t)&&rb(e,t)===0)return t}function ib({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bT(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(Xy," "),f=c.indexOf("="),d=Kl(f<0?c:c.slice(0,f)),h=f<0?null:Kl(c.slice(f+1));if(d in t){let p=t[d];kr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function im(e){let t="";for(let r in e){const o=e[r];if(r=zC(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(kr(o)?o.map(c=>c&&Ed(c)):[o&&Ed(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function wT(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=kr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const xT=Symbol(""),om=Symbol(""),$h=Symbol(""),ob=Symbol(""),Ad=Symbol("");function xl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Fi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Ms(4,{from:r,to:t})):b instanceof Error?h(b):iT(b)?h(Ms(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let y=Promise.resolve(v);e.length<3&&(y=y.then(p)),y.catch(b=>h(b))})}function Jf(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(_T(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Fi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${f.path}"`));const y=TC(v)?v.default:v;f.components[d]=y;const x=(y.__vccOpts||y)[t];return x&&Fi(x,r,o,f,d,s)()}))}}return c}function _T(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sm(e){const t=li($h),r=li(ob),o=Ce(()=>{const h=z(e.to);return t.resolve(h)}),s=Ce(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],y=r.matched;if(!v||!y.length)return-1;const b=y.findIndex(As.bind(null,v));if(b>-1)return b;const x=lm(h[p-2]);return p>1&&lm(v)===x&&y[y.length-1].path!==x?y.findIndex(As.bind(null,h[p-2])):b}),c=Ce(()=>s.value>-1&&TT(r.params,o.value.params)),f=Ce(()=>s.value>-1&&s.value===r.matched.length-1&&Qy(r.params,o.value.params));function d(h={}){return CT(h)?t[z(e.replace)?"replace":"push"](z(e.to)).catch(Ol):Promise.resolve()}return{route:o,href:Ce(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const ST=ft({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:sm,setup(e,{slots:t}){const r=Xn(sm(e)),{options:o}=li($h),s=Ce(()=>({[am(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[am(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:pa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),kT=ST;function CT(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TT(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!kr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function lm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const am=(e,t,r)=>e??t??r,ET=ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=li(Ad),s=Ce(()=>e.route||o.value),c=li(om,0),f=Ce(()=>{let p=z(c);const{matched:v}=s.value;let y;for(;(y=v[p])&&!y.components;)p++;return p}),d=Ce(()=>s.value.matched[f.value]);Sc(om,Ce(()=>f.value+1)),Sc(xT,d),Sc(Ad,s);const h=Be();return It(()=>[h.value,d.value,e.name],([p,v,y],[b,x,A])=>{v&&(v.instances[y]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!As(v,x)||!b)&&(v.enterCallbacks[y]||[]).forEach(T=>T(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,y=d.value,b=y&&y.components[v];if(!b)return cm(r.default,{Component:b,route:p});const x=y.props[v],A=x?x===!0?p.params:typeof x=="function"?x(p):x:null,E=pa(b,wt({},A,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(y.instances[v]=null)},ref:h}));return cm(r.default,{Component:E,route:p})||E}}});function cm(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const LT=ET;function AT(e){const t=hT(e.routes,e),r=e.parseQuery||bT,o=e.stringifyQuery||im,s=e.history,c=xl(),f=xl(),d=xl(),h=Wr($i);let p=$i;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Yf.bind(null,K=>""+K),y=Yf.bind(null,FC),b=Yf.bind(null,Kl);function x(K,ae){let de,$e;return tb(K)?(de=t.getRecordMatcher(K),$e=ae):$e=K,t.addRoute($e,de)}function A(K){const ae=t.getRecordMatcher(K);ae&&t.removeRoute(ae)}function T(){return t.getRoutes().map(K=>K.record)}function E(K){return!!t.getRecordMatcher(K)}function L(K,ae){if(ae=wt({},ae||h.value),typeof K=="string"){const F=Zf(r,K,ae.path),J=t.resolve({path:F.path},ae),ue=s.createHref(F.fullPath);return wt(F,J,{params:b(J.params),hash:Kl(F.hash),redirectedFrom:void 0,href:ue})}let de;if(K.path!=null)de=wt({},K,{path:Zf(r,K.path,ae.path).path});else{const F=wt({},K.params);for(const J in F)F[J]==null&&delete F[J];de=wt({},K,{params:y(F)}),ae.params=y(ae.params)}const $e=t.resolve(de,ae),Ee=K.hash||"";$e.params=v(b($e.params));const Ze=BC(o,wt({},K,{hash:DC(Ee),path:$e.path})),O=s.createHref(Ze);return wt({fullPath:Ze,hash:Ee,query:o===im?wT(K.query):K.query||{}},$e,{redirectedFrom:void 0,href:O})}function M(K){return typeof K=="string"?Zf(r,K,h.value.path):wt({},K)}function P(K,ae){if(p!==K)return Ms(8,{from:ae,to:K})}function N(K){return X(K)}function q(K){return N(wt(M(K),{replace:!0}))}function W(K){const ae=K.matched[K.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let $e=typeof de=="function"?de(K):de;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=M($e):{path:$e},$e.params={}),wt({query:K.query,hash:K.hash,params:$e.path!=null?{}:K.params},$e)}}function X(K,ae){const de=p=L(K),$e=h.value,Ee=K.state,Ze=K.force,O=K.replace===!0,F=W(de);if(F)return X(wt(M(F),{state:typeof F=="object"?wt({},Ee,F.state):Ee,force:Ze,replace:O}),ae||de);const J=de;J.redirectedFrom=ae;let ue;return!Ze&&WC(o,$e,de)&&(ue=Ms(16,{to:J,from:$e}),We($e,$e,!0,!1)),(ue?Promise.resolve(ue):j(J,$e)).catch(le=>ti(le)?ti(le,2)?le:Ne(le):re(le,J,$e)).then(le=>{if(le){if(ti(le,2))return X(wt({replace:O},M(le.to),{state:typeof le.to=="object"?wt({},Ee,le.to.state):Ee,force:Ze}),ae||J)}else le=Z(J,$e,!0,O,Ee);return te(J,$e,le),le})}function ie(K,ae){const de=P(K,ae);return de?Promise.reject(de):Promise.resolve()}function ee(K){const ae=rt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(K):K()}function j(K,ae){let de;const[$e,Ee,Ze]=MT(K,ae);de=Jf($e.reverse(),"beforeRouteLeave",K,ae);for(const F of $e)F.leaveGuards.forEach(J=>{de.push(Fi(J,K,ae))});const O=ie.bind(null,K,ae);return de.push(O),Le(de).then(()=>{de=[];for(const F of c.list())de.push(Fi(F,K,ae));return de.push(O),Le(de)}).then(()=>{de=Jf(Ee,"beforeRouteUpdate",K,ae);for(const F of Ee)F.updateGuards.forEach(J=>{de.push(Fi(J,K,ae))});return de.push(O),Le(de)}).then(()=>{de=[];for(const F of Ze)if(F.beforeEnter)if(kr(F.beforeEnter))for(const J of F.beforeEnter)de.push(Fi(J,K,ae));else de.push(Fi(F.beforeEnter,K,ae));return de.push(O),Le(de)}).then(()=>(K.matched.forEach(F=>F.enterCallbacks={}),de=Jf(Ze,"beforeRouteEnter",K,ae,ee),de.push(O),Le(de))).then(()=>{de=[];for(const F of f.list())de.push(Fi(F,K,ae));return de.push(O),Le(de)}).catch(F=>ti(F,8)?F:Promise.reject(F))}function te(K,ae,de){d.list().forEach($e=>ee(()=>$e(K,ae,de)))}function Z(K,ae,de,$e,Ee){const Ze=P(K,ae);if(Ze)return Ze;const O=ae===$i,F=ds?history.state:{};de&&($e||O?s.replace(K.fullPath,wt({scroll:O&&F&&F.scroll},Ee)):s.push(K.fullPath,Ee)),h.value=K,We(K,ae,de,O),Ne()}let H;function I(){H||(H=s.listen((K,ae,de)=>{if(!Je.listening)return;const $e=L(K),Ee=W($e);if(Ee){X(wt(Ee,{replace:!0}),$e).catch(Ol);return}p=$e;const Ze=h.value;ds&&ZC(Yv(Ze.fullPath,de.delta),Lu()),j($e,Ze).catch(O=>ti(O,12)?O:ti(O,2)?(X(O.to,$e).then(F=>{ti(F,20)&&!de.delta&&de.type===Xl.pop&&s.go(-1,!1)}).catch(Ol),Promise.reject()):(de.delta&&s.go(-de.delta,!1),re(O,$e,Ze))).then(O=>{O=O||Z($e,Ze,!1),O&&(de.delta&&!ti(O,8)?s.go(-de.delta,!1):de.type===Xl.pop&&ti(O,20)&&s.go(-1,!1)),te($e,Ze,O)}).catch(Ol)}))}let k=xl(),B=xl(),U;function re(K,ae,de){Ne(K);const $e=B.list();return $e.length?$e.forEach(Ee=>Ee(K,ae,de)):console.error(K),Promise.reject(K)}function ye(){return U&&h.value!==$i?Promise.resolve():new Promise((K,ae)=>{k.add([K,ae])})}function Ne(K){return U||(U=!K,I(),k.list().forEach(([ae,de])=>K?de(K):ae()),k.reset()),K}function We(K,ae,de,$e){const{scrollBehavior:Ee}=e;if(!ds||!Ee)return Promise.resolve();const Ze=!de&&JC(Yv(K.fullPath,0))||($e||!de)&&history.state&&history.state.scroll||null;return ln().then(()=>Ee(K,ae,Ze)).then(O=>O&&YC(O)).catch(O=>re(O,K,ae))}const je=K=>s.go(K);let it;const rt=new Set,Je={currentRoute:h,listening:!0,addRoute:x,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:T,resolve:L,options:e,push:N,replace:q,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(K){const ae=this;K.component("RouterLink",kT),K.component("RouterView",LT),K.config.globalProperties.$router=ae,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>z(h)}),ds&&!it&&h.value===$i&&(it=!0,N(s.location).catch(Ee=>{}));const de={};for(const Ee in $i)Object.defineProperty(de,Ee,{get:()=>h.value[Ee],enumerable:!0});K.provide($h,ae),K.provide(ob,gh(de)),K.provide(Ad,h);const $e=K.unmount;rt.add(K),K.unmount=function(){rt.delete(K),rt.size<1&&(p=$i,H&&H(),H=null,h.value=$i,it=!1,U=!1),$e()}}};function Le(K){return K.reduce((ae,de)=>ae.then(()=>ee(de)),Promise.resolve())}return Je}function MT(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>As(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>As(p,h))||s.push(h))}return[r,o,s]}const NT=["top","right","bottom","left"],um=["start","end"],fm=NT.reduce((e,t)=>e.concat(t,t+"-"+um[0],t+"-"+um[1]),[]),Yl=Math.min,So=Math.max,$T={left:"right",right:"left",bottom:"top",top:"bottom"},PT={start:"end",end:"start"};function Md(e,t,r){return So(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function qr(e){return e.split("-")[0]}function _r(e){return e.split("-")[1]}function sb(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function ga(e){return["top","bottom"].includes(qr(e))?"y":"x"}function Oh(e){return sb(ga(e))}function lb(e,t,r){r===void 0&&(r=!1);const o=_r(e),s=Oh(e),c=Ph(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function OT(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>PT[t])}function RT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function DT(e,t,r,o){const s=_r(e);let c=RT(qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>$T[t])}function zT(e){return{top:0,right:0,bottom:0,left:0,...e}}function ab(e){return typeof e!="number"?zT(e):{top:e,right:e,bottom:e,left:e}}function Dl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function dm(e,t,r){let{reference:o,floating:s}=e;const c=ga(t),f=Oh(t),d=Ph(f),h=qr(t),p=c==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-s.width,y};break;default:x={x:o.x,y:o.y}}switch(_r(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const IT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y}=dm(p,o,h),b=o,x={},A=0;for(let T=0;T<d.length;T++){const{name:E,fn:L}=d[T],{x:M,y:P,data:N,reset:q}=await L({x:v,y,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=M??v,y=P??y,x={...x,[E]:{...x[E],...N}},q&&A<=50&&(A++,typeof q=="object"&&(q.placement&&(b=q.placement),q.rects&&(p=q.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):q.rects),{x:v,y}=dm(p,b,h)),T=-1)}return{x:v,y,placement:b,strategy:s,middlewareData:x}};async function Au(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=zo(t,e),A=ab(x),E=d[b?y==="floating"?"reference":"floating":y],L=Dl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(E)))==null||r?E:E.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),M=y==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),N=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},q=Dl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:M,offsetParent:P,strategy:h}):M);return{top:(L.top-q.top+A.top)/N.y,bottom:(q.bottom-L.bottom+A.bottom)/N.y,left:(L.left-q.left+A.left)/N.x,right:(q.right-L.right+A.right)/N.x}}const FT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const y=ab(v),b={x:r,y:o},x=Oh(s),A=Ph(x),T=await f.getDimensions(p),E=x==="y",L=E?"top":"left",M=E?"bottom":"right",P=E?"clientHeight":"clientWidth",N=c.reference[A]+c.reference[x]-b[x]-c.floating[A],q=b[x]-c.reference[x],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let X=W?W[P]:0;(!X||!await(f.isElement==null?void 0:f.isElement(W)))&&(X=d.floating[P]||c.floating[A]);const ie=N/2-q/2,ee=X/2-T[A]/2-1,j=Yl(y[L],ee),te=Yl(y[M],ee),Z=j,H=X-T[A]-te,I=X/2-T[A]/2+ie,k=Md(Z,I,H),B=!h.arrow&&_r(s)!=null&&I!==k&&c.reference[A]/2-(I<Z?j:te)-T[A]/2<0,U=B?I<Z?I-Z:I-H:0;return{[x]:b[x]+U,data:{[x]:k,centerOffset:I-k-U,...B&&{alignmentOffset:U}},reset:B}}});function HT(e,t,r){return(e?[...r.filter(s=>_r(s)===e),...r.filter(s=>_r(s)!==e)]:r.filter(s=>qr(s)===s)).filter(s=>e?_r(s)===e||(t?Gc(s)!==s:!1):!0)}const qT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:y,allowedPlacements:b=fm,autoAlignment:x=!0,...A}=zo(e,t),T=y!==void 0||b===fm?HT(y||null,x,b):b,E=await Au(t,A),L=((r=f.autoPlacement)==null?void 0:r.index)||0,M=T[L];if(M==null)return{};const P=lb(M,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==M)return{reset:{placement:T[0]}};const N=[E[qr(M)],E[P[0]],E[P[1]]],q=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:M,overflows:N}],W=T[L+1];if(W)return{data:{index:L+1,overflows:q},reset:{placement:W}};const X=q.map(j=>{const te=_r(j.placement);return[j.placement,te&&v?j.overflows.slice(0,2).reduce((Z,H)=>Z+H,0):j.overflows[0],j.overflows]}).sort((j,te)=>j[1]-te[1]),ee=((s=X.filter(j=>j[2].slice(0,_r(j[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||X[0][0];return ee!==d?{data:{index:L+1,overflows:q},reset:{placement:ee}}:{}}}},BT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:T=!0,...E}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=qr(s),M=qr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),N=b||(M||!T?[Kc(d)]:OT(d));!b&&A!=="none"&&N.push(...DT(d,T,A,P));const q=[d,...N],W=await Au(t,E),X=[];let ie=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&X.push(W[L]),y){const Z=lb(s,f,P);X.push(W[Z[0]],W[Z[1]])}if(ie=[...ie,{placement:s,overflows:X}],!X.every(Z=>Z<=0)){var ee,j;const Z=(((ee=c.flip)==null?void 0:ee.index)||0)+1,H=q[Z];if(H)return{data:{index:Z,overflows:ie},reset:{placement:H}};let I=(j=ie.filter(k=>k.overflows[0]<=0).sort((k,B)=>k.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!I)switch(x){case"bestFit":{var te;const k=(te=ie.map(B=>[B.placement,B.overflows.filter(U=>U>0).reduce((U,re)=>U+re,0)]).sort((B,U)=>B[1]-U[1])[0])==null?void 0:te[0];k&&(I=k);break}case"initialPlacement":I=d;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function WT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=qr(r),d=_r(r),h=ga(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,y=zo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:A}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof A=="number"&&(x=d==="end"?A*-1:A),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const UT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await WT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},VT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:E=>{let{x:L,y:M}=E;return{x:L,y:M}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),y=ga(qr(s)),b=sb(y);let x=p[b],A=p[y];if(c){const E=b==="y"?"top":"left",L=b==="y"?"bottom":"right",M=x+v[E],P=x-v[L];x=Md(M,x,P)}if(f){const E=y==="y"?"top":"left",L=y==="y"?"bottom":"right",M=A+v[E],P=A-v[L];A=Md(M,A,P)}const T=d.fn({...t,[b]:x,[y]:A});return{...T,data:{x:T.x-r,y:T.y-o}}}}},jT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await Au(t,d),p=qr(r),v=_r(r),y=ga(r)==="y",{width:b,height:x}=o.floating;let A,T;p==="top"||p==="bottom"?(A=p,T=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(T=p,A=v==="end"?"top":"bottom");const E=x-h[A],L=b-h[T],M=!t.middlewareData.shift;let P=E,N=L;if(y){const W=b-h.left-h.right;N=v||M?Yl(L,W):W}else{const W=x-h.top-h.bottom;P=v||M?Yl(E,W):W}if(M&&!v){const W=So(h.left,0),X=So(h.right,0),ie=So(h.top,0),ee=So(h.bottom,0);y?N=b-2*(W!==0||X!==0?W+X:So(h.left,h.right)):P=x-2*(ie!==0||ee!==0?ie+ee:So(h.top,h.bottom))}await f({...t,availableWidth:N,availableHeight:P});const q=await s.getDimensions(c.floating);return b!==q.width||x!==q.height?{reset:{rects:!0}}:{}}}};function nr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dr(e){return nr(e).getComputedStyle(e)}const hm=Math.min,zl=Math.max,Xc=Math.round;function cb(e){const t=Dr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return fb(e)?(e.nodeName||"").toLowerCase():""}let lc;function ub(){if(lc)return lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(lc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),lc):navigator.userAgent}function zr(e){return e instanceof nr(e).HTMLElement}function Xi(e){return e instanceof nr(e).Element}function fb(e){return e instanceof nr(e).Node}function pm(e){return typeof ShadowRoot>"u"?!1:e instanceof nr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function GT(e){return["table","td","th"].includes(Ji(e))}function Nd(e){const t=/firefox/i.test(ub()),r=Dr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function db(){return!/^((?!chrome|android).)*safari/i.test(ub())}function Rh(e){return["html","body","#document"].includes(Ji(e))}function hb(e){return Xi(e)?e:e.contextElement}const pb={x:1,y:1};function _s(e){const t=hb(e);if(!zr(t))return pb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=cb(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=hb(e);let h=pb;t&&(o?Xi(o)&&(h=_s(o)):h=_s(e));const p=d?nr(d):window,v=!db()&&r;let y=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,A=f.height/h.y;if(d){const T=nr(d),E=o&&Xi(o)?nr(o):o;let L=T.frameElement;for(;L&&o&&E!==T;){const M=_s(L),P=L.getBoundingClientRect(),N=getComputedStyle(L);P.x+=(L.clientLeft+parseFloat(N.paddingLeft))*M.x,P.y+=(L.clientTop+parseFloat(N.paddingTop))*M.y,y*=M.x,b*=M.y,x*=M.x,A*=M.y,y+=P.x,b+=P.y,L=nr(L).frameElement}}return{width:x,height:A,top:b,right:y+x,bottom:b+A,left:y,x:y,y:b}}function Yi(e){return((fb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gb(e){return Zl(Yi(e)).left+Nu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pm(e)&&e.host||Yi(e);return pm(t)?t.host:t}function vb(e){const t=Jl(e);return Rh(t)?t.ownerDocument.body:zr(t)&&Mu(t)?t:vb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=vb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=nr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function gm(e,t,r){return t==="viewport"?Dl(function(o,s){const c=nr(o),f=Yi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,y=0;if(d){h=d.width,p=d.height;const b=db();(b||!b&&s==="fixed")&&(v=d.offsetLeft,y=d.offsetTop)}return{width:h,height:p,x:v,y}}(e,r)):Xi(t)?Dl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=zr(o)?_s(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Dl(function(o){const s=Yi(o),c=Nu(o),f=o.ownerDocument.body,d=zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+gb(o);const v=-c.scrollTop;return Dr(f).direction==="rtl"&&(p+=zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Yi(e)))}function vm(e){return zr(e)&&Dr(e).position!=="fixed"?e.offsetParent:null}function mm(e){const t=nr(e);let r=vm(e);for(;r&>(r)&&Dr(r).position==="static";)r=vm(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Dr(r).position==="static"&&!Nd(r))?t:r||function(o){let s=Jl(o);for(;zr(s)&&!Rh(s);){if(Nd(s))return s;s=Jl(s)}return null}(e)||t}function KT(e,t,r){const o=zr(t),s=Yi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Ji(t)!=="body"||Mu(s))&&(f=Nu(t)),zr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=gb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const XT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const y=v.get(p);if(y)return y;let b=Yc(p).filter(E=>Xi(E)&&Ji(E)!=="body"),x=null;const A=Dr(p).position==="fixed";let T=A?Jl(p):p;for(;Xi(T)&&!Rh(T);){const E=Dr(T),L=Nd(T);(A?L||x:L||E.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=E:b=b.filter(M=>M!==T),T=Jl(T)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const y=gm(t,v,s);return p.top=zl(y.top,p.top),p.right=hm(y.right,p.right),p.bottom=hm(y.bottom,p.bottom),p.left=zl(y.left,p.left),p},gm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=zr(r),c=Yi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Ji(r)!=="body"||Mu(c))&&(f=Nu(r)),zr(r))){const p=Zl(r);d=_s(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Xi,getDimensions:function(e){return zr(e)?cb(e):e.getBoundingClientRect()},getOffsetParent:mm,getDocumentElement:Yi,getScale:_s,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||mm,c=this.getDimensions;return{reference:KT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Dr(e).direction==="rtl"},YT=(e,t,r)=>{const o=new Map,s={platform:XT,...r},c={...s.platform,_c:o};return IT(e,t,{...s,platform:c})};function mb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?mb(e[r],t[r]):e[r]=t[r])}const Sr={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:e=>[...e,"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 Ql(e,t){let r=Sr.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Sr.themes[r.$extend]||{}:(r=null,o=Sr[t]):r=null;while(r);return o}function ZT(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function ym(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t}let Ns=!1;if(typeof window<"u"){Ns=!1;try{const e=Object.defineProperty({},"passive",{get(){Ns=!0}});window.addEventListener("test",null,e)}catch{}}let yb=!1;typeof window<"u"&&typeof navigator<"u"&&(yb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const bb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),bm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function xm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Qf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const jn=[];let _o=null;const _m={};function Sm(e){let t=_m[e];return t||(t=_m[e]=[]),t}let $d=function(){};typeof window<"u"&&($d=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const ed="__floating-vue__popper",wb=()=>ft({name:"VPopper",provide(){return{[ed]:{parentPopper:this}}},inject:{[ed]:{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:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>bb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,$d,Boolean],default:at("container")},boundary:{type:[String,$d],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!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(e=>e.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 e;return(e=this[ed])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?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((e,t)=>(e[t]="$_computePosition",e),{})},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:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;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:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.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 e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(UT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(qT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(VT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(BT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(FT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(jT({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await YT(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),_o&&this.instantMove&&_o.instantMove&&_o!==this.parentPopper){_o.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(_o=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Qf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<jn.length;r++)t=jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of ym(this.theme))Sm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Qf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,xm(jn,this),jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of ym(this.theme)){const o=Sm(r);xm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}_o===this&&(_o=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Qf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,bm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],bm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,wm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],wm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Ns?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Il>=e.left&&Il<=e.right&&Fl>=e.top&&Fl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Il-Oi,o=Fl-Ri,s=t.left+t.width/2-Oi+(t.top+t.height/2)-Ri+t.width+t.height,c=Oi+r*s,f=Ri+o*s;return ac(Oi,Ri,c,f,t.left,t.top,t.left,t.bottom)||ac(Oi,Ri,c,f,t.left,t.top,t.right,t.top)||ac(Oi,Ri,c,f,t.right,t.top,t.right,t.bottom)||ac(Oi,Ri,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(yb){const e=Ns?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>km(t,!0),e),document.addEventListener("touchend",t=>Cm(t,!0),e)}else window.addEventListener("mousedown",e=>km(e,!1),!0),window.addEventListener("click",e=>Cm(e,!1),!0);window.addEventListener("resize",QT)}function km(e,t){if(Sr.autoHideOnMousedown)xb(e,t);else for(let r=0;r<jn.length;r++){const o=jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Cm(e,t){Sr.autoHideOnMousedown||xb(e,t)}function xb(e,t){const r={};for(let o=jn.length-1;o>=0;o--){const s=jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Tm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Tm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Tm(e,t,r){return r.closeAllPopover||r.closePopover&&t||JT(e,r)&&!t}function JT(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function QT(){for(let e=0;e<jn.length;e++)jn[e].$_computePosition()}function Em(){for(let e=0;e<jn.length;e++)jn[e].hide()}let Oi=0,Ri=0,Il=0,Fl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Oi=Il,Ri=Fl,Il=e.clientX,Fl=e.clientY},Ns?{passive:!0}:void 0);function ac(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const eE={extends:wb()},$u=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function tE(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:lt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[hn(e.$slots,"default",K_(Hy(e.slotData)))],2)}const nE=$u(eE,[["render",tE]]);function rE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ec;function Pd(){Pd.init||(Pd.init=!0,Ec=rE()!==-1)}var Pu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Pd(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ec&&this.$el.appendChild(e),e.data="about:blank",Ec||this.$el.appendChild(e)},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&&(!Ec&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const iE=uy();Is("data-v-b329ee4c");const oE={class:"resize-observer",tabindex:"-1"};Fs();const sE=iE((e,t,r,o,s,c)=>(oe(),ot("div",oE)));Pu.render=sE;Pu.__scopeId="data-v-b329ee4c";Pu.__file="src/components/ResizeObserver.vue";const _b=(e="theme")=>({computed:{themeClass(){return ZT(this[e])}}}),lE=ft({name:"VPopperContent",components:{ResizeObserver:Pu},mixins:[_b()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),aE=["id","aria-hidden","tabindex","data-popper-placement"],cE={ref:"inner",class:"v-popper__inner"},uE=Y("div",{class:"v-popper__arrow-outer"},null,-1),fE=Y("div",{class:"v-popper__arrow-inner"},null,-1),dE=[uE,fE];function hE(e,t,r,o,s,c){const f=Po("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:lt(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Kt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Td(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Kt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",cE,[e.mounted?(oe(),me(ut,{key:0},[Y("div",null,[hn(e.$slots,"default")]),e.handleResize?(oe(),ot(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Kt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},dE,4)],4)],46,aE)}const Sb=$u(lE,[["render",hE]]),kb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Od=function(){};typeof window<"u"&&(Od=window.Element);const pE=ft({name:"VPopperWrapper",components:{Popper:nE,PopperContent:Sb},mixins:[kb,_b("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,Od,Boolean],default:void 0},boundary:{type:[String,Od],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":e=>!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(e=>e!==this.$refs.popperContent.$el)}}});function gE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,ai({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,show:x,hide:A,handleResize:T,onResize:E,classes:L,result:M})=>[hn(e.$slots,"default",{shown:p,show:x,hide:A}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":T,classes:L,result:M,onHide:A,onResize:E},{default:st(()=>[hn(e.$slots,"popper",{shown:p,hide:A})]),_: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 Dh=$u(pE,[["render",gE]]),vE={...Dh,name:"VDropdown",vPopperTheme:"dropdown"},mE={...Dh,name:"VMenu",vPopperTheme:"menu"},Cb={...Dh,name:"VTooltip",vPopperTheme:"tooltip"},yE=ft({name:"VTooltipDirective",components:{Popper:wb(),PopperContent:Sb},mixins:[kb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(e.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(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),bE=["innerHTML"],wE=["textContent"];function xE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,ai({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,hide:x,handleResize:A,onResize:T,classes:E,result:L})=>[Pe(f,{ref:"popperContent",class:lt({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":A,classes:E,result:L,onHide:x,onResize:T},{default:st(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,bE)):(oe(),me("div",{key:1,textContent:qe(e.finalContent)},null,8,wE))]),_: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 _E=$u(yE,[["render",xE]]),Tb="v-popper--has-tooltip";function SE(e,t){let r=e.placement;if(!r&&t)for(const o of bb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Eb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=SE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let td,ea,kE=0;function CE(){if(td)return;ea=Be([]),td=Gy({name:"VTooltipDirectiveApp",setup(){return{directives:ea}},render(){return this.directives.map(t=>pa(_E,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),td.mount(e)}function Lb(e,t,r){CE();const o=Be(Eb(e,t,r)),s=Be(!1),c={id:kE++,options:o,shown:s};return ea.value.push(c),e.classList&&e.classList.add(Tb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function zh(e){if(e.$_popper){const t=ea.value.indexOf(e.$_popper.item);t!==-1&&ea.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Tb)}function Lm(e,{value:t,modifiers:r}){const o=Eb(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))zh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Lb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Ab={beforeMount:Lm,updated:Lm,beforeUnmount(e){zh(e)}};function Am(e){e.addEventListener("mousedown",Zc),e.addEventListener("click",Zc),e.addEventListener("touchstart",Mb,Ns?{passive:!0}:!1)}function Mm(e){e.removeEventListener("mousedown",Zc),e.removeEventListener("click",Zc),e.removeEventListener("touchstart",Mb),e.removeEventListener("touchend",Nb),e.removeEventListener("touchcancel",$b)}function Zc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Mb(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Nb),t.addEventListener("touchcancel",$b)}}function Nb(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function $b(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const TE={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&Am(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?Am(e):Mm(e))},beforeUnmount(e){Mm(e)}},EE=Ab,Pb=Cb;function LE(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,mb(Sr,t),e.directive("tooltip",Ab),e.directive("close-popper",TE),e.component("VTooltip",Cb),e.component("VDropdown",vE),e.component("VMenu",mE))}const Ob={version:"5.2.2",install:LE,options:Sr},AE=6e4;function Rb(e){return e}const ME=Rb,{clearTimeout:NE,setTimeout:$E}=globalThis,PE=Math.random.bind(Math);function OE(e,t){const{post:r,on:o,eventNames:s=[],serialize:c=Rb,deserialize:f=ME,resolver:d,timeout:h=AE}=t,p=new Map;let v;const y=new Proxy({},{get(b,x){if(x==="$functions")return e;if(x==="then"&&!s.includes("then")&&!("then"in e))return;const A=(...E)=>{r(c({m:x,a:E,t:"q"}))};if(s.includes(x))return A.asEvent=A,A;const T=async(...E)=>(await v,new Promise((L,M)=>{var q;const P=DE();let N;h>=0&&(N=$E(()=>{var W;try{throw(W=t.onTimeoutError)==null||W.call(t,x,E),new Error(`[birpc] timeout on calling "${x}"`)}catch(X){M(X)}p.delete(P)},h),typeof N=="object"&&(N=(q=N.unref)==null?void 0:q.call(N))),p.set(P,{resolve:L,reject:M,timeoutId:N}),r(c({m:x,a:E,i:P,t:"q"}))}));return T.asEvent=A,T}});return v=o(async(b,...x)=>{const A=f(b);if(A.t==="q"){const{m:T,a:E}=A;let L,M;const P=d?d(T,e[T]):e[T];if(!P)M=new Error(`[birpc] function "${T}" not found`);else try{L=await P.apply(y,E)}catch(N){M=N}A.i&&(M&&t.onError&&t.onError(M,T,E),r(c({t:"s",i:A.i,r:L,e:M}),...x))}else{const{i:T,r:E,e:L}=A,M=p.get(T);M&&(NE(M.timeoutId),L?M.reject(L):M.resolve(E)),p.delete(T)}}),y}const RE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function DE(e=21){let t="",r=e;for(;r--;)t+=RE[PE()*64|0];return t}const{parse:zE,stringify:IE}=JSON,{keys:FE}=Object,ta=String,Db="string",Nm={},Jc="object",zb=(e,t)=>t,HE=e=>e instanceof ta?ta(e):e,qE=(e,t)=>typeof t===Db?new ta(t):t,Ib=(e,t,r,o)=>{const s=[];for(let c=FE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ta){const v=e[p];typeof v===Jc&&!t.has(v)?(t.add(v),r[h]=Nm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Nm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Ib.apply(null,h))}return r},$m=(e,t,r)=>{const o=ta(t.push(r)-1);return e.set(r,o),o},Rd=(e,t)=>{const r=zE(e,qE).map(HE),o=r[0],s=t||zb,c=typeof o===Jc&&o?Ib(r,new Set,o,s):o;return s.call({"":c},"",c)},BE=(e,t,r)=>{const o=t&&typeof t===Jc?(v,y)=>v===""||-1<t.indexOf(v)?y:void 0:t||zb,s=new Map,c=[],f=[];let d=+$m(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=IE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,y){if(h)return h=!h,y;const b=o.call(this,v,y);switch(typeof b){case Jc:if(b===null)return b;case Db:return s.get(b)||$m(s,c,b)}return b}};function Fb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const WE=/^[A-Za-z]:\//;function UE(e=""){return e&&e.replace(/\\/g,"/").replace(WE,t=>t.toUpperCase())}const VE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Pm=/^\/([A-Za-z]:)?$/;function jE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Om=function(...e){e=e.map(o=>UE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:jE();!s||s.length===0||(t=`${s}/${t}`,r=Rm(s))}return t=GE(t,!r),r&&!Rm(t)?`/${t}`:t.length>0?t:"."};function GE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Rm=function(e){return VE.test(e)},KE=function(e,t){const r=Om(e).replace(Pm,"$1").split("/"),o=Om(t).replace(Pm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function XE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Hb(e,t,r,o){const s=KE(t,e),c={id:XE(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function $s(e){return e.type==="test"||e.type==="custom"}function qb(e){const t=[],r=Ih(e);for(const o of r)if($s(o))t.push(o);else for(const s of o.tasks)if($s(s))t.push(s);else{const c=qb(s);for(const f of c)t.push(f)}return t}function Fh(e=[]){return Ih(e).flatMap(t=>$s(t)?[t]:[t,...Fh(t.tasks)])}function YE(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}class Bb{constructor(){fs(this,"filesMap",new Map);fs(this,"pathsSet",new Set);fs(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Hb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function Hh(e){return qb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function ZE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=M=>M,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Bb,waitForConnection:L,reconnect:T},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let y;const b={onSpecsCollected(M){var P;M==null||M.forEach(([N,q])=>{v.state.clearFiles({config:N},[q])}),(P=r.onSpecsCollected)==null||P.call(r,M)},onPathsCollected(M){var P;v.state.collectPaths(M),(P=r.onPathsCollected)==null||P.call(r,M)},onCollected(M){var P;v.state.collectFiles(M),(P=r.onCollected)==null||P.call(r,M)},onTaskUpdate(M){var P;v.state.updateTasks(M),(P=r.onTaskUpdate)==null||P.call(r,M)},onUserConsoleLog(M){var P;v.state.updateUserLog(M),(P=r.onUserConsoleLog)==null||P.call(r,M)},onFinished(M,P){var N;(N=r.onFinished)==null||N.call(r,M,P)},onFinishedReportCoverage(){var M;(M=r.onFinishedReportCoverage)==null||M.call(r)}},x={post:M=>v.ws.send(M),on:M=>y=M,serialize:M=>BE(M,(P,N)=>N instanceof Error?{name:N.name,message:N.message,stack:N.stack}:N),deserialize:Rd,onTimeoutError(M){throw new Error(`[vitest-ws-client]: Timeout calling "${M}"`)}};v.rpc=OE(b,x);let A;function T(M=!1){M&&(p=c),v.ws=new h(e),E()}function E(){A=new Promise((M,P)=>{var q,W;const N=(W=(q=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:q.unref)==null?void 0:W.call(q);v.ws.OPEN===v.ws.readyState&&M(),v.ws.addEventListener("open",()=>{p=c,M(),clearTimeout(N)})}),v.ws.addEventListener("message",M=>{y(M.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(T,s)})}E();function L(){return A}return v}const JE=location.port,QE=[location.hostname,JE].filter(Boolean).join(":"),eL=`${location.protocol==="https:"?"wss:":"ws:"}//${QE}/__vitest_api__`,Ir=!!window.METADATA_PATH;var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ub={},ci={};const tL="Á",nL="á",rL="Ă",iL="ă",oL="∾",sL="∿",lL="∾̳",aL="Â",cL="â",uL="´",fL="А",dL="а",hL="Æ",pL="æ",gL="",vL="𝔄",mL="𝔞",yL="À",bL="à",wL="ℵ",xL="ℵ",_L="Α",SL="α",kL="Ā",CL="ā",TL="⨿",EL="&",LL="&",AL="⩕",ML="⩓",NL="∧",$L="⩜",PL="⩘",OL="⩚",RL="∠",DL="⦤",zL="∠",IL="⦨",FL="⦩",HL="⦪",qL="⦫",BL="⦬",WL="⦭",UL="⦮",VL="⦯",jL="∡",GL="∟",KL="⊾",XL="⦝",YL="∢",ZL="Å",JL="⍼",QL="Ą",eA="ą",tA="𝔸",nA="𝕒",rA="⩯",iA="≈",oA="⩰",sA="≊",lA="≋",aA="'",cA="",uA="≈",fA="≊",dA="Å",hA="å",pA="𝒜",gA="𝒶",vA="≔",mA="*",yA="≈",bA="≍",wA="Ã",xA="ã",_A="Ä",SA="ä",kA="∳",CA="⨑",TA="≌",EA="϶",LA="‵",AA="∽",MA="⋍",NA="∖",$A="⫧",PA="⊽",OA="⌅",RA="⌆",DA="⌅",zA="⎵",IA="⎶",FA="≌",HA="Б",qA="б",BA="„",WA="∵",UA="∵",VA="∵",jA="⦰",GA="϶",KA="ℬ",XA="ℬ",YA="Β",ZA="β",JA="ℶ",QA="≬",eM="𝔅",tM="𝔟",nM="⋂",rM="◯",iM="⋃",oM="⨀",sM="⨁",lM="⨂",aM="⨆",cM="★",uM="▽",fM="△",dM="⨄",hM="⋁",pM="⋀",gM="⤍",vM="⧫",mM="▪",yM="▴",bM="▾",wM="◂",xM="▸",_M="␣",SM="▒",kM="░",CM="▓",TM="█",EM="=⃥",LM="≡⃥",AM="⫭",MM="⌐",NM="𝔹",$M="𝕓",PM="⊥",OM="⊥",RM="⋈",DM="⧉",zM="┐",IM="╕",FM="╖",HM="╗",qM="┌",BM="╒",WM="╓",UM="╔",VM="─",jM="═",GM="┬",KM="╤",XM="╥",YM="╦",ZM="┴",JM="╧",QM="╨",eN="╩",tN="⊟",nN="⊞",rN="⊠",iN="┘",oN="╛",sN="╜",lN="╝",aN="└",cN="╘",uN="╙",fN="╚",dN="│",hN="║",pN="┼",gN="╪",vN="╫",mN="╬",yN="┤",bN="╡",wN="╢",xN="╣",_N="├",SN="╞",kN="╟",CN="╠",TN="‵",EN="˘",LN="˘",AN="¦",MN="𝒷",NN="ℬ",$N="⁏",PN="∽",ON="⋍",RN="⧅",DN="\\",zN="⟈",IN="•",FN="•",HN="≎",qN="⪮",BN="≏",WN="≎",UN="≏",VN="Ć",jN="ć",GN="⩄",KN="⩉",XN="⩋",YN="∩",ZN="⋒",JN="⩇",QN="⩀",e$="ⅅ",t$="∩︀",n$="⁁",r$="ˇ",i$="ℭ",o$="⩍",s$="Č",l$="č",a$="Ç",c$="ç",u$="Ĉ",f$="ĉ",d$="∰",h$="⩌",p$="⩐",g$="Ċ",v$="ċ",m$="¸",y$="¸",b$="⦲",w$="¢",x$="·",_$="·",S$="𝔠",k$="ℭ",C$="Ч",T$="ч",E$="✓",L$="✓",A$="Χ",M$="χ",N$="ˆ",$$="≗",P$="↺",O$="↻",R$="⊛",D$="⊚",z$="⊝",I$="⊙",F$="®",H$="Ⓢ",q$="⊖",B$="⊕",W$="⊗",U$="○",V$="⧃",j$="≗",G$="⨐",K$="⫯",X$="⧂",Y$="∲",Z$="”",J$="’",Q$="♣",eP="♣",tP=":",nP="∷",rP="⩴",iP="≔",oP="≔",sP=",",lP="@",aP="∁",cP="∘",uP="∁",fP="ℂ",dP="≅",hP="⩭",pP="≡",gP="∮",vP="∯",mP="∮",yP="𝕔",bP="ℂ",wP="∐",xP="∐",_P="©",SP="©",kP="℗",CP="∳",TP="↵",EP="✗",LP="⨯",AP="𝒞",MP="𝒸",NP="⫏",$P="⫑",PP="⫐",OP="⫒",RP="⋯",DP="⤸",zP="⤵",IP="⋞",FP="⋟",HP="↶",qP="⤽",BP="⩈",WP="⩆",UP="≍",VP="∪",jP="⋓",GP="⩊",KP="⊍",XP="⩅",YP="∪︀",ZP="↷",JP="⤼",QP="⋞",eO="⋟",tO="⋎",nO="⋏",rO="¤",iO="↶",oO="↷",sO="⋎",lO="⋏",aO="∲",cO="∱",uO="⌭",fO="†",dO="‡",hO="ℸ",pO="↓",gO="↡",vO="⇓",mO="‐",yO="⫤",bO="⊣",wO="⤏",xO="˝",_O="Ď",SO="ď",kO="Д",CO="д",TO="‡",EO="⇊",LO="ⅅ",AO="ⅆ",MO="⤑",NO="⩷",$O="°",PO="∇",OO="Δ",RO="δ",DO="⦱",zO="⥿",IO="𝔇",FO="𝔡",HO="⥥",qO="⇃",BO="⇂",WO="´",UO="˙",VO="˝",jO="`",GO="˜",KO="⋄",XO="⋄",YO="⋄",ZO="♦",JO="♦",QO="¨",eR="ⅆ",tR="ϝ",nR="⋲",rR="÷",iR="÷",oR="⋇",sR="⋇",lR="Ђ",aR="ђ",cR="⌞",uR="⌍",fR="$",dR="𝔻",hR="𝕕",pR="¨",gR="˙",vR="⃜",mR="≐",yR="≑",bR="≐",wR="∸",xR="∔",_R="⊡",SR="⌆",kR="∯",CR="¨",TR="⇓",ER="⇐",LR="⇔",AR="⫤",MR="⟸",NR="⟺",$R="⟹",PR="⇒",OR="⊨",RR="⇑",DR="⇕",zR="∥",IR="⤓",FR="↓",HR="↓",qR="⇓",BR="⇵",WR="̑",UR="⇊",VR="⇃",jR="⇂",GR="⥐",KR="⥞",XR="⥖",YR="↽",ZR="⥟",JR="⥗",QR="⇁",eD="↧",tD="⊤",nD="⤐",rD="⌟",iD="⌌",oD="𝒟",sD="𝒹",lD="Ѕ",aD="ѕ",cD="⧶",uD="Đ",fD="đ",dD="⋱",hD="▿",pD="▾",gD="⇵",vD="⥯",mD="⦦",yD="Џ",bD="џ",wD="⟿",xD="É",_D="é",SD="⩮",kD="Ě",CD="ě",TD="Ê",ED="ê",LD="≖",AD="≕",MD="Э",ND="э",$D="⩷",PD="Ė",OD="ė",RD="≑",DD="ⅇ",zD="≒",ID="𝔈",FD="𝔢",HD="⪚",qD="È",BD="è",WD="⪖",UD="⪘",VD="⪙",jD="∈",GD="⏧",KD="ℓ",XD="⪕",YD="⪗",ZD="Ē",JD="ē",QD="∅",ez="∅",tz="◻",nz="∅",rz="▫",iz=" ",oz=" ",sz=" ",lz="Ŋ",az="ŋ",cz=" ",uz="Ę",fz="ę",dz="𝔼",hz="𝕖",pz="⋕",gz="⧣",vz="⩱",mz="ε",yz="Ε",bz="ε",wz="ϵ",xz="≖",_z="≕",Sz="≂",kz="⪖",Cz="⪕",Tz="⩵",Ez="=",Lz="≂",Az="≟",Mz="⇌",Nz="≡",$z="⩸",Pz="⧥",Oz="⥱",Rz="≓",Dz="ℯ",zz="ℰ",Iz="≐",Fz="⩳",Hz="≂",qz="Η",Bz="η",Wz="Ð",Uz="ð",Vz="Ë",jz="ë",Gz="€",Kz="!",Xz="∃",Yz="∃",Zz="ℰ",Jz="ⅇ",Qz="ⅇ",e2="≒",t2="Ф",n2="ф",r2="♀",i2="ffi",o2="ff",s2="ffl",l2="𝔉",a2="𝔣",c2="fi",u2="◼",f2="▪",d2="fj",h2="♭",p2="fl",g2="▱",v2="ƒ",m2="𝔽",y2="𝕗",b2="∀",w2="∀",x2="⋔",_2="⫙",S2="ℱ",k2="⨍",C2="½",T2="⅓",E2="¼",L2="⅕",A2="⅙",M2="⅛",N2="⅔",$2="⅖",P2="¾",O2="⅗",R2="⅜",D2="⅘",z2="⅚",I2="⅝",F2="⅞",H2="⁄",q2="⌢",B2="𝒻",W2="ℱ",U2="ǵ",V2="Γ",j2="γ",G2="Ϝ",K2="ϝ",X2="⪆",Y2="Ğ",Z2="ğ",J2="Ģ",Q2="Ĝ",eI="ĝ",tI="Г",nI="г",rI="Ġ",iI="ġ",oI="≥",sI="≧",lI="⪌",aI="⋛",cI="≥",uI="≧",fI="⩾",dI="⪩",hI="⩾",pI="⪀",gI="⪂",vI="⪄",mI="⋛︀",yI="⪔",bI="𝔊",wI="𝔤",xI="≫",_I="⋙",SI="⋙",kI="ℷ",CI="Ѓ",TI="ѓ",EI="⪥",LI="≷",AI="⪒",MI="⪤",NI="⪊",$I="⪊",PI="⪈",OI="≩",RI="⪈",DI="≩",zI="⋧",II="𝔾",FI="𝕘",HI="`",qI="≥",BI="⋛",WI="≧",UI="⪢",VI="≷",jI="⩾",GI="≳",KI="𝒢",XI="ℊ",YI="≳",ZI="⪎",JI="⪐",QI="⪧",eF="⩺",tF=">",nF=">",rF="≫",iF="⋗",oF="⦕",sF="⩼",lF="⪆",aF="⥸",cF="⋗",uF="⋛",fF="⪌",dF="≷",hF="≳",pF="≩︀",gF="≩︀",vF="ˇ",mF=" ",yF="½",bF="ℋ",wF="Ъ",xF="ъ",_F="⥈",SF="↔",kF="⇔",CF="↭",TF="^",EF="ℏ",LF="Ĥ",AF="ĥ",MF="♥",NF="♥",$F="…",PF="⊹",OF="𝔥",RF="ℌ",DF="ℋ",zF="⤥",IF="⤦",FF="⇿",HF="∻",qF="↩",BF="↪",WF="𝕙",UF="ℍ",VF="―",jF="─",GF="𝒽",KF="ℋ",XF="ℏ",YF="Ħ",ZF="ħ",JF="≎",QF="≏",eH="⁃",tH="‐",nH="Í",rH="í",iH="",oH="Î",sH="î",lH="И",aH="и",cH="İ",uH="Е",fH="е",dH="¡",hH="⇔",pH="𝔦",gH="ℑ",vH="Ì",mH="ì",yH="ⅈ",bH="⨌",wH="∭",xH="⧜",_H="℩",SH="IJ",kH="ij",CH="Ī",TH="ī",EH="ℑ",LH="ⅈ",AH="ℐ",MH="ℑ",NH="ı",$H="ℑ",PH="⊷",OH="Ƶ",RH="⇒",DH="℅",zH="∞",IH="⧝",FH="ı",HH="⊺",qH="∫",BH="∬",WH="ℤ",UH="∫",VH="⊺",jH="⋂",GH="⨗",KH="⨼",XH="",YH="",ZH="Ё",JH="ё",QH="Į",eq="į",tq="𝕀",nq="𝕚",rq="Ι",iq="ι",oq="⨼",sq="¿",lq="𝒾",aq="ℐ",cq="∈",uq="⋵",fq="⋹",dq="⋴",hq="⋳",pq="∈",gq="",vq="Ĩ",mq="ĩ",yq="І",bq="і",wq="Ï",xq="ï",_q="Ĵ",Sq="ĵ",kq="Й",Cq="й",Tq="𝔍",Eq="𝔧",Lq="ȷ",Aq="𝕁",Mq="𝕛",Nq="𝒥",$q="𝒿",Pq="Ј",Oq="ј",Rq="Є",Dq="є",zq="Κ",Iq="κ",Fq="ϰ",Hq="Ķ",qq="ķ",Bq="К",Wq="к",Uq="𝔎",Vq="𝔨",jq="ĸ",Gq="Х",Kq="х",Xq="Ќ",Yq="ќ",Zq="𝕂",Jq="𝕜",Qq="𝒦",eB="𝓀",tB="⇚",nB="Ĺ",rB="ĺ",iB="⦴",oB="ℒ",sB="Λ",lB="λ",aB="⟨",cB="⟪",uB="⦑",fB="⟨",dB="⪅",hB="ℒ",pB="«",gB="⇤",vB="⤟",mB="←",yB="↞",bB="⇐",wB="⤝",xB="↩",_B="↫",SB="⤹",kB="⥳",CB="↢",TB="⤙",EB="⤛",LB="⪫",AB="⪭",MB="⪭︀",NB="⤌",$B="⤎",PB="❲",OB="{",RB="[",DB="⦋",zB="⦏",IB="⦍",FB="Ľ",HB="ľ",qB="Ļ",BB="ļ",WB="⌈",UB="{",VB="Л",jB="л",GB="⤶",KB="“",XB="„",YB="⥧",ZB="⥋",JB="↲",QB="≤",e3="≦",t3="⟨",n3="⇤",r3="←",i3="←",o3="⇐",s3="⇆",l3="↢",a3="⌈",c3="⟦",u3="⥡",f3="⥙",d3="⇃",h3="⌊",p3="↽",g3="↼",v3="⇇",m3="↔",y3="↔",b3="⇔",w3="⇆",x3="⇋",_3="↭",S3="⥎",k3="↤",C3="⊣",T3="⥚",E3="⋋",L3="⧏",A3="⊲",M3="⊴",N3="⥑",$3="⥠",P3="⥘",O3="↿",R3="⥒",D3="↼",z3="⪋",I3="⋚",F3="≤",H3="≦",q3="⩽",B3="⪨",W3="⩽",U3="⩿",V3="⪁",j3="⪃",G3="⋚︀",K3="⪓",X3="⪅",Y3="⋖",Z3="⋚",J3="⪋",Q3="⋚",e5="≦",t5="≶",n5="≶",r5="⪡",i5="≲",o5="⩽",s5="≲",l5="⥼",a5="⌊",c5="𝔏",u5="𝔩",f5="≶",d5="⪑",h5="⥢",p5="↽",g5="↼",v5="⥪",m5="▄",y5="Љ",b5="љ",w5="⇇",x5="≪",_5="⋘",S5="⌞",k5="⇚",C5="⥫",T5="◺",E5="Ŀ",L5="ŀ",A5="⎰",M5="⎰",N5="⪉",$5="⪉",P5="⪇",O5="≨",R5="⪇",D5="≨",z5="⋦",I5="⟬",F5="⇽",H5="⟦",q5="⟵",B5="⟵",W5="⟸",U5="⟷",V5="⟷",j5="⟺",G5="⟼",K5="⟶",X5="⟶",Y5="⟹",Z5="↫",J5="↬",Q5="⦅",e8="𝕃",t8="𝕝",n8="⨭",r8="⨴",i8="∗",o8="_",s8="↙",l8="↘",a8="◊",c8="◊",u8="⧫",f8="(",d8="⦓",h8="⇆",p8="⌟",g8="⇋",v8="⥭",m8="",y8="⊿",b8="‹",w8="𝓁",x8="ℒ",_8="↰",S8="↰",k8="≲",C8="⪍",T8="⪏",E8="[",L8="‘",A8="‚",M8="Ł",N8="ł",$8="⪦",P8="⩹",O8="<",R8="<",D8="≪",z8="⋖",I8="⋋",F8="⋉",H8="⥶",q8="⩻",B8="◃",W8="⊴",U8="◂",V8="⦖",j8="⥊",G8="⥦",K8="≨︀",X8="≨︀",Y8="¯",Z8="♂",J8="✠",Q8="✠",eW="↦",tW="↦",nW="↧",rW="↤",iW="↥",oW="▮",sW="⨩",lW="М",aW="м",cW="—",uW="∺",fW="∡",dW=" ",hW="ℳ",pW="𝔐",gW="𝔪",vW="℧",mW="µ",yW="*",bW="⫰",wW="∣",xW="·",_W="⊟",SW="−",kW="∸",CW="⨪",TW="∓",EW="⫛",LW="…",AW="∓",MW="⊧",NW="𝕄",$W="𝕞",PW="∓",OW="𝓂",RW="ℳ",DW="∾",zW="Μ",IW="μ",FW="⊸",HW="⊸",qW="∇",BW="Ń",WW="ń",UW="∠⃒",VW="≉",jW="⩰̸",GW="≋̸",KW="ʼn",XW="≉",YW="♮",ZW="ℕ",JW="♮",QW=" ",e4="≎̸",t4="≏̸",n4="⩃",r4="Ň",i4="ň",o4="Ņ",s4="ņ",l4="≇",a4="⩭̸",c4="⩂",u4="Н",f4="н",d4="–",h4="⤤",p4="↗",g4="⇗",v4="↗",m4="≠",y4="≐̸",b4="",w4="",x4="",_4="",S4="≢",k4="⤨",C4="≂̸",T4="≫",E4="≪",L4=`
|
|
21
|
+
*/const ds=typeof document<"u";function TC(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const bt=Object.assign;function Yf(e,t){const r={};for(const o in t){const s=t[o];r[o]=kr(s)?s.map(e):e(s)}return r}const Ol=()=>{},kr=Array.isArray,Ky=/#/g,EC=/&/g,LC=/\//g,AC=/=/g,MC=/\?/g,Xy=/\+/g,NC=/%5B/g,$C=/%5D/g,Yy=/%5E/g,PC=/%60/g,Zy=/%7B/g,OC=/%7C/g,Jy=/%7D/g,RC=/%20/g;function Nh(e){return encodeURI(""+e).replace(OC,"|").replace(NC,"[").replace($C,"]")}function DC(e){return Nh(e).replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function Ed(e){return Nh(e).replace(Xy,"%2B").replace(RC,"+").replace(Ky,"%23").replace(EC,"%26").replace(PC,"`").replace(Zy,"{").replace(Jy,"}").replace(Yy,"^")}function zC(e){return Ed(e).replace(AC,"%3D")}function IC(e){return Nh(e).replace(Ky,"%23").replace(MC,"%3F")}function FC(e){return e==null?"":IC(e).replace(LC,"%2F")}function Kl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const HC=/\/$/,qC=e=>e.replace(HC,"");function Zf(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=VC(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:Kl(f)}}function BC(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Kv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function WC(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&As(t.matched[o],r.matched[s])&&Qy(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qy(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!UC(e[r],t[r]))return!1;return!0}function UC(e,t){return kr(e)?Xv(e,t):kr(t)?Xv(t,e):e===t}function Xv(e,t){return kr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function VC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const $i={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Xl;(function(e){e.pop="pop",e.push="push"})(Xl||(Xl={}));var Rl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Rl||(Rl={}));function jC(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qC(e)}const GC=/^[^#]+#/;function KC(e,t){return e.replace(GC,"#")+t}function XC(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Lu=()=>({left:window.scrollX,top:window.scrollY});function YC(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=XC(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Yv(e,t){return(history.state?history.state.position-t:-1)+e}const Ld=new Map;function ZC(e,t){Ld.set(e,t)}function JC(e){const t=Ld.get(e);return Ld.delete(e),t}let QC=()=>location.protocol+"//"+location.host;function eb(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),Kv(h,"")}return Kv(r,e)+o+s}function eT(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=eb(e,location),A=r.value,T=t.value;let E=0;if(b){if(r.value=x,t.value=b,f&&f===A){f=null;return}E=T?b.position-T.position:0}else o(x);s.forEach(L=>{L(r.value,A,{delta:E,type:Xl.pop,direction:E?E>0?Rl.forward:Rl.back:Rl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const A=s.indexOf(b);A>-1&&s.splice(A,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Lu()}),"")}function y(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:y}}function Zv(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Lu():null}}function tT(e){const{history:t,location:r}=window,o={value:eb(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const y=e.indexOf("#"),b=y>-1?(r.host&&document.querySelector("base")?e:e.slice(y))+h:QC()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,Zv(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:Lu()});c(v.current,v,!0);const y=bt({},Zv(o.value,h,null),{position:v.position+1},p);c(h,y,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function nT(e){e=jC(e);const t=tT(e),r=eT(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:KC.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function rT(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nT(e)}function iT(e){return typeof e=="string"||e&&typeof e=="object"}function tb(e){return typeof e=="string"||typeof e=="symbol"}const nb=Symbol("");var Jv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Jv||(Jv={}));function Ms(e,t){return bt(new Error,{type:e,[nb]:!0},t)}function ti(e,t){return e instanceof Error&&nb in e&&(t==null||!!(e.type&t))}const Qv="[^/]+?",oT={sensitive:!1,strict:!1,start:!0,end:!0},sT=/[.+*?^${}()[\]/\\]/g;function lT(e,t){const r=bt({},oT,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let y=0;y<p.length;y++){const b=p[y];let x=40+(r.sensitive?.25:0);if(b.type===0)y||(s+="/"),s+=b.value.replace(sT,"\\$&"),x+=40;else if(b.type===1){const{value:A,repeatable:T,optional:E,regexp:L}=b;c.push({name:A,repeatable:T,optional:E});const M=L||Qv;if(M!==Qv){x+=10;try{new RegExp(`(${M})`)}catch(N){throw new Error(`Invalid custom RegExp for param "${A}" (${M}): `+N.message)}}let P=T?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;y||(P=E&&p.length<2?`(?:/${P})`:"/"+P),E&&(P+="?"),s+=P,x+=20,E&&(x+=-8),T&&(x+=-20),M===".*"&&(x+=-50)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),y={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",A=c[b-1];y[A.name]=x&&A.repeatable?x.split("/"):x}return y}function h(p){let v="",y=!1;for(const b of e){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:A,repeatable:T,optional:E}=x,L=A in p?p[A]:"";if(kr(L)&&!T)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const M=kr(L)?L.join("/"):L;if(!M)if(E)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${A}"`);v+=M}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function aT(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function rb(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=aT(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(em(o))return 1;if(em(s))return-1}return s.length-o.length}function em(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const cT={type:0,value:""},uT=/[a-zA-Z0-9_]/;function fT(e){if(!e)return[[]];if(e==="/")return[[cT]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function y(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&y(),f()):h===":"?(y(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:uT.test(h)?b():(y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),y(),f(),s}function dT(e,t,r){const o=lT(fT(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function hT(e,t){const r=[],o=new Map;t=rm({strict:!1,end:!0,sensitive:!1},t);function s(y){return o.get(y)}function c(y,b,x){const A=!x,T=pT(y);T.aliasOf=x&&x.record;const E=rm(t,y),L=[T];if("alias"in y){const N=typeof y.alias=="string"?[y.alias]:y.alias;for(const q of N)L.push(bt({},T,{components:x?x.record.components:T.components,path:q,aliasOf:x?x.record:T}))}let M,P;for(const N of L){const{path:q}=N;if(b&&q[0]!=="/"){const W=b.record.path,X=W[W.length-1]==="/"?"":"/";N.path=b.record.path+(q&&X+q)}if(M=dT(N,b,E),x?x.alias.push(M):(P=P||M,P!==M&&P.alias.push(M),A&&y.name&&!nm(M)&&f(y.name)),ib(M)&&h(M),T.children){const W=T.children;for(let X=0;X<W.length;X++)c(W[X],M,x&&x.children[X])}x=x||M}return P?()=>{f(P)}:Ol}function f(y){if(tb(y)){const b=o.get(y);b&&(o.delete(y),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(y);b>-1&&(r.splice(b,1),y.record.name&&o.delete(y.record.name),y.children.forEach(f),y.alias.forEach(f))}}function d(){return r}function h(y){const b=mT(y,r);r.splice(b,0,y),y.record.name&&!nm(y)&&o.set(y.record.name,y)}function p(y,b){let x,A={},T,E;if("name"in y&&y.name){if(x=o.get(y.name),!x)throw Ms(1,{location:y});E=x.record.name,A=bt(tm(b.params,x.keys.filter(P=>!P.optional).concat(x.parent?x.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),y.params&&tm(y.params,x.keys.map(P=>P.name))),T=x.stringify(A)}else if(y.path!=null)T=y.path,x=r.find(P=>P.re.test(T)),x&&(A=x.parse(T),E=x.record.name);else{if(x=b.name?o.get(b.name):r.find(P=>P.re.test(b.path)),!x)throw Ms(1,{location:y,currentLocation:b});E=x.record.name,A=bt({},b.params,y.params),T=x.stringify(A)}const L=[];let M=x;for(;M;)L.unshift(M.record),M=M.parent;return{name:E,path:T,params:A,matched:L,meta:vT(L)}}e.forEach(y=>c(y));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function tm(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function pT(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gT(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gT(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function nm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vT(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function rm(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function mT(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;rb(e,t[c])<0?o=c:r=c+1}const s=yT(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function yT(e){let t=e;for(;t=t.parent;)if(ib(t)&&rb(e,t)===0)return t}function ib({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bT(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(Xy," "),f=c.indexOf("="),d=Kl(f<0?c:c.slice(0,f)),h=f<0?null:Kl(c.slice(f+1));if(d in t){let p=t[d];kr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function im(e){let t="";for(let r in e){const o=e[r];if(r=zC(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(kr(o)?o.map(c=>c&&Ed(c)):[o&&Ed(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function wT(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=kr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const xT=Symbol(""),om=Symbol(""),$h=Symbol(""),ob=Symbol(""),Ad=Symbol("");function xl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Fi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Ms(4,{from:r,to:t})):b instanceof Error?h(b):iT(b)?h(Ms(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let y=Promise.resolve(v);e.length<3&&(y=y.then(p)),y.catch(b=>h(b))})}function Jf(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(_T(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Fi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${f.path}"`));const y=TC(v)?v.default:v;f.components[d]=y;const x=(y.__vccOpts||y)[t];return x&&Fi(x,r,o,f,d,s)()}))}}return c}function _T(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sm(e){const t=li($h),r=li(ob),o=Ce(()=>{const h=z(e.to);return t.resolve(h)}),s=Ce(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],y=r.matched;if(!v||!y.length)return-1;const b=y.findIndex(As.bind(null,v));if(b>-1)return b;const x=lm(h[p-2]);return p>1&&lm(v)===x&&y[y.length-1].path!==x?y.findIndex(As.bind(null,h[p-2])):b}),c=Ce(()=>s.value>-1&&TT(r.params,o.value.params)),f=Ce(()=>s.value>-1&&s.value===r.matched.length-1&&Qy(r.params,o.value.params));function d(h={}){return CT(h)?t[z(e.replace)?"replace":"push"](z(e.to)).catch(Ol):Promise.resolve()}return{route:o,href:Ce(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const ST=ft({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:sm,setup(e,{slots:t}){const r=Xn(sm(e)),{options:o}=li($h),s=Ce(()=>({[am(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[am(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:pa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),kT=ST;function CT(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TT(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!kr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function lm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const am=(e,t,r)=>e??t??r,ET=ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=li(Ad),s=Ce(()=>e.route||o.value),c=li(om,0),f=Ce(()=>{let p=z(c);const{matched:v}=s.value;let y;for(;(y=v[p])&&!y.components;)p++;return p}),d=Ce(()=>s.value.matched[f.value]);Sc(om,Ce(()=>f.value+1)),Sc(xT,d),Sc(Ad,s);const h=Be();return It(()=>[h.value,d.value,e.name],([p,v,y],[b,x,A])=>{v&&(v.instances[y]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!As(v,x)||!b)&&(v.enterCallbacks[y]||[]).forEach(T=>T(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,y=d.value,b=y&&y.components[v];if(!b)return cm(r.default,{Component:b,route:p});const x=y.props[v],A=x?x===!0?p.params:typeof x=="function"?x(p):x:null,E=pa(b,bt({},A,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(y.instances[v]=null)},ref:h}));return cm(r.default,{Component:E,route:p})||E}}});function cm(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const LT=ET;function AT(e){const t=hT(e.routes,e),r=e.parseQuery||bT,o=e.stringifyQuery||im,s=e.history,c=xl(),f=xl(),d=xl(),h=Wr($i);let p=$i;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Yf.bind(null,K=>""+K),y=Yf.bind(null,FC),b=Yf.bind(null,Kl);function x(K,ae){let de,$e;return tb(K)?(de=t.getRecordMatcher(K),$e=ae):$e=K,t.addRoute($e,de)}function A(K){const ae=t.getRecordMatcher(K);ae&&t.removeRoute(ae)}function T(){return t.getRoutes().map(K=>K.record)}function E(K){return!!t.getRecordMatcher(K)}function L(K,ae){if(ae=bt({},ae||h.value),typeof K=="string"){const F=Zf(r,K,ae.path),J=t.resolve({path:F.path},ae),ue=s.createHref(F.fullPath);return bt(F,J,{params:b(J.params),hash:Kl(F.hash),redirectedFrom:void 0,href:ue})}let de;if(K.path!=null)de=bt({},K,{path:Zf(r,K.path,ae.path).path});else{const F=bt({},K.params);for(const J in F)F[J]==null&&delete F[J];de=bt({},K,{params:y(F)}),ae.params=y(ae.params)}const $e=t.resolve(de,ae),Ee=K.hash||"";$e.params=v(b($e.params));const Ze=BC(o,bt({},K,{hash:DC(Ee),path:$e.path})),O=s.createHref(Ze);return bt({fullPath:Ze,hash:Ee,query:o===im?wT(K.query):K.query||{}},$e,{redirectedFrom:void 0,href:O})}function M(K){return typeof K=="string"?Zf(r,K,h.value.path):bt({},K)}function P(K,ae){if(p!==K)return Ms(8,{from:ae,to:K})}function N(K){return X(K)}function q(K){return N(bt(M(K),{replace:!0}))}function W(K){const ae=K.matched[K.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let $e=typeof de=="function"?de(K):de;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=M($e):{path:$e},$e.params={}),bt({query:K.query,hash:K.hash,params:$e.path!=null?{}:K.params},$e)}}function X(K,ae){const de=p=L(K),$e=h.value,Ee=K.state,Ze=K.force,O=K.replace===!0,F=W(de);if(F)return X(bt(M(F),{state:typeof F=="object"?bt({},Ee,F.state):Ee,force:Ze,replace:O}),ae||de);const J=de;J.redirectedFrom=ae;let ue;return!Ze&&WC(o,$e,de)&&(ue=Ms(16,{to:J,from:$e}),We($e,$e,!0,!1)),(ue?Promise.resolve(ue):j(J,$e)).catch(le=>ti(le)?ti(le,2)?le:Ne(le):re(le,J,$e)).then(le=>{if(le){if(ti(le,2))return X(bt({replace:O},M(le.to),{state:typeof le.to=="object"?bt({},Ee,le.to.state):Ee,force:Ze}),ae||J)}else le=Z(J,$e,!0,O,Ee);return te(J,$e,le),le})}function ie(K,ae){const de=P(K,ae);return de?Promise.reject(de):Promise.resolve()}function ee(K){const ae=rt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(K):K()}function j(K,ae){let de;const[$e,Ee,Ze]=MT(K,ae);de=Jf($e.reverse(),"beforeRouteLeave",K,ae);for(const F of $e)F.leaveGuards.forEach(J=>{de.push(Fi(J,K,ae))});const O=ie.bind(null,K,ae);return de.push(O),Le(de).then(()=>{de=[];for(const F of c.list())de.push(Fi(F,K,ae));return de.push(O),Le(de)}).then(()=>{de=Jf(Ee,"beforeRouteUpdate",K,ae);for(const F of Ee)F.updateGuards.forEach(J=>{de.push(Fi(J,K,ae))});return de.push(O),Le(de)}).then(()=>{de=[];for(const F of Ze)if(F.beforeEnter)if(kr(F.beforeEnter))for(const J of F.beforeEnter)de.push(Fi(J,K,ae));else de.push(Fi(F.beforeEnter,K,ae));return de.push(O),Le(de)}).then(()=>(K.matched.forEach(F=>F.enterCallbacks={}),de=Jf(Ze,"beforeRouteEnter",K,ae,ee),de.push(O),Le(de))).then(()=>{de=[];for(const F of f.list())de.push(Fi(F,K,ae));return de.push(O),Le(de)}).catch(F=>ti(F,8)?F:Promise.reject(F))}function te(K,ae,de){d.list().forEach($e=>ee(()=>$e(K,ae,de)))}function Z(K,ae,de,$e,Ee){const Ze=P(K,ae);if(Ze)return Ze;const O=ae===$i,F=ds?history.state:{};de&&($e||O?s.replace(K.fullPath,bt({scroll:O&&F&&F.scroll},Ee)):s.push(K.fullPath,Ee)),h.value=K,We(K,ae,de,O),Ne()}let H;function I(){H||(H=s.listen((K,ae,de)=>{if(!Je.listening)return;const $e=L(K),Ee=W($e);if(Ee){X(bt(Ee,{replace:!0}),$e).catch(Ol);return}p=$e;const Ze=h.value;ds&&ZC(Yv(Ze.fullPath,de.delta),Lu()),j($e,Ze).catch(O=>ti(O,12)?O:ti(O,2)?(X(O.to,$e).then(F=>{ti(F,20)&&!de.delta&&de.type===Xl.pop&&s.go(-1,!1)}).catch(Ol),Promise.reject()):(de.delta&&s.go(-de.delta,!1),re(O,$e,Ze))).then(O=>{O=O||Z($e,Ze,!1),O&&(de.delta&&!ti(O,8)?s.go(-de.delta,!1):de.type===Xl.pop&&ti(O,20)&&s.go(-1,!1)),te($e,Ze,O)}).catch(Ol)}))}let k=xl(),B=xl(),U;function re(K,ae,de){Ne(K);const $e=B.list();return $e.length?$e.forEach(Ee=>Ee(K,ae,de)):console.error(K),Promise.reject(K)}function ye(){return U&&h.value!==$i?Promise.resolve():new Promise((K,ae)=>{k.add([K,ae])})}function Ne(K){return U||(U=!K,I(),k.list().forEach(([ae,de])=>K?de(K):ae()),k.reset()),K}function We(K,ae,de,$e){const{scrollBehavior:Ee}=e;if(!ds||!Ee)return Promise.resolve();const Ze=!de&&JC(Yv(K.fullPath,0))||($e||!de)&&history.state&&history.state.scroll||null;return ln().then(()=>Ee(K,ae,Ze)).then(O=>O&&YC(O)).catch(O=>re(O,K,ae))}const je=K=>s.go(K);let it;const rt=new Set,Je={currentRoute:h,listening:!0,addRoute:x,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:T,resolve:L,options:e,push:N,replace:q,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(K){const ae=this;K.component("RouterLink",kT),K.component("RouterView",LT),K.config.globalProperties.$router=ae,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>z(h)}),ds&&!it&&h.value===$i&&(it=!0,N(s.location).catch(Ee=>{}));const de={};for(const Ee in $i)Object.defineProperty(de,Ee,{get:()=>h.value[Ee],enumerable:!0});K.provide($h,ae),K.provide(ob,gh(de)),K.provide(Ad,h);const $e=K.unmount;rt.add(K),K.unmount=function(){rt.delete(K),rt.size<1&&(p=$i,H&&H(),H=null,h.value=$i,it=!1,U=!1),$e()}}};function Le(K){return K.reduce((ae,de)=>ae.then(()=>ee(de)),Promise.resolve())}return Je}function MT(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>As(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>As(p,h))||s.push(h))}return[r,o,s]}const NT=["top","right","bottom","left"],um=["start","end"],fm=NT.reduce((e,t)=>e.concat(t,t+"-"+um[0],t+"-"+um[1]),[]),Yl=Math.min,So=Math.max,$T={left:"right",right:"left",bottom:"top",top:"bottom"},PT={start:"end",end:"start"};function Md(e,t,r){return So(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function qr(e){return e.split("-")[0]}function _r(e){return e.split("-")[1]}function sb(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function ga(e){return["top","bottom"].includes(qr(e))?"y":"x"}function Oh(e){return sb(ga(e))}function lb(e,t,r){r===void 0&&(r=!1);const o=_r(e),s=Oh(e),c=Ph(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function OT(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>PT[t])}function RT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function DT(e,t,r,o){const s=_r(e);let c=RT(qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>$T[t])}function zT(e){return{top:0,right:0,bottom:0,left:0,...e}}function ab(e){return typeof e!="number"?zT(e):{top:e,right:e,bottom:e,left:e}}function Dl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function dm(e,t,r){let{reference:o,floating:s}=e;const c=ga(t),f=Oh(t),d=Ph(f),h=qr(t),p=c==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-s.width,y};break;default:x={x:o.x,y:o.y}}switch(_r(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const IT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y}=dm(p,o,h),b=o,x={},A=0;for(let T=0;T<d.length;T++){const{name:E,fn:L}=d[T],{x:M,y:P,data:N,reset:q}=await L({x:v,y,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=M??v,y=P??y,x={...x,[E]:{...x[E],...N}},q&&A<=50&&(A++,typeof q=="object"&&(q.placement&&(b=q.placement),q.rects&&(p=q.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):q.rects),{x:v,y}=dm(p,b,h)),T=-1)}return{x:v,y,placement:b,strategy:s,middlewareData:x}};async function Au(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=zo(t,e),A=ab(x),E=d[b?y==="floating"?"reference":"floating":y],L=Dl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(E)))==null||r?E:E.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),M=y==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),N=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},q=Dl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:M,offsetParent:P,strategy:h}):M);return{top:(L.top-q.top+A.top)/N.y,bottom:(q.bottom-L.bottom+A.bottom)/N.y,left:(L.left-q.left+A.left)/N.x,right:(q.right-L.right+A.right)/N.x}}const FT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const y=ab(v),b={x:r,y:o},x=Oh(s),A=Ph(x),T=await f.getDimensions(p),E=x==="y",L=E?"top":"left",M=E?"bottom":"right",P=E?"clientHeight":"clientWidth",N=c.reference[A]+c.reference[x]-b[x]-c.floating[A],q=b[x]-c.reference[x],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let X=W?W[P]:0;(!X||!await(f.isElement==null?void 0:f.isElement(W)))&&(X=d.floating[P]||c.floating[A]);const ie=N/2-q/2,ee=X/2-T[A]/2-1,j=Yl(y[L],ee),te=Yl(y[M],ee),Z=j,H=X-T[A]-te,I=X/2-T[A]/2+ie,k=Md(Z,I,H),B=!h.arrow&&_r(s)!=null&&I!==k&&c.reference[A]/2-(I<Z?j:te)-T[A]/2<0,U=B?I<Z?I-Z:I-H:0;return{[x]:b[x]+U,data:{[x]:k,centerOffset:I-k-U,...B&&{alignmentOffset:U}},reset:B}}});function HT(e,t,r){return(e?[...r.filter(s=>_r(s)===e),...r.filter(s=>_r(s)!==e)]:r.filter(s=>qr(s)===s)).filter(s=>e?_r(s)===e||(t?Gc(s)!==s:!1):!0)}const qT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:y,allowedPlacements:b=fm,autoAlignment:x=!0,...A}=zo(e,t),T=y!==void 0||b===fm?HT(y||null,x,b):b,E=await Au(t,A),L=((r=f.autoPlacement)==null?void 0:r.index)||0,M=T[L];if(M==null)return{};const P=lb(M,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==M)return{reset:{placement:T[0]}};const N=[E[qr(M)],E[P[0]],E[P[1]]],q=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:M,overflows:N}],W=T[L+1];if(W)return{data:{index:L+1,overflows:q},reset:{placement:W}};const X=q.map(j=>{const te=_r(j.placement);return[j.placement,te&&v?j.overflows.slice(0,2).reduce((Z,H)=>Z+H,0):j.overflows[0],j.overflows]}).sort((j,te)=>j[1]-te[1]),ee=((s=X.filter(j=>j[2].slice(0,_r(j[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||X[0][0];return ee!==d?{data:{index:L+1,overflows:q},reset:{placement:ee}}:{}}}},BT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:T=!0,...E}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=qr(s),M=qr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),N=b||(M||!T?[Kc(d)]:OT(d));!b&&A!=="none"&&N.push(...DT(d,T,A,P));const q=[d,...N],W=await Au(t,E),X=[];let ie=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&X.push(W[L]),y){const Z=lb(s,f,P);X.push(W[Z[0]],W[Z[1]])}if(ie=[...ie,{placement:s,overflows:X}],!X.every(Z=>Z<=0)){var ee,j;const Z=(((ee=c.flip)==null?void 0:ee.index)||0)+1,H=q[Z];if(H)return{data:{index:Z,overflows:ie},reset:{placement:H}};let I=(j=ie.filter(k=>k.overflows[0]<=0).sort((k,B)=>k.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!I)switch(x){case"bestFit":{var te;const k=(te=ie.map(B=>[B.placement,B.overflows.filter(U=>U>0).reduce((U,re)=>U+re,0)]).sort((B,U)=>B[1]-U[1])[0])==null?void 0:te[0];k&&(I=k);break}case"initialPlacement":I=d;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function WT(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=qr(r),d=_r(r),h=ga(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,y=zo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:A}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof A=="number"&&(x=d==="end"?A*-1:A),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const UT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await WT(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},VT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:E=>{let{x:L,y:M}=E;return{x:L,y:M}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),y=ga(qr(s)),b=sb(y);let x=p[b],A=p[y];if(c){const E=b==="y"?"top":"left",L=b==="y"?"bottom":"right",M=x+v[E],P=x-v[L];x=Md(M,x,P)}if(f){const E=y==="y"?"top":"left",L=y==="y"?"bottom":"right",M=A+v[E],P=A-v[L];A=Md(M,A,P)}const T=d.fn({...t,[b]:x,[y]:A});return{...T,data:{x:T.x-r,y:T.y-o}}}}},jT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await Au(t,d),p=qr(r),v=_r(r),y=ga(r)==="y",{width:b,height:x}=o.floating;let A,T;p==="top"||p==="bottom"?(A=p,T=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(T=p,A=v==="end"?"top":"bottom");const E=x-h[A],L=b-h[T],M=!t.middlewareData.shift;let P=E,N=L;if(y){const W=b-h.left-h.right;N=v||M?Yl(L,W):W}else{const W=x-h.top-h.bottom;P=v||M?Yl(E,W):W}if(M&&!v){const W=So(h.left,0),X=So(h.right,0),ie=So(h.top,0),ee=So(h.bottom,0);y?N=b-2*(W!==0||X!==0?W+X:So(h.left,h.right)):P=x-2*(ie!==0||ee!==0?ie+ee:So(h.top,h.bottom))}await f({...t,availableWidth:N,availableHeight:P});const q=await s.getDimensions(c.floating);return b!==q.width||x!==q.height?{reset:{rects:!0}}:{}}}};function nr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Dr(e){return nr(e).getComputedStyle(e)}const hm=Math.min,zl=Math.max,Xc=Math.round;function cb(e){const t=Dr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return fb(e)?(e.nodeName||"").toLowerCase():""}let lc;function ub(){if(lc)return lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(lc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),lc):navigator.userAgent}function zr(e){return e instanceof nr(e).HTMLElement}function Xi(e){return e instanceof nr(e).Element}function fb(e){return e instanceof nr(e).Node}function pm(e){return typeof ShadowRoot>"u"?!1:e instanceof nr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function GT(e){return["table","td","th"].includes(Ji(e))}function Nd(e){const t=/firefox/i.test(ub()),r=Dr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function db(){return!/^((?!chrome|android).)*safari/i.test(ub())}function Rh(e){return["html","body","#document"].includes(Ji(e))}function hb(e){return Xi(e)?e:e.contextElement}const pb={x:1,y:1};function _s(e){const t=hb(e);if(!zr(t))return pb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=cb(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=hb(e);let h=pb;t&&(o?Xi(o)&&(h=_s(o)):h=_s(e));const p=d?nr(d):window,v=!db()&&r;let y=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,A=f.height/h.y;if(d){const T=nr(d),E=o&&Xi(o)?nr(o):o;let L=T.frameElement;for(;L&&o&&E!==T;){const M=_s(L),P=L.getBoundingClientRect(),N=getComputedStyle(L);P.x+=(L.clientLeft+parseFloat(N.paddingLeft))*M.x,P.y+=(L.clientTop+parseFloat(N.paddingTop))*M.y,y*=M.x,b*=M.y,x*=M.x,A*=M.y,y+=P.x,b+=P.y,L=nr(L).frameElement}}return{width:x,height:A,top:b,right:y+x,bottom:b+A,left:y,x:y,y:b}}function Yi(e){return((fb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gb(e){return Zl(Yi(e)).left+Nu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pm(e)&&e.host||Yi(e);return pm(t)?t.host:t}function vb(e){const t=Jl(e);return Rh(t)?t.ownerDocument.body:zr(t)&&Mu(t)?t:vb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=vb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=nr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function gm(e,t,r){return t==="viewport"?Dl(function(o,s){const c=nr(o),f=Yi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,y=0;if(d){h=d.width,p=d.height;const b=db();(b||!b&&s==="fixed")&&(v=d.offsetLeft,y=d.offsetTop)}return{width:h,height:p,x:v,y}}(e,r)):Xi(t)?Dl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=zr(o)?_s(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Dl(function(o){const s=Yi(o),c=Nu(o),f=o.ownerDocument.body,d=zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+gb(o);const v=-c.scrollTop;return Dr(f).direction==="rtl"&&(p+=zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Yi(e)))}function vm(e){return zr(e)&&Dr(e).position!=="fixed"?e.offsetParent:null}function mm(e){const t=nr(e);let r=vm(e);for(;r&>(r)&&Dr(r).position==="static";)r=vm(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Dr(r).position==="static"&&!Nd(r))?t:r||function(o){let s=Jl(o);for(;zr(s)&&!Rh(s);){if(Nd(s))return s;s=Jl(s)}return null}(e)||t}function KT(e,t,r){const o=zr(t),s=Yi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Ji(t)!=="body"||Mu(s))&&(f=Nu(t)),zr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=gb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const XT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const y=v.get(p);if(y)return y;let b=Yc(p).filter(E=>Xi(E)&&Ji(E)!=="body"),x=null;const A=Dr(p).position==="fixed";let T=A?Jl(p):p;for(;Xi(T)&&!Rh(T);){const E=Dr(T),L=Nd(T);(A?L||x:L||E.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=E:b=b.filter(M=>M!==T),T=Jl(T)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const y=gm(t,v,s);return p.top=zl(y.top,p.top),p.right=hm(y.right,p.right),p.bottom=hm(y.bottom,p.bottom),p.left=zl(y.left,p.left),p},gm(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=zr(r),c=Yi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Ji(r)!=="body"||Mu(c))&&(f=Nu(r)),zr(r))){const p=Zl(r);d=_s(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Xi,getDimensions:function(e){return zr(e)?cb(e):e.getBoundingClientRect()},getOffsetParent:mm,getDocumentElement:Yi,getScale:_s,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||mm,c=this.getDimensions;return{reference:KT(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Dr(e).direction==="rtl"},YT=(e,t,r)=>{const o=new Map,s={platform:XT,...r},c={...s.platform,_c:o};return IT(e,t,{...s,platform:c})};function mb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?mb(e[r],t[r]):e[r]=t[r])}const Sr={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:e=>[...e,"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 Ql(e,t){let r=Sr.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Sr.themes[r.$extend]||{}:(r=null,o=Sr[t]):r=null;while(r);return o}function ZT(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function ym(e){const t=[e];let r=Sr.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Sr.themes[r.$extend]||{}):r=null;while(r);return t}let Ns=!1;if(typeof window<"u"){Ns=!1;try{const e=Object.defineProperty({},"passive",{get(){Ns=!0}});window.addEventListener("test",null,e)}catch{}}let yb=!1;typeof window<"u"&&typeof navigator<"u"&&(yb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const bb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),bm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function xm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Qf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const jn=[];let _o=null;const _m={};function Sm(e){let t=_m[e];return t||(t=_m[e]=[]),t}let $d=function(){};typeof window<"u"&&($d=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const ed="__floating-vue__popper",wb=()=>ft({name:"VPopper",provide(){return{[ed]:{parentPopper:this}}},inject:{[ed]:{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:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>bb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,$d,Boolean],default:at("container")},boundary:{type:[String,$d],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!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(e=>e.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 e;return(e=this[ed])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?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((e,t)=>(e[t]="$_computePosition",e),{})},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:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;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:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.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 e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(UT({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(qT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(VT({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(BT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(FT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(jT({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await YT(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),_o&&this.instantMove&&_o.instantMove&&_o!==this.parentPopper){_o.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(_o=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Qf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<jn.length;r++)t=jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of ym(this.theme))Sm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Qf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,xm(jn,this),jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of ym(this.theme)){const o=Sm(r);xm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}_o===this&&(_o=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Qf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,bm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],bm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,wm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],wm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,Ns?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Il>=e.left&&Il<=e.right&&Fl>=e.top&&Fl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Il-Oi,o=Fl-Ri,s=t.left+t.width/2-Oi+(t.top+t.height/2)-Ri+t.width+t.height,c=Oi+r*s,f=Ri+o*s;return ac(Oi,Ri,c,f,t.left,t.top,t.left,t.bottom)||ac(Oi,Ri,c,f,t.left,t.top,t.right,t.top)||ac(Oi,Ri,c,f,t.right,t.top,t.right,t.bottom)||ac(Oi,Ri,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(yb){const e=Ns?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>km(t,!0),e),document.addEventListener("touchend",t=>Cm(t,!0),e)}else window.addEventListener("mousedown",e=>km(e,!1),!0),window.addEventListener("click",e=>Cm(e,!1),!0);window.addEventListener("resize",QT)}function km(e,t){if(Sr.autoHideOnMousedown)xb(e,t);else for(let r=0;r<jn.length;r++){const o=jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Cm(e,t){Sr.autoHideOnMousedown||xb(e,t)}function xb(e,t){const r={};for(let o=jn.length-1;o>=0;o--){const s=jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Tm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Tm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Tm(e,t,r){return r.closeAllPopover||r.closePopover&&t||JT(e,r)&&!t}function JT(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function QT(){for(let e=0;e<jn.length;e++)jn[e].$_computePosition()}function Em(){for(let e=0;e<jn.length;e++)jn[e].hide()}let Oi=0,Ri=0,Il=0,Fl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Oi=Il,Ri=Fl,Il=e.clientX,Fl=e.clientY},Ns?{passive:!0}:void 0);function ac(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const eE={extends:wb()},$u=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function tE(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:lt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[hn(e.$slots,"default",K_(Hy(e.slotData)))],2)}const nE=$u(eE,[["render",tE]]);function rE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ec;function Pd(){Pd.init||(Pd.init=!0,Ec=rE()!==-1)}var Pu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Pd(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ec&&this.$el.appendChild(e),e.data="about:blank",Ec||this.$el.appendChild(e)},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&&(!Ec&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const iE=uy();Is("data-v-b329ee4c");const oE={class:"resize-observer",tabindex:"-1"};Fs();const sE=iE((e,t,r,o,s,c)=>(oe(),ot("div",oE)));Pu.render=sE;Pu.__scopeId="data-v-b329ee4c";Pu.__file="src/components/ResizeObserver.vue";const _b=(e="theme")=>({computed:{themeClass(){return ZT(this[e])}}}),lE=ft({name:"VPopperContent",components:{ResizeObserver:Pu},mixins:[_b()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),aE=["id","aria-hidden","tabindex","data-popper-placement"],cE={ref:"inner",class:"v-popper__inner"},uE=Y("div",{class:"v-popper__arrow-outer"},null,-1),fE=Y("div",{class:"v-popper__arrow-inner"},null,-1),dE=[uE,fE];function hE(e,t,r,o,s,c){const f=Po("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:lt(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Kt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Td(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Kt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",cE,[e.mounted?(oe(),me(ut,{key:0},[Y("div",null,[hn(e.$slots,"default")]),e.handleResize?(oe(),ot(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ye("",!0)],64)):Ye("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Kt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},dE,4)],4)],46,aE)}const Sb=$u(lE,[["render",hE]]),kb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Od=function(){};typeof window<"u"&&(Od=window.Element);const pE=ft({name:"VPopperWrapper",components:{Popper:nE,PopperContent:Sb},mixins:[kb,_b("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,Od,Boolean],default:void 0},boundary:{type:[String,Od],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":e=>!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(e=>e!==this.$refs.popperContent.$el)}}});function gE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,ai({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,show:x,hide:A,handleResize:T,onResize:E,classes:L,result:M})=>[hn(e.$slots,"default",{shown:p,show:x,hide:A}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":T,classes:L,result:M,onHide:A,onResize:E},{default:st(()=>[hn(e.$slots,"popper",{shown:p,hide:A})]),_: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 Dh=$u(pE,[["render",gE]]),vE={...Dh,name:"VDropdown",vPopperTheme:"dropdown"},mE={...Dh,name:"VMenu",vPopperTheme:"menu"},Cb={...Dh,name:"VTooltip",vPopperTheme:"tooltip"},yE=ft({name:"VTooltipDirective",components:{Popper:wb(),PopperContent:Sb},mixins:[kb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(e.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(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),bE=["innerHTML"],wE=["textContent"];function xE(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),ot(d,ai({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,hide:x,handleResize:A,onResize:T,classes:E,result:L})=>[Pe(f,{ref:"popperContent",class:lt({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":A,classes:E,result:L,onHide:x,onResize:T},{default:st(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,bE)):(oe(),me("div",{key:1,textContent:qe(e.finalContent)},null,8,wE))]),_: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 _E=$u(yE,[["render",xE]]),Tb="v-popper--has-tooltip";function SE(e,t){let r=e.placement;if(!r&&t)for(const o of bb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Eb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=SE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let td,ea,kE=0;function CE(){if(td)return;ea=Be([]),td=Gy({name:"VTooltipDirectiveApp",setup(){return{directives:ea}},render(){return this.directives.map(t=>pa(_E,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),td.mount(e)}function Lb(e,t,r){CE();const o=Be(Eb(e,t,r)),s=Be(!1),c={id:kE++,options:o,shown:s};return ea.value.push(c),e.classList&&e.classList.add(Tb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function zh(e){if(e.$_popper){const t=ea.value.indexOf(e.$_popper.item);t!==-1&&ea.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Tb)}function Lm(e,{value:t,modifiers:r}){const o=Eb(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))zh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Lb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Ab={beforeMount:Lm,updated:Lm,beforeUnmount(e){zh(e)}};function Am(e){e.addEventListener("mousedown",Zc),e.addEventListener("click",Zc),e.addEventListener("touchstart",Mb,Ns?{passive:!0}:!1)}function Mm(e){e.removeEventListener("mousedown",Zc),e.removeEventListener("click",Zc),e.removeEventListener("touchstart",Mb),e.removeEventListener("touchend",Nb),e.removeEventListener("touchcancel",$b)}function Zc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Mb(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Nb),t.addEventListener("touchcancel",$b)}}function Nb(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function $b(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const TE={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&Am(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?Am(e):Mm(e))},beforeUnmount(e){Mm(e)}},EE=Ab,Pb=Cb;function LE(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,mb(Sr,t),e.directive("tooltip",Ab),e.directive("close-popper",TE),e.component("VTooltip",Cb),e.component("VDropdown",vE),e.component("VMenu",mE))}const Ob={version:"5.2.2",install:LE,options:Sr},AE=6e4;function Rb(e){return e}const ME=Rb,{clearTimeout:NE,setTimeout:$E}=globalThis,PE=Math.random.bind(Math);function OE(e,t){const{post:r,on:o,eventNames:s=[],serialize:c=Rb,deserialize:f=ME,resolver:d,timeout:h=AE}=t,p=new Map;let v;const y=new Proxy({},{get(b,x){if(x==="$functions")return e;if(x==="then"&&!s.includes("then")&&!("then"in e))return;const A=(...E)=>{r(c({m:x,a:E,t:"q"}))};if(s.includes(x))return A.asEvent=A,A;const T=async(...E)=>(await v,new Promise((L,M)=>{var q;const P=DE();let N;h>=0&&(N=$E(()=>{var W;try{throw(W=t.onTimeoutError)==null||W.call(t,x,E),new Error(`[birpc] timeout on calling "${x}"`)}catch(X){M(X)}p.delete(P)},h),typeof N=="object"&&(N=(q=N.unref)==null?void 0:q.call(N))),p.set(P,{resolve:L,reject:M,timeoutId:N}),r(c({m:x,a:E,i:P,t:"q"}))}));return T.asEvent=A,T}});return v=o(async(b,...x)=>{const A=f(b);if(A.t==="q"){const{m:T,a:E}=A;let L,M;const P=d?d(T,e[T]):e[T];if(!P)M=new Error(`[birpc] function "${T}" not found`);else try{L=await P.apply(y,E)}catch(N){M=N}A.i&&(M&&t.onError&&t.onError(M,T,E),r(c({t:"s",i:A.i,r:L,e:M}),...x))}else{const{i:T,r:E,e:L}=A,M=p.get(T);M&&(NE(M.timeoutId),L?M.reject(L):M.resolve(E)),p.delete(T)}}),y}const RE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function DE(e=21){let t="",r=e;for(;r--;)t+=RE[PE()*64|0];return t}const{parse:zE,stringify:IE}=JSON,{keys:FE}=Object,ta=String,Db="string",Nm={},Jc="object",zb=(e,t)=>t,HE=e=>e instanceof ta?ta(e):e,qE=(e,t)=>typeof t===Db?new ta(t):t,Ib=(e,t,r,o)=>{const s=[];for(let c=FE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ta){const v=e[p];typeof v===Jc&&!t.has(v)?(t.add(v),r[h]=Nm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Nm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Ib.apply(null,h))}return r},$m=(e,t,r)=>{const o=ta(t.push(r)-1);return e.set(r,o),o},Rd=(e,t)=>{const r=zE(e,qE).map(HE),o=r[0],s=t||zb,c=typeof o===Jc&&o?Ib(r,new Set,o,s):o;return s.call({"":c},"",c)},BE=(e,t,r)=>{const o=t&&typeof t===Jc?(v,y)=>v===""||-1<t.indexOf(v)?y:void 0:t||zb,s=new Map,c=[],f=[];let d=+$m(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=IE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,y){if(h)return h=!h,y;const b=o.call(this,v,y);switch(typeof b){case Jc:if(b===null)return b;case Db:return s.get(b)||$m(s,c,b)}return b}};function Fb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const WE=/^[A-Za-z]:\//;function UE(e=""){return e&&e.replace(/\\/g,"/").replace(WE,t=>t.toUpperCase())}const VE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Pm=/^\/([A-Za-z]:)?$/;function jE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Om=function(...e){e=e.map(o=>UE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:jE();!s||s.length===0||(t=`${s}/${t}`,r=Rm(s))}return t=GE(t,!r),r&&!Rm(t)?`/${t}`:t.length>0?t:"."};function GE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Rm=function(e){return VE.test(e)},KE=function(e,t){const r=Om(e).replace(Pm,"$1").split("/"),o=Om(t).replace(Pm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function XE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Hb(e,t,r,o){const s=KE(t,e),c={id:XE(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function $s(e){return e.type==="test"||e.type==="custom"}function qb(e){const t=[],r=Ih(e);for(const o of r)if($s(o))t.push(o);else for(const s of o.tasks)if($s(s))t.push(s);else{const c=qb(s);for(const f of c)t.push(f)}return t}function Fh(e=[]){return Ih(e).flatMap(t=>$s(t)?[t]:[t,...Fh(t.tasks)])}function YE(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}class Bb{constructor(){fs(this,"filesMap",new Map);fs(this,"pathsSet",new Set);fs(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Hb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function Hh(e){return qb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function ZE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=M=>M,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Bb,waitForConnection:L,reconnect:T},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let y;const b={onSpecsCollected(M){var P;M==null||M.forEach(([N,q])=>{v.state.clearFiles({config:N},[q])}),(P=r.onSpecsCollected)==null||P.call(r,M)},onPathsCollected(M){var P;v.state.collectPaths(M),(P=r.onPathsCollected)==null||P.call(r,M)},onCollected(M){var P;v.state.collectFiles(M),(P=r.onCollected)==null||P.call(r,M)},onTaskUpdate(M){var P;v.state.updateTasks(M),(P=r.onTaskUpdate)==null||P.call(r,M)},onUserConsoleLog(M){var P;v.state.updateUserLog(M),(P=r.onUserConsoleLog)==null||P.call(r,M)},onFinished(M,P){var N;(N=r.onFinished)==null||N.call(r,M,P)},onFinishedReportCoverage(){var M;(M=r.onFinishedReportCoverage)==null||M.call(r)}},x={post:M=>v.ws.send(M),on:M=>y=M,serialize:M=>BE(M,(P,N)=>N instanceof Error?{name:N.name,message:N.message,stack:N.stack}:N),deserialize:Rd,onTimeoutError(M){throw new Error(`[vitest-ws-client]: Timeout calling "${M}"`)}};v.rpc=OE(b,x);let A;function T(M=!1){M&&(p=c),v.ws=new h(e),E()}function E(){A=new Promise((M,P)=>{var q,W;const N=(W=(q=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:q.unref)==null?void 0:W.call(q);v.ws.OPEN===v.ws.readyState&&M(),v.ws.addEventListener("open",()=>{p=c,M(),clearTimeout(N)})}),v.ws.addEventListener("message",M=>{y(M.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(T,s)})}E();function L(){return A}return v}const JE=location.port,QE=[location.hostname,JE].filter(Boolean).join(":"),eL=`${location.protocol==="https:"?"wss:":"ws:"}//${QE}/__vitest_api__`,Ir=!!window.METADATA_PATH;var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ub={},ci={};const tL="Á",nL="á",rL="Ă",iL="ă",oL="∾",sL="∿",lL="∾̳",aL="Â",cL="â",uL="´",fL="А",dL="а",hL="Æ",pL="æ",gL="",vL="𝔄",mL="𝔞",yL="À",bL="à",wL="ℵ",xL="ℵ",_L="Α",SL="α",kL="Ā",CL="ā",TL="⨿",EL="&",LL="&",AL="⩕",ML="⩓",NL="∧",$L="⩜",PL="⩘",OL="⩚",RL="∠",DL="⦤",zL="∠",IL="⦨",FL="⦩",HL="⦪",qL="⦫",BL="⦬",WL="⦭",UL="⦮",VL="⦯",jL="∡",GL="∟",KL="⊾",XL="⦝",YL="∢",ZL="Å",JL="⍼",QL="Ą",eA="ą",tA="𝔸",nA="𝕒",rA="⩯",iA="≈",oA="⩰",sA="≊",lA="≋",aA="'",cA="",uA="≈",fA="≊",dA="Å",hA="å",pA="𝒜",gA="𝒶",vA="≔",mA="*",yA="≈",bA="≍",wA="Ã",xA="ã",_A="Ä",SA="ä",kA="∳",CA="⨑",TA="≌",EA="϶",LA="‵",AA="∽",MA="⋍",NA="∖",$A="⫧",PA="⊽",OA="⌅",RA="⌆",DA="⌅",zA="⎵",IA="⎶",FA="≌",HA="Б",qA="б",BA="„",WA="∵",UA="∵",VA="∵",jA="⦰",GA="϶",KA="ℬ",XA="ℬ",YA="Β",ZA="β",JA="ℶ",QA="≬",eM="𝔅",tM="𝔟",nM="⋂",rM="◯",iM="⋃",oM="⨀",sM="⨁",lM="⨂",aM="⨆",cM="★",uM="▽",fM="△",dM="⨄",hM="⋁",pM="⋀",gM="⤍",vM="⧫",mM="▪",yM="▴",bM="▾",wM="◂",xM="▸",_M="␣",SM="▒",kM="░",CM="▓",TM="█",EM="=⃥",LM="≡⃥",AM="⫭",MM="⌐",NM="𝔹",$M="𝕓",PM="⊥",OM="⊥",RM="⋈",DM="⧉",zM="┐",IM="╕",FM="╖",HM="╗",qM="┌",BM="╒",WM="╓",UM="╔",VM="─",jM="═",GM="┬",KM="╤",XM="╥",YM="╦",ZM="┴",JM="╧",QM="╨",eN="╩",tN="⊟",nN="⊞",rN="⊠",iN="┘",oN="╛",sN="╜",lN="╝",aN="└",cN="╘",uN="╙",fN="╚",dN="│",hN="║",pN="┼",gN="╪",vN="╫",mN="╬",yN="┤",bN="╡",wN="╢",xN="╣",_N="├",SN="╞",kN="╟",CN="╠",TN="‵",EN="˘",LN="˘",AN="¦",MN="𝒷",NN="ℬ",$N="⁏",PN="∽",ON="⋍",RN="⧅",DN="\\",zN="⟈",IN="•",FN="•",HN="≎",qN="⪮",BN="≏",WN="≎",UN="≏",VN="Ć",jN="ć",GN="⩄",KN="⩉",XN="⩋",YN="∩",ZN="⋒",JN="⩇",QN="⩀",e$="ⅅ",t$="∩︀",n$="⁁",r$="ˇ",i$="ℭ",o$="⩍",s$="Č",l$="č",a$="Ç",c$="ç",u$="Ĉ",f$="ĉ",d$="∰",h$="⩌",p$="⩐",g$="Ċ",v$="ċ",m$="¸",y$="¸",b$="⦲",w$="¢",x$="·",_$="·",S$="𝔠",k$="ℭ",C$="Ч",T$="ч",E$="✓",L$="✓",A$="Χ",M$="χ",N$="ˆ",$$="≗",P$="↺",O$="↻",R$="⊛",D$="⊚",z$="⊝",I$="⊙",F$="®",H$="Ⓢ",q$="⊖",B$="⊕",W$="⊗",U$="○",V$="⧃",j$="≗",G$="⨐",K$="⫯",X$="⧂",Y$="∲",Z$="”",J$="’",Q$="♣",eP="♣",tP=":",nP="∷",rP="⩴",iP="≔",oP="≔",sP=",",lP="@",aP="∁",cP="∘",uP="∁",fP="ℂ",dP="≅",hP="⩭",pP="≡",gP="∮",vP="∯",mP="∮",yP="𝕔",bP="ℂ",wP="∐",xP="∐",_P="©",SP="©",kP="℗",CP="∳",TP="↵",EP="✗",LP="⨯",AP="𝒞",MP="𝒸",NP="⫏",$P="⫑",PP="⫐",OP="⫒",RP="⋯",DP="⤸",zP="⤵",IP="⋞",FP="⋟",HP="↶",qP="⤽",BP="⩈",WP="⩆",UP="≍",VP="∪",jP="⋓",GP="⩊",KP="⊍",XP="⩅",YP="∪︀",ZP="↷",JP="⤼",QP="⋞",eO="⋟",tO="⋎",nO="⋏",rO="¤",iO="↶",oO="↷",sO="⋎",lO="⋏",aO="∲",cO="∱",uO="⌭",fO="†",dO="‡",hO="ℸ",pO="↓",gO="↡",vO="⇓",mO="‐",yO="⫤",bO="⊣",wO="⤏",xO="˝",_O="Ď",SO="ď",kO="Д",CO="д",TO="‡",EO="⇊",LO="ⅅ",AO="ⅆ",MO="⤑",NO="⩷",$O="°",PO="∇",OO="Δ",RO="δ",DO="⦱",zO="⥿",IO="𝔇",FO="𝔡",HO="⥥",qO="⇃",BO="⇂",WO="´",UO="˙",VO="˝",jO="`",GO="˜",KO="⋄",XO="⋄",YO="⋄",ZO="♦",JO="♦",QO="¨",eR="ⅆ",tR="ϝ",nR="⋲",rR="÷",iR="÷",oR="⋇",sR="⋇",lR="Ђ",aR="ђ",cR="⌞",uR="⌍",fR="$",dR="𝔻",hR="𝕕",pR="¨",gR="˙",vR="⃜",mR="≐",yR="≑",bR="≐",wR="∸",xR="∔",_R="⊡",SR="⌆",kR="∯",CR="¨",TR="⇓",ER="⇐",LR="⇔",AR="⫤",MR="⟸",NR="⟺",$R="⟹",PR="⇒",OR="⊨",RR="⇑",DR="⇕",zR="∥",IR="⤓",FR="↓",HR="↓",qR="⇓",BR="⇵",WR="̑",UR="⇊",VR="⇃",jR="⇂",GR="⥐",KR="⥞",XR="⥖",YR="↽",ZR="⥟",JR="⥗",QR="⇁",eD="↧",tD="⊤",nD="⤐",rD="⌟",iD="⌌",oD="𝒟",sD="𝒹",lD="Ѕ",aD="ѕ",cD="⧶",uD="Đ",fD="đ",dD="⋱",hD="▿",pD="▾",gD="⇵",vD="⥯",mD="⦦",yD="Џ",bD="џ",wD="⟿",xD="É",_D="é",SD="⩮",kD="Ě",CD="ě",TD="Ê",ED="ê",LD="≖",AD="≕",MD="Э",ND="э",$D="⩷",PD="Ė",OD="ė",RD="≑",DD="ⅇ",zD="≒",ID="𝔈",FD="𝔢",HD="⪚",qD="È",BD="è",WD="⪖",UD="⪘",VD="⪙",jD="∈",GD="⏧",KD="ℓ",XD="⪕",YD="⪗",ZD="Ē",JD="ē",QD="∅",ez="∅",tz="◻",nz="∅",rz="▫",iz=" ",oz=" ",sz=" ",lz="Ŋ",az="ŋ",cz=" ",uz="Ę",fz="ę",dz="𝔼",hz="𝕖",pz="⋕",gz="⧣",vz="⩱",mz="ε",yz="Ε",bz="ε",wz="ϵ",xz="≖",_z="≕",Sz="≂",kz="⪖",Cz="⪕",Tz="⩵",Ez="=",Lz="≂",Az="≟",Mz="⇌",Nz="≡",$z="⩸",Pz="⧥",Oz="⥱",Rz="≓",Dz="ℯ",zz="ℰ",Iz="≐",Fz="⩳",Hz="≂",qz="Η",Bz="η",Wz="Ð",Uz="ð",Vz="Ë",jz="ë",Gz="€",Kz="!",Xz="∃",Yz="∃",Zz="ℰ",Jz="ⅇ",Qz="ⅇ",e2="≒",t2="Ф",n2="ф",r2="♀",i2="ffi",o2="ff",s2="ffl",l2="𝔉",a2="𝔣",c2="fi",u2="◼",f2="▪",d2="fj",h2="♭",p2="fl",g2="▱",v2="ƒ",m2="𝔽",y2="𝕗",b2="∀",w2="∀",x2="⋔",_2="⫙",S2="ℱ",k2="⨍",C2="½",T2="⅓",E2="¼",L2="⅕",A2="⅙",M2="⅛",N2="⅔",$2="⅖",P2="¾",O2="⅗",R2="⅜",D2="⅘",z2="⅚",I2="⅝",F2="⅞",H2="⁄",q2="⌢",B2="𝒻",W2="ℱ",U2="ǵ",V2="Γ",j2="γ",G2="Ϝ",K2="ϝ",X2="⪆",Y2="Ğ",Z2="ğ",J2="Ģ",Q2="Ĝ",eI="ĝ",tI="Г",nI="г",rI="Ġ",iI="ġ",oI="≥",sI="≧",lI="⪌",aI="⋛",cI="≥",uI="≧",fI="⩾",dI="⪩",hI="⩾",pI="⪀",gI="⪂",vI="⪄",mI="⋛︀",yI="⪔",bI="𝔊",wI="𝔤",xI="≫",_I="⋙",SI="⋙",kI="ℷ",CI="Ѓ",TI="ѓ",EI="⪥",LI="≷",AI="⪒",MI="⪤",NI="⪊",$I="⪊",PI="⪈",OI="≩",RI="⪈",DI="≩",zI="⋧",II="𝔾",FI="𝕘",HI="`",qI="≥",BI="⋛",WI="≧",UI="⪢",VI="≷",jI="⩾",GI="≳",KI="𝒢",XI="ℊ",YI="≳",ZI="⪎",JI="⪐",QI="⪧",eF="⩺",tF=">",nF=">",rF="≫",iF="⋗",oF="⦕",sF="⩼",lF="⪆",aF="⥸",cF="⋗",uF="⋛",fF="⪌",dF="≷",hF="≳",pF="≩︀",gF="≩︀",vF="ˇ",mF=" ",yF="½",bF="ℋ",wF="Ъ",xF="ъ",_F="⥈",SF="↔",kF="⇔",CF="↭",TF="^",EF="ℏ",LF="Ĥ",AF="ĥ",MF="♥",NF="♥",$F="…",PF="⊹",OF="𝔥",RF="ℌ",DF="ℋ",zF="⤥",IF="⤦",FF="⇿",HF="∻",qF="↩",BF="↪",WF="𝕙",UF="ℍ",VF="―",jF="─",GF="𝒽",KF="ℋ",XF="ℏ",YF="Ħ",ZF="ħ",JF="≎",QF="≏",eH="⁃",tH="‐",nH="Í",rH="í",iH="",oH="Î",sH="î",lH="И",aH="и",cH="İ",uH="Е",fH="е",dH="¡",hH="⇔",pH="𝔦",gH="ℑ",vH="Ì",mH="ì",yH="ⅈ",bH="⨌",wH="∭",xH="⧜",_H="℩",SH="IJ",kH="ij",CH="Ī",TH="ī",EH="ℑ",LH="ⅈ",AH="ℐ",MH="ℑ",NH="ı",$H="ℑ",PH="⊷",OH="Ƶ",RH="⇒",DH="℅",zH="∞",IH="⧝",FH="ı",HH="⊺",qH="∫",BH="∬",WH="ℤ",UH="∫",VH="⊺",jH="⋂",GH="⨗",KH="⨼",XH="",YH="",ZH="Ё",JH="ё",QH="Į",eq="į",tq="𝕀",nq="𝕚",rq="Ι",iq="ι",oq="⨼",sq="¿",lq="𝒾",aq="ℐ",cq="∈",uq="⋵",fq="⋹",dq="⋴",hq="⋳",pq="∈",gq="",vq="Ĩ",mq="ĩ",yq="І",bq="і",wq="Ï",xq="ï",_q="Ĵ",Sq="ĵ",kq="Й",Cq="й",Tq="𝔍",Eq="𝔧",Lq="ȷ",Aq="𝕁",Mq="𝕛",Nq="𝒥",$q="𝒿",Pq="Ј",Oq="ј",Rq="Є",Dq="є",zq="Κ",Iq="κ",Fq="ϰ",Hq="Ķ",qq="ķ",Bq="К",Wq="к",Uq="𝔎",Vq="𝔨",jq="ĸ",Gq="Х",Kq="х",Xq="Ќ",Yq="ќ",Zq="𝕂",Jq="𝕜",Qq="𝒦",eB="𝓀",tB="⇚",nB="Ĺ",rB="ĺ",iB="⦴",oB="ℒ",sB="Λ",lB="λ",aB="⟨",cB="⟪",uB="⦑",fB="⟨",dB="⪅",hB="ℒ",pB="«",gB="⇤",vB="⤟",mB="←",yB="↞",bB="⇐",wB="⤝",xB="↩",_B="↫",SB="⤹",kB="⥳",CB="↢",TB="⤙",EB="⤛",LB="⪫",AB="⪭",MB="⪭︀",NB="⤌",$B="⤎",PB="❲",OB="{",RB="[",DB="⦋",zB="⦏",IB="⦍",FB="Ľ",HB="ľ",qB="Ļ",BB="ļ",WB="⌈",UB="{",VB="Л",jB="л",GB="⤶",KB="“",XB="„",YB="⥧",ZB="⥋",JB="↲",QB="≤",e3="≦",t3="⟨",n3="⇤",r3="←",i3="←",o3="⇐",s3="⇆",l3="↢",a3="⌈",c3="⟦",u3="⥡",f3="⥙",d3="⇃",h3="⌊",p3="↽",g3="↼",v3="⇇",m3="↔",y3="↔",b3="⇔",w3="⇆",x3="⇋",_3="↭",S3="⥎",k3="↤",C3="⊣",T3="⥚",E3="⋋",L3="⧏",A3="⊲",M3="⊴",N3="⥑",$3="⥠",P3="⥘",O3="↿",R3="⥒",D3="↼",z3="⪋",I3="⋚",F3="≤",H3="≦",q3="⩽",B3="⪨",W3="⩽",U3="⩿",V3="⪁",j3="⪃",G3="⋚︀",K3="⪓",X3="⪅",Y3="⋖",Z3="⋚",J3="⪋",Q3="⋚",e5="≦",t5="≶",n5="≶",r5="⪡",i5="≲",o5="⩽",s5="≲",l5="⥼",a5="⌊",c5="𝔏",u5="𝔩",f5="≶",d5="⪑",h5="⥢",p5="↽",g5="↼",v5="⥪",m5="▄",y5="Љ",b5="љ",w5="⇇",x5="≪",_5="⋘",S5="⌞",k5="⇚",C5="⥫",T5="◺",E5="Ŀ",L5="ŀ",A5="⎰",M5="⎰",N5="⪉",$5="⪉",P5="⪇",O5="≨",R5="⪇",D5="≨",z5="⋦",I5="⟬",F5="⇽",H5="⟦",q5="⟵",B5="⟵",W5="⟸",U5="⟷",V5="⟷",j5="⟺",G5="⟼",K5="⟶",X5="⟶",Y5="⟹",Z5="↫",J5="↬",Q5="⦅",e8="𝕃",t8="𝕝",n8="⨭",r8="⨴",i8="∗",o8="_",s8="↙",l8="↘",a8="◊",c8="◊",u8="⧫",f8="(",d8="⦓",h8="⇆",p8="⌟",g8="⇋",v8="⥭",m8="",y8="⊿",b8="‹",w8="𝓁",x8="ℒ",_8="↰",S8="↰",k8="≲",C8="⪍",T8="⪏",E8="[",L8="‘",A8="‚",M8="Ł",N8="ł",$8="⪦",P8="⩹",O8="<",R8="<",D8="≪",z8="⋖",I8="⋋",F8="⋉",H8="⥶",q8="⩻",B8="◃",W8="⊴",U8="◂",V8="⦖",j8="⥊",G8="⥦",K8="≨︀",X8="≨︀",Y8="¯",Z8="♂",J8="✠",Q8="✠",eW="↦",tW="↦",nW="↧",rW="↤",iW="↥",oW="▮",sW="⨩",lW="М",aW="м",cW="—",uW="∺",fW="∡",dW=" ",hW="ℳ",pW="𝔐",gW="𝔪",vW="℧",mW="µ",yW="*",bW="⫰",wW="∣",xW="·",_W="⊟",SW="−",kW="∸",CW="⨪",TW="∓",EW="⫛",LW="…",AW="∓",MW="⊧",NW="𝕄",$W="𝕞",PW="∓",OW="𝓂",RW="ℳ",DW="∾",zW="Μ",IW="μ",FW="⊸",HW="⊸",qW="∇",BW="Ń",WW="ń",UW="∠⃒",VW="≉",jW="⩰̸",GW="≋̸",KW="ʼn",XW="≉",YW="♮",ZW="ℕ",JW="♮",QW=" ",e4="≎̸",t4="≏̸",n4="⩃",r4="Ň",i4="ň",o4="Ņ",s4="ņ",l4="≇",a4="⩭̸",c4="⩂",u4="Н",f4="н",d4="–",h4="⤤",p4="↗",g4="⇗",v4="↗",m4="≠",y4="≐̸",b4="",w4="",x4="",_4="",S4="≢",k4="⤨",C4="≂̸",T4="≫",E4="≪",L4=`
|
|
22
22
|
`,A4="∄",M4="∄",N4="𝔑",$4="𝔫",P4="≧̸",O4="≱",R4="≱",D4="≧̸",z4="⩾̸",I4="⩾̸",F4="⋙̸",H4="≵",q4="≫⃒",B4="≯",W4="≯",U4="≫̸",V4="↮",j4="⇎",G4="⫲",K4="∋",X4="⋼",Y4="⋺",Z4="∋",J4="Њ",Q4="њ",eU="↚",tU="⇍",nU="‥",rU="≦̸",iU="≰",oU="↚",sU="⇍",lU="↮",aU="⇎",cU="≰",uU="≦̸",fU="⩽̸",dU="⩽̸",hU="≮",pU="⋘̸",gU="≴",vU="≪⃒",mU="≮",yU="⋪",bU="⋬",wU="≪̸",xU="∤",_U="",SU=" ",kU="𝕟",CU="ℕ",TU="⫬",EU="¬",LU="≢",AU="≭",MU="∦",NU="∉",$U="≠",PU="≂̸",OU="∄",RU="≯",DU="≱",zU="≧̸",IU="≫̸",FU="≹",HU="⩾̸",qU="≵",BU="≎̸",WU="≏̸",UU="∉",VU="⋵̸",jU="⋹̸",GU="∉",KU="⋷",XU="⋶",YU="⧏̸",ZU="⋪",JU="⋬",QU="≮",e6="≰",t6="≸",n6="≪̸",r6="⩽̸",i6="≴",o6="⪢̸",s6="⪡̸",l6="∌",a6="∌",c6="⋾",u6="⋽",f6="⊀",d6="⪯̸",h6="⋠",p6="∌",g6="⧐̸",v6="⋫",m6="⋭",y6="⊏̸",b6="⋢",w6="⊐̸",x6="⋣",_6="⊂⃒",S6="⊈",k6="⊁",C6="⪰̸",T6="⋡",E6="≿̸",L6="⊃⃒",A6="⊉",M6="≁",N6="≄",$6="≇",P6="≉",O6="∤",R6="∦",D6="∦",z6="⫽⃥",I6="∂̸",F6="⨔",H6="⊀",q6="⋠",B6="⊀",W6="⪯̸",U6="⪯̸",V6="⤳̸",j6="↛",G6="⇏",K6="↝̸",X6="↛",Y6="⇏",Z6="⋫",J6="⋭",Q6="⊁",eV="⋡",tV="⪰̸",nV="𝒩",rV="𝓃",iV="∤",oV="∦",sV="≁",lV="≄",aV="≄",cV="∤",uV="∦",fV="⋢",dV="⋣",hV="⊄",pV="⫅̸",gV="⊈",vV="⊂⃒",mV="⊈",yV="⫅̸",bV="⊁",wV="⪰̸",xV="⊅",_V="⫆̸",SV="⊉",kV="⊃⃒",CV="⊉",TV="⫆̸",EV="≹",LV="Ñ",AV="ñ",MV="≸",NV="⋪",$V="⋬",PV="⋫",OV="⋭",RV="Ν",DV="ν",zV="#",IV="№",FV=" ",HV="≍⃒",qV="⊬",BV="⊭",WV="⊮",UV="⊯",VV="≥⃒",jV=">⃒",GV="⤄",KV="⧞",XV="⤂",YV="≤⃒",ZV="<⃒",JV="⊴⃒",QV="⤃",ej="⊵⃒",tj="∼⃒",nj="⤣",rj="↖",ij="⇖",oj="↖",sj="⤧",lj="Ó",aj="ó",cj="⊛",uj="Ô",fj="ô",dj="⊚",hj="О",pj="о",gj="⊝",vj="Ő",mj="ő",yj="⨸",bj="⊙",wj="⦼",xj="Œ",_j="œ",Sj="⦿",kj="𝔒",Cj="𝔬",Tj="˛",Ej="Ò",Lj="ò",Aj="⧁",Mj="⦵",Nj="Ω",$j="∮",Pj="↺",Oj="⦾",Rj="⦻",Dj="‾",zj="⧀",Ij="Ō",Fj="ō",Hj="Ω",qj="ω",Bj="Ο",Wj="ο",Uj="⦶",Vj="⊖",jj="𝕆",Gj="𝕠",Kj="⦷",Xj="“",Yj="‘",Zj="⦹",Jj="⊕",Qj="↻",eG="⩔",tG="∨",nG="⩝",rG="ℴ",iG="ℴ",oG="ª",sG="º",lG="⊶",aG="⩖",cG="⩗",uG="⩛",fG="Ⓢ",dG="𝒪",hG="ℴ",pG="Ø",gG="ø",vG="⊘",mG="Õ",yG="õ",bG="⨶",wG="⨷",xG="⊗",_G="Ö",SG="ö",kG="⌽",CG="‾",TG="⏞",EG="⎴",LG="⏜",AG="¶",MG="∥",NG="∥",$G="⫳",PG="⫽",OG="∂",RG="∂",DG="П",zG="п",IG="%",FG=".",HG="‰",qG="⊥",BG="‱",WG="𝔓",UG="𝔭",VG="Φ",jG="φ",GG="ϕ",KG="ℳ",XG="☎",YG="Π",ZG="π",JG="⋔",QG="ϖ",e9="ℏ",t9="ℎ",n9="ℏ",r9="⨣",i9="⊞",o9="⨢",s9="+",l9="∔",a9="⨥",c9="⩲",u9="±",f9="±",d9="⨦",h9="⨧",p9="±",g9="ℌ",v9="⨕",m9="𝕡",y9="ℙ",b9="£",w9="⪷",x9="⪻",_9="≺",S9="≼",k9="⪷",C9="≺",T9="≼",E9="≺",L9="⪯",A9="≼",M9="≾",N9="⪯",$9="⪹",P9="⪵",O9="⋨",R9="⪯",D9="⪳",z9="≾",I9="′",F9="″",H9="ℙ",q9="⪹",B9="⪵",W9="⋨",U9="∏",V9="∏",j9="⌮",G9="⌒",K9="⌓",X9="∝",Y9="∝",Z9="∷",J9="∝",Q9="≾",e7="⊰",t7="𝒫",n7="𝓅",r7="Ψ",i7="ψ",o7=" ",s7="𝔔",l7="𝔮",a7="⨌",c7="𝕢",u7="ℚ",f7="⁗",d7="𝒬",h7="𝓆",p7="ℍ",g7="⨖",v7="?",m7="≟",y7='"',b7='"',w7="⇛",x7="∽̱",_7="Ŕ",S7="ŕ",k7="√",C7="⦳",T7="⟩",E7="⟫",L7="⦒",A7="⦥",M7="⟩",N7="»",$7="⥵",P7="⇥",O7="⤠",R7="⤳",D7="→",z7="↠",I7="⇒",F7="⤞",H7="↪",q7="↬",B7="⥅",W7="⥴",U7="⤖",V7="↣",j7="↝",G7="⤚",K7="⤜",X7="∶",Y7="ℚ",Z7="⤍",J7="⤏",Q7="⤐",eK="❳",tK="}",nK="]",rK="⦌",iK="⦎",oK="⦐",sK="Ř",lK="ř",aK="Ŗ",cK="ŗ",uK="⌉",fK="}",dK="Р",hK="р",pK="⤷",gK="⥩",vK="”",mK="”",yK="↳",bK="ℜ",wK="ℛ",xK="ℜ",_K="ℝ",SK="ℜ",kK="▭",CK="®",TK="®",EK="∋",LK="⇋",AK="⥯",MK="⥽",NK="⌋",$K="𝔯",PK="ℜ",OK="⥤",RK="⇁",DK="⇀",zK="⥬",IK="Ρ",FK="ρ",HK="ϱ",qK="⟩",BK="⇥",WK="→",UK="→",VK="⇒",jK="⇄",GK="↣",KK="⌉",XK="⟧",YK="⥝",ZK="⥕",JK="⇂",QK="⌋",eX="⇁",tX="⇀",nX="⇄",rX="⇌",iX="⇉",oX="↝",sX="↦",lX="⊢",aX="⥛",cX="⋌",uX="⧐",fX="⊳",dX="⊵",hX="⥏",pX="⥜",gX="⥔",vX="↾",mX="⥓",yX="⇀",bX="˚",wX="≓",xX="⇄",_X="⇌",SX="",kX="⎱",CX="⎱",TX="⫮",EX="⟭",LX="⇾",AX="⟧",MX="⦆",NX="𝕣",$X="ℝ",PX="⨮",OX="⨵",RX="⥰",DX=")",zX="⦔",IX="⨒",FX="⇉",HX="⇛",qX="›",BX="𝓇",WX="ℛ",UX="↱",VX="↱",jX="]",GX="’",KX="’",XX="⋌",YX="⋊",ZX="▹",JX="⊵",QX="▸",eY="⧎",tY="⧴",nY="⥨",rY="℞",iY="Ś",oY="ś",sY="‚",lY="⪸",aY="Š",cY="š",uY="⪼",fY="≻",dY="≽",hY="⪰",pY="⪴",gY="Ş",vY="ş",mY="Ŝ",yY="ŝ",bY="⪺",wY="⪶",xY="⋩",_Y="⨓",SY="≿",kY="С",CY="с",TY="⊡",EY="⋅",LY="⩦",AY="⤥",MY="↘",NY="⇘",$Y="↘",PY="§",OY=";",RY="⤩",DY="∖",zY="∖",IY="✶",FY="𝔖",HY="𝔰",qY="⌢",BY="♯",WY="Щ",UY="щ",VY="Ш",jY="ш",GY="↓",KY="←",XY="∣",YY="∥",ZY="→",JY="↑",QY="",eZ="Σ",tZ="σ",nZ="ς",rZ="ς",iZ="∼",oZ="⩪",sZ="≃",lZ="≃",aZ="⪞",cZ="⪠",uZ="⪝",fZ="⪟",dZ="≆",hZ="⨤",pZ="⥲",gZ="←",vZ="∘",mZ="∖",yZ="⨳",bZ="⧤",wZ="∣",xZ="⌣",_Z="⪪",SZ="⪬",kZ="⪬︀",CZ="Ь",TZ="ь",EZ="⌿",LZ="⧄",AZ="/",MZ="𝕊",NZ="𝕤",$Z="♠",PZ="♠",OZ="∥",RZ="⊓",DZ="⊓︀",zZ="⊔",IZ="⊔︀",FZ="√",HZ="⊏",qZ="⊑",BZ="⊏",WZ="⊑",UZ="⊐",VZ="⊒",jZ="⊐",GZ="⊒",KZ="□",XZ="□",YZ="⊓",ZZ="⊏",JZ="⊑",QZ="⊐",eJ="⊒",tJ="⊔",nJ="▪",rJ="□",iJ="▪",oJ="→",sJ="𝒮",lJ="𝓈",aJ="∖",cJ="⌣",uJ="⋆",fJ="⋆",dJ="☆",hJ="★",pJ="ϵ",gJ="ϕ",vJ="¯",mJ="⊂",yJ="⋐",bJ="⪽",wJ="⫅",xJ="⊆",_J="⫃",SJ="⫁",kJ="⫋",CJ="⊊",TJ="⪿",EJ="⥹",LJ="⊂",AJ="⋐",MJ="⊆",NJ="⫅",$J="⊆",PJ="⊊",OJ="⫋",RJ="⫇",DJ="⫕",zJ="⫓",IJ="⪸",FJ="≻",HJ="≽",qJ="≻",BJ="⪰",WJ="≽",UJ="≿",VJ="⪰",jJ="⪺",GJ="⪶",KJ="⋩",XJ="≿",YJ="∋",ZJ="∑",JJ="∑",QJ="♪",eQ="¹",tQ="²",nQ="³",rQ="⊃",iQ="⋑",oQ="⪾",sQ="⫘",lQ="⫆",aQ="⊇",cQ="⫄",uQ="⊃",fQ="⊇",dQ="⟉",hQ="⫗",pQ="⥻",gQ="⫂",vQ="⫌",mQ="⊋",yQ="⫀",bQ="⊃",wQ="⋑",xQ="⊇",_Q="⫆",SQ="⊋",kQ="⫌",CQ="⫈",TQ="⫔",EQ="⫖",LQ="⤦",AQ="↙",MQ="⇙",NQ="↙",$Q="⤪",PQ="ß",OQ=" ",RQ="⌖",DQ="Τ",zQ="τ",IQ="⎴",FQ="Ť",HQ="ť",qQ="Ţ",BQ="ţ",WQ="Т",UQ="т",VQ="⃛",jQ="⌕",GQ="𝔗",KQ="𝔱",XQ="∴",YQ="∴",ZQ="∴",JQ="Θ",QQ="θ",eee="ϑ",tee="ϑ",nee="≈",ree="∼",iee=" ",oee=" ",see=" ",lee="≈",aee="∼",cee="Þ",uee="þ",fee="˜",dee="∼",hee="≃",pee="≅",gee="≈",vee="⨱",mee="⊠",yee="×",bee="⨰",wee="∭",xee="⤨",_ee="⌶",See="⫱",kee="⊤",Cee="𝕋",Tee="𝕥",Eee="⫚",Lee="⤩",Aee="‴",Mee="™",Nee="™",$ee="▵",Pee="▿",Oee="◃",Ree="⊴",Dee="≜",zee="▹",Iee="⊵",Fee="◬",Hee="≜",qee="⨺",Bee="⃛",Wee="⨹",Uee="⧍",Vee="⨻",jee="⏢",Gee="𝒯",Kee="𝓉",Xee="Ц",Yee="ц",Zee="Ћ",Jee="ћ",Qee="Ŧ",ete="ŧ",tte="≬",nte="↞",rte="↠",ite="Ú",ote="ú",ste="↑",lte="↟",ate="⇑",cte="⥉",ute="Ў",fte="ў",dte="Ŭ",hte="ŭ",pte="Û",gte="û",vte="У",mte="у",yte="⇅",bte="Ű",wte="ű",xte="⥮",_te="⥾",Ste="𝔘",kte="𝔲",Cte="Ù",Tte="ù",Ete="⥣",Lte="↿",Ate="↾",Mte="▀",Nte="⌜",$te="⌜",Pte="⌏",Ote="◸",Rte="Ū",Dte="ū",zte="¨",Ite="_",Fte="⏟",Hte="⎵",qte="⏝",Bte="⋃",Wte="⊎",Ute="Ų",Vte="ų",jte="𝕌",Gte="𝕦",Kte="⤒",Xte="↑",Yte="↑",Zte="⇑",Jte="⇅",Qte="↕",ene="↕",tne="⇕",nne="⥮",rne="↿",ine="↾",one="⊎",sne="↖",lne="↗",ane="υ",cne="ϒ",une="ϒ",fne="Υ",dne="υ",hne="↥",pne="⊥",gne="⇈",vne="⌝",mne="⌝",yne="⌎",bne="Ů",wne="ů",xne="◹",_ne="𝒰",Sne="𝓊",kne="⋰",Cne="Ũ",Tne="ũ",Ene="▵",Lne="▴",Ane="⇈",Mne="Ü",Nne="ü",$ne="⦧",Pne="⦜",One="ϵ",Rne="ϰ",Dne="∅",zne="ϕ",Ine="ϖ",Fne="∝",Hne="↕",qne="⇕",Bne="ϱ",Wne="ς",Une="⊊︀",Vne="⫋︀",jne="⊋︀",Gne="⫌︀",Kne="ϑ",Xne="⊲",Yne="⊳",Zne="⫨",Jne="⫫",Qne="⫩",ere="В",tre="в",nre="⊢",rre="⊨",ire="⊩",ore="⊫",sre="⫦",lre="⊻",are="∨",cre="⋁",ure="≚",fre="⋮",dre="|",hre="‖",pre="|",gre="‖",vre="∣",mre="|",yre="❘",bre="≀",wre=" ",xre="𝔙",_re="𝔳",Sre="⊲",kre="⊂⃒",Cre="⊃⃒",Tre="𝕍",Ere="𝕧",Lre="∝",Are="⊳",Mre="𝒱",Nre="𝓋",$re="⫋︀",Pre="⊊︀",Ore="⫌︀",Rre="⊋︀",Dre="⊪",zre="⦚",Ire="Ŵ",Fre="ŵ",Hre="⩟",qre="∧",Bre="⋀",Wre="≙",Ure="℘",Vre="𝔚",jre="𝔴",Gre="𝕎",Kre="𝕨",Xre="℘",Yre="≀",Zre="≀",Jre="𝒲",Qre="𝓌",eie="⋂",tie="◯",nie="⋃",rie="▽",iie="𝔛",oie="𝔵",sie="⟷",lie="⟺",aie="Ξ",cie="ξ",uie="⟵",fie="⟸",die="⟼",hie="⋻",pie="⨀",gie="𝕏",vie="𝕩",mie="⨁",yie="⨂",bie="⟶",wie="⟹",xie="𝒳",_ie="𝓍",Sie="⨆",kie="⨄",Cie="△",Tie="⋁",Eie="⋀",Lie="Ý",Aie="ý",Mie="Я",Nie="я",$ie="Ŷ",Pie="ŷ",Oie="Ы",Rie="ы",Die="¥",zie="𝔜",Iie="𝔶",Fie="Ї",Hie="ї",qie="𝕐",Bie="𝕪",Wie="𝒴",Uie="𝓎",Vie="Ю",jie="ю",Gie="ÿ",Kie="Ÿ",Xie="Ź",Yie="ź",Zie="Ž",Jie="ž",Qie="З",eoe="з",toe="Ż",noe="ż",roe="ℨ",ioe="",ooe="Ζ",soe="ζ",loe="𝔷",aoe="ℨ",coe="Ж",uoe="ж",foe="⇝",doe="𝕫",hoe="ℤ",poe="𝒵",goe="𝓏",voe="",moe="",Vb={Aacute:tL,aacute:nL,Abreve:rL,abreve:iL,ac:oL,acd:sL,acE:lL,Acirc:aL,acirc:cL,acute:uL,Acy:fL,acy:dL,AElig:hL,aelig:pL,af:gL,Afr:vL,afr:mL,Agrave:yL,agrave:bL,alefsym:wL,aleph:xL,Alpha:_L,alpha:SL,Amacr:kL,amacr:CL,amalg:TL,amp:EL,AMP:LL,andand:AL,And:ML,and:NL,andd:$L,andslope:PL,andv:OL,ang:RL,ange:DL,angle:zL,angmsdaa:IL,angmsdab:FL,angmsdac:HL,angmsdad:qL,angmsdae:BL,angmsdaf:WL,angmsdag:UL,angmsdah:VL,angmsd:jL,angrt:GL,angrtvb:KL,angrtvbd:XL,angsph:YL,angst:ZL,angzarr:JL,Aogon:QL,aogon:eA,Aopf:tA,aopf:nA,apacir:rA,ap:iA,apE:oA,ape:sA,apid:lA,apos:aA,ApplyFunction:cA,approx:uA,approxeq:fA,Aring:dA,aring:hA,Ascr:pA,ascr:gA,Assign:vA,ast:mA,asymp:yA,asympeq:bA,Atilde:wA,atilde:xA,Auml:_A,auml:SA,awconint:kA,awint:CA,backcong:TA,backepsilon:EA,backprime:LA,backsim:AA,backsimeq:MA,Backslash:NA,Barv:$A,barvee:PA,barwed:OA,Barwed:RA,barwedge:DA,bbrk:zA,bbrktbrk:IA,bcong:FA,Bcy:HA,bcy:qA,bdquo:BA,becaus:WA,because:UA,Because:VA,bemptyv:jA,bepsi:GA,bernou:KA,Bernoullis:XA,Beta:YA,beta:ZA,beth:JA,between:QA,Bfr:eM,bfr:tM,bigcap:nM,bigcirc:rM,bigcup:iM,bigodot:oM,bigoplus:sM,bigotimes:lM,bigsqcup:aM,bigstar:cM,bigtriangledown:uM,bigtriangleup:fM,biguplus:dM,bigvee:hM,bigwedge:pM,bkarow:gM,blacklozenge:vM,blacksquare:mM,blacktriangle:yM,blacktriangledown:bM,blacktriangleleft:wM,blacktriangleright:xM,blank:_M,blk12:SM,blk14:kM,blk34:CM,block:TM,bne:EM,bnequiv:LM,bNot:AM,bnot:MM,Bopf:NM,bopf:$M,bot:PM,bottom:OM,bowtie:RM,boxbox:DM,boxdl:zM,boxdL:IM,boxDl:FM,boxDL:HM,boxdr:qM,boxdR:BM,boxDr:WM,boxDR:UM,boxh:VM,boxH:jM,boxhd:GM,boxHd:KM,boxhD:XM,boxHD:YM,boxhu:ZM,boxHu:JM,boxhU:QM,boxHU:eN,boxminus:tN,boxplus:nN,boxtimes:rN,boxul:iN,boxuL:oN,boxUl:sN,boxUL:lN,boxur:aN,boxuR:cN,boxUr:uN,boxUR:fN,boxv:dN,boxV:hN,boxvh:pN,boxvH:gN,boxVh:vN,boxVH:mN,boxvl:yN,boxvL:bN,boxVl:wN,boxVL:xN,boxvr:_N,boxvR:SN,boxVr:kN,boxVR:CN,bprime:TN,breve:EN,Breve:LN,brvbar:AN,bscr:MN,Bscr:NN,bsemi:$N,bsim:PN,bsime:ON,bsolb:RN,bsol:DN,bsolhsub:zN,bull:IN,bullet:FN,bump:HN,bumpE:qN,bumpe:BN,Bumpeq:WN,bumpeq:UN,Cacute:VN,cacute:jN,capand:GN,capbrcup:KN,capcap:XN,cap:YN,Cap:ZN,capcup:JN,capdot:QN,CapitalDifferentialD:e$,caps:t$,caret:n$,caron:r$,Cayleys:i$,ccaps:o$,Ccaron:s$,ccaron:l$,Ccedil:a$,ccedil:c$,Ccirc:u$,ccirc:f$,Cconint:d$,ccups:h$,ccupssm:p$,Cdot:g$,cdot:v$,cedil:m$,Cedilla:y$,cemptyv:b$,cent:w$,centerdot:x$,CenterDot:_$,cfr:S$,Cfr:k$,CHcy:C$,chcy:T$,check:E$,checkmark:L$,Chi:A$,chi:M$,circ:N$,circeq:$$,circlearrowleft:P$,circlearrowright:O$,circledast:R$,circledcirc:D$,circleddash:z$,CircleDot:I$,circledR:F$,circledS:H$,CircleMinus:q$,CirclePlus:B$,CircleTimes:W$,cir:U$,cirE:V$,cire:j$,cirfnint:G$,cirmid:K$,cirscir:X$,ClockwiseContourIntegral:Y$,CloseCurlyDoubleQuote:Z$,CloseCurlyQuote:J$,clubs:Q$,clubsuit:eP,colon:tP,Colon:nP,Colone:rP,colone:iP,coloneq:oP,comma:sP,commat:lP,comp:aP,compfn:cP,complement:uP,complexes:fP,cong:dP,congdot:hP,Congruent:pP,conint:gP,Conint:vP,ContourIntegral:mP,copf:yP,Copf:bP,coprod:wP,Coproduct:xP,copy:_P,COPY:SP,copysr:kP,CounterClockwiseContourIntegral:CP,crarr:TP,cross:EP,Cross:LP,Cscr:AP,cscr:MP,csub:NP,csube:$P,csup:PP,csupe:OP,ctdot:RP,cudarrl:DP,cudarrr:zP,cuepr:IP,cuesc:FP,cularr:HP,cularrp:qP,cupbrcap:BP,cupcap:WP,CupCap:UP,cup:VP,Cup:jP,cupcup:GP,cupdot:KP,cupor:XP,cups:YP,curarr:ZP,curarrm:JP,curlyeqprec:QP,curlyeqsucc:eO,curlyvee:tO,curlywedge:nO,curren:rO,curvearrowleft:iO,curvearrowright:oO,cuvee:sO,cuwed:lO,cwconint:aO,cwint:cO,cylcty:uO,dagger:fO,Dagger:dO,daleth:hO,darr:pO,Darr:gO,dArr:vO,dash:mO,Dashv:yO,dashv:bO,dbkarow:wO,dblac:xO,Dcaron:_O,dcaron:SO,Dcy:kO,dcy:CO,ddagger:TO,ddarr:EO,DD:LO,dd:AO,DDotrahd:MO,ddotseq:NO,deg:$O,Del:PO,Delta:OO,delta:RO,demptyv:DO,dfisht:zO,Dfr:IO,dfr:FO,dHar:HO,dharl:qO,dharr:BO,DiacriticalAcute:WO,DiacriticalDot:UO,DiacriticalDoubleAcute:VO,DiacriticalGrave:jO,DiacriticalTilde:GO,diam:KO,diamond:XO,Diamond:YO,diamondsuit:ZO,diams:JO,die:QO,DifferentialD:eR,digamma:tR,disin:nR,div:rR,divide:iR,divideontimes:oR,divonx:sR,DJcy:lR,djcy:aR,dlcorn:cR,dlcrop:uR,dollar:fR,Dopf:dR,dopf:hR,Dot:pR,dot:gR,DotDot:vR,doteq:mR,doteqdot:yR,DotEqual:bR,dotminus:wR,dotplus:xR,dotsquare:_R,doublebarwedge:SR,DoubleContourIntegral:kR,DoubleDot:CR,DoubleDownArrow:TR,DoubleLeftArrow:ER,DoubleLeftRightArrow:LR,DoubleLeftTee:AR,DoubleLongLeftArrow:MR,DoubleLongLeftRightArrow:NR,DoubleLongRightArrow:$R,DoubleRightArrow:PR,DoubleRightTee:OR,DoubleUpArrow:RR,DoubleUpDownArrow:DR,DoubleVerticalBar:zR,DownArrowBar:IR,downarrow:FR,DownArrow:HR,Downarrow:qR,DownArrowUpArrow:BR,DownBreve:WR,downdownarrows:UR,downharpoonleft:VR,downharpoonright:jR,DownLeftRightVector:GR,DownLeftTeeVector:KR,DownLeftVectorBar:XR,DownLeftVector:YR,DownRightTeeVector:ZR,DownRightVectorBar:JR,DownRightVector:QR,DownTeeArrow:eD,DownTee:tD,drbkarow:nD,drcorn:rD,drcrop:iD,Dscr:oD,dscr:sD,DScy:lD,dscy:aD,dsol:cD,Dstrok:uD,dstrok:fD,dtdot:dD,dtri:hD,dtrif:pD,duarr:gD,duhar:vD,dwangle:mD,DZcy:yD,dzcy:bD,dzigrarr:wD,Eacute:xD,eacute:_D,easter:SD,Ecaron:kD,ecaron:CD,Ecirc:TD,ecirc:ED,ecir:LD,ecolon:AD,Ecy:MD,ecy:ND,eDDot:$D,Edot:PD,edot:OD,eDot:RD,ee:DD,efDot:zD,Efr:ID,efr:FD,eg:HD,Egrave:qD,egrave:BD,egs:WD,egsdot:UD,el:VD,Element:jD,elinters:GD,ell:KD,els:XD,elsdot:YD,Emacr:ZD,emacr:JD,empty:QD,emptyset:ez,EmptySmallSquare:tz,emptyv:nz,EmptyVerySmallSquare:rz,emsp13:iz,emsp14:oz,emsp:sz,ENG:lz,eng:az,ensp:cz,Eogon:uz,eogon:fz,Eopf:dz,eopf:hz,epar:pz,eparsl:gz,eplus:vz,epsi:mz,Epsilon:yz,epsilon:bz,epsiv:wz,eqcirc:xz,eqcolon:_z,eqsim:Sz,eqslantgtr:kz,eqslantless:Cz,Equal:Tz,equals:Ez,EqualTilde:Lz,equest:Az,Equilibrium:Mz,equiv:Nz,equivDD:$z,eqvparsl:Pz,erarr:Oz,erDot:Rz,escr:Dz,Escr:zz,esdot:Iz,Esim:Fz,esim:Hz,Eta:qz,eta:Bz,ETH:Wz,eth:Uz,Euml:Vz,euml:jz,euro:Gz,excl:Kz,exist:Xz,Exists:Yz,expectation:Zz,exponentiale:Jz,ExponentialE:Qz,fallingdotseq:e2,Fcy:t2,fcy:n2,female:r2,ffilig:i2,fflig:o2,ffllig:s2,Ffr:l2,ffr:a2,filig:c2,FilledSmallSquare:u2,FilledVerySmallSquare:f2,fjlig:d2,flat:h2,fllig:p2,fltns:g2,fnof:v2,Fopf:m2,fopf:y2,forall:b2,ForAll:w2,fork:x2,forkv:_2,Fouriertrf:S2,fpartint:k2,frac12:C2,frac13:T2,frac14:E2,frac15:L2,frac16:A2,frac18:M2,frac23:N2,frac25:$2,frac34:P2,frac35:O2,frac38:R2,frac45:D2,frac56:z2,frac58:I2,frac78:F2,frasl:H2,frown:q2,fscr:B2,Fscr:W2,gacute:U2,Gamma:V2,gamma:j2,Gammad:G2,gammad:K2,gap:X2,Gbreve:Y2,gbreve:Z2,Gcedil:J2,Gcirc:Q2,gcirc:eI,Gcy:tI,gcy:nI,Gdot:rI,gdot:iI,ge:oI,gE:sI,gEl:lI,gel:aI,geq:cI,geqq:uI,geqslant:fI,gescc:dI,ges:hI,gesdot:pI,gesdoto:gI,gesdotol:vI,gesl:mI,gesles:yI,Gfr:bI,gfr:wI,gg:xI,Gg:_I,ggg:SI,gimel:kI,GJcy:CI,gjcy:TI,gla:EI,gl:LI,glE:AI,glj:MI,gnap:NI,gnapprox:$I,gne:PI,gnE:OI,gneq:RI,gneqq:DI,gnsim:zI,Gopf:II,gopf:FI,grave:HI,GreaterEqual:qI,GreaterEqualLess:BI,GreaterFullEqual:WI,GreaterGreater:UI,GreaterLess:VI,GreaterSlantEqual:jI,GreaterTilde:GI,Gscr:KI,gscr:XI,gsim:YI,gsime:ZI,gsiml:JI,gtcc:QI,gtcir:eF,gt:tF,GT:nF,Gt:rF,gtdot:iF,gtlPar:oF,gtquest:sF,gtrapprox:lF,gtrarr:aF,gtrdot:cF,gtreqless:uF,gtreqqless:fF,gtrless:dF,gtrsim:hF,gvertneqq:pF,gvnE:gF,Hacek:vF,hairsp:mF,half:yF,hamilt:bF,HARDcy:wF,hardcy:xF,harrcir:_F,harr:SF,hArr:kF,harrw:CF,Hat:TF,hbar:EF,Hcirc:LF,hcirc:AF,hearts:MF,heartsuit:NF,hellip:$F,hercon:PF,hfr:OF,Hfr:RF,HilbertSpace:DF,hksearow:zF,hkswarow:IF,hoarr:FF,homtht:HF,hookleftarrow:qF,hookrightarrow:BF,hopf:WF,Hopf:UF,horbar:VF,HorizontalLine:jF,hscr:GF,Hscr:KF,hslash:XF,Hstrok:YF,hstrok:ZF,HumpDownHump:JF,HumpEqual:QF,hybull:eH,hyphen:tH,Iacute:nH,iacute:rH,ic:iH,Icirc:oH,icirc:sH,Icy:lH,icy:aH,Idot:cH,IEcy:uH,iecy:fH,iexcl:dH,iff:hH,ifr:pH,Ifr:gH,Igrave:vH,igrave:mH,ii:yH,iiiint:bH,iiint:wH,iinfin:xH,iiota:_H,IJlig:SH,ijlig:kH,Imacr:CH,imacr:TH,image:EH,ImaginaryI:LH,imagline:AH,imagpart:MH,imath:NH,Im:$H,imof:PH,imped:OH,Implies:RH,incare:DH,in:"∈",infin:zH,infintie:IH,inodot:FH,intcal:HH,int:qH,Int:BH,integers:WH,Integral:UH,intercal:VH,Intersection:jH,intlarhk:GH,intprod:KH,InvisibleComma:XH,InvisibleTimes:YH,IOcy:ZH,iocy:JH,Iogon:QH,iogon:eq,Iopf:tq,iopf:nq,Iota:rq,iota:iq,iprod:oq,iquest:sq,iscr:lq,Iscr:aq,isin:cq,isindot:uq,isinE:fq,isins:dq,isinsv:hq,isinv:pq,it:gq,Itilde:vq,itilde:mq,Iukcy:yq,iukcy:bq,Iuml:wq,iuml:xq,Jcirc:_q,jcirc:Sq,Jcy:kq,jcy:Cq,Jfr:Tq,jfr:Eq,jmath:Lq,Jopf:Aq,jopf:Mq,Jscr:Nq,jscr:$q,Jsercy:Pq,jsercy:Oq,Jukcy:Rq,jukcy:Dq,Kappa:zq,kappa:Iq,kappav:Fq,Kcedil:Hq,kcedil:qq,Kcy:Bq,kcy:Wq,Kfr:Uq,kfr:Vq,kgreen:jq,KHcy:Gq,khcy:Kq,KJcy:Xq,kjcy:Yq,Kopf:Zq,kopf:Jq,Kscr:Qq,kscr:eB,lAarr:tB,Lacute:nB,lacute:rB,laemptyv:iB,lagran:oB,Lambda:sB,lambda:lB,lang:aB,Lang:cB,langd:uB,langle:fB,lap:dB,Laplacetrf:hB,laquo:pB,larrb:gB,larrbfs:vB,larr:mB,Larr:yB,lArr:bB,larrfs:wB,larrhk:xB,larrlp:_B,larrpl:SB,larrsim:kB,larrtl:CB,latail:TB,lAtail:EB,lat:LB,late:AB,lates:MB,lbarr:NB,lBarr:$B,lbbrk:PB,lbrace:OB,lbrack:RB,lbrke:DB,lbrksld:zB,lbrkslu:IB,Lcaron:FB,lcaron:HB,Lcedil:qB,lcedil:BB,lceil:WB,lcub:UB,Lcy:VB,lcy:jB,ldca:GB,ldquo:KB,ldquor:XB,ldrdhar:YB,ldrushar:ZB,ldsh:JB,le:QB,lE:e3,LeftAngleBracket:t3,LeftArrowBar:n3,leftarrow:r3,LeftArrow:i3,Leftarrow:o3,LeftArrowRightArrow:s3,leftarrowtail:l3,LeftCeiling:a3,LeftDoubleBracket:c3,LeftDownTeeVector:u3,LeftDownVectorBar:f3,LeftDownVector:d3,LeftFloor:h3,leftharpoondown:p3,leftharpoonup:g3,leftleftarrows:v3,leftrightarrow:m3,LeftRightArrow:y3,Leftrightarrow:b3,leftrightarrows:w3,leftrightharpoons:x3,leftrightsquigarrow:_3,LeftRightVector:S3,LeftTeeArrow:k3,LeftTee:C3,LeftTeeVector:T3,leftthreetimes:E3,LeftTriangleBar:L3,LeftTriangle:A3,LeftTriangleEqual:M3,LeftUpDownVector:N3,LeftUpTeeVector:$3,LeftUpVectorBar:P3,LeftUpVector:O3,LeftVectorBar:R3,LeftVector:D3,lEg:z3,leg:I3,leq:F3,leqq:H3,leqslant:q3,lescc:B3,les:W3,lesdot:U3,lesdoto:V3,lesdotor:j3,lesg:G3,lesges:K3,lessapprox:X3,lessdot:Y3,lesseqgtr:Z3,lesseqqgtr:J3,LessEqualGreater:Q3,LessFullEqual:e5,LessGreater:t5,lessgtr:n5,LessLess:r5,lesssim:i5,LessSlantEqual:o5,LessTilde:s5,lfisht:l5,lfloor:a5,Lfr:c5,lfr:u5,lg:f5,lgE:d5,lHar:h5,lhard:p5,lharu:g5,lharul:v5,lhblk:m5,LJcy:y5,ljcy:b5,llarr:w5,ll:x5,Ll:_5,llcorner:S5,Lleftarrow:k5,llhard:C5,lltri:T5,Lmidot:E5,lmidot:L5,lmoustache:A5,lmoust:M5,lnap:N5,lnapprox:$5,lne:P5,lnE:O5,lneq:R5,lneqq:D5,lnsim:z5,loang:I5,loarr:F5,lobrk:H5,longleftarrow:q5,LongLeftArrow:B5,Longleftarrow:W5,longleftrightarrow:U5,LongLeftRightArrow:V5,Longleftrightarrow:j5,longmapsto:G5,longrightarrow:K5,LongRightArrow:X5,Longrightarrow:Y5,looparrowleft:Z5,looparrowright:J5,lopar:Q5,Lopf:e8,lopf:t8,loplus:n8,lotimes:r8,lowast:i8,lowbar:o8,LowerLeftArrow:s8,LowerRightArrow:l8,loz:a8,lozenge:c8,lozf:u8,lpar:f8,lparlt:d8,lrarr:h8,lrcorner:p8,lrhar:g8,lrhard:v8,lrm:m8,lrtri:y8,lsaquo:b8,lscr:w8,Lscr:x8,lsh:_8,Lsh:S8,lsim:k8,lsime:C8,lsimg:T8,lsqb:E8,lsquo:L8,lsquor:A8,Lstrok:M8,lstrok:N8,ltcc:$8,ltcir:P8,lt:O8,LT:R8,Lt:D8,ltdot:z8,lthree:I8,ltimes:F8,ltlarr:H8,ltquest:q8,ltri:B8,ltrie:W8,ltrif:U8,ltrPar:V8,lurdshar:j8,luruhar:G8,lvertneqq:K8,lvnE:X8,macr:Y8,male:Z8,malt:J8,maltese:Q8,Map:"⤅",map:eW,mapsto:tW,mapstodown:nW,mapstoleft:rW,mapstoup:iW,marker:oW,mcomma:sW,Mcy:lW,mcy:aW,mdash:cW,mDDot:uW,measuredangle:fW,MediumSpace:dW,Mellintrf:hW,Mfr:pW,mfr:gW,mho:vW,micro:mW,midast:yW,midcir:bW,mid:wW,middot:xW,minusb:_W,minus:SW,minusd:kW,minusdu:CW,MinusPlus:TW,mlcp:EW,mldr:LW,mnplus:AW,models:MW,Mopf:NW,mopf:$W,mp:PW,mscr:OW,Mscr:RW,mstpos:DW,Mu:zW,mu:IW,multimap:FW,mumap:HW,nabla:qW,Nacute:BW,nacute:WW,nang:UW,nap:VW,napE:jW,napid:GW,napos:KW,napprox:XW,natural:YW,naturals:ZW,natur:JW,nbsp:QW,nbump:e4,nbumpe:t4,ncap:n4,Ncaron:r4,ncaron:i4,Ncedil:o4,ncedil:s4,ncong:l4,ncongdot:a4,ncup:c4,Ncy:u4,ncy:f4,ndash:d4,nearhk:h4,nearr:p4,neArr:g4,nearrow:v4,ne:m4,nedot:y4,NegativeMediumSpace:b4,NegativeThickSpace:w4,NegativeThinSpace:x4,NegativeVeryThinSpace:_4,nequiv:S4,nesear:k4,nesim:C4,NestedGreaterGreater:T4,NestedLessLess:E4,NewLine:L4,nexist:A4,nexists:M4,Nfr:N4,nfr:$4,ngE:P4,nge:O4,ngeq:R4,ngeqq:D4,ngeqslant:z4,nges:I4,nGg:F4,ngsim:H4,nGt:q4,ngt:B4,ngtr:W4,nGtv:U4,nharr:V4,nhArr:j4,nhpar:G4,ni:K4,nis:X4,nisd:Y4,niv:Z4,NJcy:J4,njcy:Q4,nlarr:eU,nlArr:tU,nldr:nU,nlE:rU,nle:iU,nleftarrow:oU,nLeftarrow:sU,nleftrightarrow:lU,nLeftrightarrow:aU,nleq:cU,nleqq:uU,nleqslant:fU,nles:dU,nless:hU,nLl:pU,nlsim:gU,nLt:vU,nlt:mU,nltri:yU,nltrie:bU,nLtv:wU,nmid:xU,NoBreak:_U,NonBreakingSpace:SU,nopf:kU,Nopf:CU,Not:TU,not:EU,NotCongruent:LU,NotCupCap:AU,NotDoubleVerticalBar:MU,NotElement:NU,NotEqual:$U,NotEqualTilde:PU,NotExists:OU,NotGreater:RU,NotGreaterEqual:DU,NotGreaterFullEqual:zU,NotGreaterGreater:IU,NotGreaterLess:FU,NotGreaterSlantEqual:HU,NotGreaterTilde:qU,NotHumpDownHump:BU,NotHumpEqual:WU,notin:UU,notindot:VU,notinE:jU,notinva:GU,notinvb:KU,notinvc:XU,NotLeftTriangleBar:YU,NotLeftTriangle:ZU,NotLeftTriangleEqual:JU,NotLess:QU,NotLessEqual:e6,NotLessGreater:t6,NotLessLess:n6,NotLessSlantEqual:r6,NotLessTilde:i6,NotNestedGreaterGreater:o6,NotNestedLessLess:s6,notni:l6,notniva:a6,notnivb:c6,notnivc:u6,NotPrecedes:f6,NotPrecedesEqual:d6,NotPrecedesSlantEqual:h6,NotReverseElement:p6,NotRightTriangleBar:g6,NotRightTriangle:v6,NotRightTriangleEqual:m6,NotSquareSubset:y6,NotSquareSubsetEqual:b6,NotSquareSuperset:w6,NotSquareSupersetEqual:x6,NotSubset:_6,NotSubsetEqual:S6,NotSucceeds:k6,NotSucceedsEqual:C6,NotSucceedsSlantEqual:T6,NotSucceedsTilde:E6,NotSuperset:L6,NotSupersetEqual:A6,NotTilde:M6,NotTildeEqual:N6,NotTildeFullEqual:$6,NotTildeTilde:P6,NotVerticalBar:O6,nparallel:R6,npar:D6,nparsl:z6,npart:I6,npolint:F6,npr:H6,nprcue:q6,nprec:B6,npreceq:W6,npre:U6,nrarrc:V6,nrarr:j6,nrArr:G6,nrarrw:K6,nrightarrow:X6,nRightarrow:Y6,nrtri:Z6,nrtrie:J6,nsc:Q6,nsccue:eV,nsce:tV,Nscr:nV,nscr:rV,nshortmid:iV,nshortparallel:oV,nsim:sV,nsime:lV,nsimeq:aV,nsmid:cV,nspar:uV,nsqsube:fV,nsqsupe:dV,nsub:hV,nsubE:pV,nsube:gV,nsubset:vV,nsubseteq:mV,nsubseteqq:yV,nsucc:bV,nsucceq:wV,nsup:xV,nsupE:_V,nsupe:SV,nsupset:kV,nsupseteq:CV,nsupseteqq:TV,ntgl:EV,Ntilde:LV,ntilde:AV,ntlg:MV,ntriangleleft:NV,ntrianglelefteq:$V,ntriangleright:PV,ntrianglerighteq:OV,Nu:RV,nu:DV,num:zV,numero:IV,numsp:FV,nvap:HV,nvdash:qV,nvDash:BV,nVdash:WV,nVDash:UV,nvge:VV,nvgt:jV,nvHarr:GV,nvinfin:KV,nvlArr:XV,nvle:YV,nvlt:ZV,nvltrie:JV,nvrArr:QV,nvrtrie:ej,nvsim:tj,nwarhk:nj,nwarr:rj,nwArr:ij,nwarrow:oj,nwnear:sj,Oacute:lj,oacute:aj,oast:cj,Ocirc:uj,ocirc:fj,ocir:dj,Ocy:hj,ocy:pj,odash:gj,Odblac:vj,odblac:mj,odiv:yj,odot:bj,odsold:wj,OElig:xj,oelig:_j,ofcir:Sj,Ofr:kj,ofr:Cj,ogon:Tj,Ograve:Ej,ograve:Lj,ogt:Aj,ohbar:Mj,ohm:Nj,oint:$j,olarr:Pj,olcir:Oj,olcross:Rj,oline:Dj,olt:zj,Omacr:Ij,omacr:Fj,Omega:Hj,omega:qj,Omicron:Bj,omicron:Wj,omid:Uj,ominus:Vj,Oopf:jj,oopf:Gj,opar:Kj,OpenCurlyDoubleQuote:Xj,OpenCurlyQuote:Yj,operp:Zj,oplus:Jj,orarr:Qj,Or:eG,or:tG,ord:nG,order:rG,orderof:iG,ordf:oG,ordm:sG,origof:lG,oror:aG,orslope:cG,orv:uG,oS:fG,Oscr:dG,oscr:hG,Oslash:pG,oslash:gG,osol:vG,Otilde:mG,otilde:yG,otimesas:bG,Otimes:wG,otimes:xG,Ouml:_G,ouml:SG,ovbar:kG,OverBar:CG,OverBrace:TG,OverBracket:EG,OverParenthesis:LG,para:AG,parallel:MG,par:NG,parsim:$G,parsl:PG,part:OG,PartialD:RG,Pcy:DG,pcy:zG,percnt:IG,period:FG,permil:HG,perp:qG,pertenk:BG,Pfr:WG,pfr:UG,Phi:VG,phi:jG,phiv:GG,phmmat:KG,phone:XG,Pi:YG,pi:ZG,pitchfork:JG,piv:QG,planck:e9,planckh:t9,plankv:n9,plusacir:r9,plusb:i9,pluscir:o9,plus:s9,plusdo:l9,plusdu:a9,pluse:c9,PlusMinus:u9,plusmn:f9,plussim:d9,plustwo:h9,pm:p9,Poincareplane:g9,pointint:v9,popf:m9,Popf:y9,pound:b9,prap:w9,Pr:x9,pr:_9,prcue:S9,precapprox:k9,prec:C9,preccurlyeq:T9,Precedes:E9,PrecedesEqual:L9,PrecedesSlantEqual:A9,PrecedesTilde:M9,preceq:N9,precnapprox:$9,precneqq:P9,precnsim:O9,pre:R9,prE:D9,precsim:z9,prime:I9,Prime:F9,primes:H9,prnap:q9,prnE:B9,prnsim:W9,prod:U9,Product:V9,profalar:j9,profline:G9,profsurf:K9,prop:X9,Proportional:Y9,Proportion:Z9,propto:J9,prsim:Q9,prurel:e7,Pscr:t7,pscr:n7,Psi:r7,psi:i7,puncsp:o7,Qfr:s7,qfr:l7,qint:a7,qopf:c7,Qopf:u7,qprime:f7,Qscr:d7,qscr:h7,quaternions:p7,quatint:g7,quest:v7,questeq:m7,quot:y7,QUOT:b7,rAarr:w7,race:x7,Racute:_7,racute:S7,radic:k7,raemptyv:C7,rang:T7,Rang:E7,rangd:L7,range:A7,rangle:M7,raquo:N7,rarrap:$7,rarrb:P7,rarrbfs:O7,rarrc:R7,rarr:D7,Rarr:z7,rArr:I7,rarrfs:F7,rarrhk:H7,rarrlp:q7,rarrpl:B7,rarrsim:W7,Rarrtl:U7,rarrtl:V7,rarrw:j7,ratail:G7,rAtail:K7,ratio:X7,rationals:Y7,rbarr:Z7,rBarr:J7,RBarr:Q7,rbbrk:eK,rbrace:tK,rbrack:nK,rbrke:rK,rbrksld:iK,rbrkslu:oK,Rcaron:sK,rcaron:lK,Rcedil:aK,rcedil:cK,rceil:uK,rcub:fK,Rcy:dK,rcy:hK,rdca:pK,rdldhar:gK,rdquo:vK,rdquor:mK,rdsh:yK,real:bK,realine:wK,realpart:xK,reals:_K,Re:SK,rect:kK,reg:CK,REG:TK,ReverseElement:EK,ReverseEquilibrium:LK,ReverseUpEquilibrium:AK,rfisht:MK,rfloor:NK,rfr:$K,Rfr:PK,rHar:OK,rhard:RK,rharu:DK,rharul:zK,Rho:IK,rho:FK,rhov:HK,RightAngleBracket:qK,RightArrowBar:BK,rightarrow:WK,RightArrow:UK,Rightarrow:VK,RightArrowLeftArrow:jK,rightarrowtail:GK,RightCeiling:KK,RightDoubleBracket:XK,RightDownTeeVector:YK,RightDownVectorBar:ZK,RightDownVector:JK,RightFloor:QK,rightharpoondown:eX,rightharpoonup:tX,rightleftarrows:nX,rightleftharpoons:rX,rightrightarrows:iX,rightsquigarrow:oX,RightTeeArrow:sX,RightTee:lX,RightTeeVector:aX,rightthreetimes:cX,RightTriangleBar:uX,RightTriangle:fX,RightTriangleEqual:dX,RightUpDownVector:hX,RightUpTeeVector:pX,RightUpVectorBar:gX,RightUpVector:vX,RightVectorBar:mX,RightVector:yX,ring:bX,risingdotseq:wX,rlarr:xX,rlhar:_X,rlm:SX,rmoustache:kX,rmoust:CX,rnmid:TX,roang:EX,roarr:LX,robrk:AX,ropar:MX,ropf:NX,Ropf:$X,roplus:PX,rotimes:OX,RoundImplies:RX,rpar:DX,rpargt:zX,rppolint:IX,rrarr:FX,Rrightarrow:HX,rsaquo:qX,rscr:BX,Rscr:WX,rsh:UX,Rsh:VX,rsqb:jX,rsquo:GX,rsquor:KX,rthree:XX,rtimes:YX,rtri:ZX,rtrie:JX,rtrif:QX,rtriltri:eY,RuleDelayed:tY,ruluhar:nY,rx:rY,Sacute:iY,sacute:oY,sbquo:sY,scap:lY,Scaron:aY,scaron:cY,Sc:uY,sc:fY,sccue:dY,sce:hY,scE:pY,Scedil:gY,scedil:vY,Scirc:mY,scirc:yY,scnap:bY,scnE:wY,scnsim:xY,scpolint:_Y,scsim:SY,Scy:kY,scy:CY,sdotb:TY,sdot:EY,sdote:LY,searhk:AY,searr:MY,seArr:NY,searrow:$Y,sect:PY,semi:OY,seswar:RY,setminus:DY,setmn:zY,sext:IY,Sfr:FY,sfr:HY,sfrown:qY,sharp:BY,SHCHcy:WY,shchcy:UY,SHcy:VY,shcy:jY,ShortDownArrow:GY,ShortLeftArrow:KY,shortmid:XY,shortparallel:YY,ShortRightArrow:ZY,ShortUpArrow:JY,shy:QY,Sigma:eZ,sigma:tZ,sigmaf:nZ,sigmav:rZ,sim:iZ,simdot:oZ,sime:sZ,simeq:lZ,simg:aZ,simgE:cZ,siml:uZ,simlE:fZ,simne:dZ,simplus:hZ,simrarr:pZ,slarr:gZ,SmallCircle:vZ,smallsetminus:mZ,smashp:yZ,smeparsl:bZ,smid:wZ,smile:xZ,smt:_Z,smte:SZ,smtes:kZ,SOFTcy:CZ,softcy:TZ,solbar:EZ,solb:LZ,sol:AZ,Sopf:MZ,sopf:NZ,spades:$Z,spadesuit:PZ,spar:OZ,sqcap:RZ,sqcaps:DZ,sqcup:zZ,sqcups:IZ,Sqrt:FZ,sqsub:HZ,sqsube:qZ,sqsubset:BZ,sqsubseteq:WZ,sqsup:UZ,sqsupe:VZ,sqsupset:jZ,sqsupseteq:GZ,square:KZ,Square:XZ,SquareIntersection:YZ,SquareSubset:ZZ,SquareSubsetEqual:JZ,SquareSuperset:QZ,SquareSupersetEqual:eJ,SquareUnion:tJ,squarf:nJ,squ:rJ,squf:iJ,srarr:oJ,Sscr:sJ,sscr:lJ,ssetmn:aJ,ssmile:cJ,sstarf:uJ,Star:fJ,star:dJ,starf:hJ,straightepsilon:pJ,straightphi:gJ,strns:vJ,sub:mJ,Sub:yJ,subdot:bJ,subE:wJ,sube:xJ,subedot:_J,submult:SJ,subnE:kJ,subne:CJ,subplus:TJ,subrarr:EJ,subset:LJ,Subset:AJ,subseteq:MJ,subseteqq:NJ,SubsetEqual:$J,subsetneq:PJ,subsetneqq:OJ,subsim:RJ,subsub:DJ,subsup:zJ,succapprox:IJ,succ:FJ,succcurlyeq:HJ,Succeeds:qJ,SucceedsEqual:BJ,SucceedsSlantEqual:WJ,SucceedsTilde:UJ,succeq:VJ,succnapprox:jJ,succneqq:GJ,succnsim:KJ,succsim:XJ,SuchThat:YJ,sum:ZJ,Sum:JJ,sung:QJ,sup1:eQ,sup2:tQ,sup3:nQ,sup:rQ,Sup:iQ,supdot:oQ,supdsub:sQ,supE:lQ,supe:aQ,supedot:cQ,Superset:uQ,SupersetEqual:fQ,suphsol:dQ,suphsub:hQ,suplarr:pQ,supmult:gQ,supnE:vQ,supne:mQ,supplus:yQ,supset:bQ,Supset:wQ,supseteq:xQ,supseteqq:_Q,supsetneq:SQ,supsetneqq:kQ,supsim:CQ,supsub:TQ,supsup:EQ,swarhk:LQ,swarr:AQ,swArr:MQ,swarrow:NQ,swnwar:$Q,szlig:PQ,Tab:OQ,target:RQ,Tau:DQ,tau:zQ,tbrk:IQ,Tcaron:FQ,tcaron:HQ,Tcedil:qQ,tcedil:BQ,Tcy:WQ,tcy:UQ,tdot:VQ,telrec:jQ,Tfr:GQ,tfr:KQ,there4:XQ,therefore:YQ,Therefore:ZQ,Theta:JQ,theta:QQ,thetasym:eee,thetav:tee,thickapprox:nee,thicksim:ree,ThickSpace:iee,ThinSpace:oee,thinsp:see,thkap:lee,thksim:aee,THORN:cee,thorn:uee,tilde:fee,Tilde:dee,TildeEqual:hee,TildeFullEqual:pee,TildeTilde:gee,timesbar:vee,timesb:mee,times:yee,timesd:bee,tint:wee,toea:xee,topbot:_ee,topcir:See,top:kee,Topf:Cee,topf:Tee,topfork:Eee,tosa:Lee,tprime:Aee,trade:Mee,TRADE:Nee,triangle:$ee,triangledown:Pee,triangleleft:Oee,trianglelefteq:Ree,triangleq:Dee,triangleright:zee,trianglerighteq:Iee,tridot:Fee,trie:Hee,triminus:qee,TripleDot:Bee,triplus:Wee,trisb:Uee,tritime:Vee,trpezium:jee,Tscr:Gee,tscr:Kee,TScy:Xee,tscy:Yee,TSHcy:Zee,tshcy:Jee,Tstrok:Qee,tstrok:ete,twixt:tte,twoheadleftarrow:nte,twoheadrightarrow:rte,Uacute:ite,uacute:ote,uarr:ste,Uarr:lte,uArr:ate,Uarrocir:cte,Ubrcy:ute,ubrcy:fte,Ubreve:dte,ubreve:hte,Ucirc:pte,ucirc:gte,Ucy:vte,ucy:mte,udarr:yte,Udblac:bte,udblac:wte,udhar:xte,ufisht:_te,Ufr:Ste,ufr:kte,Ugrave:Cte,ugrave:Tte,uHar:Ete,uharl:Lte,uharr:Ate,uhblk:Mte,ulcorn:Nte,ulcorner:$te,ulcrop:Pte,ultri:Ote,Umacr:Rte,umacr:Dte,uml:zte,UnderBar:Ite,UnderBrace:Fte,UnderBracket:Hte,UnderParenthesis:qte,Union:Bte,UnionPlus:Wte,Uogon:Ute,uogon:Vte,Uopf:jte,uopf:Gte,UpArrowBar:Kte,uparrow:Xte,UpArrow:Yte,Uparrow:Zte,UpArrowDownArrow:Jte,updownarrow:Qte,UpDownArrow:ene,Updownarrow:tne,UpEquilibrium:nne,upharpoonleft:rne,upharpoonright:ine,uplus:one,UpperLeftArrow:sne,UpperRightArrow:lne,upsi:ane,Upsi:cne,upsih:une,Upsilon:fne,upsilon:dne,UpTeeArrow:hne,UpTee:pne,upuparrows:gne,urcorn:vne,urcorner:mne,urcrop:yne,Uring:bne,uring:wne,urtri:xne,Uscr:_ne,uscr:Sne,utdot:kne,Utilde:Cne,utilde:Tne,utri:Ene,utrif:Lne,uuarr:Ane,Uuml:Mne,uuml:Nne,uwangle:$ne,vangrt:Pne,varepsilon:One,varkappa:Rne,varnothing:Dne,varphi:zne,varpi:Ine,varpropto:Fne,varr:Hne,vArr:qne,varrho:Bne,varsigma:Wne,varsubsetneq:Une,varsubsetneqq:Vne,varsupsetneq:jne,varsupsetneqq:Gne,vartheta:Kne,vartriangleleft:Xne,vartriangleright:Yne,vBar:Zne,Vbar:Jne,vBarv:Qne,Vcy:ere,vcy:tre,vdash:nre,vDash:rre,Vdash:ire,VDash:ore,Vdashl:sre,veebar:lre,vee:are,Vee:cre,veeeq:ure,vellip:fre,verbar:dre,Verbar:hre,vert:pre,Vert:gre,VerticalBar:vre,VerticalLine:mre,VerticalSeparator:yre,VerticalTilde:bre,VeryThinSpace:wre,Vfr:xre,vfr:_re,vltri:Sre,vnsub:kre,vnsup:Cre,Vopf:Tre,vopf:Ere,vprop:Lre,vrtri:Are,Vscr:Mre,vscr:Nre,vsubnE:$re,vsubne:Pre,vsupnE:Ore,vsupne:Rre,Vvdash:Dre,vzigzag:zre,Wcirc:Ire,wcirc:Fre,wedbar:Hre,wedge:qre,Wedge:Bre,wedgeq:Wre,weierp:Ure,Wfr:Vre,wfr:jre,Wopf:Gre,wopf:Kre,wp:Xre,wr:Yre,wreath:Zre,Wscr:Jre,wscr:Qre,xcap:eie,xcirc:tie,xcup:nie,xdtri:rie,Xfr:iie,xfr:oie,xharr:sie,xhArr:lie,Xi:aie,xi:cie,xlarr:uie,xlArr:fie,xmap:die,xnis:hie,xodot:pie,Xopf:gie,xopf:vie,xoplus:mie,xotime:yie,xrarr:bie,xrArr:wie,Xscr:xie,xscr:_ie,xsqcup:Sie,xuplus:kie,xutri:Cie,xvee:Tie,xwedge:Eie,Yacute:Lie,yacute:Aie,YAcy:Mie,yacy:Nie,Ycirc:$ie,ycirc:Pie,Ycy:Oie,ycy:Rie,yen:Die,Yfr:zie,yfr:Iie,YIcy:Fie,yicy:Hie,Yopf:qie,yopf:Bie,Yscr:Wie,yscr:Uie,YUcy:Vie,yucy:jie,yuml:Gie,Yuml:Kie,Zacute:Xie,zacute:Yie,Zcaron:Zie,zcaron:Jie,Zcy:Qie,zcy:eoe,Zdot:toe,zdot:noe,zeetrf:roe,ZeroWidthSpace:ioe,Zeta:ooe,zeta:soe,zfr:loe,Zfr:aoe,ZHcy:coe,zhcy:uoe,zigrarr:foe,zopf:doe,Zopf:hoe,Zscr:poe,zscr:goe,zwj:voe,zwnj:moe},yoe="Á",boe="á",woe="Â",xoe="â",_oe="´",Soe="Æ",koe="æ",Coe="À",Toe="à",Eoe="&",Loe="&",Aoe="Å",Moe="å",Noe="Ã",$oe="ã",Poe="Ä",Ooe="ä",Roe="¦",Doe="Ç",zoe="ç",Ioe="¸",Foe="¢",Hoe="©",qoe="©",Boe="¤",Woe="°",Uoe="÷",Voe="É",joe="é",Goe="Ê",Koe="ê",Xoe="È",Yoe="è",Zoe="Ð",Joe="ð",Qoe="Ë",ese="ë",tse="½",nse="¼",rse="¾",ise=">",ose=">",sse="Í",lse="í",ase="Î",cse="î",use="¡",fse="Ì",dse="ì",hse="¿",pse="Ï",gse="ï",vse="«",mse="<",yse="<",bse="¯",wse="µ",xse="·",_se=" ",Sse="¬",kse="Ñ",Cse="ñ",Tse="Ó",Ese="ó",Lse="Ô",Ase="ô",Mse="Ò",Nse="ò",$se="ª",Pse="º",Ose="Ø",Rse="ø",Dse="Õ",zse="õ",Ise="Ö",Fse="ö",Hse="¶",qse="±",Bse="£",Wse='"',Use='"',Vse="»",jse="®",Gse="®",Kse="§",Xse="",Yse="¹",Zse="²",Jse="³",Qse="ß",ele="Þ",tle="þ",nle="×",rle="Ú",ile="ú",ole="Û",sle="û",lle="Ù",ale="ù",cle="¨",ule="Ü",fle="ü",dle="Ý",hle="ý",ple="¥",gle="ÿ",vle={Aacute:yoe,aacute:boe,Acirc:woe,acirc:xoe,acute:_oe,AElig:Soe,aelig:koe,Agrave:Coe,agrave:Toe,amp:Eoe,AMP:Loe,Aring:Aoe,aring:Moe,Atilde:Noe,atilde:$oe,Auml:Poe,auml:Ooe,brvbar:Roe,Ccedil:Doe,ccedil:zoe,cedil:Ioe,cent:Foe,copy:Hoe,COPY:qoe,curren:Boe,deg:Woe,divide:Uoe,Eacute:Voe,eacute:joe,Ecirc:Goe,ecirc:Koe,Egrave:Xoe,egrave:Yoe,ETH:Zoe,eth:Joe,Euml:Qoe,euml:ese,frac12:tse,frac14:nse,frac34:rse,gt:ise,GT:ose,Iacute:sse,iacute:lse,Icirc:ase,icirc:cse,iexcl:use,Igrave:fse,igrave:dse,iquest:hse,Iuml:pse,iuml:gse,laquo:vse,lt:mse,LT:yse,macr:bse,micro:wse,middot:xse,nbsp:_se,not:Sse,Ntilde:kse,ntilde:Cse,Oacute:Tse,oacute:Ese,Ocirc:Lse,ocirc:Ase,Ograve:Mse,ograve:Nse,ordf:$se,ordm:Pse,Oslash:Ose,oslash:Rse,Otilde:Dse,otilde:zse,Ouml:Ise,ouml:Fse,para:Hse,plusmn:qse,pound:Bse,quot:Wse,QUOT:Use,raquo:Vse,reg:jse,REG:Gse,sect:Kse,shy:Xse,sup1:Yse,sup2:Zse,sup3:Jse,szlig:Qse,THORN:ele,thorn:tle,times:nle,Uacute:rle,uacute:ile,Ucirc:ole,ucirc:sle,Ugrave:lle,ugrave:ale,uml:cle,Uuml:ule,uuml:fle,Yacute:dle,yacute:hle,yen:ple,yuml:gle},mle="&",yle="'",ble=">",wle="<",xle='"',jb={amp:mle,apos:yle,gt:ble,lt:wle,quot:xle};var qh={};const _le={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Sle=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qh,"__esModule",{value:!0});var Dm=Sle(_le),kle=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Cle(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Dm.default&&(e=Dm.default[e]),kle(e))}qh.default=Cle;var Ou=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ci,"__esModule",{value:!0});ci.decodeHTML=ci.decodeHTMLStrict=ci.decodeXML=void 0;var Dd=Ou(Vb),Tle=Ou(vle),Ele=Ou(jb),zm=Ou(qh),Lle=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;ci.decodeXML=Gb(Ele.default);ci.decodeHTMLStrict=Gb(Dd.default);function Gb(e){var t=Kb(e);return function(r){return String(r).replace(Lle,t)}}var Im=function(e,t){return e<t?1:-1};ci.decodeHTML=function(){for(var e=Object.keys(Tle.default).sort(Im),t=Object.keys(Dd.default).sort(Im),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=Kb(Dd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function Kb(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?zm.default(parseInt(r.substr(3),16)):zm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Gn={},Xb=Oo&&Oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.escapeUTF8=Gn.escape=Gn.encodeNonAsciiHTML=Gn.encodeHTML=Gn.encodeXML=void 0;var Ale=Xb(jb),Yb=Jb(Ale.default),Zb=Qb(Yb);Gn.encodeXML=nw(Yb);var Mle=Xb(Vb),Bh=Jb(Mle.default),Nle=Qb(Bh);Gn.encodeHTML=Ple(Bh,Nle);Gn.encodeNonAsciiHTML=nw(Bh);function Jb(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function Qb(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var ew=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,$le=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Ru(e){return"&#x"+(e.length>1?$le(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Ple(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(ew,Ru)}}var tw=new RegExp(Zb.source+"|"+ew.source,"g");function Ole(e){return e.replace(tw,Ru)}Gn.escape=Ole;function Rle(e){return e.replace(Zb,Ru)}Gn.escapeUTF8=Rle;function nw(e){return function(t){return t.replace(tw,function(r){return e[r]||Ru(r)})}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=ci,r=Gn;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Gn;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=ci;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Ub);function Dle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zle(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ile(e,t,r){return t&&zle(e.prototype,t),e}function rw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fle(e))||t){r&&(e=r);var o=0,s=function(){};return{s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
23
23
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,d;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return c=p.done,p},e:function(p){f=!0,d=p},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function Fle(e,t){if(e){if(typeof e=="string")return Fm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fm(e,t)}}function Fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var Hle=Ub,Hm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:qle()};function qle(){var e={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return cc(0,5).forEach(function(t){cc(0,5).forEach(function(r){cc(0,5).forEach(function(o){return Ble(t,r,o,e)})})}),cc(0,23).forEach(function(t){var r=t+232,o=iw(t*10+8);e[r]="#"+o+o+o}),e}function Ble(e,t,r,o){var s=16+e*36+t*6+r,c=e>0?e*40+55:0,f=t>0?t*40+55:0,d=r>0?r*40+55:0;o[s]=Wle([c,f,d])}function iw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Wle(e){var t=[],r=rw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(iw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function qm(e,t,r,o){var s;return t==="text"?s=Gle(r,o):t==="display"?s=Vle(e,r,o):t==="xterm256Foreground"?s=Ac(e,o.colors[r]):t==="xterm256Background"?s=Mc(e,o.colors[r]):t==="rgb"&&(s=Ule(e,r)),s}function Ule(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),o=t.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return Lc(e,(r===38?"color:#":"background-color:#")+s)}function Vle(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&ow(e)},1:function(){return Wi(e,"b")},3:function(){return Wi(e,"i")},4:function(){return Wi(e,"u")},8:function(){return Lc(e,"display:none")},9:function(){return Wi(e,"strike")},22:function(){return Lc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Wm(e,"i")},24:function(){return Wm(e,"u")},39:function(){return Ac(e,r.fg)},49:function(){return Mc(e,r.bg)},53:function(){return Lc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=Wi(e,"blink"):29<t&&t<38?s=Ac(e,r.colors[t-30]):39<t&&t<48?s=Mc(e,r.colors[t-40]):89<t&&t<98?s=Ac(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Mc(e,r.colors[8+(t-100)])),s}function ow(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function cc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function jle(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Bm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function Gle(e,t){return t.escapeXML?Hle.encodeXML(e):e}function Wi(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Lc(e,t){return Wi(e,"span",t)}function Ac(e,t){return Wi(e,"span","color:"+t)}function Mc(e,t){return Wi(e,"span","background-color:"+t)}function Wm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function Kle(e,t,r){var o=!1,s=3;function c(){return""}function f(q,W){return r("xterm256Foreground",W),""}function d(q,W){return r("xterm256Background",W),""}function h(q){return t.newline?r("display",-1):r("text",q),""}function p(q,W){o=!0,W.trim().length===0&&(W="0"),W=W.trimRight(";").split(";");var X=rw(W),ie;try{for(X.s();!(ie=X.n()).done;){var ee=ie.value;r("display",ee)}}catch(j){X.e(j)}finally{X.f()}return""}function v(q){return r("text",q),""}function y(q){return r("rgb",q),""}var b=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function x(q,W){W>s&&o||(o=!1,e=e.replace(q.pattern,q.sub))}var A=[],T=e,E=T.length;e:for(;E>0;){for(var L=0,M=0,P=b.length;M<P;L=++M){var N=b[L];if(x(N,L),e.length!==E){E=e.length;continue e}}if(e.length===E)break;A.push(0),E=e.length}return A}function Xle(e,t,r){return t!=="text"&&(e=e.filter(jle(Bm(r))),e.push({token:t,data:r,category:Bm(r)})),e}var Yle=function(){function e(t){Dle(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Hm.colors,t.colors)),this.options=Object.assign({},Hm,t),this.stack=[],this.stickyStack=[]}return Ile(e,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(d){var h=qm(s,d.token,d.data,c);h&&f.push(h)}),Kle(r.join(""),c,function(d,h){var p=qm(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Xle(o.stickyStack,d,h))}),s.length&&f.push(ow(s)),f.join("")}}]),e}(),Zle=Yle;const Jle=Wb(Zle),Qle=/^[A-Za-z]:\//;function eae(e=""){return e&&e.replace(/\\/g,"/").replace(Qle,t=>t.toUpperCase())}const tae=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function nae(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const rae=function(...e){e=e.map(o=>eae(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:nae();!s||s.length===0||(t=`${s}/${t}`,r=Um(s))}return t=iae(t,!r),r&&!Um(t)?`/${t}`:t.length>0?t:"."};function iae(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Um=function(e){return tae.test(e)},oae=44,Vm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sae=new Uint8Array(64),sw=new Uint8Array(128);for(let e=0;e<Vm.length;e++){const t=Vm.charCodeAt(e);sae[e]=t,sw[t]=e}function _l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=sw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function jm(e,t){return e.pos>=t?!1:e.peek()!==oae}class lae{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function aae(e){const{length:t}=e,r=new lae(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let y=!0,b=0;for(s=0;r.pos<p;){let x;s=_l(r,s),s<b&&(y=!1),b=s,jm(r,p)?(c=_l(r,c),f=_l(r,f),d=_l(r,d),jm(r,p)?(h=_l(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}y||cae(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function cae(e){e.sort(uae)}function uae(e,t){return e[0]-t[0]}const fae=/^[\w+.-]+:\/\//,dae=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,hae=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var zt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(zt||(zt={}));function pae(e){return fae.test(e)}function gae(e){return e.startsWith("//")}function lw(e){return e.startsWith("/")}function vae(e){return e.startsWith("file:")}function Gm(e){return/^[.?#]/.test(e)}function uc(e){const t=dae.exec(e);return aw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function mae(e){const t=hae.exec(e),r=t[2];return aw("file:","",t[1]||"","",lw(r)?r:"/"+r,t[3]||"",t[4]||"")}function aw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:zt.Absolute}}function Km(e){if(gae(e)){const r=uc("http:"+e);return r.scheme="",r.type=zt.SchemeRelative,r}if(lw(e)){const r=uc("http://foo.com"+e);return r.scheme="",r.host="",r.type=zt.AbsolutePath,r}if(vae(e))return mae(e);if(pae(e))return uc(e);const t=uc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?zt.Query:e.startsWith("#")?zt.Hash:zt.RelativePath:zt.Empty,t}function yae(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function bae(e,t){cw(t,t.type),e.path==="/"?e.path=t.path:e.path=yae(t.path)+e.path}function cw(e,t){const r=t<=zt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function wae(e,t){if(!e&&!t)return"";const r=Km(e);let o=r.type;if(t&&o!==zt.Absolute){const c=Km(t),f=c.type;switch(o){case zt.Empty:r.hash=c.hash;case zt.Hash:r.query=c.query;case zt.Query:case zt.RelativePath:bae(r,c);case zt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case zt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}cw(r,o);const s=r.query+r.hash;switch(o){case zt.Hash:case zt.Query:return s;case zt.RelativePath:{const c=r.path.slice(1);return c?Gm(t||e)&&!Gm(c)?"./"+c+s:c+s:s||"."}case zt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Xm(e,t){return t&&!t.endsWith("/")&&(t+="/"),wae(e,t)}function xae(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const Qi=0,_ae=1,Sae=2,kae=3,Cae=4;function Tae(e,t){const r=Ym(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Ym(e,o+1))e[o]=Lae(e[o],t);return e}function Ym(e,t){for(let r=t;r<e.length;r++)if(!Eae(e[r]))return r;return e.length}function Eae(e){for(let t=1;t<e.length;t++)if(e[t][Qi]<e[t-1][Qi])return!1;return!0}function Lae(e,t){return t||(e=e.slice()),e.sort(Aae)}function Aae(e,t){return e[Qi]-t[Qi]}let Qc=!1;function Mae(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Qi]-t;if(c===0)return Qc=!0,s;c<0?r=s+1:o=s-1}return Qc=!1,r-1}function Nae(e,t,r){for(let o=r+1;o<e.length&&e[o][Qi]===t;r=o++);return r}function $ae(e,t,r){for(let o=r-1;o>=0&&e[o][Qi]===t;r=o--);return r}function Pae(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Oae(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return Qc=f!==-1&&e[f][Qi]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=Mae(e,t,d,h)}const Rae="`line` must be greater than 0 (lines start at line 1)",Dae="`column` must be greater than or equal to 0 (columns start at column 0)",Zm=-1,zae=1;class Iae{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const y=Xm(h||"",xae(r));this.resolvedSources=p.map(x=>Xm(x||"",y));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=Tae(b,o)),this._decodedMemo=Pae(),this._bySources=void 0,this._bySourceMemos=void 0}}function Fae(e){var t;return(t=e)._decoded||(t._decoded=aae(e._encoded))}function Hae(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(Rae);if(o<0)throw new Error(Dae);const c=Fae(e);if(r>=c.length)return fc(null,null,null,null);const f=c[r],d=qae(f,e._decodedMemo,r,o,s||zae);if(d===-1)return fc(null,null,null,null);const h=f[d];if(h.length===1)return fc(null,null,null,null);const{names:p,resolvedSources:v}=e;return fc(v[h[_ae]],h[Sae]+1,h[kae],h.length===5?p[h[Cae]]:null)}function fc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function qae(e,t,r,o,s){let c=Oae(e,o,t,r);return Qc?c=(s===Zm?Nae:$ae)(e,o,c):s===Zm&&c++,c===-1||c===e.length?-1:c}const uw=/^\s*at .*(?:\S:\d+|\(native\))/m,Bae=/^(?:eval@)?(?:\[native code\])?$/,Wae=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function fw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function Uae(e){let t=e.trim();if(Bae.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=fw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function Vae(e){let t=e.trim();if(!uw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=fw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=rae(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function jae(e,t={}){const{ignoreStackEntries:r=Wae}=t;let o=uw.test(e)?Kae(e):Gae(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new Iae(f),{line:h,column:p}=Hae(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function Gae(e){return e.split(`
|
|
24
24
|
`).map(t=>Uae(t)).filter(Fb)}function Kae(e){return e.split(`
|
|
25
|
-
`).map(t=>Vae(t)).filter(Fb)}function Xae(e,t){return t&&e.endsWith(t)}async function dw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Wh(e){return new Jle({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Yae(e){return e===null||typeof e!="function"&&typeof e!="object"}function hw(e){let t=e;if(Yae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=jae(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}function Du(e){return B0()?(eS(e),!0):!1}function Br(e){return typeof e=="function"?e():z(e)}const Zae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Jae=Object.prototype.toString,Qae=e=>Jae.call(e)==="[object Object]",na=()=>{};function pw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const gw=e=>e();function vw(e,t={}){let r,o,s=na;const c=d=>{clearTimeout(d),s(),s=na};return d=>{const h=Br(e),p=Br(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function ece(e=gw){const t=Be(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ua(t),pause:r,resume:o,eventFilter:s}}function tce(e){return da()}function nce(...e){if(e.length!==1)return yu(...e);const t=e[0];return typeof t=="function"?ua(iy(()=>({get:t,set:na}))):Be(t)}function dc(e,t=200,r={}){return pw(vw(t,r),e)}function mw(e,t,r={}){const{eventFilter:o=gw,...s}=r;return It(e,pw(o,t),s)}function yw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=ece(o);return{stop:mw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Uh(e,t=!0,r){tce()?Hs(e,r):t?e():ln(e)}function rce(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Pt(e),c=Be(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Br(r);return c.value=c.value===h?Br(o):h,c.value}}return s?f:[c,f]}function bw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return mw(e,t,{...c,eventFilter:vw(o,{maxWait:s})})}function ice(e,t,r){const o=It(e,(...s)=>(ln(()=>o()),t(...s)),r);return o}function oce(e,t,r){let o;Pt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=na}=o,h=Be(!s),p=f?Wr(t):Be(t);let v=0;return Th(async y=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const A=await e(T=>{y(()=>{c&&(c.value=!1),x||T()})});b===v&&(p.value=A)}catch(A){d(A)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?Ce(()=>(h.value=!0,p.value)):p}function eu(e){var t;const r=Br(e);return(t=r==null?void 0:r.$el)!=null?t:r}const or=Zae?window:void 0;function Ps(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=or):[t,r,o,s]=e,!t)return na;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,y,b,x)=>(v.addEventListener(y,b,x),()=>v.removeEventListener(y,b,x)),h=It(()=>[eu(t),Br(s)],([v,y])=>{if(f(),!v)return;const b=Qae(y)?{...y}:y;c.push(...r.flatMap(x=>o.map(A=>d(v,x,A,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Du(p),p}function sce(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ww(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=or,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=sce(t);return Ps(s,c,v=>{v.repeat&&Br(d)||h(v)&&r(v)},f)}function lce(){const e=Be(!1),t=da();return t&&Hs(()=>{e.value=!0},t),e}function xw(e){const t=lce();return Ce(()=>(t.value,!!e()))}function ace(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=or}=t,c=Be(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const x=b-d;if(f&&x<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:x,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function y(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),Du(y),{isActive:ua(c),pause:y,resume:v}}function _w(e,t={}){const{window:r=or}=t,o=xw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Be(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Th(()=>{o.value&&(d(),s=r.matchMedia(Br(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return Du(()=>{h(),d(),s=void 0}),c}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",cce=uce();function uce(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Sw(e,t){return cce[e]||t}function fce(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const dce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Jm="vueuse-storage";function kw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:y=or,eventFilter:b,onError:x=j=>{console.error(j)},initOnMounted:A}=o,T=(v?Wr:Be)(typeof t=="function"?t():t);if(!r)try{r=Sw("getDefaultStorage",()=>{var j;return(j=or)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!r)return T;const E=Br(t),L=fce(E),M=(s=o.serializer)!=null?s:dce[L],{pause:P,resume:N}=yw(T,()=>W(T.value),{flush:c,deep:f,eventFilter:b});y&&d&&Uh(()=>{r instanceof Storage?Ps(y,"storage",ie):Ps(y,Jm,ee),A&&ie()}),A||ie();function q(j,te){y&&!(r instanceof Storage)&&y.dispatchEvent(new CustomEvent(Jm,{detail:{key:e,oldValue:j,newValue:te,storageArea:r}}))}function W(j){try{const te=r.getItem(e);if(j==null)q(te,null),r.removeItem(e);else{const Z=M.write(j);te!==Z&&(r.setItem(e,Z),q(te,Z))}}catch(te){x(te)}}function X(j){const te=j?j.newValue:r.getItem(e);if(te==null)return h&&E!=null&&r.setItem(e,M.write(E)),E;if(!j&&p){const Z=M.read(te);return typeof p=="function"?p(Z,E):L==="object"&&!Array.isArray(Z)?{...E,...Z}:Z}else return typeof te!="string"?te:M.read(te)}function ie(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){T.value=E;return}if(!(j&&j.key!==e)){P();try{(j==null?void 0:j.newValue)!==M.write(T.value)&&(T.value=X(j))}catch(te){x(te)}finally{j?ln(N):N()}}}}function ee(j){ie(j.detail)}return T}function Cw(e){return _w("(prefers-color-scheme: dark)",e)}const hce="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function pce(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=or,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,y={auto:"",light:"light",dark:"dark",...e.modes||{}},b=Cw({window:s}),x=Ce(()=>b.value?"dark":"light"),A=h||(f==null?nce(o):kw(f,o,c,{window:s,listenToStorageChanges:d})),T=Ce(()=>A.value==="auto"?x.value:A.value),E=Sw("updateHTMLAttrs",(N,q,W)=>{const X=typeof N=="string"?s==null?void 0:s.document.querySelector(N):eu(N);if(!X)return;const ie=new Set,ee=new Set;let j=null;if(q==="class"){const Z=W.split(/\s/g);Object.values(y).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{Z.includes(H)?ie.add(H):ee.add(H)})}else j={key:q,value:W};if(ie.size===0&&ee.size===0&&j===null)return;let te;v&&(te=s.document.createElement("style"),te.appendChild(document.createTextNode(hce)),s.document.head.appendChild(te));for(const Z of ie)X.classList.add(Z);for(const Z of ee)X.classList.remove(Z);j&&X.setAttribute(j.key,j.value),v&&(s.getComputedStyle(te).opacity,document.head.removeChild(te))});function L(N){var q;E(t,r,(q=y[N])!=null?q:N)}function M(N){e.onChanged?e.onChanged(N,L):L(N)}It(T,M,{flush:"post",immediate:!0}),Uh(()=>M(T.value));const P=Ce({get(){return p?A.value:T.value},set(N){A.value=N}});try{return Object.assign(P,{store:A,system:x,state:T})}catch{return P}}function gce(e={}){const{valueDark:t="dark",valueLight:r="",window:o=or}=e,s=pce({...e,onChanged:(d,h)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,d==="dark",h,d):h(d)},modes:{dark:t,light:r}}),c=Ce(()=>s.system?s.system.value:Cw({window:o}).value?"dark":"light");return Ce({get(){return s.value==="dark"},set(d){const h=d?"dark":"light";c.value===h?s.value="auto":s.value=h}})}function vce(e,t,r={}){const{window:o=or,...s}=r;let c;const f=xw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Ce(()=>{const y=Br(e);return Array.isArray(y)?y.map(b=>eu(b)):[eu(y)]}),p=It(h,y=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of y)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Du(v),{isSupported:f,stop:v}}function zu(e,t,r={}){const{window:o=or}=r;return kw(e,t,o==null?void 0:o.localStorage,r)}function mce(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=or}=t;if(!f)return Xn(r);const d=Xn({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const L=f.location.hash||"",M=L.indexOf("?");return M>0?L.slice(M):""}else return(f.location.hash||"").replace(/^#/,"")}function p(L){const M=L.toString();if(e==="history")return`${M?`?${M}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${M?`#${M}`:""}`;const P=f.location.hash||"#",N=P.indexOf("?");return N>0?`${P.slice(0,N)}${M?`?${M}`:""}`:`${P}${M?`?${M}`:""}`}function v(){return new URLSearchParams(h())}function y(L){const M=new Set(Object.keys(d));for(const P of L.keys()){const N=L.getAll(P);d[P]=N.length>1?N:L.get(P)||"",M.delete(P)}Array.from(M).forEach(P=>delete d[P])}const{pause:b,resume:x}=yw(d,()=>{const L=new URLSearchParams("");Object.keys(d).forEach(M=>{const P=d[M];Array.isArray(P)?P.forEach(N=>L.append(M,N)):o&&P==null||s&&!P?L.delete(M):L.set(M,P)}),A(L)},{deep:!0});function A(L,M){b(),M&&y(L),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(L)),x()}function T(){c&&A(v(),!0)}Ps(f,"popstate",T,!1),e!=="history"&&Ps(f,"hashchange",T,!1);const E=v();return E.keys().next().value?y(E):Object.assign(d,r),d}function Vh(e={}){const{window:t=or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Be(r),h=Be(o),p=()=>{t&&(f==="outer"?(d.value=t.outerWidth,h.value=t.outerHeight):c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};if(p(),Uh(p),Ps("resize",p,{passive:!0}),s){const v=_w("(orientation: portrait)");It(v,()=>p())}return{width:d,height:h}}const jh=mce("hash",{initialValue:{file:"",view:null,line:null}}),eo=yu(jh,"file"),Un=yu(jh,"view"),zd=yu(jh,"line"),Pr=Be([414,896]),tu=Be("idle"),yce=Ce(()=>tu.value==="idle"),Hi=Be([]),Os=Be(),Ss=Be(!0),to=Be(!1),nu=Be(!0),hs=Ce(()=>{var e;return(e=Hu.value)==null?void 0:e.coverage}),Id=Ce(()=>{var e;return(e=hs.value)==null?void 0:e.enabled}),ps=Ce(()=>Id.value&&!!hs.value.htmlReporter),br=zu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=zu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),dn=Xn({navigation:br.value[0],details:{size:br.value[1],browser:Mo.value[0],main:Mo.value[1]}}),Qm=Ce(()=>{var e;if(ps.value){const t=hs.value.reportsDirectory.lastIndexOf("/"),r=(e=hs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${hs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${hs.value.reportsDirectory.slice(t+1)}/index.html`}});It(tu,e=>{nu.value=e==="running"},{immediate:!0});function bce(){const e=eo.value;if(e&&e.length>0){const t=sr(e);t?(Os.value=t,Ss.value=!1,to.value=!1):ice(()=>bt.state.getFiles(),()=>{Os.value=sr(e),Ss.value=!1,to.value=!1})}return Ss}function ru(e){Ss.value=e,to.value=!1,e&&(Os.value=void 0,eo.value="")}function Tw(e,t=null){eo.value=e.file.id,zd.value=null,t!=null&&(ln(()=>{zd.value=t}),Un.value="editor"),Os.value=sr(e.file.id),ru(!1)}function wce(){to.value=!0,Ss.value=!1,Os.value=void 0,eo.value=""}function xce(){dn.details.browser=100,dn.details.main=0,Mo.value=[100,0]}function _ce(){dn.details.browser=33,dn.details.main=67,Mo.value=[33,67]}function Sce(){dn.navigation=33,dn.details.size=67,br.value=[33,67]}const kce={setCurrentFileId(e){eo.value=e,Os.value=sr(e),ru(!1)},async setIframeViewport(e,t){Pr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}};var Kn=Uint8Array,gs=Uint16Array,Cce=Int32Array,Ew=new Kn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Lw=new Kn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Tce=new Kn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Aw=function(e,t){for(var r=new gs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Cce(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Mw=Aw(Ew,2),Nw=Mw.b,Ece=Mw.r;Nw[28]=258,Ece[258]=28;var Lce=Aw(Lw,0),Ace=Lce.b,Fd=new gs(32768);for(var Ct=0;Ct<32768;++Ct){var Pi=(Ct&43690)>>1|(Ct&21845)<<1;Pi=(Pi&52428)>>2|(Pi&13107)<<2,Pi=(Pi&61680)>>4|(Pi&3855)<<4,Fd[Ct]=((Pi&65280)>>8|(Pi&255)<<8)>>1}var Hl=function(e,t,r){for(var o=e.length,s=0,c=new gs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new gs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new gs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],y=f[e[s]-1]++<<v,b=y|(1<<v)-1;y<=b;++y)d[Fd[y]>>h]=p}else for(d=new gs(o),s=0;s<o;++s)e[s]&&(d[s]=Fd[f[e[s]-1]++]>>15-e[s]);return d},va=new Kn(288);for(var Ct=0;Ct<144;++Ct)va[Ct]=8;for(var Ct=144;Ct<256;++Ct)va[Ct]=9;for(var Ct=256;Ct<280;++Ct)va[Ct]=7;for(var Ct=280;Ct<288;++Ct)va[Ct]=8;var $w=new Kn(32);for(var Ct=0;Ct<32;++Ct)$w[Ct]=5;var Mce=Hl(va,9,1),Nce=Hl($w,5,1),nd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},yr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},rd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},$ce=function(e){return(e+7)/8|0},Pw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Kn(e.subarray(t,r))},Pce=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Pn=function(e,t,r){var o=new Error(t||Pce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Pn),!r)throw o;return o},Gh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Kn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Kn(s*3));var p=function(Ee){var Ze=r.length;if(Ee>Ze){var O=new Kn(Math.max(Ze*2,Ee));O.set(r),r=O}},v=t.f||0,y=t.p||0,b=t.b||0,x=t.l,A=t.d,T=t.m,E=t.n,L=s*8;do{if(!x){v=yr(e,y,1);var M=yr(e,y+1,3);if(y+=3,M)if(M==1)x=Mce,A=Nce,T=9,E=5;else if(M==2){var W=yr(e,y,31)+257,X=yr(e,y+10,15)+4,ie=W+yr(e,y+5,31)+1;y+=14;for(var ee=new Kn(ie),j=new Kn(19),te=0;te<X;++te)j[Tce[te]]=yr(e,y+te*3,7);y+=X*3;for(var Z=nd(j),H=(1<<Z)-1,I=Hl(j,Z,1),te=0;te<ie;){var k=I[yr(e,y,H)];y+=k&15;var P=k>>4;if(P<16)ee[te++]=P;else{var B=0,U=0;for(P==16?(U=3+yr(e,y,3),y+=2,B=ee[te-1]):P==17?(U=3+yr(e,y,7),y+=3):P==18&&(U=11+yr(e,y,127),y+=7);U--;)ee[te++]=B}}var re=ee.subarray(0,W),ye=ee.subarray(W);T=nd(re),E=nd(ye),x=Hl(re,T,1),A=Hl(ye,E,1)}else Pn(1);else{var P=$ce(y)+4,N=e[P-4]|e[P-3]<<8,q=P+N;if(q>s){h&&Pn(0);break}d&&p(b+N),r.set(e.subarray(P,q),b),t.b=b+=N,t.p=y=q*8,t.f=v;continue}if(y>L){h&&Pn(0);break}}d&&p(b+131072);for(var Ne=(1<<T)-1,We=(1<<E)-1,je=y;;je=y){var B=x[rd(e,y)&Ne],it=B>>4;if(y+=B&15,y>L){h&&Pn(0);break}if(B||Pn(2),it<256)r[b++]=it;else if(it==256){je=y,x=null;break}else{var rt=it-254;if(it>264){var te=it-257,Je=Ew[te];rt=yr(e,y,(1<<Je)-1)+Nw[te],y+=Je}var Le=A[rd(e,y)&We],K=Le>>4;Le||Pn(3),y+=Le&15;var ye=Ace[K];if(K>3){var Je=Lw[K];ye+=rd(e,y)&(1<<Je)-1,y+=Je}if(y>L){h&&Pn(0);break}d&&p(b+131072);var ae=b+rt;if(b<ye){var de=c-ye,$e=Math.min(ye,ae);for(de+b<0&&Pn(3);b<$e;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=T,t.d=A,t.n=E)}while(!v);return b!=r.length&&f?Pw(r,0,b):r.subarray(0,b)},Oce=new Kn(0),Rce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Pn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},zce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Pn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Pn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Ice(e,t){return Gh(e,{i:2},t,t)}function Fce(e,t){var r=Rce(e);return r+8>e.length&&Pn(6,"invalid gzip data"),Gh(e.subarray(r,-8),{i:2},new Kn(Dce(e)),t)}function Hce(e,t){return Gh(e.subarray(zce(e,t),-4),{i:2},t,t)}function qce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Fce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Ice(e,t):Hce(e,t)}var Hd=typeof TextDecoder<"u"&&new TextDecoder,Bce=0;try{Hd.decode(Oce,{stream:!0}),Bce=1}catch{}var Wce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Pw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Uce(e,t){var r;if(Hd)return Hd.decode(e);var o=Wce(e),s=o.s,r=o.r;return r.length&&Pn(8),s}const id=()=>{},xn=()=>Promise.resolve();function Vce(){const e=Xn({state:new Bb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Xn(e.state.filesMap),e.state.idMap=Xn(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:xn,onDone:id,onTaskUpdate:id,writeFile:xn,rerun:xn,updateSnapshot:xn,resolveSnapshotPath:xn,snapshotSaved:xn,onAfterSuiteRun:xn,onCancel:xn,getCountOfFailedTests:()=>0,sendLog:xn,resolveSnapshotRawPath:xn,readSnapshotFile:xn,saveSnapshotFile:xn,readTestFile:async d=>t.sources[d],removeSnapshotFile:xn,onUnhandledError:id,saveTestFile:xn,getProvidedContext:()=>({}),getTestFiles:xn};e.rpc=r;let o;function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const y=new Uint8Array(await d.arrayBuffer()),b=Uce(qce(y));t=Rd(b)}else t=Rd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const qd=Wr([]),Hn=Wr([]),Cr=zu("vitest-ui_task-tree-opened",[],{shallow:!0}),iu=Ce(()=>new Set(Cr.value)),on=zu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),On=Be(on.value.search),jce={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ow(e){return e.replace(/[&<>"']/g,t=>jce[t])}const Gce=Ce(()=>{const e=On.value.toLowerCase();return e.length?new RegExp(`(${Ow(e)})`,"gi"):null}),Rw=Ce(()=>On.value.trim()!==""),et=Xn({failed:on.value.failed,success:on.value.success,skipped:on.value.skipped,onlyTests:on.value.onlyTests}),Bd=Ce(()=>!!(et.failed||et.success||et.skipped)),Iu=Wr([]),Rs=Be(!1),e0=Ce(()=>{const e=on.value.expandAll;return Cr.value.length>0?e!==!0:e!==!1}),Kce=Ce(()=>{const e=Rw.value,t=Bd.value,r=et.onlyTests,o=Te.summary.filesFailed,s=Te.summary.filesSuccess,c=Te.summary.filesSkipped,f=Te.summary.filesRunning,d=Iu.value;return Te.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Fu(e){return Object.hasOwnProperty.call(e,"tasks")}function Xce(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Dw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function Yce(e){return e.type==="test"||e.type==="custom"}function Zce(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function Cn(e){return e.type==="file"}function fi(e){return e.type==="file"||e.type==="suite"}function Jce(e=Te.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ra(e,t=!1){var o,s,c,f,d;let r=Te.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:iu.value.size>0&&iu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Dw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Te.nodes.set(e.id,r),Te.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)ma(e.id,e.tasks[h],!0)}function zw(e,t){const r=Te.nodes.get(e);if(!r||!fi(r))return;const o=bt.state.idMap.get(e);if(!(!o||!Fu(o)))return ma(r.parentId,o,t&&o.tasks.length>0),[r,o]}function Qce(e){const t=Te.nodes.get(e);if(!t)return;const r=bt.state.idMap.get(e);!r||!$s(r)||ma(t.parentId,r,!1)}function ma(e,t,r){var f,d,h,p,v;const o=Te.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Te.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):($s(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:iu.value.size>0&&iu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Te.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Fu(t)))for(let y=0;y<t.tasks.length;y++)ma(s.id,t.tasks[y],r)}function eue(e,t,r){return e?Hw(e,t,r):!1}function Kh(e,t){const r=[...Iw(e,t)];Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function*Iw(e,t){for(const r of Jce())yield*Fw(r,e,t)}function*Fw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[y,b]of Wd(e,o,x=>t0(x,t,r)))c.push([y,b]);else{for(const[y,b]of Wd(e,o,x=>t0(x,t,r)))fi(b)?(s.set(b.id,y),Cn(b)?(y&&(f=b.id),c.push([y,b])):c.push([y||s.get(b.parentId)===!0,b])):c.push([y||s.get(b.parentId)===!0,b]);!f&&!Cn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...nue(c,r.onlyTests,o,d,f)].reverse(),p=Te.nodes,v=new Set(h.filter(y=>{var b;return Cn(y)||fi(y)&&((b=p.get(y.parentId))==null?void 0:b.expanded)}).map(y=>y.id));yield*h.filter(y=>{var b;return Cn(y)||v.has(y.parentId)&&((b=p.get(y.parentId))==null?void 0:b.expanded)})}function tue(e,t,r,o,s){if(o){if(Cn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Te.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Te.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}function*nue(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=fi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Te.nodes.get(d.parentId);for(;p;)r.add(p.id),Cn(p)&&o.add(p.id),p=Te.nodes.get(p.parentId);yield d;continue}if(h){const p=tue(f,d,r,t,o);p&&(yield p)}else if(f){const p=Te.nodes.get(d.parentId);p&&Cn(p)&&o.add(p.id),yield d}}}function rue(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Hw(e,t,r){if(t.length===0||Xce(e.name,t))if(r.success||r.failed||r.skipped){if(rue(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(Yce(e)){let s=Te.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Te.nodes.get(s.parentId)}else if(Cn(e))t.add(e.id);else{t.add(e.id);let s=Te.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Te.nodes.get(s.parentId)}if(yield[o,e],fi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function t0(e,t,r){const o=bt.state.idMap.get(e.id);return o?Hw(o,t,r):!1}function iue(e,t,r){const o=zw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)ma(s.id,p,!1);s.expanded=!0;const f=new Set(Cr.value);f.add(s.id);const d=new Set(Fw(s,t,r)),h=[...lue(s,d)];Cr.value=Array.from(f),Hn.value=h}function oue(e,t){Xh(Te.root.tasks,!1);const r=[...Iw(e,t)];on.value.expandAll=!1,Cr.value=[],Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function sue(e,t){if(e.size)for(const r of Hn.value)e.has(r.id)&&(r.expanded=!0);else t&&Xh(Hn.value.filter(Cn),!0)}function Xh(e,t){for(const r of e)fi(r)&&(r.expanded=!0,Xh(r.tasks,!1));t&&(on.value.expandAll=!1,Cr.value=[])}function*lue(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Hn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function aue(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ra(s,t)),qd.value=[...Te.root.tasks],Kh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function cue(e){queueMicrotask(()=>{const t=Te.pendingTasks,r=bt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function n0(e,t,r,o,s){e&&gue(r);const c=!e;queueMicrotask(()=>{t?due(c):hue(c)}),queueMicrotask(()=>{vue(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=qd.value&&Hh(qd.value.map(f=>sr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{pue(o,s,t)})}function*uue(){yield*Hn.value.filter(Zce)}function fue(){const e=bt.state.idMap;let t;for(const r of uue())t=e.get(r.parentId),t&&Fu(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function due(e){const t=bt.state.getFiles(),r=Te.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ra(o[c],e),ou(o[c].tasks);const s=Te.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=sr(f.id);if(!d)continue;ra(d,e);const h=d.tasks;h!=null&&h.length&&ou(d.tasks)}}function hue(e){const t=new Map(Te.pendingTasks.entries());Te.pendingTasks.clear();const r=Te.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>sr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ra(s,!1),ou(s.tasks),t.delete(s.id);const c=bt.state.idMap,f=Te.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=sr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ra(p,e),ou(Array.from(v).map(y=>c.get(y)).filter(Boolean)))}}function pue(e,t,r=!1){const o=on.value.expandAll,s=o!==!0,c=new Set(Cr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{r0(e,t,r)}),Rs.value||queueMicrotask(()=>{(Hn.value.length||r)&&(Rs.value=!0)}),f&&(queueMicrotask(()=>{sue(c,r),s&&(on.value.expandAll=!1)}),queueMicrotask(()=>{r0(e,t,r)}))}function r0(e,t,r){Kh(e,t),r&&fue()}function ou(e){let t;for(let r=0;r<e.length;r++)t=e[r],Fu(t)?zw(t.id,!0):Qce(t.id)}function gue(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function vue(e){var f,d,h,p,v,y;const t=bt.state.idMap,r=new Map(Te.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,sr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[b,x]of o){if(!x)continue;const A=r.get(b);A&&(A.mode=x.mode,A.setupDuration=x.setupDuration,A.prepareDuration=x.prepareDuration,A.environmentLoad=x.environmentLoad,A.collectDuration=x.collectDuration,A.duration=((f=x.result)==null?void 0:f.duration)!=null?Math.round((d=x.result)==null?void 0:d.duration):void 0,A.state=(h=x.result)==null?void 0:h.state),c+=Math.max(0,x.collectDuration||0),c+=Math.max(0,x.setupDuration||0),c+=Math.max(0,((p=x.result)==null?void 0:p.duration)||0),c+=Math.max(0,x.environmentLoad||0),c+=Math.max(0,x.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=x.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((y=x.result)==null?void 0:y.state)==="pass"?s.filesSuccess++:x.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):x.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:T,success:E,skipped:L,total:M,ignored:P,todo:N}=qw(x);s.totalTests+=M,s.testsFailed+=T,s.testsSuccess+=E,s.testsSkipped+=L,s.testsTodo+=N,s.testsIgnore+=P}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function qw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of Bw(e))(!r||eue(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function mue(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>qw(h,s,c)).reduce((h,{failed:p,success:v,ignored:y,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=y,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,y=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=y?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*Bw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],$s(r)?yield r:yield*Bw(r.tasks)}function yue(e){const t=Te.nodes.get(e);if(!t||!fi(t))return;const r=new Set(Cr.value);r.delete(t.id);const o=[...wue(t)];Cr.value=Array.from(r),Hn.value=o}function bue(){Ud(Te.root.tasks);const e=[...Hn.value.filter(Cn)];Ud(e),Cr.value=[],on.value.expandAll=!0,Hn.value=e}function Ud(e){for(const t of e)fi(t)&&(t.expanded=!1,Ud(t.tasks))}function*Ww(e,t){if(t&&(yield e.id),fi(e))for(let r=0;r<e.tasks.length;r++)yield*Ww(e.tasks[r],!0)}function*wue(e){const t=e.id,r=new Set(Ww(e,!1));for(let o=0;o<Hn.value.length;o++){const s=Hn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}class xue{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=Xn({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){fs(this,"rafCollector");fs(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=ace(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){aue(t,!0,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){cue(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{n0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):n0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,r,o,s){return mue(t,r,o,s,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{yue(t)})}expandNode(t){queueMicrotask(()=>{iue(t,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{bue()})}expandAllNodes(){queueMicrotask(()=>{oue(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kh(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Te=new xue,bt=function(){return Ir?Vce():ZE(eL,{reactive:(t,r)=>r==="state"?Xn(t):Wr(t),handlers:{onTaskUpdate(t){Te.resumeRun(t),tu.value="running"},onFinished(t,r){Te.endRun(),tu.value="idle",Hi.value=(r||[]).map(hw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Hu=Wr({}),To=Be("CONNECTING"),Gt=Ce(()=>{const e=eo.value;return e?sr(e):void 0}),Uw=Ce(()=>Fh(Gt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function sr(e){const t=bt.state.idMap.get(e);return t||void 0}const _ue=Ce(()=>To.value==="OPEN"),od=Ce(()=>To.value==="CONNECTING");Ce(()=>To.value==="CLOSED");function Sue(){return Yh(bt.state.getFiles())}function kue(e){const t=Te.nodes;e.forEach(r=>{delete r.result,Fh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Cn(o)&&(o.collectDuration=void 0))})}function Yh(e){return kue(e),Te.startRun(),bt.rpc.rerun(e.map(t=>t.filepath))}const Ro=window.__vitest_browser_runner__;window.__vitest_ui_api__=kce;It(()=>bt.ws,e=>{To.value=Ir?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.value="OPEN",bt.state.filesMap.clear();const[t,r,o]=await Promise.all([bt.rpc.getFiles(),bt.rpc.getConfig(),bt.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await bt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>Hb(h,d,f));bt.state.collectFiles(c)}else Te.loadFiles(t),bt.state.collectFiles(t),Te.startRun();Hi.value=(o||[]).map(hw),Hu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Cue={"text-2xl":""},Tue={"text-lg":"",op50:""},Eue=ft({__name:"ConnectionOverlay",setup(e){return(t,r)=>z(_ue)?Ye("",!0):(oe(),me("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>z(bt).reconnect&&z(bt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:lt(z(od)?"animate-pulse":"")},[Y("div",{text:"5xl",class:lt(z(od)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Cue,qe(z(od)?"Connecting...":"Disconnected"),1),Y("div",Tue," Check your terminal or start a new server with `"+qe(z(Ro)?`vitest --browser=${z(Ro).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Lue=["aria-label","opacity","disabled","hover"],gi=ft({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:lt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[hn(t.$slots,"default",{},()=>[Y("span",{class:lt(t.icon),ma:"",block:""},null,2)])],10,Lue))}}),Vw=e=>(Is("data-v-28536a8a"),e=e(),Fs(),e),Aue={h:"full",flex:"~ col"},Mue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Nue=Vw(()=>Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),$ue=Vw(()=>Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),Pue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Oue={class:"pointer-events-none","text-sm":""},Rue={key:0},Due={id:"tester-container",relative:""},zue=["data-scale"],i0=20,Iue=100,Fue=ft({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Pr.value[0]===v[0]&&Pr.value[1]===v[1]}async function o(p){Pr.value=t[p]}const{width:s,height:c}=Vh(),f=Ce(()=>{const y=s.value*(dn.details.size/100)*(dn.details.browser/100)-i0,b=c.value-Iue;return{width:y,height:b}}),d=Ce(()=>{const[p,v]=Pr.value,{width:y,height:b}=f.value,x=y>p?1:y/p,A=b>v?1:b/v;return Math.min(1,x,A)}),h=Ce(()=>{const p=f.value.width,v=Pr.value[0];return`${Math.trunc((p+i0-v)/2)}px`});return(p,v)=>{const y=gi,b=Ur("tooltip");return oe(),me("div",Aue,[Y("div",Mue,[vt(Pe(y,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=x=>z(Sce)())},null,512),[[Ui,z(dn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),Nue,$ue,vt(Pe(y,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=x=>z(xce)())},null,512),[[Ui,z(dn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=x=>z(_ce)())},null,512),[[Ui,z(dn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Y("div",Pue,[vt(Pe(y,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=x=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=x=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=x=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Y("span",Oue,[pt(qe(z(Pr)[0])+"x"+qe(z(Pr)[1])+"px ",1),z(d)<1?(oe(),me("span",Rue,"("+qe((z(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),Y("div",Due,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":z(d),style:Kt({"--viewport-width":`${z(Pr)[0]}px`,"--viewport-height":`${z(Pr)[1]}px`,"--tester-transform":`scale(${z(d)})`,"--tester-margin-left":z(h)})}," Select a test to run ",12,zue)])])}}}),Hue=Vr(Fue,[["__scopeId","data-v-28536a8a"]]),jw=ft({__name:"Modal",props:qc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue"),r=Ce(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=Ce(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),me("div",{class:lt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:lt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:lt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[z(r)]]),style:Kt(t.value?{}:{transform:z(o)})},[hn(c.$slots,"default")],6)],2))}}),que=e=>(Is("data-v-93900314"),e=e(),Fs(),e),Bue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wue={"p-4":"",relative:"",border:"base b"},Uue=que(()=>Y("p",null,"Screenshot error",-1)),Vue={op50:"","font-mono":"","text-sm":""},jue={op50:"","font-mono":"","text-sm":""},Gue={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Kue=["src","alt"],Xue={key:1},Yue=ft({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return ww("Escape",()=>{r("close")}),(o,s)=>{const c=gi;return oe(),me("div",Bue,[Y("div",Wue,[Uue,Y("p",Vue,qe(o.file),1),Y("p",jue,qe(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Y("div",Gue,[o.url?(oe(),me("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Kue)):(oe(),me("div",Xue," Something was wrong, the image cannot be resolved. "))])])}}}),Zue=Vr(Yue,[["__scopeId","data-v-93900314"]]);function ql(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ya=gce(),Jue=rce(ya),Que={class:"scrolls scrolls-rounded task-error"},efe=["onClickPassive"],tfe=["innerHTML"],nfe=ft({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Ce(()=>Wh(ya.value)),s=Ce(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Ce(()=>t.error.diff?o.value.toHtml(ql(t.error.diff)):void 0);return(f,d)=>{const h=Ur("tooltip");return oe(),me("div",Que,[Y("pre",null,[Y("b",null,qe(f.error.name||f.error.nameStr),1),pt(": "+qe(f.error.message),1)]),(oe(!0),me(ut,null,ui(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+qe(r(p.file))+":"+qe(p.line)+":"+qe(p.column),1),z(Xae)(p.file,f.filename)?vt((oe(),me("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>z(dw)(p.file,p.line,p.column)},null,40,efe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),z(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:z(c)},null,8,tfe)):Ye("",!0)])}}}),rfe=Vr(nfe,[["__scopeId","data-v-9dd6eaea"]]),ife={"h-full":"",class:"scrolls"},ofe={flex:"~ gap-2 items-center"},sfe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lfe=["innerHTML"],afe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cfe=ft({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,x){var A;return((A=b.result)==null?void 0:A.state)!=="fail"?[]:b.type==="test"||b.type==="custom"?[{...b,level:x}]:[{...b,level:x},...b.tasks.flatMap(T=>r(T,x+1))]}function o(b,x){var E,L,M;let A="";(E=x.message)!=null&&E.includes("\x1B")&&(A=`<b>${x.nameStr||x.name}</b>: ${b.toHtml(ql(x.message))}`);const T=(L=x.stackStr)==null?void 0:L.includes("\x1B");return(T||(M=x.stack)!=null&&M.includes("\x1B"))&&(A.length>0?A+=b.toHtml(ql(T?x.stackStr:x.stack)):A=`<b>${x.nameStr||x.name}</b>: ${x.message}${b.toHtml(ql(T?x.stackStr:x.stack))}`),A.length>0?A:null}function s(b,x){const A=Wh(b);return x.map(T=>{var M;const E=T.result;if(!E)return T;const L=(M=E.errors)==null?void 0:M.map(P=>o(A,P)).filter(P=>P!=null).join("<br><br>");return L!=null&&L.length&&(E.htmlError=L),T})}const c=Ce(()=>{var E,L;const b=t.file,x=((E=b==null?void 0:b.tasks)==null?void 0:E.flatMap(M=>r(M,0)))??[],A=b==null?void 0:b.result;if((L=A==null?void 0:A.errors)==null?void 0:L[0]){const M={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:A};x.unshift(M)}return x.length>0?s(ya.value,x):x});function f(b){var A;const x=(A=b.meta)==null?void 0:A.failScreenshotPath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}const d=Be(!1),h=Be(Date.now()),p=Be(),v=Ce(()=>{var A;const b=(A=p.value)==null?void 0:A.meta.failScreenshotPath,x=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${x}`:void 0});function y(b){p.value=b,h.value=Date.now(),d.value=!0}return(b,x)=>{const A=gi,T=rfe,E=Zue,L=jw,M=Ur("tooltip");return oe(),me("div",ife,[z(c).length?(oe(!0),me(ut,{key:0},ui(z(c),P=>{var N,q,W,X;return oe(),me("div",{key:P.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Kt({"margin-left":`${(N=P.result)!=null&&N.htmlError?.5:2*P.level+.5}rem`})},[Y("div",ofe,[Y("span",null,qe(P.name),1),z(Ro)&&((q=P.meta)!=null&&q.failScreenshotPath)?(oe(),me(ut,{key:0},[vt(Pe(A,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:ie=>y(P)},null,8,["onClick"]),[[M,"View screenshot error",void 0,{bottom:!0}]]),vt(Pe(A,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:ie=>f(P)},null,8,["onClick"]),[[M,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(W=P.result)!=null&&W.htmlError?(oe(),me("div",sfe,[Y("pre",{innerHTML:P.result.htmlError},null,8,lfe)])):(X=P.result)!=null&&X.errors?(oe(!0),me(ut,{key:1},ui(P.result.errors,(ie,ee)=>{var j;return oe(),ot(T,{key:ee,error:ie,filename:(j=b.file)==null?void 0:j.name,root:z(Hu).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)])}),128)):(oe(),me("div",afe," All tests passed in this file ")),z(Ro)?(oe(),ot(L,{key:2,modelValue:z(d),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(d)?d.value=P:null),direction:"right"},{default:st(()=>[z(p)?(oe(),ot(Ry,{key:0},{default:st(()=>[Pe(E,{file:z(p).file.filepath,name:z(p).name,url:z(v),onClose:x[0]||(x[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),ufe=Vr(cfe,[["__scopeId","data-v-8f3dbcaa"]]),ffe={border:"b base","p-4":""},dfe=["innerHTML"],hfe=ft({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",ffe,[Y("div",{"text-xs":"","mb-1":"",class:lt(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},qe(t(r.time))+" | "+qe(r.taskName)+" | "+qe(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,dfe)]))}}),pfe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},gfe={key:1,p6:""},vfe=Y("pre",{inline:""},"console.log(foo)",-1),mfe=ft({__name:"ViewConsoleOutput",setup(e){const t=Ce(()=>{const o=Uw.value;if(o){const s=Wh(ya.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ql(h))}))}});function r(o){const s=o&&bt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?YE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=hfe;return(f=z(t))!=null&&f.length?(oe(),me("div",pfe,[(oe(!0),me(ut,null,ui(z(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),me("p",gfe,[pt(" Log something in your test and it would print here. (e.g. "),vfe,pt(") ")]))}}});var Gw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],A=/Opera\//.test(r),T=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),M=T&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),N=M||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),q=M||/Mac/.test(o),W=/\bCrOS\b/.test(r),X=/win/i.test(o),ie=A&&r.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(A=!1,v=!0);var ee=q&&(y||A&&(ie==null||ie<12.11)),j=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var Z=function(n,i){var a=n.className,l=te(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function H(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function I(n,i){return H(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function B(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var U;document.createRange?U=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:U=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function re(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ye(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Ne(n,i){var a=n.className;te(i).test(a)||(n.className+=(a?" ":"")+i)}function We(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!te(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};M?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function rt(n){return Je(n.display.wrapper)}function Je(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Le(n){return it(n).defaultView}function K(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,m=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return m+(i-g);m+=w-g,m+=a-m%a,g=w+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Ee(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ze=50,O={toString:function(){return"CodeMirror.Pass"}},F={scroll:!1},J={origin:"*mouse"},ue={origin:"+move"};function le(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var m=g-l;if(g==n.length||u+m>=i)return l+Math.min(m,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var he=[""];function Se(n){for(;he.length<=n;)he.push(fe(he)+" ");return he[n]}function fe(n){return n[n.length-1]}function xe(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function pe(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Me(){}function ze(n,i){var a;return Object.create?a=Object.create(n):(Me.prototype=n,a=new Me),i&&ae(i,a),a}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Re.test(n))}function Ge(n,i){return i?i.source.indexOf("\\w")>-1&&Ue(n)?!0:i.test(n):Ue(n)}function mt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var tt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function nt(n){return n.charCodeAt(0)>=768&&tt.test(n)}function Ft(n,i,a){for(;(a<0?i>0:i<n.length)&&nt(n.charAt(i));)i+=a;return i}function Jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function lr(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var m=n[g];(m.from<a&&m.to>i||i==a&&m.to==i)&&(l(Math.max(m.from,i),Math.min(m.to,a),m.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var qn=null;function ar(n,i,a){var l;qn=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:qn=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:qn=u)}return l??qn}var Qt=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(S){return S<=247?n.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,m=/[Lb1n]/,w=/[1n]/;function _(S,$,D){this.level=S,this.from=$,this.to=D}return function(S,$){var D=$=="ltr"?"L":"R";if(S.length==0||$=="ltr"&&!l.test(S))return!1;for(var G=S.length,V=[],ne=0;ne<G;++ne)V.push(a(S.charCodeAt(ne)));for(var ce=0,ve=D;ce<G;++ce){var be=V[ce];be=="m"?V[ce]=ve:ve=be}for(var ke=0,we=D;ke<G;++ke){var Ae=V[ke];Ae=="1"&&we=="r"?V[ke]="n":g.test(Ae)&&(we=Ae,Ae=="r"&&(V[ke]="R"))}for(var He=1,De=V[0];He<G-1;++He){var Qe=V[He];Qe=="+"&&De=="1"&&V[He+1]=="1"?V[He]="1":Qe==","&&De==V[He+1]&&(De=="1"||De=="n")&&(V[He]=De),De=Qe}for(var xt=0;xt<G;++xt){var Vt=V[xt];if(Vt==",")V[xt]="N";else if(Vt=="%"){var Tt=void 0;for(Tt=xt+1;Tt<G&&V[Tt]=="%";++Tt);for(var Nn=xt&&V[xt-1]=="!"||Tt<G&&V[Tt]=="1"?"1":"N",yn=xt;yn<Tt;++yn)V[yn]=Nn;xt=Tt-1}}for(var Ot=0,bn=D;Ot<G;++Ot){var Yt=V[Ot];bn=="L"&&Yt=="1"?V[Ot]="L":g.test(Yt)&&(bn=Yt)}for(var Ht=0;Ht<G;++Ht)if(u.test(V[Ht])){var Rt=void 0;for(Rt=Ht+1;Rt<G&&u.test(V[Rt]);++Rt);for(var Mt=(Ht?V[Ht-1]:D)=="L",wn=(Rt<G?V[Rt]:D)=="L",cs=Mt==wn?Mt?"L":"R":D,Li=Ht;Li<Rt;++Li)V[Li]=cs;Ht=Rt-1}for(var rn=[],Nr,jt=0;jt<G;)if(m.test(V[jt])){var Ff=jt;for(++jt;jt<G&&m.test(V[jt]);++jt);rn.push(new _(0,Ff,jt))}else{var ei=jt,vo=rn.length,mo=$=="rtl"?1:0;for(++jt;jt<G&&V[jt]!="L";++jt);for(var cn=ei;cn<jt;)if(w.test(V[cn])){ei<cn&&(rn.splice(vo,0,new _(1,ei,cn)),vo+=mo);var us=cn;for(++cn;cn<jt&&w.test(V[cn]);++cn);rn.splice(vo,0,new _(2,us,cn)),vo+=mo,ei=cn}else++cn;ei<jt&&rn.splice(vo,0,new _(1,ei,jt))}return $=="ltr"&&(rn[0].level==1&&(Nr=S.match(/^\s+/))&&(rn[0].from=Nr[0].length,rn.unshift(new _(0,0,Nr[0].length))),fe(rn).level==1&&(Nr=S.match(/\s+$/))&&(fe(rn).to-=Nr[0].length,rn.push(new _(0,G-Nr[0].length,G)))),$=="rtl"?rn.reverse():rn}}();function Ve(n,i){var a=n.order;return a==null&&(a=n.order=Qt(n.text,i)),a}var oo=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||oo).concat(a)}};function Gr(n,i){return n._handlers&&n._handlers[i]||oo}function en(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Ee(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Et(n,i){var a=Gr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Lt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Et(n,a||i.type,n,i),pn(i)||i.codemirrorIgnore}function Zn(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Ee(a,i[l])==-1&&a.push(i[l])}function An(n,i){return Gr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){en(this,i,a)}}function tn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Io(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function pn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function vi(n){tn(n),Io(n)}function Bs(n){return n.target||n.srcElement}function ur(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),q&&n.ctrlKey&&i==1&&(i=3),i}var Vu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Fo;function _a(n){if(Fo==null){var i=k("span","");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Fo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Fo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ws;function mi(n){if(Ws!=null)return Ws;var i=I(n,document.createTextNode("AخA")),a=U(i,0,1).getBoundingClientRect(),l=U(i,1,2).getBoundingClientRect();return H(n),!a||a.left==a.right?!1:Ws=l.right-a.right<3}var Jn=`
|
|
25
|
+
`).map(t=>Vae(t)).filter(Fb)}function Xae(e,t){return t&&e.endsWith(t)}async function dw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Wh(e){return new Jle({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Yae(e){return e===null||typeof e!="function"&&typeof e!="object"}function hw(e){let t=e;if(Yae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=jae(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}function Du(e){return B0()?(eS(e),!0):!1}function Br(e){return typeof e=="function"?e():z(e)}const Zae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Jae=Object.prototype.toString,Qae=e=>Jae.call(e)==="[object Object]",na=()=>{};function pw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const gw=e=>e();function vw(e,t={}){let r,o,s=na;const c=d=>{clearTimeout(d),s(),s=na};return d=>{const h=Br(e),p=Br(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function ece(e=gw){const t=Be(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ua(t),pause:r,resume:o,eventFilter:s}}function tce(e){return da()}function nce(...e){if(e.length!==1)return yu(...e);const t=e[0];return typeof t=="function"?ua(iy(()=>({get:t,set:na}))):Be(t)}function dc(e,t=200,r={}){return pw(vw(t,r),e)}function mw(e,t,r={}){const{eventFilter:o=gw,...s}=r;return It(e,pw(o,t),s)}function yw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=ece(o);return{stop:mw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Uh(e,t=!0,r){tce()?Hs(e,r):t?e():ln(e)}function rce(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Pt(e),c=Be(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Br(r);return c.value=c.value===h?Br(o):h,c.value}}return s?f:[c,f]}function bw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return mw(e,t,{...c,eventFilter:vw(o,{maxWait:s})})}function ice(e,t,r){const o=It(e,(...s)=>(ln(()=>o()),t(...s)),r);return o}function oce(e,t,r){let o;Pt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=na}=o,h=Be(!s),p=f?Wr(t):Be(t);let v=0;return Th(async y=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const A=await e(T=>{y(()=>{c&&(c.value=!1),x||T()})});b===v&&(p.value=A)}catch(A){d(A)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?Ce(()=>(h.value=!0,p.value)):p}function eu(e){var t;const r=Br(e);return(t=r==null?void 0:r.$el)!=null?t:r}const or=Zae?window:void 0;function Ps(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=or):[t,r,o,s]=e,!t)return na;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,y,b,x)=>(v.addEventListener(y,b,x),()=>v.removeEventListener(y,b,x)),h=It(()=>[eu(t),Br(s)],([v,y])=>{if(f(),!v)return;const b=Qae(y)?{...y}:y;c.push(...r.flatMap(x=>o.map(A=>d(v,x,A,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Du(p),p}function sce(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ww(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=or,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=sce(t);return Ps(s,c,v=>{v.repeat&&Br(d)||h(v)&&r(v)},f)}function lce(){const e=Be(!1),t=da();return t&&Hs(()=>{e.value=!0},t),e}function xw(e){const t=lce();return Ce(()=>(t.value,!!e()))}function ace(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=or}=t,c=Be(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const x=b-d;if(f&&x<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:x,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function y(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),Du(y),{isActive:ua(c),pause:y,resume:v}}function _w(e,t={}){const{window:r=or}=t,o=xw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Be(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Th(()=>{o.value&&(d(),s=r.matchMedia(Br(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return Du(()=>{h(),d(),s=void 0}),c}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",cce=uce();function uce(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Sw(e,t){return cce[e]||t}function fce(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const dce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Jm="vueuse-storage";function kw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:y=or,eventFilter:b,onError:x=j=>{console.error(j)},initOnMounted:A}=o,T=(v?Wr:Be)(typeof t=="function"?t():t);if(!r)try{r=Sw("getDefaultStorage",()=>{var j;return(j=or)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!r)return T;const E=Br(t),L=fce(E),M=(s=o.serializer)!=null?s:dce[L],{pause:P,resume:N}=yw(T,()=>W(T.value),{flush:c,deep:f,eventFilter:b});y&&d&&Uh(()=>{r instanceof Storage?Ps(y,"storage",ie):Ps(y,Jm,ee),A&&ie()}),A||ie();function q(j,te){y&&!(r instanceof Storage)&&y.dispatchEvent(new CustomEvent(Jm,{detail:{key:e,oldValue:j,newValue:te,storageArea:r}}))}function W(j){try{const te=r.getItem(e);if(j==null)q(te,null),r.removeItem(e);else{const Z=M.write(j);te!==Z&&(r.setItem(e,Z),q(te,Z))}}catch(te){x(te)}}function X(j){const te=j?j.newValue:r.getItem(e);if(te==null)return h&&E!=null&&r.setItem(e,M.write(E)),E;if(!j&&p){const Z=M.read(te);return typeof p=="function"?p(Z,E):L==="object"&&!Array.isArray(Z)?{...E,...Z}:Z}else return typeof te!="string"?te:M.read(te)}function ie(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){T.value=E;return}if(!(j&&j.key!==e)){P();try{(j==null?void 0:j.newValue)!==M.write(T.value)&&(T.value=X(j))}catch(te){x(te)}finally{j?ln(N):N()}}}}function ee(j){ie(j.detail)}return T}function Cw(e){return _w("(prefers-color-scheme: dark)",e)}const hce="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function pce(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=or,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,y={auto:"",light:"light",dark:"dark",...e.modes||{}},b=Cw({window:s}),x=Ce(()=>b.value?"dark":"light"),A=h||(f==null?nce(o):kw(f,o,c,{window:s,listenToStorageChanges:d})),T=Ce(()=>A.value==="auto"?x.value:A.value),E=Sw("updateHTMLAttrs",(N,q,W)=>{const X=typeof N=="string"?s==null?void 0:s.document.querySelector(N):eu(N);if(!X)return;const ie=new Set,ee=new Set;let j=null;if(q==="class"){const Z=W.split(/\s/g);Object.values(y).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{Z.includes(H)?ie.add(H):ee.add(H)})}else j={key:q,value:W};if(ie.size===0&&ee.size===0&&j===null)return;let te;v&&(te=s.document.createElement("style"),te.appendChild(document.createTextNode(hce)),s.document.head.appendChild(te));for(const Z of ie)X.classList.add(Z);for(const Z of ee)X.classList.remove(Z);j&&X.setAttribute(j.key,j.value),v&&(s.getComputedStyle(te).opacity,document.head.removeChild(te))});function L(N){var q;E(t,r,(q=y[N])!=null?q:N)}function M(N){e.onChanged?e.onChanged(N,L):L(N)}It(T,M,{flush:"post",immediate:!0}),Uh(()=>M(T.value));const P=Ce({get(){return p?A.value:T.value},set(N){A.value=N}});try{return Object.assign(P,{store:A,system:x,state:T})}catch{return P}}function gce(e={}){const{valueDark:t="dark",valueLight:r="",window:o=or}=e,s=pce({...e,onChanged:(d,h)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,d==="dark",h,d):h(d)},modes:{dark:t,light:r}}),c=Ce(()=>s.system?s.system.value:Cw({window:o}).value?"dark":"light");return Ce({get(){return s.value==="dark"},set(d){const h=d?"dark":"light";c.value===h?s.value="auto":s.value=h}})}function vce(e,t,r={}){const{window:o=or,...s}=r;let c;const f=xw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Ce(()=>{const y=Br(e);return Array.isArray(y)?y.map(b=>eu(b)):[eu(y)]}),p=It(h,y=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of y)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Du(v),{isSupported:f,stop:v}}function zu(e,t,r={}){const{window:o=or}=r;return kw(e,t,o==null?void 0:o.localStorage,r)}function mce(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=or}=t;if(!f)return Xn(r);const d=Xn({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const L=f.location.hash||"",M=L.indexOf("?");return M>0?L.slice(M):""}else return(f.location.hash||"").replace(/^#/,"")}function p(L){const M=L.toString();if(e==="history")return`${M?`?${M}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${M?`#${M}`:""}`;const P=f.location.hash||"#",N=P.indexOf("?");return N>0?`${P.slice(0,N)}${M?`?${M}`:""}`:`${P}${M?`?${M}`:""}`}function v(){return new URLSearchParams(h())}function y(L){const M=new Set(Object.keys(d));for(const P of L.keys()){const N=L.getAll(P);d[P]=N.length>1?N:L.get(P)||"",M.delete(P)}Array.from(M).forEach(P=>delete d[P])}const{pause:b,resume:x}=yw(d,()=>{const L=new URLSearchParams("");Object.keys(d).forEach(M=>{const P=d[M];Array.isArray(P)?P.forEach(N=>L.append(M,N)):o&&P==null||s&&!P?L.delete(M):L.set(M,P)}),A(L)},{deep:!0});function A(L,M){b(),M&&y(L),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(L)),x()}function T(){c&&A(v(),!0)}Ps(f,"popstate",T,!1),e!=="history"&&Ps(f,"hashchange",T,!1);const E=v();return E.keys().next().value?y(E):Object.assign(d,r),d}function Vh(e={}){const{window:t=or,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Be(r),h=Be(o),p=()=>{t&&(f==="outer"?(d.value=t.outerWidth,h.value=t.outerHeight):c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight))};if(p(),Uh(p),Ps("resize",p,{passive:!0}),s){const v=_w("(orientation: portrait)");It(v,()=>p())}return{width:d,height:h}}const jh=mce("hash",{initialValue:{file:"",view:null,line:null}}),eo=yu(jh,"file"),Un=yu(jh,"view"),zd=yu(jh,"line"),Pr=Be([414,896]),tu=Be("idle"),yce=Ce(()=>tu.value==="idle"),Hi=Be([]),Os=Be(),Ss=Be(!0),to=Be(!1),nu=Be(!0),hs=Ce(()=>{var e;return(e=Hu.value)==null?void 0:e.coverage}),Id=Ce(()=>{var e;return(e=hs.value)==null?void 0:e.enabled}),ps=Ce(()=>Id.value&&!!hs.value.htmlReporter),br=zu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=zu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),dn=Xn({navigation:br.value[0],details:{size:br.value[1],browser:Mo.value[0],main:Mo.value[1]}}),Qm=Ce(()=>{var e;if(ps.value){const t=hs.value.reportsDirectory.lastIndexOf("/"),r=(e=hs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${hs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${hs.value.reportsDirectory.slice(t+1)}/index.html`}});It(tu,e=>{nu.value=e==="running"},{immediate:!0});function bce(){const e=eo.value;if(e&&e.length>0){const t=sr(e);t?(Os.value=t,Ss.value=!1,to.value=!1):ice(()=>wt.state.getFiles(),()=>{Os.value=sr(e),Ss.value=!1,to.value=!1})}return Ss}function ru(e){Ss.value=e,to.value=!1,e&&(Os.value=void 0,eo.value="")}function Tw(e,t=null){eo.value=e.file.id,zd.value=null,t!=null&&(ln(()=>{zd.value=t}),Un.value="editor"),Os.value=sr(e.file.id),ru(!1)}function wce(){to.value=!0,Ss.value=!1,Os.value=void 0,eo.value=""}function xce(){dn.details.browser=100,dn.details.main=0,Mo.value=[100,0]}function _ce(){dn.details.browser=33,dn.details.main=67,Mo.value=[33,67]}function Sce(){dn.navigation=33,dn.details.size=67,br.value=[33,67]}const kce={setCurrentFileId(e){eo.value=e,Os.value=sr(e),ru(!1)},async setIframeViewport(e,t){Pr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}};var Kn=Uint8Array,gs=Uint16Array,Cce=Int32Array,Ew=new Kn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Lw=new Kn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Tce=new Kn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Aw=function(e,t){for(var r=new gs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Cce(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Mw=Aw(Ew,2),Nw=Mw.b,Ece=Mw.r;Nw[28]=258,Ece[258]=28;var Lce=Aw(Lw,0),Ace=Lce.b,Fd=new gs(32768);for(var Ct=0;Ct<32768;++Ct){var Pi=(Ct&43690)>>1|(Ct&21845)<<1;Pi=(Pi&52428)>>2|(Pi&13107)<<2,Pi=(Pi&61680)>>4|(Pi&3855)<<4,Fd[Ct]=((Pi&65280)>>8|(Pi&255)<<8)>>1}var Hl=function(e,t,r){for(var o=e.length,s=0,c=new gs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new gs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new gs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],y=f[e[s]-1]++<<v,b=y|(1<<v)-1;y<=b;++y)d[Fd[y]>>h]=p}else for(d=new gs(o),s=0;s<o;++s)e[s]&&(d[s]=Fd[f[e[s]-1]++]>>15-e[s]);return d},va=new Kn(288);for(var Ct=0;Ct<144;++Ct)va[Ct]=8;for(var Ct=144;Ct<256;++Ct)va[Ct]=9;for(var Ct=256;Ct<280;++Ct)va[Ct]=7;for(var Ct=280;Ct<288;++Ct)va[Ct]=8;var $w=new Kn(32);for(var Ct=0;Ct<32;++Ct)$w[Ct]=5;var Mce=Hl(va,9,1),Nce=Hl($w,5,1),nd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},yr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},rd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},$ce=function(e){return(e+7)/8|0},Pw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Kn(e.subarray(t,r))},Pce=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Pn=function(e,t,r){var o=new Error(t||Pce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Pn),!r)throw o;return o},Gh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Kn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Kn(s*3));var p=function(Ee){var Ze=r.length;if(Ee>Ze){var O=new Kn(Math.max(Ze*2,Ee));O.set(r),r=O}},v=t.f||0,y=t.p||0,b=t.b||0,x=t.l,A=t.d,T=t.m,E=t.n,L=s*8;do{if(!x){v=yr(e,y,1);var M=yr(e,y+1,3);if(y+=3,M)if(M==1)x=Mce,A=Nce,T=9,E=5;else if(M==2){var W=yr(e,y,31)+257,X=yr(e,y+10,15)+4,ie=W+yr(e,y+5,31)+1;y+=14;for(var ee=new Kn(ie),j=new Kn(19),te=0;te<X;++te)j[Tce[te]]=yr(e,y+te*3,7);y+=X*3;for(var Z=nd(j),H=(1<<Z)-1,I=Hl(j,Z,1),te=0;te<ie;){var k=I[yr(e,y,H)];y+=k&15;var P=k>>4;if(P<16)ee[te++]=P;else{var B=0,U=0;for(P==16?(U=3+yr(e,y,3),y+=2,B=ee[te-1]):P==17?(U=3+yr(e,y,7),y+=3):P==18&&(U=11+yr(e,y,127),y+=7);U--;)ee[te++]=B}}var re=ee.subarray(0,W),ye=ee.subarray(W);T=nd(re),E=nd(ye),x=Hl(re,T,1),A=Hl(ye,E,1)}else Pn(1);else{var P=$ce(y)+4,N=e[P-4]|e[P-3]<<8,q=P+N;if(q>s){h&&Pn(0);break}d&&p(b+N),r.set(e.subarray(P,q),b),t.b=b+=N,t.p=y=q*8,t.f=v;continue}if(y>L){h&&Pn(0);break}}d&&p(b+131072);for(var Ne=(1<<T)-1,We=(1<<E)-1,je=y;;je=y){var B=x[rd(e,y)&Ne],it=B>>4;if(y+=B&15,y>L){h&&Pn(0);break}if(B||Pn(2),it<256)r[b++]=it;else if(it==256){je=y,x=null;break}else{var rt=it-254;if(it>264){var te=it-257,Je=Ew[te];rt=yr(e,y,(1<<Je)-1)+Nw[te],y+=Je}var Le=A[rd(e,y)&We],K=Le>>4;Le||Pn(3),y+=Le&15;var ye=Ace[K];if(K>3){var Je=Lw[K];ye+=rd(e,y)&(1<<Je)-1,y+=Je}if(y>L){h&&Pn(0);break}d&&p(b+131072);var ae=b+rt;if(b<ye){var de=c-ye,$e=Math.min(ye,ae);for(de+b<0&&Pn(3);b<$e;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=T,t.d=A,t.n=E)}while(!v);return b!=r.length&&f?Pw(r,0,b):r.subarray(0,b)},Oce=new Kn(0),Rce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Pn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},zce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Pn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Pn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Ice(e,t){return Gh(e,{i:2},t,t)}function Fce(e,t){var r=Rce(e);return r+8>e.length&&Pn(6,"invalid gzip data"),Gh(e.subarray(r,-8),{i:2},new Kn(Dce(e)),t)}function Hce(e,t){return Gh(e.subarray(zce(e,t),-4),{i:2},t,t)}function qce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Fce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Ice(e,t):Hce(e,t)}var Hd=typeof TextDecoder<"u"&&new TextDecoder,Bce=0;try{Hd.decode(Oce,{stream:!0}),Bce=1}catch{}var Wce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Pw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Uce(e,t){var r;if(Hd)return Hd.decode(e);var o=Wce(e),s=o.s,r=o.r;return r.length&&Pn(8),s}const id=()=>{},xn=()=>Promise.resolve();function Vce(){const e=Xn({state:new Bb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Xn(e.state.filesMap),e.state.idMap=Xn(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:xn,onDone:id,onTaskUpdate:id,writeFile:xn,rerun:xn,updateSnapshot:xn,resolveSnapshotPath:xn,snapshotSaved:xn,onAfterSuiteRun:xn,onCancel:xn,getCountOfFailedTests:()=>0,sendLog:xn,resolveSnapshotRawPath:xn,readSnapshotFile:xn,saveSnapshotFile:xn,readTestFile:async d=>t.sources[d],removeSnapshotFile:xn,onUnhandledError:id,saveTestFile:xn,getProvidedContext:()=>({}),getTestFiles:xn};e.rpc=r;let o;function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const y=new Uint8Array(await d.arrayBuffer()),b=Uce(qce(y));t=Rd(b)}else t=Rd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const qd=Wr([]),Hn=Wr([]),Cr=zu("vitest-ui_task-tree-opened",[],{shallow:!0}),iu=Ce(()=>new Set(Cr.value)),on=zu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),On=Be(on.value.search),jce={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ow(e){return e.replace(/[&<>"']/g,t=>jce[t])}const Gce=Ce(()=>{const e=On.value.toLowerCase();return e.length?new RegExp(`(${Ow(e)})`,"gi"):null}),Rw=Ce(()=>On.value.trim()!==""),et=Xn({failed:on.value.failed,success:on.value.success,skipped:on.value.skipped,onlyTests:on.value.onlyTests}),Bd=Ce(()=>!!(et.failed||et.success||et.skipped)),Iu=Wr([]),Rs=Be(!1),e0=Ce(()=>{const e=on.value.expandAll;return Cr.value.length>0?e!==!0:e!==!1}),Kce=Ce(()=>{const e=Rw.value,t=Bd.value,r=et.onlyTests,o=Te.summary.filesFailed,s=Te.summary.filesSuccess,c=Te.summary.filesSkipped,f=Te.summary.filesRunning,d=Iu.value;return Te.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Fu(e){return Object.hasOwnProperty.call(e,"tasks")}function Xce(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Dw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function Yce(e){return e.type==="test"||e.type==="custom"}function Zce(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function Cn(e){return e.type==="file"}function fi(e){return e.type==="file"||e.type==="suite"}function Jce(e=Te.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ra(e,t=!1){var o,s,c,f,d;let r=Te.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:iu.value.size>0&&iu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Dw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Te.nodes.set(e.id,r),Te.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)ma(e.id,e.tasks[h],!0)}function zw(e,t){const r=Te.nodes.get(e);if(!r||!fi(r))return;const o=wt.state.idMap.get(e);if(!(!o||!Fu(o)))return ma(r.parentId,o,t&&o.tasks.length>0),[r,o]}function Qce(e){const t=Te.nodes.get(e);if(!t)return;const r=wt.state.idMap.get(e);!r||!$s(r)||ma(t.parentId,r,!1)}function ma(e,t,r){var f,d,h,p,v;const o=Te.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Te.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):($s(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:iu.value.size>0&&iu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Te.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Fu(t)))for(let y=0;y<t.tasks.length;y++)ma(s.id,t.tasks[y],r)}function eue(e,t,r){return e?Hw(e,t,r):!1}function Kh(e,t){const r=[...Iw(e,t)];Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function*Iw(e,t){for(const r of Jce())yield*Fw(r,e,t)}function*Fw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[y,b]of Wd(e,o,x=>t0(x,t,r)))c.push([y,b]);else{for(const[y,b]of Wd(e,o,x=>t0(x,t,r)))fi(b)?(s.set(b.id,y),Cn(b)?(y&&(f=b.id),c.push([y,b])):c.push([y||s.get(b.parentId)===!0,b])):c.push([y||s.get(b.parentId)===!0,b]);!f&&!Cn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...nue(c,r.onlyTests,o,d,f)].reverse(),p=Te.nodes,v=new Set(h.filter(y=>{var b;return Cn(y)||fi(y)&&((b=p.get(y.parentId))==null?void 0:b.expanded)}).map(y=>y.id));yield*h.filter(y=>{var b;return Cn(y)||v.has(y.parentId)&&((b=p.get(y.parentId))==null?void 0:b.expanded)})}function tue(e,t,r,o,s){if(o){if(Cn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Te.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Te.nodes.get(t.parentId);return c&&Cn(c)&&s.add(c.id),t}}function*nue(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=fi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Te.nodes.get(d.parentId);for(;p;)r.add(p.id),Cn(p)&&o.add(p.id),p=Te.nodes.get(p.parentId);yield d;continue}if(h){const p=tue(f,d,r,t,o);p&&(yield p)}else if(f){const p=Te.nodes.get(d.parentId);p&&Cn(p)&&o.add(p.id),yield d}}}function rue(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Hw(e,t,r){if(t.length===0||Xce(e.name,t))if(r.success||r.failed||r.skipped){if(rue(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(Yce(e)){let s=Te.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Te.nodes.get(s.parentId)}else if(Cn(e))t.add(e.id);else{t.add(e.id);let s=Te.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Te.nodes.get(s.parentId)}if(yield[o,e],fi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function t0(e,t,r){const o=wt.state.idMap.get(e.id);return o?Hw(o,t,r):!1}function iue(e,t,r){const o=zw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)ma(s.id,p,!1);s.expanded=!0;const f=new Set(Cr.value);f.add(s.id);const d=new Set(Fw(s,t,r)),h=[...lue(s,d)];Cr.value=Array.from(f),Hn.value=h}function oue(e,t){Xh(Te.root.tasks,!1);const r=[...Iw(e,t)];on.value.expandAll=!1,Cr.value=[],Hn.value=r,Iu.value=r.filter(Cn).map(o=>sr(o.id))}function sue(e,t){if(e.size)for(const r of Hn.value)e.has(r.id)&&(r.expanded=!0);else t&&Xh(Hn.value.filter(Cn),!0)}function Xh(e,t){for(const r of e)fi(r)&&(r.expanded=!0,Xh(r.tasks,!1));t&&(on.value.expandAll=!1,Cr.value=[])}function*lue(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Hn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function aue(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ra(s,t)),qd.value=[...Te.root.tasks],Kh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function cue(e){queueMicrotask(()=>{const t=Te.pendingTasks,r=wt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function n0(e,t,r,o,s){e&&gue(r);const c=!e;queueMicrotask(()=>{t?due(c):hue(c)}),queueMicrotask(()=>{vue(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=qd.value&&Hh(qd.value.map(f=>sr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{pue(o,s,t)})}function*uue(){yield*Hn.value.filter(Zce)}function fue(){const e=wt.state.idMap;let t;for(const r of uue())t=e.get(r.parentId),t&&Fu(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function due(e){const t=wt.state.getFiles(),r=Te.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ra(o[c],e),ou(o[c].tasks);const s=Te.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=sr(f.id);if(!d)continue;ra(d,e);const h=d.tasks;h!=null&&h.length&&ou(d.tasks)}}function hue(e){const t=new Map(Te.pendingTasks.entries());Te.pendingTasks.clear();const r=Te.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>sr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ra(s,!1),ou(s.tasks),t.delete(s.id);const c=wt.state.idMap,f=Te.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=sr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ra(p,e),ou(Array.from(v).map(y=>c.get(y)).filter(Boolean)))}}function pue(e,t,r=!1){const o=on.value.expandAll,s=o!==!0,c=new Set(Cr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{r0(e,t,r)}),Rs.value||queueMicrotask(()=>{(Hn.value.length||r)&&(Rs.value=!0)}),f&&(queueMicrotask(()=>{sue(c,r),s&&(on.value.expandAll=!1)}),queueMicrotask(()=>{r0(e,t,r)}))}function r0(e,t,r){Kh(e,t),r&&fue()}function ou(e){let t;for(let r=0;r<e.length;r++)t=e[r],Fu(t)?zw(t.id,!0):Qce(t.id)}function gue(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function vue(e){var f,d,h,p,v,y;const t=wt.state.idMap,r=new Map(Te.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,sr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[b,x]of o){if(!x)continue;const A=r.get(b);A&&(A.mode=x.mode,A.setupDuration=x.setupDuration,A.prepareDuration=x.prepareDuration,A.environmentLoad=x.environmentLoad,A.collectDuration=x.collectDuration,A.duration=((f=x.result)==null?void 0:f.duration)!=null?Math.round((d=x.result)==null?void 0:d.duration):void 0,A.state=(h=x.result)==null?void 0:h.state),c+=Math.max(0,x.collectDuration||0),c+=Math.max(0,x.setupDuration||0),c+=Math.max(0,((p=x.result)==null?void 0:p.duration)||0),c+=Math.max(0,x.environmentLoad||0),c+=Math.max(0,x.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=x.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((y=x.result)==null?void 0:y.state)==="pass"?s.filesSuccess++:x.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):x.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:T,success:E,skipped:L,total:M,ignored:P,todo:N}=qw(x);s.totalTests+=M,s.testsFailed+=T,s.testsSuccess+=E,s.testsSkipped+=L,s.testsTodo+=N,s.testsIgnore+=P}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function qw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of Bw(e))(!r||eue(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function mue(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>qw(h,s,c)).reduce((h,{failed:p,success:v,ignored:y,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=y,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,y=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=y?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*Bw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],$s(r)?yield r:yield*Bw(r.tasks)}function yue(e){const t=Te.nodes.get(e);if(!t||!fi(t))return;const r=new Set(Cr.value);r.delete(t.id);const o=[...wue(t)];Cr.value=Array.from(r),Hn.value=o}function bue(){Ud(Te.root.tasks);const e=[...Hn.value.filter(Cn)];Ud(e),Cr.value=[],on.value.expandAll=!0,Hn.value=e}function Ud(e){for(const t of e)fi(t)&&(t.expanded=!1,Ud(t.tasks))}function*Ww(e,t){if(t&&(yield e.id),fi(e))for(let r=0;r<e.tasks.length;r++)yield*Ww(e.tasks[r],!0)}function*wue(e){const t=e.id,r=new Set(Ww(e,!1));for(let o=0;o<Hn.value.length;o++){const s=Hn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}class xue{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=Xn({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){fs(this,"rafCollector");fs(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=ace(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){aue(t,!0,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){cue(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{n0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}):n0(t,r,this.summary,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collectTestsTotal(t,r,o,s){return mue(t,r,o,s,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})}collapseNode(t){queueMicrotask(()=>{yue(t)})}expandNode(t){queueMicrotask(()=>{iue(t,On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{bue()})}expandAllNodes(){queueMicrotask(()=>{oue(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kh(On.value.trim(),{failed:et.failed,success:et.success,skipped:et.skipped,onlyTests:et.onlyTests})})}}const Te=new xue,wt=function(){return Ir?Vce():ZE(eL,{reactive:(t,r)=>r==="state"?Xn(t):Wr(t),handlers:{onTaskUpdate(t){Te.resumeRun(t),tu.value="running"},onFinished(t,r){Te.endRun(),tu.value="idle",Hi.value=(r||[]).map(hw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Hu=Wr({}),To=Be("CONNECTING"),Gt=Ce(()=>{const e=eo.value;return e?sr(e):void 0}),Uw=Ce(()=>Fh(Gt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function sr(e){const t=wt.state.idMap.get(e);return t||void 0}const _ue=Ce(()=>To.value==="OPEN"),od=Ce(()=>To.value==="CONNECTING");Ce(()=>To.value==="CLOSED");function Sue(){return Yh(wt.state.getFiles())}function kue(e){const t=Te.nodes;e.forEach(r=>{delete r.result,Fh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Cn(o)&&(o.collectDuration=void 0))})}function Yh(e){return kue(e),Te.startRun(),wt.rpc.rerun(e.map(t=>t.filepath))}const Ro=window.__vitest_browser_runner__;window.__vitest_ui_api__=kce;It(()=>wt.ws,e=>{To.value=Ir?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.value="OPEN",wt.state.filesMap.clear();let[t,r,o]=await Promise.all([wt.rpc.getFiles(),wt.rpc.getConfig(),wt.rpc.getUnhandledErrors()]);r.standalone&&(t=(await wt.rpc.getTestFiles()).map(([{name:c,root:f},d])=>{const h=Hb(d,f,c);return h.mode="skip",h})),Te.loadFiles(t),wt.state.collectFiles(t),Te.startRun(),Hi.value=(o||[]).map(hw),Hu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Cue={"text-2xl":""},Tue={"text-lg":"",op50:""},Eue=ft({__name:"ConnectionOverlay",setup(e){return(t,r)=>z(_ue)?Ye("",!0):(oe(),me("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>z(wt).reconnect&&z(wt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:lt(z(od)?"animate-pulse":"")},[Y("div",{text:"5xl",class:lt(z(od)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Cue,qe(z(od)?"Connecting...":"Disconnected"),1),Y("div",Tue," Check your terminal or start a new server with `"+qe(z(Ro)?`vitest --browser=${z(Ro).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Lue=["aria-label","opacity","disabled","hover"],gi=ft({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:lt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[hn(t.$slots,"default",{},()=>[Y("span",{class:lt(t.icon),ma:"",block:""},null,2)])],10,Lue))}}),Vw=e=>(Is("data-v-28536a8a"),e=e(),Fs(),e),Aue={h:"full",flex:"~ col"},Mue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Nue=Vw(()=>Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),$ue=Vw(()=>Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),Pue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Oue={class:"pointer-events-none","text-sm":""},Rue={key:0},Due={id:"tester-container",relative:""},zue=["data-scale"],i0=20,Iue=100,Fue=ft({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Pr.value[0]===v[0]&&Pr.value[1]===v[1]}async function o(p){Pr.value=t[p]}const{width:s,height:c}=Vh(),f=Ce(()=>{const y=s.value*(dn.details.size/100)*(dn.details.browser/100)-i0,b=c.value-Iue;return{width:y,height:b}}),d=Ce(()=>{const[p,v]=Pr.value,{width:y,height:b}=f.value,x=y>p?1:y/p,A=b>v?1:b/v;return Math.min(1,x,A)}),h=Ce(()=>{const p=f.value.width,v=Pr.value[0];return`${Math.trunc((p+i0-v)/2)}px`});return(p,v)=>{const y=gi,b=Ur("tooltip");return oe(),me("div",Aue,[Y("div",Mue,[vt(Pe(y,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=x=>z(Sce)())},null,512),[[Ui,z(dn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),Nue,$ue,vt(Pe(y,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=x=>z(xce)())},null,512),[[Ui,z(dn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=x=>z(_ce)())},null,512),[[Ui,z(dn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Y("div",Pue,[vt(Pe(y,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=x=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=x=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),vt(Pe(y,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=x=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Y("span",Oue,[pt(qe(z(Pr)[0])+"x"+qe(z(Pr)[1])+"px ",1),z(d)<1?(oe(),me("span",Rue,"("+qe((z(d)*100).toFixed(0))+"%)",1)):Ye("",!0)])]),Y("div",Due,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":z(d),style:Kt({"--viewport-width":`${z(Pr)[0]}px`,"--viewport-height":`${z(Pr)[1]}px`,"--tester-transform":`scale(${z(d)})`,"--tester-margin-left":z(h)})}," Select a test to run ",12,zue)])])}}}),Hue=Vr(Fue,[["__scopeId","data-v-28536a8a"]]),jw=ft({__name:"Modal",props:qc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue"),r=Ce(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=Ce(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),me("div",{class:lt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:lt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:lt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[z(r)]]),style:Kt(t.value?{}:{transform:z(o)})},[hn(c.$slots,"default")],6)],2))}}),que=e=>(Is("data-v-93900314"),e=e(),Fs(),e),Bue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Wue={"p-4":"",relative:"",border:"base b"},Uue=que(()=>Y("p",null,"Screenshot error",-1)),Vue={op50:"","font-mono":"","text-sm":""},jue={op50:"","font-mono":"","text-sm":""},Gue={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Kue=["src","alt"],Xue={key:1},Yue=ft({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return ww("Escape",()=>{r("close")}),(o,s)=>{const c=gi;return oe(),me("div",Bue,[Y("div",Wue,[Uue,Y("p",Vue,qe(o.file),1),Y("p",jue,qe(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Y("div",Gue,[o.url?(oe(),me("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Kue)):(oe(),me("div",Xue," Something was wrong, the image cannot be resolved. "))])])}}}),Zue=Vr(Yue,[["__scopeId","data-v-93900314"]]);function ql(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ya=gce(),Jue=rce(ya),Que={class:"scrolls scrolls-rounded task-error"},efe=["onClickPassive"],tfe=["innerHTML"],nfe=ft({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Ce(()=>Wh(ya.value)),s=Ce(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Ce(()=>t.error.diff?o.value.toHtml(ql(t.error.diff)):void 0);return(f,d)=>{const h=Ur("tooltip");return oe(),me("div",Que,[Y("pre",null,[Y("b",null,qe(f.error.name||f.error.nameStr),1),pt(": "+qe(f.error.message),1)]),(oe(!0),me(ut,null,ui(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+qe(r(p.file))+":"+qe(p.line)+":"+qe(p.column),1),z(Xae)(p.file,f.filename)?vt((oe(),me("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>z(dw)(p.file,p.line,p.column)},null,40,efe)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ye("",!0)]))),128)),z(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:z(c)},null,8,tfe)):Ye("",!0)])}}}),rfe=Vr(nfe,[["__scopeId","data-v-9dd6eaea"]]),ife={"h-full":"",class:"scrolls"},ofe={flex:"~ gap-2 items-center"},sfe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},lfe=["innerHTML"],afe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},cfe=ft({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,x){var A;return((A=b.result)==null?void 0:A.state)!=="fail"?[]:b.type==="test"||b.type==="custom"?[{...b,level:x}]:[{...b,level:x},...b.tasks.flatMap(T=>r(T,x+1))]}function o(b,x){var E,L,M;let A="";(E=x.message)!=null&&E.includes("\x1B")&&(A=`<b>${x.nameStr||x.name}</b>: ${b.toHtml(ql(x.message))}`);const T=(L=x.stackStr)==null?void 0:L.includes("\x1B");return(T||(M=x.stack)!=null&&M.includes("\x1B"))&&(A.length>0?A+=b.toHtml(ql(T?x.stackStr:x.stack)):A=`<b>${x.nameStr||x.name}</b>: ${x.message}${b.toHtml(ql(T?x.stackStr:x.stack))}`),A.length>0?A:null}function s(b,x){const A=Wh(b);return x.map(T=>{var M;const E=T.result;if(!E)return T;const L=(M=E.errors)==null?void 0:M.map(P=>o(A,P)).filter(P=>P!=null).join("<br><br>");return L!=null&&L.length&&(E.htmlError=L),T})}const c=Ce(()=>{var E,L;const b=t.file,x=((E=b==null?void 0:b.tasks)==null?void 0:E.flatMap(M=>r(M,0)))??[],A=b==null?void 0:b.result;if((L=A==null?void 0:A.errors)==null?void 0:L[0]){const M={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:A};x.unshift(M)}return x.length>0?s(ya.value,x):x});function f(b){var A;const x=(A=b.meta)==null?void 0:A.failScreenshotPath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}const d=Be(!1),h=Be(Date.now()),p=Be(),v=Ce(()=>{var A;const b=(A=p.value)==null?void 0:A.meta.failScreenshotPath,x=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${x}`:void 0});function y(b){p.value=b,h.value=Date.now(),d.value=!0}return(b,x)=>{const A=gi,T=rfe,E=Zue,L=jw,M=Ur("tooltip");return oe(),me("div",ife,[z(c).length?(oe(!0),me(ut,{key:0},ui(z(c),P=>{var N,q,W,X;return oe(),me("div",{key:P.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Kt({"margin-left":`${(N=P.result)!=null&&N.htmlError?.5:2*P.level+.5}rem`})},[Y("div",ofe,[Y("span",null,qe(P.name),1),z(Ro)&&((q=P.meta)!=null&&q.failScreenshotPath)?(oe(),me(ut,{key:0},[vt(Pe(A,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:ie=>y(P)},null,8,["onClick"]),[[M,"View screenshot error",void 0,{bottom:!0}]]),vt(Pe(A,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:ie=>f(P)},null,8,["onClick"]),[[M,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ye("",!0)]),(W=P.result)!=null&&W.htmlError?(oe(),me("div",sfe,[Y("pre",{innerHTML:P.result.htmlError},null,8,lfe)])):(X=P.result)!=null&&X.errors?(oe(!0),me(ut,{key:1},ui(P.result.errors,(ie,ee)=>{var j;return oe(),ot(T,{key:ee,error:ie,filename:(j=b.file)==null?void 0:j.name,root:z(Hu).root},null,8,["error","filename","root"])}),128)):Ye("",!0)],4)])}),128)):(oe(),me("div",afe," All tests passed in this file ")),z(Ro)?(oe(),ot(L,{key:2,modelValue:z(d),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(d)?d.value=P:null),direction:"right"},{default:st(()=>[z(p)?(oe(),ot(Ry,{key:0},{default:st(()=>[Pe(E,{file:z(p).file.filepath,name:z(p).name,url:z(v),onClose:x[0]||(x[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])):Ye("",!0)])}}}),ufe=Vr(cfe,[["__scopeId","data-v-8f3dbcaa"]]),ffe={border:"b base","p-4":""},dfe=["innerHTML"],hfe=ft({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",ffe,[Y("div",{"text-xs":"","mb-1":"",class:lt(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},qe(t(r.time))+" | "+qe(r.taskName)+" | "+qe(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,dfe)]))}}),pfe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},gfe={key:1,p6:""},vfe=Y("pre",{inline:""},"console.log(foo)",-1),mfe=ft({__name:"ViewConsoleOutput",setup(e){const t=Ce(()=>{const o=Uw.value;if(o){const s=Wh(ya.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ql(h))}))}});function r(o){const s=o&&wt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?YE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=hfe;return(f=z(t))!=null&&f.length?(oe(),me("div",pfe,[(oe(!0),me(ut,null,ui(z(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),me("p",gfe,[pt(" Log something in your test and it would print here. (e.g. "),vfe,pt(") ")]))}}});var Gw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Oo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],A=/Opera\//.test(r),T=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),M=T&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),N=M||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),q=M||/Mac/.test(o),W=/\bCrOS\b/.test(r),X=/win/i.test(o),ie=A&&r.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(A=!1,v=!0);var ee=q&&(y||A&&(ie==null||ie<12.11)),j=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var Z=function(n,i){var a=n.className,l=te(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function H(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function I(n,i){return H(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function B(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var U;document.createRange?U=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:U=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function re(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ye(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Ne(n,i){var a=n.className;te(i).test(a)||(n.className+=(a?" ":"")+i)}function We(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!te(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};M?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function rt(n){return Je(n.display.wrapper)}function Je(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Le(n){return it(n).defaultView}function K(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,m=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return m+(i-g);m+=w-g,m+=a-m%a,g=w+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Ee(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ze=50,O={toString:function(){return"CodeMirror.Pass"}},F={scroll:!1},J={origin:"*mouse"},ue={origin:"+move"};function le(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var m=g-l;if(g==n.length||u+m>=i)return l+Math.min(m,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var he=[""];function Se(n){for(;he.length<=n;)he.push(fe(he)+" ");return he[n]}function fe(n){return n[n.length-1]}function xe(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function pe(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Me(){}function ze(n,i){var a;return Object.create?a=Object.create(n):(Me.prototype=n,a=new Me),i&&ae(i,a),a}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Re.test(n))}function Ge(n,i){return i?i.source.indexOf("\\w")>-1&&Ue(n)?!0:i.test(n):Ue(n)}function mt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var tt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function nt(n){return n.charCodeAt(0)>=768&&tt.test(n)}function Ft(n,i,a){for(;(a<0?i>0:i<n.length)&&nt(n.charAt(i));)i+=a;return i}function Jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function lr(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var m=n[g];(m.from<a&&m.to>i||i==a&&m.to==i)&&(l(Math.max(m.from,i),Math.min(m.to,a),m.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var qn=null;function ar(n,i,a){var l;qn=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:qn=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:qn=u)}return l??qn}var Qt=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(S){return S<=247?n.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,m=/[Lb1n]/,w=/[1n]/;function _(S,$,D){this.level=S,this.from=$,this.to=D}return function(S,$){var D=$=="ltr"?"L":"R";if(S.length==0||$=="ltr"&&!l.test(S))return!1;for(var G=S.length,V=[],ne=0;ne<G;++ne)V.push(a(S.charCodeAt(ne)));for(var ce=0,ve=D;ce<G;++ce){var be=V[ce];be=="m"?V[ce]=ve:ve=be}for(var ke=0,we=D;ke<G;++ke){var Ae=V[ke];Ae=="1"&&we=="r"?V[ke]="n":g.test(Ae)&&(we=Ae,Ae=="r"&&(V[ke]="R"))}for(var He=1,De=V[0];He<G-1;++He){var Qe=V[He];Qe=="+"&&De=="1"&&V[He+1]=="1"?V[He]="1":Qe==","&&De==V[He+1]&&(De=="1"||De=="n")&&(V[He]=De),De=Qe}for(var xt=0;xt<G;++xt){var Vt=V[xt];if(Vt==",")V[xt]="N";else if(Vt=="%"){var Tt=void 0;for(Tt=xt+1;Tt<G&&V[Tt]=="%";++Tt);for(var Nn=xt&&V[xt-1]=="!"||Tt<G&&V[Tt]=="1"?"1":"N",yn=xt;yn<Tt;++yn)V[yn]=Nn;xt=Tt-1}}for(var Ot=0,bn=D;Ot<G;++Ot){var Yt=V[Ot];bn=="L"&&Yt=="1"?V[Ot]="L":g.test(Yt)&&(bn=Yt)}for(var Ht=0;Ht<G;++Ht)if(u.test(V[Ht])){var Rt=void 0;for(Rt=Ht+1;Rt<G&&u.test(V[Rt]);++Rt);for(var Mt=(Ht?V[Ht-1]:D)=="L",wn=(Rt<G?V[Rt]:D)=="L",cs=Mt==wn?Mt?"L":"R":D,Li=Ht;Li<Rt;++Li)V[Li]=cs;Ht=Rt-1}for(var rn=[],Nr,jt=0;jt<G;)if(m.test(V[jt])){var Ff=jt;for(++jt;jt<G&&m.test(V[jt]);++jt);rn.push(new _(0,Ff,jt))}else{var ei=jt,vo=rn.length,mo=$=="rtl"?1:0;for(++jt;jt<G&&V[jt]!="L";++jt);for(var cn=ei;cn<jt;)if(w.test(V[cn])){ei<cn&&(rn.splice(vo,0,new _(1,ei,cn)),vo+=mo);var us=cn;for(++cn;cn<jt&&w.test(V[cn]);++cn);rn.splice(vo,0,new _(2,us,cn)),vo+=mo,ei=cn}else++cn;ei<jt&&rn.splice(vo,0,new _(1,ei,jt))}return $=="ltr"&&(rn[0].level==1&&(Nr=S.match(/^\s+/))&&(rn[0].from=Nr[0].length,rn.unshift(new _(0,0,Nr[0].length))),fe(rn).level==1&&(Nr=S.match(/\s+$/))&&(fe(rn).to-=Nr[0].length,rn.push(new _(0,G-Nr[0].length,G)))),$=="rtl"?rn.reverse():rn}}();function Ve(n,i){var a=n.order;return a==null&&(a=n.order=Qt(n.text,i)),a}var oo=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||oo).concat(a)}};function Gr(n,i){return n._handlers&&n._handlers[i]||oo}function en(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Ee(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Et(n,i){var a=Gr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Lt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Et(n,a||i.type,n,i),pn(i)||i.codemirrorIgnore}function Zn(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Ee(a,i[l])==-1&&a.push(i[l])}function An(n,i){return Gr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){en(this,i,a)}}function tn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Io(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function pn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function vi(n){tn(n),Io(n)}function Bs(n){return n.target||n.srcElement}function ur(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),q&&n.ctrlKey&&i==1&&(i=3),i}var Vu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Fo;function _a(n){if(Fo==null){var i=k("span","");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Fo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Fo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ws;function mi(n){if(Ws!=null)return Ws;var i=I(n,document.createTextNode("AخA")),a=U(i,0,1).getBoundingClientRect(),l=U(i,1,2).getBoundingClientRect();return H(n),!a||a.left==a.right?!1:Ws=l.right-a.right<3}var Jn=`
|
|
26
26
|
|
|
27
27
|
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
28
28
|
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),m=g.indexOf("\r");m!=-1?(a.push(g.slice(0,m)),i+=m+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},yi=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Sa=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),fr=null;function ju(n){if(fr!=null)return fr;var i=I(n,k("span","x")),a=i.getBoundingClientRect(),l=U(i,0,1).getBoundingClientRect();return fr=Math.abs(a.left-l.left)>1}var Ho={},dr={};function hr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Ho[n]=i}function so(n,i){dr[n]=i}function qo(n){if(typeof n=="string"&&dr.hasOwnProperty(n))n=dr[n];else if(n&&typeof n.name=="string"&&dr.hasOwnProperty(n.name)){var i=dr[n.name];typeof i=="string"&&(i={name:i}),n=ze(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=qo(i);var a=Ho[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(bi.hasOwnProperty(i.name)){var u=bi[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)l[m]=i.modeProps[m];return l}var bi={};function Wo(n,i){var a=bi.hasOwnProperty(n)?bi[n]:bi[n]={};ae(i,a)}function Er(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Us(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Uo(n,i,a){return n.startState?n.startState(i,a):!0}var At=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};At.prototype.eol=function(){return this.pos>=this.string.length},At.prototype.sol=function(){return this.pos==this.lineStart},At.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},At.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},At.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},At.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},At.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},At.prototype.skipToEnd=function(){this.pos=this.string.length},At.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},At.prototype.backUp=function(n){this.pos-=n},At.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(m){return a?m.toLowerCase():m},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},At.prototype.current=function(){return this.string.slice(this.start,this.pos)},At.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},At.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},At.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Oe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Kr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var m=g.text;u==a.line&&(m=m.slice(0,a.ch)),u==i.line&&(m=m.slice(i.ch)),l.push(m),++u}),l}function Vs(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Bn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=Ee(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function R(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var w=n.lines[m],_=w.height;if(i<_)break;i-=_}return a+m}function se(n,i){return i>=n.first&&i<n.first+n.size}function ge(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function Q(n,i,a){if(a===void 0&&(a=null),!(this instanceof Q))return new Q(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _e(n,i){return n.line-i.line||n.ch-i.ch}function dt(n,i){return n.sticky==i.sticky&&_e(n,i)==0}function qt(n){return Q(n.line,n.ch)}function gn(n,i){return _e(n,i)<0?i:n}function Vo(n,i){return _e(n,i)<0?n:i}function fp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return Q(n.first,0);var a=n.first+n.size-1;return i.line>a?Q(a,Oe(n,a).text.length):I1(i,Oe(n,i.line).text.length)}function I1(n,i){var a=n.ch;return a==null||a>i?Q(n.line,i):a<0?Q(n.line,0):n}function dp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var ka=function(n,i){this.state=n,this.lookAhead=i},Lr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Lr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Lr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Lr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Lr.fromSaved=function(n,i,a){return i instanceof ka?new Lr(n,Er(n.mode,i.state),a,i.lookAhead):new Lr(n,Er(n.mode,i),a)},Lr.prototype.save=function(n){var i=n!==!1?Er(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ka(i,this.maxLookAhead):i};function hp(n,i,a,l){var u=[n.state.modeGen],g={};bp(n,i.text,n.doc.mode,a,function(S,$){return u.push(S,$)},g,l);for(var m=a.state,w=function(S){a.baseTokens=u;var $=n.state.overlays[S],D=1,G=0;a.state=!0,bp(n,i.text,$.mode,a,function(V,ne){for(var ce=D;G<V;){var ve=u[D];ve>V&&u.splice(D,1,V,u[D+1],ve),D+=2,G=Math.min(V,ve)}if(ne)if($.opaque)u.splice(ce,D-ce,V,"overlay "+ne),D=ce+2;else for(;ce<D;ce+=2){var be=u[ce+1];u[ce+1]=(be?be+" ":"")+"overlay "+ne}},g),a.state=m,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function pp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=js(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Er(n.doc.mode,l.state),g=hp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function js(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Lr(l,!0,i);var g=F1(n,i,a),m=g>l.first&&Oe(l,g-1).stateAfter,w=m?Lr.fromSaved(l,m,g):new Lr(l,Uo(l.mode),g);return l.iter(g,i,function(_){Gu(n,_.text,w);var S=w.line;_.stateAfter=S==i-1||S%5==0||S>=u.viewFrom&&S<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function Gu(n,i,a,l){var u=n.doc.mode,g=new At(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&gp(u,a.state);!g.eol();)Ku(u,g,a.state),g.start=g.pos}function gp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Us(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Ku(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Us(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var vp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function mp(n,i,a,l){var u=n.doc,g=u.mode,m;i=Ke(u,i);var w=Oe(u,i.line),_=js(n,i.line,a),S=new At(w.text,n.options.tabSize,_),$;for(l&&($=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,m=Ku(g,S,_.state),l&&$.push(new vp(S,m,Er(u.mode,_.state)));return l?$:new vp(S,m,_.state)}function yp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function bp(n,i,a,l,u,g,m){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,S=null,$=new At(i,n.options.tabSize,l),D,G=n.options.addModeClass&&[null];for(i==""&&yp(gp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(w=!1,m&&Gu(n,i,l,$.pos),$.pos=i.length,D=null):D=yp(Ku(a,$,l.state,G),g),G){var V=G[0].name;V&&(D="m-"+(D?V+" "+D:V))}if(!w||S!=D){for(;_<$.start;)_=Math.min($.start,_+5e3),u(_,S);S=D}$.start=$.pos}for(;_<$.pos;){var ne=Math.min($.pos,_+5e3);u(ne,S),_=ne}}function F1(n,i,a){for(var l,u,g=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>m;--w){if(w<=g.first)return g.first;var _=Oe(g,w-1),S=_.stateAfter;if(S&&(!a||w+(S instanceof ka?S.lookAhead:0)<=g.modeFrontier))return w;var $=de(_.text,null,n.options.tabSize);(u==null||l>$)&&(u=w-1,l=$)}return u}function H1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Oe(n,l).stateAfter;if(u&&(!(u instanceof ka)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var wp=!1,Xr=!1;function q1(){wp=!0}function B1(){Xr=!0}function Ca(n,i,a){this.marker=n,this.from=i,this.to=a}function Gs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function W1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function U1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function V1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&m.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Ca(m,g.from,_?null:g.to))}}return l}function j1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&m.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Ca(m,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Xu(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Oe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,m=_e(i.from,i.to)==0,w=V1(a,u,m),_=j1(l,g,m),S=i.text.length==1,$=fe(i.text).length+(S?u:0);if(w)for(var D=0;D<w.length;++D){var G=w[D];if(G.to==null){var V=Gs(_,G.marker);V?S&&(G.to=V.to==null?null:V.to+$):G.to=u}}if(_)for(var ne=0;ne<_.length;++ne){var ce=_[ne];if(ce.to!=null&&(ce.to+=$),ce.from==null){var ve=Gs(w,ce.marker);ve||(ce.from=$,S&&(w||(w=[])).push(ce))}else ce.from+=$,S&&(w||(w=[])).push(ce)}w&&(w=xp(w)),_&&_!=w&&(_=xp(_));var be=[w];if(!S){var ke=i.text.length-2,we;if(ke>0&&w)for(var Ae=0;Ae<w.length;++Ae)w[Ae].to==null&&(we||(we=[])).push(new Ca(w[Ae].marker,null,null));for(var He=0;He<ke;++He)be.push(we);be.push(_)}return be}function xp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function G1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(V){if(V.markedSpans)for(var ne=0;ne<V.markedSpans.length;++ne){var ce=V.markedSpans[ne].marker;ce.readOnly&&(!l||Ee(l,ce)==-1)&&(l||(l=[])).push(ce)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var m=l[g],w=m.find(0),_=0;_<u.length;++_){var S=u[_];if(!(_e(S.to,w.from)<0||_e(S.from,w.to)>0)){var $=[_,1],D=_e(S.from,w.from),G=_e(S.to,w.to);(D<0||!m.inclusiveLeft&&!D)&&$.push({from:S.from,to:w.from}),(G>0||!m.inclusiveRight&&!G)&&$.push({from:w.to,to:S.to}),u.splice.apply(u,$),_+=$.length-3}}return u}function _p(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Sp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ta(n){return n.inclusiveLeft?-1:0}function Ea(n){return n.inclusiveRight?1:0}function Yu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=_e(l.from,u.from)||Ta(n)-Ta(i);if(g)return-g;var m=_e(l.to,u.to)||Ea(n)-Ea(i);return m||i.id-n.id}function kp(n,i){var a=Xr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Yu(l,u.marker)<0)&&(l=u.marker);return l}function Cp(n){return kp(n,!0)}function La(n){return kp(n,!1)}function K1(n,i){var a=Xr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Yu(l,g.marker)<0)&&(l=g.marker)}return l}function Tp(n,i,a,l,u){var g=Oe(n,i),m=Xr&&g.markedSpans;if(m)for(var w=0;w<m.length;++w){var _=m[w];if(_.marker.collapsed){var S=_.marker.find(0),$=_e(S.from,a)||Ta(_.marker)-Ta(u),D=_e(S.to,l)||Ea(_.marker)-Ea(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.to,a)>=0:_e(S.to,a)>0)||$>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.from,l)<=0:_e(S.from,l)<0)))return!0}}}function pr(n){for(var i;i=Cp(n);)n=i.find(-1,!0).line;return n}function X1(n){for(var i;i=La(n);)n=i.find(1,!0).line;return n}function Y1(n){for(var i,a;i=La(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Zu(n,i){var a=Oe(n,i),l=pr(a);return a==l?i:C(l)}function Ep(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!wi(n,a))return i;for(;l=La(a);)a=l.find(1,!0).line;return C(a)+1}function wi(n,i){var a=Xr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Ju(n,i,l))return!0}}}function Ju(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Ju(n,l.line,Gs(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Ju(n,i,u))return!0}function Yr(n){n=pr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var m=0;m<g.children.length;++m){var w=g.children[m];if(w==a)break;i+=w.height}return i}function Aa(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Cp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=La(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Qu(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=Aa(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Aa(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,Sp(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return C(this)},cr(jo);function Z1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),_p(n),Sp(n,a);var u=l?l(n):1;u!=n.height&&Bn(n,u)}function J1(n){n.parent=null,_p(n)}var Q1={},ex={};function Lp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?ex:Q1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ap(n,i){var a=B("span",null,null,v?"padding-right: .1px":null),l={pre:B("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,m=void 0;l.pos=0,l.addToken=nx,mi(n.display.measure)&&(m=Ve(g,n.doc.direction))&&(l.addToken=ix(l.addToken,m)),l.map=[];var w=i!=n.display.externalMeasured&&C(g);ox(g,l,pp(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=We(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=We(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(_a(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Et(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=We(l.pre.className,l.textClass||"")),l}function tx(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function nx(n,i,a,l,u,g,m){if(i){var w=n.splitSpaces?rx(i,n.trailingSpace):i,_=n.cm.state.specialChars,S=!1,$;if(!_.test(i))n.col+=i.length,$=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,$),h&&p<9&&(S=!0),n.pos+=i.length;else{$=document.createDocumentFragment();for(var D=0;;){_.lastIndex=D;var G=_.exec(i),V=G?G.index-D:i.length-D;if(V){var ne=document.createTextNode(w.slice(D,D+V));h&&p<9?$.appendChild(k("span",[ne])):$.appendChild(ne),n.map.push(n.pos,n.pos+V,ne),n.col+=V,n.pos+=V}if(!G)break;D+=V+1;var ce=void 0;if(G[0]==" "){var ve=n.cm.options.tabSize,be=ve-n.col%ve;ce=$.appendChild(k("span",Se(be),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),n.col+=be}else G[0]=="\r"||G[0]==`
|
|
@@ -45,8 +45,8 @@ b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.
|
|
|
45
45
|
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Nt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Nt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Nt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=co(a,n),m=l.scroller.scrollTop;if(!g||A)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Wt(a,nn)(a.doc,Si(g),F);var _=u.style.cssText,S=i.wrapper.style.cssText,$=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
46
46
|
top: `+(n.clientY-$.top-5)+"px; left: "+(n.clientX-$.left-5)+`px;
|
|
47
47
|
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
48
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=V,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function G(){if(u.selectionStart!=null){var ce=a.somethingSelected(),ve=""+(ce?u.value:"");u.value="⇚",u.value=ve,i.prevInput=ce?"":"",u.selectionStart=1,u.selectionEnd=ve.length,l.selForContextMenu=a.doc.sel}}function V(){if(i.contextMenuPending==V&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!h||h&&p<9)&&G();var ce=0,ve=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Wt(a,Lg)(a):ce++<10?l.detectingSelectAll=setTimeout(ve,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ve,200)}}if(h&&p>=9&&G(),j){vi(n);var ne=function(){en(window,"mouseup",ne),setTimeout(V,20)};Fe(window,"mouseup",ne)}else setTimeout(V,50)},Nt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Nt.prototype.setUneditable=function(){},Nt.prototype.needsContentAttribute=!1;function O_(n,i){if(i=i?ae(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=ye(Je(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var m=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=m}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(en(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=kt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function R_(n){n.off=en,n.on=Fe,n.wheelEventPixels=Bx,n.Doc=mn,n.splitLines=Jn,n.countColumn=de,n.findColumn=le,n.isWordChar=Ue,n.Pass=O,n.signal=Et,n.Line=jo,n.changeEnd=ki,n.scrollbarModel=ig,n.Pos=Q,n.cmpPos=_e,n.modes=Ho,n.mimeModes=dr,n.resolveMode=qo,n.getMode=Bo,n.modeExtensions=bi,n.extendMode=Wo,n.copyState=Er,n.startState=Uo,n.innerMode=Us,n.commands=pl,n.keyMap=Qr,n.keyName=Ug,n.isModifierKey=Bg,n.lookupKey=os,n.normalizeKeyMap=u_,n.StringStream=At,n.SharedTextMarker=fl,n.TextMarker=Ti,n.LineWidget=ul,n.e_preventDefault=tn,n.e_stopPropagation=Io,n.e_stop=vi,n.addClass=Ne,n.contains=re,n.rmClass=Z,n.keyNames=Ei}T_(kt),M_(kt);var D_="iter insert remove copy getEditor constructor".split(" ");for(var Qa in mn.prototype)mn.prototype.hasOwnProperty(Qa)&&Ee(D_,Qa)<0&&(kt.prototype[Qa]=function(n){return function(){return n.apply(this.doc,arguments)}}(mn.prototype[Qa]));return cr(mn),kt.inputStyles={textarea:Nt,contenteditable:yt},kt.defineMode=function(n){!kt.defaults.mode&&n!="null"&&(kt.defaults.mode=n),hr.apply(this,arguments)},kt.defineMIME=so,kt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),kt.defineMIME("text/plain","null"),kt.defineExtension=function(n,i){kt.prototype[n]=i},kt.defineDocExtension=function(n,i){mn.prototype[n]=i},kt.fromTextArea=O_,R_(kt),kt.version="5.65.17",kt})})(Gw);var qs=Gw.exports;const yfe=Wb(qs);var bfe={exports:{}};(function(e,t){(function(r){r(qs)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(qt){return{type:qt,style:"keyword"}}var R=C("keyword a"),se=C("keyword b"),ge=C("keyword c"),Q=C("keyword d"),_e=C("operator"),dt={type:"atom",style:"atom"};return{if:C("if"),while:R,with:R,else:se,do:se,try:se,finally:se,return:Q,break:Q,continue:Q,new:C("new"),delete:ge,void:ge,throw:ge,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:_e,typeof:_e,instanceof:_e,true:dt,false:dt,null:dt,undefined:dt,NaN:dt,Infinity:dt,this:C("this"),class:C("class"),super:C("atom"),yield:ge,export:C("export"),import:C("import"),extends:ge,await:ge}}(),x=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function T(C){for(var R=!1,se,ge=!1;(se=C.next())!=null;){if(!R){if(se=="/"&&!ge)return;se=="["?ge=!0:ge&&se=="]"&&(ge=!1)}R=!R&&se=="\\"}}var E,L;function M(C,R,se){return E=C,L=se,R}function P(C,R){var se=C.next();if(se=='"'||se=="'")return R.tokenize=N(se),R.tokenize(C,R);if(se=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(se=="."&&C.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return M(se);if(se=="="&&C.eat(">"))return M("=>","operator");if(se=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(se))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(se=="/")return C.eat("*")?(R.tokenize=q,q(C,R)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):Bn(C,R,1)?(T(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(C.eat("="),M("operator","operator",C.current()));if(se=="`")return R.tokenize=W,W(C,R);if(se=="#"&&C.peek()=="!")return C.skipToEnd(),M("meta","meta");if(se=="#"&&C.eatWhile(y))return M("variable","property");if(se=="<"&&C.match("!--")||se=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),M("comment","comment");if(x.test(se))return(se!=">"||!R.lexical||R.lexical.type!=">")&&(C.eat("=")?(se=="!"||se=="=")&&C.eat("="):/[<>*+\-|&?]/.test(se)&&(C.eat(se),se==">"&&C.eat(se))),se=="?"&&C.eat(".")?M("."):M("operator","operator",C.current());if(y.test(se)){C.eatWhile(y);var ge=C.current();if(R.lastType!="."){if(b.propertyIsEnumerable(ge)){var Q=b[ge];return M(Q.type,Q.style,ge)}if(ge=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",ge)}return M("variable","variable",ge)}}function N(C){return function(R,se){var ge=!1,Q;if(d&&R.peek()=="@"&&R.match(A))return se.tokenize=P,M("jsonld-keyword","meta");for(;(Q=R.next())!=null&&!(Q==C&&!ge);)ge=!ge&&Q=="\\";return ge||(se.tokenize=P),M("string","string")}}function q(C,R){for(var se=!1,ge;ge=C.next();){if(ge=="/"&&se){R.tokenize=P;break}se=ge=="*"}return M("comment","comment")}function W(C,R){for(var se=!1,ge;(ge=C.next())!=null;){if(!se&&(ge=="`"||ge=="$"&&C.eat("{"))){R.tokenize=P;break}se=!se&&ge=="\\"}return M("quasi","string-2",C.current())}var X="([{}])";function ie(C,R){R.fatArrowAt&&(R.fatArrowAt=null);var se=C.string.indexOf("=>",C.start);if(!(se<0)){if(v){var ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,se));ge&&(se=ge.index)}for(var Q=0,_e=!1,dt=se-1;dt>=0;--dt){var qt=C.string.charAt(dt),gn=X.indexOf(qt);if(gn>=0&&gn<3){if(!Q){++dt;break}if(--Q==0){qt=="("&&(_e=!0);break}}else if(gn>=3&&gn<6)++Q;else if(y.test(qt))_e=!0;else if(/["'\/`]/.test(qt))for(;;--dt){if(dt==0)return;var Vo=C.string.charAt(dt-1);if(Vo==qt&&C.string.charAt(dt-2)!="\\"){dt--;break}}else if(_e&&!Q){++dt;break}}_e&&!Q&&(R.fatArrowAt=dt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(C,R,se,ge,Q,_e){this.indented=C,this.column=R,this.type=se,this.prev=Q,this.info=_e,ge!=null&&(this.align=ge)}function te(C,R){if(!p)return!1;for(var se=C.localVars;se;se=se.next)if(se.name==R)return!0;for(var ge=C.context;ge;ge=ge.prev)for(var se=ge.vars;se;se=se.next)if(se.name==R)return!0}function Z(C,R,se,ge,Q){var _e=C.cc;for(H.state=C,H.stream=Q,H.marked=null,H.cc=_e,H.style=R,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var dt=_e.length?_e.pop():h?Ee:de;if(dt(se,ge)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return H.marked?H.marked:se=="variable"&&te(C,ge)?"variable-2":R}}}var H={state:null,column:null,marked:null,cc:null};function I(){for(var C=arguments.length-1;C>=0;C--)H.cc.push(arguments[C])}function k(){return I.apply(null,arguments),!0}function B(C,R){for(var se=R;se;se=se.next)if(se.name==C)return!0;return!1}function U(C){var R=H.state;if(H.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var se=re(C,R.context);if(se!=null){R.context=se;return}}else if(!B(C,R.localVars)){R.localVars=new We(C,R.localVars);return}}s.globalVars&&!B(C,R.globalVars)&&(R.globalVars=new We(C,R.globalVars))}}function re(C,R){if(R)if(R.block){var se=re(C,R.prev);return se?se==R.prev?R:new Ne(se,R.vars,!0):null}else return B(C,R.vars)?R:new Ne(R.prev,new We(C,R.vars),!1);else return null}function ye(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Ne(C,R,se){this.prev=C,this.vars=R,this.block=se}function We(C,R){this.name=C,this.next=R}var je=new We("this",new We("arguments",null));function it(){H.state.context=new Ne(H.state.context,H.state.localVars,!1),H.state.localVars=je}function rt(){H.state.context=new Ne(H.state.context,H.state.localVars,!0),H.state.localVars=null}it.lex=rt.lex=!0;function Je(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}Je.lex=!0;function Le(C,R){var se=function(){var ge=H.state,Q=ge.indented;if(ge.lexical.type=="stat")Q=ge.lexical.indented;else for(var _e=ge.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)Q=_e.indented;ge.lexical=new j(Q,H.stream.column(),C,null,ge.lexical,R)};return se.lex=!0,se}function K(){var C=H.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}K.lex=!0;function ae(C){function R(se){return se==C?k():C==";"||se=="}"||se==")"||se=="]"?I():k(R)}return R}function de(C,R){return C=="var"?k(Le("vardef",R),Io,ae(";"),K):C=="keyword a"?k(Le("form"),O,de,K):C=="keyword b"?k(Le("form"),de,K):C=="keyword d"?H.stream.match(/^\s*$/,!1)?k():k(Le("stat"),J,ae(";"),K):C=="debugger"?k(ae(";")):C=="{"?k(Le("}"),rt,Jt,K,Je):C==";"?k():C=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==K&&H.state.cc.pop()(),k(Le("form"),O,de,K,Fo)):C=="function"?k(Jn):C=="for"?k(Le("form"),rt,_a,de,Je,K):C=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form",C=="class"?C:R),Ho,K)):C=="variable"?v&&R=="declare"?(H.marked="keyword",k(de)):v&&(R=="module"||R=="enum"||R=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",R=="enum"?k(Oe):R=="type"?k(Sa,ae("operator"),Ve,ae(";")):k(Le("form"),pn,ae("{"),Le("}"),Jt,K,K)):v&&R=="namespace"?(H.marked="keyword",k(Le("form"),Ee,de,K)):v&&R=="abstract"?(H.marked="keyword",k(de)):k(Le("stat"),Re):C=="switch"?k(Le("form"),O,ae("{"),Le("}","switch"),rt,Jt,K,K,Je):C=="case"?k(Ee,ae(":")):C=="default"?k(ae(":")):C=="catch"?k(Le("form"),it,$e,de,K,Je):C=="export"?k(Le("stat"),qo,K):C=="import"?k(Le("stat"),bi,K):C=="async"?k(de):R=="@"?k(Ee,de):I(Le("stat"),Ee,ae(";"),K)}function $e(C){if(C=="(")return k(fr,ae(")"))}function Ee(C,R){return F(C,R,!1)}function Ze(C,R){return F(C,R,!0)}function O(C){return C!="("?I():k(Le(")"),J,ae(")"),K)}function F(C,R,se){if(H.state.fatArrowAt==H.stream.start){var ge=se?xe:fe;if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ae("=>"),ge,Je);if(C=="variable")return I(it,pn,ae("=>"),ge,Je)}var Q=se?le:ue;return ee.hasOwnProperty(C)?k(Q):C=="function"?k(Jn,Q):C=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form"),ju,K)):C=="keyword c"||C=="async"?k(se?Ze:Ee):C=="("?k(Le(")"),J,ae(")"),K,Q):C=="operator"||C=="spread"?k(se?Ze:Ee):C=="["?k(Le("]"),At,K,Q):C=="{"?Ft(Ge,"}",null,Q):C=="quasi"?I(he,Q):C=="new"?k(pe(se)):k()}function J(C){return C.match(/[;\}\)\],]/)?I():I(Ee)}function ue(C,R){return C==","?k(J):le(C,R,!1)}function le(C,R,se){var ge=se==!1?ue:le,Q=se==!1?Ee:Ze;if(C=="=>")return k(it,se?xe:fe,Je);if(C=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(ge):v&&R=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Le(">"),nt(Ve,">"),K,ge):R=="?"?k(Ee,ae(":"),Q):k(Q);if(C=="quasi")return I(he,ge);if(C!=";"){if(C=="(")return Ft(Ze,")","call",ge);if(C==".")return k(Ue,ge);if(C=="[")return k(Le("]"),J,ae("]"),K,ge);if(v&&R=="as")return H.marked="keyword",k(Ve,ge);if(C=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),k(Q)}}function he(C,R){return C!="quasi"?I():R.slice(R.length-2)!="${"?k(he):k(J,Se)}function Se(C){if(C=="}")return H.marked="string-2",H.state.tokenize=W,k(he)}function fe(C){return ie(H.stream,H.state),I(C=="{"?de:Ee)}function xe(C){return ie(H.stream,H.state),I(C=="{"?de:Ze)}function pe(C){return function(R){return R=="."?k(C?ze:Me):R=="variable"&&v?k(An,C?le:ue):I(C?Ze:Ee)}}function Me(C,R){if(R=="target")return H.marked="keyword",k(ue)}function ze(C,R){if(R=="target")return H.marked="keyword",k(le)}function Re(C){return C==":"?k(K,de):I(ue,ae(";"),K)}function Ue(C){if(C=="variable")return H.marked="property",k()}function Ge(C,R){if(C=="async")return H.marked="property",k(Ge);if(C=="variable"||H.style=="keyword"){if(H.marked="property",R=="get"||R=="set")return k(mt);var se;return v&&H.state.fatArrowAt==H.stream.start&&(se=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+se[0].length),k(tt)}else{if(C=="number"||C=="string")return H.marked=d?"property":H.style+" property",k(tt);if(C=="jsonld-keyword")return k(tt);if(v&&ye(R))return H.marked="keyword",k(Ge);if(C=="[")return k(Ee,lr,ae("]"),tt);if(C=="spread")return k(Ze,tt);if(R=="*")return H.marked="keyword",k(Ge);if(C==":")return I(tt)}}function mt(C){return C!="variable"?I(tt):(H.marked="property",k(Jn))}function tt(C){if(C==":")return k(Ze);if(C=="(")return I(Jn)}function nt(C,R,se){function ge(Q,_e){if(se?se.indexOf(Q)>-1:Q==","){var dt=H.state.lexical;return dt.info=="call"&&(dt.pos=(dt.pos||0)+1),k(function(qt,gn){return qt==R||gn==R?I():I(C)},ge)}return Q==R||_e==R?k():se&&se.indexOf(";")>-1?I(C):k(ae(R))}return function(Q,_e){return Q==R||_e==R?k():I(C,ge)}}function Ft(C,R,se){for(var ge=3;ge<arguments.length;ge++)H.cc.push(arguments[ge]);return k(Le(R,se),nt(C,R),K)}function Jt(C){return C=="}"?k():I(de,Jt)}function lr(C,R){if(v){if(C==":")return k(Ve);if(R=="?")return k(lr)}}function qn(C,R){if(v&&(C==":"||R=="in"))return k(Ve)}function ar(C){if(v&&C==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ee,Qt,Ve):k(Ve)}function Qt(C,R){if(R=="is")return H.marked="keyword",k()}function Ve(C,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return H.marked="keyword",k(R=="typeof"?Ze:Ve);if(C=="variable"||R=="void")return H.marked="type",k(Zn);if(R=="|"||R=="&")return k(Ve);if(C=="string"||C=="number"||C=="atom")return k(Zn);if(C=="[")return k(Le("]"),nt(Ve,"]",","),K,Zn);if(C=="{")return k(Le("}"),Fe,K,Zn);if(C=="(")return k(nt(Lt,")"),oo,Zn);if(C=="<")return k(nt(Ve,">"),Ve);if(C=="quasi")return I(en,Zn)}function oo(C){if(C=="=>")return k(Ve)}function Fe(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Fe):I(Gr,Fe)}function Gr(C,R){if(C=="variable"||H.style=="keyword")return H.marked="property",k(Gr);if(R=="?"||C=="number"||C=="string")return k(Gr);if(C==":")return k(Ve);if(C=="[")return k(ae("variable"),qn,ae("]"),Gr);if(C=="(")return I(yi,Gr);if(!C.match(/[;\}\)\],]/))return k()}function en(C,R){return C!="quasi"?I():R.slice(R.length-2)!="${"?k(en):k(Ve,Et)}function Et(C){if(C=="}")return H.marked="string-2",H.state.tokenize=W,k(en)}function Lt(C,R){return C=="variable"&&H.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Lt):C==":"?k(Ve):C=="spread"?k(Lt):I(Ve)}function Zn(C,R){if(R=="<")return k(Le(">"),nt(Ve,">"),K,Zn);if(R=="|"||C=="."||R=="&")return k(Ve);if(C=="[")return k(Ve,ae("]"),Zn);if(R=="extends"||R=="implements")return H.marked="keyword",k(Ve);if(R=="?")return k(Ve,ae(":"),Ve)}function An(C,R){if(R=="<")return k(Le(">"),nt(Ve,">"),K,Zn)}function cr(){return I(Ve,tn)}function tn(C,R){if(R=="=")return k(Ve)}function Io(C,R){return R=="enum"?(H.marked="keyword",k(Oe)):I(pn,lr,ur,Vu)}function pn(C,R){if(v&&ye(R))return H.marked="keyword",k(pn);if(C=="variable")return U(R),k();if(C=="spread")return k(pn);if(C=="[")return Ft(Bs,"]");if(C=="{")return Ft(vi,"}")}function vi(C,R){return C=="variable"&&!H.stream.match(/^\s*:/,!1)?(U(R),k(ur)):(C=="variable"&&(H.marked="property"),C=="spread"?k(pn):C=="}"?I():C=="["?k(Ee,ae("]"),ae(":"),vi):k(ae(":"),pn,ur))}function Bs(){return I(pn,ur)}function ur(C,R){if(R=="=")return k(Ze)}function Vu(C){if(C==",")return k(Io)}function Fo(C,R){if(C=="keyword b"&&R=="else")return k(Le("form","else"),de,K)}function _a(C,R){if(R=="await")return k(_a);if(C=="(")return k(Le(")"),Ws,K)}function Ws(C){return C=="var"?k(Io,mi):C=="variable"?k(mi):I(mi)}function mi(C,R){return C==")"?k():C==";"?k(mi):R=="in"||R=="of"?(H.marked="keyword",k(Ee,mi)):I(Ee,mi)}function Jn(C,R){if(R=="*")return H.marked="keyword",k(Jn);if(C=="variable")return U(R),k(Jn);if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ar,de,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),K,Jn)}function yi(C,R){if(R=="*")return H.marked="keyword",k(yi);if(C=="variable")return U(R),k(yi);if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ar,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),K,yi)}function Sa(C,R){if(C=="keyword"||C=="variable")return H.marked="type",k(Sa);if(R=="<")return k(Le(">"),nt(cr,">"),K)}function fr(C,R){return R=="@"&&k(Ee,fr),C=="spread"?k(fr):v&&ye(R)?(H.marked="keyword",k(fr)):v&&C=="this"?k(lr,ur):I(pn,lr,ur)}function ju(C,R){return C=="variable"?Ho(C,R):dr(C,R)}function Ho(C,R){if(C=="variable")return U(R),k(dr)}function dr(C,R){if(R=="<")return k(Le(">"),nt(cr,">"),K,dr);if(R=="extends"||R=="implements"||v&&C==",")return R=="implements"&&(H.marked="keyword"),k(v?Ve:Ee,dr);if(C=="{")return k(Le("}"),hr,K)}function hr(C,R){if(C=="async"||C=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",k(hr);if(C=="variable"||H.style=="keyword")return H.marked="property",k(so,hr);if(C=="number"||C=="string")return k(so,hr);if(C=="[")return k(Ee,lr,ae("]"),so,hr);if(R=="*")return H.marked="keyword",k(hr);if(v&&C=="(")return I(yi,hr);if(C==";"||C==",")return k(hr);if(C=="}")return k();if(R=="@")return k(Ee,hr)}function so(C,R){if(R=="!"||R=="?")return k(so);if(C==":")return k(Ve,ur);if(R=="=")return k(Ze);var se=H.state.lexical.prev,ge=se&&se.info=="interface";return I(ge?yi:Jn)}function qo(C,R){return R=="*"?(H.marked="keyword",k(Uo,ae(";"))):R=="default"?(H.marked="keyword",k(Ee,ae(";"))):C=="{"?k(nt(Bo,"}"),Uo,ae(";")):I(de)}function Bo(C,R){if(R=="as")return H.marked="keyword",k(ae("variable"));if(C=="variable")return I(Ze,Bo)}function bi(C){return C=="string"?k():C=="("?I(Ee):C=="."?I(ue):I(Wo,Er,Uo)}function Wo(C,R){return C=="{"?Ft(Wo,"}"):(C=="variable"&&U(R),R=="*"&&(H.marked="keyword"),k(Us))}function Er(C){if(C==",")return k(Wo,Er)}function Us(C,R){if(R=="as")return H.marked="keyword",k(Wo)}function Uo(C,R){if(R=="from")return H.marked="keyword",k(Ee)}function At(C){return C=="]"?k():I(nt(Ze,"]"))}function Oe(){return I(Le("form"),pn,ae("{"),Le("}"),nt(Kr,"}"),K,K)}function Kr(){return I(pn,ur)}function Vs(C,R){return C.lastType=="operator"||C.lastType==","||x.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function Bn(C,R,se){return R.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(se||0)))}return{startState:function(C){var R={tokenize:P,lastType:"sof",cc:[],lexical:new j((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(C,R){if(C.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=C.indentation(),ie(C,R)),R.tokenize!=q&&C.eatSpace())return null;var se=R.tokenize(C,R);return E=="comment"?se:(R.lastType=E=="operator"&&(L=="++"||L=="--")?"incdec":E,Z(R,se,E,L,C))},indent:function(C,R){if(C.tokenize==q||C.tokenize==W)return r.Pass;if(C.tokenize!=P)return 0;var se=R&&R.charAt(0),ge=C.lexical,Q;if(!/^\s*else\b/.test(R))for(var _e=C.cc.length-1;_e>=0;--_e){var dt=C.cc[_e];if(dt==K)ge=ge.prev;else if(dt!=Fo&&dt!=Je)break}for(;(ge.type=="stat"||ge.type=="form")&&(se=="}"||(Q=C.cc[C.cc.length-1])&&(Q==ue||Q==le)&&!/^[,\.=+\-*:?[\(]/.test(R));)ge=ge.prev;f&&ge.type==")"&&ge.prev.type=="stat"&&(ge=ge.prev);var qt=ge.type,gn=se==qt;return qt=="vardef"?ge.indented+(C.lastType=="operator"||C.lastType==","?ge.info.length+1:0):qt=="form"&&se=="{"?ge.indented:qt=="form"?ge.indented+c:qt=="stat"?ge.indented+(Vs(C,R)?f||c:0):ge.info=="switch"&&!gn&&s.doubleIndentSwitch!=!1?ge.indented+(/^(?:case|default)\b/.test(R)?c:2*c):ge.align?ge.column+(gn?0:1):ge.indented+(gn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Bn,skipExpression:function(C){Z(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var wfe=bfe.exports,xfe={exports:{}};(function(e,t){(function(r){r(qs)})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var y,b;function x(k,B){function U(Ne){return B.tokenize=Ne,Ne(k,B)}var re=k.next();if(re=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?U(E("atom","]]>")):null:k.match("--")?U(E("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),U(L(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=E("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",B.tokenize=A,"tag bracket");if(re=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function A(k,B){var U=k.next();if(U==">"||U=="/"&&k.eat(">"))return B.tokenize=x,y=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return y="equals",null;if(U=="<"){B.tokenize=x,B.state=W,B.tagName=B.tagStart=null;var re=B.tokenize(k,B);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(U)?(B.tokenize=T(U),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function T(k){var B=function(U,re){for(;!U.eol();)if(U.next()==k){re.tokenize=A;break}return"string"};return B.isInAttribute=!0,B}function E(k,B){return function(U,re){for(;!U.eol();){if(U.match(B)){re.tokenize=x;break}U.next()}return k}}function L(k){return function(B,U){for(var re;(re=B.next())!=null;){if(re=="<")return U.tokenize=L(k+1),U.tokenize(B,U);if(re==">")if(k==1){U.tokenize=x;break}else return U.tokenize=L(k-1),U.tokenize(B,U)}return"meta"}}function M(k){return k&&k.toLowerCase()}function P(k,B,U){this.prev=k.context,this.tagName=B||"",this.indent=k.indented,this.startOfLine=U,(h.doNotIndent.hasOwnProperty(B)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function N(k){k.context&&(k.context=k.context.prev)}function q(k,B){for(var U;;){if(!k.context||(U=k.context.tagName,!h.contextGrabbers.hasOwnProperty(M(U))||!h.contextGrabbers[M(U)].hasOwnProperty(M(B))))return;N(k)}}function W(k,B,U){return k=="openTag"?(U.tagStart=B.column(),X):k=="closeTag"?ie:W}function X(k,B,U){return k=="word"?(U.tagName=B.current(),b="tag",te):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,B,U)):(b="error",X)}function ie(k,B,U){if(k=="word"){var re=B.current();return U.context&&U.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(M(U.context.tagName))&&N(U),U.context&&U.context.tagName==re||h.matchClosing===!1?(b="tag",ee):(b="tag error",j)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",ee(k,B,U)):(b="error",j)}function ee(k,B,U){return k!="endTag"?(b="error",ee):(N(U),W)}function j(k,B,U){return b="error",ee(k,B,U)}function te(k,B,U){if(k=="word")return b="attribute",Z;if(k=="endTag"||k=="selfcloseTag"){var re=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(M(re))?q(U,re):(q(U,re),U.context=new P(U,re,ye==U.indented)),W}return b="error",te}function Z(k,B,U){return k=="equals"?H:(h.allowMissing||(b="error"),te(k,B,U))}function H(k,B,U){return k=="string"?I:k=="word"&&h.allowUnquoted?(b="string",te):(b="error",te(k,B,U))}function I(k,B,U){return k=="string"?I:te(k,B,U)}return{startState:function(k){var B={tokenize:x,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(B.baseIndent=k),B},token:function(k,B){if(!B.tagName&&k.sol()&&(B.indented=k.indentation()),k.eatSpace())return null;y=null;var U=B.tokenize(k,B);return(U||y)&&U!="comment"&&(b=null,B.state=B.state(y||U,k,B),b&&(U=b=="error"?U+" error":b)),U},indent:function(k,B,U){var re=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(re&&re.noIndent)return r.Pass;if(k.tokenize!=A&&k.tokenize!=x)return U?U.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(B))return 0;var ye=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(ye&&ye[1])for(;re;)if(re.tagName==ye[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(M(re.tagName)))re=re.prev;else break;else if(ye)for(;re;){var Ne=h.contextGrabbers[M(re.tagName)];if(Ne&&Ne.hasOwnProperty(M(ye[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==H&&(k.state=te)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var B=[],U=k.context;U;U=U.prev)B.push(U.tagName);return B.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var _fe=xfe.exports;(function(e,t){(function(r){r(qs,_fe,wfe)})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var A=x.tagName;x.tagName=null;var T=d.indent(x,"","");return x.tagName=A,T}function v(x,A){return A.context.mode==d?y(x,A,A.context):b(x,A,A.context)}function y(x,A,T){if(T.depth==2)return x.match(/^.*?\*\//)?T.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(T.state);var E=p(T.state),L=T.state.context;if(L&&x.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?E-=c.indentUnit:T.prev.state.lexical&&(E=T.prev.state.lexical.indented)}else T.depth==1&&(E+=c.indentUnit);return A.context=new o(r.startState(h,E),h,0,A.context),null}if(T.depth==1){if(x.peek()=="<")return d.skipAttribute(T.state),A.context=new o(r.startState(d,p(T.state)),d,0,A.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return T.depth=2,v(x,A)}var M=d.token(x,T.state),P=x.current(),N;return/\btag\b/.test(M)?/>$/.test(P)?T.state.context?T.depth=0:A.context=A.context.prev:/^</.test(P)&&(T.depth=1):!M&&(N=P.indexOf("{"))>-1&&x.backUp(P.length-N),M}function b(x,A,T){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,T.state))return A.context=new o(r.startState(d,h.indent(T.state,"","")),d,0,A.context),h.skipExpression(T.state),null;var E=h.token(x,T.state);if(!E&&T.depth!=null){var L=x.current();L=="{"?T.depth++:L=="}"&&--T.depth==0&&(A.context=A.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,A,T){return x.context.mode.indent(x.context.state,A,T)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r(qs)})(function(r){r.defineOption("placeholder","",function(p,v,y){var b=y&&y!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=p.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var y=p.getInputField();v=y.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),y=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(qs)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var b=p.orientation=="horizontal"?"pageX":"pageY",x=y[b],A=p.pos;function T(){r.off(document,"mousemove",E),r.off(document,"mouseup",T)}function E(L){if(L.which!=1)return T();p.moveTo(A+(L[b]-x)*(p.total/p.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",T)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=y.clientX<b.left?-1:y.clientX>b.right?1:0:x=y.clientY<b.top?-1:y.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(y){var b=r.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const er=Wr();function Sfe(e,t,r={}){const o=yfe.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),It(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),_u(()=>{er.value=void 0}),mh(o)}async function kfe(e){var t;Tw(e,((t=e.location)==null?void 0:t.line)??0)}const Cfe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Kw=ft({__name:"CodeMirrorContainer",props:qc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:qc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Eh(e,"modelValue"),s=XS(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Be();return Hs(async()=>{const d=Sfe(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),er.value=d,setTimeout(()=>er.value.refresh(),100)}),(d,h)=>(oe(),me("div",Cfe,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tfe=ft({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Be(""),c=Wr(void 0),f=Be(!1),d=Be(!0);It(()=>r.file,async()=>{var N;d.value=!0;try{if(!r.file||!((N=r.file)!=null&&N.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await bt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{ln(()=>d.value=!1)}},{immediate:!0}),It(()=>[d.value,r.file,zd.value],([N,q,W])=>{N||(W!=null?ln(()=>{var ie;const X={line:W??0,ch:0};(ie=er.value)==null||ie.scrollIntoView(X,100),ln(()=>{var ee,j;(ee=er.value)==null||ee.focus(),(j=er.value)==null||j.setCursor(X)})}):ln(()=>{var X;(X=er.value)==null||X.focus()}))},{flush:"post"});const h=Ce(()=>{var N,q;return((q=(N=r.file)==null?void 0:N.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),p=Be(),v=Ce(()=>{var N;return(N=p.value)==null?void 0:N.cm}),y=Ce(()=>{var N;return((N=r.file)==null?void 0:N.tasks.filter(q=>{var W;return((W=q.result)==null?void 0:W.state)==="fail"}))||[]}),b=[],x=[],A=[],T=Be(!1);function E(){A.forEach(([N,q,W])=>{N.removeEventListener("click",q),W()}),A.length=0}vce(p,()=>{var N;(N=er.value)==null||N.refresh()});function L(){f.value=c.value!==er.value.getValue()}It(f,N=>{o("draft",N)},{immediate:!0});function M(N){const q=((N==null?void 0:N.stacks)||[]).filter(te=>{var Z;return te.file&&te.file===((Z=r.file)==null?void 0:Z.filepath)}),W=q==null?void 0:q[0];if(!W)return;const X=document.createElement("div");X.className="op80 flex gap-x-2 items-center";const ie=document.createElement("pre");ie.className="c-red-600 dark:c-red-400",ie.textContent=`${" ".repeat(W.column)}^ ${(N==null?void 0:N.nameStr)||N.name}: ${(N==null?void 0:N.message)||""}`,X.appendChild(ie);const ee=document.createElement("span");ee.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ee.tabIndex=0,ee.ariaLabel="Open in Editor",Lb(ee,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await dw(W.file,W.line,W.column)};X.appendChild(ee),A.push([ee,j,()=>zh(ee)]),x.push(er.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),b.push(er.value.addLineWidget(W.line-1,X))}It([v,y],([N])=>{if(!N){E();return}setTimeout(()=>{E(),b.forEach(q=>q.clear()),x.forEach(q=>{var W;return(W=er.value)==null?void 0:W.removeLineClass(q,"wrap")}),b.length=0,x.length=0,N.on("changes",L),y.value.forEach(q=>{var W,X;(X=(W=q.result)==null?void 0:W.errors)==null||X.forEach(M)}),T.value||N.clearHistory()},100)},{flush:"post"});async function P(N){T.value=!0,await bt.rpc.saveTestFile(r.file.filepath,N),c.value=N,f.value=!1}return(N,q)=>{const W=Kw;return oe(),ot(W,ai({ref_key:"editor",ref:p,modelValue:z(s),"onUpdate:modelValue":q[0]||(q[0]=X=>Pt(s)?s.value=X:null),"h-full":""},{lineNumbers:!0,readOnly:z(Ir)},{mode:z(h),"data-testid":"code-mirror",onSave:P}),null,16,["modelValue","mode"])}}}),Efe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Lfe={"p-4":"",relative:""},Afe=Y("p",null,"Module Info",-1),Mfe={op50:"","font-mono":"","text-sm":""},Nfe={key:0,"p-5":""},$fe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Pfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Ofe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Rfe={key:0},Dfe={p:"x3 y-1","bg-overlay":"",border:"base b t"},zfe=ft({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=oce(()=>bt.rpc.getTransformResult(r.projectName,r.id,!!Ro)),c=Ce(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Ce(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Ce(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Ce(()=>{var p,v,y,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(y=s.value)==null?void 0:y.map)==null?void 0:b.version}});return ww("Escape",()=>{o("close")}),(p,v)=>{const y=gi,b=Kw;return oe(),me("div",Efe,[Y("div",Lfe,[Afe,Y("p",Mfe,qe(p.id),1),Pe(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=x=>o("close"))})]),z(s)?(oe(),me(ut,{key:1},[Y("div",$fe,[Pfe,Ofe,Pe(b,ai({"h-full":"","model-value":z(f),"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"]),Pe(b,ai({"h-full":"","model-value":z(d),"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"])]),z(h).mappings!==""?(oe(),me("div",Rfe,[Y("div",Dfe," Source map (v"+qe(z(h).version)+") ",1),Pe(b,ai({"model-value":z(h).mappings,"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(oe(),me("div",Nfe," No transform result found for this module. "))])}}});function Ife(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const o0={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),o0.hasOwnProperty(t)?{space:o0[t],local:e}:e}function Ffe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function Hfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xw(e){var t=qu(e);return(t.local?Hfe:Ffe)(t)}function qfe(){}function Zh(e){return e==null?qfe:function(){return this.querySelector(e)}}function Bfe(e){typeof e!="function"&&(e=Zh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new Yn(o,this._parents)}function Wfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ufe(){return[]}function Yw(e){return e==null?Ufe:function(){return this.querySelectorAll(e)}}function Vfe(e){return function(){return Wfe(e.apply(this,arguments))}}function jfe(e){typeof e=="function"?e=Vfe(e):e=Yw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new Yn(o,s)}function Zw(e){return function(){return this.matches(e)}}function Jw(e){return function(t){return t.matches(e)}}var Gfe=Array.prototype.find;function Kfe(e){return function(){return Gfe.call(this.children,e)}}function Xfe(){return this.firstElementChild}function Yfe(e){return this.select(e==null?Xfe:Kfe(typeof e=="function"?e:Jw(e)))}var Zfe=Array.prototype.filter;function Jfe(){return Array.from(this.children)}function Qfe(e){return function(){return Zfe.call(this.children,e)}}function ede(e){return this.selectAll(e==null?Jfe:Qfe(typeof e=="function"?e:Jw(e)))}function tde(e){typeof e!="function"&&(e=Zw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new Yn(o,this._parents)}function Qw(e){return new Array(e.length)}function nde(){return new Yn(this._enter||this._groups.map(Qw),this._parents)}function su(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}su.prototype={constructor:su,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function rde(e){return function(){return e}}function ide(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new su(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function ode(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,y=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<y;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new su(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function sde(e){return e.__data__}function lde(e,t){if(!arguments.length)return Array.from(this,sde);var r=t?ode:ide,o=this._parents,s=this._groups;typeof e!="function"&&(e=rde(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],y=s[p],b=y.length,x=ade(e.call(v,v&&v.__data__,p,o)),A=x.length,T=d[p]=new Array(A),E=f[p]=new Array(A),L=h[p]=new Array(b);r(v,y,T,E,L,x,t);for(var M=0,P=0,N,q;M<A;++M)if(N=T[M]){for(M>=P&&(P=M+1);!(q=E[P])&&++P<A;);N._next=q||null}}return f=new Yn(f,o),f._enter=d,f._exit=h,f}function ade(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cde(){return new Yn(this._exit||this._groups.map(Qw),this._parents)}function ude(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function fde(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],y=p.length,b=d[h]=new Array(y),x,A=0;A<y;++A)(x=p[A]||v[A])&&(b[A]=x);for(;h<s;++h)d[h]=r[h];return new Yn(d,this._parents)}function dde(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function hde(e){e||(e=pde);function t(y,b){return y&&b?e(y.__data__,b.__data__):!y-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new Yn(s,this._parents).order()}function pde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function gde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function vde(){return Array.from(this)}function mde(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function yde(){let e=0;for(const t of this)++e;return e}function bde(){return!this.node()}function wde(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function xde(e){return function(){this.removeAttribute(e)}}function _de(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sde(e,t){return function(){this.setAttribute(e,t)}}function kde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Cde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Tde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Ede(e,t){var r=qu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?_de:xde:typeof t=="function"?r.local?Tde:Cde:r.local?kde:Sde)(r,t))}function e1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Lde(e){return function(){this.style.removeProperty(e)}}function Ade(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Mde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Nde(e,t,r){return arguments.length>1?this.each((t==null?Lde:typeof t=="function"?Mde:Ade)(e,t,r??"")):Ds(this.node(),e)}function Ds(e,t){return e.style.getPropertyValue(t)||e1(e).getComputedStyle(e,null).getPropertyValue(t)}function $de(e){return function(){delete this[e]}}function Pde(e,t){return function(){this[e]=t}}function Ode(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Rde(e,t){return arguments.length>1?this.each((t==null?$de:typeof t=="function"?Ode:Pde)(e,t)):this.node()[e]}function t1(e){return e.trim().split(/^|\s+/)}function Jh(e){return e.classList||new n1(e)}function n1(e){this._node=e,this._names=t1(e.getAttribute("class")||"")}n1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function r1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function i1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Dde(e){return function(){r1(this,e)}}function zde(e){return function(){i1(this,e)}}function Ide(e,t){return function(){(t.apply(this,arguments)?r1:i1)(this,e)}}function Fde(e,t){var r=t1(e+"");if(arguments.length<2){for(var o=Jh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ide:t?Dde:zde)(r,t))}function Hde(){this.textContent=""}function qde(e){return function(){this.textContent=e}}function Bde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Wde(e){return arguments.length?this.each(e==null?Hde:(typeof e=="function"?Bde:qde)(e)):this.node().textContent}function Ude(){this.innerHTML=""}function Vde(e){return function(){this.innerHTML=e}}function jde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Gde(e){return arguments.length?this.each(e==null?Ude:(typeof e=="function"?jde:Vde)(e)):this.node().innerHTML}function Kde(){this.nextSibling&&this.parentNode.appendChild(this)}function Xde(){return this.each(Kde)}function Yde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zde(){return this.each(Yde)}function Jde(e){var t=typeof e=="function"?e:Xw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Qde(){return null}function ehe(e,t){var r=typeof e=="function"?e:Xw(e),o=t==null?Qde:typeof t=="function"?t:Zh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function the(){var e=this.parentNode;e&&e.removeChild(this)}function nhe(){return this.each(the)}function rhe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ihe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ohe(e){return this.select(e?ihe:rhe)}function she(e){return arguments.length?this.property("__data__",e):this.node().__data__}function lhe(e){return function(t){e.call(this,t,this.__data__)}}function ahe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function che(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function uhe(e,t,r){return function(){var o=this.__on,s,c=lhe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function fhe(e,t,r){var o=ahe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?uhe:che,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function o1(e,t,r){var o=e1(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function dhe(e,t){return function(){return o1(this,e,t)}}function hhe(e,t){return function(){return o1(this,e,t.apply(this,arguments))}}function phe(e,t){return this.each((typeof t=="function"?hhe:dhe)(e,t))}function*ghe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var s1=[null];function Yn(e,t){this._groups=e,this._parents=t}function ba(){return new Yn([[document.documentElement]],s1)}function vhe(){return this}Yn.prototype=ba.prototype={constructor:Yn,select:Bfe,selectAll:jfe,selectChild:Yfe,selectChildren:ede,filter:tde,data:lde,enter:nde,exit:cde,join:ude,merge:fde,selection:vhe,order:dde,sort:hde,call:gde,nodes:vde,node:mde,size:yde,empty:bde,each:wde,attr:Ede,style:Nde,property:Rde,classed:Fde,text:Wde,html:Gde,raise:Xde,lower:Zde,append:Jde,insert:ehe,remove:nhe,clone:ohe,datum:she,on:fhe,dispatch:phe,[Symbol.iterator]:ghe};function Dn(e){return typeof e=="string"?new Yn([[document.querySelector(e)]],[document.documentElement]):new Yn([[e]],s1)}function mhe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ii(e,t){if(e=mhe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class Sn{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new Sn(t,r)}add(t){return new Sn(this.x+t.x,this.y+t.y)}subtract(t){return new Sn(this.x-t.x,this.y-t.y)}multiply(t){return new Sn(this.x*t,this.y*t)}divide(t){return new Sn(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Sn(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Sn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Sn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var yhe={value:()=>{}};function wa(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Nc(r)}function Nc(e){this._=e}function bhe(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Nc.prototype=wa.prototype={constructor:Nc,on:function(e,t){var r=this._,o=bhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=whe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=s0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=s0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Nc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function whe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function s0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=yhe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const xhe={passive:!1},ia={capture:!0,passive:!1};function sd(e){e.stopImmediatePropagation()}function ks(e){e.preventDefault(),e.stopImmediatePropagation()}function l1(e){var t=e.document.documentElement,r=Dn(e).on("dragstart.drag",ks,ia);"onselectstart"in t?r.on("selectstart.drag",ks,ia):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a1(e,t){var r=e.document.documentElement,o=Dn(e).on("dragstart.drag",null);t&&(o.on("click.drag",ks,ia),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const gc=e=>()=>e;function jd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}jd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _he(e){return!e.ctrlKey&&!e.button}function She(){return this.parentNode}function khe(e,t){return t??{x:e.x,y:e.y}}function Che(){return navigator.maxTouchPoints||"ontouchstart"in this}function The(){var e=_he,t=She,r=khe,o=Che,s={},c=wa("start","drag","end"),f=0,d,h,p,v,y=0;function b(N){N.on("mousedown.drag",x).filter(o).on("touchstart.drag",E).on("touchmove.drag",L,xhe).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(N,q){if(!(v||!e.call(this,N,q))){var W=P(this,t.call(this,N,q),N,q,"mouse");W&&(Dn(N.view).on("mousemove.drag",A,ia).on("mouseup.drag",T,ia),l1(N.view),sd(N),p=!1,d=N.clientX,h=N.clientY,W("start",N))}}function A(N){if(ks(N),!p){var q=N.clientX-d,W=N.clientY-h;p=q*q+W*W>y}s.mouse("drag",N)}function T(N){Dn(N.view).on("mousemove.drag mouseup.drag",null),a1(N.view,p),ks(N),s.mouse("end",N)}function E(N,q){if(e.call(this,N,q)){var W=N.changedTouches,X=t.call(this,N,q),ie=W.length,ee,j;for(ee=0;ee<ie;++ee)(j=P(this,X,N,q,W[ee].identifier,W[ee]))&&(sd(N),j("start",N,W[ee]))}}function L(N){var q=N.changedTouches,W=q.length,X,ie;for(X=0;X<W;++X)(ie=s[q[X].identifier])&&(ks(N),ie("drag",N,q[X]))}function M(N){var q=N.changedTouches,W=q.length,X,ie;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),X=0;X<W;++X)(ie=s[q[X].identifier])&&(sd(N),ie("end",N,q[X]))}function P(N,q,W,X,ie,ee){var j=c.copy(),te=ii(ee||W,q),Z,H,I;if((I=r.call(N,new jd("beforestart",{sourceEvent:W,target:b,identifier:ie,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:j}),X))!=null)return Z=I.x-te[0]||0,H=I.y-te[1]||0,function k(B,U,re){var ye=te,Ne;switch(B){case"start":s[ie]=k,Ne=f++;break;case"end":delete s[ie],--f;case"drag":te=ii(re||U,q),Ne=f;break}j.call(B,N,new jd(B,{sourceEvent:U,subject:I,target:b,identifier:ie,active:Ne,x:te[0]+Z,y:te[1]+H,dx:te[0]-ye[0],dy:te[1]-ye[1],dispatch:j}),X)}}return b.filter=function(N){return arguments.length?(e=typeof N=="function"?N:gc(!!N),b):e},b.container=function(N){return arguments.length?(t=typeof N=="function"?N:gc(N),b):t},b.subject=function(N){return arguments.length?(r=typeof N=="function"?N:gc(N),b):r},b.touchable=function(N){return arguments.length?(o=typeof N=="function"?N:gc(!!N),b):o},b.on=function(){var N=c.on.apply(c,arguments);return N===c?b:N},b.clickDistance=function(N){return arguments.length?(y=(N=+N)*N,b):Math.sqrt(y)},b}function Qh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function c1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function xa(){}var oa=.7,lu=1/oa,Cs="\\s*([+-]?\\d+)\\s*",sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ehe=/^#([0-9a-f]{3,8})$/,Lhe=new RegExp(`^rgb\\(${Cs},${Cs},${Cs}\\)$`),Ahe=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),Mhe=new RegExp(`^rgba\\(${Cs},${Cs},${Cs},${sa}\\)$`),Nhe=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${sa}\\)$`),$he=new RegExp(`^hsl\\(${sa},${Fr},${Fr}\\)$`),Phe=new RegExp(`^hsla\\(${sa},${Fr},${Fr},${sa}\\)$`),l0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qh(xa,la,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:a0,formatHex:a0,formatHex8:Ohe,formatHsl:Rhe,formatRgb:c0,toString:c0});function a0(){return this.rgb().formatHex()}function Ohe(){return this.rgb().formatHex8()}function Rhe(){return u1(this).formatHsl()}function c0(){return this.rgb().formatRgb()}function la(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ehe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?u0(t):r===3?new In(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?vc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?vc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Lhe.exec(e))?new In(t[1],t[2],t[3],1):(t=Ahe.exec(e))?new In(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mhe.exec(e))?vc(t[1],t[2],t[3],t[4]):(t=Nhe.exec(e))?vc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$he.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=Phe.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):l0.hasOwnProperty(e)?u0(l0[e]):e==="transparent"?new In(NaN,NaN,NaN,0):null}function u0(e){return new In(e>>16&255,e>>8&255,e&255,1)}function vc(e,t,r,o){return o<=0&&(e=t=r=NaN),new In(e,t,r,o)}function Dhe(e){return e instanceof xa||(e=la(e)),e?(e=e.rgb(),new In(e.r,e.g,e.b,e.opacity)):new In}function Gd(e,t,r,o){return arguments.length===1?Dhe(e):new In(e,t,r,o??1)}function In(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Qh(In,Gd,c1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new In(No(this.r),No(this.g),No(this.b),au(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f0,formatHex:f0,formatHex8:zhe,formatRgb:d0,toString:d0}));function f0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function zhe(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function d0(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,r,o)}function u1(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof xa||(e=la(e)),!e)return new xr;if(e instanceof xr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new xr(f,d,h,e.opacity)}function Ihe(e,t,r,o){return arguments.length===1?u1(e):new xr(e,t,r,o??1)}function xr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Qh(xr,Ihe,c1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new xr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new In(ld(e>=240?e-240:e+120,s,o),ld(e,s,o),ld(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new xr(p0(this.h),mc(this.s),mc(this.l),au(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=au(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${mc(this.s)*100}%, ${mc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function mc(e){return Math.max(0,Math.min(1,e||0))}function ld(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const f1=e=>()=>e;function Fhe(e,t){return function(r){return e+r*t}}function Hhe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function qhe(e){return(e=+e)==1?d1:function(t,r){return r-t?Hhe(t,r,e):f1(isNaN(t)?r:t)}}function d1(e,t){var r=t-e;return r?Fhe(e,r):f1(isNaN(e)?t:e)}const g0=function e(t){var r=qhe(t);function o(s,c){var f=r((s=Gd(s)).r,(c=Gd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=d1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Kd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ad=new RegExp(Kd.source,"g");function Bhe(e){return function(){return e}}function Whe(e){return function(t){return e(t)+""}}function Uhe(e,t){var r=Kd.lastIndex=ad.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Kd.exec(e))&&(s=ad.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:qi(o,s)})),r=ad.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Whe(h[0].x):Bhe(t):(t=h.length,function(p){for(var v=0,y;v<t;++v)d[(y=h[v]).i]=y.x(p);return d.join("")})}var v0=180/Math.PI,Xd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*v0,skewX:Math.atan(h)*v0,scaleX:f,scaleY:d}}var yc;function Vhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xd:h1(t.a,t.b,t.c,t.d,t.e,t.f)}function jhe(e){return e==null||(yc||(yc=document.createElementNS("http://www.w3.org/2000/svg","g")),yc.setAttribute("transform",e),!(e=yc.transform.baseVal.consolidate()))?Xd:(e=e.matrix,h1(e.a,e.b,e.c,e.d,e.e,e.f))}function p1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,y,b,x,A){if(p!==y||v!==b){var T=x.push("translate(",null,t,null,r);A.push({i:T-4,x:qi(p,y)},{i:T-2,x:qi(v,b)})}else(y||b)&&x.push("translate("+y+t+b+r)}function f(p,v,y,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:y.push(s(y)+"rotate(",null,o)-2,x:qi(p,v)})):v&&y.push(s(y)+"rotate("+v+o)}function d(p,v,y,b){p!==v?b.push({i:y.push(s(y)+"skewX(",null,o)-2,x:qi(p,v)}):v&&y.push(s(y)+"skewX("+v+o)}function h(p,v,y,b,x,A){if(p!==y||v!==b){var T=x.push(s(x)+"scale(",null,",",null,")");A.push({i:T-4,x:qi(p,y)},{i:T-2,x:qi(v,b)})}else(y!==1||b!==1)&&x.push(s(x)+"scale("+y+","+b+")")}return function(p,v){var y=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,y,b),f(p.rotate,v.rotate,y,b),d(p.skewX,v.skewX,y,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,y,b),p=v=null,function(x){for(var A=-1,T=b.length,E;++A<T;)y[(E=b[A]).i]=E.x(x);return y.join("")}}}var Ghe=p1(Vhe,"px, ","px)","deg)"),Khe=p1(jhe,", ",")",")"),Xhe=1e-12;function m0(e){return((e=Math.exp(e))+1/e)/2}function Yhe(e){return((e=Math.exp(e))-1/e)/2}function Zhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Jhe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],y=f[1],b=f[2],x=v-d,A=y-h,T=x*x+A*A,E,L;if(T<Xhe)L=Math.log(b/p)/t,E=function(X){return[d+X*x,h+X*A,p*Math.exp(t*X*L)]};else{var M=Math.sqrt(T),P=(b*b-p*p+o*T)/(2*p*r*M),N=(b*b-p*p-o*T)/(2*b*r*M),q=Math.log(Math.sqrt(P*P+1)-P),W=Math.log(Math.sqrt(N*N+1)-N);L=(W-q)/t,E=function(X){var ie=X*L,ee=m0(q),j=p/(r*M)*(ee*Zhe(t*ie+q)-Yhe(q));return[d+j*x,h+j*A,p*ee/m0(t*ie+q)]}}return E.duration=L*1e3*t/Math.SQRT2,E}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var zs=0,Tl=0,Sl=0,g1=1e3,cu,El,uu=0,Do=0,Bu=0,aa=typeof performance=="object"&&performance.now?performance:Date,v1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ep(){return Do||(v1(Qhe),Do=aa.now()+Bu)}function Qhe(){Do=0}function fu(){this._call=this._time=this._next=null}fu.prototype=tp.prototype={constructor:fu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ep():+r)+(t==null?0:+t),!this._next&&El!==this&&(El?El._next=this:cu=this,El=this),this._call=e,this._time=r,Yd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yd())}};function tp(e,t,r){var o=new fu;return o.restart(e,t,r),o}function epe(){ep(),++zs;for(var e=cu,t;e;)(t=Do-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function y0(){Do=(uu=aa.now())+Bu,zs=Tl=0;try{epe()}finally{zs=0,npe(),Do=0}}function tpe(){var e=aa.now(),t=e-uu;t>g1&&(Bu-=t,uu=e)}function npe(){for(var e,t=cu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:cu=r);El=e,Yd(o)}function Yd(e){if(!zs){Tl&&(Tl=clearTimeout(Tl));var t=e-Do;t>24?(e<1/0&&(Tl=setTimeout(y0,e-aa.now()-Bu)),Sl&&(Sl=clearInterval(Sl))):(Sl||(uu=aa.now(),Sl=setInterval(tpe,g1)),zs=1,v1(y0))}}function b0(e,t,r){var o=new fu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var rpe=wa("start","end","cancel","interrupt"),ipe=[],m1=0,w0=1,Zd=2,$c=3,x0=4,Jd=5,Pc=6;function Wu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;ope(e,r,{name:t,index:o,group:s,on:rpe,tween:ipe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:m1})}function np(e,t){var r=Tr(e,t);if(r.state>m1)throw new Error("too late; already scheduled");return r}function jr(e,t){var r=Tr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Tr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function ope(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=tp(c,0,r.time);function c(p){r.state=w0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,y,b,x;if(r.state!==w0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===$c)return b0(f);x.state===x0?(x.state=Pc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Pc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(b0(function(){r.state===$c&&(r.state=x0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Zd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Zd){for(r.state=$c,s=new Array(b=r.tween.length),v=0,y=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++y]=x);s.length=y+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Jd,1),y=-1,b=s.length;++y<b;)s[y].call(e,v);r.state===Jd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Pc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Oc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Zd&&o.state<Jd,o.state=Pc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function spe(e){return this.each(function(){Oc(this,e)})}function lpe(e,t){var r,o;return function(){var s=jr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function ape(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=jr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function cpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Tr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?lpe:ape)(r,e,t))}function rp(e,t,r){var o=e._id;return e.each(function(){var s=jr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Tr(s,o).value[t]}}function y1(e,t){var r;return(typeof t=="number"?qi:t instanceof la?g0:(r=la(t))?(t=r,g0):Uhe)(e,t)}function upe(e){return function(){this.removeAttribute(e)}}function fpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function dpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function hpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function ppe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function gpe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function vpe(e,t){var r=qu(e),o=r==="transform"?Khe:y1;return this.attrTween(e,typeof t=="function"?(r.local?gpe:ppe)(r,o,rp(this,"attr."+e,t)):t==null?(r.local?fpe:upe)(r):(r.local?hpe:dpe)(r,o,t))}function mpe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function ype(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function bpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&ype(e,c)),r}return s._value=t,s}function wpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&mpe(e,c)),r}return s._value=t,s}function xpe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=qu(e);return this.tween(r,(o.local?bpe:wpe)(o,t))}function _pe(e,t){return function(){np(this,e).delay=+t.apply(this,arguments)}}function Spe(e,t){return t=+t,function(){np(this,e).delay=t}}function kpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_pe:Spe)(t,e)):Tr(this.node(),t).delay}function Cpe(e,t){return function(){jr(this,e).duration=+t.apply(this,arguments)}}function Tpe(e,t){return t=+t,function(){jr(this,e).duration=t}}function Epe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Cpe:Tpe)(t,e)):Tr(this.node(),t).duration}function Lpe(e,t){if(typeof t!="function")throw new Error;return function(){jr(this,e).ease=t}}function Ape(e){var t=this._id;return arguments.length?this.each(Lpe(t,e)):Tr(this.node(),t).ease}function Mpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;jr(this,e).ease=r}}function Npe(e){if(typeof e!="function")throw new Error;return this.each(Mpe(this._id,e))}function $pe(e){typeof e!="function"&&(e=Zw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new di(o,this._parents,this._name,this._id)}function Ppe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,y=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(y[x]=b);for(;d<o;++d)f[d]=t[d];return new di(f,this._parents,this._name,this._id)}function Ope(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Rpe(e,t,r){var o,s,c=Ope(t)?np:jr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Dpe(e,t){var r=this._id;return arguments.length<2?Tr(this.node(),r).on.on(e):this.each(Rpe(r,e,t))}function zpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ipe(){return this.on("end.remove",zpe(this._id))}function Fpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,y,b=0;b<h;++b)(v=d[b])&&(y=e.call(v,v.__data__,b,d))&&("__data__"in v&&(y.__data__=v.__data__),p[b]=y,Wu(p[b],t,r,b,p,Tr(v,r)));return new di(c,this._parents,t,r)}function Hpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Yw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,y=0;y<p;++y)if(v=h[y]){for(var b=e.call(v,v.__data__,y,h),x,A=Tr(v,r),T=0,E=b.length;T<E;++T)(x=b[T])&&Wu(x,t,r,T,b,A);c.push(b),f.push(v)}return new di(c,f,t,r)}var qpe=ba.prototype.constructor;function Bpe(){return new qpe(this._groups,this._parents)}function Wpe(e,t){var r,o,s;return function(){var c=Ds(this,e),f=(this.style.removeProperty(e),Ds(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function b1(e){return function(){this.style.removeProperty(e)}}function Upe(e,t,r){var o,s=r+"",c;return function(){var f=Ds(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Vpe(e,t,r){var o,s,c;return function(){var f=Ds(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ds(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function jpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=jr(this,e),p=h.on,v=h.value[c]==null?d||(d=b1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Gpe(e,t,r){var o=(e+="")=="transform"?Ghe:y1;return t==null?this.styleTween(e,Wpe(e,o)).on("end.style."+e,b1(e)):typeof t=="function"?this.styleTween(e,Vpe(e,o,rp(this,"style."+e,t))).each(jpe(this._id,e)):this.styleTween(e,Upe(e,o,t),r).on("end.style."+e,null)}function Kpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Xpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Kpe(e,f,r)),o}return c._value=t,c}function Ype(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Xpe(e,t,r??""))}function Zpe(e){return function(){this.textContent=e}}function Jpe(e){return function(){var t=e(this);this.textContent=t??""}}function Qpe(e){return this.tween("text",typeof e=="function"?Jpe(rp(this,"text",e)):Zpe(e==null?"":e+""))}function ege(e){return function(t){this.textContent=e.call(this,t)}}function tge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ege(s)),t}return o._value=e,o}function nge(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,tge(e))}function rge(){for(var e=this._name,t=this._id,r=w1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Tr(h,t);Wu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new di(o,this._parents,e,r)}function ige(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=jr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var oge=0;function di(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function w1(){return++oge}var ni=ba.prototype;di.prototype={constructor:di,select:Fpe,selectAll:Hpe,selectChild:ni.selectChild,selectChildren:ni.selectChildren,filter:$pe,merge:Ppe,selection:Bpe,transition:rge,call:ni.call,nodes:ni.nodes,node:ni.node,size:ni.size,empty:ni.empty,each:ni.each,on:Dpe,attr:vpe,attrTween:xpe,style:Gpe,styleTween:Ype,text:Qpe,textTween:nge,remove:Ipe,tween:cpe,delay:kpe,duration:Epe,ease:Ape,easeVarying:Npe,end:ige,[Symbol.iterator]:ni[Symbol.iterator]};function sge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lge={time:null,delay:0,duration:250,ease:sge};function age(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function cge(e){var t,r;e instanceof di?(t=e._id,e=e._name):(t=w1(),(r=lge).time=ep(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Wu(h,e,t,p,f,r||age(h,t));return new di(o,this._parents,e,t)}ba.prototype.interrupt=spe;ba.prototype.transition=cge;const bc=e=>()=>e;function uge(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function oi(e,t,r){this.k=e,this.x=t,this.y=r}oi.prototype={constructor:oi,scale:function(e){return e===1?this:new oi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new oi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ip=new oi(1,0,0);oi.prototype;function cd(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function fge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function dge(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function _0(){return this.__zoom||ip}function hge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function pge(){return navigator.maxTouchPoints||"ontouchstart"in this}function gge(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function vge(){var e=fge,t=dge,r=gge,o=hge,s=pge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Jhe,p=wa("start","zoom","end"),v,y,b,x=500,A=150,T=0,E=10;function L(I){I.property("__zoom",_0).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",ee).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(I,k,B,U){var re=I.selection?I.selection():I;re.property("__zoom",_0),I!==re?q(I,k,B,U):re.interrupt().each(function(){W(this,arguments).event(U).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},L.scaleBy=function(I,k,B,U){L.scaleTo(I,function(){var re=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return re*ye},B,U)},L.scaleTo=function(I,k,B,U){L.transform(I,function(){var re=t.apply(this,arguments),ye=this.__zoom,Ne=B==null?N(re):typeof B=="function"?B.apply(this,arguments):B,We=ye.invert(Ne),je=typeof k=="function"?k.apply(this,arguments):k;return r(P(M(ye,je),Ne,We),re,f)},B,U)},L.translateBy=function(I,k,B,U){L.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),f)},null,U)},L.translateTo=function(I,k,B,U,re){L.transform(I,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,We=U==null?N(ye):typeof U=="function"?U.apply(this,arguments):U;return r(ip.translate(We[0],We[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof B=="function"?-B.apply(this,arguments):-B),ye,f)},U,re)};function M(I,k){return k=Math.max(c[0],Math.min(c[1],k)),k===I.k?I:new oi(k,I.x,I.y)}function P(I,k,B){var U=k[0]-B[0]*I.k,re=k[1]-B[1]*I.k;return U===I.x&&re===I.y?I:new oi(I.k,U,re)}function N(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function q(I,k,B,U){I.on("start.zoom",function(){W(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(U).end()}).tween("zoom",function(){var re=this,ye=arguments,Ne=W(re,ye).event(U),We=t.apply(re,ye),je=B==null?N(We):typeof B=="function"?B.apply(re,ye):B,it=Math.max(We[1][0]-We[0][0],We[1][1]-We[0][1]),rt=re.__zoom,Je=typeof k=="function"?k.apply(re,ye):k,Le=h(rt.invert(je).concat(it/rt.k),Je.invert(je).concat(it/Je.k));return function(K){if(K===1)K=Je;else{var ae=Le(K),de=it/ae[2];K=new oi(de,je[0]-ae[0]*de,je[1]-ae[1]*de)}Ne.zoom(null,K)}})}function W(I,k,B){return!B&&I.__zooming||new X(I,k)}function X(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,k),this.taps=0}X.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=Dn(this.that).datum();p.call(I,this.that,new uge(I,{sourceEvent:this.sourceEvent,target:L,type:I,transform:this.that.__zoom,dispatch:p}),k)}};function ie(I,...k){if(!e.apply(this,arguments))return;var B=W(this,k).event(I),U=this.__zoom,re=Math.max(c[0],Math.min(c[1],U.k*Math.pow(2,o.apply(this,arguments)))),ye=ii(I);if(B.wheel)(B.mouse[0][0]!==ye[0]||B.mouse[0][1]!==ye[1])&&(B.mouse[1]=U.invert(B.mouse[0]=ye)),clearTimeout(B.wheel);else{if(U.k===re)return;B.mouse=[ye,U.invert(ye)],Oc(this),B.start()}kl(I),B.wheel=setTimeout(Ne,A),B.zoom("mouse",r(P(M(U,re),B.mouse[0],B.mouse[1]),B.extent,f));function Ne(){B.wheel=null,B.end()}}function ee(I,...k){if(b||!e.apply(this,arguments))return;var B=I.currentTarget,U=W(this,k,!0).event(I),re=Dn(I.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",it,!0),ye=ii(I,B),Ne=I.clientX,We=I.clientY;l1(I.view),cd(I),U.mouse=[ye,this.__zoom.invert(ye)],Oc(this),U.start();function je(rt){if(kl(rt),!U.moved){var Je=rt.clientX-Ne,Le=rt.clientY-We;U.moved=Je*Je+Le*Le>T}U.event(rt).zoom("mouse",r(P(U.that.__zoom,U.mouse[0]=ii(rt,B),U.mouse[1]),U.extent,f))}function it(rt){re.on("mousemove.zoom mouseup.zoom",null),a1(rt.view,U.moved),kl(rt),U.event(rt).end()}}function j(I,...k){if(e.apply(this,arguments)){var B=this.__zoom,U=ii(I.changedTouches?I.changedTouches[0]:I,this),re=B.invert(U),ye=B.k*(I.shiftKey?.5:2),Ne=r(P(M(B,ye),U,re),t.apply(this,k),f);kl(I),d>0?Dn(this).transition().duration(d).call(q,Ne,U,I):Dn(this).call(L.transform,Ne,U,I)}}function te(I,...k){if(e.apply(this,arguments)){var B=I.touches,U=B.length,re=W(this,k,I.changedTouches.length===U).event(I),ye,Ne,We,je;for(cd(I),Ne=0;Ne<U;++Ne)We=B[Ne],je=ii(We,this),je=[je,this.__zoom.invert(je),We.identifier],re.touch0?!re.touch1&&re.touch0[2]!==je[2]&&(re.touch1=je,re.taps=0):(re.touch0=je,ye=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(re.taps<2&&(y=je[0],v=setTimeout(function(){v=null},x)),Oc(this),re.start())}}function Z(I,...k){if(this.__zooming){var B=W(this,k).event(I),U=I.changedTouches,re=U.length,ye,Ne,We,je;for(kl(I),ye=0;ye<re;++ye)Ne=U[ye],We=ii(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=We:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=We);if(Ne=B.that.__zoom,B.touch1){var it=B.touch0[0],rt=B.touch0[1],Je=B.touch1[0],Le=B.touch1[1],K=(K=Je[0]-it[0])*K+(K=Je[1]-it[1])*K,ae=(ae=Le[0]-rt[0])*ae+(ae=Le[1]-rt[1])*ae;Ne=M(Ne,Math.sqrt(K/ae)),We=[(it[0]+Je[0])/2,(it[1]+Je[1])/2],je=[(rt[0]+Le[0])/2,(rt[1]+Le[1])/2]}else if(B.touch0)We=B.touch0[0],je=B.touch0[1];else return;B.zoom("touch",r(P(Ne,We,je),B.extent,f))}}function H(I,...k){if(this.__zooming){var B=W(this,k).event(I),U=I.changedTouches,re=U.length,ye,Ne;for(cd(I),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ye=0;ye<re;++ye)Ne=U[ye],B.touch0&&B.touch0[2]===Ne.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Ne.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Ne=ii(Ne,this),Math.hypot(y[0]-Ne[0],y[1]-Ne[1])<E)){var We=Dn(this).on("dblclick.zoom");We&&We.apply(this,arguments)}}}return L.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:bc(+I),L):o},L.filter=function(I){return arguments.length?(e=typeof I=="function"?I:bc(!!I),L):e},L.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:bc(!!I),L):s},L.extent=function(I){return arguments.length?(t=typeof I=="function"?I:bc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),L):t},L.scaleExtent=function(I){return arguments.length?(c[0]=+I[0],c[1]=+I[1],L):[c[0],c[1]]},L.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(I){return arguments.length?(r=I,L):r},L.duration=function(I){return arguments.length?(d=+I,L):d},L.interpolate=function(I){return arguments.length?(h=I,L):h},L.on=function(){var I=p.on.apply(p,arguments);return I===p?L:I},L.clickDistance=function(I){return arguments.length?(T=(I=+I)*I,L):Math.sqrt(T)},L.tapDistance=function(I){return arguments.length?(E=+I,L):E},L}function mge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return x1(this.cover(t,r),t,r,e)}function x1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,y,b,x,A,T,E,L,M;if(!c)return e._root=f,e;for(;c.length;)if((T=t>=(y=(d+p)/2))?d=y:p=y,(E=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[L=E<<1|T]))return s[L]=f,e;if(x=+e._x.call(null,c.data),A=+e._y.call(null,c.data),t===x&&r===A)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(T=t>=(y=(d+p)/2))?d=y:p=y,(E=r>=(b=(h+v)/2))?h=b:v=b;while((L=E<<1|T)===(M=(A>=b)<<1|x>=y));return s[M]=c,s[L]=f,e}function yge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,y=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>y&&(y=c));if(h>v||p>y)return this;for(this.cover(h,p).cover(v,y),r=0;r<o;++r)x1(this,f[r],d[r],e[r]);return this}function bge(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function wge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function xge(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function kn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function _ge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,y=this._y1,b=[],x=this._root,A,T;for(x&&b.push(new kn(x,s,c,v,y)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,y=t+r,r*=r);A=b.pop();)if(!(!(x=A.node)||(f=A.x0)>v||(d=A.y0)>y||(h=A.x1)<s||(p=A.y1)<c))if(x.length){var E=(f+h)/2,L=(d+p)/2;b.push(new kn(x[3],E,L,h,p),new kn(x[2],f,L,E,p),new kn(x[1],E,d,h,L),new kn(x[0],f,d,E,L)),(T=(t>=L)<<1|e>=E)&&(A=b[b.length-1],b[b.length-1]=b[b.length-1-T],b[b.length-1-T]=A)}else{var M=e-+this._x.call(null,x.data),P=t-+this._y.call(null,x.data),N=M*M+P*P;if(N<r){var q=Math.sqrt(r=N);s=e-q,c=t-q,v=e+q,y=t+q,o=x.data}}return o}function Sge(e){if(isNaN(v=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,y,b,x,A,T,E,L;if(!r)return this;if(r.length)for(;;){if((A=v>=(b=(f+h)/2))?f=b:h=b,(T=y>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[E=T<<1|A]))return this;if(!r.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(o=t,L=E)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[E]=c:delete t[E],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function kge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Cge(){return this._root}function Tge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Ege(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new kn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new kn(s,p,v,d,h)),(s=o[2])&&t.push(new kn(s,c,v,p,h)),(s=o[1])&&t.push(new kn(s,p,f,d,v)),(s=o[0])&&t.push(new kn(s,c,f,p,v))}return this}function Lge(e){var t=[],r=[],o;for(this._root&&t.push(new kn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,y=(d+p)/2;(c=s[0])&&t.push(new kn(c,f,d,v,y)),(c=s[1])&&t.push(new kn(c,v,d,h,y)),(c=s[2])&&t.push(new kn(c,f,y,v,p)),(c=s[3])&&t.push(new kn(c,v,y,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Age(e){return e[0]}function Mge(e){return arguments.length?(this._x=e,this):this._x}function Nge(e){return e[1]}function $ge(e){return arguments.length?(this._y=e,this):this._y}function op(e,t,r){var o=new sp(t??Age,r??Nge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function sp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function S0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var En=op.prototype=sp.prototype;En.copy=function(){var e=new sp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=S0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=S0(o));return e};En.add=mge;En.addAll=yge;En.cover=bge;En.data=wge;En.extent=xge;En.find=_ge;En.remove=Sge;En.removeAll=kge;En.root=Cge;En.size=Tge;En.visit=Ege;En.visitAfter=Lge;En.x=Mge;En.y=$ge;function Tn(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Pge(e){return e.x+e.vx}function Oge(e){return e.y+e.vy}function Rge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function f(){for(var p,v=t.length,y,b,x,A,T,E,L=0;L<c;++L)for(y=op(t,Pge,Oge).visitAfter(d),p=0;p<v;++p)b=t[p],T=r[b.index],E=T*T,x=b.x+b.vx,A=b.y+b.vy,y.visit(M);function M(P,N,q,W,X){var ie=P.data,ee=P.r,j=T+ee;if(ie){if(ie.index>b.index){var te=x-ie.x-ie.vx,Z=A-ie.y-ie.vy,H=te*te+Z*Z;H<j*j&&(te===0&&(te=Vi(o),H+=te*te),Z===0&&(Z=Vi(o),H+=Z*Z),H=(j-(H=Math.sqrt(H)))/H*s,b.vx+=(te*=H)*(j=(ee*=ee)/(E+ee)),b.vy+=(Z*=H)*j,ie.vx-=te*(j=1-j),ie.vy-=Z*j)}return}return N>x+j||W<x-j||q>A+j||X<A-j}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,y;for(r=new Array(v),p=0;p<v;++p)y=t[p],r[y.index]=+e(y,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Tn(+p),h(),f):e},f}function Dge(e){return e.index}function k0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function zge(e){var t=Dge,r=y,o,s=Tn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function y(E){return 1/Math.min(d[E.source.index],d[E.target.index])}function b(E){for(var L=0,M=e.length;L<v;++L)for(var P=0,N,q,W,X,ie,ee,j;P<M;++P)N=e[P],q=N.source,W=N.target,X=W.x+W.vx-q.x-q.vx||Vi(p),ie=W.y+W.vy-q.y-q.vy||Vi(p),ee=Math.sqrt(X*X+ie*ie),ee=(ee-c[P])/ee*E*o[P],X*=ee,ie*=ee,W.vx-=X*(j=h[P]),W.vy-=ie*j,q.vx+=X*(j=1-j),q.vy+=ie*j}function x(){if(f){var E,L=f.length,M=e.length,P=new Map(f.map((q,W)=>[t(q,W,f),q])),N;for(E=0,d=new Array(L);E<M;++E)N=e[E],N.index=E,typeof N.source!="object"&&(N.source=k0(P,N.source)),typeof N.target!="object"&&(N.target=k0(P,N.target)),d[N.source.index]=(d[N.source.index]||0)+1,d[N.target.index]=(d[N.target.index]||0)+1;for(E=0,h=new Array(M);E<M;++E)N=e[E],h[E]=d[N.source.index]/(d[N.source.index]+d[N.target.index]);o=new Array(M),A(),c=new Array(M),T()}}function A(){if(f)for(var E=0,L=e.length;E<L;++E)o[E]=+r(e[E],E,e)}function T(){if(f)for(var E=0,L=e.length;E<L;++E)c[E]=+s(e[E],E,e)}return b.initialize=function(E,L){f=E,p=L,x()},b.links=function(E){return arguments.length?(e=E,x(),b):e},b.id=function(E){return arguments.length?(t=E,b):t},b.iterations=function(E){return arguments.length?(v=+E,b):v},b.strength=function(E){return arguments.length?(r=typeof E=="function"?E:Tn(+E),A(),b):r},b.distance=function(E){return arguments.length?(s=typeof E=="function"?E:Tn(+E),T(),b):s},b}const Ige=1664525,Fge=1013904223,C0=4294967296;function Hge(){let e=1;return()=>(e=(Ige*e+Fge)%C0)/C0}function qge(e){return e.x}function Bge(e){return e.y}var Wge=10,Uge=Math.PI*(3-Math.sqrt(5));function Vge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=tp(y),p=wa("tick","end"),v=Hge();e==null&&(e=[]);function y(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(T){var E,L=e.length,M;T===void 0&&(T=1);for(var P=0;P<T;++P)for(r+=(c-r)*s,d.forEach(function(N){N(r)}),E=0;E<L;++E)M=e[E],M.fx==null?M.x+=M.vx*=f:(M.x=M.fx,M.vx=0),M.fy==null?M.y+=M.vy*=f:(M.y=M.fy,M.vy=0);return t}function x(){for(var T=0,E=e.length,L;T<E;++T){if(L=e[T],L.index=T,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var M=Wge*Math.sqrt(.5+T),P=T*Uge;L.x=M*Math.cos(P),L.y=M*Math.sin(P)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function A(T){return T.initialize&&T.initialize(e,v),T}return x(),t={tick:b,restart:function(){return h.restart(y),t},stop:function(){return h.stop(),t},nodes:function(T){return arguments.length?(e=T,x(),d.forEach(A),t):e},alpha:function(T){return arguments.length?(r=+T,t):r},alphaMin:function(T){return arguments.length?(o=+T,t):o},alphaDecay:function(T){return arguments.length?(s=+T,t):+s},alphaTarget:function(T){return arguments.length?(c=+T,t):c},velocityDecay:function(T){return arguments.length?(f=1-T,t):1-f},randomSource:function(T){return arguments.length?(v=T,d.forEach(A),t):v},force:function(T,E){return arguments.length>1?(E==null?d.delete(T):d.set(T,A(E)),t):d.get(T)},find:function(T,E,L){var M=0,P=e.length,N,q,W,X,ie;for(L==null?L=1/0:L*=L,M=0;M<P;++M)X=e[M],N=T-X.x,q=E-X.y,W=N*N+q*q,W<L&&(ie=X,L=W);return ie},on:function(T,E){return arguments.length>1?(p.on(T,E),t):p.on(T)}}}function jge(){var e,t,r,o,s=Tn(-30),c,f=1,d=1/0,h=.81;function p(x){var A,T=e.length,E=op(e,qge,Bge).visitAfter(y);for(o=x,A=0;A<T;++A)t=e[A],E.visit(b)}function v(){if(e){var x,A=e.length,T;for(c=new Array(A),x=0;x<A;++x)T=e[x],c[T.index]=+s(T,x,e)}}function y(x){var A=0,T,E,L=0,M,P,N;if(x.length){for(M=P=N=0;N<4;++N)(T=x[N])&&(E=Math.abs(T.value))&&(A+=T.value,L+=E,M+=E*T.x,P+=E*T.y);x.x=M/L,x.y=P/L}else{T=x,T.x=T.data.x,T.y=T.data.y;do A+=c[T.data.index];while(T=T.next)}x.value=A}function b(x,A,T,E){if(!x.value)return!0;var L=x.x-t.x,M=x.y-t.y,P=E-A,N=L*L+M*M;if(P*P/h<N)return N<d&&(L===0&&(L=Vi(r),N+=L*L),M===0&&(M=Vi(r),N+=M*M),N<f&&(N=Math.sqrt(f*N)),t.vx+=L*x.value*o/N,t.vy+=M*x.value*o/N),!0;if(x.length||N>=d)return;(x.data!==t||x.next)&&(L===0&&(L=Vi(r),N+=L*L),M===0&&(M=Vi(r),N+=M*M),N<f&&(N=Math.sqrt(f*N)));do x.data!==t&&(P=c[x.data.index]*o/N,t.vx+=L*P,t.vy+=M*P);while(x=x.next)}return p.initialize=function(x,A){e=x,r=A,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Tn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function Gge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}function Kge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}var Xge=Object.defineProperty,Yge=(e,t,r)=>t in e?Xge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t,r)=>Yge(e,typeof t!="symbol"?t+"":t,r);function Zge(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function T0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function ji(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=ji.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:T0(t[o])&&T0(r[o])?t[o]=ji(t[o],r[o]):t[o]=r[o])}),t},{})}const _1={mergeArrays:!0};ji.options=_1;ji.withOptions=(e,...t)=>{ji.options={mergeArrays:!0,...e};const r=ji(...t);return ji.options=_1,r};function Jge(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Qge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function S1(e){e.preventDefault(),e.stopPropagation()}function k1(e){return typeof e=="number"}function no(e,t){return k1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function eve(e){return`${e.source.id}-${e.target.id}`}function C1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function tve(e){return`url(#${C1(e.color)})`}function nve(e){return{size:e,padding:(t,r)=>no(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const T1={Arrow:e=>nve(e)},rve=(e,t,r)=>[t/2,r/2],E1=(e,t,r)=>[E0(0,t),E0(0,r)];function E0(e,t){return Math.random()*(t-e)+e}function ive(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?E1(r,o,s):[c,f]}}const Qd={Centered:rve,Randomized:E1,Stable:ive};function ove(){return{autoResize:!1,callbacks:{},hooks:{},initial:Qge(),nodeRadius:16,marker:T1.Arrow(4),modifiers:{},positionInitializer:Qd.Centered,simulation:{alphas:Zge(),forces:Jge()},zoom:{initial:1,min:.1,max:2}}}function sve(e={}){return ji.withOptions({mergeArrays:!1},ove(),e)}function lve({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>S1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,ip.translate(c,f).scale(d)),p.append("g")}function ave({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function cve({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=The().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Dn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Dn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function uve({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:fve({nodes:d,links:c},r)}function fve(e,t){const r=[...dve(e,t),...hve(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function dve(e,t){return L1(e,t,(r,o)=>r.target.id===o.id)}function hve(e,t){return L1(e,t,(r,o)=>r.source.id===o.id)}function L1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function eh(e){return e.x??0}function th(e){return e.y??0}function lp({source:e,target:t}){const r=new Sn(eh(e),th(e)),o=new Sn(eh(t),th(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function A1({center:e,node:t}){const r=new Sn(eh(t),th(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Sn(0,1))),{n:r,c:o}}function M1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=lp({config:e,source:t,target:r}),f=o.add(c.multiply(no(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function pve(e){const{start:t,end:r}=M1(e);return`M${t.x},${t.y}
|
|
48
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=V,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function G(){if(u.selectionStart!=null){var ce=a.somethingSelected(),ve=""+(ce?u.value:"");u.value="⇚",u.value=ve,i.prevInput=ce?"":"",u.selectionStart=1,u.selectionEnd=ve.length,l.selForContextMenu=a.doc.sel}}function V(){if(i.contextMenuPending==V&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!h||h&&p<9)&&G();var ce=0,ve=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Wt(a,Lg)(a):ce++<10?l.detectingSelectAll=setTimeout(ve,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ve,200)}}if(h&&p>=9&&G(),j){vi(n);var ne=function(){en(window,"mouseup",ne),setTimeout(V,20)};Fe(window,"mouseup",ne)}else setTimeout(V,50)},Nt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Nt.prototype.setUneditable=function(){},Nt.prototype.needsContentAttribute=!1;function O_(n,i){if(i=i?ae(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=ye(Je(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var m=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=m}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(en(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=kt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function R_(n){n.off=en,n.on=Fe,n.wheelEventPixels=Bx,n.Doc=mn,n.splitLines=Jn,n.countColumn=de,n.findColumn=le,n.isWordChar=Ue,n.Pass=O,n.signal=Et,n.Line=jo,n.changeEnd=ki,n.scrollbarModel=ig,n.Pos=Q,n.cmpPos=_e,n.modes=Ho,n.mimeModes=dr,n.resolveMode=qo,n.getMode=Bo,n.modeExtensions=bi,n.extendMode=Wo,n.copyState=Er,n.startState=Uo,n.innerMode=Us,n.commands=pl,n.keyMap=Qr,n.keyName=Ug,n.isModifierKey=Bg,n.lookupKey=os,n.normalizeKeyMap=u_,n.StringStream=At,n.SharedTextMarker=fl,n.TextMarker=Ti,n.LineWidget=ul,n.e_preventDefault=tn,n.e_stopPropagation=Io,n.e_stop=vi,n.addClass=Ne,n.contains=re,n.rmClass=Z,n.keyNames=Ei}T_(kt),M_(kt);var D_="iter insert remove copy getEditor constructor".split(" ");for(var Qa in mn.prototype)mn.prototype.hasOwnProperty(Qa)&&Ee(D_,Qa)<0&&(kt.prototype[Qa]=function(n){return function(){return n.apply(this.doc,arguments)}}(mn.prototype[Qa]));return cr(mn),kt.inputStyles={textarea:Nt,contenteditable:yt},kt.defineMode=function(n){!kt.defaults.mode&&n!="null"&&(kt.defaults.mode=n),hr.apply(this,arguments)},kt.defineMIME=so,kt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),kt.defineMIME("text/plain","null"),kt.defineExtension=function(n,i){kt.prototype[n]=i},kt.defineDocExtension=function(n,i){mn.prototype[n]=i},kt.fromTextArea=O_,R_(kt),kt.version="5.65.17",kt})})(Gw);var qs=Gw.exports;const yfe=Wb(qs);var bfe={exports:{}};(function(e,t){(function(r){r(qs)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(qt){return{type:qt,style:"keyword"}}var R=C("keyword a"),se=C("keyword b"),ge=C("keyword c"),Q=C("keyword d"),_e=C("operator"),dt={type:"atom",style:"atom"};return{if:C("if"),while:R,with:R,else:se,do:se,try:se,finally:se,return:Q,break:Q,continue:Q,new:C("new"),delete:ge,void:ge,throw:ge,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:_e,typeof:_e,instanceof:_e,true:dt,false:dt,null:dt,undefined:dt,NaN:dt,Infinity:dt,this:C("this"),class:C("class"),super:C("atom"),yield:ge,export:C("export"),import:C("import"),extends:ge,await:ge}}(),x=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function T(C){for(var R=!1,se,ge=!1;(se=C.next())!=null;){if(!R){if(se=="/"&&!ge)return;se=="["?ge=!0:ge&&se=="]"&&(ge=!1)}R=!R&&se=="\\"}}var E,L;function M(C,R,se){return E=C,L=se,R}function P(C,R){var se=C.next();if(se=='"'||se=="'")return R.tokenize=N(se),R.tokenize(C,R);if(se=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(se=="."&&C.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return M(se);if(se=="="&&C.eat(">"))return M("=>","operator");if(se=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(se))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(se=="/")return C.eat("*")?(R.tokenize=q,q(C,R)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):Bn(C,R,1)?(T(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(C.eat("="),M("operator","operator",C.current()));if(se=="`")return R.tokenize=W,W(C,R);if(se=="#"&&C.peek()=="!")return C.skipToEnd(),M("meta","meta");if(se=="#"&&C.eatWhile(y))return M("variable","property");if(se=="<"&&C.match("!--")||se=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),M("comment","comment");if(x.test(se))return(se!=">"||!R.lexical||R.lexical.type!=">")&&(C.eat("=")?(se=="!"||se=="=")&&C.eat("="):/[<>*+\-|&?]/.test(se)&&(C.eat(se),se==">"&&C.eat(se))),se=="?"&&C.eat(".")?M("."):M("operator","operator",C.current());if(y.test(se)){C.eatWhile(y);var ge=C.current();if(R.lastType!="."){if(b.propertyIsEnumerable(ge)){var Q=b[ge];return M(Q.type,Q.style,ge)}if(ge=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",ge)}return M("variable","variable",ge)}}function N(C){return function(R,se){var ge=!1,Q;if(d&&R.peek()=="@"&&R.match(A))return se.tokenize=P,M("jsonld-keyword","meta");for(;(Q=R.next())!=null&&!(Q==C&&!ge);)ge=!ge&&Q=="\\";return ge||(se.tokenize=P),M("string","string")}}function q(C,R){for(var se=!1,ge;ge=C.next();){if(ge=="/"&&se){R.tokenize=P;break}se=ge=="*"}return M("comment","comment")}function W(C,R){for(var se=!1,ge;(ge=C.next())!=null;){if(!se&&(ge=="`"||ge=="$"&&C.eat("{"))){R.tokenize=P;break}se=!se&&ge=="\\"}return M("quasi","string-2",C.current())}var X="([{}])";function ie(C,R){R.fatArrowAt&&(R.fatArrowAt=null);var se=C.string.indexOf("=>",C.start);if(!(se<0)){if(v){var ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,se));ge&&(se=ge.index)}for(var Q=0,_e=!1,dt=se-1;dt>=0;--dt){var qt=C.string.charAt(dt),gn=X.indexOf(qt);if(gn>=0&&gn<3){if(!Q){++dt;break}if(--Q==0){qt=="("&&(_e=!0);break}}else if(gn>=3&&gn<6)++Q;else if(y.test(qt))_e=!0;else if(/["'\/`]/.test(qt))for(;;--dt){if(dt==0)return;var Vo=C.string.charAt(dt-1);if(Vo==qt&&C.string.charAt(dt-2)!="\\"){dt--;break}}else if(_e&&!Q){++dt;break}}_e&&!Q&&(R.fatArrowAt=dt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(C,R,se,ge,Q,_e){this.indented=C,this.column=R,this.type=se,this.prev=Q,this.info=_e,ge!=null&&(this.align=ge)}function te(C,R){if(!p)return!1;for(var se=C.localVars;se;se=se.next)if(se.name==R)return!0;for(var ge=C.context;ge;ge=ge.prev)for(var se=ge.vars;se;se=se.next)if(se.name==R)return!0}function Z(C,R,se,ge,Q){var _e=C.cc;for(H.state=C,H.stream=Q,H.marked=null,H.cc=_e,H.style=R,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var dt=_e.length?_e.pop():h?Ee:de;if(dt(se,ge)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return H.marked?H.marked:se=="variable"&&te(C,ge)?"variable-2":R}}}var H={state:null,column:null,marked:null,cc:null};function I(){for(var C=arguments.length-1;C>=0;C--)H.cc.push(arguments[C])}function k(){return I.apply(null,arguments),!0}function B(C,R){for(var se=R;se;se=se.next)if(se.name==C)return!0;return!1}function U(C){var R=H.state;if(H.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var se=re(C,R.context);if(se!=null){R.context=se;return}}else if(!B(C,R.localVars)){R.localVars=new We(C,R.localVars);return}}s.globalVars&&!B(C,R.globalVars)&&(R.globalVars=new We(C,R.globalVars))}}function re(C,R){if(R)if(R.block){var se=re(C,R.prev);return se?se==R.prev?R:new Ne(se,R.vars,!0):null}else return B(C,R.vars)?R:new Ne(R.prev,new We(C,R.vars),!1);else return null}function ye(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Ne(C,R,se){this.prev=C,this.vars=R,this.block=se}function We(C,R){this.name=C,this.next=R}var je=new We("this",new We("arguments",null));function it(){H.state.context=new Ne(H.state.context,H.state.localVars,!1),H.state.localVars=je}function rt(){H.state.context=new Ne(H.state.context,H.state.localVars,!0),H.state.localVars=null}it.lex=rt.lex=!0;function Je(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}Je.lex=!0;function Le(C,R){var se=function(){var ge=H.state,Q=ge.indented;if(ge.lexical.type=="stat")Q=ge.lexical.indented;else for(var _e=ge.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)Q=_e.indented;ge.lexical=new j(Q,H.stream.column(),C,null,ge.lexical,R)};return se.lex=!0,se}function K(){var C=H.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}K.lex=!0;function ae(C){function R(se){return se==C?k():C==";"||se=="}"||se==")"||se=="]"?I():k(R)}return R}function de(C,R){return C=="var"?k(Le("vardef",R),Io,ae(";"),K):C=="keyword a"?k(Le("form"),O,de,K):C=="keyword b"?k(Le("form"),de,K):C=="keyword d"?H.stream.match(/^\s*$/,!1)?k():k(Le("stat"),J,ae(";"),K):C=="debugger"?k(ae(";")):C=="{"?k(Le("}"),rt,Jt,K,Je):C==";"?k():C=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==K&&H.state.cc.pop()(),k(Le("form"),O,de,K,Fo)):C=="function"?k(Jn):C=="for"?k(Le("form"),rt,_a,de,Je,K):C=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form",C=="class"?C:R),Ho,K)):C=="variable"?v&&R=="declare"?(H.marked="keyword",k(de)):v&&(R=="module"||R=="enum"||R=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",R=="enum"?k(Oe):R=="type"?k(Sa,ae("operator"),Ve,ae(";")):k(Le("form"),pn,ae("{"),Le("}"),Jt,K,K)):v&&R=="namespace"?(H.marked="keyword",k(Le("form"),Ee,de,K)):v&&R=="abstract"?(H.marked="keyword",k(de)):k(Le("stat"),Re):C=="switch"?k(Le("form"),O,ae("{"),Le("}","switch"),rt,Jt,K,K,Je):C=="case"?k(Ee,ae(":")):C=="default"?k(ae(":")):C=="catch"?k(Le("form"),it,$e,de,K,Je):C=="export"?k(Le("stat"),qo,K):C=="import"?k(Le("stat"),bi,K):C=="async"?k(de):R=="@"?k(Ee,de):I(Le("stat"),Ee,ae(";"),K)}function $e(C){if(C=="(")return k(fr,ae(")"))}function Ee(C,R){return F(C,R,!1)}function Ze(C,R){return F(C,R,!0)}function O(C){return C!="("?I():k(Le(")"),J,ae(")"),K)}function F(C,R,se){if(H.state.fatArrowAt==H.stream.start){var ge=se?xe:fe;if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ae("=>"),ge,Je);if(C=="variable")return I(it,pn,ae("=>"),ge,Je)}var Q=se?le:ue;return ee.hasOwnProperty(C)?k(Q):C=="function"?k(Jn,Q):C=="class"||v&&R=="interface"?(H.marked="keyword",k(Le("form"),ju,K)):C=="keyword c"||C=="async"?k(se?Ze:Ee):C=="("?k(Le(")"),J,ae(")"),K,Q):C=="operator"||C=="spread"?k(se?Ze:Ee):C=="["?k(Le("]"),At,K,Q):C=="{"?Ft(Ge,"}",null,Q):C=="quasi"?I(he,Q):C=="new"?k(pe(se)):k()}function J(C){return C.match(/[;\}\)\],]/)?I():I(Ee)}function ue(C,R){return C==","?k(J):le(C,R,!1)}function le(C,R,se){var ge=se==!1?ue:le,Q=se==!1?Ee:Ze;if(C=="=>")return k(it,se?xe:fe,Je);if(C=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(ge):v&&R=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Le(">"),nt(Ve,">"),K,ge):R=="?"?k(Ee,ae(":"),Q):k(Q);if(C=="quasi")return I(he,ge);if(C!=";"){if(C=="(")return Ft(Ze,")","call",ge);if(C==".")return k(Ue,ge);if(C=="[")return k(Le("]"),J,ae("]"),K,ge);if(v&&R=="as")return H.marked="keyword",k(Ve,ge);if(C=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),k(Q)}}function he(C,R){return C!="quasi"?I():R.slice(R.length-2)!="${"?k(he):k(J,Se)}function Se(C){if(C=="}")return H.marked="string-2",H.state.tokenize=W,k(he)}function fe(C){return ie(H.stream,H.state),I(C=="{"?de:Ee)}function xe(C){return ie(H.stream,H.state),I(C=="{"?de:Ze)}function pe(C){return function(R){return R=="."?k(C?ze:Me):R=="variable"&&v?k(An,C?le:ue):I(C?Ze:Ee)}}function Me(C,R){if(R=="target")return H.marked="keyword",k(ue)}function ze(C,R){if(R=="target")return H.marked="keyword",k(le)}function Re(C){return C==":"?k(K,de):I(ue,ae(";"),K)}function Ue(C){if(C=="variable")return H.marked="property",k()}function Ge(C,R){if(C=="async")return H.marked="property",k(Ge);if(C=="variable"||H.style=="keyword"){if(H.marked="property",R=="get"||R=="set")return k(mt);var se;return v&&H.state.fatArrowAt==H.stream.start&&(se=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+se[0].length),k(tt)}else{if(C=="number"||C=="string")return H.marked=d?"property":H.style+" property",k(tt);if(C=="jsonld-keyword")return k(tt);if(v&&ye(R))return H.marked="keyword",k(Ge);if(C=="[")return k(Ee,lr,ae("]"),tt);if(C=="spread")return k(Ze,tt);if(R=="*")return H.marked="keyword",k(Ge);if(C==":")return I(tt)}}function mt(C){return C!="variable"?I(tt):(H.marked="property",k(Jn))}function tt(C){if(C==":")return k(Ze);if(C=="(")return I(Jn)}function nt(C,R,se){function ge(Q,_e){if(se?se.indexOf(Q)>-1:Q==","){var dt=H.state.lexical;return dt.info=="call"&&(dt.pos=(dt.pos||0)+1),k(function(qt,gn){return qt==R||gn==R?I():I(C)},ge)}return Q==R||_e==R?k():se&&se.indexOf(";")>-1?I(C):k(ae(R))}return function(Q,_e){return Q==R||_e==R?k():I(C,ge)}}function Ft(C,R,se){for(var ge=3;ge<arguments.length;ge++)H.cc.push(arguments[ge]);return k(Le(R,se),nt(C,R),K)}function Jt(C){return C=="}"?k():I(de,Jt)}function lr(C,R){if(v){if(C==":")return k(Ve);if(R=="?")return k(lr)}}function qn(C,R){if(v&&(C==":"||R=="in"))return k(Ve)}function ar(C){if(v&&C==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ee,Qt,Ve):k(Ve)}function Qt(C,R){if(R=="is")return H.marked="keyword",k()}function Ve(C,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return H.marked="keyword",k(R=="typeof"?Ze:Ve);if(C=="variable"||R=="void")return H.marked="type",k(Zn);if(R=="|"||R=="&")return k(Ve);if(C=="string"||C=="number"||C=="atom")return k(Zn);if(C=="[")return k(Le("]"),nt(Ve,"]",","),K,Zn);if(C=="{")return k(Le("}"),Fe,K,Zn);if(C=="(")return k(nt(Lt,")"),oo,Zn);if(C=="<")return k(nt(Ve,">"),Ve);if(C=="quasi")return I(en,Zn)}function oo(C){if(C=="=>")return k(Ve)}function Fe(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Fe):I(Gr,Fe)}function Gr(C,R){if(C=="variable"||H.style=="keyword")return H.marked="property",k(Gr);if(R=="?"||C=="number"||C=="string")return k(Gr);if(C==":")return k(Ve);if(C=="[")return k(ae("variable"),qn,ae("]"),Gr);if(C=="(")return I(yi,Gr);if(!C.match(/[;\}\)\],]/))return k()}function en(C,R){return C!="quasi"?I():R.slice(R.length-2)!="${"?k(en):k(Ve,Et)}function Et(C){if(C=="}")return H.marked="string-2",H.state.tokenize=W,k(en)}function Lt(C,R){return C=="variable"&&H.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Lt):C==":"?k(Ve):C=="spread"?k(Lt):I(Ve)}function Zn(C,R){if(R=="<")return k(Le(">"),nt(Ve,">"),K,Zn);if(R=="|"||C=="."||R=="&")return k(Ve);if(C=="[")return k(Ve,ae("]"),Zn);if(R=="extends"||R=="implements")return H.marked="keyword",k(Ve);if(R=="?")return k(Ve,ae(":"),Ve)}function An(C,R){if(R=="<")return k(Le(">"),nt(Ve,">"),K,Zn)}function cr(){return I(Ve,tn)}function tn(C,R){if(R=="=")return k(Ve)}function Io(C,R){return R=="enum"?(H.marked="keyword",k(Oe)):I(pn,lr,ur,Vu)}function pn(C,R){if(v&&ye(R))return H.marked="keyword",k(pn);if(C=="variable")return U(R),k();if(C=="spread")return k(pn);if(C=="[")return Ft(Bs,"]");if(C=="{")return Ft(vi,"}")}function vi(C,R){return C=="variable"&&!H.stream.match(/^\s*:/,!1)?(U(R),k(ur)):(C=="variable"&&(H.marked="property"),C=="spread"?k(pn):C=="}"?I():C=="["?k(Ee,ae("]"),ae(":"),vi):k(ae(":"),pn,ur))}function Bs(){return I(pn,ur)}function ur(C,R){if(R=="=")return k(Ze)}function Vu(C){if(C==",")return k(Io)}function Fo(C,R){if(C=="keyword b"&&R=="else")return k(Le("form","else"),de,K)}function _a(C,R){if(R=="await")return k(_a);if(C=="(")return k(Le(")"),Ws,K)}function Ws(C){return C=="var"?k(Io,mi):C=="variable"?k(mi):I(mi)}function mi(C,R){return C==")"?k():C==";"?k(mi):R=="in"||R=="of"?(H.marked="keyword",k(Ee,mi)):I(Ee,mi)}function Jn(C,R){if(R=="*")return H.marked="keyword",k(Jn);if(C=="variable")return U(R),k(Jn);if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ar,de,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),K,Jn)}function yi(C,R){if(R=="*")return H.marked="keyword",k(yi);if(C=="variable")return U(R),k(yi);if(C=="(")return k(it,Le(")"),nt(fr,")"),K,ar,Je);if(v&&R=="<")return k(Le(">"),nt(cr,">"),K,yi)}function Sa(C,R){if(C=="keyword"||C=="variable")return H.marked="type",k(Sa);if(R=="<")return k(Le(">"),nt(cr,">"),K)}function fr(C,R){return R=="@"&&k(Ee,fr),C=="spread"?k(fr):v&&ye(R)?(H.marked="keyword",k(fr)):v&&C=="this"?k(lr,ur):I(pn,lr,ur)}function ju(C,R){return C=="variable"?Ho(C,R):dr(C,R)}function Ho(C,R){if(C=="variable")return U(R),k(dr)}function dr(C,R){if(R=="<")return k(Le(">"),nt(cr,">"),K,dr);if(R=="extends"||R=="implements"||v&&C==",")return R=="implements"&&(H.marked="keyword"),k(v?Ve:Ee,dr);if(C=="{")return k(Le("}"),hr,K)}function hr(C,R){if(C=="async"||C=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",k(hr);if(C=="variable"||H.style=="keyword")return H.marked="property",k(so,hr);if(C=="number"||C=="string")return k(so,hr);if(C=="[")return k(Ee,lr,ae("]"),so,hr);if(R=="*")return H.marked="keyword",k(hr);if(v&&C=="(")return I(yi,hr);if(C==";"||C==",")return k(hr);if(C=="}")return k();if(R=="@")return k(Ee,hr)}function so(C,R){if(R=="!"||R=="?")return k(so);if(C==":")return k(Ve,ur);if(R=="=")return k(Ze);var se=H.state.lexical.prev,ge=se&&se.info=="interface";return I(ge?yi:Jn)}function qo(C,R){return R=="*"?(H.marked="keyword",k(Uo,ae(";"))):R=="default"?(H.marked="keyword",k(Ee,ae(";"))):C=="{"?k(nt(Bo,"}"),Uo,ae(";")):I(de)}function Bo(C,R){if(R=="as")return H.marked="keyword",k(ae("variable"));if(C=="variable")return I(Ze,Bo)}function bi(C){return C=="string"?k():C=="("?I(Ee):C=="."?I(ue):I(Wo,Er,Uo)}function Wo(C,R){return C=="{"?Ft(Wo,"}"):(C=="variable"&&U(R),R=="*"&&(H.marked="keyword"),k(Us))}function Er(C){if(C==",")return k(Wo,Er)}function Us(C,R){if(R=="as")return H.marked="keyword",k(Wo)}function Uo(C,R){if(R=="from")return H.marked="keyword",k(Ee)}function At(C){return C=="]"?k():I(nt(Ze,"]"))}function Oe(){return I(Le("form"),pn,ae("{"),Le("}"),nt(Kr,"}"),K,K)}function Kr(){return I(pn,ur)}function Vs(C,R){return C.lastType=="operator"||C.lastType==","||x.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function Bn(C,R,se){return R.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(se||0)))}return{startState:function(C){var R={tokenize:P,lastType:"sof",cc:[],lexical:new j((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(C,R){if(C.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=C.indentation(),ie(C,R)),R.tokenize!=q&&C.eatSpace())return null;var se=R.tokenize(C,R);return E=="comment"?se:(R.lastType=E=="operator"&&(L=="++"||L=="--")?"incdec":E,Z(R,se,E,L,C))},indent:function(C,R){if(C.tokenize==q||C.tokenize==W)return r.Pass;if(C.tokenize!=P)return 0;var se=R&&R.charAt(0),ge=C.lexical,Q;if(!/^\s*else\b/.test(R))for(var _e=C.cc.length-1;_e>=0;--_e){var dt=C.cc[_e];if(dt==K)ge=ge.prev;else if(dt!=Fo&&dt!=Je)break}for(;(ge.type=="stat"||ge.type=="form")&&(se=="}"||(Q=C.cc[C.cc.length-1])&&(Q==ue||Q==le)&&!/^[,\.=+\-*:?[\(]/.test(R));)ge=ge.prev;f&&ge.type==")"&&ge.prev.type=="stat"&&(ge=ge.prev);var qt=ge.type,gn=se==qt;return qt=="vardef"?ge.indented+(C.lastType=="operator"||C.lastType==","?ge.info.length+1:0):qt=="form"&&se=="{"?ge.indented:qt=="form"?ge.indented+c:qt=="stat"?ge.indented+(Vs(C,R)?f||c:0):ge.info=="switch"&&!gn&&s.doubleIndentSwitch!=!1?ge.indented+(/^(?:case|default)\b/.test(R)?c:2*c):ge.align?ge.column+(gn?0:1):ge.indented+(gn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Bn,skipExpression:function(C){Z(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var wfe=bfe.exports,xfe={exports:{}};(function(e,t){(function(r){r(qs)})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var y,b;function x(k,B){function U(Ne){return B.tokenize=Ne,Ne(k,B)}var re=k.next();if(re=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?U(E("atom","]]>")):null:k.match("--")?U(E("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),U(L(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=E("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",B.tokenize=A,"tag bracket");if(re=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function A(k,B){var U=k.next();if(U==">"||U=="/"&&k.eat(">"))return B.tokenize=x,y=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return y="equals",null;if(U=="<"){B.tokenize=x,B.state=W,B.tagName=B.tagStart=null;var re=B.tokenize(k,B);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(U)?(B.tokenize=T(U),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function T(k){var B=function(U,re){for(;!U.eol();)if(U.next()==k){re.tokenize=A;break}return"string"};return B.isInAttribute=!0,B}function E(k,B){return function(U,re){for(;!U.eol();){if(U.match(B)){re.tokenize=x;break}U.next()}return k}}function L(k){return function(B,U){for(var re;(re=B.next())!=null;){if(re=="<")return U.tokenize=L(k+1),U.tokenize(B,U);if(re==">")if(k==1){U.tokenize=x;break}else return U.tokenize=L(k-1),U.tokenize(B,U)}return"meta"}}function M(k){return k&&k.toLowerCase()}function P(k,B,U){this.prev=k.context,this.tagName=B||"",this.indent=k.indented,this.startOfLine=U,(h.doNotIndent.hasOwnProperty(B)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function N(k){k.context&&(k.context=k.context.prev)}function q(k,B){for(var U;;){if(!k.context||(U=k.context.tagName,!h.contextGrabbers.hasOwnProperty(M(U))||!h.contextGrabbers[M(U)].hasOwnProperty(M(B))))return;N(k)}}function W(k,B,U){return k=="openTag"?(U.tagStart=B.column(),X):k=="closeTag"?ie:W}function X(k,B,U){return k=="word"?(U.tagName=B.current(),b="tag",te):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,B,U)):(b="error",X)}function ie(k,B,U){if(k=="word"){var re=B.current();return U.context&&U.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(M(U.context.tagName))&&N(U),U.context&&U.context.tagName==re||h.matchClosing===!1?(b="tag",ee):(b="tag error",j)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",ee(k,B,U)):(b="error",j)}function ee(k,B,U){return k!="endTag"?(b="error",ee):(N(U),W)}function j(k,B,U){return b="error",ee(k,B,U)}function te(k,B,U){if(k=="word")return b="attribute",Z;if(k=="endTag"||k=="selfcloseTag"){var re=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(M(re))?q(U,re):(q(U,re),U.context=new P(U,re,ye==U.indented)),W}return b="error",te}function Z(k,B,U){return k=="equals"?H:(h.allowMissing||(b="error"),te(k,B,U))}function H(k,B,U){return k=="string"?I:k=="word"&&h.allowUnquoted?(b="string",te):(b="error",te(k,B,U))}function I(k,B,U){return k=="string"?I:te(k,B,U)}return{startState:function(k){var B={tokenize:x,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(B.baseIndent=k),B},token:function(k,B){if(!B.tagName&&k.sol()&&(B.indented=k.indentation()),k.eatSpace())return null;y=null;var U=B.tokenize(k,B);return(U||y)&&U!="comment"&&(b=null,B.state=B.state(y||U,k,B),b&&(U=b=="error"?U+" error":b)),U},indent:function(k,B,U){var re=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(re&&re.noIndent)return r.Pass;if(k.tokenize!=A&&k.tokenize!=x)return U?U.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(B))return 0;var ye=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(ye&&ye[1])for(;re;)if(re.tagName==ye[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(M(re.tagName)))re=re.prev;else break;else if(ye)for(;re;){var Ne=h.contextGrabbers[M(re.tagName)];if(Ne&&Ne.hasOwnProperty(M(ye[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==H&&(k.state=te)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var B=[],U=k.context;U;U=U.prev)B.push(U.tagName);return B.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var _fe=xfe.exports;(function(e,t){(function(r){r(qs,_fe,wfe)})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var A=x.tagName;x.tagName=null;var T=d.indent(x,"","");return x.tagName=A,T}function v(x,A){return A.context.mode==d?y(x,A,A.context):b(x,A,A.context)}function y(x,A,T){if(T.depth==2)return x.match(/^.*?\*\//)?T.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(T.state);var E=p(T.state),L=T.state.context;if(L&&x.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?E-=c.indentUnit:T.prev.state.lexical&&(E=T.prev.state.lexical.indented)}else T.depth==1&&(E+=c.indentUnit);return A.context=new o(r.startState(h,E),h,0,A.context),null}if(T.depth==1){if(x.peek()=="<")return d.skipAttribute(T.state),A.context=new o(r.startState(d,p(T.state)),d,0,A.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return T.depth=2,v(x,A)}var M=d.token(x,T.state),P=x.current(),N;return/\btag\b/.test(M)?/>$/.test(P)?T.state.context?T.depth=0:A.context=A.context.prev:/^</.test(P)&&(T.depth=1):!M&&(N=P.indexOf("{"))>-1&&x.backUp(P.length-N),M}function b(x,A,T){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,T.state))return A.context=new o(r.startState(d,h.indent(T.state,"","")),d,0,A.context),h.skipExpression(T.state),null;var E=h.token(x,T.state);if(!E&&T.depth!=null){var L=x.current();L=="{"?T.depth++:L=="}"&&--T.depth==0&&(A.context=A.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,A,T){return x.context.mode.indent(x.context.state,A,T)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r(qs)})(function(r){r.defineOption("placeholder","",function(p,v,y){var b=y&&y!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=p.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var y=p.getInputField();v=y.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),y=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(qs)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var b=p.orientation=="horizontal"?"pageX":"pageY",x=y[b],A=p.pos;function T(){r.off(document,"mousemove",E),r.off(document,"mouseup",T)}function E(L){if(L.which!=1)return T();p.moveTo(A+(L[b]-x)*(p.total/p.size))}r.on(document,"mousemove",E),r.on(document,"mouseup",T)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=y.clientX<b.left?-1:y.clientX>b.right?1:0:x=y.clientY<b.top?-1:y.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(y){var b=r.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const er=Wr();function Sfe(e,t,r={}){const o=yfe.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),It(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),_u(()=>{er.value=void 0}),mh(o)}async function kfe(e){var t;Tw(e,((t=e.location)==null?void 0:t.line)??0)}const Cfe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Kw=ft({__name:"CodeMirrorContainer",props:qc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:qc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Eh(e,"modelValue"),s=XS(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Be();return Hs(async()=>{const d=Sfe(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),er.value=d,setTimeout(()=>er.value.refresh(),100)}),(d,h)=>(oe(),me("div",Cfe,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tfe=ft({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Be(""),c=Wr(void 0),f=Be(!1),d=Be(!0);It(()=>r.file,async()=>{var N;d.value=!0;try{if(!r.file||!((N=r.file)!=null&&N.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await wt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{ln(()=>d.value=!1)}},{immediate:!0}),It(()=>[d.value,r.file,zd.value],([N,q,W])=>{N||(W!=null?ln(()=>{var ie;const X={line:W??0,ch:0};(ie=er.value)==null||ie.scrollIntoView(X,100),ln(()=>{var ee,j;(ee=er.value)==null||ee.focus(),(j=er.value)==null||j.setCursor(X)})}):ln(()=>{var X;(X=er.value)==null||X.focus()}))},{flush:"post"});const h=Ce(()=>{var N,q;return((q=(N=r.file)==null?void 0:N.filepath)==null?void 0:q.split(/\./g).pop())||"js"}),p=Be(),v=Ce(()=>{var N;return(N=p.value)==null?void 0:N.cm}),y=Ce(()=>{var N;return((N=r.file)==null?void 0:N.tasks.filter(q=>{var W;return((W=q.result)==null?void 0:W.state)==="fail"}))||[]}),b=[],x=[],A=[],T=Be(!1);function E(){A.forEach(([N,q,W])=>{N.removeEventListener("click",q),W()}),A.length=0}vce(p,()=>{var N;(N=er.value)==null||N.refresh()});function L(){f.value=c.value!==er.value.getValue()}It(f,N=>{o("draft",N)},{immediate:!0});function M(N){const q=((N==null?void 0:N.stacks)||[]).filter(te=>{var Z;return te.file&&te.file===((Z=r.file)==null?void 0:Z.filepath)}),W=q==null?void 0:q[0];if(!W)return;const X=document.createElement("div");X.className="op80 flex gap-x-2 items-center";const ie=document.createElement("pre");ie.className="c-red-600 dark:c-red-400",ie.textContent=`${" ".repeat(W.column)}^ ${(N==null?void 0:N.nameStr)||N.name}: ${(N==null?void 0:N.message)||""}`,X.appendChild(ie);const ee=document.createElement("span");ee.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ee.tabIndex=0,ee.ariaLabel="Open in Editor",Lb(ee,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await dw(W.file,W.line,W.column)};X.appendChild(ee),A.push([ee,j,()=>zh(ee)]),x.push(er.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),b.push(er.value.addLineWidget(W.line-1,X))}It([v,y],([N])=>{if(!N){E();return}setTimeout(()=>{E(),b.forEach(q=>q.clear()),x.forEach(q=>{var W;return(W=er.value)==null?void 0:W.removeLineClass(q,"wrap")}),b.length=0,x.length=0,N.on("changes",L),y.value.forEach(q=>{var W,X;(X=(W=q.result)==null?void 0:W.errors)==null||X.forEach(M)}),T.value||N.clearHistory()},100)},{flush:"post"});async function P(N){T.value=!0,await wt.rpc.saveTestFile(r.file.filepath,N),c.value=N,f.value=!1}return(N,q)=>{const W=Kw;return oe(),ot(W,ai({ref_key:"editor",ref:p,modelValue:z(s),"onUpdate:modelValue":q[0]||(q[0]=X=>Pt(s)?s.value=X:null),"h-full":""},{lineNumbers:!0,readOnly:z(Ir)},{mode:z(h),"data-testid":"code-mirror",onSave:P}),null,16,["modelValue","mode"])}}}),Efe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Lfe={"p-4":"",relative:""},Afe=Y("p",null,"Module Info",-1),Mfe={op50:"","font-mono":"","text-sm":""},Nfe={key:0,"p-5":""},$fe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Pfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Ofe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Rfe={key:0},Dfe={p:"x3 y-1","bg-overlay":"",border:"base b t"},zfe=ft({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=oce(()=>wt.rpc.getTransformResult(r.projectName,r.id,!!Ro)),c=Ce(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Ce(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Ce(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Ce(()=>{var p,v,y,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(y=s.value)==null?void 0:y.map)==null?void 0:b.version}});return ww("Escape",()=>{o("close")}),(p,v)=>{const y=gi,b=Kw;return oe(),me("div",Efe,[Y("div",Lfe,[Afe,Y("p",Mfe,qe(p.id),1),Pe(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=x=>o("close"))})]),z(s)?(oe(),me(ut,{key:1},[Y("div",$fe,[Pfe,Ofe,Pe(b,ai({"h-full":"","model-value":z(f),"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"]),Pe(b,ai({"h-full":"","model-value":z(d),"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"])]),z(h).mappings!==""?(oe(),me("div",Rfe,[Y("div",Dfe," Source map (v"+qe(z(h).version)+") ",1),Pe(b,ai({"model-value":z(h).mappings,"read-only":""},{lineNumbers:!0},{mode:z(c)}),null,16,["model-value","mode"])])):Ye("",!0)],64)):(oe(),me("div",Nfe," No transform result found for this module. "))])}}});function Ife(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const o0={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),o0.hasOwnProperty(t)?{space:o0[t],local:e}:e}function Ffe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function Hfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xw(e){var t=qu(e);return(t.local?Hfe:Ffe)(t)}function qfe(){}function Zh(e){return e==null?qfe:function(){return this.querySelector(e)}}function Bfe(e){typeof e!="function"&&(e=Zh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new Yn(o,this._parents)}function Wfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ufe(){return[]}function Yw(e){return e==null?Ufe:function(){return this.querySelectorAll(e)}}function Vfe(e){return function(){return Wfe(e.apply(this,arguments))}}function jfe(e){typeof e=="function"?e=Vfe(e):e=Yw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new Yn(o,s)}function Zw(e){return function(){return this.matches(e)}}function Jw(e){return function(t){return t.matches(e)}}var Gfe=Array.prototype.find;function Kfe(e){return function(){return Gfe.call(this.children,e)}}function Xfe(){return this.firstElementChild}function Yfe(e){return this.select(e==null?Xfe:Kfe(typeof e=="function"?e:Jw(e)))}var Zfe=Array.prototype.filter;function Jfe(){return Array.from(this.children)}function Qfe(e){return function(){return Zfe.call(this.children,e)}}function ede(e){return this.selectAll(e==null?Jfe:Qfe(typeof e=="function"?e:Jw(e)))}function tde(e){typeof e!="function"&&(e=Zw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new Yn(o,this._parents)}function Qw(e){return new Array(e.length)}function nde(){return new Yn(this._enter||this._groups.map(Qw),this._parents)}function su(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}su.prototype={constructor:su,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function rde(e){return function(){return e}}function ide(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new su(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function ode(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,y=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<y;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new su(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function sde(e){return e.__data__}function lde(e,t){if(!arguments.length)return Array.from(this,sde);var r=t?ode:ide,o=this._parents,s=this._groups;typeof e!="function"&&(e=rde(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],y=s[p],b=y.length,x=ade(e.call(v,v&&v.__data__,p,o)),A=x.length,T=d[p]=new Array(A),E=f[p]=new Array(A),L=h[p]=new Array(b);r(v,y,T,E,L,x,t);for(var M=0,P=0,N,q;M<A;++M)if(N=T[M]){for(M>=P&&(P=M+1);!(q=E[P])&&++P<A;);N._next=q||null}}return f=new Yn(f,o),f._enter=d,f._exit=h,f}function ade(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cde(){return new Yn(this._exit||this._groups.map(Qw),this._parents)}function ude(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function fde(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],y=p.length,b=d[h]=new Array(y),x,A=0;A<y;++A)(x=p[A]||v[A])&&(b[A]=x);for(;h<s;++h)d[h]=r[h];return new Yn(d,this._parents)}function dde(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function hde(e){e||(e=pde);function t(y,b){return y&&b?e(y.__data__,b.__data__):!y-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new Yn(s,this._parents).order()}function pde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function gde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function vde(){return Array.from(this)}function mde(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function yde(){let e=0;for(const t of this)++e;return e}function bde(){return!this.node()}function wde(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function xde(e){return function(){this.removeAttribute(e)}}function _de(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sde(e,t){return function(){this.setAttribute(e,t)}}function kde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Cde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Tde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Ede(e,t){var r=qu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?_de:xde:typeof t=="function"?r.local?Tde:Cde:r.local?kde:Sde)(r,t))}function e1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Lde(e){return function(){this.style.removeProperty(e)}}function Ade(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Mde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Nde(e,t,r){return arguments.length>1?this.each((t==null?Lde:typeof t=="function"?Mde:Ade)(e,t,r??"")):Ds(this.node(),e)}function Ds(e,t){return e.style.getPropertyValue(t)||e1(e).getComputedStyle(e,null).getPropertyValue(t)}function $de(e){return function(){delete this[e]}}function Pde(e,t){return function(){this[e]=t}}function Ode(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Rde(e,t){return arguments.length>1?this.each((t==null?$de:typeof t=="function"?Ode:Pde)(e,t)):this.node()[e]}function t1(e){return e.trim().split(/^|\s+/)}function Jh(e){return e.classList||new n1(e)}function n1(e){this._node=e,this._names=t1(e.getAttribute("class")||"")}n1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function r1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function i1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Dde(e){return function(){r1(this,e)}}function zde(e){return function(){i1(this,e)}}function Ide(e,t){return function(){(t.apply(this,arguments)?r1:i1)(this,e)}}function Fde(e,t){var r=t1(e+"");if(arguments.length<2){for(var o=Jh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ide:t?Dde:zde)(r,t))}function Hde(){this.textContent=""}function qde(e){return function(){this.textContent=e}}function Bde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Wde(e){return arguments.length?this.each(e==null?Hde:(typeof e=="function"?Bde:qde)(e)):this.node().textContent}function Ude(){this.innerHTML=""}function Vde(e){return function(){this.innerHTML=e}}function jde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Gde(e){return arguments.length?this.each(e==null?Ude:(typeof e=="function"?jde:Vde)(e)):this.node().innerHTML}function Kde(){this.nextSibling&&this.parentNode.appendChild(this)}function Xde(){return this.each(Kde)}function Yde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zde(){return this.each(Yde)}function Jde(e){var t=typeof e=="function"?e:Xw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Qde(){return null}function ehe(e,t){var r=typeof e=="function"?e:Xw(e),o=t==null?Qde:typeof t=="function"?t:Zh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function the(){var e=this.parentNode;e&&e.removeChild(this)}function nhe(){return this.each(the)}function rhe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ihe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ohe(e){return this.select(e?ihe:rhe)}function she(e){return arguments.length?this.property("__data__",e):this.node().__data__}function lhe(e){return function(t){e.call(this,t,this.__data__)}}function ahe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function che(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function uhe(e,t,r){return function(){var o=this.__on,s,c=lhe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function fhe(e,t,r){var o=ahe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?uhe:che,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function o1(e,t,r){var o=e1(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function dhe(e,t){return function(){return o1(this,e,t)}}function hhe(e,t){return function(){return o1(this,e,t.apply(this,arguments))}}function phe(e,t){return this.each((typeof t=="function"?hhe:dhe)(e,t))}function*ghe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var s1=[null];function Yn(e,t){this._groups=e,this._parents=t}function ba(){return new Yn([[document.documentElement]],s1)}function vhe(){return this}Yn.prototype=ba.prototype={constructor:Yn,select:Bfe,selectAll:jfe,selectChild:Yfe,selectChildren:ede,filter:tde,data:lde,enter:nde,exit:cde,join:ude,merge:fde,selection:vhe,order:dde,sort:hde,call:gde,nodes:vde,node:mde,size:yde,empty:bde,each:wde,attr:Ede,style:Nde,property:Rde,classed:Fde,text:Wde,html:Gde,raise:Xde,lower:Zde,append:Jde,insert:ehe,remove:nhe,clone:ohe,datum:she,on:fhe,dispatch:phe,[Symbol.iterator]:ghe};function Dn(e){return typeof e=="string"?new Yn([[document.querySelector(e)]],[document.documentElement]):new Yn([[e]],s1)}function mhe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ii(e,t){if(e=mhe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class Sn{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new Sn(t,r)}add(t){return new Sn(this.x+t.x,this.y+t.y)}subtract(t){return new Sn(this.x-t.x,this.y-t.y)}multiply(t){return new Sn(this.x*t,this.y*t)}divide(t){return new Sn(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Sn(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Sn(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new Sn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var yhe={value:()=>{}};function wa(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Nc(r)}function Nc(e){this._=e}function bhe(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Nc.prototype=wa.prototype={constructor:Nc,on:function(e,t){var r=this._,o=bhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=whe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=s0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=s0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Nc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function whe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function s0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=yhe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const xhe={passive:!1},ia={capture:!0,passive:!1};function sd(e){e.stopImmediatePropagation()}function ks(e){e.preventDefault(),e.stopImmediatePropagation()}function l1(e){var t=e.document.documentElement,r=Dn(e).on("dragstart.drag",ks,ia);"onselectstart"in t?r.on("selectstart.drag",ks,ia):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a1(e,t){var r=e.document.documentElement,o=Dn(e).on("dragstart.drag",null);t&&(o.on("click.drag",ks,ia),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const gc=e=>()=>e;function jd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}jd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function _he(e){return!e.ctrlKey&&!e.button}function She(){return this.parentNode}function khe(e,t){return t??{x:e.x,y:e.y}}function Che(){return navigator.maxTouchPoints||"ontouchstart"in this}function The(){var e=_he,t=She,r=khe,o=Che,s={},c=wa("start","drag","end"),f=0,d,h,p,v,y=0;function b(N){N.on("mousedown.drag",x).filter(o).on("touchstart.drag",E).on("touchmove.drag",L,xhe).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(N,q){if(!(v||!e.call(this,N,q))){var W=P(this,t.call(this,N,q),N,q,"mouse");W&&(Dn(N.view).on("mousemove.drag",A,ia).on("mouseup.drag",T,ia),l1(N.view),sd(N),p=!1,d=N.clientX,h=N.clientY,W("start",N))}}function A(N){if(ks(N),!p){var q=N.clientX-d,W=N.clientY-h;p=q*q+W*W>y}s.mouse("drag",N)}function T(N){Dn(N.view).on("mousemove.drag mouseup.drag",null),a1(N.view,p),ks(N),s.mouse("end",N)}function E(N,q){if(e.call(this,N,q)){var W=N.changedTouches,X=t.call(this,N,q),ie=W.length,ee,j;for(ee=0;ee<ie;++ee)(j=P(this,X,N,q,W[ee].identifier,W[ee]))&&(sd(N),j("start",N,W[ee]))}}function L(N){var q=N.changedTouches,W=q.length,X,ie;for(X=0;X<W;++X)(ie=s[q[X].identifier])&&(ks(N),ie("drag",N,q[X]))}function M(N){var q=N.changedTouches,W=q.length,X,ie;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),X=0;X<W;++X)(ie=s[q[X].identifier])&&(sd(N),ie("end",N,q[X]))}function P(N,q,W,X,ie,ee){var j=c.copy(),te=ii(ee||W,q),Z,H,I;if((I=r.call(N,new jd("beforestart",{sourceEvent:W,target:b,identifier:ie,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:j}),X))!=null)return Z=I.x-te[0]||0,H=I.y-te[1]||0,function k(B,U,re){var ye=te,Ne;switch(B){case"start":s[ie]=k,Ne=f++;break;case"end":delete s[ie],--f;case"drag":te=ii(re||U,q),Ne=f;break}j.call(B,N,new jd(B,{sourceEvent:U,subject:I,target:b,identifier:ie,active:Ne,x:te[0]+Z,y:te[1]+H,dx:te[0]-ye[0],dy:te[1]-ye[1],dispatch:j}),X)}}return b.filter=function(N){return arguments.length?(e=typeof N=="function"?N:gc(!!N),b):e},b.container=function(N){return arguments.length?(t=typeof N=="function"?N:gc(N),b):t},b.subject=function(N){return arguments.length?(r=typeof N=="function"?N:gc(N),b):r},b.touchable=function(N){return arguments.length?(o=typeof N=="function"?N:gc(!!N),b):o},b.on=function(){var N=c.on.apply(c,arguments);return N===c?b:N},b.clickDistance=function(N){return arguments.length?(y=(N=+N)*N,b):Math.sqrt(y)},b}function Qh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function c1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function xa(){}var oa=.7,lu=1/oa,Cs="\\s*([+-]?\\d+)\\s*",sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ehe=/^#([0-9a-f]{3,8})$/,Lhe=new RegExp(`^rgb\\(${Cs},${Cs},${Cs}\\)$`),Ahe=new RegExp(`^rgb\\(${Fr},${Fr},${Fr}\\)$`),Mhe=new RegExp(`^rgba\\(${Cs},${Cs},${Cs},${sa}\\)$`),Nhe=new RegExp(`^rgba\\(${Fr},${Fr},${Fr},${sa}\\)$`),$he=new RegExp(`^hsl\\(${sa},${Fr},${Fr}\\)$`),Phe=new RegExp(`^hsla\\(${sa},${Fr},${Fr},${sa}\\)$`),l0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qh(xa,la,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:a0,formatHex:a0,formatHex8:Ohe,formatHsl:Rhe,formatRgb:c0,toString:c0});function a0(){return this.rgb().formatHex()}function Ohe(){return this.rgb().formatHex8()}function Rhe(){return u1(this).formatHsl()}function c0(){return this.rgb().formatRgb()}function la(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ehe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?u0(t):r===3?new In(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?vc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?vc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Lhe.exec(e))?new In(t[1],t[2],t[3],1):(t=Ahe.exec(e))?new In(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mhe.exec(e))?vc(t[1],t[2],t[3],t[4]):(t=Nhe.exec(e))?vc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$he.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=Phe.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):l0.hasOwnProperty(e)?u0(l0[e]):e==="transparent"?new In(NaN,NaN,NaN,0):null}function u0(e){return new In(e>>16&255,e>>8&255,e&255,1)}function vc(e,t,r,o){return o<=0&&(e=t=r=NaN),new In(e,t,r,o)}function Dhe(e){return e instanceof xa||(e=la(e)),e?(e=e.rgb(),new In(e.r,e.g,e.b,e.opacity)):new In}function Gd(e,t,r,o){return arguments.length===1?Dhe(e):new In(e,t,r,o??1)}function In(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Qh(In,Gd,c1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new In(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new In(No(this.r),No(this.g),No(this.b),au(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f0,formatHex:f0,formatHex8:zhe,formatRgb:d0,toString:d0}));function f0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function zhe(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function d0(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,r,o)}function u1(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof xa||(e=la(e)),!e)return new xr;if(e instanceof xr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new xr(f,d,h,e.opacity)}function Ihe(e,t,r,o){return arguments.length===1?u1(e):new xr(e,t,r,o??1)}function xr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Qh(xr,Ihe,c1(xa,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new xr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new In(ld(e>=240?e-240:e+120,s,o),ld(e,s,o),ld(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new xr(p0(this.h),mc(this.s),mc(this.l),au(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=au(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${mc(this.s)*100}%, ${mc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function mc(e){return Math.max(0,Math.min(1,e||0))}function ld(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const f1=e=>()=>e;function Fhe(e,t){return function(r){return e+r*t}}function Hhe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function qhe(e){return(e=+e)==1?d1:function(t,r){return r-t?Hhe(t,r,e):f1(isNaN(t)?r:t)}}function d1(e,t){var r=t-e;return r?Fhe(e,r):f1(isNaN(e)?t:e)}const g0=function e(t){var r=qhe(t);function o(s,c){var f=r((s=Gd(s)).r,(c=Gd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=d1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Kd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ad=new RegExp(Kd.source,"g");function Bhe(e){return function(){return e}}function Whe(e){return function(t){return e(t)+""}}function Uhe(e,t){var r=Kd.lastIndex=ad.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Kd.exec(e))&&(s=ad.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:qi(o,s)})),r=ad.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Whe(h[0].x):Bhe(t):(t=h.length,function(p){for(var v=0,y;v<t;++v)d[(y=h[v]).i]=y.x(p);return d.join("")})}var v0=180/Math.PI,Xd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*v0,skewX:Math.atan(h)*v0,scaleX:f,scaleY:d}}var yc;function Vhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xd:h1(t.a,t.b,t.c,t.d,t.e,t.f)}function jhe(e){return e==null||(yc||(yc=document.createElementNS("http://www.w3.org/2000/svg","g")),yc.setAttribute("transform",e),!(e=yc.transform.baseVal.consolidate()))?Xd:(e=e.matrix,h1(e.a,e.b,e.c,e.d,e.e,e.f))}function p1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,y,b,x,A){if(p!==y||v!==b){var T=x.push("translate(",null,t,null,r);A.push({i:T-4,x:qi(p,y)},{i:T-2,x:qi(v,b)})}else(y||b)&&x.push("translate("+y+t+b+r)}function f(p,v,y,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:y.push(s(y)+"rotate(",null,o)-2,x:qi(p,v)})):v&&y.push(s(y)+"rotate("+v+o)}function d(p,v,y,b){p!==v?b.push({i:y.push(s(y)+"skewX(",null,o)-2,x:qi(p,v)}):v&&y.push(s(y)+"skewX("+v+o)}function h(p,v,y,b,x,A){if(p!==y||v!==b){var T=x.push(s(x)+"scale(",null,",",null,")");A.push({i:T-4,x:qi(p,y)},{i:T-2,x:qi(v,b)})}else(y!==1||b!==1)&&x.push(s(x)+"scale("+y+","+b+")")}return function(p,v){var y=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,y,b),f(p.rotate,v.rotate,y,b),d(p.skewX,v.skewX,y,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,y,b),p=v=null,function(x){for(var A=-1,T=b.length,E;++A<T;)y[(E=b[A]).i]=E.x(x);return y.join("")}}}var Ghe=p1(Vhe,"px, ","px)","deg)"),Khe=p1(jhe,", ",")",")"),Xhe=1e-12;function m0(e){return((e=Math.exp(e))+1/e)/2}function Yhe(e){return((e=Math.exp(e))-1/e)/2}function Zhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Jhe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],y=f[1],b=f[2],x=v-d,A=y-h,T=x*x+A*A,E,L;if(T<Xhe)L=Math.log(b/p)/t,E=function(X){return[d+X*x,h+X*A,p*Math.exp(t*X*L)]};else{var M=Math.sqrt(T),P=(b*b-p*p+o*T)/(2*p*r*M),N=(b*b-p*p-o*T)/(2*b*r*M),q=Math.log(Math.sqrt(P*P+1)-P),W=Math.log(Math.sqrt(N*N+1)-N);L=(W-q)/t,E=function(X){var ie=X*L,ee=m0(q),j=p/(r*M)*(ee*Zhe(t*ie+q)-Yhe(q));return[d+j*x,h+j*A,p*ee/m0(t*ie+q)]}}return E.duration=L*1e3*t/Math.SQRT2,E}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var zs=0,Tl=0,Sl=0,g1=1e3,cu,El,uu=0,Do=0,Bu=0,aa=typeof performance=="object"&&performance.now?performance:Date,v1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ep(){return Do||(v1(Qhe),Do=aa.now()+Bu)}function Qhe(){Do=0}function fu(){this._call=this._time=this._next=null}fu.prototype=tp.prototype={constructor:fu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ep():+r)+(t==null?0:+t),!this._next&&El!==this&&(El?El._next=this:cu=this,El=this),this._call=e,this._time=r,Yd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yd())}};function tp(e,t,r){var o=new fu;return o.restart(e,t,r),o}function epe(){ep(),++zs;for(var e=cu,t;e;)(t=Do-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function y0(){Do=(uu=aa.now())+Bu,zs=Tl=0;try{epe()}finally{zs=0,npe(),Do=0}}function tpe(){var e=aa.now(),t=e-uu;t>g1&&(Bu-=t,uu=e)}function npe(){for(var e,t=cu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:cu=r);El=e,Yd(o)}function Yd(e){if(!zs){Tl&&(Tl=clearTimeout(Tl));var t=e-Do;t>24?(e<1/0&&(Tl=setTimeout(y0,e-aa.now()-Bu)),Sl&&(Sl=clearInterval(Sl))):(Sl||(uu=aa.now(),Sl=setInterval(tpe,g1)),zs=1,v1(y0))}}function b0(e,t,r){var o=new fu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var rpe=wa("start","end","cancel","interrupt"),ipe=[],m1=0,w0=1,Zd=2,$c=3,x0=4,Jd=5,Pc=6;function Wu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;ope(e,r,{name:t,index:o,group:s,on:rpe,tween:ipe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:m1})}function np(e,t){var r=Tr(e,t);if(r.state>m1)throw new Error("too late; already scheduled");return r}function jr(e,t){var r=Tr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Tr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function ope(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=tp(c,0,r.time);function c(p){r.state=w0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,y,b,x;if(r.state!==w0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===$c)return b0(f);x.state===x0?(x.state=Pc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Pc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(b0(function(){r.state===$c&&(r.state=x0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Zd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Zd){for(r.state=$c,s=new Array(b=r.tween.length),v=0,y=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++y]=x);s.length=y+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Jd,1),y=-1,b=s.length;++y<b;)s[y].call(e,v);r.state===Jd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Pc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Oc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Zd&&o.state<Jd,o.state=Pc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function spe(e){return this.each(function(){Oc(this,e)})}function lpe(e,t){var r,o;return function(){var s=jr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function ape(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=jr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function cpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Tr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?lpe:ape)(r,e,t))}function rp(e,t,r){var o=e._id;return e.each(function(){var s=jr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Tr(s,o).value[t]}}function y1(e,t){var r;return(typeof t=="number"?qi:t instanceof la?g0:(r=la(t))?(t=r,g0):Uhe)(e,t)}function upe(e){return function(){this.removeAttribute(e)}}function fpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function dpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function hpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function ppe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function gpe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function vpe(e,t){var r=qu(e),o=r==="transform"?Khe:y1;return this.attrTween(e,typeof t=="function"?(r.local?gpe:ppe)(r,o,rp(this,"attr."+e,t)):t==null?(r.local?fpe:upe)(r):(r.local?hpe:dpe)(r,o,t))}function mpe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function ype(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function bpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&ype(e,c)),r}return s._value=t,s}function wpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&mpe(e,c)),r}return s._value=t,s}function xpe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=qu(e);return this.tween(r,(o.local?bpe:wpe)(o,t))}function _pe(e,t){return function(){np(this,e).delay=+t.apply(this,arguments)}}function Spe(e,t){return t=+t,function(){np(this,e).delay=t}}function kpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_pe:Spe)(t,e)):Tr(this.node(),t).delay}function Cpe(e,t){return function(){jr(this,e).duration=+t.apply(this,arguments)}}function Tpe(e,t){return t=+t,function(){jr(this,e).duration=t}}function Epe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Cpe:Tpe)(t,e)):Tr(this.node(),t).duration}function Lpe(e,t){if(typeof t!="function")throw new Error;return function(){jr(this,e).ease=t}}function Ape(e){var t=this._id;return arguments.length?this.each(Lpe(t,e)):Tr(this.node(),t).ease}function Mpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;jr(this,e).ease=r}}function Npe(e){if(typeof e!="function")throw new Error;return this.each(Mpe(this._id,e))}function $pe(e){typeof e!="function"&&(e=Zw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new di(o,this._parents,this._name,this._id)}function Ppe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,y=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(y[x]=b);for(;d<o;++d)f[d]=t[d];return new di(f,this._parents,this._name,this._id)}function Ope(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Rpe(e,t,r){var o,s,c=Ope(t)?np:jr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Dpe(e,t){var r=this._id;return arguments.length<2?Tr(this.node(),r).on.on(e):this.each(Rpe(r,e,t))}function zpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ipe(){return this.on("end.remove",zpe(this._id))}function Fpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,y,b=0;b<h;++b)(v=d[b])&&(y=e.call(v,v.__data__,b,d))&&("__data__"in v&&(y.__data__=v.__data__),p[b]=y,Wu(p[b],t,r,b,p,Tr(v,r)));return new di(c,this._parents,t,r)}function Hpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Yw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,y=0;y<p;++y)if(v=h[y]){for(var b=e.call(v,v.__data__,y,h),x,A=Tr(v,r),T=0,E=b.length;T<E;++T)(x=b[T])&&Wu(x,t,r,T,b,A);c.push(b),f.push(v)}return new di(c,f,t,r)}var qpe=ba.prototype.constructor;function Bpe(){return new qpe(this._groups,this._parents)}function Wpe(e,t){var r,o,s;return function(){var c=Ds(this,e),f=(this.style.removeProperty(e),Ds(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function b1(e){return function(){this.style.removeProperty(e)}}function Upe(e,t,r){var o,s=r+"",c;return function(){var f=Ds(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Vpe(e,t,r){var o,s,c;return function(){var f=Ds(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ds(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function jpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=jr(this,e),p=h.on,v=h.value[c]==null?d||(d=b1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Gpe(e,t,r){var o=(e+="")=="transform"?Ghe:y1;return t==null?this.styleTween(e,Wpe(e,o)).on("end.style."+e,b1(e)):typeof t=="function"?this.styleTween(e,Vpe(e,o,rp(this,"style."+e,t))).each(jpe(this._id,e)):this.styleTween(e,Upe(e,o,t),r).on("end.style."+e,null)}function Kpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Xpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Kpe(e,f,r)),o}return c._value=t,c}function Ype(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Xpe(e,t,r??""))}function Zpe(e){return function(){this.textContent=e}}function Jpe(e){return function(){var t=e(this);this.textContent=t??""}}function Qpe(e){return this.tween("text",typeof e=="function"?Jpe(rp(this,"text",e)):Zpe(e==null?"":e+""))}function ege(e){return function(t){this.textContent=e.call(this,t)}}function tge(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ege(s)),t}return o._value=e,o}function nge(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,tge(e))}function rge(){for(var e=this._name,t=this._id,r=w1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Tr(h,t);Wu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new di(o,this._parents,e,r)}function ige(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=jr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var oge=0;function di(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function w1(){return++oge}var ni=ba.prototype;di.prototype={constructor:di,select:Fpe,selectAll:Hpe,selectChild:ni.selectChild,selectChildren:ni.selectChildren,filter:$pe,merge:Ppe,selection:Bpe,transition:rge,call:ni.call,nodes:ni.nodes,node:ni.node,size:ni.size,empty:ni.empty,each:ni.each,on:Dpe,attr:vpe,attrTween:xpe,style:Gpe,styleTween:Ype,text:Qpe,textTween:nge,remove:Ipe,tween:cpe,delay:kpe,duration:Epe,ease:Ape,easeVarying:Npe,end:ige,[Symbol.iterator]:ni[Symbol.iterator]};function sge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lge={time:null,delay:0,duration:250,ease:sge};function age(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function cge(e){var t,r;e instanceof di?(t=e._id,e=e._name):(t=w1(),(r=lge).time=ep(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Wu(h,e,t,p,f,r||age(h,t));return new di(o,this._parents,e,t)}ba.prototype.interrupt=spe;ba.prototype.transition=cge;const bc=e=>()=>e;function uge(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function oi(e,t,r){this.k=e,this.x=t,this.y=r}oi.prototype={constructor:oi,scale:function(e){return e===1?this:new oi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new oi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ip=new oi(1,0,0);oi.prototype;function cd(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function fge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function dge(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function _0(){return this.__zoom||ip}function hge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function pge(){return navigator.maxTouchPoints||"ontouchstart"in this}function gge(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function vge(){var e=fge,t=dge,r=gge,o=hge,s=pge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Jhe,p=wa("start","zoom","end"),v,y,b,x=500,A=150,T=0,E=10;function L(I){I.property("__zoom",_0).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",ee).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(I,k,B,U){var re=I.selection?I.selection():I;re.property("__zoom",_0),I!==re?q(I,k,B,U):re.interrupt().each(function(){W(this,arguments).event(U).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},L.scaleBy=function(I,k,B,U){L.scaleTo(I,function(){var re=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return re*ye},B,U)},L.scaleTo=function(I,k,B,U){L.transform(I,function(){var re=t.apply(this,arguments),ye=this.__zoom,Ne=B==null?N(re):typeof B=="function"?B.apply(this,arguments):B,We=ye.invert(Ne),je=typeof k=="function"?k.apply(this,arguments):k;return r(P(M(ye,je),Ne,We),re,f)},B,U)},L.translateBy=function(I,k,B,U){L.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),f)},null,U)},L.translateTo=function(I,k,B,U,re){L.transform(I,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,We=U==null?N(ye):typeof U=="function"?U.apply(this,arguments):U;return r(ip.translate(We[0],We[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof B=="function"?-B.apply(this,arguments):-B),ye,f)},U,re)};function M(I,k){return k=Math.max(c[0],Math.min(c[1],k)),k===I.k?I:new oi(k,I.x,I.y)}function P(I,k,B){var U=k[0]-B[0]*I.k,re=k[1]-B[1]*I.k;return U===I.x&&re===I.y?I:new oi(I.k,U,re)}function N(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function q(I,k,B,U){I.on("start.zoom",function(){W(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(U).end()}).tween("zoom",function(){var re=this,ye=arguments,Ne=W(re,ye).event(U),We=t.apply(re,ye),je=B==null?N(We):typeof B=="function"?B.apply(re,ye):B,it=Math.max(We[1][0]-We[0][0],We[1][1]-We[0][1]),rt=re.__zoom,Je=typeof k=="function"?k.apply(re,ye):k,Le=h(rt.invert(je).concat(it/rt.k),Je.invert(je).concat(it/Je.k));return function(K){if(K===1)K=Je;else{var ae=Le(K),de=it/ae[2];K=new oi(de,je[0]-ae[0]*de,je[1]-ae[1]*de)}Ne.zoom(null,K)}})}function W(I,k,B){return!B&&I.__zooming||new X(I,k)}function X(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,k),this.taps=0}X.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=Dn(this.that).datum();p.call(I,this.that,new uge(I,{sourceEvent:this.sourceEvent,target:L,type:I,transform:this.that.__zoom,dispatch:p}),k)}};function ie(I,...k){if(!e.apply(this,arguments))return;var B=W(this,k).event(I),U=this.__zoom,re=Math.max(c[0],Math.min(c[1],U.k*Math.pow(2,o.apply(this,arguments)))),ye=ii(I);if(B.wheel)(B.mouse[0][0]!==ye[0]||B.mouse[0][1]!==ye[1])&&(B.mouse[1]=U.invert(B.mouse[0]=ye)),clearTimeout(B.wheel);else{if(U.k===re)return;B.mouse=[ye,U.invert(ye)],Oc(this),B.start()}kl(I),B.wheel=setTimeout(Ne,A),B.zoom("mouse",r(P(M(U,re),B.mouse[0],B.mouse[1]),B.extent,f));function Ne(){B.wheel=null,B.end()}}function ee(I,...k){if(b||!e.apply(this,arguments))return;var B=I.currentTarget,U=W(this,k,!0).event(I),re=Dn(I.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",it,!0),ye=ii(I,B),Ne=I.clientX,We=I.clientY;l1(I.view),cd(I),U.mouse=[ye,this.__zoom.invert(ye)],Oc(this),U.start();function je(rt){if(kl(rt),!U.moved){var Je=rt.clientX-Ne,Le=rt.clientY-We;U.moved=Je*Je+Le*Le>T}U.event(rt).zoom("mouse",r(P(U.that.__zoom,U.mouse[0]=ii(rt,B),U.mouse[1]),U.extent,f))}function it(rt){re.on("mousemove.zoom mouseup.zoom",null),a1(rt.view,U.moved),kl(rt),U.event(rt).end()}}function j(I,...k){if(e.apply(this,arguments)){var B=this.__zoom,U=ii(I.changedTouches?I.changedTouches[0]:I,this),re=B.invert(U),ye=B.k*(I.shiftKey?.5:2),Ne=r(P(M(B,ye),U,re),t.apply(this,k),f);kl(I),d>0?Dn(this).transition().duration(d).call(q,Ne,U,I):Dn(this).call(L.transform,Ne,U,I)}}function te(I,...k){if(e.apply(this,arguments)){var B=I.touches,U=B.length,re=W(this,k,I.changedTouches.length===U).event(I),ye,Ne,We,je;for(cd(I),Ne=0;Ne<U;++Ne)We=B[Ne],je=ii(We,this),je=[je,this.__zoom.invert(je),We.identifier],re.touch0?!re.touch1&&re.touch0[2]!==je[2]&&(re.touch1=je,re.taps=0):(re.touch0=je,ye=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(re.taps<2&&(y=je[0],v=setTimeout(function(){v=null},x)),Oc(this),re.start())}}function Z(I,...k){if(this.__zooming){var B=W(this,k).event(I),U=I.changedTouches,re=U.length,ye,Ne,We,je;for(kl(I),ye=0;ye<re;++ye)Ne=U[ye],We=ii(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=We:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=We);if(Ne=B.that.__zoom,B.touch1){var it=B.touch0[0],rt=B.touch0[1],Je=B.touch1[0],Le=B.touch1[1],K=(K=Je[0]-it[0])*K+(K=Je[1]-it[1])*K,ae=(ae=Le[0]-rt[0])*ae+(ae=Le[1]-rt[1])*ae;Ne=M(Ne,Math.sqrt(K/ae)),We=[(it[0]+Je[0])/2,(it[1]+Je[1])/2],je=[(rt[0]+Le[0])/2,(rt[1]+Le[1])/2]}else if(B.touch0)We=B.touch0[0],je=B.touch0[1];else return;B.zoom("touch",r(P(Ne,We,je),B.extent,f))}}function H(I,...k){if(this.__zooming){var B=W(this,k).event(I),U=I.changedTouches,re=U.length,ye,Ne;for(cd(I),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ye=0;ye<re;++ye)Ne=U[ye],B.touch0&&B.touch0[2]===Ne.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Ne.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Ne=ii(Ne,this),Math.hypot(y[0]-Ne[0],y[1]-Ne[1])<E)){var We=Dn(this).on("dblclick.zoom");We&&We.apply(this,arguments)}}}return L.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:bc(+I),L):o},L.filter=function(I){return arguments.length?(e=typeof I=="function"?I:bc(!!I),L):e},L.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:bc(!!I),L):s},L.extent=function(I){return arguments.length?(t=typeof I=="function"?I:bc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),L):t},L.scaleExtent=function(I){return arguments.length?(c[0]=+I[0],c[1]=+I[1],L):[c[0],c[1]]},L.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(I){return arguments.length?(r=I,L):r},L.duration=function(I){return arguments.length?(d=+I,L):d},L.interpolate=function(I){return arguments.length?(h=I,L):h},L.on=function(){var I=p.on.apply(p,arguments);return I===p?L:I},L.clickDistance=function(I){return arguments.length?(T=(I=+I)*I,L):Math.sqrt(T)},L.tapDistance=function(I){return arguments.length?(E=+I,L):E},L}function mge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return x1(this.cover(t,r),t,r,e)}function x1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,y,b,x,A,T,E,L,M;if(!c)return e._root=f,e;for(;c.length;)if((T=t>=(y=(d+p)/2))?d=y:p=y,(E=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[L=E<<1|T]))return s[L]=f,e;if(x=+e._x.call(null,c.data),A=+e._y.call(null,c.data),t===x&&r===A)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(T=t>=(y=(d+p)/2))?d=y:p=y,(E=r>=(b=(h+v)/2))?h=b:v=b;while((L=E<<1|T)===(M=(A>=b)<<1|x>=y));return s[M]=c,s[L]=f,e}function yge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,y=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>y&&(y=c));if(h>v||p>y)return this;for(this.cover(h,p).cover(v,y),r=0;r<o;++r)x1(this,f[r],d[r],e[r]);return this}function bge(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function wge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function xge(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function kn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function _ge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,y=this._y1,b=[],x=this._root,A,T;for(x&&b.push(new kn(x,s,c,v,y)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,y=t+r,r*=r);A=b.pop();)if(!(!(x=A.node)||(f=A.x0)>v||(d=A.y0)>y||(h=A.x1)<s||(p=A.y1)<c))if(x.length){var E=(f+h)/2,L=(d+p)/2;b.push(new kn(x[3],E,L,h,p),new kn(x[2],f,L,E,p),new kn(x[1],E,d,h,L),new kn(x[0],f,d,E,L)),(T=(t>=L)<<1|e>=E)&&(A=b[b.length-1],b[b.length-1]=b[b.length-1-T],b[b.length-1-T]=A)}else{var M=e-+this._x.call(null,x.data),P=t-+this._y.call(null,x.data),N=M*M+P*P;if(N<r){var q=Math.sqrt(r=N);s=e-q,c=t-q,v=e+q,y=t+q,o=x.data}}return o}function Sge(e){if(isNaN(v=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,y,b,x,A,T,E,L;if(!r)return this;if(r.length)for(;;){if((A=v>=(b=(f+h)/2))?f=b:h=b,(T=y>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[E=T<<1|A]))return this;if(!r.length)break;(t[E+1&3]||t[E+2&3]||t[E+3&3])&&(o=t,L=E)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[E]=c:delete t[E],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function kge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Cge(){return this._root}function Tge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Ege(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new kn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new kn(s,p,v,d,h)),(s=o[2])&&t.push(new kn(s,c,v,p,h)),(s=o[1])&&t.push(new kn(s,p,f,d,v)),(s=o[0])&&t.push(new kn(s,c,f,p,v))}return this}function Lge(e){var t=[],r=[],o;for(this._root&&t.push(new kn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,y=(d+p)/2;(c=s[0])&&t.push(new kn(c,f,d,v,y)),(c=s[1])&&t.push(new kn(c,v,d,h,y)),(c=s[2])&&t.push(new kn(c,f,y,v,p)),(c=s[3])&&t.push(new kn(c,v,y,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Age(e){return e[0]}function Mge(e){return arguments.length?(this._x=e,this):this._x}function Nge(e){return e[1]}function $ge(e){return arguments.length?(this._y=e,this):this._y}function op(e,t,r){var o=new sp(t??Age,r??Nge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function sp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function S0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var En=op.prototype=sp.prototype;En.copy=function(){var e=new sp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=S0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=S0(o));return e};En.add=mge;En.addAll=yge;En.cover=bge;En.data=wge;En.extent=xge;En.find=_ge;En.remove=Sge;En.removeAll=kge;En.root=Cge;En.size=Tge;En.visit=Ege;En.visitAfter=Lge;En.x=Mge;En.y=$ge;function Tn(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Pge(e){return e.x+e.vx}function Oge(e){return e.y+e.vy}function Rge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function f(){for(var p,v=t.length,y,b,x,A,T,E,L=0;L<c;++L)for(y=op(t,Pge,Oge).visitAfter(d),p=0;p<v;++p)b=t[p],T=r[b.index],E=T*T,x=b.x+b.vx,A=b.y+b.vy,y.visit(M);function M(P,N,q,W,X){var ie=P.data,ee=P.r,j=T+ee;if(ie){if(ie.index>b.index){var te=x-ie.x-ie.vx,Z=A-ie.y-ie.vy,H=te*te+Z*Z;H<j*j&&(te===0&&(te=Vi(o),H+=te*te),Z===0&&(Z=Vi(o),H+=Z*Z),H=(j-(H=Math.sqrt(H)))/H*s,b.vx+=(te*=H)*(j=(ee*=ee)/(E+ee)),b.vy+=(Z*=H)*j,ie.vx-=te*(j=1-j),ie.vy-=Z*j)}return}return N>x+j||W<x-j||q>A+j||X<A-j}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,y;for(r=new Array(v),p=0;p<v;++p)y=t[p],r[y.index]=+e(y,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Tn(+p),h(),f):e},f}function Dge(e){return e.index}function k0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function zge(e){var t=Dge,r=y,o,s=Tn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function y(E){return 1/Math.min(d[E.source.index],d[E.target.index])}function b(E){for(var L=0,M=e.length;L<v;++L)for(var P=0,N,q,W,X,ie,ee,j;P<M;++P)N=e[P],q=N.source,W=N.target,X=W.x+W.vx-q.x-q.vx||Vi(p),ie=W.y+W.vy-q.y-q.vy||Vi(p),ee=Math.sqrt(X*X+ie*ie),ee=(ee-c[P])/ee*E*o[P],X*=ee,ie*=ee,W.vx-=X*(j=h[P]),W.vy-=ie*j,q.vx+=X*(j=1-j),q.vy+=ie*j}function x(){if(f){var E,L=f.length,M=e.length,P=new Map(f.map((q,W)=>[t(q,W,f),q])),N;for(E=0,d=new Array(L);E<M;++E)N=e[E],N.index=E,typeof N.source!="object"&&(N.source=k0(P,N.source)),typeof N.target!="object"&&(N.target=k0(P,N.target)),d[N.source.index]=(d[N.source.index]||0)+1,d[N.target.index]=(d[N.target.index]||0)+1;for(E=0,h=new Array(M);E<M;++E)N=e[E],h[E]=d[N.source.index]/(d[N.source.index]+d[N.target.index]);o=new Array(M),A(),c=new Array(M),T()}}function A(){if(f)for(var E=0,L=e.length;E<L;++E)o[E]=+r(e[E],E,e)}function T(){if(f)for(var E=0,L=e.length;E<L;++E)c[E]=+s(e[E],E,e)}return b.initialize=function(E,L){f=E,p=L,x()},b.links=function(E){return arguments.length?(e=E,x(),b):e},b.id=function(E){return arguments.length?(t=E,b):t},b.iterations=function(E){return arguments.length?(v=+E,b):v},b.strength=function(E){return arguments.length?(r=typeof E=="function"?E:Tn(+E),A(),b):r},b.distance=function(E){return arguments.length?(s=typeof E=="function"?E:Tn(+E),T(),b):s},b}const Ige=1664525,Fge=1013904223,C0=4294967296;function Hge(){let e=1;return()=>(e=(Ige*e+Fge)%C0)/C0}function qge(e){return e.x}function Bge(e){return e.y}var Wge=10,Uge=Math.PI*(3-Math.sqrt(5));function Vge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=tp(y),p=wa("tick","end"),v=Hge();e==null&&(e=[]);function y(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(T){var E,L=e.length,M;T===void 0&&(T=1);for(var P=0;P<T;++P)for(r+=(c-r)*s,d.forEach(function(N){N(r)}),E=0;E<L;++E)M=e[E],M.fx==null?M.x+=M.vx*=f:(M.x=M.fx,M.vx=0),M.fy==null?M.y+=M.vy*=f:(M.y=M.fy,M.vy=0);return t}function x(){for(var T=0,E=e.length,L;T<E;++T){if(L=e[T],L.index=T,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var M=Wge*Math.sqrt(.5+T),P=T*Uge;L.x=M*Math.cos(P),L.y=M*Math.sin(P)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function A(T){return T.initialize&&T.initialize(e,v),T}return x(),t={tick:b,restart:function(){return h.restart(y),t},stop:function(){return h.stop(),t},nodes:function(T){return arguments.length?(e=T,x(),d.forEach(A),t):e},alpha:function(T){return arguments.length?(r=+T,t):r},alphaMin:function(T){return arguments.length?(o=+T,t):o},alphaDecay:function(T){return arguments.length?(s=+T,t):+s},alphaTarget:function(T){return arguments.length?(c=+T,t):c},velocityDecay:function(T){return arguments.length?(f=1-T,t):1-f},randomSource:function(T){return arguments.length?(v=T,d.forEach(A),t):v},force:function(T,E){return arguments.length>1?(E==null?d.delete(T):d.set(T,A(E)),t):d.get(T)},find:function(T,E,L){var M=0,P=e.length,N,q,W,X,ie;for(L==null?L=1/0:L*=L,M=0;M<P;++M)X=e[M],N=T-X.x,q=E-X.y,W=N*N+q*q,W<L&&(ie=X,L=W);return ie},on:function(T,E){return arguments.length>1?(p.on(T,E),t):p.on(T)}}}function jge(){var e,t,r,o,s=Tn(-30),c,f=1,d=1/0,h=.81;function p(x){var A,T=e.length,E=op(e,qge,Bge).visitAfter(y);for(o=x,A=0;A<T;++A)t=e[A],E.visit(b)}function v(){if(e){var x,A=e.length,T;for(c=new Array(A),x=0;x<A;++x)T=e[x],c[T.index]=+s(T,x,e)}}function y(x){var A=0,T,E,L=0,M,P,N;if(x.length){for(M=P=N=0;N<4;++N)(T=x[N])&&(E=Math.abs(T.value))&&(A+=T.value,L+=E,M+=E*T.x,P+=E*T.y);x.x=M/L,x.y=P/L}else{T=x,T.x=T.data.x,T.y=T.data.y;do A+=c[T.data.index];while(T=T.next)}x.value=A}function b(x,A,T,E){if(!x.value)return!0;var L=x.x-t.x,M=x.y-t.y,P=E-A,N=L*L+M*M;if(P*P/h<N)return N<d&&(L===0&&(L=Vi(r),N+=L*L),M===0&&(M=Vi(r),N+=M*M),N<f&&(N=Math.sqrt(f*N)),t.vx+=L*x.value*o/N,t.vy+=M*x.value*o/N),!0;if(x.length||N>=d)return;(x.data!==t||x.next)&&(L===0&&(L=Vi(r),N+=L*L),M===0&&(M=Vi(r),N+=M*M),N<f&&(N=Math.sqrt(f*N)));do x.data!==t&&(P=c[x.data.index]*o/N,t.vx+=L*P,t.vy+=M*P);while(x=x.next)}return p.initialize=function(x,A){e=x,r=A,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Tn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function Gge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}function Kge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}var Xge=Object.defineProperty,Yge=(e,t,r)=>t in e?Xge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t,r)=>Yge(e,typeof t!="symbol"?t+"":t,r);function Zge(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function T0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function ji(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=ji.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:T0(t[o])&&T0(r[o])?t[o]=ji(t[o],r[o]):t[o]=r[o])}),t},{})}const _1={mergeArrays:!0};ji.options=_1;ji.withOptions=(e,...t)=>{ji.options={mergeArrays:!0,...e};const r=ji(...t);return ji.options=_1,r};function Jge(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Qge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function S1(e){e.preventDefault(),e.stopPropagation()}function k1(e){return typeof e=="number"}function no(e,t){return k1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function eve(e){return`${e.source.id}-${e.target.id}`}function C1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function tve(e){return`url(#${C1(e.color)})`}function nve(e){return{size:e,padding:(t,r)=>no(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const T1={Arrow:e=>nve(e)},rve=(e,t,r)=>[t/2,r/2],E1=(e,t,r)=>[E0(0,t),E0(0,r)];function E0(e,t){return Math.random()*(t-e)+e}function ive(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?E1(r,o,s):[c,f]}}const Qd={Centered:rve,Randomized:E1,Stable:ive};function ove(){return{autoResize:!1,callbacks:{},hooks:{},initial:Qge(),nodeRadius:16,marker:T1.Arrow(4),modifiers:{},positionInitializer:Qd.Centered,simulation:{alphas:Zge(),forces:Jge()},zoom:{initial:1,min:.1,max:2}}}function sve(e={}){return ji.withOptions({mergeArrays:!1},ove(),e)}function lve({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>S1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,ip.translate(c,f).scale(d)),p.append("g")}function ave({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function cve({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=The().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Dn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Dn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function uve({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:fve({nodes:d,links:c},r)}function fve(e,t){const r=[...dve(e,t),...hve(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function dve(e,t){return L1(e,t,(r,o)=>r.target.id===o.id)}function hve(e,t){return L1(e,t,(r,o)=>r.source.id===o.id)}function L1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function eh(e){return e.x??0}function th(e){return e.y??0}function lp({source:e,target:t}){const r=new Sn(eh(e),th(e)),o=new Sn(eh(t),th(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function A1({center:e,node:t}){const r=new Sn(eh(t),th(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new Sn(0,1))),{n:r,c:o}}function M1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=lp({config:e,source:t,target:r}),f=o.add(c.multiply(no(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function pve(e){const{start:t,end:r}=M1(e);return`M${t.x},${t.y}
|
|
49
49
|
L${r.x},${r.y}`}function gve(e){const{start:t,end:r}=M1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function vve({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=lp({config:e,source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(no(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(no(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),y=1.2*c;return`M${p.x},${p.y}
|
|
50
50
|
A${y},${y},0,0,1,${v.x},${v.y}`}function mve({center:e,config:t,node:r}){const{n:o,c:s}=A1({center:e,config:t,node:r}),c=no(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
51
|
-
A${c},${c},0,1,0,${v.x},${v.y}`}function yve({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=lp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function bve({center:e,config:t,node:r}){const{n:o,c:s}=A1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*no(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ts={line:{labelTransform:gve,path:pve},arc:{labelTransform:yve,path:vve},reflexive:{labelTransform:bve,path:mve}};function wve(e){return e.append("g").classed("links",!0).selectAll("path")}function xve({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>eve(c)).join(c=>{var f,d,h,p;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",x=>tve(x)).style("stroke",x=>x.color);(d=(f=e.modifiers).link)==null||d.call(f,y);const b=v.append("text").classed("link__label",!0).style("fill",x=>x.label?x.label.color:null).style("font-size",x=>x.label?x.label.fontSize:null).text(x=>x.label?x.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function _ve(e){Sve(e),kve(e)}function Sve({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Ts.reflexive.path({config:t,node:s.source,center:e}):N1(r,s.source,s.target)?Ts.arc.path({config:t,source:s.source,target:s.target}):Ts.line.path({config:t,source:s.source,target:s.target}))}function kve({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Ts.reflexive.labelTransform({config:e,node:s.source,center:t}):N1(r,s.source,s.target)?Ts.arc.labelTransform({config:e,source:s.source,target:s.target}):Ts.line.labelTransform({config:e,source:s.source,target:s.target}))}function N1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Cve(e){return e.append("defs").selectAll("marker")}function Tve({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Eve(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>C1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Lve(e.marker.path)),s})}function Eve(e){return[...new Set(e.links.map(t=>t.color))]}function Lve(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ave(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Mve({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,y,b;const x=h.append("g");t!==void 0&&x.call(t);const A=x.append("circle").classed("node",!0).attr("r",E=>no(e,E)).on("contextmenu",(E,L)=>{S1(E),o(L)}).on("pointerdown",(E,L)=>$ve(E,L,s??o)).style("fill",E=>E.color);(v=(p=e.modifiers).node)==null||v.call(p,A);const T=x.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(b=(y=e.modifiers).nodeLabel)==null||b.call(y,T),x});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Nve=500;function $ve(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Nve){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Pve(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Ove({center:e,config:t,graph:r,onTick:o}){var s,c;const f=Vge(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const y=d.strength;f.force("x",Gge(()=>e().x).strength(y)).force("y",Kge(()=>e().y).strength(y))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",jge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Rge().radius(y=>p.radiusMultiplier*no(t,y)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",zge(r.links).id(y=>y.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function Rve({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=vge().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class Dve{constructor(t,r,o){if(Dt(this,"nodeTypes"),Dt(this,"_nodeTypeFilter"),Dt(this,"_includeUnlinked",!0),Dt(this,"_linkFilter",()=>!0),Dt(this,"_showLinkLabels",!0),Dt(this,"_showNodeLabels",!0),Dt(this,"filteredGraph"),Dt(this,"width",0),Dt(this,"height",0),Dt(this,"simulation"),Dt(this,"canvas"),Dt(this,"linkSelection"),Dt(this,"nodeSelection"),Dt(this,"markerSelection"),Dt(this,"zoom"),Dt(this,"drag"),Dt(this,"xOffset",0),Dt(this,"yOffset",0),Dt(this,"scale"),Dt(this,"focusedNode"),Dt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Ife(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Sn.of([this.width,this.height]).divide(2).subtract(Sn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(k1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Tve({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=xve({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Mve({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Ove({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Rve({config:this.config,canvasContainer:()=>Dn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=lve({applyZoom:this.scale!==1,container:Dn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=wve(this.canvas),this.nodeSelection=Ave(this.canvas),this.markerSelection=Cve(this.canvas),this.drag=cve({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Pve(this.nodeSelection),_ve({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Dn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){ave({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=uve({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function L0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function zve(e){return{...e}}function $1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Ive={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Fve={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Hve=["id","checked","onChange"],qve=["for"],Bve=Y("div",{"flex-auto":""},null,-1),Wve=ft({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=CS(t),o=Be(),s=Be(!1),c=Be(),f=Be();Th(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Hs(()=>{p()}),_u(()=>{var b;(b=f.value)==null||b.shutdown()}),It(r,p);function d(b,x){var A;(A=f.value)==null||A.filterNodesByType(x,b)}function h(b){c.value=b,s.value=!0}function p(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Dve(o.value,r.value,sve({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:x,newWidth:A})=>x===0&&A===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:T1.Arrow(2),modifiers:{node:y},positionInitializer:r.value.nodes.length>1?Qd.Randomized:Qd.Centered,zoom:{min:.5,max:2}})))}const v=b=>b.button===0;function y(b){if(Ir)return;let x=0,A=0,T=0;b.on("pointerdown",(E,L)=>{L.type!=="external"&&(!L.x||!L.y||!v(E)||(x=L.x,A=L.y,T=Date.now()))}).on("pointerup",(E,L)=>{if(L.type==="external"||!L.x||!L.y||!v(E)||Date.now()-T>500)return;const M=L.x-x,P=L.y-A;M**2+P**2<100&&h(L.id)})}return(b,x)=>{var M;const A=gi,T=zfe,E=jw,L=Ur("tooltip");return oe(),me("div",Ive,[Y("div",null,[Y("div",Fve,[(oe(!0),me(ut,null,ui((M=z(f))==null?void 0:M.nodeTypes.sort(),P=>{var N;return oe(),me("div",{key:P,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${P}`,type:"checkbox",checked:(N=z(f))==null?void 0:N.nodeTypeFilter.includes(P),onChange:q=>d(P,q.target.checked)},null,40,Hve),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${P}`,"border-b-2":"",style:Kt({"border-color":`var(--color-node-${P})`})},qe(P)+" Modules",13,qve)])}),128)),Bve,Y("div",null,[vt(Pe(A,{icon:"i-carbon-reset",onClick:p},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(E,{modelValue:z(s),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(s)?s.value=P:null),direction:"right"},{default:st(()=>[z(c)?(oe(),ot(Ry,{key:0},{default:st(()=>[Pe(T,{id:z(c),"project-name":b.projectName,onClose:x[0]||(x[0]=P=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),Uve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Vve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},jve={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Gve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Kve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Xve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},P1=ft({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Ur("tooltip");return t.state==="pass"?(oe(),me("div",Uve)):t.failedSnapshot?vt((oe(),me("div",Vve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",jve)):t.mode==="todo"?vt((oe(),me("div",Gve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?vt((oe(),me("div",Kve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",Xve))}}});function Yve(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:y,candidate:b}=c;t.set(y,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Zve(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function Jve(e){const t=e.map(o=>Zve(o)),r=Yve(t);return t.map(({raw:o,id:s})=>$1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function Qve(e,t){return $1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function eme(e,t){if(!e)return L0({});const r=Jve(e.externalized),o=e.inlined.map(d=>Qve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],y=c[p];if(!(v===void 0||y===void 0))return zve({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return L0({nodes:s,links:f})}const tme={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},nme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},ime={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},ome={class:"flex text-lg"},sme={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},lme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ame={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},cme={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},ume=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),fme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),dme={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},hme=["flex-1"],pme=ft({__name:"FileDetails",setup(e){const t=Be({nodes:[],links:[]}),r=Be(!1),o=Be(!1),s=Be(!1),c=Be(void 0),f=Ce(()=>{const E=Gt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),d=Ce(()=>Gt.value&&Hh(Gt.value)),h=Ce(()=>{var E,L;return!!((L=(E=Gt.value)==null?void 0:E.meta)!=null&&L.typecheck)});function p(){var L;const E=(L=Gt.value)==null?void 0:L.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function v(E){E==="graph"&&(o.value=!0),Un.value=E}const y=Ce(()=>{var E;return((E=Uw.value)==null?void 0:E.reduce((L,{size:M})=>L+M,0))??0});function b(E){r.value=E}async function x(){var E;if(!(s.value||((E=f.value)==null?void 0:E.filepath)===c.value)){s.value=!0,await ln();try{const L=f.value;if(!L)return;(!c.value||L.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=eme(await bt.rpc.getModuleGraph(L.projectName,L.filepath,!!Ro),L.filepath),c.value=L.filepath),v("graph")}finally{await new Promise(L=>setTimeout(L,100)),s.value=!1}}}bw(()=>[f.value,Un.value],([,E])=>{E==="graph"&&x()},{debounce:100,immediate:!0});const A=Ce(()=>{var E;return Dw((E=Gt.value)==null?void 0:E.file.projectName)}),T=Ce(()=>{switch(A.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(E,L)=>{var ee,j,te,Z;const M=P1,P=gi,N=Wve,q=Tfe,W=mfe,X=ufe,ie=Ur("tooltip");return z(Gt)?(oe(),me("div",tme,[Y("div",null,[Y("div",nme,[Pe(M,{state:(ee=z(Gt).result)==null?void 0:ee.state,mode:z(Gt).mode,"failed-snapshot":z(d)},null,8,["state","mode","failed-snapshot"]),z(h)?vt((oe(),me("div",rme,null,512)),[[ie,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),(j=z(Gt))!=null&&j.file.projectName?(oe(),me("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:Kt({backgroundColor:z(A),color:z(T)})},qe(z(Gt).file.projectName),5)):Ye("",!0),Y("div",ime,qe((te=z(Gt))==null?void 0:te.name),1),Y("div",ome,[z(Ir)?Ye("",!0):vt((oe(),ot(P,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((Z=z(Gt))!=null&&Z.filepath),onClick:p},null,8,["disabled"])),[[ie,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",sme,[Y("button",{"tab-button":"",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==null}]),"data-testid":"btn-report",onClick:L[0]||(L[0]=H=>v(null))},[lme,pt(" Report ")],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="graph"}]),onClick:L[1]||(L[1]=H=>v("graph"))},[z(s)?(oe(),me("span",ame)):(oe(),me("span",cme)),pt(" Module Graph ")],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="editor"}]),onClick:L[2]||(L[2]=H=>v("editor"))},[ume,pt(" "+qe(z(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="console",op20:z(Un)!=="console"&&z(y)===0}]),onClick:L[3]||(L[3]=H=>v("console"))},[fme,pt(" Console ("+qe(z(y))+") ",1)],2)])]),Y("div",dme,[z(o)?(oe(),me("div",{key:0,"flex-1":z(Un)==="graph"&&""},[vt(Pe(N,{graph:z(t),"data-testid":"graph","project-name":z(Gt).file.projectName||""},null,8,["graph","project-name"]),[[Ui,z(Un)==="graph"&&!z(s)]])],8,hme)):Ye("",!0),z(Un)==="editor"?(oe(),ot(q,{key:z(Gt).filepath,file:z(Gt),"data-testid":"editor",onDraft:b},null,8,["file"])):z(Un)==="console"?(oe(),ot(W,{key:2,file:z(Gt),"data-testid":"console"},null,8,["file"])):z(Un)?Ye("",!0):(oe(),ot(X,{key:3,file:z(Gt),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),gme={h:"full",flex:"~ col"},vme=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon:folder-details-reference"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),mme={"flex-auto":"","py-1":"","bg-white":""},yme=["src"],bme=ft({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",gme,[vme,Y("div",mme,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,yme)])]))}}),wme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},xme={"font-bold":""},_me={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Sme=["font-bold"],kme={text:"red500/70"},Cme=Y("br",null,null,-1),Tme={key:1,text:"sm","mb-2":""},Eme={"font-bold":""},Lme={key:2,text:"sm","mb-2":""},Ame={"font-bold":""},Mme=Y("br",null,null,-1),Nme=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),$me={key:3,text:"sm","font-thin":""},Pme=Y("br",null,null,-1),Ome=Y("ul",null,[Y("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Y("li",null," Wait for promises to resolve using the await keyword. ")],-1),Rme=ft({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ut,null,[Y("h4",wme,[Y("span",xme,[pt(qe(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ut,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+qe(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",_me,[(oe(!0),me(ut,null,ui(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+qe(s.method)+" "+qe(s.file)+":",1),Y("span",kme,qe(s.line)+":"+qe(s.column),1),Cme],8,Sme))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",Tme,[pt(" This error originated in "),Y("span",Eme,qe(t.error.VITEST_TEST_PATH),1),pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Ye("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",Lme,[pt(" The latest test that might've caused the error is "),Y("span",Ame,qe(t.error.VITEST_TEST_NAME),1),pt(". It might mean one of the following:"),Mme,Nme])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",$me,[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Pme,Ome])):Ye("",!0)],64)}}}),Ln=e=>(Is("data-v-0178ddee"),e=e(),Fs(),e),Dme={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},zme=Ln(()=>Y("div",{"i-carbon-document":""},null,-1)),Ime=Ln(()=>Y("div",null,"Files",-1)),Fme={class:"number","data-testid":"num-files"},Hme=Ln(()=>Y("div",{"i-carbon-checkmark":""},null,-1)),qme=Ln(()=>Y("div",null,"Pass",-1)),Bme={class:"number"},Wme=Ln(()=>Y("div",{"i-carbon-close":""},null,-1)),Ume=Ln(()=>Y("div",null," Fail ",-1)),Vme={class:"number","text-red5":""},jme=Ln(()=>Y("div",{"i-carbon-compare":""},null,-1)),Gme=Ln(()=>Y("div",null," Snapshot Fail ",-1)),Kme={class:"number","text-red5":""},Xme=Ln(()=>Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Yme=Ln(()=>Y("div",null," Errors ",-1)),Zme={class:"number","text-red5":""},Jme=Ln(()=>Y("div",{"i-carbon-timer":""},null,-1)),Qme=Ln(()=>Y("div",null,"Time",-1)),e0e={class:"number","data-testid":"run-time"},t0e={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},n0e=Ln(()=>Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),r0e={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},i0e=Ln(()=>Y("br",null,null,-1)),o0e={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},s0e=Ln(()=>Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),l0e=ft({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Rme;return oe(),me(ut,null,[Y("div",Dme,[zme,Ime,Y("div",Fme,qe(z(Te).summary.files),1),z(Te).summary.filesSuccess?(oe(),me(ut,{key:0},[Hme,qme,Y("div",Bme,qe(z(Te).summary.filesSuccess),1)],64)):Ye("",!0),z(Te).summary.filesFailed?(oe(),me(ut,{key:1},[Wme,Ume,Y("div",Vme,qe(z(Te).summary.filesFailed),1)],64)):Ye("",!0),z(Te).summary.filesSnapshotFailed?(oe(),me(ut,{key:2},[jme,Gme,Y("div",Kme,qe(z(Te).summary.filesSnapshotFailed),1)],64)):Ye("",!0),z(Hi).length?(oe(),me(ut,{key:3},[Xme,Yme,Y("div",Zme,qe(z(Hi).length),1)],64)):Ye("",!0),Jme,Qme,Y("div",e0e,qe(z(Te).summary.time),1)]),z(Hi).length?(oe(),me("div",t0e,[n0e,Y("p",r0e,[pt(" Vitest caught "+qe(z(Hi).length)+" error"+qe(z(Hi).length>1?"s":"")+" during the test run.",1),i0e,pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),Y("details",o0e,[s0e,(oe(!0),me(ut,null,ui(z(Hi),(s,c)=>(oe(),ot(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),a0e=Vr(l0e,[["__scopeId","data-v-0178ddee"]]),c0e={"p-2":"","text-center":"",flex:""},u0e={"text-4xl":"","min-w-2em":""},f0e={"text-md":""},d0e=ft({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",c0e,[Y("div",null,[Y("div",u0e,[hn(t.$slots,"body")]),Y("div",f0e,[hn(t.$slots,"header")])])]))}}),h0e={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},p0e=ft({__name:"TestsEntry",setup(e){return(t,r)=>{const o=d0e;return oe(),me("div",h0e,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:st(()=>[pt(" Pass ")]),body:st(()=>[pt(qe(z(Te).summary.testsSuccess),1)]),_:1}),Pe(o,{class:lt({"text-red5":z(Te).summary.testsFailed,op50:!z(Te).summary.testsFailed}),"data-testid":"fail-entry"},{header:st(()=>[pt(" Fail ")]),body:st(()=>[pt(qe(z(Te).summary.testsFailed),1)]),_:1},8,["class"]),z(Te).summary.testsSkipped?(oe(),ot(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:st(()=>[pt(" Skip ")]),body:st(()=>[pt(qe(z(Te).summary.testsSkipped),1)]),_:1})):Ye("",!0),z(Te).summary.testsTodo?(oe(),ot(o,{key:1,op50:"","data-testid":"todo-entry"},{header:st(()=>[pt(" Todo ")]),body:st(()=>[pt(qe(z(Te).summary.testsTodo),1)]),_:1})):Ye("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:st(()=>[pt(" Total ")]),body:st(()=>[pt(qe(z(Te).summary.totalTests),1)]),_:1})])}}}),g0e={},v0e={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},m0e={"aria-labelledby":"tests",m:"y-4 x-2"};function y0e(e,t){const r=p0e,o=a0e;return oe(),me("div",v0e,[Y("section",m0e,[Pe(r)]),Pe(o)])}const b0e=Vr(g0e,[["render",y0e]]),w0e={},x0e={h:"full",flex:"~ col"},_0e=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-dashboard"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),S0e={class:"scrolls","flex-auto":"","py-1":""};function k0e(e,t){const r=b0e;return oe(),me("div",x0e,[_0e,Y("div",S0e,[Pe(r)])])}const C0e=Vr(w0e,[["render",k0e]]),T0e=["open"],E0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),L0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),A0e=ft({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Be(!0);return(r,o)=>(oe(),me("div",{open:z(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:lt(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[E0e,hn(r.$slots,"summary",{open:z(t)}),L0e],2),hn(r.$slots,"default")],40,T0e))}}),M0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},N0e={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",M0e,[Y("span",{block:"",class:lt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},ap=e=>(Is("data-v-6e6c7df8"),e=e(),Fs(),e),$0e=["aria-label","data-current"],P0e={key:1,"w-4":""},O0e={flex:"","items-end":"","gap-2":"","overflow-hidden":""},R0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},D0e={"text-sm":"",truncate:"","font-light":""},z0e=["text","innerHTML"],I0e={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},F0e={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},H0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},q0e=ap(()=>Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),B0e=ap(()=>Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),W0e=ap(()=>Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1)),U0e={key:1},V0e=ft({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Ce(()=>bt.state.idMap.get(e.taskId)),r=Ce(()=>{if(Ir)return!1;const T=t.value;return T&&Hh(T)});function o(){e.expandable&&(e.opened?Te.collapseNode(e.taskId):Te.expandNode(e.taskId))}async function s(T){var E;(E=e.onItemClick)==null||E.call(e,T),ps.value&&(nu.value=!0,await ln()),await Yh([T.file])}function c(T){return bt.rpc.updateSnapshot(T.file)}const f=Ce(()=>e.indent<=0?[]:Array.from({length:e.indent},(T,E)=>`${e.taskId}-${E}`)),d=Ce(()=>{const T=f.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${T.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Ce(()=>Ow(e.name)),p=Ce(()=>{const T=Gce.value,E=h.value;return T?E.replace(T,L=>`<span class="highlight">${L}</span>`):E}),v=Ce(()=>e.type!=="file"&&e.disableTaskLocation),y=Ce(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),b=Ce(()=>v.value?"color-red5 dark:color-#f43f5e":null);function x(){var E;const T=t.value;e.type==="file"?(E=e.onItemClick)==null||E.call(e,T):kfe(T)}const A=Ce(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,E)=>{const L=P1,M=N0e,P=gi,N=Ur("tooltip");return z(t)?(oe(),me("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Kt(z(d)),"aria-label":T.name,"data-current":T.current,onClick:E[2]||(E[2]=q=>o())},[T.indent>0?(oe(!0),me(ut,{key:0},ui(z(f),q=>(oe(),me("div",{key:q,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),T.type==="file"||T.type==="suite"?(oe(),me("div",P0e,[Y("div",{class:lt(T.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Pe(L,{state:T.state,mode:z(t).mode,"failed-snapshot":z(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",O0e,[T.type==="file"&&T.typecheck?vt((oe(),me("div",R0e,null,512)),[[N,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),Y("span",D0e,[T.type==="file"&&T.projectName?(oe(),me("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:Kt({backgroundColor:T.projectNameColor,color:z(A)})},qe(T.projectName),5)):Ye("",!0),Y("span",{text:T.state==="fail"?"red-500":"",innerHTML:z(p)},null,8,z0e)]),typeof T.duration=="number"?(oe(),me("span",I0e,qe(T.duration>0?T.duration:"< 1")+"ms ",1)):Ye("",!0)]),Y("div",F0e,[!z(Ir)&&z(r)?vt((oe(),ot(M,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Tc(q=>c(z(t)),["prevent","stop"]))},null,512)),[[N,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Pe(z(Pb),{placement:"bottom",class:lt(["w-1.4em h-1.4em op100 rounded flex",z(b)])},{popper:st(()=>[z(v)?(oe(),me("div",H0e,[q0e,Y("div",null,[pt(qe(z(y))+": this feature is not available, you have disabled ",1),B0e,pt(" in your configuration file.")]),W0e])):(oe(),me("div",U0e,qe(z(y)),1))]),default:st(()=>[Pe(P,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Tc(x,["prevent","stop"])})]),_:1},8,["class"]),z(Ir)?Ye("",!0):vt((oe(),ot(P,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",disabled:T.type!=="file",onClick:E[1]||(E[1]=Tc(q=>s(z(t)),["prevent","stop"]))},null,8,["disabled"])),[[N,"Run current test",void 0,{bottom:!0}]])])],12,$0e)):Ye("",!0)}}}),j0e=Vr(V0e,[["__scopeId","data-v-6e6c7df8"]]),G0e={"flex-1":"","ms-2":"","select-none":""},K0e=ft({__name:"FilterStatus",props:qc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue");return(r,o)=>(oe(),me("label",ai({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Tc(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:lt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),vt(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[pC,t.value]]),Y("span",G0e,qe(r.label),1)],16))}});function X0e(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function nh(){nh.init||(nh.init=!0,Rc=X0e()!==-1)}var Uu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nh(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},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&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Y0e=uy();Is("data-v-b329ee4c");const Z0e={class:"resize-observer",tabindex:"-1"};Fs();const J0e=Y0e((e,t,r,o,s,c)=>(oe(),ot("div",Z0e)));Uu.render=J0e;Uu.__scopeId="data-v-b329ee4c";Uu.__file="src/components/ResizeObserver.vue";function Dc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dc=function(t){return typeof t}:Dc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function Q0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eye(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tye(e,t,r){return t&&eye(e.prototype,t),e}function A0(e){return nye(e)||rye(e)||iye(e)||oye()}function nye(e){if(Array.isArray(e))return rh(e)}function rye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function iye(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function oye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
52
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function lye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),y=1;y<p;y++)v[y-1]=arguments[y];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(A0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(A0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function O1(e,t){if(e===t)return!0;if(Dc(e)==="object"){for(var r in e)if(!O1(e[r],t[r]))return!1;return!0}return!1}var aye=function(){function e(t,r,o){Q0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return tye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=sye(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=lye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(y){return y.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),ln(function(){s.observer&&s.observer.observe(s.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}}]),e}();function R1(e,t,r){var o=t.value;if(o)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 s=new aye(e,o,r);e._vue_visibilityState=s}}function cye(e,t,r){var o=t.value,s=t.oldValue;if(!O1(o,s)){var c=e._vue_visibilityState;if(!o){D1(e);return}c?c.createObserver(o,r):R1(e,{value:o},r)}}function D1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var uye={beforeMount:R1,updated:cye,unmounted:D1},fye={itemsLimit:1e3},dye=/(auto|scroll)/;function z1(e,t){return e.parentNode===null?t:z1(e.parentNode,t.concat([e]))}var ud=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},hye=function(t){return ud(t,"overflow")+ud(t,"overflow-y")+ud(t,"overflow-x")},pye=function(t){return dye.test(hye(t))};function M0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=z1(e.parentNode,[]),r=0;r<t.length;r+=1)if(pye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}var gye={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function vye(){return this.items.length&&ih(this.items[0])!=="object"}var oh=!1;if(typeof window<"u"){oh=!1;try{var mye=Object.defineProperty({},"passive",{get:function(){oh=!0}});window.addEventListener("test",null,mye)}catch{}}let yye=0;var cp={name:"RecycleScroller",components:{ResizeObserver:Uu},directives:{ObserveVisibility:uye},props:{...gye,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:vye,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=mh({id:yye++,index:t,used:!0,key:o,type:s}),f=gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,y=this.$_views,b=this.$_unusedViews,x=this.pool,A=this.itemIndexByKey;let T,E,L,M,P;if(!p)T=E=M=P=L=0;else if(this.$_prerender)T=M=0,E=P=Math.min(this.prerender,h.length),L=null;else{const j=this.getScroll();if(t){let H=j.start-this.$_lastUpdateScrollPosition;if(H<0&&(H=-H),r===null&&H<c||H<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const te=this.buffer;j.start-=te,j.end+=te;let Z=0;if(this.$refs.before&&(Z=this.$refs.before.scrollHeight,j.start-=Z),this.$refs.after){const H=this.$refs.after.scrollHeight;j.end+=H}if(r===null){let H,I=0,k=p-1,B=~~(p/2),U;do U=B,H=v[B].accumulator,H<j.start?I=B:B<p-1&&v[B+1].accumulator>j.start&&(k=B),B=~~((I+k)/2);while(B!==U);for(B<0&&(B=0),T=B,L=v[p-1].accumulator,E=B;E<p&&v[E].accumulator<j.end;E++);for(E===-1?E=h.length-1:(E++,E>p&&(E=p)),M=T;M<p&&Z+v[M].accumulator<j.start;M++);for(P=M;P<p&&Z+v[P].accumulator<j.end;P++);}else{T=~~(j.start/r*o);const H=T%o;T-=H,E=Math.ceil(j.end/r*o),M=Math.max(0,Math.floor((j.start-Z)/r*o)),P=Math.floor((j.end-Z)/r*o),T<0&&(T=0),E>p&&(E=p),M<0&&(M=0),P>p&&(P=p),L=Math.ceil(p/o)*r}}E-T>fye.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let N;const q=T<=this.$_endIndex&&E>=this.$_startIndex;if(q)for(let j=0,te=x.length;j<te;j++)N=x[j],N.nr.used&&(e&&(N.nr.index=A[N.item[d]]),(N.nr.index==null||N.nr.index<T||N.nr.index>=E)&&this.unuseView(N));const W=q?null:new Map;let X,ie,ee;for(let j=T;j<E;j++){X=h[j];const te=d?X[d]:X;if(te==null)throw new Error(`Key is ${te} on item (keyField is '${d}')`);if(N=y.get(te),!r&&!v[j].size){N&&this.unuseView(N);continue}ie=X[f];let Z=b.get(ie),H=!1;if(!N)q?Z&&Z.length?N=Z.pop():N=this.addView(x,j,X,te,ie):(ee=W.get(ie)||0,(!Z||ee>=Z.length)&&(N=this.addView(x,j,X,te,ie),this.unuseView(N,!0),Z=b.get(ie)),N=Z[ee],W.set(ie,ee+1)),y.delete(N.nr.key),N.nr.used=!0,N.nr.index=j,N.nr.key=te,N.nr.type=ie,y.set(te,N),H=!0;else if(!N.nr.used&&(N.nr.used=!0,H=!0,Z)){const I=Z.indexOf(N);I!==-1&&Z.splice(I,1)}N.item=X,H&&(j===h.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),r===null?(N.position=v[j-1].accumulator,N.offset=0):(N.position=Math.floor(j/o)*r,N.offset=j%o*s)}return this.$_startIndex=T,this.$_endIndex=E,this.emitUpdate&&this.$emit("update",T,E,M,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:q}},getListenerTarget(){let e=M0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,oh?{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(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=M0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},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((e,t)=>e.nr.index-t.nr.index)}}};const bye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},wye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function xye(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Ur("observe-visibility");return vt((oe(),me("div",{class:lt(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(oe(),me("div",bye,[hn(e.$slots,"before")],512)):Ye("v-if",!0),(oe(),ot(xv(r.listTag),{ref:"wrapper",style:Kt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:lt(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:st(()=>[(oe(!0),me(ut,null,ui(s.pool,h=>(oe(),ot(xv(r.itemTag),ai({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},GS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:st(()=>[hn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),hn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",wye,[hn(e.$slots,"after")],512)):Ye("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}cp.render=xye;cp.__file="src/components/RecycleScroller.vue";function _ye(e){const t=Ce(()=>Bd.value?!1:!et.onlyTests),r=Ce(()=>On.value===""),o=Be(On.value);bw(On,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;On.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,y,b){Rs.value&&(on.value.search=(h==null?void 0:h.trim())??"",on.value.failed=p,on.value.success=v,on.value.skipped=y,on.value.onlyTests=b)}return It(()=>[o.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,v,y,b])=>{d(h,p,v,y,b),Te.filterNodes()},{flush:"post"}),It(()=>Cr.value.length,h=>{h&&(on.value.expandAll=void 0)},{flush:"post"}),{initialized:Rs,filter:et,search:On,disableFilter:t,isFiltered:Rw,isFilteredByStatus:Bd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Iu,testsTotal:Kce,uiEntries:Hn}}const Sye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},kye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Cye=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Tye=["op"],Eye=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1),Lye=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1),Aye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Mye={"text-red5":""},Nye=Y("span",null,"/",-1),$ye={"text-yellow5":""},Pye={"text-green5":""},Oye=Y("span",null,"/",-1),Rye={class:"text-purple5:50"},Dye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},zye=Y("div",{op30:""}," No matched test ",-1),Iye=["disabled"],Fye=["disabled"],Hye={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},qye=Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Bye=Y("div",{op30:""}," Loading... ",-1),Wye=[qye,Bye],Uye=ft({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Ce(()=>Hu.value.includeTaskLocation),s=Be(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:y,clearAll:b,clearSearch:x,clearFilter:A,filteredFiles:T,testsTotal:E,uiEntries:L}=_ye(s),M=Be("grid-cols-2"),P=Be("grid-col-span-2"),N=Be(),{width:q}=Vh();return It(()=>q.value*(dn.navigation/100),W=>{W<420?(M.value="grid-cols-2",P.value="grid-col-span-2"):(M.value="grid-cols-4",P.value="grid-col-span-4")}),(W,X)=>{const ie=gi,ee=K0e,j=j0e,te=A0e,Z=Ur("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:N,h:"full",flex:"~ col"},[Y("div",null,[Y("div",Sye,[hn(W.$slots,"header",{filteredFiles:z(p)||z(v)?z(T):void 0})]),Y("div",kye,[Cye,vt(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":X[0]||(X[0]=H=>Pt(d)?d.value=H:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:z(d).length?"100":"50",onKeydown:[X[1]||(X[1]=Td(H=>z(x)(!1),["esc"])),X[2]||(X[2]=Td(H=>r("run",z(p)||z(v)?z(T):void 0),["enter"]))]},null,40,Tye),[[hC,z(d)]]),vt(Pe(ie,{disabled:z(y),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:X[3]||(X[3]=H=>z(x)(!0))},null,8,["disabled"]),[[Z,"Clear search",void 0,{bottom:!0}]])]),Y("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:lt(z(M))},[Y("div",{class:lt(z(P)),flex:"~ gap-2 items-center"},[Eye,Lye,vt(Pe(ie,{disabled:z(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:X[4]||(X[4]=H=>z(A)(!1))},null,8,["disabled"]),[[Z,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(ee,{modelValue:z(f).failed,"onUpdate:modelValue":X[5]||(X[5]=H=>z(f).failed=H),label:"Fail"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).success,"onUpdate:modelValue":X[6]||(X[6]=H=>z(f).success=H),label:"Pass"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).skipped,"onUpdate:modelValue":X[7]||(X[7]=H=>z(f).skipped=H),label:"Skip"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).onlyTests,"onUpdate:modelValue":X[8]||(X[8]=H=>z(f).onlyTests=H),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:X[12]||(X[12]=(...H)=>z(Em)&&z(Em)(...H))},[Pe(te,null,jS({default:st(()=>[(z(p)||z(v))&&z(L).length===0?(oe(),me(ut,{key:0},[z(c)?(oe(),me("div",Dye,[zye,Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(z(y)?null:"hover:op100"),disabled:z(y),onClickPassive:X[9]||(X[9]=H=>z(x)(!0))}," Clear Search ",42,Iye),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(z(h)?null:"hover:op100"),disabled:z(h),onClickPassive:X[10]||(X[10]=H=>z(A)(!0))}," Clear Filter ",42,Fye),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:X[11]||(X[11]=(...H)=>z(b)&&z(b)(...H))}," Clear All ",32)])):(oe(),me("div",Hye,Wye))],64)):(oe(),ot(z(cp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:z(L),buffer:100},{default:st(({item:H})=>[Pe(j,{class:lt(["h-28px m-0 p-0",z(eo)===H.id?"bg-active":""]),"task-id":H.id,expandable:H.expandable,type:H.type,current:z(eo)===H.id,indent:H.indent,name:H.name,typecheck:H.typecheck===!0,"project-name":H.projectName??"","project-name-color":H.projectNameColor??"",state:H.state,duration:H.duration,opened:H.expanded,"disable-task-location":!z(o),"on-item-click":W.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[z(c)?{name:"summary",fn:st(()=>[Y("div",Aye,[Y("span",Mye," FAIL ("+qe(z(E).failed)+") ",1),Nye,Y("span",$ye," RUNNING ("+qe(z(E).running)+") ",1),Y("span",Pye," PASS ("+qe(z(E).success)+") ",1),Oye,Y("span",Rye," SKIP ("+qe(z(f).onlyTests?z(E).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Vye=""+new URL("../favicon.svg",import.meta.url).href,jye=Y("img",{"w-6":"","h-6":"",src:Vye,alt:"Vitest logo"},null,-1),Gye=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Kye={class:"flex text-lg"},Xye=Y("div",{class:"i-carbon:folder-off ma"},null,-1),Yye=Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),Zye=ft({__name:"Navigation",setup(e){function t(){return bt.rpc.updateSnapshot()}const r=Ce(()=>ya.value?"light":"dark");async function o(f){ps.value&&(nu.value=!0,await ln(),to.value&&(ru(!0),await ln())),f!=null&&f.length?await Yh(f):await Sue()}function s(){Te.collapseAllNodes()}function c(){Te.expandAllNodes()}return(f,d)=>{const h=gi,p=Uye,v=Ur("tooltip");return oe(),ot(p,{border:"r base","on-item-click":z(Tw),nested:!0,onRun:o},{header:st(({filteredFiles:y})=>[jye,Gye,Y("div",Kye,[vt(Pe(h,{title:"Collapse tests",disabled:!z(Rs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Ui,!z(e0)],[v,"Collapse tests",void 0,{bottom:!0}]]),vt(Pe(h,{disabled:!z(Rs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Ui,z(e0)],[v,"Expand tests",void 0,{bottom:!0}]]),vt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>z(ru)(!0))},null,512),[[Ui,z(Id)&&!z(ps)||!z(Ss)],[v,"Dashboard",void 0,{bottom:!0}]]),z(Id)&&!z(ps)?(oe(),ot(z(Pb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:st(()=>[Yye]),default:st(()=>[Xye]),_:1})):Ye("",!0),z(ps)?vt((oe(),ot(h,{key:1,disabled:z(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>z(wce)())},null,8,["disabled"])),[[Ui,!z(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),z(Te).summary.failedSnapshot&&!z(Ir)?vt((oe(),ot(h,{key:2,icon:"i-carbon:result-old",disabled:!z(Te).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>z(Te).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),z(Ir)?Ye("",!0):vt((oe(),ot(h,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:b=>o(y)},null,8,["disabled","onClick"])),[[v,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),vt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>z(Jue)())},null,512),[[v,`Toggle to ${z(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Jye={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Qye=ft({__name:"ProgressBar",setup(e){const{width:t}=Vh(),r=Ce(()=>Te.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":yce.value?null:"in-progress"),o=Ce(()=>{const d=Te.summary.files;return d>0?t.value*Te.summary.filesSuccess/d:0}),s=Ce(()=>{const d=Te.summary.files;return d>0?t.value*Te.summary.filesFailed/d:0}),c=Ce(()=>Te.summary.files-Te.summary.filesFailed-Te.summary.filesSuccess),f=Ce(()=>{const d=Te.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:lt(z(r))},[Y("div",Jye,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:lt(z(r)),style:Kt(`width: ${z(s)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:lt(z(r)),style:Kt(`left: ${z(s)}px; width: ${z(o)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:lt(z(r)),style:Kt(`left: ${z(o)+z(s)}px; width: ${z(f)}px;`)}," ",6)])],2))}}),ebe=Vr(Qye,[["__scopeId","data-v-38451300"]]),N0={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((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.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(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,c);if(!y)return;({sums:r,panesToResize:f}=y),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.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(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):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 pa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},tbe=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},nbe={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(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function rbe(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Kt(e.style)},[hn(e.$slots,"default")],4)}const wc=tbe(nbe,[["render",rbe]]),ibe={"h-screen":"","w-screen":"",overflow:"hidden"},obe=ft({__name:"index",setup(e){const t=bce(),r=dc(y=>{p(),h(y)},0),o=dc(y=>{y.forEach((b,x)=>{br.value[x]=b.size}),d(y)},0),s=dc(y=>{y.forEach((b,x)=>{Mo.value[x]=b.size}),h(y),v()},0),c=dc(y=>{d(y),p()},0);function f(){const y=window.innerWidth,b=Math.min(y/3,300);br.value[0]=100*b/y,br.value[1]=100-br.value[0],d([{size:br.value[0]},{size:br.value[1]}])}function d(y){dn.navigation=y[0].size,dn.details.size=y[1].size}function h(y){dn.details.browser=y[0].size,dn.details.main=y[1].size}function p(){const y=document.querySelector("#tester-ui");y&&(y.style.pointerEvents="none")}function v(){const y=document.querySelector("#tester-ui");y&&(y.style.pointerEvents="")}return(y,b)=>{const x=ebe,A=Zye,T=C0e,E=bme,L=pme,M=Hue,P=Eue;return oe(),me(ut,null,[Pe(x),Y("div",ibe,[Pe(z(N0),{class:"pt-4px",onResized:z(o),onResize:z(c),onReady:f},{default:st(()=>[Pe(z(wc),{size:z(br)[0]},{default:st(()=>[Pe(A)]),_:1},8,["size"]),Pe(z(wc),{size:z(br)[1]},{default:st(()=>[z(Ro)?(oe(),ot(z(N0),{id:"details-splitpanes",key:"browser-detail",onResize:z(r),onResized:z(s)},{default:st(()=>[Pe(z(wc),{size:z(Mo)[0],"min-size":"10"},{default:st(()=>[b[0]||(Wc(-1),(b[0]=Pe(M)).cacheIndex=0,Wc(1),b[0])]),_:1},8,["size"]),Pe(z(wc),{size:z(Mo)[1]},{default:st(()=>[z(t)?(oe(),ot(T,{key:"summary"})):z(to)?(oe(),ot(E,{key:"coverage",src:z(Qm)},null,8,["src"])):(oe(),ot(L,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),ot(Mh,{key:"ui-detail"},{default:st(()=>[z(t)?(oe(),ot(T,{key:"summary"})):z(to)?(oe(),ot(E,{key:"coverage",src:z(Qm)},null,8,["src"])):(oe(),ot(L,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe(P)],64)}}}),sbe=[{name:"index",path:"/",component:obe,props:!0}],lbe={tooltip:EE};Ob.options.instantMove=!0;Ob.options.distance=10;function abe(){return AT({history:rT(),routes:sbe})}const cbe=[abe],up=Gy(CC);cbe.forEach(e=>{up.use(e())});Object.entries(lbe).forEach(([e,t])=>{up.directive(e,t)});up.mount("#app");
|
|
51
|
+
A${c},${c},0,1,0,${v.x},${v.y}`}function yve({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=lp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function bve({center:e,config:t,node:r}){const{n:o,c:s}=A1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*no(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ts={line:{labelTransform:gve,path:pve},arc:{labelTransform:yve,path:vve},reflexive:{labelTransform:bve,path:mve}};function wve(e){return e.append("g").classed("links",!0).selectAll("path")}function xve({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>eve(c)).join(c=>{var f,d,h,p;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",x=>tve(x)).style("stroke",x=>x.color);(d=(f=e.modifiers).link)==null||d.call(f,y);const b=v.append("text").classed("link__label",!0).style("fill",x=>x.label?x.label.color:null).style("font-size",x=>x.label?x.label.fontSize:null).text(x=>x.label?x.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function _ve(e){Sve(e),kve(e)}function Sve({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Ts.reflexive.path({config:t,node:s.source,center:e}):N1(r,s.source,s.target)?Ts.arc.path({config:t,source:s.source,target:s.target}):Ts.line.path({config:t,source:s.source,target:s.target}))}function kve({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Ts.reflexive.labelTransform({config:e,node:s.source,center:t}):N1(r,s.source,s.target)?Ts.arc.labelTransform({config:e,source:s.source,target:s.target}):Ts.line.labelTransform({config:e,source:s.source,target:s.target}))}function N1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Cve(e){return e.append("defs").selectAll("marker")}function Tve({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Eve(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>C1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Lve(e.marker.path)),s})}function Eve(e){return[...new Set(e.links.map(t=>t.color))]}function Lve(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ave(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Mve({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,y,b;const x=h.append("g");t!==void 0&&x.call(t);const A=x.append("circle").classed("node",!0).attr("r",E=>no(e,E)).on("contextmenu",(E,L)=>{S1(E),o(L)}).on("pointerdown",(E,L)=>$ve(E,L,s??o)).style("fill",E=>E.color);(v=(p=e.modifiers).node)==null||v.call(p,A);const T=x.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.label.text:null);return(b=(y=e.modifiers).nodeLabel)==null||b.call(y,T),x});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Nve=500;function $ve(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Nve){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Pve(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Ove({center:e,config:t,graph:r,onTick:o}){var s,c;const f=Vge(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const y=d.strength;f.force("x",Gge(()=>e().x).strength(y)).force("y",Kge(()=>e().y).strength(y))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",jge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Rge().radius(y=>p.radiusMultiplier*no(t,y)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",zge(r.links).id(y=>y.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function Rve({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=vge().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class Dve{constructor(t,r,o){if(Dt(this,"nodeTypes"),Dt(this,"_nodeTypeFilter"),Dt(this,"_includeUnlinked",!0),Dt(this,"_linkFilter",()=>!0),Dt(this,"_showLinkLabels",!0),Dt(this,"_showNodeLabels",!0),Dt(this,"filteredGraph"),Dt(this,"width",0),Dt(this,"height",0),Dt(this,"simulation"),Dt(this,"canvas"),Dt(this,"linkSelection"),Dt(this,"nodeSelection"),Dt(this,"markerSelection"),Dt(this,"zoom"),Dt(this,"drag"),Dt(this,"xOffset",0),Dt(this,"yOffset",0),Dt(this,"scale"),Dt(this,"focusedNode"),Dt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Ife(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Sn.of([this.width,this.height]).divide(2).subtract(Sn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(k1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Tve({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=xve({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Mve({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Ove({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Rve({config:this.config,canvasContainer:()=>Dn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=lve({applyZoom:this.scale!==1,container:Dn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=wve(this.canvas),this.nodeSelection=Ave(this.canvas),this.markerSelection=Cve(this.canvas),this.drag=cve({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Pve(this.nodeSelection),_ve({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Dn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){ave({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=uve({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function L0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function zve(e){return{...e}}function $1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Ive={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Fve={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Hve=["id","checked","onChange"],qve=["for"],Bve=Y("div",{"flex-auto":""},null,-1),Wve=ft({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=CS(t),o=Be(),s=Be(!1),c=Be(),f=Be();Th(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Hs(()=>{p()}),_u(()=>{var b;(b=f.value)==null||b.shutdown()}),It(r,p);function d(b,x){var A;(A=f.value)==null||A.filterNodesByType(x,b)}function h(b){c.value=b,s.value=!0}function p(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Dve(o.value,r.value,sve({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:x,newWidth:A})=>x===0&&A===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:T1.Arrow(2),modifiers:{node:y},positionInitializer:r.value.nodes.length>1?Qd.Randomized:Qd.Centered,zoom:{min:.5,max:2}})))}const v=b=>b.button===0;function y(b){if(Ir)return;let x=0,A=0,T=0;b.on("pointerdown",(E,L)=>{L.type!=="external"&&(!L.x||!L.y||!v(E)||(x=L.x,A=L.y,T=Date.now()))}).on("pointerup",(E,L)=>{if(L.type==="external"||!L.x||!L.y||!v(E)||Date.now()-T>500)return;const M=L.x-x,P=L.y-A;M**2+P**2<100&&h(L.id)})}return(b,x)=>{var M;const A=gi,T=zfe,E=jw,L=Ur("tooltip");return oe(),me("div",Ive,[Y("div",null,[Y("div",Fve,[(oe(!0),me(ut,null,ui((M=z(f))==null?void 0:M.nodeTypes.sort(),P=>{var N;return oe(),me("div",{key:P,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${P}`,type:"checkbox",checked:(N=z(f))==null?void 0:N.nodeTypeFilter.includes(P),onChange:q=>d(P,q.target.checked)},null,40,Hve),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${P}`,"border-b-2":"",style:Kt({"border-color":`var(--color-node-${P})`})},qe(P)+" Modules",13,qve)])}),128)),Bve,Y("div",null,[vt(Pe(A,{icon:"i-carbon-reset",onClick:p},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Pe(E,{modelValue:z(s),"onUpdate:modelValue":x[1]||(x[1]=P=>Pt(s)?s.value=P:null),direction:"right"},{default:st(()=>[z(c)?(oe(),ot(Ry,{key:0},{default:st(()=>[Pe(T,{id:z(c),"project-name":b.projectName,onClose:x[0]||(x[0]=P=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Ye("",!0)]),_:1},8,["modelValue"])])}}}),Uve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Vve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},jve={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Gve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Kve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Xve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},P1=ft({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Ur("tooltip");return t.state==="pass"?(oe(),me("div",Uve)):t.failedSnapshot?vt((oe(),me("div",Vve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",jve)):t.mode==="todo"?vt((oe(),me("div",Gve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?vt((oe(),me("div",Kve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",Xve))}}});function Yve(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:y,candidate:b}=c;t.set(y,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Zve(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function Jve(e){const t=e.map(o=>Zve(o)),r=Yve(t);return t.map(({raw:o,id:s})=>$1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function Qve(e,t){return $1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function eme(e,t){if(!e)return L0({});const r=Jve(e.externalized),o=e.inlined.map(d=>Qve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],y=c[p];if(!(v===void 0||y===void 0))return zve({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return L0({nodes:s,links:f})}const tme={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},nme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},ime={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},ome={class:"flex text-lg"},sme={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},lme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ame={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},cme={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},ume=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),fme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),dme={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},hme=["flex-1"],pme=ft({__name:"FileDetails",setup(e){const t=Be({nodes:[],links:[]}),r=Be(!1),o=Be(!1),s=Be(!1),c=Be(void 0),f=Ce(()=>{const E=Gt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),d=Ce(()=>Gt.value&&Hh(Gt.value)),h=Ce(()=>{var E,L;return!!((L=(E=Gt.value)==null?void 0:E.meta)!=null&&L.typecheck)});function p(){var L;const E=(L=Gt.value)==null?void 0:L.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function v(E){E==="graph"&&(o.value=!0),Un.value=E}const y=Ce(()=>{var E;return((E=Uw.value)==null?void 0:E.reduce((L,{size:M})=>L+M,0))??0});function b(E){r.value=E}async function x(){var E;if(!(s.value||((E=f.value)==null?void 0:E.filepath)===c.value)){s.value=!0,await ln();try{const L=f.value;if(!L)return;(!c.value||L.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=eme(await wt.rpc.getModuleGraph(L.projectName,L.filepath,!!Ro),L.filepath),c.value=L.filepath),v("graph")}finally{await new Promise(L=>setTimeout(L,100)),s.value=!1}}}bw(()=>[f.value,Un.value],([,E])=>{E==="graph"&&x()},{debounce:100,immediate:!0});const A=Ce(()=>{var E;return Dw((E=Gt.value)==null?void 0:E.file.projectName)}),T=Ce(()=>{switch(A.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(E,L)=>{var ee,j,te,Z;const M=P1,P=gi,N=Wve,q=Tfe,W=mfe,X=ufe,ie=Ur("tooltip");return z(Gt)?(oe(),me("div",tme,[Y("div",null,[Y("div",nme,[Pe(M,{state:(ee=z(Gt).result)==null?void 0:ee.state,mode:z(Gt).mode,"failed-snapshot":z(d)},null,8,["state","mode","failed-snapshot"]),z(h)?vt((oe(),me("div",rme,null,512)),[[ie,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),(j=z(Gt))!=null&&j.file.projectName?(oe(),me("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:Kt({backgroundColor:z(A),color:z(T)})},qe(z(Gt).file.projectName),5)):Ye("",!0),Y("div",ime,qe((te=z(Gt))==null?void 0:te.name),1),Y("div",ome,[z(Ir)?Ye("",!0):vt((oe(),ot(P,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((Z=z(Gt))!=null&&Z.filepath),onClick:p},null,8,["disabled"])),[[ie,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",sme,[Y("button",{"tab-button":"",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==null}]),"data-testid":"btn-report",onClick:L[0]||(L[0]=H=>v(null))},[lme,pt(" Report ")],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="graph"}]),onClick:L[1]||(L[1]=H=>v("graph"))},[z(s)?(oe(),me("span",ame)):(oe(),me("span",cme)),pt(" Module Graph ")],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="editor"}]),onClick:L[2]||(L[2]=H=>v("editor"))},[ume,pt(" "+qe(z(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:lt(["flex items-center gap-2",{"tab-button-active":z(Un)==="console",op20:z(Un)!=="console"&&z(y)===0}]),onClick:L[3]||(L[3]=H=>v("console"))},[fme,pt(" Console ("+qe(z(y))+") ",1)],2)])]),Y("div",dme,[z(o)?(oe(),me("div",{key:0,"flex-1":z(Un)==="graph"&&""},[vt(Pe(N,{graph:z(t),"data-testid":"graph","project-name":z(Gt).file.projectName||""},null,8,["graph","project-name"]),[[Ui,z(Un)==="graph"&&!z(s)]])],8,hme)):Ye("",!0),z(Un)==="editor"?(oe(),ot(q,{key:z(Gt).filepath,file:z(Gt),"data-testid":"editor",onDraft:b},null,8,["file"])):z(Un)==="console"?(oe(),ot(W,{key:2,file:z(Gt),"data-testid":"console"},null,8,["file"])):z(Un)?Ye("",!0):(oe(),ot(X,{key:3,file:z(Gt),"data-testid":"report"},null,8,["file"]))])])):Ye("",!0)}}}),gme={h:"full",flex:"~ col"},vme=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon:folder-details-reference"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),mme={"flex-auto":"","py-1":"","bg-white":""},yme=["src"],bme=ft({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",gme,[vme,Y("div",mme,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,yme)])]))}}),wme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},xme={"font-bold":""},_me={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Sme=["font-bold"],kme={text:"red500/70"},Cme=Y("br",null,null,-1),Tme={key:1,text:"sm","mb-2":""},Eme={"font-bold":""},Lme={key:2,text:"sm","mb-2":""},Ame={"font-bold":""},Mme=Y("br",null,null,-1),Nme=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),$me={key:3,text:"sm","font-thin":""},Pme=Y("br",null,null,-1),Ome=Y("ul",null,[Y("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Y("li",null," Wait for promises to resolve using the await keyword. ")],-1),Rme=ft({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ut,null,[Y("h4",wme,[Y("span",xme,[pt(qe(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ut,{key:0},[pt(":")],64)):Ye("",!0)]),pt(" "+qe(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",_me,[(oe(!0),me(ut,null,ui(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+qe(s.method)+" "+qe(s.file)+":",1),Y("span",kme,qe(s.line)+":"+qe(s.column),1),Cme],8,Sme))),128))])):Ye("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",Tme,[pt(" This error originated in "),Y("span",Eme,qe(t.error.VITEST_TEST_PATH),1),pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Ye("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",Lme,[pt(" The latest test that might've caused the error is "),Y("span",Ame,qe(t.error.VITEST_TEST_NAME),1),pt(". It might mean one of the following:"),Mme,Nme])):Ye("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",$me,[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Pme,Ome])):Ye("",!0)],64)}}}),Ln=e=>(Is("data-v-0178ddee"),e=e(),Fs(),e),Dme={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},zme=Ln(()=>Y("div",{"i-carbon-document":""},null,-1)),Ime=Ln(()=>Y("div",null,"Files",-1)),Fme={class:"number","data-testid":"num-files"},Hme=Ln(()=>Y("div",{"i-carbon-checkmark":""},null,-1)),qme=Ln(()=>Y("div",null,"Pass",-1)),Bme={class:"number"},Wme=Ln(()=>Y("div",{"i-carbon-close":""},null,-1)),Ume=Ln(()=>Y("div",null," Fail ",-1)),Vme={class:"number","text-red5":""},jme=Ln(()=>Y("div",{"i-carbon-compare":""},null,-1)),Gme=Ln(()=>Y("div",null," Snapshot Fail ",-1)),Kme={class:"number","text-red5":""},Xme=Ln(()=>Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Yme=Ln(()=>Y("div",null," Errors ",-1)),Zme={class:"number","text-red5":""},Jme=Ln(()=>Y("div",{"i-carbon-timer":""},null,-1)),Qme=Ln(()=>Y("div",null,"Time",-1)),e0e={class:"number","data-testid":"run-time"},t0e={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},n0e=Ln(()=>Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),r0e={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},i0e=Ln(()=>Y("br",null,null,-1)),o0e={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},s0e=Ln(()=>Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),l0e=ft({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Rme;return oe(),me(ut,null,[Y("div",Dme,[zme,Ime,Y("div",Fme,qe(z(Te).summary.files),1),z(Te).summary.filesSuccess?(oe(),me(ut,{key:0},[Hme,qme,Y("div",Bme,qe(z(Te).summary.filesSuccess),1)],64)):Ye("",!0),z(Te).summary.filesFailed?(oe(),me(ut,{key:1},[Wme,Ume,Y("div",Vme,qe(z(Te).summary.filesFailed),1)],64)):Ye("",!0),z(Te).summary.filesSnapshotFailed?(oe(),me(ut,{key:2},[jme,Gme,Y("div",Kme,qe(z(Te).summary.filesSnapshotFailed),1)],64)):Ye("",!0),z(Hi).length?(oe(),me(ut,{key:3},[Xme,Yme,Y("div",Zme,qe(z(Hi).length),1)],64)):Ye("",!0),Jme,Qme,Y("div",e0e,qe(z(Te).summary.time),1)]),z(Hi).length?(oe(),me("div",t0e,[n0e,Y("p",r0e,[pt(" Vitest caught "+qe(z(Hi).length)+" error"+qe(z(Hi).length>1?"s":"")+" during the test run.",1),i0e,pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),Y("details",o0e,[s0e,(oe(!0),me(ut,null,ui(z(Hi),(s,c)=>(oe(),ot(o,{key:c,error:s},null,8,["error"]))),128))])])):Ye("",!0)],64)}}}),a0e=Vr(l0e,[["__scopeId","data-v-0178ddee"]]),c0e={"p-2":"","text-center":"",flex:""},u0e={"text-4xl":"","min-w-2em":""},f0e={"text-md":""},d0e=ft({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",c0e,[Y("div",null,[Y("div",u0e,[hn(t.$slots,"body")]),Y("div",f0e,[hn(t.$slots,"header")])])]))}}),h0e={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},p0e=ft({__name:"TestsEntry",setup(e){return(t,r)=>{const o=d0e;return oe(),me("div",h0e,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:st(()=>[pt(" Pass ")]),body:st(()=>[pt(qe(z(Te).summary.testsSuccess),1)]),_:1}),Pe(o,{class:lt({"text-red5":z(Te).summary.testsFailed,op50:!z(Te).summary.testsFailed}),"data-testid":"fail-entry"},{header:st(()=>[pt(" Fail ")]),body:st(()=>[pt(qe(z(Te).summary.testsFailed),1)]),_:1},8,["class"]),z(Te).summary.testsSkipped?(oe(),ot(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:st(()=>[pt(" Skip ")]),body:st(()=>[pt(qe(z(Te).summary.testsSkipped),1)]),_:1})):Ye("",!0),z(Te).summary.testsTodo?(oe(),ot(o,{key:1,op50:"","data-testid":"todo-entry"},{header:st(()=>[pt(" Todo ")]),body:st(()=>[pt(qe(z(Te).summary.testsTodo),1)]),_:1})):Ye("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:st(()=>[pt(" Total ")]),body:st(()=>[pt(qe(z(Te).summary.totalTests),1)]),_:1})])}}}),g0e={},v0e={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},m0e={"aria-labelledby":"tests",m:"y-4 x-2"};function y0e(e,t){const r=p0e,o=a0e;return oe(),me("div",v0e,[Y("section",m0e,[Pe(r)]),Pe(o)])}const b0e=Vr(g0e,[["render",y0e]]),w0e={},x0e={h:"full",flex:"~ col"},_0e=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-dashboard"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),S0e={class:"scrolls","flex-auto":"","py-1":""};function k0e(e,t){const r=b0e;return oe(),me("div",x0e,[_0e,Y("div",S0e,[Pe(r)])])}const C0e=Vr(w0e,[["render",k0e]]),T0e=["open"],E0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),L0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),A0e=ft({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Be(!0);return(r,o)=>(oe(),me("div",{open:z(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:lt(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[E0e,hn(r.$slots,"summary",{open:z(t)}),L0e],2),hn(r.$slots,"default")],40,T0e))}}),M0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},N0e={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",M0e,[Y("span",{block:"",class:lt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},ap=e=>(Is("data-v-6e6c7df8"),e=e(),Fs(),e),$0e=["aria-label","data-current"],P0e={key:1,"w-4":""},O0e={flex:"","items-end":"","gap-2":"","overflow-hidden":""},R0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},D0e={"text-sm":"",truncate:"","font-light":""},z0e=["text","innerHTML"],I0e={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},F0e={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},H0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},q0e=ap(()=>Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),B0e=ap(()=>Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),W0e=ap(()=>Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1)),U0e={key:1},V0e=ft({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Ce(()=>wt.state.idMap.get(e.taskId)),r=Ce(()=>{if(Ir)return!1;const T=t.value;return T&&Hh(T)});function o(){e.expandable&&(e.opened?Te.collapseNode(e.taskId):Te.expandNode(e.taskId))}async function s(T){var E;(E=e.onItemClick)==null||E.call(e,T),ps.value&&(nu.value=!0,await ln()),await Yh([T.file])}function c(T){return wt.rpc.updateSnapshot(T.file)}const f=Ce(()=>e.indent<=0?[]:Array.from({length:e.indent},(T,E)=>`${e.taskId}-${E}`)),d=Ce(()=>{const T=f.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${T.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Ce(()=>Ow(e.name)),p=Ce(()=>{const T=Gce.value,E=h.value;return T?E.replace(T,L=>`<span class="highlight">${L}</span>`):E}),v=Ce(()=>e.type!=="file"&&e.disableTaskLocation),y=Ce(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),b=Ce(()=>v.value?"color-red5 dark:color-#f43f5e":null);function x(){var E;const T=t.value;e.type==="file"?(E=e.onItemClick)==null||E.call(e,T):kfe(T)}const A=Ce(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,E)=>{const L=P1,M=N0e,P=gi,N=Ur("tooltip");return z(t)?(oe(),me("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Kt(z(d)),"aria-label":T.name,"data-current":T.current,onClick:E[2]||(E[2]=q=>o())},[T.indent>0?(oe(!0),me(ut,{key:0},ui(z(f),q=>(oe(),me("div",{key:q,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ye("",!0),T.type==="file"||T.type==="suite"?(oe(),me("div",P0e,[Y("div",{class:lt(T.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ye("",!0),Pe(L,{state:T.state,mode:z(t).mode,"failed-snapshot":z(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",O0e,[T.type==="file"&&T.typecheck?vt((oe(),me("div",R0e,null,512)),[[N,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ye("",!0),Y("span",D0e,[T.type==="file"&&T.projectName?(oe(),me("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:Kt({backgroundColor:T.projectNameColor,color:z(A)})},qe(T.projectName),5)):Ye("",!0),Y("span",{text:T.state==="fail"?"red-500":"",innerHTML:z(p)},null,8,z0e)]),typeof T.duration=="number"?(oe(),me("span",I0e,qe(T.duration>0?T.duration:"< 1")+"ms ",1)):Ye("",!0)]),Y("div",F0e,[!z(Ir)&&z(r)?vt((oe(),ot(M,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Tc(q=>c(z(t)),["prevent","stop"]))},null,512)),[[N,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),Pe(z(Pb),{placement:"bottom",class:lt(["w-1.4em h-1.4em op100 rounded flex",z(b)])},{popper:st(()=>[z(v)?(oe(),me("div",H0e,[q0e,Y("div",null,[pt(qe(z(y))+": this feature is not available, you have disabled ",1),B0e,pt(" in your configuration file.")]),W0e])):(oe(),me("div",U0e,qe(z(y)),1))]),default:st(()=>[Pe(P,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Tc(x,["prevent","stop"])})]),_:1},8,["class"]),z(Ir)?Ye("",!0):vt((oe(),ot(P,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",disabled:T.type!=="file",onClick:E[1]||(E[1]=Tc(q=>s(z(t)),["prevent","stop"]))},null,8,["disabled"])),[[N,"Run current test",void 0,{bottom:!0}]])])],12,$0e)):Ye("",!0)}}}),j0e=Vr(V0e,[["__scopeId","data-v-6e6c7df8"]]),G0e={"flex-1":"","ms-2":"","select-none":""},K0e=ft({__name:"FilterStatus",props:qc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Eh(e,"modelValue");return(r,o)=>(oe(),me("label",ai({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Tc(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:lt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),vt(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[pC,t.value]]),Y("span",G0e,qe(r.label),1)],16))}});function X0e(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function nh(){nh.init||(nh.init=!0,Rc=X0e()!==-1)}var Uu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nh(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},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&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Y0e=uy();Is("data-v-b329ee4c");const Z0e={class:"resize-observer",tabindex:"-1"};Fs();const J0e=Y0e((e,t,r,o,s,c)=>(oe(),ot("div",Z0e)));Uu.render=J0e;Uu.__scopeId="data-v-b329ee4c";Uu.__file="src/components/ResizeObserver.vue";function Dc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dc=function(t){return typeof t}:Dc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function Q0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eye(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tye(e,t,r){return t&&eye(e.prototype,t),e}function A0(e){return nye(e)||rye(e)||iye(e)||oye()}function nye(e){if(Array.isArray(e))return rh(e)}function rye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function iye(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function oye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
52
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function lye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),y=1;y<p;y++)v[y-1]=arguments[y];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(A0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(A0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function O1(e,t){if(e===t)return!0;if(Dc(e)==="object"){for(var r in e)if(!O1(e[r],t[r]))return!1;return!0}return!1}var aye=function(){function e(t,r,o){Q0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return tye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=sye(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=lye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(y){return y.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),ln(function(){s.observer&&s.observer.observe(s.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}}]),e}();function R1(e,t,r){var o=t.value;if(o)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 s=new aye(e,o,r);e._vue_visibilityState=s}}function cye(e,t,r){var o=t.value,s=t.oldValue;if(!O1(o,s)){var c=e._vue_visibilityState;if(!o){D1(e);return}c?c.createObserver(o,r):R1(e,{value:o},r)}}function D1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var uye={beforeMount:R1,updated:cye,unmounted:D1},fye={itemsLimit:1e3},dye=/(auto|scroll)/;function z1(e,t){return e.parentNode===null?t:z1(e.parentNode,t.concat([e]))}var ud=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},hye=function(t){return ud(t,"overflow")+ud(t,"overflow-y")+ud(t,"overflow-x")},pye=function(t){return dye.test(hye(t))};function M0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=z1(e.parentNode,[]),r=0;r<t.length;r+=1)if(pye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}var gye={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function vye(){return this.items.length&&ih(this.items[0])!=="object"}var oh=!1;if(typeof window<"u"){oh=!1;try{var mye=Object.defineProperty({},"passive",{get:function(){oh=!0}});window.addEventListener("test",null,mye)}catch{}}let yye=0;var cp={name:"RecycleScroller",components:{ResizeObserver:Uu},directives:{ObserveVisibility:uye},props:{...gye,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:vye,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=mh({id:yye++,index:t,used:!0,key:o,type:s}),f=gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,y=this.$_views,b=this.$_unusedViews,x=this.pool,A=this.itemIndexByKey;let T,E,L,M,P;if(!p)T=E=M=P=L=0;else if(this.$_prerender)T=M=0,E=P=Math.min(this.prerender,h.length),L=null;else{const j=this.getScroll();if(t){let H=j.start-this.$_lastUpdateScrollPosition;if(H<0&&(H=-H),r===null&&H<c||H<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const te=this.buffer;j.start-=te,j.end+=te;let Z=0;if(this.$refs.before&&(Z=this.$refs.before.scrollHeight,j.start-=Z),this.$refs.after){const H=this.$refs.after.scrollHeight;j.end+=H}if(r===null){let H,I=0,k=p-1,B=~~(p/2),U;do U=B,H=v[B].accumulator,H<j.start?I=B:B<p-1&&v[B+1].accumulator>j.start&&(k=B),B=~~((I+k)/2);while(B!==U);for(B<0&&(B=0),T=B,L=v[p-1].accumulator,E=B;E<p&&v[E].accumulator<j.end;E++);for(E===-1?E=h.length-1:(E++,E>p&&(E=p)),M=T;M<p&&Z+v[M].accumulator<j.start;M++);for(P=M;P<p&&Z+v[P].accumulator<j.end;P++);}else{T=~~(j.start/r*o);const H=T%o;T-=H,E=Math.ceil(j.end/r*o),M=Math.max(0,Math.floor((j.start-Z)/r*o)),P=Math.floor((j.end-Z)/r*o),T<0&&(T=0),E>p&&(E=p),M<0&&(M=0),P>p&&(P=p),L=Math.ceil(p/o)*r}}E-T>fye.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let N;const q=T<=this.$_endIndex&&E>=this.$_startIndex;if(q)for(let j=0,te=x.length;j<te;j++)N=x[j],N.nr.used&&(e&&(N.nr.index=A[N.item[d]]),(N.nr.index==null||N.nr.index<T||N.nr.index>=E)&&this.unuseView(N));const W=q?null:new Map;let X,ie,ee;for(let j=T;j<E;j++){X=h[j];const te=d?X[d]:X;if(te==null)throw new Error(`Key is ${te} on item (keyField is '${d}')`);if(N=y.get(te),!r&&!v[j].size){N&&this.unuseView(N);continue}ie=X[f];let Z=b.get(ie),H=!1;if(!N)q?Z&&Z.length?N=Z.pop():N=this.addView(x,j,X,te,ie):(ee=W.get(ie)||0,(!Z||ee>=Z.length)&&(N=this.addView(x,j,X,te,ie),this.unuseView(N,!0),Z=b.get(ie)),N=Z[ee],W.set(ie,ee+1)),y.delete(N.nr.key),N.nr.used=!0,N.nr.index=j,N.nr.key=te,N.nr.type=ie,y.set(te,N),H=!0;else if(!N.nr.used&&(N.nr.used=!0,H=!0,Z)){const I=Z.indexOf(N);I!==-1&&Z.splice(I,1)}N.item=X,H&&(j===h.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),r===null?(N.position=v[j-1].accumulator,N.offset=0):(N.position=Math.floor(j/o)*r,N.offset=j%o*s)}return this.$_startIndex=T,this.$_endIndex=E,this.emitUpdate&&this.$emit("update",T,E,M,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:q}},getListenerTarget(){let e=M0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,oh?{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(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=M0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},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((e,t)=>e.nr.index-t.nr.index)}}};const bye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},wye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function xye(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Ur("observe-visibility");return vt((oe(),me("div",{class:lt(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(oe(),me("div",bye,[hn(e.$slots,"before")],512)):Ye("v-if",!0),(oe(),ot(xv(r.listTag),{ref:"wrapper",style:Kt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:lt(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:st(()=>[(oe(!0),me(ut,null,ui(s.pool,h=>(oe(),ot(xv(r.itemTag),ai({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},GS(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:st(()=>[hn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),hn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",wye,[hn(e.$slots,"after")],512)):Ye("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}cp.render=xye;cp.__file="src/components/RecycleScroller.vue";function _ye(e){const t=Ce(()=>Bd.value?!1:!et.onlyTests),r=Ce(()=>On.value===""),o=Be(On.value);bw(On,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;On.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;et.failed=!1,et.success=!1,et.skipped=!1,et.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,y,b){Rs.value&&(on.value.search=(h==null?void 0:h.trim())??"",on.value.failed=p,on.value.success=v,on.value.skipped=y,on.value.onlyTests=b)}return It(()=>[o.value,et.failed,et.success,et.skipped,et.onlyTests],([h,p,v,y,b])=>{d(h,p,v,y,b),Te.filterNodes()},{flush:"post"}),It(()=>Cr.value.length,h=>{h&&(on.value.expandAll=void 0)},{flush:"post"}),{initialized:Rs,filter:et,search:On,disableFilter:t,isFiltered:Rw,isFilteredByStatus:Bd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Iu,testsTotal:Kce,uiEntries:Hn}}const Sye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},kye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Cye=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Tye=["op"],Eye=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1),Lye=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1),Aye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},Mye={"text-red5":""},Nye=Y("span",null,"/",-1),$ye={"text-yellow5":""},Pye={"text-green5":""},Oye=Y("span",null,"/",-1),Rye={class:"text-purple5:50"},Dye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},zye=Y("div",{op30:""}," No matched test ",-1),Iye=["disabled"],Fye=["disabled"],Hye={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},qye=Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Bye=Y("div",{op30:""}," Loading... ",-1),Wye=[qye,Bye],Uye=ft({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Ce(()=>Hu.value.includeTaskLocation),s=Be(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:y,clearAll:b,clearSearch:x,clearFilter:A,filteredFiles:T,testsTotal:E,uiEntries:L}=_ye(s),M=Be("grid-cols-2"),P=Be("grid-col-span-2"),N=Be(),{width:q}=Vh();return It(()=>q.value*(dn.navigation/100),W=>{W<420?(M.value="grid-cols-2",P.value="grid-col-span-2"):(M.value="grid-cols-4",P.value="grid-col-span-4")}),(W,X)=>{const ie=gi,ee=K0e,j=j0e,te=A0e,Z=Ur("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:N,h:"full",flex:"~ col"},[Y("div",null,[Y("div",Sye,[hn(W.$slots,"header",{filteredFiles:z(p)||z(v)?z(T):void 0})]),Y("div",kye,[Cye,vt(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":X[0]||(X[0]=H=>Pt(d)?d.value=H:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:z(d).length?"100":"50",onKeydown:[X[1]||(X[1]=Td(H=>z(x)(!1),["esc"])),X[2]||(X[2]=Td(H=>r("run",z(p)||z(v)?z(T):void 0),["enter"]))]},null,40,Tye),[[hC,z(d)]]),vt(Pe(ie,{disabled:z(y),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:X[3]||(X[3]=H=>z(x)(!0))},null,8,["disabled"]),[[Z,"Clear search",void 0,{bottom:!0}]])]),Y("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:lt(z(M))},[Y("div",{class:lt(z(P)),flex:"~ gap-2 items-center"},[Eye,Lye,vt(Pe(ie,{disabled:z(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:X[4]||(X[4]=H=>z(A)(!1))},null,8,["disabled"]),[[Z,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(ee,{modelValue:z(f).failed,"onUpdate:modelValue":X[5]||(X[5]=H=>z(f).failed=H),label:"Fail"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).success,"onUpdate:modelValue":X[6]||(X[6]=H=>z(f).success=H),label:"Pass"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).skipped,"onUpdate:modelValue":X[7]||(X[7]=H=>z(f).skipped=H),label:"Skip"},null,8,["modelValue"]),Pe(ee,{modelValue:z(f).onlyTests,"onUpdate:modelValue":X[8]||(X[8]=H=>z(f).onlyTests=H),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:X[12]||(X[12]=(...H)=>z(Em)&&z(Em)(...H))},[Pe(te,null,jS({default:st(()=>[(z(p)||z(v))&&z(L).length===0?(oe(),me(ut,{key:0},[z(c)?(oe(),me("div",Dye,[zye,Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(z(y)?null:"hover:op100"),disabled:z(y),onClickPassive:X[9]||(X[9]=H=>z(x)(!0))}," Clear Search ",42,Iye),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(z(h)?null:"hover:op100"),disabled:z(h),onClickPassive:X[10]||(X[10]=H=>z(A)(!0))}," Clear Filter ",42,Fye),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:X[11]||(X[11]=(...H)=>z(b)&&z(b)(...H))}," Clear All ",32)])):(oe(),me("div",Hye,Wye))],64)):(oe(),ot(z(cp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:z(L),buffer:100},{default:st(({item:H})=>[Pe(j,{class:lt(["h-28px m-0 p-0",z(eo)===H.id?"bg-active":""]),"task-id":H.id,expandable:H.expandable,type:H.type,current:z(eo)===H.id,indent:H.indent,name:H.name,typecheck:H.typecheck===!0,"project-name":H.projectName??"","project-name-color":H.projectNameColor??"",state:H.state,duration:H.duration,opened:H.expanded,"disable-task-location":!z(o),"on-item-click":W.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[z(c)?{name:"summary",fn:st(()=>[Y("div",Aye,[Y("span",Mye," FAIL ("+qe(z(E).failed)+") ",1),Nye,Y("span",$ye," RUNNING ("+qe(z(E).running)+") ",1),Y("span",Pye," PASS ("+qe(z(E).success)+") ",1),Oye,Y("span",Rye," SKIP ("+qe(z(f).onlyTests?z(E).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Vye=""+new URL("../favicon.svg",import.meta.url).href,jye=Y("img",{"w-6":"","h-6":"",src:Vye,alt:"Vitest logo"},null,-1),Gye=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Kye={class:"flex text-lg"},Xye=Y("div",{class:"i-carbon:folder-off ma"},null,-1),Yye=Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),Zye=ft({__name:"Navigation",setup(e){function t(){return wt.rpc.updateSnapshot()}const r=Ce(()=>ya.value?"light":"dark");async function o(f){ps.value&&(nu.value=!0,await ln(),to.value&&(ru(!0),await ln())),f!=null&&f.length?await Yh(f):await Sue()}function s(){Te.collapseAllNodes()}function c(){Te.expandAllNodes()}return(f,d)=>{const h=gi,p=Uye,v=Ur("tooltip");return oe(),ot(p,{border:"r base","on-item-click":z(Tw),nested:!0,onRun:o},{header:st(({filteredFiles:y})=>[jye,Gye,Y("div",Kye,[vt(Pe(h,{title:"Collapse tests",disabled:!z(Rs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Ui,!z(e0)],[v,"Collapse tests",void 0,{bottom:!0}]]),vt(Pe(h,{disabled:!z(Rs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Ui,z(e0)],[v,"Expand tests",void 0,{bottom:!0}]]),vt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>z(ru)(!0))},null,512),[[Ui,z(Id)&&!z(ps)||!z(Ss)],[v,"Dashboard",void 0,{bottom:!0}]]),z(Id)&&!z(ps)?(oe(),ot(z(Pb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:st(()=>[Yye]),default:st(()=>[Xye]),_:1})):Ye("",!0),z(ps)?vt((oe(),ot(h,{key:1,disabled:z(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>z(wce)())},null,8,["disabled"])),[[Ui,!z(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ye("",!0),z(Te).summary.failedSnapshot&&!z(Ir)?vt((oe(),ot(h,{key:2,icon:"i-carbon:result-old",disabled:!z(Te).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>z(Te).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ye("",!0),z(Ir)?Ye("",!0):vt((oe(),ot(h,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:b=>o(y)},null,8,["disabled","onClick"])),[[v,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),vt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>z(Jue)())},null,512),[[v,`Toggle to ${z(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Jye={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Qye=ft({__name:"ProgressBar",setup(e){const{width:t}=Vh(),r=Ce(()=>Te.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":yce.value?null:"in-progress"),o=Ce(()=>{const d=Te.summary.files;return d>0?t.value*Te.summary.filesSuccess/d:0}),s=Ce(()=>{const d=Te.summary.files;return d>0?t.value*Te.summary.filesFailed/d:0}),c=Ce(()=>Te.summary.files-Te.summary.filesFailed-Te.summary.filesSuccess),f=Ce(()=>{const d=Te.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:lt(z(r))},[Y("div",Jye,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:lt(z(r)),style:Kt(`width: ${z(s)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:lt(z(r)),style:Kt(`left: ${z(s)}px; width: ${z(o)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:lt(z(r)),style:Kt(`left: ${z(o)+z(s)}px; width: ${z(f)}px;`)}," ",6)])],2))}}),ebe=Vr(Qye,[["__scopeId","data-v-38451300"]]),N0={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((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.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(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,c);if(!y)return;({sums:r,panesToResize:f}=y),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.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(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):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 pa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},tbe=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},nbe={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(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function rbe(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Kt(e.style)},[hn(e.$slots,"default")],4)}const wc=tbe(nbe,[["render",rbe]]),ibe={"h-screen":"","w-screen":"",overflow:"hidden"},obe=ft({__name:"index",setup(e){const t=bce(),r=dc(y=>{p(),h(y)},0),o=dc(y=>{y.forEach((b,x)=>{br.value[x]=b.size}),d(y)},0),s=dc(y=>{y.forEach((b,x)=>{Mo.value[x]=b.size}),h(y),v()},0),c=dc(y=>{d(y),p()},0);function f(){const y=window.innerWidth,b=Math.min(y/3,300);br.value[0]=100*b/y,br.value[1]=100-br.value[0],d([{size:br.value[0]},{size:br.value[1]}])}function d(y){dn.navigation=y[0].size,dn.details.size=y[1].size}function h(y){dn.details.browser=y[0].size,dn.details.main=y[1].size}function p(){const y=document.querySelector("#tester-ui");y&&(y.style.pointerEvents="none")}function v(){const y=document.querySelector("#tester-ui");y&&(y.style.pointerEvents="")}return(y,b)=>{const x=ebe,A=Zye,T=C0e,E=bme,L=pme,M=Hue,P=Eue;return oe(),me(ut,null,[Pe(x),Y("div",ibe,[Pe(z(N0),{class:"pt-4px",onResized:z(o),onResize:z(c),onReady:f},{default:st(()=>[Pe(z(wc),{size:z(br)[0]},{default:st(()=>[Pe(A)]),_:1},8,["size"]),Pe(z(wc),{size:z(br)[1]},{default:st(()=>[z(Ro)?(oe(),ot(z(N0),{id:"details-splitpanes",key:"browser-detail",onResize:z(r),onResized:z(s)},{default:st(()=>[Pe(z(wc),{size:z(Mo)[0],"min-size":"10"},{default:st(()=>[b[0]||(Wc(-1),(b[0]=Pe(M)).cacheIndex=0,Wc(1),b[0])]),_:1},8,["size"]),Pe(z(wc),{size:z(Mo)[1]},{default:st(()=>[z(t)?(oe(),ot(T,{key:"summary"})):z(to)?(oe(),ot(E,{key:"coverage",src:z(Qm)},null,8,["src"])):(oe(),ot(L,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),ot(Mh,{key:"ui-detail"},{default:st(()=>[z(t)?(oe(),ot(T,{key:"summary"})):z(to)?(oe(),ot(E,{key:"coverage",src:z(Qm)},null,8,["src"])):(oe(),ot(L,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe(P)],64)}}}),sbe=[{name:"index",path:"/",component:obe,props:!0}],lbe={tooltip:EE};Ob.options.instantMove=!0;Ob.options.distance=10;function abe(){return AT({history:rT(),routes:sbe})}const cbe=[abe],up=Gy(CC);cbe.forEach(e=>{up.use(e())});Object.entries(lbe).forEach(([e,t])=>{up.directive(e,t)});up.mount("#app");
|