mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 09:57:32 +01:00
1 line
1.7 MiB
JavaScript
1 line
1.7 MiB
JavaScript
|
!function(){"use strict";var t={351:function(t,e,Q){var T,r=this&&this.__extends||(T=function(t,e){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var Q in e)Object.prototype.hasOwnProperty.call(e,Q)&&(t[Q]=e[Q])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function Q(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(Q.prototype=e.prototype,new Q)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,Q=1,T=arguments.length;Q<T;Q++)for(var r in e=arguments[Q])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},o=this&&this.__read||function(t,e){var Q="function"==typeof Symbol&&t[Symbol.iterator];if(!Q)return t;var T,r,n=Q.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(T=n.next()).done;)o.push(T.value)}catch(t){r={error:t}}finally{try{T&&!T.done&&(Q=n.return)&&Q.call(n)}finally{if(r)throw r.error}}return o},i=this&&this.__spreadArray||function(t,e){for(var Q=0,T=e.length,r=t.length;Q<T;Q++,r++)t[r]=e[Q];return t},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,Q=e&&t[e],T=0;if(Q)return Q.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&T>=t.length&&(t=void 0),{value:t&&t[T++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AssistiveMmlHandler=e.AssistiveMmlMathDocumentMixin=e.AssistiveMmlMathItemMixin=e.LimitedMmlVisitor=void 0;var s=Q(4474),l=Q(9259),c=Q(7233),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getAttributes=function(e){return t.prototype.getAttributes.call(this,e).replace(/ ?id=".*?"/,"")},e}(l.SerializedMmlVisitor);function p(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.assistiveMml=function(t,e){if(void 0===e&&(e=!1),!(this.state()>=s.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(t.options.enableAssistiveMml||e)){var Q=t.adaptor,T=t.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),r=Q.firstChild(Q.body(Q.parse(T,"text/html"))),n=Q.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[r]);Q.setAttribute(Q.firstChild(this.typesetRoot),"aria-hidden","true"),Q.setStyle(this.typesetRoot,"position","relative"),Q.append(this.typesetRoot,n)}this.state(s.STATE.ASSISTIVEMML)}},e}(t)}function h(t){var e;return(e=function(t){function e(){for(var e=[],Q=0;Q<arguments.length;Q++)e[Q]=arguments[Q];var T=t.apply(this,i([],o(e)))||this,r=T.constructor,n=r.ProcessBits;return n.has("assistive-mml")||n.allocate("assistive-mml"),T.visitor=new u(T.mmlFactory),T.options.MathItem=p(T.options.MathItem),"addStyles"in T&&T.addStyles(r.assistiveStyles),T}return r(e,t),e.prototype.toMML=function(t){return this.visitor.visitTree(t)},e.prototype.assistiveMml=function(){var t,e;if(!this.processed.isSet("assistive-mml")){try{for(var Q=a(this.math),T=Q.next();!T.done;T=Q.next()){T.value.assistiveMml(this)}}catch(e){t={error:e}}finally{try{T&&!T.done&&(e=Q.return)&&e.call(Q)}finally{if(t)throw t.error}}this.processed.set("assistive-mml")}return this},e.prototype.state=function(e,Q){return void 0===Q&&(Q=!1),t.prototype.state.call(this,e,Q),e<s.STATE.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this},e}(t)).OPTIONS=n(n({},t.OPTIONS),{enableAssistiveMml:!0,renderActions:c.expandable(n(n({},t.OPTIONS.renderActions),{assistiveMml:[s.STATE.ASSISTIVEMML]}))}),e.assistiveStyles={"mjx-assistive-mml":{position:"absolute !important",top:"0px",left:"0px",clip:"rect(1px, 1px, 1px, 1px)",padding:"1px 0px 0px 0px !important",border:"0px !important",display:"block !important",width:"auto !important",overflow:"hidden !important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},'mjx-assistive-mm
|