PaletteSwitcher/palette-switcher-v2/dist/assets/index-2f9598f2.js

2 lines
100 KiB
JavaScript
Raw Normal View History

2024-01-16 05:44:06 +00:00
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function i(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=i(r);fetch(r.href,s)}})();const fn=(e,t)=>e===t,be=Symbol("solid-proxy"),Kt={equals:fn};let hn=Ti;const dt=1,Xt=2,wi={owned:null,cleanups:null,context:null,owner:null};var x=null;let me=null,pn=null,k=null,D=null,lt=null,ce=0;function Ei(e,t){const i=k,n=x,r=e.length===0,s=t===void 0?n:t,a=r?wi:{owned:null,cleanups:null,context:s?s.context:null,owner:s},o=r?e:()=>e(()=>K(()=>de(a)));x=a,k=null;try{return ft(o,!0)}finally{k=i,x=n}}function xt(e,t){t=t?Object.assign({},Kt,t):Kt;const i={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=r=>(typeof r=="function"&&(r=r(i.value)),ki(i,r));return[Ii.bind(i),n]}function Ct(e,t,i){const n=Ci(e,t,!1,dt);ue(n)}function j(e,t,i){i=i?Object.assign({},Kt,i):Kt;const n=Ci(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=i.equals||void 0,ue(n),Ii.bind(n)}function K(e){if(k===null)return e();const t=k;k=null;try{return e()}finally{k=t}}function xi(e,t,i){const n=Array.isArray(e);let r,s=i&&i.defer;return a=>{let o;if(n){o=Array(e.length);for(let u=0;u<e.length;u++)o[u]=e[u]()}else o=e();if(s){s=!1;return}const l=K(()=>t(o,r,a));return r=o,l}}function Ai(e){return x===null||(x.cleanups===null?x.cleanups=[e]:x.cleanups.push(e)),e}function vn(){return x}function gn(e,t){const i=x,n=k;x=e,k=null;try{return ft(t,!0)}catch(r){Ce(r)}finally{x=i,k=n}}function mn(e){const t=k,i=x;return Promise.resolve().then(()=>{k=t,x=i;let n;return ft(e,!1),k=x=null,n?n.done:void 0})}function Li(e,t){const i=Symbol("context");return{id:i,Provider:En(i),defaultValue:e}}function yn(e){return x&&x.context&&x.context[e.id]!==void 0?x.context[e.id]:e.defaultValue}function ke(e){const t=j(e),i=j(()=>we(t()));return i.toArray=()=>{const n=i();return Array.isArray(n)?n:n!=null?[n]:[]},i}function Ii(){if(this.sources&&this.state)if(this.state===dt)ue(this);else{const e=D;D=null,ft(()=>Yt(this),!1),D=e}if(k){const e=this.observers?this.observers.length:0;k.sources?(k.sources.push(this),k.sourceSlots.push(e)):(k.sources=[this],k.sourceSlots=[e]),this.observers?(this.observers.push(k),this.observerSlots.push(k.sources.length-1)):(this.observers=[k],this.observerSlots=[k.sources.length-1])}return this.value}function ki(e,t,i){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&ft(()=>{for(let r=0;r<e.observers.length;r+=1){const s=e.observers[r],a=me&&me.running;a&&me.disposed.has(s),(a?!s.tState:!s.state)&&(s.pure?D.push(s):lt.push(s),s.observers&&Si(s)),a||(s.state=dt)}if(D.length>1e6)throw D=[],new Error},!1)),t}function ue(e){if(!e.fn)return;de(e);const t=ce;_n(e,e.value,t)}function _n(e,t,i){let n;const r=x,s=k;k=x=e;try{n=e.fn(t)}catch(a){return e.pure&&(e.state=dt,e.owned&&e.owned.forEach(de),e.owned=null),e.updatedAt=i+1,Ce(a)}finally{k=s,x=r}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?ki(e,n):e.value=n,e.updatedAt=i)}function Ci(e,t,i,n=dt,r){const s={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:x,context:x?x.context:null,pure:i};return x===null||x!==wi&&(x.owned?x.owned.push(s):x.owned=[s]),s}function Oi(e){if(e.state===0)return;if(e.state===Xt)return Yt(e);if(e.suspense&&K(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ce);)e.state&&t.push(e);for(let i=t.length-1;i>=0;i--)if(e=t[i],e.state===dt)ue(e);else if(e.