MCPcopy
hub / github.com/vitest-dev/vitest / et

Function et

test/cli/test/fixtures/reporters/html/fail/assets/index-BUCFJtth.js:5–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3* (c) 2018-present Yuxi (Evan) You and Vue contributors
4* @license MIT
5**/function Fh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},Rs=[],Xr=()=>{},C0=()=>!1,$u=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hh=e=>e.startsWith("onUpdate:"),on=Object.assign,Bh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},$S=Object.prototype.hasOwnProperty,wt=(e,t)=>$S.call(e,t),Ze=Array.isArray,$s=e=>Oa(e)==="[object Map]",Iu=e=>Oa(e)==="[object Set]",Bm=e=>Oa(e)==="[object Date]",et=e=>typeof e=="function",Ht=e=>typeof e=="string",Pr=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",E0=e=>(kt(e)||et(e))&&et(e.then)&&et(e.catch),A0=Object.prototype.toString,Oa=e=>A0.call(e),IS=e=>Oa(e).slice(8,-1),L0=e=>Oa(e)==="[object Object]",Du=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xl=Fh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},DS=/-\w/g,sr=zu(e=>e.replace(DS,t=>t.slice(1).toUpperCase())),zS=/\B([A-Z])/g,Ai=zu(e=>e.replace(zS,"-$1").toLowerCase()),Fu=zu(e=>e.charAt(0).toUpperCase()+e.slice(1)),qc=zu(e=>e?`on${Fu(e)}`:""),Gn=(e,t)=>!Object.is(e,t),jc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},M0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Wh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},N0=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let Wm;const Hu=()=>Wm||(Wm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(e){if(Ze(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ht(o)?WS(o):zt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ht(e)||kt(e))return e}const FS=/;(?![^(]*\))/g,HS=/:([^]+)/,BS=/\/\*[^]*?\*\//g;function WS(e){const t={};return e.replace(BS,"").split(FS).forEach(r=>{if(r){const o=r.split(HS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(Ht(e))t=e;else if(Ze(e))for(let r=0;r<e.length;r++){const o=ot(e[r]);o&&(t+=o+" ")}else if(kt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function qS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ht(t)&&(e.class=ot(t)),r&&(e.style=zt(r)),e}const jS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",US=Fh(jS);function O0(e){return!!e||e===""}function VS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Bu(e[o],t[o]);return r}function Bu(e,t){if(e===t)return!0;let r=Bm(e),o=Bm(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Pr(e),o=Pr(t),r||o)return e===t;if(r=Ze(e),o=Ze(t),r||o)return r&&o?VS(e,t):!1;if(r=kt(e),o=kt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!Bu(e[f],t[f]))return!1}}return String(e)===String(t)}function P0(e,t){return e.findIndex(r=>Bu(r,t))}const R0=e=>!!(e&&e.__v_isRef===!0),Re=e=>Ht(e)?e:e==null?"":Ze(e)||kt(e)&&(e.toString===A0||!et(e.toString))?R0(e)?Re(e.value):JSON.stringify(e,$0,2):String(e),$0=(e,t)=>R0(t)?$0(e,t.value):$s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[fd(o,c)+" =>"]=s,r),{})}:Iu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>fd(r))}:Pr(t)?fd(t):kt(t)&&!Ze(t)&&!L0(t)?String(t):t,fd=(e,t="")=>{var r;return Pr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
6* @vue/reactivity v3.5.25
7* (c) 2018-present Yuxi (Evan) You and Vue contributors
8* @license MIT

Callers 15

E0Function · 0.70
ReFunction · 0.70
XtFunction · 0.70
w_Function · 0.70
k_Function · 0.70
__Function · 0.70
$rFunction · 0.70
atFunction · 0.70
VmFunction · 0.70
rtFunction · 0.70
JlFunction · 0.70
V_Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected