UNPKG

@restnfeel/agentc-starter-kit

Version:

한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템

73 lines (60 loc) 2.7 kB
import { __module as XMLDTDEntity$1 } from '../../../_virtual/XMLDTDEntity2.js'; import { __require as requireUtility } from './Utility.js'; import { __require as requireXMLNode } from './XMLNode.js'; var XMLDTDEntity = XMLDTDEntity$1.exports; var hasRequiredXMLDTDEntity; function requireXMLDTDEntity () { if (hasRequiredXMLDTDEntity) return XMLDTDEntity$1.exports; hasRequiredXMLDTDEntity = 1; // Generated by CoffeeScript 1.12.7 (function() { var XMLNode, isObject, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; isObject = /*@__PURE__*/ requireUtility().isObject; XMLNode = /*@__PURE__*/ requireXMLNode(); XMLDTDEntity$1.exports = (function(superClass) { extend(XMLDTDEntity, superClass); function XMLDTDEntity(parent, pe, name, value) { XMLDTDEntity.__super__.constructor.call(this, parent); if (name == null) { throw new Error("Missing DTD entity name. " + this.debugInfo(name)); } if (value == null) { throw new Error("Missing DTD entity value. " + this.debugInfo(name)); } this.pe = !!pe; this.name = this.stringify.eleName(name); if (!isObject(value)) { this.value = this.stringify.dtdEntityValue(value); } else { if (!value.pubID && !value.sysID) { throw new Error("Public and/or system identifiers are required for an external entity. " + this.debugInfo(name)); } if (value.pubID && !value.sysID) { throw new Error("System identifier is required for a public external entity. " + this.debugInfo(name)); } if (value.pubID != null) { this.pubID = this.stringify.dtdPubID(value.pubID); } if (value.sysID != null) { this.sysID = this.stringify.dtdSysID(value.sysID); } if (value.nData != null) { this.nData = this.stringify.dtdNData(value.nData); } if (this.pe && this.nData) { throw new Error("Notation declaration is not allowed in a parameter entity. " + this.debugInfo(name)); } } } XMLDTDEntity.prototype.toString = function(options) { return this.options.writer.set(options).dtdEntity(this); }; return XMLDTDEntity; })(XMLNode); }).call(XMLDTDEntity); return XMLDTDEntity$1.exports; } export { requireXMLDTDEntity as __require }; //# sourceMappingURL=XMLDTDEntity.js.map