HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode.com/node_modules/eslint-plugin-svelte/lib/utils/css-utils/template-tokenize.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tokenize_1 = __importDefault(require("postcss/lib/tokenize"));
function templateTokenize(...args) {
    const tokenizer = (0, tokenize_1.default)(...args);
    function nextToken(...args) {
        const returned = [];
        let token, lastPos;
        let depth = 0;
        while ((token = tokenizer.nextToken(...args))) {
            if (token[0] !== "word") {
                if (token[0] === "{") {
                    ++depth;
                }
                else if (token[0] === "}") {
                    --depth;
                }
            }
            if (depth || returned.length) {
                lastPos = token[3] || token[2] || lastPos;
                returned.push(token);
            }
            if (!depth) {
                break;
            }
        }
        if (returned.length) {
            token = [
                "word",
                returned.map((token) => token[1]).join(""),
                returned[0][2],
                lastPos,
            ];
        }
        return token;
    }
    return Object.assign({}, tokenizer, {
        nextToken,
    });
}
exports.default = templateTokenize;