familiar-vue 0.1.0 → 0.2.0
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/README.md +8 -3
- package/dist/blocks/bots/engine/plastic.d.ts +5 -0
- package/dist/blocks/bots/engine/types.d.ts +5 -3
- package/dist/blocks/bots/types-1.d.ts +2 -2
- package/dist/blocks/bots/types.d.ts +2 -2
- package/dist/blocks/gallery/GalleryGrid.vue.d.ts +46 -0
- package/dist/blocks/gallery/MusicPlayer.vue.d.ts +34 -0
- package/dist/blocks/gallery/VideoPlayer.vue.d.ts +34 -0
- package/dist/blocks/gallery/icons.d.ts +49 -0
- package/dist/blocks/gallery/index.d.ts +141 -0
- package/dist/blocks/gallery/styles.d.ts +1 -0
- package/dist/blocks/gallery/support.d.ts +38 -0
- package/dist/blocks/gallery/types.d.ts +132 -0
- package/dist/blocks/image/studio/ImageStudio.vue.d.ts +1 -1
- package/dist/blocks/jelly/JellySurface.vue.d.ts +43 -0
- package/dist/blocks/jelly/engine/color.d.ts +12 -0
- package/dist/blocks/jelly/engine/environment.d.ts +2 -0
- package/dist/blocks/jelly/engine/frosted.d.ts +25 -0
- package/dist/blocks/jelly/engine/geometry.d.ts +13 -0
- package/dist/blocks/jelly/engine/icons.d.ts +16 -0
- package/dist/blocks/jelly/engine/renderer.d.ts +39 -0
- package/dist/blocks/jelly/engine/sound.d.ts +9 -0
- package/dist/blocks/jelly/engine/textures.d.ts +5 -0
- package/dist/blocks/jelly/index.d.ts +23 -0
- package/dist/blocks/jelly/types.d.ts +68 -0
- package/dist/blocks/loading/BreathingRing.vue.d.ts +25 -0
- package/dist/blocks/loading/index.d.ts +54 -1
- package/dist/blocks/loading/types.d.ts +22 -0
- package/dist/blocks/metal/MetalBadge.vue.d.ts +2 -2
- package/dist/bots.cjs +1 -1
- package/dist/bots.js +1 -1
- package/dist/familiar-vue.css +1 -1
- package/dist/gallery.cjs +2 -0
- package/dist/gallery.cjs.map +1 -0
- package/dist/gallery.d.ts +1 -0
- package/dist/gallery.js +8 -0
- package/dist/gallery.js.map +1 -0
- package/dist/index-Bb3rhhZY.cjs +221 -0
- package/dist/index-Bb3rhhZY.cjs.map +1 -0
- package/dist/index-C96O9k0x.cjs +289 -0
- package/dist/index-C96O9k0x.cjs.map +1 -0
- package/dist/index-CgkG0Pah.js +2580 -0
- package/dist/index-CgkG0Pah.js.map +1 -0
- package/dist/index-CjA5aaxl.js +934 -0
- package/dist/index-CjA5aaxl.js.map +1 -0
- package/dist/index-CpPZg7s9.js +476 -0
- package/dist/index-CpPZg7s9.js.map +1 -0
- package/dist/{index-CQIOTNIw.js → index-Da5OgBHn.js} +1269 -1239
- package/dist/index-Da5OgBHn.js.map +1 -0
- package/dist/index-Dc4JnH_g.cjs +80 -0
- package/dist/index-Dc4JnH_g.cjs.map +1 -0
- package/dist/index-U59nAOr-.cjs +1096 -0
- package/dist/index-U59nAOr-.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +58 -49
- package/dist/index.js.map +1 -1
- package/dist/jelly.cjs +2 -0
- package/dist/jelly.cjs.map +1 -0
- package/dist/jelly.d.ts +2 -0
- package/dist/jelly.js +9 -0
- package/dist/jelly.js.map +1 -0
- package/dist/loading.cjs +1 -1
- package/dist/loading.js +4 -3
- package/package.json +11 -1
- package/dist/index-BAZi5af3.cjs +0 -221
- package/dist/index-BAZi5af3.cjs.map +0 -1
- package/dist/index-BmMsid7x.js +0 -422
- package/dist/index-BmMsid7x.js.map +0 -1
- package/dist/index-CQIOTNIw.js.map +0 -1
- package/dist/index-DZJ-MNwi.cjs +0 -80
- package/dist/index-DZJ-MNwi.cjs.map +0 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),j={class:"fv-loading__ring",viewBox:"0 0 40 40","aria-hidden":"true"},H=["stroke-dasharray"],W={key:0,class:"fv-loading__label"},q=15.5,Y=e.defineComponent({name:"Loading",__name:"Loading",props:{label:{default:"Loading"},progress:{default:null},size:{default:"md"}},setup(o){const l=o,a=2*Math.PI*15.5,t=e.computed(()=>g(l.progress)),r=e.computed(()=>t.value==null?`${a*.25} ${a}`:`${a*(t.value/100)} ${a}`);function g(i){return i==null||Number.isNaN(i)?null:Math.min(100,Math.max(0,Math.round(i)))}return(i,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fv-loading",`fv-loading--${o.size}`]),role:"status","aria-live":"polite"},[(e.openBlock(),e.createElementBlock("svg",j,[e.createElementVNode("circle",{class:"fv-loading__track",cx:"20",cy:"20",r:q}),e.createElementVNode("circle",{class:e.normalizeClass(["fv-loading__arc",{"is-indeterminate":t.value==null}]),cx:"20",cy:"20",r:q,"stroke-dasharray":r.value},null,10,H)])),o.label?(e.openBlock(),e.createElementBlock("span",W,[e.createTextVNode(e.toDisplayString(o.label),1),t.value!=null?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" · "+e.toDisplayString(t.value)+"%",1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),Q=`
|
|
2
|
+
attribute vec2 aPos;
|
|
3
|
+
void main () { gl_Position = vec4(aPos, 0.0, 1.0); }
|
|
4
|
+
`,X=`
|
|
5
|
+
precision highp float;
|
|
6
|
+
uniform vec2 uRes;
|
|
7
|
+
uniform float uTime;
|
|
8
|
+
uniform float uGather;
|
|
9
|
+
uniform float uScatter;
|
|
10
|
+
uniform float uDensity;
|
|
11
|
+
uniform float uScale;
|
|
12
|
+
uniform float uOpacity;
|
|
13
|
+
uniform vec3 uTint;
|
|
14
|
+
|
|
15
|
+
const mat2 M = mat2(1.6, 1.2, -1.2, 1.6);
|
|
16
|
+
|
|
17
|
+
vec2 hash (vec2 p) {
|
|
18
|
+
p = vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)));
|
|
19
|
+
return -1.0 + 2.0 * fract(sin(p) * 43758.5453123);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
float noise (vec2 p) {
|
|
23
|
+
const float K1 = 0.366025404;
|
|
24
|
+
const float K2 = 0.211324865;
|
|
25
|
+
vec2 i = floor(p + (p.x + p.y) * K1);
|
|
26
|
+
vec2 a = p - i + (i.x + i.y) * K2;
|
|
27
|
+
vec2 o = (a.x > a.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);
|
|
28
|
+
vec2 b = a - o + K2;
|
|
29
|
+
vec2 c = a - 1.0 + 2.0 * K2;
|
|
30
|
+
vec3 h = max(0.5 - vec3(dot(a, a), dot(b, b), dot(c, c)), 0.0);
|
|
31
|
+
vec3 n = h * h * h * h
|
|
32
|
+
* vec3(dot(a, hash(i)), dot(b, hash(i + o)), dot(c, hash(i + 1.0)));
|
|
33
|
+
return dot(n, vec3(70.0));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
float fbm (vec2 p) {
|
|
37
|
+
float total = 0.0;
|
|
38
|
+
float amp = 0.5;
|
|
39
|
+
for (int i = 0; i < 5; i++) {
|
|
40
|
+
total += noise(p) * amp;
|
|
41
|
+
p = M * p;
|
|
42
|
+
amp *= 0.45;
|
|
43
|
+
}
|
|
44
|
+
return total;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
void main () {
|
|
48
|
+
float aspect = uRes.x / max(uRes.y, 1.0);
|
|
49
|
+
vec2 p = vec2(gl_FragCoord.x / uRes.x * aspect, gl_FragCoord.y / uRes.y);
|
|
50
|
+
vec2 fromC = p - vec2(aspect * 0.5, 0.5);
|
|
51
|
+
|
|
52
|
+
// Gathering samples further out from the centre, so the shapes translate
|
|
53
|
+
// inward from every edge; scattering pushes them back out and up, the way
|
|
54
|
+
// wind lifts a cloud bank off the ground.
|
|
55
|
+
vec2 q = p + fromC * (uGather * 1.7 - uScatter * 2.4) - vec2(0.0, uScatter * 1.3);
|
|
56
|
+
|
|
57
|
+
float drift = 0.3 + uGather * 0.45 + uScatter * 1.2;
|
|
58
|
+
float shape = fbm(q * uScale + vec2(uTime * drift, -uTime * drift * 0.35));
|
|
59
|
+
float detail = fbm(q * uScale * 2.3 + shape * 1.4 + vec2(-uTime * drift * 0.6, uTime * 0.1));
|
|
60
|
+
|
|
61
|
+
// The sky stays open while the clouds stream in — coverage follows a
|
|
62
|
+
// quadratic ramp so the gather journey is visible before the fog closes.
|
|
63
|
+
float ramp = uGather * uGather;
|
|
64
|
+
float cov = detail * uDensity * 0.5 - 0.4 + ramp * 2.1 - uScatter * 1.8;
|
|
65
|
+
float mist = smoothstep(0.35, 0.8, cov);
|
|
66
|
+
|
|
67
|
+
// The flat fog term guarantees complete cover once the gather ends.
|
|
68
|
+
float alpha = max(mist, smoothstep(0.55, 1.0, uGather)) * uOpacity;
|
|
69
|
+
alpha *= 1.0 - smoothstep(0.05, 0.8, uScatter);
|
|
70
|
+
|
|
71
|
+
float shade = fbm(q * uScale * 3.1 + detail);
|
|
72
|
+
vec3 col = uTint * (0.9 + shade * 0.22);
|
|
73
|
+
// A breath of blue-grey in the crevices while the sky is still open.
|
|
74
|
+
col = mix(col, col * vec3(0.86, 0.9, 1.02), mist * (1.0 - uGather) * 0.45);
|
|
75
|
+
|
|
76
|
+
// The canvas is composited as premultiplied alpha.
|
|
77
|
+
gl_FragColor = vec4(col * alpha, alpha);
|
|
78
|
+
}
|
|
79
|
+
`,V=o=>o<.5?4*o*o*o:1-Math.pow(-2*o+2,3)/2,J=o=>o*o,Z=o=>1-Math.pow(1-o,3);function I(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function z(o,l){o.clearRect(0,0,1,1),o.fillStyle=l,o.fillRect(0,0,1,1);const[a,t,r,g]=o.getImageData(0,0,1,1).data;return g===0?null:[a/255,t/255,r/255]}function ee(o,l){let a=o;for(;a;){const t=getComputedStyle(a).backgroundColor;if(t&&t!=="transparent"){const r=z(l,t);if(r)return r}a=a.parentElement}return[1,1,1]}function te(o,l,a={}){const t=o.getContext("webgl",{alpha:!0,depth:!1,stencil:!1,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!0});if(!t||t.isContextLost())return null;const r={color:"auto",speed:.5,density:2.2,scale:1,opacity:.96,quality:.66,...a},g=document.createElement("canvas");g.width=g.height=1;const i=g.getContext("2d",{willReadFrequently:!0});if(!i)return null;function h(n,u){const s=t.createShader(n);return t.shaderSource(s,u),t.compileShader(s),t.getShaderParameter(s,t.COMPILE_STATUS)?s:(console.error("CloudLoading shader error:",t.getShaderInfoLog(s)),t.deleteShader(s),null)}const m=h(t.VERTEX_SHADER,Q),M=h(t.FRAGMENT_SHADER,X);if(!m||!M)return null;const v=t.createProgram();if(t.attachShader(v,m),t.attachShader(v,M),t.linkProgram(v),!t.getProgramParameter(v,t.LINK_STATUS))return console.error("CloudLoading program error:",t.getProgramInfoLog(v)),null;t.useProgram(v);const E=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,E),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),t.STATIC_DRAW);const f=t.getAttribLocation(v,"aPos");t.enableVertexAttribArray(f),t.vertexAttribPointer(f,2,t.FLOAT,!1,0,0);const p=n=>t.getUniformLocation(v,n),y={res:p("uRes"),time:p("uTime"),gather:p("uGather"),scatter:p("uScatter"),density:p("uDensity"),scale:p("uScale"),opacity:p("uOpacity"),tint:p("uTint")};let b=0,k=0,x=[1,1,1],B=Math.random()*64;function C(){x=r.color==="auto"?ee(l,i):z(i,r.color)??[1,1,1]}function S(){const n=Math.min(window.devicePixelRatio||1,1.5),u=Math.min(Math.max(r.quality,.2),1),s=Math.max(2,Math.round(o.clientWidth*n*u)),c=Math.max(2,Math.round(o.clientHeight*n*u));(o.width!==s||o.height!==c)&&(o.width=s,o.height=c),t.viewport(0,0,s,c)}C(),S();let d=[];function w(n,u,s,c=V,R){const F=n==="gather"?b:k;if(s<=0||F===u){P(n,u),R?.();return}d=d.filter(K=>K.param!==n),d.push({param:n,from:F,to:u,start:performance.now(),duration:s,ease:c,done:R})}function P(n,u){n==="gather"?b=u:k=u}let _=0,N=!1,A=!1;function D(n){if(A)return;const u=Math.min((n-L)/1e3,1/20);if(L=n,B+=u*r.speed*.12,d=d.filter(c=>{const R=Math.min((n-c.start)/c.duration,1);return P(c.param,c.from+(c.to-c.from)*c.ease(R)),R>=1?(c.done?.(),!1):!0}),t.uniform2f(y.res,o.width,o.height),t.uniform1f(y.time,B),t.uniform1f(y.gather,b),t.uniform1f(y.scatter,k),t.uniform1f(y.density,Math.max(r.density,0)),t.uniform1f(y.scale,Math.max(r.scale,.05)),t.uniform1f(y.opacity,Math.min(Math.max(r.opacity,0),1)),t.uniform3f(y.tint,x[0],x[1],x[2]),t.drawArrays(t.TRIANGLE_STRIP,0,4),b<=0&&k>=1&&d.length===0){N=!1;return}_=requestAnimationFrame(D)}let L=0;function T(){A||N||(N=!0,L=performance.now(),_=requestAnimationFrame(D))}const $=new ResizeObserver(()=>{S(),T()});return $.observe(o),{show(n=1600){C(),S();const u=()=>T();return I()?(b=1,k=0,u(),Promise.resolve()):new Promise(s=>{w("scatter",0,Math.min(420,n*.4),Z),w("gather",1,n,V,()=>{u(),s()})})},hide(n=1400){const u=()=>{b=0,k=1,T(),s()};let s=()=>{};const c=new Promise(R=>{s=R});return I()?(b=0,k=1,T(),s(),c):(w("gather",0,n,V),w("scatter",1,n*.78,J,u),c)},snap(n){b=n==="shown"?1:0,k=n==="shown"?0:1,d=[],T()},setOptions(n){Object.assign(r,n),C(),S(),T()},destroy(){A=!0,cancelAnimationFrame(_),$.disconnect(),t.getExtension("WEBGL_lose_context")?.loseContext()}}}const oe=["aria-busy","data-fullscreen"],ae={key:0,class:"fv-cloud-fallback","aria-hidden":"true"},ne={class:"fv-cloud-body"},re={key:0,class:"fv-cloud-spinner","aria-hidden":"true"},le={key:1,class:"fv-cloud-label"},ie=e.defineComponent({name:"CloudLoading",__name:"CloudLoading",props:e.mergeModels({modelValue:{type:Boolean,default:!0},label:{default:"Loading"},progress:{default:null},showSpinner:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!0},zIndex:{default:2e3},lockScroll:{type:Boolean,default:!0},gatherDuration:{default:1600},dissipateDuration:{default:1400},speed:{default:.5},density:{default:2.2},scale:{default:1},opacity:{default:.96},quality:{default:.66},color:{default:"auto"},respectReducedMotion:{type:Boolean,default:!0}},{modelValue:{type:Boolean,default:!0},modelModifiers:{}}),emits:e.mergeModels(["shown","dissipated"],["update:modelValue"]),setup(o,{emit:l}){const a=o,t=l,r=e.useModel(o,"modelValue"),g=e.ref(null),i=e.ref(null),h=e.ref(!0),m=e.ref("idle"),M=e.ref(!1),v=e.computed(()=>a.progress==null||Number.isNaN(a.progress)?null:Math.min(100,Math.max(0,Math.round(a.progress)))),E=e.computed(()=>({zIndex:a.zIndex}));let f=null,p=0;function y(){return a.respectReducedMotion&&typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}async function b(){await e.nextTick();const d=i.value;if(!(!d||f)){try{f=te(d,g.value,{color:a.color,speed:a.speed,density:a.density,scale:a.scale,opacity:a.opacity,quality:a.quality})}catch{f=null}h.value=f!==null}}function k(){M.value=!0,b().then(()=>{if(r.value){if(m.value="gathering",!f){x=window.setTimeout(()=>{m.value="holding",t("shown")},y()?0:a.gatherDuration);return}f.show(a.gatherDuration).then(()=>{r.value&&(m.value="holding",t("shown"))})}})}let x=0;function B(){if(m.value="dissipating",window.clearTimeout(x),!f){window.setTimeout(()=>C(),y()?0:a.dissipateDuration);return}f.hide(a.dissipateDuration).then(C),p=window.setTimeout(C,a.dissipateDuration+600)}function C(){window.clearTimeout(p),!r.value&&m.value==="dissipating"&&(m.value="idle",M.value=!1,t("dissipated"),f?.destroy(),f=null)}e.watch(r,d=>{d?(window.clearTimeout(p),k()):M.value&&B()},{flush:"post",immediate:!0});let S="";return e.watch(r,d=>{if(!a.lockScroll||typeof document>"u")return;const w=document.documentElement;d?(S=w.style.overflow,w.style.overflow="hidden"):w.style.overflow=S}),e.onBeforeUnmount(()=>{window.clearTimeout(x),window.clearTimeout(p),a.lockScroll&&typeof document<"u"&&(document.documentElement.style.overflow=S),f?.destroy(),f=null}),(d,w)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body",disabled:!o.fullscreen},[M.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"overlayRef",ref:g,class:e.normalizeClass(["fv-cloud-loading",`is-${m.value}`]),style:e.normalizeStyle(E.value),role:"status","aria-live":"polite","aria-busy":r.value,"data-fullscreen":o.fullscreen||void 0},[e.createElementVNode("canvas",{ref_key:"canvasRef",ref:i,class:"fv-cloud-canvas","aria-hidden":"true"},null,512),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ae,[...w[0]||(w[0]=[e.createElementVNode("i",null,null,-1),e.createElementVNode("i",null,null,-1),e.createElementVNode("i",null,null,-1)])])),e.createElementVNode("div",ne,[e.renderSlot(d.$slots,"default",{phase:m.value,progress:v.value},()=>[o.showSpinner?(e.openBlock(),e.createElementBlock("span",re)):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("span",le,[e.createTextVNode(e.toDisplayString(o.label),1),v.value!=null?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" · "+e.toDisplayString(v.value)+"%",1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])],14,oe)):e.createCommentVNode("",!0)],8,["disabled"]))}}),se=["aria-busy"],ue=e.defineComponent({name:"BreathingRing",__name:"BreathingRing",props:{active:{type:Boolean,default:!0},color:{default:"#8ab4ff"},speed:{default:2.6},duration:{default:2.6},thickness:{default:2},radius:{default:void 0},glow:{default:6},respectReducedMotion:{type:Boolean,default:!0}},setup(o){const l=o,a=e.ref(null),t=e.ref("12px");function r(){if(l.radius!=null)return;const i=[...a.value?.children??[]].find(m=>m instanceof HTMLElement&&!m.classList.contains("fv-ring__band"));if(!i)return;const h=getComputedStyle(i).borderRadius;h&&h!=="0px"&&(t.value=h)}e.onMounted(r),e.watch(()=>l.active,i=>{i&&r()});const g=e.computed(()=>{const i=l.radius==null?t.value:typeof l.radius=="number"?`${l.radius}px`:l.radius;return{"--fv-ring-color":l.color,"--fv-ring-radius":i,"--fv-ring-thickness":`${Math.max(1,l.thickness)}px`,"--fv-ring-speed":`${Math.max(.4,l.speed||2.6)}s`,"--fv-ring-beat":`${Math.max(.4,l.duration||2.6)}s`,"--fv-ring-glow":`${Math.max(0,l.glow)}px`}});return(i,h)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"host",ref:a,class:e.normalizeClass(["fv-ring",{"fv-ring--active":o.active,"fv-ring--force-motion":!o.respectReducedMotion}]),style:e.normalizeStyle(g.value),"aria-busy":o.active||void 0},[h[0]||(h[0]=e.createElementVNode("span",{class:"fv-ring__band","aria-hidden":"true"},null,-1)),e.renderSlot(i.$slots,"default")],14,se))}}),O=Y,G=ue,U=ie,ce=Object.freeze(Object.defineProperty({__proto__:null,BreathingRing:G,CloudLoading:U,Loading:O},Symbol.toStringTag,{value:"Module"}));exports.BreathingRing=G;exports.CloudLoading=U;exports.Loading=O;exports.index=ce;
|
|
80
|
+
//# sourceMappingURL=index-Dc4JnH_g.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Dc4JnH_g.cjs","sources":["../src/blocks/loading/Loading.vue","../src/blocks/loading/engine.ts","../src/blocks/loading/CloudLoading.vue","../src/blocks/loading/BreathingRing.vue","../src/blocks/loading/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\n/* ══ Loading — the plain spinner component ═══════════════════════════════\n *\n * An SVG ring for inline, determinate or indeterminate loading. It sizes\n * through `sm`/`md`/`lg`, shows a label and an optional percentage, and\n * sits still under `prefers-reduced-motion` (the arc stops spinning, the\n * label carries the state).\n */\nimport { computed } from 'vue'\nimport type { LoadingProps } from './types'\n\ndefineOptions({ name: 'Loading' })\n\nconst props = withDefaults(defineProps<LoadingProps>(), {\n label: 'Loading',\n progress: null,\n size: 'md',\n})\n\nconst RADIUS = 15.5\nconst CIRCUMFERENCE = 2 * Math.PI * 15.5\n\nconst percent = computed(() => clampProgress(props.progress))\nconst dash = computed(() =>\n percent.value == null\n ? `${CIRCUMFERENCE * 0.25} ${CIRCUMFERENCE}`\n : `${CIRCUMFERENCE * (percent.value / 100)} ${CIRCUMFERENCE}`,\n)\n\nfunction clampProgress(value: number | null | undefined): number | null {\n if (value == null || Number.isNaN(value)) return null\n return Math.min(100, Math.max(0, Math.round(value)))\n}\n</script>\n\n<template>\n <div class=\"fv-loading\" :class=\"`fv-loading--${size}`\" role=\"status\" aria-live=\"polite\">\n <svg class=\"fv-loading__ring\" viewBox=\"0 0 40 40\" aria-hidden=\"true\">\n <circle class=\"fv-loading__track\" cx=\"20\" cy=\"20\" :r=\"RADIUS\" />\n <circle\n class=\"fv-loading__arc\"\n cx=\"20\" cy=\"20\" :r=\"RADIUS\"\n :stroke-dasharray=\"dash\"\n :class=\"{ 'is-indeterminate': percent == null }\"\n />\n </svg>\n <span v-if=\"label\" class=\"fv-loading__label\">\n {{ label }}<template v-if=\"percent != null\"> · {{ percent }}%</template>\n </span>\n </div>\n</template>\n\n<style>\n.fv-loading {\n display: inline-flex;\n align-items: center;\n gap: 10px;\n color: inherit;\n}\n.fv-loading__ring {\n width: 28px;\n height: 28px;\n flex: none;\n}\n.fv-loading--sm .fv-loading__ring { width: 18px; height: 18px; }\n.fv-loading--lg .fv-loading__ring { width: 44px; height: 44px; }\n.fv-loading__track {\n fill: none;\n stroke: color-mix(in srgb, currentColor 18%, transparent);\n stroke-width: 3;\n}\n.fv-loading__arc {\n fill: none;\n stroke: currentColor;\n stroke-width: 3;\n stroke-linecap: round;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n}\n.fv-loading__arc.is-indeterminate {\n animation: fv-loading-spin 1.1s linear infinite;\n}\n@keyframes fv-loading-spin {\n to { transform: rotate(270deg); }\n}\n.fv-loading__label {\n font: 500 12px/1.4 var(--fv-font-ui, system-ui);\n color: inherit;\n white-space: nowrap;\n}\n@media (prefers-reduced-motion: reduce) {\n .fv-loading__arc.is-indeterminate { animation: none; }\n}\n</style>\n","/** Cloud Loading — a full-screen fog of procedural clouds that gathers\n * over the page while it loads and blows away when it is done.\n *\n * One fragment shader builds a fractal-noise cloud field and the component\n * drives it through two phases. Gathering warps the sample coordinates\n * outward, so every cloud shape streams in from the edges toward the\n * centre while the coverage threshold climbs — when it ends the screen is\n * completely fogged. Dissipating runs the field in reverse with an upward\n * wind bias and a fading alpha, so the fog evaporates off the page instead\n * of rewinding.\n *\n * The engine owns its own requestAnimationFrame loop and pauses itself\n * once the fog has fully gone; while the screen is covered the clouds keep\n * drifting so the pause never looks frozen.\n */\n\nexport interface CloudEngineOptions {\n /** Cloud tint as any CSS color, or `'auto'` to resolve the page\n * background so the fog melts into it. Default `'auto'`. */\n color?: 'auto' | string\n /** Drift speed multiplier (0 to 5). Default `0.5`. */\n speed?: number\n /** How sharply cloud shapes condense out of the noise field (0 to 16).\n * Default `2.2`. */\n density?: number\n /** Cloud pattern scale (0.3 to 3). Lower values make bigger clouds.\n * Default `1`. */\n scale?: number\n /** Peak opacity of the fog once the screen is covered (0 to 1).\n * Default `0.96`. */\n opacity?: number\n /** Render resolution as a fraction of the overlay's CSS size (0.2 to 1).\n * Clouds are soft, so lower values look nearly identical. Default `0.66`. */\n quality?: number\n}\n\nexport interface CloudEngine {\n /** Stream the clouds in from every edge until the screen is fully fogged. */\n show(duration?: number): Promise<void>\n /** Evaporate the fog off the page. Resolves when the last cloud is gone. */\n hide(duration?: number): Promise<void>\n /** Jump straight to a state with no animation (reduced motion). */\n snap(state: 'shown' | 'hidden'): void\n /** Update tuning without rebuilding the pipeline. */\n setOptions(options: CloudEngineOptions): void\n destroy(): void\n}\n\nconst VERT = `\nattribute vec2 aPos;\nvoid main () { gl_Position = vec4(aPos, 0.0, 1.0); }\n`\n\nconst FRAG = `\nprecision highp float;\nuniform vec2 uRes;\nuniform float uTime;\nuniform float uGather;\nuniform float uScatter;\nuniform float uDensity;\nuniform float uScale;\nuniform float uOpacity;\nuniform vec3 uTint;\n\nconst mat2 M = mat2(1.6, 1.2, -1.2, 1.6);\n\nvec2 hash (vec2 p) {\n p = vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)));\n return -1.0 + 2.0 * fract(sin(p) * 43758.5453123);\n}\n\nfloat noise (vec2 p) {\n const float K1 = 0.366025404;\n const float K2 = 0.211324865;\n vec2 i = floor(p + (p.x + p.y) * K1);\n vec2 a = p - i + (i.x + i.y) * K2;\n vec2 o = (a.x > a.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n vec2 b = a - o + K2;\n vec2 c = a - 1.0 + 2.0 * K2;\n vec3 h = max(0.5 - vec3(dot(a, a), dot(b, b), dot(c, c)), 0.0);\n vec3 n = h * h * h * h\n * vec3(dot(a, hash(i)), dot(b, hash(i + o)), dot(c, hash(i + 1.0)));\n return dot(n, vec3(70.0));\n}\n\nfloat fbm (vec2 p) {\n float total = 0.0;\n float amp = 0.5;\n for (int i = 0; i < 5; i++) {\n total += noise(p) * amp;\n p = M * p;\n amp *= 0.45;\n }\n return total;\n}\n\nvoid main () {\n float aspect = uRes.x / max(uRes.y, 1.0);\n vec2 p = vec2(gl_FragCoord.x / uRes.x * aspect, gl_FragCoord.y / uRes.y);\n vec2 fromC = p - vec2(aspect * 0.5, 0.5);\n\n // Gathering samples further out from the centre, so the shapes translate\n // inward from every edge; scattering pushes them back out and up, the way\n // wind lifts a cloud bank off the ground.\n vec2 q = p + fromC * (uGather * 1.7 - uScatter * 2.4) - vec2(0.0, uScatter * 1.3);\n\n float drift = 0.3 + uGather * 0.45 + uScatter * 1.2;\n float shape = fbm(q * uScale + vec2(uTime * drift, -uTime * drift * 0.35));\n float detail = fbm(q * uScale * 2.3 + shape * 1.4 + vec2(-uTime * drift * 0.6, uTime * 0.1));\n\n // The sky stays open while the clouds stream in — coverage follows a\n // quadratic ramp so the gather journey is visible before the fog closes.\n float ramp = uGather * uGather;\n float cov = detail * uDensity * 0.5 - 0.4 + ramp * 2.1 - uScatter * 1.8;\n float mist = smoothstep(0.35, 0.8, cov);\n\n // The flat fog term guarantees complete cover once the gather ends.\n float alpha = max(mist, smoothstep(0.55, 1.0, uGather)) * uOpacity;\n alpha *= 1.0 - smoothstep(0.05, 0.8, uScatter);\n\n float shade = fbm(q * uScale * 3.1 + detail);\n vec3 col = uTint * (0.9 + shade * 0.22);\n // A breath of blue-grey in the crevices while the sky is still open.\n col = mix(col, col * vec3(0.86, 0.9, 1.02), mist * (1.0 - uGather) * 0.45);\n\n // The canvas is composited as premultiplied alpha.\n gl_FragColor = vec4(col * alpha, alpha);\n}\n`\n\ninterface Tween {\n param: 'gather' | 'scatter'\n from: number\n to: number\n start: number\n duration: number\n ease: (t: number) => number\n done?: () => void\n}\n\nconst easeInOutCubic = (t: number) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2)\nconst easeInQuad = (t: number) => t * t\nconst easeOutCubic = (t: number) => 1 - Math.pow(1 - t, 3)\n\nfunction prefersReducedMotion(): boolean {\n return typeof window !== 'undefined'\n && window.matchMedia('(prefers-reduced-motion: reduce)').matches\n}\n\nfunction parseCssColor(probe: CanvasRenderingContext2D, input: string): [number, number, number] | null {\n probe.clearRect(0, 0, 1, 1)\n probe.fillStyle = input\n probe.fillRect(0, 0, 1, 1)\n const [r, g, b, a] = probe.getImageData(0, 0, 1, 1).data\n if (a === 0) return null\n return [r / 255, g / 255, b / 255]\n}\n\n/** Resolve `'auto'` to the nearest opaque background colour above `el`, so\n * the fog melts into whatever surface the overlay sits on. */\nfunction resolveAutoColor(el: Element | null, probe: CanvasRenderingContext2D): [number, number, number] {\n let node: Element | null = el\n while (node) {\n const bg = getComputedStyle(node).backgroundColor\n if (bg && bg !== 'transparent') {\n const rgb = parseCssColor(probe, bg)\n if (rgb) return rgb\n }\n node = node.parentElement\n }\n return [1, 1, 1]\n}\n\nexport function createCloudEngine(\n canvas: HTMLCanvasElement,\n host: Element | null,\n options: CloudEngineOptions = {},\n): CloudEngine | null {\n const gl = canvas.getContext('webgl', {\n alpha: true,\n depth: false,\n stencil: false,\n antialias: false,\n premultipliedAlpha: true,\n // Cheap for a soft fog, and it keeps readPixels honest for tests and\n // debugging instead of racing the compositor's buffer clear.\n preserveDrawingBuffer: true,\n })\n if (!gl || gl.isContextLost()) return null\n\n const config = {\n color: 'auto' as 'auto' | string,\n speed: 0.5,\n density: 2.2,\n scale: 1,\n opacity: 0.96,\n quality: 0.66,\n ...options,\n }\n\n const probeCanvas = document.createElement('canvas')\n probeCanvas.width = probeCanvas.height = 1\n const probe = probeCanvas.getContext('2d', { willReadFrequently: true })\n if (!probe) return null\n\n function compile(type: number, source: string): WebGLShader | null {\n const shader = gl!.createShader(type)!\n gl!.shaderSource(shader, source)\n gl!.compileShader(shader)\n if (!gl!.getShaderParameter(shader, gl!.COMPILE_STATUS)) {\n console.error('CloudLoading shader error:', gl!.getShaderInfoLog(shader))\n gl!.deleteShader(shader)\n return null\n }\n return shader\n }\n\n const vs = compile(gl.VERTEX_SHADER, VERT)\n const fs = compile(gl.FRAGMENT_SHADER, FRAG)\n if (!vs || !fs) return null\n const program = gl.createProgram()!\n gl.attachShader(program, vs)\n gl.attachShader(program, fs)\n gl.linkProgram(program)\n if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {\n console.error('CloudLoading program error:', gl.getProgramInfoLog(program))\n return null\n }\n gl.useProgram(program)\n\n const quad = gl.createBuffer()\n gl.bindBuffer(gl.ARRAY_BUFFER, quad)\n gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]), gl.STATIC_DRAW)\n const aPos = gl.getAttribLocation(program, 'aPos')\n gl.enableVertexAttribArray(aPos)\n gl.vertexAttribPointer(aPos, 2, gl.FLOAT, false, 0, 0)\n\n const u = (name: string) => gl!.getUniformLocation(program, name)\n const uniforms = {\n res: u('uRes'),\n time: u('uTime'),\n gather: u('uGather'),\n scatter: u('uScatter'),\n density: u('uDensity'),\n scale: u('uScale'),\n opacity: u('uOpacity'),\n tint: u('uTint'),\n }\n\n let gather = 0\n let scatter = 0\n let tint: [number, number, number] = [1, 1, 1]\n let time = Math.random() * 64\n\n function syncTint() {\n tint = config.color === 'auto'\n ? resolveAutoColor(host, probe!)\n : parseCssColor(probe!, config.color) ?? [1, 1, 1]\n }\n\n function syncSize() {\n const dpr = Math.min(window.devicePixelRatio || 1, 1.5)\n const quality = Math.min(Math.max(config.quality, 0.2), 1)\n const width = Math.max(2, Math.round(canvas.clientWidth * dpr * quality))\n const height = Math.max(2, Math.round(canvas.clientHeight * dpr * quality))\n if (canvas.width !== width || canvas.height !== height) {\n canvas.width = width\n canvas.height = height\n }\n gl!.viewport(0, 0, width, height)\n }\n\n syncTint()\n syncSize()\n\n let tweens: Tween[] = []\n function tween(param: 'gather' | 'scatter', to: number, duration: number, ease = easeInOutCubic, done?: () => void) {\n const from = param === 'gather' ? gather : scatter\n if (duration <= 0 || from === to) {\n applyParam(param, to)\n done?.()\n return\n }\n tweens = tweens.filter((t) => t.param !== param)\n tweens.push({ param, from, to, start: performance.now(), duration, ease, done })\n }\n\n function applyParam(param: 'gather' | 'scatter', value: number) {\n if (param === 'gather') gather = value\n else scatter = value\n }\n\n let raf = 0\n let running = false\n let destroyed = false\n\n function frame(now: number) {\n if (destroyed) return\n const delta = Math.min((now - lastTick) / 1000, 1 / 20)\n lastTick = now\n time += delta * config.speed * 0.12\n\n const still = tweens.filter((t) => {\n const raw = Math.min((now - t.start) / t.duration, 1)\n applyParam(t.param, t.from + (t.to - t.from) * t.ease(raw))\n if (raw >= 1) {\n t.done?.()\n return false\n }\n return true\n })\n tweens = still\n\n gl!.uniform2f(uniforms.res, canvas.width, canvas.height)\n gl!.uniform1f(uniforms.time, time)\n gl!.uniform1f(uniforms.gather, gather)\n gl!.uniform1f(uniforms.scatter, scatter)\n gl!.uniform1f(uniforms.density, Math.max(config.density, 0))\n gl!.uniform1f(uniforms.scale, Math.max(config.scale, 0.05))\n gl!.uniform1f(uniforms.opacity, Math.min(Math.max(config.opacity, 0), 1))\n gl!.uniform3f(uniforms.tint, tint[0], tint[1], tint[2])\n gl!.drawArrays(gl!.TRIANGLE_STRIP, 0, 4)\n\n // Fully hidden and nothing left to animate — stop drawing until the\n // next show(); a covered screen keeps drifting so the pause reads as\n // weather, not a freeze-frame.\n if (gather <= 0 && scatter >= 1 && tweens.length === 0) {\n running = false\n return\n }\n raf = requestAnimationFrame(frame)\n }\n\n let lastTick = 0\n function startLoop() {\n if (destroyed || running) return\n running = true\n lastTick = performance.now()\n raf = requestAnimationFrame(frame)\n }\n\n const observer = new ResizeObserver(() => {\n syncSize()\n startLoop()\n })\n observer.observe(canvas)\n\n return {\n show(duration = 1600) {\n syncTint()\n syncSize()\n const finish = () => startLoop()\n if (prefersReducedMotion()) {\n gather = 1\n scatter = 0\n finish()\n return Promise.resolve()\n }\n return new Promise<void>((resolve) => {\n tween('scatter', 0, Math.min(420, duration * 0.4), easeOutCubic)\n tween('gather', 1, duration, easeInOutCubic, () => {\n finish()\n resolve()\n })\n })\n },\n hide(duration = 1400) {\n const finish = () => {\n gather = 0\n scatter = 1\n startLoop()\n resolve()\n }\n let resolve = () => {}\n const promise = new Promise<void>((r) => { resolve = r })\n if (prefersReducedMotion()) {\n gather = 0\n scatter = 1\n startLoop()\n resolve()\n return promise\n }\n tween('gather', 0, duration, easeInOutCubic)\n tween('scatter', 1, duration * 0.78, easeInQuad, finish)\n return promise\n },\n snap(state) {\n gather = state === 'shown' ? 1 : 0\n scatter = state === 'shown' ? 0 : 1\n tweens = []\n startLoop()\n },\n setOptions(next) {\n Object.assign(config, next)\n syncTint()\n syncSize()\n startLoop()\n },\n destroy() {\n destroyed = true\n cancelAnimationFrame(raf)\n observer.disconnect()\n gl!.getExtension('WEBGL_lose_context')?.loseContext()\n },\n }\n}\n","<script setup lang=\"ts\">\n/* ══ CloudLoading — a full-screen loading overlay of gathering clouds ════\n *\n * Bind it with v-model and run your work while the sky closes over the\n * page: clouds stream in from every edge until the screen is completely\n * fogged, the label and spinner surface once it is, and when the model\n * flips back the fog evaporates off the page before the overlay unmounts.\n *\n * ── WHY THE OVERLAY OUTLIVES THE MODEL ──────────────────────────────────\n * `overlayVisible` (what is in the DOM) is not `modelValue` (what is\n * loading). Setting the model false starts the dissipate animation; only\n * when the engine reports the sky clear does the overlay unmount and\n * `dissipated` fire, so the reveal is never cut short.\n *\n * ── NO WEBGL, REDUCED MOTION ────────────────────────────────────────────\n * Without a WebGL context a CSS fog (three drifting blurred blobs over a\n * gradient) takes over, timed with the same durations. Reduced motion\n * snaps: instant cover, instant reveal, no drift.\n */\nimport { computed, nextTick, onBeforeUnmount, ref, watch } from 'vue'\nimport { createCloudEngine, type CloudEngine } from './engine'\nimport type { CloudLoadingPhase, CloudLoadingProps, CloudLoadingSlotProps } from './types'\n\ndefineOptions({ name: 'CloudLoading' })\n\nconst props = withDefaults(defineProps<CloudLoadingProps>(), {\n modelValue: true,\n label: 'Loading',\n progress: null,\n showSpinner: true,\n fullscreen: true,\n zIndex: 2000,\n lockScroll: true,\n gatherDuration: 1600,\n dissipateDuration: 1400,\n speed: 0.5,\n density: 2.2,\n scale: 1,\n opacity: 0.96,\n quality: 0.66,\n color: 'auto',\n respectReducedMotion: true,\n})\n\nconst emit = defineEmits<{\n /** The screen is now completely covered. */\n shown: []\n /** The last cloud is gone and the overlay has left the DOM. */\n dissipated: []\n}>()\n\ndefineSlots<{\n /** Replace the spinner + label with your own loading content. */\n default?: (props: CloudLoadingSlotProps) => unknown\n}>()\n\nconst loading = defineModel<boolean>('modelValue', { default: true })\n\nconst overlayRef = ref<HTMLElement | null>(null)\nconst canvasRef = ref<HTMLCanvasElement | null>(null)\nconst webglOk = ref(true)\nconst phase = ref<CloudLoadingPhase>('idle')\nconst overlayVisible = ref(false)\n\nconst percent = computed(() => {\n if (props.progress == null || Number.isNaN(props.progress)) return null\n return Math.min(100, Math.max(0, Math.round(props.progress)))\n})\n\nconst overlayStyle = computed(() => ({ zIndex: props.zIndex }))\n\nlet engine: CloudEngine | null = null\n\n/** Belt and braces: if the engine's hide() never resolves (a lost context\n * between the flip and the reveal), unmount anyway. */\nlet safetyTimer = 0\n\nfunction reducedMotion(): boolean {\n return props.respectReducedMotion\n && typeof window !== 'undefined'\n && window.matchMedia('(prefers-reduced-motion: reduce)').matches\n}\n\nasync function initEngine() {\n await nextTick()\n const canvas = canvasRef.value\n if (!canvas || engine) return\n try {\n engine = createCloudEngine(canvas, overlayRef.value, {\n color: props.color,\n speed: props.speed,\n density: props.density,\n scale: props.scale,\n opacity: props.opacity,\n quality: props.quality,\n })\n } catch {\n engine = null\n }\n webglOk.value = engine !== null\n}\n\nfunction startLoading() {\n overlayVisible.value = true\n initEngine().then(() => {\n if (!loading.value) return // model already flipped back mid-init\n phase.value = 'gathering'\n if (!engine) {\n // CSS fallback: the fog div's transition does the timing.\n shownTimer = window.setTimeout(() => {\n phase.value = 'holding'\n emit('shown')\n }, reducedMotion() ? 0 : props.gatherDuration)\n return\n }\n engine.show(props.gatherDuration).then(() => {\n if (!loading.value) return\n phase.value = 'holding'\n emit('shown')\n })\n })\n}\n\nlet shownTimer = 0\n\nfunction stopLoading() {\n phase.value = 'dissipating'\n window.clearTimeout(shownTimer)\n if (!engine) {\n // CSS fallback fade.\n window.setTimeout(() => finishDissipate(), reducedMotion() ? 0 : props.dissipateDuration)\n return\n }\n engine.hide(props.dissipateDuration).then(finishDissipate)\n // If the context dies mid-dissipate, still leave on time.\n safetyTimer = window.setTimeout(finishDissipate, props.dissipateDuration + 600)\n}\n\nfunction finishDissipate() {\n window.clearTimeout(safetyTimer)\n if (loading.value) return // model flipped true again mid-dissipate\n if (phase.value !== 'dissipating') return // safety timer raced the engine\n phase.value = 'idle'\n overlayVisible.value = false\n emit('dissipated')\n // The canvas leaves the DOM with the overlay, so the engine dies with it\n // and the next gather builds a fresh one.\n engine?.destroy()\n engine = null\n}\n\nwatch(loading, (on) => {\n if (on) {\n window.clearTimeout(safetyTimer)\n startLoading()\n } else if (overlayVisible.value) {\n stopLoading()\n }\n}, { flush: 'post', immediate: true })\n\n/* ── Scroll lock ─────────────────────────────────────────────────────────\n * The overlay covers the page, so scrolling behind it is noise. Saved and\n * restored rather than assumed, in case the page itself had locked it. */\nlet savedOverflow = ''\nwatch(loading, (on) => {\n if (!props.lockScroll || typeof document === 'undefined') return\n const root = document.documentElement\n if (on) {\n savedOverflow = root.style.overflow\n root.style.overflow = 'hidden'\n } else {\n root.style.overflow = savedOverflow\n }\n})\n\nonBeforeUnmount(() => {\n window.clearTimeout(shownTimer)\n window.clearTimeout(safetyTimer)\n if (props.lockScroll && typeof document !== 'undefined') {\n document.documentElement.style.overflow = savedOverflow\n }\n engine?.destroy()\n engine = null\n})\n</script>\n\n<template>\n <Teleport to=\"body\" :disabled=\"!fullscreen\">\n <div\n v-if=\"overlayVisible\"\n ref=\"overlayRef\"\n class=\"fv-cloud-loading\"\n :class=\"`is-${phase}`\"\n :style=\"overlayStyle\"\n role=\"status\"\n aria-live=\"polite\"\n :aria-busy=\"loading\"\n :data-fullscreen=\"fullscreen || undefined\"\n >\n <canvas ref=\"canvasRef\" class=\"fv-cloud-canvas\" aria-hidden=\"true\"></canvas>\n <div v-if=\"!webglOk\" class=\"fv-cloud-fallback\" aria-hidden=\"true\">\n <i></i><i></i><i></i>\n </div>\n <div class=\"fv-cloud-body\">\n <slot :phase=\"phase\" :progress=\"percent\">\n <span v-if=\"showSpinner\" class=\"fv-cloud-spinner\" aria-hidden=\"true\"></span>\n <span v-if=\"label\" class=\"fv-cloud-label\">\n {{ label }}<template v-if=\"percent != null\"> · {{ percent }}%</template>\n </span>\n </slot>\n </div>\n </div>\n </Teleport>\n</template>\n\n<style>\n.fv-cloud-loading {\n position: fixed;\n inset: 0;\n /* Beats positioned page chrome (sticky headers et al.) without a fight. */\n z-index: 2000;\n display: grid;\n place-items: center;\n overflow: hidden;\n /* The fog is page-background tinted; the ink above it should be the\n * page's own ink. `var(--fv-cloud-ink, …)` lets a page pick its own. */\n color: var(--fv-cloud-ink, var(--color, var(--ink, #1c1e24)));\n font: 500 13px/1.4 var(--fv-font-ui, system-ui);\n pointer-events: auto;\n}\n.fv-cloud-loading[data-fullscreen] { position: fixed; }\n.fv-cloud-loading:not([data-fullscreen]) { position: absolute; }\n.fv-cloud-canvas,\n.fv-cloud-fallback {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n.fv-cloud-fallback {\n background: linear-gradient(color-mix(in srgb, var(--fv-cloud-tint, #ffffff) 86%, #9fb4d8), var(--fv-cloud-tint, #ffffff));\n opacity: 0;\n transition: opacity 600ms ease;\n}\n.fv-cloud-fallback i {\n position: absolute;\n border-radius: 50%;\n background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));\n filter: blur(18px);\n animation: fv-cloud-drift 9s ease-in-out infinite alternate;\n}\n.fv-cloud-fallback i:nth-child(1) { width: 60%; height: 44%; left: -12%; top: 8%; animation-delay: -2s; }\n.fv-cloud-fallback i:nth-child(2) { width: 55%; height: 40%; right: -10%; top: 30%; animation-delay: -5s; }\n.fv-cloud-fallback i:nth-child(3) { width: 65%; height: 46%; left: 4%; bottom: -8%; animation-delay: -8s; }\n.fv-cloud-loading.is-gathering .fv-cloud-fallback,\n.fv-cloud-loading.is-holding .fv-cloud-fallback { opacity: 1; transition: opacity 900ms ease; }\n.fv-cloud-loading.is-dissipating .fv-cloud-fallback {\n opacity: 0;\n transition: opacity 1100ms ease;\n transform: translateY(-6%);\n transition-property: opacity, transform;\n}\n@keyframes fv-cloud-drift {\n from { transform: translate3d(-4%, 2%, 0) scale(1); }\n to { transform: translate3d(6%, -3%, 0) scale(1.15); }\n}\n\n.fv-cloud-body {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n padding: 24px;\n opacity: 0;\n transform: translateY(6px);\n transition: opacity 480ms ease, transform 480ms ease;\n pointer-events: none;\n}\n.fv-cloud-loading.is-holding .fv-cloud-body { opacity: 1; transform: none; }\n\n.fv-cloud-spinner {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n border: 2.5px solid color-mix(in srgb, currentColor 20%, transparent);\n border-top-color: currentColor;\n animation: fv-cloud-spin 0.9s linear infinite;\n}\n@keyframes fv-cloud-spin {\n to { transform: rotate(360deg); }\n}\n.fv-cloud-label {\n letter-spacing: 0.02em;\n color: color-mix(in srgb, currentColor 78%, transparent);\n}\n@media (prefers-reduced-motion: reduce) {\n .fv-cloud-spinner { animation: none; }\n .fv-cloud-fallback i { animation: none; }\n .fv-cloud-body,\n .fv-cloud-fallback { transition-duration: 1ms; }\n}\n</style>\n","<script setup lang=\"ts\">\n/* ══ BreathingRing — the light band that circles a control ═══════════════\n *\n * Wraps a button or input and runs a soft light band around its edge: a\n * bright arc with a long tail laps the border while the whole band\n * brightens and dims on a regular breath. The ring follows the child's\n * border radius unless `radius` overrides it, and holds still under\n * `prefers-reduced-motion`.\n */\nimport { computed, onMounted, ref, watch } from 'vue'\nimport type { BreathingRingProps } from './types'\n\ndefineOptions({ name: 'BreathingRing' })\n\nconst props = withDefaults(defineProps<BreathingRingProps>(), {\n active: true,\n color: '#8ab4ff',\n speed: 2.6,\n duration: 2.6,\n thickness: 2,\n radius: undefined,\n glow: 6,\n respectReducedMotion: true,\n})\n\nconst host = ref<HTMLElement | null>(null)\nconst autoRadius = ref('12px')\n\nfunction readChildRadius() {\n if (props.radius != null) return\n const child = [...(host.value?.children ?? [])].find(\n (node): node is HTMLElement =>\n node instanceof HTMLElement && !node.classList.contains('fv-ring__band'),\n )\n if (!child) return\n const radius = getComputedStyle(child).borderRadius\n if (radius && radius !== '0px') autoRadius.value = radius\n}\n\nonMounted(readChildRadius)\nwatch(() => props.active, (active) => {\n if (active) readChildRadius()\n})\n\nconst ringStyle = computed<Record<string, string>>(() => {\n const radius = props.radius == null\n ? autoRadius.value\n : typeof props.radius === 'number' ? `${props.radius}px` : props.radius\n return {\n '--fv-ring-color': props.color,\n '--fv-ring-radius': radius,\n '--fv-ring-thickness': `${Math.max(1, props.thickness)}px`,\n '--fv-ring-speed': `${Math.max(0.4, props.speed || 2.6)}s`,\n '--fv-ring-beat': `${Math.max(0.4, props.duration || 2.6)}s`,\n '--fv-ring-glow': `${Math.max(0, props.glow)}px`,\n }\n})\n</script>\n\n<template>\n <span\n ref=\"host\"\n class=\"fv-ring\"\n :class=\"{ 'fv-ring--active': active, 'fv-ring--force-motion': !respectReducedMotion }\"\n :style=\"ringStyle\"\n :aria-busy=\"active || undefined\"\n >\n <span class=\"fv-ring__band\" aria-hidden=\"true\"></span>\n <slot />\n </span>\n</template>\n\n<style>\n@property --fv-ring-angle {\n syntax: '<angle>';\n inherits: false;\n initial-value: 0deg;\n}\n\n.fv-ring {\n --fv-ring-color: #8ab4ff;\n --fv-ring-radius: 12px;\n --fv-ring-thickness: 2px;\n --fv-ring-speed: 2.6s;\n --fv-ring-beat: 2.6s;\n --fv-ring-glow: 6px;\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n border-radius: var(--fv-ring-radius);\n isolation: isolate;\n}\n.fv-ring__band {\n position: absolute;\n z-index: 1;\n inset: calc(-1 * var(--fv-ring-thickness));\n padding: var(--fv-ring-thickness);\n border-radius: calc(var(--fv-ring-radius) + var(--fv-ring-thickness));\n background:\n conic-gradient(\n from var(--fv-ring-angle),\n transparent 0deg,\n color-mix(in srgb, var(--fv-ring-color) 4%, transparent) 30deg,\n color-mix(in srgb, var(--fv-ring-color) 55%, transparent) 66deg,\n color-mix(in srgb, var(--fv-ring-color) 85%, white) 92deg,\n var(--fv-ring-color) 104deg,\n color-mix(in srgb, var(--fv-ring-color) 20%, transparent) 136deg,\n transparent 168deg,\n transparent 360deg\n ),\n conic-gradient(\n color-mix(in srgb, var(--fv-ring-color) 7%, transparent) 0deg 360deg\n );\n -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n -webkit-mask-composite: xor;\n mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n mask-composite: exclude;\n opacity: 0;\n pointer-events: none;\n transition: opacity 220ms ease;\n}\n.fv-ring--active .fv-ring__band {\n animation:\n fv-ring-lap var(--fv-ring-speed) linear infinite,\n fv-ring-breathe var(--fv-ring-beat) ease-in-out infinite;\n}\n@keyframes fv-ring-lap {\n to { --fv-ring-angle: 360deg; }\n}\n@keyframes fv-ring-breathe {\n 0%, 100% {\n opacity: 0.42;\n filter: drop-shadow(\n 0 0 calc(var(--fv-ring-glow) * 0.3)\n color-mix(in srgb, var(--fv-ring-color) 45%, transparent)\n );\n }\n 50% {\n opacity: 1;\n filter: drop-shadow(\n 0 0 calc(var(--fv-ring-glow) * 0.75)\n color-mix(in srgb, var(--fv-ring-color) 75%, transparent)\n );\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .fv-ring--active:not(.fv-ring--force-motion) .fv-ring__band {\n animation: none;\n opacity: 0.9;\n filter: drop-shadow(\n 0 0 calc(var(--fv-ring-glow) * 0.4)\n color-mix(in srgb, var(--fv-ring-color) 55%, transparent)\n );\n }\n}\n</style>\n","import LoadingRoot from './Loading.vue'\nimport CloudLoadingRoot from './CloudLoading.vue'\nimport BreathingRingRoot from './BreathingRing.vue'\n\n/** The plain spinner: an SVG ring, indeterminate or driven by `progress`,\n * with a label and `sm`/`md`/`lg` sizes.\n *\n * ```\n * <Loading size=\"lg\" :progress=\"62\" label=\"Uploading\" />\n * ```\n */\nexport const Loading = LoadingRoot\n\n/** A light band that laps the border of the button or input it wraps, with\n * a bright arc and long tail circling on a regular, breathing rhythm.\n *\n * ```\n * <BreathingRing :active=\"busy\" color=\"#8ab4ff\" radius=\"999px\">\n * <button type=\"button\">Save changes</button>\n * </BreathingRing>\n * ```\n */\nexport const BreathingRing = BreathingRingRoot\n\n/** A full-screen loading overlay of procedural clouds. The clouds gather\n * from every edge until the screen is completely fogged while `v-model`\n * is true, hold while the work runs, and evaporate off the page when it\n * ends — the overlay only leaves the DOM after the last cloud is gone.\n *\n * ```\n * <CloudLoading v-model=\"busy\" label=\"Loading workspace\" />\n * ```\n */\nexport const CloudLoading = CloudLoadingRoot\n\nexport type {\n BreathingRingProps,\n CloudLoadingPhase,\n CloudLoadingProps,\n CloudLoadingSlotProps,\n LoadingProps,\n LoadingSize,\n} from './types'\nexport type { CloudEngine, CloudEngineOptions } from './engine'\n"],"names":["RADIUS","props","__props","CIRCUMFERENCE","percent","computed","clampProgress","dash","value","_createElementBlock","_normalizeClass","_openBlock","_hoisted_1","_createElementVNode","_hoisted_3","_Fragment","_toDisplayString","VERT","FRAG","easeInOutCubic","t","easeInQuad","easeOutCubic","prefersReducedMotion","parseCssColor","probe","input","r","g","b","a","resolveAutoColor","el","node","bg","rgb","createCloudEngine","canvas","host","options","gl","config","probeCanvas","compile","type","source","shader","vs","fs","program","quad","aPos","u","name","uniforms","gather","scatter","tint","time","syncTint","syncSize","dpr","quality","width","height","tweens","tween","param","to","duration","ease","done","from","applyParam","raf","running","destroyed","frame","now","delta","lastTick","raw","startLoop","observer","finish","resolve","promise","state","next","emit","__emit","loading","_useModel","overlayRef","ref","canvasRef","webglOk","phase","overlayVisible","overlayStyle","engine","safetyTimer","reducedMotion","initEngine","nextTick","startLoading","shownTimer","stopLoading","finishDissipate","watch","on","savedOverflow","root","onBeforeUnmount","_createBlock","_Teleport","_hoisted_2","_cache","_renderSlot","_ctx","_hoisted_4","_hoisted_5","autoRadius","readChildRadius","child","radius","onMounted","active","ringStyle","Loading","LoadingRoot","BreathingRing","BreathingRingRoot","CloudLoading","CloudLoadingRoot"],"mappings":"qKAmBMA,EAAS,iJANf,MAAMC,EAAQC,EAORC,EAAgB,EAAI,KAAK,GAAK,KAE9BC,EAAUC,EAAAA,SAAS,IAAMC,EAAcL,EAAM,QAAQ,CAAC,EACtDM,EAAOF,EAAAA,SAAS,IACpBD,EAAQ,OAAS,KACb,GAAGD,EAAgB,GAAI,IAAIA,CAAa,GACxC,GAAGA,GAAiBC,EAAQ,MAAQ,IAAI,IAAID,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