@1agh/maude 0.58.2 → 0.59.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 (140) hide show
  1. package/apps/studio/annotations-bindings.ts +83 -4
  2. package/apps/studio/annotations-layer.tsx +49 -15
  3. package/apps/studio/api.ts +6 -1
  4. package/apps/studio/bin/_fetch-asset.mjs +169 -5
  5. package/apps/studio/bin/_import-asset.mjs +90 -0
  6. package/apps/studio/bin/_import-figma.mjs +1775 -0
  7. package/apps/studio/bin/_perf-probe-safari.mjs +332 -0
  8. package/apps/studio/bin/_perf-probe.mjs +228 -0
  9. package/apps/studio/bin/_perf-shared.mjs +345 -0
  10. package/apps/studio/bin/_video-playwright.mjs +103 -7
  11. package/apps/studio/bin/import-figma.sh +47 -0
  12. package/apps/studio/bin/perf.sh +228 -0
  13. package/apps/studio/bin/read-annotations.mjs +11 -1
  14. package/apps/studio/bin/smoke.sh +49 -5
  15. package/apps/studio/bun.lock +16 -22
  16. package/apps/studio/canvas-edit.ts +29 -5
  17. package/apps/studio/canvas-lib.tsx +148 -6
  18. package/apps/studio/client/app.jsx +196 -38
  19. package/apps/studio/client/export-center.jsx +42 -4
  20. package/apps/studio/client/panels/CloudBar.jsx +92 -1
  21. package/apps/studio/client/panels/FigmaImportPanel.jsx +264 -0
  22. package/apps/studio/client/panels/GitPanel.jsx +26 -6
  23. package/apps/studio/client/panels/SettingsPanel.jsx +181 -0
  24. package/apps/studio/client/panels/SetupChecklist.jsx +26 -2
  25. package/apps/studio/client/panels/SyncPanel.jsx +229 -0
  26. package/apps/studio/client/panels/TimelinePanel.jsx +31 -3
  27. package/apps/studio/client/panels/timeline-comp-target.js +101 -0
  28. package/apps/studio/client/panels/timeline-parse.js +3 -3
  29. package/apps/studio/client/styles/3-shell-maude.css +37 -0
  30. package/apps/studio/client/styles/4-components.css +134 -0
  31. package/apps/studio/clip-ops.ts +93 -17
  32. package/apps/studio/cloud/endpoints.ts +78 -10
  33. package/apps/studio/cloud/renew.ts +183 -0
  34. package/apps/studio/context.ts +2 -1
  35. package/apps/studio/dist/client.bundle.js +1231 -1231
  36. package/apps/studio/dist/runtime/@remotion_media.js +56 -136
  37. package/apps/studio/dist/runtime/@remotion_player.js +18 -18
  38. package/apps/studio/dist/runtime/@remotion_transitions.js +9 -9
  39. package/apps/studio/dist/runtime/@remotion_transitions_clock-wipe.js +1 -1
  40. package/apps/studio/dist/runtime/remotion.js +12 -12
  41. package/apps/studio/dist/styles.css +1 -1
  42. package/apps/studio/exporters/_browser-bundles.ts +20 -6
  43. package/apps/studio/exporters/_runtime.ts +19 -0
  44. package/apps/studio/exporters/degraded.ts +92 -0
  45. package/apps/studio/exporters/index.ts +5 -0
  46. package/apps/studio/exporters/jobs.ts +19 -0
  47. package/apps/studio/exporters/unsupported-media.ts +170 -0
  48. package/apps/studio/exporters/video-encode-lib.ts +35 -6
  49. package/apps/studio/exporters/video-render-lib.ts +6 -0
  50. package/apps/studio/exporters/video.ts +72 -1
  51. package/apps/studio/figma/assets.test.ts +464 -0
  52. package/apps/studio/figma/assets.ts +452 -0
  53. package/apps/studio/figma/client.test.ts +395 -0
  54. package/apps/studio/figma/client.ts +513 -0
  55. package/apps/studio/figma/codegen-client.test.ts +276 -0
  56. package/apps/studio/figma/codegen-client.ts +509 -0
  57. package/apps/studio/figma/codegen-fonts.test.ts +103 -0
  58. package/apps/studio/figma/codegen-fonts.ts +195 -0
  59. package/apps/studio/figma/codegen-values.test.ts +179 -0
  60. package/apps/studio/figma/codegen-values.ts +270 -0
  61. package/apps/studio/figma/comments-to-strokes.test.ts +194 -0
  62. package/apps/studio/figma/comments-to-strokes.ts +173 -0
  63. package/apps/studio/figma/endpoints.ts +273 -0
  64. package/apps/studio/figma/fig-decode.test.ts +702 -0
  65. package/apps/studio/figma/fig-decode.ts +617 -0
  66. package/apps/studio/figma/fig-kiwi.ts +410 -0
  67. package/apps/studio/figma/fig-zip.ts +270 -0
  68. package/apps/studio/figma/from-codegen.test.ts +408 -0
  69. package/apps/studio/figma/from-codegen.ts +1103 -0
  70. package/apps/studio/figma/sanitize.test.ts +325 -0
  71. package/apps/studio/figma/sanitize.ts +407 -0
  72. package/apps/studio/figma/style-map.ts +352 -0
  73. package/apps/studio/figma/tailwind-map.test.ts +142 -0
  74. package/apps/studio/figma/tailwind-map.ts +545 -0
  75. package/apps/studio/figma/to-artboard.test.ts +808 -0
  76. package/apps/studio/figma/to-artboard.ts +701 -0
  77. package/apps/studio/figma/to-render.test.ts +180 -0
  78. package/apps/studio/figma/to-render.ts +328 -0
  79. package/apps/studio/figma/to-strokes-roundtrip.test.ts +152 -0
  80. package/apps/studio/figma/to-strokes.test.ts +705 -0
  81. package/apps/studio/figma/to-strokes.ts +749 -0
  82. package/apps/studio/figma/to-tokens.test.ts +321 -0
  83. package/apps/studio/figma/to-tokens.ts +305 -0
  84. package/apps/studio/figma/types.ts +544 -0
  85. package/apps/studio/figma/url.test.ts +167 -0
  86. package/apps/studio/figma/url.ts +160 -0
  87. package/apps/studio/http.ts +176 -0
  88. package/apps/studio/sync/asset-push.ts +432 -0
  89. package/apps/studio/sync/connection-state.ts +82 -3
  90. package/apps/studio/sync/hub-link.ts +63 -7
  91. package/apps/studio/sync/hubs-config.ts +31 -3
  92. package/apps/studio/sync/index.ts +286 -27
  93. package/apps/studio/sync/migrate-flat-fallback.ts +121 -0
  94. package/apps/studio/sync/presentation.ts +45 -1
  95. package/apps/studio/sync/status.ts +18 -0
  96. package/apps/studio/sync/supervisor.ts +5 -1
  97. package/apps/studio/sync/workspace-signin.ts +7 -3
  98. package/apps/studio/test/annotations-bindings.test.ts +150 -12
  99. package/apps/studio/test/canvas-create-api.test.ts +4 -1
  100. package/apps/studio/test/canvas-origin-gate.test.ts +17 -0
  101. package/apps/studio/test/capture-determinism-shape.test.ts +135 -0
  102. package/apps/studio/test/clip-addressing.test.ts +6 -1
  103. package/apps/studio/test/clip-ops.test.ts +5 -1
  104. package/apps/studio/test/cloud-endpoints.test.ts +96 -0
  105. package/apps/studio/test/cloud-renew.test.ts +205 -0
  106. package/apps/studio/test/cloud-shell-surfaces.test.ts +11 -2
  107. package/apps/studio/test/exporters/degraded-propagation.test.ts +123 -0
  108. package/apps/studio/test/exporters/unsupported-media.test.ts +123 -0
  109. package/apps/studio/test/fetch-asset-gate.test.ts +189 -0
  110. package/apps/studio/test/figma-explode.test.ts +438 -0
  111. package/apps/studio/test/figma-provenance.test.ts +108 -0
  112. package/apps/studio/test/figma-routes.test.ts +294 -0
  113. package/apps/studio/test/fixtures/perf-canvas.mjs +201 -0
  114. package/apps/studio/test/git-cloud-posture.test.ts +50 -0
  115. package/apps/studio/test/hub-link.test.ts +11 -0
  116. package/apps/studio/test/import-figma.test.ts +667 -0
  117. package/apps/studio/test/sync-asset-push.test.ts +567 -0
  118. package/apps/studio/test/sync-connection-state.test.ts +79 -0
  119. package/apps/studio/test/sync-hubs-config.test.ts +5 -0
  120. package/apps/studio/test/sync-migrate-flat-fallback.test.ts +98 -0
  121. package/apps/studio/test/sync-panel-surface.test.ts +90 -0
  122. package/apps/studio/test/sync-path-pull.test.ts +63 -0
  123. package/apps/studio/test/sync-presentation.test.ts +77 -0
  124. package/apps/studio/test/sync-runtime.test.ts +316 -1
  125. package/apps/studio/test/sync-status.test.ts +28 -0
  126. package/apps/studio/test/timeline-comp-target.test.ts +139 -0
  127. package/apps/studio/test/video-comp.test.ts +104 -2
  128. package/apps/studio/test/video-encode-lib.test.ts +63 -0
  129. package/apps/studio/test/workspace-containment.test.ts +1 -0
  130. package/apps/studio/use-artboard-drag.tsx +37 -3
  131. package/apps/studio/video-comp.tsx +121 -6
  132. package/apps/studio/whats-new.json +98 -0
  133. package/apps/studio/workspace-mode.ts +4 -0
  134. package/cli/commands/design.mjs +15 -0
  135. package/cli/commands/kg.mjs +8 -1
  136. package/cli/commands/kg.test.mjs +24 -0
  137. package/cli/lib/figma-codegen-reachability.test.mjs +104 -0
  138. package/cli/lib/figma-import-controls.test.mjs +70 -0
  139. package/package.json +8 -8
  140. package/plugins/flow/.claude-plugin/config.schema.json +3 -3
