diff --git a/MultiplayerTest01.json b/MultiplayerTest01.json index e3463db..86074e6 100644 --- a/MultiplayerTest01.json +++ b/MultiplayerTest01.json @@ -1302,178 +1302,6 @@ ] }, "objects": [ - { - "adaptCollisionMaskAutomatically": true, - "assetStoreId": "", - "name": "spr_player", - "persistentUuid": "d03a1af6-4615-4ebe-92c5-a2678ed69ba6", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [ - { - "name": "player_id", - "persistentUuid": "946a6f26-ee26-4e20-811d-9674dc90ace4", - "type": "number", - "value": 0 - } - ], - "effects": [], - "behaviors": [ - { - "name": "TopDownMovement", - "type": "TopDownMovementBehavior::TopDownMovementBehavior", - "acceleration": 99999, - "allowDiagonals": false, - "angleOffset": 0, - "angularMaxSpeed": 180, - "customIsometryAngle": 30, - "deceleration": 99999, - "ignoreDefaultControls": false, - "maxSpeed": 200, - "movementAngleOffset": 0, - "rotateObject": false, - "useLegacyTurnBack": false, - "viewpoint": "TopDown" - } - ], - "animations": [ - { - "name": "NewSprite", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "metadata": "{\"pskl\":{}}", - "timeBetweenFrames": 0.08, - "sprites": [ - { - "hasCustomCollisionMask": true, - "image": "NewSprite2", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [ - [ - { - "x": 0, - "y": 0 - }, - { - "x": 64, - "y": 0 - }, - { - "x": 64, - "y": 64 - }, - { - "x": 0, - "y": 64 - } - ] - ] - } - ] - } - ] - } - ] - }, - { - "adaptCollisionMaskAutomatically": true, - "assetStoreId": "", - "name": "spr_otherPlayers", - "persistentUuid": "1a256d41-16be-45af-a2c0-d555c42c2cb0", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [ - { - "name": "player_id", - "persistentUuid": "d4f11f2a-8cdb-4dd0-a45c-393c3de1719a", - "type": "number", - "value": 0 - } - ], - "effects": [], - "behaviors": [ - { - "name": "TopDownMovement", - "type": "TopDownMovementBehavior::TopDownMovementBehavior", - "acceleration": 99999, - "allowDiagonals": false, - "angleOffset": 0, - "angularMaxSpeed": 180, - "customIsometryAngle": 30, - "deceleration": 99999, - "ignoreDefaultControls": true, - "maxSpeed": 200, - "movementAngleOffset": 0, - "rotateObject": false, - "useLegacyTurnBack": false, - "viewpoint": "TopDown" - } - ], - "animations": [ - { - "name": "NewSprite", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "metadata": "{\"pskl\":{}}", - "timeBetweenFrames": 0.08, - "sprites": [ - { - "hasCustomCollisionMask": true, - "image": "NewSprite2", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [ - [ - { - "x": 0, - "y": 0 - }, - { - "x": 64, - "y": 0 - }, - { - "x": 64, - "y": 64 - }, - { - "x": 0, - "y": 64 - } - ] - ] - } - ] - } - ] - } - ] - }, { "adaptCollisionMaskAutomatically": true, "assetStoreId": "", @@ -1570,17 +1398,11389 @@ "LabelText": "[ ]", "PressedLabelOffsetY": 2 } + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "spr_player", + "persistentUuid": "c2a0fb02-74f2-4a31-98f4-1ce55e4d3546", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [ + { + "name": "player_id", + "persistentUuid": "52d53b6f-730f-4ea4-a079-26352cdea24e", + "type": "string", + "value": "1" + } + ], + "effects": [], + "behaviors": [ + { + "name": "TopDownMovement", + "type": "TopDownMovementBehavior::TopDownMovementBehavior", + "acceleration": 99999, + "allowDiagonals": false, + "angleOffset": 0, + "angularMaxSpeed": 180, + "customIsometryAngle": 30, + "deceleration": 99999, + "ignoreDefaultControls": false, + "maxSpeed": 75, + "movementAngleOffset": 0, + "rotateObject": false, + "useLegacyTurnBack": false, + "viewpoint": "TopDown" + } + ], + "animations": [ + { + "name": "1Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "04Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "04Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite5", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite6", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite7", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite8", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite9", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite10", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite11", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite12", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + } + ] + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "spr_otherPlayers", + "persistentUuid": "8c26a28f-d758-47a6-80e3-492e934aef8d", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [ + { + "name": "player_id", + "persistentUuid": "46108188-b219-4240-aaac-982e645b6ab0", + "type": "number", + "value": 0 + } + ], + "effects": [], + "behaviors": [ + { + "ignoreDefaultControls": true, + "name": "TopDownMovement", + "type": "TopDownMovementBehavior::TopDownMovementBehavior", + "acceleration": 99999, + "allowDiagonals": false, + "angleOffset": 0, + "angularMaxSpeed": 180, + "customIsometryAngle": 30, + "deceleration": 99999, + "maxSpeed": 75, + "movementAngleOffset": 0, + "rotateObject": false, + "useLegacyTurnBack": false, + "viewpoint": "TopDown" + } + ], + "animations": [ + { + "name": "1Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "04Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "04Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite5", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite6", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite7", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite8", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite9", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite10", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite11", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite12", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + } + ] } ], "objectsFolderStructure": { "folderName": "__ROOT", "children": [ - { - "objectName": "spr_player" - }, - { - "objectName": "spr_otherPlayers" - }, { "objectName": "spr_door" }, @@ -1589,6 +12789,12 @@ }, { "objectName": "btn_Fullscreen" + }, + { + "objectName": "spr_player" + }, + { + "objectName": "spr_otherPlayers" } ] }, @@ -1626,6 +12832,7 @@ }, { "name": "var_lastDirection", + "persistentUuid": "bed71a05-848a-4643-81a2-c09d7d044b37", "type": "string", "value": "" } @@ -2872,7 +14079,7 @@ "gridColor": 10401023, "gridAlpha": 0.8, "snap": true, - "zoomFactor": 0.6040838749988885, + "zoomFactor": 1.479039586175742, "windowMask": false, "selectedLayer": "", "gameEditorMode": "instances-editor" @@ -2920,6 +14127,12 @@ "persistentUuid": "414331d7-6f44-4ecc-8c92-b5493246c615", "type": "string", "value": "" + }, + { + "name": "var_spriteGen", + "persistentUuid": "fede8e3d-e524-413e-82e1-7ac220725341", + "type": "string", + "value": "" } ], "instances": [ @@ -3009,23 +14222,7 @@ "height": 0, "keepRatio": true, "layer": "", - "name": "spr_sqaure", - "persistentUuid": "9c413fc9-26ab-4cc4-b4c8-b84a8ac651ef", - "width": 0, - "x": 592, - "y": 112, - "zOrder": 8, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "keepRatio": true, - "layer": "", - "name": "btn_NewColor", + "name": "btn_randSprite", "persistentUuid": "248ac7e7-6ac9-4c9f-a7ec-a83df84e6d27", "width": 0, "x": 560, @@ -3098,6 +14295,22 @@ "numberProperties": [], "stringProperties": [], "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "keepRatio": true, + "layer": "", + "name": "spr_playerSprite", + "persistentUuid": "dd56a1ac-247d-481d-9a94-0a3a6b26ba5b", + "width": 0, + "x": 608, + "y": 176, + "zOrder": 15, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] } ], "objects": [ @@ -3275,71 +14488,9 @@ "color": "0;0;0" } }, - { - "adaptCollisionMaskAutomatically": true, - "assetStoreId": "", - "name": "spr_sqaure", - "persistentUuid": "8e29f65a-9088-4d1e-b7b8-b947d7f9b407", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "NewSprite", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "metadata": "{\"pskl\":{}}", - "timeBetweenFrames": 0.08, - "sprites": [ - { - "hasCustomCollisionMask": true, - "image": "NewSprite", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [ - [ - { - "x": 0, - "y": 0 - }, - { - "x": 64, - "y": 0 - }, - { - "x": 64, - "y": 64 - }, - { - "x": 0, - "y": 64 - } - ] - ] - } - ] - } - ] - } - ] - }, { "assetStoreId": "80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf", - "name": "btn_NewColor", + "name": "btn_randSprite", "persistentUuid": "5428983b-7262-40a0-9d70-e7b3aa5d0175", "type": "PanelSpriteButton::PanelSpriteButton", "variant": "Small Blue Button", @@ -3347,7 +14498,7 @@ "effects": [], "behaviors": [], "content": { - "LabelText": "New Color", + "LabelText": "Randomize", "PressedLabelOffsetY": 2 } }, @@ -3467,6 +14618,5695 @@ "lineHeight": 0, "color": "0;255;0" } + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "spr_playerSprite", + "persistentUuid": "46b9b986-bf51-4bc3-b86d-a43044623f83", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [ + { + "name": "var_player_id", + "persistentUuid": "53e00a63-7ae9-4d71-955c-849026d1e6e6", + "type": "string", + "value": "1" + } + ], + "effects": [], + "behaviors": [ + { + "name": "TopDownMovement", + "type": "TopDownMovementBehavior::TopDownMovementBehavior", + "acceleration": 99999, + "allowDiagonals": false, + "angleOffset": 0, + "angularMaxSpeed": 180, + "customIsometryAngle": 30, + "deceleration": 99999, + "ignoreDefaultControls": false, + "maxSpeed": 75, + "movementAngleOffset": 0, + "rotateObject": false, + "useLegacyTurnBack": false, + "viewpoint": "TopDown" + } + ], + "animations": [ + { + "name": "1Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "1Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "01Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "01Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "2Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "02Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "02Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "3Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "03Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "03Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "04Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "04Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "04Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "4Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite5", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite6", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite7", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite8", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite9", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite10", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite11", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "spr_playerSprite12", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "5Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "05Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "05Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "6Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "06Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "06Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "7Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "07Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "07Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "8Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "08Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "08Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Down", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Down", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Down4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Left", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Left", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Left4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Right", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Right", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Right4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + }, + { + "name": "9Up", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.2, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "09Up", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up2", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up3", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "09Up4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 24 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 3, + "y": 5 + }, + { + "x": 15, + "y": 5 + }, + { + "x": 15, + "y": 24 + }, + { + "x": 3, + "y": 24 + } + ] + ] + } + ] + } + ] + } + ] } ], "objectsFolderStructure": { @@ -3476,7 +20316,7 @@ "objectName": "txtbx_regUsername" }, { - "objectName": "spr_sqaure" + "objectName": "spr_playerSprite" }, { "objectName": "txtbx_regPassword01" @@ -3491,7 +20331,7 @@ "objectName": "btn_Back" }, { - "objectName": "btn_NewColor" + "objectName": "btn_randSprite" }, { "objectName": "txt_RegMessageUser" @@ -3586,21 +20426,33 @@ }, { "type": { - "value": "SetStringVariable" + "value": "SetCenterX" }, "parameters": [ - "var_colorGen", + "spr_playerSprite", "=", - "ToString(RandomInRange(0,255)) + \";\" + ToString(RandomInRange(0,255)) + \";\" + ToString(RandomInRange(0,255))" + "btn_Back.CenterX()" ] }, { "type": { - "value": "ChangeColor" + "value": "SetStringVariable" }, "parameters": [ - "spr_sqaure", - "var_colorGen" + "var_spriteGen", + "=", + "ToString(RandomInRange(1,9))" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_playerSprite", + "Animation", + "=", + "var_spriteGen+\"Down\"" ] } ] @@ -3663,7 +20515,7 @@ "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" }, "parameters": [ - "btn_NewColor", + "btn_randSprite", "" ] } @@ -3674,18 +20526,20 @@ "value": "SetStringVariable" }, "parameters": [ - "var_colorGen", + "var_spriteGen", "=", - "ToString(RandomInRange(0,255)) + \";\" + ToString(RandomInRange(0,255)) + \";\" + ToString(RandomInRange(0,255))" + "ToString(RandomInRange(1,9))" ] }, { "type": { - "value": "ChangeColor" + "value": "AnimatableCapability::AnimatableBehavior::SetName" }, "parameters": [ - "spr_sqaure", - "var_colorGen" + "spr_playerSprite", + "Animation", + "=", + "var_spriteGen+\"Down\"" ] } ] @@ -3939,7 +20793,7 @@ }, "parameters": [ "var_jsonAddress+\"/users\"", - "\"{\\\"username\\\":\\\"\" + var_username + \"\\\",\\\"password\\\":\\\"\" + var_passwordHash+ \"\\\",\\\"color\\\":\\\"\" + var_colorGen + \"\\\",\\\"room\\\":\\\"000000\\\",\\\"last_room\\\":\\\"000000\\\"}\"", + "\"{\\\"username\\\":\\\"\" + var_username + \"\\\",\\\"password\\\":\\\"\" + var_passwordHash + \"\\\",\\\"sprite\\\":\\\"\" + var_spriteGen + \"\\\",\\\"room\\\":\\\"000000\\\",\\\"last_room\\\":\\\"000000\\\"}\"", "\"POST\"", "\"application/json\"", "", @@ -5442,11 +22296,24 @@ "actions": [ { "type": { - "value": "ChangeColor" + "value": "ZoomCamera" + }, + "parameters": [ + "", + "3", + "", + "" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" }, "parameters": [ "spr_player", - "var_playerInfo[0].color" + "Animation", + "=", + "var_playerInfo[0].sprite+\"Down\"" ] }, { @@ -5531,11 +22398,32 @@ }, { "type": { - "value": "ChangeColor" + "value": "AnimatableCapability::AnimatableBehavior::SetName" }, "parameters": [ "spr_otherPlayers", - "var_child[\"color\"]" + "Animation", + "=", + "var_child[\"sprite\"]+\"Down\"" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PauseAnimation" + }, + "parameters": [ + "spr_otherPlayers", + "Animation" + ] + }, + { + "type": { + "value": "ChangeSprite" + }, + "parameters": [ + "spr_otherPlayers", + "=", + "1" ] }, { @@ -5605,7 +22493,7 @@ }, "parameters": [ "", - "\"{\\\"type\\\":\\\"join\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \",\\\"color\\\":\\\"\" + var_playerInfo[0].color + \"\\\"}\"", + "\"{\\\"type\\\":\\\"join\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \",\\\"sprite\\\":\\\"\" + var_playerInfo[0].sprite + \"\\\"}\"", "\"/game/rooms/\"+CurrentSceneName()", "", "", @@ -5663,12 +22551,32 @@ }, "parameters": [ "", - "\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"direction\\\":\\\"right\\\"}\"", + "\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"direction\\\":\\\"right\\\"}\"", "\"/game/rooms/\"+CurrentSceneName()", "", "", "" ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_player", + "Animation", + "=", + "var_playerInfo[0].sprite+ \"Right\"" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PlayAnimation" + }, + "parameters": [ + "spr_player", + "Animation" + ] } ] }, @@ -5709,12 +22617,32 @@ }, "parameters": [ "", - "\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"direction\\\":\\\"down\\\"}\"", + "\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"direction\\\":\\\"down\\\"}\"", "\"/game/rooms/\"+CurrentSceneName()", "", "", "" ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_player", + "Animation", + "=", + "var_playerInfo[0].sprite+ \"Down\"" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PlayAnimation" + }, + "parameters": [ + "spr_player", + "Animation" + ] } ] }, @@ -5755,12 +22683,32 @@ }, "parameters": [ "", - "\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"direction\\\":\\\"left\\\"}\"", + "\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"direction\\\":\\\"left\\\"}\"", "\"/game/rooms/\"+CurrentSceneName()", "", "", "" ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_player", + "Animation", + "=", + "var_playerInfo[0].sprite + \"Left\"" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PlayAnimation" + }, + "parameters": [ + "spr_player", + "Animation" + ] } ] }, @@ -5801,12 +22749,32 @@ }, "parameters": [ "", - "\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"direction\\\":\\\"up\\\"}\"", + "\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"direction\\\":\\\"up\\\"}\"", "\"/game/rooms/\"+CurrentSceneName()", "", "", "" ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_player", + "Animation", + "=", + "var_playerInfo[0].sprite + \"Up\"" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PlayAnimation" + }, + "parameters": [ + "spr_player", + "Animation" + ] } ] }, @@ -5837,12 +22805,31 @@ }, "parameters": [ "", - "\"{\\\"type\\\":\\\"move_stop\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \"}\"", + "\"{\\\"type\\\":\\\"move_stop\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \"}\"", "\"/game/rooms/\"+CurrentSceneName()", "", "", "" ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PauseAnimation" + }, + "parameters": [ + "spr_player", + "Animation" + ] + }, + { + "type": { + "value": "ChangeSprite" + }, + "parameters": [ + "spr_player", + "=", + "1" + ] } ] }, @@ -5935,6 +22922,26 @@ } ], "actions": [ + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PlayAnimation" + }, + "parameters": [ + "spr_otherPlayers", + "Animation" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_otherPlayers", + "Animation", + "=", + "var_mqttParse[\"sprite\"]+ \"Right\"" + ] + }, { "type": { "value": "ClearForces" @@ -5949,7 +22956,7 @@ }, "parameters": [ "spr_otherPlayers", - "200", + "75", "0", "1" ] @@ -5992,6 +22999,26 @@ } ], "actions": [ + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PlayAnimation" + }, + "parameters": [ + "spr_otherPlayers", + "Animation" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_otherPlayers", + "Animation", + "=", + "var_mqttParse[\"sprite\"]+ \"Left\"" + ] + }, { "type": { "value": "ClearForces" @@ -6006,7 +23033,7 @@ }, "parameters": [ "spr_otherPlayers", - "-200", + "-75", "0", "1" ] @@ -6049,6 +23076,26 @@ } ], "actions": [ + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PlayAnimation" + }, + "parameters": [ + "spr_otherPlayers", + "Animation" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_otherPlayers", + "Animation", + "=", + "var_mqttParse[\"sprite\"]+ \"Up\"" + ] + }, { "type": { "value": "ClearForces" @@ -6064,7 +23111,7 @@ "parameters": [ "spr_otherPlayers", "0", - "-200", + "-75", "1" ] } @@ -6106,6 +23153,26 @@ } ], "actions": [ + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PlayAnimation" + }, + "parameters": [ + "spr_otherPlayers", + "Animation" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::SetName" + }, + "parameters": [ + "spr_otherPlayers", + "Animation", + "=", + "var_mqttParse[\"sprite\"]+ \"Down\"" + ] + }, { "type": { "value": "ClearForces" @@ -6121,7 +23188,7 @@ "parameters": [ "spr_otherPlayers", "0", - "200", + "75", "1" ] } @@ -6172,6 +23239,25 @@ "=", "var_mqttParse[\"y\"]" ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PauseAnimation" + }, + "parameters": [ + "spr_otherPlayers", + "Animation" + ] + }, + { + "type": { + "value": "ChangeSprite" + }, + "parameters": [ + "spr_otherPlayers", + "=", + "1" + ] } ] }, @@ -6215,11 +23301,32 @@ }, { "type": { - "value": "ChangeColor" + "value": "AnimatableCapability::AnimatableBehavior::SetName" }, "parameters": [ "spr_otherPlayers", - "var_mqttParse[\"color\"]" + "Animation", + "=", + "var_mqttParse[\"sprite\"]+\"Down\"" + ] + }, + { + "type": { + "value": "AnimatableCapability::AnimatableBehavior::PauseAnimation" + }, + "parameters": [ + "spr_otherPlayers", + "Animation" + ] + }, + { + "type": { + "value": "ChangeSprite" + }, + "parameters": [ + "spr_otherPlayers", + "=", + "1" ] } ] @@ -6625,7 +23732,7 @@ "stringProperties": [], "initialVariables": [ { - "name": "var_spriteIndex", + "name": "var_player_id", "persistentUuid": "8c121fd4-14b0-44de-8189-7e88a869f900", "type": "string", "value": "04" @@ -6643,10 +23750,10 @@ "updateIfNotVisible": false, "variables": [ { - "name": "var_spriteIndex", + "name": "var_player_id", "persistentUuid": "8c121fd4-14b0-44de-8189-7e88a869f900", "type": "string", - "value": "08" + "value": "1" } ], "effects": [], @@ -6670,7 +23777,7 @@ ], "animations": [ { - "name": "01Down", + "name": "1Down", "useMultipleDirections": false, "directions": [ { @@ -6827,7 +23934,7 @@ ] }, { - "name": "01Left", + "name": "1Left", "useMultipleDirections": false, "directions": [ { @@ -6984,7 +24091,7 @@ ] }, { - "name": "01Right", + "name": "1Right", "useMultipleDirections": false, "directions": [ { @@ -7141,7 +24248,7 @@ ] }, { - "name": "01Up", + "name": "1Up", "useMultipleDirections": false, "directions": [ { @@ -7298,7 +24405,7 @@ ] }, { - "name": "02Down", + "name": "2Down", "useMultipleDirections": false, "directions": [ { @@ -7455,7 +24562,7 @@ ] }, { - "name": "02Left", + "name": "2Left", "useMultipleDirections": false, "directions": [ { @@ -7612,7 +24719,7 @@ ] }, { - "name": "02Right", + "name": "2Right", "useMultipleDirections": false, "directions": [ { @@ -7769,7 +24876,7 @@ ] }, { - "name": "02Up", + "name": "2Up", "useMultipleDirections": false, "directions": [ { @@ -7926,7 +25033,7 @@ ] }, { - "name": "03Down", + "name": "3Down", "useMultipleDirections": false, "directions": [ { @@ -8083,7 +25190,7 @@ ] }, { - "name": "03Left", + "name": "3Left", "useMultipleDirections": false, "directions": [ { @@ -8240,7 +25347,7 @@ ] }, { - "name": "03Right", + "name": "3Right", "useMultipleDirections": false, "directions": [ { @@ -8397,7 +25504,7 @@ ] }, { - "name": "03Up", + "name": "3Up", "useMultipleDirections": false, "directions": [ { @@ -8554,7 +25661,7 @@ ] }, { - "name": "04Down", + "name": "4Down", "useMultipleDirections": false, "directions": [ { @@ -8711,7 +25818,7 @@ ] }, { - "name": "04Left", + "name": "4Left", "useMultipleDirections": false, "directions": [ { @@ -8868,7 +25975,7 @@ ] }, { - "name": "04Right", + "name": "4Right", "useMultipleDirections": false, "directions": [ { @@ -9025,7 +26132,7 @@ ] }, { - "name": "04Up", + "name": "4Up", "useMultipleDirections": false, "directions": [ { @@ -9182,7 +26289,7 @@ ] }, { - "name": "05Down", + "name": "5Down", "useMultipleDirections": false, "directions": [ { @@ -9339,7 +26446,7 @@ ] }, { - "name": "05Left", + "name": "5Left", "useMultipleDirections": false, "directions": [ { @@ -9496,7 +26603,7 @@ ] }, { - "name": "05Right", + "name": "5Right", "useMultipleDirections": false, "directions": [ { @@ -9653,7 +26760,7 @@ ] }, { - "name": "05Up", + "name": "5Up", "useMultipleDirections": false, "directions": [ { @@ -9810,7 +26917,7 @@ ] }, { - "name": "06Down", + "name": "6Down", "useMultipleDirections": false, "directions": [ { @@ -9967,7 +27074,7 @@ ] }, { - "name": "06Left", + "name": "6Left", "useMultipleDirections": false, "directions": [ { @@ -10124,7 +27231,7 @@ ] }, { - "name": "06Right", + "name": "6Right", "useMultipleDirections": false, "directions": [ { @@ -10281,7 +27388,7 @@ ] }, { - "name": "06Up", + "name": "6Up", "useMultipleDirections": false, "directions": [ { @@ -10438,7 +27545,7 @@ ] }, { - "name": "07Down", + "name": "7Down", "useMultipleDirections": false, "directions": [ { @@ -10595,7 +27702,7 @@ ] }, { - "name": "07Left", + "name": "7Left", "useMultipleDirections": false, "directions": [ { @@ -10752,7 +27859,7 @@ ] }, { - "name": "07Right", + "name": "7Right", "useMultipleDirections": false, "directions": [ { @@ -10909,7 +28016,7 @@ ] }, { - "name": "07Up", + "name": "7Up", "useMultipleDirections": false, "directions": [ { @@ -11066,7 +28173,7 @@ ] }, { - "name": "08Down", + "name": "8Down", "useMultipleDirections": false, "directions": [ { @@ -11223,7 +28330,7 @@ ] }, { - "name": "08Left", + "name": "8Left", "useMultipleDirections": false, "directions": [ { @@ -11380,7 +28487,7 @@ ] }, { - "name": "08Right", + "name": "8Right", "useMultipleDirections": false, "directions": [ { @@ -11537,7 +28644,7 @@ ] }, { - "name": "08Up", + "name": "8Up", "useMultipleDirections": false, "directions": [ { @@ -11694,7 +28801,7 @@ ] }, { - "name": "09Down", + "name": "9Down", "useMultipleDirections": false, "directions": [ { @@ -11851,7 +28958,7 @@ ] }, { - "name": "09Left", + "name": "9Left", "useMultipleDirections": false, "directions": [ { @@ -12008,7 +29115,7 @@ ] }, { - "name": "09Right", + "name": "9Right", "useMultipleDirections": false, "directions": [ { @@ -12165,7 +29272,7 @@ ] }, { - "name": "09Up", + "name": "9Up", "useMultipleDirections": false, "directions": [ { @@ -12374,7 +29481,7 @@ "spr_playerSprite", "Animation", "=", - "spr_playerSprite.var_spriteIndex + \"Down\"" + "spr_playerSprite.var_player_id + \"Down\"" ] } ] @@ -12415,7 +29522,7 @@ "spr_playerSprite", "Animation", "=", - "spr_playerSprite.var_spriteIndex + \"Right\"" + "spr_playerSprite.var_player_id + \"Right\"" ] } ] @@ -12444,7 +29551,7 @@ "spr_playerSprite", "Animation", "=", - "spr_playerSprite.var_spriteIndex + \"Left\"" + "spr_playerSprite.var_player_id + \"Left\"" ] } ] @@ -12473,7 +29580,7 @@ "spr_playerSprite", "Animation", "=", - "spr_playerSprite.var_spriteIndex + \"Down\"" + "spr_playerSprite.var_player_id + \"Down\"" ] } ] @@ -12502,7 +29609,7 @@ "spr_playerSprite", "Animation", "=", - "spr_playerSprite.var_spriteIndex + \"Up\"" + "spr_playerSprite.var_player_id + \"Up\"" ] } ] diff --git a/MultiplayerTest01.json.autosave b/MultiplayerTest01.json.autosave index 2c62671..f9b2e99 100644 --- a/MultiplayerTest01.json.autosave +++ b/MultiplayerTest01.json.autosave @@ -1 +1 @@ -{"firstLayout":"Login","gdVersion":{"build":275,"major":5,"minor":6,"revision":0},"initialGDVersion":"5.6.274","properties":{"adaptGameResolutionAtRuntime":true,"antialiasingMode":"MSAA","antialisingEnabledOnMobile":false,"folderProject":false,"orientation":"landscape","packageName":"com.example.gamename","pixelsRounding":true,"projectUuid":"95fbe47f-9217-4b08-9d51-4fe99f117474","scaleMode":"nearest","sizeOnStartupMode":"adaptWidth","templateSlug":"","version":"1.0.0","name":"MultiplayerTest01","description":"","author":"","windowWidth":1280,"windowHeight":720,"latestCompilationDirectory":"","maxFPS":60,"minFPS":20,"verticalSync":false,"platformSpecificAssets":{},"loadingScreen":{"backgroundColor":0,"backgroundFadeInDuration":0.2,"backgroundImageResourceName":"","gdevelopLogoStyle":"light","logoAndProgressFadeInDuration":0.2,"logoAndProgressLogoFadeInDelay":0.0,"minDuration":1.5,"progressBarColor":16777215,"progressBarHeight":20.0,"progressBarMaxWidth":200.0,"progressBarMinWidth":40.0,"progressBarWidthPercent":30.0,"showGDevelopSplash":true,"showProgressBar":true},"watermark":{"placement":"bottom-left","showWatermark":true},"authorIds":[],"authorUsernames":[],"categories":[],"playableDevices":[],"extensionProperties":[],"platforms":[{"name":"GDevelop JS platform"}],"currentPlatform":"GDevelop JS platform"},"resources":{"resources":[{"file":"assets/8BitOperatorPlus8Regular_Edited.png","kind":"image","metadata":"","name":"assets\\8BitOperatorPlus8Regular_Edited.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/15c1797cbcb41c3a753b6bbb21cfa60284cfaf81c9891c3abf78a8e0e1cacf59_8BitOperatorPlus8Regular_Edited.png","name":"8BitOperatorPlus8Regular_Edited.png"}},{"file":"assets/Small Blue Button_Hovered.png","kind":"image","metadata":"","name":"assets\\Small Blue Button_Hovered.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/f80ae062891a0a4612c0160ed931165461392019f89a8545f28c195f645ebc48_Small Blue Button_Hovered.png","name":"Small Blue Button_Hovered.png"}},{"file":"assets/Small Blue Button_Idle.png","kind":"image","metadata":"","name":"assets\\Small Blue Button_Idle.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/c22b15c77047f1545806141e1129900bdc985d191b7ab5ebaae834a90c270ed2_Small Blue Button_Idle.png","name":"Small Blue Button_Idle.png"}},{"file":"assets/Small Blue Button_Pressed.png","kind":"image","metadata":"","name":"assets\\Small Blue Button_Pressed.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/9e01b09016c6a200b53a55cac3cf34f083785eb6b9f55de490a71ad352858b36_Small Blue Button_Pressed.png","name":"Small Blue Button_Pressed.png"}},{"file":"assets/8BitOperatorPlus8Regular_Edited.fnt","kind":"bitmapFont","metadata":"","name":"assets\\8BitOperatorPlus8Regular_Edited.fnt","userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/6b410f07a3a02e721a49d41795e84b56707ef28ac4d095d55f1fd1093760e134_8BitOperatorPlus8Regular_Edited.fnt","name":"8BitOperatorPlus8Regular_Edited.fnt"}},{"file":"assets/NewSprite.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"NewSprite","smoothed":false,"userAdded":false},{"file":"assets/NewSprite2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"NewSprite2","smoothed":false,"userAdded":false},{"file":"assets/NewSprite3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"NewSprite3","smoothed":false,"userAdded":false},{"file":"assets/01Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Down","smoothed":false,"userAdded":false},{"file":"assets/01Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Down2","smoothed":false,"userAdded":false},{"file":"assets/01Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Down3","smoothed":false,"userAdded":false},{"file":"assets/01Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Down4","smoothed":false,"userAdded":false},{"file":"assets/01Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Left","smoothed":false,"userAdded":false},{"file":"assets/01Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Left2","smoothed":false,"userAdded":false},{"file":"assets/01Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Left3","smoothed":false,"userAdded":false},{"file":"assets/01Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Left4","smoothed":false,"userAdded":false},{"file":"assets/01Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Up","smoothed":false,"userAdded":false},{"file":"assets/01Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Up2","smoothed":false,"userAdded":false},{"file":"assets/01Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Up3","smoothed":false,"userAdded":false},{"file":"assets/01Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Up4","smoothed":false,"userAdded":false},{"file":"assets/02Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Down","smoothed":false,"userAdded":false},{"file":"assets/02Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Down2","smoothed":false,"userAdded":false},{"file":"assets/02Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Down3","smoothed":false,"userAdded":false},{"file":"assets/02Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Down4","smoothed":false,"userAdded":false},{"file":"assets/02Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Left","smoothed":false,"userAdded":false},{"file":"assets/02Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Left2","smoothed":false,"userAdded":false},{"file":"assets/02Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Left3","smoothed":false,"userAdded":false},{"file":"assets/02Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Left4","smoothed":false,"userAdded":false},{"file":"assets/02Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Up","smoothed":false,"userAdded":false},{"file":"assets/02Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Up2","smoothed":false,"userAdded":false},{"file":"assets/02Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Up3","smoothed":false,"userAdded":false},{"file":"assets/02Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Up4","smoothed":false,"userAdded":false},{"file":"assets/03Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Down","smoothed":false,"userAdded":false},{"file":"assets/03Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Down2","smoothed":false,"userAdded":false},{"file":"assets/03Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Down3","smoothed":false,"userAdded":false},{"file":"assets/03Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Down4","smoothed":false,"userAdded":false},{"file":"assets/03Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Left","smoothed":false,"userAdded":false},{"file":"assets/03Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Left2","smoothed":false,"userAdded":false},{"file":"assets/03Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Left3","smoothed":false,"userAdded":false},{"file":"assets/03Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Left4","smoothed":false,"userAdded":false},{"file":"assets/03Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Up","smoothed":false,"userAdded":false},{"file":"assets/03Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Up2","smoothed":false,"userAdded":false},{"file":"assets/03Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Up3","smoothed":false,"userAdded":false},{"file":"assets/03Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Up4","smoothed":false,"userAdded":false},{"file":"assets/04Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Down","smoothed":false,"userAdded":false},{"file":"assets/04Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Down2","smoothed":false,"userAdded":false},{"file":"assets/04Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Down3","smoothed":false,"userAdded":false},{"file":"assets/04Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Down4","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite2","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite3","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite4","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite5.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite5","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite6.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite6","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite7.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite7","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite8.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite8","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite9.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite9","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite10.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite10","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite11.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite11","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite12.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite12","smoothed":false,"userAdded":false},{"file":"assets/05Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Left","smoothed":false,"userAdded":false},{"file":"assets/05Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Left2","smoothed":false,"userAdded":false},{"file":"assets/05Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Left3","smoothed":false,"userAdded":false},{"file":"assets/05Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Left4","smoothed":false,"userAdded":false},{"file":"assets/05Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Up","smoothed":false,"userAdded":false},{"file":"assets/05Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Up2","smoothed":false,"userAdded":false},{"file":"assets/05Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Up3","smoothed":false,"userAdded":false},{"file":"assets/05Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Up4","smoothed":false,"userAdded":false},{"file":"assets/06Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Down","smoothed":false,"userAdded":false},{"file":"assets/06Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Down2","smoothed":false,"userAdded":false},{"file":"assets/06Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Down3","smoothed":false,"userAdded":false},{"file":"assets/06Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Down4","smoothed":false,"userAdded":false},{"file":"assets/06Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Left","smoothed":false,"userAdded":false},{"file":"assets/06Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Left2","smoothed":false,"userAdded":false},{"file":"assets/06Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Left3","smoothed":false,"userAdded":false},{"file":"assets/06Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Left4","smoothed":false,"userAdded":false},{"file":"assets/06Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Up","smoothed":false,"userAdded":false},{"file":"assets/06Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Up2","smoothed":false,"userAdded":false},{"file":"assets/06Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Up3","smoothed":false,"userAdded":false},{"file":"assets/06Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Up4","smoothed":false,"userAdded":false},{"file":"assets/07Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Down","smoothed":false,"userAdded":false},{"file":"assets/07Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Down2","smoothed":false,"userAdded":false},{"file":"assets/07Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Down3","smoothed":false,"userAdded":false},{"file":"assets/07Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Down4","smoothed":false,"userAdded":false},{"file":"assets/07Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Left","smoothed":false,"userAdded":false},{"file":"assets/07Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Left2","smoothed":false,"userAdded":false},{"file":"assets/07Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Left3","smoothed":false,"userAdded":false},{"file":"assets/07Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Left4","smoothed":false,"userAdded":false},{"file":"assets/07Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Up","smoothed":false,"userAdded":false},{"file":"assets/07Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Up2","smoothed":false,"userAdded":false},{"file":"assets/07Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Up3","smoothed":false,"userAdded":false},{"file":"assets/07Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Up4","smoothed":false,"userAdded":false},{"file":"assets/08Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Down","smoothed":false,"userAdded":false},{"file":"assets/08Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Down2","smoothed":false,"userAdded":false},{"file":"assets/08Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Down3","smoothed":false,"userAdded":false},{"file":"assets/08Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Down4","smoothed":false,"userAdded":false},{"file":"assets/08Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Left","smoothed":false,"userAdded":false},{"file":"assets/08Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Left2","smoothed":false,"userAdded":false},{"file":"assets/08Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Left3","smoothed":false,"userAdded":false},{"file":"assets/08Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Left4","smoothed":false,"userAdded":false},{"file":"assets/08Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Up","smoothed":false,"userAdded":false},{"file":"assets/08Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Up2","smoothed":false,"userAdded":false},{"file":"assets/08Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Up3","smoothed":false,"userAdded":false},{"file":"assets/08Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Up4","smoothed":false,"userAdded":false},{"file":"assets/09Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Down","smoothed":false,"userAdded":false},{"file":"assets/09Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Down2","smoothed":false,"userAdded":false},{"file":"assets/09Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Down3","smoothed":false,"userAdded":false},{"file":"assets/09Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Down4","smoothed":false,"userAdded":false},{"file":"assets/09Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Left","smoothed":false,"userAdded":false},{"file":"assets/09Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Left2","smoothed":false,"userAdded":false},{"file":"assets/09Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Left3","smoothed":false,"userAdded":false},{"file":"assets/09Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Left4","smoothed":false,"userAdded":false},{"file":"assets/09Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Up","smoothed":false,"userAdded":false},{"file":"assets/09Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Up2","smoothed":false,"userAdded":false},{"file":"assets/09Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Up3","smoothed":false,"userAdded":false},{"file":"assets/09Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Up4","smoothed":false,"userAdded":false},{"file":"assets/01Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Right","smoothed":false,"userAdded":false},{"file":"assets/01Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Right2","smoothed":false,"userAdded":false},{"file":"assets/01Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Right3","smoothed":false,"userAdded":false},{"file":"assets/01Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Right4","smoothed":false,"userAdded":false},{"file":"assets/06Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Right","smoothed":false,"userAdded":false},{"file":"assets/06Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Right2","smoothed":false,"userAdded":false},{"file":"assets/06Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Right3","smoothed":false,"userAdded":false},{"file":"assets/06Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Right4","smoothed":false,"userAdded":false},{"file":"assets/02Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Right","smoothed":false,"userAdded":false},{"file":"assets/02Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Right2","smoothed":false,"userAdded":false},{"file":"assets/02Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Right3","smoothed":false,"userAdded":false},{"file":"assets/02Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Right4","smoothed":false,"userAdded":false},{"file":"assets/08Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Right","smoothed":false,"userAdded":false},{"file":"assets/08Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Right2","smoothed":false,"userAdded":false},{"file":"assets/08Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Right3","smoothed":false,"userAdded":false},{"file":"assets/08Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Right4","smoothed":false,"userAdded":false},{"file":"assets/09Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Right","smoothed":false,"userAdded":false},{"file":"assets/09Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Right2","smoothed":false,"userAdded":false},{"file":"assets/09Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Right3","smoothed":false,"userAdded":false},{"file":"assets/09Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Right4","smoothed":false,"userAdded":false},{"file":"assets/07Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Right","smoothed":false,"userAdded":false},{"file":"assets/07Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Right2","smoothed":false,"userAdded":false},{"file":"assets/07Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Right3","smoothed":false,"userAdded":false},{"file":"assets/07Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Right4","smoothed":false,"userAdded":false},{"file":"assets/03Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Right","smoothed":false,"userAdded":false},{"file":"assets/03Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Right2","smoothed":false,"userAdded":false},{"file":"assets/03Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Right3","smoothed":false,"userAdded":false},{"file":"assets/03Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Right4","smoothed":false,"userAdded":false},{"file":"assets/05Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Right","smoothed":false,"userAdded":false},{"file":"assets/05Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Right2","smoothed":false,"userAdded":false},{"file":"assets/05Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Right3","smoothed":false,"userAdded":false},{"file":"assets/05Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Right4","smoothed":false,"userAdded":false},{"file":"assets/04Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Right","smoothed":false,"userAdded":false},{"file":"assets/04Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Right2","smoothed":false,"userAdded":false},{"file":"assets/04Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Right3","smoothed":false,"userAdded":false},{"file":"assets/04Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Right4","smoothed":false,"userAdded":false}]},"objects":[{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_player","persistentUuid":"d03a1af6-4615-4ebe-92c5-a2678ed69ba6","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"player_id","persistentUuid":"946a6f26-ee26-4e20-811d-9674dc90ace4","type":"number","value":0.0}],"effects":[],"behaviors":[{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior","acceleration":99999.0,"allowDiagonals":false,"angleOffset":0.0,"angularMaxSpeed":180.0,"customIsometryAngle":30.0,"deceleration":99999.0,"ignoreDefaultControls":false,"maxSpeed":200.0,"movementAngleOffset":0.0,"rotateObject":false,"useLegacyTurnBack":false,"viewpoint":"TopDown"}],"animations":[{"name":"NewSprite","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"NewSprite2","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":64.0,"y":0.0},{"x":64.0,"y":64.0},{"x":0.0,"y":64.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_otherPlayers","persistentUuid":"1a256d41-16be-45af-a2c0-d555c42c2cb0","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"player_id","persistentUuid":"d4f11f2a-8cdb-4dd0-a45c-393c3de1719a","type":"number","value":0.0}],"effects":[],"behaviors":[{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior","acceleration":99999.0,"allowDiagonals":false,"angleOffset":0.0,"angularMaxSpeed":180.0,"customIsometryAngle":30.0,"deceleration":99999.0,"ignoreDefaultControls":true,"maxSpeed":200.0,"movementAngleOffset":0.0,"rotateObject":false,"useLegacyTurnBack":false,"viewpoint":"TopDown"}],"animations":[{"name":"NewSprite","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"NewSprite2","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":64.0,"y":0.0},{"x":64.0,"y":64.0},{"x":0.0,"y":64.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_door","persistentUuid":"8b7cf3ce-40c8-4a17-925a-0c70b66838a4","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"var_doorway","persistentUuid":"06f73534-50b8-404f-9883-0d70149713d7","type":"string","value":"000001"}],"effects":[],"behaviors":[],"animations":[{"name":"NewSprite","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"NewSprite3","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":4.0,"y":3.0},{"x":62.0,"y":3.0},{"x":62.0,"y":60.0},{"x":4.0,"y":60.0}]]}]}]}]},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Logout","persistentUuid":"c920ea77-7ccf-456f-aabb-496c1250d6f1","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Log Out","PressedLabelOffsetY":2.0}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Fullscreen","persistentUuid":"56fd8b1d-175c-4840-97fe-f76e7d829e9f","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"[ ]","PressedLabelOffsetY":2.0}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"spr_player"},{"objectName":"spr_otherPlayers"},{"objectName":"spr_door"},{"objectName":"btn_Logout"},{"objectName":"btn_Fullscreen"}]},"objectsGroups":[],"variables":[{"name":"var_playerInfo","persistentUuid":"1fb97af7-5f6a-4907-9164-628713a29d54","type":"structure","children":[]},{"name":"var_jsonAddress","persistentUuid":"78b897a8-e843-4a0c-be02-63ddb7f70eae","type":"string","value":"http://192.168.3.250:3000"},{"name":"var_mqttAddress","persistentUuid":"0048bbcb-0ca6-4b6e-a90e-be2218ce7a47","type":"string","value":"192.168.3.250:9001"},{"name":"var_RTC","persistentUuid":"1ba271fb-6df8-4662-8e0c-d6554e2702c9","type":"structure","children":[]},{"name":"var_date","persistentUuid":"7a18cea8-1a20-46d8-a276-77880277c26a","type":"number","value":0.0},{"name":"var_lastDirection","type":"string","value":""}],"layouts":[{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Login","name":"Login","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.8416428125373118,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_username","persistentUuid":"43ebc160-5d2f-4769-8bab-6f2b03b0006b","type":"string","value":""},{"name":"var_password","persistentUuid":"714571eb-af1a-4f97-aead-d7b9f5de9afb","type":"string","value":""},{"name":"var_jsonReply","persistentUuid":"2898cef6-8fdf-4718-bf6b-1cdb5e030acb","type":"string","value":""},{"name":"var_jsonParse","persistentUuid":"5b1b0b96-6ef9-411f-bc42-b287f548f2b6","type":"structure","children":[]},{"name":"var_passwordHash","persistentUuid":"1cbf470d-a6da-4267-a060-87738afd570e","type":"string","value":""}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_Username","persistentUuid":"632731bc-b1bd-4383-9acd-12cd653efcdf","width":0.0,"x":480.0,"y":192.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_Password","persistentUuid":"44c2f0bc-a292-45be-8cf5-c4d8893b1ed3","width":0.0,"x":480.0,"y":288.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_Login","persistentUuid":"b3d700fe-d3d1-4e3c-8961-1305b2ae4168","width":0.0,"x":560.0,"y":384.0,"zOrder":3,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_Register","persistentUuid":"9b8441ec-dfee-4296-bdd5-6e1b0425d56d","width":0.0,"x":560.0,"y":480.0,"zOrder":4,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_lblServerStatus","persistentUuid":"2b11514e-c2b0-4bbe-b292-93c3240449d2","width":0.0,"x":32.0,"y":640.0,"zOrder":5,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_lblMQTTStatus","persistentUuid":"c02d52f2-3e7a-45ec-ab25-e274a2aba45b","width":0.0,"x":32.0,"y":672.0,"zOrder":6,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_ServerStatus","persistentUuid":"178406cc-fe38-44d9-ab83-fac3479e6cba","width":0.0,"x":112.0,"y":640.0,"zOrder":7,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_MQTTStatus","persistentUuid":"c4ecc711-8ead-4310-b1b4-4e528d66eab6","width":0.0,"x":112.0,"y":672.0,"zOrder":8,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_gameTitle","persistentUuid":"9a6eb8ef-3e39-479e-9631-b2e2cc1fa161","width":0.0,"x":320.0,"y":84.0,"zOrder":10,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_date","persistentUuid":"d824c9ba-8961-4047-ba4c-13e66b8f44d3","width":0.0,"x":32.0,"y":16.0,"zOrder":12,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","name":"txtbx_Username","persistentUuid":"c3ee77af-838b-4e52-84e5-9edfdec72fdf","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Username","fontResourceName":"","fontSize":20.0,"inputType":"text","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"","name":"txtbx_Password","persistentUuid":"ffd66276-22b2-46bc-bc58-2010837dc5f2","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Password","fontResourceName":"","fontSize":20.0,"inputType":"password","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Login","persistentUuid":"ae3aaba7-ff4b-463f-bb17-eb233ab5a68c","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Login","PressedLabelOffsetY":2.0}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Register","persistentUuid":"548a436e-bc77-426e-9048-9501732084ed","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Register","PressedLabelOffsetY":2.0}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_lblServerStatus","persistentUuid":"e45fe9f3-cdc8-4d58-9e6a-ba2b71e3e734","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Server:","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Server:","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_lblMQTTStatus","persistentUuid":"a5dcdfbf-e3c2-4853-a7a2-113be9442012","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Broker:","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Broker:","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bold":true,"italic":false,"name":"txt_ServerStatus","persistentUuid":"0f4b8881-8813-490b-9b44-21561d04f0c4","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"OFFLINE","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":255},"content":{"bold":true,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"OFFLINE","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"255;0;0"}},{"assetStoreId":"","bold":true,"italic":false,"name":"txt_MQTTStatus","persistentUuid":"3dd0f168-5e38-4ae4-955c-1eb13063c3bc","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"OFFLINE","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":255},"content":{"bold":true,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"OFFLINE","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"255;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_debug","persistentUuid":"00343022-da8d-4af2-8a21-4e1dd750735a","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_gameTitle","persistentUuid":"574c3ce1-cb11-4dab-a2ec-f195258ed913","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"SQUARE GAME: MULTIPLAYER!","font":"","textAlignment":"left","characterSize":40.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"SQUARE GAME: MULTIPLAYER!","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":40.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_date","persistentUuid":"604cf4c5-d211-4b59-bc56-bdf7bf611ca7","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Date","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Date","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txtbx_Username"},{"objectName":"txtbx_Password"},{"objectName":"btn_Login"},{"objectName":"btn_Register"},{"objectName":"txt_lblServerStatus"},{"objectName":"txt_ServerStatus"},{"objectName":"txt_lblMQTTStatus"},{"objectName":"txt_MQTTStatus"},{"objectName":"txt_debug"},{"objectName":"txt_gameTitle"},{"objectName":"txt_date"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"RegisterButton","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Register",""]}],"actions":[{"type":{"value":"Scene"},"parameters":["","\"Register\"",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Server Status","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"MQTT::connect"},"parameters":["","var_mqttAddress","\"\"","",""]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users\"","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/server\"","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"Wait"},"parameters":[".1"]},{"type":{"value":"JSONToVariableStructure2"},"parameters":["var_jsonReply","var_RTC"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_jsonReply","!=","\"[]\""]}],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_ServerStatus","Text","=","\"ONLINE\""]},{"type":{"value":"TextObject::ChangeColor"},"parameters":["txt_ServerStatus","\"0;255;0\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"MQTT::isConnected"},"parameters":["",""]}],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_MQTTStatus","Text","=","\"ONLINE\""]},{"type":{"value":"TextObject::ChangeColor"},"parameters":["txt_MQTTStatus","\"0;255;0\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Log In","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Login",""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_Username","Text","!=","\"\""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_Password","Text","!=","\"\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["var_username","=","txtbx_Username.Text::Value()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_password","=","txtbx_Password.Text::Value()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_passwordHash","=","Hash::GenerateHashSHA256(var_password)"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users?username=\" + var_username +\"&password=\" + var_passwordHash","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"Wait"},"parameters":[".1"]},{"type":{"value":"JSONToVariableStructure2"},"parameters":["var_jsonReply","var_jsonParse"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_jsonParse[0].username","=","var_username"]},{"type":{"value":"StringVariable"},"parameters":["var_jsonParse[0].password","=","var_passwordHash"]}],"actions":[{"type":{"value":"JSONToVariableStructure2"},"parameters":["var_jsonReply","var_playerInfo"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"online\\\":true}\"","\"PATCH\"","\"application/json\"","",""]},{"type":{"value":"Scene"},"parameters":["","\"Logged in\"",""]}]}],"parameters":[]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Fullscreen",""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"IsFullScreen"},"parameters":[""]}],"actions":[{"type":{"value":"SetFullScreen"},"parameters":["","yes",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"IsFullScreen"},"parameters":[""]}],"actions":[{"type":{"value":"SetFullScreen"},"parameters":["","no",""]}]}]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Date/Time","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_date","Text","=","var_RTC[\"hour\"]+\":\"+var_RTC[\"minute\"]"]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Register","name":"Register","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.6040838749988885,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_password01","persistentUuid":"9b38d1eb-2fc4-4744-b61a-b901092ab536","type":"string","value":""},{"name":"var_password02","persistentUuid":"73bfe239-ff40-4b6f-8505-ea724078f6ee","type":"string","value":""},{"name":"var_username","persistentUuid":"79b2dd33-921b-4817-9e5c-ebaa38a21834","type":"string","value":""},{"name":"var_jsonReply","persistentUuid":"e4d7e8bd-3595-4aef-9ec7-0fb470bb3ecd","type":"string","value":"[]"},{"name":"var_jsonParse","persistentUuid":"8a602891-d0e3-4492-a2b0-14d0f4fe64fb","type":"array","children":[]},{"name":"var_colorGen","persistentUuid":"5381318f-fa30-4456-8351-f814f8ecadbd","type":"string","value":""},{"name":"var_passwordHash","persistentUuid":"414331d7-6f44-4ecc-8c92-b5493246c615","type":"string","value":""}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_regUsername","persistentUuid":"66377f44-b1e3-4eab-a9c0-bc3752017e4e","width":0.0,"x":480.0,"y":322.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_regPassword01","persistentUuid":"b2099cad-5ab7-4a38-b939-31869e362657","width":0.0,"x":480.0,"y":368.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_regRegister","persistentUuid":"41a1f2cd-107b-4058-8bc6-eb51487ac180","width":0.0,"x":560.0,"y":480.0,"zOrder":4,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_RegMessageUser","persistentUuid":"4b4c3bd0-ffdf-440c-97a6-1992a4ae80d8","width":0.0,"x":512.0,"y":656.0,"zOrder":5,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_Back","persistentUuid":"af79ebf6-4ccf-4335-bab9-df40fbb263d8","width":0.0,"x":560.0,"y":560.0,"zOrder":6,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"spr_sqaure","persistentUuid":"9c413fc9-26ab-4cc4-b4c8-b84a8ac651ef","width":0.0,"x":592.0,"y":112.0,"zOrder":8,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_NewColor","persistentUuid":"248ac7e7-6ac9-4c9f-a7ec-a83df84e6d27","width":0.0,"x":560.0,"y":224.0,"zOrder":9,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_regPassword02","persistentUuid":"7106be72-f61f-4ab7-8659-4b87a1b8668b","width":0.0,"x":480.0,"y":416.0,"zOrder":11,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_RegMessagePassword","persistentUuid":"16a3c795-1cfa-4633-bc35-3a823ceaf916","width":0.0,"x":512.0,"y":624.0,"zOrder":12,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_RegMessageSuccess","persistentUuid":"268fa5ba-bfd7-467f-80e6-1bf428f66436","width":0.0,"x":512.0,"y":624.0,"zOrder":13,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_JSONReply","persistentUuid":"be01192a-d6ad-4d98-8ef3-44c5c5fad5c2","width":0.0,"x":84.0,"y":105.0,"zOrder":14,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","name":"txtbx_regUsername","persistentUuid":"5bfb2de7-1947-4660-b896-ccac584f70f5","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Username","fontResourceName":"","fontSize":20.0,"inputType":"text","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"","name":"txtbx_regPassword01","persistentUuid":"e32982f7-fc73-4866-9b15-fd09d926a819","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Password","fontResourceName":"","fontSize":20.0,"inputType":"password","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_regRegister","persistentUuid":"f4f70ee8-da7b-4666-8780-a69ad9879791","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Register","PressedLabelOffsetY":2.0}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_RegMessageUser","persistentUuid":"cb2b72b5-1e20-4241-b4e3-3406a240cb33","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Username is not available","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":0,"r":255},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Username is not available","font":"","textAlignment":"center","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"255;0;0"}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Back","persistentUuid":"a735af63-2e06-4548-a596-7eb24268783a","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Back","PressedLabelOffsetY":2.0}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_JSONReply","persistentUuid":"cde1bbef-cbc8-4fc3-9d5b-d0f2c9e02dec","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"[]","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"[]","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_sqaure","persistentUuid":"8e29f65a-9088-4d1e-b7b8-b947d7f9b407","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[],"animations":[{"name":"NewSprite","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"NewSprite","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":64.0,"y":0.0},{"x":64.0,"y":64.0},{"x":0.0,"y":64.0}]]}]}]}]},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_NewColor","persistentUuid":"5428983b-7262-40a0-9d70-e7b3aa5d0175","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"New Color","PressedLabelOffsetY":2.0}},{"assetStoreId":"","name":"txtbx_regPassword02","persistentUuid":"5f39eff0-637f-46e3-b032-923b512aaa70","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Repeat Password","fontResourceName":"","fontSize":20.0,"inputType":"password","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_RegMessagePassword","persistentUuid":"366c40cc-d4d1-4858-8b9c-5c959e69c941","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Passwords do not match","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":0,"r":255},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Passwords do not match","font":"","textAlignment":"center","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"255;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_RegMessageSuccess","persistentUuid":"bb5d6c4b-2eb6-4005-a464-2d3392769eb1","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Registration Successful!\nGoing back to login screen","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":255,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Registration Successful!\nGoing back to login screen","font":"","textAlignment":"center","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;255;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txtbx_regUsername"},{"objectName":"spr_sqaure"},{"objectName":"txtbx_regPassword01"},{"objectName":"txtbx_regPassword02"},{"objectName":"btn_regRegister"},{"objectName":"btn_Back"},{"objectName":"btn_NewColor"},{"objectName":"txt_RegMessageUser"},{"objectName":"txt_RegMessageSuccess"},{"objectName":"txt_RegMessagePassword"},{"objectName":"txt_JSONReply"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Hide Registration Message/Random Color Gen","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"Hide"},"parameters":["txt_RegMessageUser"]},{"type":{"value":"Hide"},"parameters":["txt_RegMessagePassword"]},{"type":{"value":"Hide"},"parameters":["txt_RegMessageSuccess"]},{"type":{"value":"SetCenterX"},"parameters":["txt_RegMessageUser","=","btn_Back.CenterX()"]},{"type":{"value":"SetCenterX"},"parameters":["txt_RegMessagePassword","=","btn_Back.CenterX()"]},{"type":{"value":"SetCenterX"},"parameters":["txt_RegMessageSuccess","=","btn_Back.CenterX()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_colorGen","=","ToString(RandomInRange(0,255)) + \";\" + ToString(RandomInRange(0,255)) + \";\" + ToString(RandomInRange(0,255))"]},{"type":{"value":"ChangeColor"},"parameters":["spr_sqaure","var_colorGen"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Back Button","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Back",""]}],"actions":[{"type":{"value":"Scene"},"parameters":["","\"Login\"",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Randomize Color","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_NewColor",""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["var_colorGen","=","ToString(RandomInRange(0,255)) + \";\" + ToString(RandomInRange(0,255)) + \";\" + ToString(RandomInRange(0,255))"]},{"type":{"value":"ChangeColor"},"parameters":["spr_sqaure","var_colorGen"]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Registration","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_regRegister",""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_regUsername","Text","!=","\"\""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_regPassword01","Text","!=","\"\""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_regPassword02","Text","!=","\"\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["var_username","=","txtbx_regUsername.Text::Value()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_password01","=","txtbx_regPassword01.Text::Value()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_password02","=","txtbx_regPassword02.Text::Value()"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users?username=\" + var_username","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"Wait"},"parameters":[".1"]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_JSONReply","Text","=","var_jsonReply"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_jsonReply","!=","\"[]\""]}],"actions":[{"type":{"value":"Show"},"parameters":["txt_RegMessageUser",""]}]},{"type":"BuiltinCommonInstructions::Else","conditions":[],"actions":[{"type":{"value":"Hide"},"parameters":["txt_RegMessageUser"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_password01","!=","var_password02"]}],"actions":[{"type":{"value":"Show"},"parameters":["txt_RegMessagePassword",""]}]},{"type":"BuiltinCommonInstructions::Else","conditions":[],"actions":[{"type":{"value":"Hide"},"parameters":["txt_RegMessagePassword"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_jsonReply","=","\"[]\""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"Show"},"parameters":["txt_RegMessageSuccess",""]},{"type":{"value":"SetStringVariable"},"parameters":["var_passwordHash","=","Hash::GenerateHashSHA256(var_password01)"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users\"","\"{\\\"username\\\":\\\"\" + var_username + \"\\\",\\\"password\\\":\\\"\" + var_passwordHash+ \"\\\",\\\"color\\\":\\\"\" + var_colorGen + \"\\\",\\\"room\\\":\\\"000000\\\",\\\"last_room\\\":\\\"000000\\\"}\"","\"POST\"","\"application/json\"","",""]},{"type":{"value":"Wait"},"parameters":["3"]},{"type":{"value":"Scene"},"parameters":["","\"Login\"",""]}]}]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Logged_32in","name":"Logged in","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.546875,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"password01","persistentUuid":"9b38d1eb-2fc4-4744-b61a-b901092ab536","type":"string","value":""},{"name":"password02","persistentUuid":"73bfe239-ff40-4b6f-8505-ea724078f6ee","type":"string","value":""},{"name":"username","persistentUuid":"79b2dd33-921b-4817-9e5c-ebaa38a21834","type":"string","value":""},{"name":"var_jsonReply","persistentUuid":"e4d7e8bd-3595-4aef-9ec7-0fb470bb3ecd","type":"string","value":""},{"name":"var_jsonParsed","persistentUuid":"a00f1f38-a6b3-4bd6-a53c-f2f3e63a9055","type":"array","children":[]}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_loggedIn","persistentUuid":"f1b704b5-1bb2-4076-9230-0c0f7551a2d0","width":0.0,"x":576.0,"y":336.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"txt_loggedIn","persistentUuid":"886a7a42-1339-4fc5-971d-67526b782479","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"LOGGED IN!","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"LOGGED IN!","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txt_loggedIn"}]},"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"Wait"},"parameters":["3"]},{"type":{"value":"Scene"},"parameters":["","var_playerInfo[0].room",""]}]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"_4800000","name":"000000","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.6672773998330006,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_mqttParse","persistentUuid":"62bd9deb-3848-4176-9eef-2adf2b38198b","type":"structure","children":[]},{"name":"var_jsonParse","persistentUuid":"0563153c-5ac3-487f-ab2a-050e5b806bc7","type":"structure","children":[]},{"name":"var_jsonReply","persistentUuid":"f4f4161d-90a5-4937-abfe-755a64fb6f2f","type":"string","value":""},{"name":"var_child","persistentUuid":"457c6438-da2b-4d26-af01-34653736b679","type":"structure","children":[]},{"name":"var_childName","persistentUuid":"a7769c54-2f75-4661-bd4f-af2bf1d036d3","type":"string","value":""}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"spr_door","persistentUuid":"1691a9cb-54f2-444c-9c3f-38f4edf26eb6","width":0.0,"x":1168.0,"y":352.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_debug","persistentUuid":"9ba688b3-55ca-4771-8b64-7c7e4ff5efac","width":0.0,"x":112.0,"y":624.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"UI","name":"btn_Logout","persistentUuid":"acb3eb14-97fe-4a1c-b4c5-f01b9c7c6eeb","width":0.0,"x":16.0,"y":16.0,"zOrder":3,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"txt_debug","persistentUuid":"73e827f1-d8f8-45e5-95f5-ff8a2715886b","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txt_debug"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Scene Start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Spawn Logic"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"null\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","var_playerInfo[0].x","var_playerInfo[0].y",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"000000\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","560","352",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"000001\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","1088","352",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]}]}],"parameters":[]},{"type":"BuiltinCommonInstructions::Link","include":{"includeConfig":0},"target":"Functions"}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]},{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"UI","renderingType":"","visibility":true,"cameras":[],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"_4800001","name":"000001","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.6672773998329975,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_jsonReply","persistentUuid":"600e1cff-2b6c-4e86-aa45-0926f9210a1d","type":"string","value":""},{"name":"var_jsonParse","persistentUuid":"9b38abfa-427b-4c21-bd59-ddc7057a418e","type":"structure","children":[]},{"name":"var_mqttParse","persistentUuid":"5c8c99af-3003-442d-bd7f-d123dea72ac4","type":"structure","children":[]},{"name":"var_child","persistentUuid":"fb409cbe-b641-4d67-9c0e-d640b65f7cbe","type":"structure","children":[]},{"name":"var_childName","persistentUuid":"dc06c4ec-9998-46e8-97b5-0ae6d6088f1e","type":"string","value":""}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"spr_door","persistentUuid":"1691a9cb-54f2-444c-9c3f-38f4edf26eb6","width":0.0,"x":32.0,"y":352.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[{"name":"var_doorway","type":"string","value":"000000"}]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"UI","name":"btn_Logout","persistentUuid":"7c951776-884b-4af0-a13a-97e5ee085499","width":0.0,"x":16.0,"y":16.0,"zOrder":3,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"txt_debug","persistentUuid":"9ec31fcd-7fdb-4daa-88e5-561ccee06c4c","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txt_debug"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Scene Start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Spawn Logic"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"null\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","var_playerInfo[0].x","var_playerInfo[0].y",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"000001\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","1088","352",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"000000\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","112","352",""]}]}]}],"parameters":[]},{"type":"BuiltinCommonInstructions::Link","include":{"includeConfig":0},"target":"Functions"}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]},{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"UI","renderingType":"","visibility":true,"cameras":[],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Functions","name":"Functions","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":false,"gridType":"rectangular","gridWidth":32.0,"gridHeight":32.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":false,"zoomFactor":0.546875,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_jsonReply","persistentUuid":"e04c3e03-0cb7-4e3d-8f02-7bd32268195c","type":"string","value":""},{"name":"var_jsonParse","persistentUuid":"becd4ac5-49ec-4fd7-b926-45259680bb42","type":"structure","children":[]},{"name":"var_mqttParse","persistentUuid":"b4fe2c70-e8ab-4665-9d0a-7126bb52f64b","type":"structure","children":[]},{"name":"var_child","persistentUuid":"64d0682b-fde0-404e-9b34-17034c997c4c","type":"structure","children":[]},{"name":"var_childName","persistentUuid":"792ced2c-6b39-44d1-8550-02127dd84b45","type":"string","value":""}],"instances":[],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"txt_debug","persistentUuid":"29da99d2-6fb0-4d86-841b-b57124673767","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txt_debug"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Scene Start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"ChangeColor"},"parameters":["spr_player","var_playerInfo[0].color"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"x\\\":\\\"\" + ToString(round(spr_player.X()))+ \"\\\",\\\"y\\\":\\\"\" + ToString(round(spr_player.Y())) + \"\\\"}\"","\"PATCH\"","\"application/json\"","",""]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users?online=true&room=\"+CurrentSceneName()","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"Wait"},"parameters":[".1"]},{"type":{"value":"JSONToVariableStructure2"},"parameters":["var_jsonReply","var_jsonParse"]}],"events":[{"type":"BuiltinCommonInstructions::ForEachChildVariable","iterableVariableName":"var_jsonParse","valueIteratorVariableName":"var_child","keyIteratorVariableName":"var_childName","conditions":[],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_child[\"id\"]","!=","var_playerInfo[0].id"]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_otherPlayers","var_child[\"x\"]","var_child[\"y\"]",""]},{"type":{"value":"ChangeColor"},"parameters":["spr_otherPlayers","var_child[\"color\"]"]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_child[\"id\"]"]}]}]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"MQTT","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"MQTT::isConnected"},"parameters":["",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::subscribe"},"parameters":["","\"/game/rooms/\"+CurrentSceneName()","","no",""]},{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"join\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \",\\\"color\\\":\\\"\" + var_playerInfo[0].color + \"\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]}]},{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"MQTT on button press"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_player","TopDownMovement","0","0"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"direction\\\":\\\"right\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_player","TopDownMovement","90","0"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"direction\\\":\\\"down\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_player","TopDownMovement","180","0"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"direction\\\":\\\"left\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_player","TopDownMovement","270","0"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"direction\\\":\\\"up\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_stop\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"MQTT::onMessage"},"parameters":["","\"/game/rooms/\"+CurrentSceneName()",""]}],"actions":[{"type":{"value":"JSONToVariableStructure2"},"parameters":["MQTT::GetLastMessage(\"/game/rooms/\"+CurrentSceneName())","var_mqttParse"]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_debug","Text","=","MQTT::GetLastMessage(\"/game/rooms/\"+CurrentSceneName())"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"player_id\"]","!=","var_playerInfo[0].id"]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_start\""]},{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"direction\"]","=","\"right\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"AddForceXY"},"parameters":["spr_otherPlayers","200","0","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_start\""]},{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"direction\"]","=","\"left\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"AddForceXY"},"parameters":["spr_otherPlayers","-200","0","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_start\""]},{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"direction\"]","=","\"up\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"AddForceXY"},"parameters":["spr_otherPlayers","0","-200","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_start\""]},{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"direction\"]","=","\"down\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"AddForceXY"},"parameters":["spr_otherPlayers","0","200","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_stop\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"SetXY"},"parameters":["spr_otherPlayers","=","var_mqttParse[\"x\"]","=","var_mqttParse[\"y\"]"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"join\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_otherPlayers","var_mqttParse[\"x\"]","var_mqttParse[\"y\"]",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]},{"type":{"value":"ChangeColor"},"parameters":["spr_otherPlayers","var_mqttParse[\"color\"]"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"leave\""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::ForEach","object":"spr_otherPlayers","conditions":[{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"Delete"},"parameters":["spr_otherPlayers",""]}]}]}]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Doorways","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"CollisionNP"},"parameters":["spr_player","spr_door","","",""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["var_playerInfo[0].last_room","=","var_playerInfo[0].room"]},{"type":{"value":"SetStringVariable"},"parameters":["var_playerInfo[0].room","=","spr_door.var_doorway"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"room\\\":\\\"\" + var_playerInfo[0].room + \"\\\",\\\"last_room\\\":\\\"\" + var_playerInfo[0].last_room + \"\\\"}\"","\"PATCH\"","\"application/json\"","",""]},{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"leave\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"Scene"},"parameters":["","spr_door.var_doorway",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Log Out","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Logout",""]}],"actions":[{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"online\\\":false,\\\"last_room\\\":\\\"null\\\",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \"}\"","\"PATCH\"","\"application/json\"","",""]},{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"leave\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"Scene"},"parameters":["","\"Login\"",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Update XY","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"x\\\":\\\"\" + ToString(round(spr_player.X()))+ \"\\\",\\\"y\\\":\\\"\" + ToString(round(spr_player.Y())) + \"\\\"}\"","\"PATCH\"","\"application/json\"","",""]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Sprite_32Test","name":"Sprite Test","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":4.4185594058554049,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"spr_playerSprite","persistentUuid":"676e82ba-e2ab-48ad-a0b7-27b03e0d81c6","width":0.0,"x":688.0,"y":288.0,"zOrder":5,"numberProperties":[],"stringProperties":[],"initialVariables":[{"name":"var_spriteIndex","persistentUuid":"8c121fd4-14b0-44de-8189-7e88a869f900","type":"string","value":"04"}]}],"objects":[{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_playerSprite","persistentUuid":"45bd84a7-bbe2-422a-ba57-7875686cead0","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"var_spriteIndex","persistentUuid":"8c121fd4-14b0-44de-8189-7e88a869f900","type":"string","value":"08"}],"effects":[],"behaviors":[{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior","acceleration":99999.0,"allowDiagonals":false,"angleOffset":0.0,"angularMaxSpeed":180.0,"customIsometryAngle":30.0,"deceleration":99999.0,"ignoreDefaultControls":false,"maxSpeed":75.0,"movementAngleOffset":0.0,"rotateObject":false,"useLegacyTurnBack":false,"viewpoint":"TopDown"}],"animations":[{"name":"01Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"01Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"01Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"01Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"02Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"02Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"02Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"02Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"03Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"03Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"03Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"03Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"04Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"04Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"04Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"04Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite5","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite6","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite7","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite8","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"05Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite9","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite10","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite11","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite12","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"05Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"05Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"05Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"06Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"06Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"06Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"06Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"07Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"07Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"07Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"07Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"08Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"08Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"08Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"08Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"09Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"09Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"09Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"09Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]}]}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"spr_playerSprite"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Scene Begin","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"ZoomCamera"},"parameters":["","3","",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_spriteIndex + \"Down\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Sprite/Controls","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_playerSprite","TopDownMovement","0",""]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_spriteIndex + \"Right\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_playerSprite","TopDownMovement","180",""]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_spriteIndex + \"Left\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_playerSprite","TopDownMovement","90",""]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_spriteIndex + \"Down\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_playerSprite","TopDownMovement","270",""]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_spriteIndex + \"Up\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_playerSprite","TopDownMovement"]}],"actions":[{"type":{"value":"ChangeSprite"},"parameters":["spr_playerSprite","=","1"]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]}],"externalEvents":[],"eventsFunctionsExtensions":[{"author":"Arthur Pacaud (@arthuro555)","category":"Network","dimension":"","extensionNamespace":"","fullName":"MQTT Client (advanced)","gdevelopVersion":">=5.5.222","helpPath":"","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLW1lc3NhZ2UtZmxhc2giIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjIgNEMyMiAyLjkgMjEuMSAyIDIwIDJINEMyLjkgMiAyIDIuOSAyIDRWMjJMNiAxOEgxNVYxMEgyMlY0TTIyLjUgMTZIMjAuM0wyMiAxMkgxN1YxOEgxOVYyM0wyMi41IDE2WiIgLz48L3N2Zz4=","name":"MQTT","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/message-flash.svg","shortDescription":"MQTT client: connect to broker, publish/subscribe topics, send/receive messages.","version":"1.0.1","description":["This extension wraps [MQTT.js](https://github.com/mqttjs/MQTT.js) to allow connections to a MQTT server and communication via pub/sub. The only transport method is Websockets. Make sure to use a broker that support those!","","## Dataloss","","The dataloss let you chose how to handle data. Due to how the GDevelop event loop is made, only one message per topic can be processed per frame. When dataloss is on, when you get 2 messages from one topic in one frame, only the latest one is remembered. When it is off, the first message is processed and the second is queued for the next frame.","","## QoS (Quality of service)","","Here is how QoS works:",""," - QoS 0 (received at most once): The packet is sent, and that's it. There is no validation about whether it has been received."," - QoS 1 (received at least once): The packet is sent and stored as long as the client has not received a confirmation from the server. MQTT ensures that it will be received, but there can be duplicates."," - QoS 2 (received exactly once): Same as QoS 1 but there is no duplicates.","","About data consumption: QoS 2 will consume more than QoS 1, which will consume more than QoS 0.","","## Test Broker","","You can find a free test broker server over at https://test.mosquitto.org/ - keep in mind, anyone can read and write data sent there, and it offers no uptime guarantees!"],"origin":{"identifier":"MQTT","name":"gdevelop-extension-store"},"tags":["mqtt","iot","connection","networking","pubsub","messaging","online","connect","multiplayer","send","message","recieve","notify","notification","home assistant","smart home","control"],"authorIds":["ZgrsWuRTAkXgeuPV9bo0zuEcA2w1"],"dependencies":[],"globalVariables":[],"sceneVariables":[],"eventsFunctions":[{"fullName":"","functionType":"Action","name":"onFirstSceneLoaded","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["/**"," * @typedef MQTTEvent Corresponds to a message coming from a subcribed topic."," * @property {boolean} loss Descibes how to handle multiple packages in one frame."," * @property {string || Array} data The last message received by that event."," */","","/**"," * The mqtt tools"," * @namespace"," */","gdjs.evtTools.mqtt = {"," /** The current connection to the MQTT broker server */"," connection: null,"," /** "," * The last error that occured "," * @type {string}"," */"," lastError: \"\","," /**"," * A list of events triggered."," * @type {Object.}"," */"," events: {},"," empty: Symbol(\"No event\"),","};","","// MQTT.js: https://github.com/mqttjs/MQTT.js (v5.10.3)","window.mqtt=(()=>{var ys=Object.defineProperty;var Kg=Object.getOwnPropertyDescriptor;var Gg=Object.getOwnPropertyNames;var Qg=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Jt=(t,e)=>{for(var r in e)ys(t,r,{get:e[r],enumerable:!0})},Yg=(t,e,r,i)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let n of Gg(e))!Qg.call(t,n)&&n!==r&&ys(t,n,{get:()=>e[n],enumerable:!(i=Kg(e,n))||i.enumerable});return t};var X=t=>Yg(ys({},\"__esModule\",{value:!0}),t);var _=_e(()=>{});var B={};Jt(B,{_debugEnd:()=>yu,_debugProcess:()=>gu,_events:()=>Ou,_eventsCount:()=>xu,_exiting:()=>Yl,_fatalExceptions:()=>cu,_getActiveHandles:()=>eu,_getActiveRequests:()=>Zl,_kill:()=>ru,_linkedBinding:()=>Gl,_maxListeners:()=>ku,_preload_modules:()=>Cu,_rawDebug:()=>zl,_startProfilerIdleNotifier:()=>bu,_stopProfilerIdleNotifier:()=>wu,_tickCallback:()=>pu,abort:()=>Eu,addListener:()=>Mu,allowedNodeEnvironmentFlags:()=>lu,arch:()=>xl,argv:()=>Ul,argv0:()=>Ru,assert:()=>uu,binding:()=>Fl,chdir:()=>Hl,config:()=>Jl,cpuUsage:()=>$i,cwd:()=>$l,debugPort:()=>Tu,default:()=>$u,dlopen:()=>Xl,domain:()=>Ql,emit:()=>Du,emitWarning:()=>jl,env:()=>Ll,execArgv:()=>Nl,execPath:()=>Iu,exit:()=>ou,features:()=>fu,hasUncaughtExceptionCaptureCallback:()=>du,hrtime:()=>Wi,kill:()=>su,listeners:()=>Wu,memoryUsage:()=>nu,moduleLoadList:()=>Kl,nextTick:()=>Pl,off:()=>Uu,on:()=>wt,once:()=>Lu,openStdin:()=>au,pid:()=>Su,platform:()=>Ml,ppid:()=>Au,prependListener:()=>ju,prependOnceListener:()=>Fu,reallyExit:()=>tu,release:()=>Vl,removeAllListeners:()=>qu,removeListener:()=>Nu,resourceUsage:()=>iu,setSourceMapsEnabled:()=>Bu,setUncaughtExceptionCaptureCallback:()=>hu,stderr:()=>mu,stdin:()=>vu,stdout:()=>_u,title:()=>Ol,umask:()=>Wl,uptime:()=>Pu,version:()=>ql,versions:()=>Dl});function _s(t){throw new Error(\"Node.js process \"+t+\" is not supported by JSPM core outside of Node.js\")}function Jg(){!Lr||!Xt||(Lr=!1,Xt.length?bt=Xt.concat(bt):Fi=-1,bt.length&&Bl())}function Bl(){if(!Lr){var t=setTimeout(Jg,0);Lr=!0;for(var e=bt.length;e;){for(Xt=bt,bt=[];++Fi1)for(var r=1;r{_();v();m();bt=[],Lr=!1,Fi=-1;kl.prototype.run=function(){this.fun.apply(null,this.array)};Ol=\"browser\",xl=\"x64\",Ml=\"browser\",Ll={PATH:\"/usr/bin\",LANG:navigator.language+\".UTF-8\",PWD:\"/\",HOME:\"/home\",TMP:\"/tmp\"},Ul=[\"/usr/bin/node\"],Nl=[],ql=\"v16.8.0\",Dl={},jl=function(t,e){console.warn((e?e+\": \":\"\")+t)},Fl=function(t){_s(\"binding\")},Wl=function(t){return 0},$l=function(){return\"/\"},Hl=function(t){},Vl={name:\"node\",sourceUrl:\"\",headersUrl:\"\",libUrl:\"\"};zl=Ee,Kl=[];Ql={},Yl=!1,Jl={};tu=Ee,ru=Ee,$i=function(){return{}},iu=$i,nu=$i,su=Ee,ou=Ee,au=Ee,lu={};fu={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},cu=Ee,hu=Ee;pu=Ee,gu=Ee,yu=Ee,bu=Ee,wu=Ee,_u=void 0,mu=void 0,vu=void 0,Eu=Ee,Su=2,Au=1,Iu=\"/bin/usr/node\",Tu=9229,Ru=\"node\",Cu=[],Bu=Ee,Lt={now:typeof performance<\"u\"?performance.now.bind(performance):void 0,timing:typeof performance<\"u\"?performance.timing:void 0};Lt.now===void 0&&(bs=Date.now(),Lt.timing&&Lt.timing.navigationStart&&(bs=Lt.timing.navigationStart),Lt.now=()=>Date.now()-bs);ws=1e9;Wi.bigint=function(t){var e=Wi(t);return typeof BigInt>\"u\"?e[0]*ws+e[1]:BigInt(e[0]*ws)+BigInt(e[1])};ku=10,Ou={},xu=0;Mu=wt,Lu=wt,Uu=wt,Nu=wt,qu=wt,Du=Ee,ju=wt,Fu=wt;$u={version:ql,versions:Dl,arch:xl,platform:Ml,release:Vl,_rawDebug:zl,moduleLoadList:Kl,binding:Fl,_linkedBinding:Gl,_events:Ou,_eventsCount:xu,_maxListeners:ku,on:wt,addListener:Mu,once:Lu,off:Uu,removeListener:Nu,removeAllListeners:qu,emit:Du,prependListener:ju,prependOnceListener:Fu,listeners:Wu,domain:Ql,_exiting:Yl,config:Jl,dlopen:Xl,uptime:Pu,_getActiveRequests:Zl,_getActiveHandles:eu,reallyExit:tu,_kill:ru,cpuUsage:$i,resourceUsage:iu,memoryUsage:nu,kill:su,exit:ou,openStdin:au,allowedNodeEnvironmentFlags:lu,assert:uu,features:fu,_fatalExceptions:cu,setUncaughtExceptionCaptureCallback:hu,hasUncaughtExceptionCaptureCallback:du,emitWarning:jl,nextTick:Pl,_tickCallback:pu,_debugProcess:gu,_debugEnd:yu,_startProfilerIdleNotifier:bu,_stopProfilerIdleNotifier:wu,stdout:_u,stdin:vu,stderr:mu,abort:Eu,umask:Wl,chdir:Hl,cwd:$l,env:Ll,title:Ol,argv:Ul,execArgv:Nl,pid:Su,ppid:Au,execPath:Iu,debugPort:Tu,hrtime:Wi,argv0:Ru,_preload_modules:Cu,setSourceMapsEnabled:Bu}});var m=_e(()=>{Hu()});var me={};Jt(me,{Buffer:()=>x,INSPECT_MAX_BYTES:()=>ty,default:()=>Ut,kMaxLength:()=>ry});function Xg(){if(Vu)return ci;Vu=!0,ci.byteLength=a,ci.toByteArray=c,ci.fromByteArray=g;for(var t=[],e=[],r=typeof Uint8Array<\"u\"?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var S=y.indexOf(\"=\");S===-1&&(S=w);var E=S===w?0:4-S%4;return[S,E]}function a(y){var w=s(y),S=w[0],E=w[1];return(S+E)*3/4-E}function l(y,w,S){return(w+S)*3/4-S}function c(y){var w,S=s(y),E=S[0],I=S[1],C=new r(l(y,E,I)),R=0,U=I>0?E-4:E,N;for(N=0;N>16&255,C[R++]=w>>8&255,C[R++]=w&255;return I===2&&(w=e[y.charCodeAt(N)]<<2|e[y.charCodeAt(N+1)]>>4,C[R++]=w&255),I===1&&(w=e[y.charCodeAt(N)]<<10|e[y.charCodeAt(N+1)]<<4|e[y.charCodeAt(N+2)]>>2,C[R++]=w>>8&255,C[R++]=w&255),C}function h(y){return t[y>>18&63]+t[y>>12&63]+t[y>>6&63]+t[y&63]}function d(y,w,S){for(var E,I=[],C=w;CU?U:R+C));return E===1?(w=y[S-1],I.push(t[w>>2]+t[w<<4&63]+\"==\")):E===2&&(w=(y[S-2]<<8)+y[S-1],I.push(t[w>>10]+t[w>>4&63]+t[w<<2&63]+\"=\")),I.join(\"\")}return ci}function Zg(){if(zu)return Hi;zu=!0;return Hi.read=function(t,e,r,i,n){var o,s,a=n*8-i-1,l=(1<>1,h=-7,d=r?n-1:0,g=r?-1:1,y=t[e+d];for(d+=g,o=y&(1<<-h)-1,y>>=-h,h+=a;h>0;o=o*256+t[e+d],d+=g,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=i;h>0;s=s*256+t[e+d],d+=g,h-=8);if(o===0)o=1-c;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-c}return(y?-1:1)*s*Math.pow(2,o-i)},Hi.write=function(t,e,r,i,n,o){var s,a,l,c=o*8-n-1,h=(1<>1,g=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,w=i?1:-1,S=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?e+=g/l:e+=g*Math.pow(2,1-d),e*l>=2&&(s++,l/=2),s+d>=h?(a=0,s=h):s+d>=1?(a=(e*l-1)*Math.pow(2,n),s=s+d):(a=e*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;t[r+y]=a&255,y+=w,a/=256,n-=8);for(s=s<0;t[r+y]=s&255,y+=w,s/=256,c-=8);t[r+y-w]|=S*128},Hi}function ey(){if(Ku)return Zt;Ku=!0;let t=Xg(),e=Zg(),r=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;Zt.Buffer=s,Zt.SlowBuffer=I,Zt.INSPECT_MAX_BYTES=50;let i=2147483647;Zt.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=n(),!s.TYPED_ARRAY_SUPPORT&&typeof console<\"u\"&&typeof console.error==\"function\"&&console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");function n(){try{let p=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(p,u),p.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,\"parent\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,\"offset\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(p){if(p>i)throw new RangeError('The value \"'+p+'\" is invalid for option \"size\"');let u=new Uint8Array(p);return Object.setPrototypeOf(u,s.prototype),u}function s(p,u,f){if(typeof p==\"number\"){if(typeof u==\"string\")throw new TypeError('The \"string\" argument must be of type string. Received type number');return h(p)}return a(p,u,f)}s.poolSize=8192;function a(p,u,f){if(typeof p==\"string\")return d(p,u);if(ArrayBuffer.isView(p))return y(p);if(p==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof p);if(Ye(p,ArrayBuffer)||p&&Ye(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(Ye(p,SharedArrayBuffer)||p&&Ye(p.buffer,SharedArrayBuffer)))return w(p,u,f);if(typeof p==\"number\")throw new TypeError('The \"value\" argument must not be of type number. Received type number');let b=p.valueOf&&p.valueOf();if(b!=null&&b!==p)return s.from(b,u,f);let A=S(p);if(A)return A;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]==\"function\")return s.from(p[Symbol.toPrimitive](\"string\"),u,f);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof p)}s.from=function(p,u,f){return a(p,u,f)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(p){if(typeof p!=\"number\")throw new TypeError('\"size\" argument must be of type number');if(p<0)throw new RangeError('The value \"'+p+'\" is invalid for option \"size\"')}function c(p,u,f){return l(p),p<=0?o(p):u!==void 0?typeof f==\"string\"?o(p).fill(u,f):o(p).fill(u):o(p)}s.alloc=function(p,u,f){return c(p,u,f)};function h(p){return l(p),o(p<0?0:E(p)|0)}s.allocUnsafe=function(p){return h(p)},s.allocUnsafeSlow=function(p){return h(p)};function d(p,u){if((typeof u!=\"string\"||u===\"\")&&(u=\"utf8\"),!s.isEncoding(u))throw new TypeError(\"Unknown encoding: \"+u);let f=C(p,u)|0,b=o(f),A=b.write(p,u);return A!==f&&(b=b.slice(0,A)),b}function g(p){let u=p.length<0?0:E(p.length)|0,f=o(u);for(let b=0;b=i)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+i.toString(16)+\" bytes\");return p|0}function I(p){return+p!=p&&(p=0),s.alloc(+p)}s.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==s.prototype},s.compare=function(u,f){if(Ye(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),Ye(f,Uint8Array)&&(f=s.from(f,f.offset,f.byteLength)),!s.isBuffer(u)||!s.isBuffer(f))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;let b=u.length,A=f.length;for(let T=0,P=Math.min(b,A);TA.length?(s.isBuffer(P)||(P=s.from(P)),P.copy(A,T)):Uint8Array.prototype.set.call(A,P,T);else if(s.isBuffer(P))P.copy(A,T);else throw new TypeError('\"list\" argument must be an Array of Buffers');T+=P.length}return A};function C(p,u){if(s.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||Ye(p,ArrayBuffer))return p.byteLength;if(typeof p!=\"string\")throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);let f=p.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&f===0)return 0;let A=!1;for(;;)switch(u){case\"ascii\":case\"latin1\":case\"binary\":return f;case\"utf8\":case\"utf-8\":return ps(p).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return f*2;case\"hex\":return f>>>1;case\"base64\":return Cl(p).length;default:if(A)return b?-1:ps(p).length;u=(\"\"+u).toLowerCase(),A=!0}}s.byteLength=C;function R(p,u,f){let b=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return\"\";for(p||(p=\"utf8\");;)switch(p){case\"hex\":return qg(this,u,f);case\"utf8\":case\"utf-8\":return Pr(this,u,f);case\"ascii\":return hs(this,u,f);case\"latin1\":case\"binary\":return Ng(this,u,f);case\"base64\":return ge(this,u,f);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Dg(this,u,f);default:if(b)throw new TypeError(\"Unknown encoding: \"+p);p=(p+\"\").toLowerCase(),b=!0}}s.prototype._isBuffer=!0;function U(p,u,f){let b=p[u];p[u]=p[f],p[f]=b}s.prototype.swap16=function(){let u=this.length;if(u%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(let f=0;ff&&(u+=\" ... \"),\"\"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(u,f,b,A,T){if(Ye(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),!s.isBuffer(u))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(f===void 0&&(f=0),b===void 0&&(b=u?u.length:0),A===void 0&&(A=0),T===void 0&&(T=this.length),f<0||b>u.length||A<0||T>this.length)throw new RangeError(\"out of range index\");if(A>=T&&f>=b)return 0;if(A>=T)return-1;if(f>=b)return 1;if(f>>>=0,b>>>=0,A>>>=0,T>>>=0,this===u)return 0;let P=T-A,$=b-f,se=Math.min(P,$),te=this.slice(A,T),oe=u.slice(f,b);for(let J=0;J2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,gs(f)&&(f=A?0:p.length-1),f<0&&(f=p.length+f),f>=p.length){if(A)return-1;f=p.length-1}else if(f<0)if(A)f=0;else return-1;if(typeof u==\"string\"&&(u=s.from(u,b)),s.isBuffer(u))return u.length===0?-1:W(p,u,f,b,A);if(typeof u==\"number\")return u=u&255,typeof Uint8Array.prototype.indexOf==\"function\"?A?Uint8Array.prototype.indexOf.call(p,u,f):Uint8Array.prototype.lastIndexOf.call(p,u,f):W(p,[u],f,b,A);throw new TypeError(\"val must be string, number or Buffer\")}function W(p,u,f,b,A){let T=1,P=p.length,$=u.length;if(b!==void 0&&(b=String(b).toLowerCase(),b===\"ucs2\"||b===\"ucs-2\"||b===\"utf16le\"||b===\"utf-16le\")){if(p.length<2||u.length<2)return-1;T=2,P/=2,$/=2,f/=2}function se(oe,J){return T===1?oe[J]:oe.readUInt16BE(J*T)}let te;if(A){let oe=-1;for(te=f;teP&&(f=P-$),te=f;te>=0;te--){let oe=!0;for(let J=0;J<$;J++)if(se(p,te+J)!==se(u,J)){oe=!1;break}if(oe)return te}return-1}s.prototype.includes=function(u,f,b){return this.indexOf(u,f,b)!==-1},s.prototype.indexOf=function(u,f,b){return N(this,u,f,b,!0)},s.prototype.lastIndexOf=function(u,f,b){return N(this,u,f,b,!1)};function K(p,u,f,b){f=Number(f)||0;let A=p.length-f;b?(b=Number(b),b>A&&(b=A)):b=A;let T=u.length;b>T/2&&(b=T/2);let P;for(P=0;P>>0,isFinite(b)?(b=b>>>0,A===void 0&&(A=\"utf8\")):(A=b,b=void 0);else throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let T=this.length-f;if((b===void 0||b>T)&&(b=T),u.length>0&&(b<0||f<0)||f>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");A||(A=\"utf8\");let P=!1;for(;;)switch(A){case\"hex\":return K(this,u,f,b);case\"utf8\":case\"utf-8\":return z(this,u,f,b);case\"ascii\":case\"latin1\":case\"binary\":return Q(this,u,f,b);case\"base64\":return pe(this,u,f,b);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Yt(this,u,f,b);default:if(P)throw new TypeError(\"Unknown encoding: \"+A);A=(\"\"+A).toLowerCase(),P=!0}},s.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};function ge(p,u,f){return u===0&&f===p.length?t.fromByteArray(p):t.fromByteArray(p.slice(u,f))}function Pr(p,u,f){f=Math.min(p.length,f);let b=[],A=u;for(;A239?4:T>223?3:T>191?2:1;if(A+$<=f){let se,te,oe,J;switch($){case 1:T<128&&(P=T);break;case 2:se=p[A+1],(se&192)===128&&(J=(T&31)<<6|se&63,J>127&&(P=J));break;case 3:se=p[A+1],te=p[A+2],(se&192)===128&&(te&192)===128&&(J=(T&15)<<12|(se&63)<<6|te&63,J>2047&&(J<55296||J>57343)&&(P=J));break;case 4:se=p[A+1],te=p[A+2],oe=p[A+3],(se&192)===128&&(te&192)===128&&(oe&192)===128&&(J=(T&15)<<18|(se&63)<<12|(te&63)<<6|oe&63,J>65535&&J<1114112&&(P=J))}}P===null?(P=65533,$=1):P>65535&&(P-=65536,b.push(P>>>10&1023|55296),P=56320|P&1023),b.push(P),A+=$}return Or(b)}let kr=4096;function Or(p){let u=p.length;if(u<=kr)return String.fromCharCode.apply(String,p);let f=\"\",b=0;for(;bb)&&(f=b);let A=\"\";for(let T=u;Tb&&(u=b),f<0?(f+=b,f<0&&(f=0)):f>b&&(f=b),ff)throw new RangeError(\"Trying to access beyond buffer length\")}s.prototype.readUintLE=s.prototype.readUIntLE=function(u,f,b){u=u>>>0,f=f>>>0,b||ye(u,f,this.length);let A=this[u],T=1,P=0;for(;++P>>0,f=f>>>0,b||ye(u,f,this.length);let A=this[u+--f],T=1;for(;f>0&&(T*=256);)A+=this[u+--f]*T;return A},s.prototype.readUint8=s.prototype.readUInt8=function(u,f){return u=u>>>0,f||ye(u,1,this.length),this[u]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||ye(u,2,this.length),this[u]|this[u+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||ye(u,2,this.length),this[u]<<8|this[u+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},s.prototype.readBigUInt64LE=Mt(function(u){u=u>>>0,Mr(u,\"offset\");let f=this[u],b=this[u+7];(f===void 0||b===void 0)&&fi(u,this.length-8);let A=f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,T=this[++u]+this[++u]*2**8+this[++u]*2**16+b*2**24;return BigInt(A)+(BigInt(T)<>>0,Mr(u,\"offset\");let f=this[u],b=this[u+7];(f===void 0||b===void 0)&&fi(u,this.length-8);let A=f*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],T=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+b;return(BigInt(A)<>>0,f=f>>>0,b||ye(u,f,this.length);let A=this[u],T=1,P=0;for(;++P=T&&(A-=Math.pow(2,8*f)),A},s.prototype.readIntBE=function(u,f,b){u=u>>>0,f=f>>>0,b||ye(u,f,this.length);let A=f,T=1,P=this[u+--A];for(;A>0&&(T*=256);)P+=this[u+--A]*T;return T*=128,P>=T&&(P-=Math.pow(2,8*f)),P},s.prototype.readInt8=function(u,f){return u=u>>>0,f||ye(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},s.prototype.readInt16LE=function(u,f){u=u>>>0,f||ye(u,2,this.length);let b=this[u]|this[u+1]<<8;return b&32768?b|4294901760:b},s.prototype.readInt16BE=function(u,f){u=u>>>0,f||ye(u,2,this.length);let b=this[u+1]|this[u]<<8;return b&32768?b|4294901760:b},s.prototype.readInt32LE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},s.prototype.readInt32BE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},s.prototype.readBigInt64LE=Mt(function(u){u=u>>>0,Mr(u,\"offset\");let f=this[u],b=this[u+7];(f===void 0||b===void 0)&&fi(u,this.length-8);let A=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(b<<24);return(BigInt(A)<>>0,Mr(u,\"offset\");let f=this[u],b=this[u+7];(f===void 0||b===void 0)&&fi(u,this.length-8);let A=(f<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(A)<>>0,f||ye(u,4,this.length),e.read(this,u,!0,23,4)},s.prototype.readFloatBE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),e.read(this,u,!1,23,4)},s.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||ye(u,8,this.length),e.read(this,u,!0,52,8)},s.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||ye(u,8,this.length),e.read(this,u,!1,52,8)};function Ce(p,u,f,b,A,T){if(!s.isBuffer(p))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(u>A||up.length)throw new RangeError(\"Index out of range\")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(u,f,b,A){if(u=+u,f=f>>>0,b=b>>>0,!A){let $=Math.pow(2,8*b)-1;Ce(this,u,f,b,$,0)}let T=1,P=0;for(this[f]=u&255;++P>>0,b=b>>>0,!A){let $=Math.pow(2,8*b)-1;Ce(this,u,f,b,$,0)}let T=b-1,P=1;for(this[f+T]=u&255;--T>=0&&(P*=256);)this[f+T]=u/P&255;return f+b},s.prototype.writeUint8=s.prototype.writeUInt8=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,1,255,0),this[f]=u&255,f+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function vl(p,u,f,b,A){Rl(u,b,A,p,f,7);let T=Number(u&BigInt(4294967295));p[f++]=T,T=T>>8,p[f++]=T,T=T>>8,p[f++]=T,T=T>>8,p[f++]=T;let P=Number(u>>BigInt(32)&BigInt(4294967295));return p[f++]=P,P=P>>8,p[f++]=P,P=P>>8,p[f++]=P,P=P>>8,p[f++]=P,f}function El(p,u,f,b,A){Rl(u,b,A,p,f,7);let T=Number(u&BigInt(4294967295));p[f+7]=T,T=T>>8,p[f+6]=T,T=T>>8,p[f+5]=T,T=T>>8,p[f+4]=T;let P=Number(u>>BigInt(32)&BigInt(4294967295));return p[f+3]=P,P=P>>8,p[f+2]=P,P=P>>8,p[f+1]=P,P=P>>8,p[f]=P,f+8}s.prototype.writeBigUInt64LE=Mt(function(u,f=0){return vl(this,u,f,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),s.prototype.writeBigUInt64BE=Mt(function(u,f=0){return El(this,u,f,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),s.prototype.writeIntLE=function(u,f,b,A){if(u=+u,f=f>>>0,!A){let se=Math.pow(2,8*b-1);Ce(this,u,f,b,se-1,-se)}let T=0,P=1,$=0;for(this[f]=u&255;++T>0)-$&255;return f+b},s.prototype.writeIntBE=function(u,f,b,A){if(u=+u,f=f>>>0,!A){let se=Math.pow(2,8*b-1);Ce(this,u,f,b,se-1,-se)}let T=b-1,P=1,$=0;for(this[f+T]=u&255;--T>=0&&(P*=256);)u<0&&$===0&&this[f+T+1]!==0&&($=1),this[f+T]=(u/P>>0)-$&255;return f+b},s.prototype.writeInt8=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},s.prototype.writeInt16LE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},s.prototype.writeInt16BE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},s.prototype.writeInt32LE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},s.prototype.writeInt32BE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},s.prototype.writeBigInt64LE=Mt(function(u,f=0){return vl(this,u,f,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),s.prototype.writeBigInt64BE=Mt(function(u,f=0){return El(this,u,f,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});function Sl(p,u,f,b,A,T){if(f+b>p.length)throw new RangeError(\"Index out of range\");if(f<0)throw new RangeError(\"Index out of range\")}function Al(p,u,f,b,A){return u=+u,f=f>>>0,A||Sl(p,u,f,4),e.write(p,u,f,b,23,4),f+4}s.prototype.writeFloatLE=function(u,f,b){return Al(this,u,f,!0,b)},s.prototype.writeFloatBE=function(u,f,b){return Al(this,u,f,!1,b)};function Il(p,u,f,b,A){return u=+u,f=f>>>0,A||Sl(p,u,f,8),e.write(p,u,f,b,52,8),f+8}s.prototype.writeDoubleLE=function(u,f,b){return Il(this,u,f,!0,b)},s.prototype.writeDoubleBE=function(u,f,b){return Il(this,u,f,!1,b)},s.prototype.copy=function(u,f,b,A){if(!s.isBuffer(u))throw new TypeError(\"argument should be a Buffer\");if(b||(b=0),!A&&A!==0&&(A=this.length),f>=u.length&&(f=u.length),f||(f=0),A>0&&A=this.length)throw new RangeError(\"Index out of range\");if(A<0)throw new RangeError(\"sourceEnd out of bounds\");A>this.length&&(A=this.length),u.length-f>>0,b=b===void 0?this.length:b>>>0,u||(u=0);let T;if(typeof u==\"number\")for(T=f;T2**32?A=Tl(String(f)):typeof f==\"bigint\"&&(A=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(A=Tl(A)),A+=\"n\"),b+=` It must be ${u}. Received ${A}`,b},RangeError);function Tl(p){let u=\"\",f=p.length,b=p[0]===\"-\"?1:0;for(;f>=b+4;f-=3)u=`_${p.slice(f-3,f)}${u}`;return`${p.slice(0,f)}${u}`}function jg(p,u,f){Mr(u,\"offset\"),(p[u]===void 0||p[u+f]===void 0)&&fi(u,p.length-(f+1))}function Rl(p,u,f,b,A,T){if(p>f||p3?u===0||u===BigInt(0)?$=`>= 0${P} and < 2${P} ** ${(T+1)*8}${P}`:$=`>= -(2${P} ** ${(T+1)*8-1}${P}) and < 2 ** ${(T+1)*8-1}${P}`:$=`>= ${u}${P} and <= ${f}${P}`,new xr.ERR_OUT_OF_RANGE(\"value\",$,p)}jg(b,A,T)}function Mr(p,u){if(typeof p!=\"number\")throw new xr.ERR_INVALID_ARG_TYPE(u,\"number\",p)}function fi(p,u,f){throw Math.floor(p)!==p?(Mr(p,f),new xr.ERR_OUT_OF_RANGE(f||\"offset\",\"an integer\",p)):u<0?new xr.ERR_BUFFER_OUT_OF_BOUNDS:new xr.ERR_OUT_OF_RANGE(f||\"offset\",`>= ${f?1:0} and <= ${u}`,p)}let Fg=/[^+/0-9A-Za-z-_]/g;function Wg(p){if(p=p.split(\"=\")[0],p=p.trim().replace(Fg,\"\"),p.length<2)return\"\";for(;p.length%4!==0;)p=p+\"=\";return p}function ps(p,u){u=u||1/0;let f,b=p.length,A=null,T=[];for(let P=0;P55295&&f<57344){if(!A){if(f>56319){(u-=3)>-1&&T.push(239,191,189);continue}else if(P+1===b){(u-=3)>-1&&T.push(239,191,189);continue}A=f;continue}if(f<56320){(u-=3)>-1&&T.push(239,191,189),A=f;continue}f=(A-55296<<10|f-56320)+65536}else A&&(u-=3)>-1&&T.push(239,191,189);if(A=null,f<128){if((u-=1)<0)break;T.push(f)}else if(f<2048){if((u-=2)<0)break;T.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;T.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;T.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error(\"Invalid code point\")}return T}function $g(p){let u=[];for(let f=0;f>8,A=f%256,T.push(A),T.push(b);return T}function Cl(p){return t.toByteArray(Wg(p))}function ji(p,u,f,b){let A;for(A=0;A=u.length||A>=p.length);++A)u[A+f]=p[A];return A}function Ye(p,u){return p instanceof u||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===u.name}function gs(p){return p!==p}let Vg=function(){let p=\"0123456789abcdef\",u=new Array(256);for(let f=0;f<16;++f){let b=f*16;for(let A=0;A<16;++A)u[b+A]=p[f]+p[A]}return u}();function Mt(p){return typeof BigInt>\"u\"?zg:p}function zg(){throw new Error(\"BigInt not supported\")}return Zt}var ci,Vu,Hi,zu,Zt,Ku,Ut,x,ty,ry,be=_e(()=>{_();v();m();ci={},Vu=!1;Hi={},zu=!1;Zt={},Ku=!1;Ut=ey();Ut.Buffer;Ut.SlowBuffer;Ut.INSPECT_MAX_BYTES;Ut.kMaxLength;x=Ut.Buffer,ty=Ut.INSPECT_MAX_BYTES,ry=Ut.kMaxLength});var v=_e(()=>{be()});var Gu=M(vs=>{\"use strict\";_();v();m();Object.defineProperty(vs,\"__esModule\",{value:!0});var ms=class{constructor(e){this.aliasToTopic={},this.max=e}put(e,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=e,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(e){return this.aliasToTopic[e]}clear(){this.aliasToTopic={}}};vs.default=ms});var ce=M((AA,Qu)=>{\"use strict\";_();v();m();Qu.exports={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Uint8Array}});var Je=M((kA,Ss)=>{\"use strict\";_();v();m();var iy=(be(),X(me)),ny=Object.getPrototypeOf(async function(){}).constructor,Yu=globalThis.Blob||iy.Blob,sy=typeof Yu<\"u\"?function(e){return e instanceof Yu}:function(e){return!1},Es=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r=\"\";for(let i=0;i{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i===\"f\"?n.toFixed(6):i===\"j\"?JSON.stringify(n):i===\"s\"&&typeof n==\"object\"?`${n.constructor!==Object?n.constructor.name:\"\"} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case\"string\":if(t.includes(\"'\"))if(t.includes('\"')){if(!t.includes(\"`\")&&!t.includes(\"${\"))return`\\`${t}\\``}else return`\"${t}\"`;return`'${t}'`;case\"number\":return isNaN(t)?\"NaN\":Object.is(t,-0)?String(t):t;case\"bigint\":return`${String(t)}n`;case\"boolean\":case\"undefined\":return String(t);case\"object\":return\"{}\"}},types:{isAsyncFunction(t){return t instanceof ny},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:sy};Ss.exports.promisify.custom=Symbol.for(\"nodejs.util.promisify.custom\")});var zi=M((qA,Vi)=>{\"use strict\";_();v();m();var{AbortController:Ju,AbortSignal:oy}=typeof self<\"u\"?self:typeof window<\"u\"?window:void 0;Vi.exports=Ju;Vi.exports.AbortSignal=oy;Vi.exports.default=Ju});var Ae=M((VA,ef)=>{\"use strict\";_();v();m();var{format:ay,inspect:Ki,AggregateError:ly}=Je(),uy=globalThis.AggregateError||ly,fy=Symbol(\"kIsNodeError\"),cy=[\"string\",\"function\",\"number\",\"object\",\"Function\",\"Object\",\"boolean\",\"bigint\",\"symbol\"],hy=/^([A-Z][a-z0-9]*)+$/,dy=\"__node_internal_\",Gi={};function er(t,e){if(!t)throw new Gi.ERR_INTERNAL_ASSERTION(e)}function Xu(t){let e=\"\",r=t.length,i=t[0]===\"-\"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function py(t,e,r){if(typeof e==\"function\")return er(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:ay(e,...r)}function ve(t,e,r){r||(r=Error);class i extends r{constructor(...o){super(py(t,e,o))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[fy]=!0,Gi[t]=i}function Zu(t){let e=dy+t.name;return Object.defineProperty(t,\"name\",{value:e}),t}function gy(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new uy([e,t],e.message);return r.code=e.code,r}return t||e}var As=class extends Error{constructor(e=\"The operation was aborted\",r=void 0){if(r!==void 0&&typeof r!=\"object\")throw new Gi.ERR_INVALID_ARG_TYPE(\"options\",\"Object\",r);super(e,r),this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};ve(\"ERR_ASSERTION\",\"%s\",Error);ve(\"ERR_INVALID_ARG_TYPE\",(t,e,r)=>{er(typeof t==\"string\",\"'name' must be a string\"),Array.isArray(e)||(e=[e]);let i=\"The \";t.endsWith(\" argument\")?i+=`${t} `:i+=`\"${t}\" ${t.includes(\".\")?\"property\":\"argument\"} `,i+=\"must be \";let n=[],o=[],s=[];for(let l of e)er(typeof l==\"string\",\"All expected entries have to be of type string\"),cy.includes(l)?n.push(l.toLowerCase()):hy.test(l)?o.push(l):(er(l!==\"object\",'The value \"object\" should be written as \"Object\"'),s.push(l));if(o.length>0){let l=n.indexOf(\"object\");l!==-1&&(n.splice(n,l,1),o.push(\"Object\"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(\", \")}, or ${l}`}}(o.length>0||s.length>0)&&(i+=\" or \")}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`an instance of ${o.join(\", \")}, or ${l}`}}s.length>0&&(i+=\" or \")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(i+=\"an \"),i+=`${s[0]}`;break;case 2:i+=`one of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`one of ${s.join(\", \")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r==\"function\"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r==\"object\"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=Ki(r,{depth:-1});i+=`. Received ${l}`}}else{let l=Ki(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);ve(\"ERR_INVALID_ARG_VALUE\",(t,e,r=\"is invalid\")=>{let i=Ki(e);return i.length>128&&(i=i.slice(0,128)+\"...\"),`The ${t.includes(\".\")?\"property\":\"argument\"} '${t}' ${r}. Received ${i}`},TypeError);ve(\"ERR_INVALID_RETURN_VALUE\",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the \"${e}\" function but got ${n}.`},TypeError);ve(\"ERR_MISSING_ARGS\",(...t)=>{er(t.length>0,\"At least one arg needs to be specified\");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`\"${i}\"`).join(\" or \"),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(\", \")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);ve(\"ERR_OUT_OF_RANGE\",(t,e,r)=>{er(e,'Missing \"range\" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Xu(String(r)):typeof r==\"bigint\"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=Xu(i)),i+=\"n\"):i=Ki(r),`The value of \"${t}\" is out of range. It must be ${e}. Received ${i}`},RangeError);ve(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\",Error);ve(\"ERR_METHOD_NOT_IMPLEMENTED\",\"The %s method is not implemented\",Error);ve(\"ERR_STREAM_ALREADY_FINISHED\",\"Cannot call %s after a stream was finished\",Error);ve(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\",Error);ve(\"ERR_STREAM_DESTROYED\",\"Cannot call %s after a stream was destroyed\",Error);ve(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError);ve(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\",Error);ve(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\",Error);ve(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\",Error);ve(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\",Error);ve(\"ERR_UNKNOWN_ENCODING\",\"Unknown encoding: %s\",TypeError);ef.exports={AbortError:As,aggregateTwoErrors:Zu(gy),hideStackFrames:Zu,codes:Gi}});var hi=M((XA,ff)=>{\"use strict\";_();v();m();var{ArrayIsArray:Ts,ArrayPrototypeIncludes:sf,ArrayPrototypeJoin:of,ArrayPrototypeMap:yy,NumberIsInteger:Rs,NumberIsNaN:by,NumberMAX_SAFE_INTEGER:wy,NumberMIN_SAFE_INTEGER:_y,NumberParseInt:my,ObjectPrototypeHasOwnProperty:vy,RegExpPrototypeExec:af,String:Ey,StringPrototypeToUpperCase:Sy,StringPrototypeTrim:Ay}=ce(),{hideStackFrames:Ue,codes:{ERR_SOCKET_BAD_PORT:Iy,ERR_INVALID_ARG_TYPE:Ie,ERR_INVALID_ARG_VALUE:Ur,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:tf}}=Ae(),{normalizeEncoding:Ty}=Je(),{isAsyncFunction:Ry,isArrayBufferView:Cy}=Je().types,rf={};function By(t){return t===(t|0)}function Py(t){return t===t>>>0}var ky=/^[0-7]+$/,Oy=\"must be a 32-bit unsigned integer or an octal string\";function xy(t,e,r){if(typeof t>\"u\"&&(t=r),typeof t==\"string\"){if(af(ky,t)===null)throw new Ur(e,t,Oy);t=my(t,8)}return lf(t,e),t}var My=Ue((t,e,r=_y,i=wy)=>{if(typeof t!=\"number\")throw new Ie(e,\"number\",t);if(!Rs(t))throw new tr(e,\"an integer\",t);if(ti)throw new tr(e,`>= ${r} && <= ${i}`,t)}),Ly=Ue((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!=\"number\")throw new Ie(e,\"number\",t);if(!Rs(t))throw new tr(e,\"an integer\",t);if(ti)throw new tr(e,`>= ${r} && <= ${i}`,t)}),lf=Ue((t,e,r=!1)=>{if(typeof t!=\"number\")throw new Ie(e,\"number\",t);if(!Rs(t))throw new tr(e,\"an integer\",t);let i=r?1:0,n=4294967295;if(tn)throw new tr(e,`>= ${i} && <= ${n}`,t)});function Cs(t,e){if(typeof t!=\"string\")throw new Ie(e,\"string\",t)}function Uy(t,e,r=void 0,i){if(typeof t!=\"number\")throw new Ie(e,\"number\",t);if(r!=null&&ti||(r!=null||i!=null)&&by(t))throw new tr(e,`${r!=null?`>= ${r}`:\"\"}${r!=null&&i!=null?\" && \":\"\"}${i!=null?`<= ${i}`:\"\"}`,t)}var Ny=Ue((t,e,r)=>{if(!sf(r,t)){let n=\"must be one of: \"+of(yy(r,o=>typeof o==\"string\"?`'${o}'`:Ey(o)),\", \");throw new Ur(e,t,n)}});function uf(t,e){if(typeof t!=\"boolean\")throw new Ie(e,\"boolean\",t)}function Is(t,e,r){return t==null||!vy(t,e)?r:t[e]}var qy=Ue((t,e,r=null)=>{let i=Is(r,\"allowArray\",!1),n=Is(r,\"allowFunction\",!1);if(!Is(r,\"nullable\",!1)&&t===null||!i&&Ts(t)||typeof t!=\"object\"&&(!n||typeof t!=\"function\"))throw new Ie(e,\"Object\",t)}),Dy=Ue((t,e)=>{if(t!=null&&typeof t!=\"object\"&&typeof t!=\"function\")throw new Ie(e,\"a dictionary\",t)}),Bs=Ue((t,e,r=0)=>{if(!Ts(t))throw new Ie(e,\"Array\",t);if(t.length{if(!Cy(t))throw new Ie(e,[\"Buffer\",\"TypedArray\",\"DataView\"],t)});function Hy(t,e){let r=Ty(e),i=t.length;if(r===\"hex\"&&i%2!==0)throw new Ur(\"encoding\",e,`is invalid for data of length ${i}`)}function Vy(t,e=\"Port\",r=!0){if(typeof t!=\"number\"&&typeof t!=\"string\"||typeof t==\"string\"&&Ay(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new Iy(e,t,r);return t|0}var zy=Ue((t,e)=>{if(t!==void 0&&(t===null||typeof t!=\"object\"||!(\"aborted\"in t)))throw new Ie(e,\"AbortSignal\",t)}),Ky=Ue((t,e)=>{if(typeof t!=\"function\")throw new Ie(e,\"Function\",t)}),Gy=Ue((t,e)=>{if(typeof t!=\"function\"||Ry(t))throw new Ie(e,\"Function\",t)}),Qy=Ue((t,e)=>{if(t!==void 0)throw new Ie(e,\"undefined\",t)});function Yy(t,e,r){if(!sf(r,t))throw new Ie(e,`('${of(r,\"|\")}')`,t)}var Jy=/^(?:<[^>]*>)(?:\\s*;\\s*[^;\"\\s]+(?:=(\")?[^;\"\\s]*\\1)?)*$/;function nf(t,e){if(typeof t>\"u\"||!af(Jy,t))throw new Ur(e,t,'must be an array or string of format \"; rel=preload; as=style\"')}function Xy(t){if(typeof t==\"string\")return nf(t,\"hints\"),t;if(Ts(t)){let e=t.length,r=\"\";if(e===0)return r;for(let i=0;i; rel=preload; as=style\"')}ff.exports={isInt32:By,isUint32:Py,parseFileMode:xy,validateArray:Bs,validateStringArray:jy,validateBooleanArray:Fy,validateBoolean:uf,validateBuffer:$y,validateDictionary:Dy,validateEncoding:Hy,validateFunction:Ky,validateInt32:Ly,validateInteger:My,validateNumber:Uy,validateObject:qy,validateOneOf:Ny,validatePlainFunction:Gy,validatePort:Vy,validateSignalName:Wy,validateString:Cs,validateUint32:lf,validateUndefined:Qy,validateUnion:Yy,validateAbortSignal:zy,validateLinkHeaderValue:Xy}});var Nt=M((sI,pf)=>{_();v();m();var ae=pf.exports={},Xe,Ze;function Ps(){throw new Error(\"setTimeout has not been defined\")}function ks(){throw new Error(\"clearTimeout has not been defined\")}(function(){try{typeof setTimeout==\"function\"?Xe=setTimeout:Xe=Ps}catch{Xe=Ps}try{typeof clearTimeout==\"function\"?Ze=clearTimeout:Ze=ks}catch{Ze=ks}})();function cf(t){if(Xe===setTimeout)return setTimeout(t,0);if((Xe===Ps||!Xe)&&setTimeout)return Xe=setTimeout,setTimeout(t,0);try{return Xe(t,0)}catch{try{return Xe.call(null,t,0)}catch{return Xe.call(this,t,0)}}}function Zy(t){if(Ze===clearTimeout)return clearTimeout(t);if((Ze===ks||!Ze)&&clearTimeout)return Ze=clearTimeout,clearTimeout(t);try{return Ze(t)}catch{try{return Ze.call(null,t)}catch{return Ze.call(this,t)}}}var _t=[],Nr=!1,rr,Qi=-1;function eb(){!Nr||!rr||(Nr=!1,rr.length?_t=rr.concat(_t):Qi=-1,_t.length&&hf())}function hf(){if(!Nr){var t=cf(eb);Nr=!0;for(var e=_t.length;e;){for(rr=_t,_t=[];++Qi1)for(var r=1;r{\"use strict\";_();v();m();var{Symbol:Yi,SymbolAsyncIterator:gf,SymbolIterator:yf,SymbolFor:bf}=ce(),wf=Yi(\"kDestroyed\"),_f=Yi(\"kIsErrored\"),Os=Yi(\"kIsReadable\"),mf=Yi(\"kIsDisturbed\"),tb=bf(\"nodejs.webstream.isClosedPromise\"),rb=bf(\"nodejs.webstream.controllerErrorFunction\");function Ji(t,e=!1){var r;return!!(t&&typeof t.pipe==\"function\"&&typeof t.on==\"function\"&&(!e||typeof t.pause==\"function\"&&typeof t.resume==\"function\")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Xi(t){var e;return!!(t&&typeof t.write==\"function\"&&typeof t.on==\"function\"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function ib(t){return!!(t&&typeof t.pipe==\"function\"&&t._readableState&&typeof t.on==\"function\"&&typeof t.write==\"function\")}function et(t){return t&&(t._readableState||t._writableState||typeof t.write==\"function\"&&typeof t.on==\"function\"||typeof t.pipe==\"function\"&&typeof t.on==\"function\")}function vf(t){return!!(t&&!et(t)&&typeof t.pipeThrough==\"function\"&&typeof t.getReader==\"function\"&&typeof t.cancel==\"function\")}function Ef(t){return!!(t&&!et(t)&&typeof t.getWriter==\"function\"&&typeof t.abort==\"function\")}function Sf(t){return!!(t&&!et(t)&&typeof t.readable==\"object\"&&typeof t.writable==\"object\")}function nb(t){return vf(t)||Ef(t)||Sf(t)}function sb(t,e){return t==null?!1:e===!0?typeof t[gf]==\"function\":e===!1?typeof t[yf]==\"function\":typeof t[gf]==\"function\"||typeof t[yf]==\"function\"}function Zi(t){if(!et(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[wf]||i!=null&&i.destroyed)}function Af(t){if(!Xi(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!=\"boolean\"?null:e.ended}function ob(t,e){if(!Xi(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!=\"boolean\"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function ab(t){if(!Ji(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!=\"boolean\"?null:e.ended}function If(t,e){if(!Ji(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!=\"boolean\"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function Tf(t){return t&&t[Os]!=null?t[Os]:typeof t?.readable!=\"boolean\"?null:Zi(t)?!1:Ji(t)&&t.readable&&!If(t)}function Rf(t){return typeof t?.writable!=\"boolean\"?null:Zi(t)?!1:Xi(t)&&t.writable&&!Af(t)}function lb(t,e){return et(t)?Zi(t)?!0:!(e?.readable!==!1&&Tf(t)||e?.writable!==!1&&Rf(t)):null}function ub(t){var e,r;return et(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function fb(t){var e,r;return et(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function cb(t){if(!et(t))return null;if(typeof t.closed==\"boolean\")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed==\"boolean\"||typeof r?.closed==\"boolean\"?e?.closed||r?.closed:typeof t._closed==\"boolean\"&&Cf(t)?t._closed:null}function Cf(t){return typeof t._closed==\"boolean\"&&typeof t._defaultKeepAlive==\"boolean\"&&typeof t._removedConnection==\"boolean\"&&typeof t._removedContLen==\"boolean\"}function Bf(t){return typeof t._sent100==\"boolean\"&&Cf(t)}function hb(t){var e;return typeof t._consuming==\"boolean\"&&typeof t._dumped==\"boolean\"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function db(t){if(!et(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&Bf(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function pb(t){var e;return!!(t&&((e=t[mf])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function gb(t){var e,r,i,n,o,s,a,l,c,h;return!!(t&&((e=(r=(i=(n=(o=(s=t[_f])!==null&&s!==void 0?s:t.readableErrored)!==null&&o!==void 0?o:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(c=t._readableState)===null||c===void 0?void 0:c.errored)!==null&&e!==void 0?e:!((h=t._writableState)===null||h===void 0)&&h.errored))}Pf.exports={kDestroyed:wf,isDisturbed:pb,kIsDisturbed:mf,isErrored:gb,kIsErrored:_f,isReadable:Tf,kIsReadable:Os,kIsClosedPromise:tb,kControllerErrorFunction:rb,isClosed:cb,isDestroyed:Zi,isDuplexNodeStream:ib,isFinished:lb,isIterable:sb,isReadableNodeStream:Ji,isReadableStream:vf,isReadableEnded:ab,isReadableFinished:If,isReadableErrored:fb,isNodeStream:et,isWebStream:nb,isWritable:Rf,isWritableNodeStream:Xi,isWritableStream:Ef,isWritableEnded:Af,isWritableFinished:ob,isWritableErrored:ub,isServerRequest:hb,isServerResponse:Bf,willEmitClose:db,isTransformStream:Sf}});var vt=M((_I,Ns)=>{_();v();m();var qt=Nt(),{AbortError:Df,codes:yb}=Ae(),{ERR_INVALID_ARG_TYPE:bb,ERR_STREAM_PREMATURE_CLOSE:kf}=yb,{kEmptyObject:Ms,once:Ls}=Je(),{validateAbortSignal:wb,validateFunction:_b,validateObject:mb,validateBoolean:vb}=hi(),{Promise:Eb,PromisePrototypeThen:Sb}=ce(),{isClosed:Ab,isReadable:Of,isReadableNodeStream:xs,isReadableStream:Ib,isReadableFinished:xf,isReadableErrored:Mf,isWritable:Lf,isWritableNodeStream:Uf,isWritableStream:Tb,isWritableFinished:Nf,isWritableErrored:qf,isNodeStream:Rb,willEmitClose:Cb,kIsClosedPromise:Bb}=tt();function Pb(t){return t.setHeader&&typeof t.abort==\"function\"}var Us=()=>{};function jf(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ms):e==null?e=Ms:mb(e,\"options\"),_b(r,\"callback\"),wb(e.signal,\"options.signal\"),r=Ls(r),Ib(t)||Tb(t))return kb(t,e,r);if(!Rb(t))throw new bb(\"stream\",[\"ReadableStream\",\"WritableStream\",\"Stream\"],t);let o=(i=e.readable)!==null&&i!==void 0?i:xs(t),s=(n=e.writable)!==null&&n!==void 0?n:Uf(t),a=t._writableState,l=t._readableState,c=()=>{t.writable||g()},h=Cb(t)&&xs(t)===o&&Uf(t)===s,d=Nf(t,!1),g=()=>{d=!0,t.destroyed&&(h=!1),!(h&&(!t.readable||o))&&(!o||y)&&r.call(t)},y=xf(t,!1),w=()=>{y=!0,t.destroyed&&(h=!1),!(h&&(!t.writable||s))&&(!s||d)&&r.call(t)},S=N=>{r.call(t,N)},E=Ab(t),I=()=>{E=!0;let N=qf(t)||Mf(t);if(N&&typeof N!=\"boolean\")return r.call(t,N);if(o&&!y&&xs(t,!0)&&!xf(t,!1))return r.call(t,new kf);if(s&&!d&&!Nf(t,!1))return r.call(t,new kf);r.call(t)},C=()=>{E=!0;let N=qf(t)||Mf(t);if(N&&typeof N!=\"boolean\")return r.call(t,N);r.call(t)},R=()=>{t.req.on(\"finish\",g)};Pb(t)?(t.on(\"complete\",g),h||t.on(\"abort\",I),t.req?R():t.on(\"request\",R)):s&&!a&&(t.on(\"end\",c),t.on(\"close\",c)),!h&&typeof t.aborted==\"boolean\"&&t.on(\"aborted\",I),t.on(\"end\",w),t.on(\"finish\",g),e.error!==!1&&t.on(\"error\",S),t.on(\"close\",I),E?qt.nextTick(I):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?h||qt.nextTick(C):(!o&&(!h||Of(t))&&(d||Lf(t)===!1)||!s&&(!h||Lf(t))&&(y||Of(t)===!1)||l&&t.req&&t.aborted)&&qt.nextTick(C);let U=()=>{r=Us,t.removeListener(\"aborted\",I),t.removeListener(\"complete\",g),t.removeListener(\"abort\",I),t.removeListener(\"request\",R),t.req&&t.req.removeListener(\"finish\",g),t.removeListener(\"end\",c),t.removeListener(\"close\",c),t.removeListener(\"finish\",g),t.removeListener(\"end\",w),t.removeListener(\"error\",S),t.removeListener(\"close\",I)};if(e.signal&&!E){let N=()=>{let W=r;U(),W.call(t,new Df(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)qt.nextTick(N);else{let W=r;r=Ls((...K)=>{e.signal.removeEventListener(\"abort\",N),W.apply(t,K)}),e.signal.addEventListener(\"abort\",N)}}return U}function kb(t,e,r){let i=!1,n=Us;if(e.signal)if(n=()=>{i=!0,r.call(t,new Df(void 0,{cause:e.signal.reason}))},e.signal.aborted)qt.nextTick(n);else{let s=r;r=Ls((...a)=>{e.signal.removeEventListener(\"abort\",n),s.apply(t,a)}),e.signal.addEventListener(\"abort\",n)}let o=(...s)=>{i||qt.nextTick(()=>r.apply(t,s))};return Sb(t[Bb].promise,o,o),Us}function Ob(t,e){var r;let i=!1;return e===null&&(e=Ms),(r=e)!==null&&r!==void 0&&r.cleanup&&(vb(e.cleanup,\"cleanup\"),i=e.cleanup),new Eb((n,o)=>{let s=jf(t,e,a=>{i&&s(),a?o(a):n()})})}Ns.exports=jf;Ns.exports.finished=Ob});var ir=M((TI,Gf)=>{\"use strict\";_();v();m();var rt=Nt(),{aggregateTwoErrors:xb,codes:{ERR_MULTIPLE_CALLBACK:Mb},AbortError:Lb}=Ae(),{Symbol:$f}=ce(),{kDestroyed:Ub,isDestroyed:Nb,isFinished:qb,isServerRequest:Db}=tt(),Hf=$f(\"kDestroy\"),qs=$f(\"kConstruct\");function Vf(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function jb(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e==\"function\"&&e(),this):(Vf(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Ff(this,t,e):this.once(Hf,function(o){Ff(this,xb(o,t),e)}),this)}function Ff(t,e,r){let i=!1;function n(o){if(i)return;i=!0;let s=t._readableState,a=t._writableState;Vf(o,a,s),a&&(a.closed=!0),s&&(s.closed=!0),typeof r==\"function\"&&r(o),o?rt.nextTick(Fb,t,o):rt.nextTick(zf,t)}try{t._destroy(e||null,n)}catch(o){n(o)}}function Fb(t,e){Ds(t,e),zf(t)}function zf(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit(\"close\")}function Ds(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit(\"error\",e))}function Wb(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function js(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?rt.nextTick(Ds,t,e):Ds(t,e))}function $b(t,e){if(typeof t._construct!=\"function\")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(qs,e),!(t.listenerCount(qs)>1)&&rt.nextTick(Hb,t)}function Hb(t){let e=!1;function r(i){if(e){js(t,i??new Mb);return}e=!0;let n=t._readableState,o=t._writableState,s=o||n;n&&(n.constructed=!0),o&&(o.constructed=!0),s.destroyed?t.emit(Hf,i):i?js(t,i,!0):rt.nextTick(Vb,t)}try{t._construct(i=>{rt.nextTick(r,i)})}catch(i){rt.nextTick(r,i)}}function Vb(t){t.emit(qs)}function Wf(t){return t?.setHeader&&typeof t.abort==\"function\"}function Kf(t){t.emit(\"close\")}function zb(t,e){t.emit(\"error\",e),rt.nextTick(Kf,t)}function Kb(t,e){!t||Nb(t)||(!e&&!qb(t)&&(e=new Lb),Db(t)?(t.socket=null,t.destroy(e)):Wf(t)?t.abort():Wf(t.req)?t.req.abort():typeof t.destroy==\"function\"?t.destroy(e):typeof t.close==\"function\"?t.close():e?rt.nextTick(zb,t,e):rt.nextTick(Kf,t),t.destroyed||(t[Ub]=!0))}Gf.exports={construct:$b,destroyer:Kb,destroy:jb,undestroy:Wb,errorOrDestroy:js}});function Y(){Y.init.call(this)}function en(t){if(typeof t!=\"function\")throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof t)}function nc(t){return t._maxListeners===void 0?Y.defaultMaxListeners:t._maxListeners}function Xf(t,e,r,i){var n,o,s,a;if(en(r),(o=t._events)===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit(\"newListener\",e,r.listener?r.listener:r),o=t._events),s=o[e]),s===void 0)s=o[e]=r,++t._eventsCount;else if(typeof s==\"function\"?s=o[e]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(n=nc(t))>0&&s.length>n&&!s.warned){s.warned=!0;var l=new Error(\"Possible EventEmitter memory leak detected. \"+s.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");l.name=\"MaxListenersExceededWarning\",l.emitter=t,l.type=e,l.count=s.length,a=l,console&&console.warn&&console.warn(a)}return t}function Gb(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Zf(t,e,r){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=Gb.bind(i);return n.listener=r,i.wrapFn=n,n}function ec(t,e,r){var i=t._events;if(i===void 0)return[];var n=i[e];return n===void 0?[]:typeof n==\"function\"?r?[n.listener||n]:[n]:r?function(o){for(var s=new Array(o.length),a=0;a{_();v();m();qr=typeof Reflect==\"object\"?Reflect:null,Qf=qr&&typeof qr.apply==\"function\"?qr.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};ic=qr&&typeof qr.ownKeys==\"function\"?qr.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};Yf=Number.isNaN||function(t){return t!=t};rc=Y,Y.EventEmitter=Y,Y.prototype._events=void 0,Y.prototype._eventsCount=0,Y.prototype._maxListeners=void 0;Jf=10;Object.defineProperty(Y,\"defaultMaxListeners\",{enumerable:!0,get:function(){return Jf},set:function(t){if(typeof t!=\"number\"||t<0||Yf(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");Jf=t}}),Y.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Y.prototype.setMaxListeners=function(t){if(typeof t!=\"number\"||t<0||Yf(t))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+t+\".\");return this._maxListeners=t,this},Y.prototype.getMaxListeners=function(){return nc(this)},Y.prototype.emit=function(t){for(var e=[],r=1;r0&&(o=e[0]),o instanceof Error)throw o;var s=new Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw s.context=o,s}var a=n[t];if(a===void 0)return!1;if(typeof a==\"function\")Qf(a,this,e);else{var l=a.length,c=sc(a,l);for(r=0;r=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,n=o;break}if(n<0)return this;n===0?r.shift():function(a,l){for(;l+1=0;i--)this.removeListener(t,e[i]);return this},Y.prototype.listeners=function(t){return ec(this,t,!0)},Y.prototype.rawListeners=function(t){return ec(this,t,!1)},Y.listenerCount=function(t,e){return typeof t.listenerCount==\"function\"?t.listenerCount(e):tc.call(t,e)},Y.prototype.listenerCount=tc,Y.prototype.eventNames=function(){return this._eventsCount>0?ic(this._events):[]};Be=rc;Be.EventEmitter;Be.defaultMaxListeners;Be.init;Be.listenerCount;Be.EventEmitter;Be.defaultMaxListeners;Be.init;Be.listenerCount});var nr={};Jt(nr,{EventEmitter:()=>Qb,default:()=>Be,defaultMaxListeners:()=>Yb,init:()=>Jb,listenerCount:()=>Xb,on:()=>Zb,once:()=>ew});var Qb,Yb,Jb,Xb,Zb,ew,sr=_e(()=>{_();v();m();Fs();Fs();Be.once=function(t,e){return new Promise((r,i)=>{function n(...s){o!==void 0&&t.removeListener(\"error\",o),r(s)}let o;e!==\"error\"&&(o=s=>{t.removeListener(name,n),i(s)},t.once(\"error\",o)),t.once(e,n)})};Be.on=function(t,e){let r=[],i=[],n=null,o=!1,s={async next(){let c=r.shift();if(c)return createIterResult(c,!1);if(n){let h=Promise.reject(n);return n=null,h}return o?createIterResult(void 0,!0):new Promise((h,d)=>i.push({resolve:h,reject:d}))},async return(){t.removeListener(e,a),t.removeListener(\"error\",l),o=!0;for(let c of i)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){n=c,t.removeListener(e,a),t.removeListener(\"error\",l)},[Symbol.asyncIterator](){return this}};return t.on(e,a),t.on(\"error\",l),s;function a(...c){let h=i.shift();h?h.resolve(createIterResult(c,!1)):r.push(c)}function l(c){o=!0;let h=i.shift();h?h.reject(c):n=c,s.return()}};({EventEmitter:Qb,defaultMaxListeners:Yb,init:Jb,listenerCount:Xb,on:Zb,once:ew}=Be)});var nn=M((GI,ac)=>{\"use strict\";_();v();m();var{ArrayIsArray:tw,ObjectSetPrototypeOf:oc}=ce(),{EventEmitter:tn}=(sr(),X(nr));function rn(t){tn.call(this,t)}oc(rn.prototype,tn.prototype);oc(rn,tn);rn.prototype.pipe=function(t,e){let r=this;function i(h){t.writable&&t.write(h)===!1&&r.pause&&r.pause()}r.on(\"data\",i);function n(){r.readable&&r.resume&&r.resume()}t.on(\"drain\",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on(\"end\",s),r.on(\"close\",a));let o=!1;function s(){o||(o=!0,t.end())}function a(){o||(o=!0,typeof t.destroy==\"function\"&&t.destroy())}function l(h){c(),tn.listenerCount(this,\"error\")===0&&this.emit(\"error\",h)}Ws(r,\"error\",l),Ws(t,\"error\",l);function c(){r.removeListener(\"data\",i),t.removeListener(\"drain\",n),r.removeListener(\"end\",s),r.removeListener(\"close\",a),r.removeListener(\"error\",l),t.removeListener(\"error\",l),r.removeListener(\"end\",c),r.removeListener(\"close\",c),t.removeListener(\"close\",c)}return r.on(\"end\",c),r.on(\"close\",c),t.on(\"close\",c),t.emit(\"pipe\",r),t};function Ws(t,e,r){if(typeof t.prependListener==\"function\")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):tw(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}ac.exports={Stream:rn,prependListener:Ws}});var di=M((tT,sn)=>{\"use strict\";_();v();m();var{AbortError:lc,codes:rw}=Ae(),{isNodeStream:uc,isWebStream:iw,kControllerErrorFunction:nw}=tt(),sw=vt(),{ERR_INVALID_ARG_TYPE:fc}=rw,ow=(t,e)=>{if(typeof t!=\"object\"||!(\"aborted\"in t))throw new fc(e,\"AbortSignal\",t)};sn.exports.addAbortSignal=function(e,r){if(ow(e,\"signal\"),!uc(r)&&!iw(r))throw new fc(\"stream\",[\"ReadableStream\",\"WritableStream\",\"Stream\"],r);return sn.exports.addAbortSignalNoValidate(e,r)};sn.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!=\"object\"||!(\"aborted\"in t))return e;let r=uc(e)?()=>{e.destroy(new lc(void 0,{cause:t.reason}))}:()=>{e[nw](new lc(void 0,{cause:t.reason}))};return t.aborted?r():(t.addEventListener(\"abort\",r),sw(e,()=>t.removeEventListener(\"abort\",r))),e}});var dc=M((uT,hc)=>{\"use strict\";_();v();m();var{StringPrototypeSlice:cc,SymbolIterator:aw,TypedArrayPrototypeSet:on,Uint8Array:lw}=ce(),{Buffer:$s}=(be(),X(me)),{inspect:uw}=Je();hc.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return\"\";let r=this.head,i=\"\"+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return $s.alloc(0);let r=$s.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)on(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(eo.length)r+=o,e-=o.length;else{e===o.length?(r+=o,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=cc(o,0,e),this.head=i,i.data=cc(o,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=$s.allocUnsafe(e),i=e,n=this.head,o=0;do{let s=n.data;if(e>s.length)on(r,s,i-e),e-=s.length;else{e===s.length?(on(r,s,i-e),++o,n.next?this.head=n.next:this.head=this.tail=null):(on(r,new lw(s.buffer,s.byteOffset,e),i-e),this.head=n,n.data=s.slice(e));break}++o}while((n=n.next)!==null);return this.length-=o,r}[Symbol.for(\"nodejs.util.inspect.custom\")](e,r){return uw(this,{...r,depth:0,customInspect:!1})}}});var an=M((yT,gc)=>{\"use strict\";_();v();m();var{MathFloor:fw,NumberIsInteger:cw}=ce(),{ERR_INVALID_ARG_VALUE:hw}=Ae().codes;function dw(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function pc(t){return t?16:16*1024}function pw(t,e,r,i){let n=dw(e,i,r);if(n!=null){if(!cw(n)||n<0){let o=i?`options.${r}`:\"options.highWaterMark\";throw new hw(o,n)}return fw(n)}return pc(t.objectMode)}gc.exports={getHighWaterMark:pw,getDefaultHighWaterMark:pc}});function wc(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return r===-1&&(r=e),[r,r===e?0:4-r%4]}function gw(t,e,r){for(var i,n,o=[],s=e;s>18&63]+$e[n>>12&63]+$e[n>>6&63]+$e[63&n]);return o.join(\"\")}function Et(t){if(t>2147483647)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,O.prototype),e}function O(t,e,r){if(typeof t==\"number\"){if(typeof e==\"string\")throw new TypeError('The \"string\" argument must be of type string. Received type number');return Ks(t)}return Cc(t,e,r)}function Cc(t,e,r){if(typeof t==\"string\")return function(o,s){if(typeof s==\"string\"&&s!==\"\"||(s=\"utf8\"),!O.isEncoding(s))throw new TypeError(\"Unknown encoding: \"+s);var a=0|Pc(o,s),l=Et(a),c=l.write(o,s);return c!==a&&(l=l.slice(0,c)),l}(t,e);if(ArrayBuffer.isView(t))return Hs(t);if(t==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t);if(St(t,ArrayBuffer)||t&&St(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(St(t,SharedArrayBuffer)||t&&St(t.buffer,SharedArrayBuffer)))return mc(t,e,r);if(typeof t==\"number\")throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return O.from(i,e,r);var n=function(o){if(O.isBuffer(o)){var s=0|Ys(o.length),a=Et(s);return a.length===0||o.copy(a,0,0,s),a}if(o.length!==void 0)return typeof o.length!=\"number\"||Js(o.length)?Et(0):Hs(o);if(o.type===\"Buffer\"&&Array.isArray(o.data))return Hs(o.data)}(t);if(n)return n;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\"function\")return O.from(t[Symbol.toPrimitive](\"string\"),e,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t)}function Bc(t){if(typeof t!=\"number\")throw new TypeError('\"size\" argument must be of type number');if(t<0)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"')}function Ks(t){return Bc(t),Et(t<0?0:0|Ys(t))}function Hs(t){for(var e=t.length<0?0:0|Ys(t.length),r=Et(e),i=0;i=2147483647)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+2147483647 .toString(16)+\" bytes\");return 0|t}function Pc(t,e){if(O.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||St(t,ArrayBuffer))return t.byteLength;if(typeof t!=\"string\")throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return Gs(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return Mc(t).length;default:if(n)return i?-1:Gs(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function bw(t,e,r){var i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return Tw(this,e,r);case\"utf8\":case\"utf-8\":return Oc(this,e,r);case\"ascii\":return Aw(this,e,r);case\"latin1\":case\"binary\":return Iw(this,e,r);case\"base64\":return Sw(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Rw(this,e,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),i=!0}}function ar(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function vc(t,e,r,i,n){if(t.length===0)return-1;if(typeof r==\"string\"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Js(r=+r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if(typeof e==\"string\"&&(e=O.from(e,i)),O.isBuffer(e))return e.length===0?-1:Ec(t,e,r,i,n);if(typeof e==\"number\")return e&=255,typeof Uint8Array.prototype.indexOf==\"function\"?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ec(t,[e],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function Ec(t,e,r,i,n){var o,s=1,a=t.length,l=e.length;if(i!==void 0&&((i=String(i).toLowerCase())===\"ucs2\"||i===\"ucs-2\"||i===\"utf16le\"||i===\"utf-16le\")){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,r/=2}function c(y,w){return s===1?y[w]:y.readUInt16BE(w*s)}if(n){var h=-1;for(o=r;oa&&(r=a-l),o=r;o>=0;o--){for(var d=!0,g=0;gn&&(i=n):i=n;var o=e.length;i>o/2&&(i=o/2);for(var s=0;s>8,l=s%256,c.push(l),c.push(a);return c}(e,t.length-r),t,r,i)}function Sw(t,e,r){return e===0&&r===t.length?zs.fromByteArray(t):zs.fromByteArray(t.slice(e,r))}function Oc(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n239?4:c>223?3:c>191?2:1;if(n+d<=r)switch(d){case 1:c<128&&(h=c);break;case 2:(192&(o=t[n+1]))==128&&(l=(31&c)<<6|63&o)>127&&(h=l);break;case 3:o=t[n+1],s=t[n+2],(192&o)==128&&(192&s)==128&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(h=l)}h===null?(h=65533,d=1):h>65535&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=d}return function(g){var y=g.length;if(y<=4096)return String.fromCharCode.apply(String,g);for(var w=\"\",S=0;Si)&&(r=i);for(var n=\"\",o=e;or)throw new RangeError(\"Trying to access beyond buffer length\")}function Pe(t,e,r,i,n,o){if(!O.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>n||et.length)throw new RangeError(\"Index out of range\")}function xc(t,e,r,i,n,o){if(r+i>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function Sc(t,e,r,i,n){return e=+e,r>>>=0,n||xc(t,0,r,4),Dr.write(t,e,r,i,23,4),r+4}function Ac(t,e,r,i,n){return e=+e,r>>>=0,n||xc(t,0,r,8),Dr.write(t,e,r,i,52,8),r+8}function Gs(t,e){var r;e=e||1/0;for(var i=t.length,n=null,o=[],s=0;s55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Mc(t){return zs.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(Cw,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(t))}function cn(t,e,r,i){for(var n=0;n=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function St(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Js(t){return t!=t}function Ic(t,e){for(var r in t)e[r]=t[r]}function lr(t,e,r){return it(t,e,r)}function pi(t){var e;switch(this.encoding=function(r){var i=function(n){if(!n)return\"utf8\";for(var o;;)switch(n){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return n;default:if(o)return;n=(\"\"+n).toLowerCase(),o=!0}}(r);if(typeof i!=\"string\"&&(Qs.isEncoding===Tc||!Tc(r)))throw new Error(\"Unknown encoding: \"+r);return i||r}(t),this.encoding){case\"utf16le\":this.text=Ow,this.end=xw,e=4;break;case\"utf8\":this.fillLast=kw,e=4;break;case\"base64\":this.text=Mw,this.end=Lw,e=3;break;default:return this.write=Uw,this.end=Nw,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Qs.allocUnsafe(e)}function Vs(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function kw(t){var e=this.lastTotal-this.lastNeed,r=function(i,n,o){if((192&n[0])!=128)return i.lastNeed=0,\"\\uFFFD\";if(i.lastNeed>1&&n.length>1){if((192&n[1])!=128)return i.lastNeed=1,\"\\uFFFD\";if(i.lastNeed>2&&n.length>2&&(192&n[2])!=128)return i.lastNeed=2,\"\\uFFFD\"}}(this,t);return r!==void 0?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length,void 0)}function Ow(t,e){if((t.length-e)%2==0){var r=t.toString(\"utf16le\",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}function xw(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,r)}return e}function Mw(t,e){var r=(t.length-e)%3;return r===0?t.toString(\"base64\",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-r))}function Lw(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}function Uw(t){return t.toString(this.encoding)}function Nw(t){return t&&t.length?this.write(t):\"\"}var Rc,$e,Oe,yc,ln,or,bc,yw,At,zs,Dr,_c,Cw,Bw,un,fn,it,Pw,ur,Qs,Tc,Xs=_e(()=>{_();v();m();for(Rc={byteLength:function(t){var e=wc(t),r=e[0],i=e[1];return 3*(r+i)/4-i},toByteArray:function(t){var e,r,i=wc(t),n=i[0],o=i[1],s=new yc(function(c,h,d){return 3*(h+d)/4-d}(0,n,o)),a=0,l=o>0?n-4:n;for(r=0;r>16&255,s[a++]=e>>8&255,s[a++]=255&e;return o===2&&(e=Oe[t.charCodeAt(r)]<<2|Oe[t.charCodeAt(r+1)]>>4,s[a++]=255&e),o===1&&(e=Oe[t.charCodeAt(r)]<<10|Oe[t.charCodeAt(r+1)]<<4|Oe[t.charCodeAt(r+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e),s},fromByteArray:function(t){for(var e,r=t.length,i=r%3,n=[],o=0,s=r-i;os?s:o+16383));return i===1?(e=t[r-1],n.push($e[e>>2]+$e[e<<4&63]+\"==\")):i===2&&(e=(t[r-2]<<8)+t[r-1],n.push($e[e>>10]+$e[e>>4&63]+$e[e<<2&63]+\"=\")),n.join(\"\")}},$e=[],Oe=[],yc=typeof Uint8Array<\"u\"?Uint8Array:Array,ln=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",or=0,bc=ln.length;or>1,h=-7,d=r?n-1:0,g=r?-1:1,y=t[e+d];for(d+=g,o=y&(1<<-h)-1,y>>=-h,h+=a;h>0;o=256*o+t[e+d],d+=g,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=i;h>0;s=256*s+t[e+d],d+=g,h-=8);if(o===0)o=1-c;else{if(o===l)return s?NaN:1/0*(y?-1:1);s+=Math.pow(2,i),o-=c}return(y?-1:1)*s*Math.pow(2,o-i)},write:function(t,e,r,i,n,o){var s,a,l,c=8*o-n-1,h=(1<>1,g=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,w=i?1:-1,S=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+d>=1?g/l:g*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=h?(a=0,s=h):s+d>=1?(a=(e*l-1)*Math.pow(2,n),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;t[r+y]=255&a,y+=w,a/=256,n-=8);for(s=s<0;t[r+y]=255&s,y+=w,s/=256,c-=8);t[r+y-w]|=128*S}},At={},zs=Rc,Dr=yw,_c=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;At.Buffer=O,At.SlowBuffer=function(t){return+t!=t&&(t=0),O.alloc(+t)},At.INSPECT_MAX_BYTES=50;At.kMaxLength=2147483647,O.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}(),O.TYPED_ARRAY_SUPPORT||typeof console>\"u\"||typeof console.error!=\"function\"||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(O.prototype,\"parent\",{enumerable:!0,get:function(){if(O.isBuffer(this))return this.buffer}}),Object.defineProperty(O.prototype,\"offset\",{enumerable:!0,get:function(){if(O.isBuffer(this))return this.byteOffset}}),O.poolSize=8192,O.from=function(t,e,r){return Cc(t,e,r)},Object.setPrototypeOf(O.prototype,Uint8Array.prototype),Object.setPrototypeOf(O,Uint8Array),O.alloc=function(t,e,r){return function(i,n,o){return Bc(i),i<=0?Et(i):n!==void 0?typeof o==\"string\"?Et(i).fill(n,o):Et(i).fill(n):Et(i)}(t,e,r)},O.allocUnsafe=function(t){return Ks(t)},O.allocUnsafeSlow=function(t){return Ks(t)},O.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==O.prototype},O.compare=function(t,e){if(St(t,Uint8Array)&&(t=O.from(t,t.offset,t.byteLength)),St(e,Uint8Array)&&(e=O.from(e,e.offset,e.byteLength)),!O.isBuffer(t)||!O.isBuffer(e))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);ne&&(t+=\" ... \"),\"\"},_c&&(O.prototype[_c]=O.prototype.inspect),O.prototype.compare=function(t,e,r,i,n){if(St(t,Uint8Array)&&(t=O.from(t,t.offset,t.byteLength)),!O.isBuffer(t))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),r===void 0&&(r=t?t.length:0),i===void 0&&(i=0),n===void 0&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(i>=n&&e>=r)return 0;if(i>=n)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(i>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(i,n),c=t.slice(e,r),h=0;h>>=0,isFinite(r)?(r>>>=0,i===void 0&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-e;if((r===void 0||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i||(i=\"utf8\");for(var o=!1;;)switch(i){case\"hex\":return ww(this,t,e,r);case\"utf8\":case\"utf-8\":return _w(this,t,e,r);case\"ascii\":return kc(this,t,e,r);case\"latin1\":case\"binary\":return mw(this,t,e,r);case\"base64\":return vw(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Ew(this,t,e,r);default:if(o)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),o=!0}},O.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};O.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=e===void 0?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||we(t,e,this.length);for(var i=this[t],n=1,o=0;++o>>=0,e>>>=0,r||we(t,e,this.length);for(var i=this[t+--e],n=1;e>0&&(n*=256);)i+=this[t+--e]*n;return i},O.prototype.readUInt8=function(t,e){return t>>>=0,e||we(t,1,this.length),this[t]},O.prototype.readUInt16LE=function(t,e){return t>>>=0,e||we(t,2,this.length),this[t]|this[t+1]<<8},O.prototype.readUInt16BE=function(t,e){return t>>>=0,e||we(t,2,this.length),this[t]<<8|this[t+1]},O.prototype.readUInt32LE=function(t,e){return t>>>=0,e||we(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},O.prototype.readUInt32BE=function(t,e){return t>>>=0,e||we(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},O.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||we(t,e,this.length);for(var i=this[t],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*e)),i},O.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||we(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},O.prototype.readInt8=function(t,e){return t>>>=0,e||we(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},O.prototype.readInt16LE=function(t,e){t>>>=0,e||we(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},O.prototype.readInt16BE=function(t,e){t>>>=0,e||we(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},O.prototype.readInt32LE=function(t,e){return t>>>=0,e||we(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},O.prototype.readInt32BE=function(t,e){return t>>>=0,e||we(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},O.prototype.readFloatLE=function(t,e){return t>>>=0,e||we(t,4,this.length),Dr.read(this,t,!0,23,4)},O.prototype.readFloatBE=function(t,e){return t>>>=0,e||we(t,4,this.length),Dr.read(this,t,!1,23,4)},O.prototype.readDoubleLE=function(t,e){return t>>>=0,e||we(t,8,this.length),Dr.read(this,t,!0,52,8)},O.prototype.readDoubleBE=function(t,e){return t>>>=0,e||we(t,8,this.length),Dr.read(this,t,!1,52,8)},O.prototype.writeUIntLE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||Pe(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,i||Pe(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[e+n]=255&t;--n>=0&&(o*=256);)this[e+n]=t/o&255;return e+r},O.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,1,255,0),this[e]=255&t,e+1},O.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},O.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},O.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},O.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},O.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e>>>=0,!i){var n=Math.pow(2,8*r-1);Pe(this,t,e,r,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},O.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e>>>=0,!i){var n=Math.pow(2,8*r-1);Pe(this,t,e,r,n-1,-n)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&a===0&&this[e+o+1]!==0&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},O.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},O.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},O.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},O.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},O.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},O.prototype.writeFloatLE=function(t,e,r){return Sc(this,t,e,!0,r)},O.prototype.writeFloatBE=function(t,e,r){return Sc(this,t,e,!1,r)},O.prototype.writeDoubleLE=function(t,e,r){return Ac(this,t,e,!0,r)},O.prototype.writeDoubleBE=function(t,e,r){return Ac(this,t,e,!1,r)},O.prototype.copy=function(t,e,r,i){if(!O.isBuffer(t))throw new TypeError(\"argument should be a Buffer\");if(r||(r=0),i||i===0||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,i),e);return n},O.prototype.fill=function(t,e,r,i){if(typeof t==\"string\"){if(typeof e==\"string\"?(i=e,e=0,r=this.length):typeof r==\"string\"&&(i=r,r=this.length),i!==void 0&&typeof i!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof i==\"string\"&&!O.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(t.length===1){var n=t.charCodeAt(0);(i===\"utf8\"&&n<128||i===\"latin1\")&&(t=n)}}else typeof t==\"number\"?t&=255:typeof t==\"boolean\"&&(t=Number(t));if(e<0||this.length>>=0,r=r===void 0?this.length:r>>>0,t||(t=0),typeof t==\"number\")for(o=e;o=0?(l>0&&(n.lastNeed=l-1),l):--a=0?(l>0&&(n.lastNeed=l-2),l):--a=0?(l>0&&(l===2?l=0:n.lastNeed=l-3),l):0}(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString(\"utf8\",e,i)},pi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};ur.StringDecoder;ur.StringDecoder});var Lc={};Jt(Lc,{StringDecoder:()=>qw,default:()=>ur});var qw,Uc=_e(()=>{_();v();m();Xs();Xs();qw=ur.StringDecoder});var Zs=M((qT,jc)=>{\"use strict\";_();v();m();var Nc=Nt(),{PromisePrototypeThen:Dw,SymbolAsyncIterator:qc,SymbolIterator:Dc}=ce(),{Buffer:jw}=(be(),X(me)),{ERR_INVALID_ARG_TYPE:Fw,ERR_STREAM_NULL_VALUES:Ww}=Ae().codes;function $w(t,e,r){let i;if(typeof e==\"string\"||e instanceof jw)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[qc])n=!0,i=e[qc]();else if(e&&e[Dc])n=!1,i=e[Dc]();else throw new Fw(\"iterable\",[\"Iterable\"],e);let o=new t({objectMode:!0,highWaterMark:1,...r}),s=!1;o._read=function(){s||(s=!0,l())},o._destroy=function(c,h){Dw(a(c),()=>Nc.nextTick(h,c),d=>Nc.nextTick(h,d||c))};async function a(c){let h=c!=null,d=typeof i.throw==\"function\";if(h&&d){let{value:g,done:y}=await i.throw(c);if(await g,y)return}if(typeof i.return==\"function\"){let{value:g}=await i.return();await g}}async function l(){for(;;){try{let{value:c,done:h}=n?await i.next():i.next();if(h)o.push(null);else{let d=c&&typeof c.then==\"function\"?await c:c;if(d===null)throw s=!1,new Ww;if(o.push(d))continue;s=!1}}catch(c){o.destroy(c)}break}}return o}jc.exports=$w});var gi=M((VT,Zc)=>{_();v();m();var He=Nt(),{ArrayPrototypeIndexOf:Hw,NumberIsInteger:Vw,NumberIsNaN:zw,NumberParseInt:Kw,ObjectDefineProperties:$c,ObjectKeys:Gw,ObjectSetPrototypeOf:Hc,Promise:Qw,SafeSet:Yw,SymbolAsyncIterator:Jw,Symbol:Xw}=ce();Zc.exports=F;F.ReadableState=so;var{EventEmitter:Zw}=(sr(),X(nr)),{Stream:Dt,prependListener:e_}=nn(),{Buffer:eo}=(be(),X(me)),{addAbortSignal:t_}=di(),r_=vt(),H=Je().debuglog(\"stream\",t=>{H=t}),i_=dc(),Fr=ir(),{getHighWaterMark:n_,getDefaultHighWaterMark:s_}=an(),{aggregateTwoErrors:Fc,codes:{ERR_INVALID_ARG_TYPE:o_,ERR_METHOD_NOT_IMPLEMENTED:a_,ERR_OUT_OF_RANGE:l_,ERR_STREAM_PUSH_AFTER_EOF:u_,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:f_}}=Ae(),{validateObject:c_}=hi(),fr=Xw(\"kPaused\"),{StringDecoder:Vc}=(Uc(),X(Lc)),h_=Zs();Hc(F.prototype,Dt.prototype);Hc(F,Dt);var to=()=>{},{errorOrDestroy:jr}=Fr;function so(t,e,r){typeof r!=\"boolean\"&&(r=e instanceof nt()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.readableObjectMode)),this.highWaterMark=t?n_(this,t,\"readableHighWaterMark\",r):s_(!1),this.buffer=new i_,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[fr]=null,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=t&&t.defaultEncoding||\"utf8\",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Vc(t.encoding),this.encoding=t.encoding)}function F(t){if(!(this instanceof F))return new F(t);let e=this instanceof nt();this._readableState=new so(t,this,e),t&&(typeof t.read==\"function\"&&(this._read=t.read),typeof t.destroy==\"function\"&&(this._destroy=t.destroy),typeof t.construct==\"function\"&&(this._construct=t.construct),t.signal&&!e&&t_(t.signal,this)),Dt.call(this,t),Fr.construct(this,()=>{this._readableState.needReadable&&hn(this,this._readableState)})}F.prototype.destroy=Fr.destroy;F.prototype._undestroy=Fr.undestroy;F.prototype._destroy=function(t,e){e(t)};F.prototype[Zw.captureRejectionSymbol]=function(t){this.destroy(t)};F.prototype.push=function(t,e){return zc(this,t,e,!1)};F.prototype.unshift=function(t,e){return zc(this,t,e,!0)};function zc(t,e,r,i){H(\"readableAddChunk\",e);let n=t._readableState,o;if(n.objectMode||(typeof e==\"string\"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=eo.from(e,r).toString(n.encoding):(e=eo.from(e,r),r=\"\"))):e instanceof eo?r=\"\":Dt._isUint8Array(e)?(e=Dt._uint8ArrayToBuffer(e),r=\"\"):e!=null&&(o=new o_(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],e))),o)jr(t,o);else if(e===null)n.reading=!1,g_(t,n);else if(n.objectMode||e&&e.length>0)if(i)if(n.endEmitted)jr(t,new f_);else{if(n.destroyed||n.errored)return!1;ro(t,n,e,!0)}else if(n.ended)jr(t,new u_);else{if(n.destroyed||n.errored)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?ro(t,n,e,!1):hn(t,n)):ro(t,n,e,!1)}else i||(n.reading=!1,hn(t,n));return!n.ended&&(n.length0?(e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit(\"data\",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&dn(t)),hn(t,e)}F.prototype.isPaused=function(){let t=this._readableState;return t[fr]===!0||t.flowing===!1};F.prototype.setEncoding=function(t){let e=new Vc(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i=\"\";for(let n of r)i+=e.write(n);return r.clear(),i!==\"\"&&r.push(i),this._readableState.length=i.length,this};var d_=1073741824;function p_(t){if(t>d_)throw new l_(\"size\",\"<= 1GiB\",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Wc(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:zw(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}F.prototype.read=function(t){H(\"read\",t),t===void 0?t=NaN:Vw(t)||(t=Kw(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=p_(t)),t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return H(\"read: emitReadable\",e.length,e.ended),e.length===0&&e.ended?io(this):dn(this),null;if(t=Wc(t,e),t===0&&e.ended)return e.length===0&&io(this),null;let i=e.needReadable;if(H(\"need readable\",i),(e.length===0||e.length-t0?n=Jc(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&io(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit(\"data\",n)),n};function g_(t,e){if(H(\"onEofChunk\"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?dn(t):(e.needReadable=!1,e.emittedReadable=!0,Kc(t))}}function dn(t){let e=t._readableState;H(\"emitReadable\",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(H(\"emitReadable\",e.flowing),e.emittedReadable=!0,He.nextTick(Kc,t))}function Kc(t){let e=t._readableState;H(\"emitReadable_\",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit(\"readable\"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Qc(t)}function hn(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,He.nextTick(y_,t,e))}function y_(t,e){for(;!e.reading&&!e.ended&&(e.length1&&i.pipes.includes(t)&&(H(\"false write response, pause\",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=b_(r,t),t.on(\"drain\",l))}r.on(\"data\",g);function g(I){H(\"ondata\");let C=t.write(I);H(\"dest.write\",C),C===!1&&d()}function y(I){if(H(\"onerror\",I),E(),t.removeListener(\"error\",y),t.listenerCount(\"error\")===0){let C=t._writableState||t._readableState;C&&!C.errorEmitted?jr(t,I):t.emit(\"error\",I)}}e_(t,\"error\",y);function w(){t.removeListener(\"finish\",S),E()}t.once(\"close\",w);function S(){H(\"onfinish\"),t.removeListener(\"close\",w),E()}t.once(\"finish\",S);function E(){H(\"unpipe\"),r.unpipe(t)}return t.emit(\"pipe\",r),t.writableNeedDrain===!0?i.flowing&&d():i.flowing||(H(\"pipe resume\"),r.resume()),t};function b_(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(H(\"pipeOnDrain\",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(H(\"pipeOnDrain\",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount(\"data\")&&t.resume()}}F.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let o=0;o0,i.flowing!==!1&&this.resume()):t===\"readable\"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,H(\"on readable\",i.length,i.reading),i.length?dn(this):i.reading||He.nextTick(w_,this)),r};F.prototype.addListener=F.prototype.on;F.prototype.removeListener=function(t,e){let r=Dt.prototype.removeListener.call(this,t,e);return t===\"readable\"&&He.nextTick(Gc,this),r};F.prototype.off=F.prototype.removeListener;F.prototype.removeAllListeners=function(t){let e=Dt.prototype.removeAllListeners.apply(this,arguments);return(t===\"readable\"||t===void 0)&&He.nextTick(Gc,this),e};function Gc(t){let e=t._readableState;e.readableListening=t.listenerCount(\"readable\")>0,e.resumeScheduled&&e[fr]===!1?e.flowing=!0:t.listenerCount(\"data\")>0?t.resume():e.readableListening||(e.flowing=null)}function w_(t){H(\"readable nexttick read 0\"),t.read(0)}F.prototype.resume=function(){let t=this._readableState;return t.flowing||(H(\"resume\"),t.flowing=!t.readableListening,__(this,t)),t[fr]=!1,this};function __(t,e){e.resumeScheduled||(e.resumeScheduled=!0,He.nextTick(m_,t,e))}function m_(t,e){H(\"resume\",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit(\"resume\"),Qc(t),e.flowing&&!e.reading&&t.read(0)}F.prototype.pause=function(){return H(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(H(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState[fr]=!0,this};function Qc(t){let e=t._readableState;for(H(\"flow\",e.flowing);e.flowing&&t.read()!==null;);}F.prototype.wrap=function(t){let e=!1;t.on(\"data\",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on(\"end\",()=>{this.push(null)}),t.on(\"error\",i=>{jr(this,i)}),t.on(\"close\",()=>{this.destroy()}),t.on(\"destroy\",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=Gw(t);for(let i=1;i{n=s?Fc(n,s):null,r(),r=to});try{for(;;){let s=t.destroyed?null:t.read();if(s!==null)yield s;else{if(n)throw n;if(n===null)return;await new Qw(i)}}}catch(s){throw n=Fc(n,s),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Fr.destroyer(t,null):(t.off(\"readable\",i),o())}}$c(F.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});$c(so.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[fr]!==!1},set(t){this[fr]=!!t}}});F._fromList=Jc;function Jc(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(\"\"):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function io(t){let e=t._readableState;H(\"endReadable\",e.endEmitted),e.endEmitted||(e.ended=!0,He.nextTick(E_,e,t))}function E_(t,e){if(H(\"endReadableNT\",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit(\"end\"),e.writable&&e.allowHalfOpen===!1)He.nextTick(S_,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function S_(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}F.from=function(t,e){return h_(F,t,e)};var no;function Xc(){return no===void 0&&(no={}),no}F.fromWeb=function(t,e){return Xc().newStreamReadableFromReadableStream(t,e)};F.toWeb=function(t,e){return Xc().newReadableStreamFromStreamReadable(t,e)};F.wrap=function(t,e){var r,i;return new F({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,o){Fr.destroyer(t,n),o(n)}}).wrap(t)}});var ho=M((XT,ch)=>{_();v();m();var cr=Nt(),{ArrayPrototypeSlice:rh,Error:A_,FunctionPrototypeSymbolHasInstance:ih,ObjectDefineProperty:nh,ObjectDefineProperties:I_,ObjectSetPrototypeOf:sh,StringPrototypeToLowerCase:T_,Symbol:R_,SymbolHasInstance:C_}=ce();ch.exports=ie;ie.WritableState=wi;var{EventEmitter:B_}=(sr(),X(nr)),yi=nn().Stream,{Buffer:pn}=(be(),X(me)),bn=ir(),{addAbortSignal:P_}=di(),{getHighWaterMark:k_,getDefaultHighWaterMark:O_}=an(),{ERR_INVALID_ARG_TYPE:x_,ERR_METHOD_NOT_IMPLEMENTED:M_,ERR_MULTIPLE_CALLBACK:oh,ERR_STREAM_CANNOT_PIPE:L_,ERR_STREAM_DESTROYED:bi,ERR_STREAM_ALREADY_FINISHED:U_,ERR_STREAM_NULL_VALUES:N_,ERR_STREAM_WRITE_AFTER_END:q_,ERR_UNKNOWN_ENCODING:ah}=Ae().codes,{errorOrDestroy:Wr}=bn;sh(ie.prototype,yi.prototype);sh(ie,yi);function lo(){}var $r=R_(\"kOnFinished\");function wi(t,e,r){typeof r!=\"boolean\"&&(r=e instanceof nt()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?k_(this,t,\"writableHighWaterMark\",r):O_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=j_.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,yn(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[$r]=[]}function yn(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}wi.prototype.getBuffer=function(){return rh(this.buffered,this.bufferedIndex)};nh(wi.prototype,\"bufferedRequestCount\",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ie(t){let e=this instanceof nt();if(!e&&!ih(ie,this))return new ie(t);this._writableState=new wi(t,this,e),t&&(typeof t.write==\"function\"&&(this._write=t.write),typeof t.writev==\"function\"&&(this._writev=t.writev),typeof t.destroy==\"function\"&&(this._destroy=t.destroy),typeof t.final==\"function\"&&(this._final=t.final),typeof t.construct==\"function\"&&(this._construct=t.construct),t.signal&&P_(t.signal,this)),yi.call(this,t),bn.construct(this,()=>{let r=this._writableState;r.writing||fo(this,r),co(this,r)})}nh(ie,C_,{__proto__:null,value:function(t){return ih(this,t)?!0:this!==ie?!1:t&&t._writableState instanceof wi}});ie.prototype.pipe=function(){Wr(this,new L_)};function lh(t,e,r,i){let n=t._writableState;if(typeof r==\"function\")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!==\"buffer\"&&!pn.isEncoding(r))throw new ah(r);typeof i!=\"function\"&&(i=lo)}if(e===null)throw new N_;if(!n.objectMode)if(typeof e==\"string\")n.decodeStrings!==!1&&(e=pn.from(e,r),r=\"buffer\");else if(e instanceof pn)r=\"buffer\";else if(yi._isUint8Array(e))e=yi._uint8ArrayToBuffer(e),r=\"buffer\";else throw new x_(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],e);let o;return n.ending?o=new q_:n.destroyed&&(o=new bi(\"write\")),o?(cr.nextTick(i,o),Wr(t,o,!0),o):(n.pendingcb++,D_(t,n,e,r,i))}ie.prototype.write=function(t,e,r){return lh(this,t,e,r)===!0};ie.prototype.cork=function(){this._writableState.corked++};ie.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||fo(this,t))};ie.prototype.setDefaultEncoding=function(e){if(typeof e==\"string\"&&(e=T_(e)),!pn.isEncoding(e))throw new ah(e);return this._writableState.defaultEncoding=e,this};function D_(t,e,r,i,n){let o=e.objectMode?1:r.length;e.length+=o;let s=e.lengthr.bufferedIndex&&fo(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},cr.nextTick(F_,r.afterWriteTickInfo)):uh(t,r,1,n))}function F_({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,uh(t,e,r,i)}function uh(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"));r-- >0;)e.pendingcb--,i();e.destroyed&&uo(e),co(t,e)}function uo(t){if(t.writing)return;for(let n=t.bufferedIndex;n1&&t._writev){e.pendingcb-=o-1;let a=e.allNoop?lo:c=>{for(let h=s;h256?(r.splice(0,s),e.bufferedIndex=0):e.bufferedIndex=s}e.bufferProcessing=!1}ie.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new M_(\"_write()\")};ie.prototype._writev=null;ie.prototype.end=function(t,e,r){let i=this._writableState;typeof t==\"function\"?(r=t,t=null,e=null):typeof e==\"function\"&&(r=e,e=null);let n;if(t!=null){let o=lh(this,t,e);o instanceof A_&&(n=o)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,co(this,i,!0),i.ended=!0):i.finished?n=new U_(\"end\"):i.destroyed&&(n=new bi(\"end\"))),typeof r==\"function\"&&(n||i.finished?cr.nextTick(r,n):i[$r].push(r)),this};function gn(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function W_(t,e){let r=!1;function i(n){if(r){Wr(t,n??oh());return}if(r=!0,e.pendingcb--,n){let o=e[$r].splice(0);for(let s=0;s{gn(n)?ao(i,n):n.pendingcb--},t,e)):gn(e)&&(e.pendingcb++,ao(t,e))))}function ao(t,e){e.pendingcb--,e.finished=!0;let r=e[$r].splice(0);for(let i=0;i{_();v();m();var po=Nt(),V_=(be(),X(me)),{isReadable:z_,isWritable:K_,isIterable:hh,isNodeStream:G_,isReadableNodeStream:dh,isWritableNodeStream:ph,isDuplexNodeStream:Q_}=tt(),gh=vt(),{AbortError:vh,codes:{ERR_INVALID_ARG_TYPE:Y_,ERR_INVALID_RETURN_VALUE:yh}}=Ae(),{destroyer:Hr}=ir(),J_=nt(),X_=gi(),{createDeferredPromise:bh}=Je(),wh=Zs(),_h=globalThis.Blob||V_.Blob,Z_=typeof _h<\"u\"?function(e){return e instanceof _h}:function(e){return!1},e0=globalThis.AbortController||zi().AbortController,{FunctionPrototypeCall:mh}=ce(),hr=class extends J_{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};Eh.exports=function t(e,r){if(Q_(e))return e;if(dh(e))return wn({readable:e});if(ph(e))return wn({writable:e});if(G_(e))return wn({writable:!1,readable:!1});if(typeof e==\"function\"){let{value:n,write:o,final:s,destroy:a}=t0(e);if(hh(n))return wh(hr,n,{objectMode:!0,write:o,final:s,destroy:a});let l=n?.then;if(typeof l==\"function\"){let c,h=mh(l,n,d=>{if(d!=null)throw new yh(\"nully\",\"body\",d)},d=>{Hr(c,d)});return c=new hr({objectMode:!0,readable:!1,write:o,final(d){s(async()=>{try{await h,po.nextTick(d,null)}catch(g){po.nextTick(d,g)}})},destroy:a})}throw new yh(\"Iterable, AsyncIterable or AsyncFunction\",r,n)}if(Z_(e))return t(e.arrayBuffer());if(hh(e))return wh(hr,e,{objectMode:!0,writable:!1});if(typeof e?.writable==\"object\"||typeof e?.readable==\"object\"){let n=e!=null&&e.readable?dh(e?.readable)?e?.readable:t(e.readable):void 0,o=e!=null&&e.writable?ph(e?.writable)?e?.writable:t(e.writable):void 0;return wn({readable:n,writable:o})}let i=e?.then;if(typeof i==\"function\"){let n;return mh(i,e,o=>{o!=null&&n.push(o),n.push(null)},o=>{Hr(n,o)}),n=new hr({objectMode:!0,writable:!1,read(){}})}throw new Y_(r,[\"Blob\",\"ReadableStream\",\"WritableStream\",\"Stream\",\"Iterable\",\"AsyncIterable\",\"Function\",\"{ readable, writable } pair\",\"Promise\"],e)};function t0(t){let{promise:e,resolve:r}=bh(),i=new e0,n=i.signal;return{value:t(async function*(){for(;;){let s=e;e=null;let{chunk:a,done:l,cb:c}=await s;if(po.nextTick(c),l)return;if(n.aborted)throw new vh(void 0,{cause:n.reason});({promise:e,resolve:r}=bh()),yield a}}(),{signal:n}),write(s,a,l){let c=r;r=null,c({chunk:s,done:!1,cb:l})},final(s){let a=r;r=null,a({done:!0,cb:s})},destroy(s,a){i.abort(),a(s)}}}function wn(t){let e=t.readable&&typeof t.readable.read!=\"function\"?X_.wrap(t.readable):t.readable,r=t.writable,i=!!z_(e),n=!!K_(r),o,s,a,l,c;function h(d){let g=l;l=null,g?g(d):d&&c.destroy(d)}return c=new hr({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(gh(r,d=>{n=!1,d&&Hr(e,d),h(d)}),c._write=function(d,g,y){r.write(d,g)?y():o=y},c._final=function(d){r.end(),s=d},r.on(\"drain\",function(){if(o){let d=o;o=null,d()}}),r.on(\"finish\",function(){if(s){let d=s;s=null,d()}})),i&&(gh(e,d=>{i=!1,d&&Hr(e,d),h(d)}),e.on(\"readable\",function(){if(a){let d=a;a=null,d()}}),e.on(\"end\",function(){c.push(null)}),c._read=function(){for(;;){let d=e.read();if(d===null){a=c._read;return}if(!c.push(d))return}}),c._destroy=function(d,g){!d&&l!==null&&(d=new vh),a=null,o=null,s=null,l===null?g(d):(l=g,Hr(r,d),Hr(e,d))},c}});var nt=M((h2,Th)=>{\"use strict\";_();v();m();var{ObjectDefineProperties:r0,ObjectGetOwnPropertyDescriptor:It,ObjectKeys:i0,ObjectSetPrototypeOf:Ah}=ce();Th.exports=Ve;var bo=gi(),Ne=ho();Ah(Ve.prototype,bo.prototype);Ah(Ve,bo);{let t=i0(Ne.prototype);for(let e=0;e{\"use strict\";_();v();m();var{ObjectSetPrototypeOf:Rh,Symbol:n0}=ce();Ch.exports=Tt;var{ERR_METHOD_NOT_IMPLEMENTED:s0}=Ae().codes,_o=nt(),{getHighWaterMark:o0}=an();Rh(Tt.prototype,_o.prototype);Rh(Tt,_o);var _i=n0(\"kCallback\");function Tt(t){if(!(this instanceof Tt))return new Tt(t);let e=t?o0(this,t,\"readableHighWaterMark\",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),_o.call(this,t),this._readableState.sync=!1,this[_i]=null,t&&(typeof t.transform==\"function\"&&(this._transform=t.transform),typeof t.flush==\"function\"&&(this._flush=t.flush)),this.on(\"prefinish\",a0)}function wo(t){typeof this._flush==\"function\"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function a0(){this._final!==wo&&wo.call(this)}Tt.prototype._final=wo;Tt.prototype._transform=function(t,e,r){throw new s0(\"_transform()\")};Tt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,o=i.length;this._transform(t,e,(s,a)=>{if(s){r(s);return}a!=null&&this.push(a),n.ended||o===i.length||i.length{\"use strict\";_();v();m();var{ObjectSetPrototypeOf:Bh}=ce();Ph.exports=Vr;var vo=mo();Bh(Vr.prototype,vo.prototype);Bh(Vr,vo);function Vr(t){if(!(this instanceof Vr))return new Vr(t);vo.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var En=M((x2,Lh)=>{_();v();m();var mi=Nt(),{ArrayIsArray:l0,Promise:u0,SymbolAsyncIterator:f0}=ce(),vn=vt(),{once:c0}=Je(),h0=ir(),kh=nt(),{aggregateTwoErrors:d0,codes:{ERR_INVALID_ARG_TYPE:Po,ERR_INVALID_RETURN_VALUE:So,ERR_MISSING_ARGS:p0,ERR_STREAM_DESTROYED:g0,ERR_STREAM_PREMATURE_CLOSE:y0},AbortError:b0}=Ae(),{validateFunction:w0,validateAbortSignal:_0}=hi(),{isIterable:dr,isReadable:Ao,isReadableNodeStream:mn,isNodeStream:Oh,isTransformStream:zr,isWebStream:m0,isReadableStream:Io,isReadableEnded:v0}=tt(),E0=globalThis.AbortController||zi().AbortController,To,Ro;function xh(t,e,r){let i=!1;t.on(\"close\",()=>{i=!0});let n=vn(t,{readable:e,writable:r},o=>{i=!o});return{destroy:o=>{i||(i=!0,h0.destroyer(t,o||new g0(\"pipe\")))},cleanup:n}}function S0(t){return w0(t[t.length-1],\"streams[stream.length - 1]\"),t.pop()}function Co(t){if(dr(t))return t;if(mn(t))return A0(t);throw new Po(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\"],t)}async function*A0(t){Ro||(Ro=gi()),yield*Ro.prototype[f0].call(t)}async function _n(t,e,r,{end:i}){let n,o=null,s=c=>{if(c&&(n=c),o){let h=o;o=null,h()}},a=()=>new u0((c,h)=>{n?h(n):o=()=>{n?h(n):c()}});e.on(\"drain\",s);let l=vn(e,{readable:!1},s);try{e.writableNeedDrain&&await a();for await(let c of t)e.write(c)||await a();i&&e.end(),await a(),r()}catch(c){r(n!==c?d0(n,c):c)}finally{l(),e.off(\"drain\",s)}}async function Bo(t,e,r,{end:i}){zr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let o of t)await n.ready,n.write(o).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(o){try{await n.abort(o),r(o)}catch(s){r(s)}}}function I0(...t){return Mh(t,c0(S0(t)))}function Mh(t,e,r){if(t.length===1&&l0(t[0])&&(t=t[0]),t.length<2)throw new p0(\"streams\");let i=new E0,n=i.signal,o=r?.signal,s=[];_0(o,\"options.signal\");function a(){y(new b0)}o?.addEventListener(\"abort\",a);let l,c,h=[],d=0;function g(C){y(C,--d===0)}function y(C,R){if(C&&(!l||l.code===\"ERR_STREAM_PREMATURE_CLOSE\")&&(l=C),!(!l&&!R)){for(;h.length;)h.shift()(l);o?.removeEventListener(\"abort\",a),i.abort(),R&&(l||s.forEach(U=>U()),mi.nextTick(e,l,c))}}let w;for(let C=0;C0,W=U||r?.end!==!1,K=C===t.length-1;if(Oh(R)){let z=function(Q){Q&&Q.name!==\"AbortError\"&&Q.code!==\"ERR_STREAM_PREMATURE_CLOSE\"&&g(Q)};var I=z;if(W){let{destroy:Q,cleanup:pe}=xh(R,U,N);h.push(Q),Ao(R)&&K&&s.push(pe)}R.on(\"error\",z),Ao(R)&&K&&s.push(()=>{R.removeListener(\"error\",z)})}if(C===0)if(typeof R==\"function\"){if(w=R({signal:n}),!dr(w))throw new So(\"Iterable, AsyncIterable or Stream\",\"source\",w)}else dr(R)||mn(R)||zr(R)?w=R:w=kh.from(R);else if(typeof R==\"function\"){if(zr(w)){var S;w=Co((S=w)===null||S===void 0?void 0:S.readable)}else w=Co(w);if(w=R(w,{signal:n}),U){if(!dr(w,!0))throw new So(\"AsyncIterable\",`transform[${C-1}]`,w)}else{var E;To||(To=Eo());let z=new To({objectMode:!0}),Q=(E=w)===null||E===void 0?void 0:E.then;if(typeof Q==\"function\")d++,Q.call(w,ge=>{c=ge,ge!=null&&z.write(ge),W&&z.end(),mi.nextTick(g)},ge=>{z.destroy(ge),mi.nextTick(g,ge)});else if(dr(w,!0))d++,_n(w,z,g,{end:W});else if(Io(w)||zr(w)){let ge=w.readable||w;d++,_n(ge,z,g,{end:W})}else throw new So(\"AsyncIterable or Promise\",\"destination\",w);w=z;let{destroy:pe,cleanup:Yt}=xh(w,!1,!0);h.push(pe),K&&s.push(Yt)}}else if(Oh(R)){if(mn(w)){d+=2;let z=T0(w,R,g,{end:W});Ao(R)&&K&&s.push(z)}else if(zr(w)||Io(w)){let z=w.readable||w;d++,_n(z,R,g,{end:W})}else if(dr(w))d++,_n(w,R,g,{end:W});else throw new Po(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\",\"ReadableStream\",\"TransformStream\"],w);w=R}else if(m0(R)){if(mn(w))d++,Bo(Co(w),R,g,{end:W});else if(Io(w)||dr(w))d++,Bo(w,R,g,{end:W});else if(zr(w))d++,Bo(w.readable,R,g,{end:W});else throw new Po(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\",\"ReadableStream\",\"TransformStream\"],w);w=R}else w=kh.from(R)}return(n!=null&&n.aborted||o!=null&&o.aborted)&&mi.nextTick(a),w}function T0(t,e,r,{end:i}){let n=!1;if(e.on(\"close\",()=>{n||r(new y0)}),t.pipe(e,{end:!1}),i){let s=function(){n=!0,e.end()};var o=s;v0(t)?mi.nextTick(s):t.once(\"end\",s)}else r();return vn(t,{readable:!0,writable:!1},s=>{let a=t._readableState;s&&s.code===\"ERR_STREAM_PREMATURE_CLOSE\"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once(\"end\",r).once(\"error\",r):r(s)}),vn(e,{readable:!1,writable:!0},r)}Lh.exports={pipelineImpl:Mh,pipeline:I0}});var Oo=M((j2,Fh)=>{\"use strict\";_();v();m();var{pipeline:R0}=En(),Sn=nt(),{destroyer:C0}=ir(),{isNodeStream:An,isReadable:Uh,isWritable:Nh,isWebStream:ko,isTransformStream:pr,isWritableStream:qh,isReadableStream:Dh}=tt(),{AbortError:B0,codes:{ERR_INVALID_ARG_VALUE:jh,ERR_MISSING_ARGS:P0}}=Ae(),k0=vt();Fh.exports=function(...e){if(e.length===0)throw new P0(\"streams\");if(e.length===1)return Sn.from(e[0]);let r=[...e];if(typeof e[0]==\"function\"&&(e[0]=Sn.from(e[0])),typeof e[e.length-1]==\"function\"){let y=e.length-1;e[y]=Sn.from(e[y])}for(let y=0;y0&&!(Nh(e[y])||qh(e[y])||pr(e[y])))throw new jh(`streams[${y}]`,r[y],\"must be writable\")}let i,n,o,s,a;function l(y){let w=s;s=null,w?w(y):y?a.destroy(y):!g&&!d&&a.destroy()}let c=e[0],h=R0(e,l),d=!!(Nh(c)||qh(c)||pr(c)),g=!!(Uh(h)||Dh(h)||pr(h));if(a=new Sn({writableObjectMode:!!(c!=null&&c.writableObjectMode),readableObjectMode:!!(h!=null&&h.writableObjectMode),writable:d,readable:g}),d){if(An(c))a._write=function(w,S,E){c.write(w,S)?E():i=E},a._final=function(w){c.end(),n=w},c.on(\"drain\",function(){if(i){let w=i;i=null,w()}});else if(ko(c)){let S=(pr(c)?c.writable:c).getWriter();a._write=async function(E,I,C){try{await S.ready,S.write(E).catch(()=>{}),C()}catch(R){C(R)}},a._final=async function(E){try{await S.ready,S.close().catch(()=>{}),n=E}catch(I){E(I)}}}let y=pr(h)?h.readable:h;k0(y,()=>{if(n){let w=n;n=null,w()}})}if(g){if(An(h))h.on(\"readable\",function(){if(o){let y=o;o=null,y()}}),h.on(\"end\",function(){a.push(null)}),a._read=function(){for(;;){let y=h.read();if(y===null){o=a._read;return}if(!a.push(y))return}};else if(ko(h)){let w=(pr(h)?h.readable:h).getReader();a._read=async function(){for(;;)try{let{value:S,done:E}=await w.read();if(!a.push(S))return;if(E){a.push(null);return}}catch{return}}}}return a._destroy=function(y,w){!y&&s!==null&&(y=new B0),o=null,i=null,n=null,s===null?w(y):(s=w,An(h)&&C0(h,y))},a}});var Qh=M((K2,Lo)=>{\"use strict\";_();v();m();var Vh=globalThis.AbortController||zi().AbortController,{codes:{ERR_INVALID_ARG_VALUE:O0,ERR_INVALID_ARG_TYPE:vi,ERR_MISSING_ARGS:x0,ERR_OUT_OF_RANGE:M0},AbortError:st}=Ae(),{validateAbortSignal:gr,validateInteger:L0,validateObject:yr}=hi(),U0=ce().Symbol(\"kWeak\"),{finished:N0}=vt(),q0=Oo(),{addAbortSignalNoValidate:D0}=di(),{isWritable:j0,isNodeStream:F0}=tt(),{ArrayPrototypePush:W0,MathFloor:$0,Number:H0,NumberIsNaN:V0,Promise:Wh,PromiseReject:$h,PromisePrototypeThen:z0,Symbol:zh}=ce(),In=zh(\"kEmpty\"),Hh=zh(\"kEof\");function K0(t,e){if(e!=null&&yr(e,\"options\"),e?.signal!=null&&gr(e.signal,\"options.signal\"),F0(t)&&!j0(t))throw new O0(\"stream\",t,\"must be writable\");let r=q0(this,t);return e!=null&&e.signal&&D0(e.signal,r),r}function Tn(t,e){if(typeof t!=\"function\")throw new vi(\"fn\",[\"Function\",\"AsyncFunction\"],t);e!=null&&yr(e,\"options\"),e?.signal!=null&&gr(e.signal,\"options.signal\");let r=1;return e?.concurrency!=null&&(r=$0(e.concurrency)),L0(r,\"concurrency\",1),async function*(){var n,o;let s=new Vh,a=this,l=[],c=s.signal,h={signal:c},d=()=>s.abort();e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted&&d(),e==null||(o=e.signal)===null||o===void 0||o.addEventListener(\"abort\",d);let g,y,w=!1;function S(){w=!0}async function E(){try{for await(let R of a){var I;if(w)return;if(c.aborted)throw new st;try{R=t(R,h)}catch(U){R=$h(U)}R!==In&&(typeof((I=R)===null||I===void 0?void 0:I.catch)==\"function\"&&R.catch(S),l.push(R),g&&(g(),g=null),!w&&l.length&&l.length>=r&&await new Wh(U=>{y=U}))}l.push(Hh)}catch(R){let U=$h(R);z0(U,void 0,S),l.push(U)}finally{var C;w=!0,g&&(g(),g=null),e==null||(C=e.signal)===null||C===void 0||C.removeEventListener(\"abort\",d)}}E();try{for(;;){for(;l.length>0;){let I=await l[0];if(I===Hh)return;if(c.aborted)throw new st;I!==In&&(yield I),l.shift(),y&&(y(),y=null)}await new Wh(I=>{g=I})}}finally{s.abort(),w=!0,y&&(y(),y=null)}}.call(this)}function G0(t=void 0){return t!=null&&yr(t,\"options\"),t?.signal!=null&&gr(t.signal,\"options.signal\"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new st({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function Kh(t,e=void 0){for await(let r of Mo.call(this,t,e))return!0;return!1}async function Q0(t,e=void 0){if(typeof t!=\"function\")throw new vi(\"fn\",[\"Function\",\"AsyncFunction\"],t);return!await Kh.call(this,async(...r)=>!await t(...r),e)}async function Y0(t,e){for await(let r of Mo.call(this,t,e))return r}async function J0(t,e){if(typeof t!=\"function\")throw new vi(\"fn\",[\"Function\",\"AsyncFunction\"],t);async function r(i,n){return await t(i,n),In}for await(let i of Tn.call(this,r,e));}function Mo(t,e){if(typeof t!=\"function\")throw new vi(\"fn\",[\"Function\",\"AsyncFunction\"],t);async function r(i,n){return await t(i,n)?i:In}return Tn.call(this,r,e)}var xo=class extends x0{constructor(){super(\"reduce\"),this.message=\"Reduce of an empty stream requires an initial value\"}};async function X0(t,e,r){var i;if(typeof t!=\"function\")throw new vi(\"reducer\",[\"Function\",\"AsyncFunction\"],t);r!=null&&yr(r,\"options\"),r?.signal!=null&&gr(r.signal,\"options.signal\");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let c=new st(void 0,{cause:r.signal.reason});throw this.once(\"error\",()=>{}),await N0(this.destroy(c)),c}let o=new Vh,s=o.signal;if(r!=null&&r.signal){let c={once:!0,[U0]:this};r.signal.addEventListener(\"abort\",()=>o.abort(),c)}let a=!1;try{for await(let c of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new st;n?e=await t(e,c,{signal:s}):(e=c,n=!0)}if(!a&&!n)throw new xo}finally{o.abort()}return e}async function Z0(t){t!=null&&yr(t,\"options\"),t?.signal!=null&&gr(t.signal,\"options.signal\");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new st(void 0,{cause:t.signal.reason});W0(e,i)}return e}function em(t,e){let r=Tn.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Gh(t){if(t=H0(t),V0(t))return 0;if(t<0)throw new M0(\"number\",\">= 0\",t);return t}function tm(t,e=void 0){return e!=null&&yr(e,\"options\"),e?.signal!=null&&gr(e.signal,\"options.signal\"),t=Gh(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new st;for await(let o of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new st;t--<=0&&(yield o)}}.call(this)}function rm(t,e=void 0){return e!=null&&yr(e,\"options\"),e?.signal!=null&&gr(e.signal,\"options.signal\"),t=Gh(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new st;for await(let o of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new st;if(t-- >0)yield o;else return}}.call(this)}Lo.exports.streamReturningOperators={asIndexedPairs:G0,drop:tm,filter:Mo,flatMap:em,map:Tn,take:rm,compose:K0};Lo.exports.promiseReturningOperators={every:Q0,forEach:J0,reduce:X0,toArray:Z0,some:Kh,find:Y0}});var Uo=M((eR,Yh)=>{\"use strict\";_();v();m();var{ArrayPrototypePop:im,Promise:nm}=ce(),{isIterable:sm,isNodeStream:om,isWebStream:am}=tt(),{pipelineImpl:lm}=En(),{finished:um}=vt();No();function fm(...t){return new nm((e,r)=>{let i,n,o=t[t.length-1];if(o&&typeof o==\"object\"&&!om(o)&&!sm(o)&&!am(o)){let s=im(t);i=s.signal,n=s.end}lm(t,(s,a)=>{s?r(s):e(a)},{signal:i,end:n})})}Yh.exports={finished:um,pipeline:fm}});var No=M((aR,sd)=>{_();v();m();var{Buffer:cm}=(be(),X(me)),{ObjectDefineProperty:Rt,ObjectKeys:Zh,ReflectApply:ed}=ce(),{promisify:{custom:td}}=Je(),{streamReturningOperators:Jh,promiseReturningOperators:Xh}=Qh(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:rd}}=Ae(),hm=Oo(),{pipeline:id}=En(),{destroyer:dm}=ir(),nd=vt(),qo=Uo(),Do=tt(),le=sd.exports=nn().Stream;le.isDisturbed=Do.isDisturbed;le.isErrored=Do.isErrored;le.isReadable=Do.isReadable;le.Readable=gi();for(let t of Zh(Jh)){let r=function(...i){if(new.target)throw rd();return le.Readable.from(ed(e,this,i))};jo=r;let e=Jh[t];Rt(r,\"name\",{__proto__:null,value:e.name}),Rt(r,\"length\",{__proto__:null,value:e.length}),Rt(le.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var jo;for(let t of Zh(Xh)){let r=function(...n){if(new.target)throw rd();return ed(e,this,n)};jo=r;let e=Xh[t];Rt(r,\"name\",{__proto__:null,value:e.name}),Rt(r,\"length\",{__proto__:null,value:e.length}),Rt(le.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var jo;le.Writable=ho();le.Duplex=nt();le.Transform=mo();le.PassThrough=Eo();le.pipeline=id;var{addAbortSignal:pm}=di();le.addAbortSignal=pm;le.finished=nd;le.destroy=dm;le.compose=hm;Rt(le,\"promises\",{__proto__:null,configurable:!0,enumerable:!0,get(){return qo}});Rt(id,td,{__proto__:null,enumerable:!0,get(){return qo.pipeline}});Rt(nd,td,{__proto__:null,enumerable:!0,get(){return qo.finished}});le.Stream=le;le._isUint8Array=function(e){return e instanceof Uint8Array};le._uint8ArrayToBuffer=function(e){return cm.from(e.buffer,e.byteOffset,e.byteLength)}});var jt=M((pR,ue)=>{\"use strict\";_();v();m();var he=No(),gm=Uo(),ym=he.Readable.destroy;ue.exports=he.Readable;ue.exports._uint8ArrayToBuffer=he._uint8ArrayToBuffer;ue.exports._isUint8Array=he._isUint8Array;ue.exports.isDisturbed=he.isDisturbed;ue.exports.isErrored=he.isErrored;ue.exports.isReadable=he.isReadable;ue.exports.Readable=he.Readable;ue.exports.Writable=he.Writable;ue.exports.Duplex=he.Duplex;ue.exports.Transform=he.Transform;ue.exports.PassThrough=he.PassThrough;ue.exports.addAbortSignal=he.addAbortSignal;ue.exports.finished=he.finished;ue.exports.destroy=he.destroy;ue.exports.destroy=ym;ue.exports.pipeline=he.pipeline;ue.exports.compose=he.compose;Object.defineProperty(he,\"promises\",{configurable:!0,enumerable:!0,get(){return gm}});ue.exports.Stream=he.Stream;ue.exports.default=ue.exports});var od=M((vR,Fo)=>{_();v();m();typeof Object.create==\"function\"?Fo.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Fo.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var ud=M((CR,ld)=>{\"use strict\";_();v();m();var{Buffer:ze}=(be(),X(me)),ad=Symbol.for(\"BufferList\");function ee(t){if(!(this instanceof ee))return new ee(t);ee._init.call(this,t)}ee._init=function(e){Object.defineProperty(this,ad,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};ee.prototype._new=function(e){return new ee(e)};ee.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;ithis.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};ee.prototype.slice=function(e,r){return typeof e==\"number\"&&e<0&&(e+=this.length),typeof r==\"number\"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};ee.prototype.copy=function(e,r,i,n){if((typeof i!=\"number\"||i<0)&&(i=0),(typeof n!=\"number\"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||ze.alloc(0);let o=!!e,s=this._offset(i),a=n-i,l=a,c=o&&r||0,h=s[1];if(i===0&&n===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:ze.concat(this._bufs,this.length);for(let d=0;dg)this._bufs[d].copy(e,c,h),c+=g;else{this._bufs[d].copy(e,c,h,h+l),c+=g;break}l-=g,h&&(h=0)}return e.length>c?e.slice(0,c):e};ee.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!=\"number\"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),n=this._offset(r),o=this._bufs.slice(i[0],n[0]+1);return n[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,n[1]),i[1]!==0&&(o[0]=o[0].slice(i[1])),this._new(o)};ee.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};ee.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};ee.prototype.duplicate=function(){let e=this._new();for(let r=0;rthis.length?this.length:e;let i=this._offset(e),n=i[0],o=i[1];for(;n=t.length){let l=s.indexOf(t,o);if(l!==-1)return this._reverseOffset([n,l]);o=s.length-t.length+1}else{let l=this._reverseOffset([n,o]);if(this._match(l,t))return l;o++}o=0}return-1};ee.prototype._match=function(t,e){if(this.length-t{\"use strict\";_();v();m();var Wo=jt().Duplex,bm=od(),Ei=ud();function Se(t){if(!(this instanceof Se))return new Se(t);if(typeof t==\"function\"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on(\"pipe\",function(i){i.on(\"error\",e)}),this.on(\"unpipe\",function(i){i.removeListener(\"error\",e)}),t=null}Ei._init.call(this,t),Wo.call(this)}bm(Se,Wo);Object.assign(Se.prototype,Ei.prototype);Se.prototype._new=function(e){return new Se(e)};Se.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i==\"function\"&&i()};Se.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};Se.prototype.end=function(e){Wo.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Se.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};Se.prototype._isBufferList=function(e){return e instanceof Se||e instanceof Ei||Se.isBufferList(e)};Se.isBufferList=Ei.isBufferList;Rn.exports=Se;Rn.exports.BufferListStream=Se;Rn.exports.BufferList=Ei});var hd=M((WR,cd)=>{_();v();m();var $o=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};cd.exports=$o});var Ho=M((QR,dd)=>{_();v();m();var L=dd.exports,{Buffer:ke}=(be(),X(me));L.types={0:\"reserved\",1:\"connect\",2:\"connack\",3:\"publish\",4:\"puback\",5:\"pubrec\",6:\"pubrel\",7:\"pubcomp\",8:\"subscribe\",9:\"suback\",10:\"unsubscribe\",11:\"unsuback\",12:\"pingreq\",13:\"pingresp\",14:\"disconnect\",15:\"auth\"};L.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0};L.requiredHeaderFlagsErrors={};for(let t in L.requiredHeaderFlags){let e=L.requiredHeaderFlags[t];L.requiredHeaderFlagsErrors[t]=\"Invalid header flag bits, must be 0x\"+e.toString(16)+\" for \"+L.types[t]+\" packet\"}L.codes={};for(let t in L.types){let e=L.types[t];L.codes[e]=t}L.CMD_SHIFT=4;L.CMD_MASK=240;L.DUP_MASK=8;L.QOS_MASK=3;L.QOS_SHIFT=1;L.RETAIN_MASK=1;L.VARBYTEINT_MASK=127;L.VARBYTEINT_FIN_MASK=128;L.VARBYTEINT_MAX=268435455;L.SESSIONPRESENT_MASK=1;L.SESSIONPRESENT_HEADER=ke.from([L.SESSIONPRESENT_MASK]);L.CONNACK_HEADER=ke.from([L.codes.connack<[0,1].map(r=>[0,1].map(i=>{let n=ke.alloc(1);return n.writeUInt8(L.codes[t]<ke.from([t]));L.EMPTY={pingreq:ke.from([L.codes.pingreq<<4,0]),pingresp:ke.from([L.codes.pingresp<<4,0]),disconnect:ke.from([L.codes.disconnect<<4,0])};L.MQTT5_PUBACK_PUBREC_CODES={0:\"Success\",16:\"No matching subscribers\",128:\"Unspecified error\",131:\"Implementation specific error\",135:\"Not authorized\",144:\"Topic Name invalid\",145:\"Packet identifier in use\",151:\"Quota exceeded\",153:\"Payload format invalid\"};L.MQTT5_PUBREL_PUBCOMP_CODES={0:\"Success\",146:\"Packet Identifier not found\"};L.MQTT5_SUBACK_CODES={0:\"Granted QoS 0\",1:\"Granted QoS 1\",2:\"Granted QoS 2\",128:\"Unspecified error\",131:\"Implementation specific error\",135:\"Not authorized\",143:\"Topic Filter invalid\",145:\"Packet Identifier in use\",151:\"Quota exceeded\",158:\"Shared Subscriptions not supported\",161:\"Subscription Identifiers not supported\",162:\"Wildcard Subscriptions not supported\"};L.MQTT5_UNSUBACK_CODES={0:\"Success\",17:\"No subscription existed\",128:\"Unspecified error\",131:\"Implementation specific error\",135:\"Not authorized\",143:\"Topic Filter invalid\",145:\"Packet Identifier in use\"};L.MQTT5_DISCONNECT_CODES={0:\"Normal disconnection\",4:\"Disconnect with Will Message\",128:\"Unspecified error\",129:\"Malformed Packet\",130:\"Protocol Error\",131:\"Implementation specific error\",135:\"Not authorized\",137:\"Server busy\",139:\"Server shutting down\",141:\"Keep Alive timeout\",142:\"Session taken over\",143:\"Topic Filter invalid\",144:\"Topic Name invalid\",147:\"Receive Maximum exceeded\",148:\"Topic Alias invalid\",149:\"Packet too large\",150:\"Message rate too high\",151:\"Quota exceeded\",152:\"Administrative action\",153:\"Payload format invalid\",154:\"Retain not supported\",155:\"QoS not supported\",156:\"Use another server\",157:\"Server moved\",158:\"Shared Subscriptions not supported\",159:\"Connection rate exceeded\",160:\"Maximum connect time\",161:\"Subscription Identifiers not supported\",162:\"Wildcard Subscriptions not supported\"};L.MQTT5_AUTH_CODES={0:\"Success\",24:\"Continue authentication\",25:\"Re-authenticate\"}});var gd=M((rC,pd)=>{_();v();m();var Kr=1e3,Gr=Kr*60,Qr=Gr*60,br=Qr*24,wm=br*7,_m=br*365.25;pd.exports=function(t,e){e=e||{};var r=typeof t;if(r===\"string\"&&t.length>0)return mm(t);if(r===\"number\"&&isFinite(t))return e.long?Em(t):vm(t);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(t))};function mm(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||\"ms\").toLowerCase();switch(i){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*_m;case\"weeks\":case\"week\":case\"w\":return r*wm;case\"days\":case\"day\":case\"d\":return r*br;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*Qr;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*Gr;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*Kr;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function vm(t){var e=Math.abs(t);return e>=br?Math.round(t/br)+\"d\":e>=Qr?Math.round(t/Qr)+\"h\":e>=Gr?Math.round(t/Gr)+\"m\":e>=Kr?Math.round(t/Kr)+\"s\":t+\"ms\"}function Em(t){var e=Math.abs(t);return e>=br?Cn(t,e,br,\"day\"):e>=Qr?Cn(t,e,Qr,\"hour\"):e>=Gr?Cn(t,e,Gr,\"minute\"):e>=Kr?Cn(t,e,Kr,\"second\"):t+\" ms\"}function Cn(t,e,r,i){var n=e>=r*1.5;return Math.round(t/r)+\" \"+i+(n?\"s\":\"\")}});var bd=M((uC,yd)=>{_();v();m();function Sm(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=n,r.enabled=s,r.humanize=gd(),r.destroy=c,Object.keys(t).forEach(h=>{r[h]=t[h]}),r.names=[],r.skips=[],r.formatters={};function e(h){let d=0;for(let g=0;g{if(W===\"%%\")return\"%\";U++;let z=r.formatters[K];if(typeof z==\"function\"){let Q=E[U];W=z.call(I,Q),E.splice(U,1),U--}return W}),r.formatArgs.call(I,E),(I.log||r.log).apply(I,E)}return S.namespace=h,S.useColors=r.useColors(),S.color=r.selectColor(h),S.extend=i,S.destroy=r.destroy,Object.defineProperty(S,\"enabled\",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(y!==r.namespaces&&(y=r.namespaces,w=r.enabled(h)),w),set:E=>{g=E}}),typeof r.init==\"function\"&&r.init(S),S}function i(h,d){let g=r(this.namespace+(typeof d>\"u\"?\":\":d)+h);return g.log=this.log,g}function n(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let d,g=(typeof h==\"string\"?h:\"\").split(/[\\s,]+/),y=g.length;for(d=0;d\"-\"+d)].join(\",\");return r.enable(\"\"),h}function s(h){if(h[h.length-1]===\"*\")return!0;let d,g;for(d=0,g=r.skips.length;d{_();v();m();xe.formatArgs=Im;xe.save=Tm;xe.load=Rm;xe.useColors=Am;xe.storage=Cm();xe.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})();xe.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"];function Am(){return typeof window<\"u\"&&window.process&&(window.process.type===\"renderer\"||window.process.__nwjs)?!0:typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)?!1:typeof document<\"u\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\"u\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/)}function Im(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+Bn.exports.humanize(this.diff),!this.useColors)return;let e=\"color: \"+this.color;t.splice(1,0,e,\"color: inherit\");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!==\"%%\"&&(r++,n===\"%c\"&&(i=r))}),t.splice(i,0,e)}xe.log=console.debug||console.log||(()=>{});function Tm(t){try{t?xe.storage.setItem(\"debug\",t):xe.storage.removeItem(\"debug\")}catch{}}function Rm(){let t;try{t=xe.storage.getItem(\"debug\")}catch{}return!t&&typeof B<\"u\"&&\"env\"in B&&(t=B.env.DEBUG),t}function Cm(){try{return localStorage}catch{}}Bn.exports=bd()(xe);var{formatters:Bm}=Bn.exports;Bm.j=function(t){try{return JSON.stringify(t)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}}});var md=M((EC,_d)=>{_();v();m();var Pm=fd(),{EventEmitter:km}=(sr(),X(nr)),wd=hd(),V=Ho(),D=ot()(\"mqtt-packet:parser\"),Vo=class t extends km{constructor(){super(),this.parser=this.constructor.parser}static parser(e){return this instanceof t?(this.settings=e||{},this._states=[\"_parseHeader\",\"_parseLength\",\"_parsePayload\",\"_newPacket\"],this._resetState(),this):new t().parser(e)}_resetState(){D(\"_resetState: resetting packet, error, _list, and _stateCounter\"),this.packet=new wd,this.error=null,this._list=Pm(),this._stateCounter=0}parse(e){for(this.error&&this._resetState(),this._list.append(e),D(\"parse: current state: %s\",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,D(\"parse: state complete. _stateCounter is now: %d\",this._stateCounter),D(\"parse: packet.length: %d, buffer list length: %d\",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return D(\"parse: exited while loop. packet: %d, buffer list length: %d\",this.packet.length,this._list.length),this._list.length}_parseHeader(){let e=this._list.readUInt8(0),r=e>>V.CMD_SHIFT;this.packet.cmd=V.types[r];let i=e&15,n=V.requiredHeaderFlags[r];return n!=null&&i!==n?this._emitError(new Error(V.requiredHeaderFlagsErrors[r])):(this.packet.retain=(e&V.RETAIN_MASK)!==0,this.packet.qos=e>>V.QOS_SHIFT&V.QOS_MASK,this.packet.qos>2?this._emitError(new Error(\"Packet must not have both QoS bits set to 1\")):(this.packet.dup=(e&V.DUP_MASK)!==0,D(\"_parseHeader: packet: %o\",this.packet),this._list.consume(1),!0))}_parseLength(){let e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),D(\"_parseLength %d\",e.value),!!e}_parsePayload(){D(\"_parsePayload: payload %O\",this._list);let e=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case\"connect\":this._parseConnect();break;case\"connack\":this._parseConnack();break;case\"publish\":this._parsePublish();break;case\"puback\":case\"pubrec\":case\"pubrel\":case\"pubcomp\":this._parseConfirmation();break;case\"subscribe\":this._parseSubscribe();break;case\"suback\":this._parseSuback();break;case\"unsubscribe\":this._parseUnsubscribe();break;case\"unsuback\":this._parseUnsuback();break;case\"pingreq\":case\"pingresp\":break;case\"disconnect\":this._parseDisconnect();break;case\"auth\":this._parseAuth();break;default:this._emitError(new Error(\"Not supported\"))}e=!0}return D(\"_parsePayload complete result: %s\",e),e}_parseConnect(){D(\"_parseConnect\");let e,r,i,n,o={},s=this.packet,a=this._parseString();if(a===null)return this._emitError(new Error(\"Cannot parse protocolId\"));if(a!==\"MQTT\"&&a!==\"MQIsdp\")return this._emitError(new Error(\"Invalid protocolId\"));if(s.protocolId=a,this._pos>=this._list.length)return this._emitError(new Error(\"Packet too short\"));if(s.protocolVersion=this._list.readUInt8(this._pos),s.protocolVersion>=128&&(s.bridgeMode=!0,s.protocolVersion=s.protocolVersion-128),s.protocolVersion!==3&&s.protocolVersion!==4&&s.protocolVersion!==5)return this._emitError(new Error(\"Invalid protocol version\"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error(\"Packet too short\"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error(\"Connect flag bit 0 must be 0, but got 1\"));o.username=this._list.readUInt8(this._pos)&V.USERNAME_MASK,o.password=this._list.readUInt8(this._pos)&V.PASSWORD_MASK,o.will=this._list.readUInt8(this._pos)&V.WILL_FLAG_MASK;let l=!!(this._list.readUInt8(this._pos)&V.WILL_RETAIN_MASK),c=(this._list.readUInt8(this._pos)&V.WILL_QOS_MASK)>>V.WILL_QOS_SHIFT;if(o.will)s.will={},s.will.retain=l,s.will.qos=c;else{if(l)return this._emitError(new Error(\"Will Retain Flag must be set to zero when Will Flag is set to 0\"));if(c)return this._emitError(new Error(\"Will QoS must be set to zero when Will Flag is set to 0\"))}if(s.clean=(this._list.readUInt8(this._pos)&V.CLEAN_SESSION_MASK)!==0,this._pos++,s.keepalive=this._parseNum(),s.keepalive===-1)return this._emitError(new Error(\"Packet too short\"));if(s.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(s.properties=d)}let h=this._parseString();if(h===null)return this._emitError(new Error(\"Packet too short\"));if(s.clientId=h,D(\"_parseConnect: packet.clientId: %s\",s.clientId),o.will){if(s.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(s.will.properties=d)}if(e=this._parseString(),e===null)return this._emitError(new Error(\"Cannot parse will topic\"));if(s.will.topic=e,D(\"_parseConnect: packet.will.topic: %s\",s.will.topic),r=this._parseBuffer(),r===null)return this._emitError(new Error(\"Cannot parse will payload\"));s.will.payload=r,D(\"_parseConnect: packet.will.paylaod: %s\",s.will.payload)}if(o.username){if(n=this._parseString(),n===null)return this._emitError(new Error(\"Cannot parse username\"));s.username=n,D(\"_parseConnect: packet.username: %s\",s.username)}if(o.password){if(i=this._parseBuffer(),i===null)return this._emitError(new Error(\"Cannot parse password\"));s.password=i}return this.settings=s,D(\"_parseConnect: complete\"),s}_parseConnack(){D(\"_parseConnack\");let e=this.packet;if(this._list.length<1)return null;let r=this._list.readUInt8(this._pos++);if(r>1)return this._emitError(new Error(\"Invalid connack flags, bits 7-1 must be set to 0\"));if(e.sessionPresent=!!(r&V.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(e.returnCode===-1||e.reasonCode===-1)return this._emitError(new Error(\"Cannot parse return code\"));if(this.settings.protocolVersion===5){let i=this._parseProperties();Object.getOwnPropertyNames(i).length&&(e.properties=i)}D(\"_parseConnack: complete\")}_parsePublish(){D(\"_parsePublish\");let e=this.packet;if(e.topic=this._parseString(),e.topic===null)return this._emitError(new Error(\"Cannot parse topic\"));if(!(e.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}e.payload=this._list.slice(this._pos,e.length),D(\"_parsePublish: payload from buffer list: %o\",e.payload)}}_parseSubscribe(){D(\"_parseSubscribe\");let e=this.packet,r,i,n,o,s,a,l;if(e.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(e.properties=c)}if(e.length<=0)return this._emitError(new Error(\"Malformed subscribe, no payload specified\"));for(;this._pos=e.length)return this._emitError(new Error(\"Malformed Subscribe Payload\"));if(i=this._parseByte(),this.settings.protocolVersion===5){if(i&192)return this._emitError(new Error(\"Invalid subscribe topic flag bits, bits 7-6 must be 0\"))}else if(i&252)return this._emitError(new Error(\"Invalid subscribe topic flag bits, bits 7-2 must be 0\"));if(n=i&V.SUBSCRIBE_OPTIONS_QOS_MASK,n>2)return this._emitError(new Error(\"Invalid subscribe QoS, must be <= 2\"));if(a=(i>>V.SUBSCRIBE_OPTIONS_NL_SHIFT&V.SUBSCRIBE_OPTIONS_NL_MASK)!==0,s=(i>>V.SUBSCRIBE_OPTIONS_RAP_SHIFT&V.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,o=i>>V.SUBSCRIBE_OPTIONS_RH_SHIFT&V.SUBSCRIBE_OPTIONS_RH_MASK,o>2)return this._emitError(new Error(\"Invalid retain handling, must be <= 2\"));l={topic:r,qos:n},this.settings.protocolVersion===5?(l.nl=a,l.rap=s,l.rh=o):this.settings.bridgeMode&&(l.rh=0,l.rap=!0,l.nl=!0),D(\"_parseSubscribe: push subscription `%s` to subscription\",l),e.subscriptions.push(l)}}}_parseSuback(){D(\"_parseSuback\");let e=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}if(e.length<=0)return this._emitError(new Error(\"Malformed suback, no payload specified\"));for(;this._pos2&&r!==128)return this._emitError(new Error(\"Invalid suback QoS, must be 0, 1, 2 or 128\"));this.packet.granted.push(r)}}}_parseUnsubscribe(){D(\"_parseUnsubscribe\");let e=this.packet;if(e.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}if(e.length<=0)return this._emitError(new Error(\"Malformed unsubscribe, no payload specified\"));for(;this._pos2){switch(e.reasonCode=this._parseByte(),this.packet.cmd){case\"puback\":case\"pubrec\":if(!V.MQTT5_PUBACK_PUBREC_CODES[e.reasonCode])return this._emitError(new Error(\"Invalid \"+this.packet.cmd+\" reason code\"));break;case\"pubrel\":case\"pubcomp\":if(!V.MQTT5_PUBREL_PUBCOMP_CODES[e.reasonCode])return this._emitError(new Error(\"Invalid \"+this.packet.cmd+\" reason code\"));break}D(\"_parseConfirmation: packet.reasonCode `%d`\",e.reasonCode)}else e.reasonCode=0;if(e.length>3){let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}}return!0}_parseDisconnect(){let e=this.packet;if(D(\"_parseDisconnect\"),this.settings.protocolVersion===5){this._list.length>0?(e.reasonCode=this._parseByte(),V.MQTT5_DISCONNECT_CODES[e.reasonCode]||this._emitError(new Error(\"Invalid disconnect reason code\"))):e.reasonCode=0;let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}return D(\"_parseDisconnect result: true\"),!0}_parseAuth(){D(\"_parseAuth\");let e=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error(\"Not supported auth packet for this version MQTT\"));if(e.reasonCode=this._parseByte(),!V.MQTT5_AUTH_CODES[e.reasonCode])return this._emitError(new Error(\"Invalid auth reason code\"));let r=this._parseProperties();return Object.getOwnPropertyNames(r).length&&(e.properties=r),D(\"_parseAuth: result: true\"),!0}_parseMessageId(){let e=this.packet;return e.messageId=this._parseNum(),e.messageId===null?(this._emitError(new Error(\"Cannot parse messageId\")),!1):(D(\"_parseMessageId: packet.messageId %d\",e.messageId),!0)}_parseString(e){let r=this._parseNum(),i=r+this._pos;if(r===-1||i>this._list.length||i>this.packet.length)return null;let n=this._list.toString(\"utf8\",this._pos,i);return this._pos+=r,D(\"_parseString: result: %s\",n),n}_parseStringPair(){return D(\"_parseStringPair\"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let e=this._parseNum(),r=e+this._pos;if(e===-1||r>this._list.length||r>this.packet.length)return null;let i=this._list.slice(this._pos,r);return this._pos+=e,D(\"_parseBuffer: result: %o\",i),i}_parseNum(){if(this._list.length-this._pos<2)return-1;let e=this._list.readUInt16BE(this._pos);return this._pos+=2,D(\"_parseNum: result: %s\",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let e=this._list.readUInt32BE(this._pos);return this._pos+=4,D(\"_parse4ByteNum: result: %s\",e),e}_parseVarByteNum(e){D(\"_parseVarByteNum\");let r=4,i=0,n=1,o=0,s=!1,a,l=this._pos?this._pos:0;for(;i=i&&this._emitError(new Error(\"Invalid variable byte integer\")),l&&(this._pos+=i),s?e?s={bytes:i,value:o}:s=o:s=!1,D(\"_parseVarByteNum: result: %o\",s),s}_parseByte(){let e;return this._pos{_();v();m();var{Buffer:Si}=(be(),X(me)),Om=65536,vd={},xm=Si.isBuffer(Si.from([1,2]).subarray(0,1));function Ed(t){let e=Si.allocUnsafe(2);return e.writeUInt8(t>>8,0),e.writeUInt8(t&255,0+1),e}function Mm(){for(let t=0;t0&&(r=r|128),n.writeUInt8(r,i++);while(t>0&&i<4);return t>0&&(i=0),xm?n.subarray(0,i):n.slice(0,i)}function Um(t){let e=Si.allocUnsafe(4);return e.writeUInt32BE(t,0),e}Sd.exports={cache:vd,generateCache:Mm,generateNumber:Ed,genBufVariableByteInt:Lm,generate4ByteBuffer:Um}});var Id=M((UC,zo)=>{\"use strict\";_();v();m();typeof B>\"u\"||!B.version||B.version.indexOf(\"v0.\")===0||B.version.indexOf(\"v1.\")===0&&B.version.indexOf(\"v1.8.\")!==0?zo.exports={nextTick:Nm}:zo.exports=B;function Nm(t,e,r,i){if(typeof t!=\"function\")throw new TypeError('\"callback\" argument must be a function');var n=arguments.length,o,s;switch(n){case 0:case 1:return B.nextTick(t);case 2:return B.nextTick(function(){t.call(null,e)});case 3:return B.nextTick(function(){t.call(null,e,r)});case 4:return B.nextTick(function(){t.call(null,e,r,i)});default:for(o=new Array(n-1),s=0;s{_();v();m();var j=Ho(),{Buffer:q}=(be(),X(me)),qm=q.allocUnsafe(0),Dm=q.from([0]),Ai=Ad(),jm=Id().nextTick,qe=ot()(\"mqtt-packet:writeToStream\"),Pn=Ai.cache,Fm=Ai.generateNumber,Wm=Ai.generateCache,Ko=Ai.genBufVariableByteInt,$m=Ai.generate4ByteBuffer,Te=Go,kn=!0;function kd(t,e,r){switch(qe(\"generate called\"),e.cork&&(e.cork(),jm(Hm,e)),kn&&(kn=!1,Wm()),qe(\"generate: packet.cmd: %s\",t.cmd),t.cmd){case\"connect\":return Vm(t,e,r);case\"connack\":return zm(t,e,r);case\"publish\":return Km(t,e,r);case\"puback\":case\"pubrec\":case\"pubrel\":case\"pubcomp\":return Gm(t,e,r);case\"subscribe\":return Qm(t,e,r);case\"suback\":return Ym(t,e,r);case\"unsubscribe\":return Jm(t,e,r);case\"unsuback\":return Xm(t,e,r);case\"pingreq\":case\"pingresp\":return Zm(t,e,r);case\"disconnect\":return e1(t,e,r);case\"auth\":return t1(t,e,r);default:return e.destroy(new Error(\"Unknown command\")),!1}}Object.defineProperty(kd,\"cacheNumbers\",{get(){return Te===Go},set(t){t?((!Pn||Object.keys(Pn).length===0)&&(kn=!0),Te=Go):(kn=!1,Te=r1)}});function Hm(t){t.uncork()}function Vm(t,e,r){let i=t||{},n=i.protocolId||\"MQTT\",o=i.protocolVersion||4,s=i.will,a=i.clean,l=i.keepalive||0,c=i.clientId||\"\",h=i.username,d=i.password,g=i.properties;a===void 0&&(a=!0);let y=0;if(!n||typeof n!=\"string\"&&!q.isBuffer(n))return e.destroy(new Error(\"Invalid protocolId\")),!1;if(y+=n.length+2,o!==3&&o!==4&&o!==5)return e.destroy(new Error(\"Invalid protocol version\")),!1;if(y+=1,(typeof c==\"string\"||q.isBuffer(c))&&(c||o>=4)&&(c||a))y+=q.byteLength(c)+2;else{if(o<4)return e.destroy(new Error(\"clientId must be supplied before 3.1.1\")),!1;if(a*1===0)return e.destroy(new Error(\"clientId must be given if cleanSession set to 0\")),!1}if(typeof l!=\"number\"||l<0||l>65535||l%1!==0)return e.destroy(new Error(\"Invalid keepalive\")),!1;y+=2,y+=1;let w,S;if(o===5){if(w=Wt(e,g),!w)return!1;y+=w.length}if(s){if(typeof s!=\"object\")return e.destroy(new Error(\"Invalid will\")),!1;if(!s.topic||typeof s.topic!=\"string\")return e.destroy(new Error(\"Invalid will topic\")),!1;if(y+=q.byteLength(s.topic)+2,y+=2,s.payload)if(s.payload.length>=0)typeof s.payload==\"string\"?y+=q.byteLength(s.payload):y+=s.payload.length;else return e.destroy(new Error(\"Invalid will payload\")),!1;if(S={},o===5){if(S=Wt(e,s.properties),!S)return!1;y+=S.length}}let E=!1;if(h!=null)if(Pd(h))E=!0,y+=q.byteLength(h)+2;else return e.destroy(new Error(\"Invalid username\")),!1;if(d!=null){if(!E)return e.destroy(new Error(\"Username is required to use password\")),!1;if(Pd(d))y+=Od(d)+2;else return e.destroy(new Error(\"Invalid password\")),!1}e.write(j.CONNECT_HEADER),De(e,y),Yr(e,n),i.bridgeMode&&(o+=128),e.write(o===131?j.VERSION131:o===132?j.VERSION132:o===4?j.VERSION4:o===5?j.VERSION5:j.VERSION3);let I=0;return I|=h!=null?j.USERNAME_MASK:0,I|=d!=null?j.PASSWORD_MASK:0,I|=s&&s.retain?j.WILL_RETAIN_MASK:0,I|=s&&s.qos?s.qos<0&&Te(e,c),g?.write(),qe(\"publish: payload: %o\",l),e.write(l)}function Gm(t,e,r){let i=r?r.protocolVersion:4,n=t||{},o=n.cmd||\"puback\",s=n.messageId,a=n.dup&&o===\"pubrel\"?j.DUP_MASK:0,l=0,c=n.reasonCode,h=n.properties,d=i===5?3:2;if(o===\"pubrel\"&&(l=1),typeof s!=\"number\")return e.destroy(new Error(\"Invalid messageId\")),!1;let g=null;if(i===5&&typeof h==\"object\"){if(g=Ii(e,h,r,d),!g)return!1;d+=g.length}return e.write(j.ACKS[o][l][a][0]),d===3&&(d+=c!==0?1:-1),De(e,d),Te(e,s),i===5&&d!==2&&e.write(q.from([c])),g!==null?g.write():d===4&&e.write(q.from([0])),!0}function Qm(t,e,r){qe(\"subscribe: packet: \");let i=r?r.protocolVersion:4,n=t||{},o=n.dup?j.DUP_MASK:0,s=n.messageId,a=n.subscriptions,l=n.properties,c=0;if(typeof s!=\"number\")return e.destroy(new Error(\"Invalid messageId\")),!1;c+=2;let h=null;if(i===5){if(h=Wt(e,l),!h)return!1;c+=h.length}if(typeof a==\"object\"&&a.length)for(let g=0;g2)return e.destroy(new Error(\"Invalid subscriptions - invalid Retain Handling\")),!1}c+=q.byteLength(y)+2+1}else return e.destroy(new Error(\"Invalid subscriptions\")),!1;qe(\"subscribe: writing to stream: %o\",j.SUBSCRIBE_HEADER),e.write(j.SUBSCRIBE_HEADER[1][o?1:0][0]),De(e,c),Te(e,s),h!==null&&h.write();let d=!0;for(let g of a){let y=g.topic,w=g.qos,S=+g.nl,E=+g.rap,I=g.rh,C;wr(e,y),C=j.SUBSCRIBE_OPTIONS_QOS[w],i===5&&(C|=S?j.SUBSCRIBE_OPTIONS_NL:0,C|=E?j.SUBSCRIBE_OPTIONS_RAP:0,C|=I?j.SUBSCRIBE_OPTIONS_RH[I]:0),d=e.write(q.from([C]))}return d}function Ym(t,e,r){let i=r?r.protocolVersion:4,n=t||{},o=n.messageId,s=n.granted,a=n.properties,l=0;if(typeof o!=\"number\")return e.destroy(new Error(\"Invalid messageId\")),!1;if(l+=2,typeof s==\"object\"&&s.length)for(let h=0;hj.VARBYTEINT_MAX)return t.destroy(new Error(`Invalid variable byte integer: ${e}`)),!1;let r=Td[e];return r||(r=Ko(e),e<16384&&(Td[e]=r)),qe(\"writeVarByteInt: writing to stream: %o\",r),t.write(r)}function wr(t,e){let r=q.byteLength(e);return Te(t,r),qe(\"writeString: %s\",e),t.write(e,\"utf8\")}function Rd(t,e,r){wr(t,e),wr(t,r)}function Go(t,e){return qe(\"writeNumberCached: number: %d\",e),qe(\"writeNumberCached: %o\",Pn[e]),t.write(Pn[e])}function r1(t,e){let r=Fm(e);return qe(\"writeNumberGenerated: %o\",r),t.write(r)}function i1(t,e){let r=$m(e);return qe(\"write4ByteNumber: %o\",r),t.write(r)}function Yr(t,e){typeof e==\"string\"?wr(t,e):e?(Te(t,e.length),t.write(e)):Te(t,0)}function Wt(t,e){if(typeof e!=\"object\"||e.length!=null)return{length:1,write(){Bd(t,{},0)}};let r=0;function i(o,s){let a=j.propertiesTypes[o],l=0;switch(a){case\"byte\":{if(typeof s!=\"boolean\")return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+1;break}case\"int8\":{if(typeof s!=\"number\"||s<0||s>255)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+1;break}case\"binary\":{if(s&&s===null)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+q.byteLength(s)+2;break}case\"int16\":{if(typeof s!=\"number\"||s<0||s>65535)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+2;break}case\"int32\":{if(typeof s!=\"number\"||s<0||s>4294967295)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+4;break}case\"var\":{if(typeof s!=\"number\"||s<0||s>268435455)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+q.byteLength(Ko(s));break}case\"string\":{if(typeof s!=\"string\")return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+2+q.byteLength(s.toString());break}case\"pair\":{if(typeof s!=\"object\")return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=Object.getOwnPropertyNames(s).reduce((c,h)=>{let d=s[h];return Array.isArray(d)?c+=d.reduce((g,y)=>(g+=1+2+q.byteLength(h.toString())+2+q.byteLength(y.toString()),g),0):c+=1+2+q.byteLength(h.toString())+2+q.byteLength(s[h].toString()),c},0);break}default:return t.destroy(new Error(`Invalid property ${o}: ${s}`)),!1}return l}if(e)for(let o in e){let s=0,a=0,l=e[o];if(Array.isArray(l))for(let c=0;co;){let a=n.shift();if(a&&e[a])delete e[a],s=Wt(t,e);else return!1}return s}function Cd(t,e,r){switch(j.propertiesTypes[e]){case\"byte\":{t.write(q.from([j.properties[e]])),t.write(q.from([+r]));break}case\"int8\":{t.write(q.from([j.properties[e]])),t.write(q.from([r]));break}case\"binary\":{t.write(q.from([j.properties[e]])),Yr(t,r);break}case\"int16\":{t.write(q.from([j.properties[e]])),Te(t,r);break}case\"int32\":{t.write(q.from([j.properties[e]])),i1(t,r);break}case\"var\":{t.write(q.from([j.properties[e]])),De(t,r);break}case\"string\":{t.write(q.from([j.properties[e]])),wr(t,r);break}case\"pair\":{Object.getOwnPropertyNames(r).forEach(n=>{let o=r[n];Array.isArray(o)?o.forEach(s=>{t.write(q.from([j.properties[e]])),Rd(t,n.toString(),s.toString())}):(t.write(q.from([j.properties[e]])),Rd(t,n.toString(),o.toString()))});break}default:return t.destroy(new Error(`Invalid property ${e} value: ${r}`)),!1}}function Bd(t,e,r){De(t,r);for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==null){let n=e[i];if(Array.isArray(n))for(let o=0;o{_();v();m();var n1=Qo(),{EventEmitter:s1}=(sr(),X(nr)),{Buffer:Md}=(be(),X(me));function o1(t,e){let r=new Yo;return n1(t,r,e),r.concat()}var Yo=class extends s1{constructor(){super(),this._array=new Array(20),this._i=0}write(e){return this._array[this._i++]=e,!0}concat(){let e=0,r=new Array(this._array.length),i=this._array,n=0,o;for(o=0;o{_();v();m();On.parser=md().parser;On.generate=Ud();On.writeToStream=Qo()});var Zo=M(Xo=>{\"use strict\";_();v();m();Object.defineProperty(Xo,\"__esModule\",{value:!0});var Jo=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let e=this.nextId++;return this.nextId===65536&&(this.nextId=1),e}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(e){return!0}deallocate(e){}clear(){}};Xo.default=Jo});var Dd=M((bB,qd)=>{\"use strict\";_();v();m();qd.exports=a1;function Jr(t){return t instanceof x?x.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function a1(t){if(t=t||{},t.circles)return l1(t);return t.proto?i:r;function e(n,o){for(var s=Object.keys(n),a=new Array(s.length),l=0;l{\"use strict\";_();v();m();jd.exports=Dd()()});var $d=M(Xr=>{\"use strict\";_();v();m();Object.defineProperty(Xr,\"__esModule\",{value:!0});Xr.validateTopics=Xr.validateTopic=void 0;function Wd(t){let e=t.split(\"/\");for(let r=0;r{\"use strict\";_();v();m();Object.defineProperty(ta,\"__esModule\",{value:!0});var f1=jt(),c1={objectMode:!0},h1={clean:!0},ea=class{constructor(e){this.options=e||{},this.options=Object.assign(Object.assign({},h1),e),this._inflights=new Map}put(e,r){return this._inflights.set(e.messageId,e),r&&r(),this}createStream(){let e=new f1.Readable(c1),r=[],i=!1,n=0;return this._inflights.forEach((o,s)=>{r.push(o)}),e._read=()=>{!i&&n{if(!i)return i=!0,setTimeout(()=>{e.emit(\"close\")},0),e},e}del(e,r){let i=this._inflights.get(e.messageId);return i?(this._inflights.delete(e.messageId),r(null,i)):r&&r(new Error(\"missing packet\")),this}get(e,r){let i=this._inflights.get(e.messageId);return i?r(null,i):r&&r(new Error(\"missing packet\")),this}close(e){this.options.clean&&(this._inflights=null),e&&e()}};ta.default=ea});var Vd=M(ia=>{\"use strict\";_();v();m();Object.defineProperty(ia,\"__esModule\",{value:!0});var Hd=[0,16,128,131,135,144,145,151,153],d1=(t,e,r)=>{t.log(\"handlePublish: packet %o\",e),r=typeof r<\"u\"?r:t.noop;let i=e.topic.toString(),n=e.payload,{qos:o}=e,{messageId:s}=e,{options:a}=t;if(t.options.protocolVersion===5){let l;if(e.properties&&(l=e.properties.topicAlias),typeof l<\"u\")if(i.length===0)if(l>0&&l<=65535){let c=t.topicAliasRecv.getTopicByAlias(l);if(c)i=c,t.log(\"handlePublish :: topic complemented by alias. topic: %s - alias: %d\",i,l);else{t.log(\"handlePublish :: unregistered topic alias. alias: %d\",l),t.emit(\"error\",new Error(\"Received unregistered Topic Alias\"));return}}else{t.log(\"handlePublish :: topic alias out of range. alias: %d\",l),t.emit(\"error\",new Error(\"Received Topic Alias is out of range\"));return}else if(t.topicAliasRecv.put(i,l))t.log(\"handlePublish :: registered topic: %s - alias: %d\",i,l);else{t.log(\"handlePublish :: topic alias out of range. alias: %d\",l),t.emit(\"error\",new Error(\"Received Topic Alias is out of range\"));return}}switch(t.log(\"handlePublish: qos %d\",o),o){case 2:{a.customHandleAcks(i,n,e,(l,c)=>{if(typeof l==\"number\"&&(c=l,l=null),l)return t.emit(\"error\",l);if(Hd.indexOf(c)===-1)return t.emit(\"error\",new Error(\"Wrong reason code for pubrec\"));c?t._sendPacket({cmd:\"pubrec\",messageId:s,reasonCode:c},r):t.incomingStore.put(e,()=>{t._sendPacket({cmd:\"pubrec\",messageId:s},r)})});break}case 1:{a.customHandleAcks(i,n,e,(l,c)=>{if(typeof l==\"number\"&&(c=l,l=null),l)return t.emit(\"error\",l);if(Hd.indexOf(c)===-1)return t.emit(\"error\",new Error(\"Wrong reason code for puback\"));c||t.emit(\"message\",i,n,e),t.handleMessage(e,h=>{if(h)return r&&r(h);t._sendPacket({cmd:\"puback\",messageId:s,reasonCode:c},r)})});break}case 0:t.emit(\"message\",i,n,e),t.handleMessage(e,r);break;default:t.log(\"handlePublish: unknown QoS. Doing nothing.\");break}};ia.default=d1});var zd=M((XB,p1)=>{p1.exports={version:\"5.10.3\"}});var _r=M(at=>{\"use strict\";_();v();m();Object.defineProperty(at,\"__esModule\",{value:!0});at.MQTTJS_VERSION=at.nextTick=at.applyMixin=at.ErrorWithReasonCode=void 0;var na=class t extends Error{constructor(e,r){super(e),this.code=r,Object.setPrototypeOf(this,t.prototype),Object.getPrototypeOf(this).name=\"ErrorWithReasonCode\"}};at.ErrorWithReasonCode=na;function g1(t,e,r=!1){var i;let n=[e];for(;;){let o=n[0],s=Object.getPrototypeOf(o);if(s?.prototype)n.unshift(s);else break}for(let o of n)for(let s of Object.getOwnPropertyNames(o.prototype))(r||s!==\"constructor\")&&Object.defineProperty(t.prototype,s,(i=Object.getOwnPropertyDescriptor(o.prototype,s))!==null&&i!==void 0?i:Object.create(null))}at.applyMixin=g1;at.nextTick=typeof(B===null||B===void 0?void 0:B.nextTick)==\"function\"?B.nextTick:t=>{setTimeout(t,0)};at.MQTTJS_VERSION=zd().version});var Ti=M($t=>{\"use strict\";_();v();m();Object.defineProperty($t,\"__esModule\",{value:!0});$t.ReasonCodes=void 0;var Kd=_r();$t.ReasonCodes={0:\"\",1:\"Unacceptable protocol version\",2:\"Identifier rejected\",3:\"Server unavailable\",4:\"Bad username or password\",5:\"Not authorized\",16:\"No matching subscribers\",17:\"No subscription existed\",128:\"Unspecified error\",129:\"Malformed Packet\",130:\"Protocol Error\",131:\"Implementation specific error\",132:\"Unsupported Protocol Version\",133:\"Client Identifier not valid\",134:\"Bad User Name or Password\",135:\"Not authorized\",136:\"Server unavailable\",137:\"Server busy\",138:\"Banned\",139:\"Server shutting down\",140:\"Bad authentication method\",141:\"Keep Alive timeout\",142:\"Session taken over\",143:\"Topic Filter invalid\",144:\"Topic Name invalid\",145:\"Packet identifier in use\",146:\"Packet Identifier not found\",147:\"Receive Maximum exceeded\",148:\"Topic Alias invalid\",149:\"Packet too large\",150:\"Message rate too high\",151:\"Quota exceeded\",152:\"Administrative action\",153:\"Payload format invalid\",154:\"Retain not supported\",155:\"QoS not supported\",156:\"Use another server\",157:\"Server moved\",158:\"Shared Subscriptions not supported\",159:\"Connection rate exceeded\",160:\"Maximum connect time\",161:\"Subscription Identifiers not supported\",162:\"Wildcard Subscriptions not supported\"};var y1=(t,e)=>{let{messageId:r}=e,i=e.cmd,n=null,o=t.outgoing[r]?t.outgoing[r].cb:null,s=null;if(!o){t.log(\"_handleAck :: Server sent an ack in error. Ignoring.\");return}switch(t.log(\"_handleAck :: packet type\",i),i){case\"pubcomp\":case\"puback\":{let a=e.reasonCode;a&&a>0&&a!==16?(s=new Kd.ErrorWithReasonCode(`Publish error: ${$t.ReasonCodes[a]}`,a),t._removeOutgoingAndStoreMessage(r,()=>{o(s,e)})):t._removeOutgoingAndStoreMessage(r,o);break}case\"pubrec\":{n={cmd:\"pubrel\",qos:2,messageId:r};let a=e.reasonCode;a&&a>0&&a!==16?(s=new Kd.ErrorWithReasonCode(`Publish error: ${$t.ReasonCodes[a]}`,a),t._removeOutgoingAndStoreMessage(r,()=>{o(s,e)})):t._sendPacket(n);break}case\"suback\":{delete t.outgoing[r],t.messageIdProvider.deallocate(r);let a=e.granted;for(let l=0;l{delete t._resubscribeTopics[d]})}}delete t.messageIdToTopic[r],t._invokeStoreProcessingQueue(),o(s,e);break}case\"unsuback\":{delete t.outgoing[r],t.messageIdProvider.deallocate(r),t._invokeStoreProcessingQueue(),o(null,e);break}default:t.emit(\"error\",new Error(\"unrecognized packet type\"))}t.disconnecting&&Object.keys(t.outgoing).length===0&&t.emit(\"outgoingEmpty\")};$t.default=y1});var Qd=M(sa=>{\"use strict\";_();v();m();Object.defineProperty(sa,\"__esModule\",{value:!0});var Gd=_r(),b1=Ti(),w1=(t,e)=>{let{options:r}=t,i=r.protocolVersion,n=i===5?e.reasonCode:e.returnCode;if(i!==5){let o=new Gd.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${i}`,n);t.emit(\"error\",o);return}t.handleAuth(e,(o,s)=>{if(o){t.emit(\"error\",o);return}if(n===24)t.reconnecting=!1,t._sendPacket(s);else{let a=new Gd.ErrorWithReasonCode(`Connection refused: ${b1.ReasonCodes[n]}`,n);t.emit(\"error\",a)}})};sa.default=w1});var ep=M(Mn=>{\"use strict\";_();v();m();Object.defineProperty(Mn,\"__esModule\",{value:!0});Mn.LRUCache=void 0;var Ri=typeof performance==\"object\"&&performance&&typeof performance.now==\"function\"?performance:Date,Jd=new Set,oa=typeof B==\"object\"&&B?B:{},Xd=(t,e,r,i)=>{typeof oa.emitWarning==\"function\"?oa.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},xn=globalThis.AbortController,Yd=globalThis.AbortSignal;if(typeof xn>\"u\"){Yd=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},xn=class{constructor(){e()}signal=new Yd;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=oa.env?.LRU_CACHE_IGNORE_AC_WARNING!==\"1\",e=()=>{t&&(t=!1,Xd(\"AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.\",\"NO_ABORT_CONTROLLER\",\"ENOTSUP\",e))}}var _1=t=>!Jd.has(t),EP=Symbol(\"type\"),Ht=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Zd=t=>Ht(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Zr:null:null,Zr=class extends Array{constructor(e){super(e),this.fill(0)}},aa=class t{heap;length;static#l=!1;static create(e){let r=Zd(e);if(!r)return[];t.#l=!0;let i=new t(e,r);return t.#l=!1,i}constructor(e,r){if(!t.#l)throw new TypeError(\"instantiate Stack using Stack.create(n)\");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},la=class t{#l;#c;#p;#g;#B;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#i;#y;#n;#r;#e;#u;#h;#a;#s;#b;#o;#E;#S;#w;#_;#I;#f;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#w,sizes:e.#E,keyMap:e.#n,keyList:e.#r,valList:e.#e,next:e.#u,prev:e.#h,get head(){return e.#a},get tail(){return e.#s},free:e.#b,isBackgroundFetch:r=>e.#t(r),backgroundFetch:(r,i,n,o)=>e.#O(r,i,n,o),moveToTail:r=>e.#C(r),indexes:r=>e.#m(r),rindexes:r=>e.#v(r),isStale:r=>e.#d(r)}}get max(){return this.#l}get maxSize(){return this.#c}get calculatedSize(){return this.#y}get size(){return this.#i}get fetchMethod(){return this.#B}get dispose(){return this.#p}get disposeAfter(){return this.#g}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:a,allowStale:l,dispose:c,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:g,maxSize:y=0,maxEntrySize:w=0,sizeCalculation:S,fetchMethod:E,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:U,ignoreFetchAbort:N}=e;if(r!==0&&!Ht(r))throw new TypeError(\"max option must be a nonnegative integer\");let W=r?Zd(r):Array;if(!W)throw new Error(\"invalid max value: \"+r);if(this.#l=r,this.#c=y,this.maxEntrySize=w||this.#c,this.sizeCalculation=S,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError(\"cannot set sizeCalculation without setting maxSize or maxEntrySize\");if(typeof this.sizeCalculation!=\"function\")throw new TypeError(\"sizeCalculation set to non-function\")}if(E!==void 0&&typeof E!=\"function\")throw new TypeError(\"fetchMethod must be a function if specified\");if(this.#B=E,this.#I=!!E,this.#n=new Map,this.#r=new Array(r).fill(void 0),this.#e=new Array(r).fill(void 0),this.#u=new W(r),this.#h=new W(r),this.#a=0,this.#s=0,this.#b=aa.create(r),this.#i=0,this.#y=0,typeof c==\"function\"&&(this.#p=c),typeof h==\"function\"?(this.#g=h,this.#o=[]):(this.#g=void 0,this.#o=void 0),this.#_=!!this.#p,this.#f=!!this.#g,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!R,this.allowStaleOnFetchAbort=!!U,this.ignoreFetchAbort=!!N,this.maxEntrySize!==0){if(this.#c!==0&&!Ht(this.#c))throw new TypeError(\"maxSize must be a positive integer if specified\");if(!Ht(this.maxEntrySize))throw new TypeError(\"maxEntrySize must be a positive integer if specified\");this.#q()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.ttlResolution=Ht(n)||n===0?n:1,this.ttlAutopurge=!!o,this.ttl=i||0,this.ttl){if(!Ht(this.ttl))throw new TypeError(\"ttl must be a positive integer if specified\");this.#x()}if(this.#l===0&&this.ttl===0&&this.#c===0)throw new TypeError(\"At least one of max, maxSize, or ttl is required\");if(!this.ttlAutopurge&&!this.#l&&!this.#c){let K=\"LRU_CACHE_UNBOUNDED\";_1(K)&&(Jd.add(K),Xd(\"TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.\",\"UnboundedCacheWarning\",K,t))}}getRemainingTTL(e){return this.#n.has(e)?1/0:0}#x(){let e=new Zr(this.#l),r=new Zr(this.#l);this.#w=e,this.#S=r,this.#M=(o,s,a=Ri.now())=>{if(r[o]=s!==0?a:0,e[o]=s,s!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#d(o)&&this.delete(this.#r[o])},s+1);l.unref&&l.unref()}},this.#T=o=>{r[o]=e[o]!==0?Ri.now():0},this.#A=(o,s)=>{if(e[s]){let a=e[s],l=r[s];o.ttl=a,o.start=l,o.now=i||n();let c=o.now-l;o.remainingTTL=a-c}};let i=0,n=()=>{let o=Ri.now();if(this.ttlResolution>0){i=o;let s=setTimeout(()=>i=0,this.ttlResolution);s.unref&&s.unref()}return o};this.getRemainingTTL=o=>{let s=this.#n.get(o);if(s===void 0)return 0;let a=e[s],l=r[s];if(a===0||l===0)return 1/0;let c=(i||n())-l;return a-c},this.#d=o=>e[o]!==0&&r[o]!==0&&(i||n())-r[o]>e[o]}#T=()=>{};#A=()=>{};#M=()=>{};#d=()=>!1;#q(){let e=new Zr(this.#l);this.#y=0,this.#E=e,this.#R=r=>{this.#y-=e[r],e[r]=0},this.#L=(r,i,n,o)=>{if(this.#t(i))return 0;if(!Ht(n))if(o){if(typeof o!=\"function\")throw new TypeError(\"sizeCalculation must be a function\");if(n=o(i,r),!Ht(n))throw new TypeError(\"sizeCalculation return invalid (expect positive integer)\")}else throw new TypeError(\"invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.\");return n},this.#P=(r,i,n)=>{if(e[r]=i,this.#c){let o=this.#c-e[r];for(;this.#y>o;)this.#k(!0)}this.#y+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#y)}}#R=e=>{};#P=(e,r,i)=>{};#L=(e,r,i,n)=>{if(i||n)throw new TypeError(\"cannot set size without setting maxSize or maxEntrySize on cache\");return 0};*#m({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#s;!(!this.#U(r)||((e||!this.#d(r))&&(yield r),r===this.#a));)r=this.#h[r]}*#v({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#a;!(!this.#U(r)||((e||!this.#d(r))&&(yield r),r===this.#s));)r=this.#u[r]}#U(e){return e!==void 0&&this.#n.get(this.#r[e])===e}*entries(){for(let e of this.#m())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*rentries(){for(let e of this.#v())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*keys(){for(let e of this.#m()){let r=this.#r[e];r!==void 0&&!this.#t(this.#e[e])&&(yield r)}}*rkeys(){for(let e of this.#v()){let r=this.#r[e];r!==void 0&&!this.#t(this.#e[e])&&(yield r)}}*values(){for(let e of this.#m())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#v())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}find(e,r={}){for(let i of this.#m()){let n=this.#e[i],o=this.#t(n)?n.__staleWhileFetching:n;if(o!==void 0&&e(o,this.#r[i],this))return this.get(this.#r[i],r)}}forEach(e,r=this){for(let i of this.#m()){let n=this.#e[i],o=this.#t(n)?n.__staleWhileFetching:n;o!==void 0&&e.call(r,o,this.#r[i],this)}}rforEach(e,r=this){for(let i of this.#v()){let n=this.#e[i],o=this.#t(n)?n.__staleWhileFetching:n;o!==void 0&&e.call(r,o,this.#r[i],this)}}purgeStale(){let e=!1;for(let r of this.#v({allowStale:!0}))this.#d(r)&&(this.delete(this.#r[r]),e=!0);return e}dump(){let e=[];for(let r of this.#m({allowStale:!0})){let i=this.#r[r],n=this.#e[r],o=this.#t(n)?n.__staleWhileFetching:n;if(o===void 0||i===void 0)continue;let s={value:o};if(this.#w&&this.#S){s.ttl=this.#w[r];let a=Ri.now()-this.#S[r];s.start=Math.floor(Date.now()-a)}this.#E&&(s.size=this.#E[r]),e.unshift([i,s])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Ri.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:o,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,h=this.#L(e,r,i.size||0,a);if(this.maxEntrySize&&h>this.maxEntrySize)return l&&(l.set=\"miss\",l.maxEntrySizeExceeded=!0),this.delete(e),this;let d=this.#i===0?void 0:this.#n.get(e);if(d===void 0)d=this.#i===0?this.#s:this.#b.length!==0?this.#b.pop():this.#i===this.#l?this.#k(!1):this.#i,this.#r[d]=e,this.#e[d]=r,this.#n.set(e,d),this.#u[this.#s]=d,this.#h[d]=this.#s,this.#s=d,this.#i++,this.#P(d,h,l),l&&(l.set=\"add\"),c=!1;else{this.#C(d);let g=this.#e[d];if(r!==g){if(this.#I&&this.#t(g)){g.__abortController.abort(new Error(\"replaced\"));let{__staleWhileFetching:y}=g;y!==void 0&&!s&&(this.#_&&this.#p?.(y,e,\"set\"),this.#f&&this.#o?.push([y,e,\"set\"]))}else s||(this.#_&&this.#p?.(g,e,\"set\"),this.#f&&this.#o?.push([g,e,\"set\"]));if(this.#R(d),this.#P(d,h,l),this.#e[d]=r,l){l.set=\"replace\";let y=g&&this.#t(g)?g.__staleWhileFetching:g;y!==void 0&&(l.oldValue=y)}}else l&&(l.set=\"update\")}if(n!==0&&!this.#w&&this.#x(),this.#w&&(c||this.#M(d,n,o),l&&this.#A(l,d)),!s&&this.#f&&this.#o){let g=this.#o,y;for(;y=g?.shift();)this.#g?.(...y)}return this}pop(){try{for(;this.#i;){let e=this.#e[this.#a];if(this.#k(!0),this.#t(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#f&&this.#o){let e=this.#o,r;for(;r=e?.shift();)this.#g?.(...r)}}}#k(e){let r=this.#a,i=this.#r[r],n=this.#e[r];return this.#I&&this.#t(n)?n.__abortController.abort(new Error(\"evicted\")):(this.#_||this.#f)&&(this.#_&&this.#p?.(n,i,\"evict\"),this.#f&&this.#o?.push([n,i,\"evict\"])),this.#R(r),e&&(this.#r[r]=void 0,this.#e[r]=void 0,this.#b.push(r)),this.#i===1?(this.#a=this.#s=0,this.#b.length=0):this.#a=this.#u[r],this.#n.delete(i),this.#i--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,o=this.#n.get(e);if(o!==void 0){let s=this.#e[o];if(this.#t(s)&&s.__staleWhileFetching===void 0)return!1;if(this.#d(o))n&&(n.has=\"stale\",this.#A(n,o));else return i&&this.#T(o),n&&(n.has=\"hit\",this.#A(n,o)),!0}else n&&(n.has=\"miss\");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#n.get(e);if(n!==void 0&&(i||!this.#d(n))){let o=this.#e[n];return this.#t(o)?o.__staleWhileFetching:o}}#O(e,r,i,n){let o=r===void 0?void 0:this.#e[r];if(this.#t(o))return o;let s=new xn,{signal:a}=i;a?.addEventListener(\"abort\",()=>s.abort(a.reason),{signal:s.signal});let l={signal:s.signal,options:i,context:n},c=(S,E=!1)=>{let{aborted:I}=s.signal,C=i.ignoreFetchAbort&&S!==void 0;if(i.status&&(I&&!E?(i.status.fetchAborted=!0,i.status.fetchError=s.signal.reason,C&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),I&&!C&&!E)return d(s.signal.reason);let R=y;return this.#e[r]===y&&(S===void 0?R.__staleWhileFetching?this.#e[r]=R.__staleWhileFetching:this.delete(e):(i.status&&(i.status.fetchUpdated=!0),this.set(e,S,l.options))),S},h=S=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=S),d(S)),d=S=>{let{aborted:E}=s.signal,I=E&&i.allowStaleOnFetchAbort,C=I||i.allowStaleOnFetchRejection,R=C||i.noDeleteOnFetchRejection,U=y;if(this.#e[r]===y&&(!R||U.__staleWhileFetching===void 0?this.delete(e):I||(this.#e[r]=U.__staleWhileFetching)),C)return i.status&&U.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),U.__staleWhileFetching;if(U.__returned===U)throw S},g=(S,E)=>{let I=this.#B?.(e,o,l);I&&I instanceof Promise&&I.then(C=>S(C===void 0?void 0:C),E),s.signal.addEventListener(\"abort\",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(S(void 0),i.allowStaleOnFetchAbort&&(S=C=>c(C,!0)))})};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(g).then(c,h),w=Object.assign(y,{__abortController:s,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(e,w,{...l.options,status:void 0}),r=this.#n.get(e)):this.#e[r]=w,w}#t(e){if(!this.#I)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty(\"__staleWhileFetching\")&&r.__abortController instanceof xn}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,context:S,forceRefresh:E=!1,status:I,signal:C}=r;if(!this.#I)return I&&(I.fetch=\"get\"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:o,status:I});let R={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:o,ttl:s,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:h,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:w,ignoreFetchAbort:y,status:I,signal:C},U=this.#n.get(e);if(U===void 0){I&&(I.fetch=\"miss\");let N=this.#O(e,U,R,S);return N.__returned=N}else{let N=this.#e[U];if(this.#t(N)){let pe=i&&N.__staleWhileFetching!==void 0;return I&&(I.fetch=\"inflight\",pe&&(I.returnedStale=!0)),pe?N.__staleWhileFetching:N.__returned=N}let W=this.#d(U);if(!E&&!W)return I&&(I.fetch=\"hit\"),this.#C(U),n&&this.#T(U),I&&this.#A(I,U),N;let K=this.#O(e,U,R,S),Q=K.__staleWhileFetching!==void 0&&i;return I&&(I.fetch=W?\"stale\":\"refresh\",Q&&W&&(I.returnedStale=!0)),Q?K.__staleWhileFetching:K.__returned=K}}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:s}=r,a=this.#n.get(e);if(a!==void 0){let l=this.#e[a],c=this.#t(l);return s&&this.#A(s,a),this.#d(a)?(s&&(s.get=\"stale\"),c?(s&&i&&l.__staleWhileFetching!==void 0&&(s.returnedStale=!0),i?l.__staleWhileFetching:void 0):(o||this.delete(e),s&&i&&(s.returnedStale=!0),i?l:void 0)):(s&&(s.get=\"hit\"),c?l.__staleWhileFetching:(this.#C(a),n&&this.#T(a),l))}else s&&(s.get=\"miss\")}#N(e,r){this.#h[r]=e,this.#u[e]=r}#C(e){e!==this.#s&&(e===this.#a?this.#a=this.#u[e]:this.#N(this.#h[e],this.#u[e]),this.#N(this.#s,e),this.#s=e)}delete(e){let r=!1;if(this.#i!==0){let i=this.#n.get(e);if(i!==void 0)if(r=!0,this.#i===1)this.clear();else{this.#R(i);let n=this.#e[i];this.#t(n)?n.__abortController.abort(new Error(\"deleted\")):(this.#_||this.#f)&&(this.#_&&this.#p?.(n,e,\"delete\"),this.#f&&this.#o?.push([n,e,\"delete\"])),this.#n.delete(e),this.#r[i]=void 0,this.#e[i]=void 0,i===this.#s?this.#s=this.#h[i]:i===this.#a?this.#a=this.#u[i]:(this.#u[this.#h[i]]=this.#u[i],this.#h[this.#u[i]]=this.#h[i]),this.#i--,this.#b.push(i)}}if(this.#f&&this.#o?.length){let i=this.#o,n;for(;n=i?.shift();)this.#g?.(...n)}return r}clear(){for(let e of this.#v({allowStale:!0})){let r=this.#e[e];if(this.#t(r))r.__abortController.abort(new Error(\"deleted\"));else{let i=this.#r[e];this.#_&&this.#p?.(r,i,\"delete\"),this.#f&&this.#o?.push([r,i,\"delete\"])}}if(this.#n.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#w&&this.#S&&(this.#w.fill(0),this.#S.fill(0)),this.#E&&this.#E.fill(0),this.#a=0,this.#s=0,this.#b.length=0,this.#y=0,this.#i=0,this.#f&&this.#o){let e=this.#o,r;for(;r=e?.shift();)this.#g?.(...r)}}};Mn.LRUCache=la});var lt=M(Vt=>{\"use strict\";_();v();m();Object.defineProperty(Vt,\"t\",{value:!0});Vt.ContainerIterator=Vt.Container=Vt.Base=void 0;var ua=class{constructor(e=0){this.iteratorType=e}equals(e){return this.o===e.o}};Vt.ContainerIterator=ua;var Ln=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};Vt.Base=Ln;var fa=class extends Ln{};Vt.Container=fa});var tp=M(Un=>{\"use strict\";_();v();m();Object.defineProperty(Un,\"t\",{value:!0});Un.default=void 0;var m1=lt(),ca=class extends m1.Base{constructor(e=[]){super(),this.S=[];let r=this;e.forEach(function(i){r.push(i)})}clear(){this.i=0,this.S=[]}push(e){return this.S.push(e),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},v1=ca;Un.default=v1});var rp=M(Nn=>{\"use strict\";_();v();m();Object.defineProperty(Nn,\"t\",{value:!0});Nn.default=void 0;var E1=lt(),ha=class extends E1.Base{constructor(e=[]){super(),this.j=0,this.q=[];let r=this;e.forEach(function(i){r.push(i)})}clear(){this.q=[],this.i=this.j=0}push(e){let r=this.q.length;if(this.j/r>.5&&this.j+this.i>=r&&r>4096){let i=this.i;for(let n=0;n{\"use strict\";_();v();m();Object.defineProperty(qn,\"t\",{value:!0});qn.default=void 0;var A1=lt(),da=class extends A1.Base{constructor(e=[],r=function(n,o){return n>o?-1:n>1;for(let o=this.i-1>>1;o>=0;--o)this.k(o,n)}m(e){let r=this.C[e];for(;e>0;){let i=e-1>>1,n=this.C[i];if(this.v(n,r)<=0)break;this.C[e]=n,e=i}this.C[e]=r}k(e,r){let i=this.C[e];for(;e0&&(n=o,s=this.C[o]),this.v(s,i)>=0)break;this.C[e]=s,e=n}this.C[e]=i}clear(){this.i=0,this.C.length=0}push(e){this.C.push(e),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let e=this.C[0],r=this.C.pop();return this.i-=1,this.i&&(this.C[0]=r,this.k(0,this.i>>1)),e}top(){return this.C[0]}find(e){return this.C.indexOf(e)>=0}remove(e){let r=this.C.indexOf(e);return r<0?!1:(r===0?this.pop():r===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(r,1,this.C.pop()),this.i-=1,this.m(r),this.k(r,this.i>>1)),!0)}updateItem(e){let r=this.C.indexOf(e);return r<0?!1:(this.m(r),this.k(r,this.i>>1),!0)}toArray(){return[...this.C]}},I1=da;qn.default=I1});var jn=M(Dn=>{\"use strict\";_();v();m();Object.defineProperty(Dn,\"t\",{value:!0});Dn.default=void 0;var T1=lt(),pa=class extends T1.Container{},R1=pa;Dn.default=R1});var ut=M(ga=>{\"use strict\";_();v();m();Object.defineProperty(ga,\"t\",{value:!0});ga.throwIteratorAccessError=C1;function C1(){throw new RangeError(\"Iterator access denied!\")}});var ba=M(Wn=>{\"use strict\";_();v();m();Object.defineProperty(Wn,\"t\",{value:!0});Wn.RandomIterator=void 0;var B1=lt(),Fn=ut(),ya=class extends B1.ContainerIterator{constructor(e,r){super(r),this.o=e,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,Fn.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,Fn.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,Fn.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,Fn.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(e){this.container.setElementByPos(this.o,e)}};Wn.RandomIterator=ya});var np=M($n=>{\"use strict\";_();v();m();Object.defineProperty($n,\"t\",{value:!0});$n.default=void 0;var P1=O1(jn()),k1=ba();function O1(t){return t&&t.t?t:{default:t}}var mr=class t extends k1.RandomIterator{constructor(e,r,i){super(e,i),this.container=r}copy(){return new t(this.o,this.container,this.iteratorType)}},wa=class extends P1.default{constructor(e=[],r=!0){if(super(),Array.isArray(e))this.J=r?[...e]:e,this.i=e.length;else{this.J=[];let i=this;e.forEach(function(n){i.pushBack(n)})}}clear(){this.i=0,this.J.length=0}begin(){return new mr(0,this)}end(){return new mr(this.i,this)}rBegin(){return new mr(this.i-1,this,1)}rEnd(){return new mr(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;return this.J[e]}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;return this.J.splice(e,1),this.i-=1,this.i}eraseElementByValue(e){let r=0;for(let i=0;ithis.i-1)throw new RangeError;this.J[e]=r}insert(e,r,i=1){if(e<0||e>this.i)throw new RangeError;return this.J.splice(e,0,...new Array(i).fill(r)),this.i+=i,this.i}find(e){for(let r=0;r{\"use strict\";_();v();m();Object.defineProperty(Hn,\"t\",{value:!0});Hn.default=void 0;var M1=U1(jn()),L1=lt(),vr=ut();function U1(t){return t&&t.t?t:{default:t}}var Er=class t extends L1.ContainerIterator{constructor(e,r,i,n){super(n),this.o=e,this.h=r,this.container=i,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,vr.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,vr.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,vr.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,vr.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,vr.throwIteratorAccessError)(),this.o.l}set pointer(e){this.o===this.h&&(0,vr.throwIteratorAccessError)(),this.o.l=e}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},_a=class extends M1.default{constructor(e=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let r=this;e.forEach(function(i){r.pushBack(i)})}V(e){let{L:r,B:i}=e;r.B=i,i.L=r,e===this.p&&(this.p=i),e===this._&&(this._=r),this.i-=1}G(e,r){let i=r.B,n={l:e,L:r,B:i};r.B=n,i.L=n,r===this.h&&(this.p=n),i===this.h&&(this._=n),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new Er(this.p,this.h,this)}end(){return new Er(this.h,this.h,this)}rBegin(){return new Er(this._,this.h,this,1)}rEnd(){return new Er(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return r.l}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return this.V(r),this.i}eraseElementByValue(e){let r=this.p;for(;r!==this.h;)r.l===e&&this.V(r),r=r.B;return this.i}eraseElementByIterator(e){let r=e.o;return r===this.h&&(0,vr.throwIteratorAccessError)(),e=e.next(),this.V(r),e}pushBack(e){return this.G(e,this._),this.i}popBack(){if(this.i===0)return;let e=this._.l;return this.V(this._),e}pushFront(e){return this.G(e,this.h),this.i}popFront(){if(this.i===0)return;let e=this.p.l;return this.V(this.p),e}setElementByPos(e,r){if(e<0||e>this.i-1)throw new RangeError;let i=this.p;for(;e--;)i=i.B;i.l=r}insert(e,r,i=1){if(e<0||e>this.i)throw new RangeError;if(i<=0)return this.i;if(e===0)for(;i--;)this.pushFront(r);else if(e===this.i)for(;i--;)this.pushBack(r);else{let n=this.p;for(let s=1;s{\"use strict\";_();v();m();Object.defineProperty(Vn,\"t\",{value:!0});Vn.default=void 0;var q1=j1(jn()),D1=ba();function j1(t){return t&&t.t?t:{default:t}}var Sr=class t extends D1.RandomIterator{constructor(e,r,i){super(e,i),this.container=r}copy(){return new t(this.o,this.container,this.iteratorType)}},ma=class extends q1.default{constructor(e=[],r=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let i=(()=>{if(typeof e.length==\"number\")return e.length;if(typeof e.size==\"number\")return e.size;if(typeof e.size==\"function\")return e.size();throw new TypeError(\"Cannot get the length or size of the container\")})();this.F=r,this.P=Math.max(Math.ceil(i/this.F),1);for(let s=0;s>1)-(n>>1),this.D=this.N=this.F-i%this.F>>1;let o=this;e.forEach(function(s){o.pushBack(s)})}T(){let e=[],r=Math.max(this.P>>1,1);for(let i=0;i>1}begin(){return new Sr(0,this)}end(){return new Sr(this.i,this)}rBegin(){return new Sr(this.i-1,this,1)}rEnd(){return new Sr(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(e){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,e}pushFront(e){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=e,this.i}popFront(){if(this.i===0)return;let e=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:r,curNodePointerIndex:i}=this.O(e);return this.A[r][i]}setElementByPos(e,r){if(e<0||e>this.i-1)throw new RangeError;let{curNodeBucketIndex:i,curNodePointerIndex:n}=this.O(e);this.A[i][n]=r}insert(e,r,i=1){if(e<0||e>this.i)throw new RangeError;if(e===0)for(;i--;)this.pushFront(r);else if(e===this.i)for(;i--;)this.pushBack(r);else{let n=[];for(let o=e;othis.i-1)throw new RangeError;if(e===0)this.popFront();else if(e===this.i-1)this.popBack();else{let r=[];for(let n=e+1;ne;)this.popBack();return this.i}sort(e){let r=[];for(let i=0;i{\"use strict\";_();v();m();Object.defineProperty(ei,\"t\",{value:!0});ei.TreeNodeEnableIndex=ei.TreeNode=void 0;var zn=class{constructor(e,r){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=e,this.l=r}L(){let e=this;if(e.ee===1&&e.tt.tt===e)e=e.W;else if(e.U)for(e=e.U;e.W;)e=e.W;else{let r=e.tt;for(;r.U===e;)e=r,r=e.tt;e=r}return e}B(){let e=this;if(e.W){for(e=e.W;e.U;)e=e.U;return e}else{let r=e.tt;for(;r.W===e;)e=r,r=e.tt;return e.W!==r?r:e}}te(){let e=this.tt,r=this.W,i=r.U;return e.tt===this?e.tt=r:e.U===this?e.U=r:e.W=r,r.tt=e,r.U=this,this.tt=r,this.W=i,i&&(i.tt=this),r}se(){let e=this.tt,r=this.U,i=r.W;return e.tt===this?e.tt=r:e.U===this?e.U=r:e.W=r,r.tt=e,r.W=this,this.tt=r,this.U=i,i&&(i.tt=this),r}};ei.TreeNode=zn;var va=class extends zn{constructor(){super(...arguments),this.rt=1}te(){let e=super.te();return this.ie(),e.ie(),e}se(){let e=super.se();return this.ie(),e.ie(),e}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};ei.TreeNodeEnableIndex=va});var Sa=M(Kn=>{\"use strict\";_();v();m();Object.defineProperty(Kn,\"t\",{value:!0});Kn.default=void 0;var lp=ap(),W1=lt(),up=ut(),Ea=class extends W1.Container{constructor(e=function(i,n){return in?1:0},r=!1){super(),this.Y=void 0,this.v=e,r?(this.re=lp.TreeNodeEnableIndex,this.M=function(i,n,o){let s=this.ne(i,n,o);if(s){let a=s.tt;for(;a!==this.h;)a.rt+=1,a=a.tt;let l=this.he(s);if(l){let{parentNode:c,grandParent:h,curNode:d}=l;c.ie(),h.ie(),d.ie()}}return this.i},this.V=function(i){let n=this.fe(i);for(;n!==this.h;)n.rt-=1,n=n.tt}):(this.re=lp.TreeNode,this.M=function(i,n,o){let s=this.ne(i,n,o);return s&&this.he(s),this.i},this.V=this.fe),this.h=new this.re}X(e,r){let i=this.h;for(;e;){let n=this.v(e.u,r);if(n<0)e=e.W;else if(n>0)i=e,e=e.U;else return e}return i}Z(e,r){let i=this.h;for(;e;)this.v(e.u,r)<=0?e=e.W:(i=e,e=e.U);return i}$(e,r){let i=this.h;for(;e;){let n=this.v(e.u,r);if(n<0)i=e,e=e.W;else if(n>0)e=e.U;else return e}return i}rr(e,r){let i=this.h;for(;e;)this.v(e.u,r)<0?(i=e,e=e.W):e=e.U;return i}ue(e){for(;;){let r=e.tt;if(r===this.h)return;if(e.ee===1){e.ee=0;return}if(e===r.U){let i=r.W;if(i.ee===1)i.ee=0,r.ee=1,r===this.Y?this.Y=r.te():r.te();else if(i.W&&i.W.ee===1){i.ee=r.ee,r.ee=0,i.W.ee=0,r===this.Y?this.Y=r.te():r.te();return}else i.U&&i.U.ee===1?(i.ee=1,i.U.ee=0,i.se()):(i.ee=1,e=r)}else{let i=r.U;if(i.ee===1)i.ee=0,r.ee=1,r===this.Y?this.Y=r.se():r.se();else if(i.U&&i.U.ee===1){i.ee=r.ee,r.ee=0,i.U.ee=0,r===this.Y?this.Y=r.se():r.se();return}else i.W&&i.W.ee===1?(i.ee=1,i.W.ee=0,i.te()):(i.ee=1,e=r)}}}fe(e){if(this.i===1)return this.clear(),this.h;let r=e;for(;r.U||r.W;){if(r.W)for(r=r.W;r.U;)r=r.U;else r=r.U;[e.u,r.u]=[r.u,e.u],[e.l,r.l]=[r.l,e.l],e=r}this.h.U===r?this.h.U=r.tt:this.h.W===r&&(this.h.W=r.tt),this.ue(r);let i=r.tt;return r===i.U?i.U=void 0:i.W=void 0,this.i-=1,this.Y.ee=0,i}oe(e,r){return e===void 0?!1:this.oe(e.U,r)||r(e)?!0:this.oe(e.W,r)}he(e){for(;;){let r=e.tt;if(r.ee===0)return;let i=r.tt;if(r===i.U){let n=i.W;if(n&&n.ee===1){if(n.ee=r.ee=0,i===this.Y)return;i.ee=1,e=i;continue}else if(e===r.W){if(e.ee=0,e.U&&(e.U.tt=r),e.W&&(e.W.tt=i),r.W=e.U,i.U=e.W,e.U=r,e.W=i,i===this.Y)this.Y=e,this.h.tt=e;else{let o=i.tt;o.U===i?o.U=e:o.W=e}return e.tt=i.tt,r.tt=e,i.tt=e,i.ee=1,{parentNode:r,grandParent:i,curNode:e}}else r.ee=0,i===this.Y?this.Y=i.se():i.se(),i.ee=1}else{let n=i.U;if(n&&n.ee===1){if(n.ee=r.ee=0,i===this.Y)return;i.ee=1,e=i;continue}else if(e===r.U){if(e.ee=0,e.U&&(e.U.tt=i),e.W&&(e.W.tt=r),i.W=e.U,r.U=e.W,e.U=i,e.W=r,i===this.Y)this.Y=e,this.h.tt=e;else{let o=i.tt;o.U===i?o.U=e:o.W=e}return e.tt=i.tt,r.tt=e,i.tt=e,i.ee=1,{parentNode:r,grandParent:i,curNode:e}}else r.ee=0,i===this.Y?this.Y=i.te():i.te(),i.ee=1}return}}ne(e,r,i){if(this.Y===void 0){this.i+=1,this.Y=new this.re(e,r),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let n,o=this.h.U,s=this.v(o.u,e);if(s===0){o.l=r;return}else if(s>0)o.U=new this.re(e,r),o.U.tt=o,n=o.U,this.h.U=n;else{let a=this.h.W,l=this.v(a.u,e);if(l===0){a.l=r;return}else if(l<0)a.W=new this.re(e,r),a.W.tt=a,n=a.W,this.h.W=n;else{if(i!==void 0){let c=i.o;if(c!==this.h){let h=this.v(c.u,e);if(h===0){c.l=r;return}else if(h>0){let d=c.L(),g=this.v(d.u,e);if(g===0){d.l=r;return}else g<0&&(n=new this.re(e,r),d.W===void 0?(d.W=n,n.tt=d):(c.U=n,n.tt=c))}}}if(n===void 0)for(n=this.Y;;){let c=this.v(n.u,e);if(c>0){if(n.U===void 0){n.U=new this.re(e,r),n.U.tt=n,n=n.U;break}n=n.U}else if(c<0){if(n.W===void 0){n.W=new this.re(e,r),n.W.tt=n,n=n.W;break}n=n.W}else{n.l=r;return}}}}return this.i+=1,n}I(e,r){for(;e;){let i=this.v(e.u,r);if(i<0)e=e.W;else if(i>0)e=e.U;else return e}return e||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(e,r){let i=e.o;if(i===this.h&&(0,up.throwIteratorAccessError)(),this.i===1)return i.u=r,!0;if(i===this.h.U)return this.v(i.B().u,r)>0?(i.u=r,!0):!1;if(i===this.h.W)return this.v(i.L().u,r)<0?(i.u=r,!0):!1;let n=i.L().u;if(this.v(n,r)>=0)return!1;let o=i.B().u;return this.v(o,r)<=0?!1:(i.u=r,!0)}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=0,i=this;return this.oe(this.Y,function(n){return e===r?(i.V(n),!0):(r+=1,!1)}),this.i}eraseElementByKey(e){if(this.i===0)return!1;let r=this.I(this.Y,e);return r===this.h?!1:(this.V(r),!0)}eraseElementByIterator(e){let r=e.o;r===this.h&&(0,up.throwIteratorAccessError)();let i=r.W===void 0;return e.iteratorType===0?i&&e.next():(!i||r.U===void 0)&&e.next(),this.V(r),e}forEach(e){let r=0;for(let i of this)e(i,r++,this)}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r,i=0;for(let n of this){if(i===e){r=n;break}i+=1}return r}getHeight(){if(this.i===0)return 0;let e=function(r){return r?Math.max(e(r.U),e(r.W))+1:0};return e(this.Y)}},$1=Ea;Kn.default=$1});var Ia=M(Qn=>{\"use strict\";_();v();m();Object.defineProperty(Qn,\"t\",{value:!0});Qn.default=void 0;var H1=lt(),Gn=ut(),Aa=class extends H1.ContainerIterator{constructor(e,r,i){super(i),this.o=e,this.h=r,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,Gn.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,Gn.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,Gn.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,Gn.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let e=this.o,r=this.h.tt;if(e===this.h)return r?r.rt-1:0;let i=0;for(e.U&&(i+=e.U.rt);e!==r;){let n=e.tt;e===n.W&&(i+=1,n.U&&(i+=n.U.rt)),e=n}return i}},V1=Aa;Qn.default=V1});var cp=M(Yn=>{\"use strict\";_();v();m();Object.defineProperty(Yn,\"t\",{value:!0});Yn.default=void 0;var z1=fp(Sa()),K1=fp(Ia()),G1=ut();function fp(t){return t&&t.t?t:{default:t}}var Ke=class t extends K1.default{constructor(e,r,i,n){super(e,r,n),this.container=i}get pointer(){return this.o===this.h&&(0,G1.throwIteratorAccessError)(),this.o.u}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},Ta=class extends z1.default{constructor(e=[],r,i){super(r,i);let n=this;e.forEach(function(o){n.insert(o)})}*K(e){e!==void 0&&(yield*this.K(e.U),yield e.u,yield*this.K(e.W))}begin(){return new Ke(this.h.U||this.h,this.h,this)}end(){return new Ke(this.h,this.h,this)}rBegin(){return new Ke(this.h.W||this.h,this.h,this,1)}rEnd(){return new Ke(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(e,r){return this.M(e,void 0,r)}find(e){let r=this.I(this.Y,e);return new Ke(r,this.h,this)}lowerBound(e){let r=this.X(this.Y,e);return new Ke(r,this.h,this)}upperBound(e){let r=this.Z(this.Y,e);return new Ke(r,this.h,this)}reverseLowerBound(e){let r=this.$(this.Y,e);return new Ke(r,this.h,this)}reverseUpperBound(e){let r=this.rr(this.Y,e);return new Ke(r,this.h,this)}union(e){let r=this;return e.forEach(function(i){r.insert(i)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},Q1=Ta;Yn.default=Q1});var dp=M(Jn=>{\"use strict\";_();v();m();Object.defineProperty(Jn,\"t\",{value:!0});Jn.default=void 0;var Y1=hp(Sa()),J1=hp(Ia()),X1=ut();function hp(t){return t&&t.t?t:{default:t}}var Ge=class t extends J1.default{constructor(e,r,i,n){super(e,r,n),this.container=i}get pointer(){this.o===this.h&&(0,X1.throwIteratorAccessError)();let e=this;return new Proxy([],{get(r,i){if(i===\"0\")return e.o.u;if(i===\"1\")return e.o.l},set(r,i,n){if(i!==\"1\")throw new TypeError(\"props must be 1\");return e.o.l=n,!0}})}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},Ra=class extends Y1.default{constructor(e=[],r,i){super(r,i);let n=this;e.forEach(function(o){n.setElement(o[0],o[1])})}*K(e){e!==void 0&&(yield*this.K(e.U),yield[e.u,e.l],yield*this.K(e.W))}begin(){return new Ge(this.h.U||this.h,this.h,this)}end(){return new Ge(this.h,this.h,this)}rBegin(){return new Ge(this.h.W||this.h,this.h,this,1)}rEnd(){return new Ge(this.h,this.h,this,1)}front(){if(this.i===0)return;let e=this.h.U;return[e.u,e.l]}back(){if(this.i===0)return;let e=this.h.W;return[e.u,e.l]}lowerBound(e){let r=this.X(this.Y,e);return new Ge(r,this.h,this)}upperBound(e){let r=this.Z(this.Y,e);return new Ge(r,this.h,this)}reverseLowerBound(e){let r=this.$(this.Y,e);return new Ge(r,this.h,this)}reverseUpperBound(e){let r=this.rr(this.Y,e);return new Ge(r,this.h,this)}setElement(e,r,i){return this.M(e,r,i)}find(e){let r=this.I(this.Y,e);return new Ge(r,this.h,this)}getElementByKey(e){return this.I(this.Y,e).l}union(e){let r=this;return e.forEach(function(i){r.setElement(i[0],i[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},Z1=Ra;Jn.default=Z1});var Ba=M(Ca=>{\"use strict\";_();v();m();Object.defineProperty(Ca,\"t\",{value:!0});Ca.default=ev;function ev(t){let e=typeof t;return e===\"object\"&&t!==null||e===\"function\"}});var xa=M(ti=>{\"use strict\";_();v();m();Object.defineProperty(ti,\"t\",{value:!0});ti.HashContainerIterator=ti.HashContainer=void 0;var pp=lt(),Pa=tv(Ba()),Ci=ut();function tv(t){return t&&t.t?t:{default:t}}var ka=class extends pp.ContainerIterator{constructor(e,r,i){super(i),this.o=e,this.h=r,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,Ci.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,Ci.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,Ci.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,Ci.throwIteratorAccessError)(),this.o=this.o.L,this})}};ti.HashContainerIterator=ka;var Oa=class extends pp.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol(\"@@HASH_TAG\"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(e){let{L:r,B:i}=e;r.B=i,i.L=r,e===this.p&&(this.p=i),e===this._&&(this._=r),this.i-=1}M(e,r,i){i===void 0&&(i=(0,Pa.default)(e));let n;if(i){let o=e[this.HASH_TAG];if(o!==void 0)return this.H[o].l=r,this.i;Object.defineProperty(e,this.HASH_TAG,{value:this.H.length,configurable:!0}),n={u:e,l:r,L:this._,B:this.h},this.H.push(n)}else{let o=this.g[e];if(o)return o.l=r,this.i;n={u:e,l:r,L:this._,B:this.h},this.g[e]=n}return this.i===0?(this.p=n,this.h.B=n):this._.B=n,this._=n,this.h.L=n,++this.i}I(e,r){if(r===void 0&&(r=(0,Pa.default)(e)),r){let i=e[this.HASH_TAG];return i===void 0?this.h:this.H[i]}else return this.g[e]||this.h}clear(){let e=this.HASH_TAG;this.H.forEach(function(r){delete r.u[e]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(e,r){let i;if(r===void 0&&(r=(0,Pa.default)(e)),r){let n=e[this.HASH_TAG];if(n===void 0)return!1;delete e[this.HASH_TAG],i=this.H[n],delete this.H[n]}else{if(i=this.g[e],i===void 0)return!1;delete this.g[e]}return this.V(i),!0}eraseElementByIterator(e){let r=e.o;return r===this.h&&(0,Ci.throwIteratorAccessError)(),this.V(r),e.next()}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return this.V(r),this.i}};ti.HashContainer=Oa});var yp=M(Xn=>{\"use strict\";_();v();m();Object.defineProperty(Xn,\"t\",{value:!0});Xn.default=void 0;var gp=xa(),rv=ut(),Ar=class t extends gp.HashContainerIterator{constructor(e,r,i,n){super(e,r,n),this.container=i}get pointer(){return this.o===this.h&&(0,rv.throwIteratorAccessError)(),this.o.u}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},Ma=class extends gp.HashContainer{constructor(e=[]){super();let r=this;e.forEach(function(i){r.insert(i)})}begin(){return new Ar(this.p,this.h,this)}end(){return new Ar(this.h,this.h,this)}rBegin(){return new Ar(this._,this.h,this,1)}rEnd(){return new Ar(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(e,r){return this.M(e,void 0,r)}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return r.u}find(e,r){let i=this.I(e,r);return new Ar(i,this.h,this)}forEach(e){let r=0,i=this.p;for(;i!==this.h;)e(i.u,r++,this),i=i.B}[Symbol.iterator](){return function*(){let e=this.p;for(;e!==this.h;)yield e.u,e=e.B}.bind(this)()}},iv=Ma;Xn.default=iv});var wp=M(Zn=>{\"use strict\";_();v();m();Object.defineProperty(Zn,\"t\",{value:!0});Zn.default=void 0;var bp=xa(),nv=ov(Ba()),sv=ut();function ov(t){return t&&t.t?t:{default:t}}var Ir=class t extends bp.HashContainerIterator{constructor(e,r,i,n){super(e,r,n),this.container=i}get pointer(){this.o===this.h&&(0,sv.throwIteratorAccessError)();let e=this;return new Proxy([],{get(r,i){if(i===\"0\")return e.o.u;if(i===\"1\")return e.o.l},set(r,i,n){if(i!==\"1\")throw new TypeError(\"props must be 1\");return e.o.l=n,!0}})}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},La=class extends bp.HashContainer{constructor(e=[]){super();let r=this;e.forEach(function(i){r.setElement(i[0],i[1])})}begin(){return new Ir(this.p,this.h,this)}end(){return new Ir(this.h,this.h,this)}rBegin(){return new Ir(this._,this.h,this,1)}rEnd(){return new Ir(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(e,r,i){return this.M(e,r,i)}getElementByKey(e,r){if(r===void 0&&(r=(0,nv.default)(e)),r){let n=e[this.HASH_TAG];return n!==void 0?this.H[n].l:void 0}let i=this.g[e];return i?i.l:void 0}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return[r.u,r.l]}find(e,r){let i=this.I(e,r);return new Ir(i,this.h,this)}forEach(e){let r=0,i=this.p;for(;i!==this.h;)e([i.u,i.l],r++,this),i=i.B}[Symbol.iterator](){return function*(){let e=this.p;for(;e!==this.h;)yield[e.u,e.l],e=e.B}.bind(this)()}},av=La;Zn.default=av});var _p=M(je=>{\"use strict\";_();v();m();Object.defineProperty(je,\"t\",{value:!0});Object.defineProperty(je,\"Deque\",{enumerable:!0,get:function(){return dv.default}});Object.defineProperty(je,\"HashMap\",{enumerable:!0,get:function(){return bv.default}});Object.defineProperty(je,\"HashSet\",{enumerable:!0,get:function(){return yv.default}});Object.defineProperty(je,\"LinkList\",{enumerable:!0,get:function(){return hv.default}});Object.defineProperty(je,\"OrderedMap\",{enumerable:!0,get:function(){return gv.default}});Object.defineProperty(je,\"OrderedSet\",{enumerable:!0,get:function(){return pv.default}});Object.defineProperty(je,\"PriorityQueue\",{enumerable:!0,get:function(){return fv.default}});Object.defineProperty(je,\"Queue\",{enumerable:!0,get:function(){return uv.default}});Object.defineProperty(je,\"Stack\",{enumerable:!0,get:function(){return lv.default}});Object.defineProperty(je,\"Vector\",{enumerable:!0,get:function(){return cv.default}});var lv=ft(tp()),uv=ft(rp()),fv=ft(ip()),cv=ft(np()),hv=ft(sp()),dv=ft(op()),pv=ft(cp()),gv=ft(dp()),yv=ft(yp()),bv=ft(wp());function ft(t){return t&&t.t?t:{default:t}}});var vp=M((lx,mp)=>{\"use strict\";_();v();m();var wv=_p().OrderedSet,ct=ot()(\"number-allocator:trace\"),_v=ot()(\"number-allocator:error\");function Re(t,e){this.low=t,this.high=e}Re.prototype.equals=function(t){return this.low===t.low&&this.high===t.high};Re.prototype.compare=function(t){return this.lowr.compare(i)),ct(\"Create\"),this.clear()}ht.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low};ht.prototype.alloc=function(){if(this.ss.size()===0)return ct(\"alloc():empty\"),null;let t=this.ss.begin(),e=t.pointer.low,r=t.pointer.high,i=e;return i+1<=r?this.ss.updateKeyByIterator(t,new Re(e+1,r)):this.ss.eraseElementByPos(0),ct(\"alloc():\"+i),i};ht.prototype.use=function(t){let e=new Re(t,t),r=this.ss.lowerBound(e);if(!r.equals(this.ss.end())){let i=r.pointer.low,n=r.pointer.high;return r.pointer.equals(e)?(this.ss.eraseElementByIterator(r),ct(\"use():\"+t),!0):i>t?!1:i===t?(this.ss.updateKeyByIterator(r,new Re(i+1,n)),ct(\"use():\"+t),!0):n===t?(this.ss.updateKeyByIterator(r,new Re(i,n-1)),ct(\"use():\"+t),!0):(this.ss.updateKeyByIterator(r,new Re(t+1,n)),this.ss.insert(new Re(i,t-1)),ct(\"use():\"+t),!0)}return ct(\"use():failed\"),!1};ht.prototype.free=function(t){if(tthis.max){_v(\"free():\"+t+\" is out of range\");return}let e=new Re(t,t),r=this.ss.upperBound(e);if(r.equals(this.ss.end())){if(r.equals(this.ss.begin())){this.ss.insert(e);return}r.pre();let i=r.pointer.high;r.pointer.high+1===t?this.ss.updateKeyByIterator(r,new Re(i,t)):this.ss.insert(e)}else if(r.equals(this.ss.begin()))if(t+1===r.pointer.low){let i=r.pointer.high;this.ss.updateKeyByIterator(r,new Re(t,i))}else this.ss.insert(e);else{let i=r.pointer.low,n=r.pointer.high;r.pre();let o=r.pointer.low;r.pointer.high+1===t?t+1===i?(this.ss.eraseElementByIterator(r),this.ss.updateKeyByIterator(r,new Re(o,n))):this.ss.updateKeyByIterator(r,new Re(o,t)):t+1===i?(this.ss.eraseElementByIterator(r.next()),this.ss.insert(new Re(t,n))):this.ss.insert(e)}ct(\"free():\"+t)};ht.prototype.clear=function(){ct(\"clear()\"),this.ss.clear(),this.ss.insert(new Re(this.min,this.max))};ht.prototype.intervalCount=function(){return this.ss.size()};ht.prototype.dump=function(){console.log(\"length:\"+this.ss.size());for(let t of this.ss)console.log(t)};mp.exports=ht});var Ua=M((gx,Ep)=>{_();v();m();var mv=vp();Ep.exports.NumberAllocator=mv});var Sp=M(qa=>{\"use strict\";_();v();m();Object.defineProperty(qa,\"__esModule\",{value:!0});var vv=ep(),Ev=Ua(),Na=class{constructor(e){e>0&&(this.aliasToTopic=new vv.LRUCache({max:e}),this.topicToAlias={},this.numberAllocator=new Ev.NumberAllocator(1,e),this.max=e,this.length=0)}put(e,r){if(r===0||r>this.max)return!1;let i=this.aliasToTopic.get(r);return i&&delete this.topicToAlias[i],this.aliasToTopic.set(r,e),this.topicToAlias[e]=r,this.numberAllocator.use(r),this.length=this.aliasToTopic.size,!0}getTopicByAlias(e){return this.aliasToTopic.get(e)}getAliasByTopic(e){let r=this.topicToAlias[e];return typeof r<\"u\"&&this.aliasToTopic.get(r),r}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){let e=this.numberAllocator.firstVacant();return e||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};qa.default=Na});var Ap=M(Bi=>{\"use strict\";_();v();m();var Sv=Bi&&Bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bi,\"__esModule\",{value:!0});var Av=Ti(),Iv=Sv(Sp()),Tv=_r(),Rv=(t,e)=>{t.log(\"_handleConnack\");let{options:r}=t,n=r.protocolVersion===5?e.reasonCode:e.returnCode;if(clearTimeout(t.connackTimer),delete t.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535){t.emit(\"error\",new Error(\"topicAliasMaximum from broker is out of range\"));return}e.properties.topicAliasMaximum>0&&(t.topicAliasSend=new Iv.default(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&r.keepalive&&(r.keepalive=e.properties.serverKeepAlive),e.properties.maximumPacketSize&&(r.properties||(r.properties={}),r.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(n===0)t.reconnecting=!1,t._onConnect(e);else if(n>0){let o=new Tv.ErrorWithReasonCode(`Connection refused: ${Av.ReasonCodes[n]}`,n);t.emit(\"error\",o),t.options.reconnectOnConnackError&&t._cleanUp(!0)}};Bi.default=Rv});var Ip=M(Da=>{\"use strict\";_();v();m();Object.defineProperty(Da,\"__esModule\",{value:!0});var Cv=(t,e,r)=>{t.log(\"handling pubrel packet\");let i=typeof r<\"u\"?r:t.noop,{messageId:n}=e,o={cmd:\"pubcomp\",messageId:n};t.incomingStore.get(e,(s,a)=>{s?t._sendPacket(o,i):(t.emit(\"message\",a.topic,a.payload,a),t.handleMessage(a,l=>{if(l)return i(l);t.incomingStore.del(a,t.noop),t._sendPacket(o,i)}))})};Da.default=Cv});var Tp=M(Pi=>{\"use strict\";_();v();m();var ki=Pi&&Pi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pi,\"__esModule\",{value:!0});var Bv=ki(Vd()),Pv=ki(Qd()),kv=ki(Ap()),Ov=ki(Ti()),xv=ki(Ip()),Mv=(t,e,r)=>{let{options:i}=t;if(i.protocolVersion===5&&i.properties&&i.properties.maximumPacketSize&&i.properties.maximumPacketSize{\"use strict\";_();v();m();var Lv=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ri,\"__esModule\",{value:!0});ri.TypedEventEmitter=void 0;var Uv=Lv((sr(),X(nr))),Nv=_r(),es=class{};ri.TypedEventEmitter=es;(0,Nv.applyMixin)(es,Uv.default)});var Oi=M(Tr=>{\"use strict\";_();v();m();Object.defineProperty(Tr,\"__esModule\",{value:!0});Tr.isReactNativeBrowser=Tr.isWebWorker=void 0;var qv=()=>{var t;return typeof window<\"u\"?typeof navigator<\"u\"&&((t=navigator.userAgent)===null||t===void 0?void 0:t.toLowerCase().indexOf(\" electron/\"))>-1&&(!(B===null||B===void 0)&&B.versions)?!Object.prototype.hasOwnProperty.call(B.versions,\"electron\"):typeof window.document<\"u\":!1},Cp=()=>{var t,e;return!!(typeof self==\"object\"&&(!((e=(t=self?.constructor)===null||t===void 0?void 0:t.name)===null||e===void 0)&&e.includes(\"WorkerGlobalScope\")))},Bp=()=>typeof navigator<\"u\"&&navigator.product===\"ReactNative\",Dv=qv()||Cp()||Bp();Tr.isWebWorker=Cp();Tr.isReactNativeBrowser=Bp();Tr.default=Dv});var kp=M((ts,Pp)=>{_();v();m();(function(t,e){typeof ts==\"object\"&&typeof Pp<\"u\"?e(ts):typeof define==\"function\"&&define.amd?define([\"exports\"],e):(t=typeof globalThis<\"u\"?globalThis:t||self,e(t.fastUniqueNumbers={}))})(ts,function(t){\"use strict\";var e=function(g){return function(y){var w=g(y);return y.add(w),w}},r=function(g){return function(y,w){return g.set(y,w),w}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,n=536870912,o=n*2,s=function(g,y){return function(w){var S=y.get(w),E=S===void 0?w.size:Si)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;w.has(E);)E=Math.floor(Math.random()*i);return g(w,E)}},a=new WeakMap,l=r(a),c=s(l,a),h=e(c);t.addUniqueNumber=h,t.generateUniqueNumber=c})});var xp=M((rs,Op)=>{_();v();m();(function(t,e){typeof rs==\"object\"&&typeof Op<\"u\"?e(rs,kp()):typeof define==\"function\"&&define.amd?define([\"exports\",\"fast-unique-numbers\"],e):(t=typeof globalThis<\"u\"?globalThis:t||self,e(t.workerTimersBroker={},t.fastUniqueNumbers))})(rs,function(t,e){\"use strict\";var r=function(s){return s.method!==void 0&&s.method===\"call\"},i=function(s){return s.error===null&&typeof s.id==\"number\"},n=function(s){var a=new Map([[0,function(){}]]),l=new Map([[0,function(){}]]),c=new Map,h=new Worker(s);h.addEventListener(\"message\",function(S){var E=S.data;if(r(E)){var I=E.params,C=I.timerId,R=I.timerType;if(R===\"interval\"){var U=a.get(C);if(typeof U==\"number\"){var N=c.get(U);if(N===void 0||N.timerId!==C||N.timerType!==R)throw new Error(\"The timer is in an undefined state.\")}else if(typeof U<\"u\")U();else throw new Error(\"The timer is in an undefined state.\")}else if(R===\"timeout\"){var W=l.get(C);if(typeof W==\"number\"){var K=c.get(W);if(K===void 0||K.timerId!==C||K.timerType!==R)throw new Error(\"The timer is in an undefined state.\")}else if(typeof W<\"u\")W(),l.delete(C);else throw new Error(\"The timer is in an undefined state.\")}}else if(i(E)){var z=E.id,Q=c.get(z);if(Q===void 0)throw new Error(\"The timer is in an undefined state.\");var pe=Q.timerId,Yt=Q.timerType;c.delete(z),Yt===\"interval\"?a.delete(pe):l.delete(pe)}else{var ge=E.error.message;throw new Error(ge)}});var d=function(E){var I=e.generateUniqueNumber(c);c.set(I,{timerId:E,timerType:\"interval\"}),a.set(E,I),h.postMessage({id:I,method:\"clear\",params:{timerId:E,timerType:\"interval\"}})},g=function(E){var I=e.generateUniqueNumber(c);c.set(I,{timerId:E,timerType:\"timeout\"}),l.set(E,I),h.postMessage({id:I,method:\"clear\",params:{timerId:E,timerType:\"timeout\"}})},y=function(E){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=e.generateUniqueNumber(a);return a.set(C,function(){E(),typeof a.get(C)==\"function\"&&h.postMessage({id:null,method:\"set\",params:{delay:I,now:performance.now(),timerId:C,timerType:\"interval\"}})}),h.postMessage({id:null,method:\"set\",params:{delay:I,now:performance.now(),timerId:C,timerType:\"interval\"}}),C},w=function(E){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=e.generateUniqueNumber(l);return l.set(C,E),h.postMessage({id:null,method:\"set\",params:{delay:I,now:performance.now(),timerId:C,timerType:\"timeout\"}}),C};return{clearInterval:d,clearTimeout:g,setInterval:y,setTimeout:w}};t.load=n})});var Lp=M((is,Mp)=>{_();v();m();(function(t,e){typeof is==\"object\"&&typeof Mp<\"u\"?e(is,xp()):typeof define==\"function\"&&define.amd?define([\"exports\",\"worker-timers-broker\"],e):(t=typeof globalThis<\"u\"?globalThis:t||self,e(t.workerTimers={},t.workerTimersBroker))})(is,function(t,e){\"use strict\";var r=function(h,d){var g=null;return function(){if(g!==null)return g;var y=new Blob([d],{type:\"application/javascript; charset=utf-8\"}),w=URL.createObjectURL(y);return g=h(w),setTimeout(function(){return URL.revokeObjectURL(w)}),g}},i=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i=\"function\"==typeof(o=function(){\"use strict\";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id \"'.concat(t,'\".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id \"'.concat(e,'\".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:\"call\",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,\"interval\"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,\"timeout\"))};addEventListener(\"message\",(function(e){var t=e.data;try{if(\"clear\"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if(\"interval\"===c)r(d),postMessage({error:null,id:i});else{if(\"timeout\"!==c)throw new Error('The given type \"'.concat(c,'\" is not supported'));o(d),postMessage({error:null,id:i})}}else{if(\"set\"!==t.method)throw new Error('The given method \"'.concat(t.method,'\" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if(\"interval\"===v)a(l,m,p);else{if(\"timeout\"!==v)throw new Error('The given type \"'.concat(v,'\" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";r(472)})()})();`,n=r(e.load,i),o=function(h){return n().clearInterval(h)},s=function(h){return n().clearTimeout(h)},a=function(){var h;return(h=n()).setInterval.apply(h,arguments)},l=function(){var h;return(h=n()).setTimeout.apply(h,arguments)};t.clearInterval=o,t.clearTimeout=s,t.setInterval=a,t.setTimeout=l})});var Dp=M(Ct=>{\"use strict\";_();v();m();var jv=Ct&&Ct.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||(\"get\"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Fv=Ct&&Ct.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Wv=Ct&&Ct.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!==\"default\"&&Object.prototype.hasOwnProperty.call(t,r)&&jv(e,t,r);return Fv(e,t),e};Object.defineProperty(Ct,\"__esModule\",{value:!0});var ja=Wv(Oi()),Up=Lp(),Np={set:Up.setInterval,clear:Up.clearInterval},qp={set:(t,e)=>setInterval(t,e),clear:t=>clearInterval(t)},$v=t=>{switch(t){case\"native\":return qp;case\"worker\":return Np;case\"auto\":default:return ja.default&&!ja.isWebWorker&&!ja.isReactNativeBrowser?Np:qp}};Ct.default=$v});var Wa=M(xi=>{\"use strict\";_();v();m();var Hv=xi&&xi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xi,\"__esModule\",{value:!0});var Vv=Hv(Dp()),Fa=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(e,r){this.destroyed=!1,this.client=e,this.timer=typeof r==\"object\"&&\"set\"in r&&\"clear\"in r?r:(0,Vv.default)(r),this.setKeepalive(e.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(e){if(e*=1e3,isNaN(e)||e<=0||e>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${e}`);this._keepalive=e,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${e}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let e=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+e,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};xi.default=Fa});var os=M(Qe=>{\"use strict\";_();v();m();var zv=Qe&&Qe.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||(\"get\"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Kv=Qe&&Qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Hp=Qe&&Qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!==\"default\"&&Object.prototype.hasOwnProperty.call(t,r)&&zv(e,t,r);return Kv(e,t),e},zt=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qe,\"__esModule\",{value:!0});var Gv=zt(Gu()),$a=zt(Nd()),Qv=zt(Zo()),Yv=jt(),jp=zt(Fd()),Fp=Hp($d()),Jv=zt(ot()),ii=zt(ra()),Xv=zt(Tp()),ns=_r(),Zv=Rp(),eE=zt(Wa()),Wp=Hp(Oi()),Ha=globalThis.setImmediate||((...t)=>{let e=t.shift();(0,ns.nextTick)(()=>{e(...t)})}),$p={keepalive:60,reschedulePings:!0,protocolId:\"MQTT\",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:\"auto\"},ss=class t extends Zv.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(e,r){super(),this.options=r||{};for(let i in $p)typeof this.options[i]>\"u\"?this.options[i]=$p[i]:this.options[i]=r[i];this.log=this.options.log||(0,Jv.default)(\"mqttjs:client\"),this.noop=this._noop.bind(this),this.log(\"MqttClient :: version:\",t.VERSION),Wp.isWebWorker?this.log(\"MqttClient :: environment\",\"webworker\"):this.log(\"MqttClient :: environment\",Wp.default?\"browser\":\"node\"),this.log(\"MqttClient :: options.protocol\",r.protocol),this.log(\"MqttClient :: options.protocolVersion\",r.protocolVersion),this.log(\"MqttClient :: options.username\",r.username),this.log(\"MqttClient :: options.keepalive\",r.keepalive),this.log(\"MqttClient :: options.reconnectPeriod\",r.reconnectPeriod),this.log(\"MqttClient :: options.rejectUnauthorized\",r.rejectUnauthorized),this.log(\"MqttClient :: options.properties.topicAliasMaximum\",r.properties?r.properties.topicAliasMaximum:void 0),this.options.clientId=typeof r.clientId==\"string\"?r.clientId:t.defaultId(),this.log(\"MqttClient :: clientId\",this.options.clientId),this.options.customHandleAcks=r.protocolVersion===5&&r.customHandleAcks?r.customHandleAcks:(...i)=>{i[3](null,0)},this.options.writeCache||($a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=e,this.messageIdProvider=typeof this.options.messageIdProvider>\"u\"?new Qv.default:this.options.messageIdProvider,this.outgoingStore=r.outgoingStore||new ii.default,this.incomingStore=r.incomingStore||new ii.default,this.queueQoSZero=r.queueQoSZero===void 0?!0:r.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,r.properties&&r.properties.topicAliasMaximum>0&&(r.properties.topicAliasMaximum>65535?this.log(\"MqttClient :: options.properties.topicAliasMaximum is out of range\"):this.topicAliasRecv=new Gv.default(r.properties.topicAliasMaximum)),this.on(\"connect\",()=>{let{queue:i}=this,n=()=>{let o=i.shift();this.log(\"deliver :: entry %o\",o);let s=null;if(!o){this._resubscribe();return}s=o.packet,this.log(\"deliver :: call _sendPacket for %o\",s);let a=!0;s.messageId&&s.messageId!==0&&(this.messageIdProvider.register(s.messageId)||(a=!1)),a?this._sendPacket(s,l=>{o.cb&&o.cb(l),n()}):(this.log(\"messageId: %d has already used. The message is skipped and removed.\",s.messageId),n())};this.log(\"connect :: sending queued packets\"),n()}),this.on(\"close\",()=>{this.log(\"close :: connected set to `false`\"),this.connected=!1,this.log(\"close :: clearing connackTimer\"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log(\"close :: calling _setupReconnect\"),this._setupReconnect()}),this.options.manualConnect||(this.log(\"MqttClient :: setting up stream\"),this.connect())}handleAuth(e,r){r()}handleMessage(e,r){r()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var e;let r=new Yv.Writable,i=$a.default.parser(this.options),n=null,o=[];this.log(\"connect :: calling method to clear reconnect\"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new ii.default,this.outgoingStore=this.options.outgoingStore||new ii.default,this.disconnecting=!1,this.disconnected=!1),this.log(\"connect :: using streamBuilder provided to client to create stream\"),this.stream=this.streamBuilder(this),i.on(\"packet\",h=>{this.log(\"parser :: on packet push to packets array.\"),o.push(h)});let s=()=>{this.log(\"work :: getting next packet in queue\");let h=o.shift();if(h)this.log(\"work :: packet pulled from queue\"),(0,Xv.default)(this,h,a);else{this.log(\"work :: no packets in queue\");let d=n;n=null,this.log(\"work :: done flag is %s\",!!d),d&&d()}},a=()=>{if(o.length)(0,ns.nextTick)(s);else{let h=n;n=null,h()}};r._write=(h,d,g)=>{n=g,this.log(\"writable stream :: parsing buffer\"),i.parse(h),s()};let l=h=>{this.log(\"streamErrorHandler :: error\",h.message),h.code?(this.log(\"streamErrorHandler :: emitting error\"),this.emit(\"error\",h)):this.noop(h)};this.log(\"connect :: pipe stream to writable stream\"),this.stream.pipe(r),this.stream.on(\"error\",l),this.stream.on(\"close\",()=>{this.log(\"(%s)stream :: on close\",this.options.clientId),this._flushVolatile(),this.log(\"stream: emit close to MqttClient\"),this.emit(\"close\")}),this.log(\"connect: sending packet `connect`\");let c={cmd:\"connect\",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(c.will=Object.assign(Object.assign({},this.options.will),{payload:(e=this.options.will)===null||e===void 0?void 0:e.payload})),this.topicAliasRecv&&(c.properties||(c.properties={}),this.topicAliasRecv&&(c.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(c),i.on(\"error\",this.emit.bind(this,\"error\")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit(\"error\",new Error(\"Packet has no Authentication Method\"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket==\"object\"){let h=Object.assign({cmd:\"auth\",reasonCode:0},this.options.authPacket);this._writePacket(h)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log(\"!!connectTimeout hit!! Calling _cleanUp with force `true`\"),this.emit(\"error\",new Error(\"connack timeout\")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(e,r,i,n){this.log(\"publish :: message `%s` to topic `%s`\",r,e);let{options:o}=this;typeof i==\"function\"&&(n=i,i=null),i=i||{},i=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),i);let{qos:a,retain:l,dup:c,properties:h,cbStorePut:d}=i;if(this._checkDisconnecting(n))return this;let g=()=>{let y=0;if((a===1||a===2)&&(y=this._nextId(),y===null))return this.log(\"No messageId left\"),!1;let w={cmd:\"publish\",topic:e,payload:r,qos:a,retain:l,messageId:y,dup:c};switch(o.protocolVersion===5&&(w.properties=h),this.log(\"publish :: qos\",a),a){case 1:case 2:this.outgoing[w.messageId]={volatile:!1,cb:n||this.noop},this.log(\"MqttClient:publish: packet cmd: %s\",w.cmd),this._sendPacket(w,void 0,d);break;default:this.log(\"MqttClient:publish: packet cmd: %s\",w.cmd),this._sendPacket(w,n,d);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!g())&&this._storeProcessingQueue.push({invoke:g,cbStorePut:i.cbStorePut,callback:n}),this}publishAsync(e,r,i){return new Promise((n,o)=>{this.publish(e,r,i,(s,a)=>{s?o(s):n(a)})})}subscribe(e,r,i){let n=this.options.protocolVersion;typeof r==\"function\"&&(i=r),i=i||this.noop;let o=!1,s=[];typeof e==\"string\"?(e=[e],s=e):Array.isArray(e)?s=e:typeof e==\"object\"&&(o=e.resubscribe,delete e.resubscribe,s=Object.keys(e));let a=Fp.validateTopics(s);if(a!==null)return Ha(i,new Error(`Invalid topic ${a}`)),this;if(this._checkDisconnecting(i))return this.log(\"subscribe: discconecting true\"),this;let l={qos:0};n===5&&(l.nl=!1,l.rap=!1,l.rh=0),r=Object.assign(Object.assign({},l),r);let c=r.properties,h=[],d=(y,w)=>{if(w=w||r,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,y)||this._resubscribeTopics[y].qos{this.log(\"subscribe: array topic %s\",y),d(y)}):Object.keys(e).forEach(y=>{this.log(\"subscribe: object topic %s, %o\",y,e[y]),d(y,e[y])}),!h.length)return i(null,[]),this;let g=()=>{let y=this._nextId();if(y===null)return this.log(\"No messageId left\"),!1;let w={cmd:\"subscribe\",subscriptions:h,messageId:y};if(c&&(w.properties=c),this.options.resubscribe){this.log(\"subscribe :: resubscribe true\");let S=[];h.forEach(E=>{if(this.options.reconnectPeriod>0){let I={qos:E.qos};n===5&&(I.nl=E.nl||!1,I.rap=E.rap||!1,I.rh=E.rh||0,I.properties=E.properties),this._resubscribeTopics[E.topic]=I,S.push(E.topic)}}),this.messageIdToTopic[w.messageId]=S}return this.outgoing[w.messageId]={volatile:!0,cb(S,E){if(!S){let{granted:I}=E;for(let C=0;C0||!g())&&this._storeProcessingQueue.push({invoke:g,callback:i}),this}subscribeAsync(e,r){return new Promise((i,n)=>{this.subscribe(e,r,(o,s)=>{o?n(o):i(s)})})}unsubscribe(e,r,i){typeof e==\"string\"&&(e=[e]),typeof r==\"function\"&&(i=r),i=i||this.noop;let n=Fp.validateTopics(e);if(n!==null)return Ha(i,new Error(`Invalid topic ${n}`)),this;if(this._checkDisconnecting(i))return this;let o=()=>{let s=this._nextId();if(s===null)return this.log(\"No messageId left\"),!1;let a={cmd:\"unsubscribe\",messageId:s,unsubscriptions:[]};return typeof e==\"string\"?a.unsubscriptions=[e]:Array.isArray(e)&&(a.unsubscriptions=e),this.options.resubscribe&&a.unsubscriptions.forEach(l=>{delete this._resubscribeTopics[l]}),typeof r==\"object\"&&r.properties&&(a.properties=r.properties),this.outgoing[a.messageId]={volatile:!0,cb:i},this.log(\"unsubscribe: call _sendPacket\"),this._sendPacket(a),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!o())&&this._storeProcessingQueue.push({invoke:o,callback:i}),this}unsubscribeAsync(e,r){return new Promise((i,n)=>{this.unsubscribe(e,r,(o,s)=>{o?n(o):i(s)})})}end(e,r,i){this.log(\"end :: (%s)\",this.options.clientId),(e==null||typeof e!=\"boolean\")&&(i=i||r,r=e,e=!1),typeof r!=\"object\"&&(i=i||r,r=null),this.log(\"end :: cb? %s\",!!i),(!i||typeof i!=\"function\")&&(i=this.noop);let n=()=>{this.log(\"end :: closeStores: closing incoming and outgoing stores\"),this.disconnected=!0,this.incomingStore.close(s=>{this.outgoingStore.close(a=>{if(this.log(\"end :: closeStores: emitting end\"),this.emit(\"end\"),i){let l=s||a;this.log(\"end :: closeStores: invoking callback with args\"),i(l)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},o=()=>{this.log(\"end :: (%s) :: finish :: calling _cleanUp with force %s\",this.options.clientId,e),this._cleanUp(e,()=>{this.log(\"end :: finish :: calling process.nextTick on closeStores\"),(0,ns.nextTick)(n)},r)};return this.disconnecting?(i(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(this.log(\"end :: (%s) :: calling finish in 10ms once outgoing is empty\",this.options.clientId),this.once(\"outgoingEmpty\",setTimeout.bind(null,o,10))):(this.log(\"end :: (%s) :: immediately calling finish\",this.options.clientId),o()),this)}endAsync(e,r){return new Promise((i,n)=>{this.end(e,r,o=>{o?n(o):i()})})}removeOutgoingMessage(e){if(this.outgoing[e]){let{cb:r}=this.outgoing[e];this._removeOutgoingAndStoreMessage(e,()=>{r(new Error(\"Message removed\"))})}return this}reconnect(e){this.log(\"client reconnect\");let r=()=>{e?(this.options.incomingStore=e.incomingStore,this.options.outgoingStore=e.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new ii.default,this.outgoingStore=this.options.outgoingStore||new ii.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this}_flushVolatile(){this.outgoing&&(this.log(\"_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function\"),Object.keys(this.outgoing).forEach(e=>{this.outgoing[e].volatile&&typeof this.outgoing[e].cb==\"function\"&&(this.outgoing[e].cb(new Error(\"Connection closed\")),delete this.outgoing[e])}))}_flush(){this.outgoing&&(this.log(\"_flush: queue exists? %b\",!!this.outgoing),Object.keys(this.outgoing).forEach(e=>{typeof this.outgoing[e].cb==\"function\"&&(this.outgoing[e].cb(new Error(\"Connection closed\")),delete this.outgoing[e])}))}_removeTopicAliasAndRecoverTopicName(e){let r;e.properties&&(r=e.properties.topicAlias);let i=e.topic.toString();if(this.log(\"_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o\",r,i),i.length===0){if(typeof r>\"u\")return new Error(\"Unregistered Topic Alias\");if(i=this.topicAliasSend.getTopicByAlias(r),typeof i>\"u\")return new Error(\"Unregistered Topic Alias\");e.topic=i}r&&delete e.properties.topicAlias}_checkDisconnecting(e){return this.disconnecting&&(e&&e!==this.noop?e(new Error(\"client disconnecting\")):this.emit(\"error\",new Error(\"client disconnecting\"))),this.disconnecting}_reconnect(){this.log(\"_reconnect: emitting reconnect to client\"),this.emit(\"reconnect\"),this.connected?(this.end(()=>{this.connect()}),this.log(\"client already connected. disconnecting first.\")):(this.log(\"_reconnect: calling connect\"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log(\"_setupReconnect :: emit `offline` state\"),this.emit(\"offline\"),this.log(\"_setupReconnect :: set `reconnecting` to `true`\"),this.reconnecting=!0),this.log(\"_setupReconnect :: setting reconnectTimer for %d ms\",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log(\"reconnectTimer :: reconnect triggered!\"),this._reconnect()},this.options.reconnectPeriod)):this.log(\"_setupReconnect :: doing nothing...\")}_clearReconnect(){this.log(\"_clearReconnect : clearing reconnect timer\"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(e,r,i={}){if(r&&(this.log(\"_cleanUp :: done callback provided for on stream close\"),this.stream.on(\"close\",r)),this.log(\"_cleanUp :: forced? %s\",e),e)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log(\"_cleanUp :: (%s) :: destroying stream\",this.options.clientId),this.stream.destroy();else{let n=Object.assign({cmd:\"disconnect\"},i);this.log(\"_cleanUp :: (%s) :: call _sendPacket with disconnect packet\",this.options.clientId),this._sendPacket(n,()=>{this.log(\"_cleanUp :: (%s) :: destroying stream\",this.options.clientId),Ha(()=>{this.stream.end(()=>{this.log(\"_cleanUp :: (%s) :: stream destroyed\",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log(\"_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect.\"),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),r&&!this.connected&&(this.log(\"_cleanUp :: (%s) :: removing stream `done` callback `close` listener\",this.options.clientId),this.stream.removeListener(\"close\",r),r())}_storeAndSend(e,r,i){this.log(\"storeAndSend :: store packet with cmd %s to outgoingStore\",e.cmd);let n=e,o;if(n.cmd===\"publish\"&&(n=(0,jp.default)(e),o=this._removeTopicAliasAndRecoverTopicName(n),o))return r&&r(o);this.outgoingStore.put(n,s=>{if(s)return r&&r(s);i(),this._writePacket(e,r)})}_applyTopicAlias(e){if(this.options.protocolVersion===5&&e.cmd===\"publish\"){let r;e.properties&&(r=e.properties.topicAlias);let i=e.topic.toString();if(this.topicAliasSend)if(r){if(i.length!==0&&(this.log(\"applyTopicAlias :: register topic: %s - alias: %d\",i,r),!this.topicAliasSend.put(i,r)))return this.log(\"applyTopicAlias :: error out of range. topic: %s - alias: %d\",i,r),new Error(\"Sending Topic Alias out of range\")}else i.length!==0&&(this.options.autoAssignTopicAlias?(r=this.topicAliasSend.getAliasByTopic(i),r?(e.topic=\"\",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log(\"applyTopicAlias :: auto assign(use) topic: %s - alias: %d\",i,r)):(r=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(i,r),e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log(\"applyTopicAlias :: auto assign topic: %s - alias: %d\",i,r))):this.options.autoUseTopicAlias&&(r=this.topicAliasSend.getAliasByTopic(i),r&&(e.topic=\"\",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log(\"applyTopicAlias :: auto use topic: %s - alias: %d\",i,r))));else if(r)return this.log(\"applyTopicAlias :: error out of range. topic: %s - alias: %d\",i,r),new Error(\"Sending Topic Alias out of range\")}}_noop(e){this.log(\"noop ::\",e)}_writePacket(e,r){this.log(\"_writePacket :: packet: %O\",e),this.log(\"_writePacket :: emitting `packetsend`\"),this.emit(\"packetsend\",e),this.log(\"_writePacket :: writing to stream\");let i=$a.default.writeToStream(e,this.stream,this.options);this.log(\"_writePacket :: writeToStream result %s\",i),!i&&r&&r!==this.noop?(this.log(\"_writePacket :: handle events on `drain` once through callback.\"),this.stream.once(\"drain\",r)):r&&(this.log(\"_writePacket :: invoking cb\"),r())}_sendPacket(e,r,i,n){this.log(\"_sendPacket :: (%s) :: start\",this.options.clientId),i=i||this.noop,r=r||this.noop;let o=this._applyTopicAlias(e);if(o){r(o);return}if(!this.connected){if(e.cmd===\"auth\"){this._writePacket(e,r);return}this.log(\"_sendPacket :: client not connected. Storing packet offline.\"),this._storePacket(e,r,i);return}if(n){this._writePacket(e,r);return}switch(e.cmd){case\"publish\":break;case\"pubrel\":this._storeAndSend(e,r,i);return;default:this._writePacket(e,r);return}switch(e.qos){case 2:case 1:this._storeAndSend(e,r,i);break;case 0:default:this._writePacket(e,r);break}this.log(\"_sendPacket :: (%s) :: end\",this.options.clientId)}_storePacket(e,r,i){this.log(\"_storePacket :: packet: %o\",e),this.log(\"_storePacket :: cb? %s\",!!r),i=i||this.noop;let n=e;if(n.cmd===\"publish\"){n=(0,jp.default)(e);let s=this._removeTopicAliasAndRecoverTopicName(n);if(s)return r&&r(s)}let o=n.qos||0;o===0&&this.queueQoSZero||n.cmd!==\"publish\"?this.queue.push({packet:n,cb:r}):o>0?(r=this.outgoing[n.messageId]?this.outgoing[n.messageId].cb:null,this.outgoingStore.put(n,s=>{if(s)return r&&r(s);i()})):r&&r(new Error(\"No connection to broker\"))}_setupKeepaliveManager(){this.log(\"_setupKeepaliveManager :: keepalive %d (seconds)\",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new eE.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log(\"_destroyKeepaliveManager :: destroying keepalive manager\"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(e=!1){this.keepaliveManager&&this.options.keepalive&&(e||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log(\"_reschedulePing :: rescheduling ping\"),this.keepaliveManager.reschedule()}sendPing(){this.log(\"_sendPing :: sending pingreq\"),this._sendPacket({cmd:\"pingreq\"})}onKeepaliveTimeout(){this.emit(\"error\",new Error(\"Keepalive timeout\")),this.log(\"onKeepaliveTimeout :: calling _cleanUp with force true\"),this._cleanUp(!0)}_resubscribe(){this.log(\"_resubscribe\");let e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log(\"_resubscribe: protocolVersion 5\");for(let r=0;r{let i=this.outgoingStore.createStream(),n=()=>{i.destroy(),i=null,this._flushStoreProcessingQueue(),o()},o=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once(\"close\",n),i.on(\"error\",a=>{o(),this._flushStoreProcessingQueue(),this.removeListener(\"close\",n),this.emit(\"error\",a)});let s=()=>{if(!i)return;let a=i.read(1),l;if(!a){i.once(\"readable\",s);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[a.messageId]){s();return}!this.disconnecting&&!this.reconnectTimer?(l=this.outgoing[a.messageId]?this.outgoing[a.messageId].cb:null,this.outgoing[a.messageId]={volatile:!1,cb(c,h){l&&l(c,h),s()}},this._packetIdsDuringStoreProcessing[a.messageId]=!0,this.messageIdProvider.register(a.messageId)?this._sendPacket(a,void 0,void 0,!0):this.log(\"messageId: %d has already used.\",a.messageId)):i.destroy&&i.destroy()};i.on(\"end\",()=>{let a=!0;for(let l in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[l]){a=!1;break}this.removeListener(\"close\",n),a?(o(),this._invokeAllStoreProcessingQueue(),this.emit(\"connect\",e)):r()}),s()};r()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error(\"Connection closed\")),e.callback&&e.callback(new Error(\"Connection closed\"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(e,r){delete this.outgoing[e],this.outgoingStore.del({messageId:e},(i,n)=>{r(i,n),this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue()})}};ss.VERSION=ns.MQTTJS_VERSION;Qe.default=ss});var Vp=M(za=>{\"use strict\";_();v();m();Object.defineProperty(za,\"__esModule\",{value:!0});var tE=Ua(),Va=class{constructor(){this.numberAllocator=new tE.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(e){return this.numberAllocator.use(e)}deallocate(e){this.numberAllocator.free(e)}clear(){this.numberAllocator.clear()}};za.default=Va});function Rr(t){throw new RangeError(sE[t])}function zp(t,e){let r=t.split(\"@\"),i=\"\";r.length>1&&(i=r[0]+\"@\",t=r[1]);let n=function(o,s){let a=[],l=o.length;for(;l--;)a[l]=s(o[l]);return a}((t=t.replace(nE,\".\")).split(\".\"),e).join(\".\");return i+n}function Yp(t){let e=[],r=0,i=t.length;for(;r=55296&&n<=56319&&r{_();v();m();rE=/^xn--/,iE=/[^\\0-\\x7E]/,nE=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,sE={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},dt=Math.floor,Ka=String.fromCharCode;Kp=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Jp=function(t,e,r){let i=0;for(t=r?dt(t/700):t>>1,t+=dt(t/e);t>455;i+=36)t=dt(t/35);return dt(i+36*t/(t+38))},Gp=function(t){let e=[],r=t.length,i=0,n=128,o=72,s=t.lastIndexOf(\"-\");s<0&&(s=0);for(let l=0;l=128&&Rr(\"not-basic\"),e.push(t.charCodeAt(l));for(let l=s>0?s+1:0;l=r&&Rr(\"invalid-input\");let y=(a=t.charCodeAt(l++))-48<10?a-22:a-65<26?a-65:a-97<26?a-97:36;(y>=36||y>dt((2147483647-i)/d))&&Rr(\"overflow\"),i+=y*d;let w=g<=o?1:g>=o+26?26:g-o;if(ydt(2147483647/S)&&Rr(\"overflow\"),d*=S}let h=e.length+1;o=Jp(i-c,h,c==0),dt(i/h)>2147483647-n&&Rr(\"overflow\"),n+=dt(i/h),i%=h,e.splice(i++,0,n)}var a;return String.fromCodePoint(...e)},Qp=function(t){let e=[],r=(t=Yp(t)).length,i=128,n=0,o=72;for(let l of t)l<128&&e.push(Ka(l));let s=e.length,a=s;for(s&&e.push(\"-\");a=i&&hdt((2147483647-n)/c)&&Rr(\"overflow\"),n+=(l-i)*c,i=l;for(let h of t)if(h2147483647&&Rr(\"overflow\"),h==i){let d=n;for(let g=36;;g+=36){let y=g<=o?1:g>=o+26?26:g-o;if(dString.fromCodePoint(...t)},decode:Gp,encode:Qp,toASCII:function(t){return zp(t,function(e){return iE.test(e)?\"xn--\"+Qp(e):e})},toUnicode:function(t){return zp(t,function(e){return rE.test(e)?Gp(e.slice(4).toLowerCase()):e})}};Kt.decode;Kt.encode;Kt.toASCII;Kt.toUnicode;Kt.ucs2;Kt.version});function oE(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var aE,Mi,lE,pt,Zp=_e(()=>{_();v();m();aE=function(t,e,r,i){e=e||\"&\",r=r||\"=\";var n={};if(typeof t!=\"string\"||t.length===0)return n;var o=/\\+/g;t=t.split(e);var s=1e3;i&&typeof i.maxKeys==\"number\"&&(s=i.maxKeys);var a=t.length;s>0&&a>s&&(a=s);for(var l=0;l=0?(c=y.substr(0,w),h=y.substr(w+1)):(c=y,h=\"\"),d=decodeURIComponent(c),g=decodeURIComponent(h),oE(n,d)?Array.isArray(n[d])?n[d].push(g):n[d]=[n[d],g]:n[d]=g}return n},Mi=function(t){switch(typeof t){case\"string\":return t;case\"boolean\":return t?\"true\":\"false\";case\"number\":return isFinite(t)?t:\"\";default:return\"\"}},lE=function(t,e,r,i){return e=e||\"&\",r=r||\"=\",t===null&&(t=void 0),typeof t==\"object\"?Object.keys(t).map(function(n){var o=encodeURIComponent(Mi(n))+r;return Array.isArray(t[n])?t[n].map(function(s){return o+encodeURIComponent(Mi(s))}).join(e):o+encodeURIComponent(Mi(t[n]))}).join(e):i?encodeURIComponent(Mi(i))+r+encodeURIComponent(Mi(t)):\"\"},pt={};pt.decode=pt.parse=aE,pt.encode=pt.stringify=lE;pt.decode;pt.encode;pt.parse;pt.stringify});function Ga(){throw new Error(\"setTimeout has not been defined\")}function Qa(){throw new Error(\"clearTimeout has not been defined\")}function rg(t){if(Pt===setTimeout)return setTimeout(t,0);if((Pt===Ga||!Pt)&&setTimeout)return Pt=setTimeout,setTimeout(t,0);try{return Pt(t,0)}catch{try{return Pt.call(null,t,0)}catch{return Pt.call(this||si,t,0)}}}function uE(){ni&&Cr&&(ni=!1,Cr.length?Ot=Cr.concat(Ot):as=-1,Ot.length&&ig())}function ig(){if(!ni){var t=rg(uE);ni=!0;for(var e=Ot.length;e;){for(Cr=Ot,Ot=[];++as{_();v();m();si=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:global,fe=tg={};(function(){try{Pt=typeof setTimeout==\"function\"?setTimeout:Ga}catch{Pt=Ga}try{kt=typeof clearTimeout==\"function\"?clearTimeout:Qa}catch{kt=Qa}})();Ot=[],ni=!1,as=-1;fe.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r1)for(var I=1;I{_();v();m();Ya={},sg=!1,oi=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:global;re=fE();re.platform=\"browser\";re.addListener;re.argv;re.binding;re.browser;re.chdir;re.cwd;re.emit;re.env;re.listeners;re.nextTick;re.off;re.on;re.once;re.prependListener;re.prependOnceListener;re.removeAllListeners;re.removeListener;re.title;re.umask;re.version;re.versions});function cE(){if(og)return Xa;og=!0;var t=re;function e(o){if(typeof o!=\"string\")throw new TypeError(\"Path must be a string. Received \"+JSON.stringify(o))}function r(o,s){for(var a=\"\",l=0,c=-1,h=0,d,g=0;g<=o.length;++g){if(g2){var y=a.lastIndexOf(\"/\");if(y!==a.length-1){y===-1?(a=\"\",l=0):(a=a.slice(0,y),l=a.length-1-a.lastIndexOf(\"/\")),c=g,h=0;continue}}else if(a.length===2||a.length===1){a=\"\",l=0,c=g,h=0;continue}}s&&(a.length>0?a+=\"/..\":a=\"..\",l=2)}else a.length>0?a+=\"/\"+o.slice(c+1,g):a=o.slice(c+1,g),l=g-c-1;c=g,h=0}else d===46&&h!==-1?++h:h=-1}return a}function i(o,s){var a=s.dir||s.root,l=s.base||(s.name||\"\")+(s.ext||\"\");return a?a===s.root?a+l:a+o+l:l}var n={resolve:function(){for(var s=\"\",a=!1,l,c=arguments.length-1;c>=-1&&!a;c--){var h;c>=0?h=arguments[c]:(l===void 0&&(l=t.cwd()),h=l),e(h),h.length!==0&&(s=h+\"/\"+s,a=h.charCodeAt(0)===47)}return s=r(s,!a),a?s.length>0?\"/\"+s:\"/\":s.length>0?s:\".\"},normalize:function(s){if(e(s),s.length===0)return\".\";var a=s.charCodeAt(0)===47,l=s.charCodeAt(s.length-1)===47;return s=r(s,!a),s.length===0&&!a&&(s=\".\"),s.length>0&&l&&(s+=\"/\"),a?\"/\"+s:s},isAbsolute:function(s){return e(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return\".\";for(var s,a=0;a0&&(s===void 0?s=l:s+=\"/\"+l)}return s===void 0?\".\":n.normalize(s)},relative:function(s,a){if(e(s),e(a),s===a||(s=n.resolve(s),a=n.resolve(a),s===a))return\"\";for(var l=1;lw){if(a.charCodeAt(d+E)===47)return a.slice(d+E+1);if(E===0)return a.slice(d+E)}else h>w&&(s.charCodeAt(l+E)===47?S=E:E===0&&(S=0));break}var I=s.charCodeAt(l+E),C=a.charCodeAt(d+E);if(I!==C)break;I===47&&(S=E)}var R=\"\";for(E=l+S+1;E<=c;++E)(E===c||s.charCodeAt(E)===47)&&(R.length===0?R+=\"..\":R+=\"/..\");return R.length>0?R+a.slice(d+S):(d+=S,a.charCodeAt(d)===47&&++d,a.slice(d))},_makeLong:function(s){return s},dirname:function(s){if(e(s),s.length===0)return\".\";for(var a=s.charCodeAt(0),l=a===47,c=-1,h=!0,d=s.length-1;d>=1;--d)if(a=s.charCodeAt(d),a===47){if(!h){c=d;break}}else h=!1;return c===-1?l?\"/\":\".\":l&&c===1?\"//\":s.slice(0,c)},basename:function(s,a){if(a!==void 0&&typeof a!=\"string\")throw new TypeError('\"ext\" argument must be a string');e(s);var l=0,c=-1,h=!0,d;if(a!==void 0&&a.length>0&&a.length<=s.length){if(a.length===s.length&&a===s)return\"\";var g=a.length-1,y=-1;for(d=s.length-1;d>=0;--d){var w=s.charCodeAt(d);if(w===47){if(!h){l=d+1;break}}else y===-1&&(h=!1,y=d+1),g>=0&&(w===a.charCodeAt(g)?--g===-1&&(c=d):(g=-1,c=y))}return l===c?c=y:c===-1&&(c=s.length),s.slice(l,c)}else{for(d=s.length-1;d>=0;--d)if(s.charCodeAt(d)===47){if(!h){l=d+1;break}}else c===-1&&(h=!1,c=d+1);return c===-1?\"\":s.slice(l,c)}},extname:function(s){e(s);for(var a=-1,l=0,c=-1,h=!0,d=0,g=s.length-1;g>=0;--g){var y=s.charCodeAt(g);if(y===47){if(!h){l=g+1;break}continue}c===-1&&(h=!1,c=g+1),y===46?a===-1?a=g:d!==1&&(d=1):a!==-1&&(d=-1)}return a===-1||c===-1||d===0||d===1&&a===c-1&&a===l+1?\"\":s.slice(a,c)},format:function(s){if(s===null||typeof s!=\"object\")throw new TypeError('The \"pathObject\" argument must be of type Object. Received type '+typeof s);return i(\"/\",s)},parse:function(s){e(s);var a={root:\"\",dir:\"\",base:\"\",ext:\"\",name:\"\"};if(s.length===0)return a;var l=s.charCodeAt(0),c=l===47,h;c?(a.root=\"/\",h=1):h=0;for(var d=-1,g=0,y=-1,w=!0,S=s.length-1,E=0;S>=h;--S){if(l=s.charCodeAt(S),l===47){if(!w){g=S+1;break}continue}y===-1&&(w=!1,y=S+1),l===46?d===-1?d=S:E!==1&&(E=1):d!==-1&&(E=-1)}return d===-1||y===-1||E===0||E===1&&d===y-1&&d===g+1?y!==-1&&(g===0&&c?a.base=a.name=s.slice(1,y):a.base=a.name=s.slice(g,y)):(g===0&&c?(a.name=s.slice(1,d),a.base=s.slice(1,y)):(a.name=s.slice(g,d),a.base=s.slice(g,y)),a.ext=s.slice(d,y)),g>0?a.dir=s.slice(0,g-1):c&&(a.dir=\"/\"),a},sep:\"/\",delimiter:\":\",win32:null,posix:null};return n.posix=n,Xa=n,Xa}var Xa,og,Za,ag=_e(()=>{_();v();m();Ja();Xa={},og=!1;Za=cE()});var gg={};Jt(gg,{URL:()=>FE,Url:()=>UE,default:()=>Z,fileURLToPath:()=>dg,format:()=>NE,parse:()=>jE,pathToFileURL:()=>pg,resolve:()=>qE,resolveObject:()=>DE});function Fe(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Li(t,e,r){if(t&>.isObject(t)&&t instanceof Fe)return t;var i=new Fe;return i.parse(t,e,r),i}function _E(){if(cg)return rl;cg=!0;var t=ne;function e(o){if(typeof o!=\"string\")throw new TypeError(\"Path must be a string. Received \"+JSON.stringify(o))}function r(o,s){for(var a=\"\",l=0,c=-1,h=0,d,g=0;g<=o.length;++g){if(g2){var y=a.lastIndexOf(\"/\");if(y!==a.length-1){y===-1?(a=\"\",l=0):(a=a.slice(0,y),l=a.length-1-a.lastIndexOf(\"/\")),c=g,h=0;continue}}else if(a.length===2||a.length===1){a=\"\",l=0,c=g,h=0;continue}}s&&(a.length>0?a+=\"/..\":a=\"..\",l=2)}else a.length>0?a+=\"/\"+o.slice(c+1,g):a=o.slice(c+1,g),l=g-c-1;c=g,h=0}else d===46&&h!==-1?++h:h=-1}return a}function i(o,s){var a=s.dir||s.root,l=s.base||(s.name||\"\")+(s.ext||\"\");return a?a===s.root?a+l:a+o+l:l}var n={resolve:function(){for(var s=\"\",a=!1,l,c=arguments.length-1;c>=-1&&!a;c--){var h;c>=0?h=arguments[c]:(l===void 0&&(l=t.cwd()),h=l),e(h),h.length!==0&&(s=h+\"/\"+s,a=h.charCodeAt(0)===47)}return s=r(s,!a),a?s.length>0?\"/\"+s:\"/\":s.length>0?s:\".\"},normalize:function(s){if(e(s),s.length===0)return\".\";var a=s.charCodeAt(0)===47,l=s.charCodeAt(s.length-1)===47;return s=r(s,!a),s.length===0&&!a&&(s=\".\"),s.length>0&&l&&(s+=\"/\"),a?\"/\"+s:s},isAbsolute:function(s){return e(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return\".\";for(var s,a=0;a0&&(s===void 0?s=l:s+=\"/\"+l)}return s===void 0?\".\":n.normalize(s)},relative:function(s,a){if(e(s),e(a),s===a||(s=n.resolve(s),a=n.resolve(a),s===a))return\"\";for(var l=1;lw){if(a.charCodeAt(d+E)===47)return a.slice(d+E+1);if(E===0)return a.slice(d+E)}else h>w&&(s.charCodeAt(l+E)===47?S=E:E===0&&(S=0));break}var I=s.charCodeAt(l+E),C=a.charCodeAt(d+E);if(I!==C)break;I===47&&(S=E)}var R=\"\";for(E=l+S+1;E<=c;++E)(E===c||s.charCodeAt(E)===47)&&(R.length===0?R+=\"..\":R+=\"/..\");return R.length>0?R+a.slice(d+S):(d+=S,a.charCodeAt(d)===47&&++d,a.slice(d))},_makeLong:function(s){return s},dirname:function(s){if(e(s),s.length===0)return\".\";for(var a=s.charCodeAt(0),l=a===47,c=-1,h=!0,d=s.length-1;d>=1;--d)if(a=s.charCodeAt(d),a===47){if(!h){c=d;break}}else h=!1;return c===-1?l?\"/\":\".\":l&&c===1?\"//\":s.slice(0,c)},basename:function(s,a){if(a!==void 0&&typeof a!=\"string\")throw new TypeError('\"ext\" argument must be a string');e(s);var l=0,c=-1,h=!0,d;if(a!==void 0&&a.length>0&&a.length<=s.length){if(a.length===s.length&&a===s)return\"\";var g=a.length-1,y=-1;for(d=s.length-1;d>=0;--d){var w=s.charCodeAt(d);if(w===47){if(!h){l=d+1;break}}else y===-1&&(h=!1,y=d+1),g>=0&&(w===a.charCodeAt(g)?--g===-1&&(c=d):(g=-1,c=y))}return l===c?c=y:c===-1&&(c=s.length),s.slice(l,c)}else{for(d=s.length-1;d>=0;--d)if(s.charCodeAt(d)===47){if(!h){l=d+1;break}}else c===-1&&(h=!1,c=d+1);return c===-1?\"\":s.slice(l,c)}},extname:function(s){e(s);for(var a=-1,l=0,c=-1,h=!0,d=0,g=s.length-1;g>=0;--g){var y=s.charCodeAt(g);if(y===47){if(!h){l=g+1;break}continue}c===-1&&(h=!1,c=g+1),y===46?a===-1?a=g:d!==1&&(d=1):a!==-1&&(d=-1)}return a===-1||c===-1||d===0||d===1&&a===c-1&&a===l+1?\"\":s.slice(a,c)},format:function(s){if(s===null||typeof s!=\"object\")throw new TypeError('The \"pathObject\" argument must be of type Object. Received type '+typeof s);return i(\"/\",s)},parse:function(s){e(s);var a={root:\"\",dir:\"\",base:\"\",ext:\"\",name:\"\"};if(s.length===0)return a;var l=s.charCodeAt(0),c=l===47,h;c?(a.root=\"/\",h=1):h=0;for(var d=-1,g=0,y=-1,w=!0,S=s.length-1,E=0;S>=h;--S){if(l=s.charCodeAt(S),l===47){if(!w){g=S+1;break}continue}y===-1&&(w=!1,y=S+1),l===46?d===-1?d=S:E!==1&&(E=1):d!==-1&&(E=-1)}return d===-1||y===-1||E===0||E===1&&d===y-1&&d===g+1?y!==-1&&(g===0&&c?a.base=a.name=s.slice(1,y):a.base=a.name=s.slice(g,y)):(g===0&&c?(a.name=s.slice(1,d),a.base=s.slice(1,y)):(a.name=s.slice(g,d),a.base=s.slice(g,y)),a.ext=s.slice(d,y)),g>0?a.dir=s.slice(0,g-1):c&&(a.dir=\"/\"),a},sep:\"/\",delimiter:\":\",win32:null,posix:null};return n.posix=n,rl=n,rl}function kE(t){if(typeof t==\"string\")t=new URL(t);else if(!(t instanceof URL))throw new Deno.errors.InvalidData(\"invalid argument path , must be a string or URL\");if(t.protocol!==\"file:\")throw new Deno.errors.InvalidData(\"invalid url scheme\");return nl?OE(t):xE(t)}function OE(t){let e=t.hostname,r=t.pathname;for(let i=0;iAE||n!==\":\")throw new Deno.errors.InvalidData(\"file url path must be absolute\");return r.slice(1)}}function xE(t){if(t.hostname!==\"\")throw new Deno.errors.InvalidData(\"invalid file url hostname\");let e=t.pathname;for(let r=0;rVE||n!==\":\")throw new Deno.errors.InvalidData(\"file url path must be absolute\");return r.slice(1)}}function ZE(t){if(t.hostname!==\"\")throw new Deno.errors.InvalidData(\"invalid file url hostname\");let e=t.pathname;for(let r=0;r{_();v();m();Xp();Zp();ng();ag();Ja();Z={},hE=Kt,gt={isString:function(t){return typeof t==\"string\"},isObject:function(t){return typeof t==\"object\"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}};Z.parse=Li,Z.resolve=function(t,e){return Li(t,!1,!0).resolve(e)},Z.resolveObject=function(t,e){return t?Li(t,!1,!0).resolveObject(e):e},Z.format=function(t){return gt.isString(t)&&(t=Li(t)),t instanceof Fe?t.format():Fe.prototype.format.call(t)},Z.Url=Fe;dE=/^([a-z0-9.+-]+:)/i,pE=/:[0-9]*$/,gE=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,yE=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat([\"<\",\">\",'\"',\"`\",\" \",\"\\r\",`","`,\"\t\"]),il=[\"'\"].concat(yE),lg=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(il),ug=[\"/\",\"?\",\"#\"],fg=/^[+a-z0-9A-Z_-]{0,63}$/,bE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,wE={javascript:!0,\"javascript:\":!0},el={javascript:!0,\"javascript:\":!0},ai={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0},tl=pt;Fe.prototype.parse=function(t,e,r){if(!gt.isString(t))throw new TypeError(\"Parameter 'url' must be a string, not \"+typeof t);var i=t.indexOf(\"?\"),n=i!==-1&&i127?U+=\"x\":U+=R[N];if(!U.match(fg)){var K=I.slice(0,w),z=I.slice(w+1),Q=R.match(bE);Q&&(K.push(Q[1]),z.unshift(Q[2])),z.length&&(s=\"/\"+z.join(\".\")+s),this.hostname=K.join(\".\");break}}}this.hostname.length>255?this.hostname=\"\":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=hE.toASCII(this.hostname));var pe=this.port?\":\"+this.port:\"\",Yt=this.hostname||\"\";this.host=Yt+pe,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!==\"/\"&&(s=\"/\"+s))}if(!wE[c])for(w=0,C=il.length;w0)&&r.host.split(\"@\"))&&(r.auth=Q.shift(),r.host=r.hostname=Q.shift())),r.search=t.search,r.query=t.query,gt.isNull(r.pathname)&>.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.href=r.format(),r;if(!R.length)return r.pathname=null,r.search?r.path=\"/\"+r.search:r.path=null,r.href=r.format(),r;for(var N=R.slice(-1)[0],W=(r.host||t.host||R.length>1)&&(N===\".\"||N===\"..\")||N===\"\",K=0,z=R.length;z>=0;z--)(N=R[z])===\".\"?R.splice(z,1):N===\"..\"?(R.splice(z,1),K++):K&&(R.splice(z,1),K--);if(!I&&!C)for(;K--;K)R.unshift(\"..\");!I||R[0]===\"\"||R[0]&&R[0].charAt(0)===\"/\"||R.unshift(\"\"),W&&R.join(\"/\").substr(-1)!==\"/\"&&R.push(\"\");var Q,pe=R[0]===\"\"||R[0]&&R[0].charAt(0)===\"/\";return U&&(r.hostname=r.host=pe?\"\":R.length?R.shift():\"\",(Q=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\"))&&(r.auth=Q.shift(),r.host=r.hostname=Q.shift())),(I=I||r.host&&R.length)&&!pe&&R.unshift(\"\"),R.length?r.pathname=R.join(\"/\"):(r.pathname=null,r.path=null),gt.isNull(r.pathname)&>.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},Fe.prototype.parseHost=function(){var t=this.host,e=pE.exec(t);e&&((e=e[0])!==\":\"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};Z.Url;Z.format;Z.resolve;Z.resolveObject;rl={},cg=!1;hg=_E(),mE=typeof Deno<\"u\"?Deno.build.os===\"windows\"?\"win32\":Deno.build.os:void 0;Z.URL=typeof URL<\"u\"?URL:null;Z.pathToFileURL=ME;Z.fileURLToPath=kE;Z.Url;Z.format;Z.resolve;Z.resolveObject;Z.URL;vE=92,EE=47,SE=97,AE=122,nl=mE===\"win32\",IE=/\\//g,TE=/%/g,RE=/\\\\/g,CE=/\\n/g,BE=/\\r/g,PE=/\\t/g;LE=typeof Deno<\"u\"?Deno.build.os===\"windows\"?\"win32\":Deno.build.os:void 0;Z.URL=typeof URL<\"u\"?URL:null;Z.pathToFileURL=pg;Z.fileURLToPath=dg;UE=Z.Url,NE=Z.format,qE=Z.resolve,DE=Z.resolveObject,jE=Z.parse,FE=Z.URL,WE=92,$E=47,HE=97,VE=122,sl=LE===\"win32\",zE=/\\//g,KE=/%/g,GE=/\\\\/g,QE=/\\n/g,YE=/\\r/g,JE=/\\t/g});var wg=M((YL,bg)=>{\"use strict\";_();v();m();bg.exports=function(){throw new Error(\"ws does not work in the browser. Browser clients must use the native WebSocket object\")}});var ls=M(li=>{\"use strict\";_();v();m();Object.defineProperty(li,\"__esModule\",{value:!0});li.BufferedDuplex=li.writev=void 0;var eS=jt(),_g=(be(),X(me));function mg(t,e){let r=new Array(t.length);for(let i=0;i{this.destroyed||this.push(n)})}_read(e){this.proxy.read(e)}_write(e,r,i){this.isSocketOpen?this.writeToProxy(e,r,i):this.writeQueue.push({chunk:e,encoding:r,cb:i})}_final(e){this.writeQueue=[],this.proxy.end(e)}_destroy(e,r){this.writeQueue=[],this.proxy.destroy(),r(e)}socketReady(){this.emit(\"connect\"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(e,r,i){this.proxy.write(e,r)===!1?this.proxy.once(\"drain\",i):i()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:e,encoding:r,cb:i}=this.writeQueue.shift();this.writeToProxy(e,r,i)}}};li.BufferedDuplex=ol});var Ui=M(Qt=>{\"use strict\";_();v();m();var ll=Qt&&Qt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qt,\"__esModule\",{value:!0});Qt.streamBuilder=Qt.browserStreamBuilder=void 0;var us=(be(),X(me)),vg=ll(wg()),tS=ll(ot()),rS=jt(),iS=ll(Oi()),al=ls(),Gt=(0,tS.default)(\"mqttjs:ws\"),nS=[\"rejectUnauthorized\",\"ca\",\"cert\",\"key\",\"pfx\",\"passphrase\"];function Eg(t,e){let r=`${t.protocol}://${t.hostname}:${t.port}${t.path}`;return typeof t.transformWsUrl==\"function\"&&(r=t.transformWsUrl(r,t,e)),r}function Sg(t){let e=t;return t.port||(t.protocol===\"wss\"?e.port=443:e.port=80),t.path||(e.path=\"/\"),t.wsOptions||(e.wsOptions={}),!iS.default&&!t.forceNativeWebSocket&&t.protocol===\"wss\"&&nS.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&!Object.prototype.hasOwnProperty.call(t.wsOptions,r)&&(e.wsOptions[r]=t[r])}),e}function sS(t){let e=Sg(t);if(e.hostname||(e.hostname=e.host),!e.hostname){if(typeof document>\"u\")throw new Error(\"Could not determine host. Specify host manually.\");let r=new URL(document.URL);e.hostname=r.hostname,e.port||(e.port=Number(r.port))}return e.objectMode===void 0&&(e.objectMode=!(e.binary===!0||e.binary===void 0)),e}function oS(t,e,r){Gt(\"createWebSocket\"),Gt(`protocol: ${r.protocolId} ${r.protocolVersion}`);let i=r.protocolId===\"MQIsdp\"&&r.protocolVersion===3?\"mqttv3.1\":\"mqtt\";Gt(`creating new Websocket for url: ${e} and protocol: ${i}`);let n;return r.createWebsocket?n=r.createWebsocket(e,[i],r):n=new vg.default(e,[i],r.wsOptions),n}function aS(t,e){let r=e.protocolId===\"MQIsdp\"&&e.protocolVersion===3?\"mqttv3.1\":\"mqtt\",i=Eg(e,t),n;return e.createWebsocket?n=e.createWebsocket(i,[r],e):n=new WebSocket(i,[r]),n.binaryType=\"arraybuffer\",n}var lS=(t,e)=>{Gt(\"streamBuilder\");let r=Sg(e);r.hostname=r.hostname||r.host||\"localhost\";let i=Eg(r,t),n=oS(t,i,r),o=vg.default.createWebSocketStream(n,r.wsOptions);return o.url=i,n.on(\"close\",()=>{o.destroy()}),o};Qt.streamBuilder=lS;var uS=(t,e)=>{Gt(\"browserStreamBuilder\");let r,n=sS(e).browserBufferSize||1024*512,o=e.browserBufferTimeout||1e3,s=!e.objectMode,a=aS(t,e),l=h(e,S,E);e.objectMode||(l._writev=al.writev.bind(l)),l.on(\"close\",()=>{a.close()});let c=typeof a.addEventListener<\"u\";a.readyState===a.OPEN?(r=l,r.socket=a):(r=new al.BufferedDuplex(e,l,a),c?a.addEventListener(\"open\",d):a.onopen=d),c?(a.addEventListener(\"close\",g),a.addEventListener(\"error\",y),a.addEventListener(\"message\",w)):(a.onclose=g,a.onerror=y,a.onmessage=w);function h(I,C,R){let U=new rS.Transform({objectMode:I.objectMode});return U._write=C,U._flush=R,U}function d(){Gt(\"WebSocket onOpen\"),r instanceof al.BufferedDuplex&&r.socketReady()}function g(I){Gt(\"WebSocket onClose\",I),r.end(),r.destroy()}function y(I){Gt(\"WebSocket onError\",I);let C=new Error(\"WebSocket error\");C.event=I,r.destroy(C)}async function w(I){let{data:C}=I;C instanceof ArrayBuffer?C=us.Buffer.from(C):C instanceof Blob?C=us.Buffer.from(await new Response(C).arrayBuffer()):C=us.Buffer.from(C,\"utf8\"),l&&!l.destroyed&&l.push(C)}function S(I,C,R){if(a.bufferedAmount>n){setTimeout(S,o,I,C,R);return}s&&typeof I==\"string\"&&(I=us.Buffer.from(I,\"utf8\"));try{a.send(I)}catch(U){return R(U)}R()}function E(I){a.close(),I()}return r};Qt.browserStreamBuilder=uS});var ul={};Jt(ul,{Server:()=>Me,Socket:()=>Me,Stream:()=>Me,_createServerHandle:()=>Me,_normalizeArgs:()=>Me,_setSimultaneousAccepts:()=>Me,connect:()=>Me,createConnection:()=>Me,createServer:()=>Me,default:()=>fS,isIP:()=>Me,isIPv4:()=>Me,isIPv6:()=>Me});function Me(){throw new Error(\"Node.js net module is not supported by JSPM core outside of Node.js\")}var fS,fl=_e(()=>{_();v();m();fS={_createServerHandle:Me,_normalizeArgs:Me,_setSimultaneousAccepts:Me,connect:Me,createConnection:Me,createServer:Me,isIP:Me,isIPv4:Me,isIPv6:Me,Server:Me,Socket:Me,Stream:Me}});var cl=M(Ni=>{\"use strict\";_();v();m();var Ag=Ni&&Ni.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ni,\"__esModule\",{value:!0});var cS=Ag((fl(),X(ul))),hS=Ag(ot()),dS=(0,hS.default)(\"mqttjs:tcp\"),pS=(t,e)=>{e.port=e.port||1883,e.hostname=e.hostname||e.host||\"localhost\";let{port:r,path:i}=e,n=e.hostname;return dS(\"port %d and host %s\",r,n),cS.default.createConnection({port:r,host:n,path:i})};Ni.default=pS});var Ig={};Jt(Ig,{default:()=>gS});var gS,Tg=_e(()=>{_();v();m();gS={}});var dl=M(qi=>{\"use strict\";_();v();m();var hl=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qi,\"__esModule\",{value:!0});var yS=hl((Tg(),X(Ig))),bS=hl((fl(),X(ul))),wS=hl(ot()),_S=(0,wS.default)(\"mqttjs:tls\"),mS=(t,e)=>{e.port=e.port||8883,e.host=e.hostname||e.host||\"localhost\",bS.default.isIP(e.host)===0&&(e.servername=e.host),e.rejectUnauthorized=e.rejectUnauthorized!==!1,delete e.path,_S(\"port %d host %s rejectUnauthorized %b\",e.port,e.host,e.rejectUnauthorized);let r=yS.default.connect(e);r.on(\"secureConnect\",()=>{e.rejectUnauthorized&&!r.authorized?r.emit(\"error\",new Error(\"TLS not authorized\")):r.removeListener(\"error\",i)});function i(n){e.rejectUnauthorized&&t.emit(\"error\",n),r.end()}return r.on(\"error\",i),r};qi.default=mS});var yl=M(gl=>{\"use strict\";_();v();m();Object.defineProperty(gl,\"__esModule\",{value:!0});var Rg=(be(),X(me)),vS=jt(),ES=ls(),yt,pl,Le;function SS(){let t=new vS.Transform;return t._write=(e,r,i)=>{yt.send({data:e.buffer,success(){i()},fail(n){i(new Error(n))}})},t._flush=e=>{yt.close({success(){e()}})},t}function AS(t){t.hostname||(t.hostname=\"localhost\"),t.path||(t.path=\"/\"),t.wsOptions||(t.wsOptions={})}function IS(t,e){let r=t.protocol===\"wxs\"?\"wss\":\"ws\",i=`${r}://${t.hostname}${t.path}`;return t.port&&t.port!==80&&t.port!==443&&(i=`${r}://${t.hostname}:${t.port}${t.path}`),typeof t.transformWsUrl==\"function\"&&(i=t.transformWsUrl(i,t,e)),i}function TS(){yt.onOpen(()=>{Le.socketReady()}),yt.onMessage(t=>{let{data:e}=t;e instanceof ArrayBuffer?e=Rg.Buffer.from(e):e=Rg.Buffer.from(e,\"utf8\"),pl.push(e)}),yt.onClose(()=>{Le.emit(\"close\"),Le.end(),Le.destroy()}),yt.onError(t=>{let e=new Error(t.errMsg);Le.destroy(e)})}var RS=(t,e)=>{if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error(\"Could not determine host. Specify host manually.\");let r=e.protocolId===\"MQIsdp\"&&e.protocolVersion===3?\"mqttv3.1\":\"mqtt\";AS(e);let i=IS(e,t);yt=wx.connectSocket({url:i,protocols:[r]}),pl=SS(),Le=new ES.BufferedDuplex(e,pl,yt),Le._destroy=(o,s)=>{yt.close({success(){s&&s(o)}})};let n=Le.destroy;return Le.destroy=(o,s)=>(Le.destroy=n,setTimeout(()=>{yt.close({fail(){Le._destroy(o,s)}})},0),Le),TS(),Le};gl.default=RS});var _l=M(wl=>{\"use strict\";_();v();m();Object.defineProperty(wl,\"__esModule\",{value:!0});var bl=(be(),X(me)),CS=jt(),BS=ls(),xt,fs,ui,Cg=!1;function PS(){let t=new CS.Transform;return t._write=(e,r,i)=>{xt.sendSocketMessage({data:e.buffer,success(){i()},fail(){i(new Error)}})},t._flush=e=>{xt.closeSocket({success(){e()}})},t}function kS(t){t.hostname||(t.hostname=\"localhost\"),t.path||(t.path=\"/\"),t.wsOptions||(t.wsOptions={})}function OS(t,e){let r=t.protocol===\"alis\"?\"wss\":\"ws\",i=`${r}://${t.hostname}${t.path}`;return t.port&&t.port!==80&&t.port!==443&&(i=`${r}://${t.hostname}:${t.port}${t.path}`),typeof t.transformWsUrl==\"function\"&&(i=t.transformWsUrl(i,t,e)),i}function xS(){Cg||(Cg=!0,xt.onSocketOpen(()=>{ui.socketReady()}),xt.onSocketMessage(t=>{if(typeof t.data==\"string\"){let e=bl.Buffer.from(t.data,\"base64\");fs.push(e)}else{let e=new FileReader;e.addEventListener(\"load\",()=>{let r=e.result;r instanceof ArrayBuffer?r=bl.Buffer.from(r):r=bl.Buffer.from(r,\"utf8\"),fs.push(r)}),e.readAsArrayBuffer(t.data)}}),xt.onSocketClose(()=>{ui.end(),ui.destroy()}),xt.onSocketError(t=>{ui.destroy(t)}))}var MS=(t,e)=>{if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error(\"Could not determine host. Specify host manually.\");let r=e.protocolId===\"MQIsdp\"&&e.protocolVersion===3?\"mqttv3.1\":\"mqtt\";kS(e);let i=OS(e,t);return xt=e.my,xt.connectSocket({url:i,protocols:r}),fs=PS(),ui=new BS.BufferedDuplex(e,fs,xt),xS(),ui};wl.default=MS});var kg=M(Br=>{\"use strict\";_();v();m();var cs=Br&&Br.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Br,\"__esModule\",{value:!0});Br.connectAsync=void 0;var LS=cs(ot()),US=cs((yg(),X(gg))),NS=cs(os()),qS=cs(Oi());typeof(B===null||B===void 0?void 0:B.nextTick)!=\"function\"&&(B.nextTick=setImmediate);var Bg=(0,LS.default)(\"mqttjs\"),de=null;function DS(t){let e;t.auth&&(e=t.auth.match(/^(.+):(.+)$/),e?(t.username=e[1],t.password=e[2]):t.username=t.auth)}function Pg(t,e){var r,i,n,o;if(Bg(\"connecting to an MQTT broker...\"),typeof t==\"object\"&&!e&&(e=t,t=\"\"),e=e||{},t&&typeof t==\"string\"){let l=US.default.parse(t,!0),c={};if(l.port!=null&&(c.port=Number(l.port)),c.host=l.hostname,c.query=l.query,c.auth=l.auth,c.protocol=l.protocol,c.path=l.path,c.protocol=(r=c.protocol)===null||r===void 0?void 0:r.replace(/:$/,\"\"),e=Object.assign(Object.assign({},c),e),!e.protocol)throw new Error(\"Missing protocol\")}if(e.unixSocket=e.unixSocket||((i=e.protocol)===null||i===void 0?void 0:i.includes(\"+unix\")),e.unixSocket?e.protocol=e.protocol.replace(\"+unix\",\"\"):!(!((n=e.protocol)===null||n===void 0)&&n.startsWith(\"ws\"))&&!(!((o=e.protocol)===null||o===void 0)&&o.startsWith(\"wx\"))&&delete e.path,DS(e),e.query&&typeof e.query.clientId==\"string\"&&(e.clientId=e.query.clientId),e.cert&&e.key)if(e.protocol){if([\"mqtts\",\"wss\",\"wxs\",\"alis\"].indexOf(e.protocol)===-1)switch(e.protocol){case\"mqtt\":e.protocol=\"mqtts\";break;case\"ws\":e.protocol=\"wss\";break;case\"wx\":e.protocol=\"wxs\";break;case\"ali\":e.protocol=\"alis\";break;default:throw new Error(`Unknown protocol for secure connection: \"${e.protocol}\"!`)}}else throw new Error(\"Missing secure protocol key\");if(de||(de={},!qS.default&&!e.forceNativeWebSocket?(de.ws=Ui().streamBuilder,de.wss=Ui().streamBuilder,de.mqtt=cl().default,de.tcp=cl().default,de.ssl=dl().default,de.tls=de.ssl,de.mqtts=dl().default):(de.ws=Ui().browserStreamBuilder,de.wss=Ui().browserStreamBuilder,de.wx=yl().default,de.wxs=yl().default,de.ali=_l().default,de.alis=_l().default)),!de[e.protocol]){let l=[\"mqtts\",\"wss\"].indexOf(e.protocol)!==-1;e.protocol=[\"mqtt\",\"mqtts\",\"ws\",\"wss\",\"wx\",\"wxs\",\"ali\",\"alis\"].filter((c,h)=>l&&h%2===0?!1:typeof de[c]==\"function\")[0]}if(e.clean===!1&&!e.clientId)throw new Error(\"Missing clientId for unclean clients\");e.protocol&&(e.defaultProtocol=e.protocol);function s(l){return e.servers&&((!l._reconnectCount||l._reconnectCount===e.servers.length)&&(l._reconnectCount=0),e.host=e.servers[l._reconnectCount].host,e.port=e.servers[l._reconnectCount].port,e.protocol=e.servers[l._reconnectCount].protocol?e.servers[l._reconnectCount].protocol:e.defaultProtocol,e.hostname=e.host,l._reconnectCount++),Bg(\"calling streambuilder for\",e.protocol),de[e.protocol](l,e)}let a=new NS.default(s,e);return a.on(\"error\",()=>{}),a}function jS(t,e,r=!0){return new Promise((i,n)=>{let o=Pg(t,e),s={connect:l=>{a(),i(o)},end:()=>{a(),i(o)},error:l=>{a(),o.end(),n(l)}};r===!1&&(s.close=()=>{s.error(new Error(\"Couldn't connect to server\"))});function a(){Object.keys(s).forEach(l=>{o.off(l,s[l])})}Object.keys(s).forEach(l=>{o.on(l,s[l])})})}Br.connectAsync=jS;Br.default=Pg});var ml=M(G=>{\"use strict\";_();v();m();var Og=G&&G.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||(\"get\"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),FS=G&&G.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),WS=G&&G.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!==\"default\"&&Object.prototype.hasOwnProperty.call(t,r)&&Og(e,t,r);return FS(e,t),e},xg=G&&G.__exportStar||function(t,e){for(var r in t)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(e,r)&&Og(e,t,r)},Di=G&&G.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(G,\"__esModule\",{value:!0});G.ReasonCodes=G.KeepaliveManager=G.UniqueMessageIdProvider=G.DefaultMessageIdProvider=G.Store=G.MqttClient=G.connectAsync=G.connect=G.Client=void 0;var Mg=Di(os());G.MqttClient=Mg.default;var $S=Di(Zo());G.DefaultMessageIdProvider=$S.default;var HS=Di(Vp());G.UniqueMessageIdProvider=HS.default;var VS=Di(ra());G.Store=VS.default;var Lg=WS(kg());G.connect=Lg.default;Object.defineProperty(G,\"connectAsync\",{enumerable:!0,get:function(){return Lg.connectAsync}});var zS=Di(Wa());G.KeepaliveManager=zS.default;G.Client=Mg.default;xg(os(),G);xg(_r(),G);var KS=Ti();Object.defineProperty(G,\"ReasonCodes\",{enumerable:!0,get:function(){return KS.ReasonCodes}})});var XS=M(We=>{_();v();m();var Ug=We&&We.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||(\"get\"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),GS=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),QS=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!==\"default\"&&Object.prototype.hasOwnProperty.call(t,r)&&Ug(e,t,r);return GS(e,t),e},YS=We&&We.__exportStar||function(t,e){for(var r in t)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ug(e,t,r)};Object.defineProperty(We,\"__esModule\",{value:!0});var JS=QS(ml());We.default=JS;YS(ml(),We)});return XS();})();",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[],"objectGroups":[]},{"fullName":"","functionType":"Action","name":"onScenePostEvents","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["// Remove the messages of the last frame for no dataloss mode","Object"," .values(gdjs.evtTools.mqtt.events)"," .forEach((event, index) => {"," if (Array.isArray(event.data))"," event.data.shift();"," else event.data = gdjs.evtTools.mqtt.empty;"," });",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[],"objectGroups":[]},{"description":"Triggers if the client is connected to an MQTT broker server.","fullName":"Is connected to a broker?","functionType":"Condition","name":"isConnected","sentence":"Client connected to a broker","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["eventsFunctionContext.returnValue ="," gdjs.evtTools.mqtt.connection && gdjs.evtTools.mqtt.connection.connected;",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[],"objectGroups":[]},{"description":"Connects to an MQTT broker. ","fullName":"Connect to a broker","functionType":"Action","name":"connect","sentence":"Connect to MQTT broker _PARAM1_ with parameters _PARAM2_ (secure connection: _PARAM3_)","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["// Parse settings","const settings = eventsFunctionContext.getArgument(\"settings\");","let settingsParsed;","if (settings.length > 2)"," try {"," settingsParsed = JSON.parse(settings);"," } catch (e) {"," settingsParsed = {}"," console.error(\"Invalid settings: \", settings, \", Error:\", e);"," };","","// Connect to broker","gdjs.evtTools.mqtt.connection = mqtt.connect("," (eventsFunctionContext.getArgument(\"secure\")"," ? \"wss://\""," : \"ws://\")"," + eventsFunctionContext.getArgument(\"host\"),"," settingsParsed",");","","// Set up listeners","gdjs.evtTools.mqtt.connection.on(\"message\", (channel, message) => {"," if (typeof gdjs.evtTools.mqtt.events[channel] === undefined) {"," gdjs.evtTools.mqtt.events[channel] = {"," loss: false,"," data: [message],"," };"," return;"," }",""," const mqttEvent = gdjs.evtTools.mqtt.events[channel];"," if (mqttEvent.loss) {"," mqttEvent.data = message;"," } else {"," if (!Array.isArray(mqttEvent.data)) mqttEvent.data = [];"," mqttEvent.data.push(message);"," }","});","","gdjs.evtTools.mqtt.connection.on(\"error\", function (e) {"," gdjs.evtTools.mqtt.lastError = e;","});",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":true}],"parameters":[{"description":"Host port","name":"host","type":"string"},{"description":"Settings as JSON","longDescription":"You can find the list of settings at [the MQTT.js docs](https://github.com/mqttjs/MQTT.js/#client). \nAn example of valid configuration would be `\"{\\\"clientId\\\": \\\"myUserName\\\"}\"`.","name":"settings","type":"string"},{"description":"Use secure WebSockets?","name":"secure","type":"yesorno"}],"objectGroups":[]},{"description":"Disconnects from the current MQTT broker.","fullName":"Disconnect from broker","functionType":"Action","name":"disconnect","sentence":"Disconnect from MQTT broker (force: _PARAM1_)","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["if (gdjs.evtTools.mqtt.connection === null) return;","gdjs.evtTools.mqtt.connection.end(eventsFunctionContext.getArgument(\"force\"));","gdjs.evtTools.mqtt.connection = null;",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"Force end the connection?","longDescription":"By default, MQTT waits for pending messages or messages in the process of being sent to finish being sent before ending the connection. Use this to cancel any request and immediately shutdown the connection.","name":"force","type":"yesorno"}],"objectGroups":[]},{"description":"Publishes a message on a topic.","fullName":"Publish message","functionType":"Action","name":"publish","sentence":"Publish variable _PARAM1_ on topic _PARAM2_ (QoS: _PARAM3_)","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["if (gdjs.evtTools.mqtt.connection === null) return;","gdjs.evtTools.mqtt.connection.publish("," eventsFunctionContext.getArgument(\"topic\"),"," eventsFunctionContext.getArgument(\"content\"),"," { qos: eventsFunctionContext.getArgument(\"QoS\"), retain: eventsFunctionContext.getArgument(\"retain\") }",");",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"Text to publish","name":"content","type":"string"},{"description":"Topic to publish to","name":"topic","type":"string"},{"description":"The QoS","longDescription":"See [this](https://github.com/mqttjs/MQTT.js#qos) for more details.","name":"QoS","type":"expression"},{"description":"Should the message be retained?","longDescription":"When a message is retained, it will be sent to every client that subscribe to the topic. Only one message can be retained per topic, if another retained message is sent it will overwrite the previous one. \nRead more [here](https://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages/#retained-messages).","name":"retain","type":"yesorno"}],"objectGroups":[]},{"description":"Subcribe to a topic. All messages published on that topic will be received.","fullName":"Subscribe to a topic","functionType":"Action","name":"subscribe","sentence":"Subscribe to topic _PARAM1_ with QoS at _PARAM2_ and dataloss _PARAM3_","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["if (gdjs.evtTools.mqtt.connection === null) return;","","const topic = eventsFunctionContext.getArgument(\"topic\");","if (typeof gdjs.evtTools.mqtt.events[topic] === \"undefined\") gdjs.evtTools.mqtt.events[topic] = { data: eventsFunctionContext.getArgument(\"dataloss\") ? \"\" : [] };","gdjs.evtTools.mqtt.events[topic].loss = eventsFunctionContext.getArgument(\"dataloss\");","","gdjs.evtTools.mqtt.connection.subscribe("," topic,"," { qos: eventsFunctionContext.getArgument(\"QoS\") }",");",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"The topic to subscribe to","name":"topic","type":"string"},{"description":"The QoS","longDescription":"See https://github.com/mqttjs/MQTT.js#qos for more details","name":"QoS","type":"expression"},{"description":"Is dataloss allowed?","longDescription":"See https://wiki.gdevelop.io/gdevelop5/all-features/p2p#choosing_if_you_want_to_activate_data_loss_mode for more details","name":"dataloss","type":"yesorno"}],"objectGroups":[]},{"description":"Unsubcribe from a topic. No more messages from this topic will be received.","fullName":"Unsubscribe from a topic","functionType":"Action","name":"unsubscribe","sentence":"Unsubscribe from topic _PARAM1_","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["if (gdjs.evtTools.mqtt.connection !== null)"," gdjs.evtTools.mqtt.connection.unsubscribe("," eventsFunctionContext.getArgument(\"topic\")"," );",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"The topic to subscribe to","name":"topic","type":"string"}],"objectGroups":[]},{"description":"Triggers whenever a message was received. Note that you first need to subcribe to a topic in order to get messages from it.","fullName":"On message","functionType":"Condition","name":"onMessage","sentence":"Message received from topic _PARAM1_","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["const mqttEvent = gdjs.evtTools.mqtt.events[eventsFunctionContext.getArgument(\"topic\")];\r","if (typeof mqttEvent === \"undefined\" || typeof mqttEvent.data === \"undefined\") return;\r","eventsFunctionContext.returnValue =\r"," Array.isArray(mqttEvent.data)\r"," ? mqttEvent.data.length !== 0\r"," : mqttEvent.data !== gdjs.evtTools.mqtt.empty;\r",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"The topic to listen to","name":"topic","type":"string"}],"objectGroups":[]},{"description":"Get the last received message of a topic.","fullName":"Get last message","functionType":"StringExpression","name":"GetLastMessage","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["const mqttEvent = gdjs.evtTools.mqtt.events[eventsFunctionContext.getArgument(\"topic\")];","if (typeof mqttEvent === \"undefined\") return;","eventsFunctionContext.returnValue = Array.isArray(mqttEvent.data)"," ? mqttEvent.data[0]"," : mqttEvent.data;",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"expressionType":{"type":"string"},"parameters":[{"description":"The topic to get the message from","name":"topic","type":"string"}],"objectGroups":[]},{"description":"Gets the last error. Returns an empty string if there was no errors.","fullName":"Get the last error","functionType":"StringExpression","name":"getCurrentError","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":"eventsFunctionContext.returnValue = gdjs.evtTools.mqtt.lastError","parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"expressionType":{"type":"string"},"parameters":[],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"onFirstSceneLoaded"},{"functionName":"onScenePostEvents"},{"functionName":"isConnected"},{"functionName":"connect"},{"functionName":"disconnect"},{"functionName":"publish"},{"functionName":"subscribe"},{"functionName":"unsubscribe"},{"functionName":"onMessage"},{"functionName":"GetLastMessage"},{"functionName":"getCurrentError"}]},"eventsBasedBehaviors":[],"eventsBasedObjects":[]},{"author":"","category":"User interface","dimension":"2D","extensionNamespace":"","fullName":"Labeled button","gdevelopVersion":">=5.5.230","helpPath":"/objects/button","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTI5LDIzSDNjLTEuMSwwLTItMC45LTItMlYxMWMwLTEuMSwwLjktMiwyLTJoMjZjMS4xLDAsMiwwLjksMiwydjEwQzMxLDIyLjEsMzAuMSwyMywyOSwyM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMywxOUwxMywxOWMtMS4xLDAtMi0wLjktMi0ydi0yYzAtMS4xLDAuOS0yLDItMmgwYzEuMSwwLDIsMC45LDIsMnYyQzE1LDE4LjEsMTQuMSwxOSwxMywxOXoiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIxOCIgeTE9IjEzIiB4Mj0iMTgiIHkyPSIxOSIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjIxIiB5MT0iMTMiIHgyPSIxOCIgeTI9IjE3Ii8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMjEiIHkxPSIxOSIgeDI9IjE5IiB5Mj0iMTYiLz4NCjwvc3ZnPg0K","name":"PanelSpriteButton","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Interface Elements/Interface Elements_interface_ui_button_ok_cta_clock_tap.svg","shortDescription":"Resizeable button with a label.","version":"2.2.1","description":["A button that can be used for menus and most labelled buttons of a game. The button can be customized with a background for each state and a label. It handles user interactions and a simple condition can be used to check if it is clicked.","","There are ready-to-use buttons in the asset-store [menu buttons pack](https://editor.gdevelop.io/?initial-dialog=asset-store&asset-pack=menu-buttons-menu-buttons)."],"origin":{"identifier":"PanelSpriteButton","name":"gdevelop-extension-store"},"tags":["button","ui"],"authorIds":["IWykYNRvhCZBN3vEgKEbBPOR3Oc2"],"changelog":[{"version":"2.0.0","breaking":"- Buttons now use \"variants\", allowing easy swapping of their visual aspect. You will have to make some adjustments to existing buttons in your project. Follow this [migration documentation](https://wiki.gdevelop.io/gdevelop5/objects/custom-objects-prefab-template/migrate-to-variants/) to do these changes."}],"dependencies":[],"globalVariables":[],"sceneVariables":[],"eventsFunctions":[{"description":"Check if the events are running for the editor.","fullName":"Editor is running","functionType":"Condition","name":"IsInGameEdition","private":true,"sentence":"Events are running for the editor","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["const game = runtimeScene.getGame();\r","eventsFunctionContext.returnValue = game.isInGameEdition && game.isInGameEdition();"],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"IsInGameEdition"}]},"eventsBasedBehaviors":[{"description":"The finite state machine used internally by the button object.","fullName":"Button finite state machine","helpPath":"","iconUrl":"","name":"ButtonFSM","objectType":"","previewIconUrl":"","private":true,"eventsFunctions":[{"fullName":"","functionType":"Action","name":"doStepPostEvents","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"PanelSpriteButton::IsInGameEdition"},"parameters":["",""]}],"actions":[],"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Finite state machine","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"The \"Validated\" state only last one frame."},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Validated\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Idle\""]}]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Check position","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Make sure the cursor position is only checked once per frame."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["MouseIsInside","False",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldCheckHovering","True",""]},{"type":{"value":"CollisionPoint"},"parameters":["Object","MouseOnlyCursorX(Object.Layer(), 0)","MouseOnlyCursorY(Object.Layer(), 0)"]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["MouseIsInside","True",""]}]},{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Touches are always pressed, so ShouldCheckHovering doesn't matter."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["TouchIsInside","False",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["TouchId","!=","0"]},{"type":{"value":"CollisionPoint"},"parameters":["Object","TouchX(TouchId, Object.Layer(), 0)","TouchY(TouchId, Object.Layer(), 0)"]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["TouchIsInside","True",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Handle touch start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"HasAnyTouchOrMouseStarted"},"parameters":[""]}],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["Index","=","0"]}],"events":[{"type":"BuiltinCommonInstructions::Repeat","repeatExpression":"StartedTouchOrMouseCount()","conditions":[],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"CollisionPoint"},"parameters":["Object","TouchX(StartedTouchOrMouseId(Index), Object.Layer(), 0)","TouchY(StartedTouchOrMouseId(Index), Object.Layer(), 0)"]}],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["TouchId","=","StartedTouchOrMouseId(Index)"]},{"type":{"value":"SetBooleanVariable"},"parameters":["TouchIsInside","True",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::Or"},"parameters":[],"subInstructions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Hovered\""]},{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]}]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"PressedInside\""]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["Index","+","1"]}]}]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Apply position changes","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"BooleanVariable"},"parameters":["MouseIsInside","True",""]},{"type":{"value":"StringVariable"},"parameters":["State","=","\"Hovered\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Idle\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["MouseIsInside","True",""]},{"type":{"value":"StringVariable"},"parameters":["State","=","\"Idle\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Hovered\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"BooleanVariable"},"parameters":["TouchIsInside","True",""]},{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedInside\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"PressedOutside\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["TouchIsInside","True",""]},{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"PressedInside\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Handle touch end","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"HasTouchEnded"},"parameters":["","TouchId"]}],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["TouchId","=","0"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedInside\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Validated\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"StringVariable"},"parameters":["State","=","\"PressedInside\""]},{"type":{"inverted":true,"value":"StringVariable"},"parameters":["State","=","\"Validated\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Idle\""]}]}]}],"parameters":[]}],"parameters":[]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"fullName":"","functionType":"Action","name":"onDeActivate","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::ResetState"},"parameters":["Object","Behavior",""]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Reset the state of the button.","fullName":"Reset state","functionType":"Action","name":"ResetState","private":true,"sentence":"Reset the button state of _PARAM0_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Idle\""]},{"type":{"value":"SetNumberVariable"},"parameters":["TouchId","=","0"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is not used.","fullName":"Is idle","functionType":"Condition","name":"IsIdle","sentence":"_PARAM0_ is idle","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Idle\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button was just clicked.","fullName":"Is clicked","functionType":"Condition","name":"IsClicked","sentence":"_PARAM0_ is clicked","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Validated\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the cursor is hovered over the button.","fullName":"Is hovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ is hovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Hovered\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is either hovered or pressed but not hovered.","fullName":"Is focused","functionType":"Condition","name":"IsFocused","sentence":"_PARAM0_ is focused","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Hovered\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed with mouse or touch.","fullName":"Is pressed","functionType":"Condition","name":"IsPressed","sentence":"_PARAM0_ is pressed","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedInside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed outside with mouse or touch.","fullName":"Is held outside","functionType":"Condition","name":"IsPressedOutside","sentence":"_PARAM0_ is held outside","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"the touch id that is using the button or 0 if none.","fullName":"Touch id","functionType":"ExpressionAndCondition","name":"TouchId","sentence":"the touch id","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["TouchId"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"doStepPostEvents"},{"functionName":"onDeActivate"},{"functionName":"ResetState"},{"functionName":"IsIdle"},{"functionName":"IsClicked"},{"functionName":"IsHovered"},{"functionName":"IsFocused"},{"functionName":"IsPressed"},{"functionName":"IsPressedOutside"},{"functionName":"TouchId"}]},"propertyDescriptors":[{"value":"true","type":"Boolean","label":"","description":"Should check hovering","hidden":true,"name":"ShouldCheckHovering"},{"value":"Idle","type":"Choice","label":"State","choices":[{"label":"Idle","value":"Idle"},{"label":"Hovered","value":"Hovered"},{"label":"PressedInside","value":"PressedInside"},{"label":"PressedOutside","value":"PressedOutside"},{"label":"Validated","value":"Validated"}],"hidden":true,"name":"State"},{"value":"0","type":"Number","label":"Touch id","hidden":true,"name":"TouchId"},{"value":"","type":"Boolean","label":"Touch is inside","hidden":true,"name":"TouchIsInside"},{"value":"","type":"Boolean","label":"Mouse is inside","hidden":true,"name":"MouseIsInside"},{"value":"","type":"Number","label":"","hidden":true,"name":"Index"}],"propertiesFolderStructure":{"folderName":"__ROOT","children":[{"propertyName":"ShouldCheckHovering"},{"propertyName":"State"},{"propertyName":"TouchId"},{"propertyName":"TouchIsInside"},{"propertyName":"MouseIsInside"},{"propertyName":"Index"}]}},{"description":"Change the text style when the button is hovered.","fullName":"Hover text style","helpPath":"","iconUrl":"","name":"TextStyleState","objectType":"TextObject::Text","previewIconUrl":"","private":true,"eventsFunctions":[{"description":"Check if isHovered.","fullName":"IsHovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ isHovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","True",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"TextObject::Text","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::TextStyleState","type":"behavior"}],"objectGroups":[]},{"description":"Change if isHovered.","fullName":"IsHovered","functionType":"Action","name":"SetIsHovered","sentence":"_PARAM0_ isHovered: _PARAM2_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","False",""]},{"type":{"value":"BooleanVariable"},"parameters":["Value","True",""]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["IsHovered","True",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["HoverFontSize",">","0"]}],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["IdleFontSize","=","Object.FontSize()"]},{"type":{"value":"TextObject::Text::SetFontSize"},"parameters":["Object","=","HoverFontSize"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["HoverColor","!=","\"\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["IdleColor","=","Object.Behavior::Color()"]},{"type":{"value":"TextObject::ChangeColor"},"parameters":["Object","HoverColor"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldEnableShadowOnHover","True",""]}],"actions":[{"type":{"value":"TextObject::ShowShadow"},"parameters":["Object",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldEnableOutlineOnHover","True",""]}],"actions":[{"type":{"value":"TextObject::Text::SetOutlineEnabled"},"parameters":["Object","yes"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","True",""]},{"type":{"value":"BooleanVariable"},"parameters":["Value","False",""]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["IsHovered","False",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["HoverFontSize",">","0"]}],"actions":[{"type":{"value":"TextObject::Text::SetFontSize"},"parameters":["Object","=","IdleFontSize"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["HoverColor","!=","\"\""]}],"actions":[{"type":{"value":"TextObject::ChangeColor"},"parameters":["Object","IdleColor"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldEnableShadowOnHover","True",""]}],"actions":[{"type":{"value":"TextObject::ShowShadow"},"parameters":["Object","no"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldEnableOutlineOnHover","True",""]}],"actions":[{"type":{"value":"TextObject::Text::SetOutlineEnabled"},"parameters":["Object","no"]}]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"TextObject::Text","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::TextStyleState","type":"behavior"},{"defaultValue":"yes","description":"IsHovered","name":"Value","optional":true,"type":"yesorno"}],"objectGroups":[]},{"description":"Return the text color","fullName":"Text color","functionType":"StringExpression","name":"Color","private":true,"sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["/** @type {gdjs.TextRuntimeObject} */","const object = eventsFunctionContext.getObjects(\"Object\")[0];","","eventsFunctionContext.returnValue = object._color.join(\";\");"],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":true}],"expressionType":{"type":"color"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"TextObject::Text","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::TextStyleState","type":"behavior"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"IsHovered"},{"functionName":"SetIsHovered"},{"functionName":"Color"}]},"propertyDescriptors":[{"value":"","type":"Boolean","label":"Outline on hover","name":"ShouldEnableOutlineOnHover"},{"value":"","type":"Color","label":"Hover color","name":"HoverColor"},{"value":"","type":"Boolean","label":"Enable shadow on hover","name":"ShouldEnableShadowOnHover"},{"value":"0","type":"Number","unit":"Pixel","label":"Hover font size","name":"HoverFontSize"},{"value":"","type":"Boolean","label":"","hidden":true,"name":"IsHovered"},{"value":"0","type":"Number","unit":"Pixel","label":"Idle font size","hidden":true,"name":"IdleFontSize"},{"value":"","type":"Color","label":"Idle color","hidden":true,"name":"IdleColor"}],"propertiesFolderStructure":{"folderName":"__ROOT","children":[{"propertyName":"IsHovered"},{"propertyName":"HoverFontSize"},{"propertyName":"IdleFontSize"},{"propertyName":"HoverColor"},{"propertyName":"IdleColor"},{"propertyName":"ShouldEnableOutlineOnHover"},{"propertyName":"ShouldEnableShadowOnHover"}]}},{"description":"Change the text style when the button is hovered.","fullName":"Hover bitmap text style","helpPath":"","iconUrl":"","name":"BitmapTextStyleState","objectType":"BitmapText::BitmapTextObject","previewIconUrl":"","private":true,"eventsFunctions":[{"description":"Check if isHovered.","fullName":"IsHovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ isHovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","True",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"BitmapText::BitmapTextObject","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::BitmapTextStyleState","type":"behavior"}],"objectGroups":[]},{"description":"Change if isHovered.","fullName":"IsHovered","functionType":"Action","name":"SetIsHovered","sentence":"_PARAM0_ isHovered: _PARAM2_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","False",""]},{"type":{"value":"BooleanVariable"},"parameters":["Value","True",""]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["IsHovered","True",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["HoverColor","!=","\"\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["IdleColor","=","Object.Behavior::Color()"]},{"type":{"value":"BitmapText::SetTint"},"parameters":["Object","HoverColor"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::Or"},"parameters":[],"subInstructions":[{"type":{"value":"StringVariable"},"parameters":["HoverPrefix","!=","\"\""]},{"type":{"value":"StringVariable"},"parameters":["HoverSuffix","!=","\"\""]}]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["IdleText","=","Object.Text::Value()"]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Object","Text","=","HoverPrefix + Object.Text::Value() + HoverSuffix"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","True",""]},{"type":{"value":"BooleanVariable"},"parameters":["Value","False",""]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["IsHovered","False",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["HoverColor","!=","\"\""]}],"actions":[{"type":{"value":"BitmapText::SetTint"},"parameters":["Object","IdleColor"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::Or"},"parameters":[],"subInstructions":[{"type":{"value":"StringVariable"},"parameters":["HoverPrefix","!=","\"\""]},{"type":{"value":"StringVariable"},"parameters":["HoverSuffix","!=","\"\""]}]}],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Object","Text","=","IdleText"]}]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"BitmapText::BitmapTextObject","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::BitmapTextStyleState","type":"behavior"},{"defaultValue":"yes","description":"IsHovered","name":"Value","optional":true,"type":"yesorno"}],"objectGroups":[]},{"description":"Return the text color","fullName":"Text color","functionType":"StringExpression","name":"Color","private":true,"sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["/** @type {gdjs.BitmapTextRuntimeObject} */","const object = eventsFunctionContext.getObjects(\"Object\")[0];","","eventsFunctionContext.returnValue = object._tint.join(\";\");"],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":true}],"expressionType":{"type":"color"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"BitmapText::BitmapTextObject","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::BitmapTextStyleState","type":"behavior"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"IsHovered"},{"functionName":"SetIsHovered"},{"functionName":"Color"}]},"propertyDescriptors":[{"value":"","type":"Color","label":"Hover color","name":"HoverColor"},{"value":"","type":"String","label":"Hover prefix","name":"HoverPrefix"},{"value":"","type":"String","label":"Hover suffix","name":"HoverSuffix"},{"value":"","type":"Boolean","label":"","hidden":true,"name":"IsHovered"},{"value":"","type":"String","label":"Idle text","hidden":true,"name":"IdleText"},{"value":"","type":"Color","label":"Idle color","hidden":true,"name":"IdleColor"}],"propertiesFolderStructure":{"folderName":"__ROOT","children":[{"propertyName":"IsHovered"},{"propertyName":"HoverPrefix"},{"propertyName":"HoverSuffix"},{"propertyName":"IdleText"},{"propertyName":"HoverColor"},{"propertyName":"IdleColor"}]}}],"eventsBasedObjects":[{"areaMaxX":256,"areaMaxY":64,"areaMaxZ":64,"areaMinX":0,"areaMinY":0,"areaMinZ":0,"assetStoreTag":"menu buttons","defaultName":"Button","description":"Button with a label.","fullName":"Labeled button","helpPath":"","iconUrl":"","isInnerAreaFollowingParentSize":true,"isUsingLegacyInstancesRenderer":false,"name":"PanelSpriteButton","previewIconUrl":"","objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"Label","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":4.0,"topEdgeAnchor":4.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"useLegacyBottomAndRightAnchors":false},{"name":"TextStyleState","type":"PanelSpriteButton::TextStyleState","ShouldEnableOutlineOnHover":false,"HoverColor":"","ShouldEnableShadowOnHover":false,"HoverFontSize":0.0,"IsHovered":false,"IdleFontSize":0.0,"IdleColor":""}],"string":"Text","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"center","verticalTextAlignment":"center","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Idle","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[{"folded":true,"name":"State","type":"string","value":"Idle"}],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false},{"name":"ButtonFSM","type":"PanelSpriteButton::ButtonFSM","ShouldCheckHovering":true}]},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Hovered","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false},{"name":"Tween","type":"Tween::TweenBehavior"}]},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Pressed","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false}]},{"assetStoreId":"","name":"BitmapLabel","type":"BitmapText::BitmapTextObject","variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":4.0,"topEdgeAnchor":4.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"useLegacyBottomAndRightAnchors":false},{"name":"BitmapTextStyleState","type":"PanelSpriteButton::BitmapTextStyleState","HoverColor":"","HoverPrefix":"","HoverSuffix":"","IsHovered":false,"IdleText":"","IdleColor":""}],"content":{"text":"Text","opacity":255.0,"scale":1.0,"fontSize":20.0,"tint":"255;255;255","bitmapFontResourceName":"","textureAtlasResourceName":"","align":"center","verticalTextAlignment":"center"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"Label"},{"objectName":"BitmapLabel"},{"objectName":"Idle"},{"objectName":"Hovered"},{"objectName":"Pressed"}]},"objectsGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]},{"name":"Labels","objects":[{"name":"Label"},{"name":"BitmapLabel"}]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[]}],"instances":[{"angle":0.0,"customSize":true,"depth":1.0,"height":64.0,"layer":"","name":"Idle","persistentUuid":"24882334-eec8-403e-8bf1-70fc928a46e6","width":256.0,"x":0.0,"y":0.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":1.0,"height":64.0,"layer":"","name":"Label","persistentUuid":"3b29c95c-5363-4e25-bf47-eecf13e8a226","width":256.0,"x":0.0,"y":32.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"editionSettings":{"grid":false,"gridType":"rectangular","gridWidth":32.0,"gridHeight":32.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":false,"zoomFactor":2.734375,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"eventsFunctions":[{"fullName":"","functionType":"Action","name":"onCreated","sentence":"","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Create one background instance for of each state.\nOnly the instance for the current state is shown."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"Create"},"parameters":["","Hovered","0","0",""]},{"type":{"value":"Create"},"parameters":["","Pressed","0","0",""]},{"type":{"value":"ResizableCapability::ResizableBehavior::SetSize"},"parameters":["Hovered","Resizable","Idle.Width()","Idle.Height()"]},{"type":{"value":"ResizableCapability::ResizableBehavior::SetSize"},"parameters":["Pressed","Resizable","Idle.Width()","Idle.Height()"]},{"type":{"value":"Hide"},"parameters":["Hovered"]},{"type":{"value":"Hide"},"parameters":["Pressed"]},{"type":{"value":"SetZOrder"},"parameters":["Hovered","=","1"]},{"type":{"value":"SetZOrder"},"parameters":["Pressed","=","1"]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Labels","Text","=","LabelText"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]}]},{"fullName":"","functionType":"Action","name":"onHotReloading","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsPressed"},"parameters":["Object",""]}],"actions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","PressedLabelOffsetY",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Labels","Text","=","LabelText"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"fullName":"","functionType":"Action","name":"doStepPostEvents","sentence":"","events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Apply states","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Show the right background accordingly to the new state."},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsIdle"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"PanelSpriteButton::TextStyleState::SetIsHovered"},"parameters":["Label","TextStyleState","no",""]},{"type":{"value":"PanelSpriteButton::BitmapTextStyleState::SetIsHovered"},"parameters":["BitmapLabel","BitmapTextStyleState","no",""]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","0",""]},{"type":{"value":"Show"},"parameters":["Idle",""]},{"type":{"value":"Hide"},"parameters":["Pressed"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"Visible"},"parameters":["Hovered"]},{"type":{"value":"NumberVariable"},"parameters":["HoveredFadeOutDuration",">","0"]}],"actions":[{"type":{"value":"Tween::TweenBehavior::AddObjectOpacityTween2"},"parameters":["Hovered","Tween","\"Fadeout\"","0","\"linear\"","HoveredFadeOutDuration",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["HoveredFadeOutDuration","=","0"]}],"actions":[{"type":{"value":"Hide"},"parameters":["Hovered"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"OpacityCapability::OpacityBehavior::Value"},"parameters":["Hovered","Opacity","=","0"]}],"actions":[{"type":{"value":"Hide"},"parameters":["Hovered"]},{"type":{"value":"OpacityCapability::OpacityBehavior::SetValue"},"parameters":["Hovered","Opacity","=","255"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsHovered"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"PanelSpriteButton::TextStyleState::SetIsHovered"},"parameters":["Label","TextStyleState","",""]},{"type":{"value":"PanelSpriteButton::BitmapTextStyleState::SetIsHovered"},"parameters":["BitmapLabel","BitmapTextStyleState","yes",""]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","0",""]},{"type":{"value":"Hide"},"parameters":["Idle"]},{"type":{"value":"Show"},"parameters":["Hovered",""]},{"type":{"value":"Hide"},"parameters":["Pressed"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["HoveredFadeOutDuration",">","0"]}],"actions":[{"type":{"value":"Tween::RemoveTween"},"parameters":["Hovered","Tween","\"Fadeout\""]},{"type":{"value":"OpacityCapability::OpacityBehavior::SetValue"},"parameters":["Hovered","Opacity","=","255"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsPressed"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"PanelSpriteButton::TextStyleState::SetIsHovered"},"parameters":["Label","TextStyleState","no",""]},{"type":{"value":"PanelSpriteButton::BitmapTextStyleState::SetIsHovered"},"parameters":["BitmapLabel","BitmapTextStyleState","no",""]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","PressedLabelOffsetY",""]},{"type":{"value":"Hide"},"parameters":["Idle"]},{"type":{"value":"Hide"},"parameters":["Hovered"]},{"type":{"value":"Show"},"parameters":["Pressed",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsFocused"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"PanelSpriteButton::TextStyleState::SetIsHovered"},"parameters":["Label","TextStyleState","yes",""]},{"type":{"value":"PanelSpriteButton::BitmapTextStyleState::SetIsHovered"},"parameters":["BitmapLabel","BitmapTextStyleState","yes",""]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","0",""]},{"type":{"value":"Hide"},"parameters":["Idle"]},{"type":{"value":"Show"},"parameters":["Hovered",""]},{"type":{"value":"Hide"},"parameters":["Pressed"]}]}],"parameters":[]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button is not used.","fullName":"Is idle","functionType":"Condition","name":"IsIdle","sentence":"_PARAM0_ is idle","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsIdle"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button was just clicked.","fullName":"Is clicked","functionType":"Condition","name":"IsClicked","sentence":"_PARAM0_ is clicked","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsClicked"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the cursor is hovered over the button.","fullName":"Is hovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ is hovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsHovered"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button is either hovered or pressed but not hovered.","fullName":"Is focused","functionType":"Condition","name":"IsFocused","sentence":"_PARAM0_ is focused","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsFocused"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed with mouse or touch.","fullName":"Is pressed","functionType":"Condition","name":"IsPressed","sentence":"_PARAM0_ is pressed","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsPressed"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Change the text of the button label.","fullName":"Label text","functionType":"Action","name":"SetLabelText","private":true,"sentence":"Change the text of _PARAM0_ to _PARAM1_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Labels","Text","=","Value"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"},{"description":"Text","name":"Value","type":"string"}],"objectGroups":[]},{"fullName":"","functionType":"ActionWithOperator","getterName":"LabelText","name":"SetLabelTextOp","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Labels","Text","=","Value"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"the label text.","fullName":"Label text","functionType":"ExpressionAndCondition","name":"LabelText","sentence":"the label text","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnString"},"parameters":["Labels.Text::Value()"]}]}],"expressionType":{"type":"string"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"De/activate interactions with the button.","fullName":"De/activate interactions","functionType":"Action","name":"Activate","sentence":"Activate interactions with _PARAM0_: _PARAM1_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldActivate","True",""]}],"actions":[{"type":{"value":"ActivateBehavior"},"parameters":["Idle","ButtonFSM","yes"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"BooleanVariable"},"parameters":["ShouldActivate","True",""]}],"actions":[{"type":{"value":"ActivateBehavior"},"parameters":["Idle","ButtonFSM","no"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"},{"description":"Activate","name":"ShouldActivate","type":"yesorno"}],"objectGroups":[]},{"description":"Check if interactions are activated on the button.","fullName":"Interactions activated","functionType":"Condition","name":"IsActivated","sentence":"Interactions on _PARAM0_ are activated","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BehaviorActivated"},"parameters":["Idle","ButtonFSM"]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"the labelOffset of the object.","fullName":"LabelOffset","functionType":"ExpressionAndCondition","name":"LabelOffset","private":true,"sentence":"the labelOffset","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["LabelOffset"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"fullName":"","functionType":"ActionWithOperator","getterName":"LabelOffset","name":"SetLabelOffset","private":true,"sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetCenterY"},"parameters":["Labels","+","Value - LabelOffset"]},{"type":{"value":"SetNumberVariable"},"parameters":["LabelOffset","=","Value"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"onCreated"},{"functionName":"onHotReloading"},{"functionName":"doStepPostEvents"},{"functionName":"IsIdle"},{"functionName":"IsClicked"},{"functionName":"IsHovered"},{"functionName":"IsFocused"},{"functionName":"IsPressed"},{"functionName":"SetLabelText"},{"functionName":"SetLabelTextOp"},{"functionName":"LabelText"},{"functionName":"Activate"},{"functionName":"IsActivated"},{"functionName":"LabelOffset"},{"functionName":"SetLabelOffset"}]},"propertyDescriptors":[{"value":"","type":"MultilineString","label":"Label","name":"LabelText"},{"value":"0.25","type":"Number","unit":"Second","label":"Hovered fade out duration","group":"States","name":"HoveredFadeOutDuration"},{"value":"0","type":"Number","unit":"Pixel","label":"Label offset on Y axis when pressed","group":"States","name":"PressedLabelOffsetY"},{"value":"0","type":"Number","unit":"Pixel","label":"","group":"States","hidden":true,"name":"LabelOffset"},{"value":"","type":"Choice","label":"","choices":[{"label":"Label.Text=LabelText","value":"Label.Text=LabelText"},{"label":"BitmapLabel.Text=LabelText","value":"BitmapLabel.Text=LabelText"}],"hidden":true,"name":"_PropertyMapping"}],"propertiesFolderStructure":{"folderName":"__ROOT","children":[{"propertyName":"LabelText"},{"propertyName":"_PropertyMapping"},{"folderName":"States","children":[{"propertyName":"HoveredFadeOutDuration"},{"propertyName":"PressedLabelOffsetY"},{"propertyName":"LabelOffset"}]}]},"variants":[{"areaMaxX":128,"areaMaxY":48,"areaMaxZ":64,"areaMinX":0,"areaMinY":0,"areaMinZ":0,"assetStoreAssetId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","assetStoreOriginalName":"Small Blue Button","name":"Small Blue Button","objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"Label","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":4.0,"topEdgeAnchor":4.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"useLegacyBottomAndRightAnchors":false},{"name":"TextStyleState","type":"PanelSpriteButton::TextStyleState","ShouldEnableOutlineOnHover":false,"HoverColor":"","ShouldEnableShadowOnHover":false,"HoverFontSize":0.0,"IsHovered":false,"IdleFontSize":0.0,"IdleColor":""}],"string":"Text","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"center","verticalTextAlignment":"center","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bottomMargin":5.0,"height":32.0,"leftMargin":3.0,"name":"Idle","rightMargin":3.0,"texture":"assets\\Small Blue Button_Idle.png","tiled":false,"topMargin":3.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[{"folded":true,"name":"State","type":"string","value":"Idle"}],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false},{"name":"ButtonFSM","type":"PanelSpriteButton::ButtonFSM","ShouldCheckHovering":true}]},{"assetStoreId":"","bottomMargin":5.0,"height":32.0,"leftMargin":3.0,"name":"Hovered","rightMargin":3.0,"texture":"assets\\Small Blue Button_Hovered.png","tiled":false,"topMargin":3.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false},{"name":"Tween","type":"Tween::TweenBehavior"}]},{"assetStoreId":"","bottomMargin":3.0,"height":32.0,"leftMargin":3.0,"name":"Pressed","rightMargin":3.0,"texture":"assets\\Small Blue Button_Pressed.png","tiled":false,"topMargin":3.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false}]},{"assetStoreId":"","name":"BitmapLabel","type":"BitmapText::BitmapTextObject","variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":4.0,"topEdgeAnchor":4.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"useLegacyBottomAndRightAnchors":false},{"name":"BitmapTextStyleState","type":"PanelSpriteButton::BitmapTextStyleState","HoverColor":"","HoverPrefix":"","HoverSuffix":"","IsHovered":false,"IdleText":"","IdleColor":""}],"content":{"text":"Button","opacity":255.0,"scale":1.0,"fontSize":20.0,"tint":"255;255;255","bitmapFontResourceName":"assets\\8BitOperatorPlus8Regular_Edited.fnt","textureAtlasResourceName":"assets\\8BitOperatorPlus8Regular_Edited.png","align":"center","verticalTextAlignment":"center"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"Label"},{"objectName":"BitmapLabel"},{"objectName":"Idle"},{"objectName":"Hovered"},{"objectName":"Pressed"}]},"objectsGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]},{"name":"Labels","objects":[{"name":"Label"},{"name":"BitmapLabel"}]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[]}],"instances":[{"angle":0.0,"customSize":true,"depth":1.0,"height":48.0,"layer":"","name":"Idle","persistentUuid":"24882334-eec8-403e-8bf1-70fc928a46e6","width":128.0,"x":0.0,"y":0.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":1.0,"height":48.0,"keepRatio":true,"layer":"","name":"BitmapLabel","persistentUuid":"c3c3200d-dec4-4ac4-9dc5-4715d8989830","width":128.0,"x":5.0,"y":26.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"editionSettings":[]}]}]},{"author":"DrZanuff","category":"Advanced","dimension":"","extensionNamespace":"","fullName":"Hash","gdevelopVersion":">=5.5.222","helpPath":"","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz4NCgk8cGF0aCBkPSJNMjcsMTFoLTFWN2MwLDAsMCwwLDAtMC4xYzAtMC4xLDAtMC4yLTAuMS0wLjNjMCwwLDAtMC4xLDAtMC4xYzAtMC4xLTAuMS0wLjItMC4yLTAuM2MwLDAsMCwwLDAsMGwtNi02YzAsMCwwLDAsMCwwDQoJCWMwLDAsMCwwLDAsMGMwLDAsMCwwLDAsMEMxOS41LDAuMSwxOS4zLDAsMTksMEg3QzYuNCwwLDYsMC40LDYsMXYxMEg1Yy0xLjcsMC0zLDEuMy0zLDN2NmMwLDAuNiwwLjQsMSwxLDFoM3Y2YzAsMC42LDAuNCwxLDEsMQ0KCQlzMS0wLjQsMS0xdi02aDR2NGMwLDAuNiwwLjQsMSwxLDFzMS0wLjQsMS0xdi00aDd2M2MwLDAuNiwwLjQsMSwxLDFzMS0wLjQsMS0xdi0zaDF2NmMwLDAuNiwwLjQsMSwxLDFzMS0wLjQsMS0xdi02aDMNCgkJYzAuNiwwLDEtMC40LDEtMXYtNkMzMCwxMi4zLDI4LjcsMTEsMjcsMTF6IE0yMiwxN2gtM2MtMC42LDAtMS0wLjQtMS0xczAuNC0xLDEtMWgzYzAuNiwwLDEsMC40LDEsMVMyMi42LDE3LDIyLDE3eiBNOCwxMVYyaDEwdjUNCgkJYzAsMC42LDAuNCwxLDEsMWg1djNIOHogTTI1LjcsMTYuN0MyNS41LDE2LjksMjUuMywxNywyNSwxN2MtMC4zLDAtMC41LTAuMS0wLjctMC4zQzI0LjEsMTYuNSwyNCwxNi4zLDI0LDE2DQoJCWMwLTAuMywwLjEtMC41LDAuMy0wLjdjMC40LTAuNCwxLTAuNCwxLjQsMGMwLjIsMC4yLDAuMywwLjQsMC4zLDAuN0MyNiwxNi4zLDI1LjksMTYuNSwyNS43LDE2Ljd6Ii8+DQoJPHBhdGggZD0iTTE2LDIyYy0wLjYsMC0xLDAuNC0xLDF2NmMwLDAuNiwwLjQsMSwxLDFzMS0wLjQsMS0xdi02QzE3LDIyLjQsMTYuNiwyMiwxNiwyMnoiLz4NCgk8cGF0aCBkPSJNMTksMjZjLTAuNiwwLTEsMC40LTEsMXY0YzAsMC42LDAuNCwxLDEsMXMxLTAuNCwxLTF2LTRDMjAsMjYuNCwxOS42LDI2LDE5LDI2eiIvPg0KCTxwYXRoIGQ9Ik0xMCwyNGMtMC42LDAtMSwwLjQtMSwxdjZjMCwwLjYsMC40LDEsMSwxczEtMC40LDEtMXYtNkMxMSwyNC40LDEwLjYsMjQsMTAsMjR6Ii8+DQo8L2c+DQo8L3N2Zz4NCg==","name":"Hash","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/Glyphster Pack/Master/SVG/Security and Protection/Security and Protection_security_protection_delete_document_shredder.svg","shortDescription":"Hash strings using MD5 or SHA256 algorithms.","version":"1.0.0","description":"Adds expressions to allow hashing strings via MD5 or SHA256.","origin":{"identifier":"Hash","name":"gdevelop-extension-store"},"tags":["hash","md5","sha256"],"authorIds":[],"dependencies":[],"globalVariables":[],"sceneVariables":[],"eventsFunctions":[{"description":"Returns a Hash a MD5 based on a string.","fullName":"Hash a String with MD5","functionType":"StringExpression","name":"GenerateHashMD5","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["var MD5 = function (string) {",""," function RotateLeft(lValue, iShiftBits) {"," return (lValue<>>(32-iShiftBits));"," }",""," function AddUnsigned(lX,lY) {"," var lX4,lY4,lX8,lY8,lResult;"," lX8 = (lX & 0x80000000);"," lY8 = (lY & 0x80000000);"," lX4 = (lX & 0x40000000);"," lY4 = (lY & 0x40000000);"," lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF);"," if (lX4 & lY4) {"," return (lResult ^ 0x80000000 ^ lX8 ^ lY8);"," }"," if (lX4 | lY4) {"," if (lResult & 0x40000000) {"," return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);"," } else {"," return (lResult ^ 0x40000000 ^ lX8 ^ lY8);"," }"," } else {"," return (lResult ^ lX8 ^ lY8);"," }"," }",""," function F(x,y,z) { return (x & y) | ((~x) & z); }"," function G(x,y,z) { return (x & z) | (y & (~z)); }"," function H(x,y,z) { return (x ^ y ^ z); }"," function I(x,y,z) { return (y ^ (x | (~z))); }",""," function FF(a,b,c,d,x,s,ac) {"," a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));"," return AddUnsigned(RotateLeft(a, s), b);"," };",""," function GG(a,b,c,d,x,s,ac) {"," a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));"," return AddUnsigned(RotateLeft(a, s), b);"," };",""," function HH(a,b,c,d,x,s,ac) {"," a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));"," return AddUnsigned(RotateLeft(a, s), b);"," };",""," function II(a,b,c,d,x,s,ac) {"," a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));"," return AddUnsigned(RotateLeft(a, s), b);"," };",""," function ConvertToWordArray(string) {"," var lWordCount;"," var lMessageLength = string.length;"," var lNumberOfWords_temp1=lMessageLength + 8;"," var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1 % 64))/64;"," var lNumberOfWords = (lNumberOfWords_temp2+1)*16;"," var lWordArray=Array(lNumberOfWords-1);"," var lBytePosition = 0;"," var lByteCount = 0;"," while ( lByteCount < lMessageLength ) {"," lWordCount = (lByteCount-(lByteCount % 4))/4;"," lBytePosition = (lByteCount % 4)*8;"," lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount)<>>29;"," return lWordArray;"," };",""," function WordToHex(lValue) {"," var WordToHexValue=\"\",WordToHexValue_temp=\"\",lByte,lCount;"," for (lCount = 0;lCount<=3;lCount++) {"," lByte = (lValue>>>(lCount*8)) & 255;"," WordToHexValue_temp = \"0\" + lByte.toString(16);"," WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length-2,2);"," }"," return WordToHexValue;"," };",""," function Utf8Encode(string) {"," string = string.replace(/\\r\\n/g,\"\\n\");"," var utftext = \"\";",""," for (var n = 0; n < string.length; n++) {",""," var c = string.charCodeAt(n);",""," if (c < 128) {"," utftext += String.fromCharCode(c);"," }"," else if((c > 127) && (c < 2048)) {"," utftext += String.fromCharCode((c >> 6) | 192);"," utftext += String.fromCharCode((c & 63) | 128);"," }"," else {"," utftext += String.fromCharCode((c >> 12) | 224);"," utftext += String.fromCharCode(((c >> 6) & 63) | 128);"," utftext += String.fromCharCode((c & 63) | 128);"," }",""," }",""," return utftext;"," };",""," var x=Array();"," var k,AA,BB,CC,DD,a,b,c,d;"," var S11=7, S12=12, S13=17, S14=22;"," var S21=5, S22=9 , S23=14, S24=20;"," var S31=4, S32=11, S33=16, S34=23;"," var S41=6, S42=10, S43=15, S44=21;",""," string = Utf8Encode(string);",""," x = ConvertToWordArray(string);",""," a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;",""," for (k=0;k>> amount) | (value << (32 - amount));","\t};","","\tvar mathPow = Math.pow;","\tvar maxWord = mathPow(2, 32);","\tvar lengthProperty = 'length'","\tvar i, j; // Used as a counter across the whole file","\tvar result = ''","","\tvar words = [];","\tvar asciiBitLength = ascii[lengthProperty] * 8;","","\t//* caching results is optional - remove/add slash from front of this line to toggle","\t// Initial hash value: first 32 bits of the fractional parts of the square roots of the first 8 primes","\t// (we actually calculate the first 64, but extra values are just ignored)","\tvar hash = sha256.h = sha256.h || [];","\t// Round constants: first 32 bits of the fractional parts of the cube roots of the first 64 primes","\tvar k = sha256.k = sha256.k || [];","\tvar primeCounter = k[lengthProperty];","\t/*/","\tvar hash = [], k = [];","\tvar primeCounter = 0;","\t//*/","","\tvar isComposite = {};","\tfor (var candidate = 2; primeCounter < 64; candidate++) {","\t\tif (!isComposite[candidate]) {","\t\t\tfor (i = 0; i < 313; i += candidate) {","\t\t\t\tisComposite[i] = candidate;","\t\t\t}","\t\t\thash[primeCounter] = (mathPow(candidate, .5) * maxWord) | 0;","\t\t\tk[primeCounter++] = (mathPow(candidate, 1 / 3) * maxWord) | 0;","\t\t}","\t}","","\tascii += '\\x80' // Append Ƈ' bit (plus zero padding)","\twhile (ascii[lengthProperty] % 64 - 56) ascii += '\\x00' // More zero padding","\tfor (i = 0; i < ascii[lengthProperty]; i++) {","\t\tj = ascii.charCodeAt(i);","\t\tif (j >> 8) return; // ASCII check: only accept characters in range 0-255","\t\twords[i >> 2] |= j << ((3 - i) % 4) * 8;","\t}","\twords[words[lengthProperty]] = ((asciiBitLength / maxWord) | 0);","\twords[words[lengthProperty]] = (asciiBitLength)","","\t// process each chunk","\tfor (j = 0; j < words[lengthProperty];) {","\t\tvar w = words.slice(j, j += 16); // The message is expanded into 64 words as part of the iteration","\t\tvar oldHash = hash;","\t\t// This is now the undefinedworking hash\", often labelled as variables a...g","\t\t// (we have to truncate as well, otherwise extra entries at the end accumulate","\t\thash = hash.slice(0, 8);","","\t\tfor (i = 0; i < 64; i++) {","\t\t\tvar i2 = i + j;","\t\t\t// Expand the message into 64 words","\t\t\t// Used below if ","\t\t\tvar w15 = w[i - 15], w2 = w[i - 2];","","\t\t\t// Iterate","\t\t\tvar a = hash[0], e = hash[4];","\t\t\tvar temp1 = hash[7]","\t\t\t\t+ (rightRotate(e, 6) ^ rightRotate(e, 11) ^ rightRotate(e, 25)) // S1","\t\t\t\t+ ((e & hash[5]) ^ ((~e) & hash[6])) // ch","\t\t\t\t+ k[i]","\t\t\t\t// Expand the message schedule if needed","\t\t\t\t+ (w[i] = (i < 16) ? w[i] : (","\t\t\t\t\tw[i - 16]","\t\t\t\t\t+ (rightRotate(w15, 7) ^ rightRotate(w15, 18) ^ (w15 >>> 3)) // s0","\t\t\t\t\t+ w[i - 7]","\t\t\t\t\t+ (rightRotate(w2, 17) ^ rightRotate(w2, 19) ^ (w2 >>> 10)) // s1","\t\t\t\t) | 0","\t\t\t\t);","\t\t\t// This is only used once, so *could* be moved below, but it only saves 4 bytes and makes things unreadble","\t\t\tvar temp2 = (rightRotate(a, 2) ^ rightRotate(a, 13) ^ rightRotate(a, 22)) // S0","\t\t\t\t+ ((a & hash[1]) ^ (a & hash[2]) ^ (hash[1] & hash[2])); // maj","","\t\t\thash = [(temp1 + temp2) | 0].concat(hash); // We don't bother trimming off the extra ones, they're harmless as long as we're truncating when we do the slice()","\t\t\thash[4] = (hash[4] + temp1) | 0;","\t\t}","","\t\tfor (i = 0; i < 8; i++) {","\t\t\thash[i] = (hash[i] + oldHash[i]) | 0;","\t\t}","\t}","","\tfor (i = 0; i < 8; i++) {","\t\tfor (j = 3; j + 1; j--) {","\t\t\tvar b = (hash[i] >> (j * 8)) & 255;","\t\t\tresult += ((b < 16) ? 0 : '') + b.toString(16);","\t\t}","\t}","\treturn result;","};","","var param = eventsFunctionContext.getArgument(\"_str\").toString();","var result = sha256(param);","eventsFunctionContext.returnValue = result;",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"expressionType":{"type":"string"},"parameters":[{"description":"String to be hashed","name":"_str","type":"string"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"GenerateHashMD5"},{"functionName":"GenerateHashSHA256"}]},"eventsBasedBehaviors":[],"eventsBasedObjects":[]}],"externalLayouts":[]} \ No newline at end of file +{"firstLayout":"Login","gdVersion":{"build":275,"major":5,"minor":6,"revision":0},"initialGDVersion":"5.6.274","properties":{"adaptGameResolutionAtRuntime":true,"antialiasingMode":"MSAA","antialisingEnabledOnMobile":false,"folderProject":false,"orientation":"landscape","packageName":"com.example.gamename","pixelsRounding":true,"projectUuid":"95fbe47f-9217-4b08-9d51-4fe99f117474","scaleMode":"nearest","sizeOnStartupMode":"adaptWidth","templateSlug":"","version":"1.0.0","name":"MultiplayerTest01","description":"","author":"","windowWidth":1280,"windowHeight":720,"latestCompilationDirectory":"","maxFPS":60,"minFPS":20,"verticalSync":false,"platformSpecificAssets":{},"loadingScreen":{"backgroundColor":0,"backgroundFadeInDuration":0.2,"backgroundImageResourceName":"","gdevelopLogoStyle":"light","logoAndProgressFadeInDuration":0.2,"logoAndProgressLogoFadeInDelay":0.0,"minDuration":1.5,"progressBarColor":16777215,"progressBarHeight":20.0,"progressBarMaxWidth":200.0,"progressBarMinWidth":40.0,"progressBarWidthPercent":30.0,"showGDevelopSplash":true,"showProgressBar":true},"watermark":{"placement":"bottom-left","showWatermark":true},"authorIds":[],"authorUsernames":[],"categories":[],"playableDevices":[],"extensionProperties":[],"platforms":[{"name":"GDevelop JS platform"}],"currentPlatform":"GDevelop JS platform"},"resources":{"resources":[{"file":"assets/8BitOperatorPlus8Regular_Edited.png","kind":"image","metadata":"","name":"assets\\8BitOperatorPlus8Regular_Edited.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/15c1797cbcb41c3a753b6bbb21cfa60284cfaf81c9891c3abf78a8e0e1cacf59_8BitOperatorPlus8Regular_Edited.png","name":"8BitOperatorPlus8Regular_Edited.png"}},{"file":"assets/Small Blue Button_Hovered.png","kind":"image","metadata":"","name":"assets\\Small Blue Button_Hovered.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/f80ae062891a0a4612c0160ed931165461392019f89a8545f28c195f645ebc48_Small Blue Button_Hovered.png","name":"Small Blue Button_Hovered.png"}},{"file":"assets/Small Blue Button_Idle.png","kind":"image","metadata":"","name":"assets\\Small Blue Button_Idle.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/c22b15c77047f1545806141e1129900bdc985d191b7ab5ebaae834a90c270ed2_Small Blue Button_Idle.png","name":"Small Blue Button_Idle.png"}},{"file":"assets/Small Blue Button_Pressed.png","kind":"image","metadata":"","name":"assets\\Small Blue Button_Pressed.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/9e01b09016c6a200b53a55cac3cf34f083785eb6b9f55de490a71ad352858b36_Small Blue Button_Pressed.png","name":"Small Blue Button_Pressed.png"}},{"file":"assets/8BitOperatorPlus8Regular_Edited.fnt","kind":"bitmapFont","metadata":"","name":"assets\\8BitOperatorPlus8Regular_Edited.fnt","userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Menu buttons/Pixel art/6b410f07a3a02e721a49d41795e84b56707ef28ac4d095d55f1fd1093760e134_8BitOperatorPlus8Regular_Edited.fnt","name":"8BitOperatorPlus8Regular_Edited.fnt"}},{"file":"assets/NewSprite.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"NewSprite","smoothed":false,"userAdded":false},{"file":"assets/NewSprite2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"NewSprite2","smoothed":false,"userAdded":false},{"file":"assets/NewSprite3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"NewSprite3","smoothed":false,"userAdded":false},{"file":"assets/01Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Down","smoothed":false,"userAdded":false},{"file":"assets/01Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Down2","smoothed":false,"userAdded":false},{"file":"assets/01Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Down3","smoothed":false,"userAdded":false},{"file":"assets/01Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Down4","smoothed":false,"userAdded":false},{"file":"assets/01Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Left","smoothed":false,"userAdded":false},{"file":"assets/01Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Left2","smoothed":false,"userAdded":false},{"file":"assets/01Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Left3","smoothed":false,"userAdded":false},{"file":"assets/01Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Left4","smoothed":false,"userAdded":false},{"file":"assets/01Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Up","smoothed":false,"userAdded":false},{"file":"assets/01Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Up2","smoothed":false,"userAdded":false},{"file":"assets/01Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Up3","smoothed":false,"userAdded":false},{"file":"assets/01Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Up4","smoothed":false,"userAdded":false},{"file":"assets/02Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Down","smoothed":false,"userAdded":false},{"file":"assets/02Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Down2","smoothed":false,"userAdded":false},{"file":"assets/02Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Down3","smoothed":false,"userAdded":false},{"file":"assets/02Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Down4","smoothed":false,"userAdded":false},{"file":"assets/02Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Left","smoothed":false,"userAdded":false},{"file":"assets/02Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Left2","smoothed":false,"userAdded":false},{"file":"assets/02Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Left3","smoothed":false,"userAdded":false},{"file":"assets/02Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Left4","smoothed":false,"userAdded":false},{"file":"assets/02Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Up","smoothed":false,"userAdded":false},{"file":"assets/02Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Up2","smoothed":false,"userAdded":false},{"file":"assets/02Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Up3","smoothed":false,"userAdded":false},{"file":"assets/02Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Up4","smoothed":false,"userAdded":false},{"file":"assets/03Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Down","smoothed":false,"userAdded":false},{"file":"assets/03Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Down2","smoothed":false,"userAdded":false},{"file":"assets/03Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Down3","smoothed":false,"userAdded":false},{"file":"assets/03Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Down4","smoothed":false,"userAdded":false},{"file":"assets/03Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Left","smoothed":false,"userAdded":false},{"file":"assets/03Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Left2","smoothed":false,"userAdded":false},{"file":"assets/03Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Left3","smoothed":false,"userAdded":false},{"file":"assets/03Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Left4","smoothed":false,"userAdded":false},{"file":"assets/03Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Up","smoothed":false,"userAdded":false},{"file":"assets/03Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Up2","smoothed":false,"userAdded":false},{"file":"assets/03Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Up3","smoothed":false,"userAdded":false},{"file":"assets/03Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Up4","smoothed":false,"userAdded":false},{"file":"assets/04Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Down","smoothed":false,"userAdded":false},{"file":"assets/04Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Down2","smoothed":false,"userAdded":false},{"file":"assets/04Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Down3","smoothed":false,"userAdded":false},{"file":"assets/04Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Down4","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite2","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite3","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite4","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite5.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite5","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite6.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite6","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite7.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite7","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite8.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite8","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite9.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite9","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite10.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite10","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite11.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite11","smoothed":false,"userAdded":false},{"file":"assets/spr_playerSprite12.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"spr_playerSprite12","smoothed":false,"userAdded":false},{"file":"assets/05Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Left","smoothed":false,"userAdded":false},{"file":"assets/05Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Left2","smoothed":false,"userAdded":false},{"file":"assets/05Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Left3","smoothed":false,"userAdded":false},{"file":"assets/05Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Left4","smoothed":false,"userAdded":false},{"file":"assets/05Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Up","smoothed":false,"userAdded":false},{"file":"assets/05Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Up2","smoothed":false,"userAdded":false},{"file":"assets/05Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Up3","smoothed":false,"userAdded":false},{"file":"assets/05Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Up4","smoothed":false,"userAdded":false},{"file":"assets/06Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Down","smoothed":false,"userAdded":false},{"file":"assets/06Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Down2","smoothed":false,"userAdded":false},{"file":"assets/06Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Down3","smoothed":false,"userAdded":false},{"file":"assets/06Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Down4","smoothed":false,"userAdded":false},{"file":"assets/06Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Left","smoothed":false,"userAdded":false},{"file":"assets/06Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Left2","smoothed":false,"userAdded":false},{"file":"assets/06Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Left3","smoothed":false,"userAdded":false},{"file":"assets/06Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Left4","smoothed":false,"userAdded":false},{"file":"assets/06Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Up","smoothed":false,"userAdded":false},{"file":"assets/06Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Up2","smoothed":false,"userAdded":false},{"file":"assets/06Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Up3","smoothed":false,"userAdded":false},{"file":"assets/06Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Up4","smoothed":false,"userAdded":false},{"file":"assets/07Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Down","smoothed":false,"userAdded":false},{"file":"assets/07Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Down2","smoothed":false,"userAdded":false},{"file":"assets/07Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Down3","smoothed":false,"userAdded":false},{"file":"assets/07Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Down4","smoothed":false,"userAdded":false},{"file":"assets/07Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Left","smoothed":false,"userAdded":false},{"file":"assets/07Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Left2","smoothed":false,"userAdded":false},{"file":"assets/07Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Left3","smoothed":false,"userAdded":false},{"file":"assets/07Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Left4","smoothed":false,"userAdded":false},{"file":"assets/07Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Up","smoothed":false,"userAdded":false},{"file":"assets/07Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Up2","smoothed":false,"userAdded":false},{"file":"assets/07Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Up3","smoothed":false,"userAdded":false},{"file":"assets/07Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Up4","smoothed":false,"userAdded":false},{"file":"assets/08Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Down","smoothed":false,"userAdded":false},{"file":"assets/08Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Down2","smoothed":false,"userAdded":false},{"file":"assets/08Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Down3","smoothed":false,"userAdded":false},{"file":"assets/08Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Down4","smoothed":false,"userAdded":false},{"file":"assets/08Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Left","smoothed":false,"userAdded":false},{"file":"assets/08Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Left2","smoothed":false,"userAdded":false},{"file":"assets/08Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Left3","smoothed":false,"userAdded":false},{"file":"assets/08Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Left4","smoothed":false,"userAdded":false},{"file":"assets/08Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Up","smoothed":false,"userAdded":false},{"file":"assets/08Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Up2","smoothed":false,"userAdded":false},{"file":"assets/08Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Up3","smoothed":false,"userAdded":false},{"file":"assets/08Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Up4","smoothed":false,"userAdded":false},{"file":"assets/09Down.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Down","smoothed":false,"userAdded":false},{"file":"assets/09Down2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Down2","smoothed":false,"userAdded":false},{"file":"assets/09Down3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Down3","smoothed":false,"userAdded":false},{"file":"assets/09Down4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Down4","smoothed":false,"userAdded":false},{"file":"assets/09Left.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Left","smoothed":false,"userAdded":false},{"file":"assets/09Left2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Left2","smoothed":false,"userAdded":false},{"file":"assets/09Left3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Left3","smoothed":false,"userAdded":false},{"file":"assets/09Left4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Left4","smoothed":false,"userAdded":false},{"file":"assets/09Up.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Up","smoothed":false,"userAdded":false},{"file":"assets/09Up2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Up2","smoothed":false,"userAdded":false},{"file":"assets/09Up3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Up3","smoothed":false,"userAdded":false},{"file":"assets/09Up4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Up4","smoothed":false,"userAdded":false},{"file":"assets/01Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Right","smoothed":false,"userAdded":false},{"file":"assets/01Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Right2","smoothed":false,"userAdded":false},{"file":"assets/01Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Right3","smoothed":false,"userAdded":false},{"file":"assets/01Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"01Right4","smoothed":false,"userAdded":false},{"file":"assets/06Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Right","smoothed":false,"userAdded":false},{"file":"assets/06Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Right2","smoothed":false,"userAdded":false},{"file":"assets/06Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Right3","smoothed":false,"userAdded":false},{"file":"assets/06Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"06Right4","smoothed":false,"userAdded":false},{"file":"assets/02Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Right","smoothed":false,"userAdded":false},{"file":"assets/02Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Right2","smoothed":false,"userAdded":false},{"file":"assets/02Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Right3","smoothed":false,"userAdded":false},{"file":"assets/02Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"02Right4","smoothed":false,"userAdded":false},{"file":"assets/08Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Right","smoothed":false,"userAdded":false},{"file":"assets/08Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Right2","smoothed":false,"userAdded":false},{"file":"assets/08Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Right3","smoothed":false,"userAdded":false},{"file":"assets/08Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"08Right4","smoothed":false,"userAdded":false},{"file":"assets/09Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Right","smoothed":false,"userAdded":false},{"file":"assets/09Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Right2","smoothed":false,"userAdded":false},{"file":"assets/09Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Right3","smoothed":false,"userAdded":false},{"file":"assets/09Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"09Right4","smoothed":false,"userAdded":false},{"file":"assets/07Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Right","smoothed":false,"userAdded":false},{"file":"assets/07Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Right2","smoothed":false,"userAdded":false},{"file":"assets/07Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Right3","smoothed":false,"userAdded":false},{"file":"assets/07Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"07Right4","smoothed":false,"userAdded":false},{"file":"assets/03Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Right","smoothed":false,"userAdded":false},{"file":"assets/03Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Right2","smoothed":false,"userAdded":false},{"file":"assets/03Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Right3","smoothed":false,"userAdded":false},{"file":"assets/03Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"03Right4","smoothed":false,"userAdded":false},{"file":"assets/05Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Right","smoothed":false,"userAdded":false},{"file":"assets/05Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Right2","smoothed":false,"userAdded":false},{"file":"assets/05Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Right3","smoothed":false,"userAdded":false},{"file":"assets/05Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"05Right4","smoothed":false,"userAdded":false},{"file":"assets/04Right.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Right","smoothed":false,"userAdded":false},{"file":"assets/04Right2.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Right2","smoothed":false,"userAdded":false},{"file":"assets/04Right3.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Right3","smoothed":false,"userAdded":false},{"file":"assets/04Right4.png","kind":"image","metadata":"{\"extension\":\".png\"}","name":"04Right4","smoothed":false,"userAdded":false}]},"objects":[{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_door","persistentUuid":"8b7cf3ce-40c8-4a17-925a-0c70b66838a4","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"var_doorway","persistentUuid":"06f73534-50b8-404f-9883-0d70149713d7","type":"string","value":"000001"}],"effects":[],"behaviors":[],"animations":[{"name":"NewSprite","useMultipleDirections":false,"directions":[{"looping":false,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":true,"image":"NewSprite3","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":4.0,"y":3.0},{"x":62.0,"y":3.0},{"x":62.0,"y":60.0},{"x":4.0,"y":60.0}]]}]}]}]},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Logout","persistentUuid":"c920ea77-7ccf-456f-aabb-496c1250d6f1","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Log Out","PressedLabelOffsetY":2.0}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Fullscreen","persistentUuid":"56fd8b1d-175c-4840-97fe-f76e7d829e9f","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"[ ]","PressedLabelOffsetY":2.0}},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_player","persistentUuid":"c2a0fb02-74f2-4a31-98f4-1ce55e4d3546","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"player_id","persistentUuid":"52d53b6f-730f-4ea4-a079-26352cdea24e","type":"string","value":"1"}],"effects":[],"behaviors":[{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior","acceleration":99999.0,"allowDiagonals":false,"angleOffset":0.0,"angularMaxSpeed":180.0,"customIsometryAngle":30.0,"deceleration":99999.0,"ignoreDefaultControls":false,"maxSpeed":75.0,"movementAngleOffset":0.0,"rotateObject":false,"useLegacyTurnBack":false,"viewpoint":"TopDown"}],"animations":[{"name":"1Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite5","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite6","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite7","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite8","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite9","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite10","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite11","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite12","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_otherPlayers","persistentUuid":"8c26a28f-d758-47a6-80e3-492e934aef8d","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"player_id","persistentUuid":"46108188-b219-4240-aaac-982e645b6ab0","type":"number","value":0.0}],"effects":[],"behaviors":[{"ignoreDefaultControls":true,"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior","acceleration":99999.0,"allowDiagonals":false,"angleOffset":0.0,"angularMaxSpeed":180.0,"customIsometryAngle":30.0,"deceleration":99999.0,"maxSpeed":75.0,"movementAngleOffset":0.0,"rotateObject":false,"useLegacyTurnBack":false,"viewpoint":"TopDown"}],"animations":[{"name":"1Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite5","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite6","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite7","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite8","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite9","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite10","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite11","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite12","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]}]}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"spr_door"},{"objectName":"btn_Logout"},{"objectName":"btn_Fullscreen"},{"objectName":"spr_player"},{"objectName":"spr_otherPlayers"}]},"objectsGroups":[],"variables":[{"name":"var_playerInfo","persistentUuid":"1fb97af7-5f6a-4907-9164-628713a29d54","type":"structure","children":[]},{"name":"var_jsonAddress","persistentUuid":"78b897a8-e843-4a0c-be02-63ddb7f70eae","type":"string","value":"http://192.168.3.250:3000"},{"name":"var_mqttAddress","persistentUuid":"0048bbcb-0ca6-4b6e-a90e-be2218ce7a47","type":"string","value":"192.168.3.250:9001"},{"name":"var_RTC","persistentUuid":"1ba271fb-6df8-4662-8e0c-d6554e2702c9","type":"structure","children":[]},{"name":"var_date","persistentUuid":"7a18cea8-1a20-46d8-a276-77880277c26a","type":"number","value":0.0},{"name":"var_lastDirection","persistentUuid":"bed71a05-848a-4643-81a2-c09d7d044b37","type":"string","value":""}],"layouts":[{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Login","name":"Login","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.8416428125373118,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_username","persistentUuid":"43ebc160-5d2f-4769-8bab-6f2b03b0006b","type":"string","value":""},{"name":"var_password","persistentUuid":"714571eb-af1a-4f97-aead-d7b9f5de9afb","type":"string","value":""},{"name":"var_jsonReply","persistentUuid":"2898cef6-8fdf-4718-bf6b-1cdb5e030acb","type":"string","value":""},{"name":"var_jsonParse","persistentUuid":"5b1b0b96-6ef9-411f-bc42-b287f548f2b6","type":"structure","children":[]},{"name":"var_passwordHash","persistentUuid":"1cbf470d-a6da-4267-a060-87738afd570e","type":"string","value":""}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_Username","persistentUuid":"632731bc-b1bd-4383-9acd-12cd653efcdf","width":0.0,"x":480.0,"y":192.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_Password","persistentUuid":"44c2f0bc-a292-45be-8cf5-c4d8893b1ed3","width":0.0,"x":480.0,"y":288.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_Login","persistentUuid":"b3d700fe-d3d1-4e3c-8961-1305b2ae4168","width":0.0,"x":560.0,"y":384.0,"zOrder":3,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_Register","persistentUuid":"9b8441ec-dfee-4296-bdd5-6e1b0425d56d","width":0.0,"x":560.0,"y":480.0,"zOrder":4,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_lblServerStatus","persistentUuid":"2b11514e-c2b0-4bbe-b292-93c3240449d2","width":0.0,"x":32.0,"y":640.0,"zOrder":5,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_lblMQTTStatus","persistentUuid":"c02d52f2-3e7a-45ec-ab25-e274a2aba45b","width":0.0,"x":32.0,"y":672.0,"zOrder":6,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_ServerStatus","persistentUuid":"178406cc-fe38-44d9-ab83-fac3479e6cba","width":0.0,"x":112.0,"y":640.0,"zOrder":7,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_MQTTStatus","persistentUuid":"c4ecc711-8ead-4310-b1b4-4e528d66eab6","width":0.0,"x":112.0,"y":672.0,"zOrder":8,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_gameTitle","persistentUuid":"9a6eb8ef-3e39-479e-9631-b2e2cc1fa161","width":0.0,"x":320.0,"y":84.0,"zOrder":10,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_date","persistentUuid":"d824c9ba-8961-4047-ba4c-13e66b8f44d3","width":0.0,"x":32.0,"y":16.0,"zOrder":12,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","name":"txtbx_Username","persistentUuid":"c3ee77af-838b-4e52-84e5-9edfdec72fdf","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Username","fontResourceName":"","fontSize":20.0,"inputType":"text","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"","name":"txtbx_Password","persistentUuid":"ffd66276-22b2-46bc-bc58-2010837dc5f2","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Password","fontResourceName":"","fontSize":20.0,"inputType":"password","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Login","persistentUuid":"ae3aaba7-ff4b-463f-bb17-eb233ab5a68c","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Login","PressedLabelOffsetY":2.0}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Register","persistentUuid":"548a436e-bc77-426e-9048-9501732084ed","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Register","PressedLabelOffsetY":2.0}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_lblServerStatus","persistentUuid":"e45fe9f3-cdc8-4d58-9e6a-ba2b71e3e734","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Server:","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Server:","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_lblMQTTStatus","persistentUuid":"a5dcdfbf-e3c2-4853-a7a2-113be9442012","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Broker:","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Broker:","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bold":true,"italic":false,"name":"txt_ServerStatus","persistentUuid":"0f4b8881-8813-490b-9b44-21561d04f0c4","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"OFFLINE","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":255},"content":{"bold":true,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"OFFLINE","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"255;0;0"}},{"assetStoreId":"","bold":true,"italic":false,"name":"txt_MQTTStatus","persistentUuid":"3dd0f168-5e38-4ae4-955c-1eb13063c3bc","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"OFFLINE","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":255},"content":{"bold":true,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"OFFLINE","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"255;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_debug","persistentUuid":"00343022-da8d-4af2-8a21-4e1dd750735a","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_gameTitle","persistentUuid":"574c3ce1-cb11-4dab-a2ec-f195258ed913","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"SQUARE GAME: MULTIPLAYER!","font":"","textAlignment":"left","characterSize":40.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"SQUARE GAME: MULTIPLAYER!","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":40.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_date","persistentUuid":"604cf4c5-d211-4b59-bc56-bdf7bf611ca7","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Date","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Date","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txtbx_Username"},{"objectName":"txtbx_Password"},{"objectName":"btn_Login"},{"objectName":"btn_Register"},{"objectName":"txt_lblServerStatus"},{"objectName":"txt_ServerStatus"},{"objectName":"txt_lblMQTTStatus"},{"objectName":"txt_MQTTStatus"},{"objectName":"txt_debug"},{"objectName":"txt_gameTitle"},{"objectName":"txt_date"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"RegisterButton","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Register",""]}],"actions":[{"type":{"value":"Scene"},"parameters":["","\"Register\"",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Server Status","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"MQTT::connect"},"parameters":["","var_mqttAddress","\"\"","",""]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users\"","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/server\"","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"Wait"},"parameters":[".1"]},{"type":{"value":"JSONToVariableStructure2"},"parameters":["var_jsonReply","var_RTC"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_jsonReply","!=","\"[]\""]}],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_ServerStatus","Text","=","\"ONLINE\""]},{"type":{"value":"TextObject::ChangeColor"},"parameters":["txt_ServerStatus","\"0;255;0\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"MQTT::isConnected"},"parameters":["",""]}],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_MQTTStatus","Text","=","\"ONLINE\""]},{"type":{"value":"TextObject::ChangeColor"},"parameters":["txt_MQTTStatus","\"0;255;0\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Log In","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Login",""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_Username","Text","!=","\"\""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_Password","Text","!=","\"\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["var_username","=","txtbx_Username.Text::Value()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_password","=","txtbx_Password.Text::Value()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_passwordHash","=","Hash::GenerateHashSHA256(var_password)"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users?username=\" + var_username +\"&password=\" + var_passwordHash","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"Wait"},"parameters":[".1"]},{"type":{"value":"JSONToVariableStructure2"},"parameters":["var_jsonReply","var_jsonParse"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_jsonParse[0].username","=","var_username"]},{"type":{"value":"StringVariable"},"parameters":["var_jsonParse[0].password","=","var_passwordHash"]}],"actions":[{"type":{"value":"JSONToVariableStructure2"},"parameters":["var_jsonReply","var_playerInfo"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"online\\\":true}\"","\"PATCH\"","\"application/json\"","",""]},{"type":{"value":"Scene"},"parameters":["","\"Logged in\"",""]}]}],"parameters":[]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Fullscreen",""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"IsFullScreen"},"parameters":[""]}],"actions":[{"type":{"value":"SetFullScreen"},"parameters":["","yes",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"IsFullScreen"},"parameters":[""]}],"actions":[{"type":{"value":"SetFullScreen"},"parameters":["","no",""]}]}]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Date/Time","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_date","Text","=","var_RTC[\"hour\"]+\":\"+var_RTC[\"minute\"]"]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Register","name":"Register","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":1.479039586175742,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_password01","persistentUuid":"9b38d1eb-2fc4-4744-b61a-b901092ab536","type":"string","value":""},{"name":"var_password02","persistentUuid":"73bfe239-ff40-4b6f-8505-ea724078f6ee","type":"string","value":""},{"name":"var_username","persistentUuid":"79b2dd33-921b-4817-9e5c-ebaa38a21834","type":"string","value":""},{"name":"var_jsonReply","persistentUuid":"e4d7e8bd-3595-4aef-9ec7-0fb470bb3ecd","type":"string","value":"[]"},{"name":"var_jsonParse","persistentUuid":"8a602891-d0e3-4492-a2b0-14d0f4fe64fb","type":"array","children":[]},{"name":"var_colorGen","persistentUuid":"5381318f-fa30-4456-8351-f814f8ecadbd","type":"string","value":""},{"name":"var_passwordHash","persistentUuid":"414331d7-6f44-4ecc-8c92-b5493246c615","type":"string","value":""},{"name":"var_spriteGen","persistentUuid":"fede8e3d-e524-413e-82e1-7ac220725341","type":"string","value":""}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_regUsername","persistentUuid":"66377f44-b1e3-4eab-a9c0-bc3752017e4e","width":0.0,"x":480.0,"y":322.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_regPassword01","persistentUuid":"b2099cad-5ab7-4a38-b939-31869e362657","width":0.0,"x":480.0,"y":368.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_regRegister","persistentUuid":"41a1f2cd-107b-4058-8bc6-eb51487ac180","width":0.0,"x":560.0,"y":480.0,"zOrder":4,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_RegMessageUser","persistentUuid":"4b4c3bd0-ffdf-440c-97a6-1992a4ae80d8","width":0.0,"x":512.0,"y":656.0,"zOrder":5,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_Back","persistentUuid":"af79ebf6-4ccf-4335-bab9-df40fbb263d8","width":0.0,"x":560.0,"y":560.0,"zOrder":6,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"btn_randSprite","persistentUuid":"248ac7e7-6ac9-4c9f-a7ec-a83df84e6d27","width":0.0,"x":560.0,"y":224.0,"zOrder":9,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txtbx_regPassword02","persistentUuid":"7106be72-f61f-4ab7-8659-4b87a1b8668b","width":0.0,"x":480.0,"y":416.0,"zOrder":11,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_RegMessagePassword","persistentUuid":"16a3c795-1cfa-4633-bc35-3a823ceaf916","width":0.0,"x":512.0,"y":624.0,"zOrder":12,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_RegMessageSuccess","persistentUuid":"268fa5ba-bfd7-467f-80e6-1bf428f66436","width":0.0,"x":512.0,"y":624.0,"zOrder":13,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_JSONReply","persistentUuid":"be01192a-d6ad-4d98-8ef3-44c5c5fad5c2","width":0.0,"x":84.0,"y":105.0,"zOrder":14,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"spr_playerSprite","persistentUuid":"dd56a1ac-247d-481d-9a94-0a3a6b26ba5b","width":0.0,"x":608.0,"y":176.0,"zOrder":15,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","name":"txtbx_regUsername","persistentUuid":"5bfb2de7-1947-4660-b896-ccac584f70f5","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Username","fontResourceName":"","fontSize":20.0,"inputType":"text","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"","name":"txtbx_regPassword01","persistentUuid":"e32982f7-fc73-4866-9b15-fd09d926a819","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Password","fontResourceName":"","fontSize":20.0,"inputType":"password","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_regRegister","persistentUuid":"f4f70ee8-da7b-4666-8780-a69ad9879791","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Register","PressedLabelOffsetY":2.0}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_RegMessageUser","persistentUuid":"cb2b72b5-1e20-4241-b4e3-3406a240cb33","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Username is not available","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":0,"r":255},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Username is not available","font":"","textAlignment":"center","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"255;0;0"}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_Back","persistentUuid":"a735af63-2e06-4548-a596-7eb24268783a","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Back","PressedLabelOffsetY":2.0}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_JSONReply","persistentUuid":"cde1bbef-cbc8-4fc3-9d5b-d0f2c9e02dec","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"[]","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"[]","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","name":"btn_randSprite","persistentUuid":"5428983b-7262-40a0-9d70-e7b3aa5d0175","type":"PanelSpriteButton::PanelSpriteButton","variant":"Small Blue Button","variables":[],"effects":[],"behaviors":[],"content":{"LabelText":"Randomize","PressedLabelOffsetY":2.0}},{"assetStoreId":"","name":"txtbx_regPassword02","persistentUuid":"5f39eff0-637f-46e3-b032-923b512aaa70","type":"TextInput::TextInputObject","variables":[],"effects":[],"behaviors":[],"content":{"initialValue":"","placeholder":"Repeat Password","fontResourceName":"","fontSize":20.0,"inputType":"password","textColor":"0;0;0","fillColor":"255;255;255","fillOpacity":255.0,"borderColor":"0;0;0","borderOpacity":255.0,"borderWidth":1.0,"readOnly":false,"disabled":false,"spellCheck":false,"paddingX":2.0,"paddingY":1.0,"textAlign":"left","maxLength":0.0}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_RegMessagePassword","persistentUuid":"366c40cc-d4d1-4858-8b9c-5c959e69c941","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Passwords do not match","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":0,"r":255},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Passwords do not match","font":"","textAlignment":"center","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"255;0;0"}},{"assetStoreId":"","bold":false,"italic":false,"name":"txt_RegMessageSuccess","persistentUuid":"bb5d6c4b-2eb6-4005-a464-2d3392769eb1","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Registration Successful!\nGoing back to login screen","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":255,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Registration Successful!\nGoing back to login screen","font":"","textAlignment":"center","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;255;0"}},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_playerSprite","persistentUuid":"46b9b986-bf51-4bc3-b86d-a43044623f83","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"var_player_id","persistentUuid":"53e00a63-7ae9-4d71-955c-849026d1e6e6","type":"string","value":"1"}],"effects":[],"behaviors":[{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior","acceleration":99999.0,"allowDiagonals":false,"angleOffset":0.0,"angularMaxSpeed":180.0,"customIsometryAngle":30.0,"deceleration":99999.0,"ignoreDefaultControls":false,"maxSpeed":75.0,"movementAngleOffset":0.0,"rotateObject":false,"useLegacyTurnBack":false,"viewpoint":"TopDown"}],"animations":[{"name":"1Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite5","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite6","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite7","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite8","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite9","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite10","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite11","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite12","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]}]}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txtbx_regUsername"},{"objectName":"spr_playerSprite"},{"objectName":"txtbx_regPassword01"},{"objectName":"txtbx_regPassword02"},{"objectName":"btn_regRegister"},{"objectName":"btn_Back"},{"objectName":"btn_randSprite"},{"objectName":"txt_RegMessageUser"},{"objectName":"txt_RegMessageSuccess"},{"objectName":"txt_RegMessagePassword"},{"objectName":"txt_JSONReply"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Hide Registration Message/Random Color Gen","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"Hide"},"parameters":["txt_RegMessageUser"]},{"type":{"value":"Hide"},"parameters":["txt_RegMessagePassword"]},{"type":{"value":"Hide"},"parameters":["txt_RegMessageSuccess"]},{"type":{"value":"SetCenterX"},"parameters":["txt_RegMessageUser","=","btn_Back.CenterX()"]},{"type":{"value":"SetCenterX"},"parameters":["txt_RegMessagePassword","=","btn_Back.CenterX()"]},{"type":{"value":"SetCenterX"},"parameters":["txt_RegMessageSuccess","=","btn_Back.CenterX()"]},{"type":{"value":"SetCenterX"},"parameters":["spr_playerSprite","=","btn_Back.CenterX()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_spriteGen","=","ToString(RandomInRange(1,9))"]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","var_spriteGen+\"Down\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Back Button","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Back",""]}],"actions":[{"type":{"value":"Scene"},"parameters":["","\"Login\"",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Randomize Color","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_randSprite",""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["var_spriteGen","=","ToString(RandomInRange(1,9))"]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","var_spriteGen+\"Down\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Registration","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_regRegister",""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_regUsername","Text","!=","\"\""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_regPassword01","Text","!=","\"\""]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::Value"},"parameters":["txtbx_regPassword02","Text","!=","\"\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["var_username","=","txtbx_regUsername.Text::Value()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_password01","=","txtbx_regPassword01.Text::Value()"]},{"type":{"value":"SetStringVariable"},"parameters":["var_password02","=","txtbx_regPassword02.Text::Value()"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users?username=\" + var_username","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"Wait"},"parameters":[".1"]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_JSONReply","Text","=","var_jsonReply"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_jsonReply","!=","\"[]\""]}],"actions":[{"type":{"value":"Show"},"parameters":["txt_RegMessageUser",""]}]},{"type":"BuiltinCommonInstructions::Else","conditions":[],"actions":[{"type":{"value":"Hide"},"parameters":["txt_RegMessageUser"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_password01","!=","var_password02"]}],"actions":[{"type":{"value":"Show"},"parameters":["txt_RegMessagePassword",""]}]},{"type":"BuiltinCommonInstructions::Else","conditions":[],"actions":[{"type":{"value":"Hide"},"parameters":["txt_RegMessagePassword"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_jsonReply","=","\"[]\""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"Show"},"parameters":["txt_RegMessageSuccess",""]},{"type":{"value":"SetStringVariable"},"parameters":["var_passwordHash","=","Hash::GenerateHashSHA256(var_password01)"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users\"","\"{\\\"username\\\":\\\"\" + var_username + \"\\\",\\\"password\\\":\\\"\" + var_passwordHash + \"\\\",\\\"sprite\\\":\\\"\" + var_spriteGen + \"\\\",\\\"room\\\":\\\"000000\\\",\\\"last_room\\\":\\\"000000\\\"}\"","\"POST\"","\"application/json\"","",""]},{"type":{"value":"Wait"},"parameters":["3"]},{"type":{"value":"Scene"},"parameters":["","\"Login\"",""]}]}]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Logged_32in","name":"Logged in","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.546875,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"password01","persistentUuid":"9b38d1eb-2fc4-4744-b61a-b901092ab536","type":"string","value":""},{"name":"password02","persistentUuid":"73bfe239-ff40-4b6f-8505-ea724078f6ee","type":"string","value":""},{"name":"username","persistentUuid":"79b2dd33-921b-4817-9e5c-ebaa38a21834","type":"string","value":""},{"name":"var_jsonReply","persistentUuid":"e4d7e8bd-3595-4aef-9ec7-0fb470bb3ecd","type":"string","value":""},{"name":"var_jsonParsed","persistentUuid":"a00f1f38-a6b3-4bd6-a53c-f2f3e63a9055","type":"array","children":[]}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_loggedIn","persistentUuid":"f1b704b5-1bb2-4076-9230-0c0f7551a2d0","width":0.0,"x":576.0,"y":336.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"txt_loggedIn","persistentUuid":"886a7a42-1339-4fc5-971d-67526b782479","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"LOGGED IN!","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"LOGGED IN!","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txt_loggedIn"}]},"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"Wait"},"parameters":["3"]},{"type":{"value":"Scene"},"parameters":["","var_playerInfo[0].room",""]}]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"_4800000","name":"000000","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.6672773998330006,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_mqttParse","persistentUuid":"62bd9deb-3848-4176-9eef-2adf2b38198b","type":"structure","children":[]},{"name":"var_jsonParse","persistentUuid":"0563153c-5ac3-487f-ab2a-050e5b806bc7","type":"structure","children":[]},{"name":"var_jsonReply","persistentUuid":"f4f4161d-90a5-4937-abfe-755a64fb6f2f","type":"string","value":""},{"name":"var_child","persistentUuid":"457c6438-da2b-4d26-af01-34653736b679","type":"structure","children":[]},{"name":"var_childName","persistentUuid":"a7769c54-2f75-4661-bd4f-af2bf1d036d3","type":"string","value":""}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"spr_door","persistentUuid":"1691a9cb-54f2-444c-9c3f-38f4edf26eb6","width":0.0,"x":1168.0,"y":352.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"txt_debug","persistentUuid":"9ba688b3-55ca-4771-8b64-7c7e4ff5efac","width":0.0,"x":112.0,"y":624.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"UI","name":"btn_Logout","persistentUuid":"acb3eb14-97fe-4a1c-b4c5-f01b9c7c6eeb","width":0.0,"x":16.0,"y":16.0,"zOrder":3,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"txt_debug","persistentUuid":"73e827f1-d8f8-45e5-95f5-ff8a2715886b","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txt_debug"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Scene Start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Spawn Logic"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"null\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","var_playerInfo[0].x","var_playerInfo[0].y",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"000000\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","560","352",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"000001\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","1088","352",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]}]}],"parameters":[]},{"type":"BuiltinCommonInstructions::Link","include":{"includeConfig":0},"target":"Functions"}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]},{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"UI","renderingType":"","visibility":true,"cameras":[],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"_4800001","name":"000001","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.6672773998329975,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_jsonReply","persistentUuid":"600e1cff-2b6c-4e86-aa45-0926f9210a1d","type":"string","value":""},{"name":"var_jsonParse","persistentUuid":"9b38abfa-427b-4c21-bd59-ddc7057a418e","type":"structure","children":[]},{"name":"var_mqttParse","persistentUuid":"5c8c99af-3003-442d-bd7f-d123dea72ac4","type":"structure","children":[]},{"name":"var_child","persistentUuid":"fb409cbe-b641-4d67-9c0e-d640b65f7cbe","type":"structure","children":[]},{"name":"var_childName","persistentUuid":"dc06c4ec-9998-46e8-97b5-0ae6d6088f1e","type":"string","value":""}],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"spr_door","persistentUuid":"1691a9cb-54f2-444c-9c3f-38f4edf26eb6","width":0.0,"x":32.0,"y":352.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[{"name":"var_doorway","type":"string","value":"000000"}]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"UI","name":"btn_Logout","persistentUuid":"7c951776-884b-4af0-a13a-97e5ee085499","width":0.0,"x":16.0,"y":16.0,"zOrder":3,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"txt_debug","persistentUuid":"9ec31fcd-7fdb-4daa-88e5-561ccee06c4c","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txt_debug"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Scene Start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Spawn Logic"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"null\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","var_playerInfo[0].x","var_playerInfo[0].y",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"000001\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","1088","352",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_player","player_id","=","var_playerInfo[0].id"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_playerInfo[0].last_room","=","\"000000\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_player","112","352",""]}]}]}],"parameters":[]},{"type":"BuiltinCommonInstructions::Link","include":{"includeConfig":0},"target":"Functions"}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]},{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"UI","renderingType":"","visibility":true,"cameras":[],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Functions","name":"Functions","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":false,"gridType":"rectangular","gridWidth":32.0,"gridHeight":32.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":false,"zoomFactor":0.546875,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[{"name":"var_jsonReply","persistentUuid":"e04c3e03-0cb7-4e3d-8f02-7bd32268195c","type":"string","value":""},{"name":"var_jsonParse","persistentUuid":"becd4ac5-49ec-4fd7-b926-45259680bb42","type":"structure","children":[]},{"name":"var_mqttParse","persistentUuid":"b4fe2c70-e8ab-4665-9d0a-7126bb52f64b","type":"structure","children":[]},{"name":"var_child","persistentUuid":"64d0682b-fde0-404e-9b34-17034c997c4c","type":"structure","children":[]},{"name":"var_childName","persistentUuid":"792ced2c-6b39-44d1-8550-02127dd84b45","type":"string","value":""}],"instances":[],"objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"txt_debug","persistentUuid":"29da99d2-6fb0-4d86-841b-b57124673767","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[],"string":"Text","font":"","textAlignment":"left","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"left","verticalTextAlignment":"top","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"txt_debug"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Scene Start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"ZoomCamera"},"parameters":["","3","",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_player","Animation","=","var_playerInfo[0].sprite+\"Down\""]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"x\\\":\\\"\" + ToString(round(spr_player.X()))+ \"\\\",\\\"y\\\":\\\"\" + ToString(round(spr_player.Y())) + \"\\\"}\"","\"PATCH\"","\"application/json\"","",""]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users?online=true&room=\"+CurrentSceneName()","","\"GET\"","","var_jsonReply",""]},{"type":{"value":"Wait"},"parameters":[".1"]},{"type":{"value":"JSONToVariableStructure2"},"parameters":["var_jsonReply","var_jsonParse"]}],"events":[{"type":"BuiltinCommonInstructions::ForEachChildVariable","iterableVariableName":"var_jsonParse","valueIteratorVariableName":"var_child","keyIteratorVariableName":"var_childName","conditions":[],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_child[\"id\"]","!=","var_playerInfo[0].id"]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_otherPlayers","var_child[\"x\"]","var_child[\"y\"]",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_otherPlayers","Animation","=","var_child[\"sprite\"]+\"Down\""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::PauseAnimation"},"parameters":["spr_otherPlayers","Animation"]},{"type":{"value":"ChangeSprite"},"parameters":["spr_otherPlayers","=","1"]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_child[\"id\"]"]}]}]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"MQTT","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"MQTT::isConnected"},"parameters":["",""]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::subscribe"},"parameters":["","\"/game/rooms/\"+CurrentSceneName()","","no",""]},{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"join\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \",\\\"sprite\\\":\\\"\" + var_playerInfo[0].sprite + \"\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]}]},{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"MQTT on button press"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_player","TopDownMovement","0","0"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"direction\\\":\\\"right\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_player","Animation","=","var_playerInfo[0].sprite+ \"Right\""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::PlayAnimation"},"parameters":["spr_player","Animation"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_player","TopDownMovement","90","0"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"direction\\\":\\\"down\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_player","Animation","=","var_playerInfo[0].sprite+ \"Down\""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::PlayAnimation"},"parameters":["spr_player","Animation"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_player","TopDownMovement","180","0"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"direction\\\":\\\"left\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_player","Animation","=","var_playerInfo[0].sprite + \"Left\""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::PlayAnimation"},"parameters":["spr_player","Animation"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_player","TopDownMovement","270","0"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_start\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"direction\\\":\\\"up\\\"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_player","Animation","=","var_playerInfo[0].sprite + \"Up\""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::PlayAnimation"},"parameters":["spr_player","Animation"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"move_stop\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \",\\\"sprite\\\":\" + ToString(var_playerInfo[0].sprite) + \",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::PauseAnimation"},"parameters":["spr_player","Animation"]},{"type":{"value":"ChangeSprite"},"parameters":["spr_player","=","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"MQTT::onMessage"},"parameters":["","\"/game/rooms/\"+CurrentSceneName()",""]}],"actions":[{"type":{"value":"JSONToVariableStructure2"},"parameters":["MQTT::GetLastMessage(\"/game/rooms/\"+CurrentSceneName())","var_mqttParse"]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["txt_debug","Text","=","MQTT::GetLastMessage(\"/game/rooms/\"+CurrentSceneName())"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"player_id\"]","!=","var_playerInfo[0].id"]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_start\""]},{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"direction\"]","=","\"right\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::PlayAnimation"},"parameters":["spr_otherPlayers","Animation"]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_otherPlayers","Animation","=","var_mqttParse[\"sprite\"]+ \"Right\""]},{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"AddForceXY"},"parameters":["spr_otherPlayers","75","0","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_start\""]},{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"direction\"]","=","\"left\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::PlayAnimation"},"parameters":["spr_otherPlayers","Animation"]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_otherPlayers","Animation","=","var_mqttParse[\"sprite\"]+ \"Left\""]},{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"AddForceXY"},"parameters":["spr_otherPlayers","-75","0","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_start\""]},{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"direction\"]","=","\"up\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::PlayAnimation"},"parameters":["spr_otherPlayers","Animation"]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_otherPlayers","Animation","=","var_mqttParse[\"sprite\"]+ \"Up\""]},{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"AddForceXY"},"parameters":["spr_otherPlayers","0","-75","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_start\""]},{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"direction\"]","=","\"down\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::PlayAnimation"},"parameters":["spr_otherPlayers","Animation"]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_otherPlayers","Animation","=","var_mqttParse[\"sprite\"]+ \"Down\""]},{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"AddForceXY"},"parameters":["spr_otherPlayers","0","75","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"move_stop\""]},{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"ClearForces"},"parameters":["spr_otherPlayers"]},{"type":{"value":"SetXY"},"parameters":["spr_otherPlayers","=","var_mqttParse[\"x\"]","=","var_mqttParse[\"y\"]"]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::PauseAnimation"},"parameters":["spr_otherPlayers","Animation"]},{"type":{"value":"ChangeSprite"},"parameters":["spr_otherPlayers","=","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"join\""]}],"actions":[{"type":{"value":"Create"},"parameters":["","spr_otherPlayers","var_mqttParse[\"x\"]","var_mqttParse[\"y\"]",""]},{"type":{"value":"SetNumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_otherPlayers","Animation","=","var_mqttParse[\"sprite\"]+\"Down\""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::PauseAnimation"},"parameters":["spr_otherPlayers","Animation"]},{"type":{"value":"ChangeSprite"},"parameters":["spr_otherPlayers","=","1"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["var_mqttParse[\"type\"]","=","\"leave\""]}],"actions":[],"events":[{"type":"BuiltinCommonInstructions::ForEach","object":"spr_otherPlayers","conditions":[{"type":{"value":"NumberObjectVariable"},"parameters":["spr_otherPlayers","player_id","=","var_mqttParse[\"player_id\"]"]}],"actions":[{"type":{"value":"Delete"},"parameters":["spr_otherPlayers",""]}]}]}]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Doorways","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"CollisionNP"},"parameters":["spr_player","spr_door","","",""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["var_playerInfo[0].last_room","=","var_playerInfo[0].room"]},{"type":{"value":"SetStringVariable"},"parameters":["var_playerInfo[0].room","=","spr_door.var_doorway"]},{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"room\\\":\\\"\" + var_playerInfo[0].room + \"\\\",\\\"last_room\\\":\\\"\" + var_playerInfo[0].last_room + \"\\\"}\"","\"PATCH\"","\"application/json\"","",""]},{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"leave\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"Scene"},"parameters":["","spr_door.var_doorway",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Log Out","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsClicked"},"parameters":["btn_Logout",""]}],"actions":[{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"online\\\":false,\\\"last_room\\\":\\\"null\\\",\\\"x\\\":\" + ToString(round(spr_player.X())) + \",\\\"y\\\":\" + ToString(round(spr_player.Y())) + \"}\"","\"PATCH\"","\"application/json\"","",""]},{"type":{"value":"MQTT::publish"},"parameters":["","\"{\\\"type\\\":\\\"leave\\\",\\\"player_id\\\":\" + ToString(var_playerInfo[0].id) + \"}\"","\"/game/rooms/\"+CurrentSceneName()","","",""]},{"type":{"value":"Scene"},"parameters":["","\"Login\"",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Update XY","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_player","TopDownMovement"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"SendAsyncRequest"},"parameters":["var_jsonAddress+\"/users/\"+var_playerInfo[0].id","\"{\\\"x\\\":\\\"\" + ToString(round(spr_player.X()))+ \"\\\",\\\"y\\\":\\\"\" + ToString(round(spr_player.Y())) + \"\\\"}\"","\"PATCH\"","\"application/json\"","",""]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"Text","type":"TextContainerCapability::TextContainerBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]},{"b":255,"disableInputWhenNotFocused":true,"mangledName":"Sprite_32Test","name":"Sprite Test","r":247,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":249,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":16.0,"gridHeight":16.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":4.4185594058554049,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"objectsGroups":[],"variables":[],"instances":[{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"","name":"spr_playerSprite","persistentUuid":"676e82ba-e2ab-48ad-a0b7-27b03e0d81c6","width":0.0,"x":688.0,"y":288.0,"zOrder":5,"numberProperties":[],"stringProperties":[],"initialVariables":[{"name":"var_player_id","persistentUuid":"8c121fd4-14b0-44de-8189-7e88a869f900","type":"string","value":"04"}]}],"objects":[{"adaptCollisionMaskAutomatically":true,"assetStoreId":"","name":"spr_playerSprite","persistentUuid":"45bd84a7-bbe2-422a-ba57-7875686cead0","type":"Sprite","updateIfNotVisible":false,"variables":[{"name":"var_player_id","persistentUuid":"8c121fd4-14b0-44de-8189-7e88a869f900","type":"string","value":"1"}],"effects":[],"behaviors":[{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior","acceleration":99999.0,"allowDiagonals":false,"angleOffset":0.0,"angularMaxSpeed":180.0,"customIsometryAngle":30.0,"deceleration":99999.0,"ignoreDefaultControls":false,"maxSpeed":75.0,"movementAngleOffset":0.0,"rotateObject":false,"useLegacyTurnBack":false,"viewpoint":"TopDown"}],"animations":[{"name":"1Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"1Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"01Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"01Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"2Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"02Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"02Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"3Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"03Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"03Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"04Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"04Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"4Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite5","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite6","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite7","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite8","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"spr_playerSprite9","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite10","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite11","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"spr_playerSprite12","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"5Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"05Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"05Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"6Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"06Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"06Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"7Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"07Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"07Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"8Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"08Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"08Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Down","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Down","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Down4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Left","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Left","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Left4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Right","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Right","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Right4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]},{"name":"9Up","useMultipleDirections":false,"directions":[{"looping":true,"metadata":"{\"pskl\":{}}","timeBetweenFrames":0.2,"sprites":[{"hasCustomCollisionMask":true,"image":"09Up","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up2","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up3","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]},{"hasCustomCollisionMask":true,"image":"09Up4","points":[],"originPoint":{"name":"origine","x":0.0,"y":24.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":3.0,"y":5.0},{"x":15.0,"y":5.0},{"x":15.0,"y":24.0},{"x":3.0,"y":24.0}]]}]}]}]}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"spr_playerSprite"}]},"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Scene Begin","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SceneJustBegins"},"parameters":[""]}],"actions":[{"type":{"value":"ZoomCamera"},"parameters":["","3","",""]},{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_player_id + \"Down\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Sprite/Controls","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_playerSprite","TopDownMovement","0",""]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_player_id + \"Right\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_playerSprite","TopDownMovement","180",""]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_player_id + \"Left\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_playerSprite","TopDownMovement","90",""]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_player_id + \"Down\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"TopDownMovementBehavior::TopDownMovementBehavior::IsMovementAngleAround"},"parameters":["spr_playerSprite","TopDownMovement","270",""]}],"actions":[{"type":{"value":"AnimatableCapability::AnimatableBehavior::SetName"},"parameters":["spr_playerSprite","Animation","=","spr_playerSprite.var_player_id + \"Up\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"TopDownMovementBehavior::IsMoving"},"parameters":["spr_playerSprite","TopDownMovement"]}],"actions":[{"type":{"value":"ChangeSprite"},"parameters":["spr_playerSprite","=","1"]}]}],"parameters":[]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[{"effectType":"Scene3D::HemisphereLight","name":"3D Ambient Hemisphere Light","doubleParameters":{"elevation":40.0,"intensity":0.33,"rotation":300.0},"stringParameters":{"groundColor":"127;127;127","skyColor":"255;255;255","top":"Z+"},"booleanParameters":{}},{"effectType":"Scene3D::DirectionalLight","name":"3D Sun Light","doubleParameters":{"distanceFromCamera":1500.0,"elevation":40.0,"frustumSize":4000.0,"intensity":0.75,"minimumShadowBias":0.0,"rotation":300.0},"stringParameters":{"color":"255;255;255","shadowQuality":"medium","top":"Z+"},"booleanParameters":{"isCastingShadow":true}}]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"}]}],"externalEvents":[],"eventsFunctionsExtensions":[{"author":"Arthur Pacaud (@arthuro555)","category":"Network","dimension":"","extensionNamespace":"","fullName":"MQTT Client (advanced)","gdevelopVersion":">=5.5.222","helpPath":"","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLW1lc3NhZ2UtZmxhc2giIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjIgNEMyMiAyLjkgMjEuMSAyIDIwIDJINEMyLjkgMiAyIDIuOSAyIDRWMjJMNiAxOEgxNVYxMEgyMlY0TTIyLjUgMTZIMjAuM0wyMiAxMkgxN1YxOEgxOVYyM0wyMi41IDE2WiIgLz48L3N2Zz4=","name":"MQTT","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/message-flash.svg","shortDescription":"MQTT client: connect to broker, publish/subscribe topics, send/receive messages.","version":"1.0.1","description":["This extension wraps [MQTT.js](https://github.com/mqttjs/MQTT.js) to allow connections to a MQTT server and communication via pub/sub. The only transport method is Websockets. Make sure to use a broker that support those!","","## Dataloss","","The dataloss let you chose how to handle data. Due to how the GDevelop event loop is made, only one message per topic can be processed per frame. When dataloss is on, when you get 2 messages from one topic in one frame, only the latest one is remembered. When it is off, the first message is processed and the second is queued for the next frame.","","## QoS (Quality of service)","","Here is how QoS works:",""," - QoS 0 (received at most once): The packet is sent, and that's it. There is no validation about whether it has been received."," - QoS 1 (received at least once): The packet is sent and stored as long as the client has not received a confirmation from the server. MQTT ensures that it will be received, but there can be duplicates."," - QoS 2 (received exactly once): Same as QoS 1 but there is no duplicates.","","About data consumption: QoS 2 will consume more than QoS 1, which will consume more than QoS 0.","","## Test Broker","","You can find a free test broker server over at https://test.mosquitto.org/ - keep in mind, anyone can read and write data sent there, and it offers no uptime guarantees!"],"origin":{"identifier":"MQTT","name":"gdevelop-extension-store"},"tags":["mqtt","iot","connection","networking","pubsub","messaging","online","connect","multiplayer","send","message","recieve","notify","notification","home assistant","smart home","control"],"authorIds":["ZgrsWuRTAkXgeuPV9bo0zuEcA2w1"],"dependencies":[],"globalVariables":[],"sceneVariables":[],"eventsFunctions":[{"fullName":"","functionType":"Action","name":"onFirstSceneLoaded","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["/**"," * @typedef MQTTEvent Corresponds to a message coming from a subcribed topic."," * @property {boolean} loss Descibes how to handle multiple packages in one frame."," * @property {string || Array} data The last message received by that event."," */","","/**"," * The mqtt tools"," * @namespace"," */","gdjs.evtTools.mqtt = {"," /** The current connection to the MQTT broker server */"," connection: null,"," /** "," * The last error that occured "," * @type {string}"," */"," lastError: \"\","," /**"," * A list of events triggered."," * @type {Object.}"," */"," events: {},"," empty: Symbol(\"No event\"),","};","","// MQTT.js: https://github.com/mqttjs/MQTT.js (v5.10.3)","window.mqtt=(()=>{var ys=Object.defineProperty;var Kg=Object.getOwnPropertyDescriptor;var Gg=Object.getOwnPropertyNames;var Qg=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(t&&(e=t(t=0)),e);var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Jt=(t,e)=>{for(var r in e)ys(t,r,{get:e[r],enumerable:!0})},Yg=(t,e,r,i)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let n of Gg(e))!Qg.call(t,n)&&n!==r&&ys(t,n,{get:()=>e[n],enumerable:!(i=Kg(e,n))||i.enumerable});return t};var X=t=>Yg(ys({},\"__esModule\",{value:!0}),t);var _=_e(()=>{});var B={};Jt(B,{_debugEnd:()=>yu,_debugProcess:()=>gu,_events:()=>Ou,_eventsCount:()=>xu,_exiting:()=>Yl,_fatalExceptions:()=>cu,_getActiveHandles:()=>eu,_getActiveRequests:()=>Zl,_kill:()=>ru,_linkedBinding:()=>Gl,_maxListeners:()=>ku,_preload_modules:()=>Cu,_rawDebug:()=>zl,_startProfilerIdleNotifier:()=>bu,_stopProfilerIdleNotifier:()=>wu,_tickCallback:()=>pu,abort:()=>Eu,addListener:()=>Mu,allowedNodeEnvironmentFlags:()=>lu,arch:()=>xl,argv:()=>Ul,argv0:()=>Ru,assert:()=>uu,binding:()=>Fl,chdir:()=>Hl,config:()=>Jl,cpuUsage:()=>$i,cwd:()=>$l,debugPort:()=>Tu,default:()=>$u,dlopen:()=>Xl,domain:()=>Ql,emit:()=>Du,emitWarning:()=>jl,env:()=>Ll,execArgv:()=>Nl,execPath:()=>Iu,exit:()=>ou,features:()=>fu,hasUncaughtExceptionCaptureCallback:()=>du,hrtime:()=>Wi,kill:()=>su,listeners:()=>Wu,memoryUsage:()=>nu,moduleLoadList:()=>Kl,nextTick:()=>Pl,off:()=>Uu,on:()=>wt,once:()=>Lu,openStdin:()=>au,pid:()=>Su,platform:()=>Ml,ppid:()=>Au,prependListener:()=>ju,prependOnceListener:()=>Fu,reallyExit:()=>tu,release:()=>Vl,removeAllListeners:()=>qu,removeListener:()=>Nu,resourceUsage:()=>iu,setSourceMapsEnabled:()=>Bu,setUncaughtExceptionCaptureCallback:()=>hu,stderr:()=>mu,stdin:()=>vu,stdout:()=>_u,title:()=>Ol,umask:()=>Wl,uptime:()=>Pu,version:()=>ql,versions:()=>Dl});function _s(t){throw new Error(\"Node.js process \"+t+\" is not supported by JSPM core outside of Node.js\")}function Jg(){!Lr||!Xt||(Lr=!1,Xt.length?bt=Xt.concat(bt):Fi=-1,bt.length&&Bl())}function Bl(){if(!Lr){var t=setTimeout(Jg,0);Lr=!0;for(var e=bt.length;e;){for(Xt=bt,bt=[];++Fi1)for(var r=1;r{_();v();m();bt=[],Lr=!1,Fi=-1;kl.prototype.run=function(){this.fun.apply(null,this.array)};Ol=\"browser\",xl=\"x64\",Ml=\"browser\",Ll={PATH:\"/usr/bin\",LANG:navigator.language+\".UTF-8\",PWD:\"/\",HOME:\"/home\",TMP:\"/tmp\"},Ul=[\"/usr/bin/node\"],Nl=[],ql=\"v16.8.0\",Dl={},jl=function(t,e){console.warn((e?e+\": \":\"\")+t)},Fl=function(t){_s(\"binding\")},Wl=function(t){return 0},$l=function(){return\"/\"},Hl=function(t){},Vl={name:\"node\",sourceUrl:\"\",headersUrl:\"\",libUrl:\"\"};zl=Ee,Kl=[];Ql={},Yl=!1,Jl={};tu=Ee,ru=Ee,$i=function(){return{}},iu=$i,nu=$i,su=Ee,ou=Ee,au=Ee,lu={};fu={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},cu=Ee,hu=Ee;pu=Ee,gu=Ee,yu=Ee,bu=Ee,wu=Ee,_u=void 0,mu=void 0,vu=void 0,Eu=Ee,Su=2,Au=1,Iu=\"/bin/usr/node\",Tu=9229,Ru=\"node\",Cu=[],Bu=Ee,Lt={now:typeof performance<\"u\"?performance.now.bind(performance):void 0,timing:typeof performance<\"u\"?performance.timing:void 0};Lt.now===void 0&&(bs=Date.now(),Lt.timing&&Lt.timing.navigationStart&&(bs=Lt.timing.navigationStart),Lt.now=()=>Date.now()-bs);ws=1e9;Wi.bigint=function(t){var e=Wi(t);return typeof BigInt>\"u\"?e[0]*ws+e[1]:BigInt(e[0]*ws)+BigInt(e[1])};ku=10,Ou={},xu=0;Mu=wt,Lu=wt,Uu=wt,Nu=wt,qu=wt,Du=Ee,ju=wt,Fu=wt;$u={version:ql,versions:Dl,arch:xl,platform:Ml,release:Vl,_rawDebug:zl,moduleLoadList:Kl,binding:Fl,_linkedBinding:Gl,_events:Ou,_eventsCount:xu,_maxListeners:ku,on:wt,addListener:Mu,once:Lu,off:Uu,removeListener:Nu,removeAllListeners:qu,emit:Du,prependListener:ju,prependOnceListener:Fu,listeners:Wu,domain:Ql,_exiting:Yl,config:Jl,dlopen:Xl,uptime:Pu,_getActiveRequests:Zl,_getActiveHandles:eu,reallyExit:tu,_kill:ru,cpuUsage:$i,resourceUsage:iu,memoryUsage:nu,kill:su,exit:ou,openStdin:au,allowedNodeEnvironmentFlags:lu,assert:uu,features:fu,_fatalExceptions:cu,setUncaughtExceptionCaptureCallback:hu,hasUncaughtExceptionCaptureCallback:du,emitWarning:jl,nextTick:Pl,_tickCallback:pu,_debugProcess:gu,_debugEnd:yu,_startProfilerIdleNotifier:bu,_stopProfilerIdleNotifier:wu,stdout:_u,stdin:vu,stderr:mu,abort:Eu,umask:Wl,chdir:Hl,cwd:$l,env:Ll,title:Ol,argv:Ul,execArgv:Nl,pid:Su,ppid:Au,execPath:Iu,debugPort:Tu,hrtime:Wi,argv0:Ru,_preload_modules:Cu,setSourceMapsEnabled:Bu}});var m=_e(()=>{Hu()});var me={};Jt(me,{Buffer:()=>x,INSPECT_MAX_BYTES:()=>ty,default:()=>Ut,kMaxLength:()=>ry});function Xg(){if(Vu)return ci;Vu=!0,ci.byteLength=a,ci.toByteArray=c,ci.fromByteArray=g;for(var t=[],e=[],r=typeof Uint8Array<\"u\"?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",n=0,o=i.length;n0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var S=y.indexOf(\"=\");S===-1&&(S=w);var E=S===w?0:4-S%4;return[S,E]}function a(y){var w=s(y),S=w[0],E=w[1];return(S+E)*3/4-E}function l(y,w,S){return(w+S)*3/4-S}function c(y){var w,S=s(y),E=S[0],I=S[1],C=new r(l(y,E,I)),R=0,U=I>0?E-4:E,N;for(N=0;N>16&255,C[R++]=w>>8&255,C[R++]=w&255;return I===2&&(w=e[y.charCodeAt(N)]<<2|e[y.charCodeAt(N+1)]>>4,C[R++]=w&255),I===1&&(w=e[y.charCodeAt(N)]<<10|e[y.charCodeAt(N+1)]<<4|e[y.charCodeAt(N+2)]>>2,C[R++]=w>>8&255,C[R++]=w&255),C}function h(y){return t[y>>18&63]+t[y>>12&63]+t[y>>6&63]+t[y&63]}function d(y,w,S){for(var E,I=[],C=w;CU?U:R+C));return E===1?(w=y[S-1],I.push(t[w>>2]+t[w<<4&63]+\"==\")):E===2&&(w=(y[S-2]<<8)+y[S-1],I.push(t[w>>10]+t[w>>4&63]+t[w<<2&63]+\"=\")),I.join(\"\")}return ci}function Zg(){if(zu)return Hi;zu=!0;return Hi.read=function(t,e,r,i,n){var o,s,a=n*8-i-1,l=(1<>1,h=-7,d=r?n-1:0,g=r?-1:1,y=t[e+d];for(d+=g,o=y&(1<<-h)-1,y>>=-h,h+=a;h>0;o=o*256+t[e+d],d+=g,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=i;h>0;s=s*256+t[e+d],d+=g,h-=8);if(o===0)o=1-c;else{if(o===l)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-c}return(y?-1:1)*s*Math.pow(2,o-i)},Hi.write=function(t,e,r,i,n,o){var s,a,l,c=o*8-n-1,h=(1<>1,g=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,w=i?1:-1,S=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?e+=g/l:e+=g*Math.pow(2,1-d),e*l>=2&&(s++,l/=2),s+d>=h?(a=0,s=h):s+d>=1?(a=(e*l-1)*Math.pow(2,n),s=s+d):(a=e*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;t[r+y]=a&255,y+=w,a/=256,n-=8);for(s=s<0;t[r+y]=s&255,y+=w,s/=256,c-=8);t[r+y-w]|=S*128},Hi}function ey(){if(Ku)return Zt;Ku=!0;let t=Xg(),e=Zg(),r=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;Zt.Buffer=s,Zt.SlowBuffer=I,Zt.INSPECT_MAX_BYTES=50;let i=2147483647;Zt.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=n(),!s.TYPED_ARRAY_SUPPORT&&typeof console<\"u\"&&typeof console.error==\"function\"&&console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\");function n(){try{let p=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(p,u),p.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,\"parent\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,\"offset\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(p){if(p>i)throw new RangeError('The value \"'+p+'\" is invalid for option \"size\"');let u=new Uint8Array(p);return Object.setPrototypeOf(u,s.prototype),u}function s(p,u,f){if(typeof p==\"number\"){if(typeof u==\"string\")throw new TypeError('The \"string\" argument must be of type string. Received type number');return h(p)}return a(p,u,f)}s.poolSize=8192;function a(p,u,f){if(typeof p==\"string\")return d(p,u);if(ArrayBuffer.isView(p))return y(p);if(p==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof p);if(Ye(p,ArrayBuffer)||p&&Ye(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(Ye(p,SharedArrayBuffer)||p&&Ye(p.buffer,SharedArrayBuffer)))return w(p,u,f);if(typeof p==\"number\")throw new TypeError('The \"value\" argument must not be of type number. Received type number');let b=p.valueOf&&p.valueOf();if(b!=null&&b!==p)return s.from(b,u,f);let A=S(p);if(A)return A;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]==\"function\")return s.from(p[Symbol.toPrimitive](\"string\"),u,f);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof p)}s.from=function(p,u,f){return a(p,u,f)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(p){if(typeof p!=\"number\")throw new TypeError('\"size\" argument must be of type number');if(p<0)throw new RangeError('The value \"'+p+'\" is invalid for option \"size\"')}function c(p,u,f){return l(p),p<=0?o(p):u!==void 0?typeof f==\"string\"?o(p).fill(u,f):o(p).fill(u):o(p)}s.alloc=function(p,u,f){return c(p,u,f)};function h(p){return l(p),o(p<0?0:E(p)|0)}s.allocUnsafe=function(p){return h(p)},s.allocUnsafeSlow=function(p){return h(p)};function d(p,u){if((typeof u!=\"string\"||u===\"\")&&(u=\"utf8\"),!s.isEncoding(u))throw new TypeError(\"Unknown encoding: \"+u);let f=C(p,u)|0,b=o(f),A=b.write(p,u);return A!==f&&(b=b.slice(0,A)),b}function g(p){let u=p.length<0?0:E(p.length)|0,f=o(u);for(let b=0;b=i)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+i.toString(16)+\" bytes\");return p|0}function I(p){return+p!=p&&(p=0),s.alloc(+p)}s.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==s.prototype},s.compare=function(u,f){if(Ye(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),Ye(f,Uint8Array)&&(f=s.from(f,f.offset,f.byteLength)),!s.isBuffer(u)||!s.isBuffer(f))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;let b=u.length,A=f.length;for(let T=0,P=Math.min(b,A);TA.length?(s.isBuffer(P)||(P=s.from(P)),P.copy(A,T)):Uint8Array.prototype.set.call(A,P,T);else if(s.isBuffer(P))P.copy(A,T);else throw new TypeError('\"list\" argument must be an Array of Buffers');T+=P.length}return A};function C(p,u){if(s.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||Ye(p,ArrayBuffer))return p.byteLength;if(typeof p!=\"string\")throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);let f=p.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&f===0)return 0;let A=!1;for(;;)switch(u){case\"ascii\":case\"latin1\":case\"binary\":return f;case\"utf8\":case\"utf-8\":return ps(p).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return f*2;case\"hex\":return f>>>1;case\"base64\":return Cl(p).length;default:if(A)return b?-1:ps(p).length;u=(\"\"+u).toLowerCase(),A=!0}}s.byteLength=C;function R(p,u,f){let b=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return\"\";for(p||(p=\"utf8\");;)switch(p){case\"hex\":return qg(this,u,f);case\"utf8\":case\"utf-8\":return Pr(this,u,f);case\"ascii\":return hs(this,u,f);case\"latin1\":case\"binary\":return Ng(this,u,f);case\"base64\":return ge(this,u,f);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Dg(this,u,f);default:if(b)throw new TypeError(\"Unknown encoding: \"+p);p=(p+\"\").toLowerCase(),b=!0}}s.prototype._isBuffer=!0;function U(p,u,f){let b=p[u];p[u]=p[f],p[f]=b}s.prototype.swap16=function(){let u=this.length;if(u%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(let f=0;ff&&(u+=\" ... \"),\"\"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(u,f,b,A,T){if(Ye(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),!s.isBuffer(u))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(f===void 0&&(f=0),b===void 0&&(b=u?u.length:0),A===void 0&&(A=0),T===void 0&&(T=this.length),f<0||b>u.length||A<0||T>this.length)throw new RangeError(\"out of range index\");if(A>=T&&f>=b)return 0;if(A>=T)return-1;if(f>=b)return 1;if(f>>>=0,b>>>=0,A>>>=0,T>>>=0,this===u)return 0;let P=T-A,$=b-f,se=Math.min(P,$),te=this.slice(A,T),oe=u.slice(f,b);for(let J=0;J2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,gs(f)&&(f=A?0:p.length-1),f<0&&(f=p.length+f),f>=p.length){if(A)return-1;f=p.length-1}else if(f<0)if(A)f=0;else return-1;if(typeof u==\"string\"&&(u=s.from(u,b)),s.isBuffer(u))return u.length===0?-1:W(p,u,f,b,A);if(typeof u==\"number\")return u=u&255,typeof Uint8Array.prototype.indexOf==\"function\"?A?Uint8Array.prototype.indexOf.call(p,u,f):Uint8Array.prototype.lastIndexOf.call(p,u,f):W(p,[u],f,b,A);throw new TypeError(\"val must be string, number or Buffer\")}function W(p,u,f,b,A){let T=1,P=p.length,$=u.length;if(b!==void 0&&(b=String(b).toLowerCase(),b===\"ucs2\"||b===\"ucs-2\"||b===\"utf16le\"||b===\"utf-16le\")){if(p.length<2||u.length<2)return-1;T=2,P/=2,$/=2,f/=2}function se(oe,J){return T===1?oe[J]:oe.readUInt16BE(J*T)}let te;if(A){let oe=-1;for(te=f;teP&&(f=P-$),te=f;te>=0;te--){let oe=!0;for(let J=0;J<$;J++)if(se(p,te+J)!==se(u,J)){oe=!1;break}if(oe)return te}return-1}s.prototype.includes=function(u,f,b){return this.indexOf(u,f,b)!==-1},s.prototype.indexOf=function(u,f,b){return N(this,u,f,b,!0)},s.prototype.lastIndexOf=function(u,f,b){return N(this,u,f,b,!1)};function K(p,u,f,b){f=Number(f)||0;let A=p.length-f;b?(b=Number(b),b>A&&(b=A)):b=A;let T=u.length;b>T/2&&(b=T/2);let P;for(P=0;P>>0,isFinite(b)?(b=b>>>0,A===void 0&&(A=\"utf8\")):(A=b,b=void 0);else throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");let T=this.length-f;if((b===void 0||b>T)&&(b=T),u.length>0&&(b<0||f<0)||f>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");A||(A=\"utf8\");let P=!1;for(;;)switch(A){case\"hex\":return K(this,u,f,b);case\"utf8\":case\"utf-8\":return z(this,u,f,b);case\"ascii\":case\"latin1\":case\"binary\":return Q(this,u,f,b);case\"base64\":return pe(this,u,f,b);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Yt(this,u,f,b);default:if(P)throw new TypeError(\"Unknown encoding: \"+A);A=(\"\"+A).toLowerCase(),P=!0}},s.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};function ge(p,u,f){return u===0&&f===p.length?t.fromByteArray(p):t.fromByteArray(p.slice(u,f))}function Pr(p,u,f){f=Math.min(p.length,f);let b=[],A=u;for(;A239?4:T>223?3:T>191?2:1;if(A+$<=f){let se,te,oe,J;switch($){case 1:T<128&&(P=T);break;case 2:se=p[A+1],(se&192)===128&&(J=(T&31)<<6|se&63,J>127&&(P=J));break;case 3:se=p[A+1],te=p[A+2],(se&192)===128&&(te&192)===128&&(J=(T&15)<<12|(se&63)<<6|te&63,J>2047&&(J<55296||J>57343)&&(P=J));break;case 4:se=p[A+1],te=p[A+2],oe=p[A+3],(se&192)===128&&(te&192)===128&&(oe&192)===128&&(J=(T&15)<<18|(se&63)<<12|(te&63)<<6|oe&63,J>65535&&J<1114112&&(P=J))}}P===null?(P=65533,$=1):P>65535&&(P-=65536,b.push(P>>>10&1023|55296),P=56320|P&1023),b.push(P),A+=$}return Or(b)}let kr=4096;function Or(p){let u=p.length;if(u<=kr)return String.fromCharCode.apply(String,p);let f=\"\",b=0;for(;bb)&&(f=b);let A=\"\";for(let T=u;Tb&&(u=b),f<0?(f+=b,f<0&&(f=0)):f>b&&(f=b),ff)throw new RangeError(\"Trying to access beyond buffer length\")}s.prototype.readUintLE=s.prototype.readUIntLE=function(u,f,b){u=u>>>0,f=f>>>0,b||ye(u,f,this.length);let A=this[u],T=1,P=0;for(;++P>>0,f=f>>>0,b||ye(u,f,this.length);let A=this[u+--f],T=1;for(;f>0&&(T*=256);)A+=this[u+--f]*T;return A},s.prototype.readUint8=s.prototype.readUInt8=function(u,f){return u=u>>>0,f||ye(u,1,this.length),this[u]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||ye(u,2,this.length),this[u]|this[u+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||ye(u,2,this.length),this[u]<<8|this[u+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},s.prototype.readBigUInt64LE=Mt(function(u){u=u>>>0,Mr(u,\"offset\");let f=this[u],b=this[u+7];(f===void 0||b===void 0)&&fi(u,this.length-8);let A=f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,T=this[++u]+this[++u]*2**8+this[++u]*2**16+b*2**24;return BigInt(A)+(BigInt(T)<>>0,Mr(u,\"offset\");let f=this[u],b=this[u+7];(f===void 0||b===void 0)&&fi(u,this.length-8);let A=f*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],T=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+b;return(BigInt(A)<>>0,f=f>>>0,b||ye(u,f,this.length);let A=this[u],T=1,P=0;for(;++P=T&&(A-=Math.pow(2,8*f)),A},s.prototype.readIntBE=function(u,f,b){u=u>>>0,f=f>>>0,b||ye(u,f,this.length);let A=f,T=1,P=this[u+--A];for(;A>0&&(T*=256);)P+=this[u+--A]*T;return T*=128,P>=T&&(P-=Math.pow(2,8*f)),P},s.prototype.readInt8=function(u,f){return u=u>>>0,f||ye(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},s.prototype.readInt16LE=function(u,f){u=u>>>0,f||ye(u,2,this.length);let b=this[u]|this[u+1]<<8;return b&32768?b|4294901760:b},s.prototype.readInt16BE=function(u,f){u=u>>>0,f||ye(u,2,this.length);let b=this[u+1]|this[u]<<8;return b&32768?b|4294901760:b},s.prototype.readInt32LE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},s.prototype.readInt32BE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},s.prototype.readBigInt64LE=Mt(function(u){u=u>>>0,Mr(u,\"offset\");let f=this[u],b=this[u+7];(f===void 0||b===void 0)&&fi(u,this.length-8);let A=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(b<<24);return(BigInt(A)<>>0,Mr(u,\"offset\");let f=this[u],b=this[u+7];(f===void 0||b===void 0)&&fi(u,this.length-8);let A=(f<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(A)<>>0,f||ye(u,4,this.length),e.read(this,u,!0,23,4)},s.prototype.readFloatBE=function(u,f){return u=u>>>0,f||ye(u,4,this.length),e.read(this,u,!1,23,4)},s.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||ye(u,8,this.length),e.read(this,u,!0,52,8)},s.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||ye(u,8,this.length),e.read(this,u,!1,52,8)};function Ce(p,u,f,b,A,T){if(!s.isBuffer(p))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(u>A||up.length)throw new RangeError(\"Index out of range\")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(u,f,b,A){if(u=+u,f=f>>>0,b=b>>>0,!A){let $=Math.pow(2,8*b)-1;Ce(this,u,f,b,$,0)}let T=1,P=0;for(this[f]=u&255;++P>>0,b=b>>>0,!A){let $=Math.pow(2,8*b)-1;Ce(this,u,f,b,$,0)}let T=b-1,P=1;for(this[f+T]=u&255;--T>=0&&(P*=256);)this[f+T]=u/P&255;return f+b},s.prototype.writeUint8=s.prototype.writeUInt8=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,1,255,0),this[f]=u&255,f+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function vl(p,u,f,b,A){Rl(u,b,A,p,f,7);let T=Number(u&BigInt(4294967295));p[f++]=T,T=T>>8,p[f++]=T,T=T>>8,p[f++]=T,T=T>>8,p[f++]=T;let P=Number(u>>BigInt(32)&BigInt(4294967295));return p[f++]=P,P=P>>8,p[f++]=P,P=P>>8,p[f++]=P,P=P>>8,p[f++]=P,f}function El(p,u,f,b,A){Rl(u,b,A,p,f,7);let T=Number(u&BigInt(4294967295));p[f+7]=T,T=T>>8,p[f+6]=T,T=T>>8,p[f+5]=T,T=T>>8,p[f+4]=T;let P=Number(u>>BigInt(32)&BigInt(4294967295));return p[f+3]=P,P=P>>8,p[f+2]=P,P=P>>8,p[f+1]=P,P=P>>8,p[f]=P,f+8}s.prototype.writeBigUInt64LE=Mt(function(u,f=0){return vl(this,u,f,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),s.prototype.writeBigUInt64BE=Mt(function(u,f=0){return El(this,u,f,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),s.prototype.writeIntLE=function(u,f,b,A){if(u=+u,f=f>>>0,!A){let se=Math.pow(2,8*b-1);Ce(this,u,f,b,se-1,-se)}let T=0,P=1,$=0;for(this[f]=u&255;++T>0)-$&255;return f+b},s.prototype.writeIntBE=function(u,f,b,A){if(u=+u,f=f>>>0,!A){let se=Math.pow(2,8*b-1);Ce(this,u,f,b,se-1,-se)}let T=b-1,P=1,$=0;for(this[f+T]=u&255;--T>=0&&(P*=256);)u<0&&$===0&&this[f+T+1]!==0&&($=1),this[f+T]=(u/P>>0)-$&255;return f+b},s.prototype.writeInt8=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},s.prototype.writeInt16LE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},s.prototype.writeInt16BE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},s.prototype.writeInt32LE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},s.prototype.writeInt32BE=function(u,f,b){return u=+u,f=f>>>0,b||Ce(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},s.prototype.writeBigInt64LE=Mt(function(u,f=0){return vl(this,u,f,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),s.prototype.writeBigInt64BE=Mt(function(u,f=0){return El(this,u,f,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))});function Sl(p,u,f,b,A,T){if(f+b>p.length)throw new RangeError(\"Index out of range\");if(f<0)throw new RangeError(\"Index out of range\")}function Al(p,u,f,b,A){return u=+u,f=f>>>0,A||Sl(p,u,f,4),e.write(p,u,f,b,23,4),f+4}s.prototype.writeFloatLE=function(u,f,b){return Al(this,u,f,!0,b)},s.prototype.writeFloatBE=function(u,f,b){return Al(this,u,f,!1,b)};function Il(p,u,f,b,A){return u=+u,f=f>>>0,A||Sl(p,u,f,8),e.write(p,u,f,b,52,8),f+8}s.prototype.writeDoubleLE=function(u,f,b){return Il(this,u,f,!0,b)},s.prototype.writeDoubleBE=function(u,f,b){return Il(this,u,f,!1,b)},s.prototype.copy=function(u,f,b,A){if(!s.isBuffer(u))throw new TypeError(\"argument should be a Buffer\");if(b||(b=0),!A&&A!==0&&(A=this.length),f>=u.length&&(f=u.length),f||(f=0),A>0&&A=this.length)throw new RangeError(\"Index out of range\");if(A<0)throw new RangeError(\"sourceEnd out of bounds\");A>this.length&&(A=this.length),u.length-f>>0,b=b===void 0?this.length:b>>>0,u||(u=0);let T;if(typeof u==\"number\")for(T=f;T2**32?A=Tl(String(f)):typeof f==\"bigint\"&&(A=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(A=Tl(A)),A+=\"n\"),b+=` It must be ${u}. Received ${A}`,b},RangeError);function Tl(p){let u=\"\",f=p.length,b=p[0]===\"-\"?1:0;for(;f>=b+4;f-=3)u=`_${p.slice(f-3,f)}${u}`;return`${p.slice(0,f)}${u}`}function jg(p,u,f){Mr(u,\"offset\"),(p[u]===void 0||p[u+f]===void 0)&&fi(u,p.length-(f+1))}function Rl(p,u,f,b,A,T){if(p>f||p3?u===0||u===BigInt(0)?$=`>= 0${P} and < 2${P} ** ${(T+1)*8}${P}`:$=`>= -(2${P} ** ${(T+1)*8-1}${P}) and < 2 ** ${(T+1)*8-1}${P}`:$=`>= ${u}${P} and <= ${f}${P}`,new xr.ERR_OUT_OF_RANGE(\"value\",$,p)}jg(b,A,T)}function Mr(p,u){if(typeof p!=\"number\")throw new xr.ERR_INVALID_ARG_TYPE(u,\"number\",p)}function fi(p,u,f){throw Math.floor(p)!==p?(Mr(p,f),new xr.ERR_OUT_OF_RANGE(f||\"offset\",\"an integer\",p)):u<0?new xr.ERR_BUFFER_OUT_OF_BOUNDS:new xr.ERR_OUT_OF_RANGE(f||\"offset\",`>= ${f?1:0} and <= ${u}`,p)}let Fg=/[^+/0-9A-Za-z-_]/g;function Wg(p){if(p=p.split(\"=\")[0],p=p.trim().replace(Fg,\"\"),p.length<2)return\"\";for(;p.length%4!==0;)p=p+\"=\";return p}function ps(p,u){u=u||1/0;let f,b=p.length,A=null,T=[];for(let P=0;P55295&&f<57344){if(!A){if(f>56319){(u-=3)>-1&&T.push(239,191,189);continue}else if(P+1===b){(u-=3)>-1&&T.push(239,191,189);continue}A=f;continue}if(f<56320){(u-=3)>-1&&T.push(239,191,189),A=f;continue}f=(A-55296<<10|f-56320)+65536}else A&&(u-=3)>-1&&T.push(239,191,189);if(A=null,f<128){if((u-=1)<0)break;T.push(f)}else if(f<2048){if((u-=2)<0)break;T.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;T.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;T.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error(\"Invalid code point\")}return T}function $g(p){let u=[];for(let f=0;f>8,A=f%256,T.push(A),T.push(b);return T}function Cl(p){return t.toByteArray(Wg(p))}function ji(p,u,f,b){let A;for(A=0;A=u.length||A>=p.length);++A)u[A+f]=p[A];return A}function Ye(p,u){return p instanceof u||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===u.name}function gs(p){return p!==p}let Vg=function(){let p=\"0123456789abcdef\",u=new Array(256);for(let f=0;f<16;++f){let b=f*16;for(let A=0;A<16;++A)u[b+A]=p[f]+p[A]}return u}();function Mt(p){return typeof BigInt>\"u\"?zg:p}function zg(){throw new Error(\"BigInt not supported\")}return Zt}var ci,Vu,Hi,zu,Zt,Ku,Ut,x,ty,ry,be=_e(()=>{_();v();m();ci={},Vu=!1;Hi={},zu=!1;Zt={},Ku=!1;Ut=ey();Ut.Buffer;Ut.SlowBuffer;Ut.INSPECT_MAX_BYTES;Ut.kMaxLength;x=Ut.Buffer,ty=Ut.INSPECT_MAX_BYTES,ry=Ut.kMaxLength});var v=_e(()=>{be()});var Gu=M(vs=>{\"use strict\";_();v();m();Object.defineProperty(vs,\"__esModule\",{value:!0});var ms=class{constructor(e){this.aliasToTopic={},this.max=e}put(e,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=e,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(e){return this.aliasToTopic[e]}clear(){this.aliasToTopic={}}};vs.default=ms});var ce=M((AA,Qu)=>{\"use strict\";_();v();m();Qu.exports={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Uint8Array}});var Je=M((kA,Ss)=>{\"use strict\";_();v();m();var iy=(be(),X(me)),ny=Object.getPrototypeOf(async function(){}).constructor,Yu=globalThis.Blob||iy.Blob,sy=typeof Yu<\"u\"?function(e){return e instanceof Yu}:function(e){return!1},Es=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r=\"\";for(let i=0;i{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i===\"f\"?n.toFixed(6):i===\"j\"?JSON.stringify(n):i===\"s\"&&typeof n==\"object\"?`${n.constructor!==Object?n.constructor.name:\"\"} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case\"string\":if(t.includes(\"'\"))if(t.includes('\"')){if(!t.includes(\"`\")&&!t.includes(\"${\"))return`\\`${t}\\``}else return`\"${t}\"`;return`'${t}'`;case\"number\":return isNaN(t)?\"NaN\":Object.is(t,-0)?String(t):t;case\"bigint\":return`${String(t)}n`;case\"boolean\":case\"undefined\":return String(t);case\"object\":return\"{}\"}},types:{isAsyncFunction(t){return t instanceof ny},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:sy};Ss.exports.promisify.custom=Symbol.for(\"nodejs.util.promisify.custom\")});var zi=M((qA,Vi)=>{\"use strict\";_();v();m();var{AbortController:Ju,AbortSignal:oy}=typeof self<\"u\"?self:typeof window<\"u\"?window:void 0;Vi.exports=Ju;Vi.exports.AbortSignal=oy;Vi.exports.default=Ju});var Ae=M((VA,ef)=>{\"use strict\";_();v();m();var{format:ay,inspect:Ki,AggregateError:ly}=Je(),uy=globalThis.AggregateError||ly,fy=Symbol(\"kIsNodeError\"),cy=[\"string\",\"function\",\"number\",\"object\",\"Function\",\"Object\",\"boolean\",\"bigint\",\"symbol\"],hy=/^([A-Z][a-z0-9]*)+$/,dy=\"__node_internal_\",Gi={};function er(t,e){if(!t)throw new Gi.ERR_INTERNAL_ASSERTION(e)}function Xu(t){let e=\"\",r=t.length,i=t[0]===\"-\"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function py(t,e,r){if(typeof e==\"function\")return er(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:ay(e,...r)}function ve(t,e,r){r||(r=Error);class i extends r{constructor(...o){super(py(t,e,o))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[fy]=!0,Gi[t]=i}function Zu(t){let e=dy+t.name;return Object.defineProperty(t,\"name\",{value:e}),t}function gy(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new uy([e,t],e.message);return r.code=e.code,r}return t||e}var As=class extends Error{constructor(e=\"The operation was aborted\",r=void 0){if(r!==void 0&&typeof r!=\"object\")throw new Gi.ERR_INVALID_ARG_TYPE(\"options\",\"Object\",r);super(e,r),this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};ve(\"ERR_ASSERTION\",\"%s\",Error);ve(\"ERR_INVALID_ARG_TYPE\",(t,e,r)=>{er(typeof t==\"string\",\"'name' must be a string\"),Array.isArray(e)||(e=[e]);let i=\"The \";t.endsWith(\" argument\")?i+=`${t} `:i+=`\"${t}\" ${t.includes(\".\")?\"property\":\"argument\"} `,i+=\"must be \";let n=[],o=[],s=[];for(let l of e)er(typeof l==\"string\",\"All expected entries have to be of type string\"),cy.includes(l)?n.push(l.toLowerCase()):hy.test(l)?o.push(l):(er(l!==\"object\",'The value \"object\" should be written as \"Object\"'),s.push(l));if(o.length>0){let l=n.indexOf(\"object\");l!==-1&&(n.splice(n,l,1),o.push(\"Object\"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(\", \")}, or ${l}`}}(o.length>0||s.length>0)&&(i+=\" or \")}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`an instance of ${o.join(\", \")}, or ${l}`}}s.length>0&&(i+=\" or \")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(i+=\"an \"),i+=`${s[0]}`;break;case 2:i+=`one of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`one of ${s.join(\", \")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r==\"function\"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r==\"object\"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=Ki(r,{depth:-1});i+=`. Received ${l}`}}else{let l=Ki(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);ve(\"ERR_INVALID_ARG_VALUE\",(t,e,r=\"is invalid\")=>{let i=Ki(e);return i.length>128&&(i=i.slice(0,128)+\"...\"),`The ${t.includes(\".\")?\"property\":\"argument\"} '${t}' ${r}. Received ${i}`},TypeError);ve(\"ERR_INVALID_RETURN_VALUE\",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the \"${e}\" function but got ${n}.`},TypeError);ve(\"ERR_MISSING_ARGS\",(...t)=>{er(t.length>0,\"At least one arg needs to be specified\");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`\"${i}\"`).join(\" or \"),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(\", \")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);ve(\"ERR_OUT_OF_RANGE\",(t,e,r)=>{er(e,'Missing \"range\" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Xu(String(r)):typeof r==\"bigint\"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=Xu(i)),i+=\"n\"):i=Ki(r),`The value of \"${t}\" is out of range. It must be ${e}. Received ${i}`},RangeError);ve(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\",Error);ve(\"ERR_METHOD_NOT_IMPLEMENTED\",\"The %s method is not implemented\",Error);ve(\"ERR_STREAM_ALREADY_FINISHED\",\"Cannot call %s after a stream was finished\",Error);ve(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\",Error);ve(\"ERR_STREAM_DESTROYED\",\"Cannot call %s after a stream was destroyed\",Error);ve(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError);ve(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\",Error);ve(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\",Error);ve(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\",Error);ve(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\",Error);ve(\"ERR_UNKNOWN_ENCODING\",\"Unknown encoding: %s\",TypeError);ef.exports={AbortError:As,aggregateTwoErrors:Zu(gy),hideStackFrames:Zu,codes:Gi}});var hi=M((XA,ff)=>{\"use strict\";_();v();m();var{ArrayIsArray:Ts,ArrayPrototypeIncludes:sf,ArrayPrototypeJoin:of,ArrayPrototypeMap:yy,NumberIsInteger:Rs,NumberIsNaN:by,NumberMAX_SAFE_INTEGER:wy,NumberMIN_SAFE_INTEGER:_y,NumberParseInt:my,ObjectPrototypeHasOwnProperty:vy,RegExpPrototypeExec:af,String:Ey,StringPrototypeToUpperCase:Sy,StringPrototypeTrim:Ay}=ce(),{hideStackFrames:Ue,codes:{ERR_SOCKET_BAD_PORT:Iy,ERR_INVALID_ARG_TYPE:Ie,ERR_INVALID_ARG_VALUE:Ur,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:tf}}=Ae(),{normalizeEncoding:Ty}=Je(),{isAsyncFunction:Ry,isArrayBufferView:Cy}=Je().types,rf={};function By(t){return t===(t|0)}function Py(t){return t===t>>>0}var ky=/^[0-7]+$/,Oy=\"must be a 32-bit unsigned integer or an octal string\";function xy(t,e,r){if(typeof t>\"u\"&&(t=r),typeof t==\"string\"){if(af(ky,t)===null)throw new Ur(e,t,Oy);t=my(t,8)}return lf(t,e),t}var My=Ue((t,e,r=_y,i=wy)=>{if(typeof t!=\"number\")throw new Ie(e,\"number\",t);if(!Rs(t))throw new tr(e,\"an integer\",t);if(ti)throw new tr(e,`>= ${r} && <= ${i}`,t)}),Ly=Ue((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!=\"number\")throw new Ie(e,\"number\",t);if(!Rs(t))throw new tr(e,\"an integer\",t);if(ti)throw new tr(e,`>= ${r} && <= ${i}`,t)}),lf=Ue((t,e,r=!1)=>{if(typeof t!=\"number\")throw new Ie(e,\"number\",t);if(!Rs(t))throw new tr(e,\"an integer\",t);let i=r?1:0,n=4294967295;if(tn)throw new tr(e,`>= ${i} && <= ${n}`,t)});function Cs(t,e){if(typeof t!=\"string\")throw new Ie(e,\"string\",t)}function Uy(t,e,r=void 0,i){if(typeof t!=\"number\")throw new Ie(e,\"number\",t);if(r!=null&&ti||(r!=null||i!=null)&&by(t))throw new tr(e,`${r!=null?`>= ${r}`:\"\"}${r!=null&&i!=null?\" && \":\"\"}${i!=null?`<= ${i}`:\"\"}`,t)}var Ny=Ue((t,e,r)=>{if(!sf(r,t)){let n=\"must be one of: \"+of(yy(r,o=>typeof o==\"string\"?`'${o}'`:Ey(o)),\", \");throw new Ur(e,t,n)}});function uf(t,e){if(typeof t!=\"boolean\")throw new Ie(e,\"boolean\",t)}function Is(t,e,r){return t==null||!vy(t,e)?r:t[e]}var qy=Ue((t,e,r=null)=>{let i=Is(r,\"allowArray\",!1),n=Is(r,\"allowFunction\",!1);if(!Is(r,\"nullable\",!1)&&t===null||!i&&Ts(t)||typeof t!=\"object\"&&(!n||typeof t!=\"function\"))throw new Ie(e,\"Object\",t)}),Dy=Ue((t,e)=>{if(t!=null&&typeof t!=\"object\"&&typeof t!=\"function\")throw new Ie(e,\"a dictionary\",t)}),Bs=Ue((t,e,r=0)=>{if(!Ts(t))throw new Ie(e,\"Array\",t);if(t.length{if(!Cy(t))throw new Ie(e,[\"Buffer\",\"TypedArray\",\"DataView\"],t)});function Hy(t,e){let r=Ty(e),i=t.length;if(r===\"hex\"&&i%2!==0)throw new Ur(\"encoding\",e,`is invalid for data of length ${i}`)}function Vy(t,e=\"Port\",r=!0){if(typeof t!=\"number\"&&typeof t!=\"string\"||typeof t==\"string\"&&Ay(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new Iy(e,t,r);return t|0}var zy=Ue((t,e)=>{if(t!==void 0&&(t===null||typeof t!=\"object\"||!(\"aborted\"in t)))throw new Ie(e,\"AbortSignal\",t)}),Ky=Ue((t,e)=>{if(typeof t!=\"function\")throw new Ie(e,\"Function\",t)}),Gy=Ue((t,e)=>{if(typeof t!=\"function\"||Ry(t))throw new Ie(e,\"Function\",t)}),Qy=Ue((t,e)=>{if(t!==void 0)throw new Ie(e,\"undefined\",t)});function Yy(t,e,r){if(!sf(r,t))throw new Ie(e,`('${of(r,\"|\")}')`,t)}var Jy=/^(?:<[^>]*>)(?:\\s*;\\s*[^;\"\\s]+(?:=(\")?[^;\"\\s]*\\1)?)*$/;function nf(t,e){if(typeof t>\"u\"||!af(Jy,t))throw new Ur(e,t,'must be an array or string of format \"; rel=preload; as=style\"')}function Xy(t){if(typeof t==\"string\")return nf(t,\"hints\"),t;if(Ts(t)){let e=t.length,r=\"\";if(e===0)return r;for(let i=0;i; rel=preload; as=style\"')}ff.exports={isInt32:By,isUint32:Py,parseFileMode:xy,validateArray:Bs,validateStringArray:jy,validateBooleanArray:Fy,validateBoolean:uf,validateBuffer:$y,validateDictionary:Dy,validateEncoding:Hy,validateFunction:Ky,validateInt32:Ly,validateInteger:My,validateNumber:Uy,validateObject:qy,validateOneOf:Ny,validatePlainFunction:Gy,validatePort:Vy,validateSignalName:Wy,validateString:Cs,validateUint32:lf,validateUndefined:Qy,validateUnion:Yy,validateAbortSignal:zy,validateLinkHeaderValue:Xy}});var Nt=M((sI,pf)=>{_();v();m();var ae=pf.exports={},Xe,Ze;function Ps(){throw new Error(\"setTimeout has not been defined\")}function ks(){throw new Error(\"clearTimeout has not been defined\")}(function(){try{typeof setTimeout==\"function\"?Xe=setTimeout:Xe=Ps}catch{Xe=Ps}try{typeof clearTimeout==\"function\"?Ze=clearTimeout:Ze=ks}catch{Ze=ks}})();function cf(t){if(Xe===setTimeout)return setTimeout(t,0);if((Xe===Ps||!Xe)&&setTimeout)return Xe=setTimeout,setTimeout(t,0);try{return Xe(t,0)}catch{try{return Xe.call(null,t,0)}catch{return Xe.call(this,t,0)}}}function Zy(t){if(Ze===clearTimeout)return clearTimeout(t);if((Ze===ks||!Ze)&&clearTimeout)return Ze=clearTimeout,clearTimeout(t);try{return Ze(t)}catch{try{return Ze.call(null,t)}catch{return Ze.call(this,t)}}}var _t=[],Nr=!1,rr,Qi=-1;function eb(){!Nr||!rr||(Nr=!1,rr.length?_t=rr.concat(_t):Qi=-1,_t.length&&hf())}function hf(){if(!Nr){var t=cf(eb);Nr=!0;for(var e=_t.length;e;){for(rr=_t,_t=[];++Qi1)for(var r=1;r{\"use strict\";_();v();m();var{Symbol:Yi,SymbolAsyncIterator:gf,SymbolIterator:yf,SymbolFor:bf}=ce(),wf=Yi(\"kDestroyed\"),_f=Yi(\"kIsErrored\"),Os=Yi(\"kIsReadable\"),mf=Yi(\"kIsDisturbed\"),tb=bf(\"nodejs.webstream.isClosedPromise\"),rb=bf(\"nodejs.webstream.controllerErrorFunction\");function Ji(t,e=!1){var r;return!!(t&&typeof t.pipe==\"function\"&&typeof t.on==\"function\"&&(!e||typeof t.pause==\"function\"&&typeof t.resume==\"function\")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Xi(t){var e;return!!(t&&typeof t.write==\"function\"&&typeof t.on==\"function\"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function ib(t){return!!(t&&typeof t.pipe==\"function\"&&t._readableState&&typeof t.on==\"function\"&&typeof t.write==\"function\")}function et(t){return t&&(t._readableState||t._writableState||typeof t.write==\"function\"&&typeof t.on==\"function\"||typeof t.pipe==\"function\"&&typeof t.on==\"function\")}function vf(t){return!!(t&&!et(t)&&typeof t.pipeThrough==\"function\"&&typeof t.getReader==\"function\"&&typeof t.cancel==\"function\")}function Ef(t){return!!(t&&!et(t)&&typeof t.getWriter==\"function\"&&typeof t.abort==\"function\")}function Sf(t){return!!(t&&!et(t)&&typeof t.readable==\"object\"&&typeof t.writable==\"object\")}function nb(t){return vf(t)||Ef(t)||Sf(t)}function sb(t,e){return t==null?!1:e===!0?typeof t[gf]==\"function\":e===!1?typeof t[yf]==\"function\":typeof t[gf]==\"function\"||typeof t[yf]==\"function\"}function Zi(t){if(!et(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[wf]||i!=null&&i.destroyed)}function Af(t){if(!Xi(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!=\"boolean\"?null:e.ended}function ob(t,e){if(!Xi(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!=\"boolean\"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function ab(t){if(!Ji(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!=\"boolean\"?null:e.ended}function If(t,e){if(!Ji(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!=\"boolean\"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function Tf(t){return t&&t[Os]!=null?t[Os]:typeof t?.readable!=\"boolean\"?null:Zi(t)?!1:Ji(t)&&t.readable&&!If(t)}function Rf(t){return typeof t?.writable!=\"boolean\"?null:Zi(t)?!1:Xi(t)&&t.writable&&!Af(t)}function lb(t,e){return et(t)?Zi(t)?!0:!(e?.readable!==!1&&Tf(t)||e?.writable!==!1&&Rf(t)):null}function ub(t){var e,r;return et(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function fb(t){var e,r;return et(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function cb(t){if(!et(t))return null;if(typeof t.closed==\"boolean\")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed==\"boolean\"||typeof r?.closed==\"boolean\"?e?.closed||r?.closed:typeof t._closed==\"boolean\"&&Cf(t)?t._closed:null}function Cf(t){return typeof t._closed==\"boolean\"&&typeof t._defaultKeepAlive==\"boolean\"&&typeof t._removedConnection==\"boolean\"&&typeof t._removedContLen==\"boolean\"}function Bf(t){return typeof t._sent100==\"boolean\"&&Cf(t)}function hb(t){var e;return typeof t._consuming==\"boolean\"&&typeof t._dumped==\"boolean\"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function db(t){if(!et(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&Bf(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function pb(t){var e;return!!(t&&((e=t[mf])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function gb(t){var e,r,i,n,o,s,a,l,c,h;return!!(t&&((e=(r=(i=(n=(o=(s=t[_f])!==null&&s!==void 0?s:t.readableErrored)!==null&&o!==void 0?o:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(c=t._readableState)===null||c===void 0?void 0:c.errored)!==null&&e!==void 0?e:!((h=t._writableState)===null||h===void 0)&&h.errored))}Pf.exports={kDestroyed:wf,isDisturbed:pb,kIsDisturbed:mf,isErrored:gb,kIsErrored:_f,isReadable:Tf,kIsReadable:Os,kIsClosedPromise:tb,kControllerErrorFunction:rb,isClosed:cb,isDestroyed:Zi,isDuplexNodeStream:ib,isFinished:lb,isIterable:sb,isReadableNodeStream:Ji,isReadableStream:vf,isReadableEnded:ab,isReadableFinished:If,isReadableErrored:fb,isNodeStream:et,isWebStream:nb,isWritable:Rf,isWritableNodeStream:Xi,isWritableStream:Ef,isWritableEnded:Af,isWritableFinished:ob,isWritableErrored:ub,isServerRequest:hb,isServerResponse:Bf,willEmitClose:db,isTransformStream:Sf}});var vt=M((_I,Ns)=>{_();v();m();var qt=Nt(),{AbortError:Df,codes:yb}=Ae(),{ERR_INVALID_ARG_TYPE:bb,ERR_STREAM_PREMATURE_CLOSE:kf}=yb,{kEmptyObject:Ms,once:Ls}=Je(),{validateAbortSignal:wb,validateFunction:_b,validateObject:mb,validateBoolean:vb}=hi(),{Promise:Eb,PromisePrototypeThen:Sb}=ce(),{isClosed:Ab,isReadable:Of,isReadableNodeStream:xs,isReadableStream:Ib,isReadableFinished:xf,isReadableErrored:Mf,isWritable:Lf,isWritableNodeStream:Uf,isWritableStream:Tb,isWritableFinished:Nf,isWritableErrored:qf,isNodeStream:Rb,willEmitClose:Cb,kIsClosedPromise:Bb}=tt();function Pb(t){return t.setHeader&&typeof t.abort==\"function\"}var Us=()=>{};function jf(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ms):e==null?e=Ms:mb(e,\"options\"),_b(r,\"callback\"),wb(e.signal,\"options.signal\"),r=Ls(r),Ib(t)||Tb(t))return kb(t,e,r);if(!Rb(t))throw new bb(\"stream\",[\"ReadableStream\",\"WritableStream\",\"Stream\"],t);let o=(i=e.readable)!==null&&i!==void 0?i:xs(t),s=(n=e.writable)!==null&&n!==void 0?n:Uf(t),a=t._writableState,l=t._readableState,c=()=>{t.writable||g()},h=Cb(t)&&xs(t)===o&&Uf(t)===s,d=Nf(t,!1),g=()=>{d=!0,t.destroyed&&(h=!1),!(h&&(!t.readable||o))&&(!o||y)&&r.call(t)},y=xf(t,!1),w=()=>{y=!0,t.destroyed&&(h=!1),!(h&&(!t.writable||s))&&(!s||d)&&r.call(t)},S=N=>{r.call(t,N)},E=Ab(t),I=()=>{E=!0;let N=qf(t)||Mf(t);if(N&&typeof N!=\"boolean\")return r.call(t,N);if(o&&!y&&xs(t,!0)&&!xf(t,!1))return r.call(t,new kf);if(s&&!d&&!Nf(t,!1))return r.call(t,new kf);r.call(t)},C=()=>{E=!0;let N=qf(t)||Mf(t);if(N&&typeof N!=\"boolean\")return r.call(t,N);r.call(t)},R=()=>{t.req.on(\"finish\",g)};Pb(t)?(t.on(\"complete\",g),h||t.on(\"abort\",I),t.req?R():t.on(\"request\",R)):s&&!a&&(t.on(\"end\",c),t.on(\"close\",c)),!h&&typeof t.aborted==\"boolean\"&&t.on(\"aborted\",I),t.on(\"end\",w),t.on(\"finish\",g),e.error!==!1&&t.on(\"error\",S),t.on(\"close\",I),E?qt.nextTick(I):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?h||qt.nextTick(C):(!o&&(!h||Of(t))&&(d||Lf(t)===!1)||!s&&(!h||Lf(t))&&(y||Of(t)===!1)||l&&t.req&&t.aborted)&&qt.nextTick(C);let U=()=>{r=Us,t.removeListener(\"aborted\",I),t.removeListener(\"complete\",g),t.removeListener(\"abort\",I),t.removeListener(\"request\",R),t.req&&t.req.removeListener(\"finish\",g),t.removeListener(\"end\",c),t.removeListener(\"close\",c),t.removeListener(\"finish\",g),t.removeListener(\"end\",w),t.removeListener(\"error\",S),t.removeListener(\"close\",I)};if(e.signal&&!E){let N=()=>{let W=r;U(),W.call(t,new Df(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)qt.nextTick(N);else{let W=r;r=Ls((...K)=>{e.signal.removeEventListener(\"abort\",N),W.apply(t,K)}),e.signal.addEventListener(\"abort\",N)}}return U}function kb(t,e,r){let i=!1,n=Us;if(e.signal)if(n=()=>{i=!0,r.call(t,new Df(void 0,{cause:e.signal.reason}))},e.signal.aborted)qt.nextTick(n);else{let s=r;r=Ls((...a)=>{e.signal.removeEventListener(\"abort\",n),s.apply(t,a)}),e.signal.addEventListener(\"abort\",n)}let o=(...s)=>{i||qt.nextTick(()=>r.apply(t,s))};return Sb(t[Bb].promise,o,o),Us}function Ob(t,e){var r;let i=!1;return e===null&&(e=Ms),(r=e)!==null&&r!==void 0&&r.cleanup&&(vb(e.cleanup,\"cleanup\"),i=e.cleanup),new Eb((n,o)=>{let s=jf(t,e,a=>{i&&s(),a?o(a):n()})})}Ns.exports=jf;Ns.exports.finished=Ob});var ir=M((TI,Gf)=>{\"use strict\";_();v();m();var rt=Nt(),{aggregateTwoErrors:xb,codes:{ERR_MULTIPLE_CALLBACK:Mb},AbortError:Lb}=Ae(),{Symbol:$f}=ce(),{kDestroyed:Ub,isDestroyed:Nb,isFinished:qb,isServerRequest:Db}=tt(),Hf=$f(\"kDestroy\"),qs=$f(\"kConstruct\");function Vf(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function jb(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e==\"function\"&&e(),this):(Vf(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Ff(this,t,e):this.once(Hf,function(o){Ff(this,xb(o,t),e)}),this)}function Ff(t,e,r){let i=!1;function n(o){if(i)return;i=!0;let s=t._readableState,a=t._writableState;Vf(o,a,s),a&&(a.closed=!0),s&&(s.closed=!0),typeof r==\"function\"&&r(o),o?rt.nextTick(Fb,t,o):rt.nextTick(zf,t)}try{t._destroy(e||null,n)}catch(o){n(o)}}function Fb(t,e){Ds(t,e),zf(t)}function zf(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit(\"close\")}function Ds(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit(\"error\",e))}function Wb(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function js(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?rt.nextTick(Ds,t,e):Ds(t,e))}function $b(t,e){if(typeof t._construct!=\"function\")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(qs,e),!(t.listenerCount(qs)>1)&&rt.nextTick(Hb,t)}function Hb(t){let e=!1;function r(i){if(e){js(t,i??new Mb);return}e=!0;let n=t._readableState,o=t._writableState,s=o||n;n&&(n.constructed=!0),o&&(o.constructed=!0),s.destroyed?t.emit(Hf,i):i?js(t,i,!0):rt.nextTick(Vb,t)}try{t._construct(i=>{rt.nextTick(r,i)})}catch(i){rt.nextTick(r,i)}}function Vb(t){t.emit(qs)}function Wf(t){return t?.setHeader&&typeof t.abort==\"function\"}function Kf(t){t.emit(\"close\")}function zb(t,e){t.emit(\"error\",e),rt.nextTick(Kf,t)}function Kb(t,e){!t||Nb(t)||(!e&&!qb(t)&&(e=new Lb),Db(t)?(t.socket=null,t.destroy(e)):Wf(t)?t.abort():Wf(t.req)?t.req.abort():typeof t.destroy==\"function\"?t.destroy(e):typeof t.close==\"function\"?t.close():e?rt.nextTick(zb,t,e):rt.nextTick(Kf,t),t.destroyed||(t[Ub]=!0))}Gf.exports={construct:$b,destroyer:Kb,destroy:jb,undestroy:Wb,errorOrDestroy:js}});function Y(){Y.init.call(this)}function en(t){if(typeof t!=\"function\")throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof t)}function nc(t){return t._maxListeners===void 0?Y.defaultMaxListeners:t._maxListeners}function Xf(t,e,r,i){var n,o,s,a;if(en(r),(o=t._events)===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit(\"newListener\",e,r.listener?r.listener:r),o=t._events),s=o[e]),s===void 0)s=o[e]=r,++t._eventsCount;else if(typeof s==\"function\"?s=o[e]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(n=nc(t))>0&&s.length>n&&!s.warned){s.warned=!0;var l=new Error(\"Possible EventEmitter memory leak detected. \"+s.length+\" \"+String(e)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");l.name=\"MaxListenersExceededWarning\",l.emitter=t,l.type=e,l.count=s.length,a=l,console&&console.warn&&console.warn(a)}return t}function Gb(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Zf(t,e,r){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},n=Gb.bind(i);return n.listener=r,i.wrapFn=n,n}function ec(t,e,r){var i=t._events;if(i===void 0)return[];var n=i[e];return n===void 0?[]:typeof n==\"function\"?r?[n.listener||n]:[n]:r?function(o){for(var s=new Array(o.length),a=0;a{_();v();m();qr=typeof Reflect==\"object\"?Reflect:null,Qf=qr&&typeof qr.apply==\"function\"?qr.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};ic=qr&&typeof qr.ownKeys==\"function\"?qr.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};Yf=Number.isNaN||function(t){return t!=t};rc=Y,Y.EventEmitter=Y,Y.prototype._events=void 0,Y.prototype._eventsCount=0,Y.prototype._maxListeners=void 0;Jf=10;Object.defineProperty(Y,\"defaultMaxListeners\",{enumerable:!0,get:function(){return Jf},set:function(t){if(typeof t!=\"number\"||t<0||Yf(t))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+t+\".\");Jf=t}}),Y.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Y.prototype.setMaxListeners=function(t){if(typeof t!=\"number\"||t<0||Yf(t))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+t+\".\");return this._maxListeners=t,this},Y.prototype.getMaxListeners=function(){return nc(this)},Y.prototype.emit=function(t){for(var e=[],r=1;r0&&(o=e[0]),o instanceof Error)throw o;var s=new Error(\"Unhandled error.\"+(o?\" (\"+o.message+\")\":\"\"));throw s.context=o,s}var a=n[t];if(a===void 0)return!1;if(typeof a==\"function\")Qf(a,this,e);else{var l=a.length,c=sc(a,l);for(r=0;r=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,n=o;break}if(n<0)return this;n===0?r.shift():function(a,l){for(;l+1=0;i--)this.removeListener(t,e[i]);return this},Y.prototype.listeners=function(t){return ec(this,t,!0)},Y.prototype.rawListeners=function(t){return ec(this,t,!1)},Y.listenerCount=function(t,e){return typeof t.listenerCount==\"function\"?t.listenerCount(e):tc.call(t,e)},Y.prototype.listenerCount=tc,Y.prototype.eventNames=function(){return this._eventsCount>0?ic(this._events):[]};Be=rc;Be.EventEmitter;Be.defaultMaxListeners;Be.init;Be.listenerCount;Be.EventEmitter;Be.defaultMaxListeners;Be.init;Be.listenerCount});var nr={};Jt(nr,{EventEmitter:()=>Qb,default:()=>Be,defaultMaxListeners:()=>Yb,init:()=>Jb,listenerCount:()=>Xb,on:()=>Zb,once:()=>ew});var Qb,Yb,Jb,Xb,Zb,ew,sr=_e(()=>{_();v();m();Fs();Fs();Be.once=function(t,e){return new Promise((r,i)=>{function n(...s){o!==void 0&&t.removeListener(\"error\",o),r(s)}let o;e!==\"error\"&&(o=s=>{t.removeListener(name,n),i(s)},t.once(\"error\",o)),t.once(e,n)})};Be.on=function(t,e){let r=[],i=[],n=null,o=!1,s={async next(){let c=r.shift();if(c)return createIterResult(c,!1);if(n){let h=Promise.reject(n);return n=null,h}return o?createIterResult(void 0,!0):new Promise((h,d)=>i.push({resolve:h,reject:d}))},async return(){t.removeListener(e,a),t.removeListener(\"error\",l),o=!0;for(let c of i)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){n=c,t.removeListener(e,a),t.removeListener(\"error\",l)},[Symbol.asyncIterator](){return this}};return t.on(e,a),t.on(\"error\",l),s;function a(...c){let h=i.shift();h?h.resolve(createIterResult(c,!1)):r.push(c)}function l(c){o=!0;let h=i.shift();h?h.reject(c):n=c,s.return()}};({EventEmitter:Qb,defaultMaxListeners:Yb,init:Jb,listenerCount:Xb,on:Zb,once:ew}=Be)});var nn=M((GI,ac)=>{\"use strict\";_();v();m();var{ArrayIsArray:tw,ObjectSetPrototypeOf:oc}=ce(),{EventEmitter:tn}=(sr(),X(nr));function rn(t){tn.call(this,t)}oc(rn.prototype,tn.prototype);oc(rn,tn);rn.prototype.pipe=function(t,e){let r=this;function i(h){t.writable&&t.write(h)===!1&&r.pause&&r.pause()}r.on(\"data\",i);function n(){r.readable&&r.resume&&r.resume()}t.on(\"drain\",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on(\"end\",s),r.on(\"close\",a));let o=!1;function s(){o||(o=!0,t.end())}function a(){o||(o=!0,typeof t.destroy==\"function\"&&t.destroy())}function l(h){c(),tn.listenerCount(this,\"error\")===0&&this.emit(\"error\",h)}Ws(r,\"error\",l),Ws(t,\"error\",l);function c(){r.removeListener(\"data\",i),t.removeListener(\"drain\",n),r.removeListener(\"end\",s),r.removeListener(\"close\",a),r.removeListener(\"error\",l),t.removeListener(\"error\",l),r.removeListener(\"end\",c),r.removeListener(\"close\",c),t.removeListener(\"close\",c)}return r.on(\"end\",c),r.on(\"close\",c),t.on(\"close\",c),t.emit(\"pipe\",r),t};function Ws(t,e,r){if(typeof t.prependListener==\"function\")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):tw(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}ac.exports={Stream:rn,prependListener:Ws}});var di=M((tT,sn)=>{\"use strict\";_();v();m();var{AbortError:lc,codes:rw}=Ae(),{isNodeStream:uc,isWebStream:iw,kControllerErrorFunction:nw}=tt(),sw=vt(),{ERR_INVALID_ARG_TYPE:fc}=rw,ow=(t,e)=>{if(typeof t!=\"object\"||!(\"aborted\"in t))throw new fc(e,\"AbortSignal\",t)};sn.exports.addAbortSignal=function(e,r){if(ow(e,\"signal\"),!uc(r)&&!iw(r))throw new fc(\"stream\",[\"ReadableStream\",\"WritableStream\",\"Stream\"],r);return sn.exports.addAbortSignalNoValidate(e,r)};sn.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!=\"object\"||!(\"aborted\"in t))return e;let r=uc(e)?()=>{e.destroy(new lc(void 0,{cause:t.reason}))}:()=>{e[nw](new lc(void 0,{cause:t.reason}))};return t.aborted?r():(t.addEventListener(\"abort\",r),sw(e,()=>t.removeEventListener(\"abort\",r))),e}});var dc=M((uT,hc)=>{\"use strict\";_();v();m();var{StringPrototypeSlice:cc,SymbolIterator:aw,TypedArrayPrototypeSet:on,Uint8Array:lw}=ce(),{Buffer:$s}=(be(),X(me)),{inspect:uw}=Je();hc.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return\"\";let r=this.head,i=\"\"+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return $s.alloc(0);let r=$s.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)on(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(eo.length)r+=o,e-=o.length;else{e===o.length?(r+=o,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=cc(o,0,e),this.head=i,i.data=cc(o,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=$s.allocUnsafe(e),i=e,n=this.head,o=0;do{let s=n.data;if(e>s.length)on(r,s,i-e),e-=s.length;else{e===s.length?(on(r,s,i-e),++o,n.next?this.head=n.next:this.head=this.tail=null):(on(r,new lw(s.buffer,s.byteOffset,e),i-e),this.head=n,n.data=s.slice(e));break}++o}while((n=n.next)!==null);return this.length-=o,r}[Symbol.for(\"nodejs.util.inspect.custom\")](e,r){return uw(this,{...r,depth:0,customInspect:!1})}}});var an=M((yT,gc)=>{\"use strict\";_();v();m();var{MathFloor:fw,NumberIsInteger:cw}=ce(),{ERR_INVALID_ARG_VALUE:hw}=Ae().codes;function dw(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function pc(t){return t?16:16*1024}function pw(t,e,r,i){let n=dw(e,i,r);if(n!=null){if(!cw(n)||n<0){let o=i?`options.${r}`:\"options.highWaterMark\";throw new hw(o,n)}return fw(n)}return pc(t.objectMode)}gc.exports={getHighWaterMark:pw,getDefaultHighWaterMark:pc}});function wc(t){var e=t.length;if(e%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=t.indexOf(\"=\");return r===-1&&(r=e),[r,r===e?0:4-r%4]}function gw(t,e,r){for(var i,n,o=[],s=e;s>18&63]+$e[n>>12&63]+$e[n>>6&63]+$e[63&n]);return o.join(\"\")}function Et(t){if(t>2147483647)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,O.prototype),e}function O(t,e,r){if(typeof t==\"number\"){if(typeof e==\"string\")throw new TypeError('The \"string\" argument must be of type string. Received type number');return Ks(t)}return Cc(t,e,r)}function Cc(t,e,r){if(typeof t==\"string\")return function(o,s){if(typeof s==\"string\"&&s!==\"\"||(s=\"utf8\"),!O.isEncoding(s))throw new TypeError(\"Unknown encoding: \"+s);var a=0|Pc(o,s),l=Et(a),c=l.write(o,s);return c!==a&&(l=l.slice(0,c)),l}(t,e);if(ArrayBuffer.isView(t))return Hs(t);if(t==null)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t);if(St(t,ArrayBuffer)||t&&St(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<\"u\"&&(St(t,SharedArrayBuffer)||t&&St(t.buffer,SharedArrayBuffer)))return mc(t,e,r);if(typeof t==\"number\")throw new TypeError('The \"value\" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(i!=null&&i!==t)return O.from(i,e,r);var n=function(o){if(O.isBuffer(o)){var s=0|Ys(o.length),a=Et(s);return a.length===0||o.copy(a,0,0,s),a}if(o.length!==void 0)return typeof o.length!=\"number\"||Js(o.length)?Et(0):Hs(o);if(o.type===\"Buffer\"&&Array.isArray(o.data))return Hs(o.data)}(t);if(n)return n;if(typeof Symbol<\"u\"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]==\"function\")return O.from(t[Symbol.toPrimitive](\"string\"),e,r);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof t)}function Bc(t){if(typeof t!=\"number\")throw new TypeError('\"size\" argument must be of type number');if(t<0)throw new RangeError('The value \"'+t+'\" is invalid for option \"size\"')}function Ks(t){return Bc(t),Et(t<0?0:0|Ys(t))}function Hs(t){for(var e=t.length<0?0:0|Ys(t.length),r=Et(e),i=0;i=2147483647)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+2147483647 .toString(16)+\" bytes\");return 0|t}function Pc(t,e){if(O.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||St(t,ArrayBuffer))return t.byteLength;if(typeof t!=\"string\")throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;for(var n=!1;;)switch(e){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return Gs(t).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return Mc(t).length;default:if(n)return i?-1:Gs(t).length;e=(\"\"+e).toLowerCase(),n=!0}}function bw(t,e,r){var i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return\"\";for(t||(t=\"utf8\");;)switch(t){case\"hex\":return Tw(this,e,r);case\"utf8\":case\"utf-8\":return Oc(this,e,r);case\"ascii\":return Aw(this,e,r);case\"latin1\":case\"binary\":return Iw(this,e,r);case\"base64\":return Sw(this,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Rw(this,e,r);default:if(i)throw new TypeError(\"Unknown encoding: \"+t);t=(t+\"\").toLowerCase(),i=!0}}function ar(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function vc(t,e,r,i,n){if(t.length===0)return-1;if(typeof r==\"string\"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Js(r=+r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if(typeof e==\"string\"&&(e=O.from(e,i)),O.isBuffer(e))return e.length===0?-1:Ec(t,e,r,i,n);if(typeof e==\"number\")return e&=255,typeof Uint8Array.prototype.indexOf==\"function\"?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Ec(t,[e],r,i,n);throw new TypeError(\"val must be string, number or Buffer\")}function Ec(t,e,r,i,n){var o,s=1,a=t.length,l=e.length;if(i!==void 0&&((i=String(i).toLowerCase())===\"ucs2\"||i===\"ucs-2\"||i===\"utf16le\"||i===\"utf-16le\")){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,r/=2}function c(y,w){return s===1?y[w]:y.readUInt16BE(w*s)}if(n){var h=-1;for(o=r;oa&&(r=a-l),o=r;o>=0;o--){for(var d=!0,g=0;gn&&(i=n):i=n;var o=e.length;i>o/2&&(i=o/2);for(var s=0;s>8,l=s%256,c.push(l),c.push(a);return c}(e,t.length-r),t,r,i)}function Sw(t,e,r){return e===0&&r===t.length?zs.fromByteArray(t):zs.fromByteArray(t.slice(e,r))}function Oc(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n239?4:c>223?3:c>191?2:1;if(n+d<=r)switch(d){case 1:c<128&&(h=c);break;case 2:(192&(o=t[n+1]))==128&&(l=(31&c)<<6|63&o)>127&&(h=l);break;case 3:o=t[n+1],s=t[n+2],(192&o)==128&&(192&s)==128&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(h=l)}h===null?(h=65533,d=1):h>65535&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=d}return function(g){var y=g.length;if(y<=4096)return String.fromCharCode.apply(String,g);for(var w=\"\",S=0;Si)&&(r=i);for(var n=\"\",o=e;or)throw new RangeError(\"Trying to access beyond buffer length\")}function Pe(t,e,r,i,n,o){if(!O.isBuffer(t))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(e>n||et.length)throw new RangeError(\"Index out of range\")}function xc(t,e,r,i,n,o){if(r+i>t.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function Sc(t,e,r,i,n){return e=+e,r>>>=0,n||xc(t,0,r,4),Dr.write(t,e,r,i,23,4),r+4}function Ac(t,e,r,i,n){return e=+e,r>>>=0,n||xc(t,0,r,8),Dr.write(t,e,r,i,52,8),r+8}function Gs(t,e){var r;e=e||1/0;for(var i=t.length,n=null,o=[],s=0;s55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error(\"Invalid code point\");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Mc(t){return zs.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(Cw,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(t))}function cn(t,e,r,i){for(var n=0;n=e.length||n>=t.length);++n)e[n+r]=t[n];return n}function St(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Js(t){return t!=t}function Ic(t,e){for(var r in t)e[r]=t[r]}function lr(t,e,r){return it(t,e,r)}function pi(t){var e;switch(this.encoding=function(r){var i=function(n){if(!n)return\"utf8\";for(var o;;)switch(n){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return n;default:if(o)return;n=(\"\"+n).toLowerCase(),o=!0}}(r);if(typeof i!=\"string\"&&(Qs.isEncoding===Tc||!Tc(r)))throw new Error(\"Unknown encoding: \"+r);return i||r}(t),this.encoding){case\"utf16le\":this.text=Ow,this.end=xw,e=4;break;case\"utf8\":this.fillLast=kw,e=4;break;case\"base64\":this.text=Mw,this.end=Lw,e=3;break;default:return this.write=Uw,this.end=Nw,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=Qs.allocUnsafe(e)}function Vs(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function kw(t){var e=this.lastTotal-this.lastNeed,r=function(i,n,o){if((192&n[0])!=128)return i.lastNeed=0,\"\\uFFFD\";if(i.lastNeed>1&&n.length>1){if((192&n[1])!=128)return i.lastNeed=1,\"\\uFFFD\";if(i.lastNeed>2&&n.length>2&&(192&n[2])!=128)return i.lastNeed=2,\"\\uFFFD\"}}(this,t);return r!==void 0?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length,void 0)}function Ow(t,e){if((t.length-e)%2==0){var r=t.toString(\"utf16le\",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(\"utf16le\",e,t.length-1)}function xw(t){var e=t&&t.length?this.write(t):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(\"utf16le\",0,r)}return e}function Mw(t,e){var r=(t.length-e)%3;return r===0?t.toString(\"base64\",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(\"base64\",e,t.length-r))}function Lw(t){var e=t&&t.length?this.write(t):\"\";return this.lastNeed?e+this.lastChar.toString(\"base64\",0,3-this.lastNeed):e}function Uw(t){return t.toString(this.encoding)}function Nw(t){return t&&t.length?this.write(t):\"\"}var Rc,$e,Oe,yc,ln,or,bc,yw,At,zs,Dr,_c,Cw,Bw,un,fn,it,Pw,ur,Qs,Tc,Xs=_e(()=>{_();v();m();for(Rc={byteLength:function(t){var e=wc(t),r=e[0],i=e[1];return 3*(r+i)/4-i},toByteArray:function(t){var e,r,i=wc(t),n=i[0],o=i[1],s=new yc(function(c,h,d){return 3*(h+d)/4-d}(0,n,o)),a=0,l=o>0?n-4:n;for(r=0;r>16&255,s[a++]=e>>8&255,s[a++]=255&e;return o===2&&(e=Oe[t.charCodeAt(r)]<<2|Oe[t.charCodeAt(r+1)]>>4,s[a++]=255&e),o===1&&(e=Oe[t.charCodeAt(r)]<<10|Oe[t.charCodeAt(r+1)]<<4|Oe[t.charCodeAt(r+2)]>>2,s[a++]=e>>8&255,s[a++]=255&e),s},fromByteArray:function(t){for(var e,r=t.length,i=r%3,n=[],o=0,s=r-i;os?s:o+16383));return i===1?(e=t[r-1],n.push($e[e>>2]+$e[e<<4&63]+\"==\")):i===2&&(e=(t[r-2]<<8)+t[r-1],n.push($e[e>>10]+$e[e>>4&63]+$e[e<<2&63]+\"=\")),n.join(\"\")}},$e=[],Oe=[],yc=typeof Uint8Array<\"u\"?Uint8Array:Array,ln=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",or=0,bc=ln.length;or>1,h=-7,d=r?n-1:0,g=r?-1:1,y=t[e+d];for(d+=g,o=y&(1<<-h)-1,y>>=-h,h+=a;h>0;o=256*o+t[e+d],d+=g,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=i;h>0;s=256*s+t[e+d],d+=g,h-=8);if(o===0)o=1-c;else{if(o===l)return s?NaN:1/0*(y?-1:1);s+=Math.pow(2,i),o-=c}return(y?-1:1)*s*Math.pow(2,o-i)},write:function(t,e,r,i,n,o){var s,a,l,c=8*o-n-1,h=(1<>1,g=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,w=i?1:-1,S=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+d>=1?g/l:g*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=h?(a=0,s=h):s+d>=1?(a=(e*l-1)*Math.pow(2,n),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;t[r+y]=255&a,y+=w,a/=256,n-=8);for(s=s<0;t[r+y]=255&s,y+=w,s/=256,c-=8);t[r+y-w]|=128*S}},At={},zs=Rc,Dr=yw,_c=typeof Symbol==\"function\"&&typeof Symbol.for==\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;At.Buffer=O,At.SlowBuffer=function(t){return+t!=t&&(t=0),O.alloc(+t)},At.INSPECT_MAX_BYTES=50;At.kMaxLength=2147483647,O.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}(),O.TYPED_ARRAY_SUPPORT||typeof console>\"u\"||typeof console.error!=\"function\"||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(O.prototype,\"parent\",{enumerable:!0,get:function(){if(O.isBuffer(this))return this.buffer}}),Object.defineProperty(O.prototype,\"offset\",{enumerable:!0,get:function(){if(O.isBuffer(this))return this.byteOffset}}),O.poolSize=8192,O.from=function(t,e,r){return Cc(t,e,r)},Object.setPrototypeOf(O.prototype,Uint8Array.prototype),Object.setPrototypeOf(O,Uint8Array),O.alloc=function(t,e,r){return function(i,n,o){return Bc(i),i<=0?Et(i):n!==void 0?typeof o==\"string\"?Et(i).fill(n,o):Et(i).fill(n):Et(i)}(t,e,r)},O.allocUnsafe=function(t){return Ks(t)},O.allocUnsafeSlow=function(t){return Ks(t)},O.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==O.prototype},O.compare=function(t,e){if(St(t,Uint8Array)&&(t=O.from(t,t.offset,t.byteLength)),St(e,Uint8Array)&&(e=O.from(e,e.offset,e.byteLength)),!O.isBuffer(t)||!O.isBuffer(e))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);ne&&(t+=\" ... \"),\"\"},_c&&(O.prototype[_c]=O.prototype.inspect),O.prototype.compare=function(t,e,r,i,n){if(St(t,Uint8Array)&&(t=O.from(t,t.offset,t.byteLength)),!O.isBuffer(t))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),r===void 0&&(r=t?t.length:0),i===void 0&&(i=0),n===void 0&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError(\"out of range index\");if(i>=n&&e>=r)return 0;if(i>=n)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(i>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(i,n),c=t.slice(e,r),h=0;h>>=0,isFinite(r)?(r>>>=0,i===void 0&&(i=\"utf8\")):(i=r,r=void 0)}var n=this.length-e;if((r===void 0||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i||(i=\"utf8\");for(var o=!1;;)switch(i){case\"hex\":return ww(this,t,e,r);case\"utf8\":case\"utf-8\":return _w(this,t,e,r);case\"ascii\":return kc(this,t,e,r);case\"latin1\":case\"binary\":return mw(this,t,e,r);case\"base64\":return vw(this,t,e,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return Ew(this,t,e,r);default:if(o)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),o=!0}},O.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};O.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=e===void 0?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||we(t,e,this.length);for(var i=this[t],n=1,o=0;++o>>=0,e>>>=0,r||we(t,e,this.length);for(var i=this[t+--e],n=1;e>0&&(n*=256);)i+=this[t+--e]*n;return i},O.prototype.readUInt8=function(t,e){return t>>>=0,e||we(t,1,this.length),this[t]},O.prototype.readUInt16LE=function(t,e){return t>>>=0,e||we(t,2,this.length),this[t]|this[t+1]<<8},O.prototype.readUInt16BE=function(t,e){return t>>>=0,e||we(t,2,this.length),this[t]<<8|this[t+1]},O.prototype.readUInt32LE=function(t,e){return t>>>=0,e||we(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},O.prototype.readUInt32BE=function(t,e){return t>>>=0,e||we(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},O.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||we(t,e,this.length);for(var i=this[t],n=1,o=0;++o=(n*=128)&&(i-=Math.pow(2,8*e)),i},O.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||we(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},O.prototype.readInt8=function(t,e){return t>>>=0,e||we(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},O.prototype.readInt16LE=function(t,e){t>>>=0,e||we(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},O.prototype.readInt16BE=function(t,e){t>>>=0,e||we(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},O.prototype.readInt32LE=function(t,e){return t>>>=0,e||we(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},O.prototype.readInt32BE=function(t,e){return t>>>=0,e||we(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},O.prototype.readFloatLE=function(t,e){return t>>>=0,e||we(t,4,this.length),Dr.read(this,t,!0,23,4)},O.prototype.readFloatBE=function(t,e){return t>>>=0,e||we(t,4,this.length),Dr.read(this,t,!1,23,4)},O.prototype.readDoubleLE=function(t,e){return t>>>=0,e||we(t,8,this.length),Dr.read(this,t,!0,52,8)},O.prototype.readDoubleBE=function(t,e){return t>>>=0,e||we(t,8,this.length),Dr.read(this,t,!1,52,8)},O.prototype.writeUIntLE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||Pe(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,i||Pe(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[e+n]=255&t;--n>=0&&(o*=256);)this[e+n]=t/o&255;return e+r},O.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,1,255,0),this[e]=255&t,e+1},O.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},O.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},O.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},O.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},O.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e>>>=0,!i){var n=Math.pow(2,8*r-1);Pe(this,t,e,r,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},O.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e>>>=0,!i){var n=Math.pow(2,8*r-1);Pe(this,t,e,r,n-1,-n)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&a===0&&this[e+o+1]!==0&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},O.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},O.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},O.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},O.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},O.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Pe(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},O.prototype.writeFloatLE=function(t,e,r){return Sc(this,t,e,!0,r)},O.prototype.writeFloatBE=function(t,e,r){return Sc(this,t,e,!1,r)},O.prototype.writeDoubleLE=function(t,e,r){return Ac(this,t,e,!0,r)},O.prototype.writeDoubleBE=function(t,e,r){return Ac(this,t,e,!1,r)},O.prototype.copy=function(t,e,r,i){if(!O.isBuffer(t))throw new TypeError(\"argument should be a Buffer\");if(r||(r=0),i||i===0||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError(\"Index out of range\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,i),e);return n},O.prototype.fill=function(t,e,r,i){if(typeof t==\"string\"){if(typeof e==\"string\"?(i=e,e=0,r=this.length):typeof r==\"string\"&&(i=r,r=this.length),i!==void 0&&typeof i!=\"string\")throw new TypeError(\"encoding must be a string\");if(typeof i==\"string\"&&!O.isEncoding(i))throw new TypeError(\"Unknown encoding: \"+i);if(t.length===1){var n=t.charCodeAt(0);(i===\"utf8\"&&n<128||i===\"latin1\")&&(t=n)}}else typeof t==\"number\"?t&=255:typeof t==\"boolean\"&&(t=Number(t));if(e<0||this.length>>=0,r=r===void 0?this.length:r>>>0,t||(t=0),typeof t==\"number\")for(o=e;o=0?(l>0&&(n.lastNeed=l-1),l):--a=0?(l>0&&(n.lastNeed=l-2),l):--a=0?(l>0&&(l===2?l=0:n.lastNeed=l-3),l):0}(this,t,e);if(!this.lastNeed)return t.toString(\"utf8\",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString(\"utf8\",e,i)},pi.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};ur.StringDecoder;ur.StringDecoder});var Lc={};Jt(Lc,{StringDecoder:()=>qw,default:()=>ur});var qw,Uc=_e(()=>{_();v();m();Xs();Xs();qw=ur.StringDecoder});var Zs=M((qT,jc)=>{\"use strict\";_();v();m();var Nc=Nt(),{PromisePrototypeThen:Dw,SymbolAsyncIterator:qc,SymbolIterator:Dc}=ce(),{Buffer:jw}=(be(),X(me)),{ERR_INVALID_ARG_TYPE:Fw,ERR_STREAM_NULL_VALUES:Ww}=Ae().codes;function $w(t,e,r){let i;if(typeof e==\"string\"||e instanceof jw)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[qc])n=!0,i=e[qc]();else if(e&&e[Dc])n=!1,i=e[Dc]();else throw new Fw(\"iterable\",[\"Iterable\"],e);let o=new t({objectMode:!0,highWaterMark:1,...r}),s=!1;o._read=function(){s||(s=!0,l())},o._destroy=function(c,h){Dw(a(c),()=>Nc.nextTick(h,c),d=>Nc.nextTick(h,d||c))};async function a(c){let h=c!=null,d=typeof i.throw==\"function\";if(h&&d){let{value:g,done:y}=await i.throw(c);if(await g,y)return}if(typeof i.return==\"function\"){let{value:g}=await i.return();await g}}async function l(){for(;;){try{let{value:c,done:h}=n?await i.next():i.next();if(h)o.push(null);else{let d=c&&typeof c.then==\"function\"?await c:c;if(d===null)throw s=!1,new Ww;if(o.push(d))continue;s=!1}}catch(c){o.destroy(c)}break}}return o}jc.exports=$w});var gi=M((VT,Zc)=>{_();v();m();var He=Nt(),{ArrayPrototypeIndexOf:Hw,NumberIsInteger:Vw,NumberIsNaN:zw,NumberParseInt:Kw,ObjectDefineProperties:$c,ObjectKeys:Gw,ObjectSetPrototypeOf:Hc,Promise:Qw,SafeSet:Yw,SymbolAsyncIterator:Jw,Symbol:Xw}=ce();Zc.exports=F;F.ReadableState=so;var{EventEmitter:Zw}=(sr(),X(nr)),{Stream:Dt,prependListener:e_}=nn(),{Buffer:eo}=(be(),X(me)),{addAbortSignal:t_}=di(),r_=vt(),H=Je().debuglog(\"stream\",t=>{H=t}),i_=dc(),Fr=ir(),{getHighWaterMark:n_,getDefaultHighWaterMark:s_}=an(),{aggregateTwoErrors:Fc,codes:{ERR_INVALID_ARG_TYPE:o_,ERR_METHOD_NOT_IMPLEMENTED:a_,ERR_OUT_OF_RANGE:l_,ERR_STREAM_PUSH_AFTER_EOF:u_,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:f_}}=Ae(),{validateObject:c_}=hi(),fr=Xw(\"kPaused\"),{StringDecoder:Vc}=(Uc(),X(Lc)),h_=Zs();Hc(F.prototype,Dt.prototype);Hc(F,Dt);var to=()=>{},{errorOrDestroy:jr}=Fr;function so(t,e,r){typeof r!=\"boolean\"&&(r=e instanceof nt()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.readableObjectMode)),this.highWaterMark=t?n_(this,t,\"readableHighWaterMark\",r):s_(!1),this.buffer=new i_,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[fr]=null,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=t&&t.defaultEncoding||\"utf8\",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Vc(t.encoding),this.encoding=t.encoding)}function F(t){if(!(this instanceof F))return new F(t);let e=this instanceof nt();this._readableState=new so(t,this,e),t&&(typeof t.read==\"function\"&&(this._read=t.read),typeof t.destroy==\"function\"&&(this._destroy=t.destroy),typeof t.construct==\"function\"&&(this._construct=t.construct),t.signal&&!e&&t_(t.signal,this)),Dt.call(this,t),Fr.construct(this,()=>{this._readableState.needReadable&&hn(this,this._readableState)})}F.prototype.destroy=Fr.destroy;F.prototype._undestroy=Fr.undestroy;F.prototype._destroy=function(t,e){e(t)};F.prototype[Zw.captureRejectionSymbol]=function(t){this.destroy(t)};F.prototype.push=function(t,e){return zc(this,t,e,!1)};F.prototype.unshift=function(t,e){return zc(this,t,e,!0)};function zc(t,e,r,i){H(\"readableAddChunk\",e);let n=t._readableState,o;if(n.objectMode||(typeof e==\"string\"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=eo.from(e,r).toString(n.encoding):(e=eo.from(e,r),r=\"\"))):e instanceof eo?r=\"\":Dt._isUint8Array(e)?(e=Dt._uint8ArrayToBuffer(e),r=\"\"):e!=null&&(o=new o_(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],e))),o)jr(t,o);else if(e===null)n.reading=!1,g_(t,n);else if(n.objectMode||e&&e.length>0)if(i)if(n.endEmitted)jr(t,new f_);else{if(n.destroyed||n.errored)return!1;ro(t,n,e,!0)}else if(n.ended)jr(t,new u_);else{if(n.destroyed||n.errored)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?ro(t,n,e,!1):hn(t,n)):ro(t,n,e,!1)}else i||(n.reading=!1,hn(t,n));return!n.ended&&(n.length0?(e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit(\"data\",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&dn(t)),hn(t,e)}F.prototype.isPaused=function(){let t=this._readableState;return t[fr]===!0||t.flowing===!1};F.prototype.setEncoding=function(t){let e=new Vc(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i=\"\";for(let n of r)i+=e.write(n);return r.clear(),i!==\"\"&&r.push(i),this._readableState.length=i.length,this};var d_=1073741824;function p_(t){if(t>d_)throw new l_(\"size\",\"<= 1GiB\",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Wc(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:zw(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}F.prototype.read=function(t){H(\"read\",t),t===void 0?t=NaN:Vw(t)||(t=Kw(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=p_(t)),t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return H(\"read: emitReadable\",e.length,e.ended),e.length===0&&e.ended?io(this):dn(this),null;if(t=Wc(t,e),t===0&&e.ended)return e.length===0&&io(this),null;let i=e.needReadable;if(H(\"need readable\",i),(e.length===0||e.length-t0?n=Jc(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&io(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit(\"data\",n)),n};function g_(t,e){if(H(\"onEofChunk\"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?dn(t):(e.needReadable=!1,e.emittedReadable=!0,Kc(t))}}function dn(t){let e=t._readableState;H(\"emitReadable\",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(H(\"emitReadable\",e.flowing),e.emittedReadable=!0,He.nextTick(Kc,t))}function Kc(t){let e=t._readableState;H(\"emitReadable_\",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit(\"readable\"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Qc(t)}function hn(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,He.nextTick(y_,t,e))}function y_(t,e){for(;!e.reading&&!e.ended&&(e.length1&&i.pipes.includes(t)&&(H(\"false write response, pause\",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=b_(r,t),t.on(\"drain\",l))}r.on(\"data\",g);function g(I){H(\"ondata\");let C=t.write(I);H(\"dest.write\",C),C===!1&&d()}function y(I){if(H(\"onerror\",I),E(),t.removeListener(\"error\",y),t.listenerCount(\"error\")===0){let C=t._writableState||t._readableState;C&&!C.errorEmitted?jr(t,I):t.emit(\"error\",I)}}e_(t,\"error\",y);function w(){t.removeListener(\"finish\",S),E()}t.once(\"close\",w);function S(){H(\"onfinish\"),t.removeListener(\"close\",w),E()}t.once(\"finish\",S);function E(){H(\"unpipe\"),r.unpipe(t)}return t.emit(\"pipe\",r),t.writableNeedDrain===!0?i.flowing&&d():i.flowing||(H(\"pipe resume\"),r.resume()),t};function b_(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(H(\"pipeOnDrain\",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(H(\"pipeOnDrain\",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount(\"data\")&&t.resume()}}F.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let o=0;o0,i.flowing!==!1&&this.resume()):t===\"readable\"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,H(\"on readable\",i.length,i.reading),i.length?dn(this):i.reading||He.nextTick(w_,this)),r};F.prototype.addListener=F.prototype.on;F.prototype.removeListener=function(t,e){let r=Dt.prototype.removeListener.call(this,t,e);return t===\"readable\"&&He.nextTick(Gc,this),r};F.prototype.off=F.prototype.removeListener;F.prototype.removeAllListeners=function(t){let e=Dt.prototype.removeAllListeners.apply(this,arguments);return(t===\"readable\"||t===void 0)&&He.nextTick(Gc,this),e};function Gc(t){let e=t._readableState;e.readableListening=t.listenerCount(\"readable\")>0,e.resumeScheduled&&e[fr]===!1?e.flowing=!0:t.listenerCount(\"data\")>0?t.resume():e.readableListening||(e.flowing=null)}function w_(t){H(\"readable nexttick read 0\"),t.read(0)}F.prototype.resume=function(){let t=this._readableState;return t.flowing||(H(\"resume\"),t.flowing=!t.readableListening,__(this,t)),t[fr]=!1,this};function __(t,e){e.resumeScheduled||(e.resumeScheduled=!0,He.nextTick(m_,t,e))}function m_(t,e){H(\"resume\",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit(\"resume\"),Qc(t),e.flowing&&!e.reading&&t.read(0)}F.prototype.pause=function(){return H(\"call pause flowing=%j\",this._readableState.flowing),this._readableState.flowing!==!1&&(H(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState[fr]=!0,this};function Qc(t){let e=t._readableState;for(H(\"flow\",e.flowing);e.flowing&&t.read()!==null;);}F.prototype.wrap=function(t){let e=!1;t.on(\"data\",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on(\"end\",()=>{this.push(null)}),t.on(\"error\",i=>{jr(this,i)}),t.on(\"close\",()=>{this.destroy()}),t.on(\"destroy\",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=Gw(t);for(let i=1;i{n=s?Fc(n,s):null,r(),r=to});try{for(;;){let s=t.destroyed?null:t.read();if(s!==null)yield s;else{if(n)throw n;if(n===null)return;await new Qw(i)}}}catch(s){throw n=Fc(n,s),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Fr.destroyer(t,null):(t.off(\"readable\",i),o())}}$c(F.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});$c(so.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[fr]!==!1},set(t){this[fr]=!!t}}});F._fromList=Jc;function Jc(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(\"\"):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function io(t){let e=t._readableState;H(\"endReadable\",e.endEmitted),e.endEmitted||(e.ended=!0,He.nextTick(E_,e,t))}function E_(t,e){if(H(\"endReadableNT\",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit(\"end\"),e.writable&&e.allowHalfOpen===!1)He.nextTick(S_,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function S_(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}F.from=function(t,e){return h_(F,t,e)};var no;function Xc(){return no===void 0&&(no={}),no}F.fromWeb=function(t,e){return Xc().newStreamReadableFromReadableStream(t,e)};F.toWeb=function(t,e){return Xc().newReadableStreamFromStreamReadable(t,e)};F.wrap=function(t,e){var r,i;return new F({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,o){Fr.destroyer(t,n),o(n)}}).wrap(t)}});var ho=M((XT,ch)=>{_();v();m();var cr=Nt(),{ArrayPrototypeSlice:rh,Error:A_,FunctionPrototypeSymbolHasInstance:ih,ObjectDefineProperty:nh,ObjectDefineProperties:I_,ObjectSetPrototypeOf:sh,StringPrototypeToLowerCase:T_,Symbol:R_,SymbolHasInstance:C_}=ce();ch.exports=ie;ie.WritableState=wi;var{EventEmitter:B_}=(sr(),X(nr)),yi=nn().Stream,{Buffer:pn}=(be(),X(me)),bn=ir(),{addAbortSignal:P_}=di(),{getHighWaterMark:k_,getDefaultHighWaterMark:O_}=an(),{ERR_INVALID_ARG_TYPE:x_,ERR_METHOD_NOT_IMPLEMENTED:M_,ERR_MULTIPLE_CALLBACK:oh,ERR_STREAM_CANNOT_PIPE:L_,ERR_STREAM_DESTROYED:bi,ERR_STREAM_ALREADY_FINISHED:U_,ERR_STREAM_NULL_VALUES:N_,ERR_STREAM_WRITE_AFTER_END:q_,ERR_UNKNOWN_ENCODING:ah}=Ae().codes,{errorOrDestroy:Wr}=bn;sh(ie.prototype,yi.prototype);sh(ie,yi);function lo(){}var $r=R_(\"kOnFinished\");function wi(t,e,r){typeof r!=\"boolean\"&&(r=e instanceof nt()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?k_(this,t,\"writableHighWaterMark\",r):O_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=j_.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,yn(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[$r]=[]}function yn(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}wi.prototype.getBuffer=function(){return rh(this.buffered,this.bufferedIndex)};nh(wi.prototype,\"bufferedRequestCount\",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ie(t){let e=this instanceof nt();if(!e&&!ih(ie,this))return new ie(t);this._writableState=new wi(t,this,e),t&&(typeof t.write==\"function\"&&(this._write=t.write),typeof t.writev==\"function\"&&(this._writev=t.writev),typeof t.destroy==\"function\"&&(this._destroy=t.destroy),typeof t.final==\"function\"&&(this._final=t.final),typeof t.construct==\"function\"&&(this._construct=t.construct),t.signal&&P_(t.signal,this)),yi.call(this,t),bn.construct(this,()=>{let r=this._writableState;r.writing||fo(this,r),co(this,r)})}nh(ie,C_,{__proto__:null,value:function(t){return ih(this,t)?!0:this!==ie?!1:t&&t._writableState instanceof wi}});ie.prototype.pipe=function(){Wr(this,new L_)};function lh(t,e,r,i){let n=t._writableState;if(typeof r==\"function\")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!==\"buffer\"&&!pn.isEncoding(r))throw new ah(r);typeof i!=\"function\"&&(i=lo)}if(e===null)throw new N_;if(!n.objectMode)if(typeof e==\"string\")n.decodeStrings!==!1&&(e=pn.from(e,r),r=\"buffer\");else if(e instanceof pn)r=\"buffer\";else if(yi._isUint8Array(e))e=yi._uint8ArrayToBuffer(e),r=\"buffer\";else throw new x_(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],e);let o;return n.ending?o=new q_:n.destroyed&&(o=new bi(\"write\")),o?(cr.nextTick(i,o),Wr(t,o,!0),o):(n.pendingcb++,D_(t,n,e,r,i))}ie.prototype.write=function(t,e,r){return lh(this,t,e,r)===!0};ie.prototype.cork=function(){this._writableState.corked++};ie.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||fo(this,t))};ie.prototype.setDefaultEncoding=function(e){if(typeof e==\"string\"&&(e=T_(e)),!pn.isEncoding(e))throw new ah(e);return this._writableState.defaultEncoding=e,this};function D_(t,e,r,i,n){let o=e.objectMode?1:r.length;e.length+=o;let s=e.lengthr.bufferedIndex&&fo(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},cr.nextTick(F_,r.afterWriteTickInfo)):uh(t,r,1,n))}function F_({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,uh(t,e,r,i)}function uh(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit(\"drain\"));r-- >0;)e.pendingcb--,i();e.destroyed&&uo(e),co(t,e)}function uo(t){if(t.writing)return;for(let n=t.bufferedIndex;n1&&t._writev){e.pendingcb-=o-1;let a=e.allNoop?lo:c=>{for(let h=s;h256?(r.splice(0,s),e.bufferedIndex=0):e.bufferedIndex=s}e.bufferProcessing=!1}ie.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new M_(\"_write()\")};ie.prototype._writev=null;ie.prototype.end=function(t,e,r){let i=this._writableState;typeof t==\"function\"?(r=t,t=null,e=null):typeof e==\"function\"&&(r=e,e=null);let n;if(t!=null){let o=lh(this,t,e);o instanceof A_&&(n=o)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,co(this,i,!0),i.ended=!0):i.finished?n=new U_(\"end\"):i.destroyed&&(n=new bi(\"end\"))),typeof r==\"function\"&&(n||i.finished?cr.nextTick(r,n):i[$r].push(r)),this};function gn(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function W_(t,e){let r=!1;function i(n){if(r){Wr(t,n??oh());return}if(r=!0,e.pendingcb--,n){let o=e[$r].splice(0);for(let s=0;s{gn(n)?ao(i,n):n.pendingcb--},t,e)):gn(e)&&(e.pendingcb++,ao(t,e))))}function ao(t,e){e.pendingcb--,e.finished=!0;let r=e[$r].splice(0);for(let i=0;i{_();v();m();var po=Nt(),V_=(be(),X(me)),{isReadable:z_,isWritable:K_,isIterable:hh,isNodeStream:G_,isReadableNodeStream:dh,isWritableNodeStream:ph,isDuplexNodeStream:Q_}=tt(),gh=vt(),{AbortError:vh,codes:{ERR_INVALID_ARG_TYPE:Y_,ERR_INVALID_RETURN_VALUE:yh}}=Ae(),{destroyer:Hr}=ir(),J_=nt(),X_=gi(),{createDeferredPromise:bh}=Je(),wh=Zs(),_h=globalThis.Blob||V_.Blob,Z_=typeof _h<\"u\"?function(e){return e instanceof _h}:function(e){return!1},e0=globalThis.AbortController||zi().AbortController,{FunctionPrototypeCall:mh}=ce(),hr=class extends J_{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};Eh.exports=function t(e,r){if(Q_(e))return e;if(dh(e))return wn({readable:e});if(ph(e))return wn({writable:e});if(G_(e))return wn({writable:!1,readable:!1});if(typeof e==\"function\"){let{value:n,write:o,final:s,destroy:a}=t0(e);if(hh(n))return wh(hr,n,{objectMode:!0,write:o,final:s,destroy:a});let l=n?.then;if(typeof l==\"function\"){let c,h=mh(l,n,d=>{if(d!=null)throw new yh(\"nully\",\"body\",d)},d=>{Hr(c,d)});return c=new hr({objectMode:!0,readable:!1,write:o,final(d){s(async()=>{try{await h,po.nextTick(d,null)}catch(g){po.nextTick(d,g)}})},destroy:a})}throw new yh(\"Iterable, AsyncIterable or AsyncFunction\",r,n)}if(Z_(e))return t(e.arrayBuffer());if(hh(e))return wh(hr,e,{objectMode:!0,writable:!1});if(typeof e?.writable==\"object\"||typeof e?.readable==\"object\"){let n=e!=null&&e.readable?dh(e?.readable)?e?.readable:t(e.readable):void 0,o=e!=null&&e.writable?ph(e?.writable)?e?.writable:t(e.writable):void 0;return wn({readable:n,writable:o})}let i=e?.then;if(typeof i==\"function\"){let n;return mh(i,e,o=>{o!=null&&n.push(o),n.push(null)},o=>{Hr(n,o)}),n=new hr({objectMode:!0,writable:!1,read(){}})}throw new Y_(r,[\"Blob\",\"ReadableStream\",\"WritableStream\",\"Stream\",\"Iterable\",\"AsyncIterable\",\"Function\",\"{ readable, writable } pair\",\"Promise\"],e)};function t0(t){let{promise:e,resolve:r}=bh(),i=new e0,n=i.signal;return{value:t(async function*(){for(;;){let s=e;e=null;let{chunk:a,done:l,cb:c}=await s;if(po.nextTick(c),l)return;if(n.aborted)throw new vh(void 0,{cause:n.reason});({promise:e,resolve:r}=bh()),yield a}}(),{signal:n}),write(s,a,l){let c=r;r=null,c({chunk:s,done:!1,cb:l})},final(s){let a=r;r=null,a({done:!0,cb:s})},destroy(s,a){i.abort(),a(s)}}}function wn(t){let e=t.readable&&typeof t.readable.read!=\"function\"?X_.wrap(t.readable):t.readable,r=t.writable,i=!!z_(e),n=!!K_(r),o,s,a,l,c;function h(d){let g=l;l=null,g?g(d):d&&c.destroy(d)}return c=new hr({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(gh(r,d=>{n=!1,d&&Hr(e,d),h(d)}),c._write=function(d,g,y){r.write(d,g)?y():o=y},c._final=function(d){r.end(),s=d},r.on(\"drain\",function(){if(o){let d=o;o=null,d()}}),r.on(\"finish\",function(){if(s){let d=s;s=null,d()}})),i&&(gh(e,d=>{i=!1,d&&Hr(e,d),h(d)}),e.on(\"readable\",function(){if(a){let d=a;a=null,d()}}),e.on(\"end\",function(){c.push(null)}),c._read=function(){for(;;){let d=e.read();if(d===null){a=c._read;return}if(!c.push(d))return}}),c._destroy=function(d,g){!d&&l!==null&&(d=new vh),a=null,o=null,s=null,l===null?g(d):(l=g,Hr(r,d),Hr(e,d))},c}});var nt=M((h2,Th)=>{\"use strict\";_();v();m();var{ObjectDefineProperties:r0,ObjectGetOwnPropertyDescriptor:It,ObjectKeys:i0,ObjectSetPrototypeOf:Ah}=ce();Th.exports=Ve;var bo=gi(),Ne=ho();Ah(Ve.prototype,bo.prototype);Ah(Ve,bo);{let t=i0(Ne.prototype);for(let e=0;e{\"use strict\";_();v();m();var{ObjectSetPrototypeOf:Rh,Symbol:n0}=ce();Ch.exports=Tt;var{ERR_METHOD_NOT_IMPLEMENTED:s0}=Ae().codes,_o=nt(),{getHighWaterMark:o0}=an();Rh(Tt.prototype,_o.prototype);Rh(Tt,_o);var _i=n0(\"kCallback\");function Tt(t){if(!(this instanceof Tt))return new Tt(t);let e=t?o0(this,t,\"readableHighWaterMark\",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),_o.call(this,t),this._readableState.sync=!1,this[_i]=null,t&&(typeof t.transform==\"function\"&&(this._transform=t.transform),typeof t.flush==\"function\"&&(this._flush=t.flush)),this.on(\"prefinish\",a0)}function wo(t){typeof this._flush==\"function\"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function a0(){this._final!==wo&&wo.call(this)}Tt.prototype._final=wo;Tt.prototype._transform=function(t,e,r){throw new s0(\"_transform()\")};Tt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,o=i.length;this._transform(t,e,(s,a)=>{if(s){r(s);return}a!=null&&this.push(a),n.ended||o===i.length||i.length{\"use strict\";_();v();m();var{ObjectSetPrototypeOf:Bh}=ce();Ph.exports=Vr;var vo=mo();Bh(Vr.prototype,vo.prototype);Bh(Vr,vo);function Vr(t){if(!(this instanceof Vr))return new Vr(t);vo.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var En=M((x2,Lh)=>{_();v();m();var mi=Nt(),{ArrayIsArray:l0,Promise:u0,SymbolAsyncIterator:f0}=ce(),vn=vt(),{once:c0}=Je(),h0=ir(),kh=nt(),{aggregateTwoErrors:d0,codes:{ERR_INVALID_ARG_TYPE:Po,ERR_INVALID_RETURN_VALUE:So,ERR_MISSING_ARGS:p0,ERR_STREAM_DESTROYED:g0,ERR_STREAM_PREMATURE_CLOSE:y0},AbortError:b0}=Ae(),{validateFunction:w0,validateAbortSignal:_0}=hi(),{isIterable:dr,isReadable:Ao,isReadableNodeStream:mn,isNodeStream:Oh,isTransformStream:zr,isWebStream:m0,isReadableStream:Io,isReadableEnded:v0}=tt(),E0=globalThis.AbortController||zi().AbortController,To,Ro;function xh(t,e,r){let i=!1;t.on(\"close\",()=>{i=!0});let n=vn(t,{readable:e,writable:r},o=>{i=!o});return{destroy:o=>{i||(i=!0,h0.destroyer(t,o||new g0(\"pipe\")))},cleanup:n}}function S0(t){return w0(t[t.length-1],\"streams[stream.length - 1]\"),t.pop()}function Co(t){if(dr(t))return t;if(mn(t))return A0(t);throw new Po(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\"],t)}async function*A0(t){Ro||(Ro=gi()),yield*Ro.prototype[f0].call(t)}async function _n(t,e,r,{end:i}){let n,o=null,s=c=>{if(c&&(n=c),o){let h=o;o=null,h()}},a=()=>new u0((c,h)=>{n?h(n):o=()=>{n?h(n):c()}});e.on(\"drain\",s);let l=vn(e,{readable:!1},s);try{e.writableNeedDrain&&await a();for await(let c of t)e.write(c)||await a();i&&e.end(),await a(),r()}catch(c){r(n!==c?d0(n,c):c)}finally{l(),e.off(\"drain\",s)}}async function Bo(t,e,r,{end:i}){zr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let o of t)await n.ready,n.write(o).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(o){try{await n.abort(o),r(o)}catch(s){r(s)}}}function I0(...t){return Mh(t,c0(S0(t)))}function Mh(t,e,r){if(t.length===1&&l0(t[0])&&(t=t[0]),t.length<2)throw new p0(\"streams\");let i=new E0,n=i.signal,o=r?.signal,s=[];_0(o,\"options.signal\");function a(){y(new b0)}o?.addEventListener(\"abort\",a);let l,c,h=[],d=0;function g(C){y(C,--d===0)}function y(C,R){if(C&&(!l||l.code===\"ERR_STREAM_PREMATURE_CLOSE\")&&(l=C),!(!l&&!R)){for(;h.length;)h.shift()(l);o?.removeEventListener(\"abort\",a),i.abort(),R&&(l||s.forEach(U=>U()),mi.nextTick(e,l,c))}}let w;for(let C=0;C0,W=U||r?.end!==!1,K=C===t.length-1;if(Oh(R)){let z=function(Q){Q&&Q.name!==\"AbortError\"&&Q.code!==\"ERR_STREAM_PREMATURE_CLOSE\"&&g(Q)};var I=z;if(W){let{destroy:Q,cleanup:pe}=xh(R,U,N);h.push(Q),Ao(R)&&K&&s.push(pe)}R.on(\"error\",z),Ao(R)&&K&&s.push(()=>{R.removeListener(\"error\",z)})}if(C===0)if(typeof R==\"function\"){if(w=R({signal:n}),!dr(w))throw new So(\"Iterable, AsyncIterable or Stream\",\"source\",w)}else dr(R)||mn(R)||zr(R)?w=R:w=kh.from(R);else if(typeof R==\"function\"){if(zr(w)){var S;w=Co((S=w)===null||S===void 0?void 0:S.readable)}else w=Co(w);if(w=R(w,{signal:n}),U){if(!dr(w,!0))throw new So(\"AsyncIterable\",`transform[${C-1}]`,w)}else{var E;To||(To=Eo());let z=new To({objectMode:!0}),Q=(E=w)===null||E===void 0?void 0:E.then;if(typeof Q==\"function\")d++,Q.call(w,ge=>{c=ge,ge!=null&&z.write(ge),W&&z.end(),mi.nextTick(g)},ge=>{z.destroy(ge),mi.nextTick(g,ge)});else if(dr(w,!0))d++,_n(w,z,g,{end:W});else if(Io(w)||zr(w)){let ge=w.readable||w;d++,_n(ge,z,g,{end:W})}else throw new So(\"AsyncIterable or Promise\",\"destination\",w);w=z;let{destroy:pe,cleanup:Yt}=xh(w,!1,!0);h.push(pe),K&&s.push(Yt)}}else if(Oh(R)){if(mn(w)){d+=2;let z=T0(w,R,g,{end:W});Ao(R)&&K&&s.push(z)}else if(zr(w)||Io(w)){let z=w.readable||w;d++,_n(z,R,g,{end:W})}else if(dr(w))d++,_n(w,R,g,{end:W});else throw new Po(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\",\"ReadableStream\",\"TransformStream\"],w);w=R}else if(m0(R)){if(mn(w))d++,Bo(Co(w),R,g,{end:W});else if(Io(w)||dr(w))d++,Bo(w,R,g,{end:W});else if(zr(w))d++,Bo(w.readable,R,g,{end:W});else throw new Po(\"val\",[\"Readable\",\"Iterable\",\"AsyncIterable\",\"ReadableStream\",\"TransformStream\"],w);w=R}else w=kh.from(R)}return(n!=null&&n.aborted||o!=null&&o.aborted)&&mi.nextTick(a),w}function T0(t,e,r,{end:i}){let n=!1;if(e.on(\"close\",()=>{n||r(new y0)}),t.pipe(e,{end:!1}),i){let s=function(){n=!0,e.end()};var o=s;v0(t)?mi.nextTick(s):t.once(\"end\",s)}else r();return vn(t,{readable:!0,writable:!1},s=>{let a=t._readableState;s&&s.code===\"ERR_STREAM_PREMATURE_CLOSE\"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once(\"end\",r).once(\"error\",r):r(s)}),vn(e,{readable:!1,writable:!0},r)}Lh.exports={pipelineImpl:Mh,pipeline:I0}});var Oo=M((j2,Fh)=>{\"use strict\";_();v();m();var{pipeline:R0}=En(),Sn=nt(),{destroyer:C0}=ir(),{isNodeStream:An,isReadable:Uh,isWritable:Nh,isWebStream:ko,isTransformStream:pr,isWritableStream:qh,isReadableStream:Dh}=tt(),{AbortError:B0,codes:{ERR_INVALID_ARG_VALUE:jh,ERR_MISSING_ARGS:P0}}=Ae(),k0=vt();Fh.exports=function(...e){if(e.length===0)throw new P0(\"streams\");if(e.length===1)return Sn.from(e[0]);let r=[...e];if(typeof e[0]==\"function\"&&(e[0]=Sn.from(e[0])),typeof e[e.length-1]==\"function\"){let y=e.length-1;e[y]=Sn.from(e[y])}for(let y=0;y0&&!(Nh(e[y])||qh(e[y])||pr(e[y])))throw new jh(`streams[${y}]`,r[y],\"must be writable\")}let i,n,o,s,a;function l(y){let w=s;s=null,w?w(y):y?a.destroy(y):!g&&!d&&a.destroy()}let c=e[0],h=R0(e,l),d=!!(Nh(c)||qh(c)||pr(c)),g=!!(Uh(h)||Dh(h)||pr(h));if(a=new Sn({writableObjectMode:!!(c!=null&&c.writableObjectMode),readableObjectMode:!!(h!=null&&h.writableObjectMode),writable:d,readable:g}),d){if(An(c))a._write=function(w,S,E){c.write(w,S)?E():i=E},a._final=function(w){c.end(),n=w},c.on(\"drain\",function(){if(i){let w=i;i=null,w()}});else if(ko(c)){let S=(pr(c)?c.writable:c).getWriter();a._write=async function(E,I,C){try{await S.ready,S.write(E).catch(()=>{}),C()}catch(R){C(R)}},a._final=async function(E){try{await S.ready,S.close().catch(()=>{}),n=E}catch(I){E(I)}}}let y=pr(h)?h.readable:h;k0(y,()=>{if(n){let w=n;n=null,w()}})}if(g){if(An(h))h.on(\"readable\",function(){if(o){let y=o;o=null,y()}}),h.on(\"end\",function(){a.push(null)}),a._read=function(){for(;;){let y=h.read();if(y===null){o=a._read;return}if(!a.push(y))return}};else if(ko(h)){let w=(pr(h)?h.readable:h).getReader();a._read=async function(){for(;;)try{let{value:S,done:E}=await w.read();if(!a.push(S))return;if(E){a.push(null);return}}catch{return}}}}return a._destroy=function(y,w){!y&&s!==null&&(y=new B0),o=null,i=null,n=null,s===null?w(y):(s=w,An(h)&&C0(h,y))},a}});var Qh=M((K2,Lo)=>{\"use strict\";_();v();m();var Vh=globalThis.AbortController||zi().AbortController,{codes:{ERR_INVALID_ARG_VALUE:O0,ERR_INVALID_ARG_TYPE:vi,ERR_MISSING_ARGS:x0,ERR_OUT_OF_RANGE:M0},AbortError:st}=Ae(),{validateAbortSignal:gr,validateInteger:L0,validateObject:yr}=hi(),U0=ce().Symbol(\"kWeak\"),{finished:N0}=vt(),q0=Oo(),{addAbortSignalNoValidate:D0}=di(),{isWritable:j0,isNodeStream:F0}=tt(),{ArrayPrototypePush:W0,MathFloor:$0,Number:H0,NumberIsNaN:V0,Promise:Wh,PromiseReject:$h,PromisePrototypeThen:z0,Symbol:zh}=ce(),In=zh(\"kEmpty\"),Hh=zh(\"kEof\");function K0(t,e){if(e!=null&&yr(e,\"options\"),e?.signal!=null&&gr(e.signal,\"options.signal\"),F0(t)&&!j0(t))throw new O0(\"stream\",t,\"must be writable\");let r=q0(this,t);return e!=null&&e.signal&&D0(e.signal,r),r}function Tn(t,e){if(typeof t!=\"function\")throw new vi(\"fn\",[\"Function\",\"AsyncFunction\"],t);e!=null&&yr(e,\"options\"),e?.signal!=null&&gr(e.signal,\"options.signal\");let r=1;return e?.concurrency!=null&&(r=$0(e.concurrency)),L0(r,\"concurrency\",1),async function*(){var n,o;let s=new Vh,a=this,l=[],c=s.signal,h={signal:c},d=()=>s.abort();e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted&&d(),e==null||(o=e.signal)===null||o===void 0||o.addEventListener(\"abort\",d);let g,y,w=!1;function S(){w=!0}async function E(){try{for await(let R of a){var I;if(w)return;if(c.aborted)throw new st;try{R=t(R,h)}catch(U){R=$h(U)}R!==In&&(typeof((I=R)===null||I===void 0?void 0:I.catch)==\"function\"&&R.catch(S),l.push(R),g&&(g(),g=null),!w&&l.length&&l.length>=r&&await new Wh(U=>{y=U}))}l.push(Hh)}catch(R){let U=$h(R);z0(U,void 0,S),l.push(U)}finally{var C;w=!0,g&&(g(),g=null),e==null||(C=e.signal)===null||C===void 0||C.removeEventListener(\"abort\",d)}}E();try{for(;;){for(;l.length>0;){let I=await l[0];if(I===Hh)return;if(c.aborted)throw new st;I!==In&&(yield I),l.shift(),y&&(y(),y=null)}await new Wh(I=>{g=I})}}finally{s.abort(),w=!0,y&&(y(),y=null)}}.call(this)}function G0(t=void 0){return t!=null&&yr(t,\"options\"),t?.signal!=null&&gr(t.signal,\"options.signal\"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new st({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function Kh(t,e=void 0){for await(let r of Mo.call(this,t,e))return!0;return!1}async function Q0(t,e=void 0){if(typeof t!=\"function\")throw new vi(\"fn\",[\"Function\",\"AsyncFunction\"],t);return!await Kh.call(this,async(...r)=>!await t(...r),e)}async function Y0(t,e){for await(let r of Mo.call(this,t,e))return r}async function J0(t,e){if(typeof t!=\"function\")throw new vi(\"fn\",[\"Function\",\"AsyncFunction\"],t);async function r(i,n){return await t(i,n),In}for await(let i of Tn.call(this,r,e));}function Mo(t,e){if(typeof t!=\"function\")throw new vi(\"fn\",[\"Function\",\"AsyncFunction\"],t);async function r(i,n){return await t(i,n)?i:In}return Tn.call(this,r,e)}var xo=class extends x0{constructor(){super(\"reduce\"),this.message=\"Reduce of an empty stream requires an initial value\"}};async function X0(t,e,r){var i;if(typeof t!=\"function\")throw new vi(\"reducer\",[\"Function\",\"AsyncFunction\"],t);r!=null&&yr(r,\"options\"),r?.signal!=null&&gr(r.signal,\"options.signal\");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let c=new st(void 0,{cause:r.signal.reason});throw this.once(\"error\",()=>{}),await N0(this.destroy(c)),c}let o=new Vh,s=o.signal;if(r!=null&&r.signal){let c={once:!0,[U0]:this};r.signal.addEventListener(\"abort\",()=>o.abort(),c)}let a=!1;try{for await(let c of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new st;n?e=await t(e,c,{signal:s}):(e=c,n=!0)}if(!a&&!n)throw new xo}finally{o.abort()}return e}async function Z0(t){t!=null&&yr(t,\"options\"),t?.signal!=null&&gr(t.signal,\"options.signal\");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new st(void 0,{cause:t.signal.reason});W0(e,i)}return e}function em(t,e){let r=Tn.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Gh(t){if(t=H0(t),V0(t))return 0;if(t<0)throw new M0(\"number\",\">= 0\",t);return t}function tm(t,e=void 0){return e!=null&&yr(e,\"options\"),e?.signal!=null&&gr(e.signal,\"options.signal\"),t=Gh(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new st;for await(let o of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new st;t--<=0&&(yield o)}}.call(this)}function rm(t,e=void 0){return e!=null&&yr(e,\"options\"),e?.signal!=null&&gr(e.signal,\"options.signal\"),t=Gh(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new st;for await(let o of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new st;if(t-- >0)yield o;else return}}.call(this)}Lo.exports.streamReturningOperators={asIndexedPairs:G0,drop:tm,filter:Mo,flatMap:em,map:Tn,take:rm,compose:K0};Lo.exports.promiseReturningOperators={every:Q0,forEach:J0,reduce:X0,toArray:Z0,some:Kh,find:Y0}});var Uo=M((eR,Yh)=>{\"use strict\";_();v();m();var{ArrayPrototypePop:im,Promise:nm}=ce(),{isIterable:sm,isNodeStream:om,isWebStream:am}=tt(),{pipelineImpl:lm}=En(),{finished:um}=vt();No();function fm(...t){return new nm((e,r)=>{let i,n,o=t[t.length-1];if(o&&typeof o==\"object\"&&!om(o)&&!sm(o)&&!am(o)){let s=im(t);i=s.signal,n=s.end}lm(t,(s,a)=>{s?r(s):e(a)},{signal:i,end:n})})}Yh.exports={finished:um,pipeline:fm}});var No=M((aR,sd)=>{_();v();m();var{Buffer:cm}=(be(),X(me)),{ObjectDefineProperty:Rt,ObjectKeys:Zh,ReflectApply:ed}=ce(),{promisify:{custom:td}}=Je(),{streamReturningOperators:Jh,promiseReturningOperators:Xh}=Qh(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:rd}}=Ae(),hm=Oo(),{pipeline:id}=En(),{destroyer:dm}=ir(),nd=vt(),qo=Uo(),Do=tt(),le=sd.exports=nn().Stream;le.isDisturbed=Do.isDisturbed;le.isErrored=Do.isErrored;le.isReadable=Do.isReadable;le.Readable=gi();for(let t of Zh(Jh)){let r=function(...i){if(new.target)throw rd();return le.Readable.from(ed(e,this,i))};jo=r;let e=Jh[t];Rt(r,\"name\",{__proto__:null,value:e.name}),Rt(r,\"length\",{__proto__:null,value:e.length}),Rt(le.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var jo;for(let t of Zh(Xh)){let r=function(...n){if(new.target)throw rd();return ed(e,this,n)};jo=r;let e=Xh[t];Rt(r,\"name\",{__proto__:null,value:e.name}),Rt(r,\"length\",{__proto__:null,value:e.length}),Rt(le.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}var jo;le.Writable=ho();le.Duplex=nt();le.Transform=mo();le.PassThrough=Eo();le.pipeline=id;var{addAbortSignal:pm}=di();le.addAbortSignal=pm;le.finished=nd;le.destroy=dm;le.compose=hm;Rt(le,\"promises\",{__proto__:null,configurable:!0,enumerable:!0,get(){return qo}});Rt(id,td,{__proto__:null,enumerable:!0,get(){return qo.pipeline}});Rt(nd,td,{__proto__:null,enumerable:!0,get(){return qo.finished}});le.Stream=le;le._isUint8Array=function(e){return e instanceof Uint8Array};le._uint8ArrayToBuffer=function(e){return cm.from(e.buffer,e.byteOffset,e.byteLength)}});var jt=M((pR,ue)=>{\"use strict\";_();v();m();var he=No(),gm=Uo(),ym=he.Readable.destroy;ue.exports=he.Readable;ue.exports._uint8ArrayToBuffer=he._uint8ArrayToBuffer;ue.exports._isUint8Array=he._isUint8Array;ue.exports.isDisturbed=he.isDisturbed;ue.exports.isErrored=he.isErrored;ue.exports.isReadable=he.isReadable;ue.exports.Readable=he.Readable;ue.exports.Writable=he.Writable;ue.exports.Duplex=he.Duplex;ue.exports.Transform=he.Transform;ue.exports.PassThrough=he.PassThrough;ue.exports.addAbortSignal=he.addAbortSignal;ue.exports.finished=he.finished;ue.exports.destroy=he.destroy;ue.exports.destroy=ym;ue.exports.pipeline=he.pipeline;ue.exports.compose=he.compose;Object.defineProperty(he,\"promises\",{configurable:!0,enumerable:!0,get(){return gm}});ue.exports.Stream=he.Stream;ue.exports.default=ue.exports});var od=M((vR,Fo)=>{_();v();m();typeof Object.create==\"function\"?Fo.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Fo.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var ud=M((CR,ld)=>{\"use strict\";_();v();m();var{Buffer:ze}=(be(),X(me)),ad=Symbol.for(\"BufferList\");function ee(t){if(!(this instanceof ee))return new ee(t);ee._init.call(this,t)}ee._init=function(e){Object.defineProperty(this,ad,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};ee.prototype._new=function(e){return new ee(e)};ee.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;ithis.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};ee.prototype.slice=function(e,r){return typeof e==\"number\"&&e<0&&(e+=this.length),typeof r==\"number\"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};ee.prototype.copy=function(e,r,i,n){if((typeof i!=\"number\"||i<0)&&(i=0),(typeof n!=\"number\"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||ze.alloc(0);let o=!!e,s=this._offset(i),a=n-i,l=a,c=o&&r||0,h=s[1];if(i===0&&n===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:ze.concat(this._bufs,this.length);for(let d=0;dg)this._bufs[d].copy(e,c,h),c+=g;else{this._bufs[d].copy(e,c,h,h+l),c+=g;break}l-=g,h&&(h=0)}return e.length>c?e.slice(0,c):e};ee.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!=\"number\"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),n=this._offset(r),o=this._bufs.slice(i[0],n[0]+1);return n[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,n[1]),i[1]!==0&&(o[0]=o[0].slice(i[1])),this._new(o)};ee.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};ee.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};ee.prototype.duplicate=function(){let e=this._new();for(let r=0;rthis.length?this.length:e;let i=this._offset(e),n=i[0],o=i[1];for(;n=t.length){let l=s.indexOf(t,o);if(l!==-1)return this._reverseOffset([n,l]);o=s.length-t.length+1}else{let l=this._reverseOffset([n,o]);if(this._match(l,t))return l;o++}o=0}return-1};ee.prototype._match=function(t,e){if(this.length-t{\"use strict\";_();v();m();var Wo=jt().Duplex,bm=od(),Ei=ud();function Se(t){if(!(this instanceof Se))return new Se(t);if(typeof t==\"function\"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on(\"pipe\",function(i){i.on(\"error\",e)}),this.on(\"unpipe\",function(i){i.removeListener(\"error\",e)}),t=null}Ei._init.call(this,t),Wo.call(this)}bm(Se,Wo);Object.assign(Se.prototype,Ei.prototype);Se.prototype._new=function(e){return new Se(e)};Se.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i==\"function\"&&i()};Se.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};Se.prototype.end=function(e){Wo.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Se.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};Se.prototype._isBufferList=function(e){return e instanceof Se||e instanceof Ei||Se.isBufferList(e)};Se.isBufferList=Ei.isBufferList;Rn.exports=Se;Rn.exports.BufferListStream=Se;Rn.exports.BufferList=Ei});var hd=M((WR,cd)=>{_();v();m();var $o=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};cd.exports=$o});var Ho=M((QR,dd)=>{_();v();m();var L=dd.exports,{Buffer:ke}=(be(),X(me));L.types={0:\"reserved\",1:\"connect\",2:\"connack\",3:\"publish\",4:\"puback\",5:\"pubrec\",6:\"pubrel\",7:\"pubcomp\",8:\"subscribe\",9:\"suback\",10:\"unsubscribe\",11:\"unsuback\",12:\"pingreq\",13:\"pingresp\",14:\"disconnect\",15:\"auth\"};L.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0};L.requiredHeaderFlagsErrors={};for(let t in L.requiredHeaderFlags){let e=L.requiredHeaderFlags[t];L.requiredHeaderFlagsErrors[t]=\"Invalid header flag bits, must be 0x\"+e.toString(16)+\" for \"+L.types[t]+\" packet\"}L.codes={};for(let t in L.types){let e=L.types[t];L.codes[e]=t}L.CMD_SHIFT=4;L.CMD_MASK=240;L.DUP_MASK=8;L.QOS_MASK=3;L.QOS_SHIFT=1;L.RETAIN_MASK=1;L.VARBYTEINT_MASK=127;L.VARBYTEINT_FIN_MASK=128;L.VARBYTEINT_MAX=268435455;L.SESSIONPRESENT_MASK=1;L.SESSIONPRESENT_HEADER=ke.from([L.SESSIONPRESENT_MASK]);L.CONNACK_HEADER=ke.from([L.codes.connack<[0,1].map(r=>[0,1].map(i=>{let n=ke.alloc(1);return n.writeUInt8(L.codes[t]<ke.from([t]));L.EMPTY={pingreq:ke.from([L.codes.pingreq<<4,0]),pingresp:ke.from([L.codes.pingresp<<4,0]),disconnect:ke.from([L.codes.disconnect<<4,0])};L.MQTT5_PUBACK_PUBREC_CODES={0:\"Success\",16:\"No matching subscribers\",128:\"Unspecified error\",131:\"Implementation specific error\",135:\"Not authorized\",144:\"Topic Name invalid\",145:\"Packet identifier in use\",151:\"Quota exceeded\",153:\"Payload format invalid\"};L.MQTT5_PUBREL_PUBCOMP_CODES={0:\"Success\",146:\"Packet Identifier not found\"};L.MQTT5_SUBACK_CODES={0:\"Granted QoS 0\",1:\"Granted QoS 1\",2:\"Granted QoS 2\",128:\"Unspecified error\",131:\"Implementation specific error\",135:\"Not authorized\",143:\"Topic Filter invalid\",145:\"Packet Identifier in use\",151:\"Quota exceeded\",158:\"Shared Subscriptions not supported\",161:\"Subscription Identifiers not supported\",162:\"Wildcard Subscriptions not supported\"};L.MQTT5_UNSUBACK_CODES={0:\"Success\",17:\"No subscription existed\",128:\"Unspecified error\",131:\"Implementation specific error\",135:\"Not authorized\",143:\"Topic Filter invalid\",145:\"Packet Identifier in use\"};L.MQTT5_DISCONNECT_CODES={0:\"Normal disconnection\",4:\"Disconnect with Will Message\",128:\"Unspecified error\",129:\"Malformed Packet\",130:\"Protocol Error\",131:\"Implementation specific error\",135:\"Not authorized\",137:\"Server busy\",139:\"Server shutting down\",141:\"Keep Alive timeout\",142:\"Session taken over\",143:\"Topic Filter invalid\",144:\"Topic Name invalid\",147:\"Receive Maximum exceeded\",148:\"Topic Alias invalid\",149:\"Packet too large\",150:\"Message rate too high\",151:\"Quota exceeded\",152:\"Administrative action\",153:\"Payload format invalid\",154:\"Retain not supported\",155:\"QoS not supported\",156:\"Use another server\",157:\"Server moved\",158:\"Shared Subscriptions not supported\",159:\"Connection rate exceeded\",160:\"Maximum connect time\",161:\"Subscription Identifiers not supported\",162:\"Wildcard Subscriptions not supported\"};L.MQTT5_AUTH_CODES={0:\"Success\",24:\"Continue authentication\",25:\"Re-authenticate\"}});var gd=M((rC,pd)=>{_();v();m();var Kr=1e3,Gr=Kr*60,Qr=Gr*60,br=Qr*24,wm=br*7,_m=br*365.25;pd.exports=function(t,e){e=e||{};var r=typeof t;if(r===\"string\"&&t.length>0)return mm(t);if(r===\"number\"&&isFinite(t))return e.long?Em(t):vm(t);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(t))};function mm(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||\"ms\").toLowerCase();switch(i){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*_m;case\"weeks\":case\"week\":case\"w\":return r*wm;case\"days\":case\"day\":case\"d\":return r*br;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*Qr;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*Gr;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*Kr;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function vm(t){var e=Math.abs(t);return e>=br?Math.round(t/br)+\"d\":e>=Qr?Math.round(t/Qr)+\"h\":e>=Gr?Math.round(t/Gr)+\"m\":e>=Kr?Math.round(t/Kr)+\"s\":t+\"ms\"}function Em(t){var e=Math.abs(t);return e>=br?Cn(t,e,br,\"day\"):e>=Qr?Cn(t,e,Qr,\"hour\"):e>=Gr?Cn(t,e,Gr,\"minute\"):e>=Kr?Cn(t,e,Kr,\"second\"):t+\" ms\"}function Cn(t,e,r,i){var n=e>=r*1.5;return Math.round(t/r)+\" \"+i+(n?\"s\":\"\")}});var bd=M((uC,yd)=>{_();v();m();function Sm(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=n,r.enabled=s,r.humanize=gd(),r.destroy=c,Object.keys(t).forEach(h=>{r[h]=t[h]}),r.names=[],r.skips=[],r.formatters={};function e(h){let d=0;for(let g=0;g{if(W===\"%%\")return\"%\";U++;let z=r.formatters[K];if(typeof z==\"function\"){let Q=E[U];W=z.call(I,Q),E.splice(U,1),U--}return W}),r.formatArgs.call(I,E),(I.log||r.log).apply(I,E)}return S.namespace=h,S.useColors=r.useColors(),S.color=r.selectColor(h),S.extend=i,S.destroy=r.destroy,Object.defineProperty(S,\"enabled\",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(y!==r.namespaces&&(y=r.namespaces,w=r.enabled(h)),w),set:E=>{g=E}}),typeof r.init==\"function\"&&r.init(S),S}function i(h,d){let g=r(this.namespace+(typeof d>\"u\"?\":\":d)+h);return g.log=this.log,g}function n(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let d,g=(typeof h==\"string\"?h:\"\").split(/[\\s,]+/),y=g.length;for(d=0;d\"-\"+d)].join(\",\");return r.enable(\"\"),h}function s(h){if(h[h.length-1]===\"*\")return!0;let d,g;for(d=0,g=r.skips.length;d{_();v();m();xe.formatArgs=Im;xe.save=Tm;xe.load=Rm;xe.useColors=Am;xe.storage=Cm();xe.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})();xe.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"];function Am(){return typeof window<\"u\"&&window.process&&(window.process.type===\"renderer\"||window.process.__nwjs)?!0:typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)?!1:typeof document<\"u\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\"u\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/)}function Im(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+Bn.exports.humanize(this.diff),!this.useColors)return;let e=\"color: \"+this.color;t.splice(1,0,e,\"color: inherit\");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!==\"%%\"&&(r++,n===\"%c\"&&(i=r))}),t.splice(i,0,e)}xe.log=console.debug||console.log||(()=>{});function Tm(t){try{t?xe.storage.setItem(\"debug\",t):xe.storage.removeItem(\"debug\")}catch{}}function Rm(){let t;try{t=xe.storage.getItem(\"debug\")}catch{}return!t&&typeof B<\"u\"&&\"env\"in B&&(t=B.env.DEBUG),t}function Cm(){try{return localStorage}catch{}}Bn.exports=bd()(xe);var{formatters:Bm}=Bn.exports;Bm.j=function(t){try{return JSON.stringify(t)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}}});var md=M((EC,_d)=>{_();v();m();var Pm=fd(),{EventEmitter:km}=(sr(),X(nr)),wd=hd(),V=Ho(),D=ot()(\"mqtt-packet:parser\"),Vo=class t extends km{constructor(){super(),this.parser=this.constructor.parser}static parser(e){return this instanceof t?(this.settings=e||{},this._states=[\"_parseHeader\",\"_parseLength\",\"_parsePayload\",\"_newPacket\"],this._resetState(),this):new t().parser(e)}_resetState(){D(\"_resetState: resetting packet, error, _list, and _stateCounter\"),this.packet=new wd,this.error=null,this._list=Pm(),this._stateCounter=0}parse(e){for(this.error&&this._resetState(),this._list.append(e),D(\"parse: current state: %s\",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,D(\"parse: state complete. _stateCounter is now: %d\",this._stateCounter),D(\"parse: packet.length: %d, buffer list length: %d\",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return D(\"parse: exited while loop. packet: %d, buffer list length: %d\",this.packet.length,this._list.length),this._list.length}_parseHeader(){let e=this._list.readUInt8(0),r=e>>V.CMD_SHIFT;this.packet.cmd=V.types[r];let i=e&15,n=V.requiredHeaderFlags[r];return n!=null&&i!==n?this._emitError(new Error(V.requiredHeaderFlagsErrors[r])):(this.packet.retain=(e&V.RETAIN_MASK)!==0,this.packet.qos=e>>V.QOS_SHIFT&V.QOS_MASK,this.packet.qos>2?this._emitError(new Error(\"Packet must not have both QoS bits set to 1\")):(this.packet.dup=(e&V.DUP_MASK)!==0,D(\"_parseHeader: packet: %o\",this.packet),this._list.consume(1),!0))}_parseLength(){let e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),D(\"_parseLength %d\",e.value),!!e}_parsePayload(){D(\"_parsePayload: payload %O\",this._list);let e=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case\"connect\":this._parseConnect();break;case\"connack\":this._parseConnack();break;case\"publish\":this._parsePublish();break;case\"puback\":case\"pubrec\":case\"pubrel\":case\"pubcomp\":this._parseConfirmation();break;case\"subscribe\":this._parseSubscribe();break;case\"suback\":this._parseSuback();break;case\"unsubscribe\":this._parseUnsubscribe();break;case\"unsuback\":this._parseUnsuback();break;case\"pingreq\":case\"pingresp\":break;case\"disconnect\":this._parseDisconnect();break;case\"auth\":this._parseAuth();break;default:this._emitError(new Error(\"Not supported\"))}e=!0}return D(\"_parsePayload complete result: %s\",e),e}_parseConnect(){D(\"_parseConnect\");let e,r,i,n,o={},s=this.packet,a=this._parseString();if(a===null)return this._emitError(new Error(\"Cannot parse protocolId\"));if(a!==\"MQTT\"&&a!==\"MQIsdp\")return this._emitError(new Error(\"Invalid protocolId\"));if(s.protocolId=a,this._pos>=this._list.length)return this._emitError(new Error(\"Packet too short\"));if(s.protocolVersion=this._list.readUInt8(this._pos),s.protocolVersion>=128&&(s.bridgeMode=!0,s.protocolVersion=s.protocolVersion-128),s.protocolVersion!==3&&s.protocolVersion!==4&&s.protocolVersion!==5)return this._emitError(new Error(\"Invalid protocol version\"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error(\"Packet too short\"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error(\"Connect flag bit 0 must be 0, but got 1\"));o.username=this._list.readUInt8(this._pos)&V.USERNAME_MASK,o.password=this._list.readUInt8(this._pos)&V.PASSWORD_MASK,o.will=this._list.readUInt8(this._pos)&V.WILL_FLAG_MASK;let l=!!(this._list.readUInt8(this._pos)&V.WILL_RETAIN_MASK),c=(this._list.readUInt8(this._pos)&V.WILL_QOS_MASK)>>V.WILL_QOS_SHIFT;if(o.will)s.will={},s.will.retain=l,s.will.qos=c;else{if(l)return this._emitError(new Error(\"Will Retain Flag must be set to zero when Will Flag is set to 0\"));if(c)return this._emitError(new Error(\"Will QoS must be set to zero when Will Flag is set to 0\"))}if(s.clean=(this._list.readUInt8(this._pos)&V.CLEAN_SESSION_MASK)!==0,this._pos++,s.keepalive=this._parseNum(),s.keepalive===-1)return this._emitError(new Error(\"Packet too short\"));if(s.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(s.properties=d)}let h=this._parseString();if(h===null)return this._emitError(new Error(\"Packet too short\"));if(s.clientId=h,D(\"_parseConnect: packet.clientId: %s\",s.clientId),o.will){if(s.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(s.will.properties=d)}if(e=this._parseString(),e===null)return this._emitError(new Error(\"Cannot parse will topic\"));if(s.will.topic=e,D(\"_parseConnect: packet.will.topic: %s\",s.will.topic),r=this._parseBuffer(),r===null)return this._emitError(new Error(\"Cannot parse will payload\"));s.will.payload=r,D(\"_parseConnect: packet.will.paylaod: %s\",s.will.payload)}if(o.username){if(n=this._parseString(),n===null)return this._emitError(new Error(\"Cannot parse username\"));s.username=n,D(\"_parseConnect: packet.username: %s\",s.username)}if(o.password){if(i=this._parseBuffer(),i===null)return this._emitError(new Error(\"Cannot parse password\"));s.password=i}return this.settings=s,D(\"_parseConnect: complete\"),s}_parseConnack(){D(\"_parseConnack\");let e=this.packet;if(this._list.length<1)return null;let r=this._list.readUInt8(this._pos++);if(r>1)return this._emitError(new Error(\"Invalid connack flags, bits 7-1 must be set to 0\"));if(e.sessionPresent=!!(r&V.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(e.returnCode===-1||e.reasonCode===-1)return this._emitError(new Error(\"Cannot parse return code\"));if(this.settings.protocolVersion===5){let i=this._parseProperties();Object.getOwnPropertyNames(i).length&&(e.properties=i)}D(\"_parseConnack: complete\")}_parsePublish(){D(\"_parsePublish\");let e=this.packet;if(e.topic=this._parseString(),e.topic===null)return this._emitError(new Error(\"Cannot parse topic\"));if(!(e.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}e.payload=this._list.slice(this._pos,e.length),D(\"_parsePublish: payload from buffer list: %o\",e.payload)}}_parseSubscribe(){D(\"_parseSubscribe\");let e=this.packet,r,i,n,o,s,a,l;if(e.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(e.properties=c)}if(e.length<=0)return this._emitError(new Error(\"Malformed subscribe, no payload specified\"));for(;this._pos=e.length)return this._emitError(new Error(\"Malformed Subscribe Payload\"));if(i=this._parseByte(),this.settings.protocolVersion===5){if(i&192)return this._emitError(new Error(\"Invalid subscribe topic flag bits, bits 7-6 must be 0\"))}else if(i&252)return this._emitError(new Error(\"Invalid subscribe topic flag bits, bits 7-2 must be 0\"));if(n=i&V.SUBSCRIBE_OPTIONS_QOS_MASK,n>2)return this._emitError(new Error(\"Invalid subscribe QoS, must be <= 2\"));if(a=(i>>V.SUBSCRIBE_OPTIONS_NL_SHIFT&V.SUBSCRIBE_OPTIONS_NL_MASK)!==0,s=(i>>V.SUBSCRIBE_OPTIONS_RAP_SHIFT&V.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,o=i>>V.SUBSCRIBE_OPTIONS_RH_SHIFT&V.SUBSCRIBE_OPTIONS_RH_MASK,o>2)return this._emitError(new Error(\"Invalid retain handling, must be <= 2\"));l={topic:r,qos:n},this.settings.protocolVersion===5?(l.nl=a,l.rap=s,l.rh=o):this.settings.bridgeMode&&(l.rh=0,l.rap=!0,l.nl=!0),D(\"_parseSubscribe: push subscription `%s` to subscription\",l),e.subscriptions.push(l)}}}_parseSuback(){D(\"_parseSuback\");let e=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}if(e.length<=0)return this._emitError(new Error(\"Malformed suback, no payload specified\"));for(;this._pos2&&r!==128)return this._emitError(new Error(\"Invalid suback QoS, must be 0, 1, 2 or 128\"));this.packet.granted.push(r)}}}_parseUnsubscribe(){D(\"_parseUnsubscribe\");let e=this.packet;if(e.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}if(e.length<=0)return this._emitError(new Error(\"Malformed unsubscribe, no payload specified\"));for(;this._pos2){switch(e.reasonCode=this._parseByte(),this.packet.cmd){case\"puback\":case\"pubrec\":if(!V.MQTT5_PUBACK_PUBREC_CODES[e.reasonCode])return this._emitError(new Error(\"Invalid \"+this.packet.cmd+\" reason code\"));break;case\"pubrel\":case\"pubcomp\":if(!V.MQTT5_PUBREL_PUBCOMP_CODES[e.reasonCode])return this._emitError(new Error(\"Invalid \"+this.packet.cmd+\" reason code\"));break}D(\"_parseConfirmation: packet.reasonCode `%d`\",e.reasonCode)}else e.reasonCode=0;if(e.length>3){let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}}return!0}_parseDisconnect(){let e=this.packet;if(D(\"_parseDisconnect\"),this.settings.protocolVersion===5){this._list.length>0?(e.reasonCode=this._parseByte(),V.MQTT5_DISCONNECT_CODES[e.reasonCode]||this._emitError(new Error(\"Invalid disconnect reason code\"))):e.reasonCode=0;let r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}return D(\"_parseDisconnect result: true\"),!0}_parseAuth(){D(\"_parseAuth\");let e=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error(\"Not supported auth packet for this version MQTT\"));if(e.reasonCode=this._parseByte(),!V.MQTT5_AUTH_CODES[e.reasonCode])return this._emitError(new Error(\"Invalid auth reason code\"));let r=this._parseProperties();return Object.getOwnPropertyNames(r).length&&(e.properties=r),D(\"_parseAuth: result: true\"),!0}_parseMessageId(){let e=this.packet;return e.messageId=this._parseNum(),e.messageId===null?(this._emitError(new Error(\"Cannot parse messageId\")),!1):(D(\"_parseMessageId: packet.messageId %d\",e.messageId),!0)}_parseString(e){let r=this._parseNum(),i=r+this._pos;if(r===-1||i>this._list.length||i>this.packet.length)return null;let n=this._list.toString(\"utf8\",this._pos,i);return this._pos+=r,D(\"_parseString: result: %s\",n),n}_parseStringPair(){return D(\"_parseStringPair\"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let e=this._parseNum(),r=e+this._pos;if(e===-1||r>this._list.length||r>this.packet.length)return null;let i=this._list.slice(this._pos,r);return this._pos+=e,D(\"_parseBuffer: result: %o\",i),i}_parseNum(){if(this._list.length-this._pos<2)return-1;let e=this._list.readUInt16BE(this._pos);return this._pos+=2,D(\"_parseNum: result: %s\",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let e=this._list.readUInt32BE(this._pos);return this._pos+=4,D(\"_parse4ByteNum: result: %s\",e),e}_parseVarByteNum(e){D(\"_parseVarByteNum\");let r=4,i=0,n=1,o=0,s=!1,a,l=this._pos?this._pos:0;for(;i=i&&this._emitError(new Error(\"Invalid variable byte integer\")),l&&(this._pos+=i),s?e?s={bytes:i,value:o}:s=o:s=!1,D(\"_parseVarByteNum: result: %o\",s),s}_parseByte(){let e;return this._pos{_();v();m();var{Buffer:Si}=(be(),X(me)),Om=65536,vd={},xm=Si.isBuffer(Si.from([1,2]).subarray(0,1));function Ed(t){let e=Si.allocUnsafe(2);return e.writeUInt8(t>>8,0),e.writeUInt8(t&255,0+1),e}function Mm(){for(let t=0;t0&&(r=r|128),n.writeUInt8(r,i++);while(t>0&&i<4);return t>0&&(i=0),xm?n.subarray(0,i):n.slice(0,i)}function Um(t){let e=Si.allocUnsafe(4);return e.writeUInt32BE(t,0),e}Sd.exports={cache:vd,generateCache:Mm,generateNumber:Ed,genBufVariableByteInt:Lm,generate4ByteBuffer:Um}});var Id=M((UC,zo)=>{\"use strict\";_();v();m();typeof B>\"u\"||!B.version||B.version.indexOf(\"v0.\")===0||B.version.indexOf(\"v1.\")===0&&B.version.indexOf(\"v1.8.\")!==0?zo.exports={nextTick:Nm}:zo.exports=B;function Nm(t,e,r,i){if(typeof t!=\"function\")throw new TypeError('\"callback\" argument must be a function');var n=arguments.length,o,s;switch(n){case 0:case 1:return B.nextTick(t);case 2:return B.nextTick(function(){t.call(null,e)});case 3:return B.nextTick(function(){t.call(null,e,r)});case 4:return B.nextTick(function(){t.call(null,e,r,i)});default:for(o=new Array(n-1),s=0;s{_();v();m();var j=Ho(),{Buffer:q}=(be(),X(me)),qm=q.allocUnsafe(0),Dm=q.from([0]),Ai=Ad(),jm=Id().nextTick,qe=ot()(\"mqtt-packet:writeToStream\"),Pn=Ai.cache,Fm=Ai.generateNumber,Wm=Ai.generateCache,Ko=Ai.genBufVariableByteInt,$m=Ai.generate4ByteBuffer,Te=Go,kn=!0;function kd(t,e,r){switch(qe(\"generate called\"),e.cork&&(e.cork(),jm(Hm,e)),kn&&(kn=!1,Wm()),qe(\"generate: packet.cmd: %s\",t.cmd),t.cmd){case\"connect\":return Vm(t,e,r);case\"connack\":return zm(t,e,r);case\"publish\":return Km(t,e,r);case\"puback\":case\"pubrec\":case\"pubrel\":case\"pubcomp\":return Gm(t,e,r);case\"subscribe\":return Qm(t,e,r);case\"suback\":return Ym(t,e,r);case\"unsubscribe\":return Jm(t,e,r);case\"unsuback\":return Xm(t,e,r);case\"pingreq\":case\"pingresp\":return Zm(t,e,r);case\"disconnect\":return e1(t,e,r);case\"auth\":return t1(t,e,r);default:return e.destroy(new Error(\"Unknown command\")),!1}}Object.defineProperty(kd,\"cacheNumbers\",{get(){return Te===Go},set(t){t?((!Pn||Object.keys(Pn).length===0)&&(kn=!0),Te=Go):(kn=!1,Te=r1)}});function Hm(t){t.uncork()}function Vm(t,e,r){let i=t||{},n=i.protocolId||\"MQTT\",o=i.protocolVersion||4,s=i.will,a=i.clean,l=i.keepalive||0,c=i.clientId||\"\",h=i.username,d=i.password,g=i.properties;a===void 0&&(a=!0);let y=0;if(!n||typeof n!=\"string\"&&!q.isBuffer(n))return e.destroy(new Error(\"Invalid protocolId\")),!1;if(y+=n.length+2,o!==3&&o!==4&&o!==5)return e.destroy(new Error(\"Invalid protocol version\")),!1;if(y+=1,(typeof c==\"string\"||q.isBuffer(c))&&(c||o>=4)&&(c||a))y+=q.byteLength(c)+2;else{if(o<4)return e.destroy(new Error(\"clientId must be supplied before 3.1.1\")),!1;if(a*1===0)return e.destroy(new Error(\"clientId must be given if cleanSession set to 0\")),!1}if(typeof l!=\"number\"||l<0||l>65535||l%1!==0)return e.destroy(new Error(\"Invalid keepalive\")),!1;y+=2,y+=1;let w,S;if(o===5){if(w=Wt(e,g),!w)return!1;y+=w.length}if(s){if(typeof s!=\"object\")return e.destroy(new Error(\"Invalid will\")),!1;if(!s.topic||typeof s.topic!=\"string\")return e.destroy(new Error(\"Invalid will topic\")),!1;if(y+=q.byteLength(s.topic)+2,y+=2,s.payload)if(s.payload.length>=0)typeof s.payload==\"string\"?y+=q.byteLength(s.payload):y+=s.payload.length;else return e.destroy(new Error(\"Invalid will payload\")),!1;if(S={},o===5){if(S=Wt(e,s.properties),!S)return!1;y+=S.length}}let E=!1;if(h!=null)if(Pd(h))E=!0,y+=q.byteLength(h)+2;else return e.destroy(new Error(\"Invalid username\")),!1;if(d!=null){if(!E)return e.destroy(new Error(\"Username is required to use password\")),!1;if(Pd(d))y+=Od(d)+2;else return e.destroy(new Error(\"Invalid password\")),!1}e.write(j.CONNECT_HEADER),De(e,y),Yr(e,n),i.bridgeMode&&(o+=128),e.write(o===131?j.VERSION131:o===132?j.VERSION132:o===4?j.VERSION4:o===5?j.VERSION5:j.VERSION3);let I=0;return I|=h!=null?j.USERNAME_MASK:0,I|=d!=null?j.PASSWORD_MASK:0,I|=s&&s.retain?j.WILL_RETAIN_MASK:0,I|=s&&s.qos?s.qos<0&&Te(e,c),g?.write(),qe(\"publish: payload: %o\",l),e.write(l)}function Gm(t,e,r){let i=r?r.protocolVersion:4,n=t||{},o=n.cmd||\"puback\",s=n.messageId,a=n.dup&&o===\"pubrel\"?j.DUP_MASK:0,l=0,c=n.reasonCode,h=n.properties,d=i===5?3:2;if(o===\"pubrel\"&&(l=1),typeof s!=\"number\")return e.destroy(new Error(\"Invalid messageId\")),!1;let g=null;if(i===5&&typeof h==\"object\"){if(g=Ii(e,h,r,d),!g)return!1;d+=g.length}return e.write(j.ACKS[o][l][a][0]),d===3&&(d+=c!==0?1:-1),De(e,d),Te(e,s),i===5&&d!==2&&e.write(q.from([c])),g!==null?g.write():d===4&&e.write(q.from([0])),!0}function Qm(t,e,r){qe(\"subscribe: packet: \");let i=r?r.protocolVersion:4,n=t||{},o=n.dup?j.DUP_MASK:0,s=n.messageId,a=n.subscriptions,l=n.properties,c=0;if(typeof s!=\"number\")return e.destroy(new Error(\"Invalid messageId\")),!1;c+=2;let h=null;if(i===5){if(h=Wt(e,l),!h)return!1;c+=h.length}if(typeof a==\"object\"&&a.length)for(let g=0;g2)return e.destroy(new Error(\"Invalid subscriptions - invalid Retain Handling\")),!1}c+=q.byteLength(y)+2+1}else return e.destroy(new Error(\"Invalid subscriptions\")),!1;qe(\"subscribe: writing to stream: %o\",j.SUBSCRIBE_HEADER),e.write(j.SUBSCRIBE_HEADER[1][o?1:0][0]),De(e,c),Te(e,s),h!==null&&h.write();let d=!0;for(let g of a){let y=g.topic,w=g.qos,S=+g.nl,E=+g.rap,I=g.rh,C;wr(e,y),C=j.SUBSCRIBE_OPTIONS_QOS[w],i===5&&(C|=S?j.SUBSCRIBE_OPTIONS_NL:0,C|=E?j.SUBSCRIBE_OPTIONS_RAP:0,C|=I?j.SUBSCRIBE_OPTIONS_RH[I]:0),d=e.write(q.from([C]))}return d}function Ym(t,e,r){let i=r?r.protocolVersion:4,n=t||{},o=n.messageId,s=n.granted,a=n.properties,l=0;if(typeof o!=\"number\")return e.destroy(new Error(\"Invalid messageId\")),!1;if(l+=2,typeof s==\"object\"&&s.length)for(let h=0;hj.VARBYTEINT_MAX)return t.destroy(new Error(`Invalid variable byte integer: ${e}`)),!1;let r=Td[e];return r||(r=Ko(e),e<16384&&(Td[e]=r)),qe(\"writeVarByteInt: writing to stream: %o\",r),t.write(r)}function wr(t,e){let r=q.byteLength(e);return Te(t,r),qe(\"writeString: %s\",e),t.write(e,\"utf8\")}function Rd(t,e,r){wr(t,e),wr(t,r)}function Go(t,e){return qe(\"writeNumberCached: number: %d\",e),qe(\"writeNumberCached: %o\",Pn[e]),t.write(Pn[e])}function r1(t,e){let r=Fm(e);return qe(\"writeNumberGenerated: %o\",r),t.write(r)}function i1(t,e){let r=$m(e);return qe(\"write4ByteNumber: %o\",r),t.write(r)}function Yr(t,e){typeof e==\"string\"?wr(t,e):e?(Te(t,e.length),t.write(e)):Te(t,0)}function Wt(t,e){if(typeof e!=\"object\"||e.length!=null)return{length:1,write(){Bd(t,{},0)}};let r=0;function i(o,s){let a=j.propertiesTypes[o],l=0;switch(a){case\"byte\":{if(typeof s!=\"boolean\")return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+1;break}case\"int8\":{if(typeof s!=\"number\"||s<0||s>255)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+1;break}case\"binary\":{if(s&&s===null)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+q.byteLength(s)+2;break}case\"int16\":{if(typeof s!=\"number\"||s<0||s>65535)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+2;break}case\"int32\":{if(typeof s!=\"number\"||s<0||s>4294967295)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+4;break}case\"var\":{if(typeof s!=\"number\"||s<0||s>268435455)return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+q.byteLength(Ko(s));break}case\"string\":{if(typeof s!=\"string\")return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=1+2+q.byteLength(s.toString());break}case\"pair\":{if(typeof s!=\"object\")return t.destroy(new Error(`Invalid ${o}: ${s}`)),!1;l+=Object.getOwnPropertyNames(s).reduce((c,h)=>{let d=s[h];return Array.isArray(d)?c+=d.reduce((g,y)=>(g+=1+2+q.byteLength(h.toString())+2+q.byteLength(y.toString()),g),0):c+=1+2+q.byteLength(h.toString())+2+q.byteLength(s[h].toString()),c},0);break}default:return t.destroy(new Error(`Invalid property ${o}: ${s}`)),!1}return l}if(e)for(let o in e){let s=0,a=0,l=e[o];if(Array.isArray(l))for(let c=0;co;){let a=n.shift();if(a&&e[a])delete e[a],s=Wt(t,e);else return!1}return s}function Cd(t,e,r){switch(j.propertiesTypes[e]){case\"byte\":{t.write(q.from([j.properties[e]])),t.write(q.from([+r]));break}case\"int8\":{t.write(q.from([j.properties[e]])),t.write(q.from([r]));break}case\"binary\":{t.write(q.from([j.properties[e]])),Yr(t,r);break}case\"int16\":{t.write(q.from([j.properties[e]])),Te(t,r);break}case\"int32\":{t.write(q.from([j.properties[e]])),i1(t,r);break}case\"var\":{t.write(q.from([j.properties[e]])),De(t,r);break}case\"string\":{t.write(q.from([j.properties[e]])),wr(t,r);break}case\"pair\":{Object.getOwnPropertyNames(r).forEach(n=>{let o=r[n];Array.isArray(o)?o.forEach(s=>{t.write(q.from([j.properties[e]])),Rd(t,n.toString(),s.toString())}):(t.write(q.from([j.properties[e]])),Rd(t,n.toString(),o.toString()))});break}default:return t.destroy(new Error(`Invalid property ${e} value: ${r}`)),!1}}function Bd(t,e,r){De(t,r);for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==null){let n=e[i];if(Array.isArray(n))for(let o=0;o{_();v();m();var n1=Qo(),{EventEmitter:s1}=(sr(),X(nr)),{Buffer:Md}=(be(),X(me));function o1(t,e){let r=new Yo;return n1(t,r,e),r.concat()}var Yo=class extends s1{constructor(){super(),this._array=new Array(20),this._i=0}write(e){return this._array[this._i++]=e,!0}concat(){let e=0,r=new Array(this._array.length),i=this._array,n=0,o;for(o=0;o{_();v();m();On.parser=md().parser;On.generate=Ud();On.writeToStream=Qo()});var Zo=M(Xo=>{\"use strict\";_();v();m();Object.defineProperty(Xo,\"__esModule\",{value:!0});var Jo=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let e=this.nextId++;return this.nextId===65536&&(this.nextId=1),e}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(e){return!0}deallocate(e){}clear(){}};Xo.default=Jo});var Dd=M((bB,qd)=>{\"use strict\";_();v();m();qd.exports=a1;function Jr(t){return t instanceof x?x.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function a1(t){if(t=t||{},t.circles)return l1(t);return t.proto?i:r;function e(n,o){for(var s=Object.keys(n),a=new Array(s.length),l=0;l{\"use strict\";_();v();m();jd.exports=Dd()()});var $d=M(Xr=>{\"use strict\";_();v();m();Object.defineProperty(Xr,\"__esModule\",{value:!0});Xr.validateTopics=Xr.validateTopic=void 0;function Wd(t){let e=t.split(\"/\");for(let r=0;r{\"use strict\";_();v();m();Object.defineProperty(ta,\"__esModule\",{value:!0});var f1=jt(),c1={objectMode:!0},h1={clean:!0},ea=class{constructor(e){this.options=e||{},this.options=Object.assign(Object.assign({},h1),e),this._inflights=new Map}put(e,r){return this._inflights.set(e.messageId,e),r&&r(),this}createStream(){let e=new f1.Readable(c1),r=[],i=!1,n=0;return this._inflights.forEach((o,s)=>{r.push(o)}),e._read=()=>{!i&&n{if(!i)return i=!0,setTimeout(()=>{e.emit(\"close\")},0),e},e}del(e,r){let i=this._inflights.get(e.messageId);return i?(this._inflights.delete(e.messageId),r(null,i)):r&&r(new Error(\"missing packet\")),this}get(e,r){let i=this._inflights.get(e.messageId);return i?r(null,i):r&&r(new Error(\"missing packet\")),this}close(e){this.options.clean&&(this._inflights=null),e&&e()}};ta.default=ea});var Vd=M(ia=>{\"use strict\";_();v();m();Object.defineProperty(ia,\"__esModule\",{value:!0});var Hd=[0,16,128,131,135,144,145,151,153],d1=(t,e,r)=>{t.log(\"handlePublish: packet %o\",e),r=typeof r<\"u\"?r:t.noop;let i=e.topic.toString(),n=e.payload,{qos:o}=e,{messageId:s}=e,{options:a}=t;if(t.options.protocolVersion===5){let l;if(e.properties&&(l=e.properties.topicAlias),typeof l<\"u\")if(i.length===0)if(l>0&&l<=65535){let c=t.topicAliasRecv.getTopicByAlias(l);if(c)i=c,t.log(\"handlePublish :: topic complemented by alias. topic: %s - alias: %d\",i,l);else{t.log(\"handlePublish :: unregistered topic alias. alias: %d\",l),t.emit(\"error\",new Error(\"Received unregistered Topic Alias\"));return}}else{t.log(\"handlePublish :: topic alias out of range. alias: %d\",l),t.emit(\"error\",new Error(\"Received Topic Alias is out of range\"));return}else if(t.topicAliasRecv.put(i,l))t.log(\"handlePublish :: registered topic: %s - alias: %d\",i,l);else{t.log(\"handlePublish :: topic alias out of range. alias: %d\",l),t.emit(\"error\",new Error(\"Received Topic Alias is out of range\"));return}}switch(t.log(\"handlePublish: qos %d\",o),o){case 2:{a.customHandleAcks(i,n,e,(l,c)=>{if(typeof l==\"number\"&&(c=l,l=null),l)return t.emit(\"error\",l);if(Hd.indexOf(c)===-1)return t.emit(\"error\",new Error(\"Wrong reason code for pubrec\"));c?t._sendPacket({cmd:\"pubrec\",messageId:s,reasonCode:c},r):t.incomingStore.put(e,()=>{t._sendPacket({cmd:\"pubrec\",messageId:s},r)})});break}case 1:{a.customHandleAcks(i,n,e,(l,c)=>{if(typeof l==\"number\"&&(c=l,l=null),l)return t.emit(\"error\",l);if(Hd.indexOf(c)===-1)return t.emit(\"error\",new Error(\"Wrong reason code for puback\"));c||t.emit(\"message\",i,n,e),t.handleMessage(e,h=>{if(h)return r&&r(h);t._sendPacket({cmd:\"puback\",messageId:s,reasonCode:c},r)})});break}case 0:t.emit(\"message\",i,n,e),t.handleMessage(e,r);break;default:t.log(\"handlePublish: unknown QoS. Doing nothing.\");break}};ia.default=d1});var zd=M((XB,p1)=>{p1.exports={version:\"5.10.3\"}});var _r=M(at=>{\"use strict\";_();v();m();Object.defineProperty(at,\"__esModule\",{value:!0});at.MQTTJS_VERSION=at.nextTick=at.applyMixin=at.ErrorWithReasonCode=void 0;var na=class t extends Error{constructor(e,r){super(e),this.code=r,Object.setPrototypeOf(this,t.prototype),Object.getPrototypeOf(this).name=\"ErrorWithReasonCode\"}};at.ErrorWithReasonCode=na;function g1(t,e,r=!1){var i;let n=[e];for(;;){let o=n[0],s=Object.getPrototypeOf(o);if(s?.prototype)n.unshift(s);else break}for(let o of n)for(let s of Object.getOwnPropertyNames(o.prototype))(r||s!==\"constructor\")&&Object.defineProperty(t.prototype,s,(i=Object.getOwnPropertyDescriptor(o.prototype,s))!==null&&i!==void 0?i:Object.create(null))}at.applyMixin=g1;at.nextTick=typeof(B===null||B===void 0?void 0:B.nextTick)==\"function\"?B.nextTick:t=>{setTimeout(t,0)};at.MQTTJS_VERSION=zd().version});var Ti=M($t=>{\"use strict\";_();v();m();Object.defineProperty($t,\"__esModule\",{value:!0});$t.ReasonCodes=void 0;var Kd=_r();$t.ReasonCodes={0:\"\",1:\"Unacceptable protocol version\",2:\"Identifier rejected\",3:\"Server unavailable\",4:\"Bad username or password\",5:\"Not authorized\",16:\"No matching subscribers\",17:\"No subscription existed\",128:\"Unspecified error\",129:\"Malformed Packet\",130:\"Protocol Error\",131:\"Implementation specific error\",132:\"Unsupported Protocol Version\",133:\"Client Identifier not valid\",134:\"Bad User Name or Password\",135:\"Not authorized\",136:\"Server unavailable\",137:\"Server busy\",138:\"Banned\",139:\"Server shutting down\",140:\"Bad authentication method\",141:\"Keep Alive timeout\",142:\"Session taken over\",143:\"Topic Filter invalid\",144:\"Topic Name invalid\",145:\"Packet identifier in use\",146:\"Packet Identifier not found\",147:\"Receive Maximum exceeded\",148:\"Topic Alias invalid\",149:\"Packet too large\",150:\"Message rate too high\",151:\"Quota exceeded\",152:\"Administrative action\",153:\"Payload format invalid\",154:\"Retain not supported\",155:\"QoS not supported\",156:\"Use another server\",157:\"Server moved\",158:\"Shared Subscriptions not supported\",159:\"Connection rate exceeded\",160:\"Maximum connect time\",161:\"Subscription Identifiers not supported\",162:\"Wildcard Subscriptions not supported\"};var y1=(t,e)=>{let{messageId:r}=e,i=e.cmd,n=null,o=t.outgoing[r]?t.outgoing[r].cb:null,s=null;if(!o){t.log(\"_handleAck :: Server sent an ack in error. Ignoring.\");return}switch(t.log(\"_handleAck :: packet type\",i),i){case\"pubcomp\":case\"puback\":{let a=e.reasonCode;a&&a>0&&a!==16?(s=new Kd.ErrorWithReasonCode(`Publish error: ${$t.ReasonCodes[a]}`,a),t._removeOutgoingAndStoreMessage(r,()=>{o(s,e)})):t._removeOutgoingAndStoreMessage(r,o);break}case\"pubrec\":{n={cmd:\"pubrel\",qos:2,messageId:r};let a=e.reasonCode;a&&a>0&&a!==16?(s=new Kd.ErrorWithReasonCode(`Publish error: ${$t.ReasonCodes[a]}`,a),t._removeOutgoingAndStoreMessage(r,()=>{o(s,e)})):t._sendPacket(n);break}case\"suback\":{delete t.outgoing[r],t.messageIdProvider.deallocate(r);let a=e.granted;for(let l=0;l{delete t._resubscribeTopics[d]})}}delete t.messageIdToTopic[r],t._invokeStoreProcessingQueue(),o(s,e);break}case\"unsuback\":{delete t.outgoing[r],t.messageIdProvider.deallocate(r),t._invokeStoreProcessingQueue(),o(null,e);break}default:t.emit(\"error\",new Error(\"unrecognized packet type\"))}t.disconnecting&&Object.keys(t.outgoing).length===0&&t.emit(\"outgoingEmpty\")};$t.default=y1});var Qd=M(sa=>{\"use strict\";_();v();m();Object.defineProperty(sa,\"__esModule\",{value:!0});var Gd=_r(),b1=Ti(),w1=(t,e)=>{let{options:r}=t,i=r.protocolVersion,n=i===5?e.reasonCode:e.returnCode;if(i!==5){let o=new Gd.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${i}`,n);t.emit(\"error\",o);return}t.handleAuth(e,(o,s)=>{if(o){t.emit(\"error\",o);return}if(n===24)t.reconnecting=!1,t._sendPacket(s);else{let a=new Gd.ErrorWithReasonCode(`Connection refused: ${b1.ReasonCodes[n]}`,n);t.emit(\"error\",a)}})};sa.default=w1});var ep=M(Mn=>{\"use strict\";_();v();m();Object.defineProperty(Mn,\"__esModule\",{value:!0});Mn.LRUCache=void 0;var Ri=typeof performance==\"object\"&&performance&&typeof performance.now==\"function\"?performance:Date,Jd=new Set,oa=typeof B==\"object\"&&B?B:{},Xd=(t,e,r,i)=>{typeof oa.emitWarning==\"function\"?oa.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},xn=globalThis.AbortController,Yd=globalThis.AbortSignal;if(typeof xn>\"u\"){Yd=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},xn=class{constructor(){e()}signal=new Yd;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=oa.env?.LRU_CACHE_IGNORE_AC_WARNING!==\"1\",e=()=>{t&&(t=!1,Xd(\"AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.\",\"NO_ABORT_CONTROLLER\",\"ENOTSUP\",e))}}var _1=t=>!Jd.has(t),EP=Symbol(\"type\"),Ht=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Zd=t=>Ht(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Zr:null:null,Zr=class extends Array{constructor(e){super(e),this.fill(0)}},aa=class t{heap;length;static#l=!1;static create(e){let r=Zd(e);if(!r)return[];t.#l=!0;let i=new t(e,r);return t.#l=!1,i}constructor(e,r){if(!t.#l)throw new TypeError(\"instantiate Stack using Stack.create(n)\");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},la=class t{#l;#c;#p;#g;#B;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#i;#y;#n;#r;#e;#u;#h;#a;#s;#b;#o;#E;#S;#w;#_;#I;#f;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#w,sizes:e.#E,keyMap:e.#n,keyList:e.#r,valList:e.#e,next:e.#u,prev:e.#h,get head(){return e.#a},get tail(){return e.#s},free:e.#b,isBackgroundFetch:r=>e.#t(r),backgroundFetch:(r,i,n,o)=>e.#O(r,i,n,o),moveToTail:r=>e.#C(r),indexes:r=>e.#m(r),rindexes:r=>e.#v(r),isStale:r=>e.#d(r)}}get max(){return this.#l}get maxSize(){return this.#c}get calculatedSize(){return this.#y}get size(){return this.#i}get fetchMethod(){return this.#B}get dispose(){return this.#p}get disposeAfter(){return this.#g}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:a,allowStale:l,dispose:c,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:g,maxSize:y=0,maxEntrySize:w=0,sizeCalculation:S,fetchMethod:E,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:U,ignoreFetchAbort:N}=e;if(r!==0&&!Ht(r))throw new TypeError(\"max option must be a nonnegative integer\");let W=r?Zd(r):Array;if(!W)throw new Error(\"invalid max value: \"+r);if(this.#l=r,this.#c=y,this.maxEntrySize=w||this.#c,this.sizeCalculation=S,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError(\"cannot set sizeCalculation without setting maxSize or maxEntrySize\");if(typeof this.sizeCalculation!=\"function\")throw new TypeError(\"sizeCalculation set to non-function\")}if(E!==void 0&&typeof E!=\"function\")throw new TypeError(\"fetchMethod must be a function if specified\");if(this.#B=E,this.#I=!!E,this.#n=new Map,this.#r=new Array(r).fill(void 0),this.#e=new Array(r).fill(void 0),this.#u=new W(r),this.#h=new W(r),this.#a=0,this.#s=0,this.#b=aa.create(r),this.#i=0,this.#y=0,typeof c==\"function\"&&(this.#p=c),typeof h==\"function\"?(this.#g=h,this.#o=[]):(this.#g=void 0,this.#o=void 0),this.#_=!!this.#p,this.#f=!!this.#g,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!R,this.allowStaleOnFetchAbort=!!U,this.ignoreFetchAbort=!!N,this.maxEntrySize!==0){if(this.#c!==0&&!Ht(this.#c))throw new TypeError(\"maxSize must be a positive integer if specified\");if(!Ht(this.maxEntrySize))throw new TypeError(\"maxEntrySize must be a positive integer if specified\");this.#q()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.ttlResolution=Ht(n)||n===0?n:1,this.ttlAutopurge=!!o,this.ttl=i||0,this.ttl){if(!Ht(this.ttl))throw new TypeError(\"ttl must be a positive integer if specified\");this.#x()}if(this.#l===0&&this.ttl===0&&this.#c===0)throw new TypeError(\"At least one of max, maxSize, or ttl is required\");if(!this.ttlAutopurge&&!this.#l&&!this.#c){let K=\"LRU_CACHE_UNBOUNDED\";_1(K)&&(Jd.add(K),Xd(\"TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.\",\"UnboundedCacheWarning\",K,t))}}getRemainingTTL(e){return this.#n.has(e)?1/0:0}#x(){let e=new Zr(this.#l),r=new Zr(this.#l);this.#w=e,this.#S=r,this.#M=(o,s,a=Ri.now())=>{if(r[o]=s!==0?a:0,e[o]=s,s!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#d(o)&&this.delete(this.#r[o])},s+1);l.unref&&l.unref()}},this.#T=o=>{r[o]=e[o]!==0?Ri.now():0},this.#A=(o,s)=>{if(e[s]){let a=e[s],l=r[s];o.ttl=a,o.start=l,o.now=i||n();let c=o.now-l;o.remainingTTL=a-c}};let i=0,n=()=>{let o=Ri.now();if(this.ttlResolution>0){i=o;let s=setTimeout(()=>i=0,this.ttlResolution);s.unref&&s.unref()}return o};this.getRemainingTTL=o=>{let s=this.#n.get(o);if(s===void 0)return 0;let a=e[s],l=r[s];if(a===0||l===0)return 1/0;let c=(i||n())-l;return a-c},this.#d=o=>e[o]!==0&&r[o]!==0&&(i||n())-r[o]>e[o]}#T=()=>{};#A=()=>{};#M=()=>{};#d=()=>!1;#q(){let e=new Zr(this.#l);this.#y=0,this.#E=e,this.#R=r=>{this.#y-=e[r],e[r]=0},this.#L=(r,i,n,o)=>{if(this.#t(i))return 0;if(!Ht(n))if(o){if(typeof o!=\"function\")throw new TypeError(\"sizeCalculation must be a function\");if(n=o(i,r),!Ht(n))throw new TypeError(\"sizeCalculation return invalid (expect positive integer)\")}else throw new TypeError(\"invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.\");return n},this.#P=(r,i,n)=>{if(e[r]=i,this.#c){let o=this.#c-e[r];for(;this.#y>o;)this.#k(!0)}this.#y+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#y)}}#R=e=>{};#P=(e,r,i)=>{};#L=(e,r,i,n)=>{if(i||n)throw new TypeError(\"cannot set size without setting maxSize or maxEntrySize on cache\");return 0};*#m({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#s;!(!this.#U(r)||((e||!this.#d(r))&&(yield r),r===this.#a));)r=this.#h[r]}*#v({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#a;!(!this.#U(r)||((e||!this.#d(r))&&(yield r),r===this.#s));)r=this.#u[r]}#U(e){return e!==void 0&&this.#n.get(this.#r[e])===e}*entries(){for(let e of this.#m())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*rentries(){for(let e of this.#v())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*keys(){for(let e of this.#m()){let r=this.#r[e];r!==void 0&&!this.#t(this.#e[e])&&(yield r)}}*rkeys(){for(let e of this.#v()){let r=this.#r[e];r!==void 0&&!this.#t(this.#e[e])&&(yield r)}}*values(){for(let e of this.#m())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#v())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}find(e,r={}){for(let i of this.#m()){let n=this.#e[i],o=this.#t(n)?n.__staleWhileFetching:n;if(o!==void 0&&e(o,this.#r[i],this))return this.get(this.#r[i],r)}}forEach(e,r=this){for(let i of this.#m()){let n=this.#e[i],o=this.#t(n)?n.__staleWhileFetching:n;o!==void 0&&e.call(r,o,this.#r[i],this)}}rforEach(e,r=this){for(let i of this.#v()){let n=this.#e[i],o=this.#t(n)?n.__staleWhileFetching:n;o!==void 0&&e.call(r,o,this.#r[i],this)}}purgeStale(){let e=!1;for(let r of this.#v({allowStale:!0}))this.#d(r)&&(this.delete(this.#r[r]),e=!0);return e}dump(){let e=[];for(let r of this.#m({allowStale:!0})){let i=this.#r[r],n=this.#e[r],o=this.#t(n)?n.__staleWhileFetching:n;if(o===void 0||i===void 0)continue;let s={value:o};if(this.#w&&this.#S){s.ttl=this.#w[r];let a=Ri.now()-this.#S[r];s.start=Math.floor(Date.now()-a)}this.#E&&(s.size=this.#E[r]),e.unshift([i,s])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Ri.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:o,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,h=this.#L(e,r,i.size||0,a);if(this.maxEntrySize&&h>this.maxEntrySize)return l&&(l.set=\"miss\",l.maxEntrySizeExceeded=!0),this.delete(e),this;let d=this.#i===0?void 0:this.#n.get(e);if(d===void 0)d=this.#i===0?this.#s:this.#b.length!==0?this.#b.pop():this.#i===this.#l?this.#k(!1):this.#i,this.#r[d]=e,this.#e[d]=r,this.#n.set(e,d),this.#u[this.#s]=d,this.#h[d]=this.#s,this.#s=d,this.#i++,this.#P(d,h,l),l&&(l.set=\"add\"),c=!1;else{this.#C(d);let g=this.#e[d];if(r!==g){if(this.#I&&this.#t(g)){g.__abortController.abort(new Error(\"replaced\"));let{__staleWhileFetching:y}=g;y!==void 0&&!s&&(this.#_&&this.#p?.(y,e,\"set\"),this.#f&&this.#o?.push([y,e,\"set\"]))}else s||(this.#_&&this.#p?.(g,e,\"set\"),this.#f&&this.#o?.push([g,e,\"set\"]));if(this.#R(d),this.#P(d,h,l),this.#e[d]=r,l){l.set=\"replace\";let y=g&&this.#t(g)?g.__staleWhileFetching:g;y!==void 0&&(l.oldValue=y)}}else l&&(l.set=\"update\")}if(n!==0&&!this.#w&&this.#x(),this.#w&&(c||this.#M(d,n,o),l&&this.#A(l,d)),!s&&this.#f&&this.#o){let g=this.#o,y;for(;y=g?.shift();)this.#g?.(...y)}return this}pop(){try{for(;this.#i;){let e=this.#e[this.#a];if(this.#k(!0),this.#t(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#f&&this.#o){let e=this.#o,r;for(;r=e?.shift();)this.#g?.(...r)}}}#k(e){let r=this.#a,i=this.#r[r],n=this.#e[r];return this.#I&&this.#t(n)?n.__abortController.abort(new Error(\"evicted\")):(this.#_||this.#f)&&(this.#_&&this.#p?.(n,i,\"evict\"),this.#f&&this.#o?.push([n,i,\"evict\"])),this.#R(r),e&&(this.#r[r]=void 0,this.#e[r]=void 0,this.#b.push(r)),this.#i===1?(this.#a=this.#s=0,this.#b.length=0):this.#a=this.#u[r],this.#n.delete(i),this.#i--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,o=this.#n.get(e);if(o!==void 0){let s=this.#e[o];if(this.#t(s)&&s.__staleWhileFetching===void 0)return!1;if(this.#d(o))n&&(n.has=\"stale\",this.#A(n,o));else return i&&this.#T(o),n&&(n.has=\"hit\",this.#A(n,o)),!0}else n&&(n.has=\"miss\");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#n.get(e);if(n!==void 0&&(i||!this.#d(n))){let o=this.#e[n];return this.#t(o)?o.__staleWhileFetching:o}}#O(e,r,i,n){let o=r===void 0?void 0:this.#e[r];if(this.#t(o))return o;let s=new xn,{signal:a}=i;a?.addEventListener(\"abort\",()=>s.abort(a.reason),{signal:s.signal});let l={signal:s.signal,options:i,context:n},c=(S,E=!1)=>{let{aborted:I}=s.signal,C=i.ignoreFetchAbort&&S!==void 0;if(i.status&&(I&&!E?(i.status.fetchAborted=!0,i.status.fetchError=s.signal.reason,C&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),I&&!C&&!E)return d(s.signal.reason);let R=y;return this.#e[r]===y&&(S===void 0?R.__staleWhileFetching?this.#e[r]=R.__staleWhileFetching:this.delete(e):(i.status&&(i.status.fetchUpdated=!0),this.set(e,S,l.options))),S},h=S=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=S),d(S)),d=S=>{let{aborted:E}=s.signal,I=E&&i.allowStaleOnFetchAbort,C=I||i.allowStaleOnFetchRejection,R=C||i.noDeleteOnFetchRejection,U=y;if(this.#e[r]===y&&(!R||U.__staleWhileFetching===void 0?this.delete(e):I||(this.#e[r]=U.__staleWhileFetching)),C)return i.status&&U.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),U.__staleWhileFetching;if(U.__returned===U)throw S},g=(S,E)=>{let I=this.#B?.(e,o,l);I&&I instanceof Promise&&I.then(C=>S(C===void 0?void 0:C),E),s.signal.addEventListener(\"abort\",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(S(void 0),i.allowStaleOnFetchAbort&&(S=C=>c(C,!0)))})};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(g).then(c,h),w=Object.assign(y,{__abortController:s,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(e,w,{...l.options,status:void 0}),r=this.#n.get(e)):this.#e[r]=w,w}#t(e){if(!this.#I)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty(\"__staleWhileFetching\")&&r.__abortController instanceof xn}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,context:S,forceRefresh:E=!1,status:I,signal:C}=r;if(!this.#I)return I&&(I.fetch=\"get\"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:o,status:I});let R={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:o,ttl:s,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:h,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:w,ignoreFetchAbort:y,status:I,signal:C},U=this.#n.get(e);if(U===void 0){I&&(I.fetch=\"miss\");let N=this.#O(e,U,R,S);return N.__returned=N}else{let N=this.#e[U];if(this.#t(N)){let pe=i&&N.__staleWhileFetching!==void 0;return I&&(I.fetch=\"inflight\",pe&&(I.returnedStale=!0)),pe?N.__staleWhileFetching:N.__returned=N}let W=this.#d(U);if(!E&&!W)return I&&(I.fetch=\"hit\"),this.#C(U),n&&this.#T(U),I&&this.#A(I,U),N;let K=this.#O(e,U,R,S),Q=K.__staleWhileFetching!==void 0&&i;return I&&(I.fetch=W?\"stale\":\"refresh\",Q&&W&&(I.returnedStale=!0)),Q?K.__staleWhileFetching:K.__returned=K}}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:s}=r,a=this.#n.get(e);if(a!==void 0){let l=this.#e[a],c=this.#t(l);return s&&this.#A(s,a),this.#d(a)?(s&&(s.get=\"stale\"),c?(s&&i&&l.__staleWhileFetching!==void 0&&(s.returnedStale=!0),i?l.__staleWhileFetching:void 0):(o||this.delete(e),s&&i&&(s.returnedStale=!0),i?l:void 0)):(s&&(s.get=\"hit\"),c?l.__staleWhileFetching:(this.#C(a),n&&this.#T(a),l))}else s&&(s.get=\"miss\")}#N(e,r){this.#h[r]=e,this.#u[e]=r}#C(e){e!==this.#s&&(e===this.#a?this.#a=this.#u[e]:this.#N(this.#h[e],this.#u[e]),this.#N(this.#s,e),this.#s=e)}delete(e){let r=!1;if(this.#i!==0){let i=this.#n.get(e);if(i!==void 0)if(r=!0,this.#i===1)this.clear();else{this.#R(i);let n=this.#e[i];this.#t(n)?n.__abortController.abort(new Error(\"deleted\")):(this.#_||this.#f)&&(this.#_&&this.#p?.(n,e,\"delete\"),this.#f&&this.#o?.push([n,e,\"delete\"])),this.#n.delete(e),this.#r[i]=void 0,this.#e[i]=void 0,i===this.#s?this.#s=this.#h[i]:i===this.#a?this.#a=this.#u[i]:(this.#u[this.#h[i]]=this.#u[i],this.#h[this.#u[i]]=this.#h[i]),this.#i--,this.#b.push(i)}}if(this.#f&&this.#o?.length){let i=this.#o,n;for(;n=i?.shift();)this.#g?.(...n)}return r}clear(){for(let e of this.#v({allowStale:!0})){let r=this.#e[e];if(this.#t(r))r.__abortController.abort(new Error(\"deleted\"));else{let i=this.#r[e];this.#_&&this.#p?.(r,i,\"delete\"),this.#f&&this.#o?.push([r,i,\"delete\"])}}if(this.#n.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#w&&this.#S&&(this.#w.fill(0),this.#S.fill(0)),this.#E&&this.#E.fill(0),this.#a=0,this.#s=0,this.#b.length=0,this.#y=0,this.#i=0,this.#f&&this.#o){let e=this.#o,r;for(;r=e?.shift();)this.#g?.(...r)}}};Mn.LRUCache=la});var lt=M(Vt=>{\"use strict\";_();v();m();Object.defineProperty(Vt,\"t\",{value:!0});Vt.ContainerIterator=Vt.Container=Vt.Base=void 0;var ua=class{constructor(e=0){this.iteratorType=e}equals(e){return this.o===e.o}};Vt.ContainerIterator=ua;var Ln=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};Vt.Base=Ln;var fa=class extends Ln{};Vt.Container=fa});var tp=M(Un=>{\"use strict\";_();v();m();Object.defineProperty(Un,\"t\",{value:!0});Un.default=void 0;var m1=lt(),ca=class extends m1.Base{constructor(e=[]){super(),this.S=[];let r=this;e.forEach(function(i){r.push(i)})}clear(){this.i=0,this.S=[]}push(e){return this.S.push(e),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},v1=ca;Un.default=v1});var rp=M(Nn=>{\"use strict\";_();v();m();Object.defineProperty(Nn,\"t\",{value:!0});Nn.default=void 0;var E1=lt(),ha=class extends E1.Base{constructor(e=[]){super(),this.j=0,this.q=[];let r=this;e.forEach(function(i){r.push(i)})}clear(){this.q=[],this.i=this.j=0}push(e){let r=this.q.length;if(this.j/r>.5&&this.j+this.i>=r&&r>4096){let i=this.i;for(let n=0;n{\"use strict\";_();v();m();Object.defineProperty(qn,\"t\",{value:!0});qn.default=void 0;var A1=lt(),da=class extends A1.Base{constructor(e=[],r=function(n,o){return n>o?-1:n>1;for(let o=this.i-1>>1;o>=0;--o)this.k(o,n)}m(e){let r=this.C[e];for(;e>0;){let i=e-1>>1,n=this.C[i];if(this.v(n,r)<=0)break;this.C[e]=n,e=i}this.C[e]=r}k(e,r){let i=this.C[e];for(;e0&&(n=o,s=this.C[o]),this.v(s,i)>=0)break;this.C[e]=s,e=n}this.C[e]=i}clear(){this.i=0,this.C.length=0}push(e){this.C.push(e),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let e=this.C[0],r=this.C.pop();return this.i-=1,this.i&&(this.C[0]=r,this.k(0,this.i>>1)),e}top(){return this.C[0]}find(e){return this.C.indexOf(e)>=0}remove(e){let r=this.C.indexOf(e);return r<0?!1:(r===0?this.pop():r===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(r,1,this.C.pop()),this.i-=1,this.m(r),this.k(r,this.i>>1)),!0)}updateItem(e){let r=this.C.indexOf(e);return r<0?!1:(this.m(r),this.k(r,this.i>>1),!0)}toArray(){return[...this.C]}},I1=da;qn.default=I1});var jn=M(Dn=>{\"use strict\";_();v();m();Object.defineProperty(Dn,\"t\",{value:!0});Dn.default=void 0;var T1=lt(),pa=class extends T1.Container{},R1=pa;Dn.default=R1});var ut=M(ga=>{\"use strict\";_();v();m();Object.defineProperty(ga,\"t\",{value:!0});ga.throwIteratorAccessError=C1;function C1(){throw new RangeError(\"Iterator access denied!\")}});var ba=M(Wn=>{\"use strict\";_();v();m();Object.defineProperty(Wn,\"t\",{value:!0});Wn.RandomIterator=void 0;var B1=lt(),Fn=ut(),ya=class extends B1.ContainerIterator{constructor(e,r){super(r),this.o=e,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,Fn.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,Fn.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,Fn.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,Fn.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(e){this.container.setElementByPos(this.o,e)}};Wn.RandomIterator=ya});var np=M($n=>{\"use strict\";_();v();m();Object.defineProperty($n,\"t\",{value:!0});$n.default=void 0;var P1=O1(jn()),k1=ba();function O1(t){return t&&t.t?t:{default:t}}var mr=class t extends k1.RandomIterator{constructor(e,r,i){super(e,i),this.container=r}copy(){return new t(this.o,this.container,this.iteratorType)}},wa=class extends P1.default{constructor(e=[],r=!0){if(super(),Array.isArray(e))this.J=r?[...e]:e,this.i=e.length;else{this.J=[];let i=this;e.forEach(function(n){i.pushBack(n)})}}clear(){this.i=0,this.J.length=0}begin(){return new mr(0,this)}end(){return new mr(this.i,this)}rBegin(){return new mr(this.i-1,this,1)}rEnd(){return new mr(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;return this.J[e]}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;return this.J.splice(e,1),this.i-=1,this.i}eraseElementByValue(e){let r=0;for(let i=0;ithis.i-1)throw new RangeError;this.J[e]=r}insert(e,r,i=1){if(e<0||e>this.i)throw new RangeError;return this.J.splice(e,0,...new Array(i).fill(r)),this.i+=i,this.i}find(e){for(let r=0;r{\"use strict\";_();v();m();Object.defineProperty(Hn,\"t\",{value:!0});Hn.default=void 0;var M1=U1(jn()),L1=lt(),vr=ut();function U1(t){return t&&t.t?t:{default:t}}var Er=class t extends L1.ContainerIterator{constructor(e,r,i,n){super(n),this.o=e,this.h=r,this.container=i,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,vr.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,vr.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,vr.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,vr.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,vr.throwIteratorAccessError)(),this.o.l}set pointer(e){this.o===this.h&&(0,vr.throwIteratorAccessError)(),this.o.l=e}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},_a=class extends M1.default{constructor(e=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let r=this;e.forEach(function(i){r.pushBack(i)})}V(e){let{L:r,B:i}=e;r.B=i,i.L=r,e===this.p&&(this.p=i),e===this._&&(this._=r),this.i-=1}G(e,r){let i=r.B,n={l:e,L:r,B:i};r.B=n,i.L=n,r===this.h&&(this.p=n),i===this.h&&(this._=n),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new Er(this.p,this.h,this)}end(){return new Er(this.h,this.h,this)}rBegin(){return new Er(this._,this.h,this,1)}rEnd(){return new Er(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return r.l}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return this.V(r),this.i}eraseElementByValue(e){let r=this.p;for(;r!==this.h;)r.l===e&&this.V(r),r=r.B;return this.i}eraseElementByIterator(e){let r=e.o;return r===this.h&&(0,vr.throwIteratorAccessError)(),e=e.next(),this.V(r),e}pushBack(e){return this.G(e,this._),this.i}popBack(){if(this.i===0)return;let e=this._.l;return this.V(this._),e}pushFront(e){return this.G(e,this.h),this.i}popFront(){if(this.i===0)return;let e=this.p.l;return this.V(this.p),e}setElementByPos(e,r){if(e<0||e>this.i-1)throw new RangeError;let i=this.p;for(;e--;)i=i.B;i.l=r}insert(e,r,i=1){if(e<0||e>this.i)throw new RangeError;if(i<=0)return this.i;if(e===0)for(;i--;)this.pushFront(r);else if(e===this.i)for(;i--;)this.pushBack(r);else{let n=this.p;for(let s=1;s{\"use strict\";_();v();m();Object.defineProperty(Vn,\"t\",{value:!0});Vn.default=void 0;var q1=j1(jn()),D1=ba();function j1(t){return t&&t.t?t:{default:t}}var Sr=class t extends D1.RandomIterator{constructor(e,r,i){super(e,i),this.container=r}copy(){return new t(this.o,this.container,this.iteratorType)}},ma=class extends q1.default{constructor(e=[],r=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let i=(()=>{if(typeof e.length==\"number\")return e.length;if(typeof e.size==\"number\")return e.size;if(typeof e.size==\"function\")return e.size();throw new TypeError(\"Cannot get the length or size of the container\")})();this.F=r,this.P=Math.max(Math.ceil(i/this.F),1);for(let s=0;s>1)-(n>>1),this.D=this.N=this.F-i%this.F>>1;let o=this;e.forEach(function(s){o.pushBack(s)})}T(){let e=[],r=Math.max(this.P>>1,1);for(let i=0;i>1}begin(){return new Sr(0,this)}end(){return new Sr(this.i,this)}rBegin(){return new Sr(this.i-1,this,1)}rEnd(){return new Sr(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(e){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,e}pushFront(e){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=e,this.i}popFront(){if(this.i===0)return;let e=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:r,curNodePointerIndex:i}=this.O(e);return this.A[r][i]}setElementByPos(e,r){if(e<0||e>this.i-1)throw new RangeError;let{curNodeBucketIndex:i,curNodePointerIndex:n}=this.O(e);this.A[i][n]=r}insert(e,r,i=1){if(e<0||e>this.i)throw new RangeError;if(e===0)for(;i--;)this.pushFront(r);else if(e===this.i)for(;i--;)this.pushBack(r);else{let n=[];for(let o=e;othis.i-1)throw new RangeError;if(e===0)this.popFront();else if(e===this.i-1)this.popBack();else{let r=[];for(let n=e+1;ne;)this.popBack();return this.i}sort(e){let r=[];for(let i=0;i{\"use strict\";_();v();m();Object.defineProperty(ei,\"t\",{value:!0});ei.TreeNodeEnableIndex=ei.TreeNode=void 0;var zn=class{constructor(e,r){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=e,this.l=r}L(){let e=this;if(e.ee===1&&e.tt.tt===e)e=e.W;else if(e.U)for(e=e.U;e.W;)e=e.W;else{let r=e.tt;for(;r.U===e;)e=r,r=e.tt;e=r}return e}B(){let e=this;if(e.W){for(e=e.W;e.U;)e=e.U;return e}else{let r=e.tt;for(;r.W===e;)e=r,r=e.tt;return e.W!==r?r:e}}te(){let e=this.tt,r=this.W,i=r.U;return e.tt===this?e.tt=r:e.U===this?e.U=r:e.W=r,r.tt=e,r.U=this,this.tt=r,this.W=i,i&&(i.tt=this),r}se(){let e=this.tt,r=this.U,i=r.W;return e.tt===this?e.tt=r:e.U===this?e.U=r:e.W=r,r.tt=e,r.W=this,this.tt=r,this.U=i,i&&(i.tt=this),r}};ei.TreeNode=zn;var va=class extends zn{constructor(){super(...arguments),this.rt=1}te(){let e=super.te();return this.ie(),e.ie(),e}se(){let e=super.se();return this.ie(),e.ie(),e}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};ei.TreeNodeEnableIndex=va});var Sa=M(Kn=>{\"use strict\";_();v();m();Object.defineProperty(Kn,\"t\",{value:!0});Kn.default=void 0;var lp=ap(),W1=lt(),up=ut(),Ea=class extends W1.Container{constructor(e=function(i,n){return in?1:0},r=!1){super(),this.Y=void 0,this.v=e,r?(this.re=lp.TreeNodeEnableIndex,this.M=function(i,n,o){let s=this.ne(i,n,o);if(s){let a=s.tt;for(;a!==this.h;)a.rt+=1,a=a.tt;let l=this.he(s);if(l){let{parentNode:c,grandParent:h,curNode:d}=l;c.ie(),h.ie(),d.ie()}}return this.i},this.V=function(i){let n=this.fe(i);for(;n!==this.h;)n.rt-=1,n=n.tt}):(this.re=lp.TreeNode,this.M=function(i,n,o){let s=this.ne(i,n,o);return s&&this.he(s),this.i},this.V=this.fe),this.h=new this.re}X(e,r){let i=this.h;for(;e;){let n=this.v(e.u,r);if(n<0)e=e.W;else if(n>0)i=e,e=e.U;else return e}return i}Z(e,r){let i=this.h;for(;e;)this.v(e.u,r)<=0?e=e.W:(i=e,e=e.U);return i}$(e,r){let i=this.h;for(;e;){let n=this.v(e.u,r);if(n<0)i=e,e=e.W;else if(n>0)e=e.U;else return e}return i}rr(e,r){let i=this.h;for(;e;)this.v(e.u,r)<0?(i=e,e=e.W):e=e.U;return i}ue(e){for(;;){let r=e.tt;if(r===this.h)return;if(e.ee===1){e.ee=0;return}if(e===r.U){let i=r.W;if(i.ee===1)i.ee=0,r.ee=1,r===this.Y?this.Y=r.te():r.te();else if(i.W&&i.W.ee===1){i.ee=r.ee,r.ee=0,i.W.ee=0,r===this.Y?this.Y=r.te():r.te();return}else i.U&&i.U.ee===1?(i.ee=1,i.U.ee=0,i.se()):(i.ee=1,e=r)}else{let i=r.U;if(i.ee===1)i.ee=0,r.ee=1,r===this.Y?this.Y=r.se():r.se();else if(i.U&&i.U.ee===1){i.ee=r.ee,r.ee=0,i.U.ee=0,r===this.Y?this.Y=r.se():r.se();return}else i.W&&i.W.ee===1?(i.ee=1,i.W.ee=0,i.te()):(i.ee=1,e=r)}}}fe(e){if(this.i===1)return this.clear(),this.h;let r=e;for(;r.U||r.W;){if(r.W)for(r=r.W;r.U;)r=r.U;else r=r.U;[e.u,r.u]=[r.u,e.u],[e.l,r.l]=[r.l,e.l],e=r}this.h.U===r?this.h.U=r.tt:this.h.W===r&&(this.h.W=r.tt),this.ue(r);let i=r.tt;return r===i.U?i.U=void 0:i.W=void 0,this.i-=1,this.Y.ee=0,i}oe(e,r){return e===void 0?!1:this.oe(e.U,r)||r(e)?!0:this.oe(e.W,r)}he(e){for(;;){let r=e.tt;if(r.ee===0)return;let i=r.tt;if(r===i.U){let n=i.W;if(n&&n.ee===1){if(n.ee=r.ee=0,i===this.Y)return;i.ee=1,e=i;continue}else if(e===r.W){if(e.ee=0,e.U&&(e.U.tt=r),e.W&&(e.W.tt=i),r.W=e.U,i.U=e.W,e.U=r,e.W=i,i===this.Y)this.Y=e,this.h.tt=e;else{let o=i.tt;o.U===i?o.U=e:o.W=e}return e.tt=i.tt,r.tt=e,i.tt=e,i.ee=1,{parentNode:r,grandParent:i,curNode:e}}else r.ee=0,i===this.Y?this.Y=i.se():i.se(),i.ee=1}else{let n=i.U;if(n&&n.ee===1){if(n.ee=r.ee=0,i===this.Y)return;i.ee=1,e=i;continue}else if(e===r.U){if(e.ee=0,e.U&&(e.U.tt=i),e.W&&(e.W.tt=r),i.W=e.U,r.U=e.W,e.U=i,e.W=r,i===this.Y)this.Y=e,this.h.tt=e;else{let o=i.tt;o.U===i?o.U=e:o.W=e}return e.tt=i.tt,r.tt=e,i.tt=e,i.ee=1,{parentNode:r,grandParent:i,curNode:e}}else r.ee=0,i===this.Y?this.Y=i.te():i.te(),i.ee=1}return}}ne(e,r,i){if(this.Y===void 0){this.i+=1,this.Y=new this.re(e,r),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let n,o=this.h.U,s=this.v(o.u,e);if(s===0){o.l=r;return}else if(s>0)o.U=new this.re(e,r),o.U.tt=o,n=o.U,this.h.U=n;else{let a=this.h.W,l=this.v(a.u,e);if(l===0){a.l=r;return}else if(l<0)a.W=new this.re(e,r),a.W.tt=a,n=a.W,this.h.W=n;else{if(i!==void 0){let c=i.o;if(c!==this.h){let h=this.v(c.u,e);if(h===0){c.l=r;return}else if(h>0){let d=c.L(),g=this.v(d.u,e);if(g===0){d.l=r;return}else g<0&&(n=new this.re(e,r),d.W===void 0?(d.W=n,n.tt=d):(c.U=n,n.tt=c))}}}if(n===void 0)for(n=this.Y;;){let c=this.v(n.u,e);if(c>0){if(n.U===void 0){n.U=new this.re(e,r),n.U.tt=n,n=n.U;break}n=n.U}else if(c<0){if(n.W===void 0){n.W=new this.re(e,r),n.W.tt=n,n=n.W;break}n=n.W}else{n.l=r;return}}}}return this.i+=1,n}I(e,r){for(;e;){let i=this.v(e.u,r);if(i<0)e=e.W;else if(i>0)e=e.U;else return e}return e||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(e,r){let i=e.o;if(i===this.h&&(0,up.throwIteratorAccessError)(),this.i===1)return i.u=r,!0;if(i===this.h.U)return this.v(i.B().u,r)>0?(i.u=r,!0):!1;if(i===this.h.W)return this.v(i.L().u,r)<0?(i.u=r,!0):!1;let n=i.L().u;if(this.v(n,r)>=0)return!1;let o=i.B().u;return this.v(o,r)<=0?!1:(i.u=r,!0)}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=0,i=this;return this.oe(this.Y,function(n){return e===r?(i.V(n),!0):(r+=1,!1)}),this.i}eraseElementByKey(e){if(this.i===0)return!1;let r=this.I(this.Y,e);return r===this.h?!1:(this.V(r),!0)}eraseElementByIterator(e){let r=e.o;r===this.h&&(0,up.throwIteratorAccessError)();let i=r.W===void 0;return e.iteratorType===0?i&&e.next():(!i||r.U===void 0)&&e.next(),this.V(r),e}forEach(e){let r=0;for(let i of this)e(i,r++,this)}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r,i=0;for(let n of this){if(i===e){r=n;break}i+=1}return r}getHeight(){if(this.i===0)return 0;let e=function(r){return r?Math.max(e(r.U),e(r.W))+1:0};return e(this.Y)}},$1=Ea;Kn.default=$1});var Ia=M(Qn=>{\"use strict\";_();v();m();Object.defineProperty(Qn,\"t\",{value:!0});Qn.default=void 0;var H1=lt(),Gn=ut(),Aa=class extends H1.ContainerIterator{constructor(e,r,i){super(i),this.o=e,this.h=r,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,Gn.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,Gn.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,Gn.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,Gn.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let e=this.o,r=this.h.tt;if(e===this.h)return r?r.rt-1:0;let i=0;for(e.U&&(i+=e.U.rt);e!==r;){let n=e.tt;e===n.W&&(i+=1,n.U&&(i+=n.U.rt)),e=n}return i}},V1=Aa;Qn.default=V1});var cp=M(Yn=>{\"use strict\";_();v();m();Object.defineProperty(Yn,\"t\",{value:!0});Yn.default=void 0;var z1=fp(Sa()),K1=fp(Ia()),G1=ut();function fp(t){return t&&t.t?t:{default:t}}var Ke=class t extends K1.default{constructor(e,r,i,n){super(e,r,n),this.container=i}get pointer(){return this.o===this.h&&(0,G1.throwIteratorAccessError)(),this.o.u}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},Ta=class extends z1.default{constructor(e=[],r,i){super(r,i);let n=this;e.forEach(function(o){n.insert(o)})}*K(e){e!==void 0&&(yield*this.K(e.U),yield e.u,yield*this.K(e.W))}begin(){return new Ke(this.h.U||this.h,this.h,this)}end(){return new Ke(this.h,this.h,this)}rBegin(){return new Ke(this.h.W||this.h,this.h,this,1)}rEnd(){return new Ke(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(e,r){return this.M(e,void 0,r)}find(e){let r=this.I(this.Y,e);return new Ke(r,this.h,this)}lowerBound(e){let r=this.X(this.Y,e);return new Ke(r,this.h,this)}upperBound(e){let r=this.Z(this.Y,e);return new Ke(r,this.h,this)}reverseLowerBound(e){let r=this.$(this.Y,e);return new Ke(r,this.h,this)}reverseUpperBound(e){let r=this.rr(this.Y,e);return new Ke(r,this.h,this)}union(e){let r=this;return e.forEach(function(i){r.insert(i)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},Q1=Ta;Yn.default=Q1});var dp=M(Jn=>{\"use strict\";_();v();m();Object.defineProperty(Jn,\"t\",{value:!0});Jn.default=void 0;var Y1=hp(Sa()),J1=hp(Ia()),X1=ut();function hp(t){return t&&t.t?t:{default:t}}var Ge=class t extends J1.default{constructor(e,r,i,n){super(e,r,n),this.container=i}get pointer(){this.o===this.h&&(0,X1.throwIteratorAccessError)();let e=this;return new Proxy([],{get(r,i){if(i===\"0\")return e.o.u;if(i===\"1\")return e.o.l},set(r,i,n){if(i!==\"1\")throw new TypeError(\"props must be 1\");return e.o.l=n,!0}})}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},Ra=class extends Y1.default{constructor(e=[],r,i){super(r,i);let n=this;e.forEach(function(o){n.setElement(o[0],o[1])})}*K(e){e!==void 0&&(yield*this.K(e.U),yield[e.u,e.l],yield*this.K(e.W))}begin(){return new Ge(this.h.U||this.h,this.h,this)}end(){return new Ge(this.h,this.h,this)}rBegin(){return new Ge(this.h.W||this.h,this.h,this,1)}rEnd(){return new Ge(this.h,this.h,this,1)}front(){if(this.i===0)return;let e=this.h.U;return[e.u,e.l]}back(){if(this.i===0)return;let e=this.h.W;return[e.u,e.l]}lowerBound(e){let r=this.X(this.Y,e);return new Ge(r,this.h,this)}upperBound(e){let r=this.Z(this.Y,e);return new Ge(r,this.h,this)}reverseLowerBound(e){let r=this.$(this.Y,e);return new Ge(r,this.h,this)}reverseUpperBound(e){let r=this.rr(this.Y,e);return new Ge(r,this.h,this)}setElement(e,r,i){return this.M(e,r,i)}find(e){let r=this.I(this.Y,e);return new Ge(r,this.h,this)}getElementByKey(e){return this.I(this.Y,e).l}union(e){let r=this;return e.forEach(function(i){r.setElement(i[0],i[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},Z1=Ra;Jn.default=Z1});var Ba=M(Ca=>{\"use strict\";_();v();m();Object.defineProperty(Ca,\"t\",{value:!0});Ca.default=ev;function ev(t){let e=typeof t;return e===\"object\"&&t!==null||e===\"function\"}});var xa=M(ti=>{\"use strict\";_();v();m();Object.defineProperty(ti,\"t\",{value:!0});ti.HashContainerIterator=ti.HashContainer=void 0;var pp=lt(),Pa=tv(Ba()),Ci=ut();function tv(t){return t&&t.t?t:{default:t}}var ka=class extends pp.ContainerIterator{constructor(e,r,i){super(i),this.o=e,this.h=r,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,Ci.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,Ci.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,Ci.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,Ci.throwIteratorAccessError)(),this.o=this.o.L,this})}};ti.HashContainerIterator=ka;var Oa=class extends pp.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol(\"@@HASH_TAG\"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(e){let{L:r,B:i}=e;r.B=i,i.L=r,e===this.p&&(this.p=i),e===this._&&(this._=r),this.i-=1}M(e,r,i){i===void 0&&(i=(0,Pa.default)(e));let n;if(i){let o=e[this.HASH_TAG];if(o!==void 0)return this.H[o].l=r,this.i;Object.defineProperty(e,this.HASH_TAG,{value:this.H.length,configurable:!0}),n={u:e,l:r,L:this._,B:this.h},this.H.push(n)}else{let o=this.g[e];if(o)return o.l=r,this.i;n={u:e,l:r,L:this._,B:this.h},this.g[e]=n}return this.i===0?(this.p=n,this.h.B=n):this._.B=n,this._=n,this.h.L=n,++this.i}I(e,r){if(r===void 0&&(r=(0,Pa.default)(e)),r){let i=e[this.HASH_TAG];return i===void 0?this.h:this.H[i]}else return this.g[e]||this.h}clear(){let e=this.HASH_TAG;this.H.forEach(function(r){delete r.u[e]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(e,r){let i;if(r===void 0&&(r=(0,Pa.default)(e)),r){let n=e[this.HASH_TAG];if(n===void 0)return!1;delete e[this.HASH_TAG],i=this.H[n],delete this.H[n]}else{if(i=this.g[e],i===void 0)return!1;delete this.g[e]}return this.V(i),!0}eraseElementByIterator(e){let r=e.o;return r===this.h&&(0,Ci.throwIteratorAccessError)(),this.V(r),e.next()}eraseElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return this.V(r),this.i}};ti.HashContainer=Oa});var yp=M(Xn=>{\"use strict\";_();v();m();Object.defineProperty(Xn,\"t\",{value:!0});Xn.default=void 0;var gp=xa(),rv=ut(),Ar=class t extends gp.HashContainerIterator{constructor(e,r,i,n){super(e,r,n),this.container=i}get pointer(){return this.o===this.h&&(0,rv.throwIteratorAccessError)(),this.o.u}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},Ma=class extends gp.HashContainer{constructor(e=[]){super();let r=this;e.forEach(function(i){r.insert(i)})}begin(){return new Ar(this.p,this.h,this)}end(){return new Ar(this.h,this.h,this)}rBegin(){return new Ar(this._,this.h,this,1)}rEnd(){return new Ar(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(e,r){return this.M(e,void 0,r)}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return r.u}find(e,r){let i=this.I(e,r);return new Ar(i,this.h,this)}forEach(e){let r=0,i=this.p;for(;i!==this.h;)e(i.u,r++,this),i=i.B}[Symbol.iterator](){return function*(){let e=this.p;for(;e!==this.h;)yield e.u,e=e.B}.bind(this)()}},iv=Ma;Xn.default=iv});var wp=M(Zn=>{\"use strict\";_();v();m();Object.defineProperty(Zn,\"t\",{value:!0});Zn.default=void 0;var bp=xa(),nv=ov(Ba()),sv=ut();function ov(t){return t&&t.t?t:{default:t}}var Ir=class t extends bp.HashContainerIterator{constructor(e,r,i,n){super(e,r,n),this.container=i}get pointer(){this.o===this.h&&(0,sv.throwIteratorAccessError)();let e=this;return new Proxy([],{get(r,i){if(i===\"0\")return e.o.u;if(i===\"1\")return e.o.l},set(r,i,n){if(i!==\"1\")throw new TypeError(\"props must be 1\");return e.o.l=n,!0}})}copy(){return new t(this.o,this.h,this.container,this.iteratorType)}},La=class extends bp.HashContainer{constructor(e=[]){super();let r=this;e.forEach(function(i){r.setElement(i[0],i[1])})}begin(){return new Ir(this.p,this.h,this)}end(){return new Ir(this.h,this.h,this)}rBegin(){return new Ir(this._,this.h,this,1)}rEnd(){return new Ir(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(e,r,i){return this.M(e,r,i)}getElementByKey(e,r){if(r===void 0&&(r=(0,nv.default)(e)),r){let n=e[this.HASH_TAG];return n!==void 0?this.H[n].l:void 0}let i=this.g[e];return i?i.l:void 0}getElementByPos(e){if(e<0||e>this.i-1)throw new RangeError;let r=this.p;for(;e--;)r=r.B;return[r.u,r.l]}find(e,r){let i=this.I(e,r);return new Ir(i,this.h,this)}forEach(e){let r=0,i=this.p;for(;i!==this.h;)e([i.u,i.l],r++,this),i=i.B}[Symbol.iterator](){return function*(){let e=this.p;for(;e!==this.h;)yield[e.u,e.l],e=e.B}.bind(this)()}},av=La;Zn.default=av});var _p=M(je=>{\"use strict\";_();v();m();Object.defineProperty(je,\"t\",{value:!0});Object.defineProperty(je,\"Deque\",{enumerable:!0,get:function(){return dv.default}});Object.defineProperty(je,\"HashMap\",{enumerable:!0,get:function(){return bv.default}});Object.defineProperty(je,\"HashSet\",{enumerable:!0,get:function(){return yv.default}});Object.defineProperty(je,\"LinkList\",{enumerable:!0,get:function(){return hv.default}});Object.defineProperty(je,\"OrderedMap\",{enumerable:!0,get:function(){return gv.default}});Object.defineProperty(je,\"OrderedSet\",{enumerable:!0,get:function(){return pv.default}});Object.defineProperty(je,\"PriorityQueue\",{enumerable:!0,get:function(){return fv.default}});Object.defineProperty(je,\"Queue\",{enumerable:!0,get:function(){return uv.default}});Object.defineProperty(je,\"Stack\",{enumerable:!0,get:function(){return lv.default}});Object.defineProperty(je,\"Vector\",{enumerable:!0,get:function(){return cv.default}});var lv=ft(tp()),uv=ft(rp()),fv=ft(ip()),cv=ft(np()),hv=ft(sp()),dv=ft(op()),pv=ft(cp()),gv=ft(dp()),yv=ft(yp()),bv=ft(wp());function ft(t){return t&&t.t?t:{default:t}}});var vp=M((lx,mp)=>{\"use strict\";_();v();m();var wv=_p().OrderedSet,ct=ot()(\"number-allocator:trace\"),_v=ot()(\"number-allocator:error\");function Re(t,e){this.low=t,this.high=e}Re.prototype.equals=function(t){return this.low===t.low&&this.high===t.high};Re.prototype.compare=function(t){return this.lowr.compare(i)),ct(\"Create\"),this.clear()}ht.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low};ht.prototype.alloc=function(){if(this.ss.size()===0)return ct(\"alloc():empty\"),null;let t=this.ss.begin(),e=t.pointer.low,r=t.pointer.high,i=e;return i+1<=r?this.ss.updateKeyByIterator(t,new Re(e+1,r)):this.ss.eraseElementByPos(0),ct(\"alloc():\"+i),i};ht.prototype.use=function(t){let e=new Re(t,t),r=this.ss.lowerBound(e);if(!r.equals(this.ss.end())){let i=r.pointer.low,n=r.pointer.high;return r.pointer.equals(e)?(this.ss.eraseElementByIterator(r),ct(\"use():\"+t),!0):i>t?!1:i===t?(this.ss.updateKeyByIterator(r,new Re(i+1,n)),ct(\"use():\"+t),!0):n===t?(this.ss.updateKeyByIterator(r,new Re(i,n-1)),ct(\"use():\"+t),!0):(this.ss.updateKeyByIterator(r,new Re(t+1,n)),this.ss.insert(new Re(i,t-1)),ct(\"use():\"+t),!0)}return ct(\"use():failed\"),!1};ht.prototype.free=function(t){if(tthis.max){_v(\"free():\"+t+\" is out of range\");return}let e=new Re(t,t),r=this.ss.upperBound(e);if(r.equals(this.ss.end())){if(r.equals(this.ss.begin())){this.ss.insert(e);return}r.pre();let i=r.pointer.high;r.pointer.high+1===t?this.ss.updateKeyByIterator(r,new Re(i,t)):this.ss.insert(e)}else if(r.equals(this.ss.begin()))if(t+1===r.pointer.low){let i=r.pointer.high;this.ss.updateKeyByIterator(r,new Re(t,i))}else this.ss.insert(e);else{let i=r.pointer.low,n=r.pointer.high;r.pre();let o=r.pointer.low;r.pointer.high+1===t?t+1===i?(this.ss.eraseElementByIterator(r),this.ss.updateKeyByIterator(r,new Re(o,n))):this.ss.updateKeyByIterator(r,new Re(o,t)):t+1===i?(this.ss.eraseElementByIterator(r.next()),this.ss.insert(new Re(t,n))):this.ss.insert(e)}ct(\"free():\"+t)};ht.prototype.clear=function(){ct(\"clear()\"),this.ss.clear(),this.ss.insert(new Re(this.min,this.max))};ht.prototype.intervalCount=function(){return this.ss.size()};ht.prototype.dump=function(){console.log(\"length:\"+this.ss.size());for(let t of this.ss)console.log(t)};mp.exports=ht});var Ua=M((gx,Ep)=>{_();v();m();var mv=vp();Ep.exports.NumberAllocator=mv});var Sp=M(qa=>{\"use strict\";_();v();m();Object.defineProperty(qa,\"__esModule\",{value:!0});var vv=ep(),Ev=Ua(),Na=class{constructor(e){e>0&&(this.aliasToTopic=new vv.LRUCache({max:e}),this.topicToAlias={},this.numberAllocator=new Ev.NumberAllocator(1,e),this.max=e,this.length=0)}put(e,r){if(r===0||r>this.max)return!1;let i=this.aliasToTopic.get(r);return i&&delete this.topicToAlias[i],this.aliasToTopic.set(r,e),this.topicToAlias[e]=r,this.numberAllocator.use(r),this.length=this.aliasToTopic.size,!0}getTopicByAlias(e){return this.aliasToTopic.get(e)}getAliasByTopic(e){let r=this.topicToAlias[e];return typeof r<\"u\"&&this.aliasToTopic.get(r),r}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){let e=this.numberAllocator.firstVacant();return e||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};qa.default=Na});var Ap=M(Bi=>{\"use strict\";_();v();m();var Sv=Bi&&Bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bi,\"__esModule\",{value:!0});var Av=Ti(),Iv=Sv(Sp()),Tv=_r(),Rv=(t,e)=>{t.log(\"_handleConnack\");let{options:r}=t,n=r.protocolVersion===5?e.reasonCode:e.returnCode;if(clearTimeout(t.connackTimer),delete t.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535){t.emit(\"error\",new Error(\"topicAliasMaximum from broker is out of range\"));return}e.properties.topicAliasMaximum>0&&(t.topicAliasSend=new Iv.default(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&r.keepalive&&(r.keepalive=e.properties.serverKeepAlive),e.properties.maximumPacketSize&&(r.properties||(r.properties={}),r.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(n===0)t.reconnecting=!1,t._onConnect(e);else if(n>0){let o=new Tv.ErrorWithReasonCode(`Connection refused: ${Av.ReasonCodes[n]}`,n);t.emit(\"error\",o),t.options.reconnectOnConnackError&&t._cleanUp(!0)}};Bi.default=Rv});var Ip=M(Da=>{\"use strict\";_();v();m();Object.defineProperty(Da,\"__esModule\",{value:!0});var Cv=(t,e,r)=>{t.log(\"handling pubrel packet\");let i=typeof r<\"u\"?r:t.noop,{messageId:n}=e,o={cmd:\"pubcomp\",messageId:n};t.incomingStore.get(e,(s,a)=>{s?t._sendPacket(o,i):(t.emit(\"message\",a.topic,a.payload,a),t.handleMessage(a,l=>{if(l)return i(l);t.incomingStore.del(a,t.noop),t._sendPacket(o,i)}))})};Da.default=Cv});var Tp=M(Pi=>{\"use strict\";_();v();m();var ki=Pi&&Pi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pi,\"__esModule\",{value:!0});var Bv=ki(Vd()),Pv=ki(Qd()),kv=ki(Ap()),Ov=ki(Ti()),xv=ki(Ip()),Mv=(t,e,r)=>{let{options:i}=t;if(i.protocolVersion===5&&i.properties&&i.properties.maximumPacketSize&&i.properties.maximumPacketSize{\"use strict\";_();v();m();var Lv=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ri,\"__esModule\",{value:!0});ri.TypedEventEmitter=void 0;var Uv=Lv((sr(),X(nr))),Nv=_r(),es=class{};ri.TypedEventEmitter=es;(0,Nv.applyMixin)(es,Uv.default)});var Oi=M(Tr=>{\"use strict\";_();v();m();Object.defineProperty(Tr,\"__esModule\",{value:!0});Tr.isReactNativeBrowser=Tr.isWebWorker=void 0;var qv=()=>{var t;return typeof window<\"u\"?typeof navigator<\"u\"&&((t=navigator.userAgent)===null||t===void 0?void 0:t.toLowerCase().indexOf(\" electron/\"))>-1&&(!(B===null||B===void 0)&&B.versions)?!Object.prototype.hasOwnProperty.call(B.versions,\"electron\"):typeof window.document<\"u\":!1},Cp=()=>{var t,e;return!!(typeof self==\"object\"&&(!((e=(t=self?.constructor)===null||t===void 0?void 0:t.name)===null||e===void 0)&&e.includes(\"WorkerGlobalScope\")))},Bp=()=>typeof navigator<\"u\"&&navigator.product===\"ReactNative\",Dv=qv()||Cp()||Bp();Tr.isWebWorker=Cp();Tr.isReactNativeBrowser=Bp();Tr.default=Dv});var kp=M((ts,Pp)=>{_();v();m();(function(t,e){typeof ts==\"object\"&&typeof Pp<\"u\"?e(ts):typeof define==\"function\"&&define.amd?define([\"exports\"],e):(t=typeof globalThis<\"u\"?globalThis:t||self,e(t.fastUniqueNumbers={}))})(ts,function(t){\"use strict\";var e=function(g){return function(y){var w=g(y);return y.add(w),w}},r=function(g){return function(y,w){return g.set(y,w),w}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,n=536870912,o=n*2,s=function(g,y){return function(w){var S=y.get(w),E=S===void 0?w.size:Si)throw new Error(\"Congratulations, you created a collection of unique numbers which uses all available integers!\");for(;w.has(E);)E=Math.floor(Math.random()*i);return g(w,E)}},a=new WeakMap,l=r(a),c=s(l,a),h=e(c);t.addUniqueNumber=h,t.generateUniqueNumber=c})});var xp=M((rs,Op)=>{_();v();m();(function(t,e){typeof rs==\"object\"&&typeof Op<\"u\"?e(rs,kp()):typeof define==\"function\"&&define.amd?define([\"exports\",\"fast-unique-numbers\"],e):(t=typeof globalThis<\"u\"?globalThis:t||self,e(t.workerTimersBroker={},t.fastUniqueNumbers))})(rs,function(t,e){\"use strict\";var r=function(s){return s.method!==void 0&&s.method===\"call\"},i=function(s){return s.error===null&&typeof s.id==\"number\"},n=function(s){var a=new Map([[0,function(){}]]),l=new Map([[0,function(){}]]),c=new Map,h=new Worker(s);h.addEventListener(\"message\",function(S){var E=S.data;if(r(E)){var I=E.params,C=I.timerId,R=I.timerType;if(R===\"interval\"){var U=a.get(C);if(typeof U==\"number\"){var N=c.get(U);if(N===void 0||N.timerId!==C||N.timerType!==R)throw new Error(\"The timer is in an undefined state.\")}else if(typeof U<\"u\")U();else throw new Error(\"The timer is in an undefined state.\")}else if(R===\"timeout\"){var W=l.get(C);if(typeof W==\"number\"){var K=c.get(W);if(K===void 0||K.timerId!==C||K.timerType!==R)throw new Error(\"The timer is in an undefined state.\")}else if(typeof W<\"u\")W(),l.delete(C);else throw new Error(\"The timer is in an undefined state.\")}}else if(i(E)){var z=E.id,Q=c.get(z);if(Q===void 0)throw new Error(\"The timer is in an undefined state.\");var pe=Q.timerId,Yt=Q.timerType;c.delete(z),Yt===\"interval\"?a.delete(pe):l.delete(pe)}else{var ge=E.error.message;throw new Error(ge)}});var d=function(E){var I=e.generateUniqueNumber(c);c.set(I,{timerId:E,timerType:\"interval\"}),a.set(E,I),h.postMessage({id:I,method:\"clear\",params:{timerId:E,timerType:\"interval\"}})},g=function(E){var I=e.generateUniqueNumber(c);c.set(I,{timerId:E,timerType:\"timeout\"}),l.set(E,I),h.postMessage({id:I,method:\"clear\",params:{timerId:E,timerType:\"timeout\"}})},y=function(E){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=e.generateUniqueNumber(a);return a.set(C,function(){E(),typeof a.get(C)==\"function\"&&h.postMessage({id:null,method:\"set\",params:{delay:I,now:performance.now(),timerId:C,timerType:\"interval\"}})}),h.postMessage({id:null,method:\"set\",params:{delay:I,now:performance.now(),timerId:C,timerType:\"interval\"}}),C},w=function(E){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=e.generateUniqueNumber(l);return l.set(C,E),h.postMessage({id:null,method:\"set\",params:{delay:I,now:performance.now(),timerId:C,timerType:\"timeout\"}}),C};return{clearInterval:d,clearTimeout:g,setInterval:y,setTimeout:w}};t.load=n})});var Lp=M((is,Mp)=>{_();v();m();(function(t,e){typeof is==\"object\"&&typeof Mp<\"u\"?e(is,xp()):typeof define==\"function\"&&define.amd?define([\"exports\",\"worker-timers-broker\"],e):(t=typeof globalThis<\"u\"?globalThis:t||self,e(t.workerTimers={},t.workerTimersBroker))})(is,function(t,e){\"use strict\";var r=function(h,d){var g=null;return function(){if(g!==null)return g;var y=new Blob([d],{type:\"application/javascript; charset=utf-8\"}),w=URL.createObjectURL(y);return g=h(w),setTimeout(function(){return URL.revokeObjectURL(w)}),g}},i=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i=\"function\"==typeof(o=function(){\"use strict\";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id \"'.concat(t,'\".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id \"'.concat(e,'\".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:\"call\",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,\"interval\"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,\"timeout\"))};addEventListener(\"message\",(function(e){var t=e.data;try{if(\"clear\"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if(\"interval\"===c)r(d),postMessage({error:null,id:i});else{if(\"timeout\"!==c)throw new Error('The given type \"'.concat(c,'\" is not supported'));o(d),postMessage({error:null,id:i})}}else{if(\"set\"!==t.method)throw new Error('The given method \"'.concat(t.method,'\" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if(\"interval\"===v)a(l,m,p);else{if(\"timeout\"!==v)throw new Error('The given type \"'.concat(v,'\" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{\"use strict\";r(472)})()})();`,n=r(e.load,i),o=function(h){return n().clearInterval(h)},s=function(h){return n().clearTimeout(h)},a=function(){var h;return(h=n()).setInterval.apply(h,arguments)},l=function(){var h;return(h=n()).setTimeout.apply(h,arguments)};t.clearInterval=o,t.clearTimeout=s,t.setInterval=a,t.setTimeout=l})});var Dp=M(Ct=>{\"use strict\";_();v();m();var jv=Ct&&Ct.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||(\"get\"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Fv=Ct&&Ct.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Wv=Ct&&Ct.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!==\"default\"&&Object.prototype.hasOwnProperty.call(t,r)&&jv(e,t,r);return Fv(e,t),e};Object.defineProperty(Ct,\"__esModule\",{value:!0});var ja=Wv(Oi()),Up=Lp(),Np={set:Up.setInterval,clear:Up.clearInterval},qp={set:(t,e)=>setInterval(t,e),clear:t=>clearInterval(t)},$v=t=>{switch(t){case\"native\":return qp;case\"worker\":return Np;case\"auto\":default:return ja.default&&!ja.isWebWorker&&!ja.isReactNativeBrowser?Np:qp}};Ct.default=$v});var Wa=M(xi=>{\"use strict\";_();v();m();var Hv=xi&&xi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xi,\"__esModule\",{value:!0});var Vv=Hv(Dp()),Fa=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(e,r){this.destroyed=!1,this.client=e,this.timer=typeof r==\"object\"&&\"set\"in r&&\"clear\"in r?r:(0,Vv.default)(r),this.setKeepalive(e.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(e){if(e*=1e3,isNaN(e)||e<=0||e>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${e}`);this._keepalive=e,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${e}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let e=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+e,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};xi.default=Fa});var os=M(Qe=>{\"use strict\";_();v();m();var zv=Qe&&Qe.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||(\"get\"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Kv=Qe&&Qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Hp=Qe&&Qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!==\"default\"&&Object.prototype.hasOwnProperty.call(t,r)&&zv(e,t,r);return Kv(e,t),e},zt=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qe,\"__esModule\",{value:!0});var Gv=zt(Gu()),$a=zt(Nd()),Qv=zt(Zo()),Yv=jt(),jp=zt(Fd()),Fp=Hp($d()),Jv=zt(ot()),ii=zt(ra()),Xv=zt(Tp()),ns=_r(),Zv=Rp(),eE=zt(Wa()),Wp=Hp(Oi()),Ha=globalThis.setImmediate||((...t)=>{let e=t.shift();(0,ns.nextTick)(()=>{e(...t)})}),$p={keepalive:60,reschedulePings:!0,protocolId:\"MQTT\",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:\"auto\"},ss=class t extends Zv.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(e,r){super(),this.options=r||{};for(let i in $p)typeof this.options[i]>\"u\"?this.options[i]=$p[i]:this.options[i]=r[i];this.log=this.options.log||(0,Jv.default)(\"mqttjs:client\"),this.noop=this._noop.bind(this),this.log(\"MqttClient :: version:\",t.VERSION),Wp.isWebWorker?this.log(\"MqttClient :: environment\",\"webworker\"):this.log(\"MqttClient :: environment\",Wp.default?\"browser\":\"node\"),this.log(\"MqttClient :: options.protocol\",r.protocol),this.log(\"MqttClient :: options.protocolVersion\",r.protocolVersion),this.log(\"MqttClient :: options.username\",r.username),this.log(\"MqttClient :: options.keepalive\",r.keepalive),this.log(\"MqttClient :: options.reconnectPeriod\",r.reconnectPeriod),this.log(\"MqttClient :: options.rejectUnauthorized\",r.rejectUnauthorized),this.log(\"MqttClient :: options.properties.topicAliasMaximum\",r.properties?r.properties.topicAliasMaximum:void 0),this.options.clientId=typeof r.clientId==\"string\"?r.clientId:t.defaultId(),this.log(\"MqttClient :: clientId\",this.options.clientId),this.options.customHandleAcks=r.protocolVersion===5&&r.customHandleAcks?r.customHandleAcks:(...i)=>{i[3](null,0)},this.options.writeCache||($a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=e,this.messageIdProvider=typeof this.options.messageIdProvider>\"u\"?new Qv.default:this.options.messageIdProvider,this.outgoingStore=r.outgoingStore||new ii.default,this.incomingStore=r.incomingStore||new ii.default,this.queueQoSZero=r.queueQoSZero===void 0?!0:r.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,r.properties&&r.properties.topicAliasMaximum>0&&(r.properties.topicAliasMaximum>65535?this.log(\"MqttClient :: options.properties.topicAliasMaximum is out of range\"):this.topicAliasRecv=new Gv.default(r.properties.topicAliasMaximum)),this.on(\"connect\",()=>{let{queue:i}=this,n=()=>{let o=i.shift();this.log(\"deliver :: entry %o\",o);let s=null;if(!o){this._resubscribe();return}s=o.packet,this.log(\"deliver :: call _sendPacket for %o\",s);let a=!0;s.messageId&&s.messageId!==0&&(this.messageIdProvider.register(s.messageId)||(a=!1)),a?this._sendPacket(s,l=>{o.cb&&o.cb(l),n()}):(this.log(\"messageId: %d has already used. The message is skipped and removed.\",s.messageId),n())};this.log(\"connect :: sending queued packets\"),n()}),this.on(\"close\",()=>{this.log(\"close :: connected set to `false`\"),this.connected=!1,this.log(\"close :: clearing connackTimer\"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log(\"close :: calling _setupReconnect\"),this._setupReconnect()}),this.options.manualConnect||(this.log(\"MqttClient :: setting up stream\"),this.connect())}handleAuth(e,r){r()}handleMessage(e,r){r()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var e;let r=new Yv.Writable,i=$a.default.parser(this.options),n=null,o=[];this.log(\"connect :: calling method to clear reconnect\"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new ii.default,this.outgoingStore=this.options.outgoingStore||new ii.default,this.disconnecting=!1,this.disconnected=!1),this.log(\"connect :: using streamBuilder provided to client to create stream\"),this.stream=this.streamBuilder(this),i.on(\"packet\",h=>{this.log(\"parser :: on packet push to packets array.\"),o.push(h)});let s=()=>{this.log(\"work :: getting next packet in queue\");let h=o.shift();if(h)this.log(\"work :: packet pulled from queue\"),(0,Xv.default)(this,h,a);else{this.log(\"work :: no packets in queue\");let d=n;n=null,this.log(\"work :: done flag is %s\",!!d),d&&d()}},a=()=>{if(o.length)(0,ns.nextTick)(s);else{let h=n;n=null,h()}};r._write=(h,d,g)=>{n=g,this.log(\"writable stream :: parsing buffer\"),i.parse(h),s()};let l=h=>{this.log(\"streamErrorHandler :: error\",h.message),h.code?(this.log(\"streamErrorHandler :: emitting error\"),this.emit(\"error\",h)):this.noop(h)};this.log(\"connect :: pipe stream to writable stream\"),this.stream.pipe(r),this.stream.on(\"error\",l),this.stream.on(\"close\",()=>{this.log(\"(%s)stream :: on close\",this.options.clientId),this._flushVolatile(),this.log(\"stream: emit close to MqttClient\"),this.emit(\"close\")}),this.log(\"connect: sending packet `connect`\");let c={cmd:\"connect\",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(c.will=Object.assign(Object.assign({},this.options.will),{payload:(e=this.options.will)===null||e===void 0?void 0:e.payload})),this.topicAliasRecv&&(c.properties||(c.properties={}),this.topicAliasRecv&&(c.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(c),i.on(\"error\",this.emit.bind(this,\"error\")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit(\"error\",new Error(\"Packet has no Authentication Method\"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket==\"object\"){let h=Object.assign({cmd:\"auth\",reasonCode:0},this.options.authPacket);this._writePacket(h)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log(\"!!connectTimeout hit!! Calling _cleanUp with force `true`\"),this.emit(\"error\",new Error(\"connack timeout\")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(e,r,i,n){this.log(\"publish :: message `%s` to topic `%s`\",r,e);let{options:o}=this;typeof i==\"function\"&&(n=i,i=null),i=i||{},i=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),i);let{qos:a,retain:l,dup:c,properties:h,cbStorePut:d}=i;if(this._checkDisconnecting(n))return this;let g=()=>{let y=0;if((a===1||a===2)&&(y=this._nextId(),y===null))return this.log(\"No messageId left\"),!1;let w={cmd:\"publish\",topic:e,payload:r,qos:a,retain:l,messageId:y,dup:c};switch(o.protocolVersion===5&&(w.properties=h),this.log(\"publish :: qos\",a),a){case 1:case 2:this.outgoing[w.messageId]={volatile:!1,cb:n||this.noop},this.log(\"MqttClient:publish: packet cmd: %s\",w.cmd),this._sendPacket(w,void 0,d);break;default:this.log(\"MqttClient:publish: packet cmd: %s\",w.cmd),this._sendPacket(w,n,d);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!g())&&this._storeProcessingQueue.push({invoke:g,cbStorePut:i.cbStorePut,callback:n}),this}publishAsync(e,r,i){return new Promise((n,o)=>{this.publish(e,r,i,(s,a)=>{s?o(s):n(a)})})}subscribe(e,r,i){let n=this.options.protocolVersion;typeof r==\"function\"&&(i=r),i=i||this.noop;let o=!1,s=[];typeof e==\"string\"?(e=[e],s=e):Array.isArray(e)?s=e:typeof e==\"object\"&&(o=e.resubscribe,delete e.resubscribe,s=Object.keys(e));let a=Fp.validateTopics(s);if(a!==null)return Ha(i,new Error(`Invalid topic ${a}`)),this;if(this._checkDisconnecting(i))return this.log(\"subscribe: discconecting true\"),this;let l={qos:0};n===5&&(l.nl=!1,l.rap=!1,l.rh=0),r=Object.assign(Object.assign({},l),r);let c=r.properties,h=[],d=(y,w)=>{if(w=w||r,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,y)||this._resubscribeTopics[y].qos{this.log(\"subscribe: array topic %s\",y),d(y)}):Object.keys(e).forEach(y=>{this.log(\"subscribe: object topic %s, %o\",y,e[y]),d(y,e[y])}),!h.length)return i(null,[]),this;let g=()=>{let y=this._nextId();if(y===null)return this.log(\"No messageId left\"),!1;let w={cmd:\"subscribe\",subscriptions:h,messageId:y};if(c&&(w.properties=c),this.options.resubscribe){this.log(\"subscribe :: resubscribe true\");let S=[];h.forEach(E=>{if(this.options.reconnectPeriod>0){let I={qos:E.qos};n===5&&(I.nl=E.nl||!1,I.rap=E.rap||!1,I.rh=E.rh||0,I.properties=E.properties),this._resubscribeTopics[E.topic]=I,S.push(E.topic)}}),this.messageIdToTopic[w.messageId]=S}return this.outgoing[w.messageId]={volatile:!0,cb(S,E){if(!S){let{granted:I}=E;for(let C=0;C0||!g())&&this._storeProcessingQueue.push({invoke:g,callback:i}),this}subscribeAsync(e,r){return new Promise((i,n)=>{this.subscribe(e,r,(o,s)=>{o?n(o):i(s)})})}unsubscribe(e,r,i){typeof e==\"string\"&&(e=[e]),typeof r==\"function\"&&(i=r),i=i||this.noop;let n=Fp.validateTopics(e);if(n!==null)return Ha(i,new Error(`Invalid topic ${n}`)),this;if(this._checkDisconnecting(i))return this;let o=()=>{let s=this._nextId();if(s===null)return this.log(\"No messageId left\"),!1;let a={cmd:\"unsubscribe\",messageId:s,unsubscriptions:[]};return typeof e==\"string\"?a.unsubscriptions=[e]:Array.isArray(e)&&(a.unsubscriptions=e),this.options.resubscribe&&a.unsubscriptions.forEach(l=>{delete this._resubscribeTopics[l]}),typeof r==\"object\"&&r.properties&&(a.properties=r.properties),this.outgoing[a.messageId]={volatile:!0,cb:i},this.log(\"unsubscribe: call _sendPacket\"),this._sendPacket(a),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!o())&&this._storeProcessingQueue.push({invoke:o,callback:i}),this}unsubscribeAsync(e,r){return new Promise((i,n)=>{this.unsubscribe(e,r,(o,s)=>{o?n(o):i(s)})})}end(e,r,i){this.log(\"end :: (%s)\",this.options.clientId),(e==null||typeof e!=\"boolean\")&&(i=i||r,r=e,e=!1),typeof r!=\"object\"&&(i=i||r,r=null),this.log(\"end :: cb? %s\",!!i),(!i||typeof i!=\"function\")&&(i=this.noop);let n=()=>{this.log(\"end :: closeStores: closing incoming and outgoing stores\"),this.disconnected=!0,this.incomingStore.close(s=>{this.outgoingStore.close(a=>{if(this.log(\"end :: closeStores: emitting end\"),this.emit(\"end\"),i){let l=s||a;this.log(\"end :: closeStores: invoking callback with args\"),i(l)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},o=()=>{this.log(\"end :: (%s) :: finish :: calling _cleanUp with force %s\",this.options.clientId,e),this._cleanUp(e,()=>{this.log(\"end :: finish :: calling process.nextTick on closeStores\"),(0,ns.nextTick)(n)},r)};return this.disconnecting?(i(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(this.log(\"end :: (%s) :: calling finish in 10ms once outgoing is empty\",this.options.clientId),this.once(\"outgoingEmpty\",setTimeout.bind(null,o,10))):(this.log(\"end :: (%s) :: immediately calling finish\",this.options.clientId),o()),this)}endAsync(e,r){return new Promise((i,n)=>{this.end(e,r,o=>{o?n(o):i()})})}removeOutgoingMessage(e){if(this.outgoing[e]){let{cb:r}=this.outgoing[e];this._removeOutgoingAndStoreMessage(e,()=>{r(new Error(\"Message removed\"))})}return this}reconnect(e){this.log(\"client reconnect\");let r=()=>{e?(this.options.incomingStore=e.incomingStore,this.options.outgoingStore=e.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new ii.default,this.outgoingStore=this.options.outgoingStore||new ii.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this}_flushVolatile(){this.outgoing&&(this.log(\"_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function\"),Object.keys(this.outgoing).forEach(e=>{this.outgoing[e].volatile&&typeof this.outgoing[e].cb==\"function\"&&(this.outgoing[e].cb(new Error(\"Connection closed\")),delete this.outgoing[e])}))}_flush(){this.outgoing&&(this.log(\"_flush: queue exists? %b\",!!this.outgoing),Object.keys(this.outgoing).forEach(e=>{typeof this.outgoing[e].cb==\"function\"&&(this.outgoing[e].cb(new Error(\"Connection closed\")),delete this.outgoing[e])}))}_removeTopicAliasAndRecoverTopicName(e){let r;e.properties&&(r=e.properties.topicAlias);let i=e.topic.toString();if(this.log(\"_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o\",r,i),i.length===0){if(typeof r>\"u\")return new Error(\"Unregistered Topic Alias\");if(i=this.topicAliasSend.getTopicByAlias(r),typeof i>\"u\")return new Error(\"Unregistered Topic Alias\");e.topic=i}r&&delete e.properties.topicAlias}_checkDisconnecting(e){return this.disconnecting&&(e&&e!==this.noop?e(new Error(\"client disconnecting\")):this.emit(\"error\",new Error(\"client disconnecting\"))),this.disconnecting}_reconnect(){this.log(\"_reconnect: emitting reconnect to client\"),this.emit(\"reconnect\"),this.connected?(this.end(()=>{this.connect()}),this.log(\"client already connected. disconnecting first.\")):(this.log(\"_reconnect: calling connect\"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log(\"_setupReconnect :: emit `offline` state\"),this.emit(\"offline\"),this.log(\"_setupReconnect :: set `reconnecting` to `true`\"),this.reconnecting=!0),this.log(\"_setupReconnect :: setting reconnectTimer for %d ms\",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log(\"reconnectTimer :: reconnect triggered!\"),this._reconnect()},this.options.reconnectPeriod)):this.log(\"_setupReconnect :: doing nothing...\")}_clearReconnect(){this.log(\"_clearReconnect : clearing reconnect timer\"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(e,r,i={}){if(r&&(this.log(\"_cleanUp :: done callback provided for on stream close\"),this.stream.on(\"close\",r)),this.log(\"_cleanUp :: forced? %s\",e),e)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log(\"_cleanUp :: (%s) :: destroying stream\",this.options.clientId),this.stream.destroy();else{let n=Object.assign({cmd:\"disconnect\"},i);this.log(\"_cleanUp :: (%s) :: call _sendPacket with disconnect packet\",this.options.clientId),this._sendPacket(n,()=>{this.log(\"_cleanUp :: (%s) :: destroying stream\",this.options.clientId),Ha(()=>{this.stream.end(()=>{this.log(\"_cleanUp :: (%s) :: stream destroyed\",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log(\"_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect.\"),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),r&&!this.connected&&(this.log(\"_cleanUp :: (%s) :: removing stream `done` callback `close` listener\",this.options.clientId),this.stream.removeListener(\"close\",r),r())}_storeAndSend(e,r,i){this.log(\"storeAndSend :: store packet with cmd %s to outgoingStore\",e.cmd);let n=e,o;if(n.cmd===\"publish\"&&(n=(0,jp.default)(e),o=this._removeTopicAliasAndRecoverTopicName(n),o))return r&&r(o);this.outgoingStore.put(n,s=>{if(s)return r&&r(s);i(),this._writePacket(e,r)})}_applyTopicAlias(e){if(this.options.protocolVersion===5&&e.cmd===\"publish\"){let r;e.properties&&(r=e.properties.topicAlias);let i=e.topic.toString();if(this.topicAliasSend)if(r){if(i.length!==0&&(this.log(\"applyTopicAlias :: register topic: %s - alias: %d\",i,r),!this.topicAliasSend.put(i,r)))return this.log(\"applyTopicAlias :: error out of range. topic: %s - alias: %d\",i,r),new Error(\"Sending Topic Alias out of range\")}else i.length!==0&&(this.options.autoAssignTopicAlias?(r=this.topicAliasSend.getAliasByTopic(i),r?(e.topic=\"\",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log(\"applyTopicAlias :: auto assign(use) topic: %s - alias: %d\",i,r)):(r=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(i,r),e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log(\"applyTopicAlias :: auto assign topic: %s - alias: %d\",i,r))):this.options.autoUseTopicAlias&&(r=this.topicAliasSend.getAliasByTopic(i),r&&(e.topic=\"\",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log(\"applyTopicAlias :: auto use topic: %s - alias: %d\",i,r))));else if(r)return this.log(\"applyTopicAlias :: error out of range. topic: %s - alias: %d\",i,r),new Error(\"Sending Topic Alias out of range\")}}_noop(e){this.log(\"noop ::\",e)}_writePacket(e,r){this.log(\"_writePacket :: packet: %O\",e),this.log(\"_writePacket :: emitting `packetsend`\"),this.emit(\"packetsend\",e),this.log(\"_writePacket :: writing to stream\");let i=$a.default.writeToStream(e,this.stream,this.options);this.log(\"_writePacket :: writeToStream result %s\",i),!i&&r&&r!==this.noop?(this.log(\"_writePacket :: handle events on `drain` once through callback.\"),this.stream.once(\"drain\",r)):r&&(this.log(\"_writePacket :: invoking cb\"),r())}_sendPacket(e,r,i,n){this.log(\"_sendPacket :: (%s) :: start\",this.options.clientId),i=i||this.noop,r=r||this.noop;let o=this._applyTopicAlias(e);if(o){r(o);return}if(!this.connected){if(e.cmd===\"auth\"){this._writePacket(e,r);return}this.log(\"_sendPacket :: client not connected. Storing packet offline.\"),this._storePacket(e,r,i);return}if(n){this._writePacket(e,r);return}switch(e.cmd){case\"publish\":break;case\"pubrel\":this._storeAndSend(e,r,i);return;default:this._writePacket(e,r);return}switch(e.qos){case 2:case 1:this._storeAndSend(e,r,i);break;case 0:default:this._writePacket(e,r);break}this.log(\"_sendPacket :: (%s) :: end\",this.options.clientId)}_storePacket(e,r,i){this.log(\"_storePacket :: packet: %o\",e),this.log(\"_storePacket :: cb? %s\",!!r),i=i||this.noop;let n=e;if(n.cmd===\"publish\"){n=(0,jp.default)(e);let s=this._removeTopicAliasAndRecoverTopicName(n);if(s)return r&&r(s)}let o=n.qos||0;o===0&&this.queueQoSZero||n.cmd!==\"publish\"?this.queue.push({packet:n,cb:r}):o>0?(r=this.outgoing[n.messageId]?this.outgoing[n.messageId].cb:null,this.outgoingStore.put(n,s=>{if(s)return r&&r(s);i()})):r&&r(new Error(\"No connection to broker\"))}_setupKeepaliveManager(){this.log(\"_setupKeepaliveManager :: keepalive %d (seconds)\",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new eE.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log(\"_destroyKeepaliveManager :: destroying keepalive manager\"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(e=!1){this.keepaliveManager&&this.options.keepalive&&(e||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log(\"_reschedulePing :: rescheduling ping\"),this.keepaliveManager.reschedule()}sendPing(){this.log(\"_sendPing :: sending pingreq\"),this._sendPacket({cmd:\"pingreq\"})}onKeepaliveTimeout(){this.emit(\"error\",new Error(\"Keepalive timeout\")),this.log(\"onKeepaliveTimeout :: calling _cleanUp with force true\"),this._cleanUp(!0)}_resubscribe(){this.log(\"_resubscribe\");let e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log(\"_resubscribe: protocolVersion 5\");for(let r=0;r{let i=this.outgoingStore.createStream(),n=()=>{i.destroy(),i=null,this._flushStoreProcessingQueue(),o()},o=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once(\"close\",n),i.on(\"error\",a=>{o(),this._flushStoreProcessingQueue(),this.removeListener(\"close\",n),this.emit(\"error\",a)});let s=()=>{if(!i)return;let a=i.read(1),l;if(!a){i.once(\"readable\",s);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[a.messageId]){s();return}!this.disconnecting&&!this.reconnectTimer?(l=this.outgoing[a.messageId]?this.outgoing[a.messageId].cb:null,this.outgoing[a.messageId]={volatile:!1,cb(c,h){l&&l(c,h),s()}},this._packetIdsDuringStoreProcessing[a.messageId]=!0,this.messageIdProvider.register(a.messageId)?this._sendPacket(a,void 0,void 0,!0):this.log(\"messageId: %d has already used.\",a.messageId)):i.destroy&&i.destroy()};i.on(\"end\",()=>{let a=!0;for(let l in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[l]){a=!1;break}this.removeListener(\"close\",n),a?(o(),this._invokeAllStoreProcessingQueue(),this.emit(\"connect\",e)):r()}),s()};r()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error(\"Connection closed\")),e.callback&&e.callback(new Error(\"Connection closed\"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(e,r){delete this.outgoing[e],this.outgoingStore.del({messageId:e},(i,n)=>{r(i,n),this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue()})}};ss.VERSION=ns.MQTTJS_VERSION;Qe.default=ss});var Vp=M(za=>{\"use strict\";_();v();m();Object.defineProperty(za,\"__esModule\",{value:!0});var tE=Ua(),Va=class{constructor(){this.numberAllocator=new tE.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(e){return this.numberAllocator.use(e)}deallocate(e){this.numberAllocator.free(e)}clear(){this.numberAllocator.clear()}};za.default=Va});function Rr(t){throw new RangeError(sE[t])}function zp(t,e){let r=t.split(\"@\"),i=\"\";r.length>1&&(i=r[0]+\"@\",t=r[1]);let n=function(o,s){let a=[],l=o.length;for(;l--;)a[l]=s(o[l]);return a}((t=t.replace(nE,\".\")).split(\".\"),e).join(\".\");return i+n}function Yp(t){let e=[],r=0,i=t.length;for(;r=55296&&n<=56319&&r{_();v();m();rE=/^xn--/,iE=/[^\\0-\\x7E]/,nE=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,sE={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},dt=Math.floor,Ka=String.fromCharCode;Kp=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Jp=function(t,e,r){let i=0;for(t=r?dt(t/700):t>>1,t+=dt(t/e);t>455;i+=36)t=dt(t/35);return dt(i+36*t/(t+38))},Gp=function(t){let e=[],r=t.length,i=0,n=128,o=72,s=t.lastIndexOf(\"-\");s<0&&(s=0);for(let l=0;l=128&&Rr(\"not-basic\"),e.push(t.charCodeAt(l));for(let l=s>0?s+1:0;l=r&&Rr(\"invalid-input\");let y=(a=t.charCodeAt(l++))-48<10?a-22:a-65<26?a-65:a-97<26?a-97:36;(y>=36||y>dt((2147483647-i)/d))&&Rr(\"overflow\"),i+=y*d;let w=g<=o?1:g>=o+26?26:g-o;if(ydt(2147483647/S)&&Rr(\"overflow\"),d*=S}let h=e.length+1;o=Jp(i-c,h,c==0),dt(i/h)>2147483647-n&&Rr(\"overflow\"),n+=dt(i/h),i%=h,e.splice(i++,0,n)}var a;return String.fromCodePoint(...e)},Qp=function(t){let e=[],r=(t=Yp(t)).length,i=128,n=0,o=72;for(let l of t)l<128&&e.push(Ka(l));let s=e.length,a=s;for(s&&e.push(\"-\");a=i&&hdt((2147483647-n)/c)&&Rr(\"overflow\"),n+=(l-i)*c,i=l;for(let h of t)if(h2147483647&&Rr(\"overflow\"),h==i){let d=n;for(let g=36;;g+=36){let y=g<=o?1:g>=o+26?26:g-o;if(dString.fromCodePoint(...t)},decode:Gp,encode:Qp,toASCII:function(t){return zp(t,function(e){return iE.test(e)?\"xn--\"+Qp(e):e})},toUnicode:function(t){return zp(t,function(e){return rE.test(e)?Gp(e.slice(4).toLowerCase()):e})}};Kt.decode;Kt.encode;Kt.toASCII;Kt.toUnicode;Kt.ucs2;Kt.version});function oE(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var aE,Mi,lE,pt,Zp=_e(()=>{_();v();m();aE=function(t,e,r,i){e=e||\"&\",r=r||\"=\";var n={};if(typeof t!=\"string\"||t.length===0)return n;var o=/\\+/g;t=t.split(e);var s=1e3;i&&typeof i.maxKeys==\"number\"&&(s=i.maxKeys);var a=t.length;s>0&&a>s&&(a=s);for(var l=0;l=0?(c=y.substr(0,w),h=y.substr(w+1)):(c=y,h=\"\"),d=decodeURIComponent(c),g=decodeURIComponent(h),oE(n,d)?Array.isArray(n[d])?n[d].push(g):n[d]=[n[d],g]:n[d]=g}return n},Mi=function(t){switch(typeof t){case\"string\":return t;case\"boolean\":return t?\"true\":\"false\";case\"number\":return isFinite(t)?t:\"\";default:return\"\"}},lE=function(t,e,r,i){return e=e||\"&\",r=r||\"=\",t===null&&(t=void 0),typeof t==\"object\"?Object.keys(t).map(function(n){var o=encodeURIComponent(Mi(n))+r;return Array.isArray(t[n])?t[n].map(function(s){return o+encodeURIComponent(Mi(s))}).join(e):o+encodeURIComponent(Mi(t[n]))}).join(e):i?encodeURIComponent(Mi(i))+r+encodeURIComponent(Mi(t)):\"\"},pt={};pt.decode=pt.parse=aE,pt.encode=pt.stringify=lE;pt.decode;pt.encode;pt.parse;pt.stringify});function Ga(){throw new Error(\"setTimeout has not been defined\")}function Qa(){throw new Error(\"clearTimeout has not been defined\")}function rg(t){if(Pt===setTimeout)return setTimeout(t,0);if((Pt===Ga||!Pt)&&setTimeout)return Pt=setTimeout,setTimeout(t,0);try{return Pt(t,0)}catch{try{return Pt.call(null,t,0)}catch{return Pt.call(this||si,t,0)}}}function uE(){ni&&Cr&&(ni=!1,Cr.length?Ot=Cr.concat(Ot):as=-1,Ot.length&&ig())}function ig(){if(!ni){var t=rg(uE);ni=!0;for(var e=Ot.length;e;){for(Cr=Ot,Ot=[];++as{_();v();m();si=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:global,fe=tg={};(function(){try{Pt=typeof setTimeout==\"function\"?setTimeout:Ga}catch{Pt=Ga}try{kt=typeof clearTimeout==\"function\"?clearTimeout:Qa}catch{kt=Qa}})();Ot=[],ni=!1,as=-1;fe.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r1)for(var I=1;I{_();v();m();Ya={},sg=!1,oi=typeof globalThis<\"u\"?globalThis:typeof self<\"u\"?self:global;re=fE();re.platform=\"browser\";re.addListener;re.argv;re.binding;re.browser;re.chdir;re.cwd;re.emit;re.env;re.listeners;re.nextTick;re.off;re.on;re.once;re.prependListener;re.prependOnceListener;re.removeAllListeners;re.removeListener;re.title;re.umask;re.version;re.versions});function cE(){if(og)return Xa;og=!0;var t=re;function e(o){if(typeof o!=\"string\")throw new TypeError(\"Path must be a string. Received \"+JSON.stringify(o))}function r(o,s){for(var a=\"\",l=0,c=-1,h=0,d,g=0;g<=o.length;++g){if(g2){var y=a.lastIndexOf(\"/\");if(y!==a.length-1){y===-1?(a=\"\",l=0):(a=a.slice(0,y),l=a.length-1-a.lastIndexOf(\"/\")),c=g,h=0;continue}}else if(a.length===2||a.length===1){a=\"\",l=0,c=g,h=0;continue}}s&&(a.length>0?a+=\"/..\":a=\"..\",l=2)}else a.length>0?a+=\"/\"+o.slice(c+1,g):a=o.slice(c+1,g),l=g-c-1;c=g,h=0}else d===46&&h!==-1?++h:h=-1}return a}function i(o,s){var a=s.dir||s.root,l=s.base||(s.name||\"\")+(s.ext||\"\");return a?a===s.root?a+l:a+o+l:l}var n={resolve:function(){for(var s=\"\",a=!1,l,c=arguments.length-1;c>=-1&&!a;c--){var h;c>=0?h=arguments[c]:(l===void 0&&(l=t.cwd()),h=l),e(h),h.length!==0&&(s=h+\"/\"+s,a=h.charCodeAt(0)===47)}return s=r(s,!a),a?s.length>0?\"/\"+s:\"/\":s.length>0?s:\".\"},normalize:function(s){if(e(s),s.length===0)return\".\";var a=s.charCodeAt(0)===47,l=s.charCodeAt(s.length-1)===47;return s=r(s,!a),s.length===0&&!a&&(s=\".\"),s.length>0&&l&&(s+=\"/\"),a?\"/\"+s:s},isAbsolute:function(s){return e(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return\".\";for(var s,a=0;a0&&(s===void 0?s=l:s+=\"/\"+l)}return s===void 0?\".\":n.normalize(s)},relative:function(s,a){if(e(s),e(a),s===a||(s=n.resolve(s),a=n.resolve(a),s===a))return\"\";for(var l=1;lw){if(a.charCodeAt(d+E)===47)return a.slice(d+E+1);if(E===0)return a.slice(d+E)}else h>w&&(s.charCodeAt(l+E)===47?S=E:E===0&&(S=0));break}var I=s.charCodeAt(l+E),C=a.charCodeAt(d+E);if(I!==C)break;I===47&&(S=E)}var R=\"\";for(E=l+S+1;E<=c;++E)(E===c||s.charCodeAt(E)===47)&&(R.length===0?R+=\"..\":R+=\"/..\");return R.length>0?R+a.slice(d+S):(d+=S,a.charCodeAt(d)===47&&++d,a.slice(d))},_makeLong:function(s){return s},dirname:function(s){if(e(s),s.length===0)return\".\";for(var a=s.charCodeAt(0),l=a===47,c=-1,h=!0,d=s.length-1;d>=1;--d)if(a=s.charCodeAt(d),a===47){if(!h){c=d;break}}else h=!1;return c===-1?l?\"/\":\".\":l&&c===1?\"//\":s.slice(0,c)},basename:function(s,a){if(a!==void 0&&typeof a!=\"string\")throw new TypeError('\"ext\" argument must be a string');e(s);var l=0,c=-1,h=!0,d;if(a!==void 0&&a.length>0&&a.length<=s.length){if(a.length===s.length&&a===s)return\"\";var g=a.length-1,y=-1;for(d=s.length-1;d>=0;--d){var w=s.charCodeAt(d);if(w===47){if(!h){l=d+1;break}}else y===-1&&(h=!1,y=d+1),g>=0&&(w===a.charCodeAt(g)?--g===-1&&(c=d):(g=-1,c=y))}return l===c?c=y:c===-1&&(c=s.length),s.slice(l,c)}else{for(d=s.length-1;d>=0;--d)if(s.charCodeAt(d)===47){if(!h){l=d+1;break}}else c===-1&&(h=!1,c=d+1);return c===-1?\"\":s.slice(l,c)}},extname:function(s){e(s);for(var a=-1,l=0,c=-1,h=!0,d=0,g=s.length-1;g>=0;--g){var y=s.charCodeAt(g);if(y===47){if(!h){l=g+1;break}continue}c===-1&&(h=!1,c=g+1),y===46?a===-1?a=g:d!==1&&(d=1):a!==-1&&(d=-1)}return a===-1||c===-1||d===0||d===1&&a===c-1&&a===l+1?\"\":s.slice(a,c)},format:function(s){if(s===null||typeof s!=\"object\")throw new TypeError('The \"pathObject\" argument must be of type Object. Received type '+typeof s);return i(\"/\",s)},parse:function(s){e(s);var a={root:\"\",dir:\"\",base:\"\",ext:\"\",name:\"\"};if(s.length===0)return a;var l=s.charCodeAt(0),c=l===47,h;c?(a.root=\"/\",h=1):h=0;for(var d=-1,g=0,y=-1,w=!0,S=s.length-1,E=0;S>=h;--S){if(l=s.charCodeAt(S),l===47){if(!w){g=S+1;break}continue}y===-1&&(w=!1,y=S+1),l===46?d===-1?d=S:E!==1&&(E=1):d!==-1&&(E=-1)}return d===-1||y===-1||E===0||E===1&&d===y-1&&d===g+1?y!==-1&&(g===0&&c?a.base=a.name=s.slice(1,y):a.base=a.name=s.slice(g,y)):(g===0&&c?(a.name=s.slice(1,d),a.base=s.slice(1,y)):(a.name=s.slice(g,d),a.base=s.slice(g,y)),a.ext=s.slice(d,y)),g>0?a.dir=s.slice(0,g-1):c&&(a.dir=\"/\"),a},sep:\"/\",delimiter:\":\",win32:null,posix:null};return n.posix=n,Xa=n,Xa}var Xa,og,Za,ag=_e(()=>{_();v();m();Ja();Xa={},og=!1;Za=cE()});var gg={};Jt(gg,{URL:()=>FE,Url:()=>UE,default:()=>Z,fileURLToPath:()=>dg,format:()=>NE,parse:()=>jE,pathToFileURL:()=>pg,resolve:()=>qE,resolveObject:()=>DE});function Fe(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Li(t,e,r){if(t&>.isObject(t)&&t instanceof Fe)return t;var i=new Fe;return i.parse(t,e,r),i}function _E(){if(cg)return rl;cg=!0;var t=ne;function e(o){if(typeof o!=\"string\")throw new TypeError(\"Path must be a string. Received \"+JSON.stringify(o))}function r(o,s){for(var a=\"\",l=0,c=-1,h=0,d,g=0;g<=o.length;++g){if(g2){var y=a.lastIndexOf(\"/\");if(y!==a.length-1){y===-1?(a=\"\",l=0):(a=a.slice(0,y),l=a.length-1-a.lastIndexOf(\"/\")),c=g,h=0;continue}}else if(a.length===2||a.length===1){a=\"\",l=0,c=g,h=0;continue}}s&&(a.length>0?a+=\"/..\":a=\"..\",l=2)}else a.length>0?a+=\"/\"+o.slice(c+1,g):a=o.slice(c+1,g),l=g-c-1;c=g,h=0}else d===46&&h!==-1?++h:h=-1}return a}function i(o,s){var a=s.dir||s.root,l=s.base||(s.name||\"\")+(s.ext||\"\");return a?a===s.root?a+l:a+o+l:l}var n={resolve:function(){for(var s=\"\",a=!1,l,c=arguments.length-1;c>=-1&&!a;c--){var h;c>=0?h=arguments[c]:(l===void 0&&(l=t.cwd()),h=l),e(h),h.length!==0&&(s=h+\"/\"+s,a=h.charCodeAt(0)===47)}return s=r(s,!a),a?s.length>0?\"/\"+s:\"/\":s.length>0?s:\".\"},normalize:function(s){if(e(s),s.length===0)return\".\";var a=s.charCodeAt(0)===47,l=s.charCodeAt(s.length-1)===47;return s=r(s,!a),s.length===0&&!a&&(s=\".\"),s.length>0&&l&&(s+=\"/\"),a?\"/\"+s:s},isAbsolute:function(s){return e(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return\".\";for(var s,a=0;a0&&(s===void 0?s=l:s+=\"/\"+l)}return s===void 0?\".\":n.normalize(s)},relative:function(s,a){if(e(s),e(a),s===a||(s=n.resolve(s),a=n.resolve(a),s===a))return\"\";for(var l=1;lw){if(a.charCodeAt(d+E)===47)return a.slice(d+E+1);if(E===0)return a.slice(d+E)}else h>w&&(s.charCodeAt(l+E)===47?S=E:E===0&&(S=0));break}var I=s.charCodeAt(l+E),C=a.charCodeAt(d+E);if(I!==C)break;I===47&&(S=E)}var R=\"\";for(E=l+S+1;E<=c;++E)(E===c||s.charCodeAt(E)===47)&&(R.length===0?R+=\"..\":R+=\"/..\");return R.length>0?R+a.slice(d+S):(d+=S,a.charCodeAt(d)===47&&++d,a.slice(d))},_makeLong:function(s){return s},dirname:function(s){if(e(s),s.length===0)return\".\";for(var a=s.charCodeAt(0),l=a===47,c=-1,h=!0,d=s.length-1;d>=1;--d)if(a=s.charCodeAt(d),a===47){if(!h){c=d;break}}else h=!1;return c===-1?l?\"/\":\".\":l&&c===1?\"//\":s.slice(0,c)},basename:function(s,a){if(a!==void 0&&typeof a!=\"string\")throw new TypeError('\"ext\" argument must be a string');e(s);var l=0,c=-1,h=!0,d;if(a!==void 0&&a.length>0&&a.length<=s.length){if(a.length===s.length&&a===s)return\"\";var g=a.length-1,y=-1;for(d=s.length-1;d>=0;--d){var w=s.charCodeAt(d);if(w===47){if(!h){l=d+1;break}}else y===-1&&(h=!1,y=d+1),g>=0&&(w===a.charCodeAt(g)?--g===-1&&(c=d):(g=-1,c=y))}return l===c?c=y:c===-1&&(c=s.length),s.slice(l,c)}else{for(d=s.length-1;d>=0;--d)if(s.charCodeAt(d)===47){if(!h){l=d+1;break}}else c===-1&&(h=!1,c=d+1);return c===-1?\"\":s.slice(l,c)}},extname:function(s){e(s);for(var a=-1,l=0,c=-1,h=!0,d=0,g=s.length-1;g>=0;--g){var y=s.charCodeAt(g);if(y===47){if(!h){l=g+1;break}continue}c===-1&&(h=!1,c=g+1),y===46?a===-1?a=g:d!==1&&(d=1):a!==-1&&(d=-1)}return a===-1||c===-1||d===0||d===1&&a===c-1&&a===l+1?\"\":s.slice(a,c)},format:function(s){if(s===null||typeof s!=\"object\")throw new TypeError('The \"pathObject\" argument must be of type Object. Received type '+typeof s);return i(\"/\",s)},parse:function(s){e(s);var a={root:\"\",dir:\"\",base:\"\",ext:\"\",name:\"\"};if(s.length===0)return a;var l=s.charCodeAt(0),c=l===47,h;c?(a.root=\"/\",h=1):h=0;for(var d=-1,g=0,y=-1,w=!0,S=s.length-1,E=0;S>=h;--S){if(l=s.charCodeAt(S),l===47){if(!w){g=S+1;break}continue}y===-1&&(w=!1,y=S+1),l===46?d===-1?d=S:E!==1&&(E=1):d!==-1&&(E=-1)}return d===-1||y===-1||E===0||E===1&&d===y-1&&d===g+1?y!==-1&&(g===0&&c?a.base=a.name=s.slice(1,y):a.base=a.name=s.slice(g,y)):(g===0&&c?(a.name=s.slice(1,d),a.base=s.slice(1,y)):(a.name=s.slice(g,d),a.base=s.slice(g,y)),a.ext=s.slice(d,y)),g>0?a.dir=s.slice(0,g-1):c&&(a.dir=\"/\"),a},sep:\"/\",delimiter:\":\",win32:null,posix:null};return n.posix=n,rl=n,rl}function kE(t){if(typeof t==\"string\")t=new URL(t);else if(!(t instanceof URL))throw new Deno.errors.InvalidData(\"invalid argument path , must be a string or URL\");if(t.protocol!==\"file:\")throw new Deno.errors.InvalidData(\"invalid url scheme\");return nl?OE(t):xE(t)}function OE(t){let e=t.hostname,r=t.pathname;for(let i=0;iAE||n!==\":\")throw new Deno.errors.InvalidData(\"file url path must be absolute\");return r.slice(1)}}function xE(t){if(t.hostname!==\"\")throw new Deno.errors.InvalidData(\"invalid file url hostname\");let e=t.pathname;for(let r=0;rVE||n!==\":\")throw new Deno.errors.InvalidData(\"file url path must be absolute\");return r.slice(1)}}function ZE(t){if(t.hostname!==\"\")throw new Deno.errors.InvalidData(\"invalid file url hostname\");let e=t.pathname;for(let r=0;r{_();v();m();Xp();Zp();ng();ag();Ja();Z={},hE=Kt,gt={isString:function(t){return typeof t==\"string\"},isObject:function(t){return typeof t==\"object\"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}};Z.parse=Li,Z.resolve=function(t,e){return Li(t,!1,!0).resolve(e)},Z.resolveObject=function(t,e){return t?Li(t,!1,!0).resolveObject(e):e},Z.format=function(t){return gt.isString(t)&&(t=Li(t)),t instanceof Fe?t.format():Fe.prototype.format.call(t)},Z.Url=Fe;dE=/^([a-z0-9.+-]+:)/i,pE=/:[0-9]*$/,gE=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,yE=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat([\"<\",\">\",'\"',\"`\",\" \",\"\\r\",`","`,\"\t\"]),il=[\"'\"].concat(yE),lg=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(il),ug=[\"/\",\"?\",\"#\"],fg=/^[+a-z0-9A-Z_-]{0,63}$/,bE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,wE={javascript:!0,\"javascript:\":!0},el={javascript:!0,\"javascript:\":!0},ai={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0},tl=pt;Fe.prototype.parse=function(t,e,r){if(!gt.isString(t))throw new TypeError(\"Parameter 'url' must be a string, not \"+typeof t);var i=t.indexOf(\"?\"),n=i!==-1&&i127?U+=\"x\":U+=R[N];if(!U.match(fg)){var K=I.slice(0,w),z=I.slice(w+1),Q=R.match(bE);Q&&(K.push(Q[1]),z.unshift(Q[2])),z.length&&(s=\"/\"+z.join(\".\")+s),this.hostname=K.join(\".\");break}}}this.hostname.length>255?this.hostname=\"\":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=hE.toASCII(this.hostname));var pe=this.port?\":\"+this.port:\"\",Yt=this.hostname||\"\";this.host=Yt+pe,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!==\"/\"&&(s=\"/\"+s))}if(!wE[c])for(w=0,C=il.length;w0)&&r.host.split(\"@\"))&&(r.auth=Q.shift(),r.host=r.hostname=Q.shift())),r.search=t.search,r.query=t.query,gt.isNull(r.pathname)&>.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.href=r.format(),r;if(!R.length)return r.pathname=null,r.search?r.path=\"/\"+r.search:r.path=null,r.href=r.format(),r;for(var N=R.slice(-1)[0],W=(r.host||t.host||R.length>1)&&(N===\".\"||N===\"..\")||N===\"\",K=0,z=R.length;z>=0;z--)(N=R[z])===\".\"?R.splice(z,1):N===\"..\"?(R.splice(z,1),K++):K&&(R.splice(z,1),K--);if(!I&&!C)for(;K--;K)R.unshift(\"..\");!I||R[0]===\"\"||R[0]&&R[0].charAt(0)===\"/\"||R.unshift(\"\"),W&&R.join(\"/\").substr(-1)!==\"/\"&&R.push(\"\");var Q,pe=R[0]===\"\"||R[0]&&R[0].charAt(0)===\"/\";return U&&(r.hostname=r.host=pe?\"\":R.length?R.shift():\"\",(Q=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\"))&&(r.auth=Q.shift(),r.host=r.hostname=Q.shift())),(I=I||r.host&&R.length)&&!pe&&R.unshift(\"\"),R.length?r.pathname=R.join(\"/\"):(r.pathname=null,r.path=null),gt.isNull(r.pathname)&>.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},Fe.prototype.parseHost=function(){var t=this.host,e=pE.exec(t);e&&((e=e[0])!==\":\"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};Z.Url;Z.format;Z.resolve;Z.resolveObject;rl={},cg=!1;hg=_E(),mE=typeof Deno<\"u\"?Deno.build.os===\"windows\"?\"win32\":Deno.build.os:void 0;Z.URL=typeof URL<\"u\"?URL:null;Z.pathToFileURL=ME;Z.fileURLToPath=kE;Z.Url;Z.format;Z.resolve;Z.resolveObject;Z.URL;vE=92,EE=47,SE=97,AE=122,nl=mE===\"win32\",IE=/\\//g,TE=/%/g,RE=/\\\\/g,CE=/\\n/g,BE=/\\r/g,PE=/\\t/g;LE=typeof Deno<\"u\"?Deno.build.os===\"windows\"?\"win32\":Deno.build.os:void 0;Z.URL=typeof URL<\"u\"?URL:null;Z.pathToFileURL=pg;Z.fileURLToPath=dg;UE=Z.Url,NE=Z.format,qE=Z.resolve,DE=Z.resolveObject,jE=Z.parse,FE=Z.URL,WE=92,$E=47,HE=97,VE=122,sl=LE===\"win32\",zE=/\\//g,KE=/%/g,GE=/\\\\/g,QE=/\\n/g,YE=/\\r/g,JE=/\\t/g});var wg=M((YL,bg)=>{\"use strict\";_();v();m();bg.exports=function(){throw new Error(\"ws does not work in the browser. Browser clients must use the native WebSocket object\")}});var ls=M(li=>{\"use strict\";_();v();m();Object.defineProperty(li,\"__esModule\",{value:!0});li.BufferedDuplex=li.writev=void 0;var eS=jt(),_g=(be(),X(me));function mg(t,e){let r=new Array(t.length);for(let i=0;i{this.destroyed||this.push(n)})}_read(e){this.proxy.read(e)}_write(e,r,i){this.isSocketOpen?this.writeToProxy(e,r,i):this.writeQueue.push({chunk:e,encoding:r,cb:i})}_final(e){this.writeQueue=[],this.proxy.end(e)}_destroy(e,r){this.writeQueue=[],this.proxy.destroy(),r(e)}socketReady(){this.emit(\"connect\"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(e,r,i){this.proxy.write(e,r)===!1?this.proxy.once(\"drain\",i):i()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:e,encoding:r,cb:i}=this.writeQueue.shift();this.writeToProxy(e,r,i)}}};li.BufferedDuplex=ol});var Ui=M(Qt=>{\"use strict\";_();v();m();var ll=Qt&&Qt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qt,\"__esModule\",{value:!0});Qt.streamBuilder=Qt.browserStreamBuilder=void 0;var us=(be(),X(me)),vg=ll(wg()),tS=ll(ot()),rS=jt(),iS=ll(Oi()),al=ls(),Gt=(0,tS.default)(\"mqttjs:ws\"),nS=[\"rejectUnauthorized\",\"ca\",\"cert\",\"key\",\"pfx\",\"passphrase\"];function Eg(t,e){let r=`${t.protocol}://${t.hostname}:${t.port}${t.path}`;return typeof t.transformWsUrl==\"function\"&&(r=t.transformWsUrl(r,t,e)),r}function Sg(t){let e=t;return t.port||(t.protocol===\"wss\"?e.port=443:e.port=80),t.path||(e.path=\"/\"),t.wsOptions||(e.wsOptions={}),!iS.default&&!t.forceNativeWebSocket&&t.protocol===\"wss\"&&nS.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&!Object.prototype.hasOwnProperty.call(t.wsOptions,r)&&(e.wsOptions[r]=t[r])}),e}function sS(t){let e=Sg(t);if(e.hostname||(e.hostname=e.host),!e.hostname){if(typeof document>\"u\")throw new Error(\"Could not determine host. Specify host manually.\");let r=new URL(document.URL);e.hostname=r.hostname,e.port||(e.port=Number(r.port))}return e.objectMode===void 0&&(e.objectMode=!(e.binary===!0||e.binary===void 0)),e}function oS(t,e,r){Gt(\"createWebSocket\"),Gt(`protocol: ${r.protocolId} ${r.protocolVersion}`);let i=r.protocolId===\"MQIsdp\"&&r.protocolVersion===3?\"mqttv3.1\":\"mqtt\";Gt(`creating new Websocket for url: ${e} and protocol: ${i}`);let n;return r.createWebsocket?n=r.createWebsocket(e,[i],r):n=new vg.default(e,[i],r.wsOptions),n}function aS(t,e){let r=e.protocolId===\"MQIsdp\"&&e.protocolVersion===3?\"mqttv3.1\":\"mqtt\",i=Eg(e,t),n;return e.createWebsocket?n=e.createWebsocket(i,[r],e):n=new WebSocket(i,[r]),n.binaryType=\"arraybuffer\",n}var lS=(t,e)=>{Gt(\"streamBuilder\");let r=Sg(e);r.hostname=r.hostname||r.host||\"localhost\";let i=Eg(r,t),n=oS(t,i,r),o=vg.default.createWebSocketStream(n,r.wsOptions);return o.url=i,n.on(\"close\",()=>{o.destroy()}),o};Qt.streamBuilder=lS;var uS=(t,e)=>{Gt(\"browserStreamBuilder\");let r,n=sS(e).browserBufferSize||1024*512,o=e.browserBufferTimeout||1e3,s=!e.objectMode,a=aS(t,e),l=h(e,S,E);e.objectMode||(l._writev=al.writev.bind(l)),l.on(\"close\",()=>{a.close()});let c=typeof a.addEventListener<\"u\";a.readyState===a.OPEN?(r=l,r.socket=a):(r=new al.BufferedDuplex(e,l,a),c?a.addEventListener(\"open\",d):a.onopen=d),c?(a.addEventListener(\"close\",g),a.addEventListener(\"error\",y),a.addEventListener(\"message\",w)):(a.onclose=g,a.onerror=y,a.onmessage=w);function h(I,C,R){let U=new rS.Transform({objectMode:I.objectMode});return U._write=C,U._flush=R,U}function d(){Gt(\"WebSocket onOpen\"),r instanceof al.BufferedDuplex&&r.socketReady()}function g(I){Gt(\"WebSocket onClose\",I),r.end(),r.destroy()}function y(I){Gt(\"WebSocket onError\",I);let C=new Error(\"WebSocket error\");C.event=I,r.destroy(C)}async function w(I){let{data:C}=I;C instanceof ArrayBuffer?C=us.Buffer.from(C):C instanceof Blob?C=us.Buffer.from(await new Response(C).arrayBuffer()):C=us.Buffer.from(C,\"utf8\"),l&&!l.destroyed&&l.push(C)}function S(I,C,R){if(a.bufferedAmount>n){setTimeout(S,o,I,C,R);return}s&&typeof I==\"string\"&&(I=us.Buffer.from(I,\"utf8\"));try{a.send(I)}catch(U){return R(U)}R()}function E(I){a.close(),I()}return r};Qt.browserStreamBuilder=uS});var ul={};Jt(ul,{Server:()=>Me,Socket:()=>Me,Stream:()=>Me,_createServerHandle:()=>Me,_normalizeArgs:()=>Me,_setSimultaneousAccepts:()=>Me,connect:()=>Me,createConnection:()=>Me,createServer:()=>Me,default:()=>fS,isIP:()=>Me,isIPv4:()=>Me,isIPv6:()=>Me});function Me(){throw new Error(\"Node.js net module is not supported by JSPM core outside of Node.js\")}var fS,fl=_e(()=>{_();v();m();fS={_createServerHandle:Me,_normalizeArgs:Me,_setSimultaneousAccepts:Me,connect:Me,createConnection:Me,createServer:Me,isIP:Me,isIPv4:Me,isIPv6:Me,Server:Me,Socket:Me,Stream:Me}});var cl=M(Ni=>{\"use strict\";_();v();m();var Ag=Ni&&Ni.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ni,\"__esModule\",{value:!0});var cS=Ag((fl(),X(ul))),hS=Ag(ot()),dS=(0,hS.default)(\"mqttjs:tcp\"),pS=(t,e)=>{e.port=e.port||1883,e.hostname=e.hostname||e.host||\"localhost\";let{port:r,path:i}=e,n=e.hostname;return dS(\"port %d and host %s\",r,n),cS.default.createConnection({port:r,host:n,path:i})};Ni.default=pS});var Ig={};Jt(Ig,{default:()=>gS});var gS,Tg=_e(()=>{_();v();m();gS={}});var dl=M(qi=>{\"use strict\";_();v();m();var hl=qi&&qi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qi,\"__esModule\",{value:!0});var yS=hl((Tg(),X(Ig))),bS=hl((fl(),X(ul))),wS=hl(ot()),_S=(0,wS.default)(\"mqttjs:tls\"),mS=(t,e)=>{e.port=e.port||8883,e.host=e.hostname||e.host||\"localhost\",bS.default.isIP(e.host)===0&&(e.servername=e.host),e.rejectUnauthorized=e.rejectUnauthorized!==!1,delete e.path,_S(\"port %d host %s rejectUnauthorized %b\",e.port,e.host,e.rejectUnauthorized);let r=yS.default.connect(e);r.on(\"secureConnect\",()=>{e.rejectUnauthorized&&!r.authorized?r.emit(\"error\",new Error(\"TLS not authorized\")):r.removeListener(\"error\",i)});function i(n){e.rejectUnauthorized&&t.emit(\"error\",n),r.end()}return r.on(\"error\",i),r};qi.default=mS});var yl=M(gl=>{\"use strict\";_();v();m();Object.defineProperty(gl,\"__esModule\",{value:!0});var Rg=(be(),X(me)),vS=jt(),ES=ls(),yt,pl,Le;function SS(){let t=new vS.Transform;return t._write=(e,r,i)=>{yt.send({data:e.buffer,success(){i()},fail(n){i(new Error(n))}})},t._flush=e=>{yt.close({success(){e()}})},t}function AS(t){t.hostname||(t.hostname=\"localhost\"),t.path||(t.path=\"/\"),t.wsOptions||(t.wsOptions={})}function IS(t,e){let r=t.protocol===\"wxs\"?\"wss\":\"ws\",i=`${r}://${t.hostname}${t.path}`;return t.port&&t.port!==80&&t.port!==443&&(i=`${r}://${t.hostname}:${t.port}${t.path}`),typeof t.transformWsUrl==\"function\"&&(i=t.transformWsUrl(i,t,e)),i}function TS(){yt.onOpen(()=>{Le.socketReady()}),yt.onMessage(t=>{let{data:e}=t;e instanceof ArrayBuffer?e=Rg.Buffer.from(e):e=Rg.Buffer.from(e,\"utf8\"),pl.push(e)}),yt.onClose(()=>{Le.emit(\"close\"),Le.end(),Le.destroy()}),yt.onError(t=>{let e=new Error(t.errMsg);Le.destroy(e)})}var RS=(t,e)=>{if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error(\"Could not determine host. Specify host manually.\");let r=e.protocolId===\"MQIsdp\"&&e.protocolVersion===3?\"mqttv3.1\":\"mqtt\";AS(e);let i=IS(e,t);yt=wx.connectSocket({url:i,protocols:[r]}),pl=SS(),Le=new ES.BufferedDuplex(e,pl,yt),Le._destroy=(o,s)=>{yt.close({success(){s&&s(o)}})};let n=Le.destroy;return Le.destroy=(o,s)=>(Le.destroy=n,setTimeout(()=>{yt.close({fail(){Le._destroy(o,s)}})},0),Le),TS(),Le};gl.default=RS});var _l=M(wl=>{\"use strict\";_();v();m();Object.defineProperty(wl,\"__esModule\",{value:!0});var bl=(be(),X(me)),CS=jt(),BS=ls(),xt,fs,ui,Cg=!1;function PS(){let t=new CS.Transform;return t._write=(e,r,i)=>{xt.sendSocketMessage({data:e.buffer,success(){i()},fail(){i(new Error)}})},t._flush=e=>{xt.closeSocket({success(){e()}})},t}function kS(t){t.hostname||(t.hostname=\"localhost\"),t.path||(t.path=\"/\"),t.wsOptions||(t.wsOptions={})}function OS(t,e){let r=t.protocol===\"alis\"?\"wss\":\"ws\",i=`${r}://${t.hostname}${t.path}`;return t.port&&t.port!==80&&t.port!==443&&(i=`${r}://${t.hostname}:${t.port}${t.path}`),typeof t.transformWsUrl==\"function\"&&(i=t.transformWsUrl(i,t,e)),i}function xS(){Cg||(Cg=!0,xt.onSocketOpen(()=>{ui.socketReady()}),xt.onSocketMessage(t=>{if(typeof t.data==\"string\"){let e=bl.Buffer.from(t.data,\"base64\");fs.push(e)}else{let e=new FileReader;e.addEventListener(\"load\",()=>{let r=e.result;r instanceof ArrayBuffer?r=bl.Buffer.from(r):r=bl.Buffer.from(r,\"utf8\"),fs.push(r)}),e.readAsArrayBuffer(t.data)}}),xt.onSocketClose(()=>{ui.end(),ui.destroy()}),xt.onSocketError(t=>{ui.destroy(t)}))}var MS=(t,e)=>{if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error(\"Could not determine host. Specify host manually.\");let r=e.protocolId===\"MQIsdp\"&&e.protocolVersion===3?\"mqttv3.1\":\"mqtt\";kS(e);let i=OS(e,t);return xt=e.my,xt.connectSocket({url:i,protocols:r}),fs=PS(),ui=new BS.BufferedDuplex(e,fs,xt),xS(),ui};wl.default=MS});var kg=M(Br=>{\"use strict\";_();v();m();var cs=Br&&Br.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Br,\"__esModule\",{value:!0});Br.connectAsync=void 0;var LS=cs(ot()),US=cs((yg(),X(gg))),NS=cs(os()),qS=cs(Oi());typeof(B===null||B===void 0?void 0:B.nextTick)!=\"function\"&&(B.nextTick=setImmediate);var Bg=(0,LS.default)(\"mqttjs\"),de=null;function DS(t){let e;t.auth&&(e=t.auth.match(/^(.+):(.+)$/),e?(t.username=e[1],t.password=e[2]):t.username=t.auth)}function Pg(t,e){var r,i,n,o;if(Bg(\"connecting to an MQTT broker...\"),typeof t==\"object\"&&!e&&(e=t,t=\"\"),e=e||{},t&&typeof t==\"string\"){let l=US.default.parse(t,!0),c={};if(l.port!=null&&(c.port=Number(l.port)),c.host=l.hostname,c.query=l.query,c.auth=l.auth,c.protocol=l.protocol,c.path=l.path,c.protocol=(r=c.protocol)===null||r===void 0?void 0:r.replace(/:$/,\"\"),e=Object.assign(Object.assign({},c),e),!e.protocol)throw new Error(\"Missing protocol\")}if(e.unixSocket=e.unixSocket||((i=e.protocol)===null||i===void 0?void 0:i.includes(\"+unix\")),e.unixSocket?e.protocol=e.protocol.replace(\"+unix\",\"\"):!(!((n=e.protocol)===null||n===void 0)&&n.startsWith(\"ws\"))&&!(!((o=e.protocol)===null||o===void 0)&&o.startsWith(\"wx\"))&&delete e.path,DS(e),e.query&&typeof e.query.clientId==\"string\"&&(e.clientId=e.query.clientId),e.cert&&e.key)if(e.protocol){if([\"mqtts\",\"wss\",\"wxs\",\"alis\"].indexOf(e.protocol)===-1)switch(e.protocol){case\"mqtt\":e.protocol=\"mqtts\";break;case\"ws\":e.protocol=\"wss\";break;case\"wx\":e.protocol=\"wxs\";break;case\"ali\":e.protocol=\"alis\";break;default:throw new Error(`Unknown protocol for secure connection: \"${e.protocol}\"!`)}}else throw new Error(\"Missing secure protocol key\");if(de||(de={},!qS.default&&!e.forceNativeWebSocket?(de.ws=Ui().streamBuilder,de.wss=Ui().streamBuilder,de.mqtt=cl().default,de.tcp=cl().default,de.ssl=dl().default,de.tls=de.ssl,de.mqtts=dl().default):(de.ws=Ui().browserStreamBuilder,de.wss=Ui().browserStreamBuilder,de.wx=yl().default,de.wxs=yl().default,de.ali=_l().default,de.alis=_l().default)),!de[e.protocol]){let l=[\"mqtts\",\"wss\"].indexOf(e.protocol)!==-1;e.protocol=[\"mqtt\",\"mqtts\",\"ws\",\"wss\",\"wx\",\"wxs\",\"ali\",\"alis\"].filter((c,h)=>l&&h%2===0?!1:typeof de[c]==\"function\")[0]}if(e.clean===!1&&!e.clientId)throw new Error(\"Missing clientId for unclean clients\");e.protocol&&(e.defaultProtocol=e.protocol);function s(l){return e.servers&&((!l._reconnectCount||l._reconnectCount===e.servers.length)&&(l._reconnectCount=0),e.host=e.servers[l._reconnectCount].host,e.port=e.servers[l._reconnectCount].port,e.protocol=e.servers[l._reconnectCount].protocol?e.servers[l._reconnectCount].protocol:e.defaultProtocol,e.hostname=e.host,l._reconnectCount++),Bg(\"calling streambuilder for\",e.protocol),de[e.protocol](l,e)}let a=new NS.default(s,e);return a.on(\"error\",()=>{}),a}function jS(t,e,r=!0){return new Promise((i,n)=>{let o=Pg(t,e),s={connect:l=>{a(),i(o)},end:()=>{a(),i(o)},error:l=>{a(),o.end(),n(l)}};r===!1&&(s.close=()=>{s.error(new Error(\"Couldn't connect to server\"))});function a(){Object.keys(s).forEach(l=>{o.off(l,s[l])})}Object.keys(s).forEach(l=>{o.on(l,s[l])})})}Br.connectAsync=jS;Br.default=Pg});var ml=M(G=>{\"use strict\";_();v();m();var Og=G&&G.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||(\"get\"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),FS=G&&G.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),WS=G&&G.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!==\"default\"&&Object.prototype.hasOwnProperty.call(t,r)&&Og(e,t,r);return FS(e,t),e},xg=G&&G.__exportStar||function(t,e){for(var r in t)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(e,r)&&Og(e,t,r)},Di=G&&G.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(G,\"__esModule\",{value:!0});G.ReasonCodes=G.KeepaliveManager=G.UniqueMessageIdProvider=G.DefaultMessageIdProvider=G.Store=G.MqttClient=G.connectAsync=G.connect=G.Client=void 0;var Mg=Di(os());G.MqttClient=Mg.default;var $S=Di(Zo());G.DefaultMessageIdProvider=$S.default;var HS=Di(Vp());G.UniqueMessageIdProvider=HS.default;var VS=Di(ra());G.Store=VS.default;var Lg=WS(kg());G.connect=Lg.default;Object.defineProperty(G,\"connectAsync\",{enumerable:!0,get:function(){return Lg.connectAsync}});var zS=Di(Wa());G.KeepaliveManager=zS.default;G.Client=Mg.default;xg(os(),G);xg(_r(),G);var KS=Ti();Object.defineProperty(G,\"ReasonCodes\",{enumerable:!0,get:function(){return KS.ReasonCodes}})});var XS=M(We=>{_();v();m();var Ug=We&&We.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||(\"get\"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),GS=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,\"default\",{enumerable:!0,value:e})}:function(t,e){t.default=e}),QS=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!==\"default\"&&Object.prototype.hasOwnProperty.call(t,r)&&Ug(e,t,r);return GS(e,t),e},YS=We&&We.__exportStar||function(t,e){for(var r in t)r!==\"default\"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ug(e,t,r)};Object.defineProperty(We,\"__esModule\",{value:!0});var JS=QS(ml());We.default=JS;YS(ml(),We)});return XS();})();",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[],"objectGroups":[]},{"fullName":"","functionType":"Action","name":"onScenePostEvents","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["// Remove the messages of the last frame for no dataloss mode","Object"," .values(gdjs.evtTools.mqtt.events)"," .forEach((event, index) => {"," if (Array.isArray(event.data))"," event.data.shift();"," else event.data = gdjs.evtTools.mqtt.empty;"," });",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[],"objectGroups":[]},{"description":"Triggers if the client is connected to an MQTT broker server.","fullName":"Is connected to a broker?","functionType":"Condition","name":"isConnected","sentence":"Client connected to a broker","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["eventsFunctionContext.returnValue ="," gdjs.evtTools.mqtt.connection && gdjs.evtTools.mqtt.connection.connected;",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[],"objectGroups":[]},{"description":"Connects to an MQTT broker. ","fullName":"Connect to a broker","functionType":"Action","name":"connect","sentence":"Connect to MQTT broker _PARAM1_ with parameters _PARAM2_ (secure connection: _PARAM3_)","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["// Parse settings","const settings = eventsFunctionContext.getArgument(\"settings\");","let settingsParsed;","if (settings.length > 2)"," try {"," settingsParsed = JSON.parse(settings);"," } catch (e) {"," settingsParsed = {}"," console.error(\"Invalid settings: \", settings, \", Error:\", e);"," };","","// Connect to broker","gdjs.evtTools.mqtt.connection = mqtt.connect("," (eventsFunctionContext.getArgument(\"secure\")"," ? \"wss://\""," : \"ws://\")"," + eventsFunctionContext.getArgument(\"host\"),"," settingsParsed",");","","// Set up listeners","gdjs.evtTools.mqtt.connection.on(\"message\", (channel, message) => {"," if (typeof gdjs.evtTools.mqtt.events[channel] === undefined) {"," gdjs.evtTools.mqtt.events[channel] = {"," loss: false,"," data: [message],"," };"," return;"," }",""," const mqttEvent = gdjs.evtTools.mqtt.events[channel];"," if (mqttEvent.loss) {"," mqttEvent.data = message;"," } else {"," if (!Array.isArray(mqttEvent.data)) mqttEvent.data = [];"," mqttEvent.data.push(message);"," }","});","","gdjs.evtTools.mqtt.connection.on(\"error\", function (e) {"," gdjs.evtTools.mqtt.lastError = e;","});",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":true}],"parameters":[{"description":"Host port","name":"host","type":"string"},{"description":"Settings as JSON","longDescription":"You can find the list of settings at [the MQTT.js docs](https://github.com/mqttjs/MQTT.js/#client). \nAn example of valid configuration would be `\"{\\\"clientId\\\": \\\"myUserName\\\"}\"`.","name":"settings","type":"string"},{"description":"Use secure WebSockets?","name":"secure","type":"yesorno"}],"objectGroups":[]},{"description":"Disconnects from the current MQTT broker.","fullName":"Disconnect from broker","functionType":"Action","name":"disconnect","sentence":"Disconnect from MQTT broker (force: _PARAM1_)","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["if (gdjs.evtTools.mqtt.connection === null) return;","gdjs.evtTools.mqtt.connection.end(eventsFunctionContext.getArgument(\"force\"));","gdjs.evtTools.mqtt.connection = null;",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"Force end the connection?","longDescription":"By default, MQTT waits for pending messages or messages in the process of being sent to finish being sent before ending the connection. Use this to cancel any request and immediately shutdown the connection.","name":"force","type":"yesorno"}],"objectGroups":[]},{"description":"Publishes a message on a topic.","fullName":"Publish message","functionType":"Action","name":"publish","sentence":"Publish variable _PARAM1_ on topic _PARAM2_ (QoS: _PARAM3_)","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["if (gdjs.evtTools.mqtt.connection === null) return;","gdjs.evtTools.mqtt.connection.publish("," eventsFunctionContext.getArgument(\"topic\"),"," eventsFunctionContext.getArgument(\"content\"),"," { qos: eventsFunctionContext.getArgument(\"QoS\"), retain: eventsFunctionContext.getArgument(\"retain\") }",");",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"Text to publish","name":"content","type":"string"},{"description":"Topic to publish to","name":"topic","type":"string"},{"description":"The QoS","longDescription":"See [this](https://github.com/mqttjs/MQTT.js#qos) for more details.","name":"QoS","type":"expression"},{"description":"Should the message be retained?","longDescription":"When a message is retained, it will be sent to every client that subscribe to the topic. Only one message can be retained per topic, if another retained message is sent it will overwrite the previous one. \nRead more [here](https://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages/#retained-messages).","name":"retain","type":"yesorno"}],"objectGroups":[]},{"description":"Subcribe to a topic. All messages published on that topic will be received.","fullName":"Subscribe to a topic","functionType":"Action","name":"subscribe","sentence":"Subscribe to topic _PARAM1_ with QoS at _PARAM2_ and dataloss _PARAM3_","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["if (gdjs.evtTools.mqtt.connection === null) return;","","const topic = eventsFunctionContext.getArgument(\"topic\");","if (typeof gdjs.evtTools.mqtt.events[topic] === \"undefined\") gdjs.evtTools.mqtt.events[topic] = { data: eventsFunctionContext.getArgument(\"dataloss\") ? \"\" : [] };","gdjs.evtTools.mqtt.events[topic].loss = eventsFunctionContext.getArgument(\"dataloss\");","","gdjs.evtTools.mqtt.connection.subscribe("," topic,"," { qos: eventsFunctionContext.getArgument(\"QoS\") }",");",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"The topic to subscribe to","name":"topic","type":"string"},{"description":"The QoS","longDescription":"See https://github.com/mqttjs/MQTT.js#qos for more details","name":"QoS","type":"expression"},{"description":"Is dataloss allowed?","longDescription":"See https://wiki.gdevelop.io/gdevelop5/all-features/p2p#choosing_if_you_want_to_activate_data_loss_mode for more details","name":"dataloss","type":"yesorno"}],"objectGroups":[]},{"description":"Unsubcribe from a topic. No more messages from this topic will be received.","fullName":"Unsubscribe from a topic","functionType":"Action","name":"unsubscribe","sentence":"Unsubscribe from topic _PARAM1_","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["if (gdjs.evtTools.mqtt.connection !== null)"," gdjs.evtTools.mqtt.connection.unsubscribe("," eventsFunctionContext.getArgument(\"topic\")"," );",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"The topic to subscribe to","name":"topic","type":"string"}],"objectGroups":[]},{"description":"Triggers whenever a message was received. Note that you first need to subcribe to a topic in order to get messages from it.","fullName":"On message","functionType":"Condition","name":"onMessage","sentence":"Message received from topic _PARAM1_","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["const mqttEvent = gdjs.evtTools.mqtt.events[eventsFunctionContext.getArgument(\"topic\")];\r","if (typeof mqttEvent === \"undefined\" || typeof mqttEvent.data === \"undefined\") return;\r","eventsFunctionContext.returnValue =\r"," Array.isArray(mqttEvent.data)\r"," ? mqttEvent.data.length !== 0\r"," : mqttEvent.data !== gdjs.evtTools.mqtt.empty;\r",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[{"description":"The topic to listen to","name":"topic","type":"string"}],"objectGroups":[]},{"description":"Get the last received message of a topic.","fullName":"Get last message","functionType":"StringExpression","name":"GetLastMessage","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["const mqttEvent = gdjs.evtTools.mqtt.events[eventsFunctionContext.getArgument(\"topic\")];","if (typeof mqttEvent === \"undefined\") return;","eventsFunctionContext.returnValue = Array.isArray(mqttEvent.data)"," ? mqttEvent.data[0]"," : mqttEvent.data;",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"expressionType":{"type":"string"},"parameters":[{"description":"The topic to get the message from","name":"topic","type":"string"}],"objectGroups":[]},{"description":"Gets the last error. Returns an empty string if there was no errors.","fullName":"Get the last error","functionType":"StringExpression","name":"getCurrentError","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":"eventsFunctionContext.returnValue = gdjs.evtTools.mqtt.lastError","parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"expressionType":{"type":"string"},"parameters":[],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"onFirstSceneLoaded"},{"functionName":"onScenePostEvents"},{"functionName":"isConnected"},{"functionName":"connect"},{"functionName":"disconnect"},{"functionName":"publish"},{"functionName":"subscribe"},{"functionName":"unsubscribe"},{"functionName":"onMessage"},{"functionName":"GetLastMessage"},{"functionName":"getCurrentError"}]},"eventsBasedBehaviors":[],"eventsBasedObjects":[]},{"author":"","category":"User interface","dimension":"2D","extensionNamespace":"","fullName":"Labeled button","gdevelopVersion":">=5.5.230","helpPath":"/objects/button","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTI5LDIzSDNjLTEuMSwwLTItMC45LTItMlYxMWMwLTEuMSwwLjktMiwyLTJoMjZjMS4xLDAsMiwwLjksMiwydjEwQzMxLDIyLjEsMzAuMSwyMywyOSwyM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMywxOUwxMywxOWMtMS4xLDAtMi0wLjktMi0ydi0yYzAtMS4xLDAuOS0yLDItMmgwYzEuMSwwLDIsMC45LDIsMnYyQzE1LDE4LjEsMTQuMSwxOSwxMywxOXoiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIxOCIgeTE9IjEzIiB4Mj0iMTgiIHkyPSIxOSIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjIxIiB5MT0iMTMiIHgyPSIxOCIgeTI9IjE3Ii8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMjEiIHkxPSIxOSIgeDI9IjE5IiB5Mj0iMTYiLz4NCjwvc3ZnPg0K","name":"PanelSpriteButton","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Interface Elements/Interface Elements_interface_ui_button_ok_cta_clock_tap.svg","shortDescription":"Resizeable button with a label.","version":"2.2.1","description":["A button that can be used for menus and most labelled buttons of a game. The button can be customized with a background for each state and a label. It handles user interactions and a simple condition can be used to check if it is clicked.","","There are ready-to-use buttons in the asset-store [menu buttons pack](https://editor.gdevelop.io/?initial-dialog=asset-store&asset-pack=menu-buttons-menu-buttons)."],"origin":{"identifier":"PanelSpriteButton","name":"gdevelop-extension-store"},"tags":["button","ui"],"authorIds":["IWykYNRvhCZBN3vEgKEbBPOR3Oc2"],"changelog":[{"version":"2.0.0","breaking":"- Buttons now use \"variants\", allowing easy swapping of their visual aspect. You will have to make some adjustments to existing buttons in your project. Follow this [migration documentation](https://wiki.gdevelop.io/gdevelop5/objects/custom-objects-prefab-template/migrate-to-variants/) to do these changes."}],"dependencies":[],"globalVariables":[],"sceneVariables":[],"eventsFunctions":[{"description":"Check if the events are running for the editor.","fullName":"Editor is running","functionType":"Condition","name":"IsInGameEdition","private":true,"sentence":"Events are running for the editor","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["const game = runtimeScene.getGame();\r","eventsFunctionContext.returnValue = game.isInGameEdition && game.isInGameEdition();"],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"parameters":[],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"IsInGameEdition"}]},"eventsBasedBehaviors":[{"description":"The finite state machine used internally by the button object.","fullName":"Button finite state machine","helpPath":"","iconUrl":"","name":"ButtonFSM","objectType":"","previewIconUrl":"","private":true,"eventsFunctions":[{"fullName":"","functionType":"Action","name":"doStepPostEvents","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"PanelSpriteButton::IsInGameEdition"},"parameters":["",""]}],"actions":[],"events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Finite state machine","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"The \"Validated\" state only last one frame."},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Validated\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Idle\""]}]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Check position","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Make sure the cursor position is only checked once per frame."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["MouseIsInside","False",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldCheckHovering","True",""]},{"type":{"value":"CollisionPoint"},"parameters":["Object","MouseOnlyCursorX(Object.Layer(), 0)","MouseOnlyCursorY(Object.Layer(), 0)"]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["MouseIsInside","True",""]}]},{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Touches are always pressed, so ShouldCheckHovering doesn't matter."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["TouchIsInside","False",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["TouchId","!=","0"]},{"type":{"value":"CollisionPoint"},"parameters":["Object","TouchX(TouchId, Object.Layer(), 0)","TouchY(TouchId, Object.Layer(), 0)"]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["TouchIsInside","True",""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Handle touch start","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"HasAnyTouchOrMouseStarted"},"parameters":[""]}],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["Index","=","0"]}],"events":[{"type":"BuiltinCommonInstructions::Repeat","repeatExpression":"StartedTouchOrMouseCount()","conditions":[],"actions":[],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"CollisionPoint"},"parameters":["Object","TouchX(StartedTouchOrMouseId(Index), Object.Layer(), 0)","TouchY(StartedTouchOrMouseId(Index), Object.Layer(), 0)"]}],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["TouchId","=","StartedTouchOrMouseId(Index)"]},{"type":{"value":"SetBooleanVariable"},"parameters":["TouchIsInside","True",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::Or"},"parameters":[],"subInstructions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Hovered\""]},{"type":{"value":"PanelSpriteButton::ButtonFSM::PropertyState"},"parameters":["Object","Behavior","=","\"Idle\""]}]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"PressedInside\""]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["Index","+","1"]}]}]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Apply position changes","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"BooleanVariable"},"parameters":["MouseIsInside","True",""]},{"type":{"value":"StringVariable"},"parameters":["State","=","\"Hovered\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Idle\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["MouseIsInside","True",""]},{"type":{"value":"StringVariable"},"parameters":["State","=","\"Idle\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Hovered\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"BooleanVariable"},"parameters":["TouchIsInside","True",""]},{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedInside\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"PressedOutside\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["TouchIsInside","True",""]},{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"PressedInside\""]}]}],"parameters":[]},{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Handle touch end","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"HasTouchEnded"},"parameters":["","TouchId"]}],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["TouchId","=","0"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedInside\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Validated\""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"StringVariable"},"parameters":["State","=","\"PressedInside\""]},{"type":{"inverted":true,"value":"StringVariable"},"parameters":["State","=","\"Validated\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Idle\""]}]}]}],"parameters":[]}],"parameters":[]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"fullName":"","functionType":"Action","name":"onDeActivate","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::ResetState"},"parameters":["Object","Behavior",""]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Reset the state of the button.","fullName":"Reset state","functionType":"Action","name":"ResetState","private":true,"sentence":"Reset the button state of _PARAM0_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["State","=","\"Idle\""]},{"type":{"value":"SetNumberVariable"},"parameters":["TouchId","=","0"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is not used.","fullName":"Is idle","functionType":"Condition","name":"IsIdle","sentence":"_PARAM0_ is idle","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Idle\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button was just clicked.","fullName":"Is clicked","functionType":"Condition","name":"IsClicked","sentence":"_PARAM0_ is clicked","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Validated\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the cursor is hovered over the button.","fullName":"Is hovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ is hovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Hovered\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is either hovered or pressed but not hovered.","fullName":"Is focused","functionType":"Condition","name":"IsFocused","sentence":"_PARAM0_ is focused","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"Hovered\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed with mouse or touch.","fullName":"Is pressed","functionType":"Condition","name":"IsPressed","sentence":"_PARAM0_ is pressed","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedInside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed outside with mouse or touch.","fullName":"Is held outside","functionType":"Condition","name":"IsPressedOutside","sentence":"_PARAM0_ is held outside","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["State","=","\"PressedOutside\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]},{"description":"the touch id that is using the button or 0 if none.","fullName":"Touch id","functionType":"ExpressionAndCondition","name":"TouchId","sentence":"the touch id","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["TouchId"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Object","name":"Object","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::ButtonFSM","type":"behavior"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"doStepPostEvents"},{"functionName":"onDeActivate"},{"functionName":"ResetState"},{"functionName":"IsIdle"},{"functionName":"IsClicked"},{"functionName":"IsHovered"},{"functionName":"IsFocused"},{"functionName":"IsPressed"},{"functionName":"IsPressedOutside"},{"functionName":"TouchId"}]},"propertyDescriptors":[{"value":"true","type":"Boolean","label":"","description":"Should check hovering","hidden":true,"name":"ShouldCheckHovering"},{"value":"Idle","type":"Choice","label":"State","choices":[{"label":"Idle","value":"Idle"},{"label":"Hovered","value":"Hovered"},{"label":"PressedInside","value":"PressedInside"},{"label":"PressedOutside","value":"PressedOutside"},{"label":"Validated","value":"Validated"}],"hidden":true,"name":"State"},{"value":"0","type":"Number","label":"Touch id","hidden":true,"name":"TouchId"},{"value":"","type":"Boolean","label":"Touch is inside","hidden":true,"name":"TouchIsInside"},{"value":"","type":"Boolean","label":"Mouse is inside","hidden":true,"name":"MouseIsInside"},{"value":"","type":"Number","label":"","hidden":true,"name":"Index"}],"propertiesFolderStructure":{"folderName":"__ROOT","children":[{"propertyName":"ShouldCheckHovering"},{"propertyName":"State"},{"propertyName":"TouchId"},{"propertyName":"TouchIsInside"},{"propertyName":"MouseIsInside"},{"propertyName":"Index"}]}},{"description":"Change the text style when the button is hovered.","fullName":"Hover text style","helpPath":"","iconUrl":"","name":"TextStyleState","objectType":"TextObject::Text","previewIconUrl":"","private":true,"eventsFunctions":[{"description":"Check if isHovered.","fullName":"IsHovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ isHovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","True",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"TextObject::Text","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::TextStyleState","type":"behavior"}],"objectGroups":[]},{"description":"Change if isHovered.","fullName":"IsHovered","functionType":"Action","name":"SetIsHovered","sentence":"_PARAM0_ isHovered: _PARAM2_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","False",""]},{"type":{"value":"BooleanVariable"},"parameters":["Value","True",""]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["IsHovered","True",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["HoverFontSize",">","0"]}],"actions":[{"type":{"value":"SetNumberVariable"},"parameters":["IdleFontSize","=","Object.FontSize()"]},{"type":{"value":"TextObject::Text::SetFontSize"},"parameters":["Object","=","HoverFontSize"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["HoverColor","!=","\"\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["IdleColor","=","Object.Behavior::Color()"]},{"type":{"value":"TextObject::ChangeColor"},"parameters":["Object","HoverColor"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldEnableShadowOnHover","True",""]}],"actions":[{"type":{"value":"TextObject::ShowShadow"},"parameters":["Object",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldEnableOutlineOnHover","True",""]}],"actions":[{"type":{"value":"TextObject::Text::SetOutlineEnabled"},"parameters":["Object","yes"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","True",""]},{"type":{"value":"BooleanVariable"},"parameters":["Value","False",""]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["IsHovered","False",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["HoverFontSize",">","0"]}],"actions":[{"type":{"value":"TextObject::Text::SetFontSize"},"parameters":["Object","=","IdleFontSize"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["HoverColor","!=","\"\""]}],"actions":[{"type":{"value":"TextObject::ChangeColor"},"parameters":["Object","IdleColor"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldEnableShadowOnHover","True",""]}],"actions":[{"type":{"value":"TextObject::ShowShadow"},"parameters":["Object","no"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldEnableOutlineOnHover","True",""]}],"actions":[{"type":{"value":"TextObject::Text::SetOutlineEnabled"},"parameters":["Object","no"]}]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"TextObject::Text","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::TextStyleState","type":"behavior"},{"defaultValue":"yes","description":"IsHovered","name":"Value","optional":true,"type":"yesorno"}],"objectGroups":[]},{"description":"Return the text color","fullName":"Text color","functionType":"StringExpression","name":"Color","private":true,"sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["/** @type {gdjs.TextRuntimeObject} */","const object = eventsFunctionContext.getObjects(\"Object\")[0];","","eventsFunctionContext.returnValue = object._color.join(\";\");"],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":true}],"expressionType":{"type":"color"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"TextObject::Text","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::TextStyleState","type":"behavior"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"IsHovered"},{"functionName":"SetIsHovered"},{"functionName":"Color"}]},"propertyDescriptors":[{"value":"","type":"Boolean","label":"Outline on hover","name":"ShouldEnableOutlineOnHover"},{"value":"","type":"Color","label":"Hover color","name":"HoverColor"},{"value":"","type":"Boolean","label":"Enable shadow on hover","name":"ShouldEnableShadowOnHover"},{"value":"0","type":"Number","unit":"Pixel","label":"Hover font size","name":"HoverFontSize"},{"value":"","type":"Boolean","label":"","hidden":true,"name":"IsHovered"},{"value":"0","type":"Number","unit":"Pixel","label":"Idle font size","hidden":true,"name":"IdleFontSize"},{"value":"","type":"Color","label":"Idle color","hidden":true,"name":"IdleColor"}],"propertiesFolderStructure":{"folderName":"__ROOT","children":[{"propertyName":"IsHovered"},{"propertyName":"HoverFontSize"},{"propertyName":"IdleFontSize"},{"propertyName":"HoverColor"},{"propertyName":"IdleColor"},{"propertyName":"ShouldEnableOutlineOnHover"},{"propertyName":"ShouldEnableShadowOnHover"}]}},{"description":"Change the text style when the button is hovered.","fullName":"Hover bitmap text style","helpPath":"","iconUrl":"","name":"BitmapTextStyleState","objectType":"BitmapText::BitmapTextObject","previewIconUrl":"","private":true,"eventsFunctions":[{"description":"Check if isHovered.","fullName":"IsHovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ isHovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","True",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"BitmapText::BitmapTextObject","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::BitmapTextStyleState","type":"behavior"}],"objectGroups":[]},{"description":"Change if isHovered.","fullName":"IsHovered","functionType":"Action","name":"SetIsHovered","sentence":"_PARAM0_ isHovered: _PARAM2_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","False",""]},{"type":{"value":"BooleanVariable"},"parameters":["Value","True",""]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["IsHovered","True",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["HoverColor","!=","\"\""]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["IdleColor","=","Object.Behavior::Color()"]},{"type":{"value":"BitmapText::SetTint"},"parameters":["Object","HoverColor"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::Or"},"parameters":[],"subInstructions":[{"type":{"value":"StringVariable"},"parameters":["HoverPrefix","!=","\"\""]},{"type":{"value":"StringVariable"},"parameters":["HoverSuffix","!=","\"\""]}]}],"actions":[{"type":{"value":"SetStringVariable"},"parameters":["IdleText","=","Object.Text::Value()"]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Object","Text","=","HoverPrefix + Object.Text::Value() + HoverSuffix"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["IsHovered","True",""]},{"type":{"value":"BooleanVariable"},"parameters":["Value","False",""]}],"actions":[{"type":{"value":"SetBooleanVariable"},"parameters":["IsHovered","False",""]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"StringVariable"},"parameters":["HoverColor","!=","\"\""]}],"actions":[{"type":{"value":"BitmapText::SetTint"},"parameters":["Object","IdleColor"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::Or"},"parameters":[],"subInstructions":[{"type":{"value":"StringVariable"},"parameters":["HoverPrefix","!=","\"\""]},{"type":{"value":"StringVariable"},"parameters":["HoverSuffix","!=","\"\""]}]}],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Object","Text","=","IdleText"]}]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"BitmapText::BitmapTextObject","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::BitmapTextStyleState","type":"behavior"},{"defaultValue":"yes","description":"IsHovered","name":"Value","optional":true,"type":"yesorno"}],"objectGroups":[]},{"description":"Return the text color","fullName":"Text color","functionType":"StringExpression","name":"Color","private":true,"sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["/** @type {gdjs.BitmapTextRuntimeObject} */","const object = eventsFunctionContext.getObjects(\"Object\")[0];","","eventsFunctionContext.returnValue = object._tint.join(\";\");"],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":true}],"expressionType":{"type":"color"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"BitmapText::BitmapTextObject","type":"object"},{"description":"Behavior","name":"Behavior","supplementaryInformation":"PanelSpriteButton::BitmapTextStyleState","type":"behavior"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"IsHovered"},{"functionName":"SetIsHovered"},{"functionName":"Color"}]},"propertyDescriptors":[{"value":"","type":"Color","label":"Hover color","name":"HoverColor"},{"value":"","type":"String","label":"Hover prefix","name":"HoverPrefix"},{"value":"","type":"String","label":"Hover suffix","name":"HoverSuffix"},{"value":"","type":"Boolean","label":"","hidden":true,"name":"IsHovered"},{"value":"","type":"String","label":"Idle text","hidden":true,"name":"IdleText"},{"value":"","type":"Color","label":"Idle color","hidden":true,"name":"IdleColor"}],"propertiesFolderStructure":{"folderName":"__ROOT","children":[{"propertyName":"IsHovered"},{"propertyName":"HoverPrefix"},{"propertyName":"HoverSuffix"},{"propertyName":"IdleText"},{"propertyName":"HoverColor"},{"propertyName":"IdleColor"}]}}],"eventsBasedObjects":[{"areaMaxX":256,"areaMaxY":64,"areaMaxZ":64,"areaMinX":0,"areaMinY":0,"areaMinZ":0,"assetStoreTag":"menu buttons","defaultName":"Button","description":"Button with a label.","fullName":"Labeled button","helpPath":"","iconUrl":"","isInnerAreaFollowingParentSize":true,"isUsingLegacyInstancesRenderer":false,"name":"PanelSpriteButton","previewIconUrl":"","objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"Label","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":4.0,"topEdgeAnchor":4.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"useLegacyBottomAndRightAnchors":false},{"name":"TextStyleState","type":"PanelSpriteButton::TextStyleState","ShouldEnableOutlineOnHover":false,"HoverColor":"","ShouldEnableShadowOnHover":false,"HoverFontSize":0.0,"IsHovered":false,"IdleFontSize":0.0,"IdleColor":""}],"string":"Text","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"center","verticalTextAlignment":"center","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Idle","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[{"folded":true,"name":"State","type":"string","value":"Idle"}],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false},{"name":"ButtonFSM","type":"PanelSpriteButton::ButtonFSM","ShouldCheckHovering":true}]},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Hovered","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false},{"name":"Tween","type":"Tween::TweenBehavior"}]},{"assetStoreId":"","bottomMargin":0.0,"height":32.0,"leftMargin":0.0,"name":"Pressed","rightMargin":0.0,"texture":"","tiled":false,"topMargin":0.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false}]},{"assetStoreId":"","name":"BitmapLabel","type":"BitmapText::BitmapTextObject","variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":4.0,"topEdgeAnchor":4.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"useLegacyBottomAndRightAnchors":false},{"name":"BitmapTextStyleState","type":"PanelSpriteButton::BitmapTextStyleState","HoverColor":"","HoverPrefix":"","HoverSuffix":"","IsHovered":false,"IdleText":"","IdleColor":""}],"content":{"text":"Text","opacity":255.0,"scale":1.0,"fontSize":20.0,"tint":"255;255;255","bitmapFontResourceName":"","textureAtlasResourceName":"","align":"center","verticalTextAlignment":"center"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"Label"},{"objectName":"BitmapLabel"},{"objectName":"Idle"},{"objectName":"Hovered"},{"objectName":"Pressed"}]},"objectsGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]},{"name":"Labels","objects":[{"name":"Label"},{"name":"BitmapLabel"}]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[]}],"instances":[{"angle":0.0,"customSize":true,"depth":1.0,"height":64.0,"layer":"","name":"Idle","persistentUuid":"24882334-eec8-403e-8bf1-70fc928a46e6","width":256.0,"x":0.0,"y":0.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":1.0,"height":64.0,"layer":"","name":"Label","persistentUuid":"3b29c95c-5363-4e25-bf47-eecf13e8a226","width":256.0,"x":0.0,"y":32.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"editionSettings":{"grid":false,"gridType":"rectangular","gridWidth":32.0,"gridHeight":32.0,"gridDepth":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridOffsetZ":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":false,"zoomFactor":2.734375,"windowMask":false,"selectedLayer":"","gameEditorMode":"instances-editor"},"eventsFunctions":[{"fullName":"","functionType":"Action","name":"onCreated","sentence":"","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Create one background instance for of each state.\nOnly the instance for the current state is shown."},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"Create"},"parameters":["","Hovered","0","0",""]},{"type":{"value":"Create"},"parameters":["","Pressed","0","0",""]},{"type":{"value":"ResizableCapability::ResizableBehavior::SetSize"},"parameters":["Hovered","Resizable","Idle.Width()","Idle.Height()"]},{"type":{"value":"ResizableCapability::ResizableBehavior::SetSize"},"parameters":["Pressed","Resizable","Idle.Width()","Idle.Height()"]},{"type":{"value":"Hide"},"parameters":["Hovered"]},{"type":{"value":"Hide"},"parameters":["Pressed"]},{"type":{"value":"SetZOrder"},"parameters":["Hovered","=","1"]},{"type":{"value":"SetZOrder"},"parameters":["Pressed","=","1"]},{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Labels","Text","=","LabelText"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]}]},{"fullName":"","functionType":"Action","name":"onHotReloading","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsPressed"},"parameters":["Object",""]}],"actions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","PressedLabelOffsetY",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Labels","Text","=","LabelText"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"fullName":"","functionType":"Action","name":"doStepPostEvents","sentence":"","events":[{"colorB":228,"colorG":176,"colorR":74,"creationTime":0,"name":"Apply states","source":"","type":"BuiltinCommonInstructions::Group","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Show the right background accordingly to the new state."},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsIdle"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"PanelSpriteButton::TextStyleState::SetIsHovered"},"parameters":["Label","TextStyleState","no",""]},{"type":{"value":"PanelSpriteButton::BitmapTextStyleState::SetIsHovered"},"parameters":["BitmapLabel","BitmapTextStyleState","no",""]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","0",""]},{"type":{"value":"Show"},"parameters":["Idle",""]},{"type":{"value":"Hide"},"parameters":["Pressed"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"Visible"},"parameters":["Hovered"]},{"type":{"value":"NumberVariable"},"parameters":["HoveredFadeOutDuration",">","0"]}],"actions":[{"type":{"value":"Tween::TweenBehavior::AddObjectOpacityTween2"},"parameters":["Hovered","Tween","\"Fadeout\"","0","\"linear\"","HoveredFadeOutDuration",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["HoveredFadeOutDuration","=","0"]}],"actions":[{"type":{"value":"Hide"},"parameters":["Hovered"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"OpacityCapability::OpacityBehavior::Value"},"parameters":["Hovered","Opacity","=","0"]}],"actions":[{"type":{"value":"Hide"},"parameters":["Hovered"]},{"type":{"value":"OpacityCapability::OpacityBehavior::SetValue"},"parameters":["Hovered","Opacity","=","255"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsHovered"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"PanelSpriteButton::TextStyleState::SetIsHovered"},"parameters":["Label","TextStyleState","",""]},{"type":{"value":"PanelSpriteButton::BitmapTextStyleState::SetIsHovered"},"parameters":["BitmapLabel","BitmapTextStyleState","yes",""]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","0",""]},{"type":{"value":"Hide"},"parameters":["Idle"]},{"type":{"value":"Show"},"parameters":["Hovered",""]},{"type":{"value":"Hide"},"parameters":["Pressed"]}],"events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"NumberVariable"},"parameters":["HoveredFadeOutDuration",">","0"]}],"actions":[{"type":{"value":"Tween::RemoveTween"},"parameters":["Hovered","Tween","\"Fadeout\""]},{"type":{"value":"OpacityCapability::OpacityBehavior::SetValue"},"parameters":["Hovered","Opacity","=","255"]}]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsPressed"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"PanelSpriteButton::TextStyleState::SetIsHovered"},"parameters":["Label","TextStyleState","no",""]},{"type":{"value":"PanelSpriteButton::BitmapTextStyleState::SetIsHovered"},"parameters":["BitmapLabel","BitmapTextStyleState","no",""]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","PressedLabelOffsetY",""]},{"type":{"value":"Hide"},"parameters":["Idle"]},{"type":{"value":"Hide"},"parameters":["Hovered"]},{"type":{"value":"Show"},"parameters":["Pressed",""]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::PanelSpriteButton::IsFocused"},"parameters":["Object","ButtonFSM"]},{"type":{"value":"BuiltinCommonInstructions::Once"},"parameters":[]}],"actions":[{"type":{"value":"PanelSpriteButton::TextStyleState::SetIsHovered"},"parameters":["Label","TextStyleState","yes",""]},{"type":{"value":"PanelSpriteButton::BitmapTextStyleState::SetIsHovered"},"parameters":["BitmapLabel","BitmapTextStyleState","yes",""]},{"type":{"value":"PanelSpriteButton::PanelSpriteButton::SetLabelOffset"},"parameters":["Object","=","0",""]},{"type":{"value":"Hide"},"parameters":["Idle"]},{"type":{"value":"Show"},"parameters":["Hovered",""]},{"type":{"value":"Hide"},"parameters":["Pressed"]}]}],"parameters":[]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button is not used.","fullName":"Is idle","functionType":"Condition","name":"IsIdle","sentence":"_PARAM0_ is idle","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsIdle"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button was just clicked.","fullName":"Is clicked","functionType":"Condition","name":"IsClicked","sentence":"_PARAM0_ is clicked","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsClicked"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the cursor is hovered over the button.","fullName":"Is hovered","functionType":"Condition","name":"IsHovered","sentence":"_PARAM0_ is hovered","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsHovered"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button is either hovered or pressed but not hovered.","fullName":"Is focused","functionType":"Condition","name":"IsFocused","sentence":"_PARAM0_ is focused","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsFocused"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Check if the button is currently being pressed with mouse or touch.","fullName":"Is pressed","functionType":"Condition","name":"IsPressed","sentence":"_PARAM0_ is pressed","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"PanelSpriteButton::ButtonFSM::IsPressed"},"parameters":["Idle","ButtonFSM",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"Change the text of the button label.","fullName":"Label text","functionType":"Action","name":"SetLabelText","private":true,"sentence":"Change the text of _PARAM0_ to _PARAM1_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Labels","Text","=","Value"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"},{"description":"Text","name":"Value","type":"string"}],"objectGroups":[]},{"fullName":"","functionType":"ActionWithOperator","getterName":"LabelText","name":"SetLabelTextOp","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"TextContainerCapability::TextContainerBehavior::SetValue"},"parameters":["Labels","Text","=","Value"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"the label text.","fullName":"Label text","functionType":"ExpressionAndCondition","name":"LabelText","sentence":"the label text","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnString"},"parameters":["Labels.Text::Value()"]}]}],"expressionType":{"type":"string"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"De/activate interactions with the button.","fullName":"De/activate interactions","functionType":"Action","name":"Activate","sentence":"Activate interactions with _PARAM0_: _PARAM1_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BooleanVariable"},"parameters":["ShouldActivate","True",""]}],"actions":[{"type":{"value":"ActivateBehavior"},"parameters":["Idle","ButtonFSM","yes"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"inverted":true,"value":"BooleanVariable"},"parameters":["ShouldActivate","True",""]}],"actions":[{"type":{"value":"ActivateBehavior"},"parameters":["Idle","ButtonFSM","no"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"},{"description":"Activate","name":"ShouldActivate","type":"yesorno"}],"objectGroups":[]},{"description":"Check if interactions are activated on the button.","fullName":"Interactions activated","functionType":"Condition","name":"IsActivated","sentence":"Interactions on _PARAM0_ are activated","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BehaviorActivated"},"parameters":["Idle","ButtonFSM"]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"description":"the labelOffset of the object.","fullName":"LabelOffset","functionType":"ExpressionAndCondition","name":"LabelOffset","private":true,"sentence":"the labelOffset","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["LabelOffset"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]},{"fullName":"","functionType":"ActionWithOperator","getterName":"LabelOffset","name":"SetLabelOffset","private":true,"sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetCenterY"},"parameters":["Labels","+","Value - LabelOffset"]},{"type":{"value":"SetNumberVariable"},"parameters":["LabelOffset","=","Value"]}]}],"parameters":[{"description":"Object","name":"Object","supplementaryInformation":"PanelSpriteButton::PanelSpriteButton","type":"object"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"onCreated"},{"functionName":"onHotReloading"},{"functionName":"doStepPostEvents"},{"functionName":"IsIdle"},{"functionName":"IsClicked"},{"functionName":"IsHovered"},{"functionName":"IsFocused"},{"functionName":"IsPressed"},{"functionName":"SetLabelText"},{"functionName":"SetLabelTextOp"},{"functionName":"LabelText"},{"functionName":"Activate"},{"functionName":"IsActivated"},{"functionName":"LabelOffset"},{"functionName":"SetLabelOffset"}]},"propertyDescriptors":[{"value":"","type":"MultilineString","label":"Label","name":"LabelText"},{"value":"0.25","type":"Number","unit":"Second","label":"Hovered fade out duration","group":"States","name":"HoveredFadeOutDuration"},{"value":"0","type":"Number","unit":"Pixel","label":"Label offset on Y axis when pressed","group":"States","name":"PressedLabelOffsetY"},{"value":"0","type":"Number","unit":"Pixel","label":"","group":"States","hidden":true,"name":"LabelOffset"},{"value":"","type":"Choice","label":"","choices":[{"label":"Label.Text=LabelText","value":"Label.Text=LabelText"},{"label":"BitmapLabel.Text=LabelText","value":"BitmapLabel.Text=LabelText"}],"hidden":true,"name":"_PropertyMapping"}],"propertiesFolderStructure":{"folderName":"__ROOT","children":[{"propertyName":"LabelText"},{"propertyName":"_PropertyMapping"},{"folderName":"States","children":[{"propertyName":"HoveredFadeOutDuration"},{"propertyName":"PressedLabelOffsetY"},{"propertyName":"LabelOffset"}]}]},"variants":[{"areaMaxX":128,"areaMaxY":48,"areaMaxZ":64,"areaMinX":0,"areaMinY":0,"areaMinZ":0,"assetStoreAssetId":"80b9ddd78c8727888bb53c7524f443682746667b1ba493c223114c04e7661bbf","assetStoreOriginalName":"Small Blue Button","name":"Small Blue Button","objects":[{"assetStoreId":"","bold":false,"italic":false,"name":"Label","smoothed":true,"type":"TextObject::Text","underlined":false,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":4.0,"topEdgeAnchor":4.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"useLegacyBottomAndRightAnchors":false},{"name":"TextStyleState","type":"PanelSpriteButton::TextStyleState","ShouldEnableOutlineOnHover":false,"HoverColor":"","ShouldEnableShadowOnHover":false,"HoverFontSize":0.0,"IsHovered":false,"IdleFontSize":0.0,"IdleColor":""}],"string":"Text","font":"","textAlignment":"center","characterSize":20.0,"color":{"b":0,"g":0,"r":0},"content":{"bold":false,"isOutlineEnabled":false,"isShadowEnabled":false,"italic":false,"outlineColor":"255;255;255","outlineThickness":2.0,"shadowAngle":90.0,"shadowBlurRadius":2.0,"shadowColor":"0;0;0","shadowDistance":4.0,"shadowOpacity":127.0,"smoothed":true,"underlined":false,"text":"Text","font":"","textAlignment":"center","verticalTextAlignment":"center","characterSize":20.0,"lineHeight":0.0,"color":"0;0;0"}},{"assetStoreId":"","bottomMargin":5.0,"height":32.0,"leftMargin":3.0,"name":"Idle","rightMargin":3.0,"texture":"assets\\Small Blue Button_Idle.png","tiled":false,"topMargin":3.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[{"folded":true,"name":"State","type":"string","value":"Idle"}],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false},{"name":"ButtonFSM","type":"PanelSpriteButton::ButtonFSM","ShouldCheckHovering":true}]},{"assetStoreId":"","bottomMargin":5.0,"height":32.0,"leftMargin":3.0,"name":"Hovered","rightMargin":3.0,"texture":"assets\\Small Blue Button_Hovered.png","tiled":false,"topMargin":3.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false},{"name":"Tween","type":"Tween::TweenBehavior"}]},{"assetStoreId":"","bottomMargin":3.0,"height":32.0,"leftMargin":3.0,"name":"Pressed","rightMargin":3.0,"texture":"assets\\Small Blue Button_Pressed.png","tiled":false,"topMargin":3.0,"type":"PanelSpriteObject::PanelSprite","width":32.0,"variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":2.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"topEdgeAnchor":1.0,"useLegacyBottomAndRightAnchors":false}]},{"assetStoreId":"","name":"BitmapLabel","type":"BitmapText::BitmapTextObject","variables":[],"effects":[],"behaviors":[{"name":"Anchor","type":"AnchorBehavior::AnchorBehavior","bottomEdgeAnchor":4.0,"topEdgeAnchor":4.0,"leftEdgeAnchor":1.0,"relativeToOriginalWindowSize":true,"rightEdgeAnchor":2.0,"useLegacyBottomAndRightAnchors":false},{"name":"BitmapTextStyleState","type":"PanelSpriteButton::BitmapTextStyleState","HoverColor":"","HoverPrefix":"","HoverSuffix":"","IsHovered":false,"IdleText":"","IdleColor":""}],"content":{"text":"Button","opacity":255.0,"scale":1.0,"fontSize":20.0,"tint":"255;255;255","bitmapFontResourceName":"assets\\8BitOperatorPlus8Regular_Edited.fnt","textureAtlasResourceName":"assets\\8BitOperatorPlus8Regular_Edited.png","align":"center","verticalTextAlignment":"center"}}],"objectsFolderStructure":{"folderName":"__ROOT","children":[{"objectName":"Label"},{"objectName":"BitmapLabel"},{"objectName":"Idle"},{"objectName":"Hovered"},{"objectName":"Pressed"}]},"objectsGroups":[{"name":"Background","objects":[{"name":"Idle"},{"name":"Hovered"},{"name":"Pressed"}]},{"name":"Labels","objects":[{"name":"Label"},{"name":"BitmapLabel"}]}],"layers":[{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera2DPlaneMaxDrawingDistance":5000.0,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[]}],"instances":[{"angle":0.0,"customSize":true,"depth":1.0,"height":48.0,"layer":"","name":"Idle","persistentUuid":"24882334-eec8-403e-8bf1-70fc928a46e6","width":128.0,"x":0.0,"y":0.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"depth":1.0,"height":48.0,"keepRatio":true,"layer":"","name":"BitmapLabel","persistentUuid":"c3c3200d-dec4-4ac4-9dc5-4715d8989830","width":128.0,"x":5.0,"y":26.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"editionSettings":[]}]}]},{"author":"DrZanuff","category":"Advanced","dimension":"","extensionNamespace":"","fullName":"Hash","gdevelopVersion":">=5.5.222","helpPath":"","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz4NCgk8cGF0aCBkPSJNMjcsMTFoLTFWN2MwLDAsMCwwLDAtMC4xYzAtMC4xLDAtMC4yLTAuMS0wLjNjMCwwLDAtMC4xLDAtMC4xYzAtMC4xLTAuMS0wLjItMC4yLTAuM2MwLDAsMCwwLDAsMGwtNi02YzAsMCwwLDAsMCwwDQoJCWMwLDAsMCwwLDAsMGMwLDAsMCwwLDAsMEMxOS41LDAuMSwxOS4zLDAsMTksMEg3QzYuNCwwLDYsMC40LDYsMXYxMEg1Yy0xLjcsMC0zLDEuMy0zLDN2NmMwLDAuNiwwLjQsMSwxLDFoM3Y2YzAsMC42LDAuNCwxLDEsMQ0KCQlzMS0wLjQsMS0xdi02aDR2NGMwLDAuNiwwLjQsMSwxLDFzMS0wLjQsMS0xdi00aDd2M2MwLDAuNiwwLjQsMSwxLDFzMS0wLjQsMS0xdi0zaDF2NmMwLDAuNiwwLjQsMSwxLDFzMS0wLjQsMS0xdi02aDMNCgkJYzAuNiwwLDEtMC40LDEtMXYtNkMzMCwxMi4zLDI4LjcsMTEsMjcsMTF6IE0yMiwxN2gtM2MtMC42LDAtMS0wLjQtMS0xczAuNC0xLDEtMWgzYzAuNiwwLDEsMC40LDEsMVMyMi42LDE3LDIyLDE3eiBNOCwxMVYyaDEwdjUNCgkJYzAsMC42LDAuNCwxLDEsMWg1djNIOHogTTI1LjcsMTYuN0MyNS41LDE2LjksMjUuMywxNywyNSwxN2MtMC4zLDAtMC41LTAuMS0wLjctMC4zQzI0LjEsMTYuNSwyNCwxNi4zLDI0LDE2DQoJCWMwLTAuMywwLjEtMC41LDAuMy0wLjdjMC40LTAuNCwxLTAuNCwxLjQsMGMwLjIsMC4yLDAuMywwLjQsMC4zLDAuN0MyNiwxNi4zLDI1LjksMTYuNSwyNS43LDE2Ljd6Ii8+DQoJPHBhdGggZD0iTTE2LDIyYy0wLjYsMC0xLDAuNC0xLDF2NmMwLDAuNiwwLjQsMSwxLDFzMS0wLjQsMS0xdi02QzE3LDIyLjQsMTYuNiwyMiwxNiwyMnoiLz4NCgk8cGF0aCBkPSJNMTksMjZjLTAuNiwwLTEsMC40LTEsMXY0YzAsMC42LDAuNCwxLDEsMXMxLTAuNCwxLTF2LTRDMjAsMjYuNCwxOS42LDI2LDE5LDI2eiIvPg0KCTxwYXRoIGQ9Ik0xMCwyNGMtMC42LDAtMSwwLjQtMSwxdjZjMCwwLjYsMC40LDEsMSwxczEtMC40LDEtMXYtNkMxMSwyNC40LDEwLjYsMjQsMTAsMjR6Ii8+DQo8L2c+DQo8L3N2Zz4NCg==","name":"Hash","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/Glyphster Pack/Master/SVG/Security and Protection/Security and Protection_security_protection_delete_document_shredder.svg","shortDescription":"Hash strings using MD5 or SHA256 algorithms.","version":"1.0.0","description":"Adds expressions to allow hashing strings via MD5 or SHA256.","origin":{"identifier":"Hash","name":"gdevelop-extension-store"},"tags":["hash","md5","sha256"],"authorIds":[],"dependencies":[],"globalVariables":[],"sceneVariables":[],"eventsFunctions":[{"description":"Returns a Hash a MD5 based on a string.","fullName":"Hash a String with MD5","functionType":"StringExpression","name":"GenerateHashMD5","sentence":"","events":[{"type":"BuiltinCommonInstructions::JsCode","inlineCode":["var MD5 = function (string) {",""," function RotateLeft(lValue, iShiftBits) {"," return (lValue<>>(32-iShiftBits));"," }",""," function AddUnsigned(lX,lY) {"," var lX4,lY4,lX8,lY8,lResult;"," lX8 = (lX & 0x80000000);"," lY8 = (lY & 0x80000000);"," lX4 = (lX & 0x40000000);"," lY4 = (lY & 0x40000000);"," lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF);"," if (lX4 & lY4) {"," return (lResult ^ 0x80000000 ^ lX8 ^ lY8);"," }"," if (lX4 | lY4) {"," if (lResult & 0x40000000) {"," return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);"," } else {"," return (lResult ^ 0x40000000 ^ lX8 ^ lY8);"," }"," } else {"," return (lResult ^ lX8 ^ lY8);"," }"," }",""," function F(x,y,z) { return (x & y) | ((~x) & z); }"," function G(x,y,z) { return (x & z) | (y & (~z)); }"," function H(x,y,z) { return (x ^ y ^ z); }"," function I(x,y,z) { return (y ^ (x | (~z))); }",""," function FF(a,b,c,d,x,s,ac) {"," a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));"," return AddUnsigned(RotateLeft(a, s), b);"," };",""," function GG(a,b,c,d,x,s,ac) {"," a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));"," return AddUnsigned(RotateLeft(a, s), b);"," };",""," function HH(a,b,c,d,x,s,ac) {"," a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));"," return AddUnsigned(RotateLeft(a, s), b);"," };",""," function II(a,b,c,d,x,s,ac) {"," a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));"," return AddUnsigned(RotateLeft(a, s), b);"," };",""," function ConvertToWordArray(string) {"," var lWordCount;"," var lMessageLength = string.length;"," var lNumberOfWords_temp1=lMessageLength + 8;"," var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1 % 64))/64;"," var lNumberOfWords = (lNumberOfWords_temp2+1)*16;"," var lWordArray=Array(lNumberOfWords-1);"," var lBytePosition = 0;"," var lByteCount = 0;"," while ( lByteCount < lMessageLength ) {"," lWordCount = (lByteCount-(lByteCount % 4))/4;"," lBytePosition = (lByteCount % 4)*8;"," lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount)<>>29;"," return lWordArray;"," };",""," function WordToHex(lValue) {"," var WordToHexValue=\"\",WordToHexValue_temp=\"\",lByte,lCount;"," for (lCount = 0;lCount<=3;lCount++) {"," lByte = (lValue>>>(lCount*8)) & 255;"," WordToHexValue_temp = \"0\" + lByte.toString(16);"," WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length-2,2);"," }"," return WordToHexValue;"," };",""," function Utf8Encode(string) {"," string = string.replace(/\\r\\n/g,\"\\n\");"," var utftext = \"\";",""," for (var n = 0; n < string.length; n++) {",""," var c = string.charCodeAt(n);",""," if (c < 128) {"," utftext += String.fromCharCode(c);"," }"," else if((c > 127) && (c < 2048)) {"," utftext += String.fromCharCode((c >> 6) | 192);"," utftext += String.fromCharCode((c & 63) | 128);"," }"," else {"," utftext += String.fromCharCode((c >> 12) | 224);"," utftext += String.fromCharCode(((c >> 6) & 63) | 128);"," utftext += String.fromCharCode((c & 63) | 128);"," }",""," }",""," return utftext;"," };",""," var x=Array();"," var k,AA,BB,CC,DD,a,b,c,d;"," var S11=7, S12=12, S13=17, S14=22;"," var S21=5, S22=9 , S23=14, S24=20;"," var S31=4, S32=11, S33=16, S34=23;"," var S41=6, S42=10, S43=15, S44=21;",""," string = Utf8Encode(string);",""," x = ConvertToWordArray(string);",""," a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;",""," for (k=0;k>> amount) | (value << (32 - amount));","\t};","","\tvar mathPow = Math.pow;","\tvar maxWord = mathPow(2, 32);","\tvar lengthProperty = 'length'","\tvar i, j; // Used as a counter across the whole file","\tvar result = ''","","\tvar words = [];","\tvar asciiBitLength = ascii[lengthProperty] * 8;","","\t//* caching results is optional - remove/add slash from front of this line to toggle","\t// Initial hash value: first 32 bits of the fractional parts of the square roots of the first 8 primes","\t// (we actually calculate the first 64, but extra values are just ignored)","\tvar hash = sha256.h = sha256.h || [];","\t// Round constants: first 32 bits of the fractional parts of the cube roots of the first 64 primes","\tvar k = sha256.k = sha256.k || [];","\tvar primeCounter = k[lengthProperty];","\t/*/","\tvar hash = [], k = [];","\tvar primeCounter = 0;","\t//*/","","\tvar isComposite = {};","\tfor (var candidate = 2; primeCounter < 64; candidate++) {","\t\tif (!isComposite[candidate]) {","\t\t\tfor (i = 0; i < 313; i += candidate) {","\t\t\t\tisComposite[i] = candidate;","\t\t\t}","\t\t\thash[primeCounter] = (mathPow(candidate, .5) * maxWord) | 0;","\t\t\tk[primeCounter++] = (mathPow(candidate, 1 / 3) * maxWord) | 0;","\t\t}","\t}","","\tascii += '\\x80' // Append Ƈ' bit (plus zero padding)","\twhile (ascii[lengthProperty] % 64 - 56) ascii += '\\x00' // More zero padding","\tfor (i = 0; i < ascii[lengthProperty]; i++) {","\t\tj = ascii.charCodeAt(i);","\t\tif (j >> 8) return; // ASCII check: only accept characters in range 0-255","\t\twords[i >> 2] |= j << ((3 - i) % 4) * 8;","\t}","\twords[words[lengthProperty]] = ((asciiBitLength / maxWord) | 0);","\twords[words[lengthProperty]] = (asciiBitLength)","","\t// process each chunk","\tfor (j = 0; j < words[lengthProperty];) {","\t\tvar w = words.slice(j, j += 16); // The message is expanded into 64 words as part of the iteration","\t\tvar oldHash = hash;","\t\t// This is now the undefinedworking hash\", often labelled as variables a...g","\t\t// (we have to truncate as well, otherwise extra entries at the end accumulate","\t\thash = hash.slice(0, 8);","","\t\tfor (i = 0; i < 64; i++) {","\t\t\tvar i2 = i + j;","\t\t\t// Expand the message into 64 words","\t\t\t// Used below if ","\t\t\tvar w15 = w[i - 15], w2 = w[i - 2];","","\t\t\t// Iterate","\t\t\tvar a = hash[0], e = hash[4];","\t\t\tvar temp1 = hash[7]","\t\t\t\t+ (rightRotate(e, 6) ^ rightRotate(e, 11) ^ rightRotate(e, 25)) // S1","\t\t\t\t+ ((e & hash[5]) ^ ((~e) & hash[6])) // ch","\t\t\t\t+ k[i]","\t\t\t\t// Expand the message schedule if needed","\t\t\t\t+ (w[i] = (i < 16) ? w[i] : (","\t\t\t\t\tw[i - 16]","\t\t\t\t\t+ (rightRotate(w15, 7) ^ rightRotate(w15, 18) ^ (w15 >>> 3)) // s0","\t\t\t\t\t+ w[i - 7]","\t\t\t\t\t+ (rightRotate(w2, 17) ^ rightRotate(w2, 19) ^ (w2 >>> 10)) // s1","\t\t\t\t) | 0","\t\t\t\t);","\t\t\t// This is only used once, so *could* be moved below, but it only saves 4 bytes and makes things unreadble","\t\t\tvar temp2 = (rightRotate(a, 2) ^ rightRotate(a, 13) ^ rightRotate(a, 22)) // S0","\t\t\t\t+ ((a & hash[1]) ^ (a & hash[2]) ^ (hash[1] & hash[2])); // maj","","\t\t\thash = [(temp1 + temp2) | 0].concat(hash); // We don't bother trimming off the extra ones, they're harmless as long as we're truncating when we do the slice()","\t\t\thash[4] = (hash[4] + temp1) | 0;","\t\t}","","\t\tfor (i = 0; i < 8; i++) {","\t\t\thash[i] = (hash[i] + oldHash[i]) | 0;","\t\t}","\t}","","\tfor (i = 0; i < 8; i++) {","\t\tfor (j = 3; j + 1; j--) {","\t\t\tvar b = (hash[i] >> (j * 8)) & 255;","\t\t\tresult += ((b < 16) ? 0 : '') + b.toString(16);","\t\t}","\t}","\treturn result;","};","","var param = eventsFunctionContext.getArgument(\"_str\").toString();","var result = sha256(param);","eventsFunctionContext.returnValue = result;",""],"parameterObjects":"","useStrict":true,"eventsSheetExpanded":false}],"expressionType":{"type":"string"},"parameters":[{"description":"String to be hashed","name":"_str","type":"string"}],"objectGroups":[]}],"eventsFunctionsFolderStructure":{"folderName":"__ROOT","children":[{"functionName":"GenerateHashMD5"},{"functionName":"GenerateHashSHA256"}]},"eventsBasedBehaviors":[],"eventsBasedObjects":[]}],"externalLayouts":[]} \ No newline at end of file