function input_generator(input) {
    return observablehq.Generators.observe(function (change) {
        var event = eventof(input),
            value = get_input_value(input)
        function inputted() {
            change(get_input_value(input))
        }
        input.addEventListener(event, inputted)
        if (value !== undefined) change(value)
        return function () {
            input.removeEventListener(event, inputted)
        }
    })
}
/**
 * Copied from the observable stdlib source (https://github.com/observablehq/stdlib/blob/170f137ac266b397446320e959c36dd21888357b/src/generators/input.js) but using our own `get_input_value` for consistency.
 * @param {Element} input
 * @returns
 */
Copied from the observable stdlib source  but using our own `get_input_value` for consistency.
@param {Element} input
@returns
Copied from the observable stdlib source but using our own ` get_input_value ` for consistency . @param { Element } input @returns
function input_generator(input) {
    return observablehq.Generators.observe(function (change) {
        var event = eventof(input),
            value = get_input_value(input)
        function inputted() {
            change(get_input_value(input))
        }
        input.addEventListener(event, inputted)
        if (value !== undefined) change(value)
        return function () {
            input.removeEventListener(event, inputted)
        }
    })
}
function input_generator ( input ) { return observablehq . Generators . observe ( function ( change ) { var event = eventof ( input ) , value = get_input_value ( input ) function inputted ( ) { change ( get_input_value ( input ) ) } input . addEventListener ( event , inputted ) if ( value !== undefined ) change ( value ) return function ( ) { input . removeEventListener ( event , inputted ) } } ) }
Copied from the observable stdlib source (https://github.com/observablehq/stdlib/blob/170f137ac266b397446320e959c36dd21888357b/src/generators/input.js) but using our own `get_input_value` for consistency.
Copied from the observable stdlib source ( https : // github . com / observablehq / stdlib / blob / 170f137ac266b397446320e959c36dd21888357b / src / generators / input . js ) but using our own ` get_input_value ` for consistency .