@cimplify/sdk 0.108.0 → 0.110.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (608) hide show
  1. package/LICENSE +21 -0
  2. package/dist/advanced.d.mts +4 -3
  3. package/dist/advanced.d.ts +4 -3
  4. package/dist/advanced.js +24 -24
  5. package/dist/advanced.mjs +5 -5
  6. package/dist/animation-4EXBXRVX.js +27 -0
  7. package/dist/animation-6DICNWUP.mjs +6 -0
  8. package/dist/audio-DhvyjqdA.d.mts +249 -0
  9. package/dist/audio-m0w8cnxq.d.ts +249 -0
  10. package/dist/avatars.d.mts +110 -0
  11. package/dist/avatars.d.ts +110 -0
  12. package/dist/avatars.js +82 -0
  13. package/dist/avatars.mjs +5 -0
  14. package/dist/backend-gUCzs5Kg.d.mts +3866 -0
  15. package/dist/backend-gUCzs5Kg.d.ts +3866 -0
  16. package/dist/{catalogue-B4eLL8Mi.d.ts → catalogue-CPTMyBUz.d.mts} +109 -221
  17. package/dist/catalogue-DzrTXP3v.d.mts +541 -0
  18. package/dist/catalogue-DzrTXP3v.d.ts +541 -0
  19. package/dist/{catalogue-OT89_Ifs.d.mts → catalogue-OTuS5zp-.d.ts} +109 -221
  20. package/dist/chunk-22BD3RHN.mjs +1809 -0
  21. package/dist/chunk-25T4JHEA.mjs +21 -0
  22. package/dist/chunk-2AQ237Y4.js +508 -0
  23. package/dist/chunk-2IC4H6OV.mjs +48 -0
  24. package/dist/chunk-2LHLG4OB.mjs +71 -0
  25. package/dist/chunk-2O2CG465.js +1709 -0
  26. package/dist/chunk-2Q4DTHXK.js +316 -0
  27. package/dist/chunk-2QTQ6BUH.mjs +46 -0
  28. package/dist/chunk-2UN4SFLR.mjs +100 -0
  29. package/dist/chunk-2V75I7K3.js +454 -0
  30. package/dist/chunk-2V7IL4HC.js +10 -0
  31. package/dist/chunk-34XBXUMW.js +296 -0
  32. package/dist/chunk-3C4C654I.js +71 -0
  33. package/dist/chunk-3DAD2LDF.mjs +72 -0
  34. package/dist/chunk-3GXH2NFD.mjs +4 -0
  35. package/dist/chunk-3O47ZFW3.js +961 -0
  36. package/dist/chunk-3OY3VYNF.mjs +11 -0
  37. package/dist/chunk-3S6WPBZL.js +2936 -0
  38. package/dist/chunk-3TUOUP5T.js +399 -0
  39. package/dist/chunk-3VEH23I5.mjs +1380 -0
  40. package/dist/chunk-3ZYSAW2T.mjs +263 -0
  41. package/dist/chunk-4ANVF274.js +103 -0
  42. package/dist/chunk-4C7I3ELN.js +388 -0
  43. package/dist/chunk-4DYKAYFO.mjs +8 -0
  44. package/dist/chunk-4ZDR72SG.js +329 -0
  45. package/dist/chunk-52YS45RR.js +1066 -0
  46. package/dist/chunk-5325XSCH.js +107 -0
  47. package/dist/chunk-5AD5X6AV.js +13 -0
  48. package/dist/chunk-5BYDGGWO.mjs +197 -0
  49. package/dist/chunk-5C3C7VDM.mjs +55 -0
  50. package/dist/chunk-5HFMY3D7.js +660 -0
  51. package/dist/chunk-5LH2QN3T.js +1862 -0
  52. package/dist/chunk-5PJEXSOW.js +44 -0
  53. package/dist/chunk-5SXDH3Y7.js +90 -0
  54. package/dist/chunk-5YFBGGCK.mjs +502 -0
  55. package/dist/chunk-5YWN6H5Q.mjs +133 -0
  56. package/dist/chunk-66QP3SMN.js +402 -0
  57. package/dist/chunk-6DAEZKIG.mjs +385 -0
  58. package/dist/chunk-6DATW7TB.mjs +420 -0
  59. package/dist/{chunk-JRGK3NXR.mjs → chunk-6ETDAU62.mjs} +72 -212
  60. package/dist/chunk-6H254EVP.mjs +178 -0
  61. package/dist/chunk-6PFNJPBJ.mjs +820 -0
  62. package/dist/chunk-6PJWXIFX.mjs +357 -0
  63. package/dist/chunk-6SWKWCMS.js +80 -0
  64. package/dist/chunk-6VVXXX7S.js +808 -0
  65. package/dist/chunk-6WUBSMTX.js +1403 -0
  66. package/dist/chunk-73SGZLAQ.mjs +35 -0
  67. package/dist/chunk-76L2V6KD.mjs +4 -0
  68. package/dist/chunk-7AAIAVAA.js +1531 -0
  69. package/dist/chunk-7ARSJPV3.mjs +93 -0
  70. package/dist/chunk-7BHW5GTC.mjs +1234 -0
  71. package/dist/chunk-7DQSDKDU.js +6 -0
  72. package/dist/chunk-7IQQQENP.mjs +401 -0
  73. package/dist/chunk-7KFTYENS.js +11357 -0
  74. package/dist/chunk-7SM6XSPZ.js +3171 -0
  75. package/dist/chunk-7SXOHAIR.mjs +28 -0
  76. package/dist/chunk-A2MAX6S4.js +90 -0
  77. package/dist/chunk-A33OORT7.mjs +1530 -0
  78. package/dist/{chunk-U6ACF76H.mjs → chunk-A36JRXXH.mjs} +1075 -1845
  79. package/dist/chunk-A7BU3BK4.js +52 -0
  80. package/dist/chunk-A7MQSN2V.mjs +77 -0
  81. package/dist/chunk-A7V4L2IT.mjs +416 -0
  82. package/dist/chunk-AABEK6XU.js +226 -0
  83. package/dist/chunk-AGV33FWC.mjs +5005 -0
  84. package/dist/chunk-AHNR3BXI.js +108 -0
  85. package/dist/chunk-AQ5RLBU2.mjs +286 -0
  86. package/dist/chunk-AQOE6WCG.js +1270 -0
  87. package/dist/chunk-ATAWRACV.mjs +62 -0
  88. package/dist/chunk-ATCURNUV.js +14 -0
  89. package/dist/chunk-AWPV33OO.js +6 -0
  90. package/dist/chunk-AYJPHKYV.js +337 -0
  91. package/dist/chunk-AZ5BGWHB.js +162 -0
  92. package/dist/chunk-AZAXD44P.js +1373 -0
  93. package/dist/chunk-BBGKQIJJ.mjs +406 -0
  94. package/dist/chunk-BP4JLSUA.js +1453 -0
  95. package/dist/{chunk-SUCE7FWA.mjs → chunk-BTUSVHIE.mjs} +539 -978
  96. package/dist/chunk-BU6OK542.mjs +818 -0
  97. package/dist/chunk-CVSRWM6W.js +418 -0
  98. package/dist/chunk-CYBMFMJD.mjs +247 -0
  99. package/dist/chunk-DDJLDOUX.mjs +217 -0
  100. package/dist/{chunk-V32BCG7M.js → chunk-DFZWHNRG.js} +75 -215
  101. package/dist/chunk-DJ2C7AVG.js +644 -0
  102. package/dist/chunk-DS2VU4WW.mjs +102 -0
  103. package/dist/chunk-DSAG7T5P.js +7290 -0
  104. package/dist/chunk-E2QPPH7I.js +327 -0
  105. package/dist/chunk-E65WCTIG.mjs +1187 -0
  106. package/dist/{chunk-33VCYWVL.mjs → chunk-E6QQKDNE.mjs} +30 -42
  107. package/dist/chunk-ECDK6QBF.mjs +981 -0
  108. package/dist/chunk-EIB4OWVQ.mjs +620 -0
  109. package/dist/chunk-EQUZYCGO.js +250 -0
  110. package/dist/chunk-F3UJ6ZRM.mjs +313 -0
  111. package/dist/chunk-F63N2ZTQ.js +7023 -0
  112. package/dist/chunk-F6XRYEM3.mjs +26 -0
  113. package/dist/chunk-FE6VCE4K.js +5030 -0
  114. package/dist/chunk-FLWD6GRR.js +1372 -0
  115. package/dist/chunk-FQBFWJBS.mjs +110 -0
  116. package/dist/chunk-FXVJ2HFU.js +26 -0
  117. package/dist/chunk-FZMQMQBW.js +312 -0
  118. package/dist/chunk-G3EEC44R.js +53 -0
  119. package/dist/{chunk-KG3WT4PR.mjs → chunk-GCKWKLZF.mjs} +73 -104
  120. package/dist/chunk-GCX7TY4D.mjs +6826 -0
  121. package/dist/chunk-GDB6TCSD.js +450 -0
  122. package/dist/chunk-GDCV4IWO.mjs +21 -0
  123. package/dist/chunk-GDZT5LZ5.js +170 -0
  124. package/dist/chunk-GHPUYD4I.mjs +213 -0
  125. package/dist/chunk-GHS6MIL6.mjs +1432 -0
  126. package/dist/chunk-GPS2THCL.mjs +11 -0
  127. package/dist/{chunk-EV2EVOYS.js → chunk-GTJWQAGU.js} +31 -42
  128. package/dist/chunk-GVTI6UJQ.mjs +130 -0
  129. package/dist/chunk-GXKI64OT.mjs +1138 -0
  130. package/dist/chunk-GYDYF2WX.js +275 -0
  131. package/dist/chunk-GYLP6UG4.mjs +705 -0
  132. package/dist/chunk-H3OQKK6X.js +1158 -0
  133. package/dist/chunk-H5DFSCJ6.js +40 -0
  134. package/dist/chunk-HAGEIC2L.mjs +186 -0
  135. package/dist/chunk-HAJ4JRFO.js +293 -0
  136. package/dist/chunk-HDR72GB6.js +188 -0
  137. package/dist/chunk-HF5HPS4T.mjs +40 -0
  138. package/dist/chunk-HK6LOFDS.js +218 -0
  139. package/dist/chunk-HMWYTXCY.mjs +143 -0
  140. package/dist/chunk-HPCSRCMA.js +89 -0
  141. package/dist/chunk-HSEO6TPU.js +247 -0
  142. package/dist/chunk-I5FOHCLH.js +132 -0
  143. package/dist/chunk-IDLW4NWA.mjs +85 -0
  144. package/dist/chunk-IIDZ5WUX.js +61 -0
  145. package/dist/chunk-IR74FJHU.js +2332 -0
  146. package/dist/chunk-IRVFYAKP.mjs +100 -0
  147. package/dist/{chunk-XBL3TMPC.mjs → chunk-IZDWAL53.mjs} +1795 -3287
  148. package/dist/chunk-J2KZXIU3.js +51 -0
  149. package/dist/chunk-J2U6PJSO.js +91 -0
  150. package/dist/chunk-J5AJNY2N.js +283 -0
  151. package/dist/chunk-J6KQZ4FO.mjs +821 -0
  152. package/dist/{chunk-OWW5GUSB.js → chunk-JGBCIKJV.js} +7 -6
  153. package/dist/chunk-JKGTBMU7.mjs +25 -0
  154. package/dist/chunk-JR3TNEQC.js +422 -0
  155. package/dist/chunk-JURRXY2J.mjs +29 -0
  156. package/dist/chunk-K3HW5I2A.mjs +317 -0
  157. package/dist/chunk-K46SMZ66.mjs +103 -0
  158. package/dist/chunk-K4UDGE3Z.mjs +6 -0
  159. package/dist/chunk-KDQOR4QQ.mjs +350 -0
  160. package/dist/chunk-KDTVOLHI.mjs +288 -0
  161. package/dist/chunk-KGHJH5KJ.mjs +35 -0
  162. package/dist/chunk-KIZOA5LX.mjs +140 -0
  163. package/dist/chunk-KK6HYVBI.mjs +242 -0
  164. package/dist/chunk-KMKWGXMK.js +856 -0
  165. package/dist/chunk-KPA6K5IB.js +80 -0
  166. package/dist/chunk-KU7O4IXU.mjs +260 -0
  167. package/dist/chunk-KVFNRJOR.mjs +11142 -0
  168. package/dist/chunk-KZJRSXHK.js +2432 -0
  169. package/dist/chunk-LHWPRUJL.js +79 -0
  170. package/dist/chunk-LIV3KXJG.mjs +369 -0
  171. package/dist/chunk-LKV4LACG.js +21 -0
  172. package/dist/chunk-LUY45X3U.mjs +263 -0
  173. package/dist/chunk-LYEZZEEF.mjs +17 -0
  174. package/dist/chunk-M5EXQZYY.mjs +1519 -0
  175. package/dist/chunk-ME6HGG4I.mjs +1338 -0
  176. package/dist/chunk-MEXP6DA6.js +31 -0
  177. package/dist/chunk-MG52AW3H.js +902 -0
  178. package/dist/chunk-MIPO6F72.js +334 -0
  179. package/dist/{chunk-5QW7CQBA.js → chunk-MKIJQL5Q.js} +211 -321
  180. package/dist/chunk-MN3YETVN.mjs +17 -0
  181. package/dist/chunk-MOBSBXVE.mjs +2391 -0
  182. package/dist/chunk-MOMOZEUM.mjs +88 -0
  183. package/dist/chunk-MRFUNRAP.js +62 -0
  184. package/dist/chunk-MTIHEW2M.js +433 -0
  185. package/dist/chunk-N4RGGDEL.mjs +73 -0
  186. package/dist/chunk-NH654HAT.js +10 -0
  187. package/dist/chunk-NHJUGZUR.mjs +253 -0
  188. package/dist/chunk-NMQT4HG3.mjs +757 -0
  189. package/dist/chunk-NPSYB6DC.mjs +906 -0
  190. package/dist/chunk-NW2GPMSO.js +857 -0
  191. package/dist/chunk-NXKQOQ6L.js +76 -0
  192. package/dist/chunk-NXLAZIJZ.js +309 -0
  193. package/dist/chunk-NYWNA5CF.js +148 -0
  194. package/dist/chunk-NZTKLY2W.js +1442 -0
  195. package/dist/chunk-O2ICABUD.js +36 -0
  196. package/dist/chunk-OIVVQQ22.js +862 -0
  197. package/dist/chunk-OKC2B4O3.mjs +312 -0
  198. package/dist/chunk-OLWFPDBK.js +2220 -0
  199. package/dist/chunk-OMTVH334.js +3779 -0
  200. package/dist/chunk-OQRVEM56.mjs +362 -0
  201. package/dist/chunk-OXMIBOD4.js +337 -0
  202. package/dist/chunk-PBL6YL5L.mjs +288 -0
  203. package/dist/chunk-PDOELNNQ.js +97 -0
  204. package/dist/chunk-PDQJY2GZ.js +136 -0
  205. package/dist/chunk-PKOZXD2Q.js +1274 -0
  206. package/dist/chunk-PPF2BYFL.mjs +2191 -0
  207. package/dist/chunk-PQTQKNKD.js +539 -0
  208. package/dist/chunk-PRSR4FAV.mjs +81 -0
  209. package/dist/chunk-PTRNO5UD.js +95 -0
  210. package/dist/chunk-Q2Y3VMKH.js +2000 -0
  211. package/dist/chunk-QCZOE65N.js +96 -0
  212. package/dist/chunk-QDYFLATW.mjs +52 -0
  213. package/dist/chunk-QQABGCMM.js +22 -0
  214. package/dist/chunk-QS6TRHMR.js +345 -0
  215. package/dist/chunk-R56P64LB.mjs +208 -0
  216. package/dist/chunk-RCQ2MPBV.js +428 -0
  217. package/dist/chunk-RFVRPYR2.mjs +856 -0
  218. package/dist/chunk-RKBLPGPV.js +11521 -0
  219. package/dist/chunk-RM2V4IND.mjs +327 -0
  220. package/dist/chunk-RQXN5A34.mjs +613 -0
  221. package/dist/chunk-RUVGVNOF.mjs +2687 -0
  222. package/dist/chunk-SAFJIGYB.mjs +165 -0
  223. package/dist/chunk-SKQFLBDD.js +263 -0
  224. package/dist/chunk-SMK6JU2F.mjs +2092 -0
  225. package/dist/{chunk-UVRPC2P7.js → chunk-SNNEOS5Z.js} +1984 -3476
  226. package/dist/chunk-SPCRQ6NO.mjs +1246 -0
  227. package/dist/chunk-SWX4SALA.mjs +19 -0
  228. package/dist/{chunk-JVODCGFP.mjs → chunk-SYEO2WV4.mjs} +128 -238
  229. package/dist/chunk-T2QQMX2N.js +10 -0
  230. package/dist/chunk-T3AFF3L7.mjs +57 -0
  231. package/dist/chunk-T6Z2EXYL.js +712 -0
  232. package/dist/chunk-T7LOXGYX.js +118 -0
  233. package/dist/chunk-TJCAE7RC.mjs +1315 -0
  234. package/dist/chunk-TJI3K6RP.js +137 -0
  235. package/dist/chunk-TL2SVO4P.mjs +55 -0
  236. package/dist/chunk-TM63CYGN.mjs +399 -0
  237. package/dist/chunk-TU5RYTYU.mjs +13 -0
  238. package/dist/chunk-TVJZ4GPS.js +1553 -0
  239. package/dist/chunk-TWM6DLYF.js +371 -0
  240. package/dist/chunk-U63OC4TQ.js +30 -0
  241. package/dist/{chunk-L5GKVQVJ.js → chunk-U6BVSJZ6.js} +25 -57
  242. package/dist/chunk-U6UVWEAK.mjs +792 -0
  243. package/dist/chunk-UCEPNO6N.mjs +11048 -0
  244. package/dist/{chunk-ANT574FD.js → chunk-UCR5HRYM.js} +74 -105
  245. package/dist/chunk-UG5BTOTF.mjs +334 -0
  246. package/dist/chunk-UGH37BQW.mjs +157 -0
  247. package/dist/chunk-V7ZRH3PY.mjs +271 -0
  248. package/dist/chunk-VBGHBL3E.mjs +1394 -0
  249. package/dist/chunk-VRBDAS5I.js +920 -0
  250. package/dist/chunk-VVE3Y76O.js +230 -0
  251. package/dist/chunk-W65JIRI4.mjs +1182 -0
  252. package/dist/chunk-WHYKAT7G.js +62 -0
  253. package/dist/{chunk-YOIVZ6OA.mjs → chunk-WIZRUIZB.mjs} +25 -57
  254. package/dist/chunk-WKWTDZS7.js +385 -0
  255. package/dist/chunk-WLMINRC4.mjs +78 -0
  256. package/dist/chunk-WOF3AD3J.js +22 -0
  257. package/dist/chunk-WWKMOA76.js +1262 -0
  258. package/dist/chunk-X5A5FOWW.js +615 -0
  259. package/dist/chunk-X6CN6KQF.mjs +192 -0
  260. package/dist/chunk-XD2PMH46.mjs +517 -0
  261. package/dist/chunk-XJA2NGTI.mjs +88 -0
  262. package/dist/chunk-XJIHN3BY.mjs +8 -0
  263. package/dist/chunk-XK6UDWJS.js +203 -0
  264. package/dist/chunk-XPG3N5CF.mjs +415 -0
  265. package/dist/chunk-XVZ2NKSU.mjs +74 -0
  266. package/dist/chunk-XYP45OLE.js +117 -0
  267. package/dist/chunk-XZSDGZX6.mjs +301 -0
  268. package/dist/chunk-Y2EMGN4T.mjs +120 -0
  269. package/dist/chunk-Y3XWP5XW.mjs +298 -0
  270. package/dist/chunk-Y4K22JL6.js +228 -0
  271. package/dist/chunk-Y65LXQGA.mjs +3164 -0
  272. package/dist/chunk-Y66WVMO5.mjs +87 -0
  273. package/dist/chunk-Y7JWLB25.mjs +7280 -0
  274. package/dist/chunk-YCDXAJKU.js +175 -0
  275. package/dist/chunk-YRDQCCIS.js +152 -0
  276. package/dist/chunk-YV52DGSA.js +111 -0
  277. package/dist/chunk-YXGZQPUD.js +94 -0
  278. package/dist/chunk-Z3A3AFVU.mjs +102 -0
  279. package/dist/chunk-ZCY6YKKP.mjs +475 -0
  280. package/dist/chunk-ZEQHXVU5.js +215 -0
  281. package/dist/chunk-ZF7JCXCI.js +284 -0
  282. package/dist/chunk-ZJBRUH6V.js +29 -0
  283. package/dist/chunk-ZMIL4ZOA.js +365 -0
  284. package/dist/chunk-ZR5ULMN2.mjs +337 -0
  285. package/dist/chunk-ZXREOYOW.js +87 -0
  286. package/dist/{client-BSP9U1O1.d.mts → client-CX_WR0-J.d.mts} +2 -2
  287. package/dist/client-Dytx_ZTC.d.ts +230 -0
  288. package/dist/{client-B878xeAP.d.ts → client-dqOhP9Nc.d.ts} +2 -2
  289. package/dist/client-hTKbCuhG.d.mts +230 -0
  290. package/dist/clock-B-UAjkKa.d.mts +5 -0
  291. package/dist/clock-B-UAjkKa.d.ts +5 -0
  292. package/dist/config-BlXQluJR.d.mts +36 -0
  293. package/dist/config-BlXQluJR.d.ts +36 -0
  294. package/dist/courier-Cnn-edJ4.d.ts +95 -0
  295. package/dist/courier-FmGfkvIN.d.mts +95 -0
  296. package/dist/crowd-DdHFbqKK.d.ts +186 -0
  297. package/dist/crowd-hOVSAmA3.d.mts +186 -0
  298. package/dist/danfo-BEBapFlX.d.mts +146 -0
  299. package/dist/danfo-UQ_PTIIx.d.ts +146 -0
  300. package/dist/{elements-Bty6Qs_N.d.mts → elements-DdsRig-2.d.mts} +1548 -257
  301. package/dist/{elements-Bty6Qs_N.d.ts → elements-DdsRig-2.d.ts} +1548 -257
  302. package/dist/engines/godot.d.mts +56 -0
  303. package/dist/engines/godot.d.ts +56 -0
  304. package/dist/engines/godot.js +28 -0
  305. package/dist/engines/godot.mjs +3 -0
  306. package/dist/engines/wasm.d.mts +11 -0
  307. package/dist/engines/wasm.d.ts +11 -0
  308. package/dist/engines/wasm.js +178 -0
  309. package/dist/engines/wasm.mjs +176 -0
  310. package/dist/fallback-CrG_lTFk.d.mts +270 -0
  311. package/dist/fallback-CrG_lTFk.d.ts +270 -0
  312. package/dist/fallback-KDB4Y2CE.mjs +6 -0
  313. package/dist/fallback-Y26TQENE.js +19 -0
  314. package/dist/features-CZB4rmcD.d.mts +118 -0
  315. package/dist/features-CZB4rmcD.d.ts +118 -0
  316. package/dist/fit-BWiE7rgA.d.mts +44 -0
  317. package/dist/fit-DK0oT7zO.d.ts +44 -0
  318. package/dist/five-a-side-Bv1AOUy3.d.mts +115 -0
  319. package/dist/five-a-side-EC51SJY1.d.ts +115 -0
  320. package/dist/fluid-ARr0qUIL.d.ts +939 -0
  321. package/dist/fluid-DLlEj2cs.d.mts +939 -0
  322. package/dist/game/conformance.d.mts +84 -0
  323. package/dist/game/conformance.d.ts +84 -0
  324. package/dist/game/conformance.js +1025 -0
  325. package/dist/game/conformance.mjs +994 -0
  326. package/dist/game/heap.d.mts +40 -0
  327. package/dist/game/heap.d.ts +40 -0
  328. package/dist/game/heap.js +48 -0
  329. package/dist/game/heap.mjs +7 -0
  330. package/dist/game/kit/canvas.d.mts +240 -0
  331. package/dist/game/kit/canvas.d.ts +240 -0
  332. package/dist/game/kit/canvas.js +3566 -0
  333. package/dist/game/kit/canvas.mjs +1039 -0
  334. package/dist/game/kit/courier.d.mts +17 -0
  335. package/dist/game/kit/courier.d.ts +17 -0
  336. package/dist/game/kit/courier.js +66 -0
  337. package/dist/game/kit/courier.mjs +49 -0
  338. package/dist/game/kit/danfo.d.mts +11 -0
  339. package/dist/game/kit/danfo.d.ts +11 -0
  340. package/dist/game/kit/danfo.js +109 -0
  341. package/dist/game/kit/danfo.mjs +44 -0
  342. package/dist/game/kit/engine.d.mts +29 -0
  343. package/dist/game/kit/engine.d.ts +29 -0
  344. package/dist/game/kit/engine.js +183 -0
  345. package/dist/game/kit/engine.mjs +30 -0
  346. package/dist/game/kit/five-a-side.d.mts +11 -0
  347. package/dist/game/kit/five-a-side.d.ts +11 -0
  348. package/dist/game/kit/five-a-side.js +86 -0
  349. package/dist/game/kit/five-a-side.mjs +41 -0
  350. package/dist/game/kit/frontier.d.mts +344 -0
  351. package/dist/game/kit/frontier.d.ts +344 -0
  352. package/dist/game/kit/frontier.js +435 -0
  353. package/dist/game/kit/frontier.mjs +14 -0
  354. package/dist/game/kit/genesis.d.mts +752 -0
  355. package/dist/game/kit/genesis.d.ts +752 -0
  356. package/dist/game/kit/genesis.js +380 -0
  357. package/dist/game/kit/genesis.mjs +15 -0
  358. package/dist/game/kit/ludo.d.mts +15 -0
  359. package/dist/game/kit/ludo.d.ts +15 -0
  360. package/dist/game/kit/ludo.js +87 -0
  361. package/dist/game/kit/ludo.mjs +42 -0
  362. package/dist/game/kit/runner.d.mts +12 -0
  363. package/dist/game/kit/runner.d.ts +12 -0
  364. package/dist/game/kit/runner.js +83 -0
  365. package/dist/game/kit/runner.mjs +46 -0
  366. package/dist/game/kit/shootout.d.mts +13 -0
  367. package/dist/game/kit/shootout.d.ts +13 -0
  368. package/dist/game/kit/shootout.js +122 -0
  369. package/dist/game/kit/shootout.mjs +57 -0
  370. package/dist/game/kit/slots.d.mts +392 -0
  371. package/dist/game/kit/slots.d.ts +392 -0
  372. package/dist/game/kit/slots.js +215 -0
  373. package/dist/game/kit/slots.mjs +6 -0
  374. package/dist/game/kit/tycoon.d.mts +16 -0
  375. package/dist/game/kit/tycoon.d.ts +16 -0
  376. package/dist/game/kit/tycoon.js +145 -0
  377. package/dist/game/kit/tycoon.mjs +44 -0
  378. package/dist/game/kit/word.d.mts +11 -0
  379. package/dist/game/kit/word.d.ts +11 -0
  380. package/dist/game/kit/word.js +78 -0
  381. package/dist/game/kit/word.mjs +41 -0
  382. package/dist/game/kit/worlds.d.mts +18 -0
  383. package/dist/game/kit/worlds.d.ts +18 -0
  384. package/dist/game/kit/worlds.js +74 -0
  385. package/dist/game/kit/worlds.mjs +49 -0
  386. package/dist/game/kit.d.mts +53 -0
  387. package/dist/game/kit.d.ts +53 -0
  388. package/dist/game/kit.js +2610 -0
  389. package/dist/game/kit.mjs +101 -0
  390. package/dist/game/prepared.d.mts +14 -0
  391. package/dist/game/prepared.d.ts +14 -0
  392. package/dist/game/prepared.js +81 -0
  393. package/dist/game/prepared.mjs +32 -0
  394. package/dist/game-Bx8onkhX.d.mts +1451 -0
  395. package/dist/game-fgQy2YIm.d.ts +1451 -0
  396. package/dist/game-theme-CBTw1b_d.d.mts +35 -0
  397. package/dist/game-theme-Dg-ict5A.d.ts +35 -0
  398. package/dist/game.d.mts +3546 -0
  399. package/dist/game.d.ts +3546 -0
  400. package/dist/game.js +4455 -0
  401. package/dist/game.mjs +50 -0
  402. package/dist/graphics-C6YjWYvP.d.ts +5 -0
  403. package/dist/graphics-Dk2yQnYN.d.mts +5 -0
  404. package/dist/guest-DrsA00XD.d.mts +732 -0
  405. package/dist/guest-wIdfoT05.d.ts +732 -0
  406. package/dist/hit-stop-BKkVwTq7.d.mts +43 -0
  407. package/dist/hit-stop-D-8pPYnM.d.ts +43 -0
  408. package/dist/hot-Crn9XpHJ.d.ts +29 -0
  409. package/dist/hot-DH3nOhQD.d.mts +29 -0
  410. package/dist/{index-CQStGb3B.d.mts → index-6gkHMGAq.d.mts} +2 -2
  411. package/dist/index-B8ybCKJI.d.ts +41 -0
  412. package/dist/{index-DJwXmoaP.d.ts → index-B98Xac8e.d.ts} +2 -2
  413. package/dist/{index-B7oA_1XI.d.ts → index-B_ByTtIT.d.ts} +2 -2
  414. package/dist/index-DHjNHb1c.d.mts +41 -0
  415. package/dist/{index-DhUSTAhT.d.mts → index-DbAN_VQE.d.mts} +2 -2
  416. package/dist/index.d.mts +134 -24
  417. package/dist/index.d.ts +134 -24
  418. package/dist/index.js +407 -248
  419. package/dist/index.mjs +184 -58
  420. package/dist/interactives-authoring.d.mts +231 -0
  421. package/dist/interactives-authoring.d.ts +231 -0
  422. package/dist/interactives-authoring.js +1743 -0
  423. package/dist/interactives-authoring.mjs +1704 -0
  424. package/dist/interactives-canvas.global.js +148 -0
  425. package/dist/interactives-guest.d.mts +20 -0
  426. package/dist/interactives-guest.d.ts +20 -0
  427. package/dist/interactives-guest.js +63 -0
  428. package/dist/interactives-guest.json +1 -0
  429. package/dist/interactives-guest.mjs +61 -0
  430. package/dist/interactives-jsc.global.js +9357 -0
  431. package/dist/interactives-meters.d.mts +93 -0
  432. package/dist/interactives-meters.d.ts +93 -0
  433. package/dist/interactives-meters.js +252 -0
  434. package/dist/interactives-meters.mjs +68 -0
  435. package/dist/interactives-production.d.mts +430 -0
  436. package/dist/interactives-production.d.ts +430 -0
  437. package/dist/interactives-production.js +1231 -0
  438. package/dist/interactives-production.mjs +1170 -0
  439. package/dist/interactives-record.d.mts +112 -0
  440. package/dist/interactives-record.d.ts +112 -0
  441. package/dist/interactives-record.js +302 -0
  442. package/dist/interactives-record.mjs +295 -0
  443. package/dist/interactives-runtime.d.mts +61 -0
  444. package/dist/interactives-runtime.d.ts +61 -0
  445. package/dist/interactives-runtime.js +442 -0
  446. package/dist/interactives-runtime.mjs +25 -0
  447. package/dist/interactives-studio-kernel.global.js +1 -0
  448. package/dist/interactives-studio.d.mts +806 -0
  449. package/dist/interactives-studio.d.ts +806 -0
  450. package/dist/interactives-studio.js +5741 -0
  451. package/dist/interactives-studio.mjs +5651 -0
  452. package/dist/interactives-tick.d.mts +90 -0
  453. package/dist/interactives-tick.d.ts +90 -0
  454. package/dist/interactives-tick.js +203 -0
  455. package/dist/interactives-tick.mjs +6 -0
  456. package/dist/interactives-web.d.mts +762 -0
  457. package/dist/interactives-web.d.ts +762 -0
  458. package/dist/interactives-web.js +5000 -0
  459. package/dist/interactives-web.mjs +4628 -0
  460. package/dist/interactives.d.mts +2430 -0
  461. package/dist/interactives.d.ts +2430 -0
  462. package/dist/interactives.js +5723 -0
  463. package/dist/interactives.mjs +4333 -0
  464. package/dist/juice-CoHxlpKA.d.ts +42 -0
  465. package/dist/juice-DQztFS43.d.mts +42 -0
  466. package/dist/launch-T2f4_Di4.d.mts +151 -0
  467. package/dist/launch-d6oreMzR.d.ts +151 -0
  468. package/dist/library-DXYaMFhi.d.mts +69 -0
  469. package/dist/library-DXYaMFhi.d.ts +69 -0
  470. package/dist/link-BUTqGmyi.d.mts +38 -0
  471. package/dist/link-BUTqGmyi.d.ts +38 -0
  472. package/dist/lint.js +104 -204
  473. package/dist/lint.mjs +103 -203
  474. package/dist/local-D8_I6UeL.d.mts +6967 -0
  475. package/dist/local-VZkqsCzR.d.ts +6967 -0
  476. package/dist/lockstep-BLf6dglI.d.mts +321 -0
  477. package/dist/lockstep-D50Ia0JW.d.ts +321 -0
  478. package/dist/ludo-B8ClkDqr.d.ts +205 -0
  479. package/dist/ludo-BOuohQ-M.d.mts +205 -0
  480. package/dist/mock/cli.mjs +200 -56
  481. package/dist/mock/library.js +200 -56
  482. package/dist/mock/library.mjs +200 -56
  483. package/dist/mock/msw.js +200 -56
  484. package/dist/mock/msw.mjs +200 -56
  485. package/dist/native-BodxSh03.d.mts +16 -0
  486. package/dist/native-DUHMT8gA.d.ts +16 -0
  487. package/dist/network-ZXLD7l1b.d.mts +19 -0
  488. package/dist/network-ZXLD7l1b.d.ts +19 -0
  489. package/dist/online-XeymeM9s.d.ts +381 -0
  490. package/dist/online-d7W_Al9a.d.mts +381 -0
  491. package/dist/params-DxFb5G_U.d.mts +155 -0
  492. package/dist/params-DxFb5G_U.d.ts +155 -0
  493. package/dist/play-BRRlfLhX.d.ts +940 -0
  494. package/dist/play-ClrMd_e8.d.mts +940 -0
  495. package/dist/policy-CCw8tXLm.d.mts +3078 -0
  496. package/dist/policy-CMqOSQIu.d.ts +3078 -0
  497. package/dist/ports-B_0v_P3A.d.mts +13 -0
  498. package/dist/ports-CGU_3e_0.d.ts +13 -0
  499. package/dist/prefetch-BHnicOQj.d.ts +117 -0
  500. package/dist/prefetch-CBXgYacv.d.mts +117 -0
  501. package/dist/{price-CSztR02F.d.mts → price-BOzexBww.d.mts} +1 -1
  502. package/dist/{price-C_vasx9A.d.ts → price-C1h9sPxE.d.ts} +1 -1
  503. package/dist/protocol-C8qbpUbT.d.mts +242 -0
  504. package/dist/protocol-C8qbpUbT.d.ts +242 -0
  505. package/dist/rapier-AZHT4YI7.js +7886 -0
  506. package/dist/rapier-ODEPCQA6.mjs +7792 -0
  507. package/dist/react.d.mts +157 -15
  508. package/dist/react.d.ts +157 -15
  509. package/dist/react.js +5564 -5904
  510. package/dist/react.mjs +5451 -5808
  511. package/dist/runner-CQcLL7By.d.ts +189 -0
  512. package/dist/runner-D46Yj-wE.d.mts +189 -0
  513. package/dist/runtime-BRWfkf_q.d.mts +51 -0
  514. package/dist/runtime-DyuBMkKM.d.ts +51 -0
  515. package/dist/scheduling-D2ajXpMC.d.ts +224 -0
  516. package/dist/scheduling-DSRbbaZb.d.mts +224 -0
  517. package/dist/schema-BrWxzKp6.d.mts +63 -0
  518. package/dist/schema-BrWxzKp6.d.ts +63 -0
  519. package/dist/server/evict.js +34 -37
  520. package/dist/server/evict.mjs +34 -37
  521. package/dist/server/tanstack.d.mts +49 -3
  522. package/dist/server/tanstack.d.ts +49 -3
  523. package/dist/server/tanstack.js +169 -117
  524. package/dist/server/tanstack.mjs +166 -118
  525. package/dist/{server-Dckg4Vdr.d.ts → server-D29IIuDV.d.ts} +136 -130
  526. package/dist/{server-B6dW7-Lj.d.mts → server-DQMWPnc8.d.mts} +136 -130
  527. package/dist/server.d.mts +45 -5
  528. package/dist/server.d.ts +45 -5
  529. package/dist/server.js +171 -227
  530. package/dist/server.mjs +165 -225
  531. package/dist/session-grant-CJ27DwrT.d.mts +19 -0
  532. package/dist/session-grant-CJ27DwrT.d.ts +19 -0
  533. package/dist/shootout-BJZeX6FG.d.ts +140 -0
  534. package/dist/shootout-tcZd1Rxt.d.mts +140 -0
  535. package/dist/state-replica-stMtdkVD.d.mts +42 -0
  536. package/dist/state-replica-stMtdkVD.d.ts +42 -0
  537. package/dist/studio-CowqWqez.d.mts +14 -0
  538. package/dist/studio-CowqWqez.d.ts +14 -0
  539. package/dist/styles.css +1 -1
  540. package/dist/template-AhCdB1kW.d.mts +190 -0
  541. package/dist/template-BkEGVTQj.d.ts +190 -0
  542. package/dist/terrain-BMxEc6Oc.d.ts +429 -0
  543. package/dist/terrain-C-XC1Oui.d.mts +429 -0
  544. package/dist/testing/msw.d.mts +28 -4
  545. package/dist/testing/msw.d.ts +28 -4
  546. package/dist/testing/msw.js +15 -21
  547. package/dist/testing/msw.mjs +15 -21
  548. package/dist/testing/suite.d.mts +6 -5
  549. package/dist/testing/suite.d.ts +6 -5
  550. package/dist/testing/suite.js +89 -124
  551. package/dist/testing/suite.mjs +81 -116
  552. package/dist/testing.d.mts +27 -1227
  553. package/dist/testing.d.ts +27 -1227
  554. package/dist/testing.js +127 -131
  555. package/dist/testing.mjs +19 -23
  556. package/dist/tick-transport-C8QEh8Uw.d.mts +50 -0
  557. package/dist/tick-transport-UjHY3xK1.d.ts +50 -0
  558. package/dist/timeline-protocol-hp6e8zFB.d.mts +47 -0
  559. package/dist/timeline-protocol-hp6e8zFB.d.ts +47 -0
  560. package/dist/tokens-DhanQRQS.d.mts +21 -0
  561. package/dist/tokens-K8yxwd6G.d.ts +21 -0
  562. package/dist/tree-C-Io2Hbx.d.mts +35 -0
  563. package/dist/tree-CP_qSW4H.d.ts +35 -0
  564. package/dist/tycoon-B5KHk2Xx.d.mts +255 -0
  565. package/dist/tycoon-hmHo-3HX.d.ts +255 -0
  566. package/dist/types-BQkxPwZP.d.mts +219 -0
  567. package/dist/types-D_f6UUxM.d.ts +219 -0
  568. package/dist/ui-DwHicuFv.d.mts +563 -0
  569. package/dist/ui-hi7S2YcH.d.ts +563 -0
  570. package/dist/{sign-in-DQlIdqsi.d.mts → url-52ndUruG.d.mts} +15 -1
  571. package/dist/{sign-in-DQlIdqsi.d.ts → url-52ndUruG.d.ts} +15 -1
  572. package/dist/utils.d.mts +3 -3
  573. package/dist/utils.d.ts +3 -3
  574. package/dist/utils.js +37 -37
  575. package/dist/utils.mjs +4 -4
  576. package/dist/vars-Dc_PrhBK.d.mts +511 -0
  577. package/dist/vars-Dc_PrhBK.d.ts +511 -0
  578. package/dist/vm-IUARFFAI.mjs +63 -0
  579. package/dist/vm-N7L6MGGH.js +65 -0
  580. package/dist/weave-delivery-CW-Kstut.d.mts +360 -0
  581. package/dist/weave-delivery-CW-Kstut.d.ts +360 -0
  582. package/dist/web-Dss74a7v.d.ts +883 -0
  583. package/dist/web-f9ZQPoyw.d.mts +883 -0
  584. package/dist/web-transport-C7MkBL0a.d.ts +19 -0
  585. package/dist/web-transport-aYEqXMd9.d.mts +19 -0
  586. package/dist/weight-CPGjsgjV.d.ts +92 -0
  587. package/dist/weight-tF1ODR1p.d.mts +92 -0
  588. package/dist/word-BcX9Jcmv.d.mts +70 -0
  589. package/dist/word-C7sVPLHm.d.ts +70 -0
  590. package/dist/world-PvILHDR1.d.ts +2285 -0
  591. package/dist/world-qekkXjJv.d.mts +2285 -0
  592. package/dist/worlds-Br2Pb0Cs.d.ts +109 -0
  593. package/dist/worlds-D5ydYr7d.d.mts +109 -0
  594. package/engines/c/cimplify.h +108 -0
  595. package/engines/c/cimplify.lib.js +11 -0
  596. package/engines/godot/addons/cimplify/cimplify.gd +97 -0
  597. package/engines/rust/interactives-ctx/Cargo.toml +9 -0
  598. package/engines/rust/interactives-ctx/src/lib.rs +189 -0
  599. package/package.json +189 -3
  600. package/vendor/rapier3d-compat/LICENSE +201 -0
  601. package/vendor/rapier3d-compat/PATCHES.md +61 -0
  602. package/dist/chunk-2P4KXFB6.js +0 -274
  603. package/dist/chunk-3G6RQLXK.mjs +0 -21
  604. package/dist/chunk-3V4DVXV3.mjs +0 -254
  605. package/dist/chunk-EDK3LNM6.js +0 -2436
  606. package/dist/chunk-F7J3HK27.js +0 -4549
  607. package/dist/chunk-U4MW6PYU.mjs +0 -23
  608. package/dist/chunk-XREIZ56K.js +0 -26