@@ -1 +1 @@
1
- var f0=Object.defineProperty;var v0=($,G)=>{for(var J in G)f0($,J,{get:G[J],enumerable:!0,configurable:!0,set:(Z)=>G[J]=()=>Z})};var e={};v0(e,{clockWipe:()=>cG});var y0=({instruction:$,lastPoint:G,progress:J})=>{let Z=G.x+($.x-G.x)*J,N=G.y+($.y-G.y)*J;return{type:"L",x:Z,y:N}};function y($,G,J){return{x:$.x+(G.x-$.x)*J,y:$.y+(G.y-$.y)*J}}function x0({progress:$,lastPoint:G,instruction:J}){let Z=$,N={x:G.x,y:G.y},K={x:J.cp1x,y:J.cp1y},U={x:J.cp2x,y:J.cp2y},Q={x:J.x,y:J.y},O=y(N,K,Z),H=y(K,U,Z),q=y(U,Q,Z),M=y(O,H,Z),j=y(H,q,Z),V=y(M,j,Z);return{type:"C",cp1x:O.x,cp1y:O.y,cp2x:M.x,cp2y:M.y,x:V.x,y:V.y}}var l0=({instruction:$,lastPoint:G,progress:J})=>{if($.type==="M")return $;if($.type==="L")return y0({instruction:$,lastPoint:G,progress:J});if($.type==="C")return x0({instruction:$,lastPoint:G,progress:J});if($.type==="Z")return $;throw TypeError(`${$.type} is not supported.`)},h0=[[],[],[-0.5773502691896257,0.5773502691896257],[0,-0.7745966692414834,0.7745966692414834],[-0.33998104358485626,0.33998104358485626,-0.8611363115940526,0.8611363115940526],[0,-0.5384693101056831,0.5384693101056831,-0.906179845938664,0.906179845938664],[0.6612093864662645,-0.6612093864662645,-0.2386191860831969,0.2386191860831969,-0.932469514203152,0.932469514203152],[0,0.4058451513773972,-0.4058451513773972,-0.7415311855993945,0.7415311855993945,-0.9491079123427585,0.9491079123427585],[-0.1834346424956498,0.1834346424956498,-0.525532409916329,0.525532409916329,-0.7966664774136267,0.7966664774136267,-0.9602898564975363,0.9602898564975363],[0,-0.8360311073266358,0.8360311073266358,-0.9681602395076261,0.9681602395076261,-0.3242534234038089,0.3242534234038089,-0.6133714327005904,0.6133714327005904],[-0.14887433898163122,0.14887433898163122,-0.4333953941292472,0.4333953941292472,-0.6794095682990244,0.6794095682990244,-0.8650633666889845,0.8650633666889845,-0.9739065285171717,0.9739065285171717],[0,-0.26954315595234496,0.26954315595234496,-0.5190961292068118,0.5190961292068118,-0.7301520055740494,0.7301520055740494,-0.8870625997680953,0.8870625997680953,-0.978228658146057,0.978228658146057],[-0.1252334085114689,0.1252334085114689,-0.3678314989981802,0.3678314989981802,-0.5873179542866175,0.5873179542866175,-0.7699026741943047,0.7699026741943047,-0.9041172563704749,0.9041172563704749,-0.9815606342467192,0.9815606342467192],[0,-0.2304583159551348,0.2304583159551348,-0.44849275103644687,0.44849275103644687,-0.6423493394403402,0.6423493394403402,-0.8015780907333099,0.8015780907333099,-0.9175983992229779,0.9175983992229779,-0.9841830547185881,0.9841830547185881],[-0.10805494870734367,0.10805494870734367,-0.31911236892788974,0.31911236892788974,-0.5152486363581541,0.5152486363581541,-0.6872929048116855,0.6872929048116855,-0.827201315069765,0.827201315069765,-0.9284348836635735,0.9284348836635735,-0.9862838086968123,0.9862838086968123],[0,-0.20119409399743451,0.20119409399743451,-0.3941513470775634,0.3941513470775634,-0.5709721726085388,0.5709721726085388,-0.7244177313601701,0.7244177313601701,-0.8482065834104272,0.8482065834104272,-0.937273392400706,0.937273392400706,-0.9879925180204854,0.9879925180204854],[-0.09501250983763744,0.09501250983763744,-0.2816035507792589,0.2816035507792589,-0.45801677765722737,0.45801677765722737,-0.6178762444026438,0.6178762444026438,-0.755404408355003,0.755404408355003,-0.8656312023878318,0.8656312023878318,-0.9445750230732326,0.9445750230732326,-0.9894009349916499,0.9894009349916499],[0,-0.17848418149584785,0.17848418149584785,-0.3512317634538763,0.3512317634538763,-0.5126905370864769,0.5126905370864769,-0.6576711592166907,0.6576711592166907,-0.7815140038968014,0.7815140038968014,-0.8802391537269859,0.8802391537269859,-0.9506755217687678,0.9506755217687678,-0.9905754753144174,0.9905754753144174],[-0.0847750130417353,0.0847750130417353,-0.2518862256915055,0.2518862256915055,-0.41175116146284263,0.41175116146284263,-0.5597708310739475,0.5597708310739475,-0.6916870430603532,0.6916870430603532,-0.8037049589725231,0.8037049589725231,-0.8926024664975557,0.8926024664975557,-0.9558239495713977,0.9558239495713977,-0.9915651684209309,0.9915651684209309],[0,-0.16035864564022537,0.16035864564022537,-0.31656409996362983,0.31656409996362983,-0.46457074137596094,0.46457074137596094,-0.600545304661681,0.600545304661681,-0.7209661773352294,0.7209661773352294,-0.8227146565371428,0.8227146565371428,-0.9031559036148179,0.9031559036148179,-0.96020815213483,0.96020815213483,-0.9924068438435844,0.9924068438435844],[-0.07652652113349734,0.07652652113349734,-0.22778585114164507,0.22778585114164507,-0.37370608871541955,0.37370608871541955,-0.5108670019508271,0.5108670019508271,-0.636053680726515,0.636053680726515,-0.7463319064601508,0.7463319064601508,-0.8391169718222188,0.8391169718222188,-0.912234428251326,0.912234428251326,-0.9639719272779138,0.9639719272779138,-0.9931285991850949,0.9931285991850949],[0,-0.1455618541608951,0.1455618541608951,-0.2880213168024011,0.2880213168024011,-0.4243421202074388,0.4243421202074388,-0.5516188358872198,0.5516188358872198,-0.6671388041974123,0.6671388041974123,-0.7684399634756779,0.7684399634756779,-0.8533633645833173,0.8533633645833173,-0.9200993341504008,0.9200993341504008,-0.9672268385663063,0.9672268385663063,-0.9937521706203895,0.9937521706203895],[-0.06973927331972223,0.06973927331972223,-0.20786042668822127,0.20786042668822127,-0.34193582089208424,0.34193582089208424,-0.469355837986757,0.469355837986757,-0.5876404035069116,0.5876404035069116,-0.6944872631866827,0.6944872631866827,-0.7878168059792081,0.7878168059792081,-0.8658125777203002,0.8658125777203002,-0.926956772187174,0.926956772187174,-0.9700604978354287,0.9700604978354287,-0.9942945854823992,0.9942945854823992],[0,-0.1332568242984661,0.1332568242984661,-0.26413568097034495,0.26413568097034495,-0.3903010380302908,0.3903010380302908,-0.5095014778460075,0.5095014778460075,-0.6196098757636461,0.6196098757636461,-0.7186613631319502,0.7186613631319502,-0.8048884016188399,0.8048884016188399,-0.8767523582704416,0.8767523582704416,-0.9329710868260161,0.9329710868260161,-0.9725424712181152,0.9725424712181152,-0.9947693349975522,0.9947693349975522],[-0.06405689286260563,0.06405689286260563,-0.1911188674736163,0.1911188674736163,-0.3150426796961634,0.3150426796961634,-0.4337935076260451,0.4337935076260451,-0.5454214713888396,0.5454214713888396,-0.6480936519369755,0.6480936519369755,-0.7401241915785544,0.7401241915785544,-0.820001985973903,0.820001985973903,-0.8864155270044011,0.8864155270044011,-0.9382745520027328,0.9382745520027328,-0.9747285559713095,0.9747285559713095,-0.9951872199970213,0.9951872199970213]],p0=[[],[],[1,1],[0.8888888888888888,0.5555555555555556,0.5555555555555556],[0.6521451548625461,0.6521451548625461,0.34785484513745385,0.34785484513745385],[0.5688888888888889,0.47862867049936647,0.47862867049936647,0.23692688505618908,0.23692688505618908],[0.3607615730481386,0.3607615730481386,0.46791393457269104,0.46791393457269104,0.17132449237917036,0.17132449237917036],[0.4179591836734694,0.3818300505051189,0.3818300505051189,0.27970539148927664,0.27970539148927664,0.1294849661688697,0.1294849661688697],[0.362683783378362,0.362683783378362,0.31370664587788727,0.31370664587788727,0.22238103445337448,0.22238103445337448,0.10122853629037626,0.10122853629037626],[0.3302393550012598,0.1806481606948574,0.1806481606948574,0.08127438836157441,0.08127438836157441,0.31234707704000286,0.31234707704000286,0.26061069640293544,0.26061069640293544],[0.29552422471475287,0.29552422471475287,0.26926671930999635,0.26926671930999635,0.21908636251598204,0.21908636251598204,0.1494513491505806,0.1494513491505806,0.06667134430868814,0.06667134430868814],[0.2729250867779006,0.26280454451024665,0.26280454451024665,0.23319376459199048,0.23319376459199048,0.18629021092773426,0.18629021092773426,0.1255803694649046,0.1255803694649046,0.05566856711617366,0.05566856711617366],[0.24914704581340277,0.24914704581340277,0.2334925365383548,0.2334925365383548,0.20316742672306592,0.20316742672306592,0.16007832854334622,0.16007832854334622,0.10693932599531843,0.10693932599531843,0.04717533638651183,0.04717533638651183],[0.2325515532308739,0.22628318026289723,0.22628318026289723,0.2078160475368885,0.2078160475368885,0.17814598076194574,0.17814598076194574,0.13887351021978725,0.13887351021978725,0.09212149983772845,0.09212149983772845,0.04048400476531588,0.04048400476531588],[0.2152638534631578,0.2152638534631578,0.2051984637212956,0.2051984637212956,0.18553839747793782,0.18553839747793782,0.15720316715819355,0.15720316715819355,0.12151857068790319,0.12151857068790319,0.08015808715976021,0.08015808715976021,0.03511946033175186,0.03511946033175186],[0.2025782419255613,0.19843148532711158,0.19843148532711158,0.1861610000155622,0.1861610000155622,0.16626920581699392,0.16626920581699392,0.13957067792615432,0.13957067792615432,0.10715922046717194,0.10715922046717194,0.07036604748810812,0.07036604748810812,0.03075324199611727,0.03075324199611727],[0.1894506104550685,0.1894506104550685,0.18260341504492358,0.18260341504492358,0.16915651939500254,0.16915651939500254,0.14959598881657674,0.14959598881657674,0.12462897125553388,0.12462897125553388,0.09515851168249279,0.09515851168249279,0.062253523938647894,0.062253523938647894,0.027152459411754096,0.027152459411754096],[0.17944647035620653,0.17656270536699264,0.17656270536699264,0.16800410215645004,0.16800410215645004,0.15404576107681028,0.15404576107681028,0.13513636846852548,0.13513636846852548,0.11188384719340397,0.11188384719340397,0.08503614831717918,0.08503614831717918,0.0554595293739872,0.0554595293739872,0.02414830286854793,0.02414830286854793],[0.1691423829631436,0.1691423829631436,0.16427648374583273,0.16427648374583273,0.15468467512626524,0.15468467512626524,0.14064291467065065,0.14064291467065065,0.12255520671147846,0.12255520671147846,0.10094204410628717,0.10094204410628717,0.07642573025488905,0.07642573025488905,0.0497145488949698,0.0497145488949698,0.02161601352648331,0.02161601352648331],[0.1610544498487837,0.15896884339395434,0.15896884339395434,0.15276604206585967,0.15276604206585967,0.1426067021736066,0.1426067021736066,0.12875396253933621,0.12875396253933621,0.11156664554733399,0.11156664554733399,0.09149002162245,0.09149002162245,0.06904454273764123,0.06904454273764123,0.0448142267656996,0.0448142267656996,0.019461788229726478,0.019461788229726478],[0.15275338713072584,0.15275338713072584,0.14917298647260374,0.14917298647260374,0.14209610931838204,0.14209610931838204,0.13168863844917664,0.13168863844917664,0.11819453196151841,0.11819453196151841,0.10193011981724044,0.10193011981724044,0.08327674157670475,0.08327674157670475,0.06267204833410907,0.06267204833410907,0.04060142980038694,0.04060142980038694,0.017614007139152118,0.017614007139152118],[0.14608113364969041,0.14452440398997005,0.14452440398997005,0.13988739479107315,0.13988739479107315,0.13226893863333747,0.13226893863333747,0.12183141605372853,0.12183141605372853,0.10879729916714838,0.10879729916714838,0.09344442345603386,0.09344442345603386,0.0761001136283793,0.0761001136283793,0.057134425426857205,0.057134425426857205,0.036953789770852494,0.036953789770852494,0.016017228257774335,0.016017228257774335],[0.13925187285563198,0.13925187285563198,0.13654149834601517,0.13654149834601517,0.13117350478706238,0.13117350478706238,0.12325237681051242,0.12325237681051242,0.11293229608053922,0.11293229608053922,0.10041414444288096,0.10041414444288096,0.08594160621706773,0.08594160621706773,0.06979646842452049,0.06979646842452049,0.052293335152683286,0.052293335152683286,0.03377490158481415,0.03377490158481415,0.0146279952982722,0.0146279952982722],[0.13365457218610619,0.1324620394046966,0.1324620394046966,0.12890572218808216,0.12890572218808216,0.12304908430672953,0.12304908430672953,0.11499664022241136,0.11499664022241136,0.10489209146454141,0.10489209146454141,0.09291576606003515,0.09291576606003515,0.07928141177671895,0.07928141177671895,0.06423242140852585,0.06423242140852585,0.04803767173108467,0.04803767173108467,0.030988005856979445,0.030988005856979445,0.013411859487141771,0.013411859487141771],[0.12793819534675216,0.12793819534675216,0.1258374563468283,0.1258374563468283,0.12167047292780339,0.12167047292780339,0.1155056680537256,0.1155056680537256,0.10744427011596563,0.10744427011596563,0.09761865210411388,0.09761865210411388,0.08619016153195327,0.08619016153195327,0.0733464814110803,0.0733464814110803,0.05929858491543678,0.05929858491543678,0.04427743881741981,0.04427743881741981,0.028531388628933663,0.028531388628933663,0.0123412297999872,0.0123412297999872]],g0=[[1],[1,1],[1,2,1],[1,3,3,1]],m0=($,G,J)=>{let Z=(1-J)*(1-J)*(1-J)*$[0]+3*(1-J)*(1-J)*J*$[1]+3*(1-J)*J*J*$[2]+J*J*J*$[3],N=(1-J)*(1-J)*(1-J)*G[0]+3*(1-J)*(1-J)*J*G[1]+3*(1-J)*J*J*G[2]+J*J*J*G[3];return{x:Z,y:N}},G0=($,G,J)=>{let Z=J.length-1,N;if(Z===0)return 0;if($===0){N=0;for(let U=0;U<=Z;U++)N+=g0[Z][U]*(1-G)**(Z-U)*G**U*J[U];return N}let K=Array(Z);for(let U=0;U<Z;U++)K[U]=Z*(J[U+1]-J[U]);return G0($-1,G,K)};function d0($,G,J){let Z=G0(1,J,$),N=G0(1,J,G),K=Z*Z+N*N;return Math.sqrt(K)}var $0=({sx:$,sy:G,t:J})=>{let Z,N=20,K=J/2,U=0;for(let Q=0;Q<20;Q++)Z=K*h0[20][Q]+K,U+=p0[20][Q]*d0($,G,Z);return K*U},a0=($,G,J)=>{let Z=(1-J)*(1-J)*$[0]+2*(1-J)*J*$[1]+J*J*$[2],N=(1-J)*(1-J)*G[0]+2*(1-J)*J*G[1]+J*J*G[2];return{x:Z,y:N}},u0=($,G,J)=>{return a0([3*($[1]-$[0]),3*($[2]-$[1]),3*($[3]-$[2])],[3*(G[1]-G[0]),3*(G[2]-G[1]),3*(G[3]-G[2])],J)};var Q0=({length:$,totalLength:G,func:J})=>{let Z=1,N=$/G,K=($-J(N))/G,U=0;while(Z>0.001){let Q=J(N+K),O=Math.abs($-Q)/G;if(O<Z)Z=O,N+=K;else{let H=J(N-K),q=Math.abs($-H)/G;if(q<Z)Z=q,N-=K;else K/=2}if(U++,U>500)break}return N};var c0=({startX:$,startY:G,cp1x:J,cp1y:Z,cp2x:N,cp2y:K,x:U,y:Q})=>{let O={x:$,y:G},H={x:J,y:Z},q={x:N,y:K},M={x:U,y:Q},j=$0({sx:[O.x,H.x,q.x,M.x],sy:[O.y,H.y,q.y,M.y],t:1});return{getPointAtLength:(I)=>{let z=[O.x,H.x,q.x,M.x],W=[O.y,H.y,q.y,M.y],w=Q0({length:I,totalLength:j,func:(_)=>{return $0({sx:z,sy:W,t:_})}});return m0(z,W,w)},getTangentAtLength:(I)=>{let z=[O.x,H.x,q.x,M.x],W=[O.y,H.y,q.y,M.y],w=Q0({length:I,totalLength:j,func:(l)=>$0({sx:z,sy:W,t:l})}),_=u0(z,W,w),P=Math.sqrt(_.x*_.x+_.y*_.y),C;if(P>0)C={x:_.x/P,y:_.y/P};else C={x:0,y:0};return C},getTotalLength:()=>{return j},getC:()=>{return q},getD:()=>{return M},type:"cubic-bezier"}},H0=({x0:$,x1:G,y0:J,y1:Z})=>{return{getTotalLength:()=>{return Math.sqrt(($-G)**2+(J-Z)**2)},getPointAtLength:(N)=>{let K=N/Math.sqrt(($-G)**2+(J-Z)**2);K=Number.isNaN(K)?1:K;let U=(G-$)*K,Q=(Z-J)*K;return{x:$+U,y:J+Q}},getTangentAtLength:()=>{let N=Math.sqrt((G-$)*(G-$)+(Z-J)*(Z-J));return{x:(G-$)/N,y:(Z-J)/N}},type:"linear"}},o0=($)=>{let G={x:0,y:0},J={x:0,y:0},Z=[];for(let N=0;N<$.length;N++){let K=$[N];if(K.type==="M")G={x:K.x,y:K.y},J={x:G.x,y:G.y},Z.push({startPoint:{x:K.x,y:K.y},instructionsAndInfo:[{instruction:K,function:null,length:0,startPoint:G}]});if(K.type==="L"){if(Z.length>0){let U=Math.sqrt((G.x-K.x)**2+(G.y-K.y)**2);Z[Z.length-1].instructionsAndInfo.push({instruction:K,length:U,function:H0({x0:G.x,x1:K.x,y0:G.y,y1:K.y}),startPoint:G})}G={x:K.x,y:K.y}}if(K.type==="Z"){if(Z.length>0){let U=Math.sqrt((Z[Z.length-1].startPoint.x-G.x)**2+(Z[Z.length-1].startPoint.y-G.y)**2);Z[Z.length-1].instructionsAndInfo.push({instruction:K,function:H0({x0:G.x,x1:J.x,y0:G.y,y1:J.y}),length:U,startPoint:{...G}})}G={x:J.x,y:J.y}}if(K.type==="C"){let U=c0({startX:G.x,startY:G.y,cp1x:K.cp1x,cp1y:K.cp1y,cp2x:K.cp2x,cp2y:K.cp2y,x:K.x,y:K.y}),Q=U.getTotalLength();if(Z.length>0)Z[Z.length-1].instructionsAndInfo.push({instruction:K,length:Q,function:U,startPoint:{...G}});G={x:K.x,y:K.y}}}return Z},j0={a:7,A:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},r0=($,G)=>{let J=[],Z=j0[G];if($.length%Z!==0)throw Error(`Expected number of arguments of SVG instruction "${G} ${$.join(" ")}" to be a multiple of ${Z}`);for(let N=0;N<$.length;N+=Z)J.push($.slice(N,N+Z));return J},S=($,G,J)=>{return r0($,G).map((Z)=>{return J(Z)})},s0=/([astvzqmhlc])([^astvzqmhlc]*)/gi,e0=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,i0=($,G)=>{let J=$.match(e0);if(!J){if(G==="Z"||G==="z")return[];throw Error(`Malformed path data: ${G} was expected to have numbers afterwards`)}let Z=j0[G];if(J.length%Z!==0)throw Error(`Malformed path data: ${G} was expected to have a multiple of ${Z} numbers, but got "${G} ${J.join(" ")} instead"`);return J.map(Number)},m=($)=>{if(!$)throw Error("No path provided");let G=$.match(s0);if(!G)throw Error(`No path elements found in string ${$}`);return G.map((J)=>{let Z=J.charAt(0),N=i0(J.substring(1),Z);if(Z==="M"&&N.length>2){let K=[];return K.push({type:Z,x:N[0],y:N[1]}),K.push(...S(N.slice(2),"L",(U)=>({type:"L",x:U[0],y:U[1]}))),K}if(Z==="m"&&N.length>2){let K=[];return K.push({type:Z,dx:N[0],dy:N[1]}),K.push(...S(N.slice(2),"l",(U)=>({type:"l",dx:U[0],dy:U[1]}))),K}if(Z==="Z"||Z==="z")return[{type:"Z"}];if(Z==="A")return S(N,Z,(K)=>({type:Z,rx:K[0],ry:K[1],xAxisRotation:K[2],largeArcFlag:K[3]===1,sweepFlag:K[4]===1,x:K[5],y:K[6]}));if(Z==="a")return S(N,Z,(K)=>({type:Z,rx:K[0],ry:K[1],xAxisRotation:K[2],largeArcFlag:K[3]===1,sweepFlag:K[4]===1,dx:K[5],dy:K[6]}));if(Z==="C")return S(N,Z,(K)=>({type:Z,cp1x:K[0],cp1y:K[1],cp2x:K[2],cp2y:K[3],x:K[4],y:K[5]}));if(Z==="c")return S(N,Z,(K)=>({type:Z,cp1dx:K[0],cp1dy:K[1],cp2dx:K[2],cp2dy:K[3],dx:K[4],dy:K[5]}));if(Z==="S")return S(N,Z,(K)=>({type:Z,cpx:K[0],cpy:K[1],x:K[2],y:K[3]}));if(Z==="s")return S(N,Z,(K)=>({type:Z,cpdx:K[0],cpdy:K[1],dx:K[2],dy:K[3]}));if(Z==="H")return S(N,Z,(K)=>({type:Z,x:K[0]}));if(Z==="h")return S(N,Z,(K)=>({type:Z,dx:K[0]}));if(Z==="V")return S(N,Z,(K)=>({type:Z,y:K[0]}));if(Z==="v")return S(N,Z,(K)=>({type:Z,dy:K[0]}));if(Z==="L")return S(N,Z,(K)=>({type:Z,x:K[0],y:K[1]}));if(Z==="M")return S(N,Z,(K)=>({type:Z,x:K[0],y:K[1]}));if(Z==="m")return S(N,Z,(K)=>({type:Z,dx:K[0],dy:K[1]}));if(Z==="l")return S(N,Z,(K)=>({type:Z,dx:K[0],dy:K[1]}));if(Z==="Q")return S(N,Z,(K)=>({type:Z,cpx:K[0],cpy:K[1],x:K[2],y:K[3]}));if(Z==="q")return S(N,Z,(K)=>({type:Z,cpdx:K[0],cpdy:K[1],dx:K[2],dy:K[3]}));if(Z==="T")return S(N,Z,(K)=>({type:Z,x:K[0],y:K[1]}));if(Z==="t")return S(N,Z,(K)=>({type:Z,dx:K[0],dy:K[1]}));throw Error(`Invalid path element ${J}`)},[]).flat(1)},O0=($,G)=>{let J=G.x+0.6666666666666666*($.cpx-G.x),Z=G.y+0.6666666666666666*($.cpy-G.y),N=$.x+0.6666666666666666*($.cpx-$.x),K=$.y+0.6666666666666666*($.cpy-$.y);return{type:"C",cp1x:J,cp1y:Z,cp2x:N,cp2y:K,x:$.x,y:$.y}},n0=({segments:$,iterate:G})=>{let J=0,Z=0,N=0,K=0,U=null,Q=null;return $.map((H,q)=>{let M=G({segment:H,x:J,y:Z,prevSegment:$[q-1]??null,initialX:N,initialY:K,cpX:U,cpY:Q});switch(H.type){case"M":N=H.x,K=H.y,J=H.x,Z=H.y,U=null,Q=null;break;case"Q":J=H.x,Z=H.y,U=H.cpx,Q=H.cpy;break;case"A":J=H.x,Z=H.y,U=null,Q=null;break;case"C":J=H.x,Z=H.y,U=H.cp2x,Q=H.cp2y;break;case"S":J=H.x,Z=H.y,U=H.cpx,Q=H.cpy;break;case"T":if(U!==null&&Q!==null)U=J-(U-J),Q=Z-(Q-Z);J=H.x,Z=H.y;break;case"L":J=H.x,Z=H.y,U=null,Q=null;break;case"V":Z=H.y,U=null,Q=null;break;case"H":J=H.x,U=null,Q=null;break;case"Z":J=N,Z=K,U=null,Q=null;break;default:throw Error(`Unexpected instruction ${H.type}`)}return M}).flat(1)},h=Math.PI*2;function t0($,G){let J=1.3333333333333333*Math.tan(G/4),Z=Math.cos($),N=Math.sin($),K=Math.cos($+G),U=Math.sin($+G);return[Z,N,Z-N*J,N+Z*J,K+U*J,U-K*J,K,U]}function q0($,G,J,Z){let N=$*Z-G*J<0?-1:1,K=$*J+G*Z;if(K>1)K=1;if(K<-1)K=-1;return N*Math.acos(K)}function $$({x1:$,y1:G,x2:J,y2:Z,largeArcFlag:N,sweepFlag:K,rx:U,ry:Q,sin_phi:O,cos_phi:H}){let q=H*($-J)/2+O*(G-Z)/2,M=-O*($-J)/2+H*(G-Z)/2,j=U*U,V=Q*Q,F=q*q,k=M*M,T=j*V-j*k-V*F;if(T<0)T=0;T/=j*k+V*F,T=Math.sqrt(T)*(N===K?-1:1);let D=T*U/Q*M,I=T*-Q/U*q,z=H*D-O*I+($+J)/2,W=O*D+H*I+(G+Z)/2,w=(q-D)/U,_=(M-I)/Q,P=(-q-D)/U,C=(-M-I)/Q,l=q0(1,0,w,_),f=q0(w,_,P,C);if(K===!1&&f>0)f-=h;if(K===!0&&f<0)f+=h;return[z,W,l,f]}function G$({x1:$,y1:G,x2:J,y2:Z,largeArcFlag:N,sweepFlag:K,rx:U,ry:Q,phi:O}){let H=Math.sin(O*h/360),q=Math.cos(O*h/360),M=q*($-J)/2+H*(G-Z)/2,j=-H*($-J)/2+q*(G-Z)/2;if(M===0&&j===0)return[];if(U===0||Q===0)return[];U=Math.abs(U),Q=Math.abs(Q);let V=M*M/(U*U)+j*j/(Q*Q);if(V>1)U*=Math.sqrt(V),Q*=Math.sqrt(V);let F=$$({x1:$,y1:G,x2:J,y2:Z,largeArcFlag:N,sweepFlag:K,rx:U,ry:Q,sin_phi:H,cos_phi:q}),k=[],T=F[2],D=F[3],I=Math.max(Math.ceil(Math.abs(D)/(h/4)),1);D/=I;for(let z=0;z<I;z++)k.push(t0(T,D)),T+=D;return k.map((z)=>{for(let W=0;W<z.length;W+=2){let w=z[W+0],_=z[W+1];w*=U,_*=Q;let P=q*w-H*_,C=H*w+q*_;z[W+0]=P+F[0],z[W+1]=C+F[1]}return z})}var V0=($)=>{return n0({segments:$,iterate:({segment:G,prevSegment:J,x:Z,y:N,cpX:K,cpY:U})=>{if(G.type==="H")return[{type:"L",x:G.x,y:N}];if(G.type==="V")return[{type:"L",x:Z,y:G.y}];if(G.type==="A"){let{x:Q,y:O}=G,H=G$({x1:Z,y1:N,x2:Q,y2:O,largeArcFlag:G.largeArcFlag,sweepFlag:G.sweepFlag,rx:G.rx,ry:G.ry,phi:G.xAxisRotation});if(H.length===0)return[{type:"L",x:G.x,y:G.y}];return H.map((M)=>{return{type:"C",cp1x:M[2],cp1y:M[3],cp2x:M[4],cp2y:M[5],x:M[6],y:M[7]}})}if(G.type==="T"){let Q=0,O=0;if(J&&(J.type==="Q"||J.type==="T"))Q=K,O=U;else Q=Z,O=N;let H=Q-Z,q=O-N,M=Z-H,j=N-q;return[O0({type:"Q",cpx:M,cpy:j,x:G.x,y:G.y},{x:Z,y:N})]}if(G.type==="S"){let Q=0,O=0;if(J&&J.type==="C")Q=J.cp2x,O=J.cp2y;else if(J&&J.type==="S")Q=J.cpx,O=J.cpy;else Q=Z,O=N;let H=Q-Z,q=O-N,M=Z-H,j=N-q;return[{type:"C",cp1x:M,cp1y:j,cp2x:G.cpx,cp2y:G.cpy,x:G.x,y:G.y}]}if(G.type==="Q")return[O0(G,{x:Z,y:N})];return[G]}})},J$=($)=>{if($.type==="A")return`A ${$.rx} ${$.ry} ${$.xAxisRotation} ${Number($.largeArcFlag)} ${Number($.sweepFlag)} ${$.x} ${$.y}`;if($.type==="a")return`a ${$.rx} ${$.ry} ${$.xAxisRotation} ${Number($.largeArcFlag)} ${Number($.sweepFlag)} ${$.dx} ${$.dy}`;if($.type==="C")return`C ${$.cp1x} ${$.cp1y} ${$.cp2x} ${$.cp2y} ${$.x} ${$.y}`;if($.type==="c")return`c ${$.cp1dx} ${$.cp1dy} ${$.cp2dx} ${$.cp2dy} ${$.dx} ${$.dy}`;if($.type==="S")return`S ${$.cpx} ${$.cpy} ${$.x} ${$.y}`;if($.type==="s")return`s ${$.cpdx} ${$.cpdy} ${$.dx} ${$.dy}`;if($.type==="Q")return`Q ${$.cpx} ${$.cpy} ${$.x} ${$.y}`;if($.type==="q")return`q ${$.cpdx} ${$.cpdy} ${$.dx} ${$.dy}`;if($.type==="Z")return"Z";if($.type==="H")return`H ${$.x}`;if($.type==="h")return`h ${$.dx}`;if($.type==="V")return`V ${$.y}`;if($.type==="v")return`v ${$.dy}`;if($.type==="L")return`L ${$.x} ${$.y}`;if($.type==="l")return`l ${$.dx} ${$.dy}`;if($.type==="M")return`M ${$.x} ${$.y}`;if($.type==="m")return`m ${$.dx} ${$.dy}`;if($.type==="T")return`T ${$.x} ${$.y}`;if($.type==="t")return`t ${$.dx} ${$.dy}`;throw Error(`Unknown instruction type: ${$.type}`)},E=($)=>{return $.map((G)=>{return J$(G)}).join(" ")},J0=($)=>{let G=[],J=0,Z=0,N=0,K=0;for(let U=0;U<$.length;U++){let Q=$[U];if(Q.type==="M")N=Q.x,K=Q.y;else if(Q.type==="m")N+=Q.dx,K+=Q.dy;if(Q.type==="A"||Q.type==="C"||Q.type==="L"||Q.type==="M"||Q.type==="Q"||Q.type==="S"||Q.type==="T"){G.push(Q),J=Q.x,Z=Q.y;continue}if(Q.type==="a"||Q.type==="c"||Q.type==="l"||Q.type==="m"||Q.type==="q"||Q.type==="s"||Q.type==="t"){let O=J,H=Z;if(J+=Q.dx,Z+=Q.dy,Q.type==="a"){G.push({type:"A",largeArcFlag:Q.largeArcFlag,rx:Q.rx,ry:Q.ry,sweepFlag:Q.sweepFlag,xAxisRotation:Q.xAxisRotation,x:J,y:Z});continue}if(Q.type==="c"){G.push({type:"C",cp1x:Q.cp1dx+O,cp1y:Q.cp1dy+H,cp2x:Q.cp2dx+O,cp2y:Q.cp2dy+H,x:J,y:Z});continue}if(Q.type==="l"){G.push({type:"L",x:J,y:Z});continue}if(Q.type==="m"){G.push({type:"M",x:J,y:Z});continue}if(Q.type==="q"){G.push({type:"Q",cpx:Q.cpdx+O,cpy:Q.cpdy+H,x:J,y:Z});continue}if(Q.type==="s"){G.push({type:"S",cpx:Q.cpdx+O,cpy:Q.cpdy+H,x:J,y:Z});continue}if(Q.type==="t"){G.push({type:"T",x:J,y:Z});continue}}if(Q.type==="H"){G.push(Q),J=Q.x;continue}if(Q.type==="V"){G.push(Q),Z=Q.y;continue}if(Q.type==="Z"){G.push(Q),J=N,Z=K;continue}if(Q.type==="h"){J+=Q.dx,G.push({type:"H",x:J});continue}if(Q.type==="v"){Z+=Q.dy,G.push({type:"V",y:Z});continue}throw Error("Unknown instruction type: "+Q.type)}return G};var p=($)=>{let G=J0($);return V0(G)},Z$=($,G)=>{let J=m($),Z=p(J),N=o0(Z),K=[],U=0;for(let Q of N)for(let O of Q.instructionsAndInfo){if(U+O.length>G){let q=(G-U)/O.length,M=l0({instruction:O.instruction,lastPoint:O.startPoint,progress:q});return K.push(M),E(K)}if(U+=O.length,K.push(O.instruction),U===G)return E(K)}return E(K)},K$=($)=>{let G=J0(m($));return G.map((J,Z)=>{if(J.type==="Z")return null;if(J.type==="H"||J.type==="V")return null;let N=[J.x-5,J.y-5],K=[J.x+5,J.y-5],U=[J.x-5,J.y+5],Q=[J.x+5,J.y+5],O=[{type:"M",x:N[0],y:N[1]},{type:"L",x:K[0],y:K[1]},{type:"L",x:Q[0],y:Q[1]},{type:"L",x:U[0],y:U[1]},{type:"Z"}];return{d:E(O),color:Z===G.length-1?"red":J.type==="M"?"blue":"green"}}).filter(Boolean)},N$=0.00000001;function U$($){let G=Math.min($[0],$[2]),J=Math.max($[0],$[2]);if($[1]>$[0]?$[2]>=$[1]:$[2]<=$[1])return[G,J];let Z=($[0]*$[2]-$[1]*$[1])/($[0]-2*$[1]+$[2]);return Z<G?[Z,J]:[G,Z]}function M0($){let G=$[0]-3*$[1]+3*$[2]-$[3];if(Math.abs(G)<N$){if($[0]===$[3]&&$[0]===$[1])return[$[0],$[3]];return U$([$[0],-0.5*$[0]+1.5*$[1],$[0]-3*$[1]+3*$[2]])}let J=-$[0]*$[2]+$[0]*$[3]-$[1]*$[2]-$[1]*$[3]+$[1]*$[1]+$[2]*$[2];if(J<=0)return[Math.min($[0],$[3]),Math.max($[0],$[3])];let Z=Math.sqrt(J),N=Math.min($[0],$[3]),K=Math.max($[0],$[3]),U=$[0]-2*$[1]+$[2];for(let Q=(U+Z)/G,O=1;O<=2;Q=(U-Z)/G,O++)if(Q>0&&Q<1){let H=$[0]*(1-Q)*(1-Q)*(1-Q)+$[1]*3*(1-Q)*(1-Q)*Q+$[2]*3*(1-Q)*Q*Q+$[3]*Q*Q*Q;if(H<N)N=H;if(H>K)K=H}return[N,K]}var B0=($)=>{let G=1/0,J=1/0,Z=-1/0,N=-1/0,K=0,U=0,Q=0,O=0;for(let H of $)switch(H.type){case"M":{if(Q=H.x,O=H.y,G>H.x)G=H.x;if(J>H.y)J=H.y;if(Z<H.x)Z=H.x;if(N<H.y)N=H.y;K=H.x,U=H.y;break}case"L":{if(G>H.x)G=H.x;if(J>H.y)J=H.y;if(Z<H.x)Z=H.x;if(N<H.y)N=H.y;K=H.x,U=H.y;break}case"C":{let q=M0([K,H.cp1x,H.cp2x,H.x]);if(G>q[0])G=q[0];if(Z<q[1])Z=q[1];let M=M0([U,H.cp1y,H.cp2y,H.y]);if(J>M[0])J=M[0];if(N<M[1])N=M[1];K=H.x,U=H.y;break}case"Z":K=Q,U=O;break;default:throw Error(`Unknown instruction ${H.type}`)}return{x1:G,y1:J,x2:Z,y2:N,viewBox:`${G} ${J} ${Z-G} ${N-J}`,width:Z-G,height:N-J}},Q$=($)=>{let G=m($),J=V0(J0(G));return B0(J)};var H$=($,G,J)=>{return $.map((Z)=>{if(Z.type==="a"||Z.type==="c"||Z.type==="v"||Z.type==="s"||Z.type==="h"||Z.type==="l"||Z.type==="m"||Z.type==="q"||Z.type==="t")return Z;if(Z.type==="V")return{type:"V",y:Z.y+J};if(Z.type==="H")return{type:"H",x:Z.x+G};if(Z.type==="A")return{type:"A",rx:Z.rx,ry:Z.ry,largeArcFlag:Z.largeArcFlag,sweepFlag:Z.sweepFlag,xAxisRotation:Z.xAxisRotation,x:Z.x+G,y:Z.y+J};if(Z.type==="Z")return Z;if(Z.type==="C")return{type:"C",cp1x:Z.cp1x+G,cp1y:Z.cp1y+J,cp2x:Z.cp2x+G,cp2y:Z.cp2y+J,x:Z.x+G,y:Z.y+J};if(Z.type==="Q")return{type:"Q",cpx:Z.cpx+G,cpy:Z.cpy+J,x:Z.x+G,y:Z.y+J};if(Z.type==="S")return{type:"S",cpx:Z.cpx+G,cpy:Z.cpy+J,x:Z.x+G,y:Z.y+J};if(Z.type==="T")return{type:"T",x:Z.x+G,y:Z.y+J};if(Z.type==="L")return{type:"L",x:Z.x+G,y:Z.y+J};if(Z.type==="M")return{type:"M",x:Z.x+G,y:Z.y+J};throw Error(`Unknown segment type: ${Z.type}`)})},Z0=($,G,J)=>{return E(H$(m($),G,J))},d=($)=>{let G=Q$($);return Z0($,-G.x1,-G.y1)};var a={getBoundingBoxFromInstructions:B0,debugPath:K$,cutPath:Z$};import{Internals as O$,Interactive as q$}from"remotion";import V$,{useCallback as z0,useMemo as F0,useRef as B$}from"react";import{version as z$}from"react-dom";import{HtmlInCanvas as F$,Internals as E0,Sequence as E$}from"remotion";import{jsx as v,jsxs as D0}from"react/jsx-runtime";import{Internals as T0}from"remotion";import{jsx as k$}from"react/jsx-runtime";import{Internals as X$,Interactive as Y$}from"remotion";import{jsx as A$}from"react/jsx-runtime";import{Internals as f$,Interactive as v$}from"remotion";import{jsx as x$}from"react/jsx-runtime";import{Internals as g$,Interactive as m$}from"remotion";import{jsx as a$}from"react/jsx-runtime";import{Internals as r$,Interactive as s$}from"remotion";import{jsx as i$}from"react/jsx-runtime";import{Internals as GG,Interactive as JG}from"remotion";import{jsx as ZG}from"react/jsx-runtime";import{Internals as QG,Interactive as HG}from"remotion";import{jsx as MG}from"react/jsx-runtime";import{Internals as zG,Interactive as FG}from"remotion";import{jsx as DG}from"react/jsx-runtime";import{Internals as IG,Interactive as SG}from"remotion";import{jsx as YG}from"react/jsx-runtime";import{Internals as AG,Interactive as PG}from"remotion";import{jsx as fG}from"react/jsx-runtime";import{Internals as lG,Interactive as hG}from"remotion";import{jsx as gG}from"react/jsx-runtime";var u=($,G)=>{let J=G[0]-$[0],Z=G[1]-$[1],N=Math.sqrt(J*J+Z*Z);return N===0?[0,0]:[J/N,Z/N]},M$=($,G,J)=>{let Z=$.length;if(J===0)return[{type:"M",x:$[0][0],y:$[0][1]},...$.slice(1).map(([H,q])=>({type:"L",x:H,y:q})),{type:"Z"}];let N=u($[0],$[1]),K=$[0][0]+N[0]*J,U=$[0][1]+N[1]*J,Q=[{type:"M",x:K,y:U}];for(let H=1;H<Z;H++){let q=$[H];if(G.has(H)){let M=$[H-1],j=$[(H+1)%Z],V=u(M,q),F=u(q,j);Q.push({type:"L",x:q[0]-V[0]*J,y:q[1]-V[1]*J},{type:"C",cp1x:q[0],cp1y:q[1],cp2x:q[0],cp2y:q[1],x:q[0]+F[0]*J,y:q[1]+F[1]*J})}else Q.push({type:"L",x:q[0],y:q[1]})}let O=u($[Z-1],$[0]);return Q.push({type:"L",x:$[0][0]-O[0]*J,y:$[0][1]-O[1]*J},{type:"C",cp1x:$[0][0],cp1y:$[0][1],cp2x:$[0][0],cp2y:$[0][1],x:K,y:U},{type:"Z"}),Q},j$=({length:$=300,headWidth:G=185,headLength:J=120,shaftWidth:Z=80,direction:N="right",cornerRadius:K=0})=>{if($<=0||G<=0||J<=0||Z<=0)throw Error('All dimension parameters ("length", "headWidth", "headLength", "shaftWidth") must be positive numbers');if(G<Z)throw Error(`"headWidth" must be greater than or equal to "shaftWidth", got headWidth=${G} and shaftWidth=${Z}`);if(J>$)throw Error(`"headLength" must be less than or equal to "length", got headLength=${J} and length=${$}`);let U=(G-Z)/2,Q=U+Z,O=$-J,H=[[0,U],[O,U],[O,0],[$,G/2],[O,G],[O,Q],[0,Q]],q,M,j;if(N==="right")q=H,M=$,j=G;else if(N==="left")q=H.map(([T,D])=>[$-T,D]),M=$,j=G;else if(N==="down")q=[[U,0],[Q,0],[Q,O],[G,O],[G/2,$],[0,O],[U,O]],M=G,j=$;else q=[[U,$],[Q,$],[Q,J],[G,J],[G/2,0],[0,J],[U,J]],M=G,j=$;let F=M$(q,N==="right"||N==="left"?new Set([0,2,3,4,6]):new Set([0,1,3,4,5]),K);return{path:E(F),instructions:F,width:M,height:j,transformOrigin:`${M/2} ${j/2}`}},D$=($)=>{if($.includes("canary")||$.includes("experimental"))return parseInt($.slice(-8),10)>20230209;let[G]=$.split(".").map(Number);return G>18},T$=F$,L=({defaultName:$,documentationLink:G,width:J,height:Z,path:N,style:K,pathStyle:U,transformOrigin:Q,debug:O,effects:H=[],instructions:q,pixelDensity:M,durationInFrames:j,from:V,trimBefore:F,freeze:k,hidden:T,name:D,showInTimeline:I,controls:z,stack:W,...w})=>{let _=F0(()=>{return{overflow:"visible",...K??{}}},[K]),P=F0(()=>{return{transformBox:"fill-box",...U??{}}},[U]),C=B$(null),l=z0((X)=>{C.current=X},[]),f=z0((X)=>{C.current=X},[]),C0=E0.useMemoizedEffectDefinitions(H),i=E0.useUnsafeVideoConfig(),L0=D$(z$),n=D0("svg",{ref:H.length===0||!i?l:void 0,width:J,height:Z,viewBox:`0 0 ${J} ${Z}`,xmlns:"http://www.w3.org/2000/svg",style:H.length===0||!i?_:{overflow:"visible"},children:[v("path",{...L0?{transformOrigin:Q}:{"transform-origin":Q},d:N,style:P,...w}),O?q.map((X,t)=>{if(X.type==="C"){let Y=t===0?q[q.length-1]:q[t-1];if(Y.type==="V"||Y.type==="H"||Y.type==="a"||Y.type==="Z"||Y.type==="t"||Y.type==="q"||Y.type==="l"||Y.type==="c"||Y.type==="m"||Y.type==="h"||Y.type==="s"||Y.type==="v")return null;let{x:b0,y:R0}=Y;return D0(V$.Fragment,{children:[v("path",{d:`M ${b0} ${R0} ${X.cp1x} ${X.cp1y}`,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.4)"}),v("path",{d:`M ${X.x} ${X.y} ${X.cp2x} ${X.cp2y}`,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.4)"}),v("circle",{cx:X.cp1x,cy:X.cp1y,r:3,fill:"white",strokeWidth:2,stroke:"black"}),v("circle",{cx:X.cp2x,cy:X.cp2y,r:3,strokeWidth:2,fill:"white",stroke:"black"})]},t)}return null}):null]}),A0=H.length===0?n:v(T$,{ref:f,width:Math.ceil(J),height:Math.ceil(Z),effects:H,pixelDensity:M,showInTimeline:!1,style:_,controls:z,children:n}),P0=W===void 0?null:{stack:W};if(!i)return n;return v(E$,{layout:"none",from:V,trimBefore:F,freeze:k,hidden:T,showInTimeline:I,controls:z,_remotionInternalEffects:C0,durationInFrames:j,name:D??$,outlineRef:C,_remotionInternalDocumentationLink:D===void 0?G:void 0,...P0,children:A0})},B=({defaultValue:$,description:G,hiddenFromList:J=!1,max:Z,min:N,step:K=1})=>{return{type:"number",default:$,description:G,hiddenFromList:J,max:Z,min:N,step:K}},W0=({defaultValue:$,description:G})=>{return{type:"boolean",default:$,description:G}},W$=({defaultValue:$,description:G})=>{return{type:"color",default:$,description:G}},N0=({defaultValue:$,description:G,variants:J})=>{return{type:"enum",default:$,description:G,variants:Object.fromEntries(J.map((Z)=>[Z,{}]))}},A=($)=>{return{...T0.baseSchema,...$,fill:W$({defaultValue:"#0b84ff",description:"Fill"}),...T0.transformSchema}},I$=A({length:B({defaultValue:300,description:"Length",min:0}),headWidth:B({defaultValue:185,description:"Head Width",min:0}),headLength:B({defaultValue:120,description:"Head Length",min:0}),shaftWidth:B({defaultValue:80,description:"Shaft Width",min:0}),direction:N0({defaultValue:"right",description:"Direction",variants:["right","left","up","down"]}),cornerRadius:B({defaultValue:0,description:"Corner Radius",min:0})}),S$=({length:$,headWidth:G,headLength:J,shaftWidth:Z,direction:N,cornerRadius:K,...U})=>{return k$(L,{defaultName:"<Arrow>",documentationLink:"https://www.remotion.dev/docs/shapes/arrow",...j$({length:$,headWidth:G,headLength:J,shaftWidth:Z,direction:N,cornerRadius:K}),...U})},_$=q$.withSchema({Component:S$,componentName:"<Arrow>",componentIdentity:"dev.remotion.shapes.Arrow",schema:I$,supportsEffects:!0});O$.addSequenceStackTraces(_$);var k0=($,G)=>{let[J,Z]=$,N=Math.sqrt(J*J+Z*Z),K=(N-G)/N;return[J*K,Z*K]},I0=($,G)=>{let[J,Z]=$,N=Math.sqrt(J*J+Z*Z),K=G/N;return[J*K,Z*K]},g=($,{edgeRoundness:G,cornerRadius:J,roundCornerStrategy:Z})=>{return $.map(([N,K],U)=>{let Q=U===0?$.length-2:U-1,O=$[Q],H=U===$.length-1?1:U+1,q=$[H],M=[(N+q[0])/2,(K+q[1])/2],j=[(N+O[0])/2,(K+O[1])/2],V=[N-O[0],K-O[1]],F=[q[0]-N,q[1]-K];if(U===0){if(G!==null)return[{type:"M",x:M[0],y:M[1]}];if(J!==0){let D=k0(F,J);return[{type:"M",x:D[0]+N,y:D[1]+K}]}return[{type:"M",x:N,y:K}]}if(J&&G!==null)throw Error('"cornerRadius" and "edgeRoundness" cannot be specified at the same time.');if(G===null){if(J===0)return[{type:"L",x:N,y:K}];let D=k0(V,J),I=I0(V,J),z=I0(F,J),W=[O[0]+D[0],O[1]+D[1]];return[{type:"L",x:W[0],y:W[1]},Z==="arc"?{type:"a",rx:J,ry:J,xAxisRotation:0,dx:I[0]+z[0],dy:I[1]+z[1],largeArcFlag:!1,sweepFlag:!0}:{type:"C",x:W[0]+I[0]+z[0],y:W[1]+I[1]+z[1],cp1x:N,cp1y:K,cp2x:N,cp2y:K}]}let k=[j[0]+V[0]*G*0.5,j[1]+V[1]*G*0.5],T=[M[0]-F[0]*G*0.5,M[1]-F[1]*G*0.5];return[{type:"C",cp1x:k[0],cp1y:k[1],cp2x:T[0],cp2y:T[1],x:M[0],y:M[1]}]}).flat(1)},c=($,G)=>{if(typeof G!=="number"||G<=0)throw Error(`"${$}" must be a positive number, got ${G}`)},S0=({availableLength:$,pointerBaseWidth:G,pointerPosition:J})=>{let Z=$*J,N=G/2;return{center:Z,start:Math.max(0,Z-N),end:Math.min($,Z+N)}},K0=($,G)=>{return $[0]===G[0]&&$[1]===G[1]},w$=($)=>{let G=$.reduce((N,K)=>{let U=N[N.length-1];if(U&&K0(U.point,K.point))return N[N.length-1]={point:U.point,round:U.round&&K.round},N;return[...N,K]},[]);if(G.length===0)return G;let J=G[0],Z=G[G.length-1];if(K0(J.point,Z.point)){let[N,...K]=G,U=K.slice(0,-1),Q={point:N.point,round:N.round&&Z.round};return[Q,...U,Q]}return[...G,J]},o=($,G)=>{let J=G[0]-$[0],Z=G[1]-$[1],N=Math.sqrt(J*J+Z*Z);if(N===0)return[0,0];return[J/N,Z/N]},C$=({points:$,edgeRoundness:G,cornerRadius:J})=>{let Z=$.map((H)=>H.point);if(G!==null||J===0)return[...g(Z,{edgeRoundness:G,cornerRadius:J,roundCornerStrategy:"arc"}),{type:"Z"}];let N=K0($[0].point,$[$.length-1].point)?$.slice(0,-1):$,K=N[0],U=K.round?o(N[0].point,N[1].point):null,Q=U?[K.point[0]+U[0]*J,K.point[1]+U[1]*J]:K.point,O=[{type:"M",x:Q[0],y:Q[1]}];for(let H=1;H<N.length;H++){let q=N[H];if(!q.round){O.push({type:"L",x:q.point[0],y:q.point[1]});continue}let M=N[H-1].point,j=N[(H+1)%N.length].point,V=o(M,q.point),F=o(q.point,j),k=[q.point[0]-V[0]*J,q.point[1]-V[1]*J];O.push({type:"L",x:k[0],y:k[1]},{type:"a",rx:J,ry:J,xAxisRotation:0,dx:V[0]*J+F[0]*J,dy:V[1]*J+F[1]*J,largeArcFlag:!1,sweepFlag:!0})}if(K.round){let H=N[N.length-1].point,q=o(H,K.point);O.push({type:"L",x:K.point[0]-q[0]*J,y:K.point[1]-q[1]*J},{type:"a",rx:J,ry:J,xAxisRotation:0,dx:q[0]*J+U[0]*J,dy:q[1]*J+U[1]*J,largeArcFlag:!1,sweepFlag:!0})}return O.push({type:"Z"}),O},L$=({width:$=500,height:G=200,pointerLength:J=40,pointerBaseWidth:Z=60,pointerPosition:N=0.5,pointerDirection:K="down",edgeRoundness:U=null,cornerRadius:Q=0})=>{if(c("width",$),c("height",G),c("pointerLength",J),c("pointerBaseWidth",Z),typeof N!=="number"||N<0||N>1)throw Error(`"pointerPosition" must be a number between 0 and 1, got ${N}`);let O=S0({availableLength:$,pointerBaseWidth:Z,pointerPosition:N}),H=S0({availableLength:G,pointerBaseWidth:Z,pointerPosition:N}),q={up:[{point:[0,J],round:!0},{point:[O.start,J],round:!1},{point:[O.center,0],round:!1},{point:[O.end,J],round:!1},{point:[$,J],round:!0},{point:[$,G+J],round:!0},{point:[0,G+J],round:!0},{point:[0,J],round:!0}],down:[{point:[0,0],round:!0},{point:[$,0],round:!0},{point:[$,G],round:!0},{point:[O.end,G],round:!1},{point:[O.center,G+J],round:!1},{point:[O.start,G],round:!1},{point:[0,G],round:!0},{point:[0,0],round:!0}],left:[{point:[J,0],round:!0},{point:[$+J,0],round:!0},{point:[$+J,G],round:!0},{point:[J,G],round:!0},{point:[J,H.end],round:!1},{point:[0,H.center],round:!1},{point:[J,H.start],round:!1},{point:[J,0],round:!0}],right:[{point:[0,0],round:!0},{point:[$,0],round:!0},{point:[$,H.start],round:!1},{point:[$+J,H.center],round:!1},{point:[$,H.end],round:!1},{point:[$,G],round:!0},{point:[0,G],round:!0},{point:[0,0],round:!0}]},M=w$(q[K]),j=C$({points:M,edgeRoundness:U,cornerRadius:Q}),V=E(j),F=K==="left"||K==="right"?$+J:$,k=K==="up"||K==="down"?G+J:G,T=K==="left"?J:0,D=K==="up"?J:0;return{width:F,height:k,instructions:j,path:V,transformOrigin:`${T+$/2} ${D+G/2}`}},P$=A({width:B({defaultValue:500,description:"Width",min:1}),height:B({defaultValue:200,description:"Height",min:1}),pointerLength:B({defaultValue:40,description:"Pointer Length",min:1}),pointerBaseWidth:B({defaultValue:60,description:"Pointer Base Width",min:1}),pointerPosition:B({defaultValue:0.5,description:"Pointer Position",min:0,max:1,step:0.01}),pointerDirection:N0({defaultValue:"down",description:"Pointer Direction",variants:["up","down","left","right"]}),cornerRadius:B({defaultValue:0,description:"Corner Radius",min:0})}),b$=({width:$,height:G,pointerLength:J,pointerBaseWidth:Z,pointerPosition:N,pointerDirection:K,edgeRoundness:U,cornerRadius:Q,...O})=>{return A$(L,{defaultName:"<Callout>",documentationLink:"https://www.remotion.dev/docs/shapes/callout",...L$({width:$,height:G,pointerLength:J,pointerBaseWidth:Z,pointerPosition:N,pointerDirection:K,edgeRoundness:U,cornerRadius:Q}),...O})},R$=Y$.withSchema({Component:b$,componentName:"<Callout>",componentIdentity:"dev.remotion.shapes.Callout",schema:P$,supportsEffects:!0});X$.addSequenceStackTraces(R$);var y$=({radius:$})=>{let G=[{type:"M",x:$,y:0},{type:"a",rx:$,ry:$,xAxisRotation:0,largeArcFlag:!0,sweepFlag:!0,dx:0,dy:$*2},{type:"a",rx:$,ry:$,xAxisRotation:0,largeArcFlag:!0,sweepFlag:!0,dx:0,dy:-$*2},{type:"Z"}],J=E(G);return{height:$*2,width:$*2,path:J,instructions:G,transformOrigin:`${$} ${$}`}},l$=A({radius:B({defaultValue:100,description:"Radius",min:0})}),h$=({radius:$,...G})=>{return x$(L,{defaultName:"<Circle>",documentationLink:"https://www.remotion.dev/docs/shapes/circle",...y$({radius:$}),...G})},p$=v$.withSchema({Component:h$,componentName:"<Circle>",componentIdentity:"dev.remotion.shapes.Circle",schema:l$,supportsEffects:!0});f$.addSequenceStackTraces(p$);var d$=({rx:$,ry:G})=>{let J=[{type:"M",x:$,y:0},{type:"a",rx:$,ry:G,xAxisRotation:0,largeArcFlag:!0,sweepFlag:!1,dx:1,dy:0},{type:"Z"}],Z=E(J);return{width:$*2,height:G*2,path:Z,instructions:J,transformOrigin:`${$} ${G}`}},u$=A({rx:B({defaultValue:100,description:"X Radius",min:0}),ry:B({defaultValue:50,description:"Y Radius",min:0})}),c$=({rx:$,ry:G,...J})=>{return a$(L,{defaultName:"<Ellipse>",documentationLink:"https://www.remotion.dev/docs/shapes/ellipse",...d$({rx:$,ry:G}),...J})},o$=m$.withSchema({Component:c$,componentName:"<Ellipse>",componentIdentity:"dev.remotion.shapes.Ellipse",schema:u$,supportsEffects:!0});g$.addSequenceStackTraces(o$);var e$=({height:$,aspectRatio:G=1.1,bottomRoundnessAdjustment:J=0,depthAdjustment:Z=0})=>{let N=$*G,K=0.20909090909090908*N+J*N,U=0.69*$,Q=0.6*$,O=0.13*$,H=0.2636363636363636*N,q=0.13636363636363635*N,M=0.045454545454545456*N,j=0.07*$,V=0.17*$+Z*$,F=[{type:"M",x:N/2,y:$},{type:"C",cp1x:N/2-K,cp1y:U,cp2x:0,cp2y:Q,x:0,y:$/4},{type:"C",cp1x:0,cp1y:O,cp2x:N/4-H/2,cp2y:0,x:N/4,y:0},{type:"C",cp1x:N/4+H/2,cp1y:0,cp2x:N/2-M,cp2y:j,x:N/2,y:V},{type:"C",cp1x:N/2+M,cp1y:j,cp2x:N/2+q,cp2y:0,x:N/4*3,y:0},{type:"C",cp1x:N/4*3+H/2,cp1y:0,cp2x:N,cp2y:O,x:N,y:$/4},{type:"C",x:N/2,y:$,cp1x:N,cp1y:Q,cp2x:N/2+K,cp2y:U},{type:"Z"}];return{path:E(F),width:N,height:$,transformOrigin:`${N/2} ${$/2}`,instructions:F}},n$=A({height:B({defaultValue:100,description:"Height",min:0}),aspectRatio:B({defaultValue:1.1,description:"Aspect Ratio",min:0,step:0.01}),bottomRoundnessAdjustment:B({defaultValue:0,description:"Bottom Roundness Adjustment",step:0.01}),depthAdjustment:B({defaultValue:0,description:"Depth Adjustment",step:0.01})}),t$=({aspectRatio:$,height:G,bottomRoundnessAdjustment:J=0,depthAdjustment:Z=0,...N})=>{return i$(L,{defaultName:"<Heart>",documentationLink:"https://www.remotion.dev/docs/shapes/heart",...e$({aspectRatio:$,height:G,bottomRoundnessAdjustment:J,depthAdjustment:Z}),...N})},$G=s$.withSchema({Component:t$,componentName:"<Heart>",componentIdentity:"dev.remotion.shapes.Heart",schema:n$,supportsEffects:!0});r$.addSequenceStackTraces($G);var x=({counterClockwise:$,actualProgress:G,rotation:J,radius:Z,coord:N})=>{let K=$?-1:1,U=Math[N==="x"?"cos":"sin"](K*G*Math.PI*2+Math.PI*1.5+J)*Z+Z;return Math.round(U*1e5)/1e5},U0=({progress:$,radius:G,closePath:J=!0,counterClockwise:Z=!1,rotation:N=0})=>{let K=Math.min(Math.max($,0),1),U=x({actualProgress:K,coord:"x",counterClockwise:Z,radius:G,rotation:N}),Q=x({actualProgress:K,coord:"y",counterClockwise:Z,radius:G,rotation:N}),O={x:x({actualProgress:0,coord:"x",counterClockwise:Z,radius:G,rotation:N}),y:x({actualProgress:0,coord:"y",counterClockwise:Z,radius:G,rotation:N})},H={x:U,y:Q},q=[{type:"M",...O},{type:"A",rx:G,ry:G,xAxisRotation:0,largeArcFlag:!1,sweepFlag:!Z,x:K<=0.5?U:x({actualProgress:0.5,coord:"x",counterClockwise:Z,radius:G,rotation:N}),y:K<=0.5?Q:x({actualProgress:0.5,coord:"y",counterClockwise:Z,radius:G,rotation:N})},K>0.5?{type:"A",rx:G,ry:G,xAxisRotation:0,largeArcFlag:!1,sweepFlag:!Z,...H}:null,K>0&&K<1&&J?{type:"L",x:G,y:G}:null,J?{type:"Z"}:null].filter(Boolean),M=E(q);return{height:G*2,width:G*2,path:M,instructions:q,transformOrigin:`${G} ${G}`}},KG=A({radius:B({defaultValue:100,description:"Radius",min:0}),progress:B({defaultValue:0.5,description:"Progress",max:1,min:0,step:0.01}),closePath:W0({defaultValue:!0,description:"Close Path"}),counterClockwise:W0({defaultValue:!1,description:"Counter Clockwise"}),rotation:B({defaultValue:0,description:"Rotation",step:0.01})}),NG=({radius:$,progress:G,closePath:J,counterClockwise:Z,rotation:N,...K})=>{return ZG(L,{defaultName:"<Pie>",documentationLink:"https://www.remotion.dev/docs/shapes/pie",...U0({radius:$,progress:G,closePath:J,counterClockwise:Z,rotation:N}),...K})},UG=JG.withSchema({Component:NG,componentName:"<Pie>",componentIdentity:"dev.remotion.shapes.Pie",schema:KG,supportsEffects:!0});GG.addSequenceStackTraces(UG);function OG({points:$,radius:G,centerX:J,centerY:Z,cornerRadius:N,edgeRoundness:K}){let U=Math.PI*2/$,Q=Array($).fill(0).map((O,H)=>{let q=U*H-Math.PI/2,M={x:J+G*Math.cos(q),y:Z+G*Math.sin(q)};return[M.x,M.y]});return g([...Q,Q[0]],{edgeRoundness:K,cornerRadius:N,roundCornerStrategy:N>0?"bezier":"arc"})}var qG=({points:$,radius:G,cornerRadius:J=0,edgeRoundness:Z=null})=>{if($<3)throw Error(`"points" should be minimum 3, got ${$}`);let N=2*G,K=2*G,U=N/2,Q=K/2,O=OG({points:$,radius:G,centerX:U,centerY:Q,cornerRadius:J,edgeRoundness:Z}),H=p(O),q=d(E(H)),M=a.getBoundingBoxFromInstructions(H);return{path:q,width:M.width,height:M.height,transformOrigin:`${U} ${Q}`,instructions:O}},jG=A({points:B({defaultValue:5,description:"Points",min:3,step:1}),radius:B({defaultValue:100,description:"Radius",min:0}),cornerRadius:B({defaultValue:0,description:"Corner Radius",min:0})}),VG=({points:$,radius:G,cornerRadius:J,edgeRoundness:Z,...N})=>{return MG(L,{defaultName:"<Polygon>",documentationLink:"https://www.remotion.dev/docs/shapes/polygon",...qG({points:$,cornerRadius:J,edgeRoundness:Z,radius:G}),...N})},BG=HG.withSchema({Component:VG,componentName:"<Polygon>",componentIdentity:"dev.remotion.shapes.Polygon",schema:jG,supportsEffects:!0});QG.addSequenceStackTraces(BG);var EG=({width:$,height:G,edgeRoundness:J=null,cornerRadius:Z=0})=>{let N=[$/2,G/2],K=[...g([[Z,0],[$,0],[$,G],[0,G],[0,0]],{edgeRoundness:J,cornerRadius:Z,roundCornerStrategy:"arc"}),{type:"Z"}],U=E(K);return{width:$,height:G,instructions:K,path:U,transformOrigin:N.join(" ")}},TG=A({width:B({defaultValue:100,description:"Width",min:0}),height:B({defaultValue:100,description:"Height",min:0}),cornerRadius:B({defaultValue:0,description:"Corner Radius",min:0})}),WG=({width:$,edgeRoundness:G,height:J,cornerRadius:Z,...N})=>{return DG(L,{defaultName:"<Rect>",documentationLink:"https://www.remotion.dev/docs/shapes/rect",...EG({height:J,width:$,edgeRoundness:G,cornerRadius:Z}),...N})},kG=FG.withSchema({Component:WG,componentName:"<Rect>",componentIdentity:"dev.remotion.shapes.Rect",schema:TG,supportsEffects:!0});zG.addSequenceStackTraces(kG);var _0=0.5522847498307936,b=1.3333333333333333,R=({to:$,cp1:G,cp2:J})=>{return{type:"C",cp1x:G[0],cp1y:G[1],cp2x:J[0],cp2y:J[1],x:$[0],y:$[1]}},r=({from:$,to:G,radius:J,direction:Z})=>{if(Z==="top")return R({to:G,cp1:[$[0],$[1]-J*b],cp2:[G[0],G[1]-J*b]});if(Z==="right")return R({to:G,cp1:[$[0]+J*b,$[1]],cp2:[G[0]+J*b,G[1]]});if(Z==="bottom")return R({to:G,cp1:[$[0],$[1]+J*b],cp2:[G[0],G[1]+J*b]});return R({to:G,cp1:[$[0]-J*b,$[1]],cp2:[G[0]-J*b,G[1]]})},s=({from:$,to:G,edgeRoundness:J,direction:Z})=>{let N=G[0]-$[0],K=G[1]-$[1],U=Math.abs(N)*_0*J,Q=Math.abs(K)*_0*J;if(Z==="top-right")return R({to:G,cp1:[$[0],$[1]+Q],cp2:[G[0]-U,G[1]]});if(Z==="right-bottom")return R({to:G,cp1:[$[0]-U,$[1]],cp2:[G[0],G[1]-Q]});if(Z==="bottom-left")return R({to:G,cp1:[$[0],$[1]-Q],cp2:[G[0]+U,G[1]]});return R({to:G,cp1:[$[0]+U,$[1]],cp2:[G[0],G[1]+Q]})},_G=({cornerRadius:$,width:G,height:J})=>{return Math.min(Math.max($,0),G/2,J/2)},XG=({width:$,height:G,edgeRoundness:J=1,cornerRadius:Z=0})=>{let N=$/2,K=G/2,U=_G({cornerRadius:Z,width:$,height:G}),Q=[N,0],O=[$,K],H=[N,G],q=[0,K],M=U===0?Q:[N+U,U],j=U===0?O:[$-U,K-U],V=U===0?O:[$-U,K+U],F=U===0?H:[N+U,G-U],k=U===0?H:[N-U,G-U],T=U===0?q:[U,K+U],D=U===0?q:[U,K-U],I=U===0?Q:[N-U,U],z=[{type:"M",x:M[0],y:M[1]},s({from:M,to:j,edgeRoundness:J,direction:"top-right"})];if(U>0)z.push(r({from:j,to:V,radius:U,direction:"right"}));if(z.push(s({from:V,to:F,edgeRoundness:J,direction:"right-bottom"})),U>0)z.push(r({from:F,to:k,radius:U,direction:"bottom"}));if(z.push(s({from:k,to:T,edgeRoundness:J,direction:"bottom-left"})),U>0)z.push(r({from:T,to:D,radius:U,direction:"left"}));if(z.push(s({from:D,to:I,edgeRoundness:J,direction:"left-top"})),U>0)z.push(r({from:I,to:M,radius:U,direction:"top"}));return z.push({type:"Z"}),{path:E(z),width:$,height:G,transformOrigin:`${N} ${K}`,instructions:z}},wG=A({width:B({defaultValue:100,description:"Width",min:0}),height:B({defaultValue:140,description:"Height",min:0}),edgeRoundness:B({defaultValue:1,description:"Edge Roundness",min:0,step:0.01}),cornerRadius:B({defaultValue:0,description:"Corner Radius",min:0})}),CG=({width:$,height:G,edgeRoundness:J,cornerRadius:Z,...N})=>{return YG(L,{defaultName:"<Spark>",documentationLink:"https://www.remotion.dev/docs/shapes/spark",...XG({width:$,height:G,edgeRoundness:J,cornerRadius:Z}),...N})},LG=SG.withSchema({Component:CG,componentName:"<Spark>",componentIdentity:"dev.remotion.shapes.Spark",schema:wG,supportsEffects:!0});IG.addSequenceStackTraces(LG);var bG=({centerX:$,centerY:G,points:J,innerRadius:Z,outerRadius:N,cornerRadius:K,edgeRoundness:U})=>{let Q=Math.PI*2/(J*2),O=Array(J*2).fill(!0).map((H,q)=>{let M=q%2===0?N:Z,j=Q*q-Math.PI/2,V={x:$+M*Math.cos(j),y:G+M*Math.sin(j)};return[V.x,V.y]});return[...g([...O,O[0]],{edgeRoundness:U,cornerRadius:K,roundCornerStrategy:K>0?"bezier":"arc"}),{type:"Z"}]},RG=({points:$,innerRadius:G,outerRadius:J,cornerRadius:Z=0,edgeRoundness:N=null})=>{let K=J*2,U=J*2,Q=K/2,O=U/2,H=bG({centerX:Q,centerY:O,points:$,innerRadius:G,outerRadius:J,cornerRadius:Z,edgeRoundness:N}),q=p(H),M=d(E(q)),j=a.getBoundingBoxFromInstructions(q);return{path:M,width:j.width,height:j.height,transformOrigin:`${Q} ${O}`,instructions:H}},vG=A({points:B({defaultValue:5,description:"Points",min:3,step:1}),innerRadius:B({defaultValue:50,description:"Inner Radius",min:0}),outerRadius:B({defaultValue:100,description:"Outer Radius",min:0}),cornerRadius:B({defaultValue:0,description:"Corner Radius",min:0})}),yG=({innerRadius:$,outerRadius:G,points:J,cornerRadius:Z,edgeRoundness:N,...K})=>{return fG(L,{defaultName:"<Star>",documentationLink:"https://www.remotion.dev/docs/shapes/star",...RG({innerRadius:$,outerRadius:G,points:J,cornerRadius:Z,edgeRoundness:N}),...K})},xG=PG.withSchema({Component:yG,componentName:"<Star>",componentIdentity:"dev.remotion.shapes.Star",schema:vG,supportsEffects:!0});AG.addSequenceStackTraces(xG);var pG=({length:$,direction:G="right",edgeRoundness:J=null,cornerRadius:Z=0})=>{if(typeof $!=="number")throw Error(`"length" of a triangle must be a number, got ${JSON.stringify($)}`);let N=$,K=Math.sqrt($**2*0.75),U={up:[[N/2,0],[0,K],[N,K],[N/2,0]],right:[[0,0],[0,N],[K,N/2],[0,0]],down:[[0,0],[N,0],[N/2,K],[0,0]],left:[[K,0],[K,N],[0,N/2],[K,0]]},Q={left:K/3*2,right:K/3,up:N/2,down:N/2}[G],O={up:K/3*2,down:K/3,left:N/2,right:N/2}[G],H=[...g(U[G],{edgeRoundness:J,cornerRadius:Z,roundCornerStrategy:"bezier"}),{type:"Z"}];return{path:E(H),instructions:H,width:G==="up"||G==="down"?$:K,height:G==="up"||G==="down"?K:$,transformOrigin:`${Q} ${O}`}},mG=A({length:B({defaultValue:100,description:"Length",min:0}),direction:N0({defaultValue:"right",description:"Direction",variants:["right","left","up","down"]}),cornerRadius:B({defaultValue:0,description:"Corner Radius",min:0})}),dG=({length:$,direction:G,edgeRoundness:J,cornerRadius:Z,...N})=>{return gG(L,{defaultName:"<Triangle>",documentationLink:"https://www.remotion.dev/docs/shapes/triangle",...pG({length:$,direction:G,edgeRoundness:J,cornerRadius:Z}),...N})},aG=hG.withSchema({Component:dG,componentName:"<Triangle>",componentIdentity:"dev.remotion.shapes.Triangle",schema:mG,supportsEffects:!0});lG.addSequenceStackTraces(aG);import{useMemo as X0}from"react";import{AbsoluteFill as Y0}from"remotion";import{jsx as w0}from"react/jsx-runtime";var uG=({children:$,presentationDirection:G,presentationProgress:J,passedProps:Z})=>{let N=Math.sqrt(Z.width**2+Z.height**2)/2,{path:K}=U0({radius:N,progress:J}),U=Z0(K,-(N*2-Z.width)/2,-(N*2-Z.height)/2),Q=X0(()=>{return{width:"100%",height:"100%",clipPath:G==="exiting"?void 0:`path("${U}")`,...G==="entering"?Z.innerEnterStyle:Z.innerExitStyle}},[U,Z.innerEnterStyle,Z.innerExitStyle,G]),O=X0(()=>{return G==="entering"?Z.outerEnterStyle:Z.outerExitStyle},[Z.outerEnterStyle,Z.outerExitStyle,G]);return w0(Y0,{style:O,children:w0(Y0,{style:Q,children:$})})},cG=($)=>{return{component:uG,props:$??{}}};var{clockWipe:hJ}=e;var gJ=e;export{gJ as default,hJ as clockWipe};
1
+ var b0=Object.defineProperty;var R0=($,G)=>{for(var J in G)b0($,J,{get:G[J],enumerable:!0,configurable:!0,set:(Z)=>G[J]=()=>Z})};var e={};R0(e,{clockWipe:()=>DG});var f0=({instruction:$,lastPoint:G,progress:J})=>{let Z=G.x+($.x-G.x)*J,N=G.y+($.y-G.y)*J;return{type:"L",x:Z,y:N}};function y($,G,J){return{x:$.x+(G.x-$.x)*J,y:$.y+(G.y-$.y)*J}}function v0({progress:$,lastPoint:G,instruction:J}){let Z=$,N={x:G.x,y:G.y},K={x:J.cp1x,y:J.cp1y},H={x:J.cp2x,y:J.cp2y},U={x:J.x,y:J.y},O=y(N,K,Z),Q=y(K,H,Z),q=y(H,U,Z),M=y(O,Q,Z),j=y(Q,q,Z),V=y(M,j,Z);return{type:"C",cp1x:O.x,cp1y:O.y,cp2x:M.x,cp2y:M.y,x:V.x,y:V.y}}var y0=({instruction:$,lastPoint:G,progress:J})=>{if($.type==="M")return $;if($.type==="L")return f0({instruction:$,lastPoint:G,progress:J});if($.type==="C")return v0({instruction:$,lastPoint:G,progress:J});if($.type==="Z")return $;throw TypeError(`${$.type} is not supported.`)},x0=[[],[],[-0.5773502691896257,0.5773502691896257],[0,-0.7745966692414834,0.7745966692414834],[-0.33998104358485626,0.33998104358485626,-0.8611363115940526,0.8611363115940526],[0,-0.5384693101056831,0.5384693101056831,-0.906179845938664,0.906179845938664],[0.6612093864662645,-0.6612093864662645,-0.2386191860831969,0.2386191860831969,-0.932469514203152,0.932469514203152],[0,0.4058451513773972,-0.4058451513773972,-0.7415311855993945,0.7415311855993945,-0.9491079123427585,0.9491079123427585],[-0.1834346424956498,0.1834346424956498,-0.525532409916329,0.525532409916329,-0.7966664774136267,0.7966664774136267,-0.9602898564975363,0.9602898564975363],[0,-0.8360311073266358,0.8360311073266358,-0.9681602395076261,0.9681602395076261,-0.3242534234038089,0.3242534234038089,-0.6133714327005904,0.6133714327005904],[-0.14887433898163122,0.14887433898163122,-0.4333953941292472,0.4333953941292472,-0.6794095682990244,0.6794095682990244,-0.8650633666889845,0.8650633666889845,-0.9739065285171717,0.9739065285171717],[0,-0.26954315595234496,0.26954315595234496,-0.5190961292068118,0.5190961292068118,-0.7301520055740494,0.7301520055740494,-0.8870625997680953,0.8870625997680953,-0.978228658146057,0.978228658146057],[-0.1252334085114689,0.1252334085114689,-0.3678314989981802,0.3678314989981802,-0.5873179542866175,0.5873179542866175,-0.7699026741943047,0.7699026741943047,-0.9041172563704749,0.9041172563704749,-0.9815606342467192,0.9815606342467192],[0,-0.2304583159551348,0.2304583159551348,-0.44849275103644687,0.44849275103644687,-0.6423493394403402,0.6423493394403402,-0.8015780907333099,0.8015780907333099,-0.9175983992229779,0.9175983992229779,-0.9841830547185881,0.9841830547185881],[-0.10805494870734367,0.10805494870734367,-0.31911236892788974,0.31911236892788974,-0.5152486363581541,0.5152486363581541,-0.6872929048116855,0.6872929048116855,-0.827201315069765,0.827201315069765,-0.9284348836635735,0.9284348836635735,-0.9862838086968123,0.9862838086968123],[0,-0.20119409399743451,0.20119409399743451,-0.3941513470775634,0.3941513470775634,-0.5709721726085388,0.5709721726085388,-0.7244177313601701,0.7244177313601701,-0.8482065834104272,0.8482065834104272,-0.937273392400706,0.937273392400706,-0.9879925180204854,0.9879925180204854],[-0.09501250983763744,0.09501250983763744,-0.2816035507792589,0.2816035507792589,-0.45801677765722737,0.45801677765722737,-0.6178762444026438,0.6178762444026438,-0.755404408355003,0.755404408355003,-0.8656312023878318,0.8656312023878318,-0.9445750230732326,0.9445750230732326,-0.9894009349916499,0.9894009349916499],[0,-0.17848418149584785,0.17848418149584785,-0.3512317634538763,0.3512317634538763,-0.5126905370864769,0.5126905370864769,-0.6576711592166907,0.6576711592166907,-0.7815140038968014,0.7815140038968014,-0.8802391537269859,0.8802391537269859,-0.9506755217687678,0.9506755217687678,-0.9905754753144174,0.9905754753144174],[-0.0847750130417353,0.0847750130417353,-0.2518862256915055,0.2518862256915055,-0.41175116146284263,0.41175116146284263,-0.5597708310739475,0.5597708310739475,-0.6916870430603532,0.6916870430603532,-0.8037049589725231,0.8037049589725231,-0.8926024664975557,0.8926024664975557,-0.9558239495713977,0.9558239495713977,-0.9915651684209309,0.9915651684209309],[0,-0.16035864564022537,0.16035864564022537,-0.31656409996362983,0.31656409996362983,-0.46457074137596094,0.46457074137596094,-0.600545304661681,0.600545304661681,-0.7209661773352294,0.7209661773352294,-0.8227146565371428,0.8227146565371428,-0.9031559036148179,0.9031559036148179,-0.96020815213483,0.96020815213483,-0.9924068438435844,0.9924068438435844],[-0.07652652113349734,0.07652652113349734,-0.22778585114164507,0.22778585114164507,-0.37370608871541955,0.37370608871541955,-0.5108670019508271,0.5108670019508271,-0.636053680726515,0.636053680726515,-0.7463319064601508,0.7463319064601508,-0.8391169718222188,0.8391169718222188,-0.912234428251326,0.912234428251326,-0.9639719272779138,0.9639719272779138,-0.9931285991850949,0.9931285991850949],[0,-0.1455618541608951,0.1455618541608951,-0.2880213168024011,0.2880213168024011,-0.4243421202074388,0.4243421202074388,-0.5516188358872198,0.5516188358872198,-0.6671388041974123,0.6671388041974123,-0.7684399634756779,0.7684399634756779,-0.8533633645833173,0.8533633645833173,-0.9200993341504008,0.9200993341504008,-0.9672268385663063,0.9672268385663063,-0.9937521706203895,0.9937521706203895],[-0.06973927331972223,0.06973927331972223,-0.20786042668822127,0.20786042668822127,-0.34193582089208424,0.34193582089208424,-0.469355837986757,0.469355837986757,-0.5876404035069116,0.5876404035069116,-0.6944872631866827,0.6944872631866827,-0.7878168059792081,0.7878168059792081,-0.8658125777203002,0.8658125777203002,-0.926956772187174,0.926956772187174,-0.9700604978354287,0.9700604978354287,-0.9942945854823992,0.9942945854823992],[0,-0.1332568242984661,0.1332568242984661,-0.26413568097034495,0.26413568097034495,-0.3903010380302908,0.3903010380302908,-0.5095014778460075,0.5095014778460075,-0.6196098757636461,0.6196098757636461,-0.7186613631319502,0.7186613631319502,-0.8048884016188399,0.8048884016188399,-0.8767523582704416,0.8767523582704416,-0.9329710868260161,0.9329710868260161,-0.9725424712181152,0.9725424712181152,-0.9947693349975522,0.9947693349975522],[-0.06405689286260563,0.06405689286260563,-0.1911188674736163,0.1911188674736163,-0.3150426796961634,0.3150426796961634,-0.4337935076260451,0.4337935076260451,-0.5454214713888396,0.5454214713888396,-0.6480936519369755,0.6480936519369755,-0.7401241915785544,0.7401241915785544,-0.820001985973903,0.820001985973903,-0.8864155270044011,0.8864155270044011,-0.9382745520027328,0.9382745520027328,-0.9747285559713095,0.9747285559713095,-0.9951872199970213,0.9951872199970213]],l0=[[],[],[1,1],[0.8888888888888888,0.5555555555555556,0.5555555555555556],[0.6521451548625461,0.6521451548625461,0.34785484513745385,0.34785484513745385],[0.5688888888888889,0.47862867049936647,0.47862867049936647,0.23692688505618908,0.23692688505618908],[0.3607615730481386,0.3607615730481386,0.46791393457269104,0.46791393457269104,0.17132449237917036,0.17132449237917036],[0.4179591836734694,0.3818300505051189,0.3818300505051189,0.27970539148927664,0.27970539148927664,0.1294849661688697,0.1294849661688697],[0.362683783378362,0.362683783378362,0.31370664587788727,0.31370664587788727,0.22238103445337448,0.22238103445337448,0.10122853629037626,0.10122853629037626],[0.3302393550012598,0.1806481606948574,0.1806481606948574,0.08127438836157441,0.08127438836157441,0.31234707704000286,0.31234707704000286,0.26061069640293544,0.26061069640293544],[0.29552422471475287,0.29552422471475287,0.26926671930999635,0.26926671930999635,0.21908636251598204,0.21908636251598204,0.1494513491505806,0.1494513491505806,0.06667134430868814,0.06667134430868814],[0.2729250867779006,0.26280454451024665,0.26280454451024665,0.23319376459199048,0.23319376459199048,0.18629021092773426,0.18629021092773426,0.1255803694649046,0.1255803694649046,0.05566856711617366,0.05566856711617366],[0.24914704581340277,0.24914704581340277,0.2334925365383548,0.2334925365383548,0.20316742672306592,0.20316742672306592,0.16007832854334622,0.16007832854334622,0.10693932599531843,0.10693932599531843,0.04717533638651183,0.04717533638651183],[0.2325515532308739,0.22628318026289723,0.22628318026289723,0.2078160475368885,0.2078160475368885,0.17814598076194574,0.17814598076194574,0.13887351021978725,0.13887351021978725,0.09212149983772845,0.09212149983772845,0.04048400476531588,0.04048400476531588],[0.2152638534631578,0.2152638534631578,0.2051984637212956,0.2051984637212956,0.18553839747793782,0.18553839747793782,0.15720316715819355,0.15720316715819355,0.12151857068790319,0.12151857068790319,0.08015808715976021,0.08015808715976021,0.03511946033175186,0.03511946033175186],[0.2025782419255613,0.19843148532711158,0.19843148532711158,0.1861610000155622,0.1861610000155622,0.16626920581699392,0.16626920581699392,0.13957067792615432,0.13957067792615432,0.10715922046717194,0.10715922046717194,0.07036604748810812,0.07036604748810812,0.03075324199611727,0.03075324199611727],[0.1894506104550685,0.1894506104550685,0.18260341504492358,0.18260341504492358,0.16915651939500254,0.16915651939500254,0.14959598881657674,0.14959598881657674,0.12462897125553388,0.12462897125553388,0.09515851168249279,0.09515851168249279,0.062253523938647894,0.062253523938647894,0.027152459411754096,0.027152459411754096],[0.17944647035620653,0.17656270536699264,0.17656270536699264,0.16800410215645004,0.16800410215645004,0.15404576107681028,0.15404576107681028,0.13513636846852548,0.13513636846852548,0.11188384719340397,0.11188384719340397,0.08503614831717918,0.08503614831717918,0.0554595293739872,0.0554595293739872,0.02414830286854793,0.02414830286854793],[0.1691423829631436,0.1691423829631436,0.16427648374583273,0.16427648374583273,0.15468467512626524,0.15468467512626524,0.14064291467065065,0.14064291467065065,0.12255520671147846,0.12255520671147846,0.10094204410628717,0.10094204410628717,0.07642573025488905,0.07642573025488905,0.0497145488949698,0.0497145488949698,0.02161601352648331,0.02161601352648331],[0.1610544498487837,0.15896884339395434,0.15896884339395434,0.15276604206585967,0.15276604206585967,0.1426067021736066,0.1426067021736066,0.12875396253933621,0.12875396253933621,0.11156664554733399,0.11156664554733399,0.09149002162245,0.09149002162245,0.06904454273764123,0.06904454273764123,0.0448142267656996,0.0448142267656996,0.019461788229726478,0.019461788229726478],[0.15275338713072584,0.15275338713072584,0.14917298647260374,0.14917298647260374,0.14209610931838204,0.14209610931838204,0.13168863844917664,0.13168863844917664,0.11819453196151841,0.11819453196151841,0.10193011981724044,0.10193011981724044,0.08327674157670475,0.08327674157670475,0.06267204833410907,0.06267204833410907,0.04060142980038694,0.04060142980038694,0.017614007139152118,0.017614007139152118],[0.14608113364969041,0.14452440398997005,0.14452440398997005,0.13988739479107315,0.13988739479107315,0.13226893863333747,0.13226893863333747,0.12183141605372853,0.12183141605372853,0.10879729916714838,0.10879729916714838,0.09344442345603386,0.09344442345603386,0.0761001136283793,0.0761001136283793,0.057134425426857205,0.057134425426857205,0.036953789770852494,0.036953789770852494,0.016017228257774335,0.016017228257774335],[0.13925187285563198,0.13925187285563198,0.13654149834601517,0.13654149834601517,0.13117350478706238,0.13117350478706238,0.12325237681051242,0.12325237681051242,0.11293229608053922,0.11293229608053922,0.10041414444288096,0.10041414444288096,0.08594160621706773,0.08594160621706773,0.06979646842452049,0.06979646842452049,0.052293335152683286,0.052293335152683286,0.03377490158481415,0.03377490158481415,0.0146279952982722,0.0146279952982722],[0.13365457218610619,0.1324620394046966,0.1324620394046966,0.12890572218808216,0.12890572218808216,0.12304908430672953,0.12304908430672953,0.11499664022241136,0.11499664022241136,0.10489209146454141,0.10489209146454141,0.09291576606003515,0.09291576606003515,0.07928141177671895,0.07928141177671895,0.06423242140852585,0.06423242140852585,0.04803767173108467,0.04803767173108467,0.030988005856979445,0.030988005856979445,0.013411859487141771,0.013411859487141771],[0.12793819534675216,0.12793819534675216,0.1258374563468283,0.1258374563468283,0.12167047292780339,0.12167047292780339,0.1155056680537256,0.1155056680537256,0.10744427011596563,0.10744427011596563,0.09761865210411388,0.09761865210411388,0.08619016153195327,0.08619016153195327,0.0733464814110803,0.0733464814110803,0.05929858491543678,0.05929858491543678,0.04427743881741981,0.04427743881741981,0.028531388628933663,0.028531388628933663,0.0123412297999872,0.0123412297999872]],h0=($,G,J)=>{let Z=(1-J)*(1-J)*(1-J)*$[0]+3*(1-J)*(1-J)*J*$[1]+3*(1-J)*J*J*$[2]+J*J*J*$[3],N=(1-J)*(1-J)*(1-J)*G[0]+3*(1-J)*(1-J)*J*G[1]+3*(1-J)*J*J*G[2]+J*J*J*G[3];return{x:Z,y:N}},$0=({sx:$,sy:G,t:J})=>{let Z=3*($[1]-$[0]),N=3*($[2]-$[1]),K=3*($[3]-$[2]),H=3*(G[1]-G[0]),U=3*(G[2]-G[1]),O=3*(G[3]-G[2]),Q,q=20,M=J/2,j=0;for(let V=0;V<20;V++){Q=M*x0[20][V]+M;let B=1-Q,W=B*B*Z+2*B*Q*N+Q*Q*K,k=B*B*H+2*B*Q*U+Q*Q*O;j+=l0[20][V]*Math.sqrt(W*W+k*k)}return M*j};var p0=($,G,J)=>{let Z=3*($[1]-$[0]),N=3*($[2]-$[1]),K=3*($[3]-$[2]),H=3*(G[1]-G[0]),U=3*(G[2]-G[1]),O=3*(G[3]-G[2]),Q=1-J;return{x:Q*Q*Z+2*Q*J*N+J*J*K,y:Q*Q*H+2*Q*J*U+J*J*O}};var H0=({length:$,totalLength:G,func:J})=>{let Z=1,N=$/G,K=($-J(N))/G,H=0;while(Z>0.001){let U=J(N+K),O=Math.abs($-U)/G;if(O<Z)Z=O,N+=K;else{let Q=J(N-K),q=Math.abs($-Q)/G;if(q<Z)Z=q,N-=K;else K/=2}if(H++,H>500)break}return N};var g0=({startX:$,startY:G,cp1x:J,cp1y:Z,cp2x:N,cp2y:K,x:H,y:U})=>{let O={x:$,y:G},Q={x:J,y:Z},q={x:N,y:K},M={x:H,y:U},j=$0({sx:[O.x,Q.x,q.x,M.x],sy:[O.y,Q.y,q.y,M.y],t:1});return{getPointAtLength:(T)=>{let F=[O.x,Q.x,q.x,M.x],I=[O.y,Q.y,q.y,M.y],w=H0({length:T,totalLength:j,func:(_)=>{return $0({sx:F,sy:I,t:_})}});return h0(F,I,w)},getTangentAtLength:(T)=>{let F=[O.x,Q.x,q.x,M.x],I=[O.y,Q.y,q.y,M.y],w=H0({length:T,totalLength:j,func:(l)=>$0({sx:F,sy:I,t:l})}),_=p0(F,I,w),C=Math.sqrt(_.x*_.x+_.y*_.y),P;if(C>0)P={x:_.x/C,y:_.y/C};else P={x:0,y:0};return P},getTotalLength:()=>{return j},getC:()=>{return q},getD:()=>{return M},type:"cubic-bezier"}},Q0=({x0:$,x1:G,y0:J,y1:Z})=>{return{getTotalLength:()=>{return Math.sqrt(($-G)**2+(J-Z)**2)},getPointAtLength:(N)=>{let K=N/Math.sqrt(($-G)**2+(J-Z)**2);K=Number.isNaN(K)?1:K;let H=(G-$)*K,U=(Z-J)*K;return{x:$+H,y:J+U}},getTangentAtLength:()=>{let N=Math.sqrt((G-$)*(G-$)+(Z-J)*(Z-J));return{x:(G-$)/N,y:(Z-J)/N}},type:"linear"}},m0=($)=>{let G={x:0,y:0},J={x:0,y:0},Z=[];for(let N=0;N<$.length;N++){let K=$[N];if(K.type==="M")G={x:K.x,y:K.y},J={x:G.x,y:G.y},Z.push({startPoint:{x:K.x,y:K.y},instructionsAndInfo:[{instruction:K,function:null,length:0,startPoint:G}]});if(K.type==="L"){if(Z.length>0){let H=Math.sqrt((G.x-K.x)**2+(G.y-K.y)**2);Z[Z.length-1].instructionsAndInfo.push({instruction:K,length:H,function:Q0({x0:G.x,x1:K.x,y0:G.y,y1:K.y}),startPoint:G})}G={x:K.x,y:K.y}}if(K.type==="Z"){if(Z.length>0){let H=Math.sqrt((Z[Z.length-1].startPoint.x-G.x)**2+(Z[Z.length-1].startPoint.y-G.y)**2);Z[Z.length-1].instructionsAndInfo.push({instruction:K,function:Q0({x0:G.x,x1:J.x,y0:G.y,y1:J.y}),length:H,startPoint:{...G}})}G={x:J.x,y:J.y}}if(K.type==="C"){let H=g0({startX:G.x,startY:G.y,cp1x:K.cp1x,cp1y:K.cp1y,cp2x:K.cp2x,cp2y:K.cp2y,x:K.x,y:K.y}),U=H.getTotalLength();if(Z.length>0)Z[Z.length-1].instructionsAndInfo.push({instruction:K,length:U,function:H,startPoint:{...G}});G={x:K.x,y:K.y}}}return Z},j0={a:7,A:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},d0=($,G)=>{let J=[],Z=j0[G];if($.length%Z!==0)throw Error(`Expected number of arguments of SVG instruction "${G} ${$.join(" ")}" to be a multiple of ${Z}`);for(let N=0;N<$.length;N+=Z)J.push($.slice(N,N+Z));return J},S=($,G,J)=>{return d0($,G).map((Z)=>{return J(Z)})},a0=/([astvzqmhlc])([^astvzqmhlc]*)/gi,u0=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,c0=($,G)=>{let J=$.match(u0);if(!J){if(G==="Z"||G==="z")return[];throw Error(`Malformed path data: ${G} was expected to have numbers afterwards`)}let Z=j0[G];if(J.length%Z!==0)throw Error(`Malformed path data: ${G} was expected to have a multiple of ${Z} numbers, but got "${G} ${J.join(" ")} instead"`);return J.map(Number)},m=($)=>{if(!$)throw Error("No path provided");let G=$.match(a0);if(!G)throw Error(`No path elements found in string ${$}`);return G.map((J)=>{let Z=J.charAt(0),N=c0(J.substring(1),Z);if(Z==="M"&&N.length>2){let K=[];return K.push({type:Z,x:N[0],y:N[1]}),K.push(...S(N.slice(2),"L",(H)=>({type:"L",x:H[0],y:H[1]}))),K}if(Z==="m"&&N.length>2){let K=[];return K.push({type:Z,dx:N[0],dy:N[1]}),K.push(...S(N.slice(2),"l",(H)=>({type:"l",dx:H[0],dy:H[1]}))),K}if(Z==="Z"||Z==="z")return[{type:"Z"}];if(Z==="A")return S(N,Z,(K)=>({type:Z,rx:K[0],ry:K[1],xAxisRotation:K[2],largeArcFlag:K[3]===1,sweepFlag:K[4]===1,x:K[5],y:K[6]}));if(Z==="a")return S(N,Z,(K)=>({type:Z,rx:K[0],ry:K[1],xAxisRotation:K[2],largeArcFlag:K[3]===1,sweepFlag:K[4]===1,dx:K[5],dy:K[6]}));if(Z==="C")return S(N,Z,(K)=>({type:Z,cp1x:K[0],cp1y:K[1],cp2x:K[2],cp2y:K[3],x:K[4],y:K[5]}));if(Z==="c")return S(N,Z,(K)=>({type:Z,cp1dx:K[0],cp1dy:K[1],cp2dx:K[2],cp2dy:K[3],dx:K[4],dy:K[5]}));if(Z==="S")return S(N,Z,(K)=>({type:Z,cpx:K[0],cpy:K[1],x:K[2],y:K[3]}));if(Z==="s")return S(N,Z,(K)=>({type:Z,cpdx:K[0],cpdy:K[1],dx:K[2],dy:K[3]}));if(Z==="H")return S(N,Z,(K)=>({type:Z,x:K[0]}));if(Z==="h")return S(N,Z,(K)=>({type:Z,dx:K[0]}));if(Z==="V")return S(N,Z,(K)=>({type:Z,y:K[0]}));if(Z==="v")return S(N,Z,(K)=>({type:Z,dy:K[0]}));if(Z==="L")return S(N,Z,(K)=>({type:Z,x:K[0],y:K[1]}));if(Z==="M")return S(N,Z,(K)=>({type:Z,x:K[0],y:K[1]}));if(Z==="m")return S(N,Z,(K)=>({type:Z,dx:K[0],dy:K[1]}));if(Z==="l")return S(N,Z,(K)=>({type:Z,dx:K[0],dy:K[1]}));if(Z==="Q")return S(N,Z,(K)=>({type:Z,cpx:K[0],cpy:K[1],x:K[2],y:K[3]}));if(Z==="q")return S(N,Z,(K)=>({type:Z,cpdx:K[0],cpdy:K[1],dx:K[2],dy:K[3]}));if(Z==="T")return S(N,Z,(K)=>({type:Z,x:K[0],y:K[1]}));if(Z==="t")return S(N,Z,(K)=>({type:Z,dx:K[0],dy:K[1]}));throw Error(`Invalid path element ${J}`)},[]).flat(1)},O0=($,G)=>{let J=G.x+0.6666666666666666*($.cpx-G.x),Z=G.y+0.6666666666666666*($.cpy-G.y),N=$.x+0.6666666666666666*($.cpx-$.x),K=$.y+0.6666666666666666*($.cpy-$.y);return{type:"C",cp1x:J,cp1y:Z,cp2x:N,cp2y:K,x:$.x,y:$.y}},o0=({segments:$,iterate:G})=>{let J=0,Z=0,N=0,K=0,H=null,U=null;return $.map((Q,q)=>{let M=G({segment:Q,x:J,y:Z,prevSegment:$[q-1]??null,initialX:N,initialY:K,cpX:H,cpY:U});switch(Q.type){case"M":N=Q.x,K=Q.y,J=Q.x,Z=Q.y,H=null,U=null;break;case"Q":J=Q.x,Z=Q.y,H=Q.cpx,U=Q.cpy;break;case"A":J=Q.x,Z=Q.y,H=null,U=null;break;case"C":J=Q.x,Z=Q.y,H=Q.cp2x,U=Q.cp2y;break;case"S":J=Q.x,Z=Q.y,H=Q.cpx,U=Q.cpy;break;case"T":if(H!==null&&U!==null)H=J-(H-J),U=Z-(U-Z);J=Q.x,Z=Q.y;break;case"L":J=Q.x,Z=Q.y,H=null,U=null;break;case"V":Z=Q.y,H=null,U=null;break;case"H":J=Q.x,H=null,U=null;break;case"Z":J=N,Z=K,H=null,U=null;break;default:throw Error(`Unexpected instruction ${Q.type}`)}return M}).flat(1)},h=Math.PI*2;function r0($,G){let J=1.3333333333333333*Math.tan(G/4),Z=Math.cos($),N=Math.sin($),K=Math.cos($+G),H=Math.sin($+G);return[Z,N,Z-N*J,N+Z*J,K+H*J,H-K*J,K,H]}function q0($,G,J,Z){let N=$*Z-G*J<0?-1:1,K=$*J+G*Z;if(K>1)K=1;if(K<-1)K=-1;return N*Math.acos(K)}function s0({x1:$,y1:G,x2:J,y2:Z,largeArcFlag:N,sweepFlag:K,rx:H,ry:U,sin_phi:O,cos_phi:Q}){let q=Q*($-J)/2+O*(G-Z)/2,M=-O*($-J)/2+Q*(G-Z)/2,j=H*H,V=U*U,B=q*q,W=M*M,k=j*V-j*W-V*B;if(k<0)k=0;k/=j*W+V*B,k=Math.sqrt(k)*(N===K?-1:1);let D=k*H/U*M,T=k*-U/H*q,F=Q*D-O*T+($+J)/2,I=O*D+Q*T+(G+Z)/2,w=(q-D)/H,_=(M-T)/U,C=(-q-D)/H,P=(-M-T)/U,l=q0(1,0,w,_),f=q0(w,_,C,P);if(K===!1&&f>0)f-=h;if(K===!0&&f<0)f+=h;return[F,I,l,f]}function e0({x1:$,y1:G,x2:J,y2:Z,largeArcFlag:N,sweepFlag:K,rx:H,ry:U,phi:O}){let Q=Math.sin(O*h/360),q=Math.cos(O*h/360),M=q*($-J)/2+Q*(G-Z)/2,j=-Q*($-J)/2+q*(G-Z)/2;if(M===0&&j===0)return[];if(H===0||U===0)return[];H=Math.abs(H),U=Math.abs(U);let V=M*M/(H*H)+j*j/(U*U);if(V>1)H*=Math.sqrt(V),U*=Math.sqrt(V);let B=s0({x1:$,y1:G,x2:J,y2:Z,largeArcFlag:N,sweepFlag:K,rx:H,ry:U,sin_phi:Q,cos_phi:q}),W=[],k=B[2],D=B[3],T=Math.max(Math.ceil(Math.abs(D)/(h/4)),1);D/=T;for(let F=0;F<T;F++)W.push(r0(k,D)),k+=D;return W.map((F)=>{for(let I=0;I<F.length;I+=2){let w=F[I+0],_=F[I+1];w*=H,_*=U;let C=q*w-Q*_,P=Q*w+q*_;F[I+0]=C+B[0],F[I+1]=P+B[1]}return F})}var V0=($)=>{return o0({segments:$,iterate:({segment:G,prevSegment:J,x:Z,y:N,cpX:K,cpY:H})=>{if(G.type==="H")return[{type:"L",x:G.x,y:N}];if(G.type==="V")return[{type:"L",x:Z,y:G.y}];if(G.type==="A"){let{x:U,y:O}=G,Q=e0({x1:Z,y1:N,x2:U,y2:O,largeArcFlag:G.largeArcFlag,sweepFlag:G.sweepFlag,rx:G.rx,ry:G.ry,phi:G.xAxisRotation});if(Q.length===0)return[{type:"L",x:G.x,y:G.y}];return Q.map((M)=>{return{type:"C",cp1x:M[2],cp1y:M[3],cp2x:M[4],cp2y:M[5],x:M[6],y:M[7]}})}if(G.type==="T"){let U=0,O=0;if(J&&(J.type==="Q"||J.type==="T"))U=K,O=H;else U=Z,O=N;let Q=U-Z,q=O-N,M=Z-Q,j=N-q;return[O0({type:"Q",cpx:M,cpy:j,x:G.x,y:G.y},{x:Z,y:N})]}if(G.type==="S"){let U=0,O=0;if(J&&J.type==="C")U=J.cp2x,O=J.cp2y;else if(J&&J.type==="S")U=J.cpx,O=J.cpy;else U=Z,O=N;let Q=U-Z,q=O-N,M=Z-Q,j=N-q;return[{type:"C",cp1x:M,cp1y:j,cp2x:G.cpx,cp2y:G.cpy,x:G.x,y:G.y}]}if(G.type==="Q")return[O0(G,{x:Z,y:N})];return[G]}})},i0=($)=>{if($.type==="A")return`A ${$.rx} ${$.ry} ${$.xAxisRotation} ${Number($.largeArcFlag)} ${Number($.sweepFlag)} ${$.x} ${$.y}`;if($.type==="a")return`a ${$.rx} ${$.ry} ${$.xAxisRotation} ${Number($.largeArcFlag)} ${Number($.sweepFlag)} ${$.dx} ${$.dy}`;if($.type==="C")return`C ${$.cp1x} ${$.cp1y} ${$.cp2x} ${$.cp2y} ${$.x} ${$.y}`;if($.type==="c")return`c ${$.cp1dx} ${$.cp1dy} ${$.cp2dx} ${$.cp2dy} ${$.dx} ${$.dy}`;if($.type==="S")return`S ${$.cpx} ${$.cpy} ${$.x} ${$.y}`;if($.type==="s")return`s ${$.cpdx} ${$.cpdy} ${$.dx} ${$.dy}`;if($.type==="Q")return`Q ${$.cpx} ${$.cpy} ${$.x} ${$.y}`;if($.type==="q")return`q ${$.cpdx} ${$.cpdy} ${$.dx} ${$.dy}`;if($.type==="Z")return"Z";if($.type==="H")return`H ${$.x}`;if($.type==="h")return`h ${$.dx}`;if($.type==="V")return`V ${$.y}`;if($.type==="v")return`v ${$.dy}`;if($.type==="L")return`L ${$.x} ${$.y}`;if($.type==="l")return`l ${$.dx} ${$.dy}`;if($.type==="M")return`M ${$.x} ${$.y}`;if($.type==="m")return`m ${$.dx} ${$.dy}`;if($.type==="T")return`T ${$.x} ${$.y}`;if($.type==="t")return`t ${$.dx} ${$.dy}`;throw Error(`Unknown instruction type: ${$.type}`)},E=($)=>{return $.map((G)=>{return i0(G)}).join(" ")},G0=($)=>{let G=[],J=0,Z=0,N=0,K=0;for(let H=0;H<$.length;H++){let U=$[H];if(U.type==="M")N=U.x,K=U.y;else if(U.type==="m")N+=U.dx,K+=U.dy;if(U.type==="A"||U.type==="C"||U.type==="L"||U.type==="M"||U.type==="Q"||U.type==="S"||U.type==="T"){G.push(U),J=U.x,Z=U.y;continue}if(U.type==="a"||U.type==="c"||U.type==="l"||U.type==="m"||U.type==="q"||U.type==="s"||U.type==="t"){let O=J,Q=Z;if(J+=U.dx,Z+=U.dy,U.type==="a"){G.push({type:"A",largeArcFlag:U.largeArcFlag,rx:U.rx,ry:U.ry,sweepFlag:U.sweepFlag,xAxisRotation:U.xAxisRotation,x:J,y:Z});continue}if(U.type==="c"){G.push({type:"C",cp1x:U.cp1dx+O,cp1y:U.cp1dy+Q,cp2x:U.cp2dx+O,cp2y:U.cp2dy+Q,x:J,y:Z});continue}if(U.type==="l"){G.push({type:"L",x:J,y:Z});continue}if(U.type==="m"){G.push({type:"M",x:J,y:Z});continue}if(U.type==="q"){G.push({type:"Q",cpx:U.cpdx+O,cpy:U.cpdy+Q,x:J,y:Z});continue}if(U.type==="s"){G.push({type:"S",cpx:U.cpdx+O,cpy:U.cpdy+Q,x:J,y:Z});continue}if(U.type==="t"){G.push({type:"T",x:J,y:Z});continue}}if(U.type==="H"){G.push(U),J=U.x;continue}if(U.type==="V"){G.push(U),Z=U.y;continue}if(U.type==="Z"){G.push(U),J=N,Z=K;continue}if(U.type==="h"){J+=U.dx,G.push({type:"H",x:J});continue}if(U.type==="v"){Z+=U.dy,G.push({type:"V",y:Z});continue}throw Error("Unknown instruction type: "+U.type)}return G};var p=($)=>{let G=G0($);return V0(G)},n0=($,G)=>{let J=m($),Z=p(J),N=m0(Z),K=[],H=0;for(let U of N)for(let O of U.instructionsAndInfo){if(H+O.length>G){let q=(G-H)/O.length,M=y0({instruction:O.instruction,lastPoint:O.startPoint,progress:q});return K.push(M),E(K)}if(H+=O.length,K.push(O.instruction),H===G)return E(K)}return E(K)},t0=($)=>{let G=G0(m($));return G.map((J,Z)=>{if(J.type==="Z")return null;if(J.type==="H"||J.type==="V")return null;let N=[J.x-5,J.y-5],K=[J.x+5,J.y-5],H=[J.x-5,J.y+5],U=[J.x+5,J.y+5],O=[{type:"M",x:N[0],y:N[1]},{type:"L",x:K[0],y:K[1]},{type:"L",x:U[0],y:U[1]},{type:"L",x:H[0],y:H[1]},{type:"Z"}];return{d:E(O),color:Z===G.length-1?"red":J.type==="M"?"blue":"green"}}).filter(Boolean)},$$=0.00000001;function G$($){let G=Math.min($[0],$[2]),J=Math.max($[0],$[2]);if($[1]>$[0]?$[2]>=$[1]:$[2]<=$[1])return[G,J];let Z=($[0]*$[2]-$[1]*$[1])/($[0]-2*$[1]+$[2]);return Z<G?[Z,J]:[G,Z]}function M0($){let G=$[0]-3*$[1]+3*$[2]-$[3];if(Math.abs(G)<$$){if($[0]===$[3]&&$[0]===$[1])return[$[0],$[3]];return G$([$[0],-0.5*$[0]+1.5*$[1],$[0]-3*$[1]+3*$[2]])}let J=-$[0]*$[2]+$[0]*$[3]-$[1]*$[2]-$[1]*$[3]+$[1]*$[1]+$[2]*$[2];if(J<=0)return[Math.min($[0],$[3]),Math.max($[0],$[3])];let Z=Math.sqrt(J),N=Math.min($[0],$[3]),K=Math.max($[0],$[3]),H=$[0]-2*$[1]+$[2];for(let U=(H+Z)/G,O=1;O<=2;U=(H-Z)/G,O++)if(U>0&&U<1){let Q=$[0]*(1-U)*(1-U)*(1-U)+$[1]*3*(1-U)*(1-U)*U+$[2]*3*(1-U)*U*U+$[3]*U*U*U;if(Q<N)N=Q;if(Q>K)K=Q}return[N,K]}var B0=($)=>{let G=1/0,J=1/0,Z=-1/0,N=-1/0,K=0,H=0,U=0,O=0;for(let Q of $)switch(Q.type){case"M":{if(U=Q.x,O=Q.y,G>Q.x)G=Q.x;if(J>Q.y)J=Q.y;if(Z<Q.x)Z=Q.x;if(N<Q.y)N=Q.y;K=Q.x,H=Q.y;break}case"L":{if(G>Q.x)G=Q.x;if(J>Q.y)J=Q.y;if(Z<Q.x)Z=Q.x;if(N<Q.y)N=Q.y;K=Q.x,H=Q.y;break}case"C":{let q=M0([K,Q.cp1x,Q.cp2x,Q.x]);if(G>q[0])G=q[0];if(Z<q[1])Z=q[1];let M=M0([H,Q.cp1y,Q.cp2y,Q.y]);if(J>M[0])J=M[0];if(N<M[1])N=M[1];K=Q.x,H=Q.y;break}case"Z":K=U,H=O;break;default:throw Error(`Unknown instruction ${Q.type}`)}return{x1:G,y1:J,x2:Z,y2:N,viewBox:`${G} ${J} ${Z-G} ${N-J}`,width:Z-G,height:N-J}},J$=($)=>{let G=m($),J=V0(G0(G));return B0(J)},Z$=($,G,J)=>{return $.map((Z)=>{if(Z.type==="a"||Z.type==="c"||Z.type==="v"||Z.type==="s"||Z.type==="h"||Z.type==="l"||Z.type==="m"||Z.type==="q"||Z.type==="t")return Z;if(Z.type==="V")return{type:"V",y:Z.y+J};if(Z.type==="H")return{type:"H",x:Z.x+G};if(Z.type==="A")return{type:"A",rx:Z.rx,ry:Z.ry,largeArcFlag:Z.largeArcFlag,sweepFlag:Z.sweepFlag,xAxisRotation:Z.xAxisRotation,x:Z.x+G,y:Z.y+J};if(Z.type==="Z")return Z;if(Z.type==="C")return{type:"C",cp1x:Z.cp1x+G,cp1y:Z.cp1y+J,cp2x:Z.cp2x+G,cp2y:Z.cp2y+J,x:Z.x+G,y:Z.y+J};if(Z.type==="Q")return{type:"Q",cpx:Z.cpx+G,cpy:Z.cpy+J,x:Z.x+G,y:Z.y+J};if(Z.type==="S")return{type:"S",cpx:Z.cpx+G,cpy:Z.cpy+J,x:Z.x+G,y:Z.y+J};if(Z.type==="T")return{type:"T",x:Z.x+G,y:Z.y+J};if(Z.type==="L")return{type:"L",x:Z.x+G,y:Z.y+J};if(Z.type==="M")return{type:"M",x:Z.x+G,y:Z.y+J};throw Error(`Unknown segment type: ${Z.type}`)})},J0=($,G,J)=>{return E(Z$(m($),G,J))};var d=($)=>{let G=J$($);return J0($,-G.x1,-G.y1)};var a={getBoundingBoxFromInstructions:B0,debugPath:t0,cutPath:n0};import{Interactive as K$}from"remotion";import H$,{useCallback as z0,useMemo as F0,useRef as Q$}from"react";import{version as O$}from"react-dom";import{HtmlInCanvas as q$,Internals as E0,Sequence as M$}from"remotion";import{jsx as v,jsxs as k0}from"react/jsx-runtime";import{Internals as D0,Interactive as Z0}from"remotion";import{jsx as z$}from"react/jsx-runtime";import{Interactive as k$}from"remotion";import{jsx as I$}from"react/jsx-runtime";import{Interactive as X$}from"remotion";import{jsx as w$}from"react/jsx-runtime";import{Interactive as A$}from"remotion";import{jsx as b$}from"react/jsx-runtime";import{Interactive as v$}from"remotion";import{jsx as x$}from"react/jsx-runtime";import{Interactive as p$}from"remotion";import{jsx as g$}from"react/jsx-runtime";import{Interactive as a$}from"remotion";import{jsx as o$}from"react/jsx-runtime";import{Interactive as e$}from"remotion";import{jsx as n$}from"react/jsx-runtime";import{Interactive as GG}from"remotion";import{jsx as KG}from"react/jsx-runtime";import{Interactive as HG}from"remotion";import{jsx as qG}from"react/jsx-runtime";import{Interactive as VG}from"remotion";import{jsx as zG}from"react/jsx-runtime";var u=($,G)=>{let J=G[0]-$[0],Z=G[1]-$[1],N=Math.sqrt(J*J+Z*Z);return N===0?[0,0]:[J/N,Z/N]},N$=($,G,J)=>{let Z=$.length;if(J===0)return[{type:"M",x:$[0][0],y:$[0][1]},...$.slice(1).map(([Q,q])=>({type:"L",x:Q,y:q})),{type:"Z"}];let N=u($[0],$[1]),K=$[0][0]+N[0]*J,H=$[0][1]+N[1]*J,U=[{type:"M",x:K,y:H}];for(let Q=1;Q<Z;Q++){let q=$[Q];if(G.has(Q)){let M=$[Q-1],j=$[(Q+1)%Z],V=u(M,q),B=u(q,j);U.push({type:"L",x:q[0]-V[0]*J,y:q[1]-V[1]*J},{type:"C",cp1x:q[0],cp1y:q[1],cp2x:q[0],cp2y:q[1],x:q[0]+B[0]*J,y:q[1]+B[1]*J})}else U.push({type:"L",x:q[0],y:q[1]})}let O=u($[Z-1],$[0]);return U.push({type:"L",x:$[0][0]-O[0]*J,y:$[0][1]-O[1]*J},{type:"C",cp1x:$[0][0],cp1y:$[0][1],cp2x:$[0][0],cp2y:$[0][1],x:K,y:H},{type:"Z"}),U},U$=({length:$=300,headWidth:G=185,headLength:J=120,shaftWidth:Z=80,direction:N="right",cornerRadius:K=0})=>{if($<=0||G<=0||J<=0||Z<=0)throw Error('All dimension parameters ("length", "headWidth", "headLength", "shaftWidth") must be positive numbers');if(G<Z)throw Error(`"headWidth" must be greater than or equal to "shaftWidth", got headWidth=${G} and shaftWidth=${Z}`);if(J>$)throw Error(`"headLength" must be less than or equal to "length", got headLength=${J} and length=${$}`);let H=(G-Z)/2,U=H+Z,O=$-J,Q=[[0,H],[O,H],[O,0],[$,G/2],[O,G],[O,U],[0,U]],q,M,j;if(N==="right")q=Q,M=$,j=G;else if(N==="left")q=Q.map(([k,D])=>[$-k,D]),M=$,j=G;else if(N==="down")q=[[H,0],[U,0],[U,O],[G,O],[G/2,$],[0,O],[H,O]],M=G,j=$;else q=[[H,$],[U,$],[U,J],[G,J],[G/2,0],[0,J],[H,J]],M=G,j=$;let B=N$(q,N==="right"||N==="left"?new Set([0,2,3,4,6]):new Set([0,1,3,4,5]),K);return{path:E(B),instructions:B,width:M,height:j,transformOrigin:`${M/2} ${j/2}`}},j$=($)=>{if($.includes("canary")||$.includes("experimental"))return parseInt($.slice(-8),10)>20230209;let[G]=$.split(".").map(Number);return G>18},V$=q$,L=({defaultName:$,documentationLink:G,width:J,height:Z,path:N,style:K,pathStyle:H,transformOrigin:U,debug:O,effects:Q=[],instructions:q,pixelDensity:M,durationInFrames:j,from:V,trimBefore:B,freeze:W,hidden:k,name:D,showInTimeline:T,controls:F,...I})=>{let w=F0(()=>{return{overflow:"visible",...K??{}}},[K]),_=F0(()=>{return{transformBox:"fill-box",...H??{}}},[H]),C=Q$(null),P=z0((X)=>{C.current=X},[]),l=z0((X)=>{C.current=X},[]),f=E0.useMemoizedEffectDefinitions(Q),i=E0.useUnsafeVideoConfig(),C0=j$(O$),n=k0("svg",{ref:Q.length===0||!i?P:void 0,width:J,height:Z,viewBox:`0 0 ${J} ${Z}`,xmlns:"http://www.w3.org/2000/svg",style:Q.length===0||!i?w:{overflow:"visible"},children:[v("path",{...C0?{transformOrigin:U}:{"transform-origin":U},d:N,style:_,...I}),O?q.map((X,t)=>{if(X.type==="C"){let Y=t===0?q[q.length-1]:q[t-1];if(Y.type==="V"||Y.type==="H"||Y.type==="a"||Y.type==="Z"||Y.type==="t"||Y.type==="q"||Y.type==="l"||Y.type==="c"||Y.type==="m"||Y.type==="h"||Y.type==="s"||Y.type==="v")return null;let{x:A0,y:P0}=Y;return k0(H$.Fragment,{children:[v("path",{d:`M ${A0} ${P0} ${X.cp1x} ${X.cp1y}`,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.4)"}),v("path",{d:`M ${X.x} ${X.y} ${X.cp2x} ${X.cp2y}`,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.4)"}),v("circle",{cx:X.cp1x,cy:X.cp1y,r:3,fill:"white",strokeWidth:2,stroke:"black"}),v("circle",{cx:X.cp2x,cy:X.cp2y,r:3,strokeWidth:2,fill:"white",stroke:"black"})]},t)}return null}):null]}),L0=Q.length===0?n:v(V$,{ref:l,width:Math.ceil(J),height:Math.ceil(Z),effects:Q,pixelDensity:M,showInTimeline:!1,style:w,controls:F,children:n});if(!i)return n;return v(M$,{layout:"none",from:V,trimBefore:B,freeze:W,hidden:k,showInTimeline:T,controls:F,_remotionInternalEffects:f,durationInFrames:j,name:D??$,outlineRef:C,_remotionInternalDocumentationLink:D===void 0?G:void 0,children:L0})},z=({defaultValue:$,description:G,hiddenFromList:J=!1,max:Z,min:N,step:K=1})=>{return{type:"number",default:$,description:G,hiddenFromList:J,max:Z,min:N,step:K}},W0=({defaultValue:$,description:G})=>{return{type:"boolean",default:$,description:G}},B$=({defaultValue:$,description:G})=>{return{type:"color",default:$,description:G}},N0=({defaultValue:$,description:G,variants:J})=>{return{type:"enum",default:$,description:G,variants:Object.fromEntries(J.map((Z)=>[Z,{}]))}},A=($)=>{return{...D0.baseSchema,...$,fill:B$({defaultValue:"#0b84ff",description:"Fill"}),...D0.transformSchema,...Z0.backgroundSchema,...Z0.borderSchema,...Z0.borderRadiusSchema}},F$=A({length:z({defaultValue:300,description:"Length",min:0}),headWidth:z({defaultValue:185,description:"Head Width",min:0}),headLength:z({defaultValue:120,description:"Head Length",min:0}),shaftWidth:z({defaultValue:80,description:"Shaft Width",min:0}),direction:N0({defaultValue:"right",description:"Direction",variants:["right","left","up","down"]}),cornerRadius:z({defaultValue:0,description:"Corner Radius",min:0})}),E$=({length:$,headWidth:G,headLength:J,shaftWidth:Z,direction:N,cornerRadius:K,...H})=>{return z$(L,{defaultName:"<Arrow>",documentationLink:"https://www.remotion.dev/docs/shapes/arrow",...U$({length:$,headWidth:G,headLength:J,shaftWidth:Z,direction:N,cornerRadius:K}),...H})},AG=K$.withSchema({Component:E$,componentName:"<Arrow>",componentIdentity:"dev.remotion.shapes.Arrow",schema:F$,supportsEffects:!0}),T0=($,G)=>{let[J,Z]=$,N=Math.sqrt(J*J+Z*Z),K=(N-G)/N;return[J*K,Z*K]},I0=($,G)=>{let[J,Z]=$,N=Math.sqrt(J*J+Z*Z),K=G/N;return[J*K,Z*K]},g=($,{edgeRoundness:G,cornerRadius:J,roundCornerStrategy:Z})=>{return $.map(([N,K],H)=>{let U=H===0?$.length-2:H-1,O=$[U],Q=H===$.length-1?1:H+1,q=$[Q],M=[(N+q[0])/2,(K+q[1])/2],j=[(N+O[0])/2,(K+O[1])/2],V=[N-O[0],K-O[1]],B=[q[0]-N,q[1]-K];if(H===0){if(G!==null)return[{type:"M",x:M[0],y:M[1]}];if(J!==0){let D=T0(B,J);return[{type:"M",x:D[0]+N,y:D[1]+K}]}return[{type:"M",x:N,y:K}]}if(J&&G!==null)throw Error('"cornerRadius" and "edgeRoundness" cannot be specified at the same time.');if(G===null){if(J===0)return[{type:"L",x:N,y:K}];let D=T0(V,J),T=I0(V,J),F=I0(B,J),I=[O[0]+D[0],O[1]+D[1]];return[{type:"L",x:I[0],y:I[1]},Z==="arc"?{type:"a",rx:J,ry:J,xAxisRotation:0,dx:T[0]+F[0],dy:T[1]+F[1],largeArcFlag:!1,sweepFlag:!0}:{type:"C",x:I[0]+T[0]+F[0],y:I[1]+T[1]+F[1],cp1x:N,cp1y:K,cp2x:N,cp2y:K}]}let W=[j[0]+V[0]*G*0.5,j[1]+V[1]*G*0.5],k=[M[0]-B[0]*G*0.5,M[1]-B[1]*G*0.5];return[{type:"C",cp1x:W[0],cp1y:W[1],cp2x:k[0],cp2y:k[1],x:M[0],y:M[1]}]}).flat(1)},c=($,G)=>{if(typeof G!=="number"||G<=0)throw Error(`"${$}" must be a positive number, got ${G}`)},S0=({availableLength:$,pointerBaseWidth:G,pointerPosition:J})=>{let Z=$*J,N=G/2;return{center:Z,start:Math.max(0,Z-N),end:Math.min($,Z+N)}},K0=($,G)=>{return $[0]===G[0]&&$[1]===G[1]},D$=($)=>{let G=$.reduce((N,K)=>{let H=N[N.length-1];if(H&&K0(H.point,K.point))return N[N.length-1]={point:H.point,round:H.round&&K.round},N;return[...N,K]},[]);if(G.length===0)return G;let J=G[0],Z=G[G.length-1];if(K0(J.point,Z.point)){let[N,...K]=G,H=K.slice(0,-1),U={point:N.point,round:N.round&&Z.round};return[U,...H,U]}return[...G,J]},o=($,G)=>{let J=G[0]-$[0],Z=G[1]-$[1],N=Math.sqrt(J*J+Z*Z);if(N===0)return[0,0];return[J/N,Z/N]},W$=({points:$,edgeRoundness:G,cornerRadius:J})=>{let Z=$.map((Q)=>Q.point);if(G!==null||J===0)return[...g(Z,{edgeRoundness:G,cornerRadius:J,roundCornerStrategy:"arc"}),{type:"Z"}];let N=K0($[0].point,$[$.length-1].point)?$.slice(0,-1):$,K=N[0],H=K.round?o(N[0].point,N[1].point):null,U=H?[K.point[0]+H[0]*J,K.point[1]+H[1]*J]:K.point,O=[{type:"M",x:U[0],y:U[1]}];for(let Q=1;Q<N.length;Q++){let q=N[Q];if(!q.round){O.push({type:"L",x:q.point[0],y:q.point[1]});continue}let M=N[Q-1].point,j=N[(Q+1)%N.length].point,V=o(M,q.point),B=o(q.point,j),W=[q.point[0]-V[0]*J,q.point[1]-V[1]*J];O.push({type:"L",x:W[0],y:W[1]},{type:"a",rx:J,ry:J,xAxisRotation:0,dx:V[0]*J+B[0]*J,dy:V[1]*J+B[1]*J,largeArcFlag:!1,sweepFlag:!0})}if(K.round){let Q=N[N.length-1].point,q=o(Q,K.point);O.push({type:"L",x:K.point[0]-q[0]*J,y:K.point[1]-q[1]*J},{type:"a",rx:J,ry:J,xAxisRotation:0,dx:q[0]*J+H[0]*J,dy:q[1]*J+H[1]*J,largeArcFlag:!1,sweepFlag:!0})}return O.push({type:"Z"}),O},T$=({width:$=500,height:G=200,pointerLength:J=40,pointerBaseWidth:Z=60,pointerPosition:N=0.5,pointerDirection:K="down",edgeRoundness:H=null,cornerRadius:U=0})=>{if(c("width",$),c("height",G),c("pointerLength",J),c("pointerBaseWidth",Z),typeof N!=="number"||N<0||N>1)throw Error(`"pointerPosition" must be a number between 0 and 1, got ${N}`);let O=S0({availableLength:$,pointerBaseWidth:Z,pointerPosition:N}),Q=S0({availableLength:G,pointerBaseWidth:Z,pointerPosition:N}),q={up:[{point:[0,J],round:!0},{point:[O.start,J],round:!1},{point:[O.center,0],round:!1},{point:[O.end,J],round:!1},{point:[$,J],round:!0},{point:[$,G+J],round:!0},{point:[0,G+J],round:!0},{point:[0,J],round:!0}],down:[{point:[0,0],round:!0},{point:[$,0],round:!0},{point:[$,G],round:!0},{point:[O.end,G],round:!1},{point:[O.center,G+J],round:!1},{point:[O.start,G],round:!1},{point:[0,G],round:!0},{point:[0,0],round:!0}],left:[{point:[J,0],round:!0},{point:[$+J,0],round:!0},{point:[$+J,G],round:!0},{point:[J,G],round:!0},{point:[J,Q.end],round:!1},{point:[0,Q.center],round:!1},{point:[J,Q.start],round:!1},{point:[J,0],round:!0}],right:[{point:[0,0],round:!0},{point:[$,0],round:!0},{point:[$,Q.start],round:!1},{point:[$+J,Q.center],round:!1},{point:[$,Q.end],round:!1},{point:[$,G],round:!0},{point:[0,G],round:!0},{point:[0,0],round:!0}]},M=D$(q[K]),j=W$({points:M,edgeRoundness:H,cornerRadius:U}),V=E(j),B=K==="left"||K==="right"?$+J:$,W=K==="up"||K==="down"?G+J:G,k=K==="left"?J:0,D=K==="up"?J:0;return{width:B,height:W,instructions:j,path:V,transformOrigin:`${k+$/2} ${D+G/2}`}},S$=A({width:z({defaultValue:500,description:"Width",min:1}),height:z({defaultValue:200,description:"Height",min:1}),pointerLength:z({defaultValue:40,description:"Pointer Length",min:1}),pointerBaseWidth:z({defaultValue:60,description:"Pointer Base Width",min:1}),pointerPosition:z({defaultValue:0.5,description:"Pointer Position",min:0,max:1,step:0.01}),pointerDirection:N0({defaultValue:"down",description:"Pointer Direction",variants:["up","down","left","right"]}),cornerRadius:z({defaultValue:0,description:"Corner Radius",min:0})}),_$=({width:$,height:G,pointerLength:J,pointerBaseWidth:Z,pointerPosition:N,pointerDirection:K,edgeRoundness:H,cornerRadius:U,...O})=>{return I$(L,{defaultName:"<Callout>",documentationLink:"https://www.remotion.dev/docs/shapes/callout",...T$({width:$,height:G,pointerLength:J,pointerBaseWidth:Z,pointerPosition:N,pointerDirection:K,edgeRoundness:H,cornerRadius:U}),...O})},fG=k$.withSchema({Component:_$,componentName:"<Callout>",componentIdentity:"dev.remotion.shapes.Callout",schema:S$,supportsEffects:!0}),Y$=({radius:$})=>{let G=[{type:"M",x:$,y:0},{type:"a",rx:$,ry:$,xAxisRotation:0,largeArcFlag:!0,sweepFlag:!0,dx:0,dy:$*2},{type:"a",rx:$,ry:$,xAxisRotation:0,largeArcFlag:!0,sweepFlag:!0,dx:0,dy:-$*2},{type:"Z"}],J=E(G);return{height:$*2,width:$*2,path:J,instructions:G,transformOrigin:`${$} ${$}`}},C$=A({radius:z({defaultValue:100,description:"Radius",min:0})}),L$=({radius:$,...G})=>{return w$(L,{defaultName:"<Circle>",documentationLink:"https://www.remotion.dev/docs/shapes/circle",...Y$({radius:$}),...G})},lG=X$.withSchema({Component:L$,componentName:"<Circle>",componentIdentity:"dev.remotion.shapes.Circle",schema:C$,supportsEffects:!0}),P$=({rx:$,ry:G})=>{let J=[{type:"M",x:$,y:0},{type:"a",rx:$,ry:G,xAxisRotation:0,largeArcFlag:!0,sweepFlag:!1,dx:1,dy:0},{type:"Z"}],Z=E(J);return{width:$*2,height:G*2,path:Z,instructions:J,transformOrigin:`${$} ${G}`}},R$=A({rx:z({defaultValue:100,description:"X Radius",min:0}),ry:z({defaultValue:50,description:"Y Radius",min:0})}),f$=({rx:$,ry:G,...J})=>{return b$(L,{defaultName:"<Ellipse>",documentationLink:"https://www.remotion.dev/docs/shapes/ellipse",...P$({rx:$,ry:G}),...J})},mG=A$.withSchema({Component:f$,componentName:"<Ellipse>",componentIdentity:"dev.remotion.shapes.Ellipse",schema:R$,supportsEffects:!0}),y$=({height:$,aspectRatio:G=1.1,bottomRoundnessAdjustment:J=0,depthAdjustment:Z=0})=>{let N=$*G,K=0.20909090909090908*N+J*N,H=0.69*$,U=0.6*$,O=0.13*$,Q=0.2636363636363636*N,q=0.13636363636363635*N,M=0.045454545454545456*N,j=0.07*$,V=0.17*$+Z*$,B=[{type:"M",x:N/2,y:$},{type:"C",cp1x:N/2-K,cp1y:H,cp2x:0,cp2y:U,x:0,y:$/4},{type:"C",cp1x:0,cp1y:O,cp2x:N/4-Q/2,cp2y:0,x:N/4,y:0},{type:"C",cp1x:N/4+Q/2,cp1y:0,cp2x:N/2-M,cp2y:j,x:N/2,y:V},{type:"C",cp1x:N/2+M,cp1y:j,cp2x:N/2+q,cp2y:0,x:N/4*3,y:0},{type:"C",cp1x:N/4*3+Q/2,cp1y:0,cp2x:N,cp2y:O,x:N,y:$/4},{type:"C",x:N/2,y:$,cp1x:N,cp1y:U,cp2x:N/2+K,cp2y:H},{type:"Z"}];return{path:E(B),width:N,height:$,transformOrigin:`${N/2} ${$/2}`,instructions:B}},l$=A({height:z({defaultValue:100,description:"Height",min:0}),aspectRatio:z({defaultValue:1.1,description:"Aspect Ratio",min:0,step:0.01}),bottomRoundnessAdjustment:z({defaultValue:0,description:"Bottom Roundness Adjustment",step:0.01}),depthAdjustment:z({defaultValue:0,description:"Depth Adjustment",step:0.01})}),h$=({aspectRatio:$,height:G,bottomRoundnessAdjustment:J=0,depthAdjustment:Z=0,...N})=>{return x$(L,{defaultName:"<Heart>",documentationLink:"https://www.remotion.dev/docs/shapes/heart",...y$({aspectRatio:$,height:G,bottomRoundnessAdjustment:J,depthAdjustment:Z}),...N})},cG=v$.withSchema({Component:h$,componentName:"<Heart>",componentIdentity:"dev.remotion.shapes.Heart",schema:l$,supportsEffects:!0}),x=({counterClockwise:$,actualProgress:G,rotation:J,radius:Z,coord:N})=>{let K=$?-1:1,H=Math[N==="x"?"cos":"sin"](K*G*Math.PI*2+Math.PI*1.5+J)*Z+Z;return Math.round(H*1e5)/1e5},U0=({progress:$,radius:G,closePath:J=!0,counterClockwise:Z=!1,rotation:N=0})=>{let K=Math.min(Math.max($,0),1),H=x({actualProgress:K,coord:"x",counterClockwise:Z,radius:G,rotation:N}),U=x({actualProgress:K,coord:"y",counterClockwise:Z,radius:G,rotation:N}),O={x:x({actualProgress:0,coord:"x",counterClockwise:Z,radius:G,rotation:N}),y:x({actualProgress:0,coord:"y",counterClockwise:Z,radius:G,rotation:N})},Q={x:H,y:U},q=[{type:"M",...O},{type:"A",rx:G,ry:G,xAxisRotation:0,largeArcFlag:!1,sweepFlag:!Z,x:K<=0.5?H:x({actualProgress:0.5,coord:"x",counterClockwise:Z,radius:G,rotation:N}),y:K<=0.5?U:x({actualProgress:0.5,coord:"y",counterClockwise:Z,radius:G,rotation:N})},K>0.5?{type:"A",rx:G,ry:G,xAxisRotation:0,largeArcFlag:!1,sweepFlag:!Z,...Q}:null,K>0&&K<1&&J?{type:"L",x:G,y:G}:null,J?{type:"Z"}:null].filter(Boolean),M=E(q);return{height:G*2,width:G*2,path:M,instructions:q,transformOrigin:`${G} ${G}`}},m$=A({radius:z({defaultValue:100,description:"Radius",min:0}),progress:z({defaultValue:0.5,description:"Progress",max:1,min:0,step:0.01}),closePath:W0({defaultValue:!0,description:"Close Path"}),counterClockwise:W0({defaultValue:!1,description:"Counter Clockwise"}),rotation:z({defaultValue:0,description:"Rotation",step:0.01})}),d$=({radius:$,progress:G,closePath:J,counterClockwise:Z,rotation:N,...K})=>{return g$(L,{defaultName:"<Pie>",documentationLink:"https://www.remotion.dev/docs/shapes/pie",...U0({radius:$,progress:G,closePath:J,counterClockwise:Z,rotation:N}),...K})},eG=p$.withSchema({Component:d$,componentName:"<Pie>",componentIdentity:"dev.remotion.shapes.Pie",schema:m$,supportsEffects:!0});function u$({points:$,radius:G,centerX:J,centerY:Z,cornerRadius:N,edgeRoundness:K}){let H=Math.PI*2/$,U=Array($).fill(0).map((O,Q)=>{let q=H*Q-Math.PI/2,M={x:J+G*Math.cos(q),y:Z+G*Math.sin(q)};return[M.x,M.y]});return g([...U,U[0]],{edgeRoundness:K,cornerRadius:N,roundCornerStrategy:N>0?"bezier":"arc"})}var c$=({points:$,radius:G,cornerRadius:J=0,edgeRoundness:Z=null})=>{if($<3)throw Error(`"points" should be minimum 3, got ${$}`);let N=2*G,K=2*G,H=N/2,U=K/2,O=u$({points:$,radius:G,centerX:H,centerY:U,cornerRadius:J,edgeRoundness:Z}),Q=p(O),q=d(E(Q)),M=a.getBoundingBoxFromInstructions(Q);return{path:q,width:M.width,height:M.height,transformOrigin:`${H} ${U}`,instructions:O}},r$=A({points:z({defaultValue:5,description:"Points",min:3,step:1}),radius:z({defaultValue:100,description:"Radius",min:0}),cornerRadius:z({defaultValue:0,description:"Corner Radius",min:0})}),s$=({points:$,radius:G,cornerRadius:J,edgeRoundness:Z,...N})=>{return o$(L,{defaultName:"<Polygon>",documentationLink:"https://www.remotion.dev/docs/shapes/polygon",...c$({points:$,cornerRadius:J,edgeRoundness:Z,radius:G}),...N})},$J=a$.withSchema({Component:s$,componentName:"<Polygon>",componentIdentity:"dev.remotion.shapes.Polygon",schema:r$,supportsEffects:!0}),i$=({width:$,height:G,edgeRoundness:J=null,cornerRadius:Z=0})=>{let N=[$/2,G/2],K=[...g([[Z,0],[$,0],[$,G],[0,G],[0,0]],{edgeRoundness:J,cornerRadius:Z,roundCornerStrategy:"arc"}),{type:"Z"}],H=E(K);return{width:$,height:G,instructions:K,path:H,transformOrigin:N.join(" ")}},t$=A({width:z({defaultValue:100,description:"Width",min:0}),height:z({defaultValue:100,description:"Height",min:0}),cornerRadius:z({defaultValue:0,description:"Corner Radius",min:0})}),$G=({width:$,edgeRoundness:G,height:J,cornerRadius:Z,...N})=>{return n$(L,{defaultName:"<Rect>",documentationLink:"https://www.remotion.dev/docs/shapes/rect",...i$({height:J,width:$,edgeRoundness:G,cornerRadius:Z}),...N})},KJ=e$.withSchema({Component:$G,componentName:"<Rect>",componentIdentity:"dev.remotion.shapes.Rect",schema:t$,supportsEffects:!0}),_0=0.5522847498307936,b=1.3333333333333333,R=({to:$,cp1:G,cp2:J})=>{return{type:"C",cp1x:G[0],cp1y:G[1],cp2x:J[0],cp2y:J[1],x:$[0],y:$[1]}},r=({from:$,to:G,radius:J,direction:Z})=>{if(Z==="top")return R({to:G,cp1:[$[0],$[1]-J*b],cp2:[G[0],G[1]-J*b]});if(Z==="right")return R({to:G,cp1:[$[0]+J*b,$[1]],cp2:[G[0]+J*b,G[1]]});if(Z==="bottom")return R({to:G,cp1:[$[0],$[1]+J*b],cp2:[G[0],G[1]+J*b]});return R({to:G,cp1:[$[0]-J*b,$[1]],cp2:[G[0]-J*b,G[1]]})},s=({from:$,to:G,edgeRoundness:J,direction:Z})=>{let N=G[0]-$[0],K=G[1]-$[1],H=Math.abs(N)*_0*J,U=Math.abs(K)*_0*J;if(Z==="top-right")return R({to:G,cp1:[$[0],$[1]+U],cp2:[G[0]-H,G[1]]});if(Z==="right-bottom")return R({to:G,cp1:[$[0]-H,$[1]],cp2:[G[0],G[1]-U]});if(Z==="bottom-left")return R({to:G,cp1:[$[0],$[1]-U],cp2:[G[0]+H,G[1]]});return R({to:G,cp1:[$[0]+H,$[1]],cp2:[G[0],G[1]+U]})},JG=({cornerRadius:$,width:G,height:J})=>{return Math.min(Math.max($,0),G/2,J/2)},ZG=({width:$,height:G,edgeRoundness:J=1,cornerRadius:Z=0})=>{let N=$/2,K=G/2,H=JG({cornerRadius:Z,width:$,height:G}),U=[N,0],O=[$,K],Q=[N,G],q=[0,K],M=H===0?U:[N+H,H],j=H===0?O:[$-H,K-H],V=H===0?O:[$-H,K+H],B=H===0?Q:[N+H,G-H],W=H===0?Q:[N-H,G-H],k=H===0?q:[H,K+H],D=H===0?q:[H,K-H],T=H===0?U:[N-H,H],F=[{type:"M",x:M[0],y:M[1]},s({from:M,to:j,edgeRoundness:J,direction:"top-right"})];if(H>0)F.push(r({from:j,to:V,radius:H,direction:"right"}));if(F.push(s({from:V,to:B,edgeRoundness:J,direction:"right-bottom"})),H>0)F.push(r({from:B,to:W,radius:H,direction:"bottom"}));if(F.push(s({from:W,to:k,edgeRoundness:J,direction:"bottom-left"})),H>0)F.push(r({from:k,to:D,radius:H,direction:"left"}));if(F.push(s({from:D,to:T,edgeRoundness:J,direction:"left-top"})),H>0)F.push(r({from:T,to:M,radius:H,direction:"top"}));return F.push({type:"Z"}),{path:E(F),width:$,height:G,transformOrigin:`${N} ${K}`,instructions:F}},NG=A({width:z({defaultValue:100,description:"Width",min:0}),height:z({defaultValue:140,description:"Height",min:0}),edgeRoundness:z({defaultValue:1,description:"Edge Roundness",min:0,step:0.01}),cornerRadius:z({defaultValue:0,description:"Corner Radius",min:0})}),UG=({width:$,height:G,edgeRoundness:J,cornerRadius:Z,...N})=>{return KG(L,{defaultName:"<Spark>",documentationLink:"https://www.remotion.dev/docs/shapes/spark",...ZG({width:$,height:G,edgeRoundness:J,cornerRadius:Z}),...N})},QJ=GG.withSchema({Component:UG,componentName:"<Spark>",componentIdentity:"dev.remotion.shapes.Spark",schema:NG,supportsEffects:!0}),QG=({centerX:$,centerY:G,points:J,innerRadius:Z,outerRadius:N,cornerRadius:K,edgeRoundness:H})=>{let U=Math.PI*2/(J*2),O=Array(J*2).fill(!0).map((Q,q)=>{let M=q%2===0?N:Z,j=U*q-Math.PI/2,V={x:$+M*Math.cos(j),y:G+M*Math.sin(j)};return[V.x,V.y]});return[...g([...O,O[0]],{edgeRoundness:H,cornerRadius:K,roundCornerStrategy:K>0?"bezier":"arc"}),{type:"Z"}]},OG=({points:$,innerRadius:G,outerRadius:J,cornerRadius:Z=0,edgeRoundness:N=null})=>{let K=J*2,H=J*2,U=K/2,O=H/2,Q=QG({centerX:U,centerY:O,points:$,innerRadius:G,outerRadius:J,cornerRadius:Z,edgeRoundness:N}),q=p(Q),M=d(E(q)),j=a.getBoundingBoxFromInstructions(q);return{path:M,width:j.width,height:j.height,transformOrigin:`${U} ${O}`,instructions:Q}},MG=A({points:z({defaultValue:5,description:"Points",min:3,step:1}),innerRadius:z({defaultValue:50,description:"Inner Radius",min:0}),outerRadius:z({defaultValue:100,description:"Outer Radius",min:0}),cornerRadius:z({defaultValue:0,description:"Corner Radius",min:0})}),jG=({innerRadius:$,outerRadius:G,points:J,cornerRadius:Z,edgeRoundness:N,...K})=>{return qG(L,{defaultName:"<Star>",documentationLink:"https://www.remotion.dev/docs/shapes/star",...OG({innerRadius:$,outerRadius:G,points:J,cornerRadius:Z,edgeRoundness:N}),...K})},jJ=HG.withSchema({Component:jG,componentName:"<Star>",componentIdentity:"dev.remotion.shapes.Star",schema:MG,supportsEffects:!0}),BG=({length:$,direction:G="right",edgeRoundness:J=null,cornerRadius:Z=0})=>{if(typeof $!=="number")throw Error(`"length" of a triangle must be a number, got ${JSON.stringify($)}`);let N=$,K=Math.sqrt($**2*0.75),H={up:[[N/2,0],[0,K],[N,K],[N/2,0]],right:[[0,0],[0,N],[K,N/2],[0,0]],down:[[0,0],[N,0],[N/2,K],[0,0]],left:[[K,0],[K,N],[0,N/2],[K,0]]},U={left:K/3*2,right:K/3,up:N/2,down:N/2}[G],O={up:K/3*2,down:K/3,left:N/2,right:N/2}[G],Q=[...g(H[G],{edgeRoundness:J,cornerRadius:Z,roundCornerStrategy:"bezier"}),{type:"Z"}];return{path:E(Q),instructions:Q,width:G==="up"||G==="down"?$:K,height:G==="up"||G==="down"?K:$,transformOrigin:`${U} ${O}`}},FG=A({length:z({defaultValue:100,description:"Length",min:0}),direction:N0({defaultValue:"right",description:"Direction",variants:["right","left","up","down"]}),cornerRadius:z({defaultValue:0,description:"Corner Radius",min:0})}),EG=({length:$,direction:G,edgeRoundness:J,cornerRadius:Z,...N})=>{return zG(L,{defaultName:"<Triangle>",documentationLink:"https://www.remotion.dev/docs/shapes/triangle",...BG({length:$,direction:G,edgeRoundness:J,cornerRadius:Z}),...N})},FJ=VG.withSchema({Component:EG,componentName:"<Triangle>",componentIdentity:"dev.remotion.shapes.Triangle",schema:FG,supportsEffects:!0});import{useMemo as X0}from"react";import{AbsoluteFill as Y0}from"remotion";import{jsx as w0}from"react/jsx-runtime";var kG=({children:$,presentationDirection:G,presentationProgress:J,passedProps:Z})=>{let N=Math.sqrt(Z.width**2+Z.height**2)/2,{path:K}=U0({radius:N,progress:J}),H=J0(K,-(N*2-Z.width)/2,-(N*2-Z.height)/2),U=X0(()=>{return{width:"100%",height:"100%",clipPath:G==="exiting"?void 0:`path("${H}")`,...G==="entering"?Z.innerEnterStyle:Z.innerExitStyle}},[H,Z.innerEnterStyle,Z.innerExitStyle,G]),O=X0(()=>{return G==="entering"?Z.outerEnterStyle:Z.outerExitStyle},[Z.outerEnterStyle,Z.outerExitStyle,G]);return w0(Y0,{style:O,children:w0(Y0,{style:U,children:$})})},DG=($)=>{return{component:kG,props:$??{}}};var{clockWipe:SJ}=e;var XJ=e;export{XJ as default,SJ as clockWipe};