"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";




var _chunkP5EE2VJXcjs = require('../chunk-P5EE2VJX.cjs');




var _chunk27APPAJNcjs = require('../chunk-27APPAJN.cjs');
require('../chunk-VRHGVLSL.cjs');

// src/contexts/use-outer-or-default.ts
var _react = require('react');
function useOuterOrDefault(context, factory, deps = []) {
  const outer = _react.useContext.call(void 0, context);
  const fallback = _react.useMemo.call(void 0, factory, deps);
  return _nullishCoalesce(outer, () => ( fallback));
}








exports.ChatRuntimeContext = _chunkP5EE2VJXcjs.ChatRuntimeContext; exports.EndpointsRuntimeContext = _chunk27APPAJNcjs.EndpointsRuntimeContext; exports.useChatRuntime = _chunkP5EE2VJXcjs.useChatRuntime; exports.useEndpointsRuntime = _chunk27APPAJNcjs.useEndpointsRuntime; exports.useOuterOrDefault = useOuterOrDefault; exports.useRequiredChatRuntime = _chunkP5EE2VJXcjs.useRequiredChatRuntime; exports.useRequiredEndpointsRuntime = _chunk27APPAJNcjs.useRequiredEndpointsRuntime;
//# sourceMappingURL=index.cjs.map