PageSourceSearch

https://www.flughafen-zuerich.ch/_next/static/chunks/177.2f843c323cae875c.js

js flughafen-zuerich.ch collected 2026-09-24 09:05:46 UTC 58,592 bytes, 5 lines download raw bytes

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

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