(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等 * 脚本属性: 脚本实例对象的属性 * ————————————————————————举个栗子———————————————————————— * 脚本: 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————举个栗子————\n脚本:Hero\n参数:wp,scale,angle,#angle,#hp\n↑↑↑用英文逗号或回车分隔↑↑↑\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0c1xcU2NyaXB0XFxEYXRhQm9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztnRkF3QmdGO0FBQ2hGLE1BQU0sQ0FBQyxXQUFXLENBQUMsR0FBRyxJQUFJLENBQUM7QUFDM0IsSUFBTSxXQUFXLE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5L2c6ICFOiAgICDmsLTnha7ogonniYfppa0oMjcxODU3MDlAcXEuY29tKVxyXG4gKiDmj4/ov7A6ICAgIOaVsOaNrueci+adv1xyXG4gKiDoioLngrnmjILkuIror6Xnu4Tku7bvvIzlsLHlj6/ku6XlnKjmuLjmiI/ov5DooYzov4fnqIvkuK3vvIznm7Top4LnnIvliLDoioLngrnku7vmhI/lsZ7mgKfvvIjljIXmi6zoioLngrnohJrmnKzkuK3nmoTlsZ7mgKfvvIlcclxuICog5Y+v5Lul5Zu+5b2i5YyW5bGV56S65Lul5LiL5Zub56eN5pWw5o2u77yaXHJcbiAqICAgICAgICAgIOi9ruW7k+ebkuWtkO+8miAgICAgICAgICDpmo/oioLngrnml4vovazvvIzku6PooajoioLngrnnmoTlrp7ml7bnn6nlvaJcclxuICogICAgICAgICAg56Kw5pKe55uS5a2Q77yaICAgICAgICAgIOS4jemaj+iKgueCueaXi+i9rO+8jOS4gOiIrOS7o+ihqOeisOaSnuiMg+WbtFxyXG4gKiAgICAgICAgICDoh6rlrprkuYnlj4LmlbDvvJogICAgICAgIOiKgueCueiHqui6q+WxnuaAp++8jOS7peWPiuiKgueCueS7u+aEj+iEmuacrOS4reeahOWxnuaAp1xyXG4gKiAgICAgICAgICDplJrngrnvvJogICAgICAgICAgICAg6ZSa54K55L2N572u5Lya5pi+56S65LiA5Liq5bCP57qi54K5XHJcbiAqIOiHquWumuS5ieWPguaVsO+8iOmFjee9ruaDs+ebkeaOp+eahOaVsOaNru+8ie+8mlxyXG4gKiAgICAgICAgICB3cO+8miAgICAgICAgICAgICAgIOS4lueVjOWdkOagh++8jOWNs+ebuOWvueS6juWxj+W5leW3puS4i+inkueahOWdkOagh1xyXG4gKiAgICAgICAgICByYWRpYW7vvJogICAgICAgICAgIOiKgueCueW8p+W6pu+8jOWNleS9jc+AXHJcbiAqICAgICAgICAgIG1hdHJpeDogICAgICAgICAgICDlj5jmjaLnn6npmLVcclxuICogICAgICAgICAgcGFyZW5077yaICAgICAgICAgICDniLboioLngrlcclxuICogICAgICAgICAgY2hpbGRyZW7vvJogICAgICAgICDlrZDoioLngrlcclxuICogICAgICAgICAg6Ieq6Lqr5bGe5oCn77yaICAgICAgICAgIHNjYWxlLHdpZHRoLG9wYWNpdHnnrYlcclxuICogICAgICAgICAg6ISa5pys5bGe5oCn77yaICAgICAgICAgIOiEmuacrOWunuS+i+WvueixoeeahOWxnuaAp1xyXG4gKiDigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTkuL7kuKrmoJflrZDigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJRcclxuICog6ISa5pys77yaICAgIEhlcm9cclxuICog5Y+C5pWw77yaICAgIHdwLHNjYWxlLGFuZ2xlLCNhbmdsZSwjaHDvvIjnlKjoi7HmlofpgJflj7fmiJblm57ovabliIbpmpTvvIlcclxuICog5pi+56S657uT5p6c77ya5LiW55WM5Z2Q5qCHLOiKgueCuXNjYWxlLOiKgueCuWFuZ2xl77yMSGVyb+WvueixoeeahGFuZ2xlLEhlcm/lr7nosaHnmoRocFxyXG4gKiDigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTmuKnppqjmj5DnpLrigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJTigJRcclxuICog5Yid5aeL5YyW55qE5pe25YCZ77yM6K6+572u5YWo5bGA5Y+Y6YePd2luZG93WydEQVRBQk9BUkQnXSA9IGZhbHNl5Y+v5bGP6JS95pys6aG555uu5omA5pyJRGF0YUJvYXJk77yM5LiN5Lya5Lqn55Sf5Lu75L2V6aKd5aSW5byA6ZSAXFxuXHJcbioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq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RlLmNvbnZlcnRUb1dvcmxkU3BhY2VBUihjYy52MigwLCAwKSk7XHJcbiAgICAgICAgICAgICAgICAgICAgdG1wID0gYCgke3Bvcy54LnRvRml4ZWQodGhpcy5jdXN0b21MYWJlbERpZ2l0KX0sXFx0JHtwb3MueS50b0ZpeGVkKHRoaXMuY3VzdG9tTGFiZWxEaWdpdCl9KWA7XHJcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlICdhbmdsZSc6XHJcbiAgICAgICAgICAgICAgICAgICAgdG1wID0gdGhpcy5ub2RlLmFuZ2xlLnRvRml4ZWQodGhpcy5jdXN0b21MYWJlbERpZ2l0KSArICfCsCc7XHJcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlICdyYWRpYW4nOlxyXG4gICAgICAgICAgICAgICAgICAgIHRtcCA9ICh0aGlzLm5vZGUuYW5nbGUgLyAxODApLnRvRml4ZWQodGhpcy5jdXN0b21MYWJlbERpZ2l0KSArICfPgCc7XHJcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlICdtYXRyaXgnOlxyXG4gICAgICAgICAgICAgICAgICAgIGxldCBtYXRyaXggPSB0aGlzLm5vZGVbJ193b3JsZE1hdHJpeCddLm07XHJcbiAgICAgICAgICAgICAgICAgICAgdG1wID0gJyc7XHJcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCA0OyArK2kpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgaiA9IDA7IGogPCA0OyArK2opIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBtbSA9IG1hdHJpeFtqICogNCArIGldO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG1wICs9IChtbSA8IDAgPyAnXFx0XFx0JyA6ICdcXHRcXHRcXHQnKSArIG1tLnRvRml4ZWQodGhpcy5jdXN0b21MYWJlbERpZ2l0KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoaSAhPT0gMykgdG1wICs9ICdcXG4nO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgICAgIGNhc2UgJ3BhcmVudCc6XHJcbiAgICAgICAgICAgICAgICAgICAgdG1wID0gdGhpcy5ub2RlLnBhcmVudC5uYW1lO1xyXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgY2FzZSAnY2hpbGRyZW4nOlxyXG4gICAgICAgICAgICAgICAgICAgIHRtcCA9ICcnO1xyXG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IGkgPSAwLCBsZW4gPSB0aGlzLm5vZGUuY2hpbGRyZW5Db3VudDsgaSA8IGxlbjsgKytpKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRtcCArPSBgXFx0XFx0XFx0JHtpfe+8miR7dGhpcy5ub2RlLmNoaWxkcmVuW2ldLm5hbWV9YDtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGkgIT09IGxlbiAtIDEpIHRtcCArPSAnXFxuJztcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlICd+JzogdG1wID0gJyxcXHQnOyBicmVhaztcclxuICAgICAgICAgICAgICAgIGNhc2UgJyEnOiB0bXAgPSAnOlxcdCc7IGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgY2FzZSAnQCc6IHRtcCA9ICcgXFx0JzsgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLm5vZGVbc3Ryc1tpXV0gIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0bXAgPSB0aGlzLm5vZGVbc3Ryc1tpXV07XHJcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChzdHJzW2ldLnN0YXJ0c1dpdGgoJyMnKSAmJiB0aGlzLm1vbml0b3JDb21wICE9PSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRtcCA9IHRoaXMubW9uaXRvckNvbXBbc3Ryc1tpXS5zdWJzdHJpbmcoMSldO1xyXG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRtcCA9IHN0cnNbaV07XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0bXAgJiYgdG1wLm5hbWUpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdG1wID0gdG1wLm5hbWU7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGlmICh0eXBlb2YgdG1wID09PSAnbnVtYmVyJykge1xyXG4gICAgICAgICAgICAgICAgdG1wID0gdG1wLnRvRml4ZWQodGhpcy5jdXN0b21MYWJlbERpZ2l0KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBzdHIgKz0gdG1wO1xyXG4gICAgICAgIH1cclxuICAgICAgICB0aGlzLmN1c3RvbUxhYmVsLnN0cmluZyA9IHN0cjtcclxuICAgIH1cclxuXHJcbiAgICBwcm90ZWN0ZWQgb25EZXN0cm95KCkge1xyXG4gICAgICAgIGlmIChjYy5pc1ZhbGlkKHRoaXMuYm9hcmROb2RlKSkge1xyXG4gICAgICAgICAgICB0aGlzLmJvYXJkTm9kZS5yZW1vdmVGcm9tUGFyZW50KCk7XHJcbiAgICAgICAgICAgIHRoaXMuYm9hcmROb2RlLmRlc3Ryb3koKTtcclxuICAgICAgICB9O1xyXG4gICAgICAgIHRoaXMubm9kZS50YXJnZXRPZmYodGhpcyk7XHJcbiAgICB9XHJcbn0iXX0=