// Ported from js-yaml v3.13.1:
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import type { SchemaDefinition } from "./schema.ts";
import { DEFAULT_SCHEMA } from "./schema/mod.ts";

export abstract class State {
  schema: SchemaDefinition;
  constructor(schema: SchemaDefinition = DEFAULT_SCHEMA) {
    this.schema = schema;
  }
}

// denoCacheMetadata={"headers":{"x-content-type-options":"nosniff","cf-cache-status":"HIT","etag":"\"2a83aa28247a2c8ba40771651b47f009\"","cf-ray":"a223e6589cdd7db6-LAX","x-jsr-backend":"modules","set-cookie":"__cf_bm=VpMmTyhkIUr0rA2FXZuvS2AkxttQCDLfNZ0kbNTKURg-1785241875.2964418-1.0.1.1-GEwEyNFC1TkZtoQVSHzWDKHZsIklBeTCaflg4Ns53kg1fWetd96NAOS8pdFFD17VGzzM7MDewXVO00JRpDaBlY8MwubCNkENpDLXZAHISG8aRsU_PpLygc0Hk1z1E7pZ; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","date":"Tue, 28 Jul 2026 12:31:15 GMT","content-length":"521","alt-svc":"h3=\":443\"; ma=86400","cache-control":"public, max-age=31536000, immutable","content-type":"text/typescript","cross-origin-resource-policy":"cross-origin","access-control-allow-origin":"*","x-robots-tag":"noindex","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=HL%2FOMyEwJr52seuooXsuCQwL9gvpJutEFEn9mnyMVqKu7E%2BpW0bkmdQup8VKvwcetJAMdfjKQgdaLsTmofSOsDZs7EHazF%2FVuWHI%2BqpbWQMzD75Bdg8plN8%3D\"}]}","accept-ranges":"bytes","age":"1699996","access-control-expose-headers":"*","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","vary":"Origin","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","server":"cloudflare"},"url":"https://jsr.io/@std/yaml/0.224.3/_state.ts","time":1785241875}