You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
12 KiB
1 line
12 KiB
"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[8597],{58597:function(w,p,g){var e,M=this&&this.__extends||(e=function(i,s){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(a[c]=l[c])})(i,s)},function(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function a(){this.constructor=i}e(i,s),i.prototype=null===s?Object.create(s):(a.prototype=s.prototype,new a)}),d=this&&this.__assign||function(){return d=Object.assign||function(e){for(var i,s=1,a=arguments.length;s<a;s++)for(var l in i=arguments[s])Object.prototype.hasOwnProperty.call(i,l)&&(e[l]=i[l]);return e},d.apply(this,arguments)},A=this&&this.__read||function(e,i){var s="function"==typeof Symbol&&e[Symbol.iterator];if(!s)return e;var l,h,a=s.call(e),c=[];try{for(;(void 0===i||i-- >0)&&!(l=a.next()).done;)c.push(l.value)}catch(y){h={error:y}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(h)throw h.error}}return c},_=this&&this.__spreadArray||function(e,i,s){if(s||2===arguments.length)for(var c,a=0,l=i.length;a<l;a++)(c||!(a in i))&&(c||(c=Array.prototype.slice.call(i,0,a)),c[a]=i[a]);return e.concat(c||Array.prototype.slice.call(i))},m=this&&this.__values||function(e){var i="function"==typeof Symbol&&Symbol.iterator,s=i&&e[i],a=0;if(s)return s.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(p,"__esModule",{value:!0}),p.AssistiveMmlHandler=p.AssistiveMmlMathDocumentMixin=p.AssistiveMmlMathItemMixin=p.LimitedMmlVisitor=void 0;var f=g(5520),u=g(27978),v=g(80084),r=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return M(i,e),i.prototype.getAttributes=function(s){return e.prototype.getAttributes.call(this,s).replace(/ ?id=".*?"/,"")},i}(u.SerializedMmlVisitor);function o(e){return function(i){function s(){return null!==i&&i.apply(this,arguments)||this}return M(s,i),s.prototype.assistiveMml=function(a,l){if(void 0===l&&(l=!1),!(this.state()>=f.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(a.options.enableAssistiveMml||l)){var c=a.adaptor,h=a.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),y=c.firstChild(c.body(c.parse(h,"text/html"))),S=c.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[y]);c.setAttribute(c.firstChild(this.typesetRoot),"aria-hidden","true"),c.setStyle(this.typesetRoot,"position","relative"),c.append(this.typesetRoot,S)}this.state(f.STATE.ASSISTIVEMML)}},s}(e)}function t(e){var i;return i=function(s){function a(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var h=s.apply(this,_([],A(l),!1))||this,y=h.constructor,S=y.ProcessBits;return S.has("assistive-mml")||S.allocate("assistive-mml"),h.visitor=new r(h.mmlFactory),h.options.MathItem=o(h.options.MathItem),"addStyles"in h&&h.addStyles(y.assistiveStyles),h}return M(a,s),a.prototype.toMML=function(l){return this.visitor.visitTree(l)},a.prototype.assistiveMml=function(){var l,c;if(!this.processed.isSet("assistive-mml")){try{for(var h=m(this.math),y=h.next();!y.done;y=h.next()){y.value.assistiveMml(this)}}catch(b){l={error:b}}finally{try{y&&!y.done&&(c=h.return)&&c.call(h)}finally{if(l)throw l.error}}this.processed.set("assistive-mml")}return this},a.prototype.state=function(l,c){return void 0===c&&(c=!1),s.prototype.state.call(this,l,c),l<f.STATE.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this},a}(e),i.OPTIONS=d(d({},e.OPTIONS),{enableAssistiveMml:!0,renderActions:(0,v.expandable)(d(d({},e.OPTIONS.renderActions),{assistiveMml:[f.STATE.ASSISTIVEMML]}))}),i.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-mml[display="block"]':{width:"100% !important"}},i}p.LimitedMmlVisitor=r,(0,f.newState)("ASSISTIVEMML",153),p.AssistiveMmlMathItemMixin=o,p.AssistiveMmlMathDocumentMixin=t,p.AssistiveMmlHandler=function n(e){return e.documentClass=t(e.documentClass),e}},20098:function(w,p,g){var m,M=this&&this.__extends||(m=function(f,u){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,r){v.__proto__=r}||function(v,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(v[o]=r[o])})(f,u)},function(f,u){if("function"!=typeof u&&null!==u)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function v(){this.constructor=f}m(f,u),f.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)});Object.defineProperty(p,"__esModule",{value:!0}),p.MmlVisitor=void 0;var d=g(84789),_=function(m){function f(u){return void 0===u&&(u=null),u||(u=new d.MmlFactory),m.call(this,u)||this}return M(f,m),f.prototype.visitTextNode=function(u){for(var v=[],r=1;r<arguments.length;r++)v[r-1]=arguments[r]},f.prototype.visitXMLNode=function(u){for(var v=[],r=1;r<arguments.length;r++)v[r-1]=arguments[r]},f}(g(22815).AbstractVisitor);p.MmlVisitor=_},27978:function(w,p,g){var r,M=this&&this.__extends||(r=function(o,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])})(o,t)},function(o,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=o}r(o,t),o.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=this&&this.__values||function(r){var o="function"==typeof Symbol&&Symbol.iterator,t=o&&r[o],n=0;if(t)return t.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},A=this&&this.__read||function(r,o){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var e,s,n=t.call(r),i=[];try{for(;(void 0===o||o-- >0)&&!(e=n.next()).done;)i.push(e.value)}catch(a){s={error:a}}finally{try{e&&!e.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i};Object.defineProperty(p,"__esModule",{value:!0}),p.SerializedMmlVisitor=p.toEntity=p.DATAMJX=void 0;var _=g(20098),m=g(91585),f=g(2862);p.DATAMJX="data-mjx-";p.toEntity=function(r){return"&#x"+r.codePointAt(0).toString(16).toUpperCase()+";"};var v=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return M(o,r),o.prototype.visitTree=function(t){return this.visitNode(t,"")},o.prototype.visitTextNode=function(t,n){return this.quoteHTML(t.getText())},o.prototype.visitXMLNode=function(t,n){return n+t.getSerializedXML()},o.prototype.visitInferredMrowNode=function(t,n){var e,i,s=[];try{for(var a=d(t.childNodes),l=a.next();!l.done;l=a.next()){var c=l.value;s.push(this.visitNode(c,n))}}catch(h){e={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(e)throw e.error}}return s.join("\n")},o.prototype.visitTeXAtomNode=function(t,n){var e=this.childNodeMml(t,n+" ","\n");return n+"<mrow"+this.getAttributes(t)+">"+(e.match(/\S/)?"\n"+e+n:"")+"</mrow>"},o.prototype.visitAnnotationNode=function(t,n){return n+"<annotation"+this.getAttributes(t)+">"+this.childNodeMml(t,"","")+"</annotation>"},o.prototype.visitDefault=function(t,n){var e=t.kind,i=A(t.isToken||0===t.childNodes.length?["",""]:["\n",n],2),s=i[0],a=i[1],l=this.childNodeMml(t,n+" ",s);return n+"<"+e+this.getAttributes(t)+">"+(l.match(/\S/)?s+l+a:"")+"</"+e+">"},o.prototype.childNodeMml=function(t,n,e){var i,s,a="";try{for(var l=d(t.childNodes),c=l.next();!c.done;c=l.next()){var h=c.value;a+=this.visitNode(h,n)+e}}catch(y){i={error:y}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return a},o.prototype.getAttributes=function(t){var n,e,i=[],s=this.constructor.defaultAttributes[t.kind]||{},a=Object.assign({},s,this.getDataAttributes(t),t.attributes.getAllAttributes()),l=this.constructor.variants;a.hasOwnProperty("mathvariant")&&l.hasOwnProperty(a.mathvariant)&&(a.mathvariant=l[a.mathvariant]);try{for(var c=d(Object.keys(a)),h=c.next();!h.done;h=c.next()){var y=h.value,S=String(a[y]);void 0!==S&&i.push(y+'="'+this.quoteHTML(S)+'"')}}catch(b){n={error:b}}finally{try{h&&!h.done&&(e=c.return)&&e.call(c)}finally{if(n)throw n.error}}return i.length?" "+i.join(" "):""},o.prototype.getDataAttributes=function(t){var n={},e=t.attributes.getExplicit("mathvariant"),i=this.constructor.variants;e&&i.hasOwnProperty(e)&&this.setDataAttribute(n,"variant",e),t.getProperty("variantForm")&&this.setDataAttribute(n,"alternate","1"),t.getProperty("pseudoscript")&&this.setDataAttribute(n,"pseudoscript","true"),!1===t.getProperty("autoOP")&&this.setDataAttribute(n,"auto-op","false");var s=t.getProperty("scriptalign");s&&this.setDataAttribute(n,"script-align",s);var a=t.getProperty("texClass");if(void 0!==a){var l=!0;if(a===m.TEXCLASS.OP&&t.isKind("mi")){var c=t.getText();l=!(c.length>1&&c.match(f.MmlMi.operatorName))}l&&this.setDataAttribute(n,"texclass",a<0?"NONE":m.TEXCLASSNAMES[a])}return t.getProperty("scriptlevel")&&!1===t.getProperty("useHeight")&&this.setDataAttribute(n,"smallmatrix","true"),n},o.prototype.setDataAttribute=function(t,n,e){t[p.DATAMJX+n]=e},o.prototype.quoteHTML=function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,p.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,p.toEntity)},o.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},o.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},o}(_.MmlVisitor);p.SerializedMmlVisitor=v},22815:function(w,p,g){var M=this&&this.__values||function(f){var u="function"==typeof Symbol&&Symbol.iterator,v=u&&f[u],r=0;if(v)return v.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&r>=f.length&&(f=void 0),{value:f&&f[r++],done:!f}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(f,u){var v="function"==typeof Symbol&&f[Symbol.iterator];if(!v)return f;var o,n,r=v.call(f),t=[];try{for(;(void 0===u||u-- >0)&&!(o=r.next()).done;)t.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(v=r.return)&&v.call(r)}finally{if(n)throw n.error}}return t},A=this&&this.__spreadArray||function(f,u,v){if(v||2===arguments.length)for(var t,r=0,o=u.length;r<o;r++)(t||!(r in u))&&(t||(t=Array.prototype.slice.call(u,0,r)),t[r]=u[r]);return f.concat(t||Array.prototype.slice.call(u))};Object.defineProperty(p,"__esModule",{value:!0}),p.AbstractVisitor=void 0;var _=g(62089),m=function(){function f(u){var v,r;this.nodeHandlers=new Map;try{for(var o=M(u.getKinds()),t=o.next();!t.done;t=o.next()){var n=t.value,e=this[f.methodName(n)];e&&this.nodeHandlers.set(n,e)}}catch(i){v={error:i}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(v)throw v.error}}}return f.methodName=function(u){return"visit"+(u.charAt(0).toUpperCase()+u.substr(1)).replace(/[^a-z0-9_]/gi,"_")+"Node"},f.prototype.visitTree=function(u){for(var v=[],r=1;r<arguments.length;r++)v[r-1]=arguments[r];return this.visitNode.apply(this,A([u],d(v),!1))},f.prototype.visitNode=function(u){for(var v=[],r=1;r<arguments.length;r++)v[r-1]=arguments[r];var o=this.nodeHandlers.get(u.kind)||this.visitDefault;return o.call.apply(o,A([this,u],d(v),!1))},f.prototype.visitDefault=function(u){for(var v,r,o=[],t=1;t<arguments.length;t++)o[t-1]=arguments[t];if(u instanceof _.AbstractNode)try{for(var n=M(u.childNodes),e=n.next();!e.done;e=n.next()){var i=e.value;this.visitNode.apply(this,A([i],d(o),!1))}}catch(s){v={error:s}}finally{try{e&&!e.done&&(r=n.return)&&r.call(n)}finally{if(v)throw v.error}}},f.prototype.setNodeHandler=function(u,v){this.nodeHandlers.set(u,v)},f.prototype.removeNodeHandler=function(u){this.nodeHandlers.delete(u)},f}();p.AbstractVisitor=m}}]); |