@@ -0,0 +1,961 @@
1
+ 'use strict';
2
+
3
+ var chunkTVJZ4GPS_js = require('./chunk-TVJZ4GPS.js');
4
+
5
+ // src/interactives/worlds/protocol.ts
6
+ var NO_BUILDER = 65535, QUATERNION_SCALE = 32767, SCALE_UNIT_PERMILLE = 1e3, MILLIMETRES_PER_METRE = 1e3, WORLD_EXTENT_MM = 255996, CENTIDEGREES_PER_TURN = 36e3, Action = {
7
+ Place: 22273,
8
+ Select: 22274,
9
+ ClearSelection: 22275,
10
+ TransformSelection: 22276,
11
+ SetTransform: 22277,
12
+ DuplicateSelection: 22278,
13
+ DeleteSelection: 22279,
14
+ Undo: 22280,
15
+ Redo: 22281,
16
+ Settings: 22282,
17
+ Moderate: 22283,
18
+ ShareCopy: 22284,
19
+ JoinCopy: 22285,
20
+ Clock: 22286
21
+ }, MessageKind = {
22
+ Upsert: 1,
23
+ Remove: 2,
24
+ Result: 3,
25
+ Durable: 4,
26
+ Settings: 5,
27
+ Begin: 6,
28
+ End: 7,
29
+ Lock: 8,
30
+ Welcome: 9,
31
+ Author: 10,
32
+ Palette: 11,
33
+ Shared: 12,
34
+ Notice: 13,
35
+ Clock: 14
36
+ }, Status = {
37
+ Applied: 0,
38
+ Denied: 1,
39
+ Invalid: 2,
40
+ Conflict: 3,
41
+ Limit: 4,
42
+ Unlicensed: 5,
43
+ Nothing: 6,
44
+ Full: 7,
45
+ UnknownCode: 8,
46
+ Muted: 9
47
+ }, Notice = {
48
+ Kicked: 0,
49
+ Banned: 1,
50
+ Muted: 2,
51
+ Unmuted: 3,
52
+ RoleChanged: 4,
53
+ Moved: 5
54
+ }, SNAP_GRID = 1, SNAP_SURFACE = 2, SelectMode = { Replace: 0, Add: 1, Remove: 2 }, Sanction = { Kick: 0, Mute: 1, Unmute: 2, Ban: 3 }, WorldRoleCode = { Visitor: 0, Builder: 1, CoBuilder: 2, Moderator: 3, Owner: 4 }, Sky = { Clear: 0, Sunset: 1, Overcast: 2, Night: 3 }, Ground = { Grass: 0, Sand: 1, Concrete: 2, Water: 3 }, Lighting = { Day: 0, GoldenHour: 1, Night: 2 }, Visibility = { Private: 0, Friends: 1, Unlisted: 2, Public: 3 }, Likeness = { Fictional: 0, OptedIn: 1, Unclaimed: 2, Landmark: 3 }, POSITION = 0, ROTATION = 3, SCALE = 7, TRANSFORM_WORDS = 10;
55
+ function identityTransform(out = new Float64Array((10))) {
56
+ return out[0] = 0, out[1] = 0, out[2] = 0, out[3] = 0, out[4] = 0, out[5] = 0, out[6] = 32767, out[7] = 1e3, out[8] = 1e3, out[9] = 1e3, out;
57
+ }
58
+ var LITTLE = true, U8 = 1, U16 = 2, U32 = 4, OP_ID_BYTES = 4, MAX_TEXT_BYTES = 255, UTF8 = new TextEncoder(), CommandWriter = class {
59
+ constructor(capacity = 256) {
60
+ this.offset = 0;
61
+ this.bytes = new Uint8Array(capacity), this.view = new DataView(this.bytes.buffer);
62
+ }
63
+ get length() {
64
+ return this.offset;
65
+ }
66
+ begin(opId) {
67
+ return this.offset = 0, this.u32(opId);
68
+ }
69
+ u8(value) {
70
+ return this.view.setUint8(this.offset, value), this.offset += (1), this;
71
+ }
72
+ u16(value) {
73
+ return this.view.setUint16(this.offset, value, (true)), this.offset += (2), this;
74
+ }
75
+ i16(value) {
76
+ return this.view.setInt16(this.offset, value, (true)), this.offset += (2), this;
77
+ }
78
+ u32(value) {
79
+ return this.view.setUint32(this.offset, value >>> 0, (true)), this.offset += (4), this;
80
+ }
81
+ i32(value) {
82
+ return this.view.setInt32(this.offset, value | 0, (true)), this.offset += (4), this;
83
+ }
84
+ transform(t) {
85
+ return this.i32(t[(0)]).i32(t[(0) + 1]).i32(t[(0) + 2]), this.i16(t[(3)]).i16(t[(3) + 1]).i16(t[(3) + 2]).i16(t[(3) + 3]), this.u16(t[(7)]).u16(t[(7) + 1]).u16(t[(7) + 2]);
86
+ }
87
+ text(text) {
88
+ let start = this.offset + (1), end = Math.min(start + (255), this.bytes.length), written = UTF8.encodeInto(text, this.bytes.subarray(start, end)).written;
89
+ return this.u8(written), this.offset += written, this;
90
+ }
91
+ };
92
+ function encodePlace(w, opId, item, snap, transform) {
93
+ return w.begin(opId).u16(item).u8(snap).u8(0).transform(transform).length;
94
+ }
95
+ function encodeSelect(w, opId, mode, ids, count) {
96
+ let n = Math.min(count, 62);
97
+ w.begin(opId).u8(mode).u8(n);
98
+ for (let i = 0; i < n; i++) w.u32(ids[i]);
99
+ return w.length;
100
+ }
101
+ function encodeBare(w, opId) {
102
+ return w.begin(opId).length;
103
+ }
104
+ function encodeTransformSelection(w, opId, snap, dx, dy, dz, rotation, scalePermille) {
105
+ return w.begin(opId).u8(snap).u8(0).i32(dx).i32(dy).i32(dz), w.i16(rotation[0]).i16(rotation[1]).i16(rotation[2]).i16(rotation[3]), w.u16(scalePermille).length;
106
+ }
107
+ function encodeSetTransform(w, opId, id, snap, transform) {
108
+ return w.begin(opId).u32(id).u8(snap).u8(0).transform(transform).length;
109
+ }
110
+ function encodeDuplicate(w, opId, dx, dy, dz) {
111
+ return w.begin(opId).i32(dx).i32(dy).i32(dz).length;
112
+ }
113
+ function encodeSettings(w, opId, s) {
114
+ return w.begin(opId).u8(s.sky).u8(s.ground).u8(s.lighting).u8(s.visibility).u32(s.gridMm).u16(s.angleStepCentidegrees).length;
115
+ }
116
+ function encodeModerate(w, opId, target, sanction, durationS) {
117
+ return w.begin(opId).u8(sanction).u32(durationS).text(target).length;
118
+ }
119
+ function encodeJoinCopy(w, opId, code) {
120
+ return w.begin(opId).u32(code).length;
121
+ }
122
+ function encodeClock(w, opId, scalePermille, historyRatePermille, paused) {
123
+ return w.begin(opId).u32(scalePermille).u32(historyRatePermille).u8(paused ? 1 : 0).length;
124
+ }
125
+ var COMMAND_OP_ID_BYTES = (4);
126
+ function yawRotation(radians, out, offset = (3)) {
127
+ let half = radians / 2, s = Math.sin(half), c = Math.cos(half), sign = c < 0 ? -1 : 1;
128
+ return out[offset] = 0, out[offset + 1] = Math.round(s * sign * 32767), out[offset + 2] = 0, out[offset + 3] = Math.round(c * sign * 32767), out;
129
+ }
130
+
131
+ // src/interactives/worlds/transform.ts
132
+ var BOUNDS_MIN = 0, BOUNDS_MAX = 3, BOUNDS_WORDS = 6, AXES = 3, QUAT = 4, EPSILON = 11920929e-14, MAX_U16 = 65535, TAU = Math.PI * 2, q = new Float64Array((4)), qd = new Float64Array((4)), qc = new Float64Array((4)), v = new Float64Array((3)), r = new Float64Array((3)), scaled = new Float64Array((3)), centre = new Float64Array((3)), absM = new Float64Array((3) * (3));
133
+ function normalise(out) {
134
+ let length = Math.sqrt(out[0] * out[0] + out[1] * out[1] + out[2] * out[2] + out[3] * out[3]);
135
+ if (length <= (11920929e-14)) {
136
+ out[0] = 0, out[1] = 0, out[2] = 0, out[3] = 1;
137
+ return;
138
+ }
139
+ for (let i = 0; i < (4); i++) out[i] /= length;
140
+ }
141
+ function quatOf(t, offset, out) {
142
+ for (let i = 0; i < (4); i++) out[i] = t[offset + i] / 32767;
143
+ normalise(out);
144
+ }
145
+ function quantise(src, out, offset) {
146
+ normalise(src);
147
+ let sign = src[3] < 0 ? -1 : 1;
148
+ for (let i = 0; i < (4); i++) out[offset + i] = Math.round(src[i] * sign * 32767);
149
+ }
150
+ function rotate(quat, vec, out) {
151
+ let ux = quat[0], uy = quat[1], uz = quat[2], s = quat[3], dotUv = ux * vec[0] + uy * vec[1] + uz * vec[2], dotUu = ux * ux + uy * uy + uz * uz, cx = uy * vec[2] - uz * vec[1], cy = uz * vec[0] - ux * vec[2], cz = ux * vec[1] - uy * vec[0], k = s * s - dotUu;
152
+ out[0] = 2 * dotUv * ux + k * vec[0] + 2 * s * cx, out[1] = 2 * dotUv * uy + k * vec[1] + 2 * s * cy, out[2] = 2 * dotUv * uz + k * vec[2] + 2 * s * cz;
153
+ }
154
+ function multiply(a, b, out) {
155
+ let x = a[3] * b[0] + a[0] * b[3] + a[1] * b[2] - a[2] * b[1], y = a[3] * b[1] - a[0] * b[2] + a[1] * b[3] + a[2] * b[0], z = a[3] * b[2] + a[0] * b[1] - a[1] * b[0] + a[2] * b[3], w = a[3] * b[3] - a[0] * b[0] - a[1] * b[1] - a[2] * b[2];
156
+ out[0] = x, out[1] = y, out[2] = z, out[3] = w;
157
+ }
158
+ function canonical(t) {
159
+ quatOf(t, (3), q), quantise(q, t, (3));
160
+ for (let i = 0; i < (3); i++) t[(7) + i] = Math.max(1, t[(7) + i]);
161
+ return t;
162
+ }
163
+ function bounds(t, offset, halfExtentsMm, halfOffset, out) {
164
+ quatOf(t, offset + (3), q);
165
+ for (let a = 0; a < (3); a++) scaled[a] = halfExtentsMm[halfOffset + a] * t[offset + (7) + a] / 1e3;
166
+ v[0] = 0, v[1] = scaled[1], v[2] = 0, rotate(q, v, centre);
167
+ for (let column = 0; column < (3); column++) {
168
+ v[0] = column === 0 ? 1 : 0, v[1] = column === 1 ? 1 : 0, v[2] = column === 2 ? 1 : 0, rotate(q, v, r);
169
+ for (let row = 0; row < (3); row++) absM[row * (3) + column] = Math.abs(r[row]);
170
+ }
171
+ for (let row = 0; row < (3); row++) {
172
+ let reach = absM[row * (3)] * scaled[0] + absM[row * (3) + 1] * scaled[1] + absM[row * (3) + 2] * scaled[2], c = t[offset + (0) + row] + centre[row];
173
+ out[(0) + row] = c - reach, out[(3) + row] = c + reach;
174
+ }
175
+ return out;
176
+ }
177
+ function overlapsFootprint(a, b) {
178
+ return a[(0)] < b[(3)] && a[(3)] > b[(0)] && a[(0) + 2] < b[(3) + 2] && a[(3) + 2] > b[(0) + 2];
179
+ }
180
+ function divEuclid(value, step) {
181
+ return Math.floor(value / step);
182
+ }
183
+ function snappedToGrid(t, gridMm, angleStepCentidegrees) {
184
+ if (gridMm > 0) {
185
+ let half = Math.trunc(gridMm / 2);
186
+ t[(0)] = divEuclid(t[(0)] + half, gridMm) * gridMm, t[(0) + 2] = divEuclid(t[(0) + 2] + half, gridMm) * gridMm;
187
+ }
188
+ if (angleStepCentidegrees > 0) {
189
+ let step = angleStepCentidegrees / 36e3 * TAU;
190
+ quatOf(t, (3), q);
191
+ let siny = 2 * (q[3] * q[1] + q[0] * q[2]), cosy = 1 - 2 * (q[1] * q[1] + q[2] * q[2]), half = Math.round(Math.atan2(siny, cosy) / step) * step * 0.5;
192
+ qc[0] = 0, qc[1] = Math.sin(half), qc[2] = 0, qc[3] = Math.cos(half), quantise(qc, t, (3));
193
+ }
194
+ return t;
195
+ }
196
+ function snapHeightToGrid(t, gridMm) {
197
+ gridMm <= 0 || (t[(0) + 1] = divEuclid(t[(0) + 1] + Math.trunc(gridMm / 2), gridMm) * gridMm);
198
+ }
199
+ function movedAbout(t, pivotX, pivotY, pivotZ, dx, dy, dz, rotation, scalePermille, out) {
200
+ quatOf(rotation, 0, qd);
201
+ let factor = Math.max(1, scalePermille) / 1e3;
202
+ v[0] = (t[(0)] - pivotX) * factor, v[1] = (t[(0) + 1] - pivotY) * factor, v[2] = (t[(0) + 2] - pivotZ) * factor, rotate(qd, v, r), out[(0)] = Math.round(pivotX + r[0] + dx), out[(0) + 1] = Math.round(pivotY + r[1] + dy), out[(0) + 2] = Math.round(pivotZ + r[2] + dz), quatOf(t, (3), q), multiply(qd, q, qc), quantise(qc, out, (3));
203
+ for (let a = 0; a < (3); a++) out[(7) + a] = Math.min((65535), Math.max(1, Math.round(t[(7) + a] * factor)));
204
+ return out;
205
+ }
206
+ function withinWorld(t) {
207
+ let x = t[(0)], y = t[(0) + 1], z = t[(0) + 2];
208
+ return x >= 0 && x <= 255996 && z >= 0 && z <= 255996 && y >= -1e6 && y <= 1e6;
209
+ }
210
+ function copyTransform(src, srcOffset, out, outOffset = 0) {
211
+ for (let i = 0; i < (10); i++) out[outOffset + i] = src[srcOffset + i];
212
+ return out;
213
+ }
214
+
215
+ // src/interactives/worlds/mirror.ts
216
+ var LITTLE2 = true, NO_ROW = -1, INITIAL_ROWS = 1024, INITIAL_IDS = 4096, INITIAL_PALETTE = 64, RESULT_RING = 64, SHARED_RING = 8, AXES2 = 3, FNV_OFFSET_HI = 3421674724, FNV_OFFSET_LO = 2216829733, FNV_PRIME_LOW = 435, FNV_PRIME_SHIFT = 8, TWO_32 = 4294967296, HEX_WORD = 8, HEX_RADIX = 16, DEFAULT_HALF_EXTENT_MM = 500, UTF82 = new TextDecoder();
217
+ function grown(array, length, fill = 0) {
218
+ let next = new array.constructor(length);
219
+ return next.set(array), fill !== 0 && next.fill(fill, array.length), next;
220
+ }
221
+ var WorldMirror = class {
222
+ constructor() {
223
+ this.ids = new Uint32Array((1024));
224
+ this.revisions = new Uint32Array((1024));
225
+ this.items = new Uint16Array((1024));
226
+ this.authorsOf = new Uint32Array((1024));
227
+ this.transforms = new Float64Array((1024) * (10));
228
+ this.locks = new Uint16Array((1024));
229
+ this.count = 0;
230
+ this.version = 0;
231
+ this.rowById = new Int32Array((4096)).fill((-1));
232
+ this.tombstones = new Uint32Array((4096));
233
+ this.paletteItems = [];
234
+ this.paletteHalfExtents = new Float64Array((64) * (3));
235
+ this.paletteLicence = new Uint8Array((64));
236
+ this.paletteLikeness = new Uint8Array((64));
237
+ this.authors = [];
238
+ this.results = Array.from({ length: (64) }, () => ({ opId: 0, status: 0, affected: 0, conflicts: 0, appliedThrough: 0 }));
239
+ this.resultCount = 0;
240
+ this.sharedCodes = new Uint32Array((8));
241
+ this.sharedCount = 0;
242
+ this.notices = new Uint8Array((64));
243
+ this.noticeCount = 0;
244
+ this.settings = {
245
+ sky: 0,
246
+ ground: 0,
247
+ lighting: 0,
248
+ visibility: 0,
249
+ gridMm: 500,
250
+ angleStepCentidegrees: 1500
251
+ };
252
+ this.clock = { simMs: 0, scalePermille: 0, historyRatePermille: 0, dilationPermille: 0, paused: false };
253
+ this.hasSettings = false;
254
+ this.hasClock = false;
255
+ this.durableThrough = 0;
256
+ this.streamed = false;
257
+ this.builder = 65535;
258
+ this.role = -1;
259
+ this.muted = false;
260
+ this.copy = -1;
261
+ this.capacity = 0;
262
+ this.malformed = 0;
263
+ this.frames = 0;
264
+ this.scratchBounds = new Float64Array((6));
265
+ }
266
+ deliver(slot, _sender, view, offset, length) {
267
+ slot === 63 && this.apply(view, offset, length);
268
+ }
269
+ applyBytes(bytes) {
270
+ this.apply(new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength), 0, bytes.byteLength);
271
+ }
272
+ apply(view, offset, length) {
273
+ this.frames++;
274
+ let end = offset + length, at = offset;
275
+ for (; at < end; ) {
276
+ let next = this.message(view, at, end);
277
+ if (next < 0) {
278
+ this.malformed++;
279
+ return;
280
+ }
281
+ at = next;
282
+ }
283
+ }
284
+ rowOf(id) {
285
+ return id < this.rowById.length ? this.rowById[id] : (-1);
286
+ }
287
+ knownRevision(id) {
288
+ let row = this.rowOf(id);
289
+ return row !== (-1) ? this.revisions[row] : id < this.tombstones.length ? this.tombstones[id] : 0;
290
+ }
291
+ get lastResult() {
292
+ return this.resultCount === 0 ? null : this.results[(this.resultCount - 1) % (64)];
293
+ }
294
+ resultFor(opId) {
295
+ let available = Math.min(this.resultCount, (64));
296
+ for (let i = 1; i <= available; i++) {
297
+ let result = this.results[(this.resultCount - i) % (64)];
298
+ if (result.opId === opId) return result;
299
+ }
300
+ return null;
301
+ }
302
+ get lastSharedCode() {
303
+ return this.sharedCount === 0 ? 0 : this.sharedCodes[(this.sharedCount - 1) % (8)];
304
+ }
305
+ get lastNotice() {
306
+ return this.noticeCount === 0 ? -1 : this.notices[(this.noticeCount - 1) % (64)];
307
+ }
308
+ halfExtents(item, out, offset = 0) {
309
+ let known = item < this.paletteItems.length;
310
+ for (let a = 0; a < (3); a++) out[offset + a] = known ? this.paletteHalfExtents[item * (3) + a] : (500);
311
+ return out;
312
+ }
313
+ surfaceHeight(footprint, ignore, ignoreCount) {
314
+ let top = 0, half = this.scratchBounds;
315
+ for (let row = 0; row < this.count; row++) {
316
+ let id = this.ids[row], skip = false;
317
+ for (let i = 0; i < ignoreCount && !skip; i++) skip = ignore[i] === id;
318
+ if (skip) continue;
319
+ this.halfExtents(this.items[row], half, 0);
320
+ let b = bounds(this.transforms, row * (10), half, 0, BOX);
321
+ overlapsFootprint(b, footprint) && (top = Math.max(top, b[(3) + 1]));
322
+ }
323
+ return top;
324
+ }
325
+ digest() {
326
+ let order = new Uint32Array(this.count);
327
+ for (let row = 0; row < this.count; row++) order[row] = this.ids[row];
328
+ order.sort();
329
+ let hi = (3421674724), lo = (2216829733), mix = (value) => {
330
+ lo = (lo ^ value >>> 0) >>> 0;
331
+ let low = lo * (435), carry = Math.floor(low / (4294967296)), nextHi = (hi * (435) + carry + (lo << (8) >>> 0)) % (4294967296);
332
+ lo = low % (4294967296), hi = nextHi;
333
+ };
334
+ for (let i = 0; i < order.length; i++) {
335
+ let row = this.rowById[order[i]], t = row * (10);
336
+ mix(this.ids[row]), mix(this.revisions[row]), mix(this.items[row]), mix(this.transforms[t] | 0), mix(this.transforms[t + 1] | 0), mix(this.transforms[t + 2] | 0);
337
+ }
338
+ return hi.toString((16)).padStart((8), "0") + lo.toString((16)).padStart((8), "0");
339
+ }
340
+ ensureId(id) {
341
+ if (id < this.rowById.length) return;
342
+ let length = this.rowById.length;
343
+ for (; length <= id; ) length *= 2;
344
+ this.rowById = grown(this.rowById, length, (-1)), this.tombstones = grown(this.tombstones, length);
345
+ }
346
+ ensureRows(rows) {
347
+ if (rows <= this.ids.length) return;
348
+ let length = Math.max(rows, this.ids.length * 2);
349
+ this.ids = grown(this.ids, length), this.revisions = grown(this.revisions, length), this.items = grown(this.items, length), this.authorsOf = grown(this.authorsOf, length), this.locks = grown(this.locks, length), this.transforms = grown(this.transforms, length * (10));
350
+ }
351
+ ensurePalette(index) {
352
+ if (index < this.paletteLicence.length) return;
353
+ let length = this.paletteLicence.length;
354
+ for (; length <= index; ) length *= 2;
355
+ this.paletteHalfExtents = grown(this.paletteHalfExtents, length * (3)), this.paletteLicence = grown(this.paletteLicence, length), this.paletteLikeness = grown(this.paletteLikeness, length);
356
+ }
357
+ upsert(view, at) {
358
+ let id = view.getUint32(at, (true)), revision = view.getUint32(at + 4, (true));
359
+ if (this.ensureId(id), this.tombstones[id] !== 0 && this.tombstones[id] >= revision) return;
360
+ let row = this.rowById[id];
361
+ if (row !== (-1) && this.revisions[row] > revision) return;
362
+ row === (-1) && (this.ensureRows(this.count + 1), row = this.count++, this.rowById[id] = row), this.ids[row] = id, this.revisions[row] = revision, this.items[row] = view.getUint16(at + 8, (true)), this.authorsOf[row] = view.getUint32(at + 10, (true));
363
+ let t = row * (10), p = at + 14, transforms = this.transforms;
364
+ transforms[t] = view.getInt32(p, (true)), transforms[t + 1] = view.getInt32(p + 4, (true)), transforms[t + 2] = view.getInt32(p + 8, (true)), transforms[t + 3] = view.getInt16(p + 12, (true)), transforms[t + 4] = view.getInt16(p + 14, (true)), transforms[t + 5] = view.getInt16(p + 16, (true)), transforms[t + 6] = view.getInt16(p + 18, (true)), transforms[t + 7] = view.getUint16(p + 20, (true)), transforms[t + 8] = view.getUint16(p + 22, (true)), transforms[t + 9] = view.getUint16(p + 24, (true)), this.locks[row] = view.getUint16(at + 40, (true)), this.version++;
365
+ }
366
+ remove(id, revision) {
367
+ this.ensureId(id);
368
+ let row = this.rowById[id];
369
+ if (row !== (-1) && this.revisions[row] >= revision || (this.tombstones[id] = revision, row === (-1))) return;
370
+ let last = this.count - 1;
371
+ if (row !== last) {
372
+ let lastId = this.ids[last];
373
+ this.ids[row] = lastId, this.revisions[row] = this.revisions[last], this.items[row] = this.items[last], this.authorsOf[row] = this.authorsOf[last], this.locks[row] = this.locks[last], this.transforms.copyWithin(row * (10), last * (10), last * (10) + (10)), this.rowById[lastId] = row;
374
+ }
375
+ this.rowById[id] = (-1), this.count = last, this.version++;
376
+ }
377
+ text(view, at, end) {
378
+ let length = view.getUint8(at);
379
+ return at + 1 + length > end ? null : UTF82.decode(new Uint8Array(view.buffer, view.byteOffset + at + 1, length));
380
+ }
381
+ message(view, at, end) {
382
+ let kind = view.getUint8(at), body = at + 1;
383
+ switch (kind) {
384
+ case MessageKind.Upsert:
385
+ return body + (42) > end ? -1 : (this.upsert(view, body), body + (42));
386
+ case MessageKind.Remove:
387
+ return body + (8) > end ? -1 : (this.remove(view.getUint32(body, (true)), view.getUint32(body + 4, (true))), body + (8));
388
+ case MessageKind.Result: {
389
+ if (body + (17) > end) return -1;
390
+ let result = this.results[this.resultCount % (64)];
391
+ return result.opId = view.getUint32(body, (true)), result.status = view.getUint8(body + 4), result.affected = view.getUint16(body + 5, (true)), result.conflicts = view.getUint16(body + 7, (true)), result.appliedThrough = view.getUint32(body + 9, (true)) + view.getUint32(body + 13, (true)) * (4294967296), this.resultCount++, body + (17);
392
+ }
393
+ case MessageKind.Durable:
394
+ return body + (8) > end ? -1 : (this.durableThrough = view.getUint32(body, (true)) + view.getUint32(body + 4, (true)) * (4294967296), body + (8));
395
+ case MessageKind.Settings: {
396
+ if (body + (10) > end) return -1;
397
+ let s = this.settings;
398
+ return s.sky = view.getUint8(body), s.ground = view.getUint8(body + 1), s.lighting = view.getUint8(body + 2), s.visibility = view.getUint8(body + 3), s.gridMm = view.getUint32(body + 4, (true)), s.angleStepCentidegrees = view.getUint16(body + 8, (true)), this.hasSettings = true, this.version++, body + (10);
399
+ }
400
+ case MessageKind.Clock: {
401
+ if (body + (21) > end) return -1;
402
+ let c = this.clock;
403
+ return c.simMs = view.getUint32(body, (true)) + view.getUint32(body + 4, (true)) * (4294967296), c.scalePermille = view.getUint32(body + 8, (true)), c.historyRatePermille = view.getUint32(body + 12, (true)), c.dilationPermille = view.getUint32(body + 16, (true)), c.paused = view.getUint8(body + 20) !== 0, this.hasClock = true, body + (21);
404
+ }
405
+ case MessageKind.Begin:
406
+ return body + (12) > end ? -1 : (this.streamed = false, body + (12));
407
+ case MessageKind.End:
408
+ return this.streamed = true, body;
409
+ case MessageKind.Lock: {
410
+ if (body + (6) > end) return -1;
411
+ let id = view.getUint32(body, (true)), row = this.rowOf(id);
412
+ return row !== (-1) && (this.locks[row] = view.getUint16(body + 4, (true)), this.version++), body + (6);
413
+ }
414
+ case MessageKind.Welcome:
415
+ return body + (8) > end ? -1 : (this.builder = view.getUint16(body, (true)), this.role = view.getUint8(body + 2), this.muted = view.getUint8(body + 3) !== 0, this.copy = view.getUint16(body + 4, (true)), this.capacity = view.getUint16(body + 6, (true)), body + (8));
416
+ case MessageKind.Author: {
417
+ if (body + (4) + 1 > end) return -1;
418
+ let index = view.getUint32(body, (true)), name = this.text(view, body + (4), end);
419
+ return name === null ? -1 : (this.authors[index] = name, body + (4) + 1 + view.getUint8(body + (4)));
420
+ }
421
+ case MessageKind.Palette: {
422
+ if (body + (16) + 1 > end) return -1;
423
+ let index = view.getUint16(body, (true));
424
+ this.ensurePalette(index), this.paletteLicence[index] = view.getUint8(body + 2), this.paletteLikeness[index] = view.getUint8(body + 3);
425
+ for (let a = 0; a < (3); a++) this.paletteHalfExtents[index * (3) + a] = view.getUint32(body + 4 + a * 4, (true));
426
+ let item = this.text(view, body + (16), end);
427
+ return item === null ? -1 : (this.paletteItems[index] = item, body + (16) + 1 + view.getUint8(body + (16)));
428
+ }
429
+ case MessageKind.Shared:
430
+ return body + (4) > end ? -1 : (this.sharedCodes[this.sharedCount % (8)] = view.getUint32(body, (true)), this.sharedCount++, body + (4));
431
+ case MessageKind.Notice:
432
+ return body + 1 > end ? -1 : (this.notices[this.noticeCount % (64)] = view.getUint8(body), this.noticeCount++, body + 1);
433
+ default:
434
+ return -1;
435
+ }
436
+ }
437
+ }, U322 = 4, U64 = 8, UPSERT_BODY = 42, REMOVE_BODY = 8, RESULT_BODY = 17, SETTINGS_BODY = 10, CLOCK_BODY = 21, BEGIN_BODY = 12, LOCK_BODY = 6, WELCOME_BODY = 8, AUTHOR_HEAD = 4, PALETTE_HEAD = 16, BOX = new Float64Array((6));
438
+
439
+ // src/interactives/worlds/builder.ts
440
+ var NOT_SENT = -1, AXES3 = 3, U32_RANGE = 4294967296, WorldBuilder = class {
441
+ constructor(port, mirror) {
442
+ this.writer = new CommandWriter();
443
+ this.footprint = new Float64Array((6));
444
+ this.half = new Float64Array((3));
445
+ this.opId = 0;
446
+ this.port = port, this.mirror = mirror;
447
+ }
448
+ get lastOpId() {
449
+ return this.opId;
450
+ }
451
+ next() {
452
+ return this.opId = (this.opId + 1) % (4294967296), this.opId === 0 && (this.opId = 1), this.opId;
453
+ }
454
+ send(action, length) {
455
+ let opId = this.opId;
456
+ return this.port.sendCommand(action, this.writer.bytes, length) < 0 ? (-1) : opId;
457
+ }
458
+ place(item, snap, transform) {
459
+ return this.send(Action.Place, encodePlace(this.writer, this.next(), item, snap, transform));
460
+ }
461
+ select(mode, ids, count) {
462
+ return this.send(Action.Select, encodeSelect(this.writer, this.next(), mode, ids, count));
463
+ }
464
+ clearSelection() {
465
+ return this.send(Action.ClearSelection, encodeBare(this.writer, this.next()));
466
+ }
467
+ transformSelection(snap, dx, dy, dz, rotation, scalePermille) {
468
+ return this.send(
469
+ Action.TransformSelection,
470
+ encodeTransformSelection(this.writer, this.next(), snap, dx, dy, dz, rotation, scalePermille)
471
+ );
472
+ }
473
+ setTransform(id, snap, transform) {
474
+ return this.send(Action.SetTransform, encodeSetTransform(this.writer, this.next(), id, snap, transform));
475
+ }
476
+ duplicate(dx, dy, dz) {
477
+ return this.send(Action.DuplicateSelection, encodeDuplicate(this.writer, this.next(), dx, dy, dz));
478
+ }
479
+ deleteSelection() {
480
+ return this.send(Action.DeleteSelection, encodeBare(this.writer, this.next()));
481
+ }
482
+ undo() {
483
+ return this.send(Action.Undo, encodeBare(this.writer, this.next()));
484
+ }
485
+ redo() {
486
+ return this.send(Action.Redo, encodeBare(this.writer, this.next()));
487
+ }
488
+ settings(settings) {
489
+ return this.send(Action.Settings, encodeSettings(this.writer, this.next(), settings));
490
+ }
491
+ clock(scalePermille, historyRatePermille, paused) {
492
+ return this.send(Action.Clock, encodeClock(this.writer, this.next(), scalePermille, historyRatePermille, paused));
493
+ }
494
+ moderate(target, sanction, durationS) {
495
+ return this.send(Action.Moderate, encodeModerate(this.writer, this.next(), target, sanction, durationS));
496
+ }
497
+ shareCopy() {
498
+ return this.send(Action.ShareCopy, encodeBare(this.writer, this.next()));
499
+ }
500
+ joinCopy(code) {
501
+ return this.send(Action.JoinCopy, encodeJoinCopy(this.writer, this.next(), code));
502
+ }
503
+ preview(item, snap, transform, ignore, ignoreCount) {
504
+ let settings = this.mirror.settings;
505
+ if (canonical(transform), (snap & (1)) !== 0 && snappedToGrid(transform, settings.gridMm, settings.angleStepCentidegrees), (snap & (2)) !== 0) {
506
+ this.mirror.halfExtents(item, this.half, 0);
507
+ let footprint = bounds(transform, 0, this.half, 0, this.footprint), resting = this.mirror.surfaceHeight(footprint, ignore, ignoreCount), lift = footprint[(0) + 1] - transform[(0) + 1];
508
+ transform[(0) + 1] = Math.round(resting - lift);
509
+ } else (snap & (1)) !== 0 && snapHeightToGrid(transform, settings.gridMm);
510
+ return transform;
511
+ }
512
+ };
513
+
514
+ // src/interactives/worlds/loopback.ts
515
+ var LITTLE3 = true, PAYLOAD_BYTES = 1188, MESSAGE_HEADROOM = 64, BUILDER = 0, AUTHOR = 0, MAX_SELECTION = 2048, UNDO_STEPS = 256, UNDO_EFFECTS = 4096, AXES4 = 3, NO_ROW2 = -1, COPY_CAPACITY = 1, LOCAL_PARTICIPANT = "local", PALETTE_HEAD2 = 17, AUTHOR_HEAD2 = 5, ENCODER = new TextEncoder(), LocalWorld = class {
516
+ constructor(options) {
517
+ this.store = new WorldMirror();
518
+ this.sinks = [];
519
+ this.payload = new Uint8Array((1188));
520
+ this.view = new DataView(this.payload.buffer);
521
+ this.length = 0;
522
+ this.nextId = 1;
523
+ this.sequence = 0;
524
+ this.durable = 0;
525
+ this.selection = new Uint32Array((2048));
526
+ this.selected = 0;
527
+ this.staged = new Float64Array((2048) * (10));
528
+ this.stagedIds = new Uint32Array((2048));
529
+ this.stagedCount = 0;
530
+ this.t = new Float64Array((10));
531
+ this.rotation = new Float64Array(4);
532
+ this.half = new Float64Array((3));
533
+ this.footprint = new Float64Array((6));
534
+ this.effId = new Uint32Array((4096));
535
+ this.effBeforePresent = new Uint8Array((4096));
536
+ this.effBeforeRevision = new Uint32Array((4096));
537
+ this.effBeforeItem = new Uint16Array((4096));
538
+ this.effBeforeTransform = new Float64Array((4096) * (10));
539
+ this.effAfterPresent = new Uint8Array((4096));
540
+ this.effAfterRevision = new Uint32Array((4096));
541
+ this.effAfterItem = new Uint16Array((4096));
542
+ this.effAfterTransform = new Float64Array((4096) * (10));
543
+ this.written = 0;
544
+ this.open = -1;
545
+ this.undoStart = new Float64Array((256));
546
+ this.undoLength = new Uint32Array((256));
547
+ this.undoCount = 0;
548
+ this.undoHead = 0;
549
+ this.redoStart = new Float64Array((256));
550
+ this.redoLength = new Uint32Array((256));
551
+ this.redoCount = 0;
552
+ this.redoHead = 0;
553
+ this.popped = new Uint32Array((4096));
554
+ this.poppedCount = 0;
555
+ this.applied = 0;
556
+ this.target = null;
557
+ this.commandView = null;
558
+ this.source = new Float64Array((10));
559
+ this.maxObjects = options.maxObjects ?? Number.MAX_SAFE_INTEGER, this.palette = options.palette, this.hello(), this.flush();
560
+ }
561
+ hello() {
562
+ for (let index = 0; index < this.palette.length; index++) {
563
+ let entry = this.palette[index], name = ENCODER.encode(entry.item);
564
+ this.reserve((17) + 1 + name.length), this.u8(MessageKind.Palette).u16(index).u8(0).u8(0);
565
+ for (let a = 0; a < (3); a++) this.u32(entry.halfExtentsMm[a]);
566
+ this.bytes(name);
567
+ }
568
+ let author = ENCODER.encode(LOCAL_PARTICIPANT);
569
+ this.reserve((5) + 1 + author.length), this.u8(MessageKind.Author).u32((0)), this.bytes(author), this.reserve((64)), this.u8(MessageKind.Welcome).u16((0)).u8(WorldRoleCode.Owner).u8(0).u16(0).u16((1));
570
+ let s = this.store.settings;
571
+ this.u8(MessageKind.Settings).u8(s.sky).u8(s.ground).u8(s.lighting).u8(s.visibility).u32(s.gridMm).u16(s.angleStepCentidegrees), this.u8(MessageKind.Begin).u32(this.store.count).u32(this.sequence).u32(0);
572
+ }
573
+ bytes(text) {
574
+ this.u8(text.length), this.payload.set(text, this.length), this.length += text.length;
575
+ }
576
+ attach(mirror) {
577
+ this.flush(), this.target = mirror, this.hello();
578
+ let store = this.store;
579
+ for (let row = 0; row < store.count; row++) {
580
+ let lock = this.indexOf(store.ids[row]) >= 0 ? (0) : 65535;
581
+ this.emitUpsert(store.ids[row], store.revisions[row], store.items[row], store.transforms, row * (10), lock);
582
+ }
583
+ this.reserve((64)), this.u8(MessageKind.End), this.flush(), this.target = null, this.sinks.push(mirror);
584
+ }
585
+ sendCommand(action, payload, length) {
586
+ return (this.commandView === null || this.commandView.buffer !== payload.buffer || this.commandView.byteOffset !== payload.byteOffset) && (this.commandView = new DataView(payload.buffer, payload.byteOffset, payload.byteLength)), this.apply(action, this.commandView, length), this.flush(), this.sequence;
587
+ }
588
+ u8(value) {
589
+ return this.view.setUint8(this.length, value), this.length += 1, this;
590
+ }
591
+ u16(value) {
592
+ return this.view.setUint16(this.length, value, (true)), this.length += 2, this;
593
+ }
594
+ u32(value) {
595
+ return this.view.setUint32(this.length, value >>> 0, (true)), this.length += 4, this;
596
+ }
597
+ i32(value) {
598
+ return this.view.setInt32(this.length, value | 0, (true)), this.length += 4, this;
599
+ }
600
+ i16(value) {
601
+ return this.view.setInt16(this.length, value, (true)), this.length += 2, this;
602
+ }
603
+ reserve(bytes) {
604
+ this.length + bytes > (1188) && this.flush();
605
+ }
606
+ flush() {
607
+ if (this.length === 0) return;
608
+ let target = this.target;
609
+ if (target !== null)
610
+ target.apply(this.view, 0, this.length);
611
+ else {
612
+ this.store.apply(this.view, 0, this.length);
613
+ for (let i = 0; i < this.sinks.length; i++) this.sinks[i].apply(this.view, 0, this.length);
614
+ }
615
+ this.length = 0;
616
+ }
617
+ emitUpsert(id, revision, item, t, tOffset, lock) {
618
+ this.reserve((64)), this.u8(MessageKind.Upsert).u32(id).u32(revision).u16(item).u32((0)), this.i32(t[tOffset + (0)]).i32(t[tOffset + (0) + 1]).i32(t[tOffset + (0) + 2]);
619
+ for (let i = 0; i < 4; i++) this.i16(t[tOffset + (3) + i]);
620
+ for (let i = 0; i < (3); i++) this.u16(t[tOffset + (7) + i]);
621
+ this.u16(lock), this.flush();
622
+ }
623
+ emitRemove(id, revision) {
624
+ this.reserve((64)), this.u8(MessageKind.Remove).u32(id).u32(revision), this.flush();
625
+ }
626
+ emitLock(id, builder) {
627
+ this.reserve((64)), this.u8(MessageKind.Lock).u32(id).u16(builder), this.flush();
628
+ }
629
+ emitResult(opId, status, affected, conflicts) {
630
+ this.reserve((64)), this.u8(MessageKind.Result).u32(opId).u8(status).u16(affected).u16(conflicts).u32(this.sequence).u32(0), this.durable = this.sequence, this.u8(MessageKind.Durable).u32(this.durable).u32(0);
631
+ }
632
+ apply(action, c, length) {
633
+ if (length < 4) return;
634
+ let opId = c.getUint32(0, (true)), status = Status.Applied, affected = 0, conflicts = 0;
635
+ switch (action) {
636
+ case Action.Place: {
637
+ let item = c.getUint16(4, (true)), snap = c.getUint8(6);
638
+ if (this.readTransform(c, 8, this.t), item >= this.store.paletteItems.length) {
639
+ status = Status.Invalid;
640
+ break;
641
+ }
642
+ if (this.store.count >= this.maxObjects) {
643
+ status = Status.Limit;
644
+ break;
645
+ }
646
+ if (this.snap(this.t, item, snap, 0), !withinWorld(this.t)) {
647
+ status = Status.Invalid;
648
+ break;
649
+ }
650
+ this.begin();
651
+ let id = this.nextId++;
652
+ this.write(id, 1, item, this.t, 0, false, 0), this.commit(), affected = 1;
653
+ break;
654
+ }
655
+ case Action.Select: {
656
+ let mode = c.getUint8(4), count = Math.min(c.getUint8(5), 62);
657
+ mode === SelectMode.Replace && this.release();
658
+ for (let i = 0; i < count; i++) {
659
+ let id = c.getUint32(6 + i * 4, (true));
660
+ if (this.store.rowOf(id) === (-1)) {
661
+ conflicts++;
662
+ continue;
663
+ }
664
+ let at = this.indexOf(id);
665
+ if (mode === SelectMode.Remove) {
666
+ at >= 0 && (this.selection[at] = this.selection[--this.selected], this.emitLock(id, 65535), affected++);
667
+ continue;
668
+ }
669
+ if (!(at >= 0)) {
670
+ if (this.selected >= (2048)) {
671
+ conflicts++;
672
+ continue;
673
+ }
674
+ this.selection[this.selected++] = id, this.emitLock(id, (0)), affected++;
675
+ }
676
+ }
677
+ break;
678
+ }
679
+ case Action.ClearSelection:
680
+ affected = this.selected, this.release();
681
+ break;
682
+ case Action.TransformSelection: {
683
+ if (this.selected === 0) {
684
+ status = Status.Nothing;
685
+ break;
686
+ }
687
+ let snap = c.getUint8(4), dx = c.getInt32(6, (true)), dy = c.getInt32(10, (true)), dz = c.getInt32(14, (true));
688
+ for (let i = 0; i < 4; i++) this.rotation[i] = c.getInt16(18 + i * 2, (true));
689
+ let scale = c.getUint16(26, (true)), px = 0, py = 0, pz = 0, store = this.store;
690
+ for (let i = 0; i < this.selected; i++) {
691
+ let o = store.rowOf(this.selection[i]) * (10);
692
+ px += store.transforms[o], py += store.transforms[o + 1], pz += store.transforms[o + 2];
693
+ }
694
+ px /= this.selected, py /= this.selected, pz /= this.selected, this.stagedCount = 0;
695
+ for (let i = 0; i < this.selected; i++) {
696
+ let id = this.selection[i], row = store.rowOf(id), o = this.stagedCount * (10);
697
+ copyTransform(store.transforms, row * (10), this.source, 0), movedAbout(this.source, px, py, pz, dx, dy, dz, this.rotation, scale, this.t), this.snap(this.t, store.items[row], snap, this.selected), copyTransform(this.t, 0, this.staged, o), this.stagedIds[this.stagedCount++] = id;
698
+ }
699
+ let commit = this.commitStaged();
700
+ status = commit < 0 ? Status.Invalid : Status.Applied, affected = Math.max(0, commit);
701
+ break;
702
+ }
703
+ case Action.SetTransform: {
704
+ let id = c.getUint32(4, (true)), snap = c.getUint8(8);
705
+ this.readTransform(c, 10, this.t);
706
+ let row = this.store.rowOf(id);
707
+ if (row === (-1)) {
708
+ status = Status.Conflict;
709
+ break;
710
+ }
711
+ this.snap(this.t, this.store.items[row], snap, 0), copyTransform(this.t, 0, this.staged, 0), this.stagedIds[0] = id, this.stagedCount = 1;
712
+ let commit = this.commitStaged();
713
+ status = commit < 0 ? Status.Invalid : Status.Applied, affected = Math.max(0, commit);
714
+ break;
715
+ }
716
+ case Action.DuplicateSelection: {
717
+ if (this.selected === 0) {
718
+ status = Status.Nothing;
719
+ break;
720
+ }
721
+ if (this.store.count + this.selected > this.maxObjects) {
722
+ status = Status.Limit;
723
+ break;
724
+ }
725
+ let dx = c.getInt32(4, (true)), dy = c.getInt32(8, (true)), dz = c.getInt32(12, (true));
726
+ this.stageSelection(), this.release(), this.begin();
727
+ let store = this.store;
728
+ for (let i = 0; i < this.stagedCount; i++) {
729
+ let row = store.rowOf(this.stagedIds[i]), o = i * (10);
730
+ if (copyTransform(this.staged, o, this.t, 0), this.t[(0)] += dx, this.t[(0) + 1] += dy, this.t[(0) + 2] += dz, !withinWorld(this.t)) {
731
+ conflicts++;
732
+ continue;
733
+ }
734
+ let id = this.nextId++;
735
+ this.write(id, 1, store.items[row], this.t, 0, false, 0), this.selection[this.selected++] = id, this.emitLock(id, (0)), affected++;
736
+ }
737
+ this.commit();
738
+ break;
739
+ }
740
+ case Action.DeleteSelection: {
741
+ if (this.selected === 0) {
742
+ status = Status.Nothing;
743
+ break;
744
+ }
745
+ this.stageSelection(), this.release(), this.begin();
746
+ for (let i = 0; i < this.stagedCount; i++) this.erase(this.stagedIds[i]) && affected++;
747
+ this.commit();
748
+ break;
749
+ }
750
+ case Action.Undo:
751
+ case Action.Redo: {
752
+ let undo = action === Action.Undo;
753
+ if (!this.pop(undo)) {
754
+ status = Status.Nothing;
755
+ break;
756
+ }
757
+ this.begin();
758
+ let store = this.store;
759
+ for (let p = 0; p < this.poppedCount; p++) {
760
+ let e = this.popped[p], id = this.effId[e], row = store.rowOf(id);
761
+ if (!(row === (-1) ? this.effAfterPresent[e] === 0 : this.effAfterPresent[e] === 1 && this.sameAsAfter(e, row))) {
762
+ conflicts++;
763
+ continue;
764
+ }
765
+ if (this.effBeforePresent[e] === 1) {
766
+ let revision = Math.max(store.knownRevision(id), this.effAfterRevision[e], this.effBeforeRevision[e]) + 1;
767
+ this.write(id, revision, this.effBeforeItem[e], this.effBeforeTransform, e * (10), row !== (-1), row);
768
+ } else {
769
+ let at = this.indexOf(id);
770
+ at >= 0 && (this.selection[at] = this.selection[--this.selected]), this.erase(id);
771
+ }
772
+ affected++;
773
+ }
774
+ this.commitReversal(undo), affected === 0 && conflicts > 0 && (status = Status.Conflict);
775
+ break;
776
+ }
777
+ default:
778
+ status = Status.Nothing;
779
+ }
780
+ status === Status.Applied && affected === 0 && conflicts > 0 && (status = Status.Conflict), status === Status.Applied && this.applied++, this.emitResult(opId, status, affected, conflicts);
781
+ }
782
+ readTransform(c, at, out) {
783
+ out[0] = c.getInt32(at, (true)), out[1] = c.getInt32(at + 4, (true)), out[2] = c.getInt32(at + 8, (true));
784
+ for (let i = 0; i < 4; i++) out[(3) + i] = c.getInt16(at + 12 + i * 2, (true));
785
+ for (let i = 0; i < (3); i++) out[(7) + i] = c.getUint16(at + 20 + i * 2, (true));
786
+ }
787
+ snap(t, item, snap, ignoreSelection) {
788
+ let settings = this.store.settings;
789
+ if (canonical(t), (snap & (1)) !== 0 && snappedToGrid(t, settings.gridMm, settings.angleStepCentidegrees), (snap & (2)) !== 0) {
790
+ this.store.halfExtents(item, this.half, 0);
791
+ let footprint = bounds(t, 0, this.half, 0, this.footprint), resting = this.store.surfaceHeight(footprint, this.selection, ignoreSelection);
792
+ t[(0) + 1] = Math.round(resting - (footprint[(0) + 1] - t[(0) + 1]));
793
+ } else (snap & (1)) !== 0 && snapHeightToGrid(t, settings.gridMm);
794
+ }
795
+ indexOf(id) {
796
+ for (let i = 0; i < this.selected; i++) if (this.selection[i] === id) return i;
797
+ return -1;
798
+ }
799
+ release() {
800
+ for (let i = 0; i < this.selected; i++) this.emitLock(this.selection[i], 65535);
801
+ this.selected = 0;
802
+ }
803
+ stageSelection() {
804
+ this.stagedCount = 0;
805
+ let store = this.store;
806
+ for (let i = 0; i < this.selected; i++) {
807
+ let id = this.selection[i], row = store.rowOf(id);
808
+ row !== (-1) && (copyTransform(store.transforms, row * (10), this.staged, this.stagedCount * (10)), this.stagedIds[this.stagedCount++] = id);
809
+ }
810
+ }
811
+ commitStaged() {
812
+ for (let i = 0; i < this.stagedCount; i++)
813
+ if (copyTransform(this.staged, i * (10), this.t, 0), !withinWorld(this.t)) return -1;
814
+ this.begin();
815
+ let store = this.store, affected = 0;
816
+ for (let i = 0; i < this.stagedCount; i++) {
817
+ let id = this.stagedIds[i], row = store.rowOf(id);
818
+ row !== (-1) && (this.write(id, store.revisions[row] + 1, store.items[row], this.staged, i * (10), true, row), affected++);
819
+ }
820
+ return this.commit(), affected;
821
+ }
822
+ sameAsAfter(e, row) {
823
+ let store = this.store;
824
+ if (store.items[row] !== this.effAfterItem[e]) return false;
825
+ let a = e * (10), b = row * (10);
826
+ for (let i = 0; i < (10); i++) if (store.transforms[b + i] !== this.effAfterTransform[a + i]) return false;
827
+ return true;
828
+ }
829
+ record(id, beforeRow, afterPresent, afterRevision, afterItem, after, afterOffset) {
830
+ let e = this.written % (4096);
831
+ this.effId[e] = id;
832
+ let store = this.store;
833
+ beforeRow === (-1) ? this.effBeforePresent[e] = 0 : (this.effBeforePresent[e] = 1, this.effBeforeRevision[e] = store.revisions[beforeRow], this.effBeforeItem[e] = store.items[beforeRow], copyTransform(store.transforms, beforeRow * (10), this.effBeforeTransform, e * (10))), this.effAfterPresent[e] = afterPresent ? 1 : 0, this.effAfterRevision[e] = afterRevision, this.effAfterItem[e] = afterItem, afterPresent && copyTransform(after, afterOffset, this.effAfterTransform, e * (10)), this.written++;
834
+ }
835
+ write(id, revision, item, t, tOffset, existed, row) {
836
+ this.sequence++, this.record(id, existed ? row : (-1), true, revision, item, t, tOffset);
837
+ let lock = this.indexOf(id) >= 0 ? (0) : 65535;
838
+ this.emitUpsert(id, revision, item, t, tOffset, lock);
839
+ }
840
+ erase(id) {
841
+ let row = this.store.rowOf(id);
842
+ if (row === (-1)) return false;
843
+ let revision = this.store.revisions[row] + 1;
844
+ return this.sequence++, this.record(id, row, false, revision, 0, this.t, 0), this.emitRemove(id, revision), true;
845
+ }
846
+ begin() {
847
+ this.open = this.written;
848
+ }
849
+ close() {
850
+ let start = this.open;
851
+ if (this.open = -1, start < 0) return 0;
852
+ let length = this.written - start;
853
+ return length > 0 && length <= (4096) ? length : 0;
854
+ }
855
+ commit() {
856
+ let start = this.open, length = this.close();
857
+ length !== 0 && (this.push(true, start, length), this.redoCount = 0);
858
+ }
859
+ commitReversal(undo) {
860
+ let start = this.open, length = this.close();
861
+ length !== 0 && this.push(!undo, start, length);
862
+ }
863
+ push(toUndo, start, length) {
864
+ let starts = toUndo ? this.undoStart : this.redoStart, lengths = toUndo ? this.undoLength : this.redoLength, head = toUndo ? this.undoHead : this.redoHead, count = toUndo ? this.undoCount : this.redoCount;
865
+ starts[head] = start, lengths[head] = length, head = (head + 1) % (256), count = Math.min(count + 1, (256)), toUndo ? (this.undoHead = head, this.undoCount = count) : (this.redoHead = head, this.redoCount = count);
866
+ }
867
+ pop(undo) {
868
+ if ((undo ? this.undoCount : this.redoCount) === 0) return false;
869
+ let head = ((undo ? this.undoHead : this.redoHead) + (256) - 1) % (256), start = undo ? this.undoStart[head] : this.redoStart[head], length = undo ? this.undoLength[head] : this.redoLength[head];
870
+ if (undo ? (this.undoHead = head, this.undoCount--) : (this.redoHead = head, this.redoCount--), this.written - start > (4096))
871
+ return this.undoCount = 0, this.redoCount = 0, false;
872
+ this.poppedCount = 0;
873
+ for (let offset = length - 1; offset >= 0; offset--) this.popped[this.poppedCount++] = (start + offset) % (4096);
874
+ return true;
875
+ }
876
+ get undoDepth() {
877
+ return this.undoCount;
878
+ }
879
+ get redoDepth() {
880
+ return this.redoCount;
881
+ }
882
+ get selectionCount() {
883
+ return this.selected;
884
+ }
885
+ selectionAt(index) {
886
+ return this.selection[index];
887
+ }
888
+ };
889
+
890
+ // src/interactives/worlds/online.ts
891
+ var EXPIRED = "the world ticket expired and cannot be renewed";
892
+ function connectWorld(realtime, options = {}) {
893
+ let mirror = options.mirror ?? new WorldMirror(), first = realtime.ticket, renew = options.renew ?? null, tickets = () => {
894
+ let ticket = first;
895
+ return ticket !== null ? (first = null, Promise.resolve(ticket)) : renew === null ? Promise.reject(new Error(EXPIRED)) : renew();
896
+ }, client = new chunkTVJZ4GPS_js.RoomClient({
897
+ tickets,
898
+ primary: realtime.primary,
899
+ fallback: realtime.fallback,
900
+ physicsHz: options.physicsHz,
901
+ memory: options.memory,
902
+ network: options.network,
903
+ channels: mirror
904
+ });
905
+ return { client, mirror, builder: new WorldBuilder(client, mirror) };
906
+ }
907
+
908
+ exports.Action = Action;
909
+ exports.BOUNDS_MAX = (3);
910
+ exports.BOUNDS_MIN = (0);
911
+ exports.BOUNDS_WORDS = (6);
912
+ exports.CENTIDEGREES_PER_TURN = (36e3);
913
+ exports.COMMAND_OP_ID_BYTES = COMMAND_OP_ID_BYTES;
914
+ exports.CommandWriter = CommandWriter;
915
+ exports.Ground = Ground;
916
+ exports.Lighting = Lighting;
917
+ exports.Likeness = Likeness;
918
+ exports.LocalWorld = LocalWorld;
919
+ exports.MILLIMETRES_PER_METRE = (1e3);
920
+ exports.MessageKind = MessageKind;
921
+ exports.NOT_SENT = (-1);
922
+ exports.NO_BUILDER = (65535);
923
+ exports.Notice = Notice;
924
+ exports.POSITION = (0);
925
+ exports.QUATERNION_SCALE = (32767);
926
+ exports.ROTATION = (3);
927
+ exports.SCALE = (7);
928
+ exports.SCALE_UNIT_PERMILLE = (1e3);
929
+ exports.SNAP_GRID = (1);
930
+ exports.SNAP_SURFACE = (2);
931
+ exports.Sanction = Sanction;
932
+ exports.SelectMode = SelectMode;
933
+ exports.Sky = Sky;
934
+ exports.Status = Status;
935
+ exports.TRANSFORM_WORDS = (10);
936
+ exports.Visibility = Visibility;
937
+ exports.WORLD_EXTENT_MM = (255996);
938
+ exports.WorldBuilder = WorldBuilder;
939
+ exports.WorldMirror = WorldMirror;
940
+ exports.WorldRoleCode = WorldRoleCode;
941
+ exports.bounds = bounds;
942
+ exports.canonical = canonical;
943
+ exports.connectWorld = connectWorld;
944
+ exports.copyTransform = copyTransform;
945
+ exports.encodeBare = encodeBare;
946
+ exports.encodeClock = encodeClock;
947
+ exports.encodeDuplicate = encodeDuplicate;
948
+ exports.encodeJoinCopy = encodeJoinCopy;
949
+ exports.encodeModerate = encodeModerate;
950
+ exports.encodePlace = encodePlace;
951
+ exports.encodeSelect = encodeSelect;
952
+ exports.encodeSetTransform = encodeSetTransform;
953
+ exports.encodeSettings = encodeSettings;
954
+ exports.encodeTransformSelection = encodeTransformSelection;
955
+ exports.identityTransform = identityTransform;
956
+ exports.movedAbout = movedAbout;
957
+ exports.overlapsFootprint = overlapsFootprint;
958
+ exports.snapHeightToGrid = snapHeightToGrid;
959
+ exports.snappedToGrid = snappedToGrid;
960
+ exports.withinWorld = withinWorld;
961
+ exports.yawRotation = yawRotation;