@pfct/purple 1.16.2 → 1.17.0

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.
Files changed (166) hide show
  1. package/dist/chunks/Accordion.DYya7dTN.js +1 -0
  2. package/dist/chunks/Accordion.DgWTtf1u.js +716 -0
  3. package/dist/chunks/Divider.CptJ_x2Y.js +1 -0
  4. package/dist/chunks/{Divider.DBtnaPqJ.js → Divider.DR-c4z_i.js} +16 -13
  5. package/dist/chunks/DotLottie.BQNTv0XO.js +5 -0
  6. package/dist/chunks/DotLottie.qOfU0HjI.js +1993 -0
  7. package/dist/chunks/Switch.D7T_jbtK.js +207 -0
  8. package/dist/chunks/Switch.DUWZASi8.js +1 -0
  9. package/dist/chunks/Toast.Bnm65xmy.js +1 -0
  10. package/dist/chunks/Toast.C7OnkFjA.js +698 -0
  11. package/dist/chunks/{bottomSheet.BGKwHjuP.js → bottomSheet.DCURoJ3z.js} +1 -1
  12. package/dist/chunks/{bottomSheet.C99fAuQK.js → bottomSheet.DqOEMG09.js} +1 -1
  13. package/dist/chunks/checkbox.DjQsU_Pk.js +1 -0
  14. package/dist/chunks/{checkbox.DNdnhspb.js → checkbox.Dl8nNqLc.js} +100 -92
  15. package/dist/chunks/dist.AclwPuO5.js +1 -0
  16. package/dist/chunks/{dist.BskID78S.js → dist.B0edyUiC.js} +176 -178
  17. package/dist/chunks/dist.B4GZ3aX4.js +111 -0
  18. package/dist/chunks/dist.BE2xxxwt.js +96 -0
  19. package/dist/chunks/dist.Ba6P-3sU.js +1 -0
  20. package/dist/chunks/dist.BaV_5zx8.js +186 -0
  21. package/dist/chunks/{dist.CDZCWPu4.js → dist.BnLwXMBJ.js} +8 -4
  22. package/dist/chunks/dist.BpQ7SpeW.js +227 -0
  23. package/dist/chunks/dist.Bui5aGSB.js +197 -0
  24. package/dist/chunks/dist.CBOTGT1c.js +1 -0
  25. package/dist/chunks/dist.CIvT5XE_.js +1 -0
  26. package/dist/chunks/dist.CKG-hzoQ.js +1 -0
  27. package/dist/chunks/{dist.QtpYoD01.js → dist.CVClT59R.js} +8 -3
  28. package/dist/chunks/dist.CcSbgqVt.js +1 -0
  29. package/dist/chunks/dist.Cf8FjzvS.js +1 -0
  30. package/dist/chunks/{dist.DIjdcvlQ.js → dist.Cx1JFVV3.js} +48 -59
  31. package/dist/chunks/dist.D7s7BenH.js +1 -0
  32. package/dist/chunks/dist.DQ5uOc4y.js +1 -0
  33. package/dist/chunks/dist.DWzqVshx.js +16 -0
  34. package/dist/chunks/dist.DfLaHIBc.js +1 -0
  35. package/dist/chunks/dist.DomaJxrX.js +1 -0
  36. package/dist/chunks/dist.e7n2cf43.js +144 -0
  37. package/dist/chunks/dist.gUJz6qTg.js +185 -0
  38. package/dist/chunks/dist.zJ3rbM0i.js +1 -0
  39. package/dist/chunks/drawer.Cots0_ea.js +7 -0
  40. package/dist/chunks/drawer.ftfBm36h.js +1836 -0
  41. package/dist/chunks/es2015.CfvYaoE5.js +41 -0
  42. package/dist/chunks/{es2015.ByVyszJo.js → es2015.DCKfm2VN.js} +168 -187
  43. package/dist/chunks/{src.D-VoFbup.js → src.BAhu5d2_.js} +1 -1
  44. package/dist/chunks/{src.CmgILXZE.js → src.DlM6Ki-I.js} +5 -5
  45. package/dist/chunks/tooltip.8vKL7w2a.js +1 -0
  46. package/dist/chunks/tooltip.D9PoXwtV.js +448 -0
  47. package/dist/components/Accordion/index.cjs.js +1 -1
  48. package/dist/components/Accordion/index.esm.js +1 -1
  49. package/dist/components/Control/Switch/index.cjs.js +1 -1
  50. package/dist/components/Control/Switch/index.esm.js +1 -1
  51. package/dist/components/Control/index.cjs.js +1 -1
  52. package/dist/components/Control/index.esm.js +2 -2
  53. package/dist/components/Divider/index.cjs.js +1 -1
  54. package/dist/components/Divider/index.esm.js +1 -1
  55. package/dist/components/LegacyModal/index.cjs.js +1 -1
  56. package/dist/components/LegacyModal/index.esm.js +1 -1
  57. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  58. package/dist/components/MiniButton/IconMiniButton/index.esm.js +1 -1
  59. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  60. package/dist/components/MiniButton/UnderLineMiniButton/index.esm.js +1 -1
  61. package/dist/components/Modal/index.cjs.js +1 -1
  62. package/dist/components/Modal/index.esm.js +1 -1
  63. package/dist/components/Pagination/index.cjs.js +1 -1
  64. package/dist/components/Pagination/index.esm.js +1 -1
  65. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  66. package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
  67. package/dist/components/Tabs/index.cjs.js +1 -1
  68. package/dist/components/Tabs/index.esm.js +1 -1
  69. package/dist/components/Tag/index.cjs.js +1 -1
  70. package/dist/components/Tag/index.esm.js +1 -1
  71. package/dist/components/Terms/index.cjs.js +1 -1
  72. package/dist/components/Terms/index.esm.js +3 -3
  73. package/dist/components/Toast/index.cjs.js +1 -1
  74. package/dist/components/Toast/index.esm.js +1 -1
  75. package/dist/components/index.cjs.js +1 -1
  76. package/dist/components/index.esm.js +8 -8
  77. package/dist/components/ui/bottomSheet.cjs.js +1 -1
  78. package/dist/components/ui/bottomSheet.esm.js +1 -1
  79. package/dist/components/ui/button.cjs.js +1 -1
  80. package/dist/components/ui/button.esm.js +1 -1
  81. package/dist/components/ui/checkbox.cjs.js +1 -1
  82. package/dist/components/ui/checkbox.esm.js +1 -1
  83. package/dist/components/ui/dialog.cjs.js +1 -1
  84. package/dist/components/ui/dialog.esm.js +1 -1
  85. package/dist/components/ui/drawer.cjs.js +1 -1
  86. package/dist/components/ui/drawer.esm.js +1 -1
  87. package/dist/components/ui/impact-tooltip.cjs.js +1 -1
  88. package/dist/components/ui/impact-tooltip.esm.js +1 -1
  89. package/dist/components/ui/select.cjs.js +1 -1
  90. package/dist/components/ui/select.esm.js +3 -3
  91. package/dist/components/ui/tooltip.cjs.js +1 -1
  92. package/dist/components/ui/tooltip.esm.js +1 -1
  93. package/dist/components/ui/typography.cjs.js +1 -1
  94. package/dist/components/ui/typography.esm.js +1 -1
  95. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  96. package/dist/icons/src/aliases/aliases.d.ts +1 -1
  97. package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
  98. package/dist/icons/src/aliases/aliases.esm.js +3 -3
  99. package/dist/icons/src/aliases/index.cjs.js +1 -1
  100. package/dist/icons/src/aliases/index.esm.js +3 -3
  101. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  102. package/dist/icons/src/aliases/prefixed.d.ts +9 -9
  103. package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
  104. package/dist/icons/src/aliases/prefixed.esm.js +3 -3
  105. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  106. package/dist/icons/src/aliases/suffixed.d.ts +10 -10
  107. package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
  108. package/dist/icons/src/aliases/suffixed.esm.js +3 -3
  109. package/dist/icons/src/icons/index.cjs.js +1 -1
  110. package/dist/icons/src/icons/index.esm.js +3 -3
  111. package/dist/index.cjs.js +1 -1
  112. package/dist/index.esm.js +12 -12
  113. package/dist/library/DotLottie/index.cjs.js +1 -1
  114. package/dist/library/DotLottie/index.d.ts +13 -0
  115. package/dist/library/DotLottie/index.d.ts.map +1 -1
  116. package/dist/library/DotLottie/index.esm.js +1 -1
  117. package/dist/library/Lottie/index.cjs.js +1 -1
  118. package/dist/library/Lottie/index.d.ts +13 -0
  119. package/dist/library/Lottie/index.d.ts.map +1 -1
  120. package/dist/library/Lottie/index.esm.js +25 -25
  121. package/dist/library/index.cjs.js +1 -1
  122. package/dist/library/index.esm.js +1 -1
  123. package/package.json +4 -4
  124. package/dist/chunks/Accordion.Cs1f4aQZ.js +0 -373
  125. package/dist/chunks/Accordion.ZIp0NsA0.js +0 -1
  126. package/dist/chunks/Divider.BIS4pXEy.js +0 -1
  127. package/dist/chunks/DotLottie.CaDygpsw.js +0 -73962
  128. package/dist/chunks/DotLottie.Cf-SL2bJ.js +0 -5
  129. package/dist/chunks/Switch.C6xwIjJR.js +0 -1
  130. package/dist/chunks/Switch.D_myxCrS.js +0 -200
  131. package/dist/chunks/Toast.Cjdk4za6.js +0 -1
  132. package/dist/chunks/Toast.D1-VfeA2.js +0 -685
  133. package/dist/chunks/checkbox.CfWB_nqn.js +0 -1
  134. package/dist/chunks/dist.B2wZmrK1.js +0 -98
  135. package/dist/chunks/dist.B8tpQk-4.js +0 -1
  136. package/dist/chunks/dist.BC0-iqKU.js +0 -1
  137. package/dist/chunks/dist.BGATFz6w.js +0 -1
  138. package/dist/chunks/dist.BQIeYu70.js +0 -1
  139. package/dist/chunks/dist.BWsA5f1f.js +0 -1
  140. package/dist/chunks/dist.BixLWWwb.js +0 -71
  141. package/dist/chunks/dist.Bxqi8VAi.js +0 -1
  142. package/dist/chunks/dist.C8FJXTu6.js +0 -10
  143. package/dist/chunks/dist.C8NniehT.js +0 -1
  144. package/dist/chunks/dist.C8k7jQIp.js +0 -87
  145. package/dist/chunks/dist.CEJ-WCY_.js +0 -44
  146. package/dist/chunks/dist.CIQdvun-.js +0 -1
  147. package/dist/chunks/dist.Cff8LOoN.js +0 -67
  148. package/dist/chunks/dist.CmRTDXGG.js +0 -1
  149. package/dist/chunks/dist.CwMFqhEQ.js +0 -146
  150. package/dist/chunks/dist.CwWM0zXK.js +0 -25
  151. package/dist/chunks/dist.CyhalHxz.js +0 -1
  152. package/dist/chunks/dist.Czpint58.js +0 -1
  153. package/dist/chunks/dist.D3cPoDZ_.js +0 -194
  154. package/dist/chunks/dist.D4mQo5QB.js +0 -1
  155. package/dist/chunks/dist.D5ataprQ.js +0 -1
  156. package/dist/chunks/dist.D6A3yc_d.js +0 -11
  157. package/dist/chunks/dist.DKOi9kq6.js +0 -1
  158. package/dist/chunks/dist.DhCw5vjE.js +0 -1
  159. package/dist/chunks/dist.DrfVZqiO.js +0 -186
  160. package/dist/chunks/dist.SHmlpKFY.js +0 -1
  161. package/dist/chunks/dist.kg7EEYPp.js +0 -12
  162. package/dist/chunks/drawer.Cji5AtcU.js +0 -1720
  163. package/dist/chunks/drawer.Gt1AjdVH.js +0 -7
  164. package/dist/chunks/es2015.D2emqwtq.js +0 -41
  165. package/dist/chunks/tooltip.DGgNTZ5B.js +0 -444
  166. package/dist/chunks/tooltip.vEwTtt8v.js +0 -1
