var __decorate=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},__extends=this&&this.__extends||(function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}})();!(function(t,e){var n=[],i=t.BABYLON;"object"==typeof exports&&"object"==typeof module?(i=i||require("babylonjs"),module.exports=e(i)):"function"==typeof define&&define.amd?(n.push("babylonjs"),define("babylonjs-post-process",n,e)):"object"==typeof exports?(i=i||require("babylonjs"),exports["babylonjs-post-process"]=e(i)):t.BABYLON=e(i)})(this,(function(t){t=t||this.BABYLON;var t;!(function(t){var e=(function(e){function n(n,i,o,r){void 0===r&&(r=null);var a=e.call(this,r)||this;if(!(r=a.getScene()))return a;a.name=n,a._text,a._font,a.wrapU=t.Texture.CLAMP_ADDRESSMODE,a.wrapV=t.Texture.CLAMP_ADDRESSMODE;var l=a.getFontHeight(i),c=a.getFontWidth(i);a._charSize=Math.max(l.height,c);var f=Math.ceil(a._charSize*o.length),s=a._charSize;a._texture=r.getEngine().createDynamicTexture(f,s,!1,t.Texture.NEAREST_SAMPLINGMODE);var g=a.getSize(),u=document.createElement("canvas");u.width=g.width,u.height=g.height;var h=u.getContext("2d");h.textBaseline="top",h.font=i,h.fillStyle="white",h.imageSmoothingEnabled=!1;for(var x=0;x