amis-rpc-design/dist/2209.1d1bdd69.bundle.js
2023-10-07 19:42:30 +08:00

1 line
2.2 KiB
JavaScript

(self.webpackChunkamis_rpc_design=self.webpackChunkamis_rpc_design||[]).push([[2209],{2209:(e,n,t)=>{!function(e){"use strict";e.multiplexingMode=function(n){var t=Array.prototype.slice.call(arguments,1);function i(e,n,t,i){if("string"==typeof n){var r=e.indexOf(n,t);return i&&r>-1?r+n.length:r}var s=n.exec(t?e.slice(t):e);return s?s.index+t+(i?s[0].length:0):-1}return{startState:function(){return{outer:e.startState(n),innerActive:null,inner:null,startingInner:!1}},copyState:function(t){return{outer:e.copyState(n,t.outer),innerActive:t.innerActive,inner:t.innerActive&&e.copyState(t.innerActive.mode,t.inner),startingInner:t.startingInner}},token:function(r,s){if(s.innerActive){var l=s.innerActive;if(a=r.string,!l.close&&r.sol())return s.innerActive=s.inner=null,this.token(r,s);if((v=l.close&&!s.startingInner?i(a,l.close,r.pos,l.parseDelimiters):-1)==r.pos&&!l.parseDelimiters)return r.match(l.close),s.innerActive=s.inner=null,l.delimStyle&&l.delimStyle+" "+l.delimStyle+"-close";v>-1&&(r.string=a.slice(0,v));var o=l.mode.token(r,s.inner);return v>-1?r.string=a:r.pos>r.start&&(s.startingInner=!1),v==r.pos&&l.parseDelimiters&&(s.innerActive=s.inner=null),l.innerStyle&&(o=o?o+" "+l.innerStyle:l.innerStyle),o}for(var c=1/0,a=r.string,u=0;u<t.length;++u){var v,d=t[u];if((v=i(a,d.open,r.pos))==r.pos){d.parseDelimiters||r.match(d.open),s.startingInner=!!d.parseDelimiters,s.innerActive=d;var p=0;if(n.indent){var m=n.indent(s.outer,"","");m!==e.Pass&&(p=m)}return s.inner=e.startState(d.mode,p),d.delimStyle&&d.delimStyle+" "+d.delimStyle+"-open"}-1!=v&&v<c&&(c=v)}c!=1/0&&(r.string=a.slice(0,c));var A=n.token(r,s.outer);return c!=1/0&&(r.string=a),A},indent:function(t,i,r){var s=t.innerActive?t.innerActive.mode:n;return s.indent?s.indent(t.innerActive?t.inner:t.outer,i,r):e.Pass},blankLine:function(i){var r=i.innerActive?i.innerActive.mode:n;if(r.blankLine&&r.blankLine(i.innerActive?i.inner:i.outer),i.innerActive)"\n"===i.innerActive.close&&(i.innerActive=i.inner=null);else for(var s=0;s<t.length;++s){var l=t[s];"\n"===l.open&&(i.innerActive=l,i.inner=e.startState(l.mode,r.indent?r.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}}}}}(t(36484))}}]);