// 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.

export function isObject(value: unknown): value is Record<string, unknown> {
  return value !== null && typeof value === "object";
}

export function isNegativeZero(i: number): boolean {
  return i === 0 && Number.NEGATIVE_INFINITY === 1 / i;
}

export function isPlainObject(object: unknown): object is object {
  return Object.prototype.toString.call(object) === "[object Object]";
}

// denoCacheMetadata={"headers":{"alt-svc":"h3=\":443\"; ma=86400","x-robots-tag":"noindex","cf-cache-status":"HIT","cross-origin-resource-policy":"cross-origin","set-cookie":"__cf_bm=6bMBbGwGW46wlY.TwW1PtgXnKWoat7.SyMXy..76k3E-1785241875.3675222-1.0.1.1-jnNm9xXx.IC0v2PkXAu3odWGu_ZYUisTx8JTkJTvCfgRwtFhTSwrvJ0JmfPJEvRB1Zd8rTxgVWTCdU1NMsu7jFvNQAPwiIjFx.e6XPfQ9oqS4VOYV4CofXbMnX9F6oFR; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","x-jsr-backend":"modules","etag":"\"ad0357c1656c48a23406b991ab366f66\"","access-control-allow-origin":"*","x-content-type-options":"nosniff","date":"Tue, 28 Jul 2026 12:31:15 GMT","content-type":"text/typescript","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=8e%2BCrx1xIYGRDJTGIBz%2FK23A5lEBqbtdqcAsdgyeWJi7bqlH%2BVE9nrvwaTPoID34DSL%2Bdyf1L2%2B3jOGC5xcmkAwE2agMGk4QAUo47RkbApmVMRRUhsMEBOw%3D\"}]}","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';","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","cf-ray":"a223e6590e2d7db6-LAX","age":"4275641","vary":"Origin","server":"cloudflare","cache-control":"public, max-age=31536000, immutable","access-control-expose-headers":"*","content-length":"654","accept-ranges":"bytes"},"url":"https://jsr.io/@std/yaml/1.0.5/_utils.ts","time":1785241875}