# Generated by tools/bundle.py from plugin.json + src/ — do not edit; edit the sources. __id__ = 'hello_bundle' __name__ = 'Hello Bundle' __description__ = 'Multi-file exteraGram plugin built by tools/bundle.py' __author__ = '@lyuksovannyy' __version__ = '1.0.0' __icon__ = 'exteraGramPluginIcons/0' __app_version__ = '>=12.5.1' __sdk_version__ = '>=1.4.4.3' _BUNDLE_BLOB = ( "eNqVVttu2zgQ/RVGTxSqVeFXYx0gQd1N0HZbbNMFFlEgMNLYYSNRAkkh9gb+952hyOjiXLrygynyzP1wRo8RKKv30ZJFtZAq" "SvC/KbsKDG49RlsNYKXaupeNrICARhfvw8H7PJdK2jxP2z0Jt/eEtbqDxAEJv9FNzVILdVsJC0zWbaMt06BK0Am78vtrrRud" "qeiAgkH7k9DL9gNiYn8jKjN3wMLOdlZWwb5qdC0q+S9kin5FJYyZOsP/FlXXL+Nlphg+LYJ6fAkbHwIPLiyZsRiQEnW/jNlv" "p/TvZZ8Mlmw1vHCCxz0CC+Gx9GiwnVbsKcANiViHXw26vCjsCmgt459g7xxO2CX6tvPr40CcASENzELeZFGnTNdSitBRPCng" "rqkwTCYVewzOnOhDFsW+Wo448wLR5ps1uRUG8rbqtqjbl+Uct765nYRdNM39X2C6yvbr71aj7e0+U05aqFI3ssypqibIV83W" "H3cyNWCJJE+HFyAc5y5V21mi3s56cODTG+zM1If1x7Mfn6/yq/WXb5/PrtZYyyy6gKpqEvZItTmcZNGYUu6sj4gPwYU6EI0a" "5XOQV40ouYFqMy4TRsSz6I7U5LedKitghIPSVSCgSCoVZZmjNoPO5zUYI7aQ32HieEz+HNvr1K9a7JHe5qCq0IDJyUOejzR5" "Dl8PO/T0ZeB0I1c+eezc2UH1yRTrSsWne/Tcwx5lAx+zKDmGeP1/hNK+CsZoBBJtNa/vM1DT3XrVP/D+9EVnwowvS/qsDVk0" "CqVqs82hlPYIM4+d+MlfjGu9ExjP89EMLqaujAybRQHM1NLeUVfyhD1zu99p9+Qtj6XaNK96fDPj2DELiR0JE0XRdAqvXyu0" "qM2YLh6Nd2oLVlireY9J8I75M3SB/dkoGFFfbrCdWiaNVMYKVQD32MR14eXUZU/Jobfw8S2yWrat69BeR+q2+LG5AEWA0NY8" "YA55SDfS+P9YbUkBmhxUtpXEykeMol2MkMQ1BDqB68UN+VKB4u49ZqdswQC7LIpRD5o5TLIhmpl3fZbTIf1EbVwtmafP7yR8" "OlZKdmZapuPrRd1+arqGhWUOzYNPbjOb38O4H6zx1IAfe5MuTVcR93/FlSw6FyUb5jdm/B1VgaN8fNTFRsUzfhKtxmMp/fL1" "w+XHfwKxV57ffkqG74+jSRkOXpuWdKWmnwzPfWF4Px1v0p8NDpyH6+XiJsVxjgmPMbaH68XyhuGXBHuged5TwpEtdn4eDv8B" "gusrOQ==" ) import base64 as _b64, builtins as _bi, json as _j, linecache as _lc, types as _t, zlib as _z _BUNDLE = _j.loads(_z.decompress(_b64.b64decode(_BUNDLE_BLOB)).decode("utf-8")) _MODS = _BUNDLE["modules"] _LOADED = {} _ROOTS = {n.partition(".")[0] for n in _MODS} _REAL_IMPORT = _bi.__import__ def _bundle_register_source(info): lines = info["src"].splitlines(True) _lc.cache[info["file"]] = (len(info["src"]), None, lines, info["file"]) def _bundle_load(name): mod = _LOADED.get(name) if mod is not None: return mod info = _MODS.get(name) if info is None: raise ImportError("no bundled module named %r" % name) parent = name.rpartition(".")[0] if parent: _bundle_load(parent) mod = _t.ModuleType(name) mod.__file__ = info["file"] mod.__package__ = name if info["pkg"] else parent if info["pkg"]: mod.__path__ = [] builtins_ns = dict(vars(_bi)) builtins_ns["__import__"] = _bundle_import mod.__dict__["__builtins__"] = builtins_ns _LOADED[name] = mod _bundle_register_source(info) try: exec(compile(info["src"], info["file"], "exec"), mod.__dict__) except BaseException: _LOADED.pop(name, None) raise if parent: setattr(_LOADED[parent], name.rpartition(".")[2], mod) return mod def _bundle_import(name, globals=None, locals=None, fromlist=(), level=0): if level: pkg = (globals or {}).get("__package__") or "" parts = pkg.split(".") if pkg else [] if level > 1: parts = parts[: 1 - level] if not parts: return _REAL_IMPORT(name, globals, locals, fromlist, level) full = ".".join(parts) + ("." + name if name else "") else: full = name if full.partition(".")[0] not in _ROOTS or full not in _MODS: return _REAL_IMPORT(name, globals, locals, fromlist, level) mod = _bundle_load(full) if not fromlist: return mod if level else _bundle_load(full.partition(".")[0]) for item in fromlist: if item != "*" and not hasattr(mod, item) and full + "." + item in _MODS: _bundle_load(full + "." + item) return mod _ENTRY = _MODS[_BUNDLE["entry"]] _bundle_register_source(_ENTRY) _bundle_builtins = dict(vars(_bi)) _bundle_builtins["__import__"] = _bundle_import globals()["__builtins__"] = _bundle_builtins exec(compile(_ENTRY["src"], _ENTRY["file"], "exec"), globals())