@cnblogs/markdown-it-presets 1.7.0-beta1 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mathRenderer=e():t.mathRenderer=e()}(self,(function(){return function(){"use strict";var t,e,n={d:function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){void 0!==y&&y.toStringTag&&Object.defineProperty(t,y.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},r={};function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(r),n.d(r,{createMathJaxRenderer:function(){return ge}}),function(t){t[t.MathJax2=0]="MathJax2",t[t.MathJax3=1]="MathJax3"}(e||(e={}));var i=(o(t={},e.MathJax2,{entryScript:"https://mathjax.cnblogs.com/2_7_5/MathJax.js?config=TeX-AMS-MML_HTMLorMML&delayStartupUntil=configured&v=20200504",document:window.document,engine:e.MathJax2}),o(t,e.MathJax3,{entryScript:"https://mathjax.cnblogs.com/3_2_1/es5/tex-mml-chtml.js",document:window.document,engine:e.MathJax3}),t),a=function(t,e){return t===e||t!=t&&e!=e},u=function(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1},c=Array.prototype.splice;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(t){var e=this.__data__,n=u(e,t);return!(n<0||(n==e.length-1?e.pop():c.call(e,n,1),--this.size,0))},s.prototype.get=function(t){var e=this.__data__,n=u(e,t);return n<0?void 0:e[n][1]},s.prototype.has=function(t){return u(this.__data__,t)>-1},s.prototype.set=function(t,e){var n=this.__data__,r=u(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var l,f=s,p="object"==typeof global&&global&&global.Object===Object&&global,d="object"==typeof self&&self&&self.Object===Object&&self,h=p||d||Function("return this")(),y=h.Symbol,v=y,b=Object.prototype,_=b.hasOwnProperty,g=b.toString,m=v?v.toStringTag:void 0,j=Object.prototype.toString,x=v?v.toStringTag:void 0,O=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?function(t){var e=_.call(t,m),n=t[m];try{t[m]=void 0;var r=!0}catch(t){}var o=g.call(t);return r&&(e?t[m]=n:delete t[m]),o}(t):function(t){return j.call(t)}(t)},w=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},M=function(t){if(!w(t))return!1;var e=O(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},S=h["__core-js_shared__"],T=(l=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",P=Function.prototype.toString,k=/^\[object .+?Constructor\]$/,J=Function.prototype,C=Object.prototype,A=J.toString,z=C.hasOwnProperty,E=RegExp("^"+A.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=function(t){return!(!w(t)||(e=t,T&&T in e))&&(M(t)?E:k).test(function(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e},L=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return H(n)?n:void 0},$=L(h,"Map"),F=L(Object,"create"),R=Object.prototype.hasOwnProperty,D=Object.prototype.hasOwnProperty;function I(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}I.prototype.clear=function(){this.__data__=F?F(null):{},this.size=0},I.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},I.prototype.get=function(t){var e=this.__data__;if(F){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(e,t)?e[t]:void 0},I.prototype.has=function(t){var e=this.__data__;return F?void 0!==e[t]:D.call(e,t)},I.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=F&&void 0===e?"__lodash_hash_undefined__":e,this};var U=I,q=function(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map};function N(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}N.prototype.clear=function(){this.size=0,this.__data__={hash:new U,map:new($||f),string:new U}},N.prototype.delete=function(t){var e=q(this,t).delete(t);return this.size-=e?1:0,e},N.prototype.get=function(t){return q(this,t).get(t)},N.prototype.has=function(t){return q(this,t).has(t)},N.prototype.set=function(t,e){var n=q(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var B=N;function V(t){var e=this.__data__=new f(t);this.size=e.size}V.prototype.clear=function(){this.__data__=new f,this.size=0},V.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},V.prototype.get=function(t){return this.__data__.get(t)},V.prototype.has=function(t){return this.__data__.has(t)},V.prototype.set=function(t,e){var n=this.__data__;if(n instanceof f){var r=n.__data__;if(!$||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new B(r)}return n.set(t,e),this.size=n.size,this};var G,Q,W=V,X=function(){try{var t=L(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),K=function(t,e,n){"__proto__"==e&&X?X(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Y=function(t,e,n){(void 0!==n&&!a(t[e],n)||void 0===n&&!(e in t))&&K(t,e,n)},Z=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),a=i.length;a--;){var u=i[++r];if(!1===e(o[u],u,o))break}return t},tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,et=tt&&"object"==typeof module&&module&&!module.nodeType&&module,nt=et&&et.exports===tt?h.Buffer:void 0,rt=nt?nt.allocUnsafe:void 0,ot=h.Uint8Array,it=function(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new ot(r).set(new ot(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)},at=Object.create,ut=function(){function t(){}return function(e){if(!w(e))return{};if(at)return at(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),ct=(G=Object.getPrototypeOf,Q=Object,function(t){return G(Q(t))}),st=Object.prototype,lt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||st)},ft=function(t){return null!=t&&"object"==typeof t},pt=function(t){return ft(t)&&"[object Arguments]"==O(t)},dt=Object.prototype,ht=dt.hasOwnProperty,yt=dt.propertyIsEnumerable,vt=pt(function(){return arguments}())?pt:function(t){return ft(t)&&ht.call(t,"callee")&&!yt.call(t,"callee")},bt=vt,_t=Array.isArray,gt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},mt=function(t){return null!=t&&gt(t.length)&&!M(t)},jt="object"==typeof exports&&exports&&!exports.nodeType&&exports,xt=jt&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=xt&&xt.exports===jt?h.Buffer:void 0,wt=(Ot?Ot.isBuffer:void 0)||function(){return!1},Mt=Function.prototype,St=Object.prototype,Tt=Mt.toString,Pt=St.hasOwnProperty,kt=Tt.call(Object),Jt={};Jt["[object Float32Array]"]=Jt["[object Float64Array]"]=Jt["[object Int8Array]"]=Jt["[object Int16Array]"]=Jt["[object Int32Array]"]=Jt["[object Uint8Array]"]=Jt["[object Uint8ClampedArray]"]=Jt["[object Uint16Array]"]=Jt["[object Uint32Array]"]=!0,Jt["[object Arguments]"]=Jt["[object Array]"]=Jt["[object ArrayBuffer]"]=Jt["[object Boolean]"]=Jt["[object DataView]"]=Jt["[object Date]"]=Jt["[object Error]"]=Jt["[object Function]"]=Jt["[object Map]"]=Jt["[object Number]"]=Jt["[object Object]"]=Jt["[object RegExp]"]=Jt["[object Set]"]=Jt["[object String]"]=Jt["[object WeakMap]"]=!1;var Ct,At="object"==typeof exports&&exports&&!exports.nodeType&&exports,zt=At&&"object"==typeof module&&module&&!module.nodeType&&module,Et=zt&&zt.exports===At&&p.process,Ht=function(){try{return zt&&zt.require&&zt.require("util").types||Et&&Et.binding&&Et.binding("util")}catch(t){}}(),Lt=Ht&&Ht.isTypedArray,$t=Lt?function(t){return function(e){return t(e)}}(Lt):function(t){return ft(t)&&gt(t.length)&&!!Jt[O(t)]},Ft=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Rt=Object.prototype.hasOwnProperty,Dt=function(t,e,n){var r=t[e];Rt.call(t,e)&&a(r,n)&&(void 0!==n||e in t)||K(t,e,n)},It=/^(?:0|[1-9]\d*)$/,Ut=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&It.test(t))&&t>-1&&t%1==0&&t<e},qt=Object.prototype.hasOwnProperty,Nt=function(t,e){var n=_t(t),r=!n&&bt(t),o=!n&&!r&&wt(t),i=!n&&!r&&!o&&$t(t),a=n||r||o||i,u=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=u.length;for(var s in t)!e&&!qt.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ut(s,c))||u.push(s);return u},Bt=Object.prototype.hasOwnProperty,Vt=function(t){if(!w(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=lt(t),n=[];for(var r in t)("constructor"!=r||!e&&Bt.call(t,r))&&n.push(r);return n},Gt=function(t){return mt(t)?Nt(t,!0):Vt(t)},Qt=function(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var u=e[i],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),o?K(n,u,c):Dt(n,u,c)}return n}(t,Gt(t))},Wt=function(t,e,n,r,o,i,a){var u,c=Ft(t,n),s=Ft(e,n),l=a.get(s);if(l)Y(t,n,l);else{var f=i?i(c,s,n+"",t,e,a):void 0,p=void 0===f;if(p){var d=_t(s),h=!d&&wt(s),y=!d&&!h&&$t(s);f=s,d||h||y?_t(c)?f=c:ft(u=c)&&mt(u)?f=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(c):h?(p=!1,f=function(t,e){if(e)return t.slice();var n=t.length,r=rt?rt(n):new t.constructor(n);return t.copy(r),r}(s,!0)):y?(p=!1,f=it(s,!0)):f=[]:function(t){if(!ft(t)||"[object Object]"!=O(t))return!1;var e=ct(t);if(null===e)return!0;var n=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Tt.call(n)==kt}(s)||bt(s)?(f=c,bt(c)?f=Qt(c):w(c)&&!M(c)||(f=function(t){return"function"!=typeof t.constructor||lt(t)?{}:ut(ct(t))}(s))):p=!1}p&&(a.set(s,f),o(f,s,r,i,a),a.delete(s)),Y(t,n,f)}},Xt=function t(e,n,r,o,i){e!==n&&Z(n,(function(a,u){if(i||(i=new W),w(a))Wt(e,n,u,r,t,o,i);else{var c=o?o(Ft(e,u),a,u+"",e,n,i):void 0;void 0===c&&(c=a),Y(e,u,c)}}),Gt)},Kt=function(t){return t},Yt=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Zt=Math.max,te=X?function(t,e){return X(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Kt,ee=Date.now,ne=function(t){var e=0,n=0;return function(){var r=ee(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(te),re=function(t,e){return ne(function(t,e,n){return e=Zt(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Zt(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=r[o];return u[e]=n(a),Yt(t,this,u)}}(t,e,Kt),t+"")},oe=(Ct=function(t,e,n){Xt(t,e,n)},re((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Ct.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!w(n))return!1;var r=typeof e;return!!("number"==r?mt(n)&&Ut(e,n.length):"string"==r&&e in n)&&a(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var u=e[n];u&&Ct(t,u,n)}return t}))),ie=[],ae=function(t){t&&clearTimeout(t)},ue=function(t,e){var n=ie.findIndex((function(n){return t&&n[0]===t||n[0]===e}));n>=0&&ie.splice(n,1)},ce={},se=function(){return ce},le=function(t){var e,n=t.src,r=t.id,o=t.timeoutSeconds,i=t.appendTo,a=t.executionStrategy;return function(t){var e,n,r=t.url,o=t.id,i=t.timeoutSeconds,a=t.appendTo,u=t.hostElementTagName,c=t.beforeElementCreateCallback,s=a?a.ownerDocument:document,l=null!==(n=null!==(e=s.defaultView)&&void 0!==e?e:s.parentWindow)&&void 0!==n?n:window,f=function(t,e){var n=ie.find((function(n){return t&&n[0]===t||n[0]===e}));return(null!=n?n:[])[1]}(s!==document?"load-resource-to-another-window-context-"+l.name+"-"+o:o,r);if(f)return f;var p=s.querySelector("".concat(u,"#").concat(o));return(p=(p=p||"script"===u&&s.querySelector('script[src="'.concat(r,'"]')))||"link"===u&&s.querySelector('link[href="'.concat(r,'"]')))?Promise.resolve(p):(f=new Promise((function(t,e){var n;n=u,function(n){var u;n.id=null!=o?o:"",null!=a||(a=s.head),i=i<=0?5:i,n instanceof HTMLLinkElement?(n.href=r,n.rel="stylesheet",n.type="text/css"):n instanceof HTMLScriptElement&&(n.src=r,n.type="text/javascript",n.defer=!0),n.onload=function(){ae(u),ue(o,r),t(n)},n.onerror=function(t){ae(u),n.remove(),ue(o,r),e(t)},null==c||c.call(void 0,n),a.append(n),u=setTimeout((function(){ae(u),n.remove(),ue(o,r),e("timeout after ".concat(i," seconds"))}),1e3*i)}(document.createElement(n))})),ie.push([o||r,f]),f)}({url:n,hostElementTagName:"script",timeoutSeconds:null!==(e=null!=o?o:se().timeoutSeconds)&&void 0!==e?e:5,id:r,appendTo:null!=i?i:se().appendTo,beforeElementCreateCallback:function(t){t instanceof HTMLScriptElement&&("async"===(null!=a?a:se().executionStrategy)?(t.async=!0,t.defer=!1):(t.defer=!0,t.async=!1))}})};function fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function de(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function he(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ye(t,e,n){return e&&he(t.prototype,e),n&&he(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var be=function(){function t(){de(this,t),ve(this,"_defaultConfig",i[e.MathJax2]),ve(this,"_defaultMathJaxConfig",{tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]],processClass:"math",processEscapes:!0},TeX:{equationNumbers:{autoNumber:"AMS",useLabelIds:!0},extensions:["extpfeil.js","mediawiki-texvc.js"],Macros:{bm:"\\boldsymbol"}},"HTML-CSS":{linebreaks:{automatic:!0}},SVG:{linebreaks:{automatic:!0}},skipStartupTypeset:!0}),ve(this,"_config",this._defaultConfig)}return ye(t,[{key:"_global",get:function(){var t;return null!==(t=this._config.document.defaultView)&&void 0!==t?t:window}},{key:"render",value:function(t){var e=this;return this.init().then((function(n){if(n){var r=e._config.onRendered;n.Hub.Queue(["Typeset",n.Hub,t]),null!=r&&n.Hub.Queue((function(){return r(n)}))}})).catch(console.warn)}},{key:"config",value:function(t){return this._config=oe({},this._defaultConfig,t),this}},{key:"init",value:function(){var t=this;if(this._initTask)return this._initTask;var e=this._config,n=e.entryScript,r=e.tapMathJaxConfig,o=e.document;return this._initTask=le({src:n,id:"mathjax",timeoutSeconds:10,appendTo:o.head}).then((function(){var e,n=t._global.MathJax;if(n)return n.Hub.Config(null!==(e=null==r?void 0:r.call(void 0,Object.assign({},t._defaultMathJaxConfig)))&&void 0!==e?e:pe({},t._defaultMathJaxConfig)),n.Hub.Configured(),n})).catch((function(){return t._initTask=void 0}))}}]),t}(),_e=function(){function t(){de(this,t),ve(this,"_defaultConfig",i[e.MathJax3]),ve(this,"_defaultMathJaxConfig",{tex:{inlineMath:[["$","$"],["\\(","\\)"]],processEscapes:!0,tags:"ams",useLabelIds:!0,macros:{bm:"\\boldsymbol"},packages:{"[+]":["noerrors","extpfeil"]}},options:{processHtmlClass:"math",ignoreHtmlClass:"tex2jax_ignore"},loader:{load:["[tex]/noerrors","[tex]/extpfeil"]},startup:{typeset:!1}}),ve(this,"_config",this._defaultConfig)}return ye(t,[{key:"config",value:function(t){return this._config=oe({},this._defaultConfig,t),this}},{key:"render",value:function(t){var e=this;return this.init().then((function(n){n&&(n.startup.promise=n.startup.promise.then((function(){return n.typesetPromise([t]).then((function(){var t;null===(t=e._config.onRendered)||void 0===t||t.call(void 0,n)}))})))})).catch(console.warn)}},{key:"init",value:function(){var t,e=this;return(null!==(t=this._initTask)&&void 0!==t?t:this._initTask=new Promise((function(t,n){var r,o,i=e._config,a=i.entryScript,u=i.tapMathJaxConfig,c=null!==(r=i.document.defaultView)&&void 0!==r?r:window;c.MathJax=null!==(o=null==u?void 0:u.call(void 0,pe({},e._defaultMathJaxConfig)))&&void 0!==o?o:pe({},e._defaultMathJaxConfig),c.MathJax.startup||(c.MathJax.startup={}),c.MathJax.startup.ready=function(){var e,n;null===(e=c.MathJax)||void 0===e||null===(n=e.startup)||void 0===n||n.defaultReady(),t(c.MathJax)},le({src:a,id:"mathjax",executionStrategy:"defer",appendTo:c.document.head}).catch(n)}))).catch((function(){return e._initTask=void 0}))}}]),t}(),ge=function(t){switch(t.engine){case e.MathJax2:return(new be).config(t);case e.MathJax3:return(new _e).config(t);default:throw Error("Renderer unavailable")}};return r}()}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mathRenderer=e():t.mathRenderer=e()}(self,(function(){return function(){"use strict";var t,e,n={d:function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){void 0!==y&&y.toStringTag&&Object.defineProperty(t,y.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},r={};function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(r),n.d(r,{createMathJaxRenderer:function(){return ge}}),function(t){t[t.MathJax2=0]="MathJax2",t[t.MathJax3=1]="MathJax3"}(e||(e={}));var i=(o(t={},e.MathJax2,{entryScript:"https://mathjax.cnblogs.com/2_7_5/MathJax.js?config=TeX-AMS-MML_HTMLorMML&delayStartupUntil=configured&v=20200504",document:window.document,engine:e.MathJax2}),o(t,e.MathJax3,{entryScript:"https://mathjax.cnblogs.com/3_2_1/es5/tex-mml-chtml.js",document:window.document,engine:e.MathJax3}),t),a=function(t,e){return t===e||t!=t&&e!=e},u=function(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1},c=Array.prototype.splice;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(t){var e=this.__data__,n=u(e,t);return!(n<0||(n==e.length-1?e.pop():c.call(e,n,1),--this.size,0))},s.prototype.get=function(t){var e=this.__data__,n=u(e,t);return n<0?void 0:e[n][1]},s.prototype.has=function(t){return u(this.__data__,t)>-1},s.prototype.set=function(t,e){var n=this.__data__,r=u(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var l,f=s,p="object"==typeof global&&global&&global.Object===Object&&global,d="object"==typeof self&&self&&self.Object===Object&&self,h=p||d||Function("return this")(),y=h.Symbol,v=y,b=Object.prototype,_=b.hasOwnProperty,g=b.toString,m=v?v.toStringTag:void 0,j=Object.prototype.toString,x=v?v.toStringTag:void 0,O=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?function(t){var e=_.call(t,m),n=t[m];try{t[m]=void 0;var r=!0}catch(t){}var o=g.call(t);return r&&(e?t[m]=n:delete t[m]),o}(t):function(t){return j.call(t)}(t)},w=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},M=function(t){if(!w(t))return!1;var e=O(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},S=h["__core-js_shared__"],T=(l=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",P=Function.prototype.toString,k=/^\[object .+?Constructor\]$/,J=Function.prototype,C=Object.prototype,A=J.toString,z=C.hasOwnProperty,E=RegExp("^"+A.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=function(t){return!(!w(t)||(e=t,T&&T in e))&&(M(t)?E:k).test(function(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e},L=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return H(n)?n:void 0},$=L(h,"Map"),F=L(Object,"create"),R=Object.prototype.hasOwnProperty,D=Object.prototype.hasOwnProperty;function I(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}I.prototype.clear=function(){this.__data__=F?F(null):{},this.size=0},I.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},I.prototype.get=function(t){var e=this.__data__;if(F){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(e,t)?e[t]:void 0},I.prototype.has=function(t){var e=this.__data__;return F?void 0!==e[t]:D.call(e,t)},I.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=F&&void 0===e?"__lodash_hash_undefined__":e,this};var U=I,q=function(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map};function N(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}N.prototype.clear=function(){this.size=0,this.__data__={hash:new U,map:new($||f),string:new U}},N.prototype.delete=function(t){var e=q(this,t).delete(t);return this.size-=e?1:0,e},N.prototype.get=function(t){return q(this,t).get(t)},N.prototype.has=function(t){return q(this,t).has(t)},N.prototype.set=function(t,e){var n=q(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var B=N;function V(t){var e=this.__data__=new f(t);this.size=e.size}V.prototype.clear=function(){this.__data__=new f,this.size=0},V.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},V.prototype.get=function(t){return this.__data__.get(t)},V.prototype.has=function(t){return this.__data__.has(t)},V.prototype.set=function(t,e){var n=this.__data__;if(n instanceof f){var r=n.__data__;if(!$||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new B(r)}return n.set(t,e),this.size=n.size,this};var Q,G,W=V,X=function(){try{var t=L(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),K=function(t,e,n){"__proto__"==e&&X?X(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Y=function(t,e,n){(void 0!==n&&!a(t[e],n)||void 0===n&&!(e in t))&&K(t,e,n)},Z=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),a=i.length;a--;){var u=i[++r];if(!1===e(o[u],u,o))break}return t},tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,et=tt&&"object"==typeof module&&module&&!module.nodeType&&module,nt=et&&et.exports===tt?h.Buffer:void 0,rt=nt?nt.allocUnsafe:void 0,ot=h.Uint8Array,it=function(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new ot(r).set(new ot(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)},at=Object.create,ut=function(){function t(){}return function(e){if(!w(e))return{};if(at)return at(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),ct=(Q=Object.getPrototypeOf,G=Object,function(t){return Q(G(t))}),st=Object.prototype,lt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||st)},ft=function(t){return null!=t&&"object"==typeof t},pt=function(t){return ft(t)&&"[object Arguments]"==O(t)},dt=Object.prototype,ht=dt.hasOwnProperty,yt=dt.propertyIsEnumerable,vt=pt(function(){return arguments}())?pt:function(t){return ft(t)&&ht.call(t,"callee")&&!yt.call(t,"callee")},bt=vt,_t=Array.isArray,gt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},mt=function(t){return null!=t&&gt(t.length)&&!M(t)},jt="object"==typeof exports&&exports&&!exports.nodeType&&exports,xt=jt&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=xt&&xt.exports===jt?h.Buffer:void 0,wt=(Ot?Ot.isBuffer:void 0)||function(){return!1},Mt=Function.prototype,St=Object.prototype,Tt=Mt.toString,Pt=St.hasOwnProperty,kt=Tt.call(Object),Jt={};Jt["[object Float32Array]"]=Jt["[object Float64Array]"]=Jt["[object Int8Array]"]=Jt["[object Int16Array]"]=Jt["[object Int32Array]"]=Jt["[object Uint8Array]"]=Jt["[object Uint8ClampedArray]"]=Jt["[object Uint16Array]"]=Jt["[object Uint32Array]"]=!0,Jt["[object Arguments]"]=Jt["[object Array]"]=Jt["[object ArrayBuffer]"]=Jt["[object Boolean]"]=Jt["[object DataView]"]=Jt["[object Date]"]=Jt["[object Error]"]=Jt["[object Function]"]=Jt["[object Map]"]=Jt["[object Number]"]=Jt["[object Object]"]=Jt["[object RegExp]"]=Jt["[object Set]"]=Jt["[object String]"]=Jt["[object WeakMap]"]=!1;var Ct,At="object"==typeof exports&&exports&&!exports.nodeType&&exports,zt=At&&"object"==typeof module&&module&&!module.nodeType&&module,Et=zt&&zt.exports===At&&p.process,Ht=function(){try{return zt&&zt.require&&zt.require("util").types||Et&&Et.binding&&Et.binding("util")}catch(t){}}(),Lt=Ht&&Ht.isTypedArray,$t=Lt?function(t){return function(e){return t(e)}}(Lt):function(t){return ft(t)&&gt(t.length)&&!!Jt[O(t)]},Ft=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Rt=Object.prototype.hasOwnProperty,Dt=function(t,e,n){var r=t[e];Rt.call(t,e)&&a(r,n)&&(void 0!==n||e in t)||K(t,e,n)},It=/^(?:0|[1-9]\d*)$/,Ut=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&It.test(t))&&t>-1&&t%1==0&&t<e},qt=Object.prototype.hasOwnProperty,Nt=function(t,e){var n=_t(t),r=!n&&bt(t),o=!n&&!r&&wt(t),i=!n&&!r&&!o&&$t(t),a=n||r||o||i,u=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=u.length;for(var s in t)!e&&!qt.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ut(s,c))||u.push(s);return u},Bt=Object.prototype.hasOwnProperty,Vt=function(t){if(!w(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=lt(t),n=[];for(var r in t)("constructor"!=r||!e&&Bt.call(t,r))&&n.push(r);return n},Qt=function(t){return mt(t)?Nt(t,!0):Vt(t)},Gt=function(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var u=e[i],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),o?K(n,u,c):Dt(n,u,c)}return n}(t,Qt(t))},Wt=function(t,e,n,r,o,i,a){var u,c=Ft(t,n),s=Ft(e,n),l=a.get(s);if(l)Y(t,n,l);else{var f=i?i(c,s,n+"",t,e,a):void 0,p=void 0===f;if(p){var d=_t(s),h=!d&&wt(s),y=!d&&!h&&$t(s);f=s,d||h||y?_t(c)?f=c:ft(u=c)&&mt(u)?f=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(c):h?(p=!1,f=function(t,e){if(e)return t.slice();var n=t.length,r=rt?rt(n):new t.constructor(n);return t.copy(r),r}(s,!0)):y?(p=!1,f=it(s,!0)):f=[]:function(t){if(!ft(t)||"[object Object]"!=O(t))return!1;var e=ct(t);if(null===e)return!0;var n=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Tt.call(n)==kt}(s)||bt(s)?(f=c,bt(c)?f=Gt(c):w(c)&&!M(c)||(f=function(t){return"function"!=typeof t.constructor||lt(t)?{}:ut(ct(t))}(s))):p=!1}p&&(a.set(s,f),o(f,s,r,i,a),a.delete(s)),Y(t,n,f)}},Xt=function t(e,n,r,o,i){e!==n&&Z(n,(function(a,u){if(i||(i=new W),w(a))Wt(e,n,u,r,t,o,i);else{var c=o?o(Ft(e,u),a,u+"",e,n,i):void 0;void 0===c&&(c=a),Y(e,u,c)}}),Qt)},Kt=function(t){return t},Yt=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Zt=Math.max,te=X?function(t,e){return X(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Kt,ee=Date.now,ne=function(t){var e=0,n=0;return function(){var r=ee(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(te),re=function(t,e){return ne(function(t,e,n){return e=Zt(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Zt(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=r[o];return u[e]=n(a),Yt(t,this,u)}}(t,e,Kt),t+"")},oe=(Ct=function(t,e,n){Xt(t,e,n)},re((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Ct.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!w(n))return!1;var r=typeof e;return!!("number"==r?mt(n)&&Ut(e,n.length):"string"==r&&e in n)&&a(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var u=e[n];u&&Ct(t,u,n)}return t}))),ie=[],ae=function(t){t&&clearTimeout(t)},ue=function(t,e){var n=ie.findIndex((function(n){return t&&n[0]===t||n[0]===e}));n>=0&&ie.splice(n,1)},ce={},se=function(){return ce},le=function(t){var e,n=t.src,r=t.id,o=t.timeoutSeconds,i=t.appendTo,a=t.executionStrategy;return function(t){var e,n,r=t.url,o=t.id,i=t.timeoutSeconds,a=t.appendTo,u=t.hostElementTagName,c=t.beforeElementCreateCallback,s=a?a.ownerDocument:document,l=null!==(n=null!==(e=s.defaultView)&&void 0!==e?e:s.parentWindow)&&void 0!==n?n:window,f=function(t,e){var n=ie.find((function(n){return t&&n[0]===t||n[0]===e}));return(null!=n?n:[])[1]}(s!==document?"load-resource-to-another-window-context-"+l.name+"-"+o:o,r);if(f)return f;var p=s.querySelector("".concat(u,"#").concat(o));return(p=(p=p||"script"===u&&s.querySelector('script[src="'.concat(r,'"]')))||"link"===u&&s.querySelector('link[href="'.concat(r,'"]')))?Promise.resolve(p):(f=new Promise((function(t,e){var n;n=u,function(n){var u;n.id=null!=o?o:"",null!=a||(a=s.head),i=i<=0?5:i,n instanceof HTMLLinkElement?(n.href=r,n.rel="stylesheet",n.type="text/css"):n instanceof HTMLScriptElement&&(n.src=r,n.type="text/javascript",n.defer=!0),n.onload=function(){ae(u),ue(o,r),t(n)},n.onerror=function(t){ae(u),n.remove(),ue(o,r),e(t)},null==c||c.call(void 0,n),a.append(n),u=setTimeout((function(){ae(u),n.remove(),ue(o,r),e("timeout after ".concat(i," seconds"))}),1e3*i)}(document.createElement(n))})),ie.push([o||r,f]),f)}({url:n,hostElementTagName:"script",timeoutSeconds:null!==(e=null!=o?o:se().timeoutSeconds)&&void 0!==e?e:5,id:r,appendTo:null!=i?i:se().appendTo,beforeElementCreateCallback:function(t){t instanceof HTMLScriptElement&&("async"===(null!=a?a:se().executionStrategy)?(t.async=!0,t.defer=!1):(t.defer=!0,t.async=!1))}})};function fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function de(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function he(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ye(t,e,n){return e&&he(t.prototype,e),n&&he(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var be=function(){function t(){de(this,t),ve(this,"_defaultConfig",i[e.MathJax2]),ve(this,"_defaultMathJaxConfig",{tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]],processClass:"math",processEscapes:!0},TeX:{equationNumbers:{autoNumber:"AMS",useLabelIds:!0},extensions:["extpfeil.js","mediawiki-texvc.js"],Macros:{bm:"\\boldsymbol"}},"HTML-CSS":{linebreaks:{automatic:!0}},SVG:{linebreaks:{automatic:!0}},skipStartupTypeset:!0}),ve(this,"_config",this._defaultConfig)}return ye(t,[{key:"_global",get:function(){var t;return null!==(t=this._config.document.defaultView)&&void 0!==t?t:window}},{key:"render",value:function(t,e){var n=this;return this.init().then((function(r){if(r){var o=n._config.onRendered;r.Hub.Queue(["Typeset",r.Hub,t]),null!=o&&r.Hub.Queue((function(){return o(r)})),e&&r.Hub.Queue(e)}})).catch(console.warn)}},{key:"config",value:function(t){return this._config=oe({},this._defaultConfig,t),this}},{key:"init",value:function(){var t=this;if(this._initTask)return this._initTask;var e=this._config,n=e.entryScript,r=e.tapMathJaxConfig,o=e.document;return this._initTask=le({src:n,id:"mathjax",timeoutSeconds:10,appendTo:o.head}).then((function(){var e,n=t._global.MathJax;if(n)return n.Hub.Config(null!==(e=null==r?void 0:r.call(void 0,Object.assign({},t._defaultMathJaxConfig)))&&void 0!==e?e:pe({},t._defaultMathJaxConfig)),n.Hub.Configured(),n})).catch((function(){return t._initTask=void 0}))}}]),t}(),_e=function(){function t(){de(this,t),ve(this,"_defaultConfig",i[e.MathJax3]),ve(this,"_defaultMathJaxConfig",{tex:{inlineMath:[["$","$"],["\\(","\\)"]],processEscapes:!0,tags:"ams",useLabelIds:!0,macros:{bm:"\\boldsymbol"},packages:{"[+]":["noerrors","extpfeil"]}},options:{processHtmlClass:"math",ignoreHtmlClass:"tex2jax_ignore"},loader:{load:["[tex]/noerrors","[tex]/extpfeil"]},startup:{typeset:!1}}),ve(this,"_config",this._defaultConfig)}return ye(t,[{key:"config",value:function(t){return this._config=oe({},this._defaultConfig,t),this}},{key:"render",value:function(t,e){var n=this;return this.init().then((function(r){r&&(r.startup.promise=r.startup.promise.then((function(){return r.typesetPromise([t]).then((function(){try{var t;null===(t=n._config.onRendered)||void 0===t||t.call(void 0,r)}catch(t){console.error(t)}try{null==e||e.call(void 0)}catch(t){console.error(t)}}))})))})).catch(console.warn)}},{key:"init",value:function(){var t,e=this;return(null!==(t=this._initTask)&&void 0!==t?t:this._initTask=new Promise((function(t,n){var r,o,i=e._config,a=i.entryScript,u=i.tapMathJaxConfig,c=null!==(r=i.document.defaultView)&&void 0!==r?r:window;c.MathJax=null!==(o=null==u?void 0:u.call(void 0,pe({},e._defaultMathJaxConfig)))&&void 0!==o?o:pe({},e._defaultMathJaxConfig),c.MathJax.startup||(c.MathJax.startup={}),c.MathJax.startup.ready=function(){var e,n;null===(e=c.MathJax)||void 0===e||null===(n=e.startup)||void 0===n||n.defaultReady(),t(c.MathJax)},le({src:a,id:"mathjax",executionStrategy:"defer",appendTo:c.document.head}).catch(n)}))).catch((function(){return e._initTask=void 0}))}}]),t}(),ge=function(t){switch(t.engine){case e.MathJax2:return(new be).config(t);case e.MathJax3:return(new _e).config(t);default:throw Error("Renderer unavailable")}};return r}()}));