2 lines
126 KiB
JavaScript
2 lines
126 KiB
JavaScript
|
function Ms(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const Pi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ki=Ms(Pi);function cr(e){return!!e||e===""}function Dn(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=we(s)?Vi(s):Dn(s);if(o)for(const r in o)t[r]=o[r]}return t}else{if(we(e))return e;if(ge(e))return e}}const Ci=/;(?![^(]*\))/g,Si=/:(.+)/;function Vi(e){const t={};return e.split(Ci).forEach(n=>{if(n){const s=n.split(Si);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function he(e){let t="";if(we(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const s=he(e[n]);s&&(t+=s+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ie=e=>we(e)?e:e==null?"":K(e)||ge(e)&&(e.toString===dr||!X(e.toString))?JSON.stringify(e,ar,2):String(e),ar=(e,t)=>t&&t.__v_isRef?ar(e,t.value):At(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:ur(t)?{[`Set(${t.size})`]:[...t.values()]}:ge(t)&&!K(t)&&!hr(t)?String(t):t,ve={},It=[],Ke=()=>{},Ti=()=>!1,Ei=/^on[^a-z]/,hn=e=>Ei.test(e),Is=e=>e.startsWith("onUpdate:"),$e=Object.assign,As=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Li=Object.prototype.hasOwnProperty,se=(e,t)=>Li.call(e,t),K=Array.isArray,At=e=>Rn(e)==="[object Map]",ur=e=>Rn(e)==="[object Set]",X=e=>typeof e=="function",we=e=>typeof e=="string",Ns=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",fr=e=>ge(e)&&X(e.then)&&X(e.catch),dr=Object.prototype.toString,Rn=e=>dr.call(e),Mi=e=>Rn(e).slice(8,-1),hr=e=>Rn(e)==="[object Object]",Os=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=Ms(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ii=/-(\w)/g,Ze=Un(e=>e.replace(Ii,(t,n)=>n?n.toUpperCase():"")),Ai=/\B([A-Z])/g,Kt=Un(e=>e.replace(Ai,"-$1").toLowerCase()),zn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),ls=Un(e=>e?`on${zn(e)}`:""),on=(e,t)=>!Object.is(e,t),cs=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Sn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},_r=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ho;const Ni=()=>ho||(ho=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ie;class Oi{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ie&&(this.parent=Ie,this.index=(Ie.scopes||(Ie.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Ie;try{return Ie=this,t()}finally{Ie=n}}}on(){Ie=this}off(){Ie=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.active=!1}}}function Bi(e,t=Ie){t&&t.active&&t.effects.push(e)}function Fi(){return Ie}function Hi(e){Ie&&Ie.cleanups.push(e)}const Bs=e=>{const t=new Set(e);return t.w=0,t.n=0,t},pr=e=>(e.w&ht)>0,vr=e=>(e.n&ht)>0,Di=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ht},Ri=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];pr(o)&&!vr(o)?o.delete(e):t[n++]=o,o.w&=~ht,o.n&=~ht}t.length=n}},vs=new WeakMap;let Xt=0,ht=1;const ms=30;let ze;const St=Symbol(""),gs=Symbol("");class Fs{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Bi(this,s)}run(){if(!this.active)return this.fn();let t=ze,n=ft;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ze,ze=this,ft=!0,ht=1<<++Xt,Xt<=ms?Di(this):_o(this),this.fn()}finally{Xt<=ms&&Ri(this),ht=1<<--Xt,ze=this.parent,ft=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ze===this?this.deferStop=!0:this.active&&(_o(this),this.onStop&&this.onStop(),this.active=!1)}}function _o(e){
|