{"ast":null,"code":"\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CHTMLmspace = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar mspace_js_1 = require(\"../../common/Wrappers/mspace.js\");\nvar mspace_js_2 = require(\"../../../core/MmlTree/MmlNodes/mspace.js\");\nvar CHTMLmspace = function (_super) {\n __extends(CHTMLmspace, _super);\n function CHTMLmspace() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLmspace.prototype.toCHTML = function (parent) {\n var chtml = this.standardCHTMLnode(parent);\n var _a = this.getBBox(),\n w = _a.w,\n h = _a.h,\n d = _a.d;\n if (w < 0) {\n this.adaptor.setStyle(chtml, 'marginRight', this.em(w));\n w = 0;\n }\n if (w) {\n this.adaptor.setStyle(chtml, 'width', this.em(w));\n }\n h = Math.max(0, h + d);\n if (h) {\n this.adaptor.setStyle(chtml, 'height', this.em(Math.max(0, h)));\n }\n if (d) {\n this.adaptor.setStyle(chtml, 'verticalAlign', this.em(-d));\n }\n };\n CHTMLmspace.kind = mspace_js_2.MmlMspace.prototype.kind;\n return CHTMLmspace;\n}((0, mspace_js_1.CommonMspaceMixin)(Wrapper_js_1.CHTMLWrapper));\nexports.CHTMLmspace = CHTMLmspace;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","defineProperty","exports","value","CHTMLmspace","Wrapper_js_1","require","mspace_js_1","mspace_js_2","_super","apply","arguments","toCHTML","parent","chtml","standardCHTMLnode","_a","getBBox","w","h","adaptor","setStyle","em","Math","max","kind","MmlMspace","CommonMspaceMixin","CHTMLWrapper"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/output/chtml/Wrappers/mspace.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CHTMLmspace = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar mspace_js_1 = require(\"../../common/Wrappers/mspace.js\");\nvar mspace_js_2 = require(\"../../../core/MmlTree/MmlNodes/mspace.js\");\nvar CHTMLmspace = (function (_super) {\n __extends(CHTMLmspace, _super);\n function CHTMLmspace() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CHTMLmspace.prototype.toCHTML = function (parent) {\n var chtml = this.standardCHTMLnode(parent);\n var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d;\n if (w < 0) {\n this.adaptor.setStyle(chtml, 'marginRight', this.em(w));\n w = 0;\n }\n if (w) {\n this.adaptor.setStyle(chtml, 'width', this.em(w));\n }\n h = Math.max(0, h + d);\n if (h) {\n this.adaptor.setStyle(chtml, 'height', this.em(Math.max(0, h)));\n }\n if (d) {\n this.adaptor.setStyle(chtml, 'verticalAlign', this.em(-d));\n }\n };\n CHTMLmspace.kind = mspace_js_2.MmlMspace.prototype.kind;\n return CHTMLmspace;\n}((0, mspace_js_1.CommonMspaceMixin)(Wrapper_js_1.CHTMLWrapper)));\nexports.CHTMLmspace = CHTMLmspace;\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAI,IAAI,IAAI,IAAI,CAACA,SAAS,IAAM,YAAY;EACrD,IAAIC,aAAa,GAAG,SAAAA,CAAUC,CAAC,EAAEC,CAAC,EAAE;IAChCF,aAAa,GAAGG,MAAM,CAACC,cAAc,IAChC;MAAEC,SAAS,EAAE;IAAG,CAAC,YAAYC,KAAK,IAAI,UAAUL,CAAC,EAAEC,CAAC,EAAE;MAAED,CAAC,CAACI,SAAS,GAAGH,CAAC;IAAE,CAAE,IAC5E,UAAUD,CAAC,EAAEC,CAAC,EAAE;MAAE,KAAK,IAAIK,CAAC,IAAIL,CAAC,EAAE,IAAIC,MAAM,CAACK,SAAS,CAACC,cAAc,CAACC,IAAI,CAACR,CAAC,EAAEK,CAAC,CAAC,EAAEN,CAAC,CAACM,CAAC,CAAC,GAAGL,CAAC,CAACK,CAAC,CAAC;IAAE,CAAC;IACrG,OAAOP,aAAa,CAACC,CAAC,EAAEC,CAAC,CAAC;EAC9B,CAAC;EACD,OAAO,UAAUD,CAAC,EAAEC,CAAC,EAAE;IACnB,IAAI,OAAOA,CAAC,KAAK,UAAU,IAAIA,CAAC,KAAK,IAAI,EACrC,MAAM,IAAIS,SAAS,CAAC,sBAAsB,GAAGC,MAAM,CAACV,CAAC,CAAC,GAAG,+BAA+B,CAAC;IAC7FF,aAAa,CAACC,CAAC,EAAEC,CAAC,CAAC;IACnB,SAASW,EAAEA,CAAA,EAAG;MAAE,IAAI,CAACC,WAAW,GAAGb,CAAC;IAAE;IACtCA,CAAC,CAACO,SAAS,GAAGN,CAAC,KAAK,IAAI,GAAGC,MAAM,CAACY,MAAM,CAACb,CAAC,CAAC,IAAIW,EAA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