'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const core = require('./core-906e2cc9.js');

const Urlencoded = class {
    constructor(hostRef) {
        core.registerInstance(this, hostRef);
    }
    render() {
        const pairs = this.data.split("&");
        const decoded = [];
        for (const p of pairs) {
            const pair = p.split("=");
            decoded.push([pair[0], pair[1]]);
        }
        return [
            decoded.map(tuple => core.h("smoothly-tuple", { tuple: tuple })),
        ];
    }
};

exports.smoothly_urlencoded = Urlencoded;
