import json
from ..utils import selector
from commands.pre_1_13.cmdex import CMDEx
from commands.upgrader.utils import json_text
cmdex = CMDEx('tellraw {selector:selector} {json:message}')


def upgrade(command: str) ->str:
    order, props = cmdex.match(command)
    new_selector = selector.upgrade(props['selector'])
    new_message = json_text.upgrade(props['message'])
    return 'tellraw {} {}'.format(new_selector, json.dumps(new_message,
        ensure_ascii=False))

1defcd2fc5e50d453086678459eae8a3e34eb3de
<mask token>

<mask token>


def upgrade(command: str) ->str:
    order, props = cmdex.match(command)
    new_selector = selector.upgrade(props['selector'])
    new_message = json_text.upgrade(props['message'])
    return 'tellraw {} {}'.format(new_selector, json.dumps(new_message,
        ensure_ascii=False))

<mask token>
cmdex = CMDEx('tellraw {selector:selector} {json:message}')


def upgrade(command: str) ->str:
    order, props = cmdex.match(command)
    new_selector = selector.upgrade(props['selector'])
    new_message = json_text.upgrade(props['message'])
    return 'tellraw {} {}'.format(new_selector, json.dumps(new_message,
        ensure_ascii=False))

import json
from ..utils import selector
from commands.pre_1_13.cmdex import CMDEx
from commands.upgrader.utils import json_text
cmdex = CMDEx('tellraw {selector:selector} {json:message}')


def upgrade(command: str) ->str:
    order, props = cmdex.match(command)
    new_selector = selector.upgrade(props['selector'])
    new_message = json_text.upgrade(props['message'])
    return 'tellraw {} {}'.format(new_selector, json.dumps(new_message,
        ensure_ascii=False))
