Liferay.Loader.define("journal-web$codemirror@5.65.2/addon/mode/multiplex",["module","exports","require","../../lib/codemirror"],(function(e,n,r){var i,t=void 0;window;i=function(e){"use strict";e.multiplexingMode=function(n){var r=Array.prototype.slice.call(arguments,1);function indexOf(e,n,r,i){if("string"==typeof n){var t=e.indexOf(n,r);return i&&t>-1?t+n.length:t}var o=n.exec(r?e.slice(r):e);return o?o.index+r+(i?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(n),innerActive:null,inner:null,startingInner:!1}},copyState:function(r){return{outer:e.copyState(n,r.outer),innerActive:r.innerActive,inner:r.innerActive&&e.copyState(r.innerActive.mode,r.inner),startingInner:r.startingInner}},token:function(i,t){if(t.innerActive){var o=t.innerActive;if(s=i.string,!o.close&&i.sol())return t.innerActive=t.inner=null,this.token(i,t);if((u=o.close&&!t.startingInner?indexOf(s,o.close,i.pos,o.parseDelimiters):-1)==i.pos&&!o.parseDelimiters)return i.match(o.close),t.innerActive=t.inner=null,o.delimStyle&&o.delimStyle+" "+o.delimStyle+"-close";u>-1&&(i.string=s.slice(0,u));var l=o.mode.token(i,t.inner);return u>-1?i.string=s:i.pos>i.start&&(t.startingInner=!1),u==i.pos&&o.parseDelimiters&&(t.innerActive=t.inner=null),o.innerStyle&&(l=l?l+" "+o.innerStyle:o.innerStyle),l}for(var c=1/0,s=i.string,a=0;a<r.length;++a){var u,d=r[a];if((u=indexOf(s,d.open,i.pos))==i.pos){d.parseDelimiters||i.match(d.open),t.startingInner=!!d.parseDelimiters,t.innerActive=d;var v=0;if(n.indent){var m=n.indent(t.outer,"","");m!==e.Pass&&(v=m)}return t.inner=e.startState(d.mode,v),d.delimStyle&&d.delimStyle+" "+d.delimStyle+"-open"}-1!=u&&u<c&&(c=u)}c!=1/0&&(i.string=s.slice(0,c));var f=n.token(i,t.outer);return c!=1/0&&(i.string=s),f},indent:function(r,i,t){var o=r.innerActive?r.innerActive.mode:n;return o.indent?o.indent(r.innerActive?r.inner:r.outer,i,t):e.Pass},blankLine:function(i){var t=i.innerActive?i.innerActive.mode:n;if(t.blankLine&&t.blankLine(i.innerActive?i.inner:i.outer),i.innerActive)"\n"===i.innerActive.close&&(i.innerActive=i.inner=null);else for(var o=0;o<r.length;++o){var l=r[o];"\n"===l.open&&(i.innerActive=l,i.inner=e.startState(l.mode,t.indent?t.indent(i.outer,"",""):0))}},electricChars:n.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:n}}}}},"object"==typeof n&&"object"==typeof e?i(r("../../lib/codemirror")):"function"==typeof t&&t.amd?t(["../../lib/codemirror"],i):i(CodeMirror)}));
//# sourceMappingURL=multiplex.js.map