(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8093],{778093(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{"default":()=>l});var e=__webpack_require__(303280);__webpack_require__.n(e);var t=__webpack_require__(860012);var i=__webpack_require__(913965);__webpack_require__.n(i);var n=__webpack_require__(126528);var a=__webpack_require__(811077);let r=r=>{let l=(0,e.c)(32);let{buffer:u,isLoader:c,skipTransition:f}=r;let m=c===undefined?!1:c;let v=f===undefined?!1:f;let{isWasmReady:g}=(0,a.db)();let h=(0,t.useRef)(null);let p;l[0]!==u?(p=u.slice(0),l[0]=u,l[1]=p):p=l[1];let _=p;let w;l[2]!==_?(w={buffer:_},l[2]=_,l[3]=w):w=l[3];let{riveFile:x,status:E}=(0,i.useRiveFile)(w);let F=x??undefined;let A=x?"FoxRaiseUp":undefined;let b=m?i.Alignment.Center:i.Alignment.BottomCenter;let R;l[4]!==b?(R=new i.Layout({fit:i.Fit.Contain,alignment:b}),l[4]=b,l[5]=R):R=l[5];let L;l[6]!==F||l[7]!==A||l[8]!==R?(L={riveFile:F,stateMachines:A,autoplay:!1,layout:R},l[6]=F,l[7]=A,l[8]=R,l[9]=L):L=l[9];let{rive:T,RiveComponent:k}=(0,i.useRive)(L);let y;let N;l[10]!==m||l[11]!==g||l[12]!==T||l[13]!==v?(y=()=>{if(!T||!g)return;let e=!1;let t=()=>{if(e)return;let i=T.stateMachineInputs("FoxRaiseUp");if(!i){requestAnimationFrame(t);return}v?i.find(o)?.fire():i.find(s)?.fire(),m&&i.find(d)?.fire(),T.play()};return t(),()=>{e=!0}},N=[T,m,g,v],l[10]=m,l[11]=g,l[12]=T,l[13]=v,l[14]=y,l[15]=N):(y=l[14],N=l[15]),(0,t.useEffect)(y,N);let $;let C;if(l[16]!==T?($=()=>{if(!T||!h.current)return;let e=0;let t=()=>{let e=h.current;let t=e?.querySelector("canvas");if(!e||!t)return!1;let{clientWidth:i,clientHeight:n}=e;if(i===0||n===0)return!1;let a=window.devicePixelRatio||1;let r=Math.round(i*a);let l=Math.round(n*a);return t.width===r&&t.height===l||(t.width=r,t.height=l,t.style.width=`${i}px`,t.style.height=`${n}px`,T.resizeToCanvas()),!0};let i=()=>{!t()&&(e=requestAnimationFrame(i))};return e=requestAnimationFrame(i),window.addEventListener("resize",t),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",t)}},C=[T],l[16]=T,l[17]=$,l[18]=C):($=l[17],C=l[18]),(0,t.useEffect)($,C),E==="loading"||E==="failed"){let e=`${m?"riv-animation__fox-container--loader":"riv-animation__fox-container"}`;let i;l[19]!==m?(i=m&&t.createElement("img",{"data-testid":"loading-indicator",className:"riv-animation__spinner",src:"./images/spinner.gif",alt:""}),l[19]=m,l[20]=i):i=l[20];let a;return l[21]!==e||l[22]!==i?(a=t.createElement(n.a,{className:e},i),l[21]=e,l[22]=i,l[23]=a):a=l[23],a}let M=`${m?"riv-animation__fox-container--loader":"riv-animation__fox-container"}`;let S;l[24]!==k?(S=t.createElement(k,{className:"riv-animation__canvas"}),l[24]=k,l[25]=S):S=l[25];let q;l[26]!==m?(q=m&&t.createElement("img",{"data-testid":"loading-indicator",className:"riv-animation__spinner",src:"./images/spinner.gif",alt:""}),l[26]=m,l[27]=q):q=l[27];let z;return l[28]!==M||l[29]!==S||l[30]!==q?(z=t.createElement(n.a,{ref:h,className:M},S,q),l[28]=M,l[29]=S,l[30]=q,l[31]=z):z=l[31],z};function l(i){let l=(0,e.c)(13);let{isLoader:o,skipTransition:s}=i;let d=o===undefined?!1:o;let u=s===undefined?!1:s;let{isWasmReady:c,error:f}=(0,a.db)();let{buffer:m,error:v,loading:g}=(0,a.sW)("./images/riv_animations/fox_appear.riv");let h;let p;if(l[0]!==v||l[1]!==f?(h=()=>{f&&console.error("[Rive - FoxAppearAnimation] Failed to load WASM:",f),v&&console.error("[Rive - FoxAppearAnimation] Failed to load buffer:",v)},p=[f,v],l[0]=v,l[1]=f,l[2]=h,l[3]=p):(h=l[2],p=l[3]),(0,t.useEffect)(h,p),!c||g||!m){let e=`${d?"riv-animation__fox-container--loader":"riv-animation__fox-container"}`;let i;l[4]!==d?(i=d&&t.createElement("img",{"data-testid":"loading-indicator",className:"riv-animation__spinner",src:"./images/spinner.gif",alt:""}),l[4]=d,l[5]=i):i=l[5];let a;return l[6]!==e||l[7]!==i?(a=t.createElement(n.a,{className:e},i),l[6]=e,l[7]=i,l[8]=a):a=l[8],a}let _;return l[9]!==m||l[10]!==d||l[11]!==u?(_=t.createElement(r,{buffer:m,isLoader:d,skipTransition:u}),l[9]=m,l[10]=d,l[11]=u,l[12]=_):_=l[12],_}function o(e){return e.name==="Wiggle"}function s(e){return e.name==="Start"}function d(e){return e.name==="Loader2"}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);