PageSourceSearch

https://www.spacebring.com/_next/static/immutable/chunks/06vdv188mqi1a.js

js spacebring.com collected 2026-10-01 13:12:36 UTC 60,192 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83252,t=>{"use strict";let e;var r=t.i(18050),i=t.i(932);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e,r){var i;return(i=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==n(i)?i:i+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=class{requestAnimationFrame(t){return requestAnimationFrame(t)}cancelAnimationFrame(t){cancelAnimationFrame(t)}},_=class{constructor(){o(this,"_lastHandleId",0),o(this,"_lastImmediate",null)}requestAnimationFrame(t){return this._lastHandleId>=0x20000000000000-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{t(performance.now())}),this._lastHandleId}cancelAnimationFrame(t){this._lastImmediate&&clearImmediate(this._lastImmediate)}},a=class{constructor(){o(this,"_strategy",void 0),this._strategy="function"==typeof requestAnimationFrame?new s:new _}requestAnimationFrame(t){return this._strategy.requestAnimationFrame(t)}cancelAnimationFrame(t){this._strategy.cancelAnimationFrame(t)}};let l="u">typeof window&&void 0!==window.document,d=new Uint8Array([80,75,3,4]),h=["v","ip","op","layers","fr","w","h"],u=Array(128).fill(void 0);u.push(void 0,null,!0,!1);let c=u.length;function p(t){c===u.length&&u.push(u.length+1);let e=c;return c=u[e],u[e]=t,e}function g(t,r){try{return t.apply(this,r)}catch(t){e.__wbindgen_export_0(p(t))}}let m=0,f=null;function w(){return(null===f||0===f.byteLength)&&(f=new Uint8Array(e.memory.buffer)),f}let b="u">typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},y="function"==typeof b.encodeInto?function(t,e){return b.encodeInto(t,e)}:function(t,e){let r=b.encode(t);return e.set(r),{read:t.length,written:r.length}};function v(t,e,r){if(void 0===r){let r=b.encode(t),i=e(r.length,1)>>>0;return w().subarray(i,i+r.length).set(r),m=r.length,i}let i=t.length,n=e(i,1)>>>0,o=w(),s=0;for(;s<i;s++){let e=t.charCodeAt(s);if(e>127)break;o[n+s]=e}if(s!==i){0!==s&&(t=t.slice(s)),n=r(n,i,i=s+3*t.length,1)>>>0;let e=y(t,w().subarray(n+s,n+i));s+=e.written,n=r(n,i,s,1)>>>0}return m=s,n}let L=null;function C(){return(null===L||!0===L.buffer.detached||void 0===L.buffer.detached&&L.buffer!==e.memory.buffer)&&(L=new DataView(e.memory.buffer)),L}let M="u">typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};function k(t,e){return t>>>=0,M.decode(w().subarray(t,t+e))}function x(t){let e=u[t];return t<132||(u[t]=c,c=t),e}"u">typeof TextDecoder&&M.decode();function E(t,e){let r=e(+t.length,1)>>>0;return w().set(t,r/1),m=t.length,r}let S=null,I=Object.freeze({Forward:0,0:"Forward",Reverse:1,1:"Reverse",Bounce:2,2:"Bounce",ReverseBounce:3,3:"ReverseBounce"}),P=Object.freeze({Idle:0,0:"Idle",Playing:1,1:"Playing",Paused:2,2:"Paused",Stopped:3,3:"Stopped",Tweening:4,4:"Tweening"}),A=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>e.__wbg_dotlottieplayerwasm_free(t>>>0,1));var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),t}free(){let t=this.__destroy_into_raw();e.__wbg_dotlottieplayerwasm_free(t,0)}clear_slot(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,r,i)}layout_fit(){let t,r;try{let o=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_layout_fit(o,this.__wbg_ptr);var i=C().getInt32(o+0,!0),n=C().getInt32(o+4,!0);return t=i,r=n,k(i,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export_3(t,r,1)}}loop_count(){return e.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return x(e.dotlottieplayerwasm_poll_event(this.__wbg_ptr))}reset_slot(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;
1return 0!==e.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,r,i)}set_layout(t,r,i){let n=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),o=m;return 0!==e.dotlottieplayerwasm_set_layout(this.__wbg_ptr,n,o,r,i)}set_marker(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;e.dotlottieplayerwasm_set_marker(this.__wbg_ptr,r,i)}clear_slots(){return 0!==e.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)}is_complete(){return 0!==e.dotlottieplayerwasm_is_complete(this.__wbg_ptr)}reset_slots(){return 0!==e.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)}reset_theme(){return 0!==e.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)}segment_end(){return e.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(t){return 0!==e.dotlottieplayerwasm_set_quality(this.__wbg_ptr,t)}set_segment(t,r){return 0!==e.dotlottieplayerwasm_set_segment(this.__wbg_ptr,t,r)}sm_set_seed(t){return 0!==e.dotlottieplayerwasm_sm_set_seed(this.__wbg_ptr,t)}static unload_font(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_unload_font(r,i)}animation_id(){try{let i,n=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_animation_id(n,this.__wbg_ptr);var t=C().getInt32(n+0,!0),r=C().getInt32(n+4,!0);return 0!==t&&(i=k(t,r).slice(),e.__wbindgen_export_3(t,+r,1)),i}finally{e.__wbindgen_add_to_stack_pointer(16)}}audio_volume(){return e.dotlottieplayerwasm_audio_volume(this.__wbg_ptr)}background_a(){return e.dotlottieplayerwasm_background_a(this.__wbg_ptr)}background_b(){return e.dotlottieplayerwasm_background_b(this.__wbg_ptr)}background_g(){return e.dotlottieplayerwasm_background_g(this.__wbg_ptr)}background_r(){return e.dotlottieplayerwasm_background_r(this.__wbg_ptr)}clear_marker(){e.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){e.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return x(e.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr))}get_slot_str(t){try{let n,o=e.__wbindgen_add_to_stack_pointer(-16),s=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),_=m;e.dotlottieplayerwasm_get_slot_str(o,this.__wbg_ptr,s,_);var r=C().getInt32(o+0,!0),i=C().getInt32(o+4,!0);return 0!==r&&(n=k(r,i).slice(),e.__wbindgen_export_3(r,+i,1)),n}finally{e.__wbindgen_add_to_stack_pointer(16)}}marker_names(){return x(e.dotlottieplayerwasm_marker_names(this.__wbg_ptr))}set_autoplay(t){e.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,t)}set_slot_str(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m,o=v(r,e.__wbindgen_export_1,e.__wbindgen_export_2),s=m;return 0!==e.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,i,n,o,s)}set_viewport(t,r,i,n){return 0!==e.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,t,r,i,n)}total_frames(){return e.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}clear_segment(){return 0!==e.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)}current_frame(){return e.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(t){try{let n,o=e.__wbindgen_add_to_stack_pointer(-16),s=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),_=m;e.dotlottieplayerwasm_get_slot_type(o,this.__wbg_ptr,s,_);var r=C().getInt32(o+0,!0),i=C().getInt32(o+4,!0);return 0!==r&&(n=k(r,i).slice(),e.__wbindgen_export_3(r,+i,1)),n}finally{e.__wbindgen_add_to_stack_pointer(16)}}get_slots_str(){let t,r;try{let o=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_get_slots_str(o,this.__wbg_ptr);var i=C().getInt32(o+0,!0),n=C().getInt32(o+4,!0);return t=i,r=n,k(i,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export_3(t,r,1)}}get_transform(){return x(e.dotlottieplayerwasm_get_transform(this.__wbg_ptr))}segment_start(){return e.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,r,i)}set_text_slot(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m,o=v(r,e.__wbindgen_export_1,e.__wbindgen_export_2),s=m;return 0!==e.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,i,n,o,s)}set_transform(t){let r,i=(r=(0,e.__wbindgen_export_1)(4*t.length,4)>>>
10,((null===S||0===S.byteLength)&&(S=new Float32Array(e.memory.buffer)),S).set(t,r/4),m=t.length,r),n=m;return 0!==e.dotlottieplayerwasm_set_transform(this.__wbg_ptr,i,n)}sm_get_inputs(){return x(e.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr))}sm_poll_event(){return x(e.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr))}sm_post_click(t,r){e.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,t,r)}animation_size(){return x(e.dotlottieplayerwasm_animation_size(this.__wbg_ptr))}current_marker(){try{let i,n=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_current_marker(n,this.__wbg_ptr);var t=C().getInt32(n+0,!0),r=C().getInt32(n+4,!0);return 0!==t&&(i=k(t,r).slice(),e.__wbindgen_export_3(t,+r,1)),i}finally{e.__wbindgen_add_to_stack_pointer(16)}}layout_align_x(){return e.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return e.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i)}loop_animation(){return 0!==e.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)}set_background(t,r,i,n){return 0!==e.dotlottieplayerwasm_set_background(this.__wbg_ptr,t,r,i,n)}set_color_slot(t,r,i,n){let o=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),s=m;return 0!==e.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,o,s,r,i,n)}set_image_slot(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m,o=v(r,e.__wbindgen_export_1,e.__wbindgen_export_2),s=m;return 0!==e.dotlottieplayerwasm_set_image_slot(this.__wbg_ptr,i,n,o,s)}set_loop_count(t){e.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,t)}set_theme_data(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,r,i)}sm_reset_input(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;e.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,r,i)}manifest_string(){let t,r;try{let o=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_manifest_string(o,this.__wbg_ptr);var i=C().getInt32(o+0,!0),n=C().getInt32(o+4,!0);return t=i,r=n,k(i,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export_3(t,r,1)}}set_scalar_slot(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m;return 0!==e.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,i,n,r)}set_vector_slot(t,r,i){let n=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),o=m;return 0!==e.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,n,o,r,i)}setup_sw_target(t,r){return 0!==e.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr,t,r)}get_pixel_buffer(){return x(e.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr))}set_audio_volume(t){e.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr,t)}sm_current_state(){let t,r;try{let o=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_sm_current_state(o,this.__wbg_ptr);var i=C().getInt32(o+0,!0),n=C().getInt32(o+4,!0);return t=i,r=n,k(i,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export_3(t,r,1)}}state_machine_id(){try{let i,n=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_state_machine_id(n,this.__wbg_ptr);var t=C().getInt32(n+0,!0),r=C().getInt32(n+4,!0);return 0!==t&&(i=k(t,r).slice(),e.__wbindgen_export_3(t,+r,1)),i}finally{e.__wbindgen_add_to_stack_pointer(16)}}get_state_machine(t){try{let n,o=e.__wbindgen_add_to_stack_pointer(-16),s=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),_=m;e.dotlottieplayerwasm_get_state_machine(o,this.__wbg_ptr,s,_);var r=C().getInt32(o+0,!0),i=C().getInt32(o+4,!0);return 0!==r&&(n=k(r,i).slice(),e.__wbindgen_export_3(r,+i,1)),n}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_position_slot(t,r,i){let n=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),o=m;return 0!==e.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,n,o,r,i)}current_loop_count(){return e.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}set_asset_resolver(t){e.dotlottieplayerwasm_set_asset_resolver(this.__wbg_ptr,null==t?0:p(t))}sm_framework_setup(){return x(e.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr))}sm_post_pointer_up(t,r){e.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,t,r)}state_machine_load(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,r,i
1)}load_dotlottie_data(t){let r=E(t,e.__wbindgen_export_1),i=m;return 0!==e.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i)}sm_get_string_input(t){try{let n,o=e.__wbindgen_add_to_stack_pointer(-16),s=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),_=m;e.dotlottieplayerwasm_sm_get_string_input(o,this.__wbg_ptr,s,_);var r=C().getInt32(o+0,!0),i=C().getInt32(o+4,!0);return 0!==r&&(n=k(r,i).slice(),e.__wbindgen_export_3(r,+i,1)),n}finally{e.__wbindgen_add_to_stack_pointer(16)}}sm_set_string_input(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m,o=v(r,e.__wbindgen_export_1,e.__wbindgen_export_2),s=m;return 0!==e.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,i,n,o,s)}sm_get_boolean_input(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m,n=e.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,r,i);return 0xffffff===n?void 0:0!==n}sm_get_numeric_input(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m,n=e.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,r,i);return 0x100000001===n?void 0:n}sm_post_pointer_down(t,r){e.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,t,r)}sm_post_pointer_exit(t,r){e.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,t,r)}sm_post_pointer_move(t,r){e.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,t,r)}sm_set_boolean_input(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m;return 0!==e.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,i,n,r)}sm_set_numeric_input(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m;return 0!==e.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,i,n,r)}state_machine_unload(){e.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(t,r){e.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,t,r)}load_animation_from_id(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i)}sm_poll_internal_event(){return x(e.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr))}use_frame_interpolation(){return 0!==e.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)}reset_current_loop_count(){e.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m;return 0!==e.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,i,n,r)}state_machine_load_from_id(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,r,i)}set_use_frame_interpolation(t){e.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,t)}constructor(){let t=e.dotlottieplayerwasm_new();return this.__wbg_ptr=t>>>0,A.register(this,this.__wbg_ptr,this),this}mode(){return e.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return 0!==e.dotlottieplayerwasm_play(this.__wbg_ptr)}stop(){return 0!==e.dotlottieplayerwasm_stop(this.__wbg_ptr)}tick(t){return 0!==e.dotlottieplayerwasm_tick(this.__wbg_ptr,t)}pause(){return 0!==e.dotlottieplayerwasm_pause(this.__wbg_ptr)}speed(){return e.dotlottieplayerwasm_speed(this.__wbg_ptr)}width(){return e.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return e.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return 0!==e.dotlottieplayerwasm_render(this.__wbg_ptr)}status(){return e.dotlottieplayerwasm_status(this.__wbg_ptr)}markers(){return x(e.dotlottieplayerwasm_markers(this.__wbg_ptr))}sm_fire(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;return 0!==e.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,r,i)}sm_stop(){return 0!==e.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)}sm_tick(t){return 0!==e.dotlottieplayerwasm_sm_tick(this.__wbg_ptr,t)}autoplay(){return 0!==e.dotlottieplayerwasm_autoplay(this.__wbg_ptr)}duration(){return e.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(t){e.dotlottieplayerwasm_set_loop(this.__wbg_ptr,t)}set_mode(t){e.dotlottieplayerwasm_set_mode(this.__wbg_ptr,t)}sm_start(t,r){let i=function(t,e){let r=e(4*t.length,4)>>>0,i=C();for(let e=0;e<t.length;e++)i.setUint32(r+4*e,p(t[e]),!0);return m=t.length,r}(r,e.__wbindgen_export_1),n=m;return 0!==e.dotlottieplayerwasm_sm_start(this.__wbg_ptr,t,i,n)}theme_id(){try{let i,n=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_theme_id(n,this.__wbg_ptr);var t=C().getInt32(n+0,!0),r=C().getInt32(n+4,!0);return 0!==t&&(i=k(t,r).slice(),e.__wbindgen_export_3(t,+r,1)),i}finally{e.__wbindgen_add_to_stack_pointer(16)}}load_font(t,r){let i=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m,o=E(r,e.__wbindgen_export_1),s=m;return 0!==e.dotlottieplayerwasm_load_font(this.__wbg_ptr,i,n,o,s)}set_frame(t){return 0!==e.dotlottieplayerwasm_set_frame(this.__wbg_ptr,t)}set_speed(t){e.dotlottieplayerwasm_set_speed(this.__wbg_ptr,t)}set_theme(t){let r=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),i=m;
1return 0!==e.dotlottieplayerwasm_set_theme(this.__wbg_ptr,r,i)}sm_status(){let t,r;try{let o=e.__wbindgen_add_to_stack_pointer(-16);e.dotlottieplayerwasm_sm_status(o,this.__wbg_ptr);var i=C().getInt32(o+0,!0),n=C().getInt32(o+4,!0);return t=i,r=n,k(i,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_export_3(t,r,1)}}};async function F(t,e){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,e)}catch(e){if("application/wasm"!=t.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e);else throw e}let r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}{let r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}async function R(t){let r;if(void 0!==e)return e;if(void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t)throw Error("WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().");let i=((r={}).wbg={},r.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return p(u[t].buffer)},r.wbg.__wbg_call_7cccdd69e0791ae2=function(){return g(function(t,e,r){return p(u[t].call(u[e],u[r]))},arguments)},r.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764=function(){return g(function(t,r){let i=v(URL.createObjectURL(u[r]),e.__wbindgen_export_1,e.__wbindgen_export_2),n=m;C().setInt32(t+4,n,!0),C().setInt32(t+0,i,!0)},arguments)},r.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,r){let i,n;try{i=t,n=r,console.error(k(t,r))}finally{e.__wbindgen_export_3(i,n,1)}},r.wbg.__wbg_length_a446193dc22c12f8=function(t){return u[t].length},r.wbg.__wbg_new_405e22f390576ce2=function(){return p({})},r.wbg.__wbg_new_78feb108b6472713=function(){return p([])},r.wbg.__wbg_new_8a6f238a6ece86ea=function(){return p(Error())},r.wbg.__wbg_new_a12002a7f91c75be=function(t){return p(new Uint8Array(u[t]))},r.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,e,r){return p(new Uint8Array(u[t],e>>>0,r>>>0))},r.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(t){return p(new Float32Array(t>>>0))},r.wbg.__wbg_newwithsrc_20307ca7e8762a81=function(){return g(function(t,e){return p(new Audio(k(t,e)))},arguments)},r.wbg.__wbg_newwithu8arraysequenceandoptions_068570c487f69127=function(){return g(function(t,e){return p(new Blob(u[t],u[e]))},arguments)},r.wbg.__wbg_pause_b74c96d69f769518=function(){return g(function(t){u[t].pause()},arguments)},r.wbg.__wbg_play_f6ec5fc4e84b0d26=function(){return g(function(t){return p(u[t].play())},arguments)},r.wbg.__wbg_push_737cfc8c1432c2c6=function(t,e){return u[t].push(u[e])},r.wbg.__wbg_revokeObjectURL_27267efebeb457c7=function(){return g(function(t,e){URL.revokeObjectURL(k(t,e))},arguments)},r.wbg.__wbg_set_65595bdd868b3009=function(t,e,r){u[t].set(u[e],r>>>0)},r.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return g(function(t,e,r){return Reflect.set(u[t],u[e],u[r])},arguments)},r.wbg.__wbg_setcurrentTime_64727eddd3966512=function(t,e){u[t].currentTime=e},r.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(t,e,r){u[t][e>>>0]=r},r.wbg.__wbg_setplaybackRate_f5c3b8896f82425e=function(t,e){u[t].playbackRate=e},r.wbg.__wbg_settype_39ed370d3edd403c=function(t,e,r){u[t].type=k(e,r)},r.wbg.__wbg_setvolume_3895e06a030ca4f7=function(t,e){u[t].volume=e},r.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,r){let i=v(u[r].stack,e.__wbindgen_export_1,e.__wbindgen_export_2),n=m;C().setInt32(t+4,n,!0),C().setInt32(t+0,i,!0)},r.wbg.__wbindgen_is_null=function(t){return null===u[t]},r.wbg.__wbindgen_is_undefined=function(t){return void 0===u[t]},r.wbg.__wbindgen_memory=function(){return p(e.memory)},r.wbg.__wbindgen_number_new=function(t){return p(t)},r.wbg.__wbindgen_object_drop_ref=function(t){x(t)},r.wbg.__wbindgen_string_get=function(t,r){let i=u[r],n="string"==typeof i?i:void 0;var o=null==n?0:v(n,e.__wbindgen_export_1,e.__wbindgen_export_2),s=m;C().setInt32(t+4,s,!0),C().setInt32(t+0,o,!0)},r.wbg.__wbindgen_string_new=function(t,e){return p(k(t,e))},r.wbg.__wbindgen_throw=function(t,e){throw Error(k(t,e))},r);("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));let{instance:n,module:o}=await F(await t,i);return e=n.exports,R.__wbindgen_wasm_module=o,L=null,S=null,f=null,e}var T=class{constructor(){o(this,"_eventListeners",new Map)}addEventListener(t,e){let r=this._eventListeners.get(t);r||(r=new Set,this._eventListeners.set(t,r)),r.add(e)}removeEventListener(t,e){let r=this._eventListeners.get(t);r&&(e?(r.delete(e),0===r.size&&this._eventListeners.delete(t)):this._eventListeners.delete(t))}
1dispatch(t){this._eventListeners.get(t.type)?.forEach(e=>e(t))}removeAllEventListeners(){this._eventListeners.clear()}},z=class t{static _initializeObserver(){t._observer||(t._observer=new IntersectionObserver(e=>{e.forEach(e=>{let r=t._observedCanvases.get(e.target);r&&(e.isIntersecting?r.unfreeze():r.freeze())})},{threshold:0}))}static observe(e,r){t._initializeObserver(),t._observedCanvases.has(e)||(t._observedCanvases.set(e,r),t._observer?.observe(e))}static unobserve(e){t._observer?.unobserve(e),t._observedCanvases.delete(e),0===t._observedCanvases.size&&(t._observer?.disconnect(),t._observer=null)}};o(z,"_observer",null),o(z,"_observedCanvases",new Map);var U=class t{static _initializeObserver(){t._observer||(t._observer=new ResizeObserver(e=>{e.forEach(e=>{let r=t._observedCanvases.get(e.target);if(!r)return;let[i,n]=r;clearTimeout(n);let o=setTimeout(()=>{i.resize()},100);t._observedCanvases.set(e.target,[i,o])})}))}static observe(e,r){t._initializeObserver(),t._observedCanvases.has(e)||(t._observedCanvases.set(e,[r,0]),t._observer?.observe(e))}static unobserve(e){let r=t._observedCanvases.get(e);if(r){let t=r[1];t&&clearTimeout(t)}t._observer?.unobserve(e),t._observedCanvases.delete(e),!t._observedCanvases.size&&t._observer&&(t._observer.disconnect(),t._observer=null)}};function D(t){if(t.byteLength<4)return!1;let e=new Uint8Array(t.slice(0,d.byteLength));for(let t=0;t<d.length;t+=1)if(d[t]!==e[t])return!1;return!0}function B(t){return"string"==typeof t?/^\s*\{/u.test(t)&&/\}\s*$/u.test(t):h.every(e=>Object.hasOwn(t,e))}function N(){return 1+((l?window.devicePixelRatio:1)-1)*.75}function $(t){let e=t.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return!(e.bottom<0||e.top>r||e.right<0||e.left>i)}function q(t){let e=t.target;if(e instanceof HTMLCanvasElement){let r=e.getBoundingClientRect();if(0===r.width||0===r.height||0===e.width||0===e.height)return null;let i=e.width/r.width,n=e.height/r.height,o=(t.clientX-r.left)*i,s=(t.clientY-r.top)*n;return!Number.isFinite(o)||!Number.isFinite(s)||Number.isNaN(o)||Number.isNaN(s)?null:{x:o,y:s}}return null}async function W(t){var e;if(!/^https?:\/\//i.test(t))return t;let r=await fetch(t);if(!r.ok)throw Error(`Failed to fetch image slot source from URL: ${t}. ${r.status}: ${r.statusText}`);return e=await r.blob(),new Promise((t,r)=>{let i=new FileReader;i.onerror=()=>r(i.error??Error("Failed to read image slot source")),i.onload=()=>t(i.result),i.readAsDataURL(e)})}o(U,"_observer",null),o(U,"_observedCanvases",new Map);let j=null;function H(){return j??(j=function(t,e,r){let i=null,n=e;async function o(e){await t({module_or_path:e})}async function s(e){let r=await fetch(e);if(!r.ok)throw Error(`fetch ${e} responded with ${r.status} ${r.statusText}`);await t({module_or_path:await r.arrayBuffer()})}return{load(){if(!i){let t=n;i=(async()=>{let e,n;try{await o(t);return}catch(i){e=i,console.warn(`Primary WASM load failed from ${t}: ${i.message}`),console.warn(`Attempting to load WASM from backup URL: ${r}`)}try{await o(r);return}catch(t){n=t,console.warn(`Backup WASM load failed from ${r}: ${t.message}`)}console.warn("Retrying WASM load with buffered instantiation");try{await s(t);return}catch(e){console.warn(`Buffered WASM load from ${t} failed: ${e.message}`)}try{await s(r);return}catch(t){throw console.error(`Primary WASM URL failed: ${e.message}`),console.error(`Backup WASM URL failed: ${n.message}`),console.error(`Buffered fallback failed: ${t.message}`),i=null,Error("WASM loading failed from all sources.")}})()}return i},setWasmUrl(t){t!==n&&(n=t,i=null)}}}(R,"https://cdn.jsdelivr.net/npm/@lottiefiles/[email protected]/dist/dotlottie-player.wasm","https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-player.wasm")),j}let J=t=>{switch(t){case"reverse":return I.Reverse;case"bounce":return I.Bounce;case"reverse-bounce":return I.ReverseBounce;default:return I.Forward}},V=t=>{switch(t){case I.Reverse:return"reverse";case I.Bounce:return"bounce";case I.ReverseBounce:return"reverse-bounce";default:return"forward"}};var G=class{constructor(t){o(this,"_canvas",null),o(this,"_pendingLoad",null),o(this,"_srcFetchAbort",null),o(this,"_context",null),o(this,"_eventManager",void 0),o(this,"_animationFrameId",null),o(this,"_frameManager",void 0),o(this,"_boundAnimationLoop",void 0),o(this,"_dotLottieCore",null),o(this,"_stateMachineId",""),o(this,"_stateMachineConfig",null),o(this,"_isStateMachineRunning",!1),o(this,"_renderConfig",{}),o(this,"_isFrozen",!1),o(this,"_backgroundColor",null),o(this,"_lastFrameTime",null),o(this,"_boundOnClick",null),o(this,"_boundOnPointerUp",null),o(this,"_boundOnPointerDown",null),o(this,"_boundOnPointerMove",null),o(this,"_boundOnPointerEnter",null),o(this,"_boundOnPointerLeave",null),o(this,"_bufferMismatchCount",0),o(this,"_lastExpectedBufferSize",0),o(this,"_cachedImageData",null),o(this,"_cachedImageDataBuffer",null),o(this,"_cachedImageDataByteOffset",0),o(this,"_marker",""),o(this,"_segment",null),this._canvas=t.canvas??null,this._eventManager=new T,this._frameManager=new a,this._boundAnimationLoop=this._animationLoop.bind(this),this._renderConfig={...t.renderConfig,devicePixelRatio:t.renderConfig?.devicePixelRatio||N(),freezeOnOffscreen:t.renderConfig?.freezeOnOffscreen??!0};let e=null;t.src&&!t.data&&(this._srcFetchAbort=new AbortController,(e=this._fetchData(t.src,this._srcFetchAbort.signal)).catch(()=>{})),this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(t.autoplay??!1),this._dotLottieCore.set_loop(t.loop??!1),this._dotLottieCore.set_loop_count(t.loopCount??0),this._dotLottieCore.set_mode(J(t.mode??"forward")),this._dotLottieCore.set_speed(t.speed??1),this._dotLottieCore.set_use_frame_interpolation(t.useFrameInterpolation??!0),t.segment&&2===t.segment.length&&(this._segment=[t.segment[0],t.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])),this._marker=t.marker??"",this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(t.layout?.fit??"contain",t.layout?.align?.[0]??.5,t.layout?.align?.[1]??.5),this._applyAssetResolver(t.assetResolver??null),this._stateMachineId=t.stateMachineId??"",this._stateMachineConfig=t.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:"ready"}
1),t.data?this._canvas?this._loadFromData(t.data):this._pendingLoad={data:t.data}:t.src&&(this._canvas?this._loadFromSrc(t.src,e):this._pendingLoad={src:t.src,dataPromise:e}),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor)}).catch(t=>{this._srcFetchAbort?.abort(),console.error("[dotlottie-web] Initialization failed:",t),this._eventManager.dispatch({type:"loadError",error:Error(`Failed to load wasm module: ${t}`)})})}async _initWasm(){return H().load()}_createCore(){return new O}_onCoreCreated(){}_setupTarget(t,e){return!!this._dotLottieCore&&this._dotLottieCore.setup_sw_target(t,e)}_drainPlayerEvents({skipFrame:t=!1}={}){if(this._dotLottieCore)for(;;){let e=this._dotLottieCore.poll_event();if(null==e)break;switch(e.type){case"Load":setTimeout(()=>this._eventManager.dispatch({type:"load"}),0);break;case"LoadError":setTimeout(()=>this._eventManager.dispatch({type:"loadError",error:Error("failed to load")}),0);break;case"Play":queueMicrotask(()=>this._eventManager.dispatch({type:"play"}));break;case"Pause":queueMicrotask(()=>this._eventManager.dispatch({type:"pause"}));break;case"Stop":queueMicrotask(()=>this._eventManager.dispatch({type:"stop"}));break;case"Frame":{let r=e.frameNo??0;t||queueMicrotask(()=>this._eventManager.dispatch({type:"frame",currentFrame:r}));break}case"Render":{let r=e.frameNo??0;t||queueMicrotask(()=>this._eventManager.dispatch({type:"render",currentFrame:r}));break}case"Loop":{let t=e.loopCount??0;queueMicrotask(()=>this._eventManager.dispatch({type:"loop",loopCount:t}));break}case"Complete":queueMicrotask(()=>this._eventManager.dispatch({type:"complete"}))}}}_discardPlayerEvents(){for(;this._dotLottieCore?.poll_event()!=null;);}_drainSmEvents(){if(this._dotLottieCore){for(;;){let t=this._dotLottieCore.sm_poll_event();if(null==t)break;switch(t.type){case"Start":queueMicrotask(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:"stateMachineStart"}),this._startAnimationLoop()});break;case"Stop":queueMicrotask(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:"stateMachineStop"}),this._dotLottieCore?.status()!==P.Playing&&this._stopAnimationLoop()});break;case"CustomEvent":this._eventManager.dispatch({type:"stateMachineCustomEvent",eventName:t.message??""});break;case"BooleanInputChange":this._eventManager.dispatch({type:"stateMachineBooleanInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"NumericInputChange":this._eventManager.dispatch({type:"stateMachineNumericInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"StringInputChange":this._eventManager.dispatch({type:"stateMachineStringInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"InputFired":this._eventManager.dispatch({type:"stateMachineInputFired",inputName:t.name??""});break;case"Transition":this._eventManager.dispatch({type:"stateMachineTransition",fromState:t.previousState??"",toState:t.newState??""});break;case"StateEntered":this._eventManager.dispatch({type:"stateMachineStateEntered",state:t.state??""});break;case"StateExit":this._eventManager.dispatch({type:"stateMachineStateExit",state:t.state??""});break;case"Error":this._eventManager.dispatch({type:"stateMachineError",error:t.message??""})}}for(;;){let t=this._dotLottieCore.sm_poll_internal_event();if(null==t)break;if("Message"===t.type){let e=t.message??"";l&&e.startsWith("OpenUrl: ")?function(t){let e=t.replace("OpenUrl: ",""),r=e.indexOf(" | Target: "),i,n;-1===r?(i=e,n="_blank"):(i=e.substring(0,r),n=e.substring(r+11)),window.open(i,n)}(e):this._eventManager.dispatch({type:"stateMachineInternalMessage",message:e})}}}}_dispatchError(t){console.error(t),this._eventManager.dispatch({type:"loadError",error:Error(t)})}async _fetchData(t,e=null){let r=await fetch(t,{signal:e});if(!r.ok)throw Error(`Failed to fetch animation data from URL: ${t}. ${r.status}: ${r.statusText}`);let i=await r.arrayBuffer();return D(i)?i:new TextDecoder().decode(i)}_loadFromData(t){if(null===this._dotLottieCore)return;if(!this._canvas)return void console.warn("[dotlottie-web] Cannot load animation without canvas. Call setCanvas() f
1irst.");this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height);let e=!1;if("string"==typeof t){if(!(e=this._dotLottieCore.load_animation(t))&&!B(t)){this._discardPlayerEvents(),this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");return}}else if(t instanceof ArrayBuffer){if(!D(t))return void this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");e=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t))}else{if("object"!=typeof t)return void this._dispatchError(`Unsupported data type for animation data. Expected:
2          - string (Lottie JSON),
3          - ArrayBuffer (dotLottie),
4          - object (Lottie JSON).
5          Received: ${typeof t}`);if(!B(t))return void this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");e=this._dotLottieCore.load_animation(JSON.stringify(t))}if(e){if(void 0!==this._renderConfig.quality&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents({skipFrame:!!this._marker||!!this._segment}),this._marker&&this._dotLottieCore.set_marker(this._marker),this._segment){this._dotLottieCore.set_segment(this._segment[0],this._segment[1]);let t=V(this._dotLottieCore.mode()),e="reverse"===t||"reverse-bounce"===t?this._segment[1]:this._segment[0];this._dotLottieCore.set_frame(e)}setTimeout(()=>{this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame})},0),this._dotLottieCore.render(),this._drainPlayerEvents(),this._draw(),this._stateMachineId?this.stateMachineLoad(this._stateMachineId)&&this.stateMachineStart()&&this._startAnimationLoop():this._dotLottieCore.status()===P.Playing&&this._startAnimationLoop(),l&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(z.observe(this._canvas,this),$(this._canvas)||this.freeze()),this._renderConfig.autoResize&&U.observe(this._canvas,this))}else this._drainPlayerEvents()}_loadFromSrc(t,e){(e??this._fetchData(t)).then(t=>this._loadFromData(t)).catch(e=>this._dispatchError(`Failed to load animation data from URL: ${t}. ${e}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.get_pixel_buffer():null}get activeAnimationId(){return this._dotLottieCore?.animation_id()??void 0}get activeThemeId(){return this._dotLottieCore?.theme_id()??void 0}get layout(){if(this._dotLottieCore)return{align:[this._dotLottieCore.layout_align_x(),this._dotLottieCore.layout_align_y()],fit:(t=>{switch(t){case"contain":default:return"contain";case"cover":return"cover";case"fill":return"fill";case"fit-height":return"fit-height";case"fit-width":return"fit-width";case"none":return"none"}})(this._dotLottieCore.layout_fit())}}get marker(){return this._dotLottieCore?.current_marker()??""}get manifest(){try{let t=this._dotLottieCore?.manifest_string();if(null===this._dotLottieCore||!t)return null;let e=JSON.parse(t);return 0===Object.keys(e).length?null:e}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){if(this._dotLottieCore)return[this._dotLottieCore.segment_start(),this._dotLottieCore.segment_end()]}get loop(){return this._dotLottieCore?.loop_animation()??!1}get mode(){return this._dotLottieCore?V(this._dotLottieCore.mode()):"forward"}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.autoplay()??!1}get useFrameInterpolation(){return this._dotLottieCore?.use_frame_interpolation()??!1}get speed(){return this._dotLottieCore?.speed()??0}get isReady(){return null!==this._dotLottieCore}get isLoaded(){return(this._dotLottieCore?.status()??P.Idle)!==P.Idle}get isPlaying(){return this._dotLottieCore?.status()===P.Playing}get isPaused(){return this._dotLottieCore?.status()===P.Paused}get isStopped(){return this._dotLottieCore?.status()===P.Stopped}get currentFrame(){return this._dotLottieCore?Math.round(100*this._dotLottieCore.current_frame())/100:0}get loopCount(){return this._dotLottieCore?.current_loop_count()??0}get totalFrames(){return this._dotLottieCore?.total_frames()??0}get duration(){return(this._dotLottieCore?.duration()??0)/1e3}
5get canvas(){return this._canvas}load(t){null!==this._dotLottieCore&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay(t.autoplay??!1),this._dotLottieCore.set_loop(t.loop??!1),this._dotLottieCore.set_loop_count(t.loopCount??0),this._dotLottieCore.set_mode(J(t.mode??"forward")),this._dotLottieCore.set_speed(t.speed??1),this._dotLottieCore.set_use_frame_interpolation(t.useFrameInterpolation??!0),t.segment&&2===t.segment.length?(this._segment=[t.segment[0],t.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])):(this._segment=null,this._dotLottieCore.clear_segment()),this._marker=t.marker??"",this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout(t.layout?.fit??"contain",t.layout?.align?.[0]??.5,t.layout?.align?.[1]??.5),this._applyAssetResolver(t.assetResolver??null),t.data?this._canvas?this._loadFromData(t.data):this._pendingLoad={data:t.data}:t.src&&(this._canvas?this._loadFromSrc(t.src):this._pendingLoad={src:t.src}),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor))}_draw(){if(null===this._dotLottieCore||null===this._canvas||(!this._context&&"getContext"in this._canvas&&"function"==typeof this._canvas.getContext&&(!l||"u">typeof HTMLCanvasElement&&this._canvas instanceof HTMLCanvasElement||"u">typeof OffscreenCanvas&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext("2d")),!this._context))return;let t=this._dotLottieCore.get_pixel_buffer(),e=this._canvas.width,r=this._canvas.height,i=e*r*4;if(t.byteLength!==i){this._lastExpectedBufferSize===i?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=i),10===this._bufferMismatchCount&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${i} bytes for canvas ${e}x${r}, but got ${t.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`);return}this._bufferMismatchCount=0,this._lastExpectedBufferSize=i;let n=this._cachedImageData;if(null===n||n.width!==e||n.height!==r||n.data.byteLength!==i||this._cachedImageDataBuffer!==t.buffer||this._cachedImageDataByteOffset!==t.byteOffset){if(typeof ImageData>"u")this._cachedImageData=this._context.createImageData(e,r);else{let i=new Uint8ClampedArray(t.buffer,t.byteOffset,t.byteLength);this._cachedImageData=new ImageData(i,e,r)}this._cachedImageDataBuffer=t.buffer,this._cachedImageDataByteOffset=t.byteOffset}if(typeof ImageData>"u"){let e=new Uint8ClampedArray(t.buffer,t.byteOffset,t.byteLength);this._cachedImageData.data.set(e)}this._context.putImageData(this._cachedImageData,0,0)}_cleanupCanvas(){this._canvas&&l&&this._canvas instanceof HTMLCanvasElement&&(z.unobserve(this._canvas),U.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&l&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(z.observe(this._canvas,this),$(this._canvas)||this.freeze()),this._renderConfig.autoResize&&U.observe(this._canvas,this),this._isStateMachineRunning&&this._setupStateMachineListeners()),this._canvas&&this._dotLottieCore&&this.isLoaded&&this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}_setupRendererOnCanvas(){this._context=null}_stopAnimationLoop(){null!==this._animationFrameId&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),this._lastFrameTime=null}_startAnimationLoop(){null===this._animationFrameId&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.status()===P.Playing||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop))}_animationLoop(t){if(null===this._dotLottieCore||this._dotLottieCore.status()!==P.Playing&&!this._isStateMachineRunning)return void this._stopAnimationLoop();try{let e=null===this._lastFrameTime?0:t-this._lastFrameTime;this._lastFrameTime=t;let r=this._isStateMachineRunning?this._dotLottieCore.sm_tick(e):this._dotLottieCore.tick(e);this._isStateMachineRunning?this._drainSmEvents():this._drainPlayerEvents(),r&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop)}catch(t){console.error("Error in animation frame:",t),this._eventManager.dispatch({type:"renderError",error:t}),t instanceof WebAssembly.RuntimeError&&this.destroy()}}play(){if(null===this._dotLottieCore||!this.isLoaded)return;this._stopAnimationLoop();let t=this._dotLottieCore.play();this._drainPlayerEvents(),(t||this._dotLottieCore.status()===P.Playing)&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&l&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!$(this._canvas)&&this.freeze()}pause(){null!==this._dotLottieCore&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(null===this._dotLottieCore)return;let t=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),t&&(this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(t){if(null!==this._dotLottieCore&&this._dotLottieCore.set_frame(t)){let t=this._dotLottieCore.render();this._drainPlayerEvents(),t&&this._draw()}}setSpeed(t){null!==this._dotLottieCore&&this._dotLottieCore.set_speed(t)}
5setBackgroundColor(t){if(null!==this._dotLottieCore){if(l&&this._canvas instanceof HTMLCanvasElement)this._canvas.style.backgroundColor=t;else{let[e,r,i,n]=function(t){if(!/^#([\da-f]{6}|[\da-f]{8})$/iu.test(t))return[0,0,0,0];let e=t.replace("#","");return[parseInt((e=6===e.length?`${e}ff`:e).slice(0,2),16)/255,parseInt(e.slice(2,4),16)/255,parseInt(e.slice(4,6),16)/255,parseInt(e.slice(6,8),16)/255]}(t);this._dotLottieCore.set_background(e,r,i,n)}this._backgroundColor=t}}setLoop(t){null!==this._dotLottieCore&&this._dotLottieCore.set_loop(t)}setLoopCount(t){null!==this._dotLottieCore&&this._dotLottieCore.set_loop_count(t)}setUseFrameInterpolation(t){null!==this._dotLottieCore&&this._dotLottieCore.set_use_frame_interpolation(t)}_applyAssetResolver(t){if(null!==this._dotLottieCore){if(null===t)return void this._dotLottieCore.set_asset_resolver(null);this._dotLottieCore.set_asset_resolver(e=>{try{return t(e)??null}catch(t){return console.error(`[dotlottie-web] assetResolver threw for "${e}":`,t),null}})}}addEventListener(t,e){this._eventManager.addEventListener(t,e)}removeEventListener(t,e){this._eventManager.removeEventListener(t,e)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas(),this._srcFetchAbort?.abort(),this._srcFetchAbort=null,this._pendingLoad=null;let t=this._dotLottieCore;if(this._dotLottieCore=null,this._context=null,t)try{t.free()}catch(t){console.warn("[dotlottie-web] Error freeing wasm core during destroy:",t)}this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){null!==this._animationFrameId&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){null===this._animationFrameId&&(this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}),this._startAnimationLoop())}_syncCanvasSize(){if(!(l&&this._canvas instanceof HTMLCanvasElement))return;let t=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:e,width:r}=this._canvas.getBoundingClientRect();0!==e&&0!==r&&(this._canvas.width=r*t,this._canvas.height=e*t)}resize(){this._dotLottieCore&&this.isLoaded&&this._canvas&&(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw()))}setCanvas(t){if(!(!t||this._canvas===t)&&(this._canvas&&this._cleanupCanvas(),this._canvas=t,this._initializeCanvas(),this._pendingLoad)){let t=this._pendingLoad;this._pendingLoad=null,t.data?this._loadFromData(t.data):t.src&&this._loadFromSrc(t.src,t.dataPromise)}}setTransform(t){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.set_transform(new Float32Array(t));return e&&this._dotLottieCore.render()&&this._draw(),e}getTransform(){if(this._dotLottieCore)return Array.from(this._dotLottieCore.get_transform())}setSegment(t,e){null!==this._dotLottieCore&&(this._segment=[t,e],this._dotLottieCore.set_segment(t,e))}resetSegment(){null!==this._dotLottieCore&&(this._segment=null,this._dotLottieCore.clear_segment())}setMode(t){null!==this._dotLottieCore&&this._dotLottieCore.set_mode(J(t))}setRenderConfig(t){let{devicePixelRatio:e,freezeOnOffscreen:r,quality:i,...n}=t;this._renderConfig={...this._renderConfig,...n,devicePixelRatio:e||N(),freezeOnOffscreen:r??!0,...void 0!==i&&{quality:i}},void 0!==i&&this._dotLottieCore&&this._dotLottieCore.set_quality(i),l&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?U.observe(this._canvas,this):U.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(z.observe(this._canvas,this),$(this._canvas)||this.freeze()):(z.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(t){null!==this._dotLottieCore&&this._dotLottieCore.animation_id()!==t&&this._canvas&&(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height),this._dotLottieCore.load_animation_from_id(t)?(void 0!==this._renderConfig.quality&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${t}`))}setMarker(t){null!==this._dotLottieCore&&(this.markers().some(e=>
5e.name===t)?(this._marker=t,this._dotLottieCore.set_marker(t)):(this._marker="",this._segment=null,this._dotLottieCore.clear_marker(),this._dotLottieCore.clear_segment()))}markers(){let t=this._dotLottieCore?.markers();return t&&Array.isArray(t)?t:[]}setTheme(t){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.set_theme(t);return e&&(this._dotLottieCore.render(),this._draw()),e}resetTheme(){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.reset_theme();return t&&(this._dotLottieCore.render(),this._draw()),t}setThemeData(t){if(null===this._dotLottieCore)return!1;let e="string"==typeof t?t:JSON.stringify(t),r=this._dotLottieCore.set_theme_data(e);return r&&(this._dotLottieCore.render(),this._draw()),r}setSlots(t){null!==this._dotLottieCore&&this._dotLottieCore.set_slots_str(JSON.stringify(t))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(t){return Array.isArray(t)&&t.length>0&&"object"==typeof t[0]&&null!==t[0]&&"t"in t[0]&&"s"in t[0]}getSlotIds(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.get_slot_ids();return Array.isArray(t)?t:[]}getSlotType(t){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_slot_type(t);if(e)return e}getSlot(t){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_slot_str(t);if(e)try{return JSON.parse(e)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(t,e){if(null===this._dotLottieCore)return!1;let r=JSON.stringify({a:+!!this._isKeyframeArray(e),k:e}),i=this._dotLottieCore.set_slot_str(t,r);return this._dotLottieCore.render(),this._draw(),i}setScalarSlot(t,e){if(null===this._dotLottieCore)return!1;let r=JSON.stringify({a:+("number"!=typeof e),k:e}),i=this._dotLottieCore.set_slot_str(t,r);return this._dotLottieCore.render(),this._draw(),i}setVectorSlot(t,e){if(null===this._dotLottieCore)return!1;let r=JSON.stringify({a:+!!this._isKeyframeArray(e),k:e}),i=this._dotLottieCore.set_slot_str(t,r);return this._dotLottieCore.render(),this._draw(),i}setGradientSlot(t,e,r){if(null===this._dotLottieCore)return!1;let i=JSON.stringify({k:{a:+!!this._isKeyframeArray(e),k:e},p:r}),n=this._dotLottieCore.set_slot_str(t,i);return this._dotLottieCore.render(),this._draw(),n}setTextSlot(t,e){if(null===this._dotLottieCore)return!1;let r=this._dotLottieCore.get_slot_str(t),i=e;if(r){let t=JSON.parse(r);if(t&&"k"in t&&Array.isArray(t.k)){let r=t.k[0];"s"in r&&"object"==typeof r.s&&(i={...r.s,...e})}}let n=JSON.stringify({a:0,k:[{t:0,s:i}]}),o=this._dotLottieCore.set_slot_str(t,n);return this._dotLottieCore.render(),this._draw(),o}async setImageSlot(t,e){if(null===this._dotLottieCore)return!1;let r=await W(e);if(null===this._dotLottieCore)return!1;let i=this._dotLottieCore.set_image_slot(t,r);return this._dotLottieCore.render(),this._draw(),i}resetSlot(t){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.reset_slot(t);return this._dotLottieCore.render(),this._draw(),e}clearSlot(t){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.clear_slot(t);return this._dotLottieCore.render(),this._draw(),e}resetSlots(){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),t}clearSlots(){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),t}setLayout(t){null!==this._dotLottieCore&&this._dotLottieCore.set_layout(t.fit??"contain",t.align?.[0]??.5,t.align?.[1]??.5)}setViewport(t,e,r,i){return null!==this._dotLottieCore&&this._dotLottieCore.set_viewport(t,e,r,i)}static setWasmUrl(t){H().setWasmUrl(t)}static preload(){return H().load()}static async registerFont(t,r){try{var i;let n,o,s,_,a;if(await H().load(),"string"==typeof r){let t=await fetch(r);if(!t.ok)return console.error(`Failed to fetch font from URL: ${r}. Status: ${t.status}`),!1;n=new Uint8Array(await t.arrayBuffer())}else n=r instanceof Uint8Array?r:new Uint8Array(r);let l=(i=n,o=v(t,e.__wbindgen_export_1,e.__wbindgen_export_2),s=m,_=E(i,e.__wbindgen_export_1),a=m,0!==e.register_font(o,s,_,a));return l||console.error(`Failed to register font "${t}". Font data may be invalid.`),l}catch(e){return console.error(`Error registering font "${t}":`,e),!1}}animationSize(){let t=this._dotLottieCore?.animation_size();return{width:t?.[0]??0,height:t?.[1]??0}}stateMachineLoad(t){return!!this._dotLottieCore&&this._dotLottieCore.state_machine_load_from_id(t)}stateMachineLoadData(t){return!!this._dotLottieCore&&this._dotLottieCore.state_machine_load(t)}stateMachineSetConfig(t){this._stateMachineConfig=t}
vendor: 4,865 bytes, line 5
5stateMachineStart(){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.sm_start(this._stateMachineConfig?.openUrlPolicy?.requireUserInteraction??!0,this._stateMachineConfig?.openUrlPolicy?.whitelist??[]);return this._drainSmEvents(),t&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),t}stateMachineStop(){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.sm_stop();return this._drainSmEvents(),t&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.status()!==P.Playing&&this._stopAnimationLoop()),t}stateMachineGetStatus(){return this._dotLottieCore?.sm_status()??""}stateMachineGetCurrentState(){return this._dotLottieCore?.sm_current_state()??""}stateMachineGetActiveId(){return this._dotLottieCore?.state_machine_id()??""}stateMachineOverrideState(t,e=!1){return this._dotLottieCore?.sm_override_current_state(t,e)??!1}stateMachineSetSeed(t){return this._dotLottieCore?.sm_set_seed(BigInt(Math.trunc(t)))??!1}stateMachineGet(t){return this._dotLottieCore?.get_state_machine(t)??""}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.sm_framework_setup();return Array.isArray(t)?t:[]}stateMachineSetBooleanInput(t,e){return this._dotLottieCore?.sm_set_boolean_input(t,e)??!1}stateMachineSetNumericInput(t,e){return this._dotLottieCore?.sm_set_numeric_input(t,e)??!1}stateMachineSetStringInput(t,e){return this._dotLottieCore?.sm_set_string_input(t,e)??!1}stateMachineGetBooleanInput(t){return this._dotLottieCore?.sm_get_boolean_input(t)??void 0}stateMachineGetNumericInput(t){return this._dotLottieCore?.sm_get_numeric_input(t)??void 0}stateMachineGetStringInput(t){return this._dotLottieCore?.sm_get_string_input(t)??void 0}stateMachineGetInputs(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.sm_get_inputs();return Array.isArray(t)?t:[]}stateMachineFireEvent(t){this._dotLottieCore?.sm_fire(t)}stateMachinePostClickEvent(t,e){this._dotLottieCore?.sm_post_click(t,e)}stateMachinePostPointerUpEvent(t,e){this._dotLottieCore?.sm_post_pointer_up(t,e)}stateMachinePostPointerDownEvent(t,e){this._dotLottieCore?.sm_post_pointer_down(t,e)}stateMachinePostPointerMoveEvent(t,e){this._dotLottieCore?.sm_post_pointer_move(t,e)}stateMachinePostPointerEnterEvent(t,e){this._dotLottieCore?.sm_post_pointer_enter(t,e)}stateMachinePostPointerExitEvent(t,e){this._dotLottieCore?.sm_post_pointer_exit(t,e)}_onClick(t){let e=q(t);e&&this.stateMachinePostClickEvent(e.x,e.y)}_onPointerUp(t){let e=q(t);e&&this.stateMachinePostPointerUpEvent(e.x,e.y)}_onPointerDown(t){let e=q(t);e&&this.stateMachinePostPointerDownEvent(e.x,e.y)}_onPointerMove(t){let e=q(t);e&&this.stateMachinePostPointerMoveEvent(e.x,e.y)}_onPointerEnter(t){let e=q(t);e&&this.stateMachinePostPointerEnterEvent(e.x,e.y)}_onPointerLeave(t){let e=q(t);e&&this.stateMachinePostPointerExitEvent(e.x,e.y)}_setupStateMachineListeners(){if(l&&this._canvas instanceof HTMLCanvasElement&&null!==this._dotLottieCore&&this.isLoaded){let t=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),t.includes("Click")&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener("click",this._boundOnClick)),t.includes("PointerUp")&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener("pointerup",this._boundOnPointerUp)),t.includes("PointerDown")&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener("pointerdown",this._boundOnPointerDown)),t.includes("PointerMove")&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener("pointermove",this._boundOnPointerMove)),t.includes("PointerEnter")&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener("pointerenter",this._boundOnPointerEnter)),t.includes("PointerExit")&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener("pointerleave",this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){l&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener("click",this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener("pointerup",this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener("pointerdown",this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener("pointermove",this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener("pointerenter",this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener("pointerleave",this._boundOnPointerLeave),this._boundOnPointerLeave=null))}},K=t.i(71645);
5let X=({animationId:t,autoplay:e,backgroundColor:i,className:n,createDotLottie:o,data:s,dotLottieRefCallback:_,layout:a,loop:l,loopCount:d,mode:h,playOnHover:u,renderConfig:c,segment:p,speed:g,src:m,stateMachineConfig:f,stateMachineId:w,style:b,themeData:y,themeId:v,useFrameInterpolation:L,workerId:C,...M})=>{let k=(0,K.useRef)(null),x=(0,K.useRef)(null),E=(0,K.useRef)(_),S=(0,K.useRef)(null),I={speed:g,mode:h,loop:l,loopCount:d,useFrameInterpolation:L,segment:p,backgroundColor:i,autoplay:e,themeId:v,workerId:C,src:m,data:s,layout:a,renderConfig:c,animationId:t,stateMachineConfig:f,stateMachineId:w},P=(0,K.useRef)(I);E.current=_,P.current=I;let A=(0,K.useCallback)(t=>{if(x.current=t,t){let e=S.current;e&&e.canvas===t?(clearTimeout(e.timer),S.current=null,k.current=e.instance):k.current?.canvas!==t&&(k.current=o({...P.current,canvas:t}))}else if(k.current){let t=k.current,e=t.canvas;k.current=null,e instanceof HTMLCanvasElement?S.current={canvas:e,instance:t,timer:setTimeout(()=>{S.current?.instance===t&&(S.current=null),t.destroy()},0)}:t.destroy()}E.current?.(k.current)},[]);return(0,K.useEffect)(()=>{let t=t=>{u&&("mouseenter"===t.type&&k.current?.play(),"mouseleave"===t.type&&k.current?.pause())};return x.current?.addEventListener("mouseenter",t),x.current?.addEventListener("mouseleave",t),()=>{x.current?.removeEventListener("mouseenter",t),x.current?.removeEventListener("mouseleave",t)}},[u]),(0,K.useEffect)(()=>{k.current?.setSpeed(g??1)},[g]),(0,K.useEffect)(()=>{k.current?.setMode(h??"forward")},[h]),(0,K.useEffect)(()=>{k.current?.setLoop(l??!1)},[l]),(0,K.useEffect)(()=>{k.current?.setLoopCount(d??0)},[d]),(0,K.useEffect)(()=>{k.current?.setUseFrameInterpolation(L??!0)},[L]),(0,K.useEffect)(()=>{"number"==typeof p?.[0]&&"number"==typeof p[1]?k.current?.setSegment(p[0],p[1]):k.current?.resetSegment()},[p]),(0,K.useEffect)(()=>{k.current?.setBackgroundColor(i??"")},[i]),(0,K.useEffect)(()=>{k.current?.setRenderConfig(c??{})},[JSON.stringify(c)]),(0,K.useEffect)(()=>{"string"!=typeof s&&"object"!=typeof s||k.current?.load({data:s,...P.current})},[s]),(0,K.useEffect)(()=>{"string"==typeof m&&k.current?.load({src:m,...P.current})},[m]),(0,K.useEffect)(()=>{k.current?.setMarker(M.marker??"")},[M.marker]),(0,K.useEffect)(()=>{k.current?.isLoaded&&k.current.activeAnimationId!==t&&k.current.loadAnimation(t??"")},[t]),(0,K.useEffect)(()=>{"string"==typeof v&&k.current?.setTheme(v)},[v]),(0,K.useEffect)(()=>{k.current?.setThemeData(y??"")},[y]),(0,K.useEffect)(()=>{k.current?.setLayout(a??{})},[a?.fit,a?.align?.[0],a?.align?.[1]]),(0,K.useEffect)(()=>{k.current?.isLoaded&&("string"==typeof w&&w?k.current.stateMachineLoad(w)&&k.current.stateMachineStart():k.current.stateMachineStop())},[w]),(0,K.useEffect)(()=>{k.current?.stateMachineSetConfig(f??null)},[f]),(0,r.jsx)("div",{className:n,...!n&&{style:{width:"100%",height:"100%",lineHeight:0,...b}},children:(0,r.jsx)("canvas",{ref:A,style:{width:"100%",height:"100%"},...M})})},Y=t=>new G(t),Q=t=>(0,r.jsx)(X,{...t,createDotLottie:Y});t.s(["default",0,t=>{let e,n,o,s,_=(0,i.c)(8);_[0]!==t?({autoplay:n,loop:o,...e}=t,_[0]=t,_[1]=e,_[2]=n,_[3]=o):(e=_[1],n=_[2],o=_[3]);let a=void 0===n||n,l=void 0===o||o;return _[4]!==a||_[5]!==l||_[6]!==e?(s=(0,r.jsx)(Q,{autoplay:a,loop:l,...e}),_[4]=a,_[5]=l,_[6]=e,_[7]=s):s=_[7],s}],83252)}]);

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.