From f9aeb03738372875b77cbf3391183b8f37d85371 Mon Sep 17 00:00:00 2001 From: xjiang-at-wiris <125269853+xjiang-at-wiris@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:44:47 +0100 Subject: [PATCH] feat: update viewer --- render/WIRISplugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/WIRISplugins.js b/render/WIRISplugins.js index 2f870c17..c46c5441 100644 --- a/render/WIRISplugins.js +++ b/render/WIRISplugins.js @@ -1,2 +1,2 @@ /*! For license information please see WIRISplugins.js.LICENSE.txt */ -(()=>{var __webpack_modules__={976:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{static addConfiguration(e){Object.assign(i.properties,e)}static get properties(){return i._properties}static set properties(e){i._properties=e}static get(e){return Object.prototype.hasOwnProperty.call(i.properties,e)?i.properties[e]:!!Object.prototype.hasOwnProperty.call(i.properties,"_wrs_conf_")&&i.properties[`_wrs_conf_${e}`]}static set(e,t){i.properties[e]=t}static update(e,t){if(i.get(e)){const n=Object.assign(i.get(e),t);i.set(e,n)}else i.set(e,t)}}i._properties={}},931:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{static get safeXmlCharactersEntities(){return{tagOpener:"«",tagCloser:"»",doubleQuote:"¨",realDoubleQuote:"""}}static get safeBadBlackboardCharacters(){return{ltElement:"«mo»<«/mo»",gtElement:"«mo»>«/mo»",ampElement:"«mo»&«/mo»"}}static get safeGoodBlackboardCharacters(){return{ltElement:"«mo»§lt;«/mo»",gtElement:"«mo»§gt;«/mo»",ampElement:"«mo»§amp;«/mo»"}}static get xmlCharacters(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}}static get safeXmlCharacters(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}}}},574:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(33),r=n(443),a=n(654),o=n(931),s=n(644);class l{static get cache(){return l._cache}static set cache(e){l._cache=e}static getLatexFromMathML(e){const t=r.default.removeSemantics(e),{cache:n}=l,i={service:"mathml2latex",mml:t},o=JSON.parse(a.A.getService("service",i));let c="";if("ok"===o.status){c=o.result.text;const t=s.default.htmlEntities(c),i=r.default.addAnnotation(e,t,"LaTeX");n.populate(c,i)}return c}static getMathMLFromLatex(e,t){const n=l.cache;if(l.cache.get(e))return l.cache.get(e);const i={service:"latex2mathml",latex:e};t&&(i.saveLatex="");const o=JSON.parse(a.A.getService("service",i));let c;if("ok"===o.status){let t=o.result.text;if(t=t.split("\r").join("").split("\n").join(" "),-1===t.indexOf("semantics")&&-1===t.indexOf("annotation")){const n=s.default.htmlEntities(e);t=r.default.addAnnotation(t,n,"LaTeX"),c=t}else c=t;n.get(e)||n.populate(e,t)}else c=`$$${e}$$`;return c}static parseMathmlToLatex(e,t){let n="";const i=`${t.tagOpener}math`,a=`${t.tagOpener}/math${t.tagCloser}`,s=`${t.tagOpener}annotation encoding=${t.doubleQuote}LaTeX${t.doubleQuote}${t.tagCloser}`,c=`${t.tagOpener}/annotation${t.tagCloser}`;let u,d,m,h=e.indexOf(i),f=0;for(;-1!==h;){if(n+=e.substring(f,h),f=e.indexOf(a,h),-1===f?f=e.length-1:f+=a.length,u=e.substring(h,f),d=u.indexOf(s),-1!==d){d+=s.length,m=u.indexOf(c);let e=u.substring(d,m);t===o.A.safeXmlCharacters&&(e=r.default.safeXmlDecode(e)),n+=`$$${e}$$`,l.cache.populate(e,u)}else n+=u;h=e.indexOf(i,f)}return n+=e.substring(f,e.length),n}static getLatexFromTextNode(e,t,n){void 0!==n&&null!=n||(n={open:"$$",close:"$$"});let i,r=e;for(;r.previousSibling&&3===r.previousSibling.nodeType;)r=r.previousSibling;function a(e,t,i){let r=e.nodeValue.indexOf(i,t);for(;-1===r;){if(!(e=e.nextSibling))return null;r=e.nodeValue?e.nodeValue.indexOf(n.close):-1}return{node:e,position:r}}function o(e,t,n,i){if(e===n)return t<=i;for(;e&&e!==n;)e=e.nextSibling;return e===n}let s={node:r,position:0};const l=n.open.length;do{if(i=a(s.node,s.position,n.open),null==i||o(e,t,i.node,i.position))return null;if(s=a(i.node,i.position+l,n.close),null==s)return null;s.position+=l}while(o(s.node,s.position,e,t));let c;if(i.node===s.node)c=i.node.nodeValue.substring(i.position+l,s.position-l);else{const e=i.position+l;c=i.node.nodeValue.substring(e,i.node.nodeValue.length);let t=i.node;do{t=t.nextSibling,t===s.node?c+=s.node.nodeValue.substring(0,s.position-l):c+=t.nodeValue?t.nodeValue:""}while(t!==s.node)}return{latex:c,startNode:i.node,startPosition:i.position,endNode:s.node,endPosition:s.position}}}l._cache=new i.A},443:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(931),r=n(644);class a{static isMathmlInAttribute(e,t){const n=new RegExp("^['\"][\\s]*=[\\s]*[\\w-]+('[\\s]*(\"[^\"]*\"|'[^']*')[\\s]*=[\\s]*[\\w-]+[\\s]*')*[\\s]+gmi<"),i=e.substring(0,t).split("").reverse().join("");return n.test(i)}static safeXmlDecode(e){let{tagOpener:t}=i.A.safeXmlCharactersEntities,{tagCloser:n}=i.A.safeXmlCharactersEntities,{doubleQuote:r}=i.A.safeXmlCharactersEntities,{realDoubleQuote:a}=i.A.safeXmlCharactersEntities;e=(e=(e=(e=e.split(t).join(i.A.safeXmlCharacters.tagOpener)).split(n).join(i.A.safeXmlCharacters.tagCloser)).split(r).join(i.A.safeXmlCharacters.doubleQuote)).split(a).join(i.A.safeXmlCharacters.realDoubleQuote);const{ltElement:o}=i.A.safeBadBlackboardCharacters,{gtElement:s}=i.A.safeBadBlackboardCharacters,{ampElement:l}=i.A.safeBadBlackboardCharacters;"_wrs_blackboard"in window&&window._wrs_blackboard&&(e=(e=(e=e.split(o).join(i.A.safeGoodBlackboardCharacters.ltElement)).split(s).join(i.A.safeGoodBlackboardCharacters.gtElement)).split(l).join(i.A.safeGoodBlackboardCharacters.ampElement)),({tagOpener:t}=i.A.safeXmlCharacters),({tagCloser:n}=i.A.safeXmlCharacters),({doubleQuote:r}=i.A.safeXmlCharacters),({realDoubleQuote:a}=i.A.safeXmlCharacters);const{ampersand:c}=i.A.safeXmlCharacters,{quote:u}=i.A.safeXmlCharacters;e=(e=(e=(e=(e=e.split(t).join(i.A.xmlCharacters.tagOpener)).split(n).join(i.A.xmlCharacters.tagCloser)).split(r).join(i.A.xmlCharacters.doubleQuote)).split(c).join(i.A.xmlCharacters.ampersand)).split(u).join(i.A.xmlCharacters.quote);let d="",m=null;for(let t=0;t128)t+=`&#${e.codePointAt(n)};`,e.codePointAt(n)>65535&&(n+=1);else if("&"===i){const a=e.indexOf(";",n+1);if(a>=0){const i=document.createElement("span");i.innerHTML=e.substring(n,a+1),t+=`&#${r.default.fixedCharCodeAt(i.textContent||i.innerText,0)};`,n=a}else t+=i}else t+=i}return t}static addCustomEditorClassAttribute(e,t){let n="";const i=e.indexOf("");if(-1===e.indexOf("class"))return n=`${e.substr(i,r)} class="wrs_${t}">`,n+=e.substr(r+1,e.length),n}return e}static removeCustomEditorClassAttribute(e,t){return-1===e.indexOf("class")||-1===e.indexOf(`wrs_${t}`)?e:-1!==e.indexOf(` class="wrs_${t}"`)?e.replace(` class="wrs_${t}"`,""):-1!==e.indexOf(`class="wrs_${t}"`)?e.replace(`class="wrs_${t}"`,""):e.replace(`wrs_${t}`,"")}static addAnnotation(e,t,n){let i="";if(-1!==e.indexOf("");i=`${e.substring(0,r)}${t}${e.substring(r)}`}else if(a.isEmpty(e)){const r=e.indexOf("/>"),a=e.indexOf(">"),o=a===r?r:a;i=`${e.substring(0,o)}>${t}`}else{const r=e.indexOf(">")+1,a=e.lastIndexOf(""),o=e.substring(r,a);i=`${e.substring(0,r)}${o}${t}`}return i}static removeAnnotation(e,t){let n=e;const i=``,r=e.indexOf(i);if(-1!==r){let t=!1,i=e.indexOf("",r)+13;n=e.substring(0,r)+e.substring(t)}else n=a.removeSemantics(e)}return n}static removeSemantics(e){return e.replace(/\s*?()?/gm,"").replace(/(<\/mrow>)?\s*/gm,"")}static removeSemanticsOcurrences(e,t=i.A.xmlCharacters){const n=`${t.tagOpener}math`,r=`${t.tagOpener}/math${t.tagCloser}`,a=`/${t.tagCloser}`,{tagCloser:o}=t,s=`${t.tagOpener}semantics${t.tagCloser}`,l=`${t.tagOpener}annotation encoding=`;let c="",u=e.indexOf(n),d=0;for(;-1!==u;){c+=e.substring(d,u);const t=e.indexOf(r,u),i=e.indexOf(a,u),m=e.indexOf(o,u);-1!==t?d=t:i===m-1&&(d=i);const h=e.indexOf(s,u);if(-1!==h){const t=e.substring(u,h),i=e.indexOf(l,u);if(-1!==i){const a=h+s.length;c+=t+e.substring(a,i)+r,u=e.indexOf(n,u+n.length),d+=r.length}else d=u,u=e.indexOf(n,u+n.length)}else d=u,u=e.indexOf(n,u+n.length)}return c+=e.substring(d,e.length),c}static containClass(e,t){const n=e.indexOf("class");if(-1===n)return!1;const i=e.indexOf(">",n);return-1!==e.substring(n,i).indexOf(t)}static isEmpty(e){const t=e.indexOf(">"),n=e.indexOf("/>");let i=!1;if(-1!==n&&n===t-1&&(i=!0),!i){const n=new RegExp("").exec(e);n&&(i=t+1===n.index)}return i}static encodeProperties(e){return e.replace(/\w+=".*?"/g,(e=>{const t=e.indexOf('"'),n=e.substring(t+1,e.length-1),i=r.default.htmlEntities(n);return`${e.substring(0,t+1)}${i}"`}))}}},206:()=>{"use strict";var md5,__WEBPACK_DEFAULT_EXPORT__=md5;(function(){var HxOverrides=function(){};HxOverrides.__name__=!0,HxOverrides.dateStr=function(e){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),r=e.getMinutes(),a=e.getSeconds();return e.getFullYear()+"-"+(t<10?"0"+t:""+t)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(r<10?"0"+r:""+r)+":"+(a<10?"0"+a:""+a)},HxOverrides.strDate=function(e){switch(e.length){case 8:var t=e.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(t[0]),n.setUTCMinutes(t[1]),n.setUTCSeconds(t[2]),n;case 10:return t=e.split("-"),new Date(t[0],t[1]-1,t[2],0,0,0);case 19:var i=(t=e.split(" "))[0].split("-"),r=t[1].split(":");return new Date(i[0],i[1]-1,i[2],r[0],r[1],r[2]);default:throw"Invalid date format : "+e}},HxOverrides.cca=function(e,t){var n=e.charCodeAt(t);if(n==n)return n},HxOverrides.substr=function(e,t,n){return null!=t&&0!=t&&null!=n&&n<0?"":(null==n&&(n=e.length),t<0?(t=e.length+t)<0&&(t=0):n<0&&(n=e.length+n-t),e.substr(t,n))},HxOverrides.remove=function(e,t){for(var n=0,i=e.length;n>>32-t},str2blks:function(e){for(var t=1+(e.length+8>>6),n=new Array,i=0,r=16*t;i>2]|=HxOverrides.cca(e,a)<<(8*e.length+a)%4*8,a++;n[a>>2]|=128<<(8*e.length+a)%4*8;var o=8*e.length,s=16*t-2;return n[s]=255&o,n[s]|=(o>>>8&255)<<8,n[s]|=(o>>>16&255)<<16,n[s]|=(o>>>24&255)<<24,n},rhex:function(e){for(var t="",n="0123456789abcdef",i=0;i<4;){var r=i++;t+=n.charAt(e>>8*r+4&15)+n.charAt(e>>8*r&15)}return t},addme:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitOR:function(e,t){return(e>>>1|t>>>1)<<1|1&e|1&t},__class__:haxe.Md5},haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);return n.run=function(){n.stop(),e()},n},haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp(),i=e();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",t),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(e,t){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=e,n.method=t,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">")},js.Boot.__trace=function(e,t){var n,i=null!=t?t.fileName+":"+t.lineNumber+": ":"";i+=js.Boot.__string_rec(e,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"
":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var e=document.getElementById("haxe:trace");null!=e&&(e.innerHTML="")},js.Boot.isClass=function(e){return e.__name__},js.Boot.isEnum=function(e){return e.__ename__},js.Boot.getClass=function(e){return e.__class__},js.Boot.__string_rec=function(e,t){if(null==e)return"null";if(t.length>=5)return"<...>";var n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var i=e[0]+"(";t+="\t";for(var r=2,a=e.length;r0?",":"")+js.Boot.__string_rec(e[l],t)}return i+"]"}var c;try{c=e.toString}catch(e){return"???"}if(null!=c&&c!=Object.toString){var u=e.toString();if("[object Object]"!=u)return u}var d=null;i="{\n",t+="\t";var m=null!=e.hasOwnProperty;for(var d in e)m&&!e.hasOwnProperty(d)||"prototype"!=d&&"__class__"!=d&&"__super__"!=d&&"__interfaces__"!=d&&"__properties__"!=d&&(2!=i.length&&(i+=", \n"),i+=t+d+" : "+js.Boot.__string_rec(e[d],t));return i+"\n"+(t=t.substring(1))+"}";case"function":return"";case"string":return e;default:return String(e)}},js.Boot.__interfLoop=function(e,t){if(null==e)return!1;if(e==t)return!0;var n=e.__interfaces__;if(null!=n)for(var i=0,r=n.length;i>>32-t},str2blks:function(e){for(var t=1+(e.length+8>>6),n=new Array,i=0,r=16*t;i>2]|=HxOverrides.cca(e,a)<<(8*e.length+a)%4*8,a++;n[a>>2]|=128<<(8*e.length+a)%4*8;var o=8*e.length,s=16*t-2;return n[s]=255&o,n[s]|=(o>>>8&255)<<8,n[s]|=(o>>>16&255)<<16,n[s]|=(o>>>24&255)<<24,n},rhex:function(e){for(var t="",n="0123456789abcdef",i=0;i<4;){var r=i++;t+=n.charAt(e>>8*r+4&15)+n.charAt(e>>8*r&15)}return t},addme:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitOR:function(e,t){return(e>>>1|t>>>1)<<1|1&e|1&t},__class__:haxe.Md5},haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);return n.run=function(){n.stop(),e()},n},haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp(),i=e();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",t),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(e,t){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=e,n.method=t,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">")},js.Boot.__trace=function(e,t){var n,i=null!=t?t.fileName+":"+t.lineNumber+": ":"";i+=js.Boot.__string_rec(e,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"
":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var e=document.getElementById("haxe:trace");null!=e&&(e.innerHTML="")},js.Boot.isClass=function(e){return e.__name__},js.Boot.isEnum=function(e){return e.__ename__},js.Boot.getClass=function(e){return e.__class__},js.Boot.__string_rec=function(e,t){if(null==e)return"null";if(t.length>=5)return"<...>";var n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var i=e[0]+"(";t+="\t";for(var r=2,a=e.length;r0?",":"")+js.Boot.__string_rec(e[l],t)}return i+"]"}var c;try{c=e.toString}catch(e){return"???"}if(null!=c&&c!=Object.toString){var u=e.toString();if("[object Object]"!=u)return u}var d=null;i="{\n",t+="\t";var m=null!=e.hasOwnProperty;for(var d in e)m&&!e.hasOwnProperty(d)||"prototype"!=d&&"__class__"!=d&&"__super__"!=d&&"__interfaces__"!=d&&"__properties__"!=d&&(2!=i.length&&(i+=", \n"),i+=t+d+" : "+js.Boot.__string_rec(e[d],t));return i+"\n"+(t=t.substring(1))+"}";case"function":return"";case"string":return e;default:return String(e)}},js.Boot.__interfLoop=function(e,t){if(null==e)return!1;if(e==t)return!0;var n=e.__interfaces__;if(null!=n)for(var i=0,r=n.length;i{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(644),r=n(574),a=n(443),o=n(976);class s{static removeImgDataAttributes(e){const t=[],{attributes:n}=e;Object.keys(n).forEach((e=>{const i=n[e];void 0!==i&&void 0!==i.name&&0===i.name.indexOf("data-")&&t.push(i.name)})),t.forEach((t=>{e.removeAttribute(t)}))}static clone(e,t){const n=o.A.get("imageCustomEditorName");e.hasAttribute(n)||t.removeAttribute(n),[o.A.get("imageMathmlAttribute"),n,"alt","height","width","style","src","role"].forEach((n=>{const i=e.getAttribute(n);i&&t.setAttribute(n,i)}))}static isSvg(e){return e.src.startsWith("data:image/svg+xml;")}static isBase64(e){return e.src.startsWith("data:image/svg+xml;base64,")||e.src.startsWith("data:image/png;base64,")}static setImgSize(e,t,n){let r,a,o,l;if(n)if(s.isSvg(e))if(s.isBase64(e)){a=e.src.substr(e.src.indexOf("base64,")+7,e.src.length),l="",o=i.default.b64ToByteArray(a,a.length);for(let e=0;e{if(-1!==e.src.indexOf("data:image"))if(-1!==e.src.indexOf("data:image/svg+xml"))if(-1!==e.src.indexOf("data:image/svg+xml;base64,")){const t=e.getAttribute("src").substring(26),n=window.atob(t),i=encodeURIComponent(n);e.setAttribute("src",`data:image/svg+xml;charset=utf8,${i}`);const r=decodeURIComponent(e.src.substring(32,e.src.length));s.setImgSize(e,r,!0),e.setAttribute("src",`data:image/svg+xml;base64,${t}`)}else{const t=decodeURIComponent(e.src.substring(32,e.src.length));s.setImgSize(e,t,!0)}else{const t=e.src.substring(22,e.src.length);s.setImgSize(e,t,!0)}else s.setImgSize(e,e.src)};if(-1===e.src.indexOf("blob:"))t(e);else{let n=new FileReader;n.onload=function(){e.setAttribute("src",n.result),t(e)},fetch(e.src).then((e=>e.blob())).then((e=>{n.readAsDataURL(e)}))}}static getMetricsFromSvgString(e){let t=e.indexOf('height="'),n=e.indexOf('"',t+8,e.length);const i=e.substring(t+8,n);t=e.indexOf('width="'),n=e.indexOf('"',t+7,e.length);const r=e.substring(t+7,n);t=e.indexOf('wrs:baseline="'),n=e.indexOf('"',t+14,e.length);const a=e.substring(t+14,n);if(void 0!==r){const e=[];return e.cw=r,e.ch=i,void 0!==a&&(e.cb=a),e}return[]}static getMetricsFromBytes(e){let t,n,r,a,o;for(i.default.readBytes(e,0,8);e.length>=4;)r=i.default.readInt32(e),1229472850===r?(t=i.default.readInt32(e),n=i.default.readInt32(e),i.default.readInt32(e),i.default.readByte(e)):1650545477===r?a=i.default.readInt32(e):1883789683===r&&(o=i.default.readInt32(e),o=Math.round(o/39.37),i.default.readInt32(e),i.default.readByte(e)),i.default.readInt32(e);if(void 0!==t){const e=[];return e.cw=t,e.ch=n,e.dpi=o,a&&(e.cb=a),e}return[]}}var l=n(33),c=n(654),u=n(565);class d{static get cache(){return d._cache}static set cache(e){d._cache=e}static mathMLToAccessible(e,t,n){void 0===t&&(t="en"),a.default.containClass(e,"wrs_chemistry")&&(n.mode="chemistry"),n.ignoreStyles=!0;let i="";if(d.cache.get(e))i=d.cache.get(e);else{n.service="mathml2accessible",n.lang=t;const r=JSON.parse(c.A.getService("service",n));"error"!==r.status?(i=r.result.text,d.cache.populate(e,i)):i=u.A.get("error_convert_accessibility")}return i}}d._cache=new l.A;var m=n(931);n(206);class h{static mathmlToImgObject(e,t,n,r){const l=e.createElement("img");l.align="middle",l.style.maxWidth="none";let u=n||{};if(u={...o.A.get("editorParameters"),...u},u.mml=t,u.lang=r,u.metrics="true",u.centerbaseline="false","base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")&&(u.base64=!0),l.className=o.A.get("imageClassName"),-1!==t.indexOf('class="')){let e=t.substring(t.indexOf('class="')+7,t.length);e=e.substring(0,e.indexOf('"')),e=e.substring(4,e.length),l.setAttribute(o.A.get("imageCustomEditorName"),e)}if(!o.A.get("wirisPluginPerformance")||"xml"!==o.A.get("saveMode")&&"safeXml"!==o.A.get("saveMode")){const e=h.createImageSrc(t,u);l.setAttribute(o.A.get("imageMathmlAttribute"),a.default.safeXmlEncode(t)),l.src=e,s.setImgSize(l,e,"base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")),o.A.get("enableAccessibility")&&(l.alt=d.mathMLToAccessible(t,r,u))}else{let e=JSON.parse(h.createShowImageSrc(u,r));if("warning"===e.status)try{e=JSON.parse(c.A.getService("showimage",u))}catch(e){return null}({result:e}=e),"png"===e.format?l.src=`data:image/png;base64,${e.content}`:l.src=`data:image/svg+xml;charset=utf8,${i.default.urlEncode(e.content)}`,l.setAttribute(o.A.get("imageMathmlAttribute"),a.default.safeXmlEncode(t)),s.setImgSize(l,e.content,!0),o.A.get("enableAccessibility")&&(void 0===e.alt?l.alt=d.mathMLToAccessible(t,r,u):l.alt=e.alt)}return void 0!==h.observer&&h.observer.observe(l),l.setAttribute("role","math"),l}static createImageSrc(e,t){"base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")&&(t.base64=!0);let n=c.A.getService("createimage",t);if(-1!==n.indexOf("@BASE@")){const e=c.A.getServicePath("createimage").split("/");e.pop(),n=n.split("@BASE@").join(e.join("/"))}return n}static initParse(e,t){return e=h.initParseSaveMode(e,t),h.initParseEditMode(e)}static initParseSaveMode(e,t){return o.A.get("saveMode")&&(e=r.A.parseMathmlToLatex(e,m.A.safeXmlCharacters),e=r.A.parseMathmlToLatex(e,m.A.xmlCharacters),e=h.parseMathmlToImg(e,m.A.safeXmlCharacters,t),e=h.parseMathmlToImg(e,m.A.xmlCharacters,t),"base64"===o.A.get("saveMode")&&"image"===o.A.get("base64savemode")&&(e=h.codeImgTransform(e,"base642showimage"))),e}static initParseEditMode(e){if(-1!==o.A.get("parseModes").indexOf("latex")){const t=i.default.getElementsByNameFromString(e,"img",!0),n='encoding="LaTeX">';let r=0;for(let s=0;s",m),o=d.substring(m,a),l=`$$${i.default.htmlEntitiesDecode(o)}$$`,c=e.substring(0,t[s].start+r),u=e.substring(t[s].end+r);e=c+l+u,r+=l.length-(t[s].end-t[s].start)}}}}}return e}static endParse(e){const t=h.endParseEditMode(e);return h.endParseSaveMode(t)}static endParseEditMode(e){if(-1!==o.A.get("parseModes").indexOf("latex")){let t="",n=0,s=e.indexOf("$$");for(;-1!==s;){if(t+=e.substring(n,s),n=e.indexOf("$$",s+2),-1!==n){const l=e.substring(s+2,n),c=i.default.htmlEntitiesDecode(l);let u=i.default.htmlSanitize(r.A.getMathMLFromLatex(c,!0));o.A.get("saveHandTraces")||(u=a.default.removeAnnotation(u,"application/json")),t+=u,n+=2}else t+="$$",n=s+2;s=e.indexOf("$$",n)}t+=e.substring(n,e.length),e=t}return e}static endParseSaveMode(e){return o.A.get("saveMode")&&("safeXml"===o.A.get("saveMode")||"xml"===o.A.get("saveMode")?e=h.codeImgTransform(e,"img2mathml"):"base64"===o.A.get("saveMode")&&"image"===o.A.get("base64savemode")&&(e=h.codeImgTransform(e,"img264"))),e}static createShowImageSrcData(e,t){const n={};["mml","color","centerbaseline","zoom","dpi","fontSize","fontFamily","defaultStretchy","backgroundColor","format"].forEach((t=>{void 0!==e[t]&&(n[t]=e[t])}));const r={};return Object.keys(e).forEach((t=>{"mml"!==t&&(r[t]=e[t])})),r.formula=com.wiris.js.JsPluginTools.md5encode(i.default.propertiesToString(n)),r.lang=void 0===t?"en":t,r.version=o.A.get("version"),r}static createShowImageSrc(e,t){const n=this.createShowImageSrcData(e,t);return c.A.getService("showimage",i.default.httpBuildQuery(n),!0)}static codeImgTransform(e,t){let n="",r=0;const l=/"===t&&(r=d+1);d+=1}if(r",c):l.length,a.default.isMathmlInAttribute(e,c)||-1!==d)r+=e.substring(c,u);else{let o=e.substring(c,u);o=t.id===m.A.safeXmlCharacters.id?a.default.safeXmlDecode(o):a.default.mathMLEntities(o),r+=i.default.createObjectCode(h.mathmlToImgObject(document,o,null,n))}c=e.indexOf(s,u)}return r+=e.substring(u,e.length),r}}if("undefined"!=typeof MutationObserver){const e=new MutationObserver((e=>{e.forEach((e=>{e.oldValue===o.A.get("imageClassName")&&"class"===e.attributeName&&-1===e.target.className.indexOf(o.A.get("imageClassName"))&&(e.target.className=o.A.get("imageClassName"))}))}));h.observer=Object.create(e),h.observer.Config={attributes:!0,attributeOldValue:!0},h.observer.observe=function(e){Object.getPrototypeOf(this).observe(e,this.Config)}}},654:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(644),r=n(976);class a{static get listeners(){return a._listeners}static addListener(e){a.listeners.add(e)}static fireEvent(e,t){a.listeners.fire(e,t)}static get parameters(){return a._parameters}static set parameters(e){a._parameters=e}static get servicePaths(){return a._servicePaths}static set servicePaths(e){a._servicePaths=e}static setServicePath(e,t){a.servicePaths[e]=t}static getServicePath(e){return a.servicePaths[e]}static get integrationPath(){return a._integrationPath}static set integrationPath(e){a._integrationPath=e}static getServerURL(){const e=window.location.href.split("/");return`${e[0]}//${e[2]}`}static init(e){a.parameters=e;let t=a.createServiceURI("configurationjs"),n=a.createServiceURI("createimage"),i=a.createServiceURI("showimage"),r=a.createServiceURI("getmathml"),o=a.createServiceURI("service");if(0===a.parameters.URI.indexOf("/")){const e=a.getServerURL();t=e+t,i=e+i,n=e+n,r=e+r,o=e+o}a.setServicePath("configurationjs",t),a.setServicePath("showimage",i),a.setServicePath("createimage",n),a.setServicePath("service",o),a.setServicePath("getmathml",r),a.setServicePath("configurationjs",t),a.listeners.fire("onInit",{})}static getUrl(e,t){const n=window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1),a=i.default.createHttpRequest();if(a){void 0===t||void 0===t?a.open("GET",e,!1):"/"===e.substr(0,1)||"http://"===e.substr(0,7)||"https://"===e.substr(0,8)?a.open("POST",e,!1):a.open("POST",n+e,!1);let o=r.A.get("customHeaders");return o&&("string"==typeof o&&(o=i.default.convertStringToObject(o)),Object.entries(o).forEach((([e,t])=>a.setRequestHeader(e,t)))),void 0!==t&&t?(a.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8"),a.send(i.default.httpBuildQuery(t))):a.send(null),a.responseText}return""}static getService(e,t,n){let i;if(!0===n){const n=t?`?${t}`:"",r=`${a.getServicePath(e)}${n}`;i=a.getUrl(r)}else{const n=a.getServicePath(e);i=a.getUrl(n,t)}return i}static getServerLanguageFromService(e){return-1!==e.indexOf(".php")?"php":-1!==e.indexOf(".aspx")?"aspx":-1!==e.indexOf("wirispluginengine")?"ruby":"java"}static createServiceURI(e){const t=a.serverExtension();return i.default.concatenateUrl(a.parameters.URI,e)+t}static serverExtension(){return-1!==a.parameters.server.indexOf("php")?".php":-1!==a.parameters.server.indexOf("aspx")?".aspx":""}}a._servicePaths={},a._integrationPath="",a._listeners=new class{constructor(){this.listeners=[]}add(e){this.listeners.push(e)}fire(e,t){for(let n=0;n{"use strict";n.d(t,{A:()=>r});const i=JSON.parse('{"ar":{"latex":"LaTeX","cancel":"إلغاء","accept":"إدراج","manual":"الدليل","insert_math":"إدراج صيغة رياضية - MathType","insert_chem":"إدراج صيغة كيميائية - ChemType","minimize":"تصغير","maximize":"تكبير","fullscreen":"ملء الشاشة","exit_fullscreen":"الخروج من ملء الشاشة","close":"إغلاق","mathtype":"MathType","title_modalwindow":"نافذة MathType مشروطة","close_modal_warning":"هل تريد المغادرة بالتأكيد؟ ستُفقد التغييرات التي أجريتها.","latex_name_label":"صيغة Latex","browser_no_compatible":"المستعرض غير متوافق مع تقنية AJAX. الرجاء استخدام أحدث إصدار من Mozilla Firefox.","error_convert_accessibility":"حدث خطأ أثناء التحويل من MathML إلى نص قابل للاستخدام.","exception_cross_site":"البرمجة النصية للمواقع المشتركة مسموح بها لـ HTTP فقط.","exception_high_surrogate":"المركّب المرتفع غير متبوع بمركّب منخفض في fixedCharCodeAt()‎","exception_string_length":"سلسلة غير صالحة. يجب أن يكون الطول من مضاعفات العدد 4","exception_key_nonobject":"Object.keys مستدعاة على غير كائن","exception_null_or_undefined":" هذا فارغ أو غير محدد","exception_not_function":" ليست دالة","exception_invalid_date_format":"تنسيق تاريخ غير صالح: ","exception_casting":"لا يمكن الصياغة ","exception_casting_to":" إلى "},"ca":{"latex":"LaTeX","cancel":"Cancel·lar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemàtica - MathType","insert_chem":"Inserir fórmula química - ChemType","minimize":"Minimitza","maximize":"Maximitza","fullscreen":"Pantalla completa","exit_fullscreen":"Sortir de la pantalla complera","close":"Tanca","mathtype":"MathType","title_modalwindow":" Finestra modal de MathType","close_modal_warning":"N\'estàs segur que vols sortir? Es perdran els canvis que has fet.","latex_name_label":"Fórmula en Latex","browser_no_compatible":"El teu navegador no és compatible amb AJAX. Si us plau, usa la darrera versió de Mozilla Firefox.","error_convert_accessibility":"Error en convertir de MathML a text accessible.","exception_cross_site":"Els scripts de llocs creuats només estan permesos per HTTP.","exception_high_surrogate":"Subrogat alt no seguit de subrogat baix a fixedCharCodeAt()","exception_string_length":"Cadena invàlida. La longitud ha de ser un múltiple de 4","exception_key_nonobject":"Object.keys anomenat a non-object","exception_null_or_undefined":" això és null o no definit","exception_not_function":" no és una funció","exception_invalid_date_format":"Format de data invàlid : ","exception_casting":"No es pot emetre ","exception_casting_to":" a "},"cs":{"latex":"LaTeX","cancel":"Storno","accept":"Vložit","manual":"Příručka","insert_math":"Vložit matematický vzorec - MathType","insert_chem":"Vložení chemického vzorce – ChemType","minimize":"Minimalizovat","maximize":"Maximalizovat","fullscreen":"Celá obrazovka","exit_fullscreen":"Opustit režim celé obrazovky","close":"Zavřít","mathtype":"MathType","title_modalwindow":"Modální okno MathType","close_modal_warning":"Opravdu chcete okno zavřít? Provedené změny budou ztraceny.","latex_name_label":"Vzorec v LaTeXu","browser_no_compatible":"Váš prohlížeč nepodporuje technologii AJAX. Použijte nejnovější verzi prohlížeče Mozilla Firefox.","error_convert_accessibility":"Při převodu kódu MathML na čitelný text došlo k chybě.","exception_cross_site":"Skriptování mezi více servery je povoleno jen v HTTP.","exception_high_surrogate":"Ve funkci fixedCharCodeAt() nenásleduje po první části kódu znaku druhá část","exception_string_length":"Neplatný řetězec. Délka musí být násobkem 4.","exception_key_nonobject":"Funkce Object.keys byla použita pro prvek, který není objektem","exception_null_or_undefined":" hodnota je null nebo není definovaná","exception_not_function":" není funkce","exception_invalid_date_format":"Neplatný formát data: ","exception_casting":"Nelze přetypovat ","exception_casting_to":" na "},"da":{"latex":"LaTeX","cancel":"Annuller","accept":"Indsæt","manual":"Brugervejledning","insert_math":"Indsæt matematisk formel - MathType","insert_chem":"Indsæt en kemisk formel - ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fuld skærm","exit_fullscreen":"Afslut Fuld skærm","close":"Luk","mathtype":"MathType","title_modalwindow":"MathType-modalvindue","close_modal_warning":"Er du sikker på, du vil lukke? Dine ændringer går tabt.","latex_name_label":"LaTex-formel","browser_no_compatible":"Din browser er ikke kompatibel med AJAX-teknologi. Brug den nyeste version af Mozilla Firefox.","error_convert_accessibility":"Fejl under konvertering fra MathML til tilgængelig tekst.","exception_cross_site":"Scripts på tværs af websteder er kun tilladt for HTTP.","exception_high_surrogate":"Et højt erstatningstegn er ikke fulgt af et lavt erstatningstegn i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Længden skal være et multiplum af 4","exception_key_nonobject":"Object.keys kaldet ved ikke-objekt","exception_null_or_undefined":" dette er nul eller ikke defineret","exception_not_function":" er ikke en funktion","exception_invalid_date_format":"Ugyldigt datoformat: ","exception_casting":"Kan ikke beregne ","exception_casting_to":" til "},"de":{"latex":"LaTeX","cancel":"Abbrechen","accept":"Einfügen","manual":"Handbuch","insert_math":"Mathematische Formel einfügen - MathType","insert_chem":"Eine chemische Formel einfügen – ChemType","minimize":"Verkleinern","maximize":"Vergrößern","fullscreen":"Vollbild","exit_fullscreen":"Vollbild schließen","close":"Schließen","mathtype":"MathType","title_modalwindow":"Modales MathType-Fenster","close_modal_warning":"Bist du sicher, dass du das Programm verlassen willst? Alle vorgenommenen Änderungen gehen damit verloren.","latex_name_label":"Latex-Formel","browser_no_compatible":"Dein Browser ist nicht mit der AJAX-Technologie kompatibel. Verwende bitte die neueste Version von Mozilla Firefox.","error_convert_accessibility":"Fehler beim Konvertieren von MathML in barrierefreien Text.","exception_cross_site":"Cross-Site-Scripting ist nur bei HTTP zulässig.","exception_high_surrogate":"Hoher Ersatz bei bei festerZeichenkodierungbei() nicht von niedrigem Ersatz befolgt.","exception_string_length":"Ungültige Zeichenfolge. Länge muss ein Vielfaches von 4 sein.","exception_key_nonobject":"Object.keys wurde für ein Nicht-Objekt aufgerufen.","exception_null_or_undefined":" Das ist Null oder nicht definiert.","exception_not_function":" ist keine Funktion","exception_invalid_date_format":"Ungültiges Datumsformat: ","exception_casting":"Umwandlung nicht möglich ","exception_casting_to":" zu "},"el":{"latex":"LaTeX","cancel":"Άκυρο","accept":"Εισαγωγή","manual":"Χειροκίνητα","insert_math":"Εισαγωγή μαθηματικού τύπου - MathType","insert_chem":"Εισαγωγή χημικού τύπου - ChemType","minimize":"Ελαχιστοποίηση","maximize":"Μεγιστοποίηση","fullscreen":"Πλήρης οθόνη","exit_fullscreen":"Έξοδος από πλήρη οθόνη","close":"Κλείσιμο","mathtype":"MathType","title_modalwindow":"Τροπικό παράθυρο MathType","close_modal_warning":"Επιθυμείτε σίγουρα αποχώρηση; Θα χαθούν οι αλλαγές που έχετε κάνει.","latex_name_label":"Τύπος LaTeX","browser_no_compatible":"Το πρόγραμμα περιήγησής σας δεν είναι συμβατό με την τεχνολογία AJAX. Χρησιμοποιήστε την πιο πρόσφατη έκδοση του Mozilla Firefox.","error_convert_accessibility":"Σφάλμα κατά τη μετατροπή από MathML σε προσβάσιμο κείμενο.","exception_cross_site":"Το XSS (Cross site scripting) επιτρέπεται μόνο για HTTP.","exception_high_surrogate":"Το υψηλό υποκατάστατο δεν ακολουθείται από χαμηλό υποκατάστατο στο fixedCharCodeAt()","exception_string_length":"Μη έγκυρη συμβολοσειρά. Το μήκος πρέπει να είναι πολλαπλάσιο του 4","exception_key_nonobject":"Έγινε κλήση του Object.keys σε μη αντικείμενο","exception_null_or_undefined":" αυτό είναι μηδενικό ή δεν έχει οριστεί","exception_not_function":" δεν είναι συνάρτηση","exception_invalid_date_format":"Μη έγκυρη μορφή ημερομηνίας: ","exception_casting":"Δεν είναι δυνατή η μετατροπή ","exception_casting_to":" σε "},"en":{"latex":"LaTeX","cancel":"Cancel","accept":"Insert","manual":"Manual","insert_math":"Insert a math equation - MathType","insert_chem":"Insert a chemistry formula - ChemType","minimize":"Minimize","maximize":"Maximize","fullscreen":"Full-screen","exit_fullscreen":"Exit full-screen","close":"Close","mathtype":"MathType","title_modalwindow":"MathType modal window","close_modal_warning":"Are you sure you want to leave? The changes you made will be lost.","latex_name_label":"Latex Formula","browser_no_compatible":"Your browser is not compatible with AJAX technology. Please, use the latest version of Mozilla Firefox.","error_convert_accessibility":"Error converting from MathML to accessible text.","exception_cross_site":"Cross site scripting is only allowed for HTTP.","exception_high_surrogate":"High surrogate not followed by low surrogate in fixedCharCodeAt()","exception_string_length":"Invalid string. Length must be a multiple of 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" this is null or not defined","exception_not_function":" is not a function","exception_invalid_date_format":"Invalid date format : ","exception_casting":"Cannot cast ","exception_casting_to":" to "},"es":{"latex":"LaTeX","cancel":"Cancelar","accept":"Insertar","manual":"Manual","insert_math":"Insertar fórmula matemática - MathType","insert_chem":"Insertar fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Salir de pantalla completa","close":"Cerrar","mathtype":"MathType","title_modalwindow":"Ventana modal de MathType","close_modal_warning":"Seguro que quieres cerrar? Los cambios que has hecho se perderán","latex_name_label":"Formula en Latex","browser_no_compatible":"Tu navegador no es complatible con AJAX. Por favor, usa la última version de Mozilla Firefox.","error_convert_accessibility":"Error conviertiendo una fórmula MathML a texto accesible.","exception_cross_site":"Cross site scripting solo está permitido para HTTP.","exception_high_surrogate":"Subrogado alto no seguido por subrogado bajo en fixedCharCodeAt()","exception_string_length":"Cadena no válida. La longitud debe ser múltiplo de 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" esto es null o no definido","exception_not_function":" no es una función","exception_invalid_date_format":"Formato de fecha inválido: ","exception_casting":"No se puede emitir","exception_casting_to":" a "},"et":{"latex":"LaTeX","cancel":"Loobu","accept":"Lisa","manual":"Käsiraamat","insert_math":"Lisa matemaatiline valem – WIRIS","insert_chem":"Lisa keemiline valem – ChemType","minimize":"Minimeeri","maximize":"Maksimeeri","fullscreen":"Täiskuva","exit_fullscreen":"Välju täiskuvalt","close":"Sule","mathtype":"MathType","title_modalwindow":"MathType\'i modaalaken","close_modal_warning":"Kas soovite kindlasti lahkuda? Tehtud muudatused lähevad kaduma.","latex_name_label":"Latexi valem","browser_no_compatible":"Teie brauser ei ühildu AJAXi tehnoloogiaga. Palun kasutage Mozilla Firefoxi uusimat versiooni.","error_convert_accessibility":"Tõrge teisendamisel MathML-ist muudetavaks tekstiks.","exception_cross_site":"Ristskriptimine on lubatud ainult HTTP kasutamisel.","exception_high_surrogate":"Funktsioonis fixedCharCodeAt() ei järgne kõrgemale asendusliikmele madalam asendusliige.","exception_string_length":"Vigane string. Pikkus peab olema 4 kordne.","exception_key_nonobject":"Protseduur Object.keys kutsuti mitteobjekti korral.","exception_null_or_undefined":" see on null või määramata","exception_not_function":" ei ole funktsioon","exception_invalid_date_format":"Sobimatu kuupäeva kuju: ","exception_casting":"Esitamine ei õnnestu ","exception_casting_to":" – "},"eu":{"latex":"LaTeX","cancel":"Ezeztatu","accept":"Txertatu","manual":"Gida","insert_math":"Txertatu matematikako formula - MathType","insert_chem":"Txertatu formula kimiko bat - ChemType","minimize":"Ikonotu","maximize":"Maximizatu","fullscreen":"Pantaila osoa","exit_fullscreen":"Irten pantaila osotik","close":"Itxi","mathtype":"MathType","title_modalwindow":"MathType leiho modala","close_modal_warning":"Ziur irten nahi duzula? Egiten dituzun aldaketak galdu egingo dira.","latex_name_label":"LaTex Formula","browser_no_compatible":"Zure arakatzailea ez da bateragarria AJAX teknologiarekin. Erabili Mozilla Firefoxen azken bertsioa.","error_convert_accessibility":"Errorea MathMLtik testu irisgarrira bihurtzean.","exception_cross_site":"Gune arteko scriptak HTTPrako soilik onartzen dira.","exception_high_surrogate":"Ordezko baxuak ez dio ordezko altuari jarraitzen, hemen: fixedCharCodeAt()","exception_string_length":"Kate baliogabea. Luzerak 4ren multiploa izan behar du","exception_key_nonobject":"Object.keys deitu zaio objektua ez den zerbaiti","exception_null_or_undefined":" nulua edo definitu gabea da","exception_not_function":" ez da funtzio bat","exception_invalid_date_format":"Data-formatu baliogabea : ","exception_casting":"Ezin da igorri ","exception_casting_to":" honi "},"fi":{"latex":"LaTeX","cancel":"Peruuta","accept":"Lisää","manual":"Manual","insert_math":"Liitä matemaattinen kaava - MathType","insert_chem":"Lisää kemian kaava - ChemType","minimize":"Pienennä","maximize":"Suurenna","fullscreen":"Koko ruutu","exit_fullscreen":"Poistu koko ruudun tilasta","close":"Sulje","mathtype":"MathType","title_modalwindow":"MathTypen modaalinen ikkuna","close_modal_warning":"Oletko varma, että haluat poistua? Menetät tekemäsi muutokset.","latex_name_label":"Latex-kaava","browser_no_compatible":"Selaimesi ei tue AJAX-tekniikkaa. Ole hyvä ja käytä uusinta Firefox-versiota.","error_convert_accessibility":"Virhe muunnettaessa MathML:stä tekstiksi.","exception_cross_site":"Cross site scripting sallitaan vain HTTP:llä.","exception_high_surrogate":"fixedCharCodeAt(): yläsijaismerkkiä ei seurannut alasijaismerkki","exception_string_length":"Epäkelpo merkkijono. Pituuden on oltava 4:n kerrannainen","exception_key_nonobject":"Object.keys kutsui muuta kuin oliota","exception_null_or_undefined":" tämä on null tai ei määritelty","exception_not_function":" ei ole funktio","exception_invalid_date_format":"Virheellinen päivämäärämuoto : ","exception_casting":"Ei voida muuntaa tyyppiä ","exception_casting_to":" tyyppiin "},"fr":{"latex":"LaTeX","cancel":"Annuler","accept":"Insérer","manual":"Manuel","insert_math":"Insérer une formule mathématique - MathType","insert_chem":"Insérer une formule chimique - ChemType","minimize":"Minimiser","maximize":"Maximiser","fullscreen":"Plein écran","exit_fullscreen":"Quitter le plein écran","close":"Fermer","mathtype":"MathType","title_modalwindow":"Fenêtre modale MathType","close_modal_warning":"Confirmez-vous vouloir fermer ? Les changements effectués seront perdus.","latex_name_label":"Formule LaTeX","browser_no_compatible":"Votre navigateur n’est pas compatible avec la technologie AJAX. Veuillez utiliser la dernière version de Mozilla Firefox.","error_convert_accessibility":"Une erreur de conversion du format MathML en texte accessible est survenue.","exception_cross_site":"Le cross-site scripting n’est autorisé que pour HTTP.","exception_high_surrogate":"Substitut élevé non suivi d’un substitut inférieur dans fixedCharCodeAt()","exception_string_length":"Chaîne non valide. Longueur limitée aux multiples de 4","exception_key_nonobject":"Object.keys appelé sur un non-objet","exception_null_or_undefined":" nul ou non défini","exception_not_function":" n’est pas une fonction","exception_invalid_date_format":"Format de date non valide : ","exception_casting":"Impossible de convertir ","exception_casting_to":" sur "},"gl":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir unha fórmula matemática - MathType","insert_chem":"Inserir unha fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Saír da pantalla completa","close":"Pechar","mathtype":"MathType","title_modalwindow":"Ventá modal de MathType","close_modal_warning":"Seguro que quere saír? Perderanse os cambios realizados.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu explorador non é compatible coa tecnoloxía AJAX. Use a versión máis recente de Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML a texto accesible.","exception_cross_site":"Os scripts de sitios só se permiten para HTTP.","exception_high_surrogate":"Suplente superior non seguido por suplente inferior en fixedCharCodeAt()","exception_string_length":"Cadea non válida. A lonxitude debe ser un múltiplo de 4","exception_key_nonobject":"Claves de obxecto chamadas en non obxecto","exception_null_or_undefined":" nulo ou non definido","exception_not_function":" non é unha función","exception_invalid_date_format":"Formato de data non válido: ","exception_casting":"Non se pode converter ","exception_casting_to":" a "},"he":{"latex":"LaTeX","cancel":"ביטול","accept":"עדכון","manual":"ידני","insert_math":"הוספת נוסחה מתמטית - MathType","insert_chem":"הוספת כתיבה כימית - ChemType","minimize":"מזערי","maximize":"מרבי","fullscreen":"מסך מלא","exit_fullscreen":"יציאה ממצב מסך מלא","close":"סגירה","mathtype":"MathType","title_modalwindow":"חלון מודאלי של MathType","close_modal_warning":"האם לצאת? שינויים אשר בוצעו ימחקו.","latex_name_label":"נוסחת Latex","browser_no_compatible":"הדפדפן שלך אינו תואם לטכנולוגיית AJAX. יש להשתמש בגרסה העדכנית ביותר של Mozilla Firefox.","error_convert_accessibility":"שגיאה בהמרה מ-MathML לטקסט נגיש.","exception_cross_site":"סקריפטינג חוצה-אתרים מורשה עבור HTTP בלבד.","exception_high_surrogate":"ערך ממלא מקום גבוה אינו מופיע אחרי ערך ממלא מקום נמוך ב-fixedCharCodeAt()‎","exception_string_length":"מחרוזת לא חוקית. האורך חייב להיות כפולה של 4","exception_key_nonobject":"בוצעה קריאה אל Object.keys ברכיב שאינו אובייקט","exception_null_or_undefined":" הוא Null או לא מוגדר","exception_not_function":"איננה פונקציה","exception_invalid_date_format":"תסדיר תאריך אינו תקין : ","exception_casting":"לא ניתן להמיר ","exception_casting_to":" ל "},"hr":{"latex":"LaTeX","cancel":"Poništi","accept":"Umetni","manual":"Priručnik","insert_math":"Umetnite matematičku formulu - MathType","insert_chem":"Umetnite kemijsku formulu - ChemType","minimize":"Minimiziraj","maximize":"Maksimiziraj","fullscreen":"Cijeli zaslon","exit_fullscreen":"Izlaz iz prikaza na cijelom zaslonu","close":"Zatvori","mathtype":"MathType","title_modalwindow":"MathType modalni prozor","close_modal_warning":"Sigurno želite zatvoriti? Izgubit će se unesene promjene.","latex_name_label":"Latex formula","browser_no_compatible":"Vaš preglednik nije kompatibilan s AJAX tehnologijom. Upotrijebite najnoviju verziju Mozilla Firefoxa.","error_convert_accessibility":"Pogreška konverzije iz MathML-a u dostupni tekst.","exception_cross_site":"Skriptiranje na različitim web-mjestima dopušteno je samo za HTTP.","exception_high_surrogate":"Iza visoke zamjene ne slijedi niska zamjena u fixedCharCodeAt()","exception_string_length":"Nevažeći niz. Duljina mora biti višekratnik broja 4","exception_key_nonobject":"Object.keys pozvano na ne-objekt","exception_null_or_undefined":" ovo je nula ili nije definirano","exception_not_function":" nije funkcija","exception_invalid_date_format":"Nevažeći format datuma : ","exception_casting":"Ne može se poslati ","exception_casting_to":" na "},"hu":{"latex":"LaTeX","cancel":"Mégsem","accept":"Beszúrás","manual":"Kézikönyv","insert_math":"Matematikai képlet beszúrása - MathType","insert_chem":"Kémiai képet beillesztése - ChemType","minimize":"Kis méret","maximize":"Nagy méret","fullscreen":"Teljes képernyő","exit_fullscreen":"Teljes képernyő elhagyása","close":"Bezárás","mathtype":"MathType","title_modalwindow":"MathType modális ablak","close_modal_warning":"Biztosan kilép? A módosítások el fognak veszni.","latex_name_label":"Latex képlet","browser_no_compatible":"A böngészője nem kompatibilis az AJAX technológiával. Használja a Mozilla Firefox legújabb verzióját.","error_convert_accessibility":"Hiba lépett fel a MathML szöveggé történő konvertálása során.","exception_cross_site":"Az oldalak közti scriptelés csak HTTP esetén engedélyezett.","exception_high_surrogate":"A magas helyettesítő karaktert nem alacsony helyettesítő karakter követi a fixedCharCodeAt() esetében","exception_string_length":"Érvénytelen karakterlánc. A hossznak a 4 többszörösének kell lennie","exception_key_nonobject":"Az Object.keys egy nem objektumra került meghívásra","exception_null_or_undefined":" null vagy nem definiált","exception_not_function":" nem függvény","exception_invalid_date_format":"Érvénytelen dátumformátum: ","exception_casting":"Nem alkalmazható ","exception_casting_to":" erre "},"id":{"latex":"LaTeX","cancel":"Membatalkan","accept":"Masukkan","manual":"Manual","insert_math":"Masukkan rumus matematika - MathType","insert_chem":"Masukkan rumus kimia - ChemType","minimize":"Minikan","maximize":"Perbesar","fullscreen":"Layar penuh","exit_fullscreen":"Keluar layar penuh","close":"Tutup","mathtype":"MathType","title_modalwindow":"Jendela modal MathType","close_modal_warning":"Anda yakin ingin keluar? Anda akan kehilangan perubahan yang Anda buat.","latex_name_label":"Rumus Latex","browser_no_compatible":"Penjelajah Anda tidak kompatibel dengan teknologi AJAX. Harap gunakan Mozilla Firefox versi terbaru.","error_convert_accessibility":"Kesalahan konversi dari MathML menjadi teks yang dapat diakses.","exception_cross_site":"Skrip lintas situs hanya diizinkan untuk HTTP.","exception_high_surrogate":"Pengganti tinggi tidak diikuti oleh pengganti rendah di fixedCharCodeAt()","exception_string_length":"String tidak valid. Panjang harus kelipatan 4","exception_key_nonobject":"Object.keys meminta nonobjek","exception_null_or_undefined":" ini tidak berlaku atau tidak didefinisikan","exception_not_function":" bukan sebuah fungsi","exception_invalid_date_format":"Format tanggal tidak valid : ","exception_casting":"Tidak dapat mentransmisikan ","exception_casting_to":" untuk "},"it":{"latex":"LaTeX","cancel":"Annulla","accept":"Inserisci","manual":"Manuale","insert_math":"Inserisci una formula matematica - MathType","insert_chem":"Inserisci una formula chimica - ChemType","minimize":"Riduci a icona","maximize":"Ingrandisci","fullscreen":"Schermo intero","exit_fullscreen":"Esci da schermo intero","close":"Chiudi","mathtype":"MathType","title_modalwindow":"Finestra modale di MathType","close_modal_warning":"Confermi di voler uscire? Le modifiche effettuate andranno perse.","latex_name_label":"Formula LaTeX","browser_no_compatible":"Il tuo browser non è compatibile con la tecnologia AJAX. Utilizza la versione più recente di Mozilla Firefox.","error_convert_accessibility":"Errore durante la conversione da MathML in testo accessibile.","exception_cross_site":"Lo scripting tra siti è consentito solo per HTTP.","exception_high_surrogate":"Surrogato alto non seguito da surrogato basso in fixedCharCodeAt()","exception_string_length":"Stringa non valida. La lunghezza deve essere un multiplo di 4","exception_key_nonobject":"Metodo Object.keys richiamato in un elemento non oggetto","exception_null_or_undefined":" questo è un valore null o non definito","exception_not_function":" non è una funzione","exception_invalid_date_format":"Formato di data non valido: ","exception_casting":"Impossibile eseguire il cast ","exception_casting_to":" a "},"ja":{"latex":"LaTeX","cancel":"キャンセル","accept":"挿入","manual":"マニュアル","insert_math":"数式を挿入 - MathType","insert_chem":"化学式を挿入 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全画面表示","exit_fullscreen":"全画面表示を解除","close":"閉じる","mathtype":"MathType","title_modalwindow":"MathType モードウィンドウ","close_modal_warning":"このページから移動してもよろしいですか?変更内容は失われます。","latex_name_label":"LaTeX 数式","browser_no_compatible":"お使いのブラウザは、AJAX 技術と互換性がありません。Mozilla Firefox の最新バージョンをご使用ください。","error_convert_accessibility":"MathML からアクセシブルなテキストへの変換中にエラーが発生しました。","exception_cross_site":"クロスサイトスクリプティングは、HTTP のみに許可されています。","exception_high_surrogate":"fixedCharCodeAt()で上位サロゲートの後に下位サロゲートがありません","exception_string_length":"無効な文字列です。長さは4の倍数である必要があります","exception_key_nonobject":"Object.keys が非オブジェクトで呼び出されました","exception_null_or_undefined":" null であるか、定義されていません","exception_not_function":" は関数ではありません","exception_invalid_date_format":"無効な日付形式: ","exception_casting":"次にキャスト ","exception_casting_to":" できません "},"ko":{"latex":"LaTeX","cancel":"취소","accept":"삽입","manual":"설명서","insert_math":"수학 공식 삽입 - MathType","insert_chem":"화학 공식 입력하기 - ChemType","minimize":"최소화","maximize":"최대화","fullscreen":"전체 화면","exit_fullscreen":"전체 화면 나가기","close":"닫기","mathtype":"MathType","title_modalwindow":"MathType 모달 창","close_modal_warning":"정말로 나가시겠습니까? 변경 사항이 손실됩니다.","latex_name_label":"Latex 공식","browser_no_compatible":"사용자의 브라우저는 AJAX 기술과 호환되지 않습니다. Mozilla Firefox 최신 버전을 사용하십시오.","error_convert_accessibility":"MathML로부터 접근 가능한 텍스트로 오류 변환.","exception_cross_site":"사이트 교차 스크립팅은 HTTP 환경에서만 사용할 수 있습니다.","exception_high_surrogate":"fixedCharCodeAt()에서는 상위 서러게이트 뒤에 하위 서러게이트가 붙지 않습니다","exception_string_length":"유효하지 않은 스트링입니다. 길이는 4의 배수여야 합니다","exception_key_nonobject":"Object.keys가 non-object를 요청하였습니다","exception_null_or_undefined":" Null값이거나 정의되지 않았습니다","exception_not_function":" 함수가 아닙니다","exception_invalid_date_format":"유효하지 않은 날짜 포맷 : ","exception_casting":"캐스팅할 수 없습니다 ","exception_casting_to":" (으)로 "},"nl":{"latex":"LaTeX","cancel":"Annuleren","insert_chem":"Een scheikundige formule invoegen - ChemType","minimize":"Minimaliseer","maximize":"Maximaliseer","fullscreen":"Schermvullend","exit_fullscreen":"Verlaat volledig scherm","close":"Sluit","mathtype":"MathType","title_modalwindow":"Modaal venster MathType","close_modal_warning":"Weet je zeker dat je de app wilt sluiten? De gemaakte wijzigingen gaan verloren.","latex_name_label":"LaTeX-formule","browser_no_compatible":"Je browser is niet compatibel met AJAX-technologie. Gebruik de meest recente versie van Mozilla Firefox.","error_convert_accessibility":"Fout bij conversie van MathML naar toegankelijke tekst.","exception_cross_site":"Cross-site scripting is alleen toegestaan voor HTTP.","exception_high_surrogate":"Hoog surrogaat niet gevolgd door laag surrogaat in fixedCharCodeAt()","exception_string_length":"Ongeldige tekenreeks. Lengte moet een veelvoud van 4 zijn","exception_key_nonobject":"Object.keys opgeroepen voor niet-object","exception_null_or_undefined":" dit is nul of niet gedefinieerd","exception_not_function":" is geen functie","exception_invalid_date_format":"Ongeldige datumnotatie: ","exception_casting":"Kan niet weergeven ","exception_casting_to":" op "},"no":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"nb":{"latex":"LaTeX","cancel":"Avbryt","accept":"Insert","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Sett inn en kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringene du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettleseren er ikke kompatibel med AJAX-teknologien. Bruk den nyeste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering fra MathML til tilgjengelig tekst.","exception_cross_site":"Skripting på tvers av nettsteder er bare tillatt med HTTP.","exception_high_surrogate":"Høyt surrogat etterfølges ikke av lavt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengden må være delelig på 4","exception_key_nonobject":"Object.keys kalte på et ikke-objekt","exception_null_or_undefined":" dette er null eller ikke definert","exception_not_function":" er ikke en funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikke bruke casting ","exception_casting_to":" til "},"nn":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"pl":{"latex":"LaTeX","cancel":"Anuluj","accept":"Wstaw","manual":"Instrukcja","insert_math":"Wstaw formułę matematyczną - MathType","insert_chem":"Wstaw wzór chemiczny — ChemType","minimize":"Minimalizuj","maximize":"Maksymalizuj","fullscreen":"Pełny ekran","exit_fullscreen":"Opuść tryb pełnoekranowy","close":"Zamknij","mathtype":"MathType","title_modalwindow":"Okno modalne MathType","close_modal_warning":"Czy na pewno chcesz zamknąć? Wprowadzone zmiany zostaną utracone.","latex_name_label":"Wzór Latex","browser_no_compatible":"Twoja przeglądarka jest niezgodna z technologią AJAX Użyj najnowszej wersji Mozilla Firefox.","error_convert_accessibility":"Błąd podczas konwertowania z formatu MathML na dostępny tekst.","exception_cross_site":"Krzyżowanie skryptów witryny jest dozwolone tylko dla HTTP.","exception_high_surrogate":"Brak niskiego surogatu po wysokim surogacie w fixedCharCodeAt()","exception_string_length":"Niewłaściwy ciąg znaków. Długość musi być wielokrotnością liczby 4.","exception_key_nonobject":"Argumentem wywołanej funkcji Object.key nie jest obiekt.","exception_null_or_undefined":" jest zerowy lub niezdefiniowany","exception_not_function":" nie jest funkcją","exception_invalid_date_format":"Nieprawidłowy format daty: ","exception_casting":"Nie można rzutować ","exception_casting_to":" na "},"pt":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Inserir uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Ecrã completo","exit_fullscreen":"Sair do ecrã completo","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Pretende sair? As alterações efetuadas serão perdidas.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu navegador não é compatível com a tecnologia AJAX. Utilize a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O processamento de scripts em vários sites só é permitido para HTTP.","exception_high_surrogate":"Substituto alto não seguido por um substituto baixo em fixedCharCodeAt()","exception_string_length":"Cadeia inválida. O comprimento tem de ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamou um não-objeto","exception_null_or_undefined":" é nulo ou não está definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível adicionar ","exception_casting_to":" até "},"pt_br":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Insira uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Tela cheia","exit_fullscreen":"Sair de tela cheia","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Tem certeza de que deseja sair? Todas as alterações serão perdidas.","latex_name_label":"Fórmula LaTeX","browser_no_compatible":"O navegador não é compatível com a tecnologia AJAX. Use a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O uso de scripts entre sites só é permitido para HTTP.","exception_high_surrogate":"High surrogate não seguido de low surrogate em fixedCharCodeAt()","exception_string_length":"String inválida. O comprimento deve ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamados em não objeto","exception_null_or_undefined":" isto é nulo ou não definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível transmitir ","exception_casting_to":" para "},"ro":{"latex":"LaTeX","cancel":"Anulare","accept":"Inserați","manual":"Ghid","insert_math":"Inserați o formulă matematică - MathType","insert_chem":"Inserați o formulă chimică - ChemType","minimize":"Minimizați","maximize":"Maximizați","fullscreen":"Afișați pe tot ecranul","exit_fullscreen":"Opriți afișarea pe tot ecranul","close":"Închideți","mathtype":"MathType","title_modalwindow":"Fereastră modală MathType","close_modal_warning":"Sigur doriți să ieșiți? Modificările realizate se vor pierde.","latex_name_label":"Formulă Latex","browser_no_compatible":"Browserul dvs. nu este compatibil cu tehnologia AJAX. Utilizați cea mai recentă versiune de Mozilla Firefox.","error_convert_accessibility":"Eroare la convertirea din MathML în text accesibil.","exception_cross_site":"Scriptarea între site‑uri este permisă doar pentru HTTP.","exception_high_surrogate":"Surogatul superior nu este urmat de un surogat inferior în fixedCharCodeAt()","exception_string_length":"Șir nevalid. Lungimea trebuie să fie multiplu de 4","exception_key_nonobject":"Object.keys a apelat un non-obiect","exception_null_or_undefined":" este null sau nu este definit","exception_not_function":" nu este funcție","exception_invalid_date_format":"Format de dată nevalid: ","exception_casting":"nu se poate difuza ","exception_casting_to":" către "},"ru":{"latex":"LaTeX","cancel":"отмена","accept":"Вставка","manual":"вручную","insert_math":"Вставить математическую формулу: WIRIS","insert_chem":"Вставить химическую формулу — ChemType","minimize":"Свернуть","maximize":"Развернуть","fullscreen":"На весь экран","exit_fullscreen":"Выйти из полноэкранного режима","close":"Закрыть","mathtype":"MathType","title_modalwindow":"Режимное окно MathType","close_modal_warning":"Вы уверены, что хотите выйти? Все внесенные изменения будут утрачены.","latex_name_label":"Формула Latex","browser_no_compatible":"Ваш браузер несовместим с технологией AJAX. Используйте последнюю версию Mozilla Firefox.","error_convert_accessibility":"При преобразовании формулы в текст допустимого формата произошла ошибка.","exception_cross_site":"Межсайтовые сценарии доступны только для HTTP.","exception_high_surrogate":"Младший символ-заместитель не сопровождает старший символ-заместитель в исправленном методе CharCodeAt()","exception_string_length":"Недопустимая строка. Длинна должна быть кратной 4.","exception_key_nonobject":"Метод Object.keys вызван не для объекта","exception_null_or_undefined":" значение пустое или не определено","exception_not_function":" не функция","exception_invalid_date_format":"Недопустимый формат даты: ","exception_casting":"Не удается привести ","exception_casting_to":" к "},"sv":{"latex":"LaTeX","cancel":"Avbryt","accept":"Infoga","manual":"Bruksanvisning","insert_math":"Infoga matematisk formel - MathType","insert_chem":"Infoga en kemiformel – ChemType","minimize":"Minimera","maximize":"Maximera","fullscreen":"Helskärm","exit_fullscreen":"Stäng helskärm","close":"Stäng","mathtype":"MathType","title_modalwindow":"MathType modulfönster","close_modal_warning":"Vill du avsluta? Inga ändringar kommer att sparas.","latex_name_label":"Latex-formel","browser_no_compatible":"Din webbläsare är inte kompatibel med AJAX-teknik. Använd den senaste versionen av Mozilla Firefox.","error_convert_accessibility":"Det uppstod ett fel vid konvertering från MathML till åtkomlig text.","exception_cross_site":"Skriptkörning över flera sajter är endast tillåtet för HTTP.","exception_high_surrogate":"Hög surrogat följs inte av låg surrogat i fixedCharCodeAt()","exception_string_length":"Ogiltig sträng. Längden måste vara en multipel av 4","exception_key_nonobject":"Object.keys anropade icke-objekt","exception_null_or_undefined":" det är null eller inte definierat","exception_not_function":" är inte en funktion","exception_invalid_date_format":"Ogiltigt datumformat: ","exception_casting":"Går inte att konvertera ","exception_casting_to":" till "},"tr":{"latex":"LaTeX","cancel":"Vazgeç","accept":"Ekle","manual":"Kılavuz","insert_math":"Matematik formülü ekle - MathType","insert_chem":"Kimya formülü ekleyin - ChemType","minimize":"Simge Durumuna Küçült","maximize":"Ekranı Kapla","fullscreen":"Tam Ekran","exit_fullscreen":"Tam Ekrandan Çık","close":"Kapat","mathtype":"MathType","title_modalwindow":"MathType kalıcı penceresi","close_modal_warning":"Çıkmak istediğinizden emin misiniz? Yaptığınız değişiklikler kaybolacak.","latex_name_label":"Latex Formülü","browser_no_compatible":"Tarayıcınız AJAX teknolojisiyle uyumlu değil. Lütfen en güncel Mozilla Firefox sürümünü kullanın.","error_convert_accessibility":"MathML biçiminden erişilebilir metne dönüştürme hatası.","exception_cross_site":"Siteler arası komut dosyası yazma işlemine yalnızca HTTP için izin verilir.","exception_high_surrogate":"fixedCharCodeAt() fonksiyonunda üst vekilin ardından alt vekil gelmiyor","exception_string_length":"Geçersiz dizgi. Uzunluk, 4\'ün katlarından biri olmalıdır","exception_key_nonobject":"Nesne olmayan öğe üzerinde Object.keys çağrıldı","exception_null_or_undefined":" bu değer boş veya tanımlanmamış","exception_not_function":" bir fonksiyon değil","exception_invalid_date_format":"Geçersiz tarih biçimi: ","exception_casting":"Tür dönüştürülemiyor ","exception_casting_to":" hedef: "},"zh":{"latex":"LaTeX","cancel":"取消","accept":"插入","manual":"手册","insert_math":"插入数学公式 - MathType","insert_chem":"插入化学分子式 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全屏幕","exit_fullscreen":"退出全屏幕","close":"关闭","mathtype":"MathType","title_modalwindow":"MathType 模式窗口","close_modal_warning":"您确定要离开吗?您所做的修改将丢失。","latex_name_label":"Latex 分子式","browser_no_compatible":"您的浏览器不兼容 AJAX 技术。请使用最新版 Mozilla Firefox。","error_convert_accessibility":"将 MathML 转换为可访问文本时出错。","exception_cross_site":"仅 HTTP 允许跨站脚本。","exception_high_surrogate":"fixedCharCodeAt() 中的高位代理之后未跟随低位代理","exception_string_length":"无效字符串。长度必须是 4 的倍数","exception_key_nonobject":"非对象调用了 Object.keys","exception_null_or_undefined":" 该值为空或未定义","exception_not_function":" 不是一个函数","exception_invalid_date_format":"无效日期格式: ","exception_casting":"无法转换 ","exception_casting_to":" 为 "},"":{}}');class r{constructor(){throw new Error("Static class StringManager can not be instantiated.")}static get(e,t){let{language:n}=this;return t&&(n=t),n&&n.length>2&&(n=n.slice(0,2)),this.strings.hasOwnProperty(n)||(console.warn(`Unknown language ${n} set in StringManager.`),n="en"),this.strings[n].hasOwnProperty(e)?this.strings[n][e]:(console.warn(`Unknown key ${e} for language ${n} in StringManager.`),e)}}r.strings=i,r.language="en"},33:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{constructor(){this.cache=[]}populate(e,t){this.cache[e]=t}get(e){return!!Object.prototype.hasOwnProperty.call(this.cache,e)&&this.cache[e]}}},644:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(651),r=n.n(i),a=n(443),o=n(976),s=n(574),l=n(565);class c{static fireEvent(e,t){if(document.createEvent){const n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!0),!e.dispatchEvent(n)}const n=document.createEventObject();return e.fireEvent(`on${t}`,n)}static addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent&&e.attachEvent(`on${t}`,n)}static removeEvent(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!0):e.detachEvent&&e.detachEvent(`on${t}`,n)}static addElementEvents(e,t,n,i){t&&(this.callbackDblclick=e=>{const n=e||window.event,i=n.srcElement?n.srcElement:n.target;t(i,n)},c.addEvent(e,"dblclick",this.callbackDblclick)),n&&(this.callbackMousedown=e=>{const t=e||window.event,i=t.srcElement?t.srcElement:t.target;n(i,t)},c.addEvent(e,"mousedown",this.callbackMousedown)),i&&(this.callbackMouseup=e=>{const t=e||window.event,n=t.srcElement?t.srcElement:t.target;i(n,t)},c.addEvent(document,"mouseup",this.callbackMouseup),c.addEvent(e,"mouseup",this.callbackMouseup))}static removeElementEvents(e){c.removeEvent(e,"dblclick",this.callbackDblclick),c.removeEvent(e,"mousedown",this.callbackMousedown),c.removeEvent(document,"mouseup",this.callbackMouseup),c.removeEvent(e,"mouseup",this.callbackMouseup)}static addClass(e,t){c.containsClass(e,t)||(e.className+=` ${t}`)}static containsClass(e,t){if(null==e||!("className"in e))return!1;const n=e.className.split(" ");for(let e=n.length-1;e>=0;e-=1)if(n[e]===t)return!0;return!1}static removeClass(e,t){let n="";const i=e.className.split(" ");for(let e=0;ee.trim().split("="))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{}):{}}static createElement(e,t,n){let i;void 0===t&&(t={}),void 0===n&&(n=document);try{let r=`<${e}`;Object.keys(t).forEach((e=>{r+=` ${e}="${c.htmlEntities(t[e])}"`})),r+=">",i=n.createElement(r)}catch(r){i=n.createElement(e),Object.keys(t).forEach((e=>{i.setAttribute(e,t[e])}))}return i}static createObject(e,t){void 0===t&&(t=document),e=(e=(e=(e=e.split("").join("").split("").join("")).split("").join("
").split("").join("
");const n=c.createElement("div",{},t);return n.innerHTML=e,function e(n){if(n.getAttribute&&"WirisParam"===n.getAttribute("wirisObject")){const e={};for(let t=0;t0){t+=">";for(let n=0;n`}else"DIV"===e.nodeName||"SCRIPT"===e.nodeName?t+=`>`:t+="/>";return t}return 3===e.nodeType?c.htmlEntities(e.nodeValue):""}static concatenateUrl(e,t){let n="";return e.indexOf("/")!==e.length&&0!==t.indexOf("/")&&(n="/"),(e+n+t).replace(/([^:]\/)\/+/g,"$1")}static htmlEntities(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")}static htmlSanitize(e){let t=/\/,n=e.match(t);return(e=r().sanitize(e,{ADD_TAGS:["semantics","annotation","mstack","msline","msrow"],ADD_ATTR:["linebreak","charalign","stackalign"]})).replace(t,n)}static htmlEntitiesDecode(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}static createHttpRequest(){if("file://"===window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1).substr(0,7))throw l.A.get("exception_cross_site");if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return null}}}static httpBuildQuery(e){let t="";return Object.keys(e).forEach((n=>{null!=e[n]&&(t+=`${c.urlEncode(n)}=${c.urlEncode(e[n])}&`)})),"&"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),t}static propertiesToString(e){const t=[];Object.keys(e).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&t.push(n)}));const n=t.length;for(let e=0;e0&&(t[e]=r,t[i]=n)}let i="";for(let r=0;rr?r:i;for(n=0;n=55296&&n<=56319){if(i=n,r=e.charCodeAt(t+1),Number.isNaN(r))throw l.A.get("exception_high_surrogate");return 1024*(i-55296)+(r-56320)+65536}return!(n>=56320&&n<=57343)&&n}static urlToAssArray(e){let t;if(t=e.indexOf("?"),t>0){const n=e.substring(t+1).split("&"),i={};for(t=0;t1&&(i[e[0]]=decodeURIComponent(e[1].replace(/\+/g," ")))}return i}return{}}static urlEncode(e){let t="";return t=encodeURIComponent(e),t}static getWIRISImageOutput(e,t,n){const i=c.createObject(e);if(i&&(i.className===o.A.get("imageClassName")||i.getAttribute(o.A.get("imageMathmlAttribute")))){if(!t)return e;const r=i.getAttribute(o.A.get("imageMathmlAttribute"));let s=a.default.safeXmlDecode(r);return o.A.get("saveHandTraces")||(s=a.default.removeAnnotation(s,"application/json")),null==s&&(s=i.getAttribute("alt")),n?a.default.safeXmlEncode(s):s}return e}static getNodeLength(e){const t={IMG:1,BR:1};if(3===e.nodeType)return e.nodeValue.length;if(1===e.nodeType){let n=t[e.nodeName.toUpperCase()];void 0===n&&(n=0);for(let t=0;t0)return 0===n.text.length?c.getSelectedItem(e,t,!0):null;i.document.execCommand("InsertImage",!1,"#");let r,a,o=n.parentElement();return"IMG"!==o.nodeName.toUpperCase()&&(n.pasteHTML(''),o=i.document.getElementById("wrs_openEditorWindow_temporalObject")),o.nextSibling&&3===o.nextSibling.nodeType?(r=o.nextSibling,a=0):o.previousSibling&&3===o.previousSibling.nodeType?(r=o.previousSibling,a=r.nodeValue.length):(r=i.document.createTextNode(""),o.parentNode.insertBefore(r,o),a=0),o.parentNode.removeChild(o),{node:r,caretPosition:a}}return n.length>1?null:{node:n.item(0)}}if(i.getSelection){let a;const o=i.getSelection();try{a=o.getRangeAt(0)}catch(e){a=i.document.createRange()}const s=a.startContainer;if(3===s.nodeType)return{node:s,caretPosition:a.startOffset};if(s!==a.endContainer)return null;if(1===s.nodeType){const i=a.startOffset;if(s.childNodes[i]){if(a.startOffset===a.endOffset){if(0!==i&&"span"===s.childNodes[i-1].localName&&s.childNodes[i].classList?.contains("Wirisformula"))return s.childNodes[i-1].remove(),c.getSelectedItem(e,t,n);if(s.childNodes[i].classList?.contains("Wirisformula")&&(i>0&&s.childNodes[i-1].classList?.contains("Wirisformula")||0===i)){var r=document.createElement("span");return s.insertBefore(r,s.childNodes[i]),{node:s.childNodes[i]}}}return{node:s.childNodes[i]}}}}return null}static getSelectedItemOnTextarea(e){const t=document.createTextNode(e.value),n=s.A.getLatexFromTextNode(t,e.selectionStart);return null===n?null:{node:t,caretPosition:e.selectionStart,startPosition:n.startPosition,endPosition:n.endPosition}}static getElementsByNameFromString(e,t,n){const i=[];e=e.toLowerCase(),t=t.toLowerCase();let r=e.indexOf(`<${t} `);for(;-1!==r;){let a;a=n?">":``;let o=e.indexOf(a,r);-1!==o?(o+=a.length,i.push({start:r,end:o})):o=r+1,r=e.indexOf(`<${t} `,o)}return i}static decode64(e){const t="+".charCodeAt(0),n="/".charCodeAt(0),i="0".charCodeAt(0),r="a".charCodeAt(0),a="A".charCodeAt(0),o="-".charCodeAt(0),s="_".charCodeAt(0),l=e.charCodeAt(0);return l===t||l===o?62:l===n||l===s?63:l0)throw new Error("Invalid string. Length must be a multiple of 4");const i=[];let r,a,o;for(t?r=t:(a="="===e.charAt(e.length-2)?2:"="===e.charAt(e.length-1)?1:0,r=a>0?e.length-4:e.length),o=0;o>16&255),i.push(n>>8&255),i.push(255&n);return a&&(2===a?(n=c.decode64(e.charAt(o))<<2|c.decode64(e.charAt(o+1))>>4,i.push(255&n)):1===a&&(n=c.decode64(e.charAt(o))<<10|c.decode64(e.charAt(o+1))<<4|c.decode64(e.charAt(o+2))>>2,i.push(n>>8&255),i.push(255&n))),i}static readInt32(e){if(e.length<4)return!1;const t=e.splice(0,4);return t[0]<<24|t[1]<<16|t[2]<<8|t[3]}static readByte(e){return 0|e.shift()}static readBytes(e,t,n){return e.splice(t,n)}static updateTextArea(e,t){if(e&&t)if(e.focus(),null!=e.selectionStart){const{selectionEnd:n}=e,i=e.value.substring(0,e.selectionStart),r=e.value.substring(n,e.value.length);e.value=i+t+r,e.selectionEnd=n+t.length}else document.selection.createRange().text=t}static updateExistingTextOnTextarea(e,t,n,i){e.focus();const r=e.value.substring(0,n);e.value=r+t+e.value.substring(i,e.value.length),e.selectionEnd=n+t.length}static addArgument(e,t,n){let i;return i=e.indexOf("?")>0?"&":"?",`${e+i+t}=${n}`}}},651:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object;let{freeze:a,seal:o,create:s}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),o||(o=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=k(Array.prototype.forEach),d=k(Array.prototype.pop),m=k(Array.prototype.push),h=k(String.prototype.toLowerCase),f=k(String.prototype.toString),p=k(String.prototype.match),_=k(String.prototype.replace),g=k(String.prototype.indexOf),b=k(String.prototype.trim),v=k(Object.prototype.hasOwnProperty),x=k(RegExp.prototype.test),y=(w=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let a=i.length;for(;a--;){let t=i[a];if("string"==typeof t){const e=r(t);e!==t&&(n(i)||(i[a]=e),t=e)}e[t]=!0}return e}function A(e){for(let t=0;t/gm),B=o(/\${[\w\W]*}/gm),H=o(/^data-[\-\w.\u00B7-\uFFFF]/),$=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=o(/^(?:\w+script|data):/i),V=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=o(/^html$/i),W=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:X,TMPLIT_EXPR:B,DATA_ATTR:H,ARIA_ATTR:$,IS_ALLOWED_URI:U,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:V,DOCTYPE_NAME:q,CUSTOM_ELEMENT:W});const Q=1,Y=3,K=7,Z=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const i=e=>t(e);if(i.version="3.1.6",i.removed=[],!n||!n.document||n.document.nodeType!==ee)return i.isSupported=!1,i;let{document:r}=n;const o=r,l=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:w,Node:k,Element:A,NodeFilter:F,NamedNodeMap:X=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:H,trustedTypes:$}=n,J=A.prototype,V=j(J,"cloneNode"),W=j(J,"remove"),ne=j(J,"nextSibling"),ie=j(J,"childNodes"),re=j(J,"parentNode");if("function"==typeof w){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ae,oe="";const{implementation:se,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:ue}=r,{importNode:de}=o;let me={};i.isSupported="function"==typeof e&&"function"==typeof re&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:fe,TMPLIT_EXPR:pe,DATA_ATTR:_e,ARIA_ATTR:ge,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:ve,CUSTOM_ELEMENT:xe}=G;let{IS_ALLOWED_URI:ye}=G,we=null;const ke=T({},[...O,...S,...C,...L,...z]);let Te=null;const Ae=T({},[...I,...P,...R,...D]);let Me=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,Oe=null,Se=!0,Ce=!0,Ee=!1,Le=!0,Ne=!1,ze=!0,Ie=!1,Pe=!1,Re=!1,De=!1,Fe=!1,Xe=!1,Be=!0,He=!1,$e=!0,Ue=!1,Je={},Ve=null;const qe=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Ge=T({},["audio","video","img","source","image","track"]);let Qe=null;const Ye=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,it=null;const rt=T({},[Ke,Ze,et],f);let at=null;const ot=["application/xhtml+xml","text/html"];let st=null,lt=null;const ct=r.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=M(e),at=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===at?f:h,we=v(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,st):ke,Te=v(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,st):Ae,it=v(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,f):rt,Qe=v(e,"ADD_URI_SAFE_ATTR")?T(M(Ye),e.ADD_URI_SAFE_ATTR,st):Ye,We=v(e,"ADD_DATA_URI_TAGS")?T(M(Ge),e.ADD_DATA_URI_TAGS,st):Ge,Ve=v(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,st):qe,je=v(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,st):{},Oe=v(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,st):{},Je=!!v(e,"USE_PROFILES")&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,ze=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,Xe=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,$e=!1!==e.KEEP_CONTENT,Ue=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||U,tt=e.NAMESPACE||et,Me=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Me.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ce=!1),Fe&&(De=!0),Je&&(we=T({},z),Te=[],!0===Je.html&&(T(we,O),T(Te,I)),!0===Je.svg&&(T(we,S),T(Te,P),T(Te,D)),!0===Je.svgFilters&&(T(we,C),T(Te,P),T(Te,D)),!0===Je.mathMl&&(T(we,L),T(Te,R),T(Te,D))),e.ADD_TAGS&&(we===ke&&(we=M(we)),T(we,e.ADD_TAGS,st)),e.ADD_ATTR&&(Te===Ae&&(Te=M(Te)),T(Te,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&T(Qe,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ve===qe&&(Ve=M(Ve)),T(Ve,e.FORBID_CONTENTS,st)),$e&&(we["#text"]=!0),Ie&&T(we,["html","head","body"]),we.table&&(T(we,["tbody"]),delete je.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw y('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw y('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,oe=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}($,l)),null!==ae&&"string"==typeof oe&&(oe=ae.createHTML(""));a&&a(e),lt=e}},mt=T({},["mi","mo","mn","ms","mtext"]),ht=T({},["foreignobject","annotation-xml"]),ft=T({},["title","style","font","a","script"]),pt=T({},[...S,...C,...E]),_t=T({},[...L,...N]),gt=function(e){m(i.removed,{element:e});try{re(e).removeChild(e)}catch(t){W(e)}},bt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(De||Fe)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){let t=null,n=null;if(Re)e=""+e;else{const t=p(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&tt===et&&(e=''+e+"");const i=ae?ae.createHTML(e):e;if(tt===et)try{t=(new H).parseFromString(i,at)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?oe:i}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),tt===et?ue.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:a},xt=function(e){return le.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},yt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof X)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof k&&e instanceof k},kt=function(e,t,n){me[e]&&u(me[e],(e=>{e.call(i,t,n,lt)}))},Tt=function(e){let t=null;if(kt("beforeSanitizeElements",e,null),yt(e))return gt(e),!0;const n=st(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return gt(e),!0;if(e.nodeType===K)return gt(e),!0;if(ze&&e.nodeType===Z&&x(/<[/\w]/g,e.data))return gt(e),!0;if(!we[n]||je[n]){if(!je[n]&&Mt(n)){if(Me.tagNameCheck instanceof RegExp&&x(Me.tagNameCheck,n))return!1;if(Me.tagNameCheck instanceof Function&&Me.tagNameCheck(n))return!1}if($e&&!Ve[n]){const t=re(e)||e.parentNode,n=ie(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const r=V(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ne(e))}}return gt(e),!0}return e instanceof A&&!function(e){let t=re(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=h(e.tagName),i=h(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===et?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===i||mt[i]):Boolean(pt[n]):e.namespaceURI===Ke?t.namespaceURI===et?"math"===n:t.namespaceURI===Ze?"math"===n&&ht[i]:Boolean(_t[n]):e.namespaceURI===et?!(t.namespaceURI===Ze&&!ht[i])&&!(t.namespaceURI===Ke&&!mt[i])&&!_t[n]&&(ft[n]||!pt[n]):!("application/xhtml+xml"!==at||!it[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!x(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&e.nodeType===Y&&(t=e.textContent,u([he,fe,pe],(e=>{t=_(t,e," ")})),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(gt(e),!0)},At=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in r||n in ct))return!1;if(Ce&&!Oe[t]&&x(_e,t));else if(Se&&x(ge,t));else if(!Te[t]||Oe[t]){if(!(Mt(e)&&(Me.tagNameCheck instanceof RegExp&&x(Me.tagNameCheck,e)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(e))&&(Me.attributeNameCheck instanceof RegExp&&x(Me.attributeNameCheck,t)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(t))||"is"===t&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&x(Me.tagNameCheck,n)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(n))))return!1}else if(Qe[t]);else if(x(ye,_(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==g(n,"data:")||!We[e])if(Ee&&!x(be,_(n,ve,"")));else if(n)return!1;return!0},Mt=function(e){return"annotation-xml"!==e&&p(e,xe)},jt=function(e){kt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};let r=t.length;for(;r--;){const a=t[r],{name:o,namespaceURI:s,value:l}=a,c=st(o);let m="value"===o?l:b(l);if(n.attrName=c,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,kt("uponSanitizeAttribute",e,n),m=n.attrValue,ze&&x(/((--!?|])>)|<\/(style|title)/i,m)){bt(o,e);continue}if(n.forceKeepAttr)continue;if(bt(o,e),!n.keepAttr)continue;if(!Le&&x(/\/>/i,m)){bt(o,e);continue}Ne&&u([he,fe,pe],(e=>{m=_(m,e," ")}));const h=st(e.nodeName);if(At(h,c,m)){if(!He||"id"!==c&&"name"!==c||(bt(o,e),m="user-content-"+m),ae&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(s);else switch($.getAttributeType(h,c)){case"TrustedHTML":m=ae.createHTML(m);break;case"TrustedScriptURL":m=ae.createScriptURL(m)}try{s?e.setAttributeNS(s,o,m):e.setAttribute(o,m),yt(e)?gt(e):d(i.removed)}catch(e){}}}kt("afterSanitizeAttributes",e,null)},Ot=function e(t){let n=null;const i=xt(t);for(kt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)kt("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof c&&e(n.content),jt(n));kt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,a=null,s=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw y("toString is not a function");if("string"!=typeof(e=e.toString()))throw y("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Pe||dt(t),i.removed=[],"string"==typeof e&&(Ue=!1),Ue){if(e.nodeName){const t=st(e.nodeName);if(!we[t]||je[t])throw y("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof k)n=vt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Q&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!De&&!Ne&&!Ie&&-1===e.indexOf("<"))return ae&&Xe?ae.createHTML(e):e;if(n=vt(e),!n)return De?null:Xe?oe:""}n&&Re&>(n.firstChild);const l=xt(Ue?e:n);for(;a=l.nextNode();)Tt(a)||(a.content instanceof c&&Ot(a.content),jt(a));if(Ue)return e;if(De){if(Fe)for(s=ce.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(Te.shadowroot||Te.shadowrootmode)&&(s=de.call(o,s,!0)),s}let d=Ie?n.outerHTML:n.innerHTML;return Ie&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&x(q,n.ownerDocument.doctype.name)&&(d="\n"+d),Ne&&u([he,fe,pe],(e=>{d=_(d,e," ")})),ae&&Xe?ae.createHTML(d):d},i.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Pe=!0},i.clearConfig=function(){lt=null,Pe=!1},i.isValidAttribute=function(e,t,n){lt||dt({});const i=st(e),r=st(t);return At(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],m(me[e],t))},i.removeHook=function(e){if(me[e])return d(me[e])},i.removeHooks=function(e){me[e]&&(me[e]=[])},i.removeAllHooks=function(){me={}},i}()}()},816:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.renderLatex=void 0;var o=n(975);function s(e,t){return i(this,void 0,void 0,(function(){var n,i,a,s,l,c,u,d,m,h,f,p,_,g,b;return r(this,(function(r){switch(r.label){case 0:n=null!==(f=t.textContent)&&void 0!==f?f:"",i=0,r.label=1;case 1:return i0&&l(i,a)||o.push(i);return o}(t,e.ignored_containers),r.label=1;case 1:r.trys.push([1,6,7,8]),i=a(n),o=i.next(),r.label=2;case 2:return o.done?[3,5]:(c=o.value,[4,s(e,c)]);case 3:r.sent(),r.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return u=r.sent(),d={error:u},[3,8];case 7:try{o&&!o.done&&(m=i.return)&&m.call(i)}finally{if(d)throw d.error}return[7];case 8:return[2]}}))}))}},480:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r0&&(i.style.verticalAlign="-"+(+t.height-+t.baseline)+"px",i.height=+t.height,i.width=+t.width),f.some((function(e){return n.includes(e)})))return[3,5];r.label=1;case 1:return r.trys.push([1,4,,5]),t.alt?[3,3]:[4,(0,c.mathml2accessible)(n,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 2:a=r.sent().text,t.alt=a,r.label=3;case 3:return i.alt=null!==(o=t.alt)&&void 0!==o?o:"",[3,5];case 4:return r.sent(),i.alt="Alternative text not available",[3,5];case 5:return[2,i]}}))}))}function h(e){return(new XMLSerializer).serializeToString(document.createRange().createContextualFragment(e))}t.renderMathML=function(e,t){return i(this,void 0,void 0,(function(){var n,i,l,f,p,_,g,b,v,x;return r(this,(function(r){switch(r.label){case 0:if("image"!==e.viewer&&"mathml"!==e.viewer)return[2];(function(e,t){var n,i,r,o,s,l,c=function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,(function(e){return/«math(.*?)«\/math»/g.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT})),i=[];t=n.nextNode();)i.push(t);return i}(e),m=null!==(r=e.querySelectorAll(t))&&void 0!==r?r:[];try{for(var h=a(c),f=h.next();!f.done;f=h.next()){var p=f.value;if(m.length>0&&d(p,m))console.log("Node is blacklisted");else{var _=u.default.safeXmlDecode(null!==(o=p.textContent)&&void 0!==o?o:""),g=document.createRange().createContextualFragment(_);null===(s=p.parentNode)||void 0===s||s.insertBefore(g,p),null===(l=p.parentNode)||void 0===l||l.removeChild(p)}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}})(t,e.ignored_containers),r.label=1;case 1:r.trys.push([1,12,13,14]),n=a(s([],o(t.getElementsByTagName("math")),!1)),i=n.next(),r.label=2;case 2:if(i.done)return[3,11];l=i.value,f=h(l.outerHTML),r.label=3;case 3:return r.trys.push([3,9,,10]),p=void 0,"true"!==e.wirispluginperformance?[3,5]:[4,(0,c.showImage)(f,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 4:return p=r.sent(),[3,7];case 5:return[4,(0,c.createImage)(f,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 6:p=r.sent(),r.label=7;case 7:return[4,m(e,p,f)];case 8:return _=r.sent(),null===(x=l.parentNode)||void 0===x||x.replaceChild(_,l),[3,10];case 9:return r.sent(),console.error("Cannot render ".concat(f,": invalid MathML format.")),[3,10];case 10:return i=n.next(),[3,2];case 11:return[3,14];case 12:return g=r.sent(),b={error:g},[3,14];case 13:try{i&&!i.done&&(v=n.return)&&v.call(n)}finally{if(b)throw b.error}return[7];case 14:return[2]}}))}))},t.serializeHtmlToXml=h;var f=["⟦","⟦","⟧","⟧","mscarries","mscarry","msgroup","mstack","msline","msrow"]},614:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0)for(var r=0;r=0&&v>x)break;var y=null===(c=e.textContent)||void 0===c?void 0:c.substring(b,v+g.length);e.textContent=(null!==(d=null===(u=e.textContent)||void 0===u?void 0:u.substring(0,b))&&void 0!==d?d:"")+(null===(m=e.textContent)||void 0===m?void 0:m.substring(v+g.length)),b=null!==(f=null===(h=(e=e.splitText(b)).textContent)||void 0===h?void 0:h.indexOf(_))&&void 0!==f?f:-1,t.push({safeMML:y,nextElement:e})}},e}(),l=function(){function e(){}return e.getSafeXMLCharactersEntities=function(){return{tagOpener:"«",tagCloser:"»",doubleQuote:"¨",realDoubleQuote:"""}},e.getXMLCharacters=function(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}},e.getSafeXMLCharacters=function(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}},e}()},975:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,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=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configurationJson=t.latexToMathml=t.createImage=t.showImage=t.mathml2accessible=t.callService=t.processJsonResponse=t.StatusError=void 0;var d,m=u(n(482)),h=n(614);!function(e){e.Post="POST",e.Get="GET"}(d||(d={}));var f=function(e){function t(n){var i=e.call(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return r(t,e),t}(Error);function p(e){return o(this,void 0,void 0,(function(){var t,n,i;return s(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,e];case 1:return[4,r.sent().json()];case 2:if(t=r.sent(),n=t.status,i=t.result,"ok"!==n)throw new f("Service responded with a non-ok status");return[2,i];case 3:throw r.sent();case 4:return[2]}}))}))}function _(e,t,n,i,r){return o(this,void 0,void 0,(function(){var o,u,m,f,p,_,g,b,v,x,y;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),o=new URL(t+r,i),[4,h.Properties.getInstance()];case 1:if(u=s.sent(),m=a({"Content-type":"application/x-www-form-urlencoded; charset=utf-8"},u.config.backendConfig.wiriscustomheaders),f={method:n,headers:m},n===d.Get)try{for(p=l(Object.entries(e)),_=p.next();!_.done;_=p.next())g=c(_.value,2),b=g[0],v=g[1],o.searchParams.set(b,v)}catch(e){x={error:e}}finally{try{_&&!_.done&&(y=p.return)&&y.call(p)}finally{if(x)throw x.error}}else f.body=new URLSearchParams(a({},e));return[2,fetch(o.toString(),f)];case 2:throw s.sent();case 3:return[2]}}))}))}t.StatusError=f,t.processJsonResponse=p,t.callService=_,t.mathml2accessible=function(e,t,n,i){return o(this,void 0,void 0,(function(){return s(this,(function(r){return[2,p(_({service:"mathml2accessible",mml:e,metrics:"true",centerbaseline:"false",lang:t,ignoreStyles:"true"},"service",d.Post,n,i))]}))}))},t.showImage=function(e,t,n,i){return o(this,void 0,void 0,(function(){var r,a,o,l;return s(this,(function(s){switch(s.label){case 0:r={mml:e,metrics:"true",centerbaseline:"false",lang:t},a=m.default.createShowImageSrcData(r,r.lang),o=_(a,"showimage",d.Get,n,i),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,p(o)];case 2:return[2,s.sent()];case 3:if(!((l=s.sent())instanceof f))throw l;return[3,4];case 4:return[2,p(_(r,"showimage",d.Post,n,i))]}}))}))},t.createImage=function(e,t,n,i){return o(this,void 0,void 0,(function(){return s(this,(function(r){return[2,p(_({mml:e,metrics:"true",centerbaseline:"false",lang:t},"showimage",d.Post,n,i))]}))}))},t.latexToMathml=function(e,t,n){return o(this,void 0,void 0,(function(){return s(this,(function(i){return[2,p(_({service:"latex2mathml",latex:e},"service",d.Post,t,n))]}))}))},t.configurationJson=function(e,t,n,i){return o(this,void 0,void 0,(function(){var r;return s(this,(function(a){switch(a.label){case 0:return[4,_({variablekeys:e.join(",")},"configurationjson",d.Get,t,n)];case 1:return r=a.sent(),i&&!r.ok&&console.warn("Fetching the url: "+r.url+", is expected to fail and handled. Don't panic!"),[2,p(r)]}}))}))}},330:e=>{"use strict";e.exports=JSON.parse('{"name":"@wiris/mathtype-viewer","version":"8.10.0","description":"","main":"app.js","scripts":{"build":"webpack --mode production","build-dev":"webpack --mode development","serve":"webpack serve","prepack":"yarn && npm run build"},"keywords":["typescript","course"],"author":"Integrations","license":"ISC","dependencies":{"@wiris/mathtype-html-integration-devkit":"1.17.3"},"devDependencies":{"@babel/preset-typescript":"^7.24.1","@types/jest":"^29.5.12","babel-jest":"^29.7.0","babel-loader":"^9.1.3","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","lite-server":"^2.5.4","ts-loader":"^9.4.2","webpack":"^5.75.0","webpack-cli":"^5.0.0","webpack-dev-server":"^5.0.4"}}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(816)})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={976:(e,t,n)=>{n.d(t,{A:()=>i});class i{static addConfiguration(e){Object.assign(i.properties,e)}static get properties(){return i._properties}static set properties(e){i._properties=e}static get(e){return Object.prototype.hasOwnProperty.call(i.properties,e)?i.properties[e]:!!Object.prototype.hasOwnProperty.call(i.properties,"_wrs_conf_")&&i.properties[`_wrs_conf_${e}`]}static set(e,t){i.properties[e]=t}static update(e,t){if(i.get(e)){const n=Object.assign(i.get(e),t);i.set(e,n)}else i.set(e,t)}}i._properties={}},931:(e,t,n)=>{n.d(t,{A:()=>i});class i{static get safeXmlCharactersEntities(){return{tagOpener:"«",tagCloser:"»",doubleQuote:"¨",realDoubleQuote:"""}}static get safeBadBlackboardCharacters(){return{ltElement:"«mo»<«/mo»",gtElement:"«mo»>«/mo»",ampElement:"«mo»&«/mo»"}}static get safeGoodBlackboardCharacters(){return{ltElement:"«mo»§lt;«/mo»",gtElement:"«mo»§gt;«/mo»",ampElement:"«mo»§amp;«/mo»"}}static get xmlCharacters(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}}static get safeXmlCharacters(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}}}},574:(e,t,n)=>{n.d(t,{A:()=>l});var i=n(33),r=n(443),a=n(654),o=n(931),s=n(631);class l{static get cache(){return l._cache}static set cache(e){l._cache=e}static getLatexFromMathML(e){const t=r.default.removeSemantics(e),{cache:n}=l,i={service:"mathml2latex",mml:t},o=JSON.parse(a.A.getService("service",i));let c="";if("ok"===o.status){c=o.result.text;const t=s.default.htmlEntities(c),i=r.default.addAnnotation(e,t,"LaTeX");n.populate(c,i)}return c}static getMathMLFromLatex(e,t){const n=l.cache;if(l.cache.get(e))return l.cache.get(e);const i={service:"latex2mathml",latex:e};t&&(i.saveLatex="");const o=JSON.parse(a.A.getService("service",i));let c;if("ok"===o.status){let t=o.result.text;if(t=t.split("\r").join("").split("\n").join(" "),-1===t.indexOf("semantics")&&-1===t.indexOf("annotation")){const n=s.default.htmlEntities(e);t=r.default.addAnnotation(t,n,"LaTeX"),c=t}else c=t;n.get(e)||n.populate(e,t)}else c=`$$${e}$$`;return c}static parseMathmlToLatex(e,t){let n="";const i=`${t.tagOpener}math`,a=`${t.tagOpener}/math${t.tagCloser}`,s=`${t.tagOpener}annotation encoding=${t.doubleQuote}LaTeX${t.doubleQuote}${t.tagCloser}`,c=`${t.tagOpener}/annotation${t.tagCloser}`;let u,d,m,h=e.indexOf(i),f=0;for(;-1!==h;){if(n+=e.substring(f,h),f=e.indexOf(a,h),-1===f?f=e.length-1:f+=a.length,u=e.substring(h,f),d=u.indexOf(s),-1!==d){d+=s.length,m=u.indexOf(c);let e=u.substring(d,m);t===o.A.safeXmlCharacters&&(e=r.default.safeXmlDecode(e)),n+=`$$${e}$$`,l.cache.populate(e,u)}else n+=u;h=e.indexOf(i,f)}return n+=e.substring(f,e.length),n}static getLatexFromTextNode(e,t,n){void 0!==n&&null!=n||(n={open:"$$",close:"$$"});let i,r=e;for(;r.previousSibling&&3===r.previousSibling.nodeType;)r=r.previousSibling;function a(e,t,i){let r=e.nodeValue.indexOf(i,t);for(;-1===r;){if(!(e=e.nextSibling))return null;r=e.nodeValue?e.nodeValue.indexOf(n.close):-1}return{node:e,position:r}}function o(e,t,n,i){if(e===n)return t<=i;for(;e&&e!==n;)e=e.nextSibling;return e===n}let s={node:r,position:0};const l=n.open.length;do{if(i=a(s.node,s.position,n.open),null==i||o(e,t,i.node,i.position))return null;if(s=a(i.node,i.position+l,n.close),null==s)return null;s.position+=l}while(o(s.node,s.position,e,t));let c;if(i.node===s.node)c=i.node.nodeValue.substring(i.position+l,s.position-l);else{const e=i.position+l;c=i.node.nodeValue.substring(e,i.node.nodeValue.length);let t=i.node;do{t=t.nextSibling,t===s.node?c+=s.node.nodeValue.substring(0,s.position-l):c+=t.nodeValue?t.nodeValue:""}while(t!==s.node)}return{latex:c,startNode:i.node,startPosition:i.position,endNode:s.node,endPosition:s.position}}}l._cache=new i.A},443:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var i=n(931),r=n(631);class a{static isMathmlInAttribute(e,t){const n=new RegExp("^['\"][\\s]*=[\\s]*[\\w-]+('[\\s]*(\"[^\"]*\"|'[^']*')[\\s]*=[\\s]*[\\w-]+[\\s]*')*[\\s]+gmi<"),i=e.substring(0,t).split("").reverse().join("");return n.test(i)}static safeXmlDecode(e){let{tagOpener:t}=i.A.safeXmlCharactersEntities,{tagCloser:n}=i.A.safeXmlCharactersEntities,{doubleQuote:r}=i.A.safeXmlCharactersEntities,{realDoubleQuote:a}=i.A.safeXmlCharactersEntities;e=(e=(e=(e=e.split(t).join(i.A.safeXmlCharacters.tagOpener)).split(n).join(i.A.safeXmlCharacters.tagCloser)).split(r).join(i.A.safeXmlCharacters.doubleQuote)).split(a).join(i.A.safeXmlCharacters.realDoubleQuote);const{ltElement:o}=i.A.safeBadBlackboardCharacters,{gtElement:s}=i.A.safeBadBlackboardCharacters,{ampElement:l}=i.A.safeBadBlackboardCharacters;"_wrs_blackboard"in window&&window._wrs_blackboard&&(e=(e=(e=e.split(o).join(i.A.safeGoodBlackboardCharacters.ltElement)).split(s).join(i.A.safeGoodBlackboardCharacters.gtElement)).split(l).join(i.A.safeGoodBlackboardCharacters.ampElement)),({tagOpener:t}=i.A.safeXmlCharacters),({tagCloser:n}=i.A.safeXmlCharacters),({doubleQuote:r}=i.A.safeXmlCharacters),({realDoubleQuote:a}=i.A.safeXmlCharacters);const{ampersand:c}=i.A.safeXmlCharacters,{quote:u}=i.A.safeXmlCharacters;e=(e=(e=(e=(e=e.split(t).join(i.A.xmlCharacters.tagOpener)).split(n).join(i.A.xmlCharacters.tagCloser)).split(r).join(i.A.xmlCharacters.doubleQuote)).split(c).join(i.A.xmlCharacters.ampersand)).split(u).join(i.A.xmlCharacters.quote);let d="",m=null;for(let t=0;t128)t+=`&#${e.codePointAt(n)};`,e.codePointAt(n)>65535&&(n+=1);else if("&"===i){const a=e.indexOf(";",n+1);if(a>=0){const i=document.createElement("span");i.innerHTML=e.substring(n,a+1),t+=`&#${r.default.fixedCharCodeAt(i.textContent||i.innerText,0)};`,n=a}else t+=i}else t+=i}return t}static addCustomEditorClassAttribute(e,t){let n="";const i=e.indexOf("");if(-1===e.indexOf("class"))return n=`${e.substr(i,r)} class="wrs_${t}">`,n+=e.substr(r+1,e.length),n}return e}static removeCustomEditorClassAttribute(e,t){return-1===e.indexOf("class")||-1===e.indexOf(`wrs_${t}`)?e:-1!==e.indexOf(` class="wrs_${t}"`)?e.replace(` class="wrs_${t}"`,""):-1!==e.indexOf(`class="wrs_${t}"`)?e.replace(`class="wrs_${t}"`,""):e.replace(`wrs_${t}`,"")}static addAnnotation(e,t,n){let i="";if(-1!==e.indexOf("");i=`${e.substring(0,r)}${t}${e.substring(r)}`}else if(a.isEmpty(e)){const r=e.indexOf("/>"),a=e.indexOf(">"),o=a===r?r:a;i=`${e.substring(0,o)}>${t}`}else{const r=e.indexOf(">")+1,a=e.lastIndexOf(""),o=e.substring(r,a);i=`${e.substring(0,r)}${o}${t}`}return i}static removeAnnotation(e,t){let n=e;const i=``,r=e.indexOf(i);if(-1!==r){let t=!1,i=e.indexOf("",r)+13;n=e.substring(0,r)+e.substring(t)}else n=a.removeSemantics(e)}return n}static removeSemantics(e){return e.replace(/\s*?()?/gm,"").replace(/(<\/mrow>)?\s*/gm,"")}static removeSafeXMLSemantics(e){return e.replace(/«semantics»\s*?(«mrow»)?/gm,"").replace(/(«\/mrow»)?\s*«annotation[\W\w]*?«\/semantics»/gm,"")}static removeSemanticsOcurrences(e,t=i.A.xmlCharacters){const n=`${t.tagOpener}math`,r=`${t.tagOpener}/math${t.tagCloser}`,a=`/${t.tagCloser}`,{tagCloser:o}=t,s=`${t.tagOpener}semantics${t.tagCloser}`,l=`${t.tagOpener}annotation encoding=`;let c="",u=e.indexOf(n),d=0;for(;-1!==u;){c+=e.substring(d,u);const t=e.indexOf(r,u),i=e.indexOf(a,u),m=e.indexOf(o,u);-1!==t?d=t:i===m-1&&(d=i);const h=e.indexOf(s,u);if(-1!==h){const t=e.substring(u,h),i=e.indexOf(l,u);if(-1!==i){const a=h+s.length;c+=t+e.substring(a,i)+r,u=e.indexOf(n,u+n.length),d+=r.length}else d=u,u=e.indexOf(n,u+n.length)}else d=u,u=e.indexOf(n,u+n.length)}return c+=e.substring(d,e.length),c}static containClass(e,t){const n=e.indexOf("class");if(-1===n)return!1;const i=e.indexOf(">",n);return-1!==e.substring(n,i).indexOf(t)}static isEmpty(e){const t=e.indexOf(">"),n=e.indexOf("/>");let i=!1;if(-1!==n&&n===t-1&&(i=!0),!i){const n=new RegExp("").exec(e);n&&(i=t+1===n.index)}return i}static encodeProperties(e){return e.replace(/\w+=".*?"/g,(e=>{const t=e.indexOf('"'),n=e.substring(t+1,e.length-1),i=r.default.htmlEntities(n);return`${e.substring(0,t+1)}${i}"`}))}}},206:()=>{var md5,__WEBPACK_DEFAULT_EXPORT__=md5;(function(){var HxOverrides=function(){};HxOverrides.__name__=!0,HxOverrides.dateStr=function(e){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),r=e.getMinutes(),a=e.getSeconds();return e.getFullYear()+"-"+(t<10?"0"+t:""+t)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(r<10?"0"+r:""+r)+":"+(a<10?"0"+a:""+a)},HxOverrides.strDate=function(e){switch(e.length){case 8:var t=e.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(t[0]),n.setUTCMinutes(t[1]),n.setUTCSeconds(t[2]),n;case 10:return t=e.split("-"),new Date(t[0],t[1]-1,t[2],0,0,0);case 19:var i=(t=e.split(" "))[0].split("-"),r=t[1].split(":");return new Date(i[0],i[1]-1,i[2],r[0],r[1],r[2]);default:throw"Invalid date format : "+e}},HxOverrides.cca=function(e,t){var n=e.charCodeAt(t);if(n==n)return n},HxOverrides.substr=function(e,t,n){return null!=t&&0!=t&&null!=n&&n<0?"":(null==n&&(n=e.length),t<0?(t=e.length+t)<0&&(t=0):n<0&&(n=e.length+n-t),e.substr(t,n))},HxOverrides.remove=function(e,t){for(var n=0,i=e.length;n>>32-t},str2blks:function(e){for(var t=1+(e.length+8>>6),n=new Array,i=0,r=16*t;i>2]|=HxOverrides.cca(e,a)<<(8*e.length+a)%4*8,a++;n[a>>2]|=128<<(8*e.length+a)%4*8;var o=8*e.length,s=16*t-2;return n[s]=255&o,n[s]|=(o>>>8&255)<<8,n[s]|=(o>>>16&255)<<16,n[s]|=(o>>>24&255)<<24,n},rhex:function(e){for(var t="",n="0123456789abcdef",i=0;i<4;){var r=i++;t+=n.charAt(e>>8*r+4&15)+n.charAt(e>>8*r&15)}return t},addme:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitOR:function(e,t){return(e>>>1|t>>>1)<<1|1&e|1&t},__class__:haxe.Md5},haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);return n.run=function(){n.stop(),e()},n},haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp(),i=e();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",t),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(e,t){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=e,n.method=t,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">")},js.Boot.__trace=function(e,t){var n,i=null!=t?t.fileName+":"+t.lineNumber+": ":"";i+=js.Boot.__string_rec(e,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"
":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var e=document.getElementById("haxe:trace");null!=e&&(e.innerHTML="")},js.Boot.isClass=function(e){return e.__name__},js.Boot.isEnum=function(e){return e.__ename__},js.Boot.getClass=function(e){return e.__class__},js.Boot.__string_rec=function(e,t){if(null==e)return"null";if(t.length>=5)return"<...>";var n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var i=e[0]+"(";t+="\t";for(var r=2,a=e.length;r0?",":"")+js.Boot.__string_rec(e[l],t)}return i+"]"}var c;try{c=e.toString}catch(e){return"???"}if(null!=c&&c!=Object.toString){var u=e.toString();if("[object Object]"!=u)return u}var d=null;i="{\n",t+="\t";var m=null!=e.hasOwnProperty;for(var d in e)m&&!e.hasOwnProperty(d)||"prototype"!=d&&"__class__"!=d&&"__super__"!=d&&"__interfaces__"!=d&&"__properties__"!=d&&(2!=i.length&&(i+=", \n"),i+=t+d+" : "+js.Boot.__string_rec(e[d],t));return i+"\n"+(t=t.substring(1))+"}";case"function":return"";case"string":return e;default:return String(e)}},js.Boot.__interfLoop=function(e,t){if(null==e)return!1;if(e==t)return!0;var n=e.__interfaces__;if(null!=n)for(var i=0,r=n.length;i>>32-t},str2blks:function(e){for(var t=1+(e.length+8>>6),n=new Array,i=0,r=16*t;i>2]|=HxOverrides.cca(e,a)<<(8*e.length+a)%4*8,a++;n[a>>2]|=128<<(8*e.length+a)%4*8;var o=8*e.length,s=16*t-2;return n[s]=255&o,n[s]|=(o>>>8&255)<<8,n[s]|=(o>>>16&255)<<16,n[s]|=(o>>>24&255)<<24,n},rhex:function(e){for(var t="",n="0123456789abcdef",i=0;i<4;){var r=i++;t+=n.charAt(e>>8*r+4&15)+n.charAt(e>>8*r&15)}return t},addme:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitOR:function(e,t){return(e>>>1|t>>>1)<<1|1&e|1&t},__class__:haxe.Md5},haxe.Timer=function(e){var t=this;this.id=window.setInterval((function(){t.run()}),e)},haxe.Timer.__name__=!0,haxe.Timer.delay=function(e,t){var n=new haxe.Timer(t);return n.run=function(){n.stop(),e()},n},haxe.Timer.measure=function(e,t){var n=haxe.Timer.stamp(),i=e();return haxe.Log.trace(haxe.Timer.stamp()-n+"s",t),i},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype={run:function(){},stop:function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},__class__:haxe.Timer};var js=js||{},$_;function $bind(e,t){var n=function(){return n.method.apply(n.scope,arguments)};return n.scope=e,n.method=t,n}js.Boot=function(){},js.Boot.__name__=!0,js.Boot.__unhtml=function(e){return e.split("&").join("&").split("<").join("<").split(">").join(">")},js.Boot.__trace=function(e,t){var n,i=null!=t?t.fileName+":"+t.lineNumber+": ":"";i+=js.Boot.__string_rec(e,""),"undefined"!=typeof document&&null!=(n=document.getElementById("haxe:trace"))?n.innerHTML+=js.Boot.__unhtml(i)+"
":"undefined"!=typeof console&&null!=console.log&&console.log(i)},js.Boot.__clear_trace=function(){var e=document.getElementById("haxe:trace");null!=e&&(e.innerHTML="")},js.Boot.isClass=function(e){return e.__name__},js.Boot.isEnum=function(e){return e.__ename__},js.Boot.getClass=function(e){return e.__class__},js.Boot.__string_rec=function(e,t){if(null==e)return"null";if(t.length>=5)return"<...>";var n=typeof e;switch("function"==n&&(e.__name__||e.__ename__)&&(n="object"),n){case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var i=e[0]+"(";t+="\t";for(var r=2,a=e.length;r0?",":"")+js.Boot.__string_rec(e[l],t)}return i+"]"}var c;try{c=e.toString}catch(e){return"???"}if(null!=c&&c!=Object.toString){var u=e.toString();if("[object Object]"!=u)return u}var d=null;i="{\n",t+="\t";var m=null!=e.hasOwnProperty;for(var d in e)m&&!e.hasOwnProperty(d)||"prototype"!=d&&"__class__"!=d&&"__super__"!=d&&"__interfaces__"!=d&&"__properties__"!=d&&(2!=i.length&&(i+=", \n"),i+=t+d+" : "+js.Boot.__string_rec(e[d],t));return i+"\n"+(t=t.substring(1))+"}";case"function":return"";case"string":return e;default:return String(e)}},js.Boot.__interfLoop=function(e,t){if(null==e)return!1;if(e==t)return!0;var n=e.__interfaces__;if(null!=n)for(var i=0,r=n.length;i{n.r(t),n.d(t,{default:()=>h});var i=n(631),r=n(574),a=n(443),o=n(976);class s{static removeImgDataAttributes(e){const t=[],{attributes:n}=e;Object.keys(n).forEach((e=>{const i=n[e];void 0!==i&&void 0!==i.name&&0===i.name.indexOf("data-")&&t.push(i.name)})),t.forEach((t=>{e.removeAttribute(t)}))}static clone(e,t){const n=o.A.get("imageCustomEditorName");e.hasAttribute(n)||t.removeAttribute(n),[o.A.get("imageMathmlAttribute"),n,"alt","height","width","style","src","role"].forEach((n=>{const i=e.getAttribute(n);i&&t.setAttribute(n,i)}))}static isSvg(e){return e.src.startsWith("data:image/svg+xml;")}static isBase64(e){return e.src.startsWith("data:image/svg+xml;base64,")||e.src.startsWith("data:image/png;base64,")}static setImgSize(e,t,n){let r,a,o,l;if(n)if(s.isSvg(e))if(s.isBase64(e)){a=e.src.substr(e.src.indexOf("base64,")+7,e.src.length),l="",o=i.default.b64ToByteArray(a,a.length);for(let e=0;e{if(-1!==e.src.indexOf("data:image"))if(-1!==e.src.indexOf("data:image/svg+xml"))if(-1!==e.src.indexOf("data:image/svg+xml;base64,")){const t=e.getAttribute("src").substring(26),n=window.atob(t),i=encodeURIComponent(n);e.setAttribute("src",`data:image/svg+xml;charset=utf8,${i}`);const r=decodeURIComponent(e.src.substring(32,e.src.length));s.setImgSize(e,r,!0),e.setAttribute("src",`data:image/svg+xml;base64,${t}`)}else{const t=decodeURIComponent(e.src.substring(32,e.src.length));s.setImgSize(e,t,!0)}else{const t=e.src.substring(22,e.src.length);s.setImgSize(e,t,!0)}else s.setImgSize(e,e.src)};if(-1===e.src.indexOf("blob:"))t(e);else{let n=new FileReader;n.onload=function(){e.setAttribute("src",n.result),t(e)},fetch(e.src).then((e=>e.blob())).then((e=>{n.readAsDataURL(e)}))}}static getMetricsFromSvgString(e){let t=e.indexOf('height="'),n=e.indexOf('"',t+8,e.length);const i=e.substring(t+8,n);t=e.indexOf('width="'),n=e.indexOf('"',t+7,e.length);const r=e.substring(t+7,n);t=e.indexOf('wrs:baseline="'),n=e.indexOf('"',t+14,e.length);const a=e.substring(t+14,n);if(void 0!==r){const e=[];return e.cw=r,e.ch=i,void 0!==a&&(e.cb=a),e}return[]}static getMetricsFromBytes(e){let t,n,r,a,o;for(i.default.readBytes(e,0,8);e.length>=4;)r=i.default.readInt32(e),1229472850===r?(t=i.default.readInt32(e),n=i.default.readInt32(e),i.default.readInt32(e),i.default.readByte(e)):1650545477===r?a=i.default.readInt32(e):1883789683===r&&(o=i.default.readInt32(e),o=Math.round(o/39.37),i.default.readInt32(e),i.default.readByte(e)),i.default.readInt32(e);if(void 0!==t){const e=[];return e.cw=t,e.ch=n,e.dpi=o,a&&(e.cb=a),e}return[]}}var l=n(33),c=n(654),u=n(565);class d{static get cache(){return d._cache}static set cache(e){d._cache=e}static mathMLToAccessible(e,t,n){void 0===t&&(t="en"),a.default.containClass(e,"wrs_chemistry")&&(n.mode="chemistry"),n.ignoreStyles=!0;let i="";if(d.cache.get(e))i=d.cache.get(e);else{n.service="mathml2accessible",n.lang=t;const r=JSON.parse(c.A.getService("service",n));"error"!==r.status?(i=r.result.text,d.cache.populate(e,i)):i=u.A.get("error_convert_accessibility")}return i}}d._cache=new l.A;var m=n(931);n(206);class h{static mathmlToImgObject(e,t,n,r){const l=e.createElement("img");l.align="middle",l.style.maxWidth="none";let u=n||{};if(u={...o.A.get("editorParameters"),...u},u.mml=t,u.lang=r,u.metrics="true",u.centerbaseline="false","base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")&&(u.base64=!0),l.className=o.A.get("imageClassName"),-1!==t.indexOf('class="')){let e=t.substring(t.indexOf('class="')+7,t.length);e=e.substring(0,e.indexOf('"')),e=e.substring(4,e.length),l.setAttribute(o.A.get("imageCustomEditorName"),e)}if(!o.A.get("wirisPluginPerformance")||"xml"!==o.A.get("saveMode")&&"safeXml"!==o.A.get("saveMode")){const e=h.createImageSrc(t,u);l.setAttribute(o.A.get("imageMathmlAttribute"),a.default.safeXmlEncode(t)),l.src=e,s.setImgSize(l,e,"base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")),o.A.get("enableAccessibility")&&(l.alt=d.mathMLToAccessible(t,r,u))}else{let e=JSON.parse(h.createShowImageSrc(u,r));if("warning"===e.status)try{e=JSON.parse(c.A.getService("showimage",u))}catch(e){return null}({result:e}=e),"png"===e.format?l.src=`data:image/png;base64,${e.content}`:l.src=`data:image/svg+xml;charset=utf8,${i.default.urlEncode(e.content)}`,l.setAttribute(o.A.get("imageMathmlAttribute"),a.default.safeXmlEncode(t)),s.setImgSize(l,e.content,!0),o.A.get("enableAccessibility")&&(void 0===e.alt?l.alt=d.mathMLToAccessible(t,r,u):l.alt=e.alt)}return void 0!==h.observer&&h.observer.observe(l),l.setAttribute("role","math"),l}static createImageSrc(e,t){"base64"===o.A.get("saveMode")&&"default"===o.A.get("base64savemode")&&(t.base64=!0);let n=c.A.getService("createimage",t);if(-1!==n.indexOf("@BASE@")){const e=c.A.getServicePath("createimage").split("/");e.pop(),n=n.split("@BASE@").join(e.join("/"))}return n}static initParse(e,t){return e=h.initParseSaveMode(e,t),h.initParseEditMode(e)}static initParseSaveMode(e,t){return o.A.get("saveMode")&&(e=r.A.parseMathmlToLatex(e,m.A.safeXmlCharacters),e=r.A.parseMathmlToLatex(e,m.A.xmlCharacters),e=h.parseMathmlToImg(e,m.A.safeXmlCharacters,t),e=h.parseMathmlToImg(e,m.A.xmlCharacters,t),"base64"===o.A.get("saveMode")&&"image"===o.A.get("base64savemode")&&(e=h.codeImgTransform(e,"base642showimage"))),e}static initParseEditMode(e){if(-1!==o.A.get("parseModes").indexOf("latex")){const t=i.default.getElementsByNameFromString(e,"img",!0),n='encoding="LaTeX">';let r=0;for(let s=0;s",m),o=d.substring(m,a),l=`$$${i.default.htmlEntitiesDecode(o)}$$`,c=e.substring(0,t[s].start+r),u=e.substring(t[s].end+r);e=c+l+u,r+=l.length-(t[s].end-t[s].start)}}}}}return e}static endParse(e){const t=h.endParseEditMode(e);return h.endParseSaveMode(t)}static endParseEditMode(e){if(-1!==o.A.get("parseModes").indexOf("latex")){let t="",n=0,s=e.indexOf("$$");for(;-1!==s;){if(t+=e.substring(n,s),n=e.indexOf("$$",s+2),-1!==n){const l=e.substring(s+2,n),c=i.default.htmlEntitiesDecode(l);let u=i.default.htmlSanitize(r.A.getMathMLFromLatex(c,!0));o.A.get("saveHandTraces")||(u=a.default.removeAnnotation(u,"application/json")),t+=u,n+=2}else t+="$$",n=s+2;s=e.indexOf("$$",n)}t+=e.substring(n,e.length),e=t}return e}static endParseSaveMode(e){const t=o.A.get("saveMode"),n=o.A.get("base64savemode");return t&&("safeXml"===t||"xml"===t?e=h.codeImgTransform(e,"img2mathml"):"base64"===t&&"image"===n&&(e=h.codeImgTransform(e,"img264"))),e}static createShowImageSrcData(e,t){const n={};["mml","color","centerbaseline","zoom","dpi","fontSize","fontFamily","defaultStretchy","backgroundColor","format"].forEach((t=>{void 0!==e[t]&&(n[t]=e[t])}));const r={};return Object.keys(e).forEach((t=>{"mml"!==t&&(r[t]=e[t])})),r.formula=com.wiris.js.JsPluginTools.md5encode(i.default.propertiesToString(n)),r.lang=void 0===t?"en":t,r.version=o.A.get("version"),r}static createShowImageSrc(e,t){const n=this.createShowImageSrcData(e,t);return c.A.getService("showimage",i.default.httpBuildQuery(n),!0)}static codeImgTransform(e,t){let n="",r=0;const l=/"===t&&(r=d+1);d+=1}if(r",c):l.length,a.default.isMathmlInAttribute(e,c)||-1!==d)r+=e.substring(c,u);else{let o=e.substring(c,u);o=t.id===m.A.safeXmlCharacters.id?a.default.safeXmlDecode(o):a.default.mathMLEntities(o),r+=i.default.createObjectCode(h.mathmlToImgObject(document,o,null,n))}c=e.indexOf(s,u)}return r+=e.substring(u,e.length),r}}if("undefined"!=typeof MutationObserver){const e=new MutationObserver((e=>{e.forEach((e=>{e.oldValue===o.A.get("imageClassName")&&"class"===e.attributeName&&-1===e.target.className.indexOf(o.A.get("imageClassName"))&&(e.target.className=o.A.get("imageClassName"))}))}));h.observer=Object.create(e),h.observer.Config={attributes:!0,attributeOldValue:!0},h.observer.observe=function(e){Object.getPrototypeOf(this).observe(e,this.Config)}}},654:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(631),r=n(976);class a{static get listeners(){return a._listeners}static addListener(e){a.listeners.add(e)}static fireEvent(e,t){a.listeners.fire(e,t)}static get parameters(){return a._parameters}static set parameters(e){a._parameters=e}static get servicePaths(){return a._servicePaths}static set servicePaths(e){a._servicePaths=e}static setServicePath(e,t){a.servicePaths[e]=t}static getServicePath(e){return a.servicePaths[e]}static get integrationPath(){return a._integrationPath}static set integrationPath(e){a._integrationPath=e}static getServerURL(){const e=window.location.href.split("/");return`${e[0]}//${e[2]}`}static init(e){a.parameters=e;let t=a.createServiceURI("configurationjs"),n=a.createServiceURI("createimage"),i=a.createServiceURI("showimage"),r=a.createServiceURI("getmathml"),o=a.createServiceURI("service");if(0===a.parameters.URI.indexOf("/")){const e=a.getServerURL();t=e+t,i=e+i,n=e+n,r=e+r,o=e+o}a.setServicePath("configurationjs",t),a.setServicePath("showimage",i),a.setServicePath("createimage",n),a.setServicePath("service",o),a.setServicePath("getmathml",r),a.setServicePath("configurationjs",t),a.listeners.fire("onInit",{})}static getUrl(e,t){const n=window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1),a=i.default.createHttpRequest();if(a){void 0===t||void 0===t?a.open("GET",e,!1):"/"===e.substr(0,1)||"http://"===e.substr(0,7)||"https://"===e.substr(0,8)?a.open("POST",e,!1):a.open("POST",n+e,!1);let o=r.A.get("customHeaders");return o&&("string"==typeof o&&(o=i.default.convertStringToObject(o)),Object.entries(o).forEach((([e,t])=>a.setRequestHeader(e,t)))),void 0!==t&&t?(a.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8"),a.send(i.default.httpBuildQuery(t))):a.send(null),a.responseText}return""}static getService(e,t,n){let i;if(!0===n){const n=t?`?${t}`:"",r=`${a.getServicePath(e)}${n}`;i=a.getUrl(r)}else{const n=a.getServicePath(e);i=a.getUrl(n,t)}return i}static getServerLanguageFromService(e){return-1!==e.indexOf(".php")?"php":-1!==e.indexOf(".aspx")?"aspx":-1!==e.indexOf("wirispluginengine")?"ruby":"java"}static createServiceURI(e){const t=a.serverExtension();return i.default.concatenateUrl(a.parameters.URI,e)+t}static serverExtension(){return-1!==a.parameters.server.indexOf("php")?".php":-1!==a.parameters.server.indexOf("aspx")?".aspx":""}}a._servicePaths={},a._integrationPath="",a._listeners=new class{constructor(){this.listeners=[]}add(e){this.listeners.push(e)}fire(e,t){for(let n=0;n{n.d(t,{A:()=>r});const i=JSON.parse('{"ar":{"latex":"LaTeX","cancel":"إلغاء","accept":"إدراج","manual":"الدليل","insert_math":"إدراج صيغة رياضية - MathType","insert_chem":"إدراج صيغة كيميائية - ChemType","minimize":"تصغير","maximize":"تكبير","fullscreen":"ملء الشاشة","exit_fullscreen":"الخروج من ملء الشاشة","close":"إغلاق","mathtype":"MathType","title_modalwindow":"نافذة MathType مشروطة","close_modal_warning":"هل تريد المغادرة بالتأكيد؟ ستُفقد التغييرات التي أجريتها.","latex_name_label":"صيغة Latex","browser_no_compatible":"المستعرض غير متوافق مع تقنية AJAX. الرجاء استخدام أحدث إصدار من Mozilla Firefox.","error_convert_accessibility":"حدث خطأ أثناء التحويل من MathML إلى نص قابل للاستخدام.","exception_cross_site":"البرمجة النصية للمواقع المشتركة مسموح بها لـ HTTP فقط.","exception_high_surrogate":"المركّب المرتفع غير متبوع بمركّب منخفض في fixedCharCodeAt()‎","exception_string_length":"سلسلة غير صالحة. يجب أن يكون الطول من مضاعفات العدد 4","exception_key_nonobject":"Object.keys مستدعاة على غير كائن","exception_null_or_undefined":" هذا فارغ أو غير محدد","exception_not_function":" ليست دالة","exception_invalid_date_format":"تنسيق تاريخ غير صالح: ","exception_casting":"لا يمكن الصياغة ","exception_casting_to":" إلى "},"ca":{"latex":"LaTeX","cancel":"Cancel·lar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemàtica - MathType","insert_chem":"Inserir fórmula química - ChemType","minimize":"Minimitza","maximize":"Maximitza","fullscreen":"Pantalla completa","exit_fullscreen":"Sortir de la pantalla complera","close":"Tanca","mathtype":"MathType","title_modalwindow":" Finestra modal de MathType","close_modal_warning":"N\'estàs segur que vols sortir? Es perdran els canvis que has fet.","latex_name_label":"Fórmula en Latex","browser_no_compatible":"El teu navegador no és compatible amb AJAX. Si us plau, usa la darrera versió de Mozilla Firefox.","error_convert_accessibility":"Error en convertir de MathML a text accessible.","exception_cross_site":"Els scripts de llocs creuats només estan permesos per HTTP.","exception_high_surrogate":"Subrogat alt no seguit de subrogat baix a fixedCharCodeAt()","exception_string_length":"Cadena invàlida. La longitud ha de ser un múltiple de 4","exception_key_nonobject":"Object.keys anomenat a non-object","exception_null_or_undefined":" això és null o no definit","exception_not_function":" no és una funció","exception_invalid_date_format":"Format de data invàlid : ","exception_casting":"No es pot emetre ","exception_casting_to":" a "},"cs":{"latex":"LaTeX","cancel":"Storno","accept":"Vložit","manual":"Příručka","insert_math":"Vložit matematický vzorec - MathType","insert_chem":"Vložení chemického vzorce – ChemType","minimize":"Minimalizovat","maximize":"Maximalizovat","fullscreen":"Celá obrazovka","exit_fullscreen":"Opustit režim celé obrazovky","close":"Zavřít","mathtype":"MathType","title_modalwindow":"Modální okno MathType","close_modal_warning":"Opravdu chcete okno zavřít? Provedené změny budou ztraceny.","latex_name_label":"Vzorec v LaTeXu","browser_no_compatible":"Váš prohlížeč nepodporuje technologii AJAX. Použijte nejnovější verzi prohlížeče Mozilla Firefox.","error_convert_accessibility":"Při převodu kódu MathML na čitelný text došlo k chybě.","exception_cross_site":"Skriptování mezi více servery je povoleno jen v HTTP.","exception_high_surrogate":"Ve funkci fixedCharCodeAt() nenásleduje po první části kódu znaku druhá část","exception_string_length":"Neplatný řetězec. Délka musí být násobkem 4.","exception_key_nonobject":"Funkce Object.keys byla použita pro prvek, který není objektem","exception_null_or_undefined":" hodnota je null nebo není definovaná","exception_not_function":" není funkce","exception_invalid_date_format":"Neplatný formát data: ","exception_casting":"Nelze přetypovat ","exception_casting_to":" na "},"da":{"latex":"LaTeX","cancel":"Annuller","accept":"Indsæt","manual":"Brugervejledning","insert_math":"Indsæt matematisk formel - MathType","insert_chem":"Indsæt en kemisk formel - ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fuld skærm","exit_fullscreen":"Afslut Fuld skærm","close":"Luk","mathtype":"MathType","title_modalwindow":"MathType-modalvindue","close_modal_warning":"Er du sikker på, du vil lukke? Dine ændringer går tabt.","latex_name_label":"LaTex-formel","browser_no_compatible":"Din browser er ikke kompatibel med AJAX-teknologi. Brug den nyeste version af Mozilla Firefox.","error_convert_accessibility":"Fejl under konvertering fra MathML til tilgængelig tekst.","exception_cross_site":"Scripts på tværs af websteder er kun tilladt for HTTP.","exception_high_surrogate":"Et højt erstatningstegn er ikke fulgt af et lavt erstatningstegn i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Længden skal være et multiplum af 4","exception_key_nonobject":"Object.keys kaldet ved ikke-objekt","exception_null_or_undefined":" dette er nul eller ikke defineret","exception_not_function":" er ikke en funktion","exception_invalid_date_format":"Ugyldigt datoformat: ","exception_casting":"Kan ikke beregne ","exception_casting_to":" til "},"de":{"latex":"LaTeX","cancel":"Abbrechen","accept":"Einfügen","manual":"Handbuch","insert_math":"Mathematische Formel einfügen - MathType","insert_chem":"Eine chemische Formel einfügen – ChemType","minimize":"Verkleinern","maximize":"Vergrößern","fullscreen":"Vollbild","exit_fullscreen":"Vollbild schließen","close":"Schließen","mathtype":"MathType","title_modalwindow":"Modales MathType-Fenster","close_modal_warning":"Bist du sicher, dass du das Programm verlassen willst? Alle vorgenommenen Änderungen gehen damit verloren.","latex_name_label":"Latex-Formel","browser_no_compatible":"Dein Browser ist nicht mit der AJAX-Technologie kompatibel. Verwende bitte die neueste Version von Mozilla Firefox.","error_convert_accessibility":"Fehler beim Konvertieren von MathML in barrierefreien Text.","exception_cross_site":"Cross-Site-Scripting ist nur bei HTTP zulässig.","exception_high_surrogate":"Hoher Ersatz bei bei festerZeichenkodierungbei() nicht von niedrigem Ersatz befolgt.","exception_string_length":"Ungültige Zeichenfolge. Länge muss ein Vielfaches von 4 sein.","exception_key_nonobject":"Object.keys wurde für ein Nicht-Objekt aufgerufen.","exception_null_or_undefined":" Das ist Null oder nicht definiert.","exception_not_function":" ist keine Funktion","exception_invalid_date_format":"Ungültiges Datumsformat: ","exception_casting":"Umwandlung nicht möglich ","exception_casting_to":" zu "},"el":{"latex":"LaTeX","cancel":"Άκυρο","accept":"Εισαγωγή","manual":"Χειροκίνητα","insert_math":"Εισαγωγή μαθηματικού τύπου - MathType","insert_chem":"Εισαγωγή χημικού τύπου - ChemType","minimize":"Ελαχιστοποίηση","maximize":"Μεγιστοποίηση","fullscreen":"Πλήρης οθόνη","exit_fullscreen":"Έξοδος από πλήρη οθόνη","close":"Κλείσιμο","mathtype":"MathType","title_modalwindow":"Τροπικό παράθυρο MathType","close_modal_warning":"Επιθυμείτε σίγουρα αποχώρηση; Θα χαθούν οι αλλαγές που έχετε κάνει.","latex_name_label":"Τύπος LaTeX","browser_no_compatible":"Το πρόγραμμα περιήγησής σας δεν είναι συμβατό με την τεχνολογία AJAX. Χρησιμοποιήστε την πιο πρόσφατη έκδοση του Mozilla Firefox.","error_convert_accessibility":"Σφάλμα κατά τη μετατροπή από MathML σε προσβάσιμο κείμενο.","exception_cross_site":"Το XSS (Cross site scripting) επιτρέπεται μόνο για HTTP.","exception_high_surrogate":"Το υψηλό υποκατάστατο δεν ακολουθείται από χαμηλό υποκατάστατο στο fixedCharCodeAt()","exception_string_length":"Μη έγκυρη συμβολοσειρά. Το μήκος πρέπει να είναι πολλαπλάσιο του 4","exception_key_nonobject":"Έγινε κλήση του Object.keys σε μη αντικείμενο","exception_null_or_undefined":" αυτό είναι μηδενικό ή δεν έχει οριστεί","exception_not_function":" δεν είναι συνάρτηση","exception_invalid_date_format":"Μη έγκυρη μορφή ημερομηνίας: ","exception_casting":"Δεν είναι δυνατή η μετατροπή ","exception_casting_to":" σε "},"en":{"latex":"LaTeX","cancel":"Cancel","accept":"Insert","manual":"Manual","insert_math":"Insert a math equation - MathType","insert_chem":"Insert a chemistry formula - ChemType","minimize":"Minimize","maximize":"Maximize","fullscreen":"Full-screen","exit_fullscreen":"Exit full-screen","close":"Close","mathtype":"MathType","title_modalwindow":"MathType modal window","close_modal_warning":"Are you sure you want to leave? The changes you made will be lost.","latex_name_label":"Latex Formula","browser_no_compatible":"Your browser is not compatible with AJAX technology. Please, use the latest version of Mozilla Firefox.","error_convert_accessibility":"Error converting from MathML to accessible text.","exception_cross_site":"Cross site scripting is only allowed for HTTP.","exception_high_surrogate":"High surrogate not followed by low surrogate in fixedCharCodeAt()","exception_string_length":"Invalid string. Length must be a multiple of 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" this is null or not defined","exception_not_function":" is not a function","exception_invalid_date_format":"Invalid date format : ","exception_casting":"Cannot cast ","exception_casting_to":" to "},"es":{"latex":"LaTeX","cancel":"Cancelar","accept":"Insertar","manual":"Manual","insert_math":"Insertar fórmula matemática - MathType","insert_chem":"Insertar fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Salir de pantalla completa","close":"Cerrar","mathtype":"MathType","title_modalwindow":"Ventana modal de MathType","close_modal_warning":"Seguro que quieres cerrar? Los cambios que has hecho se perderán","latex_name_label":"Formula en Latex","browser_no_compatible":"Tu navegador no es complatible con AJAX. Por favor, usa la última version de Mozilla Firefox.","error_convert_accessibility":"Error conviertiendo una fórmula MathML a texto accesible.","exception_cross_site":"Cross site scripting solo está permitido para HTTP.","exception_high_surrogate":"Subrogado alto no seguido por subrogado bajo en fixedCharCodeAt()","exception_string_length":"Cadena no válida. La longitud debe ser múltiplo de 4","exception_key_nonobject":"Object.keys called on non-object","exception_null_or_undefined":" esto es null o no definido","exception_not_function":" no es una función","exception_invalid_date_format":"Formato de fecha inválido: ","exception_casting":"No se puede emitir","exception_casting_to":" a "},"et":{"latex":"LaTeX","cancel":"Loobu","accept":"Lisa","manual":"Käsiraamat","insert_math":"Lisa matemaatiline valem – WIRIS","insert_chem":"Lisa keemiline valem – ChemType","minimize":"Minimeeri","maximize":"Maksimeeri","fullscreen":"Täiskuva","exit_fullscreen":"Välju täiskuvalt","close":"Sule","mathtype":"MathType","title_modalwindow":"MathType\'i modaalaken","close_modal_warning":"Kas soovite kindlasti lahkuda? Tehtud muudatused lähevad kaduma.","latex_name_label":"Latexi valem","browser_no_compatible":"Teie brauser ei ühildu AJAXi tehnoloogiaga. Palun kasutage Mozilla Firefoxi uusimat versiooni.","error_convert_accessibility":"Tõrge teisendamisel MathML-ist muudetavaks tekstiks.","exception_cross_site":"Ristskriptimine on lubatud ainult HTTP kasutamisel.","exception_high_surrogate":"Funktsioonis fixedCharCodeAt() ei järgne kõrgemale asendusliikmele madalam asendusliige.","exception_string_length":"Vigane string. Pikkus peab olema 4 kordne.","exception_key_nonobject":"Protseduur Object.keys kutsuti mitteobjekti korral.","exception_null_or_undefined":" see on null või määramata","exception_not_function":" ei ole funktsioon","exception_invalid_date_format":"Sobimatu kuupäeva kuju: ","exception_casting":"Esitamine ei õnnestu ","exception_casting_to":" – "},"eu":{"latex":"LaTeX","cancel":"Ezeztatu","accept":"Txertatu","manual":"Gida","insert_math":"Txertatu matematikako formula - MathType","insert_chem":"Txertatu formula kimiko bat - ChemType","minimize":"Ikonotu","maximize":"Maximizatu","fullscreen":"Pantaila osoa","exit_fullscreen":"Irten pantaila osotik","close":"Itxi","mathtype":"MathType","title_modalwindow":"MathType leiho modala","close_modal_warning":"Ziur irten nahi duzula? Egiten dituzun aldaketak galdu egingo dira.","latex_name_label":"LaTex Formula","browser_no_compatible":"Zure arakatzailea ez da bateragarria AJAX teknologiarekin. Erabili Mozilla Firefoxen azken bertsioa.","error_convert_accessibility":"Errorea MathMLtik testu irisgarrira bihurtzean.","exception_cross_site":"Gune arteko scriptak HTTPrako soilik onartzen dira.","exception_high_surrogate":"Ordezko baxuak ez dio ordezko altuari jarraitzen, hemen: fixedCharCodeAt()","exception_string_length":"Kate baliogabea. Luzerak 4ren multiploa izan behar du","exception_key_nonobject":"Object.keys deitu zaio objektua ez den zerbaiti","exception_null_or_undefined":" nulua edo definitu gabea da","exception_not_function":" ez da funtzio bat","exception_invalid_date_format":"Data-formatu baliogabea : ","exception_casting":"Ezin da igorri ","exception_casting_to":" honi "},"fi":{"latex":"LaTeX","cancel":"Peruuta","accept":"Lisää","manual":"Manual","insert_math":"Liitä matemaattinen kaava - MathType","insert_chem":"Lisää kemian kaava - ChemType","minimize":"Pienennä","maximize":"Suurenna","fullscreen":"Koko ruutu","exit_fullscreen":"Poistu koko ruudun tilasta","close":"Sulje","mathtype":"MathType","title_modalwindow":"MathTypen modaalinen ikkuna","close_modal_warning":"Oletko varma, että haluat poistua? Menetät tekemäsi muutokset.","latex_name_label":"Latex-kaava","browser_no_compatible":"Selaimesi ei tue AJAX-tekniikkaa. Ole hyvä ja käytä uusinta Firefox-versiota.","error_convert_accessibility":"Virhe muunnettaessa MathML:stä tekstiksi.","exception_cross_site":"Cross site scripting sallitaan vain HTTP:llä.","exception_high_surrogate":"fixedCharCodeAt(): yläsijaismerkkiä ei seurannut alasijaismerkki","exception_string_length":"Epäkelpo merkkijono. Pituuden on oltava 4:n kerrannainen","exception_key_nonobject":"Object.keys kutsui muuta kuin oliota","exception_null_or_undefined":" tämä on null tai ei määritelty","exception_not_function":" ei ole funktio","exception_invalid_date_format":"Virheellinen päivämäärämuoto : ","exception_casting":"Ei voida muuntaa tyyppiä ","exception_casting_to":" tyyppiin "},"fr":{"latex":"LaTeX","cancel":"Annuler","accept":"Insérer","manual":"Manuel","insert_math":"Insérer une formule mathématique - MathType","insert_chem":"Insérer une formule chimique - ChemType","minimize":"Minimiser","maximize":"Maximiser","fullscreen":"Plein écran","exit_fullscreen":"Quitter le plein écran","close":"Fermer","mathtype":"MathType","title_modalwindow":"Fenêtre modale MathType","close_modal_warning":"Confirmez-vous vouloir fermer ? Les changements effectués seront perdus.","latex_name_label":"Formule LaTeX","browser_no_compatible":"Votre navigateur n’est pas compatible avec la technologie AJAX. Veuillez utiliser la dernière version de Mozilla Firefox.","error_convert_accessibility":"Une erreur de conversion du format MathML en texte accessible est survenue.","exception_cross_site":"Le cross-site scripting n’est autorisé que pour HTTP.","exception_high_surrogate":"Substitut élevé non suivi d’un substitut inférieur dans fixedCharCodeAt()","exception_string_length":"Chaîne non valide. Longueur limitée aux multiples de 4","exception_key_nonobject":"Object.keys appelé sur un non-objet","exception_null_or_undefined":" nul ou non défini","exception_not_function":" n’est pas une fonction","exception_invalid_date_format":"Format de date non valide : ","exception_casting":"Impossible de convertir ","exception_casting_to":" sur "},"gl":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir unha fórmula matemática - MathType","insert_chem":"Inserir unha fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Pantalla completa","exit_fullscreen":"Saír da pantalla completa","close":"Pechar","mathtype":"MathType","title_modalwindow":"Ventá modal de MathType","close_modal_warning":"Seguro que quere saír? Perderanse os cambios realizados.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu explorador non é compatible coa tecnoloxía AJAX. Use a versión máis recente de Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML a texto accesible.","exception_cross_site":"Os scripts de sitios só se permiten para HTTP.","exception_high_surrogate":"Suplente superior non seguido por suplente inferior en fixedCharCodeAt()","exception_string_length":"Cadea non válida. A lonxitude debe ser un múltiplo de 4","exception_key_nonobject":"Claves de obxecto chamadas en non obxecto","exception_null_or_undefined":" nulo ou non definido","exception_not_function":" non é unha función","exception_invalid_date_format":"Formato de data non válido: ","exception_casting":"Non se pode converter ","exception_casting_to":" a "},"he":{"latex":"LaTeX","cancel":"ביטול","accept":"עדכון","manual":"ידני","insert_math":"הוספת נוסחה מתמטית - MathType","insert_chem":"הוספת כתיבה כימית - ChemType","minimize":"מזערי","maximize":"מרבי","fullscreen":"מסך מלא","exit_fullscreen":"יציאה ממצב מסך מלא","close":"סגירה","mathtype":"MathType","title_modalwindow":"חלון מודאלי של MathType","close_modal_warning":"האם לצאת? שינויים אשר בוצעו ימחקו.","latex_name_label":"נוסחת Latex","browser_no_compatible":"הדפדפן שלך אינו תואם לטכנולוגיית AJAX. יש להשתמש בגרסה העדכנית ביותר של Mozilla Firefox.","error_convert_accessibility":"שגיאה בהמרה מ-MathML לטקסט נגיש.","exception_cross_site":"סקריפטינג חוצה-אתרים מורשה עבור HTTP בלבד.","exception_high_surrogate":"ערך ממלא מקום גבוה אינו מופיע אחרי ערך ממלא מקום נמוך ב-fixedCharCodeAt()‎","exception_string_length":"מחרוזת לא חוקית. האורך חייב להיות כפולה של 4","exception_key_nonobject":"בוצעה קריאה אל Object.keys ברכיב שאינו אובייקט","exception_null_or_undefined":" הוא Null או לא מוגדר","exception_not_function":"איננה פונקציה","exception_invalid_date_format":"תסדיר תאריך אינו תקין : ","exception_casting":"לא ניתן להמיר ","exception_casting_to":" ל "},"hr":{"latex":"LaTeX","cancel":"Poništi","accept":"Umetni","manual":"Priručnik","insert_math":"Umetnite matematičku formulu - MathType","insert_chem":"Umetnite kemijsku formulu - ChemType","minimize":"Minimiziraj","maximize":"Maksimiziraj","fullscreen":"Cijeli zaslon","exit_fullscreen":"Izlaz iz prikaza na cijelom zaslonu","close":"Zatvori","mathtype":"MathType","title_modalwindow":"MathType modalni prozor","close_modal_warning":"Sigurno želite zatvoriti? Izgubit će se unesene promjene.","latex_name_label":"Latex formula","browser_no_compatible":"Vaš preglednik nije kompatibilan s AJAX tehnologijom. Upotrijebite najnoviju verziju Mozilla Firefoxa.","error_convert_accessibility":"Pogreška konverzije iz MathML-a u dostupni tekst.","exception_cross_site":"Skriptiranje na različitim web-mjestima dopušteno je samo za HTTP.","exception_high_surrogate":"Iza visoke zamjene ne slijedi niska zamjena u fixedCharCodeAt()","exception_string_length":"Nevažeći niz. Duljina mora biti višekratnik broja 4","exception_key_nonobject":"Object.keys pozvano na ne-objekt","exception_null_or_undefined":" ovo je nula ili nije definirano","exception_not_function":" nije funkcija","exception_invalid_date_format":"Nevažeći format datuma : ","exception_casting":"Ne može se poslati ","exception_casting_to":" na "},"hu":{"latex":"LaTeX","cancel":"Mégsem","accept":"Beszúrás","manual":"Kézikönyv","insert_math":"Matematikai képlet beszúrása - MathType","insert_chem":"Kémiai képet beillesztése - ChemType","minimize":"Kis méret","maximize":"Nagy méret","fullscreen":"Teljes képernyő","exit_fullscreen":"Teljes képernyő elhagyása","close":"Bezárás","mathtype":"MathType","title_modalwindow":"MathType modális ablak","close_modal_warning":"Biztosan kilép? A módosítások el fognak veszni.","latex_name_label":"Latex képlet","browser_no_compatible":"A böngészője nem kompatibilis az AJAX technológiával. Használja a Mozilla Firefox legújabb verzióját.","error_convert_accessibility":"Hiba lépett fel a MathML szöveggé történő konvertálása során.","exception_cross_site":"Az oldalak közti scriptelés csak HTTP esetén engedélyezett.","exception_high_surrogate":"A magas helyettesítő karaktert nem alacsony helyettesítő karakter követi a fixedCharCodeAt() esetében","exception_string_length":"Érvénytelen karakterlánc. A hossznak a 4 többszörösének kell lennie","exception_key_nonobject":"Az Object.keys egy nem objektumra került meghívásra","exception_null_or_undefined":" null vagy nem definiált","exception_not_function":" nem függvény","exception_invalid_date_format":"Érvénytelen dátumformátum: ","exception_casting":"Nem alkalmazható ","exception_casting_to":" erre "},"id":{"latex":"LaTeX","cancel":"Membatalkan","accept":"Masukkan","manual":"Manual","insert_math":"Masukkan rumus matematika - MathType","insert_chem":"Masukkan rumus kimia - ChemType","minimize":"Minikan","maximize":"Perbesar","fullscreen":"Layar penuh","exit_fullscreen":"Keluar layar penuh","close":"Tutup","mathtype":"MathType","title_modalwindow":"Jendela modal MathType","close_modal_warning":"Anda yakin ingin keluar? Anda akan kehilangan perubahan yang Anda buat.","latex_name_label":"Rumus Latex","browser_no_compatible":"Penjelajah Anda tidak kompatibel dengan teknologi AJAX. Harap gunakan Mozilla Firefox versi terbaru.","error_convert_accessibility":"Kesalahan konversi dari MathML menjadi teks yang dapat diakses.","exception_cross_site":"Skrip lintas situs hanya diizinkan untuk HTTP.","exception_high_surrogate":"Pengganti tinggi tidak diikuti oleh pengganti rendah di fixedCharCodeAt()","exception_string_length":"String tidak valid. Panjang harus kelipatan 4","exception_key_nonobject":"Object.keys meminta nonobjek","exception_null_or_undefined":" ini tidak berlaku atau tidak didefinisikan","exception_not_function":" bukan sebuah fungsi","exception_invalid_date_format":"Format tanggal tidak valid : ","exception_casting":"Tidak dapat mentransmisikan ","exception_casting_to":" untuk "},"it":{"latex":"LaTeX","cancel":"Annulla","accept":"Inserisci","manual":"Manuale","insert_math":"Inserisci una formula matematica - MathType","insert_chem":"Inserisci una formula chimica - ChemType","minimize":"Riduci a icona","maximize":"Ingrandisci","fullscreen":"Schermo intero","exit_fullscreen":"Esci da schermo intero","close":"Chiudi","mathtype":"MathType","title_modalwindow":"Finestra modale di MathType","close_modal_warning":"Confermi di voler uscire? Le modifiche effettuate andranno perse.","latex_name_label":"Formula LaTeX","browser_no_compatible":"Il tuo browser non è compatibile con la tecnologia AJAX. Utilizza la versione più recente di Mozilla Firefox.","error_convert_accessibility":"Errore durante la conversione da MathML in testo accessibile.","exception_cross_site":"Lo scripting tra siti è consentito solo per HTTP.","exception_high_surrogate":"Surrogato alto non seguito da surrogato basso in fixedCharCodeAt()","exception_string_length":"Stringa non valida. La lunghezza deve essere un multiplo di 4","exception_key_nonobject":"Metodo Object.keys richiamato in un elemento non oggetto","exception_null_or_undefined":" questo è un valore null o non definito","exception_not_function":" non è una funzione","exception_invalid_date_format":"Formato di data non valido: ","exception_casting":"Impossibile eseguire il cast ","exception_casting_to":" a "},"ja":{"latex":"LaTeX","cancel":"キャンセル","accept":"挿入","manual":"マニュアル","insert_math":"数式を挿入 - MathType","insert_chem":"化学式を挿入 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全画面表示","exit_fullscreen":"全画面表示を解除","close":"閉じる","mathtype":"MathType","title_modalwindow":"MathType モードウィンドウ","close_modal_warning":"このページから移動してもよろしいですか?変更内容は失われます。","latex_name_label":"LaTeX 数式","browser_no_compatible":"お使いのブラウザは、AJAX 技術と互換性がありません。Mozilla Firefox の最新バージョンをご使用ください。","error_convert_accessibility":"MathML からアクセシブルなテキストへの変換中にエラーが発生しました。","exception_cross_site":"クロスサイトスクリプティングは、HTTP のみに許可されています。","exception_high_surrogate":"fixedCharCodeAt()で上位サロゲートの後に下位サロゲートがありません","exception_string_length":"無効な文字列です。長さは4の倍数である必要があります","exception_key_nonobject":"Object.keys が非オブジェクトで呼び出されました","exception_null_or_undefined":" null であるか、定義されていません","exception_not_function":" は関数ではありません","exception_invalid_date_format":"無効な日付形式: ","exception_casting":"次にキャスト ","exception_casting_to":" できません "},"ko":{"latex":"LaTeX","cancel":"취소","accept":"삽입","manual":"설명서","insert_math":"수학 공식 삽입 - MathType","insert_chem":"화학 공식 입력하기 - ChemType","minimize":"최소화","maximize":"최대화","fullscreen":"전체 화면","exit_fullscreen":"전체 화면 나가기","close":"닫기","mathtype":"MathType","title_modalwindow":"MathType 모달 창","close_modal_warning":"정말로 나가시겠습니까? 변경 사항이 손실됩니다.","latex_name_label":"Latex 공식","browser_no_compatible":"사용자의 브라우저는 AJAX 기술과 호환되지 않습니다. Mozilla Firefox 최신 버전을 사용하십시오.","error_convert_accessibility":"MathML로부터 접근 가능한 텍스트로 오류 변환.","exception_cross_site":"사이트 교차 스크립팅은 HTTP 환경에서만 사용할 수 있습니다.","exception_high_surrogate":"fixedCharCodeAt()에서는 상위 서러게이트 뒤에 하위 서러게이트가 붙지 않습니다","exception_string_length":"유효하지 않은 스트링입니다. 길이는 4의 배수여야 합니다","exception_key_nonobject":"Object.keys가 non-object를 요청하였습니다","exception_null_or_undefined":" Null값이거나 정의되지 않았습니다","exception_not_function":" 함수가 아닙니다","exception_invalid_date_format":"유효하지 않은 날짜 포맷 : ","exception_casting":"캐스팅할 수 없습니다 ","exception_casting_to":" (으)로 "},"nl":{"latex":"LaTeX","cancel":"Annuleren","accept":"Invoegen","manual":"Handmatig","insert_math":"Een wiskundige vergelijking invoegen - MathType","insert_chem":"Een scheikundige formule invoegen - ChemType","minimize":"Minimaliseer","maximize":"Maximaliseer","fullscreen":"Schermvullend","exit_fullscreen":"Verlaat volledig scherm","close":"Sluit","mathtype":"MathType","title_modalwindow":"Modaal venster MathType","close_modal_warning":"Weet je zeker dat je de app wilt sluiten? De gemaakte wijzigingen gaan verloren.","latex_name_label":"LaTeX-formule","browser_no_compatible":"Je browser is niet compatibel met AJAX-technologie. Gebruik de meest recente versie van Mozilla Firefox.","error_convert_accessibility":"Fout bij conversie van MathML naar toegankelijke tekst.","exception_cross_site":"Cross-site scripting is alleen toegestaan voor HTTP.","exception_high_surrogate":"Hoog surrogaat niet gevolgd door laag surrogaat in fixedCharCodeAt()","exception_string_length":"Ongeldige tekenreeks. Lengte moet een veelvoud van 4 zijn","exception_key_nonobject":"Object.keys opgeroepen voor niet-object","exception_null_or_undefined":" dit is nul of niet gedefinieerd","exception_not_function":" is geen functie","exception_invalid_date_format":"Ongeldige datumnotatie: ","exception_casting":"Kan niet weergeven ","exception_casting_to":" op "},"no":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"nb":{"latex":"LaTeX","cancel":"Avbryt","accept":"Insert","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Sett inn en kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringene du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettleseren er ikke kompatibel med AJAX-teknologien. Bruk den nyeste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering fra MathML til tilgjengelig tekst.","exception_cross_site":"Skripting på tvers av nettsteder er bare tillatt med HTTP.","exception_high_surrogate":"Høyt surrogat etterfølges ikke av lavt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengden må være delelig på 4","exception_key_nonobject":"Object.keys kalte på et ikke-objekt","exception_null_or_undefined":" dette er null eller ikke definert","exception_not_function":" er ikke en funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikke bruke casting ","exception_casting_to":" til "},"nn":{"latex":"LaTeX","cancel":"Avbryt","accept":"Set inn","manual":"Håndbok","insert_math":"Sett inn matematikkformel - MathType","insert_chem":"Set inn ein kjemisk formel – ChemType","minimize":"Minimer","maximize":"Maksimer","fullscreen":"Fullskjerm","exit_fullscreen":"Avslutt fullskjerm","close":"Lukk","mathtype":"MathType","title_modalwindow":"Modalt MathType-vindu","close_modal_warning":"Er du sikker på at du vil gå ut? Endringane du har gjort, vil gå tapt.","latex_name_label":"LaTeX-formel","browser_no_compatible":"Nettlesaren er ikkje kompatibel med AJAX-teknologien. Bruk den nyaste versjonen av Mozilla Firefox.","error_convert_accessibility":"Feil under konvertering frå MathML til tilgjengeleg tekst.","exception_cross_site":"Skripting på tvers av nettstadar er bere tillaten med HTTP.","exception_high_surrogate":"Høgt surrogat er ikkje etterfølgt av lågt surrogat i fixedCharCodeAt()","exception_string_length":"Ugyldig streng. Lengda må vera deleleg på 4","exception_key_nonobject":"Object.keys kalla på eit ikkje-objekt","exception_null_or_undefined":" dette er null eller ikkje definert","exception_not_function":" er ikkje ein funksjon","exception_invalid_date_format":"Ugyldig datoformat: ","exception_casting":"Kan ikkje bruka casting ","exception_casting_to":" til "},"pl":{"latex":"LaTeX","cancel":"Anuluj","accept":"Wstaw","manual":"Instrukcja","insert_math":"Wstaw formułę matematyczną - MathType","insert_chem":"Wstaw wzór chemiczny — ChemType","minimize":"Minimalizuj","maximize":"Maksymalizuj","fullscreen":"Pełny ekran","exit_fullscreen":"Opuść tryb pełnoekranowy","close":"Zamknij","mathtype":"MathType","title_modalwindow":"Okno modalne MathType","close_modal_warning":"Czy na pewno chcesz zamknąć? Wprowadzone zmiany zostaną utracone.","latex_name_label":"Wzór Latex","browser_no_compatible":"Twoja przeglądarka jest niezgodna z technologią AJAX Użyj najnowszej wersji Mozilla Firefox.","error_convert_accessibility":"Błąd podczas konwertowania z formatu MathML na dostępny tekst.","exception_cross_site":"Krzyżowanie skryptów witryny jest dozwolone tylko dla HTTP.","exception_high_surrogate":"Brak niskiego surogatu po wysokim surogacie w fixedCharCodeAt()","exception_string_length":"Niewłaściwy ciąg znaków. Długość musi być wielokrotnością liczby 4.","exception_key_nonobject":"Argumentem wywołanej funkcji Object.key nie jest obiekt.","exception_null_or_undefined":" jest zerowy lub niezdefiniowany","exception_not_function":" nie jest funkcją","exception_invalid_date_format":"Nieprawidłowy format daty: ","exception_casting":"Nie można rzutować ","exception_casting_to":" na "},"pt":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Inserir uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Ecrã completo","exit_fullscreen":"Sair do ecrã completo","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Pretende sair? As alterações efetuadas serão perdidas.","latex_name_label":"Fórmula Latex","browser_no_compatible":"O seu navegador não é compatível com a tecnologia AJAX. Utilize a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O processamento de scripts em vários sites só é permitido para HTTP.","exception_high_surrogate":"Substituto alto não seguido por um substituto baixo em fixedCharCodeAt()","exception_string_length":"Cadeia inválida. O comprimento tem de ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamou um não-objeto","exception_null_or_undefined":" é nulo ou não está definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível adicionar ","exception_casting_to":" até "},"pt_br":{"latex":"LaTeX","cancel":"Cancelar","accept":"Inserir","manual":"Manual","insert_math":"Inserir fórmula matemática - MathType","insert_chem":"Insira uma fórmula química - ChemType","minimize":"Minimizar","maximize":"Maximizar","fullscreen":"Tela cheia","exit_fullscreen":"Sair de tela cheia","close":"Fechar","mathtype":"MathType","title_modalwindow":"Janela modal do MathType","close_modal_warning":"Tem certeza de que deseja sair? Todas as alterações serão perdidas.","latex_name_label":"Fórmula LaTeX","browser_no_compatible":"O navegador não é compatível com a tecnologia AJAX. Use a versão mais recente do Mozilla Firefox.","error_convert_accessibility":"Erro ao converter de MathML para texto acessível.","exception_cross_site":"O uso de scripts entre sites só é permitido para HTTP.","exception_high_surrogate":"High surrogate não seguido de low surrogate em fixedCharCodeAt()","exception_string_length":"String inválida. O comprimento deve ser um múltiplo de 4","exception_key_nonobject":"Object.keys chamados em não objeto","exception_null_or_undefined":" isto é nulo ou não definido","exception_not_function":" não é uma função","exception_invalid_date_format":"Formato de data inválido: ","exception_casting":"Não é possível transmitir ","exception_casting_to":" para "},"ro":{"latex":"LaTeX","cancel":"Anulare","accept":"Inserați","manual":"Ghid","insert_math":"Inserați o formulă matematică - MathType","insert_chem":"Inserați o formulă chimică - ChemType","minimize":"Minimizați","maximize":"Maximizați","fullscreen":"Afișați pe tot ecranul","exit_fullscreen":"Opriți afișarea pe tot ecranul","close":"Închideți","mathtype":"MathType","title_modalwindow":"Fereastră modală MathType","close_modal_warning":"Sigur doriți să ieșiți? Modificările realizate se vor pierde.","latex_name_label":"Formulă Latex","browser_no_compatible":"Browserul dvs. nu este compatibil cu tehnologia AJAX. Utilizați cea mai recentă versiune de Mozilla Firefox.","error_convert_accessibility":"Eroare la convertirea din MathML în text accesibil.","exception_cross_site":"Scriptarea între site‑uri este permisă doar pentru HTTP.","exception_high_surrogate":"Surogatul superior nu este urmat de un surogat inferior în fixedCharCodeAt()","exception_string_length":"Șir nevalid. Lungimea trebuie să fie multiplu de 4","exception_key_nonobject":"Object.keys a apelat un non-obiect","exception_null_or_undefined":" este null sau nu este definit","exception_not_function":" nu este funcție","exception_invalid_date_format":"Format de dată nevalid: ","exception_casting":"nu se poate difuza ","exception_casting_to":" către "},"ru":{"latex":"LaTeX","cancel":"отмена","accept":"Вставка","manual":"вручную","insert_math":"Вставить математическую формулу: WIRIS","insert_chem":"Вставить химическую формулу — ChemType","minimize":"Свернуть","maximize":"Развернуть","fullscreen":"На весь экран","exit_fullscreen":"Выйти из полноэкранного режима","close":"Закрыть","mathtype":"MathType","title_modalwindow":"Режимное окно MathType","close_modal_warning":"Вы уверены, что хотите выйти? Все внесенные изменения будут утрачены.","latex_name_label":"Формула Latex","browser_no_compatible":"Ваш браузер несовместим с технологией AJAX. Используйте последнюю версию Mozilla Firefox.","error_convert_accessibility":"При преобразовании формулы в текст допустимого формата произошла ошибка.","exception_cross_site":"Межсайтовые сценарии доступны только для HTTP.","exception_high_surrogate":"Младший символ-заместитель не сопровождает старший символ-заместитель в исправленном методе CharCodeAt()","exception_string_length":"Недопустимая строка. Длинна должна быть кратной 4.","exception_key_nonobject":"Метод Object.keys вызван не для объекта","exception_null_or_undefined":" значение пустое или не определено","exception_not_function":" не функция","exception_invalid_date_format":"Недопустимый формат даты: ","exception_casting":"Не удается привести ","exception_casting_to":" к "},"sv":{"latex":"LaTeX","cancel":"Avbryt","accept":"Infoga","manual":"Bruksanvisning","insert_math":"Infoga matematisk formel - MathType","insert_chem":"Infoga en kemiformel – ChemType","minimize":"Minimera","maximize":"Maximera","fullscreen":"Helskärm","exit_fullscreen":"Stäng helskärm","close":"Stäng","mathtype":"MathType","title_modalwindow":"MathType modulfönster","close_modal_warning":"Vill du avsluta? Inga ändringar kommer att sparas.","latex_name_label":"Latex-formel","browser_no_compatible":"Din webbläsare är inte kompatibel med AJAX-teknik. Använd den senaste versionen av Mozilla Firefox.","error_convert_accessibility":"Det uppstod ett fel vid konvertering från MathML till åtkomlig text.","exception_cross_site":"Skriptkörning över flera sajter är endast tillåtet för HTTP.","exception_high_surrogate":"Hög surrogat följs inte av låg surrogat i fixedCharCodeAt()","exception_string_length":"Ogiltig sträng. Längden måste vara en multipel av 4","exception_key_nonobject":"Object.keys anropade icke-objekt","exception_null_or_undefined":" det är null eller inte definierat","exception_not_function":" är inte en funktion","exception_invalid_date_format":"Ogiltigt datumformat: ","exception_casting":"Går inte att konvertera ","exception_casting_to":" till "},"tr":{"latex":"LaTeX","cancel":"Vazgeç","accept":"Ekle","manual":"Kılavuz","insert_math":"Matematik formülü ekle - MathType","insert_chem":"Kimya formülü ekleyin - ChemType","minimize":"Simge Durumuna Küçült","maximize":"Ekranı Kapla","fullscreen":"Tam Ekran","exit_fullscreen":"Tam Ekrandan Çık","close":"Kapat","mathtype":"MathType","title_modalwindow":"MathType kalıcı penceresi","close_modal_warning":"Çıkmak istediğinizden emin misiniz? Yaptığınız değişiklikler kaybolacak.","latex_name_label":"Latex Formülü","browser_no_compatible":"Tarayıcınız AJAX teknolojisiyle uyumlu değil. Lütfen en güncel Mozilla Firefox sürümünü kullanın.","error_convert_accessibility":"MathML biçiminden erişilebilir metne dönüştürme hatası.","exception_cross_site":"Siteler arası komut dosyası yazma işlemine yalnızca HTTP için izin verilir.","exception_high_surrogate":"fixedCharCodeAt() fonksiyonunda üst vekilin ardından alt vekil gelmiyor","exception_string_length":"Geçersiz dizgi. Uzunluk, 4\'ün katlarından biri olmalıdır","exception_key_nonobject":"Nesne olmayan öğe üzerinde Object.keys çağrıldı","exception_null_or_undefined":" bu değer boş veya tanımlanmamış","exception_not_function":" bir fonksiyon değil","exception_invalid_date_format":"Geçersiz tarih biçimi: ","exception_casting":"Tür dönüştürülemiyor ","exception_casting_to":" hedef: "},"zh":{"latex":"LaTeX","cancel":"取消","accept":"插入","manual":"手册","insert_math":"插入数学公式 - MathType","insert_chem":"插入化学分子式 - ChemType","minimize":"最小化","maximize":"最大化","fullscreen":"全屏幕","exit_fullscreen":"退出全屏幕","close":"关闭","mathtype":"MathType","title_modalwindow":"MathType 模式窗口","close_modal_warning":"您确定要离开吗?您所做的修改将丢失。","latex_name_label":"Latex 分子式","browser_no_compatible":"您的浏览器不兼容 AJAX 技术。请使用最新版 Mozilla Firefox。","error_convert_accessibility":"将 MathML 转换为可访问文本时出错。","exception_cross_site":"仅 HTTP 允许跨站脚本。","exception_high_surrogate":"fixedCharCodeAt() 中的高位代理之后未跟随低位代理","exception_string_length":"无效字符串。长度必须是 4 的倍数","exception_key_nonobject":"非对象调用了 Object.keys","exception_null_or_undefined":" 该值为空或未定义","exception_not_function":" 不是一个函数","exception_invalid_date_format":"无效日期格式: ","exception_casting":"无法转换 ","exception_casting_to":" 为 "},"":{}}');class r{constructor(){throw new Error("Static class StringManager can not be instantiated.")}static get(e,t){let{language:n}=this;return t&&(n=t),n&&n.length>2&&(n=n.slice(0,2)),this.strings.hasOwnProperty(n)||(console.warn(`Unknown language ${n} set in StringManager.`),n="en"),this.strings[n].hasOwnProperty(e)?this.strings[n][e]:(console.warn(`Unknown key ${e} for language ${n} in StringManager.`),e)}}r.strings=i,r.language="en"},33:(e,t,n)=>{n.d(t,{A:()=>i});class i{constructor(){this.cache=[]}populate(e,t){this.cache[e]=t}get(e){return!!Object.prototype.hasOwnProperty.call(this.cache,e)&&this.cache[e]}}},631:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ae});const{entries:i,setPrototypeOf:r,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:d,construct:m}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),d||(d=function(e,t,n){return e.apply(t,n)}),m||(m=function(e,t){return new e(...t)});const h=M(Array.prototype.forEach),f=M(Array.prototype.pop),p=M(Array.prototype.push),_=M(String.prototype.toLowerCase),g=M(String.prototype.toString),b=M(String.prototype.match),v=M(String.prototype.replace),x=M(String.prototype.indexOf),y=M(String.prototype.trim),w=M(Object.prototype.hasOwnProperty),k=M(RegExp.prototype.test),T=(A=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:_;r&&r(e,null);let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(a(t)||(t[i]=e),r=e)}e[r]=!0}return e}function S(e){for(let t=0;t/gm),U=c(/\$\{[\w\W]*}/gm),J=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),V=c(/^aria-[\-\w]+$/),W=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=c(/^(?:\w+script|data):/i),G=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=c(/^html$/i),Y=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,ARIA_ATTR:V,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:Y,DATA_ATTR:J,DOCTYPE_NAME:Q,ERB_EXPR:$,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:H,TMPLIT_EXPR:U});const Z=function(){return"undefined"==typeof window?null:window};var ee=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const n=t=>e(t);if(n.version="3.2.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const a=r,o=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:d,Element:m,NodeFilter:A,NamedNodeMap:M=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:S,DOMParser:H,trustedTypes:$}=t,U=m.prototype,J=E(U,"cloneNode"),V=E(U,"remove"),q=E(U,"nextSibling"),G=E(U,"childNodes"),Y=E(U,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ee,te="";const{implementation:ne,createNodeIterator:ie,createDocumentFragment:re,getElementsByTagName:ae}=r,{importNode:oe}=a;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof Y&&ne&&void 0!==ne.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:ce,TMPLIT_EXPR:ue,DATA_ATTR:de,ARIA_ATTR:me,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:pe}=K;let{IS_ALLOWED_URI:_e}=K,ge=null;const be=j({},[...C,...L,...z,...I,...R]);let ve=null;const xe=j({},[...D,...F,...X,...B]);let ye=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,ke=null,Te=!0,Ae=!0,Me=!1,je=!0,Se=!1,Oe=!0,Ee=!1,Ce=!1,Le=!1,ze=!1,Ne=!1,Ie=!1,Pe=!0,Re=!1,De=!0,Fe=!1,Xe={},Be=null;const He=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $e=null;const Ue=j({},["audio","video","img","source","image","track"]);let Je=null;const Ve=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1999/xhtml";let Qe=Ge,Ye=!1,Ke=null;const Ze=j({},[We,qe,Ge],g);let et=j({},["mi","mo","mn","ms","mtext"]),tt=j({},["annotation-xml"]);const nt=j({},["title","style","font","a","script"]);let it=null;const rt=["application/xhtml+xml","text/html"];let at=null,ot=null;const st=r.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ot||ot!==e){if(e&&"object"==typeof e||(e={}),e=O(e),it=-1===rt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===it?g:_,ge=w(e,"ALLOWED_TAGS")?j({},e.ALLOWED_TAGS,at):be,ve=w(e,"ALLOWED_ATTR")?j({},e.ALLOWED_ATTR,at):xe,Ke=w(e,"ALLOWED_NAMESPACES")?j({},e.ALLOWED_NAMESPACES,g):Ze,Je=w(e,"ADD_URI_SAFE_ATTR")?j(O(Ve),e.ADD_URI_SAFE_ATTR,at):Ve,$e=w(e,"ADD_DATA_URI_TAGS")?j(O(Ue),e.ADD_DATA_URI_TAGS,at):Ue,Be=w(e,"FORBID_CONTENTS")?j({},e.FORBID_CONTENTS,at):He,we=w(e,"FORBID_TAGS")?j({},e.FORBID_TAGS,at):{},ke=w(e,"FORBID_ATTR")?j({},e.FORBID_ATTR,at):{},Xe=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,Te=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Se=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,Ee=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Pe=!1!==e.SANITIZE_DOM,Re=e.SANITIZE_NAMED_PROPS||!1,De=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||W,Qe=e.NAMESPACE||Ge,et=e.MATHML_TEXT_INTEGRATION_POINTS||et,tt=e.HTML_INTEGRATION_POINTS||tt,ye=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ye.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(Ae=!1),Ne&&(ze=!0),Xe&&(ge=j({},R),ve=[],!0===Xe.html&&(j(ge,C),j(ve,D)),!0===Xe.svg&&(j(ge,L),j(ve,F),j(ve,B)),!0===Xe.svgFilters&&(j(ge,z),j(ve,F),j(ve,B)),!0===Xe.mathMl&&(j(ge,I),j(ve,X),j(ve,B))),e.ADD_TAGS&&(ge===be&&(ge=O(ge)),j(ge,e.ADD_TAGS,at)),e.ADD_ATTR&&(ve===xe&&(ve=O(ve)),j(ve,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&j(Je,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(Be===He&&(Be=O(Be)),j(Be,e.FORBID_CONTENTS,at)),De&&(ge["#text"]=!0),Ee&&j(ge,["html","head","body"]),ge.table&&(j(ge,["tbody"]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY,te=ee.createHTML("")}else void 0===ee&&(ee=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}($,o)),null!==ee&&"string"==typeof te&&(te=ee.createHTML(""));l&&l(e),ot=e}},ut=j({},[...L,...z,...N]),dt=j({},[...I,...P]),mt=function(e){p(n.removed,{element:e});try{Y(e).removeChild(e)}catch(t){V(e)}},ht=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ze||Ne)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ft=function(e){let t=null,n=null;if(Le)e=""+e;else{const t=b(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Qe===Ge&&(e=''+e+"");const i=ee?ee.createHTML(e):e;if(Qe===Ge)try{t=(new H).parseFromString(i,it)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=Ye?te:i}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Qe===Ge?ae.call(t,Ee?"html":"body")[0]:Ee?t.documentElement:a},pt=function(e){return ie.call(e.ownerDocument||e,e,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof S&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof M)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},gt=function(e){return"function"==typeof d&&e instanceof d};function bt(e,t,i){h(e,(e=>{e.call(n,t,i,ot)}))}const vt=function(e){let t=null;if(bt(se.beforeSanitizeElements,e,null),_t(e))return mt(e),!0;const i=at(e.nodeName);if(bt(se.uponSanitizeElement,e,{tagName:i,allowedTags:ge}),e.hasChildNodes()&&!gt(e.firstElementChild)&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return mt(e),!0;if(7===e.nodeType)return mt(e),!0;if(Oe&&8===e.nodeType&&k(/<[/\w]/g,e.data))return mt(e),!0;if(!ge[i]||we[i]){if(!we[i]&&yt(i)){if(ye.tagNameCheck instanceof RegExp&&k(ye.tagNameCheck,i))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(i))return!1}if(De&&!Be[i]){const t=Y(e)||e.parentNode,n=G(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const r=J(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,q(e))}}return mt(e),!0}return e instanceof m&&!function(e){let t=Y(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=_(e.tagName),i=_(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===qe?t.namespaceURI===Ge?"svg"===n:t.namespaceURI===We?"svg"===n&&("annotation-xml"===i||et[i]):Boolean(ut[n]):e.namespaceURI===We?t.namespaceURI===Ge?"math"===n:t.namespaceURI===qe?"math"===n&&tt[i]:Boolean(dt[n]):e.namespaceURI===Ge?!(t.namespaceURI===qe&&!tt[i])&&!(t.namespaceURI===We&&!et[i])&&!dt[n]&&(nt[n]||!ut[n]):!("application/xhtml+xml"!==it||!Ke[e.namespaceURI]))}(e)?(mt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Se&&3===e.nodeType&&(t=e.textContent,h([le,ce,ue],(e=>{t=v(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),bt(se.afterSanitizeElements,e,null),!1):(mt(e),!0)},xt=function(e,t,n){if(Pe&&("id"===t||"name"===t)&&(n in r||n in st))return!1;if(Ae&&!ke[t]&&k(de,t));else if(Te&&k(me,t));else if(!ve[t]||ke[t]){if(!(yt(e)&&(ye.tagNameCheck instanceof RegExp&&k(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&k(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&k(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Je[t]);else if(k(_e,v(n,fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==x(n,"data:")||!$e[e])if(Me&&!k(he,v(n,fe,"")));else if(n)return!1;return!0},yt=function(e){return"annotation-xml"!==e&&b(e,pe)},wt=function(e){bt(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0};let r=t.length;for(;r--;){const a=t[r],{name:o,namespaceURI:s,value:l}=a,c=at(o);let u="value"===o?l:y(l);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,bt(se.uponSanitizeAttribute,e,i),u=i.attrValue,!Re||"id"!==c&&"name"!==c||(ht(o,e),u="user-content-"+u),Oe&&k(/((--!?|])>)|<\/(style|title)/i,u)){ht(o,e);continue}if(i.forceKeepAttr)continue;if(ht(o,e),!i.keepAttr)continue;if(!je&&k(/\/>/i,u)){ht(o,e);continue}Se&&h([le,ce,ue],(e=>{u=v(u,e," ")}));const d=at(e.nodeName);if(xt(d,c,u)){if(ee&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(s);else switch($.getAttributeType(d,c)){case"TrustedHTML":u=ee.createHTML(u);break;case"TrustedScriptURL":u=ee.createScriptURL(u)}try{s?e.setAttributeNS(s,o,u):e.setAttribute(o,u),_t(e)?mt(e):f(n.removed)}catch(e){}}}bt(se.afterSanitizeAttributes,e,null)},kt=function e(t){let n=null;const i=pt(t);for(bt(se.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)bt(se.uponSanitizeShadowNode,n,null),vt(n),wt(n),n.content instanceof s&&e(n.content);bt(se.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,o=null,l=null;if(Ye=!e,Ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!gt(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ce||ct(t),n.removed=[],"string"==typeof e&&(Fe=!1),Fe){if(e.nodeName){const t=at(e.nodeName);if(!ge[t]||we[t])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)i=ft("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!ze&&!Se&&!Ee&&-1===e.indexOf("<"))return ee&&Ie?ee.createHTML(e):e;if(i=ft(e),!i)return ze?null:Ie?te:""}i&&Le&&mt(i.firstChild);const c=pt(Fe?e:i);for(;o=c.nextNode();)vt(o),wt(o),o.content instanceof s&&kt(o.content);if(Fe)return e;if(ze){if(Ne)for(l=re.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(ve.shadowroot||ve.shadowrootmode)&&(l=oe.call(a,l,!0)),l}let u=Ee?i.outerHTML:i.innerHTML;return Ee&&ge["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&k(Q,i.ownerDocument.doctype.name)&&(u="\n"+u),Se&&h([le,ce,ue],(e=>{u=v(u,e," ")})),ee&&Ie?ee.createHTML(u):u},n.setConfig=function(){ct(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ce=!0},n.clearConfig=function(){ot=null,Ce=!1},n.isValidAttribute=function(e,t,n){ot||ct({});const i=at(e),r=at(t);return xt(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&p(se[e],t)},n.removeHook=function(e){return f(se[e])},n.removeHooks=function(e){se[e]=[]},n.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),te=n(443),ne=n(976),ie=n(574),re=n(565);class ae{static fireEvent(e,t){if(document.createEvent){const n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!0),!e.dispatchEvent(n)}const n=document.createEventObject();return e.fireEvent(`on${t}`,n)}static addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent&&e.attachEvent(`on${t}`,n)}static removeEvent(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!0):e.detachEvent&&e.detachEvent(`on${t}`,n)}static addElementEvents(e,t,n,i){t&&(this.callbackDblclick=e=>{const n=e||window.event,i=n.srcElement?n.srcElement:n.target;t(i,n)},ae.addEvent(e,"dblclick",this.callbackDblclick)),n&&(this.callbackMousedown=e=>{const t=e||window.event,i=t.srcElement?t.srcElement:t.target;n(i,t)},ae.addEvent(e,"mousedown",this.callbackMousedown)),i&&(this.callbackMouseup=e=>{const t=e||window.event,n=t.srcElement?t.srcElement:t.target;i(n,t)},ae.addEvent(document,"mouseup",this.callbackMouseup),ae.addEvent(e,"mouseup",this.callbackMouseup))}static removeElementEvents(e){ae.removeEvent(e,"dblclick",this.callbackDblclick),ae.removeEvent(e,"mousedown",this.callbackMousedown),ae.removeEvent(document,"mouseup",this.callbackMouseup),ae.removeEvent(e,"mouseup",this.callbackMouseup)}static addClass(e,t){ae.containsClass(e,t)||(e.className+=` ${t}`)}static containsClass(e,t){if(null==e||!("className"in e))return!1;const n=e.className.split(" ");for(let e=n.length-1;e>=0;e-=1)if(n[e]===t)return!0;return!1}static removeClass(e,t){let n="";const i=e.className.split(" ");for(let e=0;ee.trim().split("="))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{}):{}}static createElement(e,t,n){let i;void 0===t&&(t={}),void 0===n&&(n=document);try{let r=`<${e}`;Object.keys(t).forEach((e=>{r+=` ${e}="${ae.htmlEntities(t[e])}"`})),r+=">",i=n.createElement(r)}catch(r){i=n.createElement(e),Object.keys(t).forEach((e=>{i.setAttribute(e,t[e])}))}return i}static createObject(e,t){void 0===t&&(t=document),e=(e=(e=(e=e.split("").join("").split("").join("")).split("").join("
").split("").join("
");const n=ae.createElement("div",{},t);return n.innerHTML=e,function e(n){if(n.getAttribute&&"WirisParam"===n.getAttribute("wirisObject")){const e={};for(let t=0;t0){t+=">";for(let n=0;n`}else"DIV"===e.nodeName||"SCRIPT"===e.nodeName?t+=`>`:t+="/>";return t}return 3===e.nodeType?ae.htmlEntities(e.nodeValue):""}static concatenateUrl(e,t){let n="";return e.indexOf("/")!==e.length&&0!==t.indexOf("/")&&(n="/"),(e+n+t).replace(/([^:]\/)\/+/g,"$1")}static htmlEntities(e){return e.split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")}static htmlSanitize(e){let t=/\/,n=e.match(t);return(e=ee.sanitize(e,{ADD_TAGS:["semantics","annotation","mstack","msline","msrow","none"],ADD_ATTR:["linebreak","charalign","stackalign"]})).replace(t,n)}static htmlEntitiesDecode(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}static createHttpRequest(){if("file://"===window.location.toString().substr(0,window.location.toString().lastIndexOf("/")+1).substr(0,7))throw re.A.get("exception_cross_site");if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return null}}}static httpBuildQuery(e){let t="";return Object.keys(e).forEach((n=>{null!=e[n]&&(t+=`${ae.urlEncode(n)}=${ae.urlEncode(e[n])}&`)})),"&"===t.substring(t.length-1)&&(t=t.substring(0,t.length-1)),t}static propertiesToString(e){const t=[];Object.keys(e).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&t.push(n)}));const n=t.length;for(let e=0;e0&&(t[e]=r,t[i]=n)}let i="";for(let r=0;rr?r:i;for(n=0;n=55296&&n<=56319){if(i=n,r=e.charCodeAt(t+1),Number.isNaN(r))throw re.A.get("exception_high_surrogate");return 1024*(i-55296)+(r-56320)+65536}return!(n>=56320&&n<=57343)&&n}static urlToAssArray(e){let t;if(t=e.indexOf("?"),t>0){const n=e.substring(t+1).split("&"),i={};for(t=0;t1&&(i[e[0]]=decodeURIComponent(e[1].replace(/\+/g," ")))}return i}return{}}static urlEncode(e){let t="";return t=encodeURIComponent(e),t}static getWIRISImageOutput(e,t,n){const i=ae.createObject(e);if(i&&(i.className===ne.A.get("imageClassName")||i.getAttribute(ne.A.get("imageMathmlAttribute")))){if(!t)return e;const r=i.getAttribute(ne.A.get("imageMathmlAttribute"));let a=te.default.safeXmlDecode(r);return ne.A.get("saveHandTraces")||(a=te.default.removeAnnotation(a,"application/json")),null==a&&(a=i.getAttribute("alt")),n?te.default.safeXmlEncode(a):a}return e}static getNodeLength(e){const t={IMG:1,BR:1};if(3===e.nodeType)return e.nodeValue.length;if(1===e.nodeType){let n=t[e.nodeName.toUpperCase()];void 0===n&&(n=0);for(let t=0;t0)return 0===n.text.length?ae.getSelectedItem(e,t,!0):null;i.document.execCommand("InsertImage",!1,"#");let r,a,o=n.parentElement();return"IMG"!==o.nodeName.toUpperCase()&&(n.pasteHTML(''),o=i.document.getElementById("wrs_openEditorWindow_temporalObject")),o.nextSibling&&3===o.nextSibling.nodeType?(r=o.nextSibling,a=0):o.previousSibling&&3===o.previousSibling.nodeType?(r=o.previousSibling,a=r.nodeValue.length):(r=i.document.createTextNode(""),o.parentNode.insertBefore(r,o),a=0),o.parentNode.removeChild(o),{node:r,caretPosition:a}}return n.length>1?null:{node:n.item(0)}}if(i.getSelection){let a;const o=i.getSelection();try{a=o.getRangeAt(0)}catch(e){a=i.document.createRange()}const s=a.startContainer;if(3===s.nodeType)return{node:s,caretPosition:a.startOffset};if(s!==a.endContainer)return null;if(1===s.nodeType){const i=a.startOffset;if(s.childNodes[i]){if(a.startOffset===a.endOffset){if(0!==i&&"span"===s.childNodes[i-1].localName&&s.childNodes[i].classList?.contains("Wirisformula"))return s.childNodes[i-1].remove(),ae.getSelectedItem(e,t,n);if(s.childNodes[i].classList?.contains("Wirisformula")&&(i>0&&s.childNodes[i-1].classList?.contains("Wirisformula")||0===i)){var r=document.createElement("span");return s.insertBefore(r,s.childNodes[i]),{node:s.childNodes[i]}}}return{node:s.childNodes[i]}}}}return null}static getSelectedItemOnTextarea(e){const t=document.createTextNode(e.value),n=ie.A.getLatexFromTextNode(t,e.selectionStart);return null===n?null:{node:t,caretPosition:e.selectionStart,startPosition:n.startPosition,endPosition:n.endPosition}}static getElementsByNameFromString(e,t,n){const i=[];e=e.toLowerCase(),t=t.toLowerCase();let r=e.indexOf(`<${t} `);for(;-1!==r;){let a;a=n?">":``;let o=e.indexOf(a,r);-1!==o?(o+=a.length,i.push({start:r,end:o})):o=r+1,r=e.indexOf(`<${t} `,o)}return i}static decode64(e){const t="+".charCodeAt(0),n="/".charCodeAt(0),i="0".charCodeAt(0),r="a".charCodeAt(0),a="A".charCodeAt(0),o="-".charCodeAt(0),s="_".charCodeAt(0),l=e.charCodeAt(0);return l===t||l===o?62:l===n||l===s?63:l0)throw new Error("Invalid string. Length must be a multiple of 4");const i=[];let r,a,o;for(t?r=t:(a="="===e.charAt(e.length-2)?2:"="===e.charAt(e.length-1)?1:0,r=a>0?e.length-4:e.length),o=0;o>16&255),i.push(n>>8&255),i.push(255&n);return a&&(2===a?(n=ae.decode64(e.charAt(o))<<2|ae.decode64(e.charAt(o+1))>>4,i.push(255&n)):1===a&&(n=ae.decode64(e.charAt(o))<<10|ae.decode64(e.charAt(o+1))<<4|ae.decode64(e.charAt(o+2))>>2,i.push(n>>8&255),i.push(255&n))),i}static readInt32(e){if(e.length<4)return!1;const t=e.splice(0,4);return t[0]<<24|t[1]<<16|t[2]<<8|t[3]}static readByte(e){return 0|e.shift()}static readBytes(e,t,n){return e.splice(t,n)}static updateTextArea(e,t){if(e&&t)if(e.focus(),null!=e.selectionStart){const{selectionEnd:n}=e,i=e.value.substring(0,e.selectionStart),r=e.value.substring(n,e.value.length);e.value=i+t+r,e.selectionEnd=n+t.length}else document.selection.createRange().text=t}static updateExistingTextOnTextarea(e,t,n,i){e.focus();const r=e.value.substring(0,n);e.value=r+t+e.value.substring(i,e.value.length),e.selectionEnd=n+t.length}static addArgument(e,t,n){let i;return i=e.indexOf("?")>0?"&":"?",`${e+i+t}=${n}`}}},816:function(e,t,n){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.renderLatex=void 0;var o=n(975);function s(e,t){return i(this,void 0,void 0,(function(){var n,i,a,s,l,c,u,d,m,h,f,p,_,g,b,v,x;return r(this,(function(r){switch(r.label){case 0:n=null!==(f=t.textContent)&&void 0!==f?f:"",i=0,r.label=1;case 1:return i0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r0&&(i.style.verticalAlign="-"+(+t.height-+t.baseline)+"px",i.height=+t.height,i.width=+t.width),h.some((function(e){return n.includes(e)})))return[3,5];r.label=1;case 1:return r.trys.push([1,4,,5]),t.alt?[3,3]:[4,(0,c.mathml2accessible)(n,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 2:a=r.sent().text,t.alt=a,r.label=3;case 3:return i.alt=null!==(o=t.alt)&&void 0!==o?o:"",[3,5];case 4:return r.sent(),i.alt="Alternative text not available",[3,5];case 5:return[2,i]}}))}))}function m(e){return(new XMLSerializer).serializeToString(document.createRange().createContextualFragment(e))}t.renderMathML=function(e,t){return i(this,void 0,void 0,(function(){var n,i,l,h,f,p,_,g,b,v;return r(this,(function(r){switch(r.label){case 0:if("image"!==e.viewer&&"mathml"!==e.viewer)return[2];(function(e){var t,n,i,r,o,s=function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,(function(e){return/«math([\s\S]*?)«\/math»/g.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT})),i=[];t=n.nextNode();)i.push(t);return i}(e);try{for(var l=a(s),c=l.next();!c.done;c=l.next()){var d=c.value,m=u.default.safeXmlDecode(null!==(i=d.textContent)&&void 0!==i?i:""),h=document.createRange().createContextualFragment(m);null===(r=d.parentNode)||void 0===r||r.insertBefore(h,d),null===(o=d.parentNode)||void 0===o||o.removeChild(d)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}})(t),r.label=1;case 1:r.trys.push([1,12,13,14]),n=a(s([],o(t.getElementsByTagName("math")),!1)),i=n.next(),r.label=2;case 2:if(i.done)return[3,11];l=i.value,h=m(l.outerHTML),r.label=3;case 3:return r.trys.push([3,9,,10]),f=void 0,"true"!==e.wirispluginperformance?[3,5]:[4,(0,c.showImage)(h,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 4:return f=r.sent(),[3,7];case 5:return[4,(0,c.createImage)(h,e.lang,e.editorServicesRoot,e.editorServicesExtension)];case 6:f=r.sent(),r.label=7;case 7:return[4,d(e,f,h)];case 8:return p=r.sent(),null===(v=l.parentNode)||void 0===v||v.replaceChild(p,l),[3,10];case 9:return r.sent(),console.error("Cannot render ".concat(h,": invalid MathML format.")),[3,10];case 10:return i=n.next(),[3,2];case 11:return[3,14];case 12:return _=r.sent(),g={error:_},[3,14];case 13:try{i&&!i.done&&(b=n.return)&&b.call(n)}finally{if(g)throw g.error}return[7];case 14:return[2]}}))}))},t.serializeHtmlToXml=m;var h=["⟦","⟦","⟧","⟧","mscarries","mscarry","msgroup","mstack","msline","msrow"]},614:function(e,t,n){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0)for(var r=0;r=0&&v>x)break;var y=null===(c=e.textContent)||void 0===c?void 0:c.substring(b,v+g.length);e.textContent=(null!==(d=null===(u=e.textContent)||void 0===u?void 0:u.substring(0,b))&&void 0!==d?d:"")+(null===(m=e.textContent)||void 0===m?void 0:m.substring(v+g.length)),b=null!==(f=null===(h=(e=e.splitText(b)).textContent)||void 0===h?void 0:h.indexOf(_))&&void 0!==f?f:-1,t.push({safeMML:y,nextElement:e})}},e}(),l=function(){function e(){}return e.getSafeXMLCharactersEntities=function(){return{tagOpener:"«",tagCloser:"»",doubleQuote:"¨",realDoubleQuote:"""}},e.getXMLCharacters=function(){return{id:"xmlCharacters",tagOpener:"<",tagCloser:">",doubleQuote:'"',ampersand:"&",quote:"'"}},e.getSafeXMLCharacters=function(){return{id:"safeXmlCharacters",tagOpener:"«",tagCloser:"»",doubleQuote:"¨",ampersand:"§",quote:"`",realDoubleQuote:"¨"}},e}()},975:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,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=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configurationJson=t.latexToMathml=t.createImage=t.showImage=t.mathml2accessible=t.callService=t.processJsonResponse=t.StatusError=void 0;var d,m=u(n(482)),h=n(614);!function(e){e.Post="POST",e.Get="GET"}(d||(d={}));var f=function(e){function t(n){var i=e.call(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return r(t,e),t}(Error);function p(e){return o(this,void 0,void 0,(function(){var t,n,i;return s(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,e];case 1:return[4,r.sent().json()];case 2:if(t=r.sent(),n=t.status,i=t.result,"ok"!==n)throw new f("Service responded with a non-ok status");return[2,i];case 3:throw r.sent();case 4:return[2]}}))}))}function _(e,t,n,i,r){return o(this,void 0,void 0,(function(){var o,u,m,f,p,_,g,b,v,x,y;return s(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),o=new URL(t+r,i),[4,h.Properties.getInstance()];case 1:if(u=s.sent(),m=a({"Content-type":"application/x-www-form-urlencoded; charset=utf-8"},u.config.backendConfig.wiriscustomheaders),f={method:n,headers:m},n===d.Get)try{for(p=l(Object.entries(e)),_=p.next();!_.done;_=p.next())g=c(_.value,2),b=g[0],v=g[1],o.searchParams.set(b,v)}catch(e){x={error:e}}finally{try{_&&!_.done&&(y=p.return)&&y.call(p)}finally{if(x)throw x.error}}else f.body=new URLSearchParams(a({},e));return[2,fetch(o.toString(),f)];case 2:throw s.sent();case 3:return[2]}}))}))}t.StatusError=f,t.processJsonResponse=p,t.callService=_,t.mathml2accessible=function(e,t,n,i){return o(this,void 0,void 0,(function(){return s(this,(function(r){return[2,p(_({service:"mathml2accessible",mml:e,metrics:"true",centerbaseline:"false",lang:t,ignoreStyles:"true"},"service",d.Post,n,i))]}))}))},t.showImage=function(e,t,n,i){return o(this,void 0,void 0,(function(){var r,a,o,l;return s(this,(function(s){switch(s.label){case 0:r={mml:e,metrics:"true",centerbaseline:"false",lang:t},a=m.default.createShowImageSrcData(r,r.lang),o=_(a,"showimage",d.Get,n,i),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,p(o)];case 2:return[2,s.sent()];case 3:if(!((l=s.sent())instanceof f))throw l;return[3,4];case 4:return[2,p(_(r,"showimage",d.Post,n,i))]}}))}))},t.createImage=function(e,t,n,i){return o(this,void 0,void 0,(function(){return s(this,(function(r){return[2,p(_({mml:e,metrics:"true",centerbaseline:"false",lang:t},"showimage",d.Post,n,i))]}))}))},t.latexToMathml=function(e,t,n){return o(this,void 0,void 0,(function(){return s(this,(function(i){return[2,p(_({service:"latex2mathml",latex:e},"service",d.Post,t,n))]}))}))},t.configurationJson=function(e,t,n,i){return o(this,void 0,void 0,(function(){var r;return s(this,(function(a){switch(a.label){case 0:return[4,_({variablekeys:e.join(",")},"configurationjson",d.Get,t,n)];case 1:return r=a.sent(),i&&!r.ok&&console.warn("Fetching the url: "+r.url+", is expected to fail and handled. Don't panic!"),[2,p(r)]}}))}))}},330:e=>{e.exports=JSON.parse('{"name":"@wiris/mathtype-viewer","version":"8.11.1","description":"","main":"app.js","scripts":{"build":"webpack --mode production","build-dev":"webpack --mode development","serve":"webpack serve","prepack":"yarn && npm run build"},"keywords":["typescript","course"],"author":"Integrations","license":"ISC","dependencies":{"@wiris/mathtype-html-integration-devkit":"1.17.5"},"devDependencies":{"@babel/preset-typescript":"^7.24.1","@types/jest":"^29.5.12","babel-jest":"^29.7.0","babel-loader":"^9.1.3","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","lite-server":"^2.5.4","ts-loader":"^9.4.2","webpack":"^5.75.0","webpack-cli":"^5.0.0","webpack-dev-server":"^5.0.4"}}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(816)})(); \ No newline at end of file