tch(() => {
                        //options.push({ value: query, text: query });
                        callback();
                    });
            },
        });

        // Initialize for sources
        new TomSelect('#sources', {
            create: true,
            plugins: ['remove_button'],
        });
    });
</script>
{% endblock %}