(function() { var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined'; var __module = nodeEnv ? module : {exports:{}}; var __filename = 'preview-scripts/assets/Script/DataBoard.js'; var __require = nodeEnv ? function (request) { return cc.require(request); } : function (request) { return __quick_compile_project__.require(request, __filename); }; function __define (exports, require, module) { if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict"; cc._RF.push(module, '1c152bUhQpJ6J1jGhQVUYf8', 'DataBoard'); // Script/DataBoard.ts "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); /******************************************************************************* * 创建: 2022年11月23日 * 作者: 水煮肉片饭(27185709@qq.com) * 描述: 数据看板 * 节点挂上该组件,就可以在游戏运行过程中,直观看到节点任意属性(包括节点脚本中的属性) * 可以图形化展示以下四种数据: * 轮廓盒子: 随节点旋转,代表节点的实时矩形 * 碰撞盒子: 不随节点旋转,一般代表碰撞范围 * 自定义参数: 节点自身属性,以及节点任意脚本中的属性 * 锚点: 锚点位置会显示一个小红点 * 自定义参数(配置想监控的数据): * wp: 世界坐标,即相对于屏幕左下角的坐标 * radian: 节点弧度,单位π * matrix: 变换矩阵 * parent: 父节点 * children: 子节点 * 自身属性: scale,width,opacity等 * 脚本属性: 脚本实例对象的属性 * ↓↓参数可以用3种分隔符隔开↓↓ * 英文逗号、英文冒号、空格 * ————————————————————————举个栗子———————————————————————— * 脚本: Hero * 参数: wp,scale,angle,#angle,#hp * 显示结果:世界坐标,节点scale,节点angle,Hero对象的angle,Hero对象的hp * ————————————————————————温馨提示———————————————————————— * 初始化的时候,设置全局变量window['DATABOARD'] = false可屏蔽本项目所有DataBoard,不会产生任何额外开销\n *******************************************************************************/ window['DATABOARD'] = true; var ANCHOR_SIZE = 20; //锚点的大小 var LINEHEIGHT = 1.2; //行高是字体大小的多少倍 var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property, executeInEditMode = _a.executeInEditMode, menu = _a.menu; var DataBoard = /** @class */ (function (_super) { __extends(DataBoard, _super); function DataBoard() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._isOutlineBoxActive = false; _this._outlineBoxColor = new cc.Color(Math.random() * 255, Math.random() * 255, Math.random() * 255); _this._outlineBoxOpacity = 100; _this._isCollideBoxActive = true; _this._collideBoxColor = new cc.Color(Math.random() * 255, Math.random() * 255, Math.random() * 255); _this._collideBoxOpacity = 100; _this._isCustomLabelActive = true; _this.customComponentName = ''; _this._customLabelString = 'x,y'; _this._customLabelOffset = cc.v2(0, 100); _this._customLabelColor = new cc.Color(255, 255, 0); _this._customLabelSize = 60; _this._customLabelDigit = 0; _this.boardNode = null; _this.outlineBoxNode = null; _this.collideBoxNode = null; _this.anchorPointNode = null; _this.customLabelNode = null; _this.customLabel = null; _this.customLabelStringSplit = null; _this.monitorComp = null; return _this; } Object.defineProperty(DataBoard.prototype, "isOutlineBoxActive", { get: function () { return this._isOutlineBoxActive; }, set: function (value) { this._isOutlineBoxActive = value; this.outlineBoxNode.active = value; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "outlineBoxColor", { get: function () { return this._outlineBoxColor; }, set: function (value) { this._outlineBoxColor = value; this.outlineBoxNode.color = value; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "outlineBoxOpacity", { get: function () { return this._outlineBoxOpacity; }, set: function (value) { this._outlineBoxOpacity = value; this.outlineBoxNode.opacity = value; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "isCollideBoxActive", { get: function () { return this._isCollideBoxActive; }, set: function (value) { this._isCollideBoxActive = value; this.collideBoxNode.active = value; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "collideBoxColor", { get: function () { return this._collideBoxColor; }, set: function (value) { this._collideBoxColor = value; this.collideBoxNode.color = value; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "collideBoxOpacity", { get: function () { return this._collideBoxOpacity; }, set: function (value) { this._collideBoxOpacity = value; this.collideBoxNode.opacity = value; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "isCustomLabelActive", { get: function () { return this._isCustomLabelActive; }, set: function (value) { this._isCustomLabelActive = value; this.customLabelNode.active = value; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "customLabelString", { get: function () { return this._customLabelString; }, set: function (value) { this._customLabelString = value; this.customLabelStringSplit = value .replace(/,/g, '_~_').replace(/:/g, '_!_').replace(/ /g, '_@_') .replace(/([^,])\n/g, '$1_\n').replace(/\n([^,])/g, '\n_$1') .replace(/([^:])\n/g, '$1_\n').replace(/\n([^:])/g, '\n_$1') .replace(/([^ ])\n/g, '$1_\n').replace(/\n([^ ])/g, '\n_$1') .split('_'); }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "customLabelOffset", { get: function () { return this._customLabelOffset; }, set: function (value) { this._customLabelOffset = value; this.customLabelNode.x = value.x; this.customLabelNode.y = value.y; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "customLabelColor", { get: function () { return this._customLabelColor; }, set: function (value) { this._customLabelColor = value; this.customLabelNode.color = value; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "customLabelSize", { get: function () { return this._customLabelSize; }, set: function (value) { this._customLabelSize = value; this.customLabel.fontSize = value; this.customLabel.lineHeight = value * LINEHEIGHT; this.customLabelNode.getComponent(cc.LabelOutline).width = value * 0.1; }, enumerable: false, configurable: true }); ; Object.defineProperty(DataBoard.prototype, "customLabelDigit", { get: function () { return this._customLabelDigit; }, set: function (value) { this._customLabelDigit = value; }, enumerable: false, configurable: true }); ; DataBoard.prototype.onLoad = function () { this.boardNode = this.node.getChildByName('DataBoard'); if (!CC_EDITOR && !window['DATABOARD']) { this.destroy(); return; } if (cc.isValid(this.boardNode)) { this.boardNode.removeFromParent(); this.boardNode.destroy(); } var texture = new cc.Texture2D(); texture.initWithData(new Uint8Array([255, 255, 255]), cc.Texture2D.PixelFormat.RGB888, 1, 1); this.boardNode = new cc.Node('DataBoard'); this.boardNode.setParent(this.node); this.boardNode.x = this.boardNode.y = 0; this.boardNode.zIndex = cc.macro.MAX_ZINDEX; this.boardNode['_objFlags'] |= cc.Object['Flags'].HideInHierarchy; this.boardNode['_objFlags'] |= cc.Object['Flags'].LockedInEditor; this.outlineBoxNode = new cc.Node('OutlineBox'); this.outlineBoxNode.setParent(this.boardNode); this.outlineBoxNode.addComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture); this.outlineBoxNode.active = this.isOutlineBoxActive; this.outlineBoxNode.color = this.outlineBoxColor; this.outlineBoxNode.opacity = this.outlineBoxOpacity; this.collideBoxNode = new cc.Node('CollideBox'); this.collideBoxNode.setParent(this.boardNode); this.collideBoxNode.addComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture); this.collideBoxNode.active = this.isCollideBoxActive; this.collideBoxNode.color = this.collideBoxColor; this.collideBoxNode.opacity = this.collideBoxOpacity; this.anchorPointNode = new cc.Node('AnchorPoint'); this.anchorPointNode.setParent(this.boardNode); this.anchorPointNode.addComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture); this.anchorPointNode.color = cc.color(255, 0, 0); this.anchorPointNode.width = ANCHOR_SIZE; this.anchorPointNode.height = ANCHOR_SIZE; this.customLabelNode = new cc.Node('CustomLabel'); this.customLabelNode.setParent(this.boardNode); this.customLabel = this.customLabelNode.addComponent(cc.Label); this.customLabelNode.addComponent(cc.LabelOutline).color = cc.color(0, 0, 0); this.customLabelNode.active = this.isCustomLabelActive; this.customLabelString = this._customLabelString; this.customLabelNode.x = this.customLabelOffset.x; this.customLabelNode.y = this.customLabelOffset.y; this.customLabelNode.color = this.customLabelColor; this.customLabelSize = this._customLabelSize; this.updateAngle(); this.updateScale(); this.updateAnchor(); this.updateSize(); this.node.on(cc.Node.EventType.ROTATION_CHANGED, this.updateAngle, this); this.node.on(cc.Node.EventType.SCALE_CHANGED, this.updateScale, this); this.node.on(cc.Node.EventType.ANCHOR_CHANGED, this.updateAnchor, this); this.node.on(cc.Node.EventType.SIZE_CHANGED, this.updateSize, this); }; DataBoard.prototype.updateAngle = function () { this.collideBoxNode.angle = -this.node.angle; this.customLabelNode.angle = -this.node.angle; }; DataBoard.prototype.updateScale = function () { this.boardNode.scaleX = 1 / this.node.scaleX; this.boardNode.scaleY = 1 / this.node.scaleY; this.outlineBoxNode.scaleX = this.node.scaleX; this.outlineBoxNode.scaleY = this.node.scaleY; this.collideBoxNode.scaleX = this.node.scaleX; this.collideBoxNode.scaleY = this.node.scaleY; }; DataBoard.prototype.updateAnchor = function () { this.outlineBoxNode.anchorX = this.node.anchorX; this.outlineBoxNode.anchorY = this.node.anchorY; this.collideBoxNode.anchorX = this.node.anchorX; this.collideBoxNode.anchorY = this.node.anchorY; }; DataBoard.prototype.updateSize = function () { this.outlineBoxNode.width = this.node.width; this.outlineBoxNode.height = this.node.height; this.collideBoxNode.width = this.node.width; this.collideBoxNode.height = this.node.height; }; DataBoard.prototype.update = function () { if (!this.isCustomLabelActive) return; if (!this.customLabelStringSplit) return; var str = ''; var strs = this.customLabelStringSplit; if (!this.monitorComp && this.customComponentName) { this.monitorComp = this.node.getComponent(this.customComponentName); } for (var i = 0, len = strs.length; i < len; ++i) { var tmp = null; switch (strs[i]) { case 'wp': var pos = this.node.convertToWorldSpaceAR(cc.v2(0, 0)); tmp = "(" + pos.x.toFixed(this.customLabelDigit) + ",\t" + pos.y.toFixed(this.customLabelDigit) + ")"; break; case 'angle': tmp = this.node.angle.toFixed(this.customLabelDigit) + '°'; break; case 'radian': tmp = (this.node.angle / 180).toFixed(this.customLabelDigit) + 'π'; break; case 'matrix': var matrix = this.node['_worldMatrix'].m; tmp = ''; for (var i_1 = 0; i_1 < 4; ++i_1) { for (var j = 0; j < 4; ++j) { var mm = matrix[j * 4 + i_1]; tmp += (mm < 0 ? '\t\t' : '\t\t\t') + mm.toFixed(this.customLabelDigit); } if (i_1 !== 3) tmp += '\n'; } break; case 'parent': tmp = this.node.parent.name; break; case 'children': tmp = ''; for (var i_2 = 0, len_1 = this.node.childrenCount; i_2 < len_1; ++i_2) { tmp += "\t\t\t" + i_2 + "\uFF1A" + this.node.children[i_2].name; if (i_2 !== len_1 - 1) tmp += '\n'; } break; case '~': tmp = ',\t'; break; case '!': tmp = ':\t'; break; case '@': tmp = ' \t'; break; default: if (this.node[strs[i]] !== undefined) { tmp = this.node[strs[i]]; } else if (strs[i].startsWith('#') && this.monitorComp !== null) { tmp = this.monitorComp[strs[i].substring(1)]; } else { tmp = strs[i]; } if (tmp && tmp.name) { tmp = tmp.name; } break; } if (typeof tmp === 'number') { tmp = tmp.toFixed(this.customLabelDigit); } str += tmp; } this.customLabel.string = str; }; DataBoard.prototype.onDestroy = function () { if (cc.isValid(this.boardNode)) { this.boardNode.removeFromParent(); this.boardNode.destroy(); } ; this.node.targetOff(this); }; __decorate([ property ], DataBoard.prototype, "_isOutlineBoxActive", void 0); __decorate([ property({ displayName: CC_DEV && '轮廓盒子', tooltip: CC_DEV && '随节点旋转,代表实时轮廓' }) ], DataBoard.prototype, "isOutlineBoxActive", null); __decorate([ property ], DataBoard.prototype, "_outlineBoxColor", void 0); __decorate([ property({ displayName: CC_DEV && '······颜色', visible: function () { return this.isOutlineBoxActive; } }) ], DataBoard.prototype, "outlineBoxColor", null); __decorate([ property ], DataBoard.prototype, "_outlineBoxOpacity", void 0); __decorate([ property({ min: 0, max: 255, step: 1, slide: true, displayName: CC_DEV && '······透明度', visible: function () { return this.isOutlineBoxActive; } }) ], DataBoard.prototype, "outlineBoxOpacity", null); __decorate([ property ], DataBoard.prototype, "_isCollideBoxActive", void 0); __decorate([ property({ displayName: CC_DEV && '碰撞盒子', tooltip: CC_DEV && '不随节点旋转,代表碰撞范围' }) ], DataBoard.prototype, "isCollideBoxActive", null); __decorate([ property ], DataBoard.prototype, "_collideBoxColor", void 0); __decorate([ property({ displayName: CC_DEV && '······颜色', visible: function () { return this.isCollideBoxActive; } }) ], DataBoard.prototype, "collideBoxColor", null); __decorate([ property ], DataBoard.prototype, "_collideBoxOpacity", void 0); __decorate([ property({ min: 0, max: 255, step: 1, slide: true, displayName: CC_DEV && '······透明度', visible: function () { return this.isCollideBoxActive; } }) ], DataBoard.prototype, "collideBoxOpacity", null); __decorate([ property ], DataBoard.prototype, "_isCustomLabelActive", void 0); __decorate([ property({ displayName: CC_DEV && '自定义参数', tooltip: CC_DEV && '配置显示的属性内容' }) ], DataBoard.prototype, "isCustomLabelActive", null); __decorate([ property({ displayName: CC_DEV && '······脚本', tooltip: CC_DEV && '监控哪个脚本', visible: function () { return this.isCustomLabelActive; } }) ], DataBoard.prototype, "customComponentName", void 0); __decorate([ property ], DataBoard.prototype, "_customLabelString", void 0); __decorate([ property({ multiline: true, displayName: CC_DEV && '······参数', tooltip: CC_DEV && "—————支持的参数————\nwp:世界坐标\nradian:角度(单位:π)\nmatrix:变换矩阵\nparent:父节点\nchildren:子节点\n自身属性:scale,width,opacity等\n脚本属性:脚本实例对象的属性\n↓↓参数可以用3种分隔符隔开↓↓\n英文逗号、英文冒号、空格\n————举个栗子————\n脚本:Hero\n参数:wp,scale,angle,#angle,#hp\n显示结果:\n世界坐标,节点scale,节点angle,Hero对象的angle,Hero对象的hp\n————温馨提示————\n初始化的时候,设置全局变量\nwindow['DATABOARD'] = false\n可屏蔽本项目所有DataBoard,不会产生任何额外开销", visible: function () { return this.isCustomLabelActive; } }) ], DataBoard.prototype, "customLabelString", null); __decorate([ property ], DataBoard.prototype, "_customLabelOffset", void 0); __decorate([ property({ displayName: CC_DEV && '······偏移', visible: function () { return this.isCustomLabelActive; } }) ], DataBoard.prototype, "customLabelOffset", null); __decorate([ property ], DataBoard.prototype, "_customLabelColor", void 0); __decorate([ property({ displayName: CC_DEV && '······颜色', visible: function () { return this.isCustomLabelActive; } }) ], DataBoard.prototype, "customLabelColor", null); __decorate([ property ], DataBoard.prototype, "_customLabelSize", void 0); __decorate([ property({ displayName: CC_DEV && '······大小', visible: function () { return this.isCustomLabelActive; } }) ], DataBoard.prototype, "customLabelSize", null); __decorate([ property ], DataBoard.prototype, "_customLabelDigit", void 0); __decorate([ property({ min: 0, max: 10, step: 1, slide: true, displayName: CC_DEV && '······小数位数', visible: function () { return this.isCustomLabelActive; } }) ], DataBoard.prototype, "customLabelDigit", null); DataBoard = __decorate([ ccclass, executeInEditMode, menu('Component/DataBoard') ], DataBoard); return DataBoard; }(cc.Component)); exports.default = DataBoard; cc._RF.pop(); } if (nodeEnv) { __define(__module.exports, __require, __module); } else { __quick_compile_project__.registerModuleFunc(__filename, function () { __define(__module.exports, __require, __module); }); } })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0c1xcU2NyaXB0XFxEYXRhQm9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O2dGQTBCZ0Y7QUFDaEYsTUFBTSxDQUFDLFdBQVcs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5bm0MTHmnIgyM+aXpVxyXG4gKiDkvZzogIU6ICAgIOawtOeFruiCieeJh+mlrSgyNzE4NTcwOUBxcS5jb20pXHJcbiAqIOaPj+i/sDogICAg5pWw5o2u55yL5p2/XHJcbiAqIOiKgueCueaMguS4iuivpee7hOS7tu+8jOWwseWPr+S7peWcqOa4uOaIj+i/kOihjOi/h+eoi+S4re+8jOebtOingueci+WIsOiKgueCueS7u+aEj+WxnuaAp++8iOWMheaLrOiKgueCueiEmuacrOS4reeahOWxnuaAp++8iVxyXG4gKiDlj6/ku6Xlm77lvaLljJblsZXnpLrku6XkuIvlm5vnp43mlbDmja7vvJpcclxuICogICAgICAgICAg6L2u5buT55uS5a2Q77yaICAgICAgICAgIOmaj+iKgueCueaXi+i9rO+8jOS7o+ihqOiKgueCueeahOWunuaXtuefqeW9olxyXG4gKiAgICAgICAgICDnorDmkp7nm5LlrZDvvJogICAgICAgICAg5LiN6ZqP6IqC54K55peL6L2s77yM5LiA6Iis5Luj6KGo56Kw5pKe6IyD5Zu0XHJcbiAqICAgICAgICAgIOiHquWumuS5ieWPguaVsO+8miAgICAgICAg6IqC54K56Ieq6Lqr5bGe5oCn77yM5Lul5Y+K6IqC54K55Lu75oSP6ISa5pys5Lit55qE5bGe5oCnXHJcbiAqICAgICAgICAgIOmUmueCue+8miAgICAgICAgICAgICDplJrngrnkvY3nva7kvJrmmL7npLrkuIDkuKrlsI/nuqLngrlcclxuICog6Ieq5a6a5LmJ5Y+C5pWw77yI6YWN572u5oOz55uR5o6n55qE5pWw5o2u77yJ77yaXHJcbiAqICAgICAgICAgIHdw77yaICAgICAgICAgICAgICAg5LiW55WM5Z2Q5qCH77yM5Y2z55u45a+55LqO5bGP5bmV5bem5LiL6KeS55qE5Z2Q5qCHXHJcbiAqICAgICAgICAgIHJhZGlhbu+8miAgICAgICAgICAg6IqC54K55byn5bqm77yM5Y2V5L2Nz4BcclxuICogICAgICAgICAgbWF0cml4OiAgICAgICAgICAgIOWPmOaNouefqemYt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pdG9yQ29tcCA9IHRoaXMubm9kZS5nZXRDb21wb25lbnQodGhpcy5jdXN0b21Db21wb25lbnROYW1lKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGxlbiA9IHN0cnMubGVuZ3RoOyBpIDwgbGVuOyArK2kpIHtcclxuICAgICAgICAgICAgbGV0IHRtcCA9IG51bGw7XHJcbiAgICAgICAgICAgIHN3aXRjaCAoc3Ryc1tpXSkge1xyXG4gICAgICAgICAgICAgICAgY2FzZSAnd3AnOlxyXG4gICAgICAgICAgICAgICAgICAgIGxldCBwb3MgPSB0aGlzLm5vZGUuY29udmVydFRvV29ybGRTcGFjZUFSKGNjLnYyKDAsIDApKTtcclxuICAgICAgICAgICAgICAgICAgICB0bXAgPSBgKCR7cG9zLngudG9GaXhlZCh0aGlzLmN1c3RvbUxhYmVsRGlnaXQpfSxcXHQke3Bvcy55LnRvRml4ZWQodGhpcy5jdXN0b21MYWJlbERpZ2l0KX0pYDtcclxuICAgICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgICAgIGNhc2UgJ2FuZ2xlJzpcclxuICAgICAgICAgICAgICAgICAgICB0bXAgPSB0aGlzLm5vZGUuYW5nbGUudG9GaXhlZCh0aGlzLmN1c3RvbUxhYmVsRGlnaXQpICsgJ8KwJztcclxuICAgICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgICAgIGNhc2UgJ3JhZGlhbic6XHJcbiAgICAgICAgICAgICAgICAgICAgdG1wID0gKHRoaXMubm9kZS5hbmdsZSAvIDE4MCkudG9GaXhlZCh0aGlzLmN1c3RvbUxhYmVsRGlnaXQpICsgJ8+AJztcclxuICAgICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgICAgIGNhc2UgJ21hdHJpeCc6XHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IG1hdHJpeCA9IHRoaXMubm9kZVsnX3dvcmxkTWF0cml4J10ubTtcclxuICAgICAgICAgICAgICAgICAgICB0bXAgPSAnJztcclxuICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IDQ7ICsraSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBqID0gMDsgaiA8IDQ7ICsraikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IG1tID0gbWF0cml4W2ogKiA0ICsgaV07XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0bXAgKz0gKG1tIDwgMCA/ICdcXHRcXHQnIDogJ1xcdFxcdFxcdCcpICsgbW0udG9GaXhlZCh0aGlzLmN1c3RvbUxhYmVsRGlnaXQpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpICE9PSAzKSB0bXAgKz0gJ1xcbic7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgY2FzZSAncGFyZW50JzpcclxuICAgICAgICAgICAgICAgICAgICB0bXAgPSB0aGlzLm5vZGUucGFyZW50Lm5hbWU7XHJcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlICdjaGlsZHJlbic6XHJcbiAgICAgICAgICAgICAgICAgICAgdG1wID0gJyc7XHJcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgaSA9IDAsIGxlbiA9IHRoaXMubm9kZS5jaGlsZHJlbkNvdW50OyBpIDwgbGVuOyArK2kpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdG1wICs9IGBcXHRcXHRcXHQke2l977yaJHt0aGlzLm5vZGUuY2hpbGRyZW5baV0ubmFtZX1gO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoaSAhPT0gbGVuIC0gMSkgdG1wICs9ICdcXG4nO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgICAgIGNhc2UgJ34nOiB0bXAgPSAnLFxcdCc7IGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgY2FzZSAnISc6IHRtcCA9ICc6XFx0JzsgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlICdAJzogdG1wID0gJyBcXHQnOyBicmVhaztcclxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMubm9kZVtzdHJzW2ldXSAhPT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRtcCA9IHRoaXMubm9kZVtzdHJzW2ldXTtcclxuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHN0cnNbaV0uc3RhcnRzV2l0aCgnIycpICYmIHRoaXMubW9uaXRvckNvbXAgIT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdG1wID0gdGhpcy5tb25pdG9yQ29tcFtzdHJzW2ldLnN1YnN0cmluZygxKV07XHJcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdG1wID0gc3Ryc1tpXTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRtcCAmJiB0bXAubmFtZSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0bXAgPSB0bXAubmFtZTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgaWYgKHR5cGVvZiB0bXAgPT09ICdudW1iZXInKSB7XHJcbiAgICAgICAgICAgICAgICB0bXAgPSB0bXAudG9GaXhlZCh0aGlzLmN1c3RvbUxhYmVsRGlnaXQpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIHN0ciArPSB0bXA7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHRoaXMuY3VzdG9tTGFiZWwuc3RyaW5nID0gc3RyO1xyXG4gICAgfVxyXG5cclxuICAgIHByb3RlY3RlZCBvbkRlc3Ryb3koKSB7XHJcbiAgICAgICAgaWYgKGNjLmlzVmFsaWQodGhpcy5ib2FyZE5vZGUpKSB7XHJcbiAgICAgICAgICAgIHRoaXMuYm9hcmROb2RlLnJlbW92ZUZyb21QYXJlbnQoKTtcclxuICAgICAgICAgICAgdGhpcy5ib2FyZE5vZGUuZGVzdHJveSgpO1xyXG4gICAgICAgIH07XHJcbiAgICAgICAgdGhpcy5ub2RlLnRhcmdldE9mZih0aGlzKTtcclxuICAgIH1cclxufSJdfQ==