@galacean/cli 2.0.0-alpha.12 → 2.0.0-alpha.15
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.
- package/dist/cli.bundle.cjs +154 -140
- package/dist/viewport-client/_static/Accordion-930aedee.js +1 -0
- package/dist/viewport-client/_static/{AmbientLightAsset-f70b95f1.js → AmbientLightAsset-f9c1eb91.js} +2 -2
- package/dist/viewport-client/_static/AnimationClipAsset-61699477.js +1 -0
- package/dist/viewport-client/_static/AnimatorControllerAsset-1c05f4db.js +1 -0
- package/dist/viewport-client/_static/AnimatorStore-6a3679e5.js +1 -0
- package/dist/viewport-client/_static/{AssetViewer-bc198e16.js → AssetViewer-0ce46fa1.js} +1 -1
- package/dist/viewport-client/_static/AudioAsset-5127eeec.js +1 -0
- package/dist/viewport-client/_static/AudioComponent-18a3e59f.js +1 -0
- package/dist/viewport-client/_static/{Callout-cb4a55ff.js → Callout-b6ac1af7.js} +1 -1
- package/dist/viewport-client/_static/CameraComponent-0a115258.js +1 -0
- package/dist/viewport-client/_static/{Component-f923abb1.js → Component-746be670.js} +1 -1
- package/dist/viewport-client/_static/DirectLight-4c53e9f6.js +1 -0
- package/dist/viewport-client/_static/FontAsset-a3a92f7d.js +5 -0
- package/dist/viewport-client/_static/FormItemArray-a2f72cf1.js +6 -0
- package/dist/viewport-client/_static/{GlTFAsset-9c68f862.js → GlTFAsset-5f37feef.js} +9 -9
- package/dist/viewport-client/_static/IconEdit-2c768a0a.js +6 -0
- package/dist/viewport-client/_static/{IconPointFilled-a304fd34.js → IconPointFilled-209638e2.js} +1 -1
- package/dist/viewport-client/_static/LightBaseComponent-51d498ea.js +1 -0
- package/dist/viewport-client/_static/LottieAnimationComponent-bff0244b.js +1 -0
- package/dist/viewport-client/_static/LottieAsset-9d3ef507.js +6 -0
- package/dist/viewport-client/_static/MarkdownAsset-a17933fb.js +1 -0
- package/dist/viewport-client/_static/MaterialAsset-3b56ac00.js +1 -0
- package/dist/viewport-client/_static/MaterialInspector-a36197f2.js +1 -0
- package/dist/viewport-client/_static/Menu-0a7dbec0.js +17 -0
- package/dist/viewport-client/_static/MeshAsset-2cf47eb2.js +1 -0
- package/dist/viewport-client/_static/MeshRendererBaseComponent-4a3af376.js +1 -0
- package/dist/viewport-client/_static/MeshRendererComponent-ac4c3954.js +1 -0
- package/dist/viewport-client/_static/{MeshThumbnail-49273f71.js → MeshThumbnail-25cd4a13.js} +1 -1
- package/dist/viewport-client/_static/ParticleRendererComponent-0a470dee.js +26 -0
- package/dist/viewport-client/_static/PhysicsMaterialAsset-d87d35aa.js +1 -0
- package/dist/viewport-client/_static/PhysicsStore-c283b2be.js +1 -0
- package/dist/viewport-client/_static/PointLight-b7de209f.js +1 -0
- package/dist/viewport-client/_static/PostProcessComponent-d4c9ef58.js +6 -0
- package/dist/viewport-client/_static/PrefabAsset-d0c0cd25.js +1 -0
- package/dist/viewport-client/_static/PrimitiveMesh-35092ad0.js +1 -0
- package/dist/viewport-client/_static/ProxyConfigs-ad92ebc7.js +1 -0
- package/dist/viewport-client/_static/{ReferencedMaterial-a87818f3.js → ReferencedMaterial-800a1955.js} +1 -1
- package/dist/viewport-client/_static/RenderTargetAsset-a003f9f5.js +1 -0
- package/dist/viewport-client/_static/SceneAsset-87f2ea92.js +1 -0
- package/dist/viewport-client/_static/{ShaderAsset-cb3ff628.js → ShaderAsset-98ce1f70.js} +6 -6
- package/dist/viewport-client/_static/ShaderChunkAsset-e9072307.js +5 -0
- package/dist/viewport-client/_static/{ShaderUIScriptAsset-d13fa4e2.js → ShaderUIScriptAsset-ac824e68.js} +5 -5
- package/dist/viewport-client/_static/SkinnedMeshRendererComponent-5f34bf46.js +1 -0
- package/dist/viewport-client/_static/SpineAnimationComponent-7c5db747.js +1 -0
- package/dist/viewport-client/_static/SpineSkeletonDataAsset-5b202ba0.js +1 -0
- package/dist/viewport-client/_static/SpotLight-2b4e593e.js +1 -0
- package/dist/viewport-client/_static/SpriteAsset-4e895da5.js +6 -0
- package/dist/viewport-client/_static/SpriteAtlasAsset-c2894c12.js +1 -0
- package/dist/viewport-client/_static/SpriteBaseComponent-a75e84c1.js +1 -0
- package/dist/viewport-client/_static/SpriteMaskComponent-a31f3384.js +1 -0
- package/dist/viewport-client/_static/SpriteRendererComponent-c2123918.js +1 -0
- package/dist/viewport-client/_static/{TextBaseComponent-69233798.js → TextBaseComponent-95846acf.js} +2 -2
- package/dist/viewport-client/_static/TextRendererComponent-429cf17b.js +1 -0
- package/dist/viewport-client/_static/TextureAsset-93475ade.js +36 -0
- package/dist/viewport-client/_static/Tooltip-dfde37c6.js +1 -0
- package/dist/viewport-client/_static/TrailRendererComponent-112b1618.js +1 -0
- package/dist/viewport-client/_static/TransformBaseComponent-a8050787.js +1 -0
- package/dist/viewport-client/_static/TransformComponent-c95e25c2.js +1 -0
- package/dist/viewport-client/_static/XRReferenceImageAsset-dbf129aa.js +1 -0
- package/dist/viewport-client/_static/audio-10589bb4.js +1 -0
- package/dist/viewport-client/_static/glTFIO-79bbca27.js +1 -0
- package/dist/viewport-client/_static/index-010da0b3.js +1 -0
- package/dist/viewport-client/_static/index-07bbf729.js +31 -0
- package/dist/viewport-client/_static/index-1e23212d.js +11487 -0
- package/dist/viewport-client/_static/index-2cdbb69f.js +1 -0
- package/dist/viewport-client/_static/index-31b7a6d3.js +1 -0
- package/dist/viewport-client/_static/index-3439012b.js +1 -0
- package/dist/viewport-client/_static/index-48760ac4.js +2 -0
- package/dist/viewport-client/_static/index-65a103b6.js +1 -0
- package/dist/viewport-client/_static/{index-e46ec5b1.js → index-77b1de5c.js} +7 -7
- package/dist/viewport-client/_static/index-92830754.js +1 -0
- package/dist/viewport-client/_static/{index-237c84cd.js → index-93eab932.js} +3 -3
- package/dist/viewport-client/_static/index-b259cf2e.js +1 -0
- package/dist/viewport-client/_static/{index-98982ce2.js → index-b2e1cba4.js} +1 -1
- package/dist/viewport-client/_static/index-b7bf2586.js +1 -0
- package/dist/viewport-client/_static/index-c20fc198.js +1 -0
- package/dist/viewport-client/_static/index-dc62ba4b.js +1 -0
- package/dist/viewport-client/_static/index-ea9ea505.js +1 -0
- package/dist/viewport-client/_static/ktx2-encoder-075abd75.js +1 -0
- package/dist/viewport-client/_static/{module-6406b050.js → module-251ecc50.js} +1 -1
- package/dist/viewport-client/_static/{module-107b7430.js → module-498119f3.js} +1 -1
- package/dist/viewport-client/_static/{module-5c85b07e.js → module-c6e2d190.js} +1 -1
- package/dist/viewport-client/_static/postmen-9e1e15bd.js +1 -0
- package/dist/viewport-client/index.html +2 -2
- package/package.json +1 -1
- package/dist/viewport-client/_static/Accordion-4897319b.js +0 -6
- package/dist/viewport-client/_static/AnimationClipAsset-01f3deb6.js +0 -1
- package/dist/viewport-client/_static/AnimatorControllerAsset-b7424e9c.js +0 -1
- package/dist/viewport-client/_static/AnimatorStore-fd98c00e.js +0 -1
- package/dist/viewport-client/_static/AssetPreviewer-24e31d97.js +0 -6
- package/dist/viewport-client/_static/AudioAsset-eae03324.js +0 -1
- package/dist/viewport-client/_static/AudioComponent-44070c2c.js +0 -1
- package/dist/viewport-client/_static/CameraComponent-907ac745.js +0 -1
- package/dist/viewport-client/_static/CanvasRenderer-9dd98cb3.js +0 -1
- package/dist/viewport-client/_static/DirectLight-58f5fe9e.js +0 -1
- package/dist/viewport-client/_static/FontAsset-abfb9a8a.js +0 -5
- package/dist/viewport-client/_static/FormItemArray-66be8701.js +0 -1
- package/dist/viewport-client/_static/IconPlayerPlayFilled-b058c98f.js +0 -6
- package/dist/viewport-client/_static/InstanceEditorAsset-a70e73fe.js +0 -1
- package/dist/viewport-client/_static/LightBaseComponent-fbc3ae49.js +0 -1
- package/dist/viewport-client/_static/LottieAnimationComponent-1c3e02a5.js +0 -1
- package/dist/viewport-client/_static/LottieAsset-377c1419.js +0 -1
- package/dist/viewport-client/_static/MarkdownAsset-7ea387a9.js +0 -1
- package/dist/viewport-client/_static/MaterialAsset-74a15124.js +0 -1
- package/dist/viewport-client/_static/MaterialInspector-aec1248b.js +0 -1
- package/dist/viewport-client/_static/Menu-cd3be298.js +0 -17
- package/dist/viewport-client/_static/MeshAsset-73e2cc8e.js +0 -1
- package/dist/viewport-client/_static/MeshRendererBaseComponent-3a0e09ed.js +0 -1
- package/dist/viewport-client/_static/MeshRendererComponent-5385d30f.js +0 -1
- package/dist/viewport-client/_static/ParticleRendererComponent-5a7b57d9.js +0 -21
- package/dist/viewport-client/_static/PhysicsMaterialAsset-a5ac9f82.js +0 -1
- package/dist/viewport-client/_static/PhysicsStore-0729e76d.js +0 -1
- package/dist/viewport-client/_static/PointLight-0e1d1546.js +0 -1
- package/dist/viewport-client/_static/PostProcessComponent-8276d33c.js +0 -1
- package/dist/viewport-client/_static/PrefabAsset-1a7edfbd.js +0 -1
- package/dist/viewport-client/_static/PrimitiveMesh-3ce6fa2f.js +0 -1
- package/dist/viewport-client/_static/ProxyConfigs-4de3304c.js +0 -1
- package/dist/viewport-client/_static/RenderTargetAsset-33c0d9e7.js +0 -1
- package/dist/viewport-client/_static/SceneAsset-8917c210.js +0 -1
- package/dist/viewport-client/_static/ShaderChunkAsset-83f923f4.js +0 -5
- package/dist/viewport-client/_static/SkinnedMeshRendererComponent-2a8323bf.js +0 -1
- package/dist/viewport-client/_static/SpineAnimationComponent-e733d50f.js +0 -1
- package/dist/viewport-client/_static/SpineSkeletonDataAsset-b64a3ee3.js +0 -1
- package/dist/viewport-client/_static/SpotLight-ca6c0c3b.js +0 -1
- package/dist/viewport-client/_static/SpriteAsset-9a31ec24.js +0 -1
- package/dist/viewport-client/_static/SpriteAtlasAsset-a862db46.js +0 -1
- package/dist/viewport-client/_static/SpriteBaseComponent-f6f1731f.js +0 -1
- package/dist/viewport-client/_static/SpriteMaskComponent-778be04f.js +0 -1
- package/dist/viewport-client/_static/SpriteRendererComponent-2b4d153b.js +0 -1
- package/dist/viewport-client/_static/TextRendererComponent-130b4e99.js +0 -1
- package/dist/viewport-client/_static/TextureAsset-28fedf2a.js +0 -36
- package/dist/viewport-client/_static/ThumbnailMixin-35997457.js +0 -1
- package/dist/viewport-client/_static/ThumbnailRegistry-495c18c9.js +0 -1
- package/dist/viewport-client/_static/Tooltip-33f770ba.js +0 -1
- package/dist/viewport-client/_static/TrailRendererComponent-148550b5.js +0 -1
- package/dist/viewport-client/_static/TransformBaseComponent-02318c5a.js +0 -1
- package/dist/viewport-client/_static/TransformComponent-96106065.js +0 -1
- package/dist/viewport-client/_static/ViewerManager-202b570a.js +0 -1
- package/dist/viewport-client/_static/XRReferenceImageAsset-6a6adb3b.js +0 -1
- package/dist/viewport-client/_static/audio-244358e2.js +0 -1
- package/dist/viewport-client/_static/glTFIO-45ff9a17.js +0 -1
- package/dist/viewport-client/_static/index-0a8702e2.js +0 -11217
- package/dist/viewport-client/_static/index-37c74ae9.js +0 -26
- package/dist/viewport-client/_static/index-4cca0201.js +0 -1
- package/dist/viewport-client/_static/index-59732f86.js +0 -1
- package/dist/viewport-client/_static/index-6c8198f6.js +0 -2
- package/dist/viewport-client/_static/index-6f827618.js +0 -1
- package/dist/viewport-client/_static/index-803ca489.js +0 -1
- package/dist/viewport-client/_static/index-85a6cf6a.js +0 -1
- package/dist/viewport-client/_static/index-b3d51f87.js +0 -1
- package/dist/viewport-client/_static/index-be6bc38a.js +0 -177
- package/dist/viewport-client/_static/index-c403cbcd.js +0 -1
- package/dist/viewport-client/_static/index-e73966ae.js +0 -1
- package/dist/viewport-client/_static/index-e95b4498.js +0 -1
- package/dist/viewport-client/_static/index-f5a67a46.js +0 -1
- package/dist/viewport-client/_static/ktx-parse.modern-6c9f771f.js +0 -1
- package/dist/viewport-client/_static/ktx2-encoder-1e63c1eb.js +0 -1
- package/dist/viewport-client/_static/postmen-45d4c238.js +0 -1
- package/dist/viewport-client/_static/utilities-e09052e3.js +0 -11
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{
|
|
2
|
-
* @license @tabler/icons-react v3.
|
|
1
|
+
import{aH as X,aC as e,b3 as d,b6 as ce,bd as Q,aO as m,e5 as fe,aP as he,aF as ue,eG as Y,f7 as pe,b8 as E,f8 as ge,b9 as me,bj as xe,f9 as ve,fa as Ce,fb as we,fc as be,fd as ye,fe as je,ff as q,fg as J,fh as $e,fi as Re,fj as Se,fk as Ie,fl as ke,ey as _,ex as k,fm as Me,fn as Pe}from"./index-1e23212d.js";import{aT as w0,ez as b0,fW as y0,fX as j0,fo as $0,fP as R0,fq as S0,fp as I0,aX as k0,fr as M0,dD as P0,aV as T0,ci as L0,g4 as V0,g5 as E0,fF as Z0,fC as H0,fE as F0,fY as A0,fH as D0,fG as B0,eH as z0,fQ as N0,fD as O0,eA as _0,fI as U0,fJ as G0,fK as W0,c9 as K0,ca as X0,bM as Q0,fL as Y0,bk as q0,fM as J0,eQ as e1,fN as t1,fO as o1,fV as n1,fS as r1,fT as i1,fU as s1,fR as l1,g3 as a1,fw as d1,ft as c1,g1 as f1,ch as h1,fy as u1,fx as p1,fz as g1,g0 as m1,f_ as x1,fv as v1,bi as C1,fB as w1,cj as b1,g2 as y1,fZ as j1,dV as $1,fA as R1,f$ as S1,fu as I1,by as k1,fs as M1,g6 as P1}from"./index-1e23212d.js";import{I as Te}from"./IconEdit-2c768a0a.js";import{B as L1}from"./index-07bbf729.js";import{A as E1,a as Z1}from"./Accordion-930aedee.js";import{S as F1}from"./Callout-b6ac1af7.js";import{C as D1,D as B1,K as z1,d as N1,h as O1,j as _1,M as U1,i as G1,g as W1,e as K1,f as X1,a as Q1,b as Y1,c as q1,k as J1,S as eo}from"./Menu-0a7dbec0.js";import{T as oo}from"./Tooltip-dfde37c6.js";/**
|
|
2
|
+
* @license @tabler/icons-react v3.17.0 - MIT
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/var
|
|
7
|
-
* @license @tabler/icons-react v3.
|
|
6
|
+
*/var Le=X("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);/**
|
|
7
|
+
* @license @tabler/icons-react v3.17.0 - MIT
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var Ve=Q("outline","dots","IconDots",[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);const _t=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:t.size||100,height:t.size||100,viewBox:"0 0 446.39 458.52",version:"1.1",fill:"CurrentColor",...t,children:[e.jsx("defs",{children:e.jsx("clipPath",{id:"clip1",children:e.jsx("path",{d:"M 0 0 L 446.390625 0 L 446.390625 458.519531 L 0 458.519531 Z M 0 0 "})})}),e.jsxs("g",{id:"surface1",children:[e.jsx("path",{d:"M 328.820313 194.449219 C 328.820313 203.382813 321.578125 210.628906 312.644531 210.628906 C 303.710938 210.628906 296.464844 203.382813 296.464844 194.449219 C 296.464844 185.515625 303.710938 178.273438 312.644531 178.273438 C 321.578125 178.273438 328.820313 185.515625 328.820313 194.449219 "}),e.jsx("g",{clipPath:"url(#clip1)",clipRule:"nonzero",children:e.jsx("path",{d:"M 364.691406 171.390625 C 364.691406 129.925781 331.078125 96.3125 289.613281 96.3125 C 248.148438 96.3125 214.535156 129.925781 214.535156 171.390625 C 214.535156 212.855469 248.148438 246.46875 289.613281 246.46875 C 331.078125 246.46875 364.691406 212.855469 364.691406 171.390625 M 0 269.007813 C 0 147.867188 98.203125 49.664063 219.339844 49.664063 C 223.683594 49.664063 227.988281 49.804688 232.269531 50.054688 L 232.269531 0.00390625 C 350.523438 0.00390625 446.386719 96.714844 446.386719 214.96875 C 446.386719 233.636719 443.992188 251.742188 439.503906 269.007813 L 74.363281 269.007813 L 60.765625 269.089844 C 60.765625 339.925781 118.191406 397.355469 189.03125 397.355469 C 208.363281 397.355469 226.695313 393.070313 243.136719 385.410156 L 245.71875 397.683594 C 246.828125 402.972656 253.519531 404.691406 257.042969 400.589844 L 265.667969 390.546875 C 267.066406 388.921875 269.175781 388.085938 271.308594 388.3125 L 284.472656 389.726563 C 289.84375 390.304688 293.546875 384.46875 290.734375 379.855469 L 283.851563 368.546875 C 282.734375 366.714844 282.59375 364.449219 283.46875 362.492188 L 288.878906 350.410156 C 291.089844 345.476563 286.683594 340.152344 281.425781 341.402344 L 268.542969 344.457031 C 266.457031 344.949219 264.257813 344.386719 262.667969 342.945313 L 252.847656 334.066406 C 248.839844 330.441406 242.417969 332.988281 241.976563 338.371094 C 241.976563 338.371094 240.914063 351.425781 240.902344 351.566406 C 213.523438 349.976563 198.492188 325.605469 201.597656 305.414063 L 322.5625 305.414063 C 354.328125 305.414063 368.726563 337.375 355.578125 359.457031 C 323.035156 416.488281 267.324219 457.410156 189.199219 458.5 C 84.8125 459.960938 0 373.488281 0 269.089844 "})})]})]}),Ee=d.forwardRef(function(o,r){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:120,viewBox:"0 0 100 120",fill:"none",ref:r,...o,children:[e.jsx("path",{fill:"#0071CC",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("g",{mask:"url(#a)",children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M25.08 69.969a44.033 44.033 0 0 1-.71-.728 6.842 6.842 0 0 1-.677-.832 4.595 4.595 0 0 1-.502-.936 2.82 2.82 0 0 1-.191-1.04c0-.67.208-1.277.624-1.82.416-.544.925-1.116 1.525-1.716L36.035 52.08a15.75 15.75 0 0 1 1.647-1.439 3.06 3.06 0 0 1 1.89-.641c.461 0 .935.127 1.42.381.486.255 1.006.659 1.56 1.214.532.531.908 1.022 1.127 1.473.22.45.33.907.33 1.37 0 .693-.202 1.334-.607 1.924-.404.589-.872 1.15-1.404 1.681l-8.528 8.459 8.459 8.32c.554.555 1.04 1.115 1.456 1.682.416.566.624 1.184.624 1.854 0 .463-.116.936-.347 1.422-.231.485-.647 1.028-1.248 1.63-.532.53-1.023.906-1.473 1.126-.451.22-.908.33-1.37.33-.67 0-1.3-.209-1.89-.625a13.194 13.194 0 0 1-1.715-1.456L25.08 69.97Zm38.204 10.816a13.194 13.194 0 0 1-1.716 1.456c-.59.416-1.219.624-1.89.624-.461 0-.918-.11-1.369-.33-.45-.219-.941-.594-1.473-1.126-.601-.6-1.017-1.144-1.248-1.63-.231-.485-.347-.958-.347-1.42 0-.67.208-1.29.624-1.855.416-.567.902-1.127 1.456-1.682l8.46-8.32-8.529-8.459c-.532-.532-1-1.092-1.404-1.681a3.331 3.331 0 0 1-.607-1.925c0-.462.11-.918.33-1.369.22-.45.595-.942 1.126-1.473.555-.555 1.075-.96 1.56-1.214.486-.254.96-.381 1.422-.381a3.06 3.06 0 0 1 1.89.641 15.75 15.75 0 0 1 1.646 1.44L74.1 62.896c.6.6 1.109 1.172 1.525 1.715a2.92 2.92 0 0 1 .624 1.82c0 .37-.064.717-.19 1.04a4.595 4.595 0 0 1-.503.937c-.208.3-.434.578-.676.832-.243.254-.48.497-.711.728L63.284 80.785Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#005EA9",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"})]})}),Ut=Ee,Ze=d.forwardRef(function(o,r){return e.jsxs("svg",{width:100,height:120,viewBox:"0 0 100 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:r,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 0L100 40V106C100 113.732 93.732 120 86 120H14C6.26801 120 0 113.732 0 106V14C0 6.26801 6.26801 0 14 0H60Z",fill:"#D6409F"}),e.jsx("mask",{id:"mask0_14_251",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:100,height:120,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 0L100 40V106C100 113.732 93.732 120 86 120H14C6.26801 120 0 113.732 0 106V14C0 6.26801 6.26801 0 14 0H60Z",fill:"white"})}),e.jsx("g",{mask:"url(#mask0_14_251)"}),e.jsx("path",{d:"M57.4 72.66C55.3693 72.66 53.6284 73.8696 52.8304 75.6H45.85C45.0146 75.6 44.2133 75.2681 43.6226 74.6774C43.0319 74.0866 42.7 73.2854 42.7 72.45V64.365C43.6576 64.8228 44.7181 65.1 45.85 65.1H52.8304C53.3075 66.1463 54.1287 66.9976 55.1571 67.5121C56.1855 68.0266 57.3592 68.1733 58.4826 67.9278C59.6061 67.6823 60.6115 67.0594 61.3315 66.1628C62.0516 65.2662 62.4428 64.1499 62.44 63C62.4406 61.8512 62.0482 60.7368 61.328 59.8418C60.6079 58.9468 59.6032 58.325 58.4809 58.0798C57.3587 57.8345 56.1862 57.9805 55.1584 58.4935C54.1305 59.0066 53.3091 59.8557 52.8304 60.9H45.85C45.0146 60.9 44.2133 60.5681 43.6226 59.9774C43.0319 59.3866 42.7 58.5854 42.7 57.75V52.8696C43.7463 52.3924 44.5975 51.5713 45.1121 50.5429C45.6266 49.5144 45.7733 48.3408 45.5278 47.2174C45.2823 46.0939 44.6594 45.0885 43.7628 44.3684C42.8661 43.6484 41.7499 43.2572 40.6 43.26C39.4512 43.2594 38.3368 43.6518 37.4418 44.3719C36.5468 45.0921 35.925 46.0967 35.6798 47.219C35.4345 48.3413 35.5805 49.5137 36.0935 50.5416C36.6065 51.5695 37.4557 52.3909 38.5 52.8696V72.45C38.5 74.3993 39.2744 76.2688 40.6527 77.6472C42.0311 79.0256 43.9006 79.8 45.85 79.8H52.8304C53.3075 80.8463 54.1287 81.6976 55.1571 82.2121C56.1855 82.7266 57.3592 82.8733 58.4826 82.6278C59.6061 82.3823 60.6115 81.7594 61.3315 80.8628C62.0516 79.9662 62.4428 78.8499 62.44 77.7C62.44 76.3633 61.909 75.0814 60.9638 74.1362C60.0186 73.191 58.7367 72.66 57.4 72.66ZM57.4 60.0915C58.1708 60.0915 58.9101 60.3977 59.4551 60.9428C60.0002 61.4878 60.3064 62.2271 60.3064 62.9979C60.3064 63.7687 60.0002 64.508 59.4551 65.053C58.9101 65.5981 58.1708 65.9043 57.4 65.9043C56.6292 65.9043 55.8899 65.5981 55.3448 65.053C54.7998 64.508 54.4936 63.7687 54.4936 62.9979C54.4936 62.2271 54.7998 61.4878 55.3448 60.9428C55.8899 60.3977 56.6292 60.0915 57.4 60.0915ZM40.6 45.3915C41.3708 45.3915 42.1101 45.6977 42.6551 46.2428C43.2002 46.7878 43.5064 47.5271 43.5064 48.2979C43.5064 49.0687 43.2002 49.808 42.6551 50.353C42.1101 50.8981 41.3708 51.2043 40.6 51.2043C39.8292 51.2043 39.0899 50.8981 38.5448 50.353C37.9998 49.808 37.6936 49.0687 37.6936 48.2979C37.6936 47.5271 37.9998 46.7878 38.5448 46.2428C39.0899 45.6977 39.8292 45.3915 40.6 45.3915ZM57.4 80.6085C57.018 80.6085 56.6398 80.5333 56.2869 80.3871C55.9341 80.2409 55.6134 80.0267 55.3434 79.7566C55.0733 79.4865 54.859 79.1659 54.7129 78.813C54.5667 78.4602 54.4915 78.0819 54.4915 77.7C54.4915 77.318 54.5667 76.9398 54.7129 76.587C54.859 76.2341 55.0733 75.9135 55.3434 75.6434C55.6134 75.3733 55.9341 75.1591 56.2869 75.0129C56.6398 74.8667 57.018 74.7915 57.4 74.7915C58.1714 74.7915 58.9112 75.0979 59.4566 75.6434C60.0021 76.1888 60.3085 76.9286 60.3085 77.7C60.3085 78.4714 60.0021 79.2112 59.4566 79.7566C58.9112 80.3021 58.1714 80.6085 57.4 80.6085Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100 40H74.7071C66.9751 40 60 33.0249 60 25.2929V0L100 40Z",fill:"#C2298A"})]})}),Gt=Ze,He=d.forwardRef((t,o)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:120,viewBox:"0 0 100 120",fill:"none",...t,ref:o,children:[e.jsx("path",{fill:"#6E56CF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#6550B9",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M66.02 77.178 54.635 54.924c-1.483-2.897-5.62-2.906-7.115-.015L36.017 77.163C34.64 79.826 36.573 83 39.57 83h22.89c2.99 0 4.923-3.16 3.56-5.822Z"}),e.jsx("mask",{id:"b",width:47,height:45,x:2,y:46,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:e.jsx("path",{fill:"#6550B9",d:"m2 46 23.382 45L49 46H2Z"})}),e.jsxs("g",{fill:"#6550B9",mask:"url(#b)",children:[e.jsx("rect",{width:40,height:5,x:27,y:53,rx:2.5}),e.jsx("rect",{width:40,height:5,x:26,y:61,rx:2.5}),e.jsx("rect",{width:40,height:5,x:26,y:69,rx:2.5})]})]})),Wt=He,Fe=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#424242",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#2C2929",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M36 56.659V52h30v4.659M51 52v34m-7.5 0h15"})]}),Kt=Fe,De=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#12A594",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#0D9B8A",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#F3FBF9",d:"M65.121 51c-10.009 0-13.718 7.347-16.7 13.25l-1.949 3.775c-3.157 6.26-5.517 10.064-11.598 10.064-.377 0-.751.076-1.1.225a2.868 2.868 0 0 0-.933.64c-.267.275-.478.601-.623.96a3.025 3.025 0 0 0 .001 2.26c.145.36.356.685.623.96a2.84 2.84 0 0 0 2.032.866c10.013 0 13.722-7.347 16.705-13.25l1.944-3.775c3.162-6.26 5.522-10.064 11.598-10.064.378 0 .752-.076 1.102-.224.349-.148.666-.366.934-.64.267-.275.48-.601.624-.96a3.003 3.003 0 0 0-.626-3.221A2.84 2.84 0 0 0 65.12 51Z"})]}),Qt=De,Ae=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#0090FF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#0D74CE",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"m49.696 51.41 5.58 2.088-5.78 2.194-5.778-2.194 5.58-2.088c.127-.05.27-.05.405 0h-.007Zm-11.017 3.087v7.888c-.093.028-.185.056-.278.092l-6.832 2.559A3.937 3.937 0 0 0 29 68.713v8.38a3.94 3.94 0 0 0 2.384 3.608l6.832 2.967a4.043 4.043 0 0 0 3.21 0l8.07-3.509 8.078 3.509a4.043 4.043 0 0 0 3.21 0l6.832-2.967A3.943 3.943 0 0 0 70 77.094V68.72c0-1.638-1.025-3.1-2.57-3.684l-6.831-2.56c-.093-.035-.185-.063-.278-.09v-7.89c0-1.638-1.025-3.1-2.569-3.684l-6.832-2.559a4.069 4.069 0 0 0-2.826 0l-6.832 2.56c-1.558.583-2.583 2.052-2.583 3.684ZM56.898 62.8l-5.864 2.194v-6.272l5.864-2.222v6.3Zm-16.881 2.834 5.58 2.088-5.78 2.186-5.778-2.186 5.58-2.088c.127-.05.27-.05.405 0h-.007Zm1.338 14.37V72.94l5.864-2.222v6.743l-5.864 2.545Zm17.621-14.37c.128-.05.27-.05.406 0l5.58 2.088-5.787 2.186-5.778-2.186 5.579-2.088Zm7.26 11.973-5.523 2.398v-7.066l5.864-2.222v6.377a.561.561 0 0 1-.342.513Z"})]}),Xt=Ae,Be=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#82827C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#63635E",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M56.918 52h-3.759l-3.614 7.273h-6.014L47.145 52h-3.759l-3.613 7.273h-6.014L37.373 52H34a4 4 0 0 0-4 4v22a4 4 0 0 0 4 4h31.09a4 4 0 0 0 4-4V56a4 4 0 0 0-4-4h-2.158l-3.614 7.273h-6.014L56.918 52Z",clipRule:"evenodd"})]}),Yt=Be,ze=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#424242",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#2C2929",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M50.3 63.94c1.62.28 3.065.624 4.336 1.035 1.291.41 2.378.849 3.26 1.315.88.448 1.64.97 2.275 1.567s1.127 1.176 1.476 1.736c.369.56.656 1.203.861 1.93.205.728.338 1.4.4 2.016.061.597.092 1.296.092 2.099 0 1.492-.307 2.92-.923 4.281-.615 1.362-1.383 2.491-2.306 3.387-.902.877-1.845 1.576-2.83 2.099-.983.522-1.875.783-2.675.783-.43 0-.645-.186-.645-.56 0-.242.164-.512.492-.81a8.195 8.195 0 0 0 2.306-3.331c.492-1.306.738-2.491.738-3.555 0-.634-.01-1.128-.03-1.483-.021-.354-.093-.84-.216-1.455-.102-.616-.266-1.11-.492-1.483-.205-.392-.523-.83-.953-1.316a5.133 5.133 0 0 0-1.569-1.231c-.614-.336-1.404-.644-2.367-.924-.943-.298-2.03-.532-3.26-.7-1.558-.205-2.963-.475-4.213-.811-1.23-.355-2.255-.728-3.075-1.12a9.44 9.44 0 0 1-2.091-1.37c-.574-.523-1.015-1.008-1.323-1.456a5.606 5.606 0 0 1-.707-1.567c-.164-.579-.267-1.054-.307-1.428a12.73 12.73 0 0 1-.062-1.315c0-.56.092-1.091.277-1.595.287-.802.943-1.567 1.968-2.295s1.917-1.092 2.675-1.092c.37 0 .646.075.83.224.206.131.308.42.308.868 0 1.418.092 2.537.277 3.358.205.821.625 1.512 1.26 2.071.636.56 1.405.98 2.307 1.26.902.28 2.204.569 3.906.867ZM45.287 87c-1.558 0-2.932-.187-4.12-.56-1.17-.354-2.45-1.11-3.845-2.267-.676-.56-1.015-1.147-1.015-1.763 0-.504.226-.96.677-1.371 1.353-1.231 2.573-1.847 3.66-1.847.697 0 1.476.326 2.337.98 1.189.932 2.173 1.539 2.952 1.818.8.28 1.732.42 2.798.42.902 0 1.733-.158 2.491-.475.78-.318 1.24-.476 1.384-.476.512 0 .769.298.769.895 0 .299-.133.681-.4 1.148-.267.466-.687.98-1.26 1.539-.554.541-1.405.998-2.553 1.371-1.128.392-2.42.588-3.875.588Zm15.314-37.67c0 .728-.533 1.456-1.599 2.183-1.045.728-1.958 1.092-2.737 1.092-.492 0-1.158-.168-1.998-.504a40.837 40.837 0 0 0-2.86-1.008 10.023 10.023 0 0 0-3.076-.503c-1.722 0-3.331.298-4.828.895-1.476.579-3.054 1.502-4.735 2.771-1.107.84-1.804 1.26-2.092 1.26-.45 0-.676-.224-.676-.672 0-.299.195-.756.584-1.372.39-.615.759-1.12 1.107-1.51C41.3 47.986 46.087 46 52.052 46c1.128 0 2.337.13 3.63.392 1.29.242 2.428.634 3.412 1.175 1.005.523 1.507 1.11 1.507 1.763Z"})]}),qt=ze,Ne=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#E54D2E",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#D13415",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M30.59 82.138a5.145 5.145 0 0 0 7.272 0 5.143 5.143 0 1 0 7.275 7.272c1.517-1.517 2.303-4.161 1.731-6.231-.304-1.095-.353-2.422.45-3.224l9.089-9.09-6.186 1.8v-2.888l-4.329 1.444-.028-4.357-5.819 5.819c-.804.802-2.13.753-3.226.449-2.068-.572-4.712.214-6.229 1.731a5.145 5.145 0 0 0 0 7.275Z"}),e.jsx("path",{fill:"#fff",d:"M53.863 51.59c-1.517 1.517-2.303 4.161-1.731 6.231.304 1.095.353 2.42-.45 3.224l-5.818 5.819.026 4.359 4.33-1.446v2.89l6.187-1.802 2.548-2.547c.802-.803 2.13-.754 3.226-.45 2.068.572 4.712-.214 6.229-1.731a5.143 5.143 0 0 0-7.272-7.275 5.143 5.143 0 0 0-7.275-7.272Z",opacity:.8})]}),Jt=Ne,Oe=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#E54D2E",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#D13415",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M40.008 52.325c.129 3.93 2.849 6.111 8.274 6.959 4.596.721 8.742.355 10.096-3.584 2.636-7.68-3.622-5.77-9.044-6.622-5.425-.853-9.534-3.065-9.327 3.247ZM41.638 68.46c.503 2.933 3.237 4.614 7.421 4.501 4.184-.115 7.306-1.749 7.74-4.913.8-5.858-3.814-3.592-7.998-3.48-4.187.116-8.156-1.864-7.163 3.892ZM47.082 81.89c.831 2.19 3.11 3.115 6.19 2.456 3.08-.656 5.208-1.677 5.035-4.174-.312-4.62-3.355-3.167-6.433-2.507-3.081.653-6.415-.075-4.792 4.224ZM49.724 92.125c.242 1.849 1.84 2.938 4.343 2.92 2.507-.022 4.404-1.01 4.727-2.99.603-3.668-2.2-2.303-4.706-2.282-2.508.02-4.84-1.275-4.364 2.352Z"})]}),e0=Oe,_e=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#30A46C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#218358",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M67.125 80.042V54.958c0-1.97-1.763-3.583-3.917-3.583H35.792c-2.154 0-3.917 1.612-3.917 3.583v25.084c0 1.97 1.763 3.583 3.917 3.583h27.416c2.154 0 3.917-1.612 3.917-3.583Zm-23.696-8.995 4.113 4.533 6.07-7.148c.392-.466 1.175-.466 1.567.018l6.874 8.385a.831.831 0 0 1 .093.938.93.93 0 0 1-.362.361 1.048 1.048 0 0 1-.514.134H37.79c-.823 0-1.274-.86-.765-1.451l4.877-5.734c.372-.465 1.116-.483 1.527-.035Z"})]}),t0=_e,Ue=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#30A46C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("rect",{width:35.25,height:32.25,x:36,y:52,fill:"#8ECEAA",rx:3}),e.jsx("path",{fill:"#218358",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("g",{filter:"url(#a)",children:e.jsx("path",{fill:"#fff",d:"M66.25 75.667V50.583c0-1.97-1.763-3.583-3.917-3.583H34.917C32.763 47 31 48.612 31 50.583v25.084c0 1.97 1.763 3.583 3.917 3.583h27.416c2.154 0 3.917-1.612 3.917-3.583Zm-23.696-8.995 4.113 4.533 6.07-7.148c.392-.466 1.175-.466 1.567.018l6.874 8.385a.831.831 0 0 1 .093.938.93.93 0 0 1-.362.361 1.048 1.048 0 0 1-.514.134h-23.48c-.823 0-1.274-.86-.765-1.451l4.877-5.734c.372-.465 1.116-.483 1.527-.035Z"})}),e.jsx("defs",{children:e.jsxs("filter",{id:"a",width:43.25,height:40.25,x:29,y:46,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[e.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),e.jsx("feOffset",{dx:2,dy:3}),e.jsx("feGaussianBlur",{stdDeviation:2}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_18_316"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_18_316",result:"shape"})]})})]}),o0=Ue,Ge=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#A3B0BF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#758B9F",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"})]}),n0=Ge,We=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#00A2C7",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#107D98",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M67.4 51.177c-4 1.397-9.6 2.794-17.4 2.794-7.8 0-13.8-1.596-17.4-2.794-1.2-.599-2.6.4-2.6 1.797v27.941c0 1.398 1.4 2.395 2.6 1.996 4.2-1.397 9.6-2.993 17.4-2.993 7.8 0 13.4 1.596 17.4 2.993 1.4.4 2.6-.598 2.6-1.996V52.973c0-1.397-1.4-2.395-2.6-1.796ZM50 72.932c-4.6 0-9 .2-13 .798l7.4-8.781 4 4.79 5.6-6.786 9 10.777c-4-.598-8.4-.798-13-.798Z"})]}),r0=We;var D="Progress",A=100,[Ke,i0]=ce(D),[Qe,Xe]=Ke(D),ee=d.forwardRef((t,o)=>{const{__scopeProgress:r,value:s=null,max:n,getValueLabel:i=Ye,...l}=t;(n||n===0)&&!U(n)&&console.error(qe(`${n}`,"Progress"));const a=U(n)?n:A;s!==null&&!G(s,a)&&console.error(Je(`${s}`,"Progress"));const c=G(s,a)?s:null,h=P(c)?i(c,a):void 0;return e.jsx(Qe,{scope:r,value:c,max:a,children:e.jsx(X.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":P(c)?c:void 0,"aria-valuetext":h,role:"progressbar","data-state":ne(c,a),"data-value":c??void 0,"data-max":a,...l,ref:o})})});ee.displayName=D;var te="ProgressIndicator",oe=d.forwardRef((t,o)=>{const{__scopeProgress:r,...s}=t,n=Xe(te,r);return e.jsx(X.div,{"data-state":ne(n.value,n.max),"data-value":n.value??void 0,"data-max":n.max,...s,ref:o})});oe.displayName=te;function Ye(t,o){return`${Math.round(t/o*100)}%`}function ne(t,o){return t==null?"indeterminate":t===o?"complete":"loading"}function P(t){return typeof t=="number"}function U(t){return P(t)&&!isNaN(t)&&t>0}function G(t,o){return P(t)&&!isNaN(t)&&t<=o&&t>=0}function qe(t,o){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${A}\`.`}function Je(t,o){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${o}\`. The \`value\` prop must be:
|
|
11
|
+
*/var Ve=X("outline","dots","IconDots",[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);const zt=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:t.size||100,height:t.size||100,viewBox:"0 0 446.39 458.52",version:"1.1",fill:"CurrentColor",...t,children:[e.jsx("defs",{children:e.jsx("clipPath",{id:"clip1",children:e.jsx("path",{d:"M 0 0 L 446.390625 0 L 446.390625 458.519531 L 0 458.519531 Z M 0 0 "})})}),e.jsxs("g",{id:"surface1",children:[e.jsx("path",{d:"M 328.820313 194.449219 C 328.820313 203.382813 321.578125 210.628906 312.644531 210.628906 C 303.710938 210.628906 296.464844 203.382813 296.464844 194.449219 C 296.464844 185.515625 303.710938 178.273438 312.644531 178.273438 C 321.578125 178.273438 328.820313 185.515625 328.820313 194.449219 "}),e.jsx("g",{clipPath:"url(#clip1)",clipRule:"nonzero",children:e.jsx("path",{d:"M 364.691406 171.390625 C 364.691406 129.925781 331.078125 96.3125 289.613281 96.3125 C 248.148438 96.3125 214.535156 129.925781 214.535156 171.390625 C 214.535156 212.855469 248.148438 246.46875 289.613281 246.46875 C 331.078125 246.46875 364.691406 212.855469 364.691406 171.390625 M 0 269.007813 C 0 147.867188 98.203125 49.664063 219.339844 49.664063 C 223.683594 49.664063 227.988281 49.804688 232.269531 50.054688 L 232.269531 0.00390625 C 350.523438 0.00390625 446.386719 96.714844 446.386719 214.96875 C 446.386719 233.636719 443.992188 251.742188 439.503906 269.007813 L 74.363281 269.007813 L 60.765625 269.089844 C 60.765625 339.925781 118.191406 397.355469 189.03125 397.355469 C 208.363281 397.355469 226.695313 393.070313 243.136719 385.410156 L 245.71875 397.683594 C 246.828125 402.972656 253.519531 404.691406 257.042969 400.589844 L 265.667969 390.546875 C 267.066406 388.921875 269.175781 388.085938 271.308594 388.3125 L 284.472656 389.726563 C 289.84375 390.304688 293.546875 384.46875 290.734375 379.855469 L 283.851563 368.546875 C 282.734375 366.714844 282.59375 364.449219 283.46875 362.492188 L 288.878906 350.410156 C 291.089844 345.476563 286.683594 340.152344 281.425781 341.402344 L 268.542969 344.457031 C 266.457031 344.949219 264.257813 344.386719 262.667969 342.945313 L 252.847656 334.066406 C 248.839844 330.441406 242.417969 332.988281 241.976563 338.371094 C 241.976563 338.371094 240.914063 351.425781 240.902344 351.566406 C 213.523438 349.976563 198.492188 325.605469 201.597656 305.414063 L 322.5625 305.414063 C 354.328125 305.414063 368.726563 337.375 355.578125 359.457031 C 323.035156 416.488281 267.324219 457.410156 189.199219 458.5 C 84.8125 459.960938 0 373.488281 0 269.089844 "})})]})]}),Ee=d.forwardRef(function(o,r){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:120,viewBox:"0 0 100 120",fill:"none",ref:r,...o,children:[e.jsx("path",{fill:"#0071CC",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("g",{mask:"url(#a)",children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M25.08 69.969a44.033 44.033 0 0 1-.71-.728 6.842 6.842 0 0 1-.677-.832 4.595 4.595 0 0 1-.502-.936 2.82 2.82 0 0 1-.191-1.04c0-.67.208-1.277.624-1.82.416-.544.925-1.116 1.525-1.716L36.035 52.08a15.75 15.75 0 0 1 1.647-1.439 3.06 3.06 0 0 1 1.89-.641c.461 0 .935.127 1.42.381.486.255 1.006.659 1.56 1.214.532.531.908 1.022 1.127 1.473.22.45.33.907.33 1.37 0 .693-.202 1.334-.607 1.924-.404.589-.872 1.15-1.404 1.681l-8.528 8.459 8.459 8.32c.554.555 1.04 1.115 1.456 1.682.416.566.624 1.184.624 1.854 0 .463-.116.936-.347 1.422-.231.485-.647 1.028-1.248 1.63-.532.53-1.023.906-1.473 1.126-.451.22-.908.33-1.37.33-.67 0-1.3-.209-1.89-.625a13.194 13.194 0 0 1-1.715-1.456L25.08 69.97Zm38.204 10.816a13.194 13.194 0 0 1-1.716 1.456c-.59.416-1.219.624-1.89.624-.461 0-.918-.11-1.369-.33-.45-.219-.941-.594-1.473-1.126-.601-.6-1.017-1.144-1.248-1.63-.231-.485-.347-.958-.347-1.42 0-.67.208-1.29.624-1.855.416-.567.902-1.127 1.456-1.682l8.46-8.32-8.529-8.459c-.532-.532-1-1.092-1.404-1.681a3.331 3.331 0 0 1-.607-1.925c0-.462.11-.918.33-1.369.22-.45.595-.942 1.126-1.473.555-.555 1.075-.96 1.56-1.214.486-.254.96-.381 1.422-.381a3.06 3.06 0 0 1 1.89.641 15.75 15.75 0 0 1 1.646 1.44L74.1 62.896c.6.6 1.109 1.172 1.525 1.715a2.92 2.92 0 0 1 .624 1.82c0 .37-.064.717-.19 1.04a4.595 4.595 0 0 1-.503.937c-.208.3-.434.578-.676.832-.243.254-.48.497-.711.728L63.284 80.785Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#005EA9",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"})]})}),Nt=Ee,Ze=d.forwardRef(function(o,r){return e.jsxs("svg",{width:100,height:120,viewBox:"0 0 100 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:r,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 0L100 40V106C100 113.732 93.732 120 86 120H14C6.26801 120 0 113.732 0 106V14C0 6.26801 6.26801 0 14 0H60Z",fill:"#D6409F"}),e.jsx("mask",{id:"mask0_14_251",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:100,height:120,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 0L100 40V106C100 113.732 93.732 120 86 120H14C6.26801 120 0 113.732 0 106V14C0 6.26801 6.26801 0 14 0H60Z",fill:"white"})}),e.jsx("g",{mask:"url(#mask0_14_251)"}),e.jsx("path",{d:"M57.4 72.66C55.3693 72.66 53.6284 73.8696 52.8304 75.6H45.85C45.0146 75.6 44.2133 75.2681 43.6226 74.6774C43.0319 74.0866 42.7 73.2854 42.7 72.45V64.365C43.6576 64.8228 44.7181 65.1 45.85 65.1H52.8304C53.3075 66.1463 54.1287 66.9976 55.1571 67.5121C56.1855 68.0266 57.3592 68.1733 58.4826 67.9278C59.6061 67.6823 60.6115 67.0594 61.3315 66.1628C62.0516 65.2662 62.4428 64.1499 62.44 63C62.4406 61.8512 62.0482 60.7368 61.328 59.8418C60.6079 58.9468 59.6032 58.325 58.4809 58.0798C57.3587 57.8345 56.1862 57.9805 55.1584 58.4935C54.1305 59.0066 53.3091 59.8557 52.8304 60.9H45.85C45.0146 60.9 44.2133 60.5681 43.6226 59.9774C43.0319 59.3866 42.7 58.5854 42.7 57.75V52.8696C43.7463 52.3924 44.5975 51.5713 45.1121 50.5429C45.6266 49.5144 45.7733 48.3408 45.5278 47.2174C45.2823 46.0939 44.6594 45.0885 43.7628 44.3684C42.8661 43.6484 41.7499 43.2572 40.6 43.26C39.4512 43.2594 38.3368 43.6518 37.4418 44.3719C36.5468 45.0921 35.925 46.0967 35.6798 47.219C35.4345 48.3413 35.5805 49.5137 36.0935 50.5416C36.6065 51.5695 37.4557 52.3909 38.5 52.8696V72.45C38.5 74.3993 39.2744 76.2688 40.6527 77.6472C42.0311 79.0256 43.9006 79.8 45.85 79.8H52.8304C53.3075 80.8463 54.1287 81.6976 55.1571 82.2121C56.1855 82.7266 57.3592 82.8733 58.4826 82.6278C59.6061 82.3823 60.6115 81.7594 61.3315 80.8628C62.0516 79.9662 62.4428 78.8499 62.44 77.7C62.44 76.3633 61.909 75.0814 60.9638 74.1362C60.0186 73.191 58.7367 72.66 57.4 72.66ZM57.4 60.0915C58.1708 60.0915 58.9101 60.3977 59.4551 60.9428C60.0002 61.4878 60.3064 62.2271 60.3064 62.9979C60.3064 63.7687 60.0002 64.508 59.4551 65.053C58.9101 65.5981 58.1708 65.9043 57.4 65.9043C56.6292 65.9043 55.8899 65.5981 55.3448 65.053C54.7998 64.508 54.4936 63.7687 54.4936 62.9979C54.4936 62.2271 54.7998 61.4878 55.3448 60.9428C55.8899 60.3977 56.6292 60.0915 57.4 60.0915ZM40.6 45.3915C41.3708 45.3915 42.1101 45.6977 42.6551 46.2428C43.2002 46.7878 43.5064 47.5271 43.5064 48.2979C43.5064 49.0687 43.2002 49.808 42.6551 50.353C42.1101 50.8981 41.3708 51.2043 40.6 51.2043C39.8292 51.2043 39.0899 50.8981 38.5448 50.353C37.9998 49.808 37.6936 49.0687 37.6936 48.2979C37.6936 47.5271 37.9998 46.7878 38.5448 46.2428C39.0899 45.6977 39.8292 45.3915 40.6 45.3915ZM57.4 80.6085C57.018 80.6085 56.6398 80.5333 56.2869 80.3871C55.9341 80.2409 55.6134 80.0267 55.3434 79.7566C55.0733 79.4865 54.859 79.1659 54.7129 78.813C54.5667 78.4602 54.4915 78.0819 54.4915 77.7C54.4915 77.318 54.5667 76.9398 54.7129 76.587C54.859 76.2341 55.0733 75.9135 55.3434 75.6434C55.6134 75.3733 55.9341 75.1591 56.2869 75.0129C56.6398 74.8667 57.018 74.7915 57.4 74.7915C58.1714 74.7915 58.9112 75.0979 59.4566 75.6434C60.0021 76.1888 60.3085 76.9286 60.3085 77.7C60.3085 78.4714 60.0021 79.2112 59.4566 79.7566C58.9112 80.3021 58.1714 80.6085 57.4 80.6085Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100 40H74.7071C66.9751 40 60 33.0249 60 25.2929V0L100 40Z",fill:"#C2298A"})]})}),Ot=Ze,He=d.forwardRef((t,o)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:120,viewBox:"0 0 100 120",fill:"none",...t,ref:o,children:[e.jsx("path",{fill:"#6E56CF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#6550B9",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M66.02 77.178 54.635 54.924c-1.483-2.897-5.62-2.906-7.115-.015L36.017 77.163C34.64 79.826 36.573 83 39.57 83h22.89c2.99 0 4.923-3.16 3.56-5.822Z"}),e.jsx("mask",{id:"b",width:47,height:45,x:2,y:46,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:e.jsx("path",{fill:"#6550B9",d:"m2 46 23.382 45L49 46H2Z"})}),e.jsxs("g",{fill:"#6550B9",mask:"url(#b)",children:[e.jsx("rect",{width:40,height:5,x:27,y:53,rx:2.5}),e.jsx("rect",{width:40,height:5,x:26,y:61,rx:2.5}),e.jsx("rect",{width:40,height:5,x:26,y:69,rx:2.5})]})]})),_t=He,Fe=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#424242",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#2C2929",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M36 56.659V52h30v4.659M51 52v34m-7.5 0h15"})]}),Ut=Fe,Ae=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#12A594",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#0D9B8A",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#F3FBF9",d:"M65.121 51c-10.009 0-13.718 7.347-16.7 13.25l-1.949 3.775c-3.157 6.26-5.517 10.064-11.598 10.064-.377 0-.751.076-1.1.225a2.868 2.868 0 0 0-.933.64c-.267.275-.478.601-.623.96a3.025 3.025 0 0 0 .001 2.26c.145.36.356.685.623.96a2.84 2.84 0 0 0 2.032.866c10.013 0 13.722-7.347 16.705-13.25l1.944-3.775c3.162-6.26 5.522-10.064 11.598-10.064.378 0 .752-.076 1.102-.224.349-.148.666-.366.934-.64.267-.275.48-.601.624-.96a3.003 3.003 0 0 0-.626-3.221A2.84 2.84 0 0 0 65.12 51Z"})]}),Gt=Ae,De=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#0090FF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#0D74CE",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"m49.696 51.41 5.58 2.088-5.78 2.194-5.778-2.194 5.58-2.088c.127-.05.27-.05.405 0h-.007Zm-11.017 3.087v7.888c-.093.028-.185.056-.278.092l-6.832 2.559A3.937 3.937 0 0 0 29 68.713v8.38a3.94 3.94 0 0 0 2.384 3.608l6.832 2.967a4.043 4.043 0 0 0 3.21 0l8.07-3.509 8.078 3.509a4.043 4.043 0 0 0 3.21 0l6.832-2.967A3.943 3.943 0 0 0 70 77.094V68.72c0-1.638-1.025-3.1-2.57-3.684l-6.831-2.56c-.093-.035-.185-.063-.278-.09v-7.89c0-1.638-1.025-3.1-2.569-3.684l-6.832-2.559a4.069 4.069 0 0 0-2.826 0l-6.832 2.56c-1.558.583-2.583 2.052-2.583 3.684ZM56.898 62.8l-5.864 2.194v-6.272l5.864-2.222v6.3Zm-16.881 2.834 5.58 2.088-5.78 2.186-5.778-2.186 5.58-2.088c.127-.05.27-.05.405 0h-.007Zm1.338 14.37V72.94l5.864-2.222v6.743l-5.864 2.545Zm17.621-14.37c.128-.05.27-.05.406 0l5.58 2.088-5.787 2.186-5.778-2.186 5.579-2.088Zm7.26 11.973-5.523 2.398v-7.066l5.864-2.222v6.377a.561.561 0 0 1-.342.513Z"})]}),Wt=De,Be=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#82827C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#63635E",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M56.918 52h-3.759l-3.614 7.273h-6.014L47.145 52h-3.759l-3.613 7.273h-6.014L37.373 52H34a4 4 0 0 0-4 4v22a4 4 0 0 0 4 4h31.09a4 4 0 0 0 4-4V56a4 4 0 0 0-4-4h-2.158l-3.614 7.273h-6.014L56.918 52Z",clipRule:"evenodd"})]}),Kt=Be,ze=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#424242",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#2C2929",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M50.3 63.94c1.62.28 3.065.624 4.336 1.035 1.291.41 2.378.849 3.26 1.315.88.448 1.64.97 2.275 1.567s1.127 1.176 1.476 1.736c.369.56.656 1.203.861 1.93.205.728.338 1.4.4 2.016.061.597.092 1.296.092 2.099 0 1.492-.307 2.92-.923 4.281-.615 1.362-1.383 2.491-2.306 3.387-.902.877-1.845 1.576-2.83 2.099-.983.522-1.875.783-2.675.783-.43 0-.645-.186-.645-.56 0-.242.164-.512.492-.81a8.195 8.195 0 0 0 2.306-3.331c.492-1.306.738-2.491.738-3.555 0-.634-.01-1.128-.03-1.483-.021-.354-.093-.84-.216-1.455-.102-.616-.266-1.11-.492-1.483-.205-.392-.523-.83-.953-1.316a5.133 5.133 0 0 0-1.569-1.231c-.614-.336-1.404-.644-2.367-.924-.943-.298-2.03-.532-3.26-.7-1.558-.205-2.963-.475-4.213-.811-1.23-.355-2.255-.728-3.075-1.12a9.44 9.44 0 0 1-2.091-1.37c-.574-.523-1.015-1.008-1.323-1.456a5.606 5.606 0 0 1-.707-1.567c-.164-.579-.267-1.054-.307-1.428a12.73 12.73 0 0 1-.062-1.315c0-.56.092-1.091.277-1.595.287-.802.943-1.567 1.968-2.295s1.917-1.092 2.675-1.092c.37 0 .646.075.83.224.206.131.308.42.308.868 0 1.418.092 2.537.277 3.358.205.821.625 1.512 1.26 2.071.636.56 1.405.98 2.307 1.26.902.28 2.204.569 3.906.867ZM45.287 87c-1.558 0-2.932-.187-4.12-.56-1.17-.354-2.45-1.11-3.845-2.267-.676-.56-1.015-1.147-1.015-1.763 0-.504.226-.96.677-1.371 1.353-1.231 2.573-1.847 3.66-1.847.697 0 1.476.326 2.337.98 1.189.932 2.173 1.539 2.952 1.818.8.28 1.732.42 2.798.42.902 0 1.733-.158 2.491-.475.78-.318 1.24-.476 1.384-.476.512 0 .769.298.769.895 0 .299-.133.681-.4 1.148-.267.466-.687.98-1.26 1.539-.554.541-1.405.998-2.553 1.371-1.128.392-2.42.588-3.875.588Zm15.314-37.67c0 .728-.533 1.456-1.599 2.183-1.045.728-1.958 1.092-2.737 1.092-.492 0-1.158-.168-1.998-.504a40.837 40.837 0 0 0-2.86-1.008 10.023 10.023 0 0 0-3.076-.503c-1.722 0-3.331.298-4.828.895-1.476.579-3.054 1.502-4.735 2.771-1.107.84-1.804 1.26-2.092 1.26-.45 0-.676-.224-.676-.672 0-.299.195-.756.584-1.372.39-.615.759-1.12 1.107-1.51C41.3 47.986 46.087 46 52.052 46c1.128 0 2.337.13 3.63.392 1.29.242 2.428.634 3.412 1.175 1.005.523 1.507 1.11 1.507 1.763Z"})]}),Xt=ze,Ne=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#E54D2E",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#D13415",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M30.59 82.138a5.145 5.145 0 0 0 7.272 0 5.143 5.143 0 1 0 7.275 7.272c1.517-1.517 2.303-4.161 1.731-6.231-.304-1.095-.353-2.422.45-3.224l9.089-9.09-6.186 1.8v-2.888l-4.329 1.444-.028-4.357-5.819 5.819c-.804.802-2.13.753-3.226.449-2.068-.572-4.712.214-6.229 1.731a5.145 5.145 0 0 0 0 7.275Z"}),e.jsx("path",{fill:"#fff",d:"M53.863 51.59c-1.517 1.517-2.303 4.161-1.731 6.231.304 1.095.353 2.42-.45 3.224l-5.818 5.819.026 4.359 4.33-1.446v2.89l6.187-1.802 2.548-2.547c.802-.803 2.13-.754 3.226-.45 2.068.572 4.712-.214 6.229-1.731a5.143 5.143 0 0 0-7.272-7.275 5.143 5.143 0 0 0-7.275-7.272Z",opacity:.8})]}),Qt=Ne,Oe=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#E54D2E",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#D13415",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M40.008 52.325c.129 3.93 2.849 6.111 8.274 6.959 4.596.721 8.742.355 10.096-3.584 2.636-7.68-3.622-5.77-9.044-6.622-5.425-.853-9.534-3.065-9.327 3.247ZM41.638 68.46c.503 2.933 3.237 4.614 7.421 4.501 4.184-.115 7.306-1.749 7.74-4.913.8-5.858-3.814-3.592-7.998-3.48-4.187.116-8.156-1.864-7.163 3.892ZM47.082 81.89c.831 2.19 3.11 3.115 6.19 2.456 3.08-.656 5.208-1.677 5.035-4.174-.312-4.62-3.355-3.167-6.433-2.507-3.081.653-6.415-.075-4.792 4.224ZM49.724 92.125c.242 1.849 1.84 2.938 4.343 2.92 2.507-.022 4.404-1.01 4.727-2.99.603-3.668-2.2-2.303-4.706-2.282-2.508.02-4.84-1.275-4.364 2.352Z"})]}),Yt=Oe,_e=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#30A46C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#218358",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M67.125 80.042V54.958c0-1.97-1.763-3.583-3.917-3.583H35.792c-2.154 0-3.917 1.612-3.917 3.583v25.084c0 1.97 1.763 3.583 3.917 3.583h27.416c2.154 0 3.917-1.612 3.917-3.583Zm-23.696-8.995 4.113 4.533 6.07-7.148c.392-.466 1.175-.466 1.567.018l6.874 8.385a.831.831 0 0 1 .093.938.93.93 0 0 1-.362.361 1.048 1.048 0 0 1-.514.134H37.79c-.823 0-1.274-.86-.765-1.451l4.877-5.734c.372-.465 1.116-.483 1.527-.035Z"})]}),qt=_e,Ue=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#30A46C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("rect",{width:35.25,height:32.25,x:36,y:52,fill:"#8ECEAA",rx:3}),e.jsx("path",{fill:"#218358",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("g",{filter:"url(#a)",children:e.jsx("path",{fill:"#fff",d:"M66.25 75.667V50.583c0-1.97-1.763-3.583-3.917-3.583H34.917C32.763 47 31 48.612 31 50.583v25.084c0 1.97 1.763 3.583 3.917 3.583h27.416c2.154 0 3.917-1.612 3.917-3.583Zm-23.696-8.995 4.113 4.533 6.07-7.148c.392-.466 1.175-.466 1.567.018l6.874 8.385a.831.831 0 0 1 .093.938.93.93 0 0 1-.362.361 1.048 1.048 0 0 1-.514.134h-23.48c-.823 0-1.274-.86-.765-1.451l4.877-5.734c.372-.465 1.116-.483 1.527-.035Z"})}),e.jsx("defs",{children:e.jsxs("filter",{id:"a",width:43.25,height:40.25,x:29,y:46,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[e.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),e.jsx("feOffset",{dx:2,dy:3}),e.jsx("feGaussianBlur",{stdDeviation:2}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_18_316"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_18_316",result:"shape"})]})})]}),Jt=Ue,Ge=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#A3B0BF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#758B9F",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"})]}),e0=Ge,We=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#00A2C7",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#107D98",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M67.4 51.177c-4 1.397-9.6 2.794-17.4 2.794-7.8 0-13.8-1.596-17.4-2.794-1.2-.599-2.6.4-2.6 1.797v27.941c0 1.398 1.4 2.395 2.6 1.996 4.2-1.397 9.6-2.993 17.4-2.993 7.8 0 13.4 1.596 17.4 2.993 1.4.4 2.6-.598 2.6-1.996V52.973c0-1.397-1.4-2.395-2.6-1.796ZM50 72.932c-4.6 0-9 .2-13 .798l7.4-8.781 4 4.79 5.6-6.786 9 10.777c-4-.598-8.4-.798-13-.798Z"})]}),t0=We;var A="Progress",D=100,[Ke,o0]=ce(A),[Xe,Qe]=Ke(A),ee=d.forwardRef((t,o)=>{const{__scopeProgress:r,value:s=null,max:n,getValueLabel:i=Ye,...l}=t;(n||n===0)&&!U(n)&&console.error(qe(`${n}`,"Progress"));const a=U(n)?n:D;s!==null&&!G(s,a)&&console.error(Je(`${s}`,"Progress"));const c=G(s,a)?s:null,f=P(c)?i(c,a):void 0;return e.jsx(Xe,{scope:r,value:c,max:a,children:e.jsx(Q.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":P(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":ne(c,a),"data-value":c??void 0,"data-max":a,...l,ref:o})})});ee.displayName=A;var te="ProgressIndicator",oe=d.forwardRef((t,o)=>{const{__scopeProgress:r,...s}=t,n=Qe(te,r);return e.jsx(Q.div,{"data-state":ne(n.value,n.max),"data-value":n.value??void 0,"data-max":n.max,...s,ref:o})});oe.displayName=te;function Ye(t,o){return`${Math.round(t/o*100)}%`}function ne(t,o){return t==null?"indeterminate":t===o?"complete":"loading"}function P(t){return typeof t=="number"}function U(t){return P(t)&&!isNaN(t)&&t>0}function G(t,o){return P(t)&&!isNaN(t)&&t<=o&&t>=0}function qe(t,o){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${D}\`.`}function Je(t,o){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${o}\`. The \`value\` prop must be:
|
|
12
12
|
- a positive number
|
|
13
|
-
- less than the value passed to \`max\` (or ${
|
|
13
|
+
- less than the value passed to \`max\` (or ${D} if no \`max\` prop is set)
|
|
14
14
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
15
15
|
|
|
16
|
-
Defaulting to \`null\`.`}var et=ee,tt=oe;const ot=m(et,{position:"relative",width:"100%",backgroundColor:"$softBg",borderRadius:"$round",overflow:"hidden",boxSizing:"border-box",border:"1px solid transparent",variants:{size:{sm:{height:"$1"},md:{height:"$1_5"},lg:{height:"$2"}}},defaultVariants:{size:"md"}}),nt=m(tt,{width:"100%",height:"100%",borderRadius:"$round",backgroundColor:"$selectionBg",transition:"transform .2s ease-out, background-color .2s ease-out"});function s0(t){const o=Math.max(0,Math.min(100,t.value??0));return e.jsx(ot,{...t,children:e.jsx(nt,{style:{transform:`translateX(-${100-o}%)`}})})}const l0=m("div",{position:"relative",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderRadius:"2px",borderTop:"6px solid CurrentColor",transformOrigin:"center",variants:{animate:{true:{transition:"transform .2s"}},size:{xs:{borderLeftWidth:"4px",borderRightWidth:"4px",borderTopWidth:"4px"}},direction:{rightbottom:{transform:"rotate(-45deg)"},leftbottom:{transform:"rotate(45deg)"},righttop:{transform:"rotate(135deg)"},lefttop:{transform:"rotate(-135deg)"},right:{transform:"rotate(90deg)"},left:{transform:"rotate(-90deg)"},top:{transform:"rotate(180deg)"},bottom:{transform:"rotate(0deg)"}}}}),re=m("span",{visibility:"hidden",position:"relative",cursor:"pointer",color:"$gray10","& > svg":{height:"14px",width:"14px",strokeWidth:1.8}}),rt=m("div",{maxWidth:"100%",display:"inline-block","&:hover":{[`${re}`]:{visibility:"visible"}},variants:{focused:{true:{backgroundColor:"$gray1"}}}});function a0(t){const{value:o,onBlur:r,showIcon:s,css:n,onEdit:i}=t,l=d.useRef(null),[a,c]=d.useState(o),[h,u]=d.useState(!1),[f,v]=d.useState(!1);d.useEffect(()=>{c(o)},[o]);const C=async()=>{v(!0),r&&typeof r=="function"&&await r(a),u(!1),v(!1)},p=()=>{u(!0),i&&i(),setTimeout(()=>{var g;(g=l.current)==null||g.focus()},0)},b=g=>{g.stopPropagation(),g.key==="Enter"&&C(),g.key==="Escape"&&(c(o),C())};return e.jsx(rt,{focused:h,css:n,children:h?e.jsx(he,{disabled:f,ref:l,value:a,onKeyDown:b,onChange:g=>{g.preventDefault(),g.stopPropagation(),c(g.target.value)},onKeyUp:g=>{g.preventDefault(),g.stopPropagation(),g.key==="Enter"&&C()},onBlur:()=>{C()}}):e.jsxs(fe,{align:"v",onClick:g=>{g.stopPropagation(),!s&&p()},gap:"xs",wrap:"false",css:n,children:[e.jsx(ue,{ellipsis:!0,size:1,css:n,children:a}),s&&e.jsx(re,{onClick:p,children:e.jsx(je,{})})]})})}const ie=Y({color:"$grayA11","& > div:first-child":{marginRight:"$2"},"div[role=status]":{margin:0}})(),it=Y({[`& .${ie}`]:{minHeight:"$7",padding:"$1_5 $2",borderRadius:"$3",border:"1px solid $gray6",backgroundColor:"$toasterBg",color:"$grayA11",fontSize:"$1",boxShadow:"0 5px 10px rgba(0,0,0,0.08)"}})();function d0(t){const{toastOptions:o,containerStyle:r,...s}=t;return e.jsx(Re,{containerStyle:{inset:38,...r},toastOptions:{...o,className:ie,success:{iconTheme:{primary:"var(--colors-green10)",secondary:"var(--colors-white)"}},error:{iconTheme:{primary:"var(--colors-red9)",secondary:"var(--colors-white)"}}},containerClassName:it,...s})}const Z=m("tr",{color:"$gray11"}),B=m("th",{fontWeight:"unset",textAlign:"start",fontSize:"$2",padding:"$2",borderBottom:"1px solid $gray3",userSelect:"none","&:nth-child(1)":{paddingLeft:"$2"},variants:{align:{start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},border:{solid:{borderBottom:"1px solid $gray3"},dashed:{borderBottom:"1px dashed $gray8"}}},defaultVariants:{align:"start",border:"solid"}}),L=m("td",{py:"$2",borderBottom:"1px solid $gray3",fontSize:"$2",padding:"$2",verticalAlign:"middle",userSelect:"none",variants:{align:{start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},border:{solid:{borderBottom:"1px solid $gray3"},dashed:{borderBottom:"1px dashed $gray8"}}},defaultVariants:{align:"start",border:"solid"}}),st=m("thead",{[`& ${B}`]:{fontSize:"$1",color:"$gray9"},[`& ${L}`]:{fontSize:"$1",color:"$gray9"}}),lt=m("tbody",{width:"100%",[`& ${Z}`]:{"&:hover":{backgroundColor:"$gray2"}}}),at=m("table",{width:"100%",tableLayout:"fixed",borderSpacing:0,variants:{compact:{true:{[`& ${B}`]:{padding:"$2 $0_5","&:nth-child(1)":{paddingLeft:"$2"}},[`& ${L}`]:{padding:"$0_5",fontSize:"$1"}}}}});function c0(t){const{columns:o=[],dataSource:r=[],rowKey:s,compact:n,onClickRow:i}=t;return e.jsxs(at,{compact:n,children:[e.jsx("colgroup",{children:o.map(l=>e.jsx("col",{span:1,style:{width:l.width||"auto"}},l.key))}),e.jsx(st,{children:e.jsx(Z,{children:o.map(l=>e.jsx(B,{children:l.title},l.key))})}),e.jsx(lt,{children:r.map((l,a)=>{const c=[];return o.forEach(h=>{if(h.render){c.push(e.jsx(L,{children:h.render(l[h.dataIndex],l)},h.key));return}c.push(e.jsx(L,{children:l[h.dataIndex]},h.key))}),e.jsx(Z,{onClick:h=>{i&&(h.stopPropagation(),i(l))},children:c},a)})})]})}const dt=m("div",{position:"relative",display:"flex",alignItems:"center",width:"300px",height:"$7",fontSize:"$1",boxSizing:"border-box",justifyContent:"space-between",padding:"0 $2",color:"white",backgroundColor:"$blue9",borderRadius:"$1","& > span:nth-child(2)":{display:"flex",alignItems:"center",height:"$5",fontSize:"$xs",padding:"0 $2",borderRadius:"$round",backgroundColor:"white",color:"$blue9"}});function h0(t){const{text:o,size:r}=t;return e.jsxs(dt,{children:[e.jsx("span",{children:o}),r>1&&e.jsx("span",{children:r})]})}const ct=m("div",{display:"flex",position:"absolute",width:"calc(100% - $sizes$8)",height:"$1",alignItems:"center",marginLeft:"$3",marginTop:"-$0_5",outline:"none",flexDirection:"row-reverse"}),ht=m("div",{position:"relative",height:1,outline:"none",pointerEvents:"none",flexDirection:"row-reverse",'&[data-drop-target="true"]':{backgroundColor:"#fff","&::after":{content:'""',position:"absolute",top:-4,left:-8,width:6,height:6,borderRadius:"$round",border:"1px solid white",zIndex:1}}});function f0(t){const{item:o,position:r,dropLayer:s,level:n,onDrop:i}=t,[l,a]=E.useState(!1),c=pe({accept:s??0,onEnter(u,f){f&&a(!0)},onLeave(){a(!1)},onDrop:(u,f)=>{a(!1),i(u,f,r)}}),h={width:`calc(100% - ${n*12}px)`};return e.jsx(ct,{ref:c,role:"option","aria-selected":"false","data-key":`${o}-${r}`,"aria-level":n,children:e.jsx(ht,{style:h,"data-drop-target":l})})}const j="...",R=(t,o)=>{const r=o-t+1;return Array.from({length:r},(s,n)=>n+t)},ft=t=>{const{totalCount:o,pageSize:r,siblingCount:s=1,currentPage:n}=t;return d.useMemo(()=>{const l=Math.ceil(o/r);if(s+5>=l)return R(1,l);const c=Math.max(n-s,1),h=Math.min(n+s,l),u=c>3,f=h<l-3,v=1,C=l;if(!u&&f){const p=3+2*s;return[...R(1,p),j,l]}if(u&&!f){const p=3+2*s,b=R(l-p+1,l);return[v,j,...b]}if(u&&f){const p=R(c,h);return[v,j,...p,j,C]}return R(1,l)},[o,r,s,n])},ut=m("ul",{display:"flex",alignItems:"center"}),M=m("li",{display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid $border",color:"$text",userSelect:"none",cursor:"pointer",marginRight:"$2",transition:"$borderColor, $backgroundColor, $color, $shadow","&:last-child":{marginRight:0},"&:hover":{borderColor:"$borderStrong",backgroundColor:"$surfaceSubtle"},"&:focus-visible":{borderColor:"$borderStrong",boxShadow:"$focus"},variants:{active:{true:{backgroundColor:"$selectionBg",borderColor:"$selectionBorder",color:"$selectionText","&:hover":{borderColor:"$selectionBorder",backgroundColor:"$selectionBgHover",color:"$selectionText"}}},disabled:{true:{backgroundColor:"$surface",color:"$textMuted",cursor:"initial","&:hover":{borderColor:"$border",backgroundColor:"$surface"}}},size:{sm:{height:"$sm",width:"$sm",fontSize:"$1",borderRadius:"$sm","& > svg":{width:"$iconSm",height:"$iconSm"}},md:{height:"$md",width:"$md",fontSize:"$2",borderRadius:"$md","& > svg":{width:"$iconMd",height:"$iconMd"}}}},defaultVariants:{size:"sm"}});function u0(t){const{totalCount:o,onPageChange:r,currentPage:s,pageSize:n,siblingCount:i=1,size:l}=t,[a=1,c]=ge({prop:s,onChange:r,defaultProp:t.currentPage}),h=ft({currentPage:a,totalCount:o,siblingCount:i,pageSize:n}),u=h[h.length-1];if(a===0||h.length<2)return null;const f=()=>{a>=u||c(a+1)},v=()=>{a!==1&&c(a-1)},C=p=>{c(p)};return e.jsxs(ut,{children:[e.jsx(M,{size:l,onClick:v,disabled:a===1,children:e.jsx(Te,{})}),h.map((p,b)=>p===j?e.jsx(M,{size:l,children:e.jsx(Ve,{})},`${j}_${b}`):e.jsx(M,{onClick:()=>C(p),active:p===a,size:l,children:p},p)),e.jsx(M,{size:l,onClick:f,disabled:a===u,children:e.jsx(me,{})})]})}function W(t,o){if(typeof t=="function")return t(o);t!=null&&(t.current=o)}function pt(...t){return o=>{let r=!1;const s=t.map(n=>{const i=W(n,o);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<s.length;n++){const i=s[n];typeof i=="function"?i():W(t[n],null)}}}}function gt(...t){return d.useCallback(pt(...t),t)}function mt(t){const o=xt(t),r=d.forwardRef((s,n)=>{const{children:i,...l}=s,a=d.Children.toArray(i),c=a.find(Ct);if(c){const h=c.props.children,u=a.map(f=>f===c?d.Children.count(h)>1?d.Children.only(null):d.isValidElement(h)?h.props.children:null:f);return e.jsx(o,{...l,ref:n,children:d.isValidElement(h)?d.cloneElement(h,void 0,u):null})}return e.jsx(o,{...l,ref:n,children:i})});return r.displayName=`${t}.Slot`,r}function xt(t){const o=d.forwardRef((r,s)=>{const{children:n,...i}=r,l=d.isValidElement(n)?bt(n):void 0,a=gt(l,s);if(d.isValidElement(n)){const c=wt(i,n.props);return n.type!==d.Fragment&&(c.ref=a),d.cloneElement(n,c)}return d.Children.count(n)>1?d.Children.only(null):null});return o.displayName=`${t}.SlotClone`,o}var vt=Symbol("radix.slottable");function Ct(t){return d.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===vt}function wt(t,o){const r={...o};for(const s in o){const n=t[s],i=o[s];/^on[A-Z]/.test(s)?n&&i?r[s]=(...a)=>{const c=i(...a);return n(...a),c}:n&&(r[s]=n):s==="style"?r[s]={...n,...i}:s==="className"&&(r[s]=[n,i].filter(Boolean).join(" "))}return{...t,...r}}function bt(t){var s,n;let o=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?t.ref:(o=(n=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:n.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var yt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$t=yt.reduce((t,o)=>{const r=mt(`Primitive.${o}`),s=d.forwardRef((n,i)=>{const{asChild:l,...a}=n,c=l?r:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${o}`,{...t,[o]:s}},{}),jt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Rt="VisuallyHidden",se=d.forwardRef((t,o)=>e.jsx($t.span,{...t,ref:o,style:{...jt,...t.style}}));se.displayName=Rt;var St=se;const It=m(null,{all:"unset",display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1,border:"1px solid transparent",boxSizing:"border-box",cursor:"pointer","&:focus-visible":{boxShadow:"0 0 0 2px $colors$blueA7"},"&:disabled":{backgroundColor:"$grayA3",color:"$grayA8",cursor:"not-allowed"}}),kt=m(Se,{position:"fixed",inset:0,animation:`${xe} 150ms cubic-bezier(0.16, 1, 0.3, 1)`}),Mt=m(Ie,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"440px",maxHeight:"85vh",padding:"$3",borderRadius:"$5",overflow:"hidden",backgroundColor:"$subbg",boxShadow:"$popContainer",animation:`${ve} 150ms cubic-bezier(0.16, 1, 0.3, 1)`,"&:focus":{outline:"none"},"&[data-state=open]":{animation:`${Ce} 250ms ease`},"&[data-state=closed]":{animation:`${we} 250ms ease`}}),Pt=m(q,It,{position:"absolute",appearance:"none",height:"$6",width:"$6",top:"$2",right:"$2",alignItems:"center",justifyContent:"center",border:"none",borderRadius:"$3",color:"$gray10",zIndex:2,backgroundColor:"transparent","& > svg":{height:"18px",width:"18px"},"&:hover":{color:"$gray12",backgroundColor:"$gray4"},"&:focus":{boxShadow:"0 0 0 3px $colors$grayA7"},"&:focus-visble":{boxShadow:"0 0 0 3px $colors$grayA7"}});function Lt({children:t,zIndex:o,css:r,...s}){return e.jsxs(Le,{children:[e.jsx(kt,{className:"DialogOverlay",style:{zIndex:o}}),e.jsx(Mt,{className:"DialogContent",...s,css:{...r,zIndex:o},children:t})]})}const Tt=Pe,Vt=Lt,p0=q;function g0(t){return e.jsx(J,{asChild:!0,children:t.children})}function m0(t){const{trigger:o,children:r,closable:s,onOpenChange:n,disabled:i,css:l,zIndex:a,className:c,id:h,modal:u=!0,...f}=t;return e.jsxs(Tt,{onOpenChange:n,modal:u,...f,children:[o&&e.jsx(J,{asChild:!0,disabled:i,children:o}),e.jsxs(Vt,{id:h,css:l,zIndex:a,className:c,children:[e.jsxs(St,{children:[e.jsx(ke,{}),e.jsx(Me,{})]}),r,s&&e.jsx(Pt,{children:e.jsx(be,{})})]})]})}const K=m("div",{"&:after":{content:'""',position:"absolute"},variants:{variant:{solid:{borderColor:"$border","&:hover":{"&::after":{borderColor:"$blue10"}}},transparent:{"&::after":{borderColor:"transparent"},"&:hover":{"&::after":{borderColor:"$blue10"}}}},needPosition:{true:{position:"absolute"}},direction:{horizontal:{height:"100%",width:"4px",position:"absolute",cursor:"col-resize","&::after":{width:"4px",height:"100%",borderLeftWidth:"4px",borderLeftStyle:"solid",transition:"all .2s ease"}},vertical:{position:"absolute",height:"4px",width:"100%",cursor:"row-resize","&:after":{width:"100%",height:"4px",borderBottom:"4px solid $border",borderLeft:"none",transition:"all .2s ease"}}},position:{left:{top:0,left:0},right:{top:0,right:0},top:{top:0,left:0},bottom:{bottom:0,left:0}}},defaultVariants:{needPosition:!0,direction:"horizontal",position:"right",variant:"solid"}}),x0=d.forwardRef(function(o,r){const{children:s,range:n,direction:i="horizontal",handlerPosition:l="right",asChild:a=!1,variant:c="transparent",reverse:h=!1}=o,u=d.useRef(null),f=d.useRef(null),[v,C]=d.useState(n||{max:0,min:0}),[p,b]=d.useState({x:0,y:0}),[g,z]=d.useState({width:0,height:0}),[V,N]=d.useState(!1),S=({clientX:x,clientY:w})=>{if(!V)return;let y,$;h?(i==="horizontal"&&(y=k(g.width-(x-p.x),v.min,v.max)),i==="vertical"&&($=k(g.height-(w-p.y),v.min,v.max))):(i==="horizontal"&&(y=k(g.width+(x-p.x),v.min,v.max)),i==="vertical"&&($=k(g.height+(w-p.y),v.min,v.max))),i==="horizontal"&&(f.current.style.width=`${y}px`),i==="vertical"&&(f.current.style.height=`${$}px`)},I=d.useCallback(()=>{N(!1),z(x=>({...x,width:f.current.offsetWidth,height:f.current.offsetHeight}))},[]),O=x=>{x.preventDefault(),N(!0),b({x:x.clientX,y:x.clientY})};if(d.useEffect(()=>{const{offsetWidth:x,offsetHeight:w}=f.current;if(z({width:x,height:w}),!o.range){let y,$;i==="horizontal"&&(y=x-50,$=x+50,f.current.style.width=`${x}px`),i==="vertical"&&(y=w-50,$=w+50,f.current.style.height=`${w}px`),C({min:y,max:$})}f.current.style.flexGrow="initial"},[]),d.useEffect(()=>(u.current&&u.current.addEventListener("mousedown",O),V?(window.addEventListener("mousemove",S),window.addEventListener("mouseup",I)):(window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)),()=>{u.current&&u.current.removeEventListener("mousedown",O),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)}),[V,i,S,I]),a){const x=E.Children.only(s),w=e.jsx(K,{variant:c,needPosition:!1,ref:u,direction:i,position:l},"resize-handler");return E.cloneElement(x,{...x.props,ref:_([r,f,x.props.ref]),style:{...x.props.style||{},position:"relative"}},[x.props.children,w])}return e.jsxs("div",{ref:_([r,f]),style:{position:"relative"},children:[s,e.jsx(K,{variant:c,ref:u,direction:i,position:l})]})}),le="galacean-editor-theme",T=new Set,ae=()=>typeof window<"u",de=()=>!ae(),H={light:ye.className,dark:$e.className,system:"system"},F="dark",Et=()=>{if(de())return F;try{const t=window.localStorage.getItem(le);return typeof t=="string"?t:F}catch(t){return console.warn(t),null}},Zt=()=>de()?F:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";function Ht(){if(!ae())return"dark";const t=document.documentElement;let o=Et();return o==null&&(o=Zt()),t.classList.add(H[o]),o}function v0(t){T.add(t)}function C0(t){T.delete(t)}const Ft=()=>{const[t,o]=d.useState(""),r=i=>{const l=document.documentElement;l.classList.remove(H[t]),l.classList.add(H[i]),o(i)},s=i=>{try{typeof i=="string"&&window.localStorage.setItem(le,i)}catch(l){console.warn(l)}};d.useEffect(()=>{const i=Ht();n(i)},[]),d.useEffect(()=>{function i(a){r(a.matches?"dark":"light")}function l(a){r(a.matches?"light":"dark")}return t==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",l)),()=>{window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",i),window.matchMedia("(prefers-color-scheme: light)").removeEventListener("change",l)}},[t]);const n=i=>{r(i),s(i),i&&T.size&&T.forEach(l=>{l(i)})};return{theme:t,setTheme:n}},Dt=d.createContext(null),w0=({children:t})=>{const{theme:o,setTheme:r}=Ft();return e.jsx(Dt.Provider,{value:{theme:o,setTheme:r},children:t})};export{T1 as Accordion,V1 as AccordionItem,$0 as ActionButton,j0 as ActionButtonGroup,so as AlertDialog,R0 as AssetItem,S0 as Badge,Z1 as BezierCurveEditor,I0 as Bold,k0 as BreadcrumbItem,M0 as Breadcrumbs,P0 as Button,F1 as Callout,L0 as CascadeSlider,T0 as Checkbox,V0 as Collapsible,E0 as ColorPicker,A1 as ContextMenu,m0 as Dialog,p0 as DialogCloseTrigger,g0 as DialogTrigger,Z0 as DragContext,H0 as DragDropContextProvider,h0 as DragPreview,B1 as DropdownMenu,a0 as EditableText,F0 as EyeDropperIcon,fe as Flex,_t as GalaceanLogo,D0 as GradientSlider,A0 as HDRSlider,B0 as HoverCard,Gt as IconAnimationControllerFile,Wt as IconAnimatorClipFile,Ut as IconCodeFile,Kt as IconFontFile,Qt as IconLottieFile,z0 as IconPendingFile,Xt as IconPrefabFile,N0 as IconRightBottomCorner,Yt as IconSceneFile,qt as IconShaderFile,e0 as IconSpineFile,Jt as IconSpineSkeletonFile,o0 as IconSpriteAltasFile,t0 as IconSpriteFile,n0 as IconUnknownFile,r0 as IconVrReferenceImageFile,he as Input,O0 as InputNumber,f0 as InsertionIndicator,z1 as Kbd,N1 as KbdGroup,_0 as Link,O1 as MenuCheckboxItem,_1 as MenuGroup,U1 as MenuItem,G1 as MenuRadioGroup,W1 as MenuSeparator,K1 as Menubar,Q1 as MenubarItem,X1 as MouseDoubleDownIcon,Y1 as MouseLeftDownIcon,q1 as MouseRightDownIcon,u0 as Pagination,U0 as ParticleSlider,G0 as Popover,W0 as PopoverCloseTrigger,s0 as Progress,x0 as ResizablePanel,J1 as ScrollArea,K0 as SegmentControl,Q0 as SegmentControlItem,X0 as Select,Y0 as SelectItem,q0 as Separator,J0 as Slider,e1 as Spin,eo as SubMenuItem,c0 as Table,ue as Text,t1 as Textarea,Dt as ThemeContext,w0 as ThemeProvider,o1 as Title,d0 as Toaster,n1 as ToggleGroup,r1 as ToggleGroupItem,oo as Tooltip,i1 as TreeGroup,s1 as TreeItemContent,l1 as TreeItemIcon,a1 as TreeItemPreview,d1 as TreeItemRoot,l0 as Triangle,v0 as addThemeChangeListener,c1 as animations,h1 as blendParticleStops,k as clamp,f1 as createDisplayColorSpaceToggle,u1 as createTheme,Y as css,$e as darkTheme,H as defaultThemes,p1 as denormalizeColor,g1 as generateHDR,m1 as generateLinearGradient,x1 as generatePreviewColor,v1 as getCssText,C1 as globalCss,w1 as isEqual,b1 as keyframes,ye as lightTheme,y1 as linearColorToSRGB,_ as mergeRefs,$1 as normalizeColor,j1 as recipes,C0 as removeThemeChangeListener,R1 as resetStyle,lo as showAlert,S1 as srgbColorToLinear,m as styled,I1 as theme,k1 as toNormalizeHexStr,ro as toast,M1 as useColorSpaceConversion,P1 as useDrag,pe as useDrop,Ft as useTheme};
|
|
16
|
+
Defaulting to \`null\`.`}var et=ee,tt=oe;const ot=m(et,{position:"relative",width:"100%",backgroundColor:"$softBg",borderRadius:"$round",overflow:"hidden",boxSizing:"border-box",border:"1px solid transparent",variants:{size:{sm:{height:"$1"},md:{height:"$1_5"},lg:{height:"$2"}}},defaultVariants:{size:"md"}}),nt=m(tt,{width:"100%",height:"100%",borderRadius:"$round",backgroundColor:"$selectionBg",transition:"transform .2s ease-out, background-color .2s ease-out"});function n0(t){const o=Math.max(0,Math.min(100,t.value??0));return e.jsx(ot,{...t,children:e.jsx(nt,{style:{transform:`translateX(-${100-o}%)`}})})}const r0=m("div",{position:"relative",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderRadius:"2px",borderTop:"6px solid CurrentColor",transformOrigin:"center",variants:{animate:{true:{transition:"transform .2s"}},size:{xs:{borderLeftWidth:"4px",borderRightWidth:"4px",borderTopWidth:"4px"}},direction:{rightbottom:{transform:"rotate(-45deg)"},leftbottom:{transform:"rotate(45deg)"},righttop:{transform:"rotate(135deg)"},lefttop:{transform:"rotate(-135deg)"},right:{transform:"rotate(90deg)"},left:{transform:"rotate(-90deg)"},top:{transform:"rotate(180deg)"},bottom:{transform:"rotate(0deg)"}}}}),re=m("span",{visibility:"hidden",position:"relative",cursor:"pointer",color:"$gray10","& > svg":{height:"14px",width:"14px",strokeWidth:1.8}}),rt=m("div",{maxWidth:"100%",display:"inline-block","&:hover":{[`${re}`]:{visibility:"visible"}},variants:{focused:{true:{backgroundColor:"$gray1"}}}});function i0(t){const{value:o,onBlur:r,showIcon:s,css:n,onEdit:i}=t,l=d.useRef(null),[a,c]=d.useState(o),[f,u]=d.useState(!1),[h,v]=d.useState(!1);d.useEffect(()=>{c(o)},[o]);const C=async()=>{v(!0),r&&typeof r=="function"&&await r(a),u(!1),v(!1)},p=()=>{u(!0),i&&i(),setTimeout(()=>{var g;(g=l.current)==null||g.focus()},0)},b=g=>{g.stopPropagation(),g.key==="Enter"&&C(),g.key==="Escape"&&(c(o),C())};return e.jsx(rt,{focused:f,css:n,children:f?e.jsx(fe,{disabled:h,ref:l,value:a,onKeyDown:b,onChange:g=>{g.preventDefault(),g.stopPropagation(),c(g.target.value)},onKeyUp:g=>{g.preventDefault(),g.stopPropagation(),g.key==="Enter"&&C()},onBlur:()=>{C()}}):e.jsxs(he,{align:"v",onClick:g=>{g.stopPropagation(),!s&&p()},gap:"xs",wrap:"false",css:n,children:[e.jsx(ue,{ellipsis:!0,size:1,css:n,children:a}),s&&e.jsx(re,{onClick:p,children:e.jsx(Te,{})})]})})}const ie=Y({color:"$grayA11","& > div:first-child":{marginRight:"$2"},"div[role=status]":{margin:0}})(),it=Y({[`& .${ie}`]:{minHeight:"$7",padding:"$1_5 $2",borderRadius:"$3",border:"1px solid $gray6",backgroundColor:"$toasterBg",color:"$grayA11",fontSize:"$1",boxShadow:"0 5px 10px rgba(0,0,0,0.08)"}})();function s0(t){const{toastOptions:o,containerStyle:r,...s}=t;return e.jsx(pe,{containerStyle:{inset:38,...r},toastOptions:{...o,className:ie,success:{iconTheme:{primary:"var(--colors-green10)",secondary:"var(--colors-white)"}},error:{iconTheme:{primary:"var(--colors-red9)",secondary:"var(--colors-white)"}}},containerClassName:it,...s})}const Z=m("tr",{color:"$gray11"}),B=m("th",{fontWeight:"unset",textAlign:"start",fontSize:"$2",padding:"$2",borderBottom:"1px solid $gray3",userSelect:"none","&:nth-child(1)":{paddingLeft:"$2"},variants:{align:{start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},border:{solid:{borderBottom:"1px solid $gray3"},dashed:{borderBottom:"1px dashed $gray8"}}},defaultVariants:{align:"start",border:"solid"}}),T=m("td",{py:"$2",borderBottom:"1px solid $gray3",fontSize:"$2",padding:"$2",verticalAlign:"middle",userSelect:"none",variants:{align:{start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},border:{solid:{borderBottom:"1px solid $gray3"},dashed:{borderBottom:"1px dashed $gray8"}}},defaultVariants:{align:"start",border:"solid"}}),st=m("thead",{[`& ${B}`]:{fontSize:"$1",color:"$gray9"},[`& ${T}`]:{fontSize:"$1",color:"$gray9"}}),lt=m("tbody",{width:"100%",[`& ${Z}`]:{"&:hover":{backgroundColor:"$gray2"}}}),at=m("table",{width:"100%",tableLayout:"fixed",borderSpacing:0,variants:{compact:{true:{[`& ${B}`]:{padding:"$2 $0_5","&:nth-child(1)":{paddingLeft:"$2"}},[`& ${T}`]:{padding:"$0_5",fontSize:"$1"}}}}});function l0(t){const{columns:o=[],dataSource:r=[],rowKey:s,compact:n,onClickRow:i}=t;return e.jsxs(at,{compact:n,children:[e.jsx("colgroup",{children:o.map(l=>e.jsx("col",{span:1,style:{width:l.width||"auto"}},l.key))}),e.jsx(st,{children:e.jsx(Z,{children:o.map(l=>e.jsx(B,{children:l.title},l.key))})}),e.jsx(lt,{children:r.map((l,a)=>{const c=[];return o.forEach(f=>{if(f.render){c.push(e.jsx(T,{children:f.render(l[f.dataIndex],l)},f.key));return}c.push(e.jsx(T,{children:l[f.dataIndex]},f.key))}),e.jsx(Z,{onClick:f=>{i&&(f.stopPropagation(),i(l))},children:c},a)})})]})}const dt=m("div",{position:"relative",display:"flex",alignItems:"center",width:"300px",height:"$7",fontSize:"$1",boxSizing:"border-box",justifyContent:"space-between",padding:"0 $2",color:"white",backgroundColor:"$blue9",borderRadius:"$1","& > span:nth-child(2)":{display:"flex",alignItems:"center",height:"$5",fontSize:"$xs",padding:"0 $2",borderRadius:"$round",backgroundColor:"white",color:"$blue9"}});function a0(t){const{text:o,size:r}=t;return e.jsxs(dt,{children:[e.jsx("span",{children:o}),r>1&&e.jsx("span",{children:r})]})}const ct=m("div",{display:"flex",position:"absolute",width:"calc(100% - $sizes$8)",height:"$1",alignItems:"center",marginLeft:"$3",marginTop:"-$0_5",outline:"none",flexDirection:"row-reverse"}),ft=m("div",{position:"relative",height:1,outline:"none",pointerEvents:"none",flexDirection:"row-reverse",'&[data-drop-target="true"]':{backgroundColor:"#fff","&::after":{content:'""',position:"absolute",top:-4,left:-8,width:6,height:6,borderRadius:"$round",border:"1px solid white",zIndex:1}}});function d0(t){const{item:o,position:r,dropLayer:s,level:n,onDrop:i}=t,[l,a]=E.useState(!1),c=ge({accept:s??0,onEnter(u,h){h&&a(!0)},onLeave(){a(!1)},onDrop:(u,h)=>{a(!1),i(u,h,r)}}),f={width:`calc(100% - ${n*12}px)`};return e.jsx(ct,{ref:c,role:"option","aria-selected":"false","data-key":`${o}-${r}`,"aria-level":n,children:e.jsx(ft,{style:f,"data-drop-target":l})})}const $="...",R=(t,o)=>{const r=o-t+1;return Array.from({length:r},(s,n)=>n+t)},ht=t=>{const{totalCount:o,pageSize:r,siblingCount:s=1,currentPage:n}=t;return d.useMemo(()=>{const l=Math.ceil(o/r);if(s+5>=l)return R(1,l);const c=Math.max(n-s,1),f=Math.min(n+s,l),u=c>3,h=f<l-3,v=1,C=l;if(!u&&h){const p=3+2*s;return[...R(1,p),$,l]}if(u&&!h){const p=3+2*s,b=R(l-p+1,l);return[v,$,...b]}if(u&&h){const p=R(c,f);return[v,$,...p,$,C]}return R(1,l)},[o,r,s,n])},ut=m("ul",{display:"flex",alignItems:"center"}),M=m("li",{display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid $border",color:"$text",userSelect:"none",cursor:"pointer",marginRight:"$2",transition:"$borderColor, $backgroundColor, $color, $shadow","&:last-child":{marginRight:0},"&:hover":{borderColor:"$borderStrong",backgroundColor:"$surfaceSubtle"},"&:focus-visible":{borderColor:"$borderStrong",boxShadow:"$focus"},variants:{active:{true:{backgroundColor:"$selectionBg",borderColor:"$selectionBorder",color:"$selectionText","&:hover":{borderColor:"$selectionBorder",backgroundColor:"$selectionBgHover",color:"$selectionText"}}},disabled:{true:{backgroundColor:"$surface",color:"$textMuted",cursor:"initial","&:hover":{borderColor:"$border",backgroundColor:"$surface"}}},size:{sm:{height:"$sm",width:"$sm",fontSize:"$1",borderRadius:"$sm","& > svg":{width:"$iconSm",height:"$iconSm"}},md:{height:"$md",width:"$md",fontSize:"$2",borderRadius:"$md","& > svg":{width:"$iconMd",height:"$iconMd"}}}},defaultVariants:{size:"sm"}});function c0(t){const{totalCount:o,onPageChange:r,currentPage:s,pageSize:n,siblingCount:i=1,size:l}=t,[a=1,c]=me({prop:s,onChange:r,defaultProp:t.currentPage}),f=ht({currentPage:a,totalCount:o,siblingCount:i,pageSize:n}),u=f[f.length-1];if(a===0||f.length<2)return null;const h=()=>{a>=u||c(a+1)},v=()=>{a!==1&&c(a-1)},C=p=>{c(p)};return e.jsxs(ut,{children:[e.jsx(M,{size:l,onClick:v,disabled:a===1,children:e.jsx(Le,{})}),f.map((p,b)=>p===$?e.jsx(M,{size:l,children:e.jsx(Ve,{})},`${$}_${b}`):e.jsx(M,{onClick:()=>C(p),active:p===a,size:l,children:p},p)),e.jsx(M,{size:l,onClick:h,disabled:a===u,children:e.jsx(xe,{})})]})}function W(t,o){if(typeof t=="function")return t(o);t!=null&&(t.current=o)}function pt(...t){return o=>{let r=!1;const s=t.map(n=>{const i=W(n,o);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<s.length;n++){const i=s[n];typeof i=="function"?i():W(t[n],null)}}}}function gt(...t){return d.useCallback(pt(...t),t)}function mt(t){const o=xt(t),r=d.forwardRef((s,n)=>{const{children:i,...l}=s,a=d.Children.toArray(i),c=a.find(Ct);if(c){const f=c.props.children,u=a.map(h=>h===c?d.Children.count(f)>1?d.Children.only(null):d.isValidElement(f)?f.props.children:null:h);return e.jsx(o,{...l,ref:n,children:d.isValidElement(f)?d.cloneElement(f,void 0,u):null})}return e.jsx(o,{...l,ref:n,children:i})});return r.displayName=`${t}.Slot`,r}function xt(t){const o=d.forwardRef((r,s)=>{const{children:n,...i}=r,l=d.isValidElement(n)?bt(n):void 0,a=gt(l,s);if(d.isValidElement(n)){const c=wt(i,n.props);return n.type!==d.Fragment&&(c.ref=a),d.cloneElement(n,c)}return d.Children.count(n)>1?d.Children.only(null):null});return o.displayName=`${t}.SlotClone`,o}var vt=Symbol("radix.slottable");function Ct(t){return d.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===vt}function wt(t,o){const r={...o};for(const s in o){const n=t[s],i=o[s];/^on[A-Z]/.test(s)?n&&i?r[s]=(...a)=>{const c=i(...a);return n(...a),c}:n&&(r[s]=n):s==="style"?r[s]={...n,...i}:s==="className"&&(r[s]=[n,i].filter(Boolean).join(" "))}return{...t,...r}}function bt(t){var s,n;let o=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?t.ref:(o=(n=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:n.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var yt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jt=yt.reduce((t,o)=>{const r=mt(`Primitive.${o}`),s=d.forwardRef((n,i)=>{const{asChild:l,...a}=n,c=l?r:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${o}`,{...t,[o]:s}},{}),$t=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Rt="VisuallyHidden",se=d.forwardRef((t,o)=>e.jsx(jt.span,{...t,ref:o,style:{...$t,...t.style}}));se.displayName=Rt;var St=se;const It=m(null,{all:"unset",display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1,border:"1px solid transparent",boxSizing:"border-box",cursor:"pointer","&:focus-visible":{boxShadow:"0 0 0 2px $colors$blueA7"},"&:disabled":{backgroundColor:"$grayA3",color:"$grayA8",cursor:"not-allowed"}}),kt=m(ve,{position:"fixed",inset:0,animation:`${Ce} 150ms cubic-bezier(0.16, 1, 0.3, 1)`}),Mt=m(we,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"440px",maxHeight:"85vh",padding:"$3",borderRadius:"$5",overflow:"hidden",backgroundColor:"$subbg",boxShadow:"$popContainer",animation:`${be} 150ms cubic-bezier(0.16, 1, 0.3, 1)`,"&:focus":{outline:"none"},"&[data-state=open]":{animation:`${ye} 250ms ease`},"&[data-state=closed]":{animation:`${je} 250ms ease`}}),Pt=m(q,It,{position:"absolute",appearance:"none",height:"$6",width:"$6",top:"$2",right:"$2",alignItems:"center",justifyContent:"center",border:"none",borderRadius:"$3",color:"$gray10",zIndex:2,backgroundColor:"transparent","& > svg":{height:"18px",width:"18px"},"&:hover":{color:"$gray12",backgroundColor:"$gray4"},"&:focus":{boxShadow:"0 0 0 3px $colors$grayA7"},"&:focus-visble":{boxShadow:"0 0 0 3px $colors$grayA7"}});function Tt({children:t,zIndex:o,css:r,...s}){return e.jsxs(ke,{children:[e.jsx(kt,{className:"DialogOverlay",style:{zIndex:o}}),e.jsx(Mt,{className:"DialogContent",...s,css:{...r,zIndex:o},children:t})]})}const Lt=Ie,Vt=Tt,f0=q;function h0(t){return e.jsx(J,{asChild:!0,children:t.children})}function u0(t){const{trigger:o,children:r,closable:s,onOpenChange:n,disabled:i,css:l,zIndex:a,className:c,id:f,modal:u=!0,...h}=t;return e.jsxs(Lt,{onOpenChange:n,modal:u,...h,children:[o&&e.jsx(J,{asChild:!0,disabled:i,children:o}),e.jsxs(Vt,{id:f,css:l,zIndex:a,className:c,children:[e.jsxs(St,{children:[e.jsx($e,{}),e.jsx(Re,{})]}),r,s&&e.jsx(Pt,{children:e.jsx(Se,{})})]})]})}const K=m("div",{"&:after":{content:'""',position:"absolute"},variants:{variant:{solid:{borderColor:"$border","&:hover":{"&::after":{borderColor:"$blue10"}}},transparent:{"&::after":{borderColor:"transparent"},"&:hover":{"&::after":{borderColor:"$blue10"}}}},needPosition:{true:{position:"absolute"}},direction:{horizontal:{height:"100%",width:"4px",position:"absolute",cursor:"col-resize","&::after":{width:"4px",height:"100%",borderLeftWidth:"4px",borderLeftStyle:"solid",transition:"all .2s ease"}},vertical:{position:"absolute",height:"4px",width:"100%",cursor:"row-resize","&:after":{width:"100%",height:"4px",borderBottom:"4px solid $border",borderLeft:"none",transition:"all .2s ease"}}},position:{left:{top:0,left:0},right:{top:0,right:0},top:{top:0,left:0},bottom:{bottom:0,left:0}}},defaultVariants:{needPosition:!0,direction:"horizontal",position:"right",variant:"solid"}}),p0=d.forwardRef(function(o,r){const{children:s,range:n,direction:i="horizontal",handlerPosition:l="right",asChild:a=!1,variant:c="transparent",reverse:f=!1}=o,u=d.useRef(null),h=d.useRef(null),[v,C]=d.useState(n||{max:0,min:0}),[p,b]=d.useState({x:0,y:0}),[g,z]=d.useState({width:0,height:0}),[V,N]=d.useState(!1),S=({clientX:x,clientY:w})=>{if(!V)return;let y,j;f?(i==="horizontal"&&(y=k(g.width-(x-p.x),v.min,v.max)),i==="vertical"&&(j=k(g.height-(w-p.y),v.min,v.max))):(i==="horizontal"&&(y=k(g.width+(x-p.x),v.min,v.max)),i==="vertical"&&(j=k(g.height+(w-p.y),v.min,v.max))),i==="horizontal"&&(h.current.style.width=`${y}px`),i==="vertical"&&(h.current.style.height=`${j}px`)},I=d.useCallback(()=>{N(!1),z(x=>({...x,width:h.current.offsetWidth,height:h.current.offsetHeight}))},[]),O=x=>{x.preventDefault(),N(!0),b({x:x.clientX,y:x.clientY})};if(d.useEffect(()=>{const{offsetWidth:x,offsetHeight:w}=h.current;if(z({width:x,height:w}),!o.range){let y,j;i==="horizontal"&&(y=x-50,j=x+50,h.current.style.width=`${x}px`),i==="vertical"&&(y=w-50,j=w+50,h.current.style.height=`${w}px`),C({min:y,max:j})}h.current.style.flexGrow="initial"},[]),d.useEffect(()=>(u.current&&u.current.addEventListener("mousedown",O),V?(window.addEventListener("mousemove",S),window.addEventListener("mouseup",I)):(window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)),()=>{u.current&&u.current.removeEventListener("mousedown",O),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)}),[V,i,S,I]),a){const x=E.Children.only(s),w=e.jsx(K,{variant:c,needPosition:!1,ref:u,direction:i,position:l},"resize-handler");return E.cloneElement(x,{...x.props,ref:_([r,h,x.props.ref]),style:{...x.props.style||{},position:"relative"}},[x.props.children,w])}return e.jsxs("div",{ref:_([r,h]),style:{position:"relative"},children:[s,e.jsx(K,{variant:c,ref:u,direction:i,position:l})]})}),le="galacean-editor-theme",L=new Set,ae=()=>typeof window<"u",de=()=>!ae(),H={light:Me.className,dark:Pe.className,system:"system"},F="dark",Et=()=>{if(de())return F;try{const t=window.localStorage.getItem(le);return typeof t=="string"?t:F}catch(t){return console.warn(t),null}},Zt=()=>de()?F:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";function Ht(){if(!ae())return"dark";const t=document.documentElement;let o=Et();return o==null&&(o=Zt()),t.classList.add(H[o]),o}function g0(t){L.add(t)}function m0(t){L.delete(t)}const Ft=()=>{const[t,o]=d.useState(""),r=i=>{const l=document.documentElement;l.classList.remove(H[t]),l.classList.add(H[i]),o(i)},s=i=>{try{typeof i=="string"&&window.localStorage.setItem(le,i)}catch(l){console.warn(l)}};d.useEffect(()=>{const i=Ht();n(i)},[]),d.useEffect(()=>{function i(a){r(a.matches?"dark":"light")}function l(a){r(a.matches?"light":"dark")}return t==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",l)),()=>{window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",i),window.matchMedia("(prefers-color-scheme: light)").removeEventListener("change",l)}},[t]);const n=i=>{r(i),s(i),i&&L.size&&L.forEach(l=>{l(i)})};return{theme:t,setTheme:n}},At=d.createContext(null),x0=({children:t})=>{const{theme:o,setTheme:r}=Ft();return e.jsx(At.Provider,{value:{theme:o,setTheme:r},children:t})};export{E1 as Accordion,Z1 as AccordionItem,w0 as ActionButton,b0 as ActionButtonGroup,y0 as AlertDialog,j0 as AssetItem,$0 as Badge,L1 as BezierCurveEditor,R0 as Bold,S0 as BreadcrumbItem,I0 as Breadcrumbs,k0 as Button,F1 as Callout,M0 as CascadeSlider,P0 as Checkbox,T0 as Collapsible,L0 as ColorPicker,D1 as ContextMenu,u0 as Dialog,f0 as DialogCloseTrigger,h0 as DialogTrigger,V0 as DragContext,E0 as DragDropContextProvider,a0 as DragPreview,B1 as DropdownMenu,i0 as EditableText,Z0 as EyeDropperIcon,he as Flex,zt as GalaceanLogo,H0 as GradientSlider,F0 as HDRSlider,A0 as HoverCard,Ot as IconAnimationControllerFile,_t as IconAnimatorClipFile,Nt as IconCodeFile,Ut as IconFontFile,Gt as IconLottieFile,D0 as IconPendingFile,Wt as IconPrefabFile,B0 as IconRightBottomCorner,Kt as IconSceneFile,Xt as IconShaderFile,Yt as IconSpineFile,Qt as IconSpineSkeletonFile,Jt as IconSpriteAltasFile,qt as IconSpriteFile,e0 as IconUnknownFile,t0 as IconVrReferenceImageFile,fe as Input,z0 as InputNumber,d0 as InsertionIndicator,z1 as Kbd,N1 as KbdGroup,N0 as Link,O1 as MenuCheckboxItem,_1 as MenuGroup,U1 as MenuItem,G1 as MenuRadioGroup,W1 as MenuSeparator,K1 as Menubar,X1 as MenubarItem,Q1 as MouseDoubleDownIcon,Y1 as MouseLeftDownIcon,q1 as MouseRightDownIcon,c0 as Pagination,O0 as ParticleSlider,_0 as Popover,U0 as PopoverCloseTrigger,n0 as Progress,p0 as ResizablePanel,J1 as ScrollArea,G0 as SegmentControl,W0 as SegmentControlItem,K0 as Select,X0 as SelectItem,Q0 as Separator,Y0 as Slider,q0 as Spin,eo as SubMenuItem,l0 as Table,ue as Text,J0 as Textarea,At as ThemeContext,x0 as ThemeProvider,e1 as Title,s0 as Toaster,t1 as ToggleGroup,o1 as ToggleGroupItem,oo as Tooltip,n1 as TreeGroup,r1 as TreeItemContent,i1 as TreeItemIcon,s1 as TreeItemPreview,l1 as TreeItemRoot,r0 as Triangle,g0 as addThemeChangeListener,a1 as animations,d1 as blendParticleStops,k as clamp,c1 as createDisplayColorSpaceToggle,f1 as createTheme,Y as css,Pe as darkTheme,H as defaultThemes,h1 as denormalizeColor,u1 as generateHDR,p1 as generateLinearGradient,g1 as generatePreviewColor,m1 as getCssText,x1 as globalCss,v1 as isEqual,C1 as keyframes,Me as lightTheme,w1 as linearColorToSRGB,_ as mergeRefs,b1 as normalizeColor,y1 as recipes,m0 as removeThemeChangeListener,j1 as resetStyle,$1 as showAlert,R1 as srgbColorToLinear,m as styled,S1 as theme,I1 as toNormalizeHexStr,k1 as toast,M1 as useColorSpaceConversion,P1 as useDrag,ge as useDrop,Ft as useTheme};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var v=Object.defineProperty;var x=(r,n,e)=>n in r?v(r,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[n]=e;var c=(r,n,e)=>(x(r,typeof n!="symbol"?n+"":n,e),e);import{di as w,dj as D,n as A,e as B,q as E,o as R,j as S,dk as m,u as T,x as F,bD as z,aL as O,K as C,U as P,S as k,dl as M,aU as f}from"./index-1e23212d.js";let y=null;function l(){return y??(y=new w),y}const j=new Proxy({},{get(r,n,e){const t=l(),s=Reflect.get(t,n,t);return typeof s=="function"?s.bind(t):s},set(r,n,e,t){return Reflect.set(l(),n,e),!0},has(r,n){return Reflect.has(l(),n)},ownKeys(){return Reflect.ownKeys(l())},getOwnPropertyDescriptor(r,n){const e=Reflect.getOwnPropertyDescriptor(l(),n);return e||{configurable:!0,enumerable:!0,writable:!0,value:l()[n]}}});function I(r){D(r)}var L=Object.defineProperty,K=Object.getOwnPropertyDescriptor,h=(r,n,e,t)=>{for(var s=t>1?void 0:t?K(n,e):n,i=r.length-1,o;i>=0;i--)(o=r[i])&&(s=(t?o(n,e,s):o(s))||s);return t&&s&&L(n,e,s),s};let u=class extends S{constructor(n){super(n);c(this,"isRoot",!1);c(this,"isFolder",!0);c(this,"hidden",!1);c(this,"extname","");c(this,"childrenId",[]);c(this,"acceptDragLayer",E.MainAsset);T(this)}get thumbnailUrl(){return this.locked?m.FolderLocked:m.Folder}get children(){const n=[];return this.childrenId.forEach(e=>{const t=this.root.assetStore.assets[e];t&&n.push(t)}),n}afterDelete(){const n=this.root.assetStore.assets;for(;this.childrenId.length;){const e=this.childrenId[0],t=n[e];t.loadingStatus==="success"&&t.beforeDelete&&t.beforeDelete(),this.childrenId.splice(0,1),delete this.root.assetStore.assets[e],t.loadingStatus==="success"&&t.afterDelete&&t.afterDelete()}}async initByMeta(n){super.initByMeta(n),this.isRoot=!!n.isRoot,n.hidden!=null&&(this.hidden=n.hidden),this.initObjectProperties()}async initByMain(n){}initByCreation(n,e,t){return Promise.resolve()}onDoubleClick(){this.root.assetStore.openFolder(this.id)}saveMain(){return null}recursive(n,e=!1){const t=this.children,s=[];for(let i=0;i<t.length;i++){const o=t[i];o.isFolder?(s.push(o),e&&n(o)):n(o)}return s.forEach(i=>i.recursive(n,e))}async asyncRecursive(n,e=!1){const t=this.children,s=[];for(let i=0;i<t.length;i++){const o=t[i];o.isFolder?(s.push(o),e&&await n(o)):await n(o)}for(let i=0;i<s.length;i++)await s[i].asyncRecursive(n,e)}_onDrop(n,e){if(!e||this.id===e.id)return;const{assetStore:t,assetUIStore:s,assetFacade:i}=this.root;if(this.dropping=!1,s.pickedAssets.includes(e.id)){if(s.pickedAssets.includes(this.id))return;for(let o=0;o<s.pickedAssets.length;o++)try{const a=s.pickedAssets[o];if(!t.assets[a])continue;i.moveAsset(a,this.id)}catch(a){I(a instanceof Error?a.message:String(a))}}else try{i.moveAsset(e.id,this.id)}catch(o){I(o instanceof Error?o.message:String(o))}}};h([F],u.prototype,"childrenId",2);h([z],u.prototype,"children",1);h([O],u.prototype,"_onDrop",1);u=h([A({type:"Folder",label:B("asset.folder.title"),dragLayer:E.Folder,importMenuConfig:{type:R.Add}})],u);const d=class d extends S{constructor(){super(...arguments);c(this,"isTemplate",!0);c(this,"_clonedEntities",[]);c(this,"_instances",new Map);c(this,"_rootKey","");c(this,"_tempSize",0)}_buildInstanceLink(){const e=this.getMetaConfig().type;if(e!=="Prefab"&&e!=="glTF")return null;const t=e;return{assetId:this.id,bindingId:"",assetKind:t,role:"root",...this._rootKey&&{sourceEntityId:this._rootKey}}}instantiateEngineObject(){const e=this._instantiateEngineObject();this._clonedEntities.push(e);const t=this._clonedEntities;return e.addComponent(class extends k{onDestroy(){const s=t.indexOf(this.entity);s>=0&&t.splice(s,1)}}),e}addInstance(e,t){var g;const s=e.instanceAssetId;if(s){const p=this.root.assetStore.assets[s];p.isTemplate&&p.removeInstance(e)}const o=e.root.domainStore.getNormalizedState().entities[e.id],a=this._buildInstanceLink();o&&a?(g=o.instance)!=null&&g.bindingId||e.root.entityFacade.updateEntity(e.id,{instance:a}):a&&(e.pendingInstance=a),this._instances.set(e.id,e.entityManager),e.on("delete",()=>{this.removeInstance(e)})}removeInstance(e){var s;((s=e.root.domainStore.getNormalizedState().entities[e.id])==null?void 0:s.instance)!==void 0?e.root.entityFacade.updateEntity(e.id,{instance:null}):e.pendingInstance=null,this._instances.delete(e.id)}get instanceCount(){return this._instances.size}static resolveInstanceEntityIds(e,t){const s=new Set;for(let i=0;i<e.length;i++){const o=e[i],a=t[o];a&&s.add(a.parentId===null?o:a.parentId)}return Array.from(s)}getInstanceEntityIds(){return d.resolveInstanceEntityIds(Array.from(this._instances.keys()),this.root.domainStore.state.entities)}unpackAllInstances(){this._instances.forEach((e,t)=>{var i;const s=e.entities.get(t);s&&(((i=s.root.domainStore.getNormalizedState().entities[s.id])==null?void 0:i.instance)!==void 0?s.root.entityFacade.updateEntity(s.id,{instance:null}):s.pendingInstance=null)}),this._instances.clear()}afterDelete(){this.unpackAllInstances(),this.root.sceneStore.selectEntity(null),this._clonedEntities.forEach(t=>t.destroy());const e=this.getDragTempEntity();e&&(e.destroy(),this.setDragTempEntity(null))}_updateDragTempEntity(){try{const e=this.instantiateEngineObject();this.setDragTempEntity(e),this._tempSize=this._getSize(e)}catch(e){console.warn(`[InstanceEditorAsset] Failed to create drag temp entity for asset ${this.id}:`,e)}}_destroyInstances(){this._instances.forEach((e,t)=>{const s=e.entities.get(t);s==null||s.destroy()}),this._instances.clear()}async updateThumbnail(){this._tempSize?super.updateThumbnail():super.updateThumbnail(!0)}_getSize(e){M(e,d._tempBoundingBox),d._tempBoundingBox.getExtent(d._tempExtend);const t=d._tempExtend.length();return t===1/0?0:t}};c(d,"_tempExtend",new C),c(d,"_tempBoundingBox",new P);let _=d;const b=f.createContext(j);function q(){const r=f.useContext(b);if(!r)throw new Error("useRootStore must be used within a RootProvider");return r}const V=r=>f.useContext(b)[r];export{u as F,_ as I,V as a,j as r,q as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Cn=Object.defineProperty;var En=(e,t,n)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var x=(e,t,n)=>(En(e,typeof t!="symbol"?t+"":t,n),n);import{CameraComponent as
|
|
1
|
+
var Cn=Object.defineProperty;var En=(e,t,n)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var x=(e,t,n)=>(En(e,typeof t!="symbol"?t+"":t,n),n);import{CameraComponent as Mi}from"./CameraComponent-0a115258.js";import{DirectLightComponent as _i}from"./DirectLight-4c53e9f6.js";import{PointLightComponent as Oi}from"./PointLight-b7de209f.js";import{SpotLightComponent as Ti}from"./SpotLight-2b4e593e.js";import{MeshRendererComponent as Ni}from"./MeshRendererComponent-ac4c3954.js";import{SkinnedMeshRendererComponent as zi}from"./SkinnedMeshRendererComponent-5f34bf46.js";import{A as Fi,a as $i}from"./AnimatorStore-6a3679e5.js";import{SpriteRendererComponent as Xi}from"./SpriteRendererComponent-c2123918.js";import{SpriteMaskComponent as Yi}from"./SpriteMaskComponent-a31f3384.js";import{C as Ki,D as Vi,F as qi,H as Gi,P as Ji,a as Qi,S as Zi}from"./PhysicsStore-c283b2be.js";import{ScriptComponent as ts}from"./index-b259cf2e.js";import{TextRendererComponent as rs}from"./TextRendererComponent-429cf17b.js";import{LottieAnimationComponent as is}from"./LottieAnimationComponent-bff0244b.js";import{SpineAnimationComponent as as}from"./SpineAnimationComponent-7c5db747.js";import{ParticleRendererComponent as cs}from"./ParticleRendererComponent-0a470dee.js";import{TrailRendererComponent as ds}from"./TrailRendererComponent-112b1618.js";import{aG as ct,aU as l,bL as X,e6 as pe,aO as ut,aP as Fe,aQ as Dn,aR as Rn,aS as E,aT as qe,e7 as Pn,e8 as Mn,e9 as An,bl as _n,dQ as In,bq as On,K as Ln,U as jt,O as Tn,ea as Ge,L as Bn,ct as De,d_ as Ft,u as Nn,bs as kn,x as le,bD as zn,aL as ve,bt as jn}from"./index-1e23212d.js";import{u as Fn}from"./index-92830754.js";import"./postmen-9e1e15bd.js";import{T as Je}from"./Tooltip-dfde37c6.js";import{I as hs}from"./index-2cdbb69f.js";import{P as gs}from"./PostProcessComponent-d4c9ef58.js";import{AudioComponent as ms}from"./AudioComponent-18a3e59f.js";import{TransformComponent as ys}from"./TransformComponent-c95e25c2.js";import{ButtonComponent as ws,ImageComponent as Ss,TextComponent as Cs,UICanvasComponent as Es,UIGroupComponent as Ds,UITransformComponent as Rs}from"./index-31b7a6d3.js";import"./Component-746be670.js";import"./LightBaseComponent-51d498ea.js";import"./createOnModelChange-b57a0da8.js";import"./ReferencedMaterial-800a1955.js";import"./MaterialInspector-a36197f2.js";import"./IconPointFilled-209638e2.js";import"./MeshRendererBaseComponent-4a3af376.js";import"./SpriteBaseComponent-a75e84c1.js";import"./FormItemArray-a2f72cf1.js";import"./Accordion-930aedee.js";import"./IconEdit-2c768a0a.js";import"./scriptPropertyActions-d3a583d2.js";import"./TextureAsset-93475ade.js";import"./enum-58295f88.js";import"./encode-ac4bb64e.js";import"./meshopt_simplifier.module-cd99529d.js";import"./AssetViewer-0ce46fa1.js";import"./ktx2-encoder-075abd75.js";import"./TaskQueue-05c94a4d.js";import"./GlTFAsset-5f37feef.js";import"./glTFIO-79bbca27.js";import"./MaterialAsset-3b56ac00.js";import"./ProxyConfigs-ad92ebc7.js";import"./MeshAsset-2cf47eb2.js";import"./index-b2e1cba4.js";import"./MeshThumbnail-25cd4a13.js";import"./AnimatorControllerAsset-1c05f4db.js";import"./bundlers-9b0d37fc.js";import"./assetEditorActions-c4e5962f.js";import"./AnimationClipAsset-61699477.js";import"./module-251ecc50.js";import"./module-498119f3.js";import"./SpriteAsset-4e895da5.js";import"./SpriteAtlasAsset-c2894c12.js";import"./AmbientLightAsset-f9c1eb91.js";import"./LottieAsset-9d3ef507.js";import"./ShaderChunkAsset-e9072307.js";import"./SpineSkeletonDataAsset-5b202ba0.js";import"./FontAsset-a3a92f7d.js";import"./SceneAsset-87f2ea92.js";import"./ShaderAsset-98ce1f70.js";import"./ShaderUIScriptAsset-ac824e68.js";import"./PrimitiveMesh-35092ad0.js";import"./XRReferenceImageAsset-dbf129aa.js";import"./module-c6e2d190.js";import"./PrefabAsset-d0c0cd25.js";import"./PhysicsMaterialAsset-d87d35aa.js";import"./RenderTargetAsset-a003f9f5.js";import"./AudioAsset-5127eeec.js";import"./index-c20fc198.js";import"./MarkdownAsset-a17933fb.js";import"./TextBaseComponent-95846acf.js";import"./index-07bbf729.js";import"./Menu-0a7dbec0.js";import"./TransformBaseComponent-a8050787.js";import"./Callout-b6ac1af7.js";/**
|
|
2
2
|
* @license @tabler/icons-react v3.24.0 - MIT
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license.
|
|
@@ -13,8 +13,8 @@ var Cn=Object.defineProperty;var En=(e,t,n)=>t in e?Cn(e,t,{enumerable:!0,config
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/var Xn=ct("filled","player-stop-filled","IconPlayerStopFilled",[["path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",key:"svg-0"}]]);const
|
|
16
|
+
*/var Xn=ct("filled","player-stop-filled","IconPlayerStopFilled",[["path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",key:"svg-0"}]]);const We=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function me(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function dt(e){return"nodeType"in e}function k(e){var t,n;return e?me(e)?e:dt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function ft(e){const{Document:t}=k(e);return e instanceof t}function _e(e){return me(e)?!1:e instanceof k(e).HTMLElement}function Jt(e){return e instanceof k(e).SVGElement}function be(e){return e?me(e)?e.document:dt(e)?ft(e)?e:_e(e)||Jt(e)?e.ownerDocument:document:document:document}const oe=We?l.useLayoutEffect:l.useEffect;function ht(e){const t=l.useRef(e);return oe(()=>{t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Wn(){const e=l.useRef(null),t=l.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=l.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function pt(e,t){t===void 0&&(t=[e]);const n=l.useRef(e);return oe(()=>{n.current!==e&&(n.current=e)},t),n}function Ie(e,t){const n=l.useRef();return l.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function rt(e){const t=ht(e),n=l.useRef(null),r=l.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function ot(e){const t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current}let Qe={};function gt(e,t){return l.useMemo(()=>{if(t)return t;const n=Qe[e]==null?0:Qe[e]+1;return Qe[e]=n,e+"-"+n},[e,t])}function Qt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,a)=>{const s=Object.entries(a);for(const[c,u]of s){const d=i[c];d!=null&&(i[c]=d+e*u)}return i},{...t})}}const ge=Qt(1),$e=Qt(-1);function Yn(e){return"clientX"in e&&"clientY"in e}function Zt(e){if(!e)return!1;const{KeyboardEvent:t}=k(e.target);return t&&e instanceof t}function Hn(e){if(!e)return!1;const{TouchEvent:t}=k(e.target);return t&&e instanceof t}function it(e){if(Hn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Yn(e)?{x:e.clientX,y:e.clientY}:null}const $t="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Kn(e){return e.matches($t)?e:e.querySelector($t)}const Vn={display:"none"};function qn(e){let{id:t,value:n}=e;return X.createElement("div",{id:t,style:Vn},n)}function Gn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return X.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Jn(){const[e,t]=l.useState("");return{announce:l.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const en=l.createContext(null);function Qn(e){const t=l.useContext(en);l.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Zn(){const[e]=l.useState(()=>new Set),t=l.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[l.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var s;return(s=a[o])==null?void 0:s.call(a,i)})},[e]),t]}const er={draggable:`
|
|
17
17
|
To pick up a draggable item, press the space bar.
|
|
18
18
|
While dragging, use the arrow keys to move the item.
|
|
19
19
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
20
|
-
`},tr={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function nr(e){let{announcements:t=tr,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=er}=e;const{announce:i,announcement:a}=Gn(),s=gt("DndLiveRegion"),[c,u]=l.useState(!1);if(l.useEffect(()=>{u(!0)},[]),Qn(l.useMemo(()=>({onDragStart(f){let{active:g}=f;i(t.onDragStart({active:g}))},onDragMove(f){let{active:g,over:p}=f;t.onDragMove&&i(t.onDragMove({active:g,over:p}))},onDragOver(f){let{active:g,over:p}=f;i(t.onDragOver({active:g,over:p}))},onDragEnd(f){let{active:g,over:p}=f;i(t.onDragEnd({active:g,over:p}))},onDragCancel(f){let{active:g,over:p}=f;i(t.onDragCancel({active:g,over:p}))}}),[i,t])),!c)return null;const d=U.createElement(U.Fragment,null,U.createElement(Jn,{id:r,value:o.draggable}),U.createElement(qn,{id:s,announcement:a}));return n?he.createPortal(d,n):d}var I;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(I||(I={}));function Ue(){}const V=Object.freeze({x:0,y:0});function rr(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function or(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function ir(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const c=t.width*t.height,u=e.width*e.height,d=a*s,f=d/(c+u-d);return Number(f.toFixed(4))}return 0}const sr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,s=n.get(a);if(s){const c=ir(s,t);c>0&&o.push({id:a,data:{droppableContainer:i,value:c}})}}return o.sort(rr)};function ar(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function tn(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:V}function lr(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const cr=lr(1);function ur(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function dr(e,t,n){const r=ur(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,c=e.left-a-(1-o)*parseFloat(n),u=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const fr={ignoreTransform:!1};function Oe(e,t){t===void 0&&(t=fr);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=k(e).getComputedStyle(e);u&&(n=dr(n,u,d))}const{top:r,left:o,width:i,height:a,bottom:s,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:c}}function Ut(e){return Oe(e,{ignoreTransform:!0})}function pr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function hr(e,t){return t===void 0&&(t=k(e).getComputedStyle(e)),t.position==="fixed"}function gr(e,t){t===void 0&&(t=k(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function vt(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(ft(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!_e(o)||Gt(o)||n.includes(o))return n;const i=k(e).getComputedStyle(o);return o!==e&&gr(o,i)&&n.push(o),hr(o,i)?n:r(o.parentNode)}return e?r(e):n}function nn(e){const[t]=vt(e,1);return t??null}function Ze(e){return!He||!e?null:me(e)?e:dt(e)?ft(e)||e===be(e).scrollingElement?window:_e(e)?e:null:null}function rn(e){return me(e)?e.scrollX:e.scrollLeft}function on(e){return me(e)?e.scrollY:e.scrollTop}function st(e){return{x:rn(e),y:on(e)}}var M;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(M||(M={}));function sn(e){return!He||!e?!1:e===document.scrollingElement}function an(e){const t={x:0,y:0},n=sn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const vr={x:.2,y:.2};function mr(e,t,n,r,o){let{top:i,left:a,right:s,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=vr);const{isTop:u,isBottom:d,isLeft:f,isRight:g}=an(e),p={x:0,y:0},S={x:0,y:0},h={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+h.height?(p.y=M.Backward,S.y=r*Math.abs((t.top+h.height-i)/h.height)):!d&&c>=t.bottom-h.height&&(p.y=M.Forward,S.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!g&&s>=t.right-h.width?(p.x=M.Forward,S.x=r*Math.abs((t.right-h.width-s)/h.width)):!f&&a<=t.left+h.width&&(p.x=M.Backward,S.x=r*Math.abs((t.left+h.width-a)/h.width)),{direction:p,speed:S}}function br(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function ln(e){return e.reduce((t,n)=>ge(t,st(n)),V)}function yr(e){return e.reduce((t,n)=>t+rn(n),0)}function xr(e){return e.reduce((t,n)=>t+on(n),0)}function wr(e,t){if(t===void 0&&(t=Oe),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);nn(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Sr=[["x",["left","right"],yr],["y",["top","bottom"],xr]];class mt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=vt(n),o=ln(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,s]of Sr)for(const c of a)Object.defineProperty(this,c,{get:()=>{const u=s(r),d=o[i]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Re{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Cr(e){const{EventTarget:t}=k(e);return e instanceof t?e:be(e)}function et(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var $;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})($||($={}));function Xt(e){e.preventDefault()}function Er(e){e.stopPropagation()}var b;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(b||(b={}));const cn={start:[b.Space,b.Enter],cancel:[b.Esc],end:[b.Space,b.Enter]},Dr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case b.Right:return{...n,x:n.x+25};case b.Left:return{...n,x:n.x-25};case b.Down:return{...n,y:n.y+25};case b.Up:return{...n,y:n.y-25}}};class un{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Re(be(n)),this.windowListeners=new Re(k(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($.Resize,this.handleCancel),this.windowListeners.add($.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add($.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&wr(r),n(V)}handleKeyDown(t){if(Zt(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=cn,coordinateGetter:a=Dr,scrollBehavior:s="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:V;this.referenceCoordinates||(this.referenceCoordinates=d);const f=a(t,{active:n,context:r.current,currentCoordinates:d});if(f){const g=$e(f,d),p={x:0,y:0},{scrollableAncestors:S}=r.current;for(const h of S){const v=t.code,{isTop:w,isRight:C,isLeft:D,isBottom:N,maxScroll:A,minScroll:R}=an(h),m=br(h),y={x:Math.min(v===b.Right?m.right-m.width/2:m.right,Math.max(v===b.Right?m.left:m.left+m.width/2,f.x)),y:Math.min(v===b.Down?m.bottom-m.height/2:m.bottom,Math.max(v===b.Down?m.top:m.top+m.height/2,f.y))},L=v===b.Right&&!C||v===b.Left&&!D,T=v===b.Down&&!N||v===b.Up&&!w;if(L&&y.x!==f.x){const P=h.scrollLeft+g.x,q=v===b.Right&&P<=A.x||v===b.Left&&P>=R.x;if(q&&!g.y){h.scrollTo({left:P,behavior:s});return}q?p.x=h.scrollLeft-P:p.x=v===b.Right?h.scrollLeft-A.x:h.scrollLeft-R.x,p.x&&h.scrollBy({left:-p.x,behavior:s});break}else if(T&&y.y!==f.y){const P=h.scrollTop+g.y,q=v===b.Down&&P<=A.y||v===b.Up&&P>=R.y;if(q&&!g.x){h.scrollTo({top:P,behavior:s});return}q?p.y=h.scrollTop-P:p.y=v===b.Down?h.scrollTop-A.y:h.scrollTop-R.y,p.y&&h.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,ge($e(f,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}un.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=cn,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function Ht(e){return!!(e&&"distance"in e)}function Wt(e){return!!(e&&"delay"in e)}class bt{constructor(t,n,r){var o;r===void 0&&(r=Cr(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=be(a),this.documentListeners=new Re(this.document),this.listeners=new Re(r),this.windowListeners=new Re(k(a)),this.initialCoordinates=(o=it(i))!=null?o:V,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add($.Resize,this.handleCancel),this.windowListeners.add($.DragStart,Xt),this.windowListeners.add($.VisibilityChange,this.handleCancel),this.windowListeners.add($.ContextMenu,Xt),this.documentListeners.add($.Keydown,this.handleKeydown),n){if(Ht(n))return;if(Wt(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add($.Click,Er,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!o)return;const c=(n=it(t))!=null?n:V,u=$e(o,c);if(!r&&s){if(Wt(s))return et(u,s.tolerance)?this.handleCancel():void 0;if(Ht(s))return s.tolerance!=null&&et(u,s.tolerance)?this.handleCancel():et(u,s.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),a(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===b.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Rr={move:{name:"pointermove"},end:{name:"pointerup"}};class dn extends bt{constructor(t){const{event:n}=t,r=be(n.target);super(t,Rr,r)}}dn.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Pr={move:{name:"mousemove"},end:{name:"mouseup"}};var at;(function(e){e[e.RightClick=2]="RightClick"})(at||(at={}));class Mr extends bt{constructor(t){super(t,Pr,be(t.event.target))}}Mr.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===at.RightClick?!1:(r==null||r({event:n}),!0)}}];const tt={move:{name:"touchmove"},end:{name:"touchend"}};class Ar extends bt{constructor(t){super(t,tt)}static setup(){return window.addEventListener(tt.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(tt.move.name,t)};function t(){}}}Ar.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Pe;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Pe||(Pe={}));var Xe;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Xe||(Xe={}));function _r(e){let{acceleration:t,activator:n=Pe.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=Xe.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:g}=e;const p=Or({delta:f,disabled:!i}),[S,h]=Hn(),v=l.useRef({x:0,y:0}),w=l.useRef({x:0,y:0}),C=l.useMemo(()=>{switch(n){case Pe.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Pe.DraggableRect:return o}},[n,o,c]),D=l.useRef(null),N=l.useCallback(()=>{const R=D.current;if(!R)return;const m=v.current.x*w.current.x,y=v.current.y*w.current.y;R.scrollBy(m,y)},[]),A=l.useMemo(()=>s===Xe.TreeOrder?[...u].reverse():u,[s,u]);l.useEffect(()=>{if(!i||!u.length||!C){h();return}for(const R of A){if((r==null?void 0:r(R))===!1)continue;const m=u.indexOf(R),y=d[m];if(!y)continue;const{direction:L,speed:T}=mr(R,y,C,t,g);for(const P of["x","y"])p[P][L[P]]||(T[P]=0,L[P]=0);if(T.x>0||T.y>0){h(),D.current=R,S(N,a),v.current=T,w.current=L;return}}v.current={x:0,y:0},w.current={x:0,y:0},h()},[t,N,r,h,i,a,JSON.stringify(C),JSON.stringify(p),S,u,A,d,JSON.stringify(g)])}const Ir={x:{[M.Backward]:!1,[M.Forward]:!1},y:{[M.Backward]:!1,[M.Forward]:!1}};function Or(e){let{delta:t,disabled:n}=e;const r=ot(t);return Ie(o=>{if(n||!r||!o)return Ir;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[M.Backward]:o.x[M.Backward]||i.x===-1,[M.Forward]:o.x[M.Forward]||i.x===1},y:{[M.Backward]:o.y[M.Backward]||i.y===-1,[M.Forward]:o.y[M.Forward]||i.y===1}}},[n,t,r])}function Lr(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Ie(o=>{var i;return t===null?null:(i=r??o)!=null?i:null},[r,t])}function Tr(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var Ae;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ae||(Ae={}));var lt;(function(e){e.Optimized="optimized"})(lt||(lt={}));const Yt=new Map;function Br(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=l.useState(null),{frequency:s,measure:c,strategy:u}=o,d=l.useRef(e),f=v(),g=ht(f),p=l.useCallback(function(w){w===void 0&&(w=[]),!g.current&&a(C=>C===null?w:C.concat(w.filter(D=>!C.includes(D))))},[g]),S=l.useRef(null),h=Ie(w=>{if(f&&!n)return Yt;if(!w||w===Yt||d.current!==e||i!=null){const C=new Map;for(let D of e){if(!D)continue;if(i&&i.length>0&&!i.includes(D.id)&&D.rect.current){C.set(D.id,D.rect.current);continue}const N=D.node.current,A=N?new mt(c(N),N):null;D.rect.current=A,A&&C.set(D.id,A)}return C}return w},[e,i,n,f,c]);return l.useEffect(()=>{d.current=e},[e]),l.useEffect(()=>{f||p()},[n,f]),l.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),l.useEffect(()=>{f||typeof s!="number"||S.current!==null||(S.current=setTimeout(()=>{p(),S.current=null},s))},[s,f,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:i!=null};function v(){switch(u){case Ae.Always:return!1;case Ae.BeforeDragging:return n;default:return!n}}}function fn(e,t){return Ie(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Nr(e,t){return fn(e,t)}function kr(e){let{callback:t,disabled:n}=e;const r=pt(t),o=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return l.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function yt(e){let{callback:t,disabled:n}=e;const r=pt(t),o=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return l.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function zr(e){return new mt(Oe(e),e)}function Kt(e,t,n){t===void 0&&(t=zr);const[r,o]=l.useReducer(s,null),i=kr({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=yt({callback:o});return oe(()=>{o(),e?(a==null||a.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),i==null||i.disconnect())},[e]),r;function s(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d}}function jr(e){const t=fn(e);return tn(e,t)}const Vt=[];function Fr(e){const t=l.useRef(e),n=Ie(r=>e?r&&r!==Vt&&e&&t.current&&e.parentNode===t.current.parentNode?r:vt(e):Vt,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function $r(e){const[t,n]=l.useState(null),r=l.useRef(e),o=l.useCallback(i=>{const a=Ze(i.target);a&&n(s=>s?(s.set(a,st(a)),new Map(s)):null)},[]);return l.useEffect(()=>{const i=r.current;if(e!==i){a(i);const s=e.map(c=>{const u=Ze(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,st(u)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(i)};function a(s){s.forEach(c=>{const u=Ze(c);u==null||u.removeEventListener("scroll",o)})}},[o,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>ge(i,a),V):ln(e):V,[e,t])}function Jt(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==V;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?$e(e,n.current):V}function Ur(e){l.useEffect(()=>{if(!He)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function Xr(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function pn(e){return l.useMemo(()=>e?pr(e):null,[e])}const nt=[];function Hr(e,t){t===void 0&&(t=Oe);const[n]=e,r=pn(n?k(n):null),[o,i]=l.useReducer(s,nt),a=yt({callback:i});return e.length>0&&o===nt&&i(),oe(()=>{e.length?e.forEach(c=>a==null?void 0:a.observe(c)):(a==null||a.disconnect(),i())},[e]),o;function s(){return e.length?e.map(c=>sn(c)?r:new mt(t(c),c)):nt}}function Wr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return _e(t)?t:e}function Yr(e){let{measure:t}=e;const[n,r]=l.useState(null),o=l.useCallback(u=>{for(const{target:d}of u)if(_e(d)){r(f=>{const g=t(d);return f?{...f,width:g.width,height:g.height}:g});break}},[t]),i=yt({callback:o}),a=l.useCallback(u=>{const d=Wr(u);i==null||i.disconnect(),d&&(i==null||i.observe(d)),r(d?t(d):null)},[t,i]),[s,c]=rt(a);return l.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const Kr=[{sensor:dn,options:{}},{sensor:un,options:{}}],Vr={current:{}},je={draggable:{measure:Ut},droppable:{measure:Ut,strategy:Ae.WhileDragging,frequency:lt.Optimized},dragOverlay:{measure:Oe}};class Me extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const Jr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Me,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ue},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:je,measureDroppableContainers:Ue,windowRect:null,measuringScheduled:!1},qr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ue,draggableNodes:new Map,over:null,measureDroppableContainers:Ue},xt=l.createContext(qr),Gr=l.createContext(Jr);function Qr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Me}}}function Zr(e,t){switch(t.type){case I.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case I.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case I.DragEnd:case I.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case I.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Me(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case I.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Me(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case I.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Me(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function eo(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=l.useContext(xt),i=ot(r),a=ot(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!Zt(i)||document.activeElement===i.target)return;const s=o.get(a);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=Kn(d);if(f){f.focus();break}}})}},[r,t,o,a,i]),null}function to(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function no(e){return l.useMemo(()=>({draggable:{...je.draggable,...e==null?void 0:e.draggable},droppable:{...je.droppable,...e==null?void 0:e.droppable},dragOverlay:{...je.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function ro(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=l.useRef(!1),{x:a,y:s}=typeof o=="boolean"?{x:o,y:o}:o;oe(()=>{if(!a&&!s||!t){i.current=!1;return}if(i.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=tn(d,r);if(a||(f.x=0),s||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const g=nn(u);g&&g.scrollBy({top:f.y,left:f.x})}},[t,a,s,r,n])}const hn=l.createContext({...V,scaleX:1,scaleY:1});var re;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(re||(re={}));const oo=l.memo(function(t){var n,r,o,i;let{id:a,accessibility:s,autoScroll:c=!0,children:u,sensors:d=Kr,collisionDetection:f=sr,measuring:g,modifiers:p,...S}=t;const h=l.useReducer(Zr,void 0,Qr),[v,w]=h,[C,D]=Zn(),[N,A]=l.useState(re.Uninitialized),R=N===re.Initialized,{draggable:{active:m,nodes:y,translate:L},droppable:{containers:T}}=v,P=m?y.get(m):null,q=l.useRef({initial:null,translated:null}),G=l.useMemo(()=>{var _;return m!=null?{id:m,data:(_=P==null?void 0:P.data)!=null?_:Vr,rect:q}:null},[m,P]),Z=l.useRef(null),[wt,St]=l.useState(null),[Q,Ct]=l.useState(null),ye=ht(S,Object.values(S)),We=gt("DndDescribedBy",a),Et=l.useMemo(()=>T.getEnabled(),[T]),ie=no(g),{droppableRects:ce,measureDroppableContainers:Le,measuringScheduled:Dt}=Br(Et,{dragging:R,dependencies:[L.x,L.y],config:ie.droppable}),X=Lr(y,m),Rt=l.useMemo(()=>Q?it(Q):null,[Q]),Pt=Sn(),Mt=Nr(X,ie.draggable.measure);ro({activeNode:m?y.get(m):null,config:Pt.layoutShiftCompensation,initialRect:Mt,measure:ie.draggable.measure});const H=Kt(X,ie.draggable.measure,Mt),Ye=Kt(X?X.parentElement:null),se=l.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:ce,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),At=T.getNodeFor((n=se.current.over)==null?void 0:n.id),ae=Yr({measure:ie.dragOverlay.measure}),Te=(r=ae.nodeRef.current)!=null?r:X,ue=R?(o=ae.rect)!=null?o:H:null,_t=!!(ae.nodeRef.current&&ae.rect),It=jr(_t?null:H),Ke=pn(Te?k(Te):null),ee=Fr(R?At??X:null),Be=Hr(ee),Ne=to(p,{transform:{x:L.x-It.x,y:L.y-It.y,scaleX:1,scaleY:1},activatorEvent:Q,active:G,activeNodeRect:H,containerNodeRect:Ye,draggingNodeRect:ue,over:se.current.over,overlayNodeRect:ae.rect,scrollableAncestors:ee,scrollableAncestorRects:Be,windowRect:Ke}),Ot=Rt?ge(Rt,L):null,Lt=$r(ee),gn=Jt(Lt),vn=Jt(Lt,[H]),de=ge(Ne,gn),fe=ue?cr(ue,Ne):null,xe=G&&fe?f({active:G,collisionRect:fe,droppableRects:ce,droppableContainers:Et,pointerCoordinates:Ot}):null,Tt=or(xe,"id"),[te,Bt]=l.useState(null),mn=_t?Ne:ge(Ne,vn),bn=ar(mn,(i=te==null?void 0:te.rect)!=null?i:null,H),Nt=l.useCallback((_,z)=>{let{sensor:j,options:ne}=z;if(Z.current==null)return;const F=y.get(Z.current);if(!F)return;const W=_.nativeEvent,J=new j({active:Z.current,activeNode:F,event:W,options:ne,context:se,onStart(Y){const we=Z.current;if(we==null)return;const Se=y.get(we);if(!Se)return;const{onDragStart:ke}=ye.current,ze={active:{id:we,data:Se.data,rect:q}};he.unstable_batchedUpdates(()=>{ke==null||ke(ze),A(re.Initializing),w({type:I.DragStart,initialCoordinates:Y,active:we}),C({type:"onDragStart",event:ze})})},onMove(Y){w({type:I.DragMove,coordinates:Y})},onEnd:pe(I.DragEnd),onCancel:pe(I.DragCancel)});he.unstable_batchedUpdates(()=>{St(J),Ct(_.nativeEvent)});function pe(Y){return async function(){const{active:Se,collisions:ke,over:ze,scrollAdjustedTranslate:zt}=se.current;let Ce=null;if(Se&&zt){const{cancelDrop:Ee}=ye.current;Ce={activatorEvent:W,active:Se,collisions:ke,delta:zt,over:ze},Y===I.DragEnd&&typeof Ee=="function"&&await Promise.resolve(Ee(Ce))&&(Y=I.DragCancel)}Z.current=null,he.unstable_batchedUpdates(()=>{w({type:Y}),A(re.Uninitialized),Bt(null),St(null),Ct(null);const Ee=Y===I.DragEnd?"onDragEnd":"onDragCancel";if(Ce){const Ve=ye.current[Ee];Ve==null||Ve(Ce),C({type:Ee,event:Ce})}})}}},[y]),yn=l.useCallback((_,z)=>(j,ne)=>{const F=j.nativeEvent,W=y.get(ne);if(Z.current!==null||!W||F.dndKit||F.defaultPrevented)return;const J={active:W};_(j,z.options,J)===!0&&(F.dndKit={capturedBy:z.sensor},Z.current=ne,Nt(j,z))},[y,Nt]),kt=Tr(d,yn);Ur(d),oe(()=>{H&&N===re.Initializing&&A(re.Initialized)},[H,N]),l.useEffect(()=>{const{onDragMove:_}=ye.current,{active:z,activatorEvent:j,collisions:ne,over:F}=se.current;if(!z||!j)return;const W={active:z,activatorEvent:j,collisions:ne,delta:{x:de.x,y:de.y},over:F};he.unstable_batchedUpdates(()=>{_==null||_(W),C({type:"onDragMove",event:W})})},[de.x,de.y]),l.useEffect(()=>{const{active:_,activatorEvent:z,collisions:j,droppableContainers:ne,scrollAdjustedTranslate:F}=se.current;if(!_||Z.current==null||!z||!F)return;const{onDragOver:W}=ye.current,J=ne.get(Tt),pe=J&&J.rect.current?{id:J.id,rect:J.rect.current,data:J.data,disabled:J.disabled}:null,Y={active:_,activatorEvent:z,collisions:j,delta:{x:F.x,y:F.y},over:pe};he.unstable_batchedUpdates(()=>{Bt(pe),W==null||W(Y),C({type:"onDragOver",event:Y})})},[Tt]),oe(()=>{se.current={activatorEvent:Q,active:G,activeNode:X,collisionRect:fe,collisions:xe,droppableRects:ce,draggableNodes:y,draggingNode:Te,draggingNodeRect:ue,droppableContainers:T,over:te,scrollableAncestors:ee,scrollAdjustedTranslate:de},q.current={initial:ue,translated:fe}},[G,X,xe,fe,y,Te,ue,ce,T,te,ee,de]),_r({...Pt,delta:L,draggingRect:fe,pointerCoordinates:Ot,scrollableAncestors:ee,scrollableAncestorRects:Be});const xn=l.useMemo(()=>({active:G,activeNode:X,activeNodeRect:H,activatorEvent:Q,collisions:xe,containerNodeRect:Ye,dragOverlay:ae,draggableNodes:y,droppableContainers:T,droppableRects:ce,over:te,measureDroppableContainers:Le,scrollableAncestors:ee,scrollableAncestorRects:Be,measuringConfiguration:ie,measuringScheduled:Dt,windowRect:Ke}),[G,X,H,Q,xe,Ye,ae,y,T,ce,te,Le,ee,Be,ie,Dt,Ke]),wn=l.useMemo(()=>({activatorEvent:Q,activators:kt,active:G,activeNodeRect:H,ariaDescribedById:{draggable:We},dispatch:w,draggableNodes:y,over:te,measureDroppableContainers:Le}),[Q,kt,G,H,w,We,y,te,Le]);return U.createElement(en.Provider,{value:D},U.createElement(xt.Provider,{value:wn},U.createElement(Gr.Provider,{value:xn},U.createElement(hn.Provider,{value:bn},u)),U.createElement(eo,{disabled:(s==null?void 0:s.restoreFocus)===!1})),U.createElement(nr,{...s,hiddenTextDescribedById:We}));function Sn(){const _=(wt==null?void 0:wt.autoScrollEnabled)===!1,z=typeof c=="object"?c.enabled===!1:c===!1,j=R&&!_&&!z;return typeof c=="object"?{...c,enabled:j}:{enabled:j}}}),io=l.createContext(null),qt="button",so="Droppable";function ao(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=gt(so),{activators:a,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:g}=l.useContext(xt),{role:p=qt,roleDescription:S="draggable",tabIndex:h=0}=o??{},v=(c==null?void 0:c.id)===t,w=l.useContext(v?hn:io),[C,D]=rt(),[N,A]=rt(),R=Xr(a,t),m=ht(n);oe(()=>(f.set(t,{id:t,key:i,node:C,activatorNode:N,data:m}),()=>{const L=f.get(t);L&&L.key===i&&f.delete(t)}),[f,t]);const y=l.useMemo(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":v&&p===qt?!0:void 0,"aria-roledescription":S,"aria-describedby":d.draggable}),[r,p,h,v,S,d.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:y,isDragging:v,listeners:r?void 0:R,node:C,over:g,setNodeRef:D,setActivatorNodeRef:A,transform:w}}function lo(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const co=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return!n||!t?r:lo(r,n,t)};var K=(e=>(e[e.Selected=0]="Selected",e[e.Everything=1]="Everything",e))(K||{});const uo=ut("div",{display:"flex",position:"absolute",flexDirection:"column",width:"260px",border:"1px solid $gray6",borderRadius:"$2",backgroundColor:"$panelBg",overflow:"hidden",userSelect:"none"}),fo=ut(Fe,{height:"$6",width:"100%",padding:"0 $1",backgroundColor:"$panelTitleBg",color:"$gray11",flexShrink:0,fontSize:"$sm"}),po=ut(Fe,{padding:"$1"});function ho(){const[{bottom:e,left:t},n]=l.useState({left:4,bottom:4}),r=l.useCallback(o=>{n(({bottom:i,left:a})=>{const{delta:s}=o;return{left:a+s.x,bottom:i+-s.y}})},[]);return E.jsx(oo,{modifiers:[co],onDragEnd:r,children:E.jsx(go,{left:t,bottom:e})})}const go=Dn(function(t){const{attributes:n,listeners:r,setNodeRef:o,transform:i}=ao({id:"ParticlePanel"}),{viewportStore:a}=zn(),s=a.particleStore,{t:c}=Rn(),u={bottom:`${t.bottom}px`,left:`${t.left}px`,transform:i?`translate3d(${i.x}px, ${i.y}px, 0)`:"none"};return s.isPanelOn?E.jsxs(uo,{ref:o,style:u,...n,children:[E.jsxs(fo,{align:"v",justifyContent:"between",children:[E.jsxs(Fe,{gap:"xxs",children:[E.jsx($n,{size:"12px",...r}),c("effects.particle.title")]}),E.jsxs(Fe,{gap:"xxs",align:"v",children:[E.jsx(Ge,{content:c("effects.particle.restart"),children:E.jsx(Je,{size:"xs",variant:"subtle",onClick:()=>s.play(),children:E.jsx(Un,{size:"12px"})})}),E.jsx(Ge,{content:s.isPlaying?c("effects.particle.pause"):c("effects.particle.play"),children:E.jsx(Je,{size:"xs",variant:"subtle",onClick:()=>s.togglePauseResume(),children:s.isPlaying?E.jsx(jn,{size:"12px"}):E.jsx(Fn,{size:"12px"})})}),E.jsx(Ge,{content:c("effects.particle.stop"),children:E.jsx(Je,{size:"xs",variant:"subtle",onClick:()=>s.stop(s.mode),disabled:s.isStopped,children:E.jsx(Xn,{size:"12px"})})})]})]}),E.jsxs(po,{children:[E.jsx(Pn,{label:c("effects.particle.speed"),value:s.speed,min:0,max:5,step:.1,dragStep:.1,onChange:d=>s.onSpeedChange(d)}),E.jsx(Mn,{label:c("effects.particle.scope.label"),value:s.mode,onChange:d=>{s.switchPlayMode(d),s.onBoundingChange(s.mode===K.Selected),s.stop(K.Everything),s.play()},options:[{value:K.Selected,label:c("effects.particle.scope.selected")},{value:K.Everything,label:c("effects.particle.scope.everything")}]}),E.jsx(An,{label:c("effects.particle.bounding"),disabled:s.mode===K.Everything,value:s.isBoundingEnabled,onChange:d=>s.onBoundingChange(d)})]})]}):null});class vo extends _n{constructor(){super(...arguments);x(this,"isBoundingEnabled",!1);x(this,"onScriptReset");x(this,"_onScriptStop");x(this,"_onScriptPlay");x(this,"_onScriptPause");x(this,"_hasLastSelectedEntity");x(this,"_selectedParticles",[]);x(this,"_allParticles",[]);x(this,"_mode",K.Selected);x(this,"_speed",1);x(this,"_isSelected",!1);x(this,"_componentArray",[]);x(this,"_center",new In);x(this,"_tempBoundingBox",new jt)}set mode(n){this._mode=n}get mode(){return this._mode}set speed(n){this._getParticles(this.mode).forEach(r=>{r.generator.main.simulationSpeed=n}),this._speed=n}get speed(){return this._speed}init(n){this.onScriptReset=n.onScriptReset,this._onScriptPlay=n.onScriptPlay,this._onScriptPause=n.onScriptPause,this._onScriptStop=n.onScriptStop,this._hasLastSelectedEntity=n.hasLastSelectedEntity}onStart(){const n=this.entity.parent.parent.createChild("particle_bounds_drawer");n.addComponent(On),n.addComponent(qe),n.layer=Ln.Outline}onSelectEntity(n){if(this.onScriptReset&&this.onScriptReset(),this._componentArray.length=0,this._isSelected=!1,n){for(const r of n){const o=[];r.getComponentsIncludeChildren(De,o),this._componentArray.push(...o)}this._isSelected=this._componentArray.length>0}this._updateArrayAndPlay()}onAddComponent(n){if(n instanceof De){if(this._hasLastSelectedEntity&&!this._hasLastSelectedEntity())return;this._componentArray.push(n),this._updateArrayAndPlay()}}onRemoveComponent(n){if(n instanceof De)if(this._hasLastSelectedEntity&&!this._hasLastSelectedEntity()){const r=this._allParticles.findIndex(o=>o.instanceId===n.instanceId);r>-1&&this._allParticles.splice(r,1)}else{const r=this._componentArray.findIndex(o=>o.instanceId===n.instanceId);r>-1&&this._componentArray.splice(r,1),this._updateArrayAndPlay()}}onPlay(n){this._updateAllParticles(),n?this.play(K.Everything):this.stop(K.Everything)}onUpdate(){if(this._isSelected&&this.isBoundingEnabled){this._tempBoundingBox.copyFrom(this._selectedParticles[0].bounds);for(let p=1,S=this._selectedParticles.length;p<S;p++)jt.merge(this._tempBoundingBox,this._selectedParticles[p].bounds,this._tempBoundingBox);const{min:n,max:r}=this._tempBoundingBox,{x:o,y:i,z:a}=n,{x:s,y:c,z:u}=r,d=s-o,f=c-i,g=u-a;this._center.set(s+o,c+i,u+a).scale(.5),qe.flush(),qe.drawCuboid(d,f,g,this._center)}}_getParticles(n){return n===K.Selected?this._selectedParticles:this._allParticles}play(n=this.mode){this._getParticles(n).forEach(r=>{r.generator.stop(!1,Ft.StopEmittingAndClear),r.generator.main.simulationSpeed=this._speed,r.generator.play()}),this._onScriptPlay&&this._onScriptPlay(n)}pause(n=!1){this._getParticles(this.mode).forEach(r=>{r.generator.main.simulationSpeed=0}),this._onScriptPause&&this._onScriptPause(n)}stop(n){this._getParticles(n).forEach(r=>{r.generator.stop(!1,Ft.StopEmittingAndClear)}),this._onScriptStop&&this._onScriptStop(n)}resume(){this._getParticles(this.mode).forEach(n=>{n.generator.main.simulationSpeed=this._speed,n.generator.play()})}_updateAllParticles(){this._allParticles.length=0,this.engine.sceneManager.scenes[0].rootEntities.forEach(r=>{r.getComponentsIncludeChildren(De,this._componentArray),this._allParticles.push(...this._componentArray)})}_updateSelectedParticles(){this._selectedParticles.length=0;for(const n of this._componentArray)n.entity.getComponentsIncludeChildren(De,this._componentArray),this._selectedParticles.push(...this._componentArray)}_updateArrayAndPlay(){const n=this._componentArray.length;this.pause(n!==0),n>0&&(this._updateSelectedParticles(),this._updateAllParticles(),this.play())}}var mo=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,B=(e,t,n,r)=>{for(var o=r>1?void 0:r?bo(t,n):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(r?a(t,n,o):a(o))||o);return r&&o&&mo(t,n,o),o};let O=class{constructor(e){x(this,"isPanelOn",!1);x(this,"speed",1);x(this,"isPlaying",!1);x(this,"isStopped",!1);x(this,"_mode",K.Everything);x(this,"isModeChanged",!1);x(this,"isBoundingEnabled",!1);x(this,"script");x(this,"root");Tn(this),this.root=e.projectStore}get mode(){return this._mode}init(){this.script=Bn.addScript(vo),this.speed=this.script.speed,this.isBoundingEnabled=this.script.isBoundingEnabled,this.script.init({onScriptReset:()=>{this.isPanelOn=!1},onScriptPlay:()=>{this.isStopped=!1,this.isPlaying=!0},onScriptPause:e=>{this.isPanelOn=e},onScriptStop:e=>{this.isStopped=!0,this.isPlaying=!1},hasLastSelectedEntity:()=>{const e=this.root.currentScene.sceneUIStore.lastSelectedId;return e&&!!this.root.currentScene.entities.get(e)}}),this._mode=this.script.mode}play(e=this.mode){this.isStopped=!1,this.isPlaying=!0,this.script.play(e)}togglePauseResume(){this.isStopped=!1,this.isPlaying?(this.isPlaying=!1,this.script.pause()):(this.isPlaying=!0,this.script.resume())}stop(e){this.isStopped=!0,this.isPlaying=!1,this.script.stop(e)}onSpeedChange(e){this.speed=e,this.script.speed=e}onBoundingChange(e){this.isBoundingEnabled=e,this.script.isBoundingEnabled=e}switchPlayMode(e){this._mode=e,this.script.mode=e}};B([le],O.prototype,"isPanelOn",2);B([le],O.prototype,"speed",2);B([le],O.prototype,"isPlaying",2);B([le],O.prototype,"isStopped",2);B([le],O.prototype,"_mode",2);B([Nn],O.prototype,"mode",1);B([le],O.prototype,"isModeChanged",2);B([le],O.prototype,"isBoundingEnabled",2);B([ve],O.prototype,"play",1);B([ve],O.prototype,"togglePauseResume",1);B([ve],O.prototype,"stop",1);B([ve],O.prototype,"onSpeedChange",1);B([ve],O.prototype,"onBoundingChange",1);B([ve],O.prototype,"switchPlayMode",1);O=B([kn({type:"particleStore",Panel:ho})],O);export{Ki as AnimatorComponent,Vi as AnimatorStore,Es as AudioComponent,Ms as ButtonComponent,Bi as CameraComponent,es as CharacterControllerComponent,ki as DirectLightComponent,ts as DynamicColliderComponent,ns as FixedJointComponent,rs as HingeJointComponent,As as ImageComponent,xs as ImportScriptComponent,fs as LottieAnimationComponent,Xi as MeshRendererComponent,vs as ParticleRendererComponent,O as ParticleStore,os as PhysicsStore,ji as PointLightComponent,Ss as PostProcessComponent,ls as ScriptComponent,Wi as SkinnedMeshRendererComponent,hs as SpineAnimationComponent,$i as SpotLightComponent,is as SpringJointComponent,Qi as SpriteMaskComponent,qi as SpriteRendererComponent,ss as StaticColliderComponent,_s as TextComponent,us as TextRendererComponent,bs as TrailRendererComponent,Rs as TransformComponent,Is as UICanvasComponent,Os as UIGroupComponent,Ls as UITransformComponent};
|
|
20
|
+
`},tr={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function nr(e){let{announcements:t=tr,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=er}=e;const{announce:i,announcement:a}=Jn(),s=gt("DndLiveRegion"),[c,u]=l.useState(!1);if(l.useEffect(()=>{u(!0)},[]),Qn(l.useMemo(()=>({onDragStart(f){let{active:g}=f;i(t.onDragStart({active:g}))},onDragMove(f){let{active:g,over:h}=f;t.onDragMove&&i(t.onDragMove({active:g,over:h}))},onDragOver(f){let{active:g,over:h}=f;i(t.onDragOver({active:g,over:h}))},onDragEnd(f){let{active:g,over:h}=f;i(t.onDragEnd({active:g,over:h}))},onDragCancel(f){let{active:g,over:h}=f;i(t.onDragCancel({active:g,over:h}))}}),[i,t])),!c)return null;const d=X.createElement(X.Fragment,null,X.createElement(qn,{id:r,value:o.draggable}),X.createElement(Gn,{id:s,announcement:a}));return n?pe.createPortal(d,n):d}var I;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(I||(I={}));function Ue(){}const V=Object.freeze({x:0,y:0});function rr(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function or(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function ir(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const c=t.width*t.height,u=e.width*e.height,d=a*s,f=d/(c+u-d);return Number(f.toFixed(4))}return 0}const sr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,s=n.get(a);if(s){const c=ir(s,t);c>0&&o.push({id:a,data:{droppableContainer:i,value:c}})}}return o.sort(rr)};function ar(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function tn(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:V}function lr(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const cr=lr(1);function ur(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function dr(e,t,n){const r=ur(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,c=e.left-a-(1-o)*parseFloat(n),u=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const fr={ignoreTransform:!1};function Oe(e,t){t===void 0&&(t=fr);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=k(e).getComputedStyle(e);u&&(n=dr(n,u,d))}const{top:r,left:o,width:i,height:a,bottom:s,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:c}}function Ut(e){return Oe(e,{ignoreTransform:!0})}function hr(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function pr(e,t){return t===void 0&&(t=k(e).getComputedStyle(e)),t.position==="fixed"}function gr(e,t){t===void 0&&(t=k(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function vt(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(ft(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!_e(o)||Jt(o)||n.includes(o))return n;const i=k(e).getComputedStyle(o);return o!==e&&gr(o,i)&&n.push(o),pr(o,i)?n:r(o.parentNode)}return e?r(e):n}function nn(e){const[t]=vt(e,1);return t??null}function Ze(e){return!We||!e?null:me(e)?e:dt(e)?ft(e)||e===be(e).scrollingElement?window:_e(e)?e:null:null}function rn(e){return me(e)?e.scrollX:e.scrollLeft}function on(e){return me(e)?e.scrollY:e.scrollTop}function st(e){return{x:rn(e),y:on(e)}}var M;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(M||(M={}));function sn(e){return!We||!e?!1:e===document.scrollingElement}function an(e){const t={x:0,y:0},n=sn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const vr={x:.2,y:.2};function mr(e,t,n,r,o){let{top:i,left:a,right:s,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=vr);const{isTop:u,isBottom:d,isLeft:f,isRight:g}=an(e),h={x:0,y:0},S={x:0,y:0},p={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+p.height?(h.y=M.Backward,S.y=r*Math.abs((t.top+p.height-i)/p.height)):!d&&c>=t.bottom-p.height&&(h.y=M.Forward,S.y=r*Math.abs((t.bottom-p.height-c)/p.height)),!g&&s>=t.right-p.width?(h.x=M.Forward,S.x=r*Math.abs((t.right-p.width-s)/p.width)):!f&&a<=t.left+p.width&&(h.x=M.Backward,S.x=r*Math.abs((t.left+p.width-a)/p.width)),{direction:h,speed:S}}function br(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function ln(e){return e.reduce((t,n)=>ge(t,st(n)),V)}function yr(e){return e.reduce((t,n)=>t+rn(n),0)}function xr(e){return e.reduce((t,n)=>t+on(n),0)}function wr(e,t){if(t===void 0&&(t=Oe),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);nn(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Sr=[["x",["left","right"],yr],["y",["top","bottom"],xr]];class mt{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=vt(n),o=ln(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,s]of Sr)for(const c of a)Object.defineProperty(this,c,{get:()=>{const u=s(r),d=o[i]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Re{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Cr(e){const{EventTarget:t}=k(e);return e instanceof t?e:be(e)}function et(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var U;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(U||(U={}));function Xt(e){e.preventDefault()}function Er(e){e.stopPropagation()}var b;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(b||(b={}));const cn={start:[b.Space,b.Enter],cancel:[b.Esc],end:[b.Space,b.Enter]},Dr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case b.Right:return{...n,x:n.x+25};case b.Left:return{...n,x:n.x-25};case b.Down:return{...n,y:n.y+25};case b.Up:return{...n,y:n.y-25}}};class un{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Re(be(n)),this.windowListeners=new Re(k(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(U.Resize,this.handleCancel),this.windowListeners.add(U.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(U.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&wr(r),n(V)}handleKeyDown(t){if(Zt(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=cn,coordinateGetter:a=Dr,scrollBehavior:s="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:V;this.referenceCoordinates||(this.referenceCoordinates=d);const f=a(t,{active:n,context:r.current,currentCoordinates:d});if(f){const g=$e(f,d),h={x:0,y:0},{scrollableAncestors:S}=r.current;for(const p of S){const v=t.code,{isTop:w,isRight:C,isLeft:D,isBottom:N,maxScroll:A,minScroll:R}=an(p),m=br(p),y={x:Math.min(v===b.Right?m.right-m.width/2:m.right,Math.max(v===b.Right?m.left:m.left+m.width/2,f.x)),y:Math.min(v===b.Down?m.bottom-m.height/2:m.bottom,Math.max(v===b.Down?m.top:m.top+m.height/2,f.y))},L=v===b.Right&&!C||v===b.Left&&!D,T=v===b.Down&&!N||v===b.Up&&!w;if(L&&y.x!==f.x){const P=p.scrollLeft+g.x,G=v===b.Right&&P<=A.x||v===b.Left&&P>=R.x;if(G&&!g.y){p.scrollTo({left:P,behavior:s});return}G?h.x=p.scrollLeft-P:h.x=v===b.Right?p.scrollLeft-A.x:p.scrollLeft-R.x,h.x&&p.scrollBy({left:-h.x,behavior:s});break}else if(T&&y.y!==f.y){const P=p.scrollTop+g.y,G=v===b.Down&&P<=A.y||v===b.Up&&P>=R.y;if(G&&!g.x){p.scrollTo({top:P,behavior:s});return}G?h.y=p.scrollTop-P:h.y=v===b.Down?p.scrollTop-A.y:p.scrollTop-R.y,h.y&&p.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,ge($e(f,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}un.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=cn,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function Wt(e){return!!(e&&"distance"in e)}function Yt(e){return!!(e&&"delay"in e)}class bt{constructor(t,n,r){var o;r===void 0&&(r=Cr(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=be(a),this.documentListeners=new Re(this.document),this.listeners=new Re(r),this.windowListeners=new Re(k(a)),this.initialCoordinates=(o=it(i))!=null?o:V,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(U.Resize,this.handleCancel),this.windowListeners.add(U.DragStart,Xt),this.windowListeners.add(U.VisibilityChange,this.handleCancel),this.windowListeners.add(U.ContextMenu,Xt),this.documentListeners.add(U.Keydown,this.handleKeydown),n){if(Wt(n))return;if(Yt(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(U.Click,Er,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(U.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!o)return;const c=(n=it(t))!=null?n:V,u=$e(o,c);if(!r&&s){if(Yt(s))return et(u,s.tolerance)?this.handleCancel():void 0;if(Wt(s))return s.tolerance!=null&&et(u,s.tolerance)?this.handleCancel():et(u,s.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),a(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===b.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Rr={move:{name:"pointermove"},end:{name:"pointerup"}};class dn extends bt{constructor(t){const{event:n}=t,r=be(n.target);super(t,Rr,r)}}dn.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Pr={move:{name:"mousemove"},end:{name:"mouseup"}};var at;(function(e){e[e.RightClick=2]="RightClick"})(at||(at={}));class Mr extends bt{constructor(t){super(t,Pr,be(t.event.target))}}Mr.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===at.RightClick?!1:(r==null||r({event:n}),!0)}}];const tt={move:{name:"touchmove"},end:{name:"touchend"}};class Ar extends bt{constructor(t){super(t,tt)}static setup(){return window.addEventListener(tt.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(tt.move.name,t)};function t(){}}}Ar.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Pe;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Pe||(Pe={}));var Xe;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Xe||(Xe={}));function _r(e){let{acceleration:t,activator:n=Pe.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=Xe.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:g}=e;const h=Or({delta:f,disabled:!i}),[S,p]=Wn(),v=l.useRef({x:0,y:0}),w=l.useRef({x:0,y:0}),C=l.useMemo(()=>{switch(n){case Pe.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Pe.DraggableRect:return o}},[n,o,c]),D=l.useRef(null),N=l.useCallback(()=>{const R=D.current;if(!R)return;const m=v.current.x*w.current.x,y=v.current.y*w.current.y;R.scrollBy(m,y)},[]),A=l.useMemo(()=>s===Xe.TreeOrder?[...u].reverse():u,[s,u]);l.useEffect(()=>{if(!i||!u.length||!C){p();return}for(const R of A){if((r==null?void 0:r(R))===!1)continue;const m=u.indexOf(R),y=d[m];if(!y)continue;const{direction:L,speed:T}=mr(R,y,C,t,g);for(const P of["x","y"])h[P][L[P]]||(T[P]=0,L[P]=0);if(T.x>0||T.y>0){p(),D.current=R,S(N,a),v.current=T,w.current=L;return}}v.current={x:0,y:0},w.current={x:0,y:0},p()},[t,N,r,p,i,a,JSON.stringify(C),JSON.stringify(h),S,u,A,d,JSON.stringify(g)])}const Ir={x:{[M.Backward]:!1,[M.Forward]:!1},y:{[M.Backward]:!1,[M.Forward]:!1}};function Or(e){let{delta:t,disabled:n}=e;const r=ot(t);return Ie(o=>{if(n||!r||!o)return Ir;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[M.Backward]:o.x[M.Backward]||i.x===-1,[M.Forward]:o.x[M.Forward]||i.x===1},y:{[M.Backward]:o.y[M.Backward]||i.y===-1,[M.Forward]:o.y[M.Forward]||i.y===1}}},[n,t,r])}function Lr(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Ie(o=>{var i;return t===null?null:(i=r??o)!=null?i:null},[r,t])}function Tr(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var Ae;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ae||(Ae={}));var lt;(function(e){e.Optimized="optimized"})(lt||(lt={}));const Ht=new Map;function Br(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=l.useState(null),{frequency:s,measure:c,strategy:u}=o,d=l.useRef(e),f=v(),g=pt(f),h=l.useCallback(function(w){w===void 0&&(w=[]),!g.current&&a(C=>C===null?w:C.concat(w.filter(D=>!C.includes(D))))},[g]),S=l.useRef(null),p=Ie(w=>{if(f&&!n)return Ht;if(!w||w===Ht||d.current!==e||i!=null){const C=new Map;for(let D of e){if(!D)continue;if(i&&i.length>0&&!i.includes(D.id)&&D.rect.current){C.set(D.id,D.rect.current);continue}const N=D.node.current,A=N?new mt(c(N),N):null;D.rect.current=A,A&&C.set(D.id,A)}return C}return w},[e,i,n,f,c]);return l.useEffect(()=>{d.current=e},[e]),l.useEffect(()=>{f||h()},[n,f]),l.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),l.useEffect(()=>{f||typeof s!="number"||S.current!==null||(S.current=setTimeout(()=>{h(),S.current=null},s))},[s,f,h,...r]),{droppableRects:p,measureDroppableContainers:h,measuringScheduled:i!=null};function v(){switch(u){case Ae.Always:return!1;case Ae.BeforeDragging:return n;default:return!n}}}function fn(e,t){return Ie(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Nr(e,t){return fn(e,t)}function kr(e){let{callback:t,disabled:n}=e;const r=ht(t),o=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return l.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function yt(e){let{callback:t,disabled:n}=e;const r=ht(t),o=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return l.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function zr(e){return new mt(Oe(e),e)}function Kt(e,t,n){t===void 0&&(t=zr);const[r,o]=l.useReducer(s,null),i=kr({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=yt({callback:o});return oe(()=>{o(),e?(a==null||a.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),i==null||i.disconnect())},[e]),r;function s(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d}}function jr(e){const t=fn(e);return tn(e,t)}const Vt=[];function Fr(e){const t=l.useRef(e),n=Ie(r=>e?r&&r!==Vt&&e&&t.current&&e.parentNode===t.current.parentNode?r:vt(e):Vt,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function $r(e){const[t,n]=l.useState(null),r=l.useRef(e),o=l.useCallback(i=>{const a=Ze(i.target);a&&n(s=>s?(s.set(a,st(a)),new Map(s)):null)},[]);return l.useEffect(()=>{const i=r.current;if(e!==i){a(i);const s=e.map(c=>{const u=Ze(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,st(u)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(i)};function a(s){s.forEach(c=>{const u=Ze(c);u==null||u.removeEventListener("scroll",o)})}},[o,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>ge(i,a),V):ln(e):V,[e,t])}function qt(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==V;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?$e(e,n.current):V}function Ur(e){l.useEffect(()=>{if(!We)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function Xr(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function hn(e){return l.useMemo(()=>e?hr(e):null,[e])}const nt=[];function Wr(e,t){t===void 0&&(t=Oe);const[n]=e,r=hn(n?k(n):null),[o,i]=l.useReducer(s,nt),a=yt({callback:i});return e.length>0&&o===nt&&i(),oe(()=>{e.length?e.forEach(c=>a==null?void 0:a.observe(c)):(a==null||a.disconnect(),i())},[e]),o;function s(){return e.length?e.map(c=>sn(c)?r:new mt(t(c),c)):nt}}function Yr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return _e(t)?t:e}function Hr(e){let{measure:t}=e;const[n,r]=l.useState(null),o=l.useCallback(u=>{for(const{target:d}of u)if(_e(d)){r(f=>{const g=t(d);return f?{...f,width:g.width,height:g.height}:g});break}},[t]),i=yt({callback:o}),a=l.useCallback(u=>{const d=Yr(u);i==null||i.disconnect(),d&&(i==null||i.observe(d)),r(d?t(d):null)},[t,i]),[s,c]=rt(a);return l.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const Kr=[{sensor:dn,options:{}},{sensor:un,options:{}}],Vr={current:{}},je={draggable:{measure:Ut},droppable:{measure:Ut,strategy:Ae.WhileDragging,frequency:lt.Optimized},dragOverlay:{measure:Oe}};class Me extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const qr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Me,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ue},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:je,measureDroppableContainers:Ue,windowRect:null,measuringScheduled:!1},Gr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ue,draggableNodes:new Map,over:null,measureDroppableContainers:Ue},xt=l.createContext(Gr),Jr=l.createContext(qr);function Qr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Me}}}function Zr(e,t){switch(t.type){case I.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case I.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case I.DragEnd:case I.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case I.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Me(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case I.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Me(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case I.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Me(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function eo(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=l.useContext(xt),i=ot(r),a=ot(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!Zt(i)||document.activeElement===i.target)return;const s=o.get(a);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=Kn(d);if(f){f.focus();break}}})}},[r,t,o,a,i]),null}function to(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function no(e){return l.useMemo(()=>({draggable:{...je.draggable,...e==null?void 0:e.draggable},droppable:{...je.droppable,...e==null?void 0:e.droppable},dragOverlay:{...je.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function ro(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=l.useRef(!1),{x:a,y:s}=typeof o=="boolean"?{x:o,y:o}:o;oe(()=>{if(!a&&!s||!t){i.current=!1;return}if(i.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=tn(d,r);if(a||(f.x=0),s||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const g=nn(u);g&&g.scrollBy({top:f.y,left:f.x})}},[t,a,s,r,n])}const pn=l.createContext({...V,scaleX:1,scaleY:1});var re;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(re||(re={}));const oo=l.memo(function(t){var n,r,o,i;let{id:a,accessibility:s,autoScroll:c=!0,children:u,sensors:d=Kr,collisionDetection:f=sr,measuring:g,modifiers:h,...S}=t;const p=l.useReducer(Zr,void 0,Qr),[v,w]=p,[C,D]=Zn(),[N,A]=l.useState(re.Uninitialized),R=N===re.Initialized,{draggable:{active:m,nodes:y,translate:L},droppable:{containers:T}}=v,P=m?y.get(m):null,G=l.useRef({initial:null,translated:null}),J=l.useMemo(()=>{var _;return m!=null?{id:m,data:(_=P==null?void 0:P.data)!=null?_:Vr,rect:G}:null},[m,P]),Z=l.useRef(null),[wt,St]=l.useState(null),[Q,Ct]=l.useState(null),ye=pt(S,Object.values(S)),Ye=gt("DndDescribedBy",a),Et=l.useMemo(()=>T.getEnabled(),[T]),ie=no(g),{droppableRects:ce,measureDroppableContainers:Le,measuringScheduled:Dt}=Br(Et,{dragging:R,dependencies:[L.x,L.y],config:ie.droppable}),W=Lr(y,m),Rt=l.useMemo(()=>Q?it(Q):null,[Q]),Pt=Sn(),Mt=Nr(W,ie.draggable.measure);ro({activeNode:m?y.get(m):null,config:Pt.layoutShiftCompensation,initialRect:Mt,measure:ie.draggable.measure});const Y=Kt(W,ie.draggable.measure,Mt),He=Kt(W?W.parentElement:null),se=l.useRef({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:ce,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),At=T.getNodeFor((n=se.current.over)==null?void 0:n.id),ae=Hr({measure:ie.dragOverlay.measure}),Te=(r=ae.nodeRef.current)!=null?r:W,ue=R?(o=ae.rect)!=null?o:Y:null,_t=!!(ae.nodeRef.current&&ae.rect),It=jr(_t?null:Y),Ke=hn(Te?k(Te):null),ee=Fr(R?At??W:null),Be=Wr(ee),Ne=to(h,{transform:{x:L.x-It.x,y:L.y-It.y,scaleX:1,scaleY:1},activatorEvent:Q,active:J,activeNodeRect:Y,containerNodeRect:He,draggingNodeRect:ue,over:se.current.over,overlayNodeRect:ae.rect,scrollableAncestors:ee,scrollableAncestorRects:Be,windowRect:Ke}),Ot=Rt?ge(Rt,L):null,Lt=$r(ee),gn=qt(Lt),vn=qt(Lt,[Y]),de=ge(Ne,gn),fe=ue?cr(ue,Ne):null,xe=J&&fe?f({active:J,collisionRect:fe,droppableRects:ce,droppableContainers:Et,pointerCoordinates:Ot}):null,Tt=or(xe,"id"),[te,Bt]=l.useState(null),mn=_t?Ne:ge(Ne,vn),bn=ar(mn,(i=te==null?void 0:te.rect)!=null?i:null,Y),Nt=l.useCallback((_,z)=>{let{sensor:j,options:ne}=z;if(Z.current==null)return;const $=y.get(Z.current);if(!$)return;const H=_.nativeEvent,q=new j({active:Z.current,activeNode:$,event:H,options:ne,context:se,onStart(K){const we=Z.current;if(we==null)return;const Se=y.get(we);if(!Se)return;const{onDragStart:ke}=ye.current,ze={active:{id:we,data:Se.data,rect:G}};pe.unstable_batchedUpdates(()=>{ke==null||ke(ze),A(re.Initializing),w({type:I.DragStart,initialCoordinates:K,active:we}),C({type:"onDragStart",event:ze})})},onMove(K){w({type:I.DragMove,coordinates:K})},onEnd:he(I.DragEnd),onCancel:he(I.DragCancel)});pe.unstable_batchedUpdates(()=>{St(q),Ct(_.nativeEvent)});function he(K){return async function(){const{active:Se,collisions:ke,over:ze,scrollAdjustedTranslate:zt}=se.current;let Ce=null;if(Se&&zt){const{cancelDrop:Ee}=ye.current;Ce={activatorEvent:H,active:Se,collisions:ke,delta:zt,over:ze},K===I.DragEnd&&typeof Ee=="function"&&await Promise.resolve(Ee(Ce))&&(K=I.DragCancel)}Z.current=null,pe.unstable_batchedUpdates(()=>{w({type:K}),A(re.Uninitialized),Bt(null),St(null),Ct(null);const Ee=K===I.DragEnd?"onDragEnd":"onDragCancel";if(Ce){const Ve=ye.current[Ee];Ve==null||Ve(Ce),C({type:Ee,event:Ce})}})}}},[y]),yn=l.useCallback((_,z)=>(j,ne)=>{const $=j.nativeEvent,H=y.get(ne);if(Z.current!==null||!H||$.dndKit||$.defaultPrevented)return;const q={active:H};_(j,z.options,q)===!0&&($.dndKit={capturedBy:z.sensor},Z.current=ne,Nt(j,z))},[y,Nt]),kt=Tr(d,yn);Ur(d),oe(()=>{Y&&N===re.Initializing&&A(re.Initialized)},[Y,N]),l.useEffect(()=>{const{onDragMove:_}=ye.current,{active:z,activatorEvent:j,collisions:ne,over:$}=se.current;if(!z||!j)return;const H={active:z,activatorEvent:j,collisions:ne,delta:{x:de.x,y:de.y},over:$};pe.unstable_batchedUpdates(()=>{_==null||_(H),C({type:"onDragMove",event:H})})},[de.x,de.y]),l.useEffect(()=>{const{active:_,activatorEvent:z,collisions:j,droppableContainers:ne,scrollAdjustedTranslate:$}=se.current;if(!_||Z.current==null||!z||!$)return;const{onDragOver:H}=ye.current,q=ne.get(Tt),he=q&&q.rect.current?{id:q.id,rect:q.rect.current,data:q.data,disabled:q.disabled}:null,K={active:_,activatorEvent:z,collisions:j,delta:{x:$.x,y:$.y},over:he};pe.unstable_batchedUpdates(()=>{Bt(he),H==null||H(K),C({type:"onDragOver",event:K})})},[Tt]),oe(()=>{se.current={activatorEvent:Q,active:J,activeNode:W,collisionRect:fe,collisions:xe,droppableRects:ce,draggableNodes:y,draggingNode:Te,draggingNodeRect:ue,droppableContainers:T,over:te,scrollableAncestors:ee,scrollAdjustedTranslate:de},G.current={initial:ue,translated:fe}},[J,W,xe,fe,y,Te,ue,ce,T,te,ee,de]),_r({...Pt,delta:L,draggingRect:fe,pointerCoordinates:Ot,scrollableAncestors:ee,scrollableAncestorRects:Be});const xn=l.useMemo(()=>({active:J,activeNode:W,activeNodeRect:Y,activatorEvent:Q,collisions:xe,containerNodeRect:He,dragOverlay:ae,draggableNodes:y,droppableContainers:T,droppableRects:ce,over:te,measureDroppableContainers:Le,scrollableAncestors:ee,scrollableAncestorRects:Be,measuringConfiguration:ie,measuringScheduled:Dt,windowRect:Ke}),[J,W,Y,Q,xe,He,ae,y,T,ce,te,Le,ee,Be,ie,Dt,Ke]),wn=l.useMemo(()=>({activatorEvent:Q,activators:kt,active:J,activeNodeRect:Y,ariaDescribedById:{draggable:Ye},dispatch:w,draggableNodes:y,over:te,measureDroppableContainers:Le}),[Q,kt,J,Y,w,Ye,y,te,Le]);return X.createElement(en.Provider,{value:D},X.createElement(xt.Provider,{value:wn},X.createElement(Jr.Provider,{value:xn},X.createElement(pn.Provider,{value:bn},u)),X.createElement(eo,{disabled:(s==null?void 0:s.restoreFocus)===!1})),X.createElement(nr,{...s,hiddenTextDescribedById:Ye}));function Sn(){const _=(wt==null?void 0:wt.autoScrollEnabled)===!1,z=typeof c=="object"?c.enabled===!1:c===!1,j=R&&!_&&!z;return typeof c=="object"?{...c,enabled:j}:{enabled:j}}}),io=l.createContext(null),Gt="button",so="Droppable";function ao(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=gt(so),{activators:a,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:g}=l.useContext(xt),{role:h=Gt,roleDescription:S="draggable",tabIndex:p=0}=o??{},v=(c==null?void 0:c.id)===t,w=l.useContext(v?pn:io),[C,D]=rt(),[N,A]=rt(),R=Xr(a,t),m=pt(n);oe(()=>(f.set(t,{id:t,key:i,node:C,activatorNode:N,data:m}),()=>{const L=f.get(t);L&&L.key===i&&f.delete(t)}),[f,t]);const y=l.useMemo(()=>({role:h,tabIndex:p,"aria-disabled":r,"aria-pressed":v&&h===Gt?!0:void 0,"aria-roledescription":S,"aria-describedby":d.draggable}),[r,h,p,v,S,d.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:y,isDragging:v,listeners:r?void 0:R,node:C,over:g,setNodeRef:D,setActivatorNodeRef:A,transform:w}}function lo(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const co=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return!n||!t?r:lo(r,n,t)};var F=(e=>(e[e.Selected=0]="Selected",e[e.Everything=1]="Everything",e))(F||{});const uo=ut("div",{display:"flex",position:"absolute",flexDirection:"column",width:"260px",border:"1px solid $gray6",borderRadius:"$2",backgroundColor:"$panelBg",overflow:"hidden",userSelect:"none"}),fo=ut(Fe,{height:"$6",width:"100%",padding:"0 $1",backgroundColor:"$panelTitleBg",color:"$gray11",flexShrink:0,fontSize:"$sm"}),ho=ut(Fe,{padding:"$1"});function po(){const[{bottom:e,left:t},n]=l.useState({left:4,bottom:4}),r=l.useCallback(o=>{n(({bottom:i,left:a})=>{const{delta:s}=o;return{left:a+s.x,bottom:i+-s.y}})},[]);return E.jsx(oo,{modifiers:[co],onDragEnd:r,children:E.jsx(go,{left:t,bottom:e})})}const go=Dn(function(t){const{attributes:n,listeners:r,setNodeRef:o,transform:i}=ao({id:"ParticlePanel"}),{viewportStore:a}=Fn(),s=a.particleStore,{t:c}=Rn(),u={bottom:`${t.bottom}px`,left:`${t.left}px`,transform:i?`translate3d(${i.x}px, ${i.y}px, 0)`:"none"};return s.isPanelOn?E.jsxs(uo,{ref:o,style:u,...n,children:[E.jsxs(fo,{align:"v",justifyContent:"between",children:[E.jsxs(Fe,{gap:"xxs",children:[E.jsx($n,{size:"12px",...r}),c("effects.particle.title")]}),E.jsxs(Fe,{gap:"xxs",align:"v",children:[E.jsx(Je,{content:c("effects.particle.restart"),children:E.jsx(qe,{size:"xs",variant:"subtle",onClick:()=>s.play(),children:E.jsx(Un,{size:"12px"})})}),E.jsx(Je,{content:s.isPlaying?c("effects.particle.pause"):c("effects.particle.play"),children:E.jsx(qe,{size:"xs",variant:"subtle",onClick:()=>s.togglePauseResume(),children:s.isPlaying?E.jsx(Pn,{size:"12px"}):E.jsx(Mn,{size:"12px"})})}),E.jsx(Je,{content:c("effects.particle.stop"),children:E.jsx(qe,{size:"xs",variant:"subtle",onClick:()=>s.stop(s.mode),disabled:s.isStopped,children:E.jsx(Xn,{size:"12px"})})})]})]}),E.jsxs(ho,{children:[E.jsx(An,{label:c("effects.particle.speed"),value:s.speed,min:0,max:5,step:.1,dragStep:.1,onChange:d=>s.onSpeedChange(d)}),E.jsx(_n,{label:c("effects.particle.scope.label"),value:s.mode,onChange:d=>{s.switchPlayMode(d),s.onBoundingChange(s.mode===F.Selected),s.stop(F.Everything),s.play()},options:[{value:F.Selected,label:c("effects.particle.scope.selected")},{value:F.Everything,label:c("effects.particle.scope.everything")}]}),E.jsx(In,{label:c("effects.particle.bounding"),disabled:s.mode===F.Everything,value:s.isBoundingEnabled,onChange:d=>s.onBoundingChange(d)})]})]}):null});class vo extends On{constructor(){super(...arguments);x(this,"isBoundingEnabled",!1);x(this,"onScriptReset");x(this,"_onScriptStop");x(this,"_onScriptPlay");x(this,"_onScriptPause");x(this,"_hasLastSelectedEntity");x(this,"_selectedParticles",[]);x(this,"_allParticles",[]);x(this,"_mode",F.Selected);x(this,"_speed",1);x(this,"_isSelected",!1);x(this,"_componentArray",[]);x(this,"_center",new Ln);x(this,"_tempBoundingBox",new jt)}set mode(n){this._mode=n}get mode(){return this._mode}set speed(n){this._getParticles(this.mode).forEach(r=>{r.generator.main.simulationSpeed=n}),this._speed=n}get speed(){return this._speed}init(n){this.onScriptReset=n.onScriptReset,this._onScriptPlay=n.onScriptPlay,this._onScriptPause=n.onScriptPause,this._onScriptStop=n.onScriptStop,this._hasLastSelectedEntity=n.hasLastSelectedEntity}onStart(){const n=this.entity.parent.parent.createChild("particle_bounds_drawer");n.addComponent(Tn),n.addComponent(Ge),n.layer=Bn.Outline}onSelectEntity(n){if(this.onScriptReset&&this.onScriptReset(),this._componentArray.length=0,this._isSelected=!1,n){for(const r of n){const o=[];r.getComponentsIncludeChildren(De,o),this._componentArray.push(...o)}this._isSelected=this._componentArray.length>0}this._updateArrayAndPlay()}onAddComponent(n){if(n instanceof De){if(this.mode===F.Selected&&this._hasLastSelectedEntity&&!this._hasLastSelectedEntity())return;this._componentArray.push(n),this._updateArrayAndPlay()}}onRemoveComponent(n){if(n instanceof De)if(this.mode===F.Selected&&this._hasLastSelectedEntity&&!this._hasLastSelectedEntity()){const r=this._allParticles.findIndex(o=>o.instanceId===n.instanceId);r>-1&&this._allParticles.splice(r,1)}else{const r=this._componentArray.findIndex(o=>o.instanceId===n.instanceId);r>-1&&this._componentArray.splice(r,1),this._updateArrayAndPlay()}}onPlay(n){this._updateAllParticles(),n?this.play(F.Everything):this.stop(F.Everything)}onUpdate(){if(this._isSelected&&this.isBoundingEnabled){this._tempBoundingBox.copyFrom(this._selectedParticles[0].bounds);for(let h=1,S=this._selectedParticles.length;h<S;h++)jt.merge(this._tempBoundingBox,this._selectedParticles[h].bounds,this._tempBoundingBox);const{min:n,max:r}=this._tempBoundingBox,{x:o,y:i,z:a}=n,{x:s,y:c,z:u}=r,d=s-o,f=c-i,g=u-a;this._center.set(s+o,c+i,u+a).scale(.5),Ge.flush(),Ge.drawCuboid(d,f,g,this._center)}}_getParticles(n){return n===F.Selected?this._selectedParticles:this._allParticles}play(n=this.mode){this._getParticles(n).forEach(r=>{r.generator.stop(!1,Ft.StopEmittingAndClear),r.generator.main.simulationSpeed=this._speed,r.generator.play()}),this._onScriptPlay&&this._onScriptPlay(n)}pause(n=!1){this._getParticles(this.mode).forEach(r=>{r.generator.main.simulationSpeed=0}),this._onScriptPause&&this._onScriptPause(n)}stop(n){this._getParticles(n).forEach(r=>{r.generator.stop(!1,Ft.StopEmittingAndClear)}),this._onScriptStop&&this._onScriptStop(n)}resume(){this._getParticles(this.mode).forEach(n=>{n.generator.main.simulationSpeed=this._speed,n.generator.play()})}_updateAllParticles(){this._allParticles.length=0;const n=new Set;this.engine.sceneManager.scenes[0].rootEntities.forEach(o=>{const i=[];o.getComponentsIncludeChildren(De,i);for(const a of i)n.has(a.instanceId)||(n.add(a.instanceId),this._allParticles.push(a))})}_updateSelectedParticles(){this._selectedParticles.length=0;const n=new Set;for(const r of this._componentArray){const o=[];r.entity.getComponentsIncludeChildren(De,o);for(const i of o)n.has(i.instanceId)||(n.add(i.instanceId),this._selectedParticles.push(i))}}_updateArrayAndPlay(){const n=this._componentArray.length;this.pause(n!==0),n>0&&(this._updateSelectedParticles(),this._updateAllParticles(),this.play())}}var mo=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,B=(e,t,n,r)=>{for(var o=r>1?void 0:r?bo(t,n):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(r?a(t,n,o):a(o))||o);return r&&o&&mo(t,n,o),o};let O=class{constructor(e){x(this,"isPanelOn",!1);x(this,"speed",1);x(this,"isPlaying",!1);x(this,"isStopped",!1);x(this,"_mode",F.Everything);x(this,"isModeChanged",!1);x(this,"isBoundingEnabled",!1);x(this,"script");x(this,"root");Nn(this),this.root=e.projectStore}get mode(){return this._mode}init(){this.script=kn.addScript(vo),this.speed=this.script.speed,this.isBoundingEnabled=this.script.isBoundingEnabled,this.script.init({onScriptReset:()=>{this.isPanelOn=!1},onScriptPlay:()=>{this.isStopped=!1,this.isPlaying=!0},onScriptPause:e=>{this.isPanelOn=e},onScriptStop:e=>{this.isStopped=!0,this.isPlaying=!1},hasLastSelectedEntity:()=>{const e=this.root.currentScene.sceneUIStore.lastSelectedId;return e&&!!this.root.currentScene.entities.get(e)}}),this._mode=this.script.mode}play(e=this.mode){this.isStopped=!1,this.isPlaying=!0,this.script.play(e)}togglePauseResume(){this.isStopped=!1,this.isPlaying?(this.isPlaying=!1,this.script.pause()):(this.isPlaying=!0,this.script.resume())}stop(e){this.isStopped=!0,this.isPlaying=!1,this.script.stop(e)}onSpeedChange(e){this.speed=e,this.script.speed=e}onBoundingChange(e){this.isBoundingEnabled=e,this.script.isBoundingEnabled=e}switchPlayMode(e){this._mode=e,this.script.mode=e}};B([le],O.prototype,"isPanelOn",2);B([le],O.prototype,"speed",2);B([le],O.prototype,"isPlaying",2);B([le],O.prototype,"isStopped",2);B([le],O.prototype,"_mode",2);B([zn],O.prototype,"mode",1);B([le],O.prototype,"isModeChanged",2);B([le],O.prototype,"isBoundingEnabled",2);B([ve],O.prototype,"play",1);B([ve],O.prototype,"togglePauseResume",1);B([ve],O.prototype,"stop",1);B([ve],O.prototype,"onSpeedChange",1);B([ve],O.prototype,"onBoundingChange",1);B([ve],O.prototype,"switchPlayMode",1);O=B([jn({type:"particleStore",Panel:po})],O);export{Fi as AnimatorComponent,$i as AnimatorStore,ms as AudioComponent,ws as ButtonComponent,Mi as CameraComponent,Ki as CharacterControllerComponent,_i as DirectLightComponent,Vi as DynamicColliderComponent,qi as FixedJointComponent,Gi as HingeJointComponent,Ss as ImageComponent,hs as ImportScriptComponent,is as LottieAnimationComponent,Ni as MeshRendererComponent,cs as ParticleRendererComponent,O as ParticleStore,Ji as PhysicsStore,Oi as PointLightComponent,gs as PostProcessComponent,ts as ScriptComponent,zi as SkinnedMeshRendererComponent,as as SpineAnimationComponent,Ti as SpotLightComponent,Qi as SpringJointComponent,Yi as SpriteMaskComponent,Xi as SpriteRendererComponent,Zi as StaticColliderComponent,Cs as TextComponent,rs as TextRendererComponent,ds as TrailRendererComponent,ys as TransformComponent,Es as UICanvasComponent,Ds as UIGroupComponent,Rs as UITransformComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var w=Object.defineProperty;var O=(p,e,t)=>e in p?w(p,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):p[e]=t;var m=(p,e,t)=>(O(p,typeof e!="symbol"?e+"":e,t),t);import{aQ as x,aR as E,aU as I,aS as d,bO as _,aW as v,E as R,C as h,bP as g,x as S,p as C,e as b,bQ as T,bR as j}from"./index-1e23212d.js";import"./index-92830754.js";import{c as N}from"./Component-746be670.js";import"./postmen-9e1e15bd.js";import{c as V,a as A,b as B}from"./scriptPropertyActions-d3a583d2.js";import"./TextureAsset-93475ade.js";import"./GlTFAsset-5f37feef.js";import"./MaterialAsset-3b56ac00.js";import"./MeshAsset-2cf47eb2.js";import"./AnimatorControllerAsset-1c05f4db.js";import"./AnimationClipAsset-61699477.js";import"./SpriteAsset-4e895da5.js";import"./SpriteAtlasAsset-c2894c12.js";import"./AmbientLightAsset-f9c1eb91.js";import"./LottieAsset-9d3ef507.js";import"./ShaderChunkAsset-e9072307.js";import"./SpineSkeletonDataAsset-5b202ba0.js";import"./FontAsset-a3a92f7d.js";import"./SceneAsset-87f2ea92.js";import"./ShaderAsset-98ce1f70.js";import"./PrimitiveMesh-35092ad0.js";import"./XRReferenceImageAsset-dbf129aa.js";import"./PrefabAsset-d0c0cd25.js";import"./PhysicsMaterialAsset-d87d35aa.js";import"./RenderTargetAsset-a003f9f5.js";import"./AudioAsset-5127eeec.js";import"./index-c20fc198.js";import"./MarkdownAsset-a17933fb.js";import{E as F}from"./ShaderUIScriptAsset-ac824e68.js";import"./enum-58295f88.js";import"./encode-ac4bb64e.js";import"./meshopt_simplifier.module-cd99529d.js";import"./Tooltip-dfde37c6.js";import"./AssetViewer-0ce46fa1.js";import"./ktx2-encoder-075abd75.js";import"./TaskQueue-05c94a4d.js";import"./glTFIO-79bbca27.js";import"./MaterialInspector-a36197f2.js";import"./IconPointFilled-209638e2.js";import"./ProxyConfigs-ad92ebc7.js";import"./index-b2e1cba4.js";import"./MeshThumbnail-25cd4a13.js";import"./bundlers-9b0d37fc.js";import"./assetEditorActions-c4e5962f.js";import"./module-251ecc50.js";import"./module-498119f3.js";import"./FormItemArray-a2f72cf1.js";import"./Accordion-930aedee.js";import"./IconEdit-2c768a0a.js";import"./module-c6e2d190.js";const M=["Input","Boolean","Switch","Toggle","Slider","Number","Vector2","Vector3","Vector4","Rect","Color","Select","AssetPicker","Textarea","SegmentControl"];function D(p){p=p.replace(/\/\/.*$/gm,"").replace(/,\s*}/gm,"}");const e=/@inspect\(['"](\w+)['"],?\s?(\{[\s\S]*?\})?\)\s*(?:public|private|static)?\s*(\w+)[:\s\w]+?\s*=\s*(?:['"]([^'"]*?)['"]|(-?[\w.]+));?/g,t=[];let o;for(;(o=e.exec(p))!==null;){let[,r,s,a,n,c]=o,l=n??c;if(M.indexOf(r)===-1){console.warn(`Unsupported property type: ${r}`);continue}let i={property:a.toString(),label:a.toString(),type:r};if(s){s=s.trim().replace(/\s+/g," ").replace(/'/g,'"').replace(/(\w+):/g,'"$1":');try{i=JSON.parse(s),i.type=r,i.label=i.label||a,i.property=i.property||a}catch{console.warn(`Failed to parse property options: ${s}`)}}["Number","Slider"].includes(r)&&(l=parseFloat(l)),t.push({propertyType:r,propertyOptions:i,propertyName:a,propertyValue:l})}return t}async function P(p){const e=D(p.code),t={success:!1,model:{},config:[]};for(let o=0;o<e.length;o++){const r=e[o];t.model[r.propertyName]=r.propertyValue,t.config.push(r.propertyOptions)}return t.success=!0,t}var J=Object.defineProperty,$=Object.getOwnPropertyDescriptor,f=(p,e,t,o)=>{for(var r=o>1?void 0:o?$(e,t):e,s=p.length-1,a;s>=0;s--)(a=p[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&J(e,t,r),r};const k=new BroadcastChannel("Galacean_Editor_Channel"),U=x(function(e){const{model:t}=e,{t:o}=E(),r=V(t.properties,t.root),s=n=>{Object.keys(n.properties).forEach(c=>{T(n,c,{getActualEditorValue:()=>g(n.properties[c]),setActualEditorValue:(l,i,y)=>{l.properties[i]=y}})})};async function a(){t.parsed=!1;const n=t.root.assetStore.assets[t.script.refId],c=await j.assets.getAssetInfo(n.serverId),l=await fetch(c.data.url).then(y=>y.text());await B(t.root,n.id,l,c.data.url);const i=await P(n);i.success&&(t.parsed=!0,t.propertiesConfig=i.config,t.properties=i.model,s(t))}return I.useEffect(()=>{t!=null&&t.properties&&s(t)},[t.properties]),t.script?d.jsxs(d.Fragment,{children:[d.jsx(_,{label:" ",async:a,children:o("component.script.parse-properties")}),t.parsed&&t.properties&&d.jsx(v.List,{model:r,configs:t.propertiesConfig,onModelChange:(n,c)=>{k.postMessage({type:"script-inspector-value-change",payload:{instanceId:t.id,property:n,value:c}}),A(t.root,t.id,n,c)}})]}):null});let u=class extends R{constructor(){super(...arguments);m(this,"parsed",!1);m(this,"propertiesConfig",[]);m(this,"isScript",!0);m(this,"script",null);m(this,"properties",{})}onInitComplete(){if(!this.script)return;this.root.assetStore.getAssetByRef(this.script).then(t=>{if(!t)throw new Error(`Cannot find file ${JSON.stringify(this.script)}`);return this.applyBoundPathChange("_scriptRef",h.AssetPicker,this.script).then(()=>P(t))}).then(t=>{this.propertiesConfig=t.config;for(const[o,r]of Object.entries(t.model))this.properties[o]=this.properties[o]??r;this.parsed=!0}).catch(t=>{console.warn(t)})}async applyBoundPathChange(e,t,o){if(e==="_scriptRef"){this.setBoundPathValue(e,h.Input,o);return}await super.applyBoundPathChange(e,t,o)}deserialize(e){if(super.deserialize(e),this.script=e.refId?{refId:e.refId}:null,e.props)for(const[t,o]of Object.entries(e.props))t!=="enabled"&&(this.properties[t]=o)}toJSON(){const e=super.toJSON();if(delete e.props.script,this.properties){const t=g(this.properties),o=e.props||{};for(const[r,s]of Object.entries(t))r!=="root"&&(o[r]=s);e.props=o}return this.script&&this.root.assetStore.assets[this.script.refId]&&(e.refId=this.script.refId),e}};f([S],u.prototype,"parsed",2);f([S.ref],u.prototype,"propertiesConfig",2);f([C({label:b("component.script.script-label"),type:h.AssetPicker,assetType:"script",bindPath:"_scriptRef",customFilter:p=>p.subType===F.Default,onLocate:p=>{p.onDoubleClick()}})],u.prototype,"script",2);f([C({label:b("component.script.properties-label"),customComponent:U})],u.prototype,"properties",2);u=f([N({type:"Script",componentsMenu:{label:"component.script.title"}})],u);export{u as ScriptComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aC as e,aD as m,aE as i,aF as l}from"./index-1e23212d.js";function c(t){const{label:r,info:o,value:s,displayType:a="text"}=t;return e.jsxs(m,{...i(t),children:[a==="text"&&e.jsx(l,{size:"sm",selectable:!0,code:!0,children:s}),a==="image"&&e.jsx("img",{src:s,alt:r})]})}export{c as F};
|