@lottiefiles/dotlottie-web 0.66.0 → 0.66.1

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.
Binary file
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../dotlottie-DAqJ7ZaP.cjs`);let t,n=null;function r(){return(n===null||n.byteLength===0)&&(n=new Uint8Array(t.memory.buffer)),n}function i(e,t){return e>>>=0,r().subarray(e/1,e/1+t)}function a(e){return e==null}function o(e){let n=t.__externref_table_alloc_command_export();return t.__wbindgen_export_1.set(n,e),n}function s(e,n){try{return e.apply(this,n)}catch(e){let n=o(e);t.__wbindgen_exn_store_command_export(n)}}let c=0;const l=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},u=typeof l.encodeInto==`function`?function(e,t){return l.encodeInto(e,t)}:function(e,t){let n=l.encode(e);return t.set(n),{read:e.length,written:n.length}};function d(e,t,n){if(n===void 0){let n=l.encode(e),i=t(n.length,1)>>>0;return r().subarray(i,i+n.length).set(n),c=n.length,i}let i=e.length,a=t(i,1)>>>0,o=r(),s=0;for(;s<i;s++){let t=e.charCodeAt(s);if(t>127)break;o[a+s]=t}if(s!==i){s!==0&&(e=e.slice(s)),a=n(a,i,i=s+e.length*3,1)>>>0;let t=r().subarray(a+s,a+i),o=u(e,t);s+=o.written,a=n(a,i,s,1)>>>0}return c=s,a}let f=null;function p(){return(f===null||f.buffer.detached===!0||f.buffer.detached===void 0&&f.buffer!==t.memory.buffer)&&(f=new DataView(t.memory.buffer)),f}const m=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&m.decode();function h(e,t){return e>>>=0,m.decode(r().subarray(e,e+t))}let g=null;function _(){return(g===null||g.byteLength===0)&&(g=new Int32Array(t.memory.buffer)),g}function v(e,t){return e>>>=0,_().subarray(e/4,e/4+t)}let y=null;function b(){return(y===null||y.byteLength===0)&&(y=new Float32Array(t.memory.buffer)),y}function x(e,t){return e>>>=0,b().subarray(e/4,e/4+t)}function S(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=S(e[0]));for(let r=1;r<t;r++)n+=`, `+S(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function C(e,t){let n=t(e.length*1,1)>>>0;return r().set(e,n/1),c=e.length,n}function w(e,t){let n=t(e.length*4,4)>>>0;return b().set(e,n/4),c=e.length,n}function T(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=o(e[t]);p().setUint32(n+4*t,r,!0)}return c=e.length,n}Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`});const E=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_dotlottieplayerwasm_free(e>>>0,1));var D=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=t.dotlottieplayerwasm_new()>>>0,E.register(this,this.__wbg_ptr,this),this}set_webgl_context(e){t.dotlottieplayerwasm_set_webgl_context(this.__wbg_ptr,e)}load_animation(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_load_animation(this.__wbg_ptr,i,a,n,r)!==0}load_dotlottie_data(e,n,r){let i=C(e,t.__wbindgen_malloc_command_export),a=c;return t.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,i,a,n,r)!==0}load_animation_from_id(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,i,a,n,r)!==0}tick(){return t.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return t.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){t.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,n){return t.dotlottieplayerwasm_resize(this.__wbg_ptr,e,n)!==0}play(){return t.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return t.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return t.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return t.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return t.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return t.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return t.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return t.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return t.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return t.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return t.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return t.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return t.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return t.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return t.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return t.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return t.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){t.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return t.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return t.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return t.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return t.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){t.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return t.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){t.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return t.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){t.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return t.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){t.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return t.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){t.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return t.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){t.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return t.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return t.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return t.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return t.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return t.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return t.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return t.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,n){return t.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,n)!==0}clear_segment(){return t.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_set_layout(this.__wbg_ptr,i,a,n,r)!==0}layout_fit(){let e,n;try{let r=t.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}layout_align_x(){return t.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return t.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,n,r,i){return t.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,n,r,i)!==0}set_color_slot(e,n,r,i){let a=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=c;return t.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,a,o,n,r,i)!==0}set_scalar_slot(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,r,i,n)!==0}set_text_slot(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c,a=d(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=c;return t.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,r,i,a,o)!==0}set_vector_slot(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,i,a,n,r)!==0}set_position_slot(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,i,a,n,r)!==0}clear_slots(){return t.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,n,r)!==0}set_slots_str(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,n,r)!==0}set_slot_str(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c,a=d(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=c;return t.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,r,i,a,o)!==0}get_slot_str(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=h(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}get_slots_str(){let e,n;try{let r=t.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_slot_ids(){return t.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=h(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}reset_slot(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,n,r)!==0}reset_slots(){return t.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,n,r){let i=d(r,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,n,i,a)!==0}get_layer_bounds(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,n,r)}get_transform(){return t.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let n=w(e,t.__wbindgen_malloc_command_export),r=c;return t.dotlottieplayerwasm_set_transform(this.__wbg_ptr,n,r)!==0}tween(e,n){return t.dotlottieplayerwasm_tween(this.__wbg_ptr,e,a(n)?4294967297:Math.fround(n))!==0}tween_with_easing(e,n,r,i,o,s){return t.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,a(n)?4294967297:Math.fround(n),r,i,o,s)!==0}tween_stop(){return t.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return t.dotlottieplayerwasm_tween_update(this.__wbg_ptr,a(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,r,i,a(n)?4294967297:Math.fround(n))!==0}markers(){return t.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return t.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=t.dotlottieplayerwasm_current_marker(this.__wbg_ptr),n;return e[0]!==0&&(n=h(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}set_marker(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;t.dotlottieplayerwasm_set_marker(this.__wbg_ptr,n,r)}clear_marker(){t.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return t.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){t.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c,a=C(n,t.__wbindgen_malloc_command_export),o=c;return t.dotlottieplayerwasm_load_font(this.__wbg_ptr,r,i,a,o)!==0}static unload_font(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_unload_font(n,r)!==0}set_theme(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_set_theme(this.__wbg_ptr,n,r)!==0}reset_theme(){return t.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,n,r)!==0}theme_id(){let e=t.dotlottieplayerwasm_theme_id(this.__wbg_ptr),n;return e[0]!==0&&(n=h(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}animation_id(){let e=t.dotlottieplayerwasm_animation_id(this.__wbg_ptr),n;return e[0]!==0&&(n=h(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}manifest_string(){let e,n;try{let r=t.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_state_machine(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=h(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}state_machine_id(){let e=t.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),n;return e[0]!==0&&(n=h(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}state_machine_load(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,n,r)!==0}state_machine_load_from_id(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,n,r)!==0}state_machine_unload(){t.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,n,r)!==0}sm_set_numeric_input(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,r,i,n)!==0}sm_get_numeric_input(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,n,r);return i===4294967297?void 0:i}sm_set_string_input(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c,a=d(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=c;return t.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,r,i,a,o)!==0}sm_get_string_input(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=h(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}sm_set_boolean_input(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,r,i,n)!==0}sm_get_boolean_input(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,n,r);return i===16777215?void 0:i!==0}sm_reset_input(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;t.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,n,r)}sm_poll_event(){return t.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,n){let r=T(n,t.__wbindgen_malloc_command_export),i=c;return t.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,r,i)!==0}sm_stop(){return t.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,n;try{let r=t.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}sm_current_state(){let e,n;try{let r=t.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}sm_override_current_state(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,r,i,n)!==0}sm_framework_setup(){return t.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return t.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,n){t.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,n)}sm_post_pointer_down(e,n){t.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,n)}sm_post_pointer_up(e,n){t.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,n)}sm_post_pointer_move(e,n){t.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,n)}sm_post_pointer_enter(e,n){t.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,n)}sm_post_pointer_exit(e,n){t.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,n)}sm_poll_internal_event(){return t.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return t.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function O(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function k(){let e={};return e.wbg={},e.wbg.__wbg_activeTexture_460f2e367e813fb0=function(e,t){e.activeTexture(t>>>0)},e.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1=function(e,t,n){e.attachShader(t,n)},e.wbg.__wbg_bindBufferRange_454f90f2b1781982=function(e,t,n,r,i,a){e.bindBufferRange(t>>>0,n>>>0,r,i,a)},e.wbg.__wbg_bindBuffer_309c9a6c21826cf5=function(e,t,n){e.bindBuffer(t>>>0,n)},e.wbg.__wbg_bindFramebuffer_e48e83c0f973944d=function(e,t,n){e.bindFramebuffer(t>>>0,n)},e.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c=function(e,t,n){e.bindRenderbuffer(t>>>0,n)},e.wbg.__wbg_bindTexture_a6e795697f49ebd1=function(e,t,n){e.bindTexture(t>>>0,n)},e.wbg.__wbg_bindVertexArray_6b4b88581064b71f=function(e,t){e.bindVertexArray(t)},e.wbg.__wbg_blendEquation_c23d111ad6d268ff=function(e,t){e.blendEquation(t>>>0)},e.wbg.__wbg_blendFunc_c3b74be5a39c665f=function(e,t,n){e.blendFunc(t>>>0,n>>>0)},e.wbg.__wbg_blitFramebuffer_7303bdff77cfe967=function(e,t,n,r,i,a,o,s,c,l,u){e.blitFramebuffer(t,n,r,i,a,o,s,c,l>>>0,u>>>0)},e.wbg.__wbg_bufferData_463178757784fcac=function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},e.wbg.__wbg_bufferData_c97b729d560cf60d=function(e,t,n,r,a){e.bufferData(t>>>0,i(n,r),a>>>0)},e.wbg.__wbg_clearColor_d39507085c98a678=function(e,t,n,r,i){e.clearColor(t,n,r,i)},e.wbg.__wbg_clearDepth_670d19914a501259=function(e,t){e.clearDepth(t)},e.wbg.__wbg_clearStencil_4323424f1acca0df=function(e,t){e.clearStencil(t)},e.wbg.__wbg_clear_62b9037b892f6988=function(e,t){e.clear(t>>>0)},e.wbg.__wbg_colorMask_5e7c60b9c7a57a2e=function(e,t,n,r,i){e.colorMask(t!==0,n!==0,r!==0,i!==0)},e.wbg.__wbg_compileShader_0ad770bbdbb9de21=function(e,t){e.compileShader(t)},e.wbg.__wbg_createBuffer_9886e84a67b68c89=function(e){let t=e.createBuffer();return a(t)?0:o(t)},e.wbg.__wbg_createFramebuffer_c8d70ebc4858051e=function(e){let t=e.createFramebuffer();return a(t)?0:o(t)},e.wbg.__wbg_createProgram_da203074cafb1038=function(e){let t=e.createProgram();return a(t)?0:o(t)},e.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea=function(e){let t=e.createRenderbuffer();return a(t)?0:o(t)},e.wbg.__wbg_createShader_983150fb1243ee56=function(e,t){let n=e.createShader(t>>>0);return a(n)?0:o(n)},e.wbg.__wbg_createTexture_bfaa54c0cd22e367=function(e){let t=e.createTexture();return a(t)?0:o(t)},e.wbg.__wbg_createVertexArray_e435029ae2660efd=function(e){let t=e.createVertexArray();return a(t)?0:o(t)},e.wbg.__wbg_cullFace_187079e6e20a464d=function(e,t){e.cullFace(t>>>0)},e.wbg.__wbg_deleteBuffer_7ed96e1bf7c02e87=function(e,t){e.deleteBuffer(t)},e.wbg.__wbg_deleteFramebuffer_66853fb7101488cb=function(e,t){e.deleteFramebuffer(t)},e.wbg.__wbg_deleteProgram_71a133c6d053e272=function(e,t){e.deleteProgram(t)},e.wbg.__wbg_deleteRenderbuffer_59f4369653485031=function(e,t){e.deleteRenderbuffer(t)},e.wbg.__wbg_deleteShader_8d42f169deda58ac=function(e,t){e.deleteShader(t)},e.wbg.__wbg_deleteTexture_bb82c9fec34372ba=function(e,t){e.deleteTexture(t)},e.wbg.__wbg_deleteVertexArray_77fe73664a3332ae=function(e,t){e.deleteVertexArray(t)},e.wbg.__wbg_depthFunc_f34449ae87cc4e3e=function(e,t){e.depthFunc(t>>>0)},e.wbg.__wbg_depthMask_76688a8638b2f321=function(e,t){e.depthMask(t!==0)},e.wbg.__wbg_disableVertexAttribArray_452cc9815fced7e4=function(e,t){e.disableVertexAttribArray(t>>>0)},e.wbg.__wbg_disable_2702df5b5da5dd21=function(e,t){e.disable(t>>>0)},e.wbg.__wbg_drawElements_65cb4b099bd7d4ac=function(e,t,n,r,i){e.drawElements(t>>>0,n,r>>>0,i)},e.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7=function(e,t){e.enableVertexAttribArray(t>>>0)},e.wbg.__wbg_enable_51114837e05ee280=function(e,t){e.enable(t>>>0)},e.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715=function(e,t,n,r,i){e.framebufferRenderbuffer(t>>>0,n>>>0,r>>>0,i)},e.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a=function(e,t,n,r,i,a){e.framebufferTexture2D(t>>>0,n>>>0,r>>>0,i,a)},e.wbg.__wbg_frontFace_289c9d7a8569c4f2=function(e,t){e.frontFace(t>>>0)},e.wbg.__wbg_getParameter_e3429f024018310f=function(){return s(function(e,t){return e.getParameter(t>>>0)},arguments)},e.wbg.__wbg_getProgramInfoLog_a998105a680059db=function(e,n,r){let i=n.getProgramInfoLog(r);var o=a(i)?0:d(i,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=c;p().setInt32(e+4,s,!0),p().setInt32(e+0,o,!0)},e.wbg.__wbg_getProgramParameter_360f95ff07ac068d=function(e,t,n){return e.getProgramParameter(t,n>>>0)},e.wbg.__wbg_getShaderInfoLog_f59c3112acc6e039=function(e,n,r){let i=n.getShaderInfoLog(r);var o=a(i)?0:d(i,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=c;p().setInt32(e+4,s,!0),p().setInt32(e+0,o,!0)},e.wbg.__wbg_getShaderParameter_511b5f929074fa31=function(e,t,n){return e.getShaderParameter(t,n>>>0)},e.wbg.__wbg_getUniformBlockIndex_288fdc31528171ca=function(e,t,n,r){return e.getUniformBlockIndex(t,h(n,r))},e.wbg.__wbg_getUniformLocation_657a2b6d102bd126=function(e,t,n,r){let i=e.getUniformLocation(t,h(n,r));return a(i)?0:o(i)},e.wbg.__wbg_invalidateFramebuffer_83f643d2a4936456=function(){return s(function(e,t,n){e.invalidateFramebuffer(t>>>0,n)},arguments)},e.wbg.__wbg_linkProgram_067ee06739bdde81=function(e,t){e.linkProgram(t)},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_renderbufferStorageMultisample_13fbd5e58900c6fe=function(e,t,n,r,i,a){e.renderbufferStorageMultisample(t>>>0,n,r>>>0,i,a)},e.wbg.__wbg_scissor_e917a332f67a5d30=function(e,t,n,r,i){e.scissor(t,n,r,i)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return s(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_shaderSource_72d3e8597ef85b67=function(e,t,n,r){e.shaderSource(t,h(n,r))},e.wbg.__wbg_stencilFuncSeparate_c1a6fa2005ca0aaf=function(e,t,n,r,i){e.stencilFuncSeparate(t>>>0,n>>>0,r,i>>>0)},e.wbg.__wbg_stencilFunc_115c92784472048b=function(e,t,n,r){e.stencilFunc(t>>>0,n,r>>>0)},e.wbg.__wbg_stencilOpSeparate_ff6683bbe3838ae6=function(e,t,n,r,i){e.stencilOpSeparate(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_stencilOp_b794f03cef95238e=function(e,t,n,r){e.stencilOp(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_texImage2D_06281e677e3f6909=function(){return s(function(e,t,n,r,a,o,s,c,l,u,d){e.texImage2D(t>>>0,n,r,a,o,s,c>>>0,l>>>0,u===0?void 0:i(u,d))},arguments)},e.wbg.__wbg_texParameteri_8112b26b3c360b7e=function(e,t,n,r){e.texParameteri(t>>>0,n>>>0,r)},e.wbg.__wbg_uniform1f_dc009a0e7f7e5977=function(e,t,n){e.uniform1f(t,n)},e.wbg.__wbg_uniform1i_ed95b6129dce4d84=function(e,t,n){e.uniform1i(t,n)},e.wbg.__wbg_uniform1iv_337c4a74e31ddc15=function(e,t,n,r){e.uniform1iv(t,v(n,r))},e.wbg.__wbg_uniformBlockBinding_18117f4bda07115b=function(e,t,n,r){e.uniformBlockBinding(t,n>>>0,r>>>0)},e.wbg.__wbg_uniformMatrix3fv_3df529aab93cf902=function(e,t,n,r,i){e.uniformMatrix3fv(t,n!==0,x(r,i))},e.wbg.__wbg_useProgram_9b2660f7bb210471=function(e,t){e.useProgram(t)},e.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea=function(e,t,n,r,i,a,o){e.vertexAttribPointer(t>>>0,n,r>>>0,i!==0,a,o)},e.wbg.__wbg_viewport_e615e98f676f2d39=function(e,t,n,r,i){e.viewport(t,n,r,i)},e.wbg.__wbindgen_boolean_get=function(e){let t=e;return typeof t==`boolean`?t?1:0:2},e.wbg.__wbindgen_debug_string=function(e,n){let r=d(S(n),t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;p().setInt32(e+4,i,!0),p().setInt32(e+0,r,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=t.__wbindgen_export_1,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},e.wbg.__wbindgen_number_get=function(e,t){let n=t,r=typeof n==`number`?n:void 0;p().setFloat64(e+8,a(r)?0:r,!0),p().setInt32(e+0,!a(r),!0)},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,n){let r=n,i=typeof r==`string`?r:void 0;var o=a(i)?0:d(i,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=c;p().setInt32(e+4,s,!0),p().setInt32(e+0,o,!0)},e.wbg.__wbindgen_string_new=function(e,t){return h(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(h(e,t))},e}function A(e,r){return t=e.exports,j.__wbindgen_wasm_module=r,f=null,y=null,g=null,n=null,t.__wbindgen_start(),t}async function j(e){if(t!==void 0)return t;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let n=k();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:i}=await O(await e,n);return A(r,i)}const M=e.n(j,`https://cdn.jsdelivr.net/npm/${e.d}@${e.f}/dist/webgl/dotlottie-player.wasm`,`https://unpkg.com/${e.d}@${e.f}/dist/webgl/dotlottie-player.wasm`);var N=class extends e.t{constructor(e){super(e)}async _initWasm(){return M.load()}_createCore(){return new D}_onCoreCreated(){if(!this._canvas||!this._dotLottieCore)return;let t=this._canvas;if(e.u){let n=this._renderConfig.devicePixelRatio||e.r(),{width:r,height:i}=t.getBoundingClientRect();r!==0&&i!==0&&(t.width=Math.round(r*n),t.height=Math.round(i*n))}let n=t.getContext(`webgl2`);if(!n)throw Error(`Failed to get WebGL2 context. Ensure the browser supports WebGL2.`);this._dotLottieCore.set_webgl_context(n)}_draw(){}_setupRendererOnCanvas(){if(this._context=null,!this._canvas||!this._dotLottieCore)return;let t=this._canvas;if(e.u){let n=this._renderConfig.devicePixelRatio||e.r(),{width:r,height:i}=t.getBoundingClientRect();r!==0&&i!==0&&(t.width=Math.round(r*n),t.height=Math.round(i*n))}let n=t.getContext(`webgl2`);n&&this._dotLottieCore.set_webgl_context(n)}static setWasmUrl(e){M.setWasmUrl(e)}};exports.DotLottie=N;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../dotlottie-ls0cVLtn.cjs`);let t,n=null;function r(){return(n===null||n.byteLength===0)&&(n=new Uint8Array(t.memory.buffer)),n}function i(e,t){return e>>>=0,r().subarray(e/1,e/1+t)}function a(e){return e==null}function o(e){let n=t.__externref_table_alloc_command_export();return t.__wbindgen_export_1.set(n,e),n}function s(e,n){try{return e.apply(this,n)}catch(e){let n=o(e);t.__wbindgen_exn_store_command_export(n)}}let c=0;const l=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},u=typeof l.encodeInto==`function`?function(e,t){return l.encodeInto(e,t)}:function(e,t){let n=l.encode(e);return t.set(n),{read:e.length,written:n.length}};function d(e,t,n){if(n===void 0){let n=l.encode(e),i=t(n.length,1)>>>0;return r().subarray(i,i+n.length).set(n),c=n.length,i}let i=e.length,a=t(i,1)>>>0,o=r(),s=0;for(;s<i;s++){let t=e.charCodeAt(s);if(t>127)break;o[a+s]=t}if(s!==i){s!==0&&(e=e.slice(s)),a=n(a,i,i=s+e.length*3,1)>>>0;let t=r().subarray(a+s,a+i),o=u(e,t);s+=o.written,a=n(a,i,s,1)>>>0}return c=s,a}let f=null;function p(){return(f===null||f.buffer.detached===!0||f.buffer.detached===void 0&&f.buffer!==t.memory.buffer)&&(f=new DataView(t.memory.buffer)),f}const m=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&m.decode();function h(e,t){return e>>>=0,m.decode(r().subarray(e,e+t))}let g=null;function _(){return(g===null||g.byteLength===0)&&(g=new Int32Array(t.memory.buffer)),g}function v(e,t){return e>>>=0,_().subarray(e/4,e/4+t)}let y=null;function b(){return(y===null||y.byteLength===0)&&(y=new Float32Array(t.memory.buffer)),y}function x(e,t){return e>>>=0,b().subarray(e/4,e/4+t)}function S(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=S(e[0]));for(let r=1;r<t;r++)n+=`, `+S(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function C(e,t){let n=t(e.length*1,1)>>>0;return r().set(e,n/1),c=e.length,n}function w(e,t){let n=t(e.length*4,4)>>>0;return b().set(e,n/4),c=e.length,n}function T(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=o(e[t]);p().setUint32(n+4*t,r,!0)}return c=e.length,n}Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`});const E=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_dotlottieplayerwasm_free(e>>>0,1));var D=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=t.dotlottieplayerwasm_new()>>>0,E.register(this,this.__wbg_ptr,this),this}set_webgl_context(e){t.dotlottieplayerwasm_set_webgl_context(this.__wbg_ptr,e)}load_animation(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_load_animation(this.__wbg_ptr,i,a,n,r)!==0}load_dotlottie_data(e,n,r){let i=C(e,t.__wbindgen_malloc_command_export),a=c;return t.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,i,a,n,r)!==0}load_animation_from_id(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,i,a,n,r)!==0}tick(){return t.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return t.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){t.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,n){return t.dotlottieplayerwasm_resize(this.__wbg_ptr,e,n)!==0}play(){return t.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return t.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return t.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return t.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return t.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return t.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return t.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return t.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return t.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return t.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return t.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return t.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return t.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return t.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return t.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return t.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return t.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){t.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return t.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return t.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return t.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return t.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){t.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return t.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){t.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return t.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){t.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return t.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){t.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return t.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){t.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return t.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){t.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return t.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return t.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return t.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return t.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return t.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return t.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return t.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,n){return t.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,n)!==0}clear_segment(){return t.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_set_layout(this.__wbg_ptr,i,a,n,r)!==0}layout_fit(){let e,n;try{let r=t.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}layout_align_x(){return t.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return t.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,n,r,i){return t.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,n,r,i)!==0}set_color_slot(e,n,r,i){let a=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=c;return t.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,a,o,n,r,i)!==0}set_scalar_slot(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,r,i,n)!==0}set_text_slot(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c,a=d(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=c;return t.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,r,i,a,o)!==0}set_vector_slot(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,i,a,n,r)!==0}set_position_slot(e,n,r){let i=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,i,a,n,r)!==0}clear_slots(){return t.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,n,r)!==0}set_slots_str(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,n,r)!==0}set_slot_str(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c,a=d(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=c;return t.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,r,i,a,o)!==0}get_slot_str(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=h(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}get_slots_str(){let e,n;try{let r=t.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_slot_ids(){return t.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=h(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}reset_slot(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,n,r)!==0}reset_slots(){return t.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,n,r){let i=d(r,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=c;return t.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,n,i,a)!==0}get_layer_bounds(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,n,r)}get_transform(){return t.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let n=w(e,t.__wbindgen_malloc_command_export),r=c;return t.dotlottieplayerwasm_set_transform(this.__wbg_ptr,n,r)!==0}tween(e,n){return t.dotlottieplayerwasm_tween(this.__wbg_ptr,e,a(n)?4294967297:Math.fround(n))!==0}tween_with_easing(e,n,r,i,o,s){return t.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,a(n)?4294967297:Math.fround(n),r,i,o,s)!==0}tween_stop(){return t.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return t.dotlottieplayerwasm_tween_update(this.__wbg_ptr,a(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,r,i,a(n)?4294967297:Math.fround(n))!==0}markers(){return t.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return t.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=t.dotlottieplayerwasm_current_marker(this.__wbg_ptr),n;return e[0]!==0&&(n=h(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}set_marker(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;t.dotlottieplayerwasm_set_marker(this.__wbg_ptr,n,r)}clear_marker(){t.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return t.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){t.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c,a=C(n,t.__wbindgen_malloc_command_export),o=c;return t.dotlottieplayerwasm_load_font(this.__wbg_ptr,r,i,a,o)!==0}static unload_font(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_unload_font(n,r)!==0}set_theme(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_set_theme(this.__wbg_ptr,n,r)!==0}reset_theme(){return t.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,n,r)!==0}theme_id(){let e=t.dotlottieplayerwasm_theme_id(this.__wbg_ptr),n;return e[0]!==0&&(n=h(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}animation_id(){let e=t.dotlottieplayerwasm_animation_id(this.__wbg_ptr),n;return e[0]!==0&&(n=h(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}manifest_string(){let e,n;try{let r=t.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_state_machine(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=h(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}state_machine_id(){let e=t.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),n;return e[0]!==0&&(n=h(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}state_machine_load(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,n,r)!==0}state_machine_load_from_id(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,n,r)!==0}state_machine_unload(){t.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;return t.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,n,r)!==0}sm_set_numeric_input(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,r,i,n)!==0}sm_get_numeric_input(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,n,r);return i===4294967297?void 0:i}sm_set_string_input(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c,a=d(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=c;return t.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,r,i,a,o)!==0}sm_get_string_input(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=h(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}sm_set_boolean_input(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,r,i,n)!==0}sm_get_boolean_input(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c,i=t.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,n,r);return i===16777215?void 0:i!==0}sm_reset_input(e){let n=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=c;t.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,n,r)}sm_poll_event(){return t.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,n){let r=T(n,t.__wbindgen_malloc_command_export),i=c;return t.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,r,i)!==0}sm_stop(){return t.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,n;try{let r=t.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}sm_current_state(){let e,n;try{let r=t.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=r[0],n=r[1],h(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}sm_override_current_state(e,n){let r=d(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;return t.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,r,i,n)!==0}sm_framework_setup(){return t.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return t.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,n){t.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,n)}sm_post_pointer_down(e,n){t.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,n)}sm_post_pointer_up(e,n){t.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,n)}sm_post_pointer_move(e,n){t.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,n)}sm_post_pointer_enter(e,n){t.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,n)}sm_post_pointer_exit(e,n){t.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,n)}sm_poll_internal_event(){return t.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return t.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function O(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function k(){let e={};return e.wbg={},e.wbg.__wbg_activeTexture_460f2e367e813fb0=function(e,t){e.activeTexture(t>>>0)},e.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1=function(e,t,n){e.attachShader(t,n)},e.wbg.__wbg_bindBufferRange_454f90f2b1781982=function(e,t,n,r,i,a){e.bindBufferRange(t>>>0,n>>>0,r,i,a)},e.wbg.__wbg_bindBuffer_309c9a6c21826cf5=function(e,t,n){e.bindBuffer(t>>>0,n)},e.wbg.__wbg_bindFramebuffer_e48e83c0f973944d=function(e,t,n){e.bindFramebuffer(t>>>0,n)},e.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c=function(e,t,n){e.bindRenderbuffer(t>>>0,n)},e.wbg.__wbg_bindTexture_a6e795697f49ebd1=function(e,t,n){e.bindTexture(t>>>0,n)},e.wbg.__wbg_bindVertexArray_6b4b88581064b71f=function(e,t){e.bindVertexArray(t)},e.wbg.__wbg_blendEquation_c23d111ad6d268ff=function(e,t){e.blendEquation(t>>>0)},e.wbg.__wbg_blendFunc_c3b74be5a39c665f=function(e,t,n){e.blendFunc(t>>>0,n>>>0)},e.wbg.__wbg_blitFramebuffer_7303bdff77cfe967=function(e,t,n,r,i,a,o,s,c,l,u){e.blitFramebuffer(t,n,r,i,a,o,s,c,l>>>0,u>>>0)},e.wbg.__wbg_bufferData_463178757784fcac=function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},e.wbg.__wbg_bufferData_c97b729d560cf60d=function(e,t,n,r,a){e.bufferData(t>>>0,i(n,r),a>>>0)},e.wbg.__wbg_clearColor_d39507085c98a678=function(e,t,n,r,i){e.clearColor(t,n,r,i)},e.wbg.__wbg_clearDepth_670d19914a501259=function(e,t){e.clearDepth(t)},e.wbg.__wbg_clearStencil_4323424f1acca0df=function(e,t){e.clearStencil(t)},e.wbg.__wbg_clear_62b9037b892f6988=function(e,t){e.clear(t>>>0)},e.wbg.__wbg_colorMask_5e7c60b9c7a57a2e=function(e,t,n,r,i){e.colorMask(t!==0,n!==0,r!==0,i!==0)},e.wbg.__wbg_compileShader_0ad770bbdbb9de21=function(e,t){e.compileShader(t)},e.wbg.__wbg_createBuffer_9886e84a67b68c89=function(e){let t=e.createBuffer();return a(t)?0:o(t)},e.wbg.__wbg_createFramebuffer_c8d70ebc4858051e=function(e){let t=e.createFramebuffer();return a(t)?0:o(t)},e.wbg.__wbg_createProgram_da203074cafb1038=function(e){let t=e.createProgram();return a(t)?0:o(t)},e.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea=function(e){let t=e.createRenderbuffer();return a(t)?0:o(t)},e.wbg.__wbg_createShader_983150fb1243ee56=function(e,t){let n=e.createShader(t>>>0);return a(n)?0:o(n)},e.wbg.__wbg_createTexture_bfaa54c0cd22e367=function(e){let t=e.createTexture();return a(t)?0:o(t)},e.wbg.__wbg_createVertexArray_e435029ae2660efd=function(e){let t=e.createVertexArray();return a(t)?0:o(t)},e.wbg.__wbg_cullFace_187079e6e20a464d=function(e,t){e.cullFace(t>>>0)},e.wbg.__wbg_deleteBuffer_7ed96e1bf7c02e87=function(e,t){e.deleteBuffer(t)},e.wbg.__wbg_deleteFramebuffer_66853fb7101488cb=function(e,t){e.deleteFramebuffer(t)},e.wbg.__wbg_deleteProgram_71a133c6d053e272=function(e,t){e.deleteProgram(t)},e.wbg.__wbg_deleteRenderbuffer_59f4369653485031=function(e,t){e.deleteRenderbuffer(t)},e.wbg.__wbg_deleteShader_8d42f169deda58ac=function(e,t){e.deleteShader(t)},e.wbg.__wbg_deleteTexture_bb82c9fec34372ba=function(e,t){e.deleteTexture(t)},e.wbg.__wbg_deleteVertexArray_77fe73664a3332ae=function(e,t){e.deleteVertexArray(t)},e.wbg.__wbg_depthFunc_f34449ae87cc4e3e=function(e,t){e.depthFunc(t>>>0)},e.wbg.__wbg_depthMask_76688a8638b2f321=function(e,t){e.depthMask(t!==0)},e.wbg.__wbg_disableVertexAttribArray_452cc9815fced7e4=function(e,t){e.disableVertexAttribArray(t>>>0)},e.wbg.__wbg_disable_2702df5b5da5dd21=function(e,t){e.disable(t>>>0)},e.wbg.__wbg_drawElements_65cb4b099bd7d4ac=function(e,t,n,r,i){e.drawElements(t>>>0,n,r>>>0,i)},e.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7=function(e,t){e.enableVertexAttribArray(t>>>0)},e.wbg.__wbg_enable_51114837e05ee280=function(e,t){e.enable(t>>>0)},e.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715=function(e,t,n,r,i){e.framebufferRenderbuffer(t>>>0,n>>>0,r>>>0,i)},e.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a=function(e,t,n,r,i,a){e.framebufferTexture2D(t>>>0,n>>>0,r>>>0,i,a)},e.wbg.__wbg_frontFace_289c9d7a8569c4f2=function(e,t){e.frontFace(t>>>0)},e.wbg.__wbg_getParameter_e3429f024018310f=function(){return s(function(e,t){return e.getParameter(t>>>0)},arguments)},e.wbg.__wbg_getProgramInfoLog_a998105a680059db=function(e,n,r){let i=n.getProgramInfoLog(r);var o=a(i)?0:d(i,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=c;p().setInt32(e+4,s,!0),p().setInt32(e+0,o,!0)},e.wbg.__wbg_getProgramParameter_360f95ff07ac068d=function(e,t,n){return e.getProgramParameter(t,n>>>0)},e.wbg.__wbg_getShaderInfoLog_f59c3112acc6e039=function(e,n,r){let i=n.getShaderInfoLog(r);var o=a(i)?0:d(i,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=c;p().setInt32(e+4,s,!0),p().setInt32(e+0,o,!0)},e.wbg.__wbg_getShaderParameter_511b5f929074fa31=function(e,t,n){return e.getShaderParameter(t,n>>>0)},e.wbg.__wbg_getUniformBlockIndex_288fdc31528171ca=function(e,t,n,r){return e.getUniformBlockIndex(t,h(n,r))},e.wbg.__wbg_getUniformLocation_657a2b6d102bd126=function(e,t,n,r){let i=e.getUniformLocation(t,h(n,r));return a(i)?0:o(i)},e.wbg.__wbg_invalidateFramebuffer_83f643d2a4936456=function(){return s(function(e,t,n){e.invalidateFramebuffer(t>>>0,n)},arguments)},e.wbg.__wbg_linkProgram_067ee06739bdde81=function(e,t){e.linkProgram(t)},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_renderbufferStorageMultisample_13fbd5e58900c6fe=function(e,t,n,r,i,a){e.renderbufferStorageMultisample(t>>>0,n,r>>>0,i,a)},e.wbg.__wbg_scissor_e917a332f67a5d30=function(e,t,n,r,i){e.scissor(t,n,r,i)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return s(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_shaderSource_72d3e8597ef85b67=function(e,t,n,r){e.shaderSource(t,h(n,r))},e.wbg.__wbg_stencilFuncSeparate_c1a6fa2005ca0aaf=function(e,t,n,r,i){e.stencilFuncSeparate(t>>>0,n>>>0,r,i>>>0)},e.wbg.__wbg_stencilFunc_115c92784472048b=function(e,t,n,r){e.stencilFunc(t>>>0,n,r>>>0)},e.wbg.__wbg_stencilOpSeparate_ff6683bbe3838ae6=function(e,t,n,r,i){e.stencilOpSeparate(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_stencilOp_b794f03cef95238e=function(e,t,n,r){e.stencilOp(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_texImage2D_06281e677e3f6909=function(){return s(function(e,t,n,r,a,o,s,c,l,u,d){e.texImage2D(t>>>0,n,r,a,o,s,c>>>0,l>>>0,u===0?void 0:i(u,d))},arguments)},e.wbg.__wbg_texParameteri_8112b26b3c360b7e=function(e,t,n,r){e.texParameteri(t>>>0,n>>>0,r)},e.wbg.__wbg_uniform1f_dc009a0e7f7e5977=function(e,t,n){e.uniform1f(t,n)},e.wbg.__wbg_uniform1i_ed95b6129dce4d84=function(e,t,n){e.uniform1i(t,n)},e.wbg.__wbg_uniform1iv_337c4a74e31ddc15=function(e,t,n,r){e.uniform1iv(t,v(n,r))},e.wbg.__wbg_uniformBlockBinding_18117f4bda07115b=function(e,t,n,r){e.uniformBlockBinding(t,n>>>0,r>>>0)},e.wbg.__wbg_uniformMatrix3fv_3df529aab93cf902=function(e,t,n,r,i){e.uniformMatrix3fv(t,n!==0,x(r,i))},e.wbg.__wbg_useProgram_9b2660f7bb210471=function(e,t){e.useProgram(t)},e.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea=function(e,t,n,r,i,a,o){e.vertexAttribPointer(t>>>0,n,r>>>0,i!==0,a,o)},e.wbg.__wbg_viewport_e615e98f676f2d39=function(e,t,n,r,i){e.viewport(t,n,r,i)},e.wbg.__wbindgen_boolean_get=function(e){let t=e;return typeof t==`boolean`?t?1:0:2},e.wbg.__wbindgen_debug_string=function(e,n){let r=d(S(n),t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=c;p().setInt32(e+4,i,!0),p().setInt32(e+0,r,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=t.__wbindgen_export_1,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},e.wbg.__wbindgen_number_get=function(e,t){let n=t,r=typeof n==`number`?n:void 0;p().setFloat64(e+8,a(r)?0:r,!0),p().setInt32(e+0,!a(r),!0)},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,n){let r=n,i=typeof r==`string`?r:void 0;var o=a(i)?0:d(i,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=c;p().setInt32(e+4,s,!0),p().setInt32(e+0,o,!0)},e.wbg.__wbindgen_string_new=function(e,t){return h(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(h(e,t))},e}function A(e,r){return t=e.exports,j.__wbindgen_wasm_module=r,f=null,y=null,g=null,n=null,t.__wbindgen_start(),t}async function j(e){if(t!==void 0)return t;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let n=k();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:i}=await O(await e,n);return A(r,i)}const M=e.n(j,`https://cdn.jsdelivr.net/npm/${e.d}@${e.f}/dist/webgl/dotlottie-player.wasm`,`https://unpkg.com/${e.d}@${e.f}/dist/webgl/dotlottie-player.wasm`);var N=class extends e.t{constructor(e){super(e)}async _initWasm(){return M.load()}_createCore(){return new D}_onCoreCreated(){if(!this._canvas||!this._dotLottieCore)return;let t=this._canvas;if(e.u){let n=this._renderConfig.devicePixelRatio||e.r(),{width:r,height:i}=t.getBoundingClientRect();r!==0&&i!==0&&(t.width=Math.round(r*n),t.height=Math.round(i*n))}let n=t.getContext(`webgl2`);if(!n)throw Error(`Failed to get WebGL2 context. Ensure the browser supports WebGL2.`);this._dotLottieCore.set_webgl_context(n)}_draw(){}_setupRendererOnCanvas(){if(this._context=null,!this._canvas||!this._dotLottieCore)return;let t=this._canvas;if(e.u){let n=this._renderConfig.devicePixelRatio||e.r(),{width:r,height:i}=t.getBoundingClientRect();r!==0&&i!==0&&(t.width=Math.round(r*n),t.height=Math.round(i*n))}let n=t.getContext(`webgl2`);n&&this._dotLottieCore.set_webgl_context(n)}static setWasmUrl(e){M.setWasmUrl(e)}};exports.DotLottie=N;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- import{d as e,f as t,n,r,t as i,u as a}from"../dotlottie-Cn4v_pQB.js";let o,s=null;function c(){return(s===null||s.byteLength===0)&&(s=new Uint8Array(o.memory.buffer)),s}function l(e,t){return e>>>=0,c().subarray(e/1,e/1+t)}function u(e){return e==null}function d(e){let t=o.__externref_table_alloc_command_export();return o.__wbindgen_export_1.set(t,e),t}function f(e,t){try{return e.apply(this,t)}catch(e){let t=d(e);o.__wbindgen_exn_store_command_export(t)}}let p=0;const m=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},h=typeof m.encodeInto==`function`?function(e,t){return m.encodeInto(e,t)}:function(e,t){let n=m.encode(e);return t.set(n),{read:e.length,written:n.length}};function g(e,t,n){if(n===void 0){let n=m.encode(e),r=t(n.length,1)>>>0;return c().subarray(r,r+n.length).set(n),p=n.length,r}let r=e.length,i=t(r,1)>>>0,a=c(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=c().subarray(i+o,i+r),a=h(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return p=o,i}let _=null;function v(){return(_===null||_.buffer.detached===!0||_.buffer.detached===void 0&&_.buffer!==o.memory.buffer)&&(_=new DataView(o.memory.buffer)),_}const y=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&y.decode();function b(e,t){return e>>>=0,y.decode(c().subarray(e,e+t))}let x=null;function S(){return(x===null||x.byteLength===0)&&(x=new Int32Array(o.memory.buffer)),x}function C(e,t){return e>>>=0,S().subarray(e/4,e/4+t)}let w=null;function T(){return(w===null||w.byteLength===0)&&(w=new Float32Array(o.memory.buffer)),w}function E(e,t){return e>>>=0,T().subarray(e/4,e/4+t)}function D(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=D(e[0]));for(let r=1;r<t;r++)n+=`, `+D(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function O(e,t){let n=t(e.length*1,1)>>>0;return c().set(e,n/1),p=e.length,n}function k(e,t){let n=t(e.length*4,4)>>>0;return T().set(e,n/4),p=e.length,n}function A(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=d(e[t]);v().setUint32(n+4*t,r,!0)}return p=e.length,n}Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`});const j=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>o.__wbg_dotlottieplayerwasm_free(e>>>0,1));var M=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){let e=this.__destroy_into_raw();o.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=o.dotlottieplayerwasm_new()>>>0,j.register(this,this.__wbg_ptr,this),this}set_webgl_context(e){o.dotlottieplayerwasm_set_webgl_context(this.__wbg_ptr,e)}load_animation(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=O(e,o.__wbindgen_malloc_command_export),i=p;return o.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return o.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return o.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){o.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return o.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}play(){return o.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return o.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return o.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return o.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return o.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return o.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return o.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return o.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return o.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return o.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return o.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return o.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return o.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return o.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return o.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return o.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return o.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){o.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return o.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return o.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return o.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return o.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){o.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return o.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){o.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return o.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){o.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return o.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){o.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return o.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){o.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return o.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){o.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return o.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return o.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return o.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return o.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return o.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return o.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return o.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return o.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return o.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=o.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return o.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return o.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return o.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;return o.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p,i=g(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;return o.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return o.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p,i=g(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;return o.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=b(r[0],r[1]).slice(),o.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=o.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return o.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=b(r[0],r[1]).slice(),o.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return o.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=g(n,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return o.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=k(e,o.__wbindgen_malloc_command_export),n=p;return o.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return o.dotlottieplayerwasm_tween(this.__wbg_ptr,e,u(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return o.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,u(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return o.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return o.dotlottieplayerwasm_tween_update(this.__wbg_ptr,u(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,u(t)?4294967297:Math.fround(t))!==0}markers(){return o.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return o.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=o.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),o.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;o.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){o.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return o.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){o.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p,i=O(t,o.__wbindgen_malloc_command_export),a=p;return o.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return o.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=o.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),o.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=o.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),o.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=o.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=b(r[0],r[1]).slice(),o.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=o.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),o.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){o.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p,i=g(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;return o.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=b(r[0],r[1]).slice(),o.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;o.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return o.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=A(t,o.__wbindgen_malloc_command_export),r=p;return o.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return o.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=o.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=o.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return o.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return o.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){o.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){o.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){o.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){o.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){o.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){o.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return o.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return o.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function N(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function P(){let e={};return e.wbg={},e.wbg.__wbg_activeTexture_460f2e367e813fb0=function(e,t){e.activeTexture(t>>>0)},e.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1=function(e,t,n){e.attachShader(t,n)},e.wbg.__wbg_bindBufferRange_454f90f2b1781982=function(e,t,n,r,i,a){e.bindBufferRange(t>>>0,n>>>0,r,i,a)},e.wbg.__wbg_bindBuffer_309c9a6c21826cf5=function(e,t,n){e.bindBuffer(t>>>0,n)},e.wbg.__wbg_bindFramebuffer_e48e83c0f973944d=function(e,t,n){e.bindFramebuffer(t>>>0,n)},e.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c=function(e,t,n){e.bindRenderbuffer(t>>>0,n)},e.wbg.__wbg_bindTexture_a6e795697f49ebd1=function(e,t,n){e.bindTexture(t>>>0,n)},e.wbg.__wbg_bindVertexArray_6b4b88581064b71f=function(e,t){e.bindVertexArray(t)},e.wbg.__wbg_blendEquation_c23d111ad6d268ff=function(e,t){e.blendEquation(t>>>0)},e.wbg.__wbg_blendFunc_c3b74be5a39c665f=function(e,t,n){e.blendFunc(t>>>0,n>>>0)},e.wbg.__wbg_blitFramebuffer_7303bdff77cfe967=function(e,t,n,r,i,a,o,s,c,l,u){e.blitFramebuffer(t,n,r,i,a,o,s,c,l>>>0,u>>>0)},e.wbg.__wbg_bufferData_463178757784fcac=function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},e.wbg.__wbg_bufferData_c97b729d560cf60d=function(e,t,n,r,i){e.bufferData(t>>>0,l(n,r),i>>>0)},e.wbg.__wbg_clearColor_d39507085c98a678=function(e,t,n,r,i){e.clearColor(t,n,r,i)},e.wbg.__wbg_clearDepth_670d19914a501259=function(e,t){e.clearDepth(t)},e.wbg.__wbg_clearStencil_4323424f1acca0df=function(e,t){e.clearStencil(t)},e.wbg.__wbg_clear_62b9037b892f6988=function(e,t){e.clear(t>>>0)},e.wbg.__wbg_colorMask_5e7c60b9c7a57a2e=function(e,t,n,r,i){e.colorMask(t!==0,n!==0,r!==0,i!==0)},e.wbg.__wbg_compileShader_0ad770bbdbb9de21=function(e,t){e.compileShader(t)},e.wbg.__wbg_createBuffer_9886e84a67b68c89=function(e){let t=e.createBuffer();return u(t)?0:d(t)},e.wbg.__wbg_createFramebuffer_c8d70ebc4858051e=function(e){let t=e.createFramebuffer();return u(t)?0:d(t)},e.wbg.__wbg_createProgram_da203074cafb1038=function(e){let t=e.createProgram();return u(t)?0:d(t)},e.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea=function(e){let t=e.createRenderbuffer();return u(t)?0:d(t)},e.wbg.__wbg_createShader_983150fb1243ee56=function(e,t){let n=e.createShader(t>>>0);return u(n)?0:d(n)},e.wbg.__wbg_createTexture_bfaa54c0cd22e367=function(e){let t=e.createTexture();return u(t)?0:d(t)},e.wbg.__wbg_createVertexArray_e435029ae2660efd=function(e){let t=e.createVertexArray();return u(t)?0:d(t)},e.wbg.__wbg_cullFace_187079e6e20a464d=function(e,t){e.cullFace(t>>>0)},e.wbg.__wbg_deleteBuffer_7ed96e1bf7c02e87=function(e,t){e.deleteBuffer(t)},e.wbg.__wbg_deleteFramebuffer_66853fb7101488cb=function(e,t){e.deleteFramebuffer(t)},e.wbg.__wbg_deleteProgram_71a133c6d053e272=function(e,t){e.deleteProgram(t)},e.wbg.__wbg_deleteRenderbuffer_59f4369653485031=function(e,t){e.deleteRenderbuffer(t)},e.wbg.__wbg_deleteShader_8d42f169deda58ac=function(e,t){e.deleteShader(t)},e.wbg.__wbg_deleteTexture_bb82c9fec34372ba=function(e,t){e.deleteTexture(t)},e.wbg.__wbg_deleteVertexArray_77fe73664a3332ae=function(e,t){e.deleteVertexArray(t)},e.wbg.__wbg_depthFunc_f34449ae87cc4e3e=function(e,t){e.depthFunc(t>>>0)},e.wbg.__wbg_depthMask_76688a8638b2f321=function(e,t){e.depthMask(t!==0)},e.wbg.__wbg_disableVertexAttribArray_452cc9815fced7e4=function(e,t){e.disableVertexAttribArray(t>>>0)},e.wbg.__wbg_disable_2702df5b5da5dd21=function(e,t){e.disable(t>>>0)},e.wbg.__wbg_drawElements_65cb4b099bd7d4ac=function(e,t,n,r,i){e.drawElements(t>>>0,n,r>>>0,i)},e.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7=function(e,t){e.enableVertexAttribArray(t>>>0)},e.wbg.__wbg_enable_51114837e05ee280=function(e,t){e.enable(t>>>0)},e.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715=function(e,t,n,r,i){e.framebufferRenderbuffer(t>>>0,n>>>0,r>>>0,i)},e.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a=function(e,t,n,r,i,a){e.framebufferTexture2D(t>>>0,n>>>0,r>>>0,i,a)},e.wbg.__wbg_frontFace_289c9d7a8569c4f2=function(e,t){e.frontFace(t>>>0)},e.wbg.__wbg_getParameter_e3429f024018310f=function(){return f(function(e,t){return e.getParameter(t>>>0)},arguments)},e.wbg.__wbg_getProgramInfoLog_a998105a680059db=function(e,t,n){let r=t.getProgramInfoLog(n);var i=u(r)?0:g(r,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;v().setInt32(e+4,a,!0),v().setInt32(e+0,i,!0)},e.wbg.__wbg_getProgramParameter_360f95ff07ac068d=function(e,t,n){return e.getProgramParameter(t,n>>>0)},e.wbg.__wbg_getShaderInfoLog_f59c3112acc6e039=function(e,t,n){let r=t.getShaderInfoLog(n);var i=u(r)?0:g(r,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;v().setInt32(e+4,a,!0),v().setInt32(e+0,i,!0)},e.wbg.__wbg_getShaderParameter_511b5f929074fa31=function(e,t,n){return e.getShaderParameter(t,n>>>0)},e.wbg.__wbg_getUniformBlockIndex_288fdc31528171ca=function(e,t,n,r){return e.getUniformBlockIndex(t,b(n,r))},e.wbg.__wbg_getUniformLocation_657a2b6d102bd126=function(e,t,n,r){let i=e.getUniformLocation(t,b(n,r));return u(i)?0:d(i)},e.wbg.__wbg_invalidateFramebuffer_83f643d2a4936456=function(){return f(function(e,t,n){e.invalidateFramebuffer(t>>>0,n)},arguments)},e.wbg.__wbg_linkProgram_067ee06739bdde81=function(e,t){e.linkProgram(t)},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_renderbufferStorageMultisample_13fbd5e58900c6fe=function(e,t,n,r,i,a){e.renderbufferStorageMultisample(t>>>0,n,r>>>0,i,a)},e.wbg.__wbg_scissor_e917a332f67a5d30=function(e,t,n,r,i){e.scissor(t,n,r,i)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return f(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_shaderSource_72d3e8597ef85b67=function(e,t,n,r){e.shaderSource(t,b(n,r))},e.wbg.__wbg_stencilFuncSeparate_c1a6fa2005ca0aaf=function(e,t,n,r,i){e.stencilFuncSeparate(t>>>0,n>>>0,r,i>>>0)},e.wbg.__wbg_stencilFunc_115c92784472048b=function(e,t,n,r){e.stencilFunc(t>>>0,n,r>>>0)},e.wbg.__wbg_stencilOpSeparate_ff6683bbe3838ae6=function(e,t,n,r,i){e.stencilOpSeparate(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_stencilOp_b794f03cef95238e=function(e,t,n,r){e.stencilOp(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_texImage2D_06281e677e3f6909=function(){return f(function(e,t,n,r,i,a,o,s,c,u,d){e.texImage2D(t>>>0,n,r,i,a,o,s>>>0,c>>>0,u===0?void 0:l(u,d))},arguments)},e.wbg.__wbg_texParameteri_8112b26b3c360b7e=function(e,t,n,r){e.texParameteri(t>>>0,n>>>0,r)},e.wbg.__wbg_uniform1f_dc009a0e7f7e5977=function(e,t,n){e.uniform1f(t,n)},e.wbg.__wbg_uniform1i_ed95b6129dce4d84=function(e,t,n){e.uniform1i(t,n)},e.wbg.__wbg_uniform1iv_337c4a74e31ddc15=function(e,t,n,r){e.uniform1iv(t,C(n,r))},e.wbg.__wbg_uniformBlockBinding_18117f4bda07115b=function(e,t,n,r){e.uniformBlockBinding(t,n>>>0,r>>>0)},e.wbg.__wbg_uniformMatrix3fv_3df529aab93cf902=function(e,t,n,r,i){e.uniformMatrix3fv(t,n!==0,E(r,i))},e.wbg.__wbg_useProgram_9b2660f7bb210471=function(e,t){e.useProgram(t)},e.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea=function(e,t,n,r,i,a,o){e.vertexAttribPointer(t>>>0,n,r>>>0,i!==0,a,o)},e.wbg.__wbg_viewport_e615e98f676f2d39=function(e,t,n,r,i){e.viewport(t,n,r,i)},e.wbg.__wbindgen_boolean_get=function(e){let t=e;return typeof t==`boolean`?t?1:0:2},e.wbg.__wbindgen_debug_string=function(e,t){let n=g(D(t),o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;v().setInt32(e+4,r,!0),v().setInt32(e+0,n,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=o.__wbindgen_export_1,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_number_get=function(e,t){let n=t,r=typeof n==`number`?n:void 0;v().setFloat64(e+8,u(r)?0:r,!0),v().setInt32(e+0,!u(r),!0)},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=u(r)?0:g(r,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;v().setInt32(e+4,a,!0),v().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return b(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(b(e,t))},e}function F(e,t){return o=e.exports,I.__wbindgen_wasm_module=t,_=null,w=null,x=null,s=null,o.__wbindgen_start(),o}async function I(e){if(o!==void 0)return o;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=P();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await N(await e,t);return F(n,r)}const L=n(I,`https://cdn.jsdelivr.net/npm/${e}@${t}/dist/webgl/dotlottie-player.wasm`,`https://unpkg.com/${e}@${t}/dist/webgl/dotlottie-player.wasm`);var R=class extends i{constructor(e){super(e)}async _initWasm(){return L.load()}_createCore(){return new M}_onCoreCreated(){if(!this._canvas||!this._dotLottieCore)return;let e=this._canvas;if(a){let t=this._renderConfig.devicePixelRatio||r(),{width:n,height:i}=e.getBoundingClientRect();n!==0&&i!==0&&(e.width=Math.round(n*t),e.height=Math.round(i*t))}let t=e.getContext(`webgl2`);if(!t)throw Error(`Failed to get WebGL2 context. Ensure the browser supports WebGL2.`);this._dotLottieCore.set_webgl_context(t)}_draw(){}_setupRendererOnCanvas(){if(this._context=null,!this._canvas||!this._dotLottieCore)return;let e=this._canvas;if(a){let t=this._renderConfig.devicePixelRatio||r(),{width:n,height:i}=e.getBoundingClientRect();n!==0&&i!==0&&(e.width=Math.round(n*t),e.height=Math.round(i*t))}let t=e.getContext(`webgl2`);t&&this._dotLottieCore.set_webgl_context(t)}static setWasmUrl(e){L.setWasmUrl(e)}};export{R as DotLottie};
1
+ import{d as e,f as t,n,r,t as i,u as a}from"../dotlottie-DBBPxC2A.js";let o,s=null;function c(){return(s===null||s.byteLength===0)&&(s=new Uint8Array(o.memory.buffer)),s}function l(e,t){return e>>>=0,c().subarray(e/1,e/1+t)}function u(e){return e==null}function d(e){let t=o.__externref_table_alloc_command_export();return o.__wbindgen_export_1.set(t,e),t}function f(e,t){try{return e.apply(this,t)}catch(e){let t=d(e);o.__wbindgen_exn_store_command_export(t)}}let p=0;const m=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},h=typeof m.encodeInto==`function`?function(e,t){return m.encodeInto(e,t)}:function(e,t){let n=m.encode(e);return t.set(n),{read:e.length,written:n.length}};function g(e,t,n){if(n===void 0){let n=m.encode(e),r=t(n.length,1)>>>0;return c().subarray(r,r+n.length).set(n),p=n.length,r}let r=e.length,i=t(r,1)>>>0,a=c(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=c().subarray(i+o,i+r),a=h(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return p=o,i}let _=null;function v(){return(_===null||_.buffer.detached===!0||_.buffer.detached===void 0&&_.buffer!==o.memory.buffer)&&(_=new DataView(o.memory.buffer)),_}const y=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&y.decode();function b(e,t){return e>>>=0,y.decode(c().subarray(e,e+t))}let x=null;function S(){return(x===null||x.byteLength===0)&&(x=new Int32Array(o.memory.buffer)),x}function C(e,t){return e>>>=0,S().subarray(e/4,e/4+t)}let w=null;function T(){return(w===null||w.byteLength===0)&&(w=new Float32Array(o.memory.buffer)),w}function E(e,t){return e>>>=0,T().subarray(e/4,e/4+t)}function D(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=D(e[0]));for(let r=1;r<t;r++)n+=`, `+D(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function O(e,t){let n=t(e.length*1,1)>>>0;return c().set(e,n/1),p=e.length,n}function k(e,t){let n=t(e.length*4,4)>>>0;return T().set(e,n/4),p=e.length,n}function A(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=d(e[t]);v().setUint32(n+4*t,r,!0)}return p=e.length,n}Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`});const j=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>o.__wbg_dotlottieplayerwasm_free(e>>>0,1));var M=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){let e=this.__destroy_into_raw();o.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=o.dotlottieplayerwasm_new()>>>0,j.register(this,this.__wbg_ptr,this),this}set_webgl_context(e){o.dotlottieplayerwasm_set_webgl_context(this.__wbg_ptr,e)}load_animation(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=O(e,o.__wbindgen_malloc_command_export),i=p;return o.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return o.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return o.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){o.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return o.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}play(){return o.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return o.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return o.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return o.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return o.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return o.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return o.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return o.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return o.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return o.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return o.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return o.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return o.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return o.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return o.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return o.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return o.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){o.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return o.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return o.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return o.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return o.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){o.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return o.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){o.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return o.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){o.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return o.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){o.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return o.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){o.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return o.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){o.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return o.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return o.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return o.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return o.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return o.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return o.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return o.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return o.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return o.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=o.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return o.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return o.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return o.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;return o.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p,i=g(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;return o.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return o.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p,i=g(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;return o.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=b(r[0],r[1]).slice(),o.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=o.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return o.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=b(r[0],r[1]).slice(),o.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return o.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=g(n,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=p;return o.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return o.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=k(e,o.__wbindgen_malloc_command_export),n=p;return o.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return o.dotlottieplayerwasm_tween(this.__wbg_ptr,e,u(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return o.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,u(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return o.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return o.dotlottieplayerwasm_tween_update(this.__wbg_ptr,u(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,u(t)?4294967297:Math.fround(t))!==0}markers(){return o.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return o.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=o.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),o.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;o.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){o.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return o.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){o.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p,i=O(t,o.__wbindgen_malloc_command_export),a=p;return o.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return o.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=o.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),o.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=o.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),o.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=o.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=b(r[0],r[1]).slice(),o.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=o.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),o.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){o.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;return o.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p,i=g(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;return o.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=b(r[0],r[1]).slice(),o.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p,r=o.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),n=p;o.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return o.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=A(t,o.__wbindgen_malloc_command_export),r=p;return o.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return o.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=o.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=o.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{o.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=g(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;return o.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return o.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return o.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){o.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){o.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){o.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){o.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){o.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){o.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return o.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return o.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function N(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function P(){let e={};return e.wbg={},e.wbg.__wbg_activeTexture_460f2e367e813fb0=function(e,t){e.activeTexture(t>>>0)},e.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1=function(e,t,n){e.attachShader(t,n)},e.wbg.__wbg_bindBufferRange_454f90f2b1781982=function(e,t,n,r,i,a){e.bindBufferRange(t>>>0,n>>>0,r,i,a)},e.wbg.__wbg_bindBuffer_309c9a6c21826cf5=function(e,t,n){e.bindBuffer(t>>>0,n)},e.wbg.__wbg_bindFramebuffer_e48e83c0f973944d=function(e,t,n){e.bindFramebuffer(t>>>0,n)},e.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c=function(e,t,n){e.bindRenderbuffer(t>>>0,n)},e.wbg.__wbg_bindTexture_a6e795697f49ebd1=function(e,t,n){e.bindTexture(t>>>0,n)},e.wbg.__wbg_bindVertexArray_6b4b88581064b71f=function(e,t){e.bindVertexArray(t)},e.wbg.__wbg_blendEquation_c23d111ad6d268ff=function(e,t){e.blendEquation(t>>>0)},e.wbg.__wbg_blendFunc_c3b74be5a39c665f=function(e,t,n){e.blendFunc(t>>>0,n>>>0)},e.wbg.__wbg_blitFramebuffer_7303bdff77cfe967=function(e,t,n,r,i,a,o,s,c,l,u){e.blitFramebuffer(t,n,r,i,a,o,s,c,l>>>0,u>>>0)},e.wbg.__wbg_bufferData_463178757784fcac=function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},e.wbg.__wbg_bufferData_c97b729d560cf60d=function(e,t,n,r,i){e.bufferData(t>>>0,l(n,r),i>>>0)},e.wbg.__wbg_clearColor_d39507085c98a678=function(e,t,n,r,i){e.clearColor(t,n,r,i)},e.wbg.__wbg_clearDepth_670d19914a501259=function(e,t){e.clearDepth(t)},e.wbg.__wbg_clearStencil_4323424f1acca0df=function(e,t){e.clearStencil(t)},e.wbg.__wbg_clear_62b9037b892f6988=function(e,t){e.clear(t>>>0)},e.wbg.__wbg_colorMask_5e7c60b9c7a57a2e=function(e,t,n,r,i){e.colorMask(t!==0,n!==0,r!==0,i!==0)},e.wbg.__wbg_compileShader_0ad770bbdbb9de21=function(e,t){e.compileShader(t)},e.wbg.__wbg_createBuffer_9886e84a67b68c89=function(e){let t=e.createBuffer();return u(t)?0:d(t)},e.wbg.__wbg_createFramebuffer_c8d70ebc4858051e=function(e){let t=e.createFramebuffer();return u(t)?0:d(t)},e.wbg.__wbg_createProgram_da203074cafb1038=function(e){let t=e.createProgram();return u(t)?0:d(t)},e.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea=function(e){let t=e.createRenderbuffer();return u(t)?0:d(t)},e.wbg.__wbg_createShader_983150fb1243ee56=function(e,t){let n=e.createShader(t>>>0);return u(n)?0:d(n)},e.wbg.__wbg_createTexture_bfaa54c0cd22e367=function(e){let t=e.createTexture();return u(t)?0:d(t)},e.wbg.__wbg_createVertexArray_e435029ae2660efd=function(e){let t=e.createVertexArray();return u(t)?0:d(t)},e.wbg.__wbg_cullFace_187079e6e20a464d=function(e,t){e.cullFace(t>>>0)},e.wbg.__wbg_deleteBuffer_7ed96e1bf7c02e87=function(e,t){e.deleteBuffer(t)},e.wbg.__wbg_deleteFramebuffer_66853fb7101488cb=function(e,t){e.deleteFramebuffer(t)},e.wbg.__wbg_deleteProgram_71a133c6d053e272=function(e,t){e.deleteProgram(t)},e.wbg.__wbg_deleteRenderbuffer_59f4369653485031=function(e,t){e.deleteRenderbuffer(t)},e.wbg.__wbg_deleteShader_8d42f169deda58ac=function(e,t){e.deleteShader(t)},e.wbg.__wbg_deleteTexture_bb82c9fec34372ba=function(e,t){e.deleteTexture(t)},e.wbg.__wbg_deleteVertexArray_77fe73664a3332ae=function(e,t){e.deleteVertexArray(t)},e.wbg.__wbg_depthFunc_f34449ae87cc4e3e=function(e,t){e.depthFunc(t>>>0)},e.wbg.__wbg_depthMask_76688a8638b2f321=function(e,t){e.depthMask(t!==0)},e.wbg.__wbg_disableVertexAttribArray_452cc9815fced7e4=function(e,t){e.disableVertexAttribArray(t>>>0)},e.wbg.__wbg_disable_2702df5b5da5dd21=function(e,t){e.disable(t>>>0)},e.wbg.__wbg_drawElements_65cb4b099bd7d4ac=function(e,t,n,r,i){e.drawElements(t>>>0,n,r>>>0,i)},e.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7=function(e,t){e.enableVertexAttribArray(t>>>0)},e.wbg.__wbg_enable_51114837e05ee280=function(e,t){e.enable(t>>>0)},e.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715=function(e,t,n,r,i){e.framebufferRenderbuffer(t>>>0,n>>>0,r>>>0,i)},e.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a=function(e,t,n,r,i,a){e.framebufferTexture2D(t>>>0,n>>>0,r>>>0,i,a)},e.wbg.__wbg_frontFace_289c9d7a8569c4f2=function(e,t){e.frontFace(t>>>0)},e.wbg.__wbg_getParameter_e3429f024018310f=function(){return f(function(e,t){return e.getParameter(t>>>0)},arguments)},e.wbg.__wbg_getProgramInfoLog_a998105a680059db=function(e,t,n){let r=t.getProgramInfoLog(n);var i=u(r)?0:g(r,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;v().setInt32(e+4,a,!0),v().setInt32(e+0,i,!0)},e.wbg.__wbg_getProgramParameter_360f95ff07ac068d=function(e,t,n){return e.getProgramParameter(t,n>>>0)},e.wbg.__wbg_getShaderInfoLog_f59c3112acc6e039=function(e,t,n){let r=t.getShaderInfoLog(n);var i=u(r)?0:g(r,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;v().setInt32(e+4,a,!0),v().setInt32(e+0,i,!0)},e.wbg.__wbg_getShaderParameter_511b5f929074fa31=function(e,t,n){return e.getShaderParameter(t,n>>>0)},e.wbg.__wbg_getUniformBlockIndex_288fdc31528171ca=function(e,t,n,r){return e.getUniformBlockIndex(t,b(n,r))},e.wbg.__wbg_getUniformLocation_657a2b6d102bd126=function(e,t,n,r){let i=e.getUniformLocation(t,b(n,r));return u(i)?0:d(i)},e.wbg.__wbg_invalidateFramebuffer_83f643d2a4936456=function(){return f(function(e,t,n){e.invalidateFramebuffer(t>>>0,n)},arguments)},e.wbg.__wbg_linkProgram_067ee06739bdde81=function(e,t){e.linkProgram(t)},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_renderbufferStorageMultisample_13fbd5e58900c6fe=function(e,t,n,r,i,a){e.renderbufferStorageMultisample(t>>>0,n,r>>>0,i,a)},e.wbg.__wbg_scissor_e917a332f67a5d30=function(e,t,n,r,i){e.scissor(t,n,r,i)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return f(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_shaderSource_72d3e8597ef85b67=function(e,t,n,r){e.shaderSource(t,b(n,r))},e.wbg.__wbg_stencilFuncSeparate_c1a6fa2005ca0aaf=function(e,t,n,r,i){e.stencilFuncSeparate(t>>>0,n>>>0,r,i>>>0)},e.wbg.__wbg_stencilFunc_115c92784472048b=function(e,t,n,r){e.stencilFunc(t>>>0,n,r>>>0)},e.wbg.__wbg_stencilOpSeparate_ff6683bbe3838ae6=function(e,t,n,r,i){e.stencilOpSeparate(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_stencilOp_b794f03cef95238e=function(e,t,n,r){e.stencilOp(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_texImage2D_06281e677e3f6909=function(){return f(function(e,t,n,r,i,a,o,s,c,u,d){e.texImage2D(t>>>0,n,r,i,a,o,s>>>0,c>>>0,u===0?void 0:l(u,d))},arguments)},e.wbg.__wbg_texParameteri_8112b26b3c360b7e=function(e,t,n,r){e.texParameteri(t>>>0,n>>>0,r)},e.wbg.__wbg_uniform1f_dc009a0e7f7e5977=function(e,t,n){e.uniform1f(t,n)},e.wbg.__wbg_uniform1i_ed95b6129dce4d84=function(e,t,n){e.uniform1i(t,n)},e.wbg.__wbg_uniform1iv_337c4a74e31ddc15=function(e,t,n,r){e.uniform1iv(t,C(n,r))},e.wbg.__wbg_uniformBlockBinding_18117f4bda07115b=function(e,t,n,r){e.uniformBlockBinding(t,n>>>0,r>>>0)},e.wbg.__wbg_uniformMatrix3fv_3df529aab93cf902=function(e,t,n,r,i){e.uniformMatrix3fv(t,n!==0,E(r,i))},e.wbg.__wbg_useProgram_9b2660f7bb210471=function(e,t){e.useProgram(t)},e.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea=function(e,t,n,r,i,a,o){e.vertexAttribPointer(t>>>0,n,r>>>0,i!==0,a,o)},e.wbg.__wbg_viewport_e615e98f676f2d39=function(e,t,n,r,i){e.viewport(t,n,r,i)},e.wbg.__wbindgen_boolean_get=function(e){let t=e;return typeof t==`boolean`?t?1:0:2},e.wbg.__wbindgen_debug_string=function(e,t){let n=g(D(t),o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=p;v().setInt32(e+4,r,!0),v().setInt32(e+0,n,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=o.__wbindgen_export_1,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_number_get=function(e,t){let n=t,r=typeof n==`number`?n:void 0;v().setFloat64(e+8,u(r)?0:r,!0),v().setInt32(e+0,!u(r),!0)},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=u(r)?0:g(r,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),a=p;v().setInt32(e+4,a,!0),v().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return b(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(b(e,t))},e}function F(e,t){return o=e.exports,I.__wbindgen_wasm_module=t,_=null,w=null,x=null,s=null,o.__wbindgen_start(),o}async function I(e){if(o!==void 0)return o;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=P();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await N(await e,t);return F(n,r)}const L=n(I,`https://cdn.jsdelivr.net/npm/${e}@${t}/dist/webgl/dotlottie-player.wasm`,`https://unpkg.com/${e}@${t}/dist/webgl/dotlottie-player.wasm`);var R=class extends i{constructor(e){super(e)}async _initWasm(){return L.load()}_createCore(){return new M}_onCoreCreated(){if(!this._canvas||!this._dotLottieCore)return;let e=this._canvas;if(a){let t=this._renderConfig.devicePixelRatio||r(),{width:n,height:i}=e.getBoundingClientRect();n!==0&&i!==0&&(e.width=Math.round(n*t),e.height=Math.round(i*t))}let t=e.getContext(`webgl2`);if(!t)throw Error(`Failed to get WebGL2 context. Ensure the browser supports WebGL2.`);this._dotLottieCore.set_webgl_context(t)}_draw(){}_setupRendererOnCanvas(){if(this._context=null,!this._canvas||!this._dotLottieCore)return;let e=this._canvas;if(a){let t=this._renderConfig.devicePixelRatio||r(),{width:n,height:i}=e.getBoundingClientRect();n!==0&&i!==0&&(e.width=Math.round(n*t),e.height=Math.round(i*t))}let t=e.getContext(`webgl2`);t&&this._dotLottieCore.set_webgl_context(t)}static setWasmUrl(e){L.setWasmUrl(e)}};export{R as DotLottie};
2
2
  //# sourceMappingURL=index.js.map
Binary file
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../dotlottie-DAqJ7ZaP.cjs`);let t;function n(e){let n=t.__externref_table_alloc_command_export();return t.__wbindgen_export_2.set(n,e),n}function r(e,r){try{return e.apply(this,r)}catch(e){let r=n(e);t.__wbindgen_exn_store_command_export(r)}}const i=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&i.decode();let a=null;function o(){return(a===null||a.byteLength===0)&&(a=new Uint8Array(t.memory.buffer)),a}function s(e,t){return e>>>=0,i.decode(o().subarray(e,e+t))}function c(e,t){return e>>>=0,o().subarray(e/1,e/1+t)}function l(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=l(e[0]));for(let r=1;r<t;r++)n+=`, `+l(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}let u=0;const d=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},f=typeof d.encodeInto==`function`?function(e,t){return d.encodeInto(e,t)}:function(e,t){let n=d.encode(e);return t.set(n),{read:e.length,written:n.length}};function p(e,t,n){if(n===void 0){let n=d.encode(e),r=t(n.length,1)>>>0;return o().subarray(r,r+n.length).set(n),u=n.length,r}let r=e.length,i=t(r,1)>>>0,a=o(),s=0;for(;s<r;s++){let t=e.charCodeAt(s);if(t>127)break;a[i+s]=t}if(s!==r){s!==0&&(e=e.slice(s)),i=n(i,r,r=s+e.length*3,1)>>>0;let t=o().subarray(i+s,i+r),a=f(e,t);s+=a.written,i=n(i,r,s,1)>>>0}return u=s,i}let m=null;function h(){return(m===null||m.buffer.detached===!0||m.buffer.detached===void 0&&m.buffer!==t.memory.buffer)&&(m=new DataView(t.memory.buffer)),m}function g(e){return e==null}function _(e,t){let n=t(e.length*1,1)>>>0;return o().set(e,n/1),u=e.length,n}let v=null;function y(){return(v===null||v.byteLength===0)&&(v=new Float32Array(t.memory.buffer)),v}function b(e,t){let n=t(e.length*4,4)>>>0;return y().set(e,n/4),u=e.length,n}function x(e,t){let r=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let i=n(e[t]);h().setUint32(r+4*t,i,!0)}return u=e.length,r}Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`});const S=[`clamp-to-edge`,`repeat`,`mirror-repeat`],C=[`zero`,`one`,`src`,`one-minus-src`,`src-alpha`,`one-minus-src-alpha`,`dst`,`one-minus-dst`,`dst-alpha`,`one-minus-dst-alpha`,`src-alpha-saturated`,`constant`,`one-minus-constant`,`src1`,`one-minus-src1`,`src1-alpha`,`one-minus-src1-alpha`],w=[`add`,`subtract`,`reverse-subtract`,`min`,`max`],T=[`uniform`,`storage`,`read-only-storage`],E=[`never`,`less`,`equal`,`less-equal`,`greater`,`not-equal`,`greater-equal`,`always`],D=[`none`,`front`,`back`],O=[`nearest`,`linear`],k=[`ccw`,`cw`],A=[`uint16`,`uint32`],j=[`load`,`clear`],M=[`nearest`,`linear`],N=[`point-list`,`line-list`,`line-strip`,`triangle-list`,`triangle-strip`],P=[`filtering`,`non-filtering`,`comparison`],F=[`keep`,`zero`,`replace`,`invert`,`increment-clamp`,`decrement-clamp`,`increment-wrap`,`decrement-wrap`],I=[`write-only`,`read-only`,`read-write`],L=[`store`,`discard`],R=[`all`,`stencil-only`,`depth-only`],z=[`1d`,`2d`,`3d`],B=`r8unorm.r8snorm.r8uint.r8sint.r16uint.r16sint.r16float.rg8unorm.rg8snorm.rg8uint.rg8sint.r32uint.r32sint.r32float.rg16uint.rg16sint.rg16float.rgba8unorm.rgba8unorm-srgb.rgba8snorm.rgba8uint.rgba8sint.bgra8unorm.bgra8unorm-srgb.rgb9e5ufloat.rgb10a2uint.rgb10a2unorm.rg11b10ufloat.rg32uint.rg32sint.rg32float.rgba16uint.rgba16sint.rgba16float.rgba32uint.rgba32sint.rgba32float.stencil8.depth16unorm.depth24plus.depth24plus-stencil8.depth32float.depth32float-stencil8.bc1-rgba-unorm.bc1-rgba-unorm-srgb.bc2-rgba-unorm.bc2-rgba-unorm-srgb.bc3-rgba-unorm.bc3-rgba-unorm-srgb.bc4-r-unorm.bc4-r-snorm.bc5-rg-unorm.bc5-rg-snorm.bc6h-rgb-ufloat.bc6h-rgb-float.bc7-rgba-unorm.bc7-rgba-unorm-srgb.etc2-rgb8unorm.etc2-rgb8unorm-srgb.etc2-rgb8a1unorm.etc2-rgb8a1unorm-srgb.etc2-rgba8unorm.etc2-rgba8unorm-srgb.eac-r11unorm.eac-r11snorm.eac-rg11unorm.eac-rg11snorm.astc-4x4-unorm.astc-4x4-unorm-srgb.astc-5x4-unorm.astc-5x4-unorm-srgb.astc-5x5-unorm.astc-5x5-unorm-srgb.astc-6x5-unorm.astc-6x5-unorm-srgb.astc-6x6-unorm.astc-6x6-unorm-srgb.astc-8x5-unorm.astc-8x5-unorm-srgb.astc-8x6-unorm.astc-8x6-unorm-srgb.astc-8x8-unorm.astc-8x8-unorm-srgb.astc-10x5-unorm.astc-10x5-unorm-srgb.astc-10x6-unorm.astc-10x6-unorm-srgb.astc-10x8-unorm.astc-10x8-unorm-srgb.astc-10x10-unorm.astc-10x10-unorm-srgb.astc-12x10-unorm.astc-12x10-unorm-srgb.astc-12x12-unorm.astc-12x12-unorm-srgb`.split(`.`),V=[`float`,`unfilterable-float`,`depth`,`sint`,`uint`],H=[`1d`,`2d`,`2d-array`,`cube`,`cube-array`,`3d`],U=`uint8.uint8x2.uint8x4.sint8.sint8x2.sint8x4.unorm8.unorm8x2.unorm8x4.snorm8.snorm8x2.snorm8x4.uint16.uint16x2.uint16x4.sint16.sint16x2.sint16x4.unorm16.unorm16x2.unorm16x4.snorm16.snorm16x2.snorm16x4.float16.float16x2.float16x4.float32.float32x2.float32x3.float32x4.uint32.uint32x2.uint32x3.uint32x4.sint32.sint32x2.sint32x3.sint32x4.unorm10-10-10-2.unorm8x4-bgra`.split(`.`),W=[`vertex`,`instance`],G=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_dotlottieplayerwasm_free(e>>>0,1));var K=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=t.dotlottieplayerwasm_new()>>>0,G.register(this,this.__wbg_ptr,this),this}set_webgpu_device(e){t.dotlottieplayerwasm_set_webgpu_device(this.__wbg_ptr,e)}set_webgpu_surface(e){t.dotlottieplayerwasm_set_webgpu_surface(this.__wbg_ptr,e)}load_animation(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_load_animation(this.__wbg_ptr,i,a,n,r)!==0}load_dotlottie_data(e,n,r){let i=_(e,t.__wbindgen_malloc_command_export),a=u;return t.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,i,a,n,r)!==0}load_animation_from_id(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,i,a,n,r)!==0}tick(){return t.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return t.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){t.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,n){return t.dotlottieplayerwasm_resize(this.__wbg_ptr,e,n)!==0}play(){return t.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return t.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return t.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return t.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return t.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return t.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return t.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return t.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return t.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return t.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return t.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return t.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return t.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return t.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return t.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return t.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return t.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){t.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return t.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return t.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return t.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return t.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){t.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return t.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){t.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return t.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){t.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return t.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){t.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return t.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){t.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return t.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){t.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return t.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return t.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return t.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return t.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return t.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return t.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return t.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,n){return t.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,n)!==0}clear_segment(){return t.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_set_layout(this.__wbg_ptr,i,a,n,r)!==0}layout_fit(){let e,n;try{let r=t.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}layout_align_x(){return t.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return t.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,n,r,i){return t.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,n,r,i)!==0}set_color_slot(e,n,r,i){let a=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;return t.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,a,o,n,r,i)!==0}set_scalar_slot(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,r,i,n)!==0}set_text_slot(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u,a=p(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;return t.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,r,i,a,o)!==0}set_vector_slot(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,i,a,n,r)!==0}set_position_slot(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,i,a,n,r)!==0}clear_slots(){return t.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,n,r)!==0}set_slots_str(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,n,r)!==0}set_slot_str(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u,a=p(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;return t.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,r,i,a,o)!==0}get_slot_str(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=s(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}get_slots_str(){let e,n;try{let r=t.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_slot_ids(){return t.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=s(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}reset_slot(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,n,r)!==0}reset_slots(){return t.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,n,r){let i=p(r,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,n,i,a)!==0}get_layer_bounds(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,n,r)}get_transform(){return t.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let n=b(e,t.__wbindgen_malloc_command_export),r=u;return t.dotlottieplayerwasm_set_transform(this.__wbg_ptr,n,r)!==0}tween(e,n){return t.dotlottieplayerwasm_tween(this.__wbg_ptr,e,g(n)?4294967297:Math.fround(n))!==0}tween_with_easing(e,n,r,i,a,o){return t.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,g(n)?4294967297:Math.fround(n),r,i,a,o)!==0}tween_stop(){return t.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return t.dotlottieplayerwasm_tween_update(this.__wbg_ptr,g(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,r,i,g(n)?4294967297:Math.fround(n))!==0}markers(){return t.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return t.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=t.dotlottieplayerwasm_current_marker(this.__wbg_ptr),n;return e[0]!==0&&(n=s(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}set_marker(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;t.dotlottieplayerwasm_set_marker(this.__wbg_ptr,n,r)}clear_marker(){t.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return t.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){t.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u,a=_(n,t.__wbindgen_malloc_command_export),o=u;return t.dotlottieplayerwasm_load_font(this.__wbg_ptr,r,i,a,o)!==0}static unload_font(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_unload_font(n,r)!==0}set_theme(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_set_theme(this.__wbg_ptr,n,r)!==0}reset_theme(){return t.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,n,r)!==0}theme_id(){let e=t.dotlottieplayerwasm_theme_id(this.__wbg_ptr),n;return e[0]!==0&&(n=s(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}animation_id(){let e=t.dotlottieplayerwasm_animation_id(this.__wbg_ptr),n;return e[0]!==0&&(n=s(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}manifest_string(){let e,n;try{let r=t.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_state_machine(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=s(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}state_machine_id(){let e=t.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),n;return e[0]!==0&&(n=s(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}state_machine_load(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,n,r)!==0}state_machine_load_from_id(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,n,r)!==0}state_machine_unload(){t.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,n,r)!==0}sm_set_numeric_input(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,r,i,n)!==0}sm_get_numeric_input(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,n,r);return i===4294967297?void 0:i}sm_set_string_input(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u,a=p(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;return t.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,r,i,a,o)!==0}sm_get_string_input(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=s(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}sm_set_boolean_input(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,r,i,n)!==0}sm_get_boolean_input(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,n,r);return i===16777215?void 0:i!==0}sm_reset_input(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;t.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,n,r)}sm_poll_event(){return t.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,n){let r=x(n,t.__wbindgen_malloc_command_export),i=u;return t.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,r,i)!==0}sm_stop(){return t.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,n;try{let r=t.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}sm_current_state(){let e,n;try{let r=t.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}sm_override_current_state(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,r,i,n)!==0}sm_framework_setup(){return t.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return t.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,n){t.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,n)}sm_post_pointer_down(e,n){t.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,n)}sm_post_pointer_up(e,n){t.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,n)}sm_post_pointer_move(e,n){t.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,n)}sm_post_pointer_enter(e,n){t.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,n)}sm_post_pointer_exit(e,n){t.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,n)}sm_poll_internal_event(){return t.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return t.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function q(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function J(){let e={};return e.wbg={},e.wbg.__wbg_beginComputePass_ce58248c78ea4f0b=function(e,t){return e.beginComputePass(t)},e.wbg.__wbg_beginRenderPass_509df70c967b895c=function(){return r(function(e,t){return e.beginRenderPass(t)},arguments)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_configure_7e2130842707feff=function(){return r(function(e,t){e.configure(t)},arguments)},e.wbg.__wbg_copyTextureToTexture_8b0d14b8089f3036=function(){return r(function(e,t,n,r){e.copyTextureToTexture(t,n,r)},arguments)},e.wbg.__wbg_createBindGroupLayout_5f799ca8bc5aa1fc=function(){return r(function(e,t){return e.createBindGroupLayout(t)},arguments)},e.wbg.__wbg_createBindGroup_ddd3bb343cf271fb=function(e,t){return e.createBindGroup(t)},e.wbg.__wbg_createBuffer_826176fb72deecbf=function(){return r(function(e,t){return e.createBuffer(t)},arguments)},e.wbg.__wbg_createCommandEncoder_579fe7e60b87a1c4=function(e,t){return e.createCommandEncoder(t)},e.wbg.__wbg_createComputePipeline_5f91c9fb81d570e7=function(e,t){return e.createComputePipeline(t)},e.wbg.__wbg_createPipelineLayout_b1406687fd03f870=function(e,t){return e.createPipelineLayout(t)},e.wbg.__wbg_createRenderPipeline_24a0e9be53ed468e=function(){return r(function(e,t){return e.createRenderPipeline(t)},arguments)},e.wbg.__wbg_createSampler_381b4ade52f53f68=function(e,t){return e.createSampler(t)},e.wbg.__wbg_createShaderModule_035719b95e2aae80=function(e,t){return e.createShaderModule(t)},e.wbg.__wbg_createTexture_6947ba7853a1d055=function(){return r(function(e,t){return e.createTexture(t)},arguments)},e.wbg.__wbg_createView_7f08b4f77746d573=function(){return r(function(e,t){return e.createView(t)},arguments)},e.wbg.__wbg_destroy_911c8640ffed5684=function(e){e.destroy()},e.wbg.__wbg_destroy_c1bd9f1fd447bebf=function(e){e.destroy()},e.wbg.__wbg_dispatchWorkgroups_6b7a05edf9c2b474=function(e,t,n,r){e.dispatchWorkgroups(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_drawIndexed_0d27b49d3d541ca9=function(e,t,n,r,i,a){e.drawIndexed(t>>>0,n>>>0,r>>>0,i,a>>>0)},e.wbg.__wbg_draw_afac1827162db569=function(e,t,n,r,i){e.draw(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_end_5f3989c200fa79e9=function(e){e.end()},e.wbg.__wbg_end_e9ed158432136036=function(e){e.end()},e.wbg.__wbg_finish_5d6bd1bf9cca88b0=function(e,t){return e.finish(t)},e.wbg.__wbg_finish_a3819bcf098c1f84=function(e){return e.finish()},e.wbg.__wbg_format_cb1ef2f3b44b306a=function(e){let t=e.format;return(B.indexOf(t)+1||96)-1},e.wbg.__wbg_getCurrentTexture_cf3b91d12114ffcb=function(){return r(function(e){return e.getCurrentTexture()},arguments)},e.wbg.__wbg_height_a1cdc6189018a9b3=function(e){return e.height},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_5e0be73521bc8c17=function(){return new Map},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_newwithlength_a381634e90c276d4=function(e){return new Uint8Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_queue_712d25576063d2fc=function(e){return e.queue},e.wbg.__wbg_setBindGroup_03656750a7c9f7c6=function(e,t,n){e.setBindGroup(t>>>0,n)},e.wbg.__wbg_setBindGroup_438462565faaa01c=function(e,t,n){e.setBindGroup(t>>>0,n)},e.wbg.__wbg_setBindGroup_8ec97340dd95cb9c=function(e,t,n,r){e.setBindGroup(t>>>0,n,r)},e.wbg.__wbg_setBindGroup_beb777273edc100f=function(e,t,n,r){e.setBindGroup(t>>>0,n,r)},e.wbg.__wbg_setIndexBuffer_1e94798fafd75b38=function(e,t,n,r,i){e.setIndexBuffer(t,A[n],r,i)},e.wbg.__wbg_setPipeline_4cd9468d332cf0cb=function(e,t){e.setPipeline(t)},e.wbg.__wbg_setPipeline_a48ed1de5bcb914a=function(e,t){e.setPipeline(t)},e.wbg.__wbg_setScissorRect_d69fa46fa55e5d29=function(e,t,n,r,i){e.setScissorRect(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_setStencilReference_d21fe89ea5f39f77=function(e,t){e.setStencilReference(t>>>0)},e.wbg.__wbg_setVertexBuffer_31b4fff2767922a0=function(e,t,n,r,i){e.setVertexBuffer(t>>>0,n,r,i)},e.wbg.__wbg_set_8fc6bf8a5b1071d1=function(e,t,n){return e.set(t,n)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return r(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_seta_aa2e87786f1942f7=function(e,t){e.a=t},e.wbg.__wbg_setaccess_86057694fc60b7f2=function(e,t){e.access=I[t]},e.wbg.__wbg_setaddressmodeu_f4d9eced9e9a9499=function(e,t){e.addressModeU=S[t]},e.wbg.__wbg_setaddressmodev_cb577d2f98afac7c=function(e,t){e.addressModeV=S[t]},e.wbg.__wbg_setaddressmodew_0e9a9aa668e91f34=function(e,t){e.addressModeW=S[t]},e.wbg.__wbg_setalpha_789b6ecd7c06e5f3=function(e,t){e.alpha=t},e.wbg.__wbg_setalphatocoverageenabled_8862a1b7a0f204c6=function(e,t){e.alphaToCoverageEnabled=t!==0},e.wbg.__wbg_setarraylayercount_cd3d3ab55145805f=function(e,t){e.arrayLayerCount=t>>>0},e.wbg.__wbg_setarraystride_84800a5d0f5fa40b=function(e,t){e.arrayStride=t},e.wbg.__wbg_setaspect_71ab7bc27f22254c=function(e,t){e.aspect=R[t]},e.wbg.__wbg_setaspect_df168d4e18afc498=function(e,t){e.aspect=R[t]},e.wbg.__wbg_setattributes_340843a4c4217777=function(e,t){e.attributes=t},e.wbg.__wbg_setb_4a958fe161746e0b=function(e,t){e.b=t},e.wbg.__wbg_setbasearraylayer_66b527b8665953c2=function(e,t){e.baseArrayLayer=t>>>0},e.wbg.__wbg_setbasemiplevel_8b05bec34091257b=function(e,t){e.baseMipLevel=t>>>0},e.wbg.__wbg_setbeginningofpasswriteindex_449cbd524b33366d=function(e,t){e.beginningOfPassWriteIndex=t>>>0},e.wbg.__wbg_setbeginningofpasswriteindex_645ab3ba9029ac4a=function(e,t){e.beginningOfPassWriteIndex=t>>>0},e.wbg.__wbg_setbindgrouplayouts_b74aac632f5e0cd3=function(e,t){e.bindGroupLayouts=t},e.wbg.__wbg_setbinding_524d68995acbd9d8=function(e,t){e.binding=t>>>0},e.wbg.__wbg_setbinding_5fb23ecf62d3bb68=function(e,t){e.binding=t>>>0},e.wbg.__wbg_setblend_fc955738a0ea479e=function(e,t){e.blend=t},e.wbg.__wbg_setbuffer_90ac1c7477e1bc4f=function(e,t){e.buffer=t},e.wbg.__wbg_setbuffer_f4026154d4c607c4=function(e,t){e.buffer=t},e.wbg.__wbg_setbuffers_72c10dde80619dfb=function(e,t){e.buffers=t},e.wbg.__wbg_setbytesperrow_27937d232b087985=function(e,t){e.bytesPerRow=t>>>0},e.wbg.__wbg_setclearvalue_245c9baef9ca9f40=function(e,t){e.clearValue=t},e.wbg.__wbg_setcode_e3412dedece095a3=function(e,t,n){e.code=s(t,n)},e.wbg.__wbg_setcolor_2fcb4c98d73b4a08=function(e,t){e.color=t},e.wbg.__wbg_setcolorattachments_315a32a9447c8143=function(e,t){e.colorAttachments=t},e.wbg.__wbg_setcompare_1eeae8f049314765=function(e,t){e.compare=E[t]},e.wbg.__wbg_setcompare_392fd4fe47194005=function(e,t){e.compare=E[t]},e.wbg.__wbg_setcompute_5b54088b8639edd0=function(e,t){e.compute=t},e.wbg.__wbg_setconstants_08df997e38e4da58=function(e,t){e.constants=t},e.wbg.__wbg_setconstants_8fdb7b4cac7ebe8c=function(e,t){e.constants=t},e.wbg.__wbg_setconstants_a7158f4f0eb335b7=function(e,t){e.constants=t},e.wbg.__wbg_setcount_f0218523e435fe27=function(e,t){e.count=t>>>0},e.wbg.__wbg_setcullmode_d07f4cca149fc8fd=function(e,t){e.cullMode=D[t]},e.wbg.__wbg_setdepthbias_d0a6693d6a8ab87e=function(e,t){e.depthBias=t},e.wbg.__wbg_setdepthbiasclamp_256485c28643d20d=function(e,t){e.depthBiasClamp=t},e.wbg.__wbg_setdepthbiasslopescale_b7ec92a9bda5e232=function(e,t){e.depthBiasSlopeScale=t},e.wbg.__wbg_setdepthclearvalue_e427925fb817bffc=function(e,t){e.depthClearValue=t},e.wbg.__wbg_setdepthcompare_3d414508518d2332=function(e,t){e.depthCompare=E[t]},e.wbg.__wbg_setdepthfailop_bb45e35727206b07=function(e,t){e.depthFailOp=F[t]},e.wbg.__wbg_setdepthloadop_6e7ed58390bcb472=function(e,t){e.depthLoadOp=j[t]},e.wbg.__wbg_setdepthorarraylayers_f883a5503c92fcbe=function(e,t){e.depthOrArrayLayers=t>>>0},e.wbg.__wbg_setdepthreadonly_ec5f87de25f955c6=function(e,t){e.depthReadOnly=t!==0},e.wbg.__wbg_setdepthslice_4c2d15e75ec01602=function(e,t){e.depthSlice=t>>>0},e.wbg.__wbg_setdepthstencil_ab24ec143b022ff9=function(e,t){e.depthStencil=t},e.wbg.__wbg_setdepthstencilattachment_8abbf392d55551bd=function(e,t){e.depthStencilAttachment=t},e.wbg.__wbg_setdepthstoreop_c529093252e36c11=function(e,t){e.depthStoreOp=L[t]},e.wbg.__wbg_setdepthwriteenabled_a97b018ec8906115=function(e,t){e.depthWriteEnabled=t!==0},e.wbg.__wbg_setdimension_2892b665919c0e54=function(e,t){e.dimension=H[t]},e.wbg.__wbg_setdimension_c14e0b4f680f2a14=function(e,t){e.dimension=z[t]},e.wbg.__wbg_setdstfactor_04b172f73540aabf=function(e,t){e.dstFactor=C[t]},e.wbg.__wbg_setendofpasswriteindex_6923ba50f58bb0df=function(e,t){e.endOfPassWriteIndex=t>>>0},e.wbg.__wbg_setendofpasswriteindex_832ce3e1b3972fae=function(e,t){e.endOfPassWriteIndex=t>>>0},e.wbg.__wbg_setentries_545836ca7979d0c3=function(e,t){e.entries=t},e.wbg.__wbg_setentries_99398ac8873772cf=function(e,t){e.entries=t},e.wbg.__wbg_setentrypoint_40d651c49abeabef=function(e,t,n){e.entryPoint=s(t,n)},e.wbg.__wbg_setentrypoint_78553a4419def0b5=function(e,t,n){e.entryPoint=s(t,n)},e.wbg.__wbg_setentrypoint_9de314a2c2570802=function(e,t,n){e.entryPoint=s(t,n)},e.wbg.__wbg_setfailop_3b7d50b0a4f08e69=function(e,t){e.failOp=F[t]},e.wbg.__wbg_setformat_01f82498bb7aa545=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_3dd749532151c43e=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_5106903c3bec7f29=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_984f8b09308d0584=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_c0f2655a6b8dae1a=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_d474115239036438=function(e,t){e.format=U[t]},e.wbg.__wbg_setfragment_1f67ab59aff99617=function(e,t){e.fragment=t},e.wbg.__wbg_setfrontface_1875a91bf87e5bad=function(e,t){e.frontFace=k[t]},e.wbg.__wbg_setg_a62d6aa648d4cd4c=function(e,t){e.g=t},e.wbg.__wbg_sethasdynamicoffset_78853235cc49b8ea=function(e,t){e.hasDynamicOffset=t!==0},e.wbg.__wbg_setheight_1e158913ddc793af=function(e,t){e.height=t>>>0},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_setlayout_44fc85f3dd4d8fd6=function(e,t){e.layout=t},e.wbg.__wbg_setlayout_74172b78828c84fe=function(e,t){e.layout=t},e.wbg.__wbg_setlayout_a9e58d0996412dfa=function(e,t){e.layout=t},e.wbg.__wbg_setloadop_f1ccd5d15b52ca5d=function(e,t){e.loadOp=j[t]},e.wbg.__wbg_setlodmaxclamp_2c14826867287557=function(e,t){e.lodMaxClamp=t},e.wbg.__wbg_setlodminclamp_90c60cc7e8baa95b=function(e,t){e.lodMinClamp=t},e.wbg.__wbg_setmagfilter_064b565970422154=function(e,t){e.magFilter=O[t]},e.wbg.__wbg_setmappedatcreation_5b22281a9edff7fa=function(e,t){e.mappedAtCreation=t!==0},e.wbg.__wbg_setmask_2007e390b35587d6=function(e,t){e.mask=t>>>0},e.wbg.__wbg_setmaxanisotropy_d90cbfc49f762cf1=function(e,t){e.maxAnisotropy=t},e.wbg.__wbg_setminbindingsize_b6106c56d37c8a84=function(e,t){e.minBindingSize=t},e.wbg.__wbg_setminfilter_712d4dcd764a0d5e=function(e,t){e.minFilter=O[t]},e.wbg.__wbg_setmiplevel_5fa33ce523901448=function(e,t){e.mipLevel=t>>>0},e.wbg.__wbg_setmiplevelcount_836d12b93ef02836=function(e,t){e.mipLevelCount=t>>>0},e.wbg.__wbg_setmiplevelcount_da876250f18dd0e7=function(e,t){e.mipLevelCount=t>>>0},e.wbg.__wbg_setmipmapfilter_9cac92abe21b7816=function(e,t){e.mipmapFilter=M[t]},e.wbg.__wbg_setmodule_7b8dd93fefd91a73=function(e,t){e.module=t},e.wbg.__wbg_setmodule_e1281341685bf91a=function(e,t){e.module=t},e.wbg.__wbg_setmodule_e7a882363768bf73=function(e,t){e.module=t},e.wbg.__wbg_setmultisample_95fbbb44e36714e3=function(e,t){e.multisample=t},e.wbg.__wbg_setmultisampled_f7f0562151e1ff91=function(e,t){e.multisampled=t!==0},e.wbg.__wbg_setocclusionqueryset_a2a4abf338fb3441=function(e,t){e.occlusionQuerySet=t},e.wbg.__wbg_setoffset_1bf2826ce181376a=function(e,t){e.offset=t},e.wbg.__wbg_setoffset_f6f822a44e88af7e=function(e,t){e.offset=t},e.wbg.__wbg_setoffset_fe9f09cc240192d0=function(e,t){e.offset=t},e.wbg.__wbg_setoperation_de3d845bdac61eb3=function(e,t){e.operation=w[t]},e.wbg.__wbg_setorigin_9d2dbc71ffaae355=function(e,t){e.origin=t},e.wbg.__wbg_setpassop_8767e1a56e3c30da=function(e,t){e.passOp=F[t]},e.wbg.__wbg_setprimitive_491591635926383f=function(e,t){e.primitive=t},e.wbg.__wbg_setqueryset_0351509707c5cd51=function(e,t){e.querySet=t},e.wbg.__wbg_setqueryset_c4a0351a777cdfbd=function(e,t){e.querySet=t},e.wbg.__wbg_setr_732e149cd5493a75=function(e,t){e.r=t},e.wbg.__wbg_setresolvetarget_56e82fe32d6e757b=function(e,t){e.resolveTarget=t},e.wbg.__wbg_setresource_261b30a085bc9a72=function(e,t){e.resource=t},e.wbg.__wbg_setrowsperimage_5d58ebd56fa65231=function(e,t){e.rowsPerImage=t>>>0},e.wbg.__wbg_setsamplecount_ecdebb2cba9265c0=function(e,t){e.sampleCount=t>>>0},e.wbg.__wbg_setsampler_5d1ee8efc1fd14d3=function(e,t){e.sampler=t},e.wbg.__wbg_setsampletype_afa82d0d8ad6e2d7=function(e,t){e.sampleType=V[t]},e.wbg.__wbg_setshaderlocation_315967bfde4427a8=function(e,t){e.shaderLocation=t>>>0},e.wbg.__wbg_setsize_021142f0cf8b49c2=function(e,t){e.size=t},e.wbg.__wbg_setsize_4f9d7203f06fc54a=function(e,t){e.size=t},e.wbg.__wbg_setsize_a2662ec0e7f16cc9=function(e,t){e.size=t},e.wbg.__wbg_setsrcfactor_5aea25a9f1933072=function(e,t){e.srcFactor=C[t]},e.wbg.__wbg_setstencilback_1b6b2643a15d5066=function(e,t){e.stencilBack=t},e.wbg.__wbg_setstencilclearvalue_ef82d3b767ad806f=function(e,t){e.stencilClearValue=t>>>0},e.wbg.__wbg_setstencilfront_4e2eaace01795028=function(e,t){e.stencilFront=t},e.wbg.__wbg_setstencilloadop_6e7bc3186a01330e=function(e,t){e.stencilLoadOp=j[t]},e.wbg.__wbg_setstencilreadmask_99287c6b013f0ae2=function(e,t){e.stencilReadMask=t>>>0},e.wbg.__wbg_setstencilreadonly_00d790631a8e4330=function(e,t){e.stencilReadOnly=t!==0},e.wbg.__wbg_setstencilstoreop_22d01da4d35271b2=function(e,t){e.stencilStoreOp=L[t]},e.wbg.__wbg_setstencilwritemask_30cfa473ca5600c7=function(e,t){e.stencilWriteMask=t>>>0},e.wbg.__wbg_setstepmode_ac000a7f17d3b87d=function(e,t){e.stepMode=W[t]},e.wbg.__wbg_setstoragetexture_c17314bf4e104ece=function(e,t){e.storageTexture=t},e.wbg.__wbg_setstoreop_571e86638124baba=function(e,t){e.storeOp=L[t]},e.wbg.__wbg_setstripindexformat_9ec52f6405d7985b=function(e,t){e.stripIndexFormat=A[t]},e.wbg.__wbg_settargets_591e8613a4896aac=function(e,t){e.targets=t},e.wbg.__wbg_settexture_62c91e1557d1310a=function(e,t){e.texture=t},e.wbg.__wbg_settexture_a8c8df2623f6e670=function(e,t){e.texture=t},e.wbg.__wbg_settimestampwrites_65e353db5011b652=function(e,t){e.timestampWrites=t},e.wbg.__wbg_settimestampwrites_c48f0b3db52a9119=function(e,t){e.timestampWrites=t},e.wbg.__wbg_settopology_35540552af8ad12e=function(e,t){e.topology=N[t]},e.wbg.__wbg_settype_51c2819925b5e0a6=function(e,t){e.type=P[t]},e.wbg.__wbg_settype_a275611edc111d26=function(e,t){e.type=T[t]},e.wbg.__wbg_setunclippeddepth_43cbbb9961b4b705=function(e,t){e.unclippedDepth=t!==0},e.wbg.__wbg_setusage_7836ddf40e55971a=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setusage_7e9a6c2f119cab96=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setusage_97670aee3d9bbf16=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setvertex_602fd330026bc0be=function(e,t){e.vertex=t},e.wbg.__wbg_setview_2eb28c0fa8228e7c=function(e,t){e.view=t},e.wbg.__wbg_setview_451a1441471a69db=function(e,t){e.view=t},e.wbg.__wbg_setviewdimension_d632693fb1d12b24=function(e,t){e.viewDimension=H[t]},e.wbg.__wbg_setviewdimension_dc868215e54cbbba=function(e,t){e.viewDimension=H[t]},e.wbg.__wbg_setviewformats_6c89940ba38f64ff=function(e,t){e.viewFormats=t},e.wbg.__wbg_setvisibility_1f6371439759b513=function(e,t){e.visibility=t>>>0},e.wbg.__wbg_setwidth_6cc268cef8245a36=function(e,t){e.width=t>>>0},e.wbg.__wbg_setwritemask_4ea635b0719187be=function(e,t){e.writeMask=t>>>0},e.wbg.__wbg_size_84ca9c23c7989256=function(e){return e.size},e.wbg.__wbg_submit_3bf51baf36de553b=function(e,t){e.submit(t)},e.wbg.__wbg_unconfigure_64b5f267287f6b71=function(e){e.unconfigure()},e.wbg.__wbg_usage_d2a45c8d889f9c63=function(e){return e.usage},e.wbg.__wbg_width_684e9aa31cbda8b8=function(e){return e.width},e.wbg.__wbg_writeBuffer_b5be14e621130604=function(){return r(function(e,t,n,r){e.writeBuffer(t,n,r)},arguments)},e.wbg.__wbg_writeTexture_ff0b4f87c3efd0dc=function(){return r(function(e,t,n,r,i,a){e.writeTexture(t,c(n,r),i,a)},arguments)},e.wbg.__wbindgen_debug_string=function(e,n){let r=p(l(n),t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;h().setInt32(e+4,i,!0),h().setInt32(e+0,r,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=t.__wbindgen_export_2,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},e.wbg.__wbindgen_memory=function(){return t.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,n){let r=n,i=typeof r==`string`?r:void 0;var a=g(i)?0:p(i,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;h().setInt32(e+4,o,!0),h().setInt32(e+0,a,!0)},e.wbg.__wbindgen_string_new=function(e,t){return s(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(s(e,t))},e}function Y(e,n){return t=e.exports,X.__wbindgen_wasm_module=n,m=null,v=null,a=null,t.__wbindgen_start(),t}async function X(e){if(t!==void 0)return t;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let n=J();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:i}=await q(await e,n);return Y(r,i)}const Z=e.n(X,`https://cdn.jsdelivr.net/npm/${e.d}@${e.f}/dist/webgpu/dotlottie-player.wasm`,`https://unpkg.com/${e.d}@${e.f}/dist/webgpu/dotlottie-player.wasm`);var Q=class extends e.t{constructor(t){super(t),e.p(this,`_gpuDevice`,null),e.p(this,`_gpuContext`,null),e.p(this,`_deviceOwned`,!1),e.p(this,`_userDevice`,void 0),this._userDevice=t.device}async _initWasm(){if(await Z.load(),this._userDevice)this._gpuDevice=this._userDevice,this._deviceOwned=!1;else{if(!navigator.gpu)throw Error(`WebGPU is not supported in this browser.`);let e=await navigator.gpu.requestAdapter();if(!e)throw Error(`Failed to get WebGPU adapter.`);let t=await e.requestDevice();t.lost.then(e=>{console.error(`[dotlottie-web] WebGPU device lost: ${e.reason} — ${e.message}`)}),this._gpuDevice=t,this._deviceOwned=!0}}_createCore(){return new K}_onCoreCreated(){!this._canvas||!this._dotLottieCore||!this._gpuDevice||this._setupGpuContext()}_setupGpuContext(){if(!this._canvas||!this._dotLottieCore||!this._gpuDevice)return;let t=this._canvas;if(e.u){let n=this._renderConfig.devicePixelRatio||e.r(),{width:r,height:i}=t.getBoundingClientRect();r!==0&&i!==0&&(t.width=Math.round(r*n),t.height=Math.round(i*n))}let n=t.getContext(`webgpu`);if(!n)throw Error(`Failed to get WebGPU canvas context.`);let r=navigator.gpu.getPreferredCanvasFormat();n.configure({device:this._gpuDevice,format:r,alphaMode:`premultiplied`}),this._gpuContext=n;let i=this._dotLottieCore;i.set_webgpu_device(this._gpuDevice),i.set_webgpu_surface(n)}resize(){if(this._gpuContext&&this._gpuDevice&&this._canvas){let t=this._canvas,n=this._renderConfig.devicePixelRatio||e.r(),{width:r,height:i}=t.getBoundingClientRect();r!==0&&i!==0&&(t.width=Math.round(r*n),t.height=Math.round(i*n)),this._gpuContext.configure({device:this._gpuDevice,format:navigator.gpu.getPreferredCanvasFormat(),alphaMode:`premultiplied`}),this._dotLottieCore&&this.isLoaded&&this._dotLottieCore.resize(t.width,t.height)&&this._dotLottieCore.render();return}super.resize()}_draw(){}_setupRendererOnCanvas(){this._context=null,this._gpuContext&&(this._gpuContext.unconfigure(),this._gpuContext=null),!(!this._canvas||!this._dotLottieCore||!this._gpuDevice)&&this._setupGpuContext()}destroy(){this._gpuContext&&(this._gpuContext.unconfigure(),this._gpuContext=null),super.destroy(),this._deviceOwned&&this._gpuDevice&&this._gpuDevice.destroy(),this._gpuDevice=null}get device(){return this._gpuDevice}static setWasmUrl(e){Z.setWasmUrl(e)}};exports.DotLottie=Q;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../dotlottie-ls0cVLtn.cjs`);let t;function n(e){let n=t.__externref_table_alloc_command_export();return t.__wbindgen_export_2.set(n,e),n}function r(e,r){try{return e.apply(this,r)}catch(e){let r=n(e);t.__wbindgen_exn_store_command_export(r)}}const i=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&i.decode();let a=null;function o(){return(a===null||a.byteLength===0)&&(a=new Uint8Array(t.memory.buffer)),a}function s(e,t){return e>>>=0,i.decode(o().subarray(e,e+t))}function c(e,t){return e>>>=0,o().subarray(e/1,e/1+t)}function l(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=l(e[0]));for(let r=1;r<t;r++)n+=`, `+l(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}let u=0;const d=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},f=typeof d.encodeInto==`function`?function(e,t){return d.encodeInto(e,t)}:function(e,t){let n=d.encode(e);return t.set(n),{read:e.length,written:n.length}};function p(e,t,n){if(n===void 0){let n=d.encode(e),r=t(n.length,1)>>>0;return o().subarray(r,r+n.length).set(n),u=n.length,r}let r=e.length,i=t(r,1)>>>0,a=o(),s=0;for(;s<r;s++){let t=e.charCodeAt(s);if(t>127)break;a[i+s]=t}if(s!==r){s!==0&&(e=e.slice(s)),i=n(i,r,r=s+e.length*3,1)>>>0;let t=o().subarray(i+s,i+r),a=f(e,t);s+=a.written,i=n(i,r,s,1)>>>0}return u=s,i}let m=null;function h(){return(m===null||m.buffer.detached===!0||m.buffer.detached===void 0&&m.buffer!==t.memory.buffer)&&(m=new DataView(t.memory.buffer)),m}function g(e){return e==null}function _(e,t){let n=t(e.length*1,1)>>>0;return o().set(e,n/1),u=e.length,n}let v=null;function y(){return(v===null||v.byteLength===0)&&(v=new Float32Array(t.memory.buffer)),v}function b(e,t){let n=t(e.length*4,4)>>>0;return y().set(e,n/4),u=e.length,n}function x(e,t){let r=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let i=n(e[t]);h().setUint32(r+4*t,i,!0)}return u=e.length,r}Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`});const S=[`clamp-to-edge`,`repeat`,`mirror-repeat`],C=[`zero`,`one`,`src`,`one-minus-src`,`src-alpha`,`one-minus-src-alpha`,`dst`,`one-minus-dst`,`dst-alpha`,`one-minus-dst-alpha`,`src-alpha-saturated`,`constant`,`one-minus-constant`,`src1`,`one-minus-src1`,`src1-alpha`,`one-minus-src1-alpha`],w=[`add`,`subtract`,`reverse-subtract`,`min`,`max`],T=[`uniform`,`storage`,`read-only-storage`],E=[`never`,`less`,`equal`,`less-equal`,`greater`,`not-equal`,`greater-equal`,`always`],D=[`none`,`front`,`back`],O=[`nearest`,`linear`],k=[`ccw`,`cw`],A=[`uint16`,`uint32`],j=[`load`,`clear`],M=[`nearest`,`linear`],N=[`point-list`,`line-list`,`line-strip`,`triangle-list`,`triangle-strip`],P=[`filtering`,`non-filtering`,`comparison`],F=[`keep`,`zero`,`replace`,`invert`,`increment-clamp`,`decrement-clamp`,`increment-wrap`,`decrement-wrap`],I=[`write-only`,`read-only`,`read-write`],L=[`store`,`discard`],R=[`all`,`stencil-only`,`depth-only`],z=[`1d`,`2d`,`3d`],B=`r8unorm.r8snorm.r8uint.r8sint.r16uint.r16sint.r16float.rg8unorm.rg8snorm.rg8uint.rg8sint.r32uint.r32sint.r32float.rg16uint.rg16sint.rg16float.rgba8unorm.rgba8unorm-srgb.rgba8snorm.rgba8uint.rgba8sint.bgra8unorm.bgra8unorm-srgb.rgb9e5ufloat.rgb10a2uint.rgb10a2unorm.rg11b10ufloat.rg32uint.rg32sint.rg32float.rgba16uint.rgba16sint.rgba16float.rgba32uint.rgba32sint.rgba32float.stencil8.depth16unorm.depth24plus.depth24plus-stencil8.depth32float.depth32float-stencil8.bc1-rgba-unorm.bc1-rgba-unorm-srgb.bc2-rgba-unorm.bc2-rgba-unorm-srgb.bc3-rgba-unorm.bc3-rgba-unorm-srgb.bc4-r-unorm.bc4-r-snorm.bc5-rg-unorm.bc5-rg-snorm.bc6h-rgb-ufloat.bc6h-rgb-float.bc7-rgba-unorm.bc7-rgba-unorm-srgb.etc2-rgb8unorm.etc2-rgb8unorm-srgb.etc2-rgb8a1unorm.etc2-rgb8a1unorm-srgb.etc2-rgba8unorm.etc2-rgba8unorm-srgb.eac-r11unorm.eac-r11snorm.eac-rg11unorm.eac-rg11snorm.astc-4x4-unorm.astc-4x4-unorm-srgb.astc-5x4-unorm.astc-5x4-unorm-srgb.astc-5x5-unorm.astc-5x5-unorm-srgb.astc-6x5-unorm.astc-6x5-unorm-srgb.astc-6x6-unorm.astc-6x6-unorm-srgb.astc-8x5-unorm.astc-8x5-unorm-srgb.astc-8x6-unorm.astc-8x6-unorm-srgb.astc-8x8-unorm.astc-8x8-unorm-srgb.astc-10x5-unorm.astc-10x5-unorm-srgb.astc-10x6-unorm.astc-10x6-unorm-srgb.astc-10x8-unorm.astc-10x8-unorm-srgb.astc-10x10-unorm.astc-10x10-unorm-srgb.astc-12x10-unorm.astc-12x10-unorm-srgb.astc-12x12-unorm.astc-12x12-unorm-srgb`.split(`.`),V=[`float`,`unfilterable-float`,`depth`,`sint`,`uint`],H=[`1d`,`2d`,`2d-array`,`cube`,`cube-array`,`3d`],U=`uint8.uint8x2.uint8x4.sint8.sint8x2.sint8x4.unorm8.unorm8x2.unorm8x4.snorm8.snorm8x2.snorm8x4.uint16.uint16x2.uint16x4.sint16.sint16x2.sint16x4.unorm16.unorm16x2.unorm16x4.snorm16.snorm16x2.snorm16x4.float16.float16x2.float16x4.float32.float32x2.float32x3.float32x4.uint32.uint32x2.uint32x3.uint32x4.sint32.sint32x2.sint32x3.sint32x4.unorm10-10-10-2.unorm8x4-bgra`.split(`.`),W=[`vertex`,`instance`],G=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_dotlottieplayerwasm_free(e>>>0,1));var K=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=t.dotlottieplayerwasm_new()>>>0,G.register(this,this.__wbg_ptr,this),this}set_webgpu_device(e){t.dotlottieplayerwasm_set_webgpu_device(this.__wbg_ptr,e)}set_webgpu_surface(e){t.dotlottieplayerwasm_set_webgpu_surface(this.__wbg_ptr,e)}load_animation(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_load_animation(this.__wbg_ptr,i,a,n,r)!==0}load_dotlottie_data(e,n,r){let i=_(e,t.__wbindgen_malloc_command_export),a=u;return t.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,i,a,n,r)!==0}load_animation_from_id(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,i,a,n,r)!==0}tick(){return t.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return t.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){t.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,n){return t.dotlottieplayerwasm_resize(this.__wbg_ptr,e,n)!==0}play(){return t.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return t.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return t.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return t.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return t.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return t.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return t.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return t.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return t.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return t.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return t.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return t.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return t.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return t.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return t.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return t.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return t.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){t.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return t.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return t.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return t.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return t.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){t.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return t.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){t.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return t.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){t.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return t.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){t.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return t.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){t.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return t.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){t.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return t.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return t.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return t.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return t.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return t.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return t.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return t.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,n){return t.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,n)!==0}clear_segment(){return t.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_set_layout(this.__wbg_ptr,i,a,n,r)!==0}layout_fit(){let e,n;try{let r=t.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}layout_align_x(){return t.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return t.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,n,r,i){return t.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,n,r,i)!==0}set_color_slot(e,n,r,i){let a=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;return t.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,a,o,n,r,i)!==0}set_scalar_slot(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,r,i,n)!==0}set_text_slot(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u,a=p(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;return t.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,r,i,a,o)!==0}set_vector_slot(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,i,a,n,r)!==0}set_position_slot(e,n,r){let i=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,i,a,n,r)!==0}clear_slots(){return t.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,n,r)!==0}set_slots_str(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,n,r)!==0}set_slot_str(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u,a=p(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;return t.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,r,i,a,o)!==0}get_slot_str(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=s(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}get_slots_str(){let e,n;try{let r=t.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_slot_ids(){return t.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=s(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}reset_slot(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,n,r)!==0}reset_slots(){return t.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,n,r){let i=p(r,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=u;return t.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,n,i,a)!==0}get_layer_bounds(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,n,r)}get_transform(){return t.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let n=b(e,t.__wbindgen_malloc_command_export),r=u;return t.dotlottieplayerwasm_set_transform(this.__wbg_ptr,n,r)!==0}tween(e,n){return t.dotlottieplayerwasm_tween(this.__wbg_ptr,e,g(n)?4294967297:Math.fround(n))!==0}tween_with_easing(e,n,r,i,a,o){return t.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,g(n)?4294967297:Math.fround(n),r,i,a,o)!==0}tween_stop(){return t.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return t.dotlottieplayerwasm_tween_update(this.__wbg_ptr,g(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,r,i,g(n)?4294967297:Math.fround(n))!==0}markers(){return t.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return t.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=t.dotlottieplayerwasm_current_marker(this.__wbg_ptr),n;return e[0]!==0&&(n=s(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}set_marker(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;t.dotlottieplayerwasm_set_marker(this.__wbg_ptr,n,r)}clear_marker(){t.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return t.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){t.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u,a=_(n,t.__wbindgen_malloc_command_export),o=u;return t.dotlottieplayerwasm_load_font(this.__wbg_ptr,r,i,a,o)!==0}static unload_font(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_unload_font(n,r)!==0}set_theme(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_set_theme(this.__wbg_ptr,n,r)!==0}reset_theme(){return t.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,n,r)!==0}theme_id(){let e=t.dotlottieplayerwasm_theme_id(this.__wbg_ptr),n;return e[0]!==0&&(n=s(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}animation_id(){let e=t.dotlottieplayerwasm_animation_id(this.__wbg_ptr),n;return e[0]!==0&&(n=s(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}manifest_string(){let e,n;try{let r=t.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_state_machine(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=s(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}state_machine_id(){let e=t.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),n;return e[0]!==0&&(n=s(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],e[1]*1,1)),n}state_machine_load(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,n,r)!==0}state_machine_load_from_id(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,n,r)!==0}state_machine_unload(){t.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;return t.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,n,r)!==0}sm_set_numeric_input(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,r,i,n)!==0}sm_get_numeric_input(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,n,r);return i===4294967297?void 0:i}sm_set_string_input(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u,a=p(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;return t.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,r,i,a,o)!==0}sm_get_string_input(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,n,r),a;return i[0]!==0&&(a=s(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],i[1]*1,1)),a}sm_set_boolean_input(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,r,i,n)!==0}sm_get_boolean_input(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u,i=t.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,n,r);return i===16777215?void 0:i!==0}sm_reset_input(e){let n=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=u;t.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,n,r)}sm_poll_event(){return t.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,n){let r=x(n,t.__wbindgen_malloc_command_export),i=u;return t.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,r,i)!==0}sm_stop(){return t.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,n;try{let r=t.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}sm_current_state(){let e,n;try{let r=t.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=r[0],n=r[1],s(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}sm_override_current_state(e,n){let r=p(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;return t.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,r,i,n)!==0}sm_framework_setup(){return t.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return t.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,n){t.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,n)}sm_post_pointer_down(e,n){t.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,n)}sm_post_pointer_up(e,n){t.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,n)}sm_post_pointer_move(e,n){t.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,n)}sm_post_pointer_enter(e,n){t.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,n)}sm_post_pointer_exit(e,n){t.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,n)}sm_poll_internal_event(){return t.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return t.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function q(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function J(){let e={};return e.wbg={},e.wbg.__wbg_beginComputePass_ce58248c78ea4f0b=function(e,t){return e.beginComputePass(t)},e.wbg.__wbg_beginRenderPass_509df70c967b895c=function(){return r(function(e,t){return e.beginRenderPass(t)},arguments)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_configure_7e2130842707feff=function(){return r(function(e,t){e.configure(t)},arguments)},e.wbg.__wbg_copyTextureToTexture_8b0d14b8089f3036=function(){return r(function(e,t,n,r){e.copyTextureToTexture(t,n,r)},arguments)},e.wbg.__wbg_createBindGroupLayout_5f799ca8bc5aa1fc=function(){return r(function(e,t){return e.createBindGroupLayout(t)},arguments)},e.wbg.__wbg_createBindGroup_ddd3bb343cf271fb=function(e,t){return e.createBindGroup(t)},e.wbg.__wbg_createBuffer_826176fb72deecbf=function(){return r(function(e,t){return e.createBuffer(t)},arguments)},e.wbg.__wbg_createCommandEncoder_579fe7e60b87a1c4=function(e,t){return e.createCommandEncoder(t)},e.wbg.__wbg_createComputePipeline_5f91c9fb81d570e7=function(e,t){return e.createComputePipeline(t)},e.wbg.__wbg_createPipelineLayout_b1406687fd03f870=function(e,t){return e.createPipelineLayout(t)},e.wbg.__wbg_createRenderPipeline_24a0e9be53ed468e=function(){return r(function(e,t){return e.createRenderPipeline(t)},arguments)},e.wbg.__wbg_createSampler_381b4ade52f53f68=function(e,t){return e.createSampler(t)},e.wbg.__wbg_createShaderModule_035719b95e2aae80=function(e,t){return e.createShaderModule(t)},e.wbg.__wbg_createTexture_6947ba7853a1d055=function(){return r(function(e,t){return e.createTexture(t)},arguments)},e.wbg.__wbg_createView_7f08b4f77746d573=function(){return r(function(e,t){return e.createView(t)},arguments)},e.wbg.__wbg_destroy_911c8640ffed5684=function(e){e.destroy()},e.wbg.__wbg_destroy_c1bd9f1fd447bebf=function(e){e.destroy()},e.wbg.__wbg_dispatchWorkgroups_6b7a05edf9c2b474=function(e,t,n,r){e.dispatchWorkgroups(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_drawIndexed_0d27b49d3d541ca9=function(e,t,n,r,i,a){e.drawIndexed(t>>>0,n>>>0,r>>>0,i,a>>>0)},e.wbg.__wbg_draw_afac1827162db569=function(e,t,n,r,i){e.draw(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_end_5f3989c200fa79e9=function(e){e.end()},e.wbg.__wbg_end_e9ed158432136036=function(e){e.end()},e.wbg.__wbg_finish_5d6bd1bf9cca88b0=function(e,t){return e.finish(t)},e.wbg.__wbg_finish_a3819bcf098c1f84=function(e){return e.finish()},e.wbg.__wbg_format_cb1ef2f3b44b306a=function(e){let t=e.format;return(B.indexOf(t)+1||96)-1},e.wbg.__wbg_getCurrentTexture_cf3b91d12114ffcb=function(){return r(function(e){return e.getCurrentTexture()},arguments)},e.wbg.__wbg_height_a1cdc6189018a9b3=function(e){return e.height},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_5e0be73521bc8c17=function(){return new Map},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_newwithlength_a381634e90c276d4=function(e){return new Uint8Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_queue_712d25576063d2fc=function(e){return e.queue},e.wbg.__wbg_setBindGroup_03656750a7c9f7c6=function(e,t,n){e.setBindGroup(t>>>0,n)},e.wbg.__wbg_setBindGroup_438462565faaa01c=function(e,t,n){e.setBindGroup(t>>>0,n)},e.wbg.__wbg_setBindGroup_8ec97340dd95cb9c=function(e,t,n,r){e.setBindGroup(t>>>0,n,r)},e.wbg.__wbg_setBindGroup_beb777273edc100f=function(e,t,n,r){e.setBindGroup(t>>>0,n,r)},e.wbg.__wbg_setIndexBuffer_1e94798fafd75b38=function(e,t,n,r,i){e.setIndexBuffer(t,A[n],r,i)},e.wbg.__wbg_setPipeline_4cd9468d332cf0cb=function(e,t){e.setPipeline(t)},e.wbg.__wbg_setPipeline_a48ed1de5bcb914a=function(e,t){e.setPipeline(t)},e.wbg.__wbg_setScissorRect_d69fa46fa55e5d29=function(e,t,n,r,i){e.setScissorRect(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_setStencilReference_d21fe89ea5f39f77=function(e,t){e.setStencilReference(t>>>0)},e.wbg.__wbg_setVertexBuffer_31b4fff2767922a0=function(e,t,n,r,i){e.setVertexBuffer(t>>>0,n,r,i)},e.wbg.__wbg_set_8fc6bf8a5b1071d1=function(e,t,n){return e.set(t,n)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return r(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_seta_aa2e87786f1942f7=function(e,t){e.a=t},e.wbg.__wbg_setaccess_86057694fc60b7f2=function(e,t){e.access=I[t]},e.wbg.__wbg_setaddressmodeu_f4d9eced9e9a9499=function(e,t){e.addressModeU=S[t]},e.wbg.__wbg_setaddressmodev_cb577d2f98afac7c=function(e,t){e.addressModeV=S[t]},e.wbg.__wbg_setaddressmodew_0e9a9aa668e91f34=function(e,t){e.addressModeW=S[t]},e.wbg.__wbg_setalpha_789b6ecd7c06e5f3=function(e,t){e.alpha=t},e.wbg.__wbg_setalphatocoverageenabled_8862a1b7a0f204c6=function(e,t){e.alphaToCoverageEnabled=t!==0},e.wbg.__wbg_setarraylayercount_cd3d3ab55145805f=function(e,t){e.arrayLayerCount=t>>>0},e.wbg.__wbg_setarraystride_84800a5d0f5fa40b=function(e,t){e.arrayStride=t},e.wbg.__wbg_setaspect_71ab7bc27f22254c=function(e,t){e.aspect=R[t]},e.wbg.__wbg_setaspect_df168d4e18afc498=function(e,t){e.aspect=R[t]},e.wbg.__wbg_setattributes_340843a4c4217777=function(e,t){e.attributes=t},e.wbg.__wbg_setb_4a958fe161746e0b=function(e,t){e.b=t},e.wbg.__wbg_setbasearraylayer_66b527b8665953c2=function(e,t){e.baseArrayLayer=t>>>0},e.wbg.__wbg_setbasemiplevel_8b05bec34091257b=function(e,t){e.baseMipLevel=t>>>0},e.wbg.__wbg_setbeginningofpasswriteindex_449cbd524b33366d=function(e,t){e.beginningOfPassWriteIndex=t>>>0},e.wbg.__wbg_setbeginningofpasswriteindex_645ab3ba9029ac4a=function(e,t){e.beginningOfPassWriteIndex=t>>>0},e.wbg.__wbg_setbindgrouplayouts_b74aac632f5e0cd3=function(e,t){e.bindGroupLayouts=t},e.wbg.__wbg_setbinding_524d68995acbd9d8=function(e,t){e.binding=t>>>0},e.wbg.__wbg_setbinding_5fb23ecf62d3bb68=function(e,t){e.binding=t>>>0},e.wbg.__wbg_setblend_fc955738a0ea479e=function(e,t){e.blend=t},e.wbg.__wbg_setbuffer_90ac1c7477e1bc4f=function(e,t){e.buffer=t},e.wbg.__wbg_setbuffer_f4026154d4c607c4=function(e,t){e.buffer=t},e.wbg.__wbg_setbuffers_72c10dde80619dfb=function(e,t){e.buffers=t},e.wbg.__wbg_setbytesperrow_27937d232b087985=function(e,t){e.bytesPerRow=t>>>0},e.wbg.__wbg_setclearvalue_245c9baef9ca9f40=function(e,t){e.clearValue=t},e.wbg.__wbg_setcode_e3412dedece095a3=function(e,t,n){e.code=s(t,n)},e.wbg.__wbg_setcolor_2fcb4c98d73b4a08=function(e,t){e.color=t},e.wbg.__wbg_setcolorattachments_315a32a9447c8143=function(e,t){e.colorAttachments=t},e.wbg.__wbg_setcompare_1eeae8f049314765=function(e,t){e.compare=E[t]},e.wbg.__wbg_setcompare_392fd4fe47194005=function(e,t){e.compare=E[t]},e.wbg.__wbg_setcompute_5b54088b8639edd0=function(e,t){e.compute=t},e.wbg.__wbg_setconstants_08df997e38e4da58=function(e,t){e.constants=t},e.wbg.__wbg_setconstants_8fdb7b4cac7ebe8c=function(e,t){e.constants=t},e.wbg.__wbg_setconstants_a7158f4f0eb335b7=function(e,t){e.constants=t},e.wbg.__wbg_setcount_f0218523e435fe27=function(e,t){e.count=t>>>0},e.wbg.__wbg_setcullmode_d07f4cca149fc8fd=function(e,t){e.cullMode=D[t]},e.wbg.__wbg_setdepthbias_d0a6693d6a8ab87e=function(e,t){e.depthBias=t},e.wbg.__wbg_setdepthbiasclamp_256485c28643d20d=function(e,t){e.depthBiasClamp=t},e.wbg.__wbg_setdepthbiasslopescale_b7ec92a9bda5e232=function(e,t){e.depthBiasSlopeScale=t},e.wbg.__wbg_setdepthclearvalue_e427925fb817bffc=function(e,t){e.depthClearValue=t},e.wbg.__wbg_setdepthcompare_3d414508518d2332=function(e,t){e.depthCompare=E[t]},e.wbg.__wbg_setdepthfailop_bb45e35727206b07=function(e,t){e.depthFailOp=F[t]},e.wbg.__wbg_setdepthloadop_6e7ed58390bcb472=function(e,t){e.depthLoadOp=j[t]},e.wbg.__wbg_setdepthorarraylayers_f883a5503c92fcbe=function(e,t){e.depthOrArrayLayers=t>>>0},e.wbg.__wbg_setdepthreadonly_ec5f87de25f955c6=function(e,t){e.depthReadOnly=t!==0},e.wbg.__wbg_setdepthslice_4c2d15e75ec01602=function(e,t){e.depthSlice=t>>>0},e.wbg.__wbg_setdepthstencil_ab24ec143b022ff9=function(e,t){e.depthStencil=t},e.wbg.__wbg_setdepthstencilattachment_8abbf392d55551bd=function(e,t){e.depthStencilAttachment=t},e.wbg.__wbg_setdepthstoreop_c529093252e36c11=function(e,t){e.depthStoreOp=L[t]},e.wbg.__wbg_setdepthwriteenabled_a97b018ec8906115=function(e,t){e.depthWriteEnabled=t!==0},e.wbg.__wbg_setdimension_2892b665919c0e54=function(e,t){e.dimension=H[t]},e.wbg.__wbg_setdimension_c14e0b4f680f2a14=function(e,t){e.dimension=z[t]},e.wbg.__wbg_setdstfactor_04b172f73540aabf=function(e,t){e.dstFactor=C[t]},e.wbg.__wbg_setendofpasswriteindex_6923ba50f58bb0df=function(e,t){e.endOfPassWriteIndex=t>>>0},e.wbg.__wbg_setendofpasswriteindex_832ce3e1b3972fae=function(e,t){e.endOfPassWriteIndex=t>>>0},e.wbg.__wbg_setentries_545836ca7979d0c3=function(e,t){e.entries=t},e.wbg.__wbg_setentries_99398ac8873772cf=function(e,t){e.entries=t},e.wbg.__wbg_setentrypoint_40d651c49abeabef=function(e,t,n){e.entryPoint=s(t,n)},e.wbg.__wbg_setentrypoint_78553a4419def0b5=function(e,t,n){e.entryPoint=s(t,n)},e.wbg.__wbg_setentrypoint_9de314a2c2570802=function(e,t,n){e.entryPoint=s(t,n)},e.wbg.__wbg_setfailop_3b7d50b0a4f08e69=function(e,t){e.failOp=F[t]},e.wbg.__wbg_setformat_01f82498bb7aa545=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_3dd749532151c43e=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_5106903c3bec7f29=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_984f8b09308d0584=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_c0f2655a6b8dae1a=function(e,t){e.format=B[t]},e.wbg.__wbg_setformat_d474115239036438=function(e,t){e.format=U[t]},e.wbg.__wbg_setfragment_1f67ab59aff99617=function(e,t){e.fragment=t},e.wbg.__wbg_setfrontface_1875a91bf87e5bad=function(e,t){e.frontFace=k[t]},e.wbg.__wbg_setg_a62d6aa648d4cd4c=function(e,t){e.g=t},e.wbg.__wbg_sethasdynamicoffset_78853235cc49b8ea=function(e,t){e.hasDynamicOffset=t!==0},e.wbg.__wbg_setheight_1e158913ddc793af=function(e,t){e.height=t>>>0},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_setlayout_44fc85f3dd4d8fd6=function(e,t){e.layout=t},e.wbg.__wbg_setlayout_74172b78828c84fe=function(e,t){e.layout=t},e.wbg.__wbg_setlayout_a9e58d0996412dfa=function(e,t){e.layout=t},e.wbg.__wbg_setloadop_f1ccd5d15b52ca5d=function(e,t){e.loadOp=j[t]},e.wbg.__wbg_setlodmaxclamp_2c14826867287557=function(e,t){e.lodMaxClamp=t},e.wbg.__wbg_setlodminclamp_90c60cc7e8baa95b=function(e,t){e.lodMinClamp=t},e.wbg.__wbg_setmagfilter_064b565970422154=function(e,t){e.magFilter=O[t]},e.wbg.__wbg_setmappedatcreation_5b22281a9edff7fa=function(e,t){e.mappedAtCreation=t!==0},e.wbg.__wbg_setmask_2007e390b35587d6=function(e,t){e.mask=t>>>0},e.wbg.__wbg_setmaxanisotropy_d90cbfc49f762cf1=function(e,t){e.maxAnisotropy=t},e.wbg.__wbg_setminbindingsize_b6106c56d37c8a84=function(e,t){e.minBindingSize=t},e.wbg.__wbg_setminfilter_712d4dcd764a0d5e=function(e,t){e.minFilter=O[t]},e.wbg.__wbg_setmiplevel_5fa33ce523901448=function(e,t){e.mipLevel=t>>>0},e.wbg.__wbg_setmiplevelcount_836d12b93ef02836=function(e,t){e.mipLevelCount=t>>>0},e.wbg.__wbg_setmiplevelcount_da876250f18dd0e7=function(e,t){e.mipLevelCount=t>>>0},e.wbg.__wbg_setmipmapfilter_9cac92abe21b7816=function(e,t){e.mipmapFilter=M[t]},e.wbg.__wbg_setmodule_7b8dd93fefd91a73=function(e,t){e.module=t},e.wbg.__wbg_setmodule_e1281341685bf91a=function(e,t){e.module=t},e.wbg.__wbg_setmodule_e7a882363768bf73=function(e,t){e.module=t},e.wbg.__wbg_setmultisample_95fbbb44e36714e3=function(e,t){e.multisample=t},e.wbg.__wbg_setmultisampled_f7f0562151e1ff91=function(e,t){e.multisampled=t!==0},e.wbg.__wbg_setocclusionqueryset_a2a4abf338fb3441=function(e,t){e.occlusionQuerySet=t},e.wbg.__wbg_setoffset_1bf2826ce181376a=function(e,t){e.offset=t},e.wbg.__wbg_setoffset_f6f822a44e88af7e=function(e,t){e.offset=t},e.wbg.__wbg_setoffset_fe9f09cc240192d0=function(e,t){e.offset=t},e.wbg.__wbg_setoperation_de3d845bdac61eb3=function(e,t){e.operation=w[t]},e.wbg.__wbg_setorigin_9d2dbc71ffaae355=function(e,t){e.origin=t},e.wbg.__wbg_setpassop_8767e1a56e3c30da=function(e,t){e.passOp=F[t]},e.wbg.__wbg_setprimitive_491591635926383f=function(e,t){e.primitive=t},e.wbg.__wbg_setqueryset_0351509707c5cd51=function(e,t){e.querySet=t},e.wbg.__wbg_setqueryset_c4a0351a777cdfbd=function(e,t){e.querySet=t},e.wbg.__wbg_setr_732e149cd5493a75=function(e,t){e.r=t},e.wbg.__wbg_setresolvetarget_56e82fe32d6e757b=function(e,t){e.resolveTarget=t},e.wbg.__wbg_setresource_261b30a085bc9a72=function(e,t){e.resource=t},e.wbg.__wbg_setrowsperimage_5d58ebd56fa65231=function(e,t){e.rowsPerImage=t>>>0},e.wbg.__wbg_setsamplecount_ecdebb2cba9265c0=function(e,t){e.sampleCount=t>>>0},e.wbg.__wbg_setsampler_5d1ee8efc1fd14d3=function(e,t){e.sampler=t},e.wbg.__wbg_setsampletype_afa82d0d8ad6e2d7=function(e,t){e.sampleType=V[t]},e.wbg.__wbg_setshaderlocation_315967bfde4427a8=function(e,t){e.shaderLocation=t>>>0},e.wbg.__wbg_setsize_021142f0cf8b49c2=function(e,t){e.size=t},e.wbg.__wbg_setsize_4f9d7203f06fc54a=function(e,t){e.size=t},e.wbg.__wbg_setsize_a2662ec0e7f16cc9=function(e,t){e.size=t},e.wbg.__wbg_setsrcfactor_5aea25a9f1933072=function(e,t){e.srcFactor=C[t]},e.wbg.__wbg_setstencilback_1b6b2643a15d5066=function(e,t){e.stencilBack=t},e.wbg.__wbg_setstencilclearvalue_ef82d3b767ad806f=function(e,t){e.stencilClearValue=t>>>0},e.wbg.__wbg_setstencilfront_4e2eaace01795028=function(e,t){e.stencilFront=t},e.wbg.__wbg_setstencilloadop_6e7bc3186a01330e=function(e,t){e.stencilLoadOp=j[t]},e.wbg.__wbg_setstencilreadmask_99287c6b013f0ae2=function(e,t){e.stencilReadMask=t>>>0},e.wbg.__wbg_setstencilreadonly_00d790631a8e4330=function(e,t){e.stencilReadOnly=t!==0},e.wbg.__wbg_setstencilstoreop_22d01da4d35271b2=function(e,t){e.stencilStoreOp=L[t]},e.wbg.__wbg_setstencilwritemask_30cfa473ca5600c7=function(e,t){e.stencilWriteMask=t>>>0},e.wbg.__wbg_setstepmode_ac000a7f17d3b87d=function(e,t){e.stepMode=W[t]},e.wbg.__wbg_setstoragetexture_c17314bf4e104ece=function(e,t){e.storageTexture=t},e.wbg.__wbg_setstoreop_571e86638124baba=function(e,t){e.storeOp=L[t]},e.wbg.__wbg_setstripindexformat_9ec52f6405d7985b=function(e,t){e.stripIndexFormat=A[t]},e.wbg.__wbg_settargets_591e8613a4896aac=function(e,t){e.targets=t},e.wbg.__wbg_settexture_62c91e1557d1310a=function(e,t){e.texture=t},e.wbg.__wbg_settexture_a8c8df2623f6e670=function(e,t){e.texture=t},e.wbg.__wbg_settimestampwrites_65e353db5011b652=function(e,t){e.timestampWrites=t},e.wbg.__wbg_settimestampwrites_c48f0b3db52a9119=function(e,t){e.timestampWrites=t},e.wbg.__wbg_settopology_35540552af8ad12e=function(e,t){e.topology=N[t]},e.wbg.__wbg_settype_51c2819925b5e0a6=function(e,t){e.type=P[t]},e.wbg.__wbg_settype_a275611edc111d26=function(e,t){e.type=T[t]},e.wbg.__wbg_setunclippeddepth_43cbbb9961b4b705=function(e,t){e.unclippedDepth=t!==0},e.wbg.__wbg_setusage_7836ddf40e55971a=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setusage_7e9a6c2f119cab96=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setusage_97670aee3d9bbf16=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setvertex_602fd330026bc0be=function(e,t){e.vertex=t},e.wbg.__wbg_setview_2eb28c0fa8228e7c=function(e,t){e.view=t},e.wbg.__wbg_setview_451a1441471a69db=function(e,t){e.view=t},e.wbg.__wbg_setviewdimension_d632693fb1d12b24=function(e,t){e.viewDimension=H[t]},e.wbg.__wbg_setviewdimension_dc868215e54cbbba=function(e,t){e.viewDimension=H[t]},e.wbg.__wbg_setviewformats_6c89940ba38f64ff=function(e,t){e.viewFormats=t},e.wbg.__wbg_setvisibility_1f6371439759b513=function(e,t){e.visibility=t>>>0},e.wbg.__wbg_setwidth_6cc268cef8245a36=function(e,t){e.width=t>>>0},e.wbg.__wbg_setwritemask_4ea635b0719187be=function(e,t){e.writeMask=t>>>0},e.wbg.__wbg_size_84ca9c23c7989256=function(e){return e.size},e.wbg.__wbg_submit_3bf51baf36de553b=function(e,t){e.submit(t)},e.wbg.__wbg_unconfigure_64b5f267287f6b71=function(e){e.unconfigure()},e.wbg.__wbg_usage_d2a45c8d889f9c63=function(e){return e.usage},e.wbg.__wbg_width_684e9aa31cbda8b8=function(e){return e.width},e.wbg.__wbg_writeBuffer_b5be14e621130604=function(){return r(function(e,t,n,r){e.writeBuffer(t,n,r)},arguments)},e.wbg.__wbg_writeTexture_ff0b4f87c3efd0dc=function(){return r(function(e,t,n,r,i,a){e.writeTexture(t,c(n,r),i,a)},arguments)},e.wbg.__wbindgen_debug_string=function(e,n){let r=p(l(n),t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=u;h().setInt32(e+4,i,!0),h().setInt32(e+0,r,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=t.__wbindgen_export_2,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},e.wbg.__wbindgen_memory=function(){return t.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,n){let r=n,i=typeof r==`string`?r:void 0;var a=g(i)?0:p(i,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),o=u;h().setInt32(e+4,o,!0),h().setInt32(e+0,a,!0)},e.wbg.__wbindgen_string_new=function(e,t){return s(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(s(e,t))},e}function Y(e,n){return t=e.exports,X.__wbindgen_wasm_module=n,m=null,v=null,a=null,t.__wbindgen_start(),t}async function X(e){if(t!==void 0)return t;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let n=J();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:i}=await q(await e,n);return Y(r,i)}const Z=e.n(X,`https://cdn.jsdelivr.net/npm/${e.d}@${e.f}/dist/webgpu/dotlottie-player.wasm`,`https://unpkg.com/${e.d}@${e.f}/dist/webgpu/dotlottie-player.wasm`);var Q=class extends e.t{constructor(t){super(t),e.p(this,`_gpuDevice`,null),e.p(this,`_gpuContext`,null),e.p(this,`_deviceOwned`,!1),e.p(this,`_userDevice`,void 0),this._userDevice=t.device}async _initWasm(){if(await Z.load(),this._userDevice)this._gpuDevice=this._userDevice,this._deviceOwned=!1;else{if(!navigator.gpu)throw Error(`WebGPU is not supported in this browser.`);let e=await navigator.gpu.requestAdapter();if(!e)throw Error(`Failed to get WebGPU adapter.`);let t=await e.requestDevice();t.lost.then(e=>{console.error(`[dotlottie-web] WebGPU device lost: ${e.reason} — ${e.message}`)}),this._gpuDevice=t,this._deviceOwned=!0}}_createCore(){return new K}_onCoreCreated(){!this._canvas||!this._dotLottieCore||!this._gpuDevice||this._setupGpuContext()}_setupGpuContext(){if(!this._canvas||!this._dotLottieCore||!this._gpuDevice)return;let t=this._canvas;if(e.u){let n=this._renderConfig.devicePixelRatio||e.r(),{width:r,height:i}=t.getBoundingClientRect();r!==0&&i!==0&&(t.width=Math.round(r*n),t.height=Math.round(i*n))}let n=t.getContext(`webgpu`);if(!n)throw Error(`Failed to get WebGPU canvas context.`);let r=navigator.gpu.getPreferredCanvasFormat();n.configure({device:this._gpuDevice,format:r,alphaMode:`premultiplied`}),this._gpuContext=n;let i=this._dotLottieCore;i.set_webgpu_device(this._gpuDevice),i.set_webgpu_surface(n)}resize(){if(this._gpuContext&&this._gpuDevice&&this._canvas){let t=this._canvas,n=this._renderConfig.devicePixelRatio||e.r(),{width:r,height:i}=t.getBoundingClientRect();r!==0&&i!==0&&(t.width=Math.round(r*n),t.height=Math.round(i*n)),this._gpuContext.configure({device:this._gpuDevice,format:navigator.gpu.getPreferredCanvasFormat(),alphaMode:`premultiplied`}),this._dotLottieCore&&this.isLoaded&&this._dotLottieCore.resize(t.width,t.height)&&this._dotLottieCore.render();return}super.resize()}_draw(){}_setupRendererOnCanvas(){this._context=null,this._gpuContext&&(this._gpuContext.unconfigure(),this._gpuContext=null),!(!this._canvas||!this._dotLottieCore||!this._gpuDevice)&&this._setupGpuContext()}destroy(){this._gpuContext&&(this._gpuContext.unconfigure(),this._gpuContext=null),super.destroy(),this._deviceOwned&&this._gpuDevice&&this._gpuDevice.destroy(),this._gpuDevice=null}get device(){return this._gpuDevice}static setWasmUrl(e){Z.setWasmUrl(e)}};exports.DotLottie=Q;
2
2
  //# sourceMappingURL=index.cjs.map