@@ -1,29 +1,32 @@
1
- import { t as e } from "./dist.CDZCWPu4.js";
1
+ import { t as e } from "./dist.BnLwXMBJ.js";
2
2
  import { t } from "./utils.UNiIm9Bz.js";
3
3
  import * as n from "react";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region node_modules/@radix-ui/react-separator/dist/index.mjs
6
- var i = "Separator", a = "horizontal", o = ["horizontal", "vertical"], s = n.forwardRef((t, n) => {
7
- let { decorative: i, orientation: o = a, ...s } = t, l = c(o) ? o : a, u = i ? { role: "none" } : {
8
- "aria-orientation": l === "vertical" ? l : void 0,
6
+ var i = Object.defineProperty, a = (e, t) => i(e, "name", {
7
+ value: t,
8
+ configurable: !0
9
+ }), o = "horizontal", s = ["horizontal", "vertical"], c = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ a(function(t, n) {
10
+ let { decorative: i, orientation: a = o, ...s } = t, c = l(a) ? a : o, u = i ? { role: "none" } : {
11
+ "aria-orientation": c === "vertical" ? c : void 0,
9
12
  role: "separator"
10
13
  };
11
14
  return /* @__PURE__ */ r(e.div, {
12
- "data-orientation": l,
15
+ "data-orientation": c,
13
16
  ...u,
14
17
  ...s,
15
18
  ref: n
16
19
  });
17
- });
18
- s.displayName = i;
19
- function c(e) {
20
- return o.includes(e);
20
+ }, "Separator"));
21
+ function l(e) {
22
+ return s.includes(e);
21
23
  }
22
- var l = s;
24
+ a(l, "isValidOrientation");
25
+ var u = c;
23
26
  //#endregion
24
27
  //#region src/components/Divider/index.tsx
25
- function u({ className: e, orientation: n = "horizontal", size: i = "s", decorative: a = !0, ...o }) {
26
- return /* @__PURE__ */ r(l, {
28
+ function d({ className: e, orientation: n = "horizontal", size: i = "s", decorative: a = !0, ...o }) {
29
+ return /* @__PURE__ */ r(u, {
27
30
  className: t("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px", i === "s" ? "bg-gray-50 data-[orientation=horizontal]:h-0.25" : "bg-gray-25 data-[orientation=horizontal]:h-3.75", e),
28
31
  "data-slot": "separator",
29
32
  decorative: a,
@@ -32,4 +35,4 @@ function u({ className: e, orientation: n = "horizontal", size: i = "s", decorat
32
35
  });
33
36
  }
34
37
  //#endregion
35
- export { u as t };
38
+ export { d as t };
@@ -0,0 +1,5 @@
1
+ const e=require("./utils.DxA7tdMJ.js"),t=require("../hooks/useLayoutIsMobile.cjs.js");require("../hooks/index.cjs.js");const n=require("./dist.Ba6P-3sU.js"),r=require("../library/IconWithImage/index.cjs.js");let i=require("react"),a=require("react/jsx-runtime");function o(e){"@babel/helpers - typeof";return o=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},o(e)}function s(e,t){if(o(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(o(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function c(e){var t=s(e,`string`);return o(t)==`symbol`?t:t+``}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},d=class{constructor(){l(this,`_lastHandleId`,0),l(this,`_lastImmediate`,null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(performance.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},f=class{constructor(){l(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new u:new d}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}},p=typeof window<`u`&&window.document!==void 0,m=new Uint8Array([80,75,3,4]),h=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],g,_=Array(128).fill(void 0);_.push(void 0,null,!0,!1);function v(e){return _[e]}var y=_.length;function b(e){y===_.length&&_.push(_.length+1);let t=y;return y=_[t],_[t]=e,t}function x(e,t){try{return e.apply(this,t)}catch(e){g.__wbindgen_export_0(b(e))}}var S=0,C=null;function w(){return(C===null||C.byteLength===0)&&(C=new Uint8Array(g.memory.buffer)),C}var T=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},E=typeof T.encodeInto==`function`?function(e,t){return T.encodeInto(e,t)}:function(e,t){let n=T.encode(e);return t.set(n),{read:e.length,written:n.length}};function D(e,t,n){if(n===void 0){let n=T.encode(e),r=t(n.length,1)>>>0;return w().subarray(r,r+n.length).set(n),S=n.length,r}let r=e.length,i=t(r,1)>>>0,a=w(),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=w().subarray(i+o,i+r),a=E(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return S=o,i}var O=null;function k(){return(O===null||O.buffer.detached===!0||O.buffer.detached===void 0&&O.buffer!==g.memory.buffer)&&(O=new DataView(g.memory.buffer)),O}var A=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&A.decode();function j(e,t){return e>>>=0,A.decode(w().subarray(e,e+t))}function M(e){e<132||(_[e]=y,y=e)}function N(e){let t=v(e);return M(e),t}function P(e){return e==null}function F(e,t){let n=t(e.length*1,1)>>>0;return w().set(e,n/1),S=e.length,n}function ee(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S,i=F(t,g.__wbindgen_export_1),a=S;return g.register_font(n,r,i,a)!==0}var I=null;function te(){return(I===null||I.byteLength===0)&&(I=new Float32Array(g.memory.buffer)),I}function ne(e,t){let n=t(e.length*4,4)>>>0;return te().set(e,n/4),S=e.length,n}function re(e,t){let n=t(e.length*4,4)>>>0,r=k();for(let t=0;t<e.length;t++)r.setUint32(n+4*t,b(e[t]),!0);return S=e.length,n}var L=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),R=Object.freeze({Idle:0,0:`Idle`,Playing:1,1:`Playing`,Paused:2,2:`Paused`,Stopped:3,3:`Stopped`,Tweening:4,4:`Tweening`}),z=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>g.__wbg_dotlottieplayerwasm_free(e>>>0,1)),ie=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){let e=this.__destroy_into_raw();g.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}layout_fit(){let e,t;try{let i=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_layout_fit(i,this.__wbg_ptr);var n=k().getInt32(i+0,!0),r=k().getInt32(i+4,!0);return e=n,t=r,j(n,r)}finally{g.__wbindgen_add_to_stack_pointer(16),g.__wbindgen_export_3(e,t,1)}}loop_count(){return g.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return N(g.dotlottieplayerwasm_poll_event(this.__wbg_ptr))}reset_slot(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}set_layout(e,t,n){let r=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),i=S;return g.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}set_marker(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;g.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_slots(){return g.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}is_complete(){return g.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}reset_slots(){return g.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}reset_theme(){return g.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}segment_end(){return g.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(e){return g.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}set_segment(e,t){return g.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}sm_set_seed(e){return g.dotlottieplayerwasm_sm_set_seed(this.__wbg_ptr,e)!==0}static unload_font(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_unload_font(t,n)!==0}animation_id(){try{let n=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_animation_id(n,this.__wbg_ptr);var e=k().getInt32(n+0,!0),t=k().getInt32(n+4,!0);let r;return e!==0&&(r=j(e,t).slice(),g.__wbindgen_export_3(e,t*1,1)),r}finally{g.__wbindgen_add_to_stack_pointer(16)}}audio_volume(){return g.dotlottieplayerwasm_audio_volume(this.__wbg_ptr)}background_a(){return g.dotlottieplayerwasm_background_a(this.__wbg_ptr)}background_b(){return g.dotlottieplayerwasm_background_b(this.__wbg_ptr)}background_g(){return g.dotlottieplayerwasm_background_g(this.__wbg_ptr)}background_r(){return g.dotlottieplayerwasm_background_r(this.__wbg_ptr)}clear_marker(){g.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){g.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return N(g.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr))}get_slot_str(e){try{let r=g.__wbindgen_add_to_stack_pointer(-16),i=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;g.dotlottieplayerwasm_get_slot_str(r,this.__wbg_ptr,i,a);var t=k().getInt32(r+0,!0),n=k().getInt32(r+4,!0);let o;return t!==0&&(o=j(t,n).slice(),g.__wbindgen_export_3(t,n*1,1)),o}finally{g.__wbindgen_add_to_stack_pointer(16)}}marker_names(){return N(g.dotlottieplayerwasm_marker_names(this.__wbg_ptr))}set_autoplay(e){g.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}set_slot_str(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S,i=D(t,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;return g.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}set_viewport(e,t,n,r){return g.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}total_frames(){return g.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}clear_segment(){return g.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}current_frame(){return g.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(e){try{let r=g.__wbindgen_add_to_stack_pointer(-16),i=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;g.dotlottieplayerwasm_get_slot_type(r,this.__wbg_ptr,i,a);var t=k().getInt32(r+0,!0),n=k().getInt32(r+4,!0);let o;return t!==0&&(o=j(t,n).slice(),g.__wbindgen_export_3(t,n*1,1)),o}finally{g.__wbindgen_add_to_stack_pointer(16)}}get_slots_str(){let e,t;try{let i=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_get_slots_str(i,this.__wbg_ptr);var n=k().getInt32(i+0,!0),r=k().getInt32(i+4,!0);return e=n,t=r,j(n,r)}finally{g.__wbindgen_add_to_stack_pointer(16),g.__wbindgen_export_3(e,t,1)}}get_transform(){return N(g.dotlottieplayerwasm_get_transform(this.__wbg_ptr))}segment_start(){return g.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_text_slot(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S,i=D(t,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;return g.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_transform(e){let t=ne(e,g.__wbindgen_export_1),n=S;return g.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}sm_get_inputs(){return N(g.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr))}sm_poll_event(){return N(g.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr))}sm_post_click(e,t){g.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}animation_size(){return N(g.dotlottieplayerwasm_animation_size(this.__wbg_ptr))}current_marker(){try{let n=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_current_marker(n,this.__wbg_ptr);var e=k().getInt32(n+0,!0),t=k().getInt32(n+4,!0);let r;return e!==0&&(r=j(e,t).slice(),g.__wbindgen_export_3(e,t*1,1)),r}finally{g.__wbindgen_add_to_stack_pointer(16)}}layout_align_x(){return g.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return g.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_load_animation(this.__wbg_ptr,t,n)!==0}loop_animation(){return g.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_background(e,t,n,r){return g.dotlottieplayerwasm_set_background(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;return g.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_image_slot(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S,i=D(t,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;return g.dotlottieplayerwasm_set_image_slot(this.__wbg_ptr,n,r,i,a)!==0}set_loop_count(e){g.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}set_theme_data(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}sm_reset_input(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;g.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}manifest_string(){let e,t;try{let i=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_manifest_string(i,this.__wbg_ptr);var n=k().getInt32(i+0,!0),r=k().getInt32(i+4,!0);return e=n,t=r,j(n,r)}finally{g.__wbindgen_add_to_stack_pointer(16),g.__wbindgen_export_3(e,t,1)}}set_scalar_slot(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S;return g.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_vector_slot(e,t,n){let r=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),i=S;return g.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}setup_sw_target(e,t){return g.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr,e,t)!==0}get_pixel_buffer(){return N(g.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr))}set_audio_volume(e){g.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr,e)}sm_current_state(){let e,t;try{let i=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_sm_current_state(i,this.__wbg_ptr);var n=k().getInt32(i+0,!0),r=k().getInt32(i+4,!0);return e=n,t=r,j(n,r)}finally{g.__wbindgen_add_to_stack_pointer(16),g.__wbindgen_export_3(e,t,1)}}state_machine_id(){try{let n=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_state_machine_id(n,this.__wbg_ptr);var e=k().getInt32(n+0,!0),t=k().getInt32(n+4,!0);let r;return e!==0&&(r=j(e,t).slice(),g.__wbindgen_export_3(e,t*1,1)),r}finally{g.__wbindgen_add_to_stack_pointer(16)}}get_state_machine(e){try{let r=g.__wbindgen_add_to_stack_pointer(-16),i=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;g.dotlottieplayerwasm_get_state_machine(r,this.__wbg_ptr,i,a);var t=k().getInt32(r+0,!0),n=k().getInt32(r+4,!0);let o;return t!==0&&(o=j(t,n).slice(),g.__wbindgen_export_3(t,n*1,1)),o}finally{g.__wbindgen_add_to_stack_pointer(16)}}set_position_slot(e,t,n){let r=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),i=S;return g.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}current_loop_count(){return g.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}set_asset_resolver(e){g.dotlottieplayerwasm_set_asset_resolver(this.__wbg_ptr,P(e)?0:b(e))}sm_framework_setup(){return N(g.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr))}sm_post_pointer_up(e,t){g.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}state_machine_load(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}load_dotlottie_data(e){let t=F(e,g.__wbindgen_export_1),n=S;return g.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,t,n)!==0}sm_get_string_input(e){try{let r=g.__wbindgen_add_to_stack_pointer(-16),i=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;g.dotlottieplayerwasm_sm_get_string_input(r,this.__wbg_ptr,i,a);var t=k().getInt32(r+0,!0),n=k().getInt32(r+4,!0);let o;return t!==0&&(o=j(t,n).slice(),g.__wbindgen_export_3(t,n*1,1)),o}finally{g.__wbindgen_add_to_stack_pointer(16)}}sm_set_string_input(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S,i=D(t,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;return g.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_boolean_input(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S,r=g.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_get_numeric_input(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S,r=g.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_post_pointer_down(e,t){g.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){g.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){g.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_set_boolean_input(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S;return g.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_set_numeric_input(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S;return g.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}state_machine_unload(){g.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(e,t){g.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}load_animation_from_id(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,t,n)!==0}sm_poll_internal_event(){return N(g.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr))}use_frame_interpolation(){return g.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}reset_current_loop_count(){g.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S;return g.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}state_machine_load_from_id(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}set_use_frame_interpolation(e){g.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}constructor(){let e=g.dotlottieplayerwasm_new();return this.__wbg_ptr=e>>>0,z.register(this,this.__wbg_ptr,this),this}mode(){return g.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return g.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}stop(){return g.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}tick(e){return g.dotlottieplayerwasm_tick(this.__wbg_ptr,e)!==0}pause(){return g.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}speed(){return g.dotlottieplayerwasm_speed(this.__wbg_ptr)}width(){return g.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return g.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return g.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}status(){return g.dotlottieplayerwasm_status(this.__wbg_ptr)}markers(){return N(g.dotlottieplayerwasm_markers(this.__wbg_ptr))}sm_fire(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_stop(){return g.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_tick(e){return g.dotlottieplayerwasm_sm_tick(this.__wbg_ptr,e)!==0}autoplay(){return g.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}duration(){return g.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(e){g.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}set_mode(e){g.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}sm_start(e,t){let n=re(t,g.__wbindgen_export_1),r=S;return g.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}theme_id(){try{let n=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_theme_id(n,this.__wbg_ptr);var e=k().getInt32(n+0,!0),t=k().getInt32(n+4,!0);let r;return e!==0&&(r=j(e,t).slice(),g.__wbindgen_export_3(e,t*1,1)),r}finally{g.__wbindgen_add_to_stack_pointer(16)}}load_font(e,t){let n=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),r=S,i=F(t,g.__wbindgen_export_1),a=S;return g.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}set_frame(e){return g.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}set_speed(e){g.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}set_theme(e){let t=D(e,g.__wbindgen_export_1,g.__wbindgen_export_2),n=S;return g.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}sm_status(){let e,t;try{let i=g.__wbindgen_add_to_stack_pointer(-16);g.dotlottieplayerwasm_sm_status(i,this.__wbg_ptr);var n=k().getInt32(i+0,!0),r=k().getInt32(i+4,!0);return e=n,t=r,j(n,r)}finally{g.__wbindgen_add_to_stack_pointer(16),g.__wbindgen_export_3(e,t,1)}}};async function ae(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 oe(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){let t=v(e).buffer;return b(t)},e.wbg.__wbg_call_7cccdd69e0791ae2=function(){return x(function(e,t,n){return b(v(e).call(v(t),v(n)))},arguments)},e.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764=function(){return x(function(e,t){let n=D(URL.createObjectURL(v(t)),g.__wbindgen_export_1,g.__wbindgen_export_2),r=S;k().setInt32(e+4,r,!0),k().setInt32(e+0,n,!0)},arguments)},e.wbg.__wbg_ended_b873fb75d0c13ca7=function(e){return v(e).ended},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let n,r;try{n=e,r=t,console.error(j(e,t))}finally{g.__wbindgen_export_3(n,r,1)}},e.wbg.__wbg_length_a446193dc22c12f8=function(e){return v(e).length},e.wbg.__wbg_new_405e22f390576ce2=function(){return b({})},e.wbg.__wbg_new_78feb108b6472713=function(){return b([])},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return b(Error())},e.wbg.__wbg_new_a12002a7f91c75be=function(e){return b(new Uint8Array(v(e)))},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return b(new Uint8Array(v(e),t>>>0,n>>>0))},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return b(new Float32Array(e>>>0))},e.wbg.__wbg_newwithsrc_20307ca7e8762a81=function(){return x(function(e,t){return b(new Audio(j(e,t)))},arguments)},e.wbg.__wbg_newwithu8arraysequenceandoptions_068570c487f69127=function(){return x(function(e,t){return b(new Blob(v(e),v(t)))},arguments)},e.wbg.__wbg_pause_b74c96d69f769518=function(){return x(function(e){v(e).pause()},arguments)},e.wbg.__wbg_play_f6ec5fc4e84b0d26=function(){return x(function(e){return b(v(e).play())},arguments)},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return v(e).push(v(t))},e.wbg.__wbg_revokeObjectURL_27267efebeb457c7=function(){return x(function(e,t){URL.revokeObjectURL(j(e,t))},arguments)},e.wbg.__wbg_set_65595bdd868b3009=function(e,t,n){v(e).set(v(t),n>>>0)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return x(function(e,t,n){return Reflect.set(v(e),v(t),v(n))},arguments)},e.wbg.__wbg_setcurrentTime_64727eddd3966512=function(e,t){v(e).currentTime=t},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){v(e)[t>>>0]=n},e.wbg.__wbg_settype_39ed370d3edd403c=function(e,t,n){v(e).type=j(t,n)},e.wbg.__wbg_setvolume_3895e06a030ca4f7=function(e,t){v(e).volume=t},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){let n=v(t).stack,r=D(n,g.__wbindgen_export_1,g.__wbindgen_export_2),i=S;k().setInt32(e+4,i,!0),k().setInt32(e+0,r,!0)},e.wbg.__wbindgen_is_null=function(e){return v(e)===null},e.wbg.__wbindgen_is_undefined=function(e){return v(e)===void 0},e.wbg.__wbindgen_memory=function(){let e=g.memory;return b(e)},e.wbg.__wbindgen_number_new=function(e){return b(e)},e.wbg.__wbindgen_object_drop_ref=function(e){N(e)},e.wbg.__wbindgen_string_get=function(e,t){let n=v(t),r=typeof n==`string`?n:void 0;var i=P(r)?0:D(r,g.__wbindgen_export_1,g.__wbindgen_export_2),a=S;k().setInt32(e+4,a,!0),k().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return b(j(e,t))},e.wbg.__wbindgen_throw=function(e,t){throw Error(j(e,t))},e}function se(e,t){return g=e.exports,B.__wbindgen_wasm_module=t,O=null,I=null,C=null,g}async function B(e){if(g!==void 0)return g;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=oe();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await ae(await e,t);return se(n,r)}var ce=class{constructor(){l(this,`_eventListeners`,new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},V=class e{static _initializeObserver(){e._observer||=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0})}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),e._observedCanvases.size===0&&(e._observer?.disconnect(),e._observer=null)}};l(V,`_observer`,null),l(V,`_observedCanvases`,new Map);var H=class e{static _initializeObserver(){e._observer||=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let a=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,a])})})}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};l(H,`_observer`,null),l(H,`_observedCanvases`,new Map);function le(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function U(e){if(!le(e))return[0,0,0,0];let t=e.replace(`#`,``);return t=t.length===6?`${t}ff`:t,[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255,parseInt(t.slice(6,8),16)/255]}function W(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e.slice(0,m.byteLength));for(let e=0;e<m.length;e+=1)if(m[e]!==t[e])return!1;return!0}function ue(e){return h.every(t=>Object.hasOwn(e,t))}function G(e){return typeof e==`string`?/^\s*\{/u.test(e)&&/\}\s*$/u.test(e):ue(e)}function K(){return 1+((p?window.devicePixelRatio:1)-1)*.75}function q(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function J(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let r=t.width/n.width,i=t.height/n.height,a=(e.clientX-n.left)*r,o=(e.clientY-n.top)*i;return!Number.isFinite(a)||!Number.isFinite(o)||Number.isNaN(a)||Number.isNaN(o)?null:{x:a,y:o}}return null}function de(e){return new Promise((t,n)=>{let r=new FileReader;r.onerror=()=>n(r.error??Error(`Failed to read image slot source`)),r.onload=()=>t(r.result),r.readAsDataURL(e)})}async function fe(e){if(!/^https?:\/\//i.test(e))return e;let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch image slot source from URL: ${e}. ${t.status}: ${t.statusText}`);return de(await t.blob())}function pe(e){let t=e.replace(`OpenUrl: `,``),n=t.indexOf(` | Target: `),r,i;n===-1?(r=t,i=`_blank`):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}function me(e,t,n){let r=null,i=t;async function a(t){await e({module_or_path:t})}async function o(t){let n=await fetch(t);if(!n.ok)throw Error(`fetch ${t} responded with ${n.status} ${n.statusText}`);await e({module_or_path:await n.arrayBuffer()})}return{load(){if(!r){let e=i,t=n;r=(async()=>{let n,i;try{await a(e);return}catch(r){n=r,console.warn(`Primary WASM load failed from ${e}: ${r.message}`),console.warn(`Attempting to load WASM from backup URL: ${t}`)}try{await a(t);return}catch(e){i=e,console.warn(`Backup WASM load failed from ${t}: ${e.message}`)}console.warn(`Retrying WASM load with buffered instantiation`);try{await o(e);return}catch(t){console.warn(`Buffered WASM load from ${e} failed: ${t.message}`)}try{await o(t);return}catch(e){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${i.message}`),console.error(`Buffered fallback failed: ${e.message}`),r=null,Error(`WASM loading failed from all sources.`)}})()}return r},setWasmUrl(e){e!==i&&(i=e,r=null)}}}var Y=null;function X(){return Y??=me(B,`https://cdn.jsdelivr.net/npm/@lottiefiles/dotlottie-web@0.79.1/dist/dotlottie-player.wasm`,`https://unpkg.com/@lottiefiles/dotlottie-web@0.79.1/dist/dotlottie-player.wasm`),Y}var Z=e=>{switch(e){case`reverse`:return L.Reverse;case`bounce`:return L.Bounce;case`reverse-bounce`:return L.ReverseBounce;default:return L.Forward}},Q=e=>{switch(e){case L.Reverse:return`reverse`;case L.Bounce:return`bounce`;case L.ReverseBounce:return`reverse-bounce`;default:return`forward`}},he=e=>{switch(e){case`contain`: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`;default:return`contain`}},ge=class{constructor(e){l(this,`_canvas`,null),l(this,`_pendingLoad`,null),l(this,`_srcFetchAbort`,null),l(this,`_context`,null),l(this,`_eventManager`,void 0),l(this,`_animationFrameId`,null),l(this,`_frameManager`,void 0),l(this,`_boundAnimationLoop`,void 0),l(this,`_dotLottieCore`,null),l(this,`_stateMachineId`,``),l(this,`_stateMachineConfig`,null),l(this,`_isStateMachineRunning`,!1),l(this,`_renderConfig`,{}),l(this,`_isFrozen`,!1),l(this,`_backgroundColor`,null),l(this,`_lastFrameTime`,null),l(this,`_boundOnClick`,null),l(this,`_boundOnPointerUp`,null),l(this,`_boundOnPointerDown`,null),l(this,`_boundOnPointerMove`,null),l(this,`_boundOnPointerEnter`,null),l(this,`_boundOnPointerLeave`,null),l(this,`_bufferMismatchCount`,0),l(this,`_lastExpectedBufferSize`,0),l(this,`_cachedImageData`,null),l(this,`_cachedImageDataBuffer`,null),l(this,`_cachedImageDataByteOffset`,0),l(this,`_marker`,``),l(this,`_segment`,null),this._canvas=e.canvas??null,this._eventManager=new ce,this._frameManager=new f,this._boundAnimationLoop=this._animationLoop.bind(this),this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||K(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0};let t=null;e.src&&!e.data&&(this._srcFetchAbort=new AbortController,t=this._fetchData(e.src,this._srcFetchAbort.signal),t.catch(()=>{})),this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(Z(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2&&(this._segment=[e.segment[0],e.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])),this._marker=e.marker??``,this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._applyAssetResolver(e.assetResolver??null),this._stateMachineId=e.stateMachineId??``,this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:`ready`}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src,t):this._pendingLoad={src:e.src,dataPromise:t}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{this._srcFetchAbort?.abort(),console.error(`[dotlottie-web] Initialization failed:`,e),this._eventManager.dispatch({type:`loadError`,error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return X().load()}_createCore(){return new ie}_onCoreCreated(){}_setupTarget(e,t){return this._dotLottieCore?this._dotLottieCore.setup_sw_target(e,t):!1}_drainPlayerEvents({skipFrame:e=!1}={}){if(this._dotLottieCore)for(;;){let t=this._dotLottieCore.poll_event();if(t==null)break;switch(t.type){case`Load`:setTimeout(()=>this._eventManager.dispatch({type:`load`}),0);break;case`LoadError`:setTimeout(()=>this._eventManager.dispatch({type:`loadError`,error:Error(`failed to load`)}),0);break;case`Play`:queueMicrotask(()=>this._eventManager.dispatch({type:`play`}));break;case`Pause`:queueMicrotask(()=>this._eventManager.dispatch({type:`pause`}));break;case`Stop`:queueMicrotask(()=>this._eventManager.dispatch({type:`stop`}));break;case`Frame`:{let n=t.frameNo??0;e||queueMicrotask(()=>this._eventManager.dispatch({type:`frame`,currentFrame:n}));break}case`Render`:{let n=t.frameNo??0;e||queueMicrotask(()=>this._eventManager.dispatch({type:`render`,currentFrame:n}));break}case`Loop`:{let e=t.loopCount??0;queueMicrotask(()=>this._eventManager.dispatch({type:`loop`,loopCount:e}));break}case`Complete`:queueMicrotask(()=>this._eventManager.dispatch({type:`complete`}));break;default:break}}}_discardPlayerEvents(){for(;this._dotLottieCore?.poll_event()!=null;);}_drainSmEvents(){if(this._dotLottieCore){for(;;){let e=this._dotLottieCore.sm_poll_event();if(e==null)break;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()!==R.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`,state:e.state??``});break;case`StateExit`:this._eventManager.dispatch({type:`stateMachineStateExit`,state:e.state??``});break;case`Error`:this._eventManager.dispatch({type:`stateMachineError`,error:e.message??``});break;default:break}}for(;;){let e=this._dotLottieCore.sm_poll_internal_event();if(e==null)break;if(e.type===`Message`){let t=e.message??``;p&&t.startsWith(`OpenUrl: `)?pe(t):this._eventManager.dispatch({type:`stateMachineInternalMessage`,message:t})}}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:`loadError`,error:Error(e)})}async _fetchData(e,t=null){let n=await fetch(e,{signal:t});if(!n.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${n.status}: ${n.statusText}`);let r=await n.arrayBuffer();return W(r)?r:new TextDecoder().decode(r)}_loadFromData(e){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn(`[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.`);return}this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height);let t=!1;if(typeof e==`string`){if(t=this._dotLottieCore.load_animation(e),!t&&!G(e)){this._discardPlayerEvents(),this._dispatchError(`Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.`);return}}else if(e instanceof ArrayBuffer){if(!W(e)){this._dispatchError(`Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.`);return}t=this._dotLottieCore.load_dotlottie_data(new Uint8Array(e))}else if(typeof e==`object`){if(!G(e)){this._dispatchError(`Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.`);return}t=this._dotLottieCore.load_animation(JSON.stringify(e))}else{this._dispatchError(`Unsupported data type for animation data. Expected:
2
+ - string (Lottie JSON),
3
+ - ArrayBuffer (dotLottie),
4
+ - object (Lottie JSON).
5
+ Received: ${typeof e}`);return}if(t){if(this._renderConfig.quality!==void 0&&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 e=Q(this._dotLottieCore.mode()),t=e===`reverse`||e===`reverse-bounce`?this._segment[1]:this._segment[0];this._dotLottieCore.set_frame(t)}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()===R.Playing&&this._startAnimationLoop(),p&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(V.observe(this._canvas,this),q(this._canvas)||this.freeze()),this._renderConfig.autoResize&&H.observe(this._canvas,this))}else this._drainPlayerEvents()}_loadFromSrc(e,t){(t??this._fetchData(e)).then(e=>this._loadFromData(e)).catch(t=>this._dispatchError(`Failed to load animation data from URL: ${e}. ${t}`))}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:he(this._dotLottieCore.layout_fit())}}get marker(){return this._dotLottieCore?.current_marker()??``}get manifest(){try{let e=this._dotLottieCore?.manifest_string();if(this._dotLottieCore===null||!e)return null;let t=JSON.parse(e);return Object.keys(t).length===0?null:t}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?Q(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 this._dotLottieCore!==null}get isLoaded(){return(this._dotLottieCore?.status()??R.Idle)!==R.Idle}get isPlaying(){return this._dotLottieCore?.status()===R.Playing}get isPaused(){return this._dotLottieCore?.status()===R.Paused}get isStopped(){return this._dotLottieCore?.status()===R.Stopped}get currentFrame(){return this._dotLottieCore?Math.round(this._dotLottieCore.current_frame()*100)/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}get canvas(){return this._canvas}load(e){this._dotLottieCore!==null&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(Z(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2?(this._segment=[e.segment[0],e.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])):(this._segment=null,this._dotLottieCore.clear_segment()),this._marker=e.marker??``,this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._applyAssetResolver(e.assetResolver??null),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor))}_draw(){if(this._dotLottieCore===null||this._canvas===null||(!this._context&&`getContext`in this._canvas&&typeof this._canvas.getContext==`function`&&(!p||typeof HTMLCanvasElement<`u`&&this._canvas instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext(`2d`)),!this._context))return;let e=this._dotLottieCore.get_pixel_buffer(),t=this._canvas.width,n=this._canvas.height,r=t*n*4;if(e.byteLength!==r){this._lastExpectedBufferSize===r?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=r),this._bufferMismatchCount===10&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${r} bytes for canvas ${t}x${n}, but got ${e.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`);return}this._bufferMismatchCount=0,this._lastExpectedBufferSize=r;let i=this._cachedImageData;if(!(i!==null&&i.width===t&&i.height===n&&i.data.byteLength===r&&this._cachedImageDataBuffer===e.buffer&&this._cachedImageDataByteOffset===e.byteOffset)){if(typeof ImageData>`u`)this._cachedImageData=this._context.createImageData(t,n);else{let r=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);this._cachedImageData=new ImageData(r,t,n)}this._cachedImageDataBuffer=e.buffer,this._cachedImageDataByteOffset=e.byteOffset}if(typeof ImageData>`u`){let t=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);this._cachedImageData.data.set(t)}this._context.putImageData(this._cachedImageData,0,0)}_cleanupCanvas(){this._canvas&&p&&this._canvas instanceof HTMLCanvasElement&&(V.unobserve(this._canvas),H.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&p&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(V.observe(this._canvas,this),q(this._canvas)||this.freeze()),this._renderConfig.autoResize&&H.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(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),this._lastFrameTime=null}_startAnimationLoop(){this._animationFrameId===null&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.status()===R.Playing||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop))}_animationLoop(e){if(this._dotLottieCore===null){this._stopAnimationLoop();return}if(this._dotLottieCore.status()!==R.Playing&&!this._isStateMachineRunning){this._stopAnimationLoop();return}try{let t=this._lastFrameTime===null?0:e-this._lastFrameTime;this._lastFrameTime=e;let n=this._isStateMachineRunning?this._dotLottieCore.sm_tick(t):this._dotLottieCore.tick(t);this._isStateMachineRunning?this._drainSmEvents():this._drainPlayerEvents(),n&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop)}catch(e){console.error(`Error in animation frame:`,e),this._eventManager.dispatch({type:`renderError`,error:e}),e instanceof WebAssembly.RuntimeError&&this.destroy()}}play(){if(this._dotLottieCore===null||!this.isLoaded)return;this._stopAnimationLoop();let e=this._dotLottieCore.play();this._drainPlayerEvents(),(e||this._dotLottieCore.status()===R.Playing)&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&p&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!q(this._canvas)&&this.freeze()}pause(){this._dotLottieCore!==null&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(this._dotLottieCore===null)return;let e=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),e&&(this._eventManager.dispatch({type:`frame`,currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(e){if(this._dotLottieCore!==null&&this._dotLottieCore.set_frame(e)){let e=this._dotLottieCore.render();this._drainPlayerEvents(),e&&this._draw()}}setSpeed(e){this._dotLottieCore!==null&&this._dotLottieCore.set_speed(e)}setBackgroundColor(e){if(this._dotLottieCore!==null){if(p&&this._canvas instanceof HTMLCanvasElement)this._canvas.style.backgroundColor=e;else{let[t,n,r,i]=U(e);this._dotLottieCore.set_background(t,n,r,i)}this._backgroundColor=e}}setLoop(e){this._dotLottieCore!==null&&this._dotLottieCore.set_loop(e)}setLoopCount(e){this._dotLottieCore!==null&&this._dotLottieCore.set_loop_count(e)}setUseFrameInterpolation(e){this._dotLottieCore!==null&&this._dotLottieCore.set_use_frame_interpolation(e)}_applyAssetResolver(e){if(this._dotLottieCore!==null){if(e===null){this._dotLottieCore.set_asset_resolver(null);return}this._dotLottieCore.set_asset_resolver(t=>{try{return e(t)??null}catch(e){return console.error(`[dotlottie-web] assetResolver threw for "${t}":`,e),null}})}}addEventListener(e,t){this._eventManager.addEventListener(e,t)}removeEventListener(e,t){this._eventManager.removeEventListener(e,t)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas(),this._srcFetchAbort?.abort(),this._srcFetchAbort=null,this._pendingLoad=null;let e=this._dotLottieCore;if(this._dotLottieCore=null,this._context=null,e)try{e.free()}catch(e){console.warn(`[dotlottie-web] Error freeing wasm core during destroy:`,e)}this._eventManager.dispatch({type:`destroy`}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:`freeze`}))}unfreeze(){this._animationFrameId===null&&(this._isFrozen=!1,this._eventManager.dispatch({type:`unfreeze`}),this._startAnimationLoop())}_syncCanvasSize(){if(!(p&&this._canvas instanceof HTMLCanvasElement))return;let e=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:t,width:n}=this._canvas.getBoundingClientRect();t!==0&&n!==0&&(this._canvas.width=n*e,this._canvas.height=t*e)}resize(){!this._dotLottieCore||!this.isLoaded||!this._canvas||(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw()))}setCanvas(e){if(!(!e||this._canvas===e)&&(this._canvas&&this._cleanupCanvas(),this._canvas=e,this._initializeCanvas(),this._pendingLoad)){let e=this._pendingLoad;this._pendingLoad=null,e.data?this._loadFromData(e.data):e.src&&this._loadFromSrc(e.src,e.dataPromise)}}setTransform(e){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.set_transform(new Float32Array(e));return t&&this._dotLottieCore.render()&&this._draw(),t}getTransform(){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_transform();return Array.from(e)}setSegment(e,t){this._dotLottieCore!==null&&(this._segment=[e,t],this._dotLottieCore.set_segment(e,t))}resetSegment(){this._dotLottieCore!==null&&(this._segment=null,this._dotLottieCore.clear_segment())}setMode(e){this._dotLottieCore!==null&&this._dotLottieCore.set_mode(Z(e))}setRenderConfig(e){let{devicePixelRatio:t,freezeOnOffscreen:n,quality:r,...i}=e;this._renderConfig={...this._renderConfig,...i,devicePixelRatio:t||K(),freezeOnOffscreen:n??!0,...r!==void 0&&{quality:r}},r!==void 0&&this._dotLottieCore&&this._dotLottieCore.set_quality(r),p&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?H.observe(this._canvas,this):H.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(V.observe(this._canvas,this),q(this._canvas)||this.freeze()):(V.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(e){this._dotLottieCore===null||this._dotLottieCore.animation_id()===e||!this._canvas||(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height),this._dotLottieCore.load_animation_from_id(e)?(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${e}`))}setMarker(e){this._dotLottieCore!==null&&(this.markers().some(t=>t.name===e)?(this._marker=e,this._dotLottieCore.set_marker(e)):(this._marker=``,this._segment=null,this._dotLottieCore.clear_marker(),this._dotLottieCore.clear_segment()))}markers(){let e=this._dotLottieCore?.markers();return e&&Array.isArray(e)?e:[]}setTheme(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.set_theme(e);return t&&(this._dotLottieCore.render(),this._draw()),t}resetTheme(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_theme();return e&&(this._dotLottieCore.render(),this._draw()),e}setThemeData(e){if(this._dotLottieCore===null)return!1;let t=typeof e==`string`?e:JSON.stringify(e),n=this._dotLottieCore.set_theme_data(t);return n&&(this._dotLottieCore.render(),this._draw()),n}setSlots(e){this._dotLottieCore!==null&&this._dotLottieCore.set_slots_str(JSON.stringify(e))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(e){return Array.isArray(e)&&e.length>0&&typeof e[0]==`object`&&e[0]!==null&&`t`in e[0]&&`s`in e[0]}getSlotIds(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.get_slot_ids();return Array.isArray(e)?e:[]}getSlotType(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_type(e);if(t)return t}getSlot(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_str(e);if(t)try{return JSON.parse(t)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:+!!n,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setScalarSlot(e,t){if(this._dotLottieCore===null)return!1;let n=JSON.stringify({a:typeof t==`number`?0:1,k:t}),r=this._dotLottieCore.set_slot_str(e,n);return this._dotLottieCore.render(),this._draw(),r}setVectorSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:+!!n,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setGradientSlot(e,t,n){if(this._dotLottieCore===null)return!1;let r=this._isKeyframeArray(t),i=JSON.stringify({k:{a:+!!r,k:t},p:n}),a=this._dotLottieCore.set_slot_str(e,i);return this._dotLottieCore.render(),this._draw(),a}setTextSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._dotLottieCore.get_slot_str(e),r=t;if(n){let e=JSON.parse(n);if(e&&`k`in e&&Array.isArray(e.k)){let n=e.k[0];`s`in n&&typeof n.s==`object`&&(r={...n.s,...t})}}let i=JSON.stringify({a:0,k:[{t:0,s:r}]}),a=this._dotLottieCore.set_slot_str(e,i);return this._dotLottieCore.render(),this._draw(),a}async setImageSlot(e,t){if(this._dotLottieCore===null)return!1;let n=await fe(t);if(this._dotLottieCore===null)return!1;let r=this._dotLottieCore.set_image_slot(e,n);return this._dotLottieCore.render(),this._draw(),r}resetSlot(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.reset_slot(e);return this._dotLottieCore.render(),this._draw(),t}clearSlot(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.clear_slot(e);return this._dotLottieCore.render(),this._draw(),t}resetSlots(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),e}clearSlots(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),e}setLayout(e){this._dotLottieCore!==null&&this._dotLottieCore.set_layout(e.fit??`contain`,e.align?.[0]??.5,e.align?.[1]??.5)}setViewport(e,t,n,r){return this._dotLottieCore===null?!1:this._dotLottieCore.set_viewport(e,t,n,r)}static setWasmUrl(e){X().setWasmUrl(e)}static preload(){return X().load()}static async registerFont(e,t){try{await X().load();let n;if(typeof t==`string`){let e=await fetch(t);if(!e.ok)return console.error(`Failed to fetch font from URL: ${t}. Status: ${e.status}`),!1;n=new Uint8Array(await e.arrayBuffer())}else n=t instanceof Uint8Array?t:new Uint8Array(t);let r=ee(e,n);return r||console.error(`Failed to register font "${e}". Font data may be invalid.`),r}catch(t){return console.error(`Error registering font "${e}":`,t),!1}}animationSize(){let e=this._dotLottieCore?.animation_size();return{width:e?.[0]??0,height:e?.[1]??0}}stateMachineLoad(e){return this._dotLottieCore?this._dotLottieCore.state_machine_load_from_id(e):!1}stateMachineLoadData(e){return this._dotLottieCore?this._dotLottieCore.state_machine_load(e):!1}stateMachineSetConfig(e){this._stateMachineConfig=e}stateMachineStart(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.sm_start(this._stateMachineConfig?.openUrlPolicy?.requireUserInteraction??!0,this._stateMachineConfig?.openUrlPolicy?.whitelist??[]);return this._drainSmEvents(),e&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),e}stateMachineStop(){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.sm_stop();return this._drainSmEvents(),e&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.status()!==R.Playing&&this._stopAnimationLoop()),e}stateMachineGetStatus(){return this._dotLottieCore?.sm_status()??``}stateMachineGetCurrentState(){return this._dotLottieCore?.sm_current_state()??``}stateMachineGetActiveId(){return this._dotLottieCore?.state_machine_id()??``}stateMachineOverrideState(e,t=!1){return this._dotLottieCore?.sm_override_current_state(e,t)??!1}stateMachineSetSeed(e){return this._dotLottieCore?.sm_set_seed(BigInt(Math.trunc(e)))??!1}stateMachineGet(e){return this._dotLottieCore?.get_state_machine(e)??``}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_framework_setup();return Array.isArray(e)?e:[]}stateMachineSetBooleanInput(e,t){return this._dotLottieCore?.sm_set_boolean_input(e,t)??!1}stateMachineSetNumericInput(e,t){return this._dotLottieCore?.sm_set_numeric_input(e,t)??!1}stateMachineSetStringInput(e,t){return this._dotLottieCore?.sm_set_string_input(e,t)??!1}stateMachineGetBooleanInput(e){return this._dotLottieCore?.sm_get_boolean_input(e)??void 0}stateMachineGetNumericInput(e){return this._dotLottieCore?.sm_get_numeric_input(e)??void 0}stateMachineGetStringInput(e){return this._dotLottieCore?.sm_get_string_input(e)??void 0}stateMachineGetInputs(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_get_inputs();return Array.isArray(e)?e:[]}stateMachineFireEvent(e){this._dotLottieCore?.sm_fire(e)}stateMachinePostClickEvent(e,t){this._dotLottieCore?.sm_post_click(e,t)}stateMachinePostPointerUpEvent(e,t){this._dotLottieCore?.sm_post_pointer_up(e,t)}stateMachinePostPointerDownEvent(e,t){this._dotLottieCore?.sm_post_pointer_down(e,t)}stateMachinePostPointerMoveEvent(e,t){this._dotLottieCore?.sm_post_pointer_move(e,t)}stateMachinePostPointerEnterEvent(e,t){this._dotLottieCore?.sm_post_pointer_enter(e,t)}stateMachinePostPointerExitEvent(e,t){this._dotLottieCore?.sm_post_pointer_exit(e,t)}_onClick(e){let t=J(e);t&&this.stateMachinePostClickEvent(t.x,t.y)}_onPointerUp(e){let t=J(e);t&&this.stateMachinePostPointerUpEvent(t.x,t.y)}_onPointerDown(e){let t=J(e);t&&this.stateMachinePostPointerDownEvent(t.x,t.y)}_onPointerMove(e){let t=J(e);t&&this.stateMachinePostPointerMoveEvent(t.x,t.y)}_onPointerEnter(e){let t=J(e);t&&this.stateMachinePostPointerEnterEvent(t.x,t.y)}_onPointerLeave(e){let t=J(e);t&&this.stateMachinePostPointerExitEvent(t.x,t.y)}_setupStateMachineListeners(){if(p&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieCore!==null&&this.isLoaded){let e=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),e.includes(`Click`)&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener(`click`,this._boundOnClick)),e.includes(`PointerUp`)&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener(`pointerup`,this._boundOnPointerUp)),e.includes(`PointerDown`)&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener(`pointerdown`,this._boundOnPointerDown)),e.includes(`PointerMove`)&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener(`pointermove`,this._boundOnPointerMove)),e.includes(`PointerEnter`)&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener(`pointerenter`,this._boundOnPointerEnter)),e.includes(`PointerExit`)&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener(`pointerleave`,this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){p&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&=(this._canvas.removeEventListener(`click`,this._boundOnClick),null),this._boundOnPointerUp&&=(this._canvas.removeEventListener(`pointerup`,this._boundOnPointerUp),null),this._boundOnPointerDown&&=(this._canvas.removeEventListener(`pointerdown`,this._boundOnPointerDown),null),this._boundOnPointerMove&&=(this._canvas.removeEventListener(`pointermove`,this._boundOnPointerMove),null),this._boundOnPointerEnter&&=(this._canvas.removeEventListener(`pointerenter`,this._boundOnPointerEnter),null),this._boundOnPointerLeave&&=(this._canvas.removeEventListener(`pointerleave`,this._boundOnPointerLeave),null))}},$=({animationId:e,autoplay:t,backgroundColor:n,className:r,createDotLottie:o,data:s,dotLottieRefCallback:c,layout:l,loop:u,loopCount:d,mode:f,playOnHover:p,renderConfig:m,segment:h,speed:g,src:_,stateMachineConfig:v,stateMachineId:y,style:b,themeData:x,themeId:S,useFrameInterpolation:C,workerId:w,...T})=>{let E=(0,i.useRef)(null),D=(0,i.useRef)(null),O=(0,i.useRef)(c),k=(0,i.useRef)(null),A={speed:g,mode:f,loop:u,loopCount:d,useFrameInterpolation:C,segment:h,backgroundColor:n,autoplay:t,themeId:S,workerId:w,src:_,data:s,layout:l,renderConfig:m,animationId:e,stateMachineConfig:v,stateMachineId:y},j=(0,i.useRef)(A);O.current=c,j.current=A;let M=(0,i.useCallback)(e=>{if(D.current=e,e){let t=k.current;t&&t.canvas===e?(clearTimeout(t.timer),k.current=null,E.current=t.instance):E.current?.canvas!==e&&(E.current=o({...j.current,canvas:e}))}else if(E.current){let e=E.current,t=e.canvas;E.current=null,t instanceof HTMLCanvasElement?k.current={canvas:t,instance:e,timer:setTimeout(()=>{k.current?.instance===e&&(k.current=null),e.destroy()},0)}:e.destroy()}O.current?.(E.current)},[]);return(0,i.useEffect)(()=>{let e=e=>{p&&(e.type===`mouseenter`&&E.current?.play(),e.type===`mouseleave`&&E.current?.pause())};return D.current?.addEventListener(`mouseenter`,e),D.current?.addEventListener(`mouseleave`,e),()=>{D.current?.removeEventListener(`mouseenter`,e),D.current?.removeEventListener(`mouseleave`,e)}},[p]),(0,i.useEffect)(()=>{E.current?.setSpeed(g??1)},[g]),(0,i.useEffect)(()=>{E.current?.setMode(f??`forward`)},[f]),(0,i.useEffect)(()=>{E.current?.setLoop(u??!1)},[u]),(0,i.useEffect)(()=>{E.current?.setLoopCount(d??0)},[d]),(0,i.useEffect)(()=>{E.current?.setUseFrameInterpolation(C??!0)},[C]),(0,i.useEffect)(()=>{typeof h?.[0]==`number`&&typeof h[1]==`number`?E.current?.setSegment(h[0],h[1]):E.current?.resetSegment()},[h]),(0,i.useEffect)(()=>{E.current?.setBackgroundColor(n??``)},[n]),(0,i.useEffect)(()=>{E.current?.setRenderConfig(m??{})},[JSON.stringify(m)]),(0,i.useEffect)(()=>{typeof s!=`string`&&typeof s!=`object`||E.current?.load({data:s,...j.current})},[s]),(0,i.useEffect)(()=>{typeof _==`string`&&E.current?.load({src:_,...j.current})},[_]),(0,i.useEffect)(()=>{E.current?.setMarker(T.marker??``)},[T.marker]),(0,i.useEffect)(()=>{E.current?.isLoaded&&E.current.activeAnimationId!==e&&E.current.loadAnimation(e??``)},[e]),(0,i.useEffect)(()=>{typeof S==`string`&&E.current?.setTheme(S)},[S]),(0,i.useEffect)(()=>{E.current?.setThemeData(x??``)},[x]),(0,i.useEffect)(()=>{E.current?.setLayout(l??{})},[l?.fit,l?.align?.[0],l?.align?.[1]]),(0,i.useEffect)(()=>{E.current?.isLoaded&&(typeof y==`string`&&y?E.current.stateMachineLoad(y)&&E.current.stateMachineStart():E.current.stateMachineStop())},[y]),(0,i.useEffect)(()=>{E.current?.stateMachineSetConfig(v??null)},[v]),(0,a.jsx)(`div`,{className:r,...!r&&{style:{width:`100%`,height:`100%`,lineHeight:0,...b}},children:(0,a.jsx)(`canvas`,{ref:M,style:{width:`100%`,height:`100%`},...T})})},_e=e=>new ge(e),ve=e=>(0,a.jsx)($,{...e,createDotLottie:_e}),ye=({width:o,height:s,className:c,playOnce:l,playThreshold:u,playRootMargin:d,autoplay:f=!1,alterImgSrcOnLoad:p,lottieFileSrcPath:m,bypassInView:h=!1})=>{let g=t.default(),[_,v]=(0,i.useState)(null),[y,b]=(0,i.useState)(!1),[x,S]=(0,i.useState)(!1),{ref:C,inView:w}=n.t({threshold:u??(g?.4:.9),rootMargin:d??(g?`20% 0% 0% 0%`:`40% 0% 10% 0%`),skip:h});return(0,i.useEffect)(()=>{if(!_)return;b(!1),S(_.isLoaded);let e=()=>S(!0),t=()=>b(!0);return _.addEventListener(`load`,e),_.addEventListener(`loadError`,t),()=>{_.removeEventListener(`load`,e),_.removeEventListener(`loadError`,t)}},[_]),(0,i.useEffect)(()=>{_&&x&&(h||w?_.play():l?_.stop():_.pause())},[w,l,_,h,x]),(y||!m)&&p?(0,a.jsx)(`div`,{className:`flex items-center justify-center`,children:(0,a.jsx)(r.IconWithImage,{srcPath:p,width:o||0})}):(0,a.jsx)(`div`,{className:`w-full`,ref:C,children:(0,a.jsx)(`div`,{className:e.t(`flex`,c),style:{width:o||void 0,height:s||void 0},children:(0,a.jsx)(ve,{autoplay:f,dotLottieRefCallback:v,loop:!l,src:m})})})};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return ye}});