PageSourceSearch

https://framebird.io/_next/static/chunks/5699-820beeb08983b79e.js

js framebird.io collected 2026-10-04 13:28:21 UTC 18,858 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5699],{59165:(e,n,t)=>{"use strict";e.exports=t.p+"static/media/rive.c488552e.wasm"},83519:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0});var r,u=t(14346),a=t(11635),i=u&&"object"==typeof u&&"default"in u?u:{default:u};function o(e){var n=e||l(),t=u.useState(n),r=t[0],a=t[1];return u.useEffect(function(){if("u">typeof window&&"matchMedia"in window){var n=function(){a(e||l())},t=window.matchMedia("screen and (resolution: "+r+"dppx)");return t.hasOwnProperty("addEventListener")?t.addEventListener("change",n):t.addListener(n),function(){t.hasOwnProperty("removeEventListener")?t.removeEventListener("change",n):t.removeListener(n)}}},[r,e]),r}function l(){return Math.min(Math.max(1,"u">typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1),3)}var c=function(){function e(){}var n=e.prototype;return n.observe=function(){},n.unobserve=function(){},n.disconnect=function(){},e}(),s=globalThis.ResizeObserver||c,f=void 0!==globalThis.ResizeObserver,d=!f,v={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function h(e){return Object.assign({},v,e)}function b(e,n){try{n()}catch(n){console.warn("[Rive] "+e+" threw while cleaning up Rive; contained. ",n)}}function p(e){var n,t,r,a,i,l,c,v=e.riveLoaded,b=void 0!==v&&v,p=e.canvasElem,g=e.containerRef,y=e.options,w=e.onCanvasHasResized,m=e.artboardBounds,C=h(void 0===y?{}:y),R=u.useState({height:0,width:0}),E=R[0],V=E.height,O=E.width,k=R[1],P=u.useState({height:0,width:0}),I=P[0],M=I.height,x=I.width,T=P[1],S=u.useState(!0),A=S[0],D=S[1],L=C.fitCanvasToArtboardHeight,N=C.shouldResizeCanvasToContainer,j=C.useDevicePixelRatio,z=C.customDevicePixelRatio,H=(void 0===(n=N)&&(n=!0),r=(t=u.useState({width:0,height:0}))[0],a=t[1],u.useEffect(function(){if("u">typeof window&&n){var e=function(){a({width:window.innerWidth,height:window.innerHeight})};return d&&(e(),window.addEventListener("resize",e)),function(){return window.removeEventListener("resize",e)}}},[]),c=u.useRef(new s((i=function(e){f&&a({width:e[e.length-1].contentRect.width,height:e[e.length-1].contentRect.height})},l=0,function(){for(var e=this,n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];clearTimeout(l),l=window.setTimeout(function(){return i.apply(e,t)},0)}))),u.useEffect(function(){var e=c.current;if(!n)return void e.disconnect();var t=g.current;return g.current&&f&&e.observe(g.current),function(){e.disconnect(),t&&f&&e.unobserve(t)}},[g,c]),r),G=o(z),U=null!=m?m:{},F=U.maxX,B=U.maxY,W=u.useCallback(function(){var e,n,t,r,u=null!=(e=null==(t=g.current)?void 0:t.clientWidth)?e:0,a=null!=(n=null==(r=g.current)?void 0:r.clientHeight)?n:0;return L&&m?{width:u,height:m.maxY/m.maxX*u}:{width:u,height:a}},[g,L,F,B]);u.useEffect(function(){if(N&&g.current&&b){var e=W(),n=e.width,t=e.height,r=!1;if(p){var u=n!==O||t!==V;if(C.fitCanvasToArtboardHeight&&u&&(g.current.style.height=t+"px",r=!0),C.useDevicePixelRatio){var a=n*G!==x||t*G!==M;if(u||a){var i=G*n,o=G*t;p.width=i,p.height=o,p.style.width=n+"px",p.style.height=t+"px",T({width:i,height:o}),r=!0}}else u&&(p.width=n,p.height=t,T({width:n,height:t}),r=!0);k({width:n,height:t})}w&&(A||r)&&w&&w(),A&&D(!1)}},[p,g,H,G,W,A,D,M,x,V,O,w,N,L,j,b]),u.useEffect(function(){T({width:0,height:0})},[p])}var g=function(){function e(){}var n=e.prototype;return n.observe=function(){},n.unobserve=function(){},n.disconnect=function(){},e}(),y=globalThis.IntersectionObserver||g,w=function(){function e(){var e=this;this.elementsMap=new Map,this.onObserved=function(n){n.forEach(function(n){var t=e.elementsMap.get(n.target);t&&t(n)})},this.observer=new y(this.onObserved)}var n=e.prototype;return n.registerCallback=function(e,n){this.observer.observe(e),this.elementsMap.set(e,n)},n.removeCallback=function(e){this.observer.unobserve(e),this.elementsMap.delete(e)},e}(),m=function(){return r||(r=new w),r};function C(){return(C=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function R(e,n){if(null==e)return{};var t,r,u={},a=Object.getOwnPropertyNames(e);for(r=0;r<a.length;r++)t=a[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(u[t]=e[t]);return u}function E(e){var n=e.setContainerRef,t=e.setCanvasRef,r=e.className,u=void 0===r?"":r,a=e.style,o=e.children,l=R(e,["setContainerRef","setCanvasRef","className","style","children"]),c=C({width:"100%",height:"100%"},a);return i.default.createElement("div",C({ref:n,className:u},!u&&{style:c}
1),i.default.createElement("canvas",C({ref:t,style:{verticalAlign:"top",width:0,height:0}},l),o))}function V(e,n){void 0===n&&(n={});var t,r,l=u.useState(null),c=l[0],s=l[1],f=u.useRef(null),d=u.useRef(null),g=u.useRef(null),y=u.useState(null),w=y[0],V=y[1],O=!!e,k=h(n),P=null!=(t=null==e?void 0:e.useOffscreenRenderer)?t:n.useOffscreenRenderer,I=!!(null==e?void 0:e.enableGPUCanvas)||!!(null==e||null==(r=e.riveFile)?void 0:r.deferredRequested),M=null!=P?P:!I&&v.useOffscreenRenderer;u.useEffect(function(){I&&M&&console.warn("[Rive] GPU Canvas and `useOffscreenRenderer` cannot both be on. A GPU Canvas session records for a single <canvas>, while the offscreen renderer shares one context across every <canvas> on the page. This instance falls back to immediate rendering and GPU Canvas content will not draw — drop the explicit `useOffscreenRenderer: true` to use it.")},[I,M]);var x=o(),T=u.useCallback(function(){if(w){if(w.layout&&w.layout.fit===a.Fit.Layout&&c){var e=x*w.layout.layoutScaleFactor;w.devicePixelRatioUsed=x,w.artboardWidth=(null==c?void 0:c.width)/e,w.artboardHeight=(null==c?void 0:c.height)/e}w.startRendering(),w.resizeToCanvas()}},[w,x]);p({riveLoaded:!!w,canvasElem:c,containerRef:f,options:k,onCanvasHasResized:T,artboardBounds:null==w?void 0:w.bounds});var S=u.useCallback(function(e){var n=d.current;d.current=e,null===e&&n&&queueMicrotask(function(){d.current!==n&&(n.height=0,n.width=0)}),s(e)},[]);u.useEffect(function(){if(c&&e){var n,t=null!=w;if(null==w){var r=e.onRiveReady,u=R(e,["onRiveReady"]);n=new a.Rive(C({},u,{useOffscreenRenderer:M,canvas:c})),null!=g.current&&b("replacing a previous instance",function(){return g.current.cleanup()}),g.current=n,n.on(a.EventType.Load,function(){t=!0,r&&r(n),c?V(n):b("unmounted before load",function(){return n.cleanup()})})}return function(){t||b("teardown before load",function(){return null==n?void 0:n.cleanup()})}}},[c,O,w]);var A=u.useCallback(function(e){f.current=e},[]),D={observe:u.useCallback(function(e,n){m().registerCallback(e,n)},[]),unobserve:u.useCallback(function(e){m().removeCallback(e)},[])},L=D.observe,N=D.unobserve;u.useEffect(function(){var e,n=!1,t=function(){if(c&&n){var e=c.getBoundingClientRect();e.width>0&&e.height>0&&e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.bottom>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.right>0&&(null==w||w.startRendering(),n=!1)}};return c&&!1!==k.shouldUseIntersectionObserver&&L(c,function(r){r.isIntersecting?w&&w.startRendering():w&&w.stopRendering(),n=!r.isIntersecting,clearTimeout(e),r.isIntersecting||0!==r.boundingClientRect.width||(e=setTimeout(t,10))}),function(){clearTimeout(e),c&&N(c)}},[L,N,w,c,k.shouldUseIntersectionObserver]),u.useEffect(function(){return function(){w&&(b("unmount",function(){return w.cleanup()}),V(null))}},[w,c]),u.useEffect(function(){return function(){null!=g.current&&b("final unmount",function(){return g.current.cleanup()})}},[]);var j=null==e?void 0:e.animations;u.useEffect(function(){w&&j&&(w.isPlaying?(w.stop(w.animationNames),w.play(j)):w.isPaused&&(w.stop(w.animationNames),w.pause(j)))},[j,w]);var z=u.useCallback(function(e){return i.default.createElement(E,C({setContainerRef:A,setCanvasRef:S},e))},[S,A]);return{canvas:c,container:f.current,setCanvasRef:S,setContainerRef:A,rive:w,RiveComponent:z}}function O(){return(O=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var k=new WeakSet;function P(e){k.has(e)||(k.add(e),queueMicrotask(function(){k.delete(e),e.bind()}))}function I(e,n){var t=n.name,r=n.useNew,u=n.instance;return void 0!==u?u:e?null!=t?e.instanceByName(t)||null:r?(null==e.instance?void 0:e.instance.call(e))||null:(null==e.defaultInstance?void 0:e.defaultInstance.call(e))||null:null}function M(){return(M=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function x(e,n,t){var r=u.useState(null),a=r[0],i=r[1],o=u.useState(t.defaultValue),l=o[0],c=o[1],s=u.useState(null),f=s[0],d=s[1],v=u.useRef(null),h=u.useRef(e),b=u.useRef(t);u.useEffect(function(){b.current=t},[t]);var p=u.useCallback(function(){var e=v.current,n=h.current,t=b.current;if(!e||!n)return i(null),c(t.defaultValue),d(null),function(){};var r=t.getProperty(e,n);if(r){i(r),c(t.getValue(r)),t.getExtendedData&&d(t.getExtendedData(r));var u=function(){c(t.getValue(r)),t.getExtendedData&&d(t.getExtendedData(r)),t.onPropertyEvent&&t.onPropertyEvent()};return r.on(u),function(){r.off(u)}}return function(){}},[]);u.useEffect(function(){return v.current=n,h.current=e,p()},[n,e,p]);var g=u.useCallback(function(e){if(a&&v.current===n)try{e(a),b.current.getExtendedData&&d(b.current.getExtendedData(a));return}catch(e){}if(v.current)try{var t=b.current.getProperty(v.current,h.current);t&&(i(t),e(t),b.current.getExtendedData&&d(b.current.getExtendedData(t)))}catch(e){}},[a,n]),y=u.useMemo(function(){return b.current.buildPropertyOperations(g)},[g]),w=M({value:l},y);return t.getExtendedData&&(w.extendedData=f),w}function T(e,n,t,r,u,a,i){try{var o=e[a](i),l=o.value}catch(e){t(e);return}o.done?n(l):Promise.resolve(l).then(r,u)}n.default=function(e){var n=e.src,t=e.artboard,r=e.stateMachine,u=e.animations,a=e.stateMachines,o=e.layout,l=e.useOffscreenRenderer,c=e.enableGPUCanvas,s=e.shouldDisableRiveListeners,f=e.shouldResizeCanvasToContainer,d=e.automaticallyHandleEvents,v=e.children,h=function(e,n){if(null==e)return{};var t,r,u={},a=Object.getOwnPropertyNames(e);for(r=0;r<a.length;r++)!(n.indexOf(t=a[r])>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(u[t]=e[t]);return u}(e,["src","artboard","stateMachine","animations","stateMachines","layout","useOffscreenRenderer","enableGPUCanvas","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),b=V({src:n,artboard:t,stateMachine:r,animations:u,layout:o,stateMachines:a,autoplay:!0,shouldDisableRiveListeners:void 0!==s&&s,automaticallyHandleEvents:void 0!==d&&d,enableGPUCanvas:c},O({shouldResizeCanvasToContainer:void 0===f||f},void 0!==l&&{useOffscreenRenderer:l})).RiveComponent;return i.default.createElement(b,h,v)},n.useGlobalViewModelInstance=function(e,n,t){var r=null!=t?t:{},a=r.instanceName,i=r.useNew,o=void 0!==i&&i,l=r.instance,c=r.rive,s=u.useState(null),f=s[0],d=s[1];return u.useEffect(function(){var t=I(e,{name:a,useNew:o,instance:l});d(t),c&&n&&t&&c.setGlobalViewModelInstance(n,t)&&P(c)},[e,n,a,o,l,c]),f},n.useResizeCanvas=p,n.useRive=V,n.useRiveFile=function(e){var n=u.useState(null),t=n[0],r=n[1],i=u.useState("idle"),o=i[0],l=i[1];return u.useEffect(function(){var n,t=null;return(n=function(){return function(e,n){var t,r,u,a={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),o=Object.defineProperty;return o(i,"next",{value:l(0)}),o(i,"throw",{value:l(1)}),o(i,"return",{value:l(2)}),"function"==typeof Symbol&&o(i,Symbol.iterator,{value:function(){return this}}),i;function l(o){return function(l){var c=[o,l];if(t)throw TypeError("Generator is already executing.");for(;
1i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(u=2&c[0]?r.return:c[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,c[1])).done)return u;switch(r=0,u&&(c=[2&c[0],u.value]),c[0]){case 0:case 1:u=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(u=(u=a.trys).length>0&&u[u.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!u||c[1]>u[0]&&c[1]<u[3])){a.label=c[1];break}if(6===c[0]&&a.label<u[1]){a.label=u[1],u=c;break}if(u&&a.label<u[2]){a.label=u[2],a.ops.push(c);break}u[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=u=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(n){try{l("loading"),(t=new a.RiveFile(e)).init(),t.on(a.EventType.Load,function(){null==t||t.getInstance(),r(t),l("success")}),t.on(a.EventType.LoadError,function(){l("failed")}),r(t)}catch(e){console.error(e),l("failed")}return[2]})},function(){var e=this,t=arguments;return new Promise(function(r,u){var a=n.apply(e,t);function i(e){T(a,r,u,i,o,"next",e)}function o(e){T(a,r,u,i,o,"throw",e)}i(void 0)})})(),function(){b("RiveFile unmount",function(){return null==t?void 0:t.cleanup()})}},[e.src,e.buffer,e.enableGPUCanvas]),{riveFile:t,status:o}},n.useStateMachineInput=function(e,n,t,r){var i=u.useState(null),o=i[0],l=i[1];return u.useEffect(function(){var u=function(){if(e&&n&&t||l(null),e&&n&&t){var u=e.stateMachineInputs(n);if(u){var a=u.find(function(e){return e.name===t});void 0!==r&&a&&(a.value=r),l(a||null)}}else l(null)};u(),e&&e.on(a.EventType.Load,function(){u()})},[e]),o},n.useViewModel=function(e,n){var t=null!=n?n:{},r=t.name,i=t.useDefault,o=u.useState(null),l=o[0],c=o[1];return u.useEffect(function(){var n=function(){e?c(null!=r?(null==e.viewModelByName?void 0:e.viewModelByName.call(e,r))||null:e.defaultViewModel()||null):c(null)};return n(),e&&e.on(a.EventType.Load,n),function(){e&&e.off(a.EventType.Load,n)}},[e,r,void 0!==i&&i]),l},n.useViewModelInstance=function(e,n){var t=null!=n?n:{},r=t.name,a=t.useDefault,i=t.useNew,o=void 0!==i&&i,l=t.rive,c=u.useState(null),s=c[0],f=c[1];return u.useEffect(function(){if(!e)return void f(null);var n=I(e,{name:r,useNew:o});f(n),l&&n&&l.viewModelInstance!==n&&(l.setViewModelInstance(n),P(l))},[e,r,void 0!==a&&a,o,l]),s},n.useViewModelInstanceArtboard=function(e,n){return{setValue:x(e,n,{getProperty:u.useCallback(function(e,n){return e.artboard(n)},[]),getValue:u.useCallback(function(){},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])}).setValue}},n.useViewModelInstanceBoolean=function(e,n){var t=x(e,n,{getProperty:u.useCallback(function(e,n){return e.boolean(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])});return{value:t.value,setValue:t.setValue}},n.useViewModelInstanceColor=function(e,n){var t=x(e,n,{getProperty:u.useCallback(function(e,n){return e.color(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})},setRgb:function(n,t,r){e(function(e){e.rgb(n,t,r)})},setRgba:function(n,t,r,u){e(function(e){e.rgba(n,t,r,u)})},setAlpha:function(n){e(function(e){e.alpha(n)})},setOpacity:function(n){e(function(e){e.opacity(n)})}}},[])});return{value:t.value,setValue:t.setValue,setRgb:t.setRgb,setRgba:t.setRgba,setAlpha:t.setAlpha,setOpacity:t.setOpacity}},n.useViewModelInstanceEnum=function(e,n){var t=x(e,n,{getProperty:u.useCallback(function(e,n){return e.enum(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,getExtendedData:u.useCallback(function(e){return e.values},[]),buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])});return{value:t.value,values:t.extendedData||[],setValue:t.setValue}},n.useViewModelInstanceFont=function(e,n){return{setValue:x(e,n,{getProperty:u.useCallback(function(e,n){return e.font(n)},[]),getValue:u.useCallback(function(){},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])}).setValue}},n.useViewModelInstanceImage=function(e,n){return{setValue:x(e,n,{getProperty:u.useCallback(function(e,n){return e.image(n)},[]),getValue:u.useCallback(function(){},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])}).setValue}},n.useViewModelInstanceList=function(e,n){var t,r=u.useState(0)[1],a=x(e,n,{getProperty:u.useCallback(function(e,n){return e.list(n)},[]),getValue:u.useCallback(function(e){return e.length},[]),defaultValue:null,onPropertyEvent:function(){r(function(e){return e+1})},buildPropertyOperations:u.useCallback(function(e){return{addInstance:function(n){e(function(e){return e.addInstance(n)})},addInstanceAt:function(n,t){var r=!1;return e(function(e){r=e.addInstanceAt(n,t)}),r},removeInstance:function(n){e(function(e){return e.removeInstance(n)})},removeInstanceAt:function(n){e(function(e){return e.removeInstanceAt(n)})},getInstanceAt:function(n){var t=null;return e(function(e){t=e.instanceAt(n)}),t},swap:function(n,t){e(function(e){return e.swap(n,t)})}}},[])});return{length:null!=(t=a.value)?t:0,addInstance:a.addInstance,addInstanceAt:a.addInstanceAt,removeInstance:a.removeInstance,removeInstanceAt:a.removeInstanceAt,getInstanceAt:a.getInstanceAt,swap:a.swap}},n.useViewModelInstanceNumber=function(e,n){var t=x(e,n,{getProperty:u.useCallback(function(e,n){return e.number(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])});return{value:t.value,setValue:t.setValue}},n.useViewModelInstanceString=function(e,n){var t=x(e,n,{getProperty:u.useCallback(function(e,n){return e.string(n)},[]),getValue:u.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:u.useCallback(function(e){return{setValue:function(n){e(function(e){e.value=n})}}},[])});return{value:t.value,setValue:t.setValue}},n.useViewModelInstanceTrigger=function(e,n,t){var r=(null!=t?t:{}).onTrigger;return{trigger:x(e,n,{getProperty:u.useCallback(function(e,n){return e.trigger(n)},[]),getValue:u.useCallback(function(){},[]),defaultValue:null,onPropertyEvent:r,buildPropertyOperations:u.useCallback(function(e){return{trigger:function(){e(function(e){e.trigger()})}}},[])}).trigger}}
1,Object.keys(a).forEach(function(e){"default"===e||n.hasOwnProperty(e)||Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.