{"ast":null,"code":"\"use strict\";\n\nvar __values = this && this.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.AbstractDOMAdaptor = void 0;\nvar AbstractDOMAdaptor = function () {\n function AbstractDOMAdaptor(document) {\n if (document === void 0) {\n document = null;\n }\n this.document = document;\n }\n AbstractDOMAdaptor.prototype.node = function (kind, def, children, ns) {\n var e_1, _a;\n if (def === void 0) {\n def = {};\n }\n if (children === void 0) {\n children = [];\n }\n var node = this.create(kind, ns);\n this.setAttributes(node, def);\n try {\n for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {\n var child = children_1_1.value;\n this.append(node, child);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n return node;\n };\n AbstractDOMAdaptor.prototype.setAttributes = function (node, def) {\n var e_2, _a, e_3, _b, e_4, _c;\n if (def.style && typeof def.style !== 'string') {\n try {\n for (var _d = __values(Object.keys(def.style)), _e = _d.next(); !_e.done; _e = _d.next()) {\n var key = _e.value;\n this.setStyle(node, key.replace(/-([a-z])/g, function (_m, c) {\n return c.toUpperCase();\n }), def.style[key]);\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (_e && !_e.done && (_a = _d.return)) _a.call(_d);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n }\n if (def.properties) {\n try {\n for (var _f = __values(Object.keys(def.properties)), _g = _f.next(); !_g.done; _g = _f.next()) {\n var key = _g.value;\n node[key] = def.properties[key];\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (_g && !_g.done && (_b = _f.return)) _b.call(_f);\n } finally {\n if (e_3) throw e_3.error;\n }\n }\n }\n try {\n for (var _h = __values(Object.keys(def)), _j = _h.next(); !_j.done; _j = _h.next()) {\n var key = _j.value;\n if ((key !== 'style' || typeof def.style === 'string') && key !== 'properties') {\n this.setAttribute(node, key, def[key]);\n }\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally {\n try {\n if (_j && !_j.done && (_c = _h.return)) _c.call(_h);\n } finally {\n if (e_4) throw e_4.error;\n }\n }\n };\n AbstractDOMAdaptor.prototype.replace = function (nnode, onode) {\n this.insert(nnode, onode);\n this.remove(onode);\n return onode;\n };\n AbstractDOMAdaptor.prototype.childNode = function (node, i) {\n return this.childNodes(node)[i];\n };\n AbstractDOMAdaptor.prototype.allClasses = function (node) {\n var classes = this.getAttribute(node, 'class');\n return !classes ? [] : classes.replace(/ +/g, ' ').replace(/^ /, '').replace(/ $/, '').split(/ /);\n };\n return AbstractDOMAdaptor;\n}();\nexports.AbstractDOMAdaptor = AbstractDOMAdaptor;","map":{"version":3,"names":["__values","o","s","Symbol","iterator","m","i","call","length","next","value","done","TypeError","Object","defineProperty","exports","AbstractDOMAdaptor","document","prototype","node","kind","def","children","ns","e_1","_a","create","setAttributes","children_1","children_1_1","child","append","e_1_1","error","return","e_2","e_3","_b","e_4","_c","style","_d","keys","_e","key","setStyle","replace","_m","c","toUpperCase","e_2_1","properties","_f","_g","e_3_1","_h","_j","setAttribute","e_4_1","nnode","onode","insert","remove","childNode","childNodes","allClasses","classes","getAttribute","split"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/mathjax-full/js/core/DOMAdaptor.js"],"sourcesContent":["\"use strict\";\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AbstractDOMAdaptor = void 0;\nvar AbstractDOMAdaptor = (function () {\n function AbstractDOMAdaptor(document) {\n if (document === void 0) { document = null; }\n this.document = document;\n }\n AbstractDOMAdaptor.prototype.node = function (kind, def, children, ns) {\n var e_1, _a;\n if (def === void 0) { def = {}; }\n if (children === void 0) { children = []; }\n var node = this.create(kind, ns);\n this.setAttributes(node, def);\n try {\n for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {\n var child = children_1_1.value;\n this.append(node, child);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return node;\n };\n AbstractDOMAdaptor.prototype.setAttributes = function (node, def) {\n var e_2, _a, e_3, _b, e_4, _c;\n if (def.style && typeof (def.style) !== 'string') {\n try {\n for (var _d = __values(Object.keys(def.style)), _e = _d.next(); !_e.done; _e = _d.next()) {\n var key = _e.value;\n this.setStyle(node, key.replace(/-([a-z])/g, function (_m, c) { return c.toUpperCase(); }), def.style[key]);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_e && !_e.done && (_a = _d.return)) _a.call(_d);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n if (def.properties) {\n try {\n for (var _f = __values(Object.keys(def.properties)), _g = _f.next(); !_g.done; _g = _f.next()) {\n var key = _g.value;\n node[key] = def.properties[key];\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (_g && !_g.done && (_b = _f.return)) _b.call(_f);\n }\n finally { if (e_3) throw e_3.error; }\n }\n }\n try {\n for (var _h = __values(Object.keys(def)), _j = _h.next(); !_j.done; _j = _h.next()) {\n var key = _j.value;\n if ((key !== 'style' || typeof (def.style) === 'string') && key !== 'properties') {\n this.setAttribute(node, key, def[key]);\n }\n }\n }\n catch (e_4_1) { e_4 = { error: e_4_1 }; }\n finally {\n try {\n if (_j && !_j.done && (_c = _h.return)) _c.call(_h);\n }\n finally { if (e_4) throw e_4.error; }\n }\n };\n AbstractDOMAdaptor.prototype.replace = function (nnode, onode) {\n this.insert(nnode, onode);\n this.remove(onode);\n return onode;\n };\n AbstractDOMAdaptor.prototype.childNode = function (node, i) {\n return this.childNodes(node)[i];\n };\n AbstractDOMAdaptor.prototype.allClasses = function (node) {\n var classes = this.getAttribute(node, 'class');\n return (!classes ? [] :\n classes.replace(/ +/g, ' ').replace(/^ /, '').replace(/ $/, '').split(/ /));\n };\n return AbstractDOMAdaptor;\n}());\nexports.AbstractDOMAdaptor = AbstractDOMAdaptor;\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,QAAQ,GAAI,IAAI,IAAI,IAAI,CAACA,QAAQ,IAAK,UAASC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,OAAOC,MAAM,KAAK,UAAU,IAAIA,MAAM,CAACC,QAAQ;IAAEC,CAAC,GAAGH,CAAC,IAAID,CAAC,CAACC,CAAC,CAAC;IAAEI,CAAC,GAAG,CAAC;EAC7E,IAAID,CAAC,EAAE,OAAOA,CAAC,CAACE,IAAI,CAACN,CAAC,CAAC;EACvB,IAAIA,CAAC,IAAI,OAAOA,CAAC,CAACO,MAAM,KAAK,QAAQ,EAAE,OAAO;IAC1CC,IAAI,EAAE,SAAAA,CAAA,EAAY;MACd,IAAIR,CAAC,IAAIK,CAAC,IAAIL,CAAC,CAACO,MAAM,EAAEP,CAAC,GAAG,KAAK,CAAC;MAClC,OAAO;QAAES,KAAK,EAAET,CAAC,IAAIA,CAAC,CAACK,CAAC,EAAE,CAAC;QAAEK,IAAI,EAAE,CAACV;M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