{"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.SVGmglyph = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar mglyph_js_1 = require(\"../../common/Wrappers/mglyph.js\");\nvar mglyph_js_2 = require(\"../../../core/MmlTree/MmlNodes/mglyph.js\");\nvar SVGmglyph = function (_super) {\n __extends(SVGmglyph, _super);\n function SVGmglyph() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGmglyph.prototype.toSVG = function (parent) {\n var svg = this.standardSVGnode(parent);\n if (this.charWrapper) {\n this.charWrapper.toSVG(svg);\n return;\n }\n var _a = this.node.attributes.getList('src', 'alt'),\n src = _a.src,\n alt = _a.alt;\n var h = this.fixed(this.height);\n var w = this.fixed(this.width);\n var y = this.fixed(this.height + (this.valign || 0));\n var properties = {\n width: w,\n height: h,\n transform: 'translate(0 ' + y + ') matrix(1 0 0 -1 0 0)',\n preserveAspectRatio: 'none',\n 'aria-label': alt,\n href: src\n };\n var img = this.svg('image', properties);\n this.adaptor.append(svg, img);\n };\n SVGmglyph.kind = mglyph_js_2.MmlMglyph.prototype.kind;\n return SVGmglyph;\n}((0, mglyph_js_1.CommonMglyphMixin)(Wrapper_js_1.SVGWrapper));\nexports.SVGmglyph = SVGmglyph;","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","defineProperty","exports","value","SVGmglyph","Wrapper_js_1","require","mglyph_js_1","mglyph_js_2","_super","apply","arguments","toSVG","parent","svg","standardSVGnode","charWrapper","_a","node","attributes","getList","src","alt","h","fixed","height","w","width","y","valign","properties","transform","preserveAspectRatio","href","img","adaptor","append","kind","MmlMglyph","CommonMglyphMixin","SVGWrapper"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/output/svg/Wrappers/mglyph.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.SVGmglyph = void 0;\nvar Wrapper_js_1 = require(\"../Wrapper.js\");\nvar mglyph_js_1 = require(\"../../common/Wrappers/mglyph.js\");\nvar mglyph_js_2 = require(\"../../../core/MmlTree/MmlNodes/mglyph.js\");\nvar SVGmglyph = (function (_super) {\n __extends(SVGmglyph, _super);\n function SVGmglyph() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGmglyph.prototype.toSVG = function (parent) {\n var svg = this.standardSVGnode(parent);\n if (this.charWrapper) {\n this.charWrapper.toSVG(svg);\n return;\n }\n var _a = this.node.attributes.getList('src', 'alt'), src = _a.src, alt = _a.alt;\n var h = this.fixed(this.height);\n var w = this.fixed(this.width);\n var y = this.fixed(this.height + (this.valign || 0));\n var properties = {\n width: w, height: h,\n transform: 'translate(0 ' + y + ') matrix(1 0 0 -1 0 0)',\n preserveAspectRatio: 'none',\n 'aria-label': alt,\n href: src\n };\n var img = this.svg('image', properties);\n this.adaptor.append(svg, img);\n };\n SVGmglyph.kind = mglyph_js_2.MmlMglyph.prototype.kind;\n return SVGmglyph;\n}((0, mglyph_js_1.CommonMglyphMixin)(Wrapper_js_1.SVGWrapper)));\nexports.SVGmglyph = SVGmglyph;\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,SAA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