Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: chrome_linux/resources/inspector/ScriptFormatterWorker.js

Issue 42163002: Roll Linux reference build to official build 31.0.1650.34 (trunk r224845, branch r230433) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/reference_builds/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 onmessage=function(event){if(!event.data.method) 1 Object.isEmpty=function(obj)
2 {for(var i in obj)
3 return false;return true;}
4 Object.values=function(obj)
5 {var result=Object.keys(obj);var length=result.length;for(var i=0;i<length;++i)
6 result[i]=obj[result[i]];return result;}
7 String.prototype.findAll=function(string)
8 {var matches=[];var i=this.indexOf(string);while(i!==-1){matches.push(i);i=this. indexOf(string,i+string.length);}
9 return matches;}
10 String.prototype.lineEndings=function()
11 {if(!this._lineEndings){this._lineEndings=this.findAll("\n");this._lineEndings.p ush(this.length);}
12 return this._lineEndings;}
13 String.prototype.escapeCharacters=function(chars)
14 {var foundChar=false;for(var i=0;i<chars.length;++i){if(this.indexOf(chars.charA t(i))!==-1){foundChar=true;break;}}
15 if(!foundChar)
16 return String(this);var result="";for(var i=0;i<this.length;++i){if(chars.indexO f(this.charAt(i))!==-1)
17 result+="\\";result+=this.charAt(i);}
18 return result;}
19 String.regexSpecialCharacters=function()
20 {return"^[]{}()\\.$*+?|-,";}
21 String.prototype.escapeForRegExp=function()
22 {return this.escapeCharacters(String.regexSpecialCharacters());}
23 String.prototype.escapeHTML=function()
24 {return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").rep lace(/"/g,"&quot;");}
25 String.prototype.collapseWhitespace=function()
26 {return this.replace(/[\s\xA0]+/g," ");}
27 String.prototype.trimMiddle=function(maxLength)
28 {if(this.length<=maxLength)
29 return String(this);var leftHalf=maxLength>>1;var rightHalf=maxLength-leftHalf-1 ;return this.substr(0,leftHalf)+"\u2026"+this.substr(this.length-rightHalf,right Half);}
30 String.prototype.trimEnd=function(maxLength)
31 {if(this.length<=maxLength)
32 return String(this);return this.substr(0,maxLength-1)+"\u2026";}
33 String.prototype.trimURL=function(baseURLDomain)
34 {var result=this.replace(/^(https|http|file):\/\//i,"");if(baseURLDomain)
35 result=result.replace(new RegExp("^"+baseURLDomain.escapeForRegExp(),"i"),"");re turn result;}
36 String.prototype.toTitleCase=function()
37 {return this.substring(0,1).toUpperCase()+this.substring(1);}
38 String.prototype.compareTo=function(other)
39 {if(this>other)
40 return 1;if(this<other)
41 return-1;return 0;}
42 function sanitizeHref(href)
43 {return href&&href.trim().toLowerCase().startsWith("javascript:")?null:href;}
44 String.prototype.removeURLFragment=function()
45 {var fragmentIndex=this.indexOf("#");if(fragmentIndex==-1)
46 fragmentIndex=this.length;return this.substring(0,fragmentIndex);}
47 String.prototype.startsWith=function(substring)
48 {return!this.lastIndexOf(substring,0);}
49 String.prototype.endsWith=function(substring)
50 {return this.indexOf(substring,this.length-substring.length)!==-1;}
51 String.naturalOrderComparator=function(a,b)
52 {var chunk=/^\d+|^\D+/;var chunka,chunkb,anum,bnum;while(1){if(a){if(!b)
53 return 1;}else{if(b)
54 return-1;else
55 return 0;}
56 chunka=a.match(chunk)[0];chunkb=b.match(chunk)[0];anum=!isNaN(chunka);bnum=!isNa N(chunkb);if(anum&&!bnum)
57 return-1;if(bnum&&!anum)
58 return 1;if(anum&&bnum){var diff=chunka-chunkb;if(diff)
59 return diff;if(chunka.length!==chunkb.length){if(!+chunka&&!+chunkb)
60 return chunka.length-chunkb.length;else
61 return chunkb.length-chunka.length;}}else if(chunka!==chunkb)
62 return(chunka<chunkb)?-1:1;a=a.substring(chunka.length);b=b.substring(chunkb.len gth);}}
63 Number.constrain=function(num,min,max)
64 {if(num<min)
65 num=min;else if(num>max)
66 num=max;return num;}
67 Number.gcd=function(a,b)
68 {if(b===0)
69 return a;else
70 return Number.gcd(b,a%b);}
71 Number.toFixedIfFloating=function(value)
72 {if(!value||isNaN(value))
73 return value;var number=Number(value);return number%1?number.toFixed(3):String(n umber);}
74 Date.prototype.toISO8601Compact=function()
75 {function leadZero(x)
76 {return(x>9?"":"0")+x;}
77 return this.getFullYear()+
78 leadZero(this.getMonth()+1)+
79 leadZero(this.getDate())+"T"+
80 leadZero(this.getHours())+
81 leadZero(this.getMinutes())+
82 leadZero(this.getSeconds());}
83 Object.defineProperty(Array.prototype,"remove",{value:function(value,onlyFirst)
84 {if(onlyFirst){var index=this.indexOf(value);if(index!==-1)
85 this.splice(index,1);return;}
86 var length=this.length;for(var i=0;i<length;++i){if(this[i]===value)
87 this.splice(i,1);}}});Object.defineProperty(Array.prototype,"keySet",{value:func tion()
88 {var keys={};for(var i=0;i<this.length;++i)
89 keys[this[i]]=true;return keys;}});Object.defineProperty(Array.prototype,"rotate ",{value:function(index)
90 {var result=[];for(var i=index;i<index+this.length;++i)
91 result.push(this[i%this.length]);return result;}});Object.defineProperty(Uint32A rray.prototype,"sort",{value:Array.prototype.sort});(function(){var partition={v alue:function(comparator,left,right,pivotIndex)
92 {function swap(array,i1,i2)
93 {var temp=array[i1];array[i1]=array[i2];array[i2]=temp;}
94 var pivotValue=this[pivotIndex];swap(this,right,pivotIndex);var storeIndex=left; for(var i=left;i<right;++i){if(comparator(this[i],pivotValue)<0){swap(this,store Index,i);++storeIndex;}}
95 swap(this,right,storeIndex);return storeIndex;}};Object.defineProperty(Array.pro totype,"partition",partition);Object.defineProperty(Uint32Array.prototype,"parti tion",partition);var sortRange={value:function(comparator,leftBound,rightBound,s ortWindowLeft,sortWindowRight)
96 {function quickSortRange(array,comparator,left,right,sortWindowLeft,sortWindowRi ght)
97 {if(right<=left)
98 return;var pivotIndex=Math.floor(Math.random()*(right-left))+left;var pivotNewIn dex=array.partition(comparator,left,right,pivotIndex);if(sortWindowLeft<pivotNew Index)
99 quickSortRange(array,comparator,left,pivotNewIndex-1,sortWindowLeft,sortWindowRi ght);if(pivotNewIndex<sortWindowRight)
100 quickSortRange(array,comparator,pivotNewIndex+1,right,sortWindowLeft,sortWindowR ight);}
101 if(leftBound===0&&rightBound===(this.length-1)&&sortWindowLeft===0&&sortWindowRi ght>=rightBound)
102 this.sort(comparator);else
103 quickSortRange(this,comparator,leftBound,rightBound,sortWindowLeft,sortWindowRig ht);return this;}}
104 Object.defineProperty(Array.prototype,"sortRange",sortRange);Object.defineProper ty(Uint32Array.prototype,"sortRange",sortRange);})();Object.defineProperty(Array .prototype,"qselect",{value:function(k,comparator)
105 {if(k<0||k>=this.length)
106 return;if(!comparator)
107 comparator=function(a,b){return a-b;}
108 var low=0;var high=this.length-1;for(;;){var pivotPosition=this.partition(compar ator,low,high,Math.floor((high+low)/2));if(pivotPosition===k)
109 return this[k];else if(pivotPosition>k)
110 high=pivotPosition-1;else
111 low=pivotPosition+1;}}});Object.defineProperty(Array.prototype,"lowerBound",{val ue:function(object,comparator)
112 {function defaultComparator(a,b)
113 {return a<b?-1:(a>b?1:0);}
114 comparator=comparator||defaultComparator;var l=0;var r=this.length;while(l<r){va r m=(l+r)>>1;if(comparator(object,this[m])>0)
115 l=m+1;else
116 r=m;}
117 return r;}});Object.defineProperty(Array.prototype,"upperBound",{value:function( object,comparator)
118 {function defaultComparator(a,b)
119 {return a<b?-1:(a>b?1:0);}
120 comparator=comparator||defaultComparator;var l=0;var r=this.length;while(l<r){va r m=(l+r)>>1;if(comparator(object,this[m])>=0)
121 l=m+1;else
122 r=m;}
123 return r;}});Object.defineProperty(Array.prototype,"binaryIndexOf",{value:functi on(value,comparator)
124 {var index=this.lowerBound(value,comparator);return index<this.length&&comparato r(value,this[index])===0?index:-1;}});Object.defineProperty(Array.prototype,"sel ect",{value:function(field)
125 {var result=new Array(this.length);for(var i=0;i<this.length;++i)
126 result[i]=this[i][field];return result;}});Object.defineProperty(Array.prototype ,"peekLast",{value:function()
127 {return this[this.length-1];}});function insertionIndexForObjectInListSortedByFu nction(object,list,comparator,insertionIndexAfter)
128 {if(insertionIndexAfter)
129 return list.upperBound(object,comparator);else
130 return list.lowerBound(object,comparator);}
131 String.sprintf=function(format,var_arg)
132 {return String.vsprintf(format,Array.prototype.slice.call(arguments,1));}
133 String.tokenizeFormatString=function(format,formatters)
134 {var tokens=[];var substitutionIndex=0;function addStringToken(str)
135 {tokens.push({type:"string",value:str});}
136 function addSpecifierToken(specifier,precision,substitutionIndex)
137 {tokens.push({type:"specifier",specifier:specifier,precision:precision,substitut ionIndex:substitutionIndex});}
138 function isDigit(c)
139 {return!!/[0-9]/.exec(c);}
140 var index=0;for(var precentIndex=format.indexOf("%",index);precentIndex!==-1;pre centIndex=format.indexOf("%",index)){addStringToken(format.substring(index,prece ntIndex));index=precentIndex+1;if(isDigit(format[index])){var number=parseInt(fo rmat.substring(index),10);while(isDigit(format[index]))
141 ++index;if(number>0&&format[index]==="$"){substitutionIndex=(number-1);++index;} }
142 var precision=-1;if(format[index]==="."){++index;precision=parseInt(format.subst ring(index),10);if(isNaN(precision))
143 precision=0;while(isDigit(format[index]))
144 ++index;}
145 if(!(format[index]in formatters)){addStringToken(format.substring(precentIndex,i ndex+1));++index;continue;}
146 addSpecifierToken(format[index],precision,substitutionIndex);++substitutionIndex ;++index;}
147 addStringToken(format.substring(index));return tokens;}
148 String.standardFormatters={d:function(substitution)
149 {return!isNaN(substitution)?substitution:0;},f:function(substitution,token)
150 {if(substitution&&token.precision>-1)
151 substitution=substitution.toFixed(token.precision);return!isNaN(substitution)?su bstitution:(token.precision>-1?Number(0).toFixed(token.precision):0);},s:functio n(substitution)
152 {return substitution;}}
153 String.vsprintf=function(format,substitutions)
154 {return String.format(format,substitutions,String.standardFormatters,"",function (a,b){return a+b;}).formattedResult;}
155 String.format=function(format,substitutions,formatters,initialValue,append)
156 {if(!format||!substitutions||!substitutions.length)
157 return{formattedResult:append(initialValue,format),unusedSubstitutions:substitut ions};function prettyFunctionName()
158 {return"String.format(\""+format+"\", \""+substitutions.join("\", \"")+"\")";}
159 function warn(msg)
160 {console.warn(prettyFunctionName()+": "+msg);}
161 function error(msg)
162 {console.error(prettyFunctionName()+": "+msg);}
163 var result=initialValue;var tokens=String.tokenizeFormatString(format,formatters );var usedSubstitutionIndexes={};for(var i=0;i<tokens.length;++i){var token=toke ns[i];if(token.type==="string"){result=append(result,token.value);continue;}
164 if(token.type!=="specifier"){error("Unknown token type \""+token.type+"\" found. ");continue;}
165 if(token.substitutionIndex>=substitutions.length){error("not enough substitution arguments. Had "+substitutions.length+" but needed "+(token.substitutionIndex+1 )+", so substitution was skipped.");result=append(result,"%"+(token.precision>-1 ?token.precision:"")+token.specifier);continue;}
166 usedSubstitutionIndexes[token.substitutionIndex]=true;if(!(token.specifier in fo rmatters)){warn("unsupported format character \u201C"+token.specifier+"\u201D. T reating as a string.");result=append(result,substitutions[token.substitutionInde x]);continue;}
167 result=append(result,formatters[token.specifier](substitutions[token.substitutio nIndex],token));}
168 var unusedSubstitutions=[];for(var i=0;i<substitutions.length;++i){if(i in usedS ubstitutionIndexes)
169 continue;unusedSubstitutions.push(substitutions[i]);}
170 return{formattedResult:result,unusedSubstitutions:unusedSubstitutions};}
171 function createSearchRegex(query,caseSensitive,isRegex)
172 {var regexFlags=caseSensitive?"g":"gi";var regexObject;if(isRegex){try{regexObje ct=new RegExp(query,regexFlags);}catch(e){}}
173 if(!regexObject)
174 regexObject=createPlainTextSearchRegex(query,regexFlags);return regexObject;}
175 function createPlainTextSearchRegex(query,flags)
176 {var regexSpecialCharacters=String.regexSpecialCharacters();var regex="";for(var i=0;i<query.length;++i){var c=query.charAt(i);if(regexSpecialCharacters.indexOf (c)!=-1)
177 regex+="\\";regex+=c;}
178 return new RegExp(regex,flags||"");}
179 function countRegexMatches(regex,content)
180 {var text=content;var result=0;var match;while(text&&(match=regex.exec(text))){i f(match[0].length>0)
181 ++result;text=text.substring(match.index+1);}
182 return result;}
183 function numberToStringWithSpacesPadding(value,symbolsCount)
184 {var numberString=value.toString();var paddingLength=Math.max(0,symbolsCount-num berString.length);var paddingString=Array(paddingLength+1).join("\u00a0");return paddingString+numberString;}
185 var createObjectIdentifier=function()
186 {return"_"+ ++createObjectIdentifier._last;}
187 createObjectIdentifier._last=0;var Set=function()
188 {this._set={};this._size=0;}
189 Set.prototype={add:function(item)
190 {var objectIdentifier=item.__identifier;if(!objectIdentifier){objectIdentifier=c reateObjectIdentifier();item.__identifier=objectIdentifier;}
191 if(!this._set[objectIdentifier])
192 ++this._size;this._set[objectIdentifier]=item;},remove:function(item)
193 {if(this._set[item.__identifier]){--this._size;delete this._set[item.__identifie r];return true;}
194 return false;},items:function()
195 {var result=new Array(this._size);var i=0;for(var objectIdentifier in this._set)
196 result[i++]=this._set[objectIdentifier];return result;},hasItem:function(item)
197 {return!!this._set[item.__identifier];},size:function()
198 {return this._size;},clear:function()
199 {this._set={};this._size=0;}}
200 var Map=function()
201 {this._map={};this._size=0;}
202 Map.prototype={put:function(key,value)
203 {var objectIdentifier=key.__identifier;if(!objectIdentifier){objectIdentifier=cr eateObjectIdentifier();key.__identifier=objectIdentifier;}
204 if(!this._map[objectIdentifier])
205 ++this._size;this._map[objectIdentifier]=[key,value];},remove:function(key)
206 {var result=this._map[key.__identifier];if(!result)
207 return undefined;--this._size;delete this._map[key.__identifier];return result[1 ];},keys:function()
208 {return this._list(0);},values:function()
209 {return this._list(1);},_list:function(index)
210 {var result=new Array(this._size);var i=0;for(var objectIdentifier in this._map)
211 result[i++]=this._map[objectIdentifier][index];return result;},get:function(key)
212 {var entry=this._map[key.__identifier];return entry?entry[1]:undefined;},contain s:function(key)
213 {var entry=this._map[key.__identifier];return!!entry;},size:function()
214 {return this._size;},clear:function()
215 {this._map={};this._size=0;}}
216 var StringMap=function()
217 {this._map={};this._size=0;}
218 StringMap.prototype={put:function(key,value)
219 {if(key==="__proto__"){if(!this._hasProtoKey){++this._size;this._hasProtoKey=tru e;}
220 this._protoValue=value;return;}
221 if(!Object.prototype.hasOwnProperty.call(this._map,key))
222 ++this._size;this._map[key]=value;},remove:function(key)
223 {var result;if(key==="__proto__"){if(!this._hasProtoKey)
224 return undefined;--this._size;delete this._hasProtoKey;result=this._protoValue;d elete this._protoValue;return result;}
225 if(!Object.prototype.hasOwnProperty.call(this._map,key))
226 return undefined;--this._size;result=this._map[key];delete this._map[key];return result;},keys:function()
227 {var result=Object.keys(this._map)||[];if(this._hasProtoKey)
228 result.push("__proto__");return result;},values:function()
229 {var result=Object.values(this._map);if(this._hasProtoKey)
230 result.push(this._protoValue);return result;},get:function(key)
231 {if(key==="__proto__")
232 return this._protoValue;if(!Object.prototype.hasOwnProperty.call(this._map,key))
233 return undefined;return this._map[key];},contains:function(key)
234 {var result;if(key==="__proto__")
235 return this._hasProtoKey;return Object.prototype.hasOwnProperty.call(this._map,k ey);},size:function()
236 {return this._size;},clear:function()
237 {this._map={};this._size=0;delete this._hasProtoKey;delete this._protoValue;}}
238 function loadXHR(url,async,callback)
239 {function onReadyStateChanged()
240 {if(xhr.readyState!==XMLHttpRequest.DONE)
241 return;if(xhr.status===200){callback(xhr.responseText);return;}
242 callback(null);}
243 var xhr=new XMLHttpRequest();xhr.open("GET",url,async);if(async)
244 xhr.onreadystatechange=onReadyStateChanged;xhr.send(null);if(!async){if(xhr.stat us===200)
245 return xhr.responseText;return null;}
246 return null;}
247 function StringPool()
248 {this.reset();}
249 StringPool.prototype={intern:function(string)
250 {if(string==="__proto__")
251 return"__proto__";var result=this._strings[string];if(result===undefined){this._ strings[string]=string;result=string;}
252 return result;},reset:function()
253 {this._strings=Object.create(null);},internObjectStrings:function(obj,depthLimit )
254 {if(typeof depthLimit!=="number")
255 depthLimit=100;else if(--depthLimit<0)
256 throw"recursion depth limit reached in StringPool.deepIntern(), perhaps attempti ng to traverse cyclical references?";for(var field in obj){switch(typeof obj[fie ld]){case"string":obj[field]=this.intern(obj[field]);break;case"object":this.int ernObjectStrings(obj[field],depthLimit);break;}}}}
257 var _importedScripts={};function importScript(scriptName)
258 {if(_importedScripts[scriptName])
259 return;var xhr=new XMLHttpRequest();_importedScripts[scriptName]=true;xhr.open(" GET",scriptName,false);xhr.send(null);if(!xhr.responseText)
260 throw"empty response arrived for script '"+scriptName+"'";var sourceURL=WebInspe ctor.ParsedURL.completeURL(window.location.href,scriptName);window.eval(xhr.resp onseText+"\n//# sourceURL="+sourceURL);}
261 var loadScript=importScript;function CallbackBarrier()
262 {this._pendingIncomingCallbacksCount=0;}
263 CallbackBarrier.prototype={createCallback:function(userCallback)
264 {console.assert(!this._outgoingCallback,"CallbackBarrier.createCallback() is cal led after CallbackBarrier.callWhenDone()");++this._pendingIncomingCallbacksCount ;return this._incomingCallback.bind(this,userCallback);},callWhenDone:function(c allback)
265 {console.assert(!this._outgoingCallback,"CallbackBarrier.callWhenDone() is calle d multiple times");this._outgoingCallback=callback;if(!this._pendingIncomingCall backsCount)
266 this._outgoingCallback();},_incomingCallback:function(userCallback)
267 {console.assert(this._pendingIncomingCallbacksCount>0);if(userCallback){var args =Array.prototype.slice.call(arguments,1);userCallback.apply(null,args);}
268 if(!--this._pendingIncomingCallbacksCount&&this._outgoingCallback)
269 this._outgoingCallback();}};(function(window){window.CodeMirror={};function spli tLines(string){return string.split(/\r?\n|\r/);};function StringStream(string){t his.pos=this.start=0;this.string=string;}
270 StringStream.prototype={eol:function(){return this.pos>=this.string.length;},sol :function(){return this.pos==0;},peek:function(){return this.string.charAt(this. pos)||null;},next:function(){if(this.pos<this.string.length)
271 return this.string.charAt(this.pos++);},eat:function(match){var ch=this.string.c harAt(this.pos);if(typeof match=="string")var ok=ch==match;else var ok=ch&&(matc h.test?match.test(ch):match(ch));if(ok){++this.pos;return ch;}},eatWhile:functio n(match){var start=this.pos;while(this.eat(match)){}
272 return this.pos>start;},eatSpace:function(){var start=this.pos;while(/[\s\u00a0] /.test(this.string.charAt(this.pos)))++this.pos;return this.pos>start;},skipToEn d:function(){this.pos=this.string.length;},skipTo:function(ch){var found=this.st ring.indexOf(ch,this.pos);if(found>-1){this.pos=found;return true;}},backUp:func tion(n){this.pos-=n;},column:function(){return this.start;},indentation:function (){return 0;},match:function(pattern,consume,caseInsensitive){if(typeof pattern= ="string"){var cased=function(str){return caseInsensitive?str.toLowerCase():str; };var substr=this.string.substr(this.pos,pattern.length);if(cased(substr)==cased (pattern)){if(consume!==false)this.pos+=pattern.length;return true;}}else{var ma tch=this.string.slice(this.pos).match(pattern);if(match&&match.index>0)return nu ll;if(match&&consume!==false)this.pos+=match[0].length;return match;}},current:f unction(){return this.string.slice(this.start,this.pos);}};CodeMirror.StringStre am=StringStream;CodeMirror.startState=function(mode,a1,a2){return mode.startStat e?mode.startState(a1,a2):true;};var modes=CodeMirror.modes={},mimeModes=CodeMirr or.mimeModes={};CodeMirror.defineMode=function(name,mode){modes[name]=mode;};Cod eMirror.defineMIME=function(mime,spec){mimeModes[mime]=spec;};CodeMirror.defineM ode("null",function(){return{token:function(stream){stream.skipToEnd();}};});Cod eMirror.defineMIME("text/plain","null");CodeMirror.getMode=function(options,spec ){if(typeof spec=="string"&&mimeModes.hasOwnProperty(spec))
273 spec=mimeModes[spec];if(typeof spec=="string")
274 var mname=spec,config={};else if(spec!=null)
275 var mname=spec.name,config=spec;var mfactory=modes[mname];if(!mfactory)throw new Error("Unknown mode: "+spec);return mfactory(options,config||{});};}(this));;Co deMirror.defineMode("css",function(config){return CodeMirror.getMode(config,"tex t/css");});CodeMirror.defineMode("css-base",function(config,parserConfig){"use s trict";var indentUnit=config.indentUnit,hooks=parserConfig.hooks||{},atMediaType s=parserConfig.atMediaTypes||{},atMediaFeatures=parserConfig.atMediaFeatures||{} ,propertyKeywords=parserConfig.propertyKeywords||{},colorKeywords=parserConfig.c olorKeywords||{},valueKeywords=parserConfig.valueKeywords||{},allowNested=!!pars erConfig.allowNested,type=null;function ret(style,tp){type=tp;return style;}
276 function tokenBase(stream,state){var ch=stream.next();if(hooks[ch]){var result=h ooks[ch](stream,state);if(result!==false)return result;}
277 if(ch=="@"){stream.eatWhile(/[\w\\\-]/);return ret("def",stream.current());}
278 else if(ch=="=")ret(null,"compare");else if((ch=="~"||ch=="|")&&stream.eat("=")) return ret(null,"compare");else if(ch=="\""||ch=="'"){state.tokenize=tokenString (ch);return state.tokenize(stream,state);}
279 else if(ch=="#"){stream.eatWhile(/[\w\\\-]/);return ret("atom","hash");}
280 else if(ch=="!"){stream.match(/^\s*\w*/);return ret("keyword","important");}
281 else if(/\d/.test(ch)){stream.eatWhile(/[\w.%]/);return ret("number","unit");}
282 else if(ch==="-"){if(/\d/.test(stream.peek())){stream.eatWhile(/[\w.%]/);return ret("number","unit");}else if(stream.match(/^[^-]+-/)){return ret("meta","meta") ;}}
283 else if(/[,+>*\/]/.test(ch)){return ret(null,"select-op");}
284 else if(ch=="."&&stream.match(/^-?[_a-z][_a-z0-9-]*/i)){return ret("qualifier"," qualifier");}
285 else if(ch==":"){return ret("operator",ch);}
286 else if(/[;{}\[\]\(\)]/.test(ch)){return ret(null,ch);}
287 else if(ch=="u"&&stream.match("rl(")){stream.backUp(1);state.tokenize=tokenParen thesized;return ret("property","variable");}
288 else{stream.eatWhile(/[\w\\\-]/);return ret("property","variable");}}
289 function tokenString(quote,nonInclusive){return function(stream,state){var escap ed=false,ch;while((ch=stream.next())!=null){if(ch==quote&&!escaped)
290 break;escaped=!escaped&&ch=="\\";}
291 if(!escaped){if(nonInclusive)stream.backUp(1);state.tokenize=tokenBase;}
292 return ret("string","string");};}
293 function tokenParenthesized(stream,state){stream.next();if(!stream.match(/\s*[\" \']/,false))
294 state.tokenize=tokenString(")",true);else
295 state.tokenize=tokenBase;return ret(null,"(");}
296 return{startState:function(base){return{tokenize:tokenBase,baseIndent:base||0,st ack:[],lastToken:null};},token:function(stream,state){state.tokenize=state.token ize||tokenBase;if(state.tokenize==tokenBase&&stream.eatSpace())return null;var s tyle=state.tokenize(stream,state);if(style&&typeof style!="string")style=ret(sty le[0],style[1]);var context=state.stack[state.stack.length-1];if(style=="variabl e"){if(type=="variable-definition")state.stack.push("propertyValue");return stat e.lastToken="variable-2";}else if(style=="property"){var word=stream.current().t oLowerCase();if(context=="propertyValue"){if(valueKeywords.hasOwnProperty(word)) {style="string-2";}else if(colorKeywords.hasOwnProperty(word)){style="keyword";} else{style="variable-2";}}else if(context=="rule"){if(!propertyKeywords.hasOwnPr operty(word)){style+=" error";}}else if(context=="block"){if(propertyKeywords.ha sOwnProperty(word)){style="property";}else if(colorKeywords.hasOwnProperty(word) ){style="keyword";}else if(valueKeywords.hasOwnProperty(word)){style="string-2"; }else{style="tag";}}else if(!context||context=="@media{"){style="tag";}else if(c ontext=="@media"){if(atMediaTypes[stream.current()]){style="attribute";}else if( /^(only|not)$/.test(word)){style="keyword";}else if(word=="and"){style="error";} else if(atMediaFeatures.hasOwnProperty(word)){style="error";}else{style="attribu te error";}}else if(context=="@mediaType"){if(atMediaTypes.hasOwnProperty(word)) {style="attribute";}else if(word=="and"){style="operator";}else if(/^(only|not)$ /.test(word)){style="error";}else{style="error";}}else if(context=="@mediaType(" ){if(propertyKeywords.hasOwnProperty(word)){}else if(atMediaTypes.hasOwnProperty (word)){style="error";}else if(word=="and"){style="operator";}else if(/^(only|no t)$/.test(word)){style="error";}else{style+=" error";}}else if(context=="@import "){style="tag";}else{style="error";}}else if(style=="atom"){if(!context||context =="@media{"||context=="block"){style="builtin";}else if(context=="propertyValue" ){if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())){style+=" erro r";}}else{style="error";}}else if(context=="@media"&&type=="{"){style="error";}
297 if(type=="{"){if(context=="@media"||context=="@mediaType"){state.stack.pop();sta te.stack[state.stack.length-1]="@media{";}
298 else{var newContext=allowNested?"block":"rule";state.stack.push(newContext);}}
299 else if(type=="}"){var lastState=state.stack[state.stack.length-1];if(lastState= ="interpolation")style="operator";state.stack.pop();if(context=="propertyValue") state.stack.pop();}
300 else if(type=="interpolation")state.stack.push("interpolation");else if(type=="@ media")state.stack.push("@media");else if(type=="@import")state.stack.push("@imp ort");else if(context=="@media"&&/\b(keyword|attribute)\b/.test(style))
301 state.stack.push("@mediaType");else if(context=="@mediaType"&&stream.current()== ",")state.stack.pop();else if(context=="@mediaType"&&type=="(")state.stack.push( "@mediaType(");else if(context=="@mediaType("&&type==")")state.stack.pop();else if(type==":"&&state.lastToken=="property")state.stack.push("propertyValue");else if(context=="propertyValue"&&type==";")state.stack.pop();else if(context=="@imp ort"&&type==";")state.stack.pop();return state.lastToken=style;},indent:function (state,textAfter){var n=state.stack.length;if(/^\}/.test(textAfter))
302 n-=state.stack[state.stack.length-1]=="propertyValue"?2:1;return state.baseInden t+n*indentUnit;},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/"}; });(function(){function keySet(array){var keys={};for(var i=0;i<array.length;++i ){keys[array[i]]=true;}
303 return keys;}
304 var atMediaTypes=keySet(["all","aural","braille","handheld","print","projection" ,"screen","tty","tv","embossed"]);var atMediaFeatures=keySet(["width","min-width ","max-width","height","min-height","max-height","device-width","min-device-widt h","max-device-width","device-height","min-device-height","max-device-height","a spect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-de vice-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","co lor-index","min-color-index","max-color-index","monochrome","min-monochrome","ma x-monochrome","resolution","min-resolution","max-resolution","scan","grid"]);var propertyKeywords=keySet(["align-content","align-items","align-self","alignment- adjust","alignment-baseline","anchor-point","animation","animation-delay","anima tion-direction","animation-duration","animation-iteration-count","animation-name ","animation-play-state","animation-timing-function","appearance","azimuth","bac kface-visibility","background","background-attachment","background-clip","backgr ound-color","background-image","background-origin","background-position","backgr ound-repeat","background-size","baseline-shift","binding","bleed","bookmark-labe l","bookmark-level","bookmark-state","bookmark-target","border","border-bottom", "border-bottom-color","border-bottom-left-radius","border-bottom-right-radius"," border-bottom-style","border-bottom-width","border-collapse","border-color","bor der-image","border-image-outset","border-image-repeat","border-image-slice","bor der-image-source","border-image-width","border-left","border-left-color","border -left-style","border-left-width","border-radius","border-right","border-right-co lor","border-right-style","border-right-width","border-spacing","border-style"," border-top","border-top-color","border-top-left-radius","border-top-right-radius ","border-top-style","border-top-width","border-width","bottom","box-decoration- break","box-shadow","box-sizing","break-after","break-before","break-inside","ca ption-side","clear","clip","color","color-profile","column-count","column-fill", "column-gap","column-rule","column-rule-color","column-rule-style","column-rule- width","column-span","column-width","columns","content","counter-increment","cou nter-reset","crop","cue","cue-after","cue-before","cursor","direction","display" ,"dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","dro p-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-i nitial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis" ,"flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flo at-offset","font","font-feature-settings","font-family","font-kerning","font-lan guage-override","font-size","font-size-adjust","font-stretch","font-style","font -synthesis","font-variant","font-variant-alternates","font-variant-caps","font-v ariant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant -position","font-weight","grid-cell","grid-column","grid-column-align","grid-col umn-sizing","grid-column-span","grid-columns","grid-flow","grid-row","grid-row-a lign","grid-row-sizing","grid-row-span","grid-rows","grid-template","hanging-pun ctuation","height","hyphens","icon","image-orientation","image-rendering","image -resolution","inline-box-align","justify-content","left","letter-spacing","line- break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift", "line-stacking-strategy","list-style","list-style-image","list-style-position"," list-style-type","margin","margin-bottom","margin-left","margin-right","margin-t op","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-cou nt","marquee-speed","marquee-style","max-height","max-width","min-height","min-w idth","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","opacity" ,"order","orphans","outline","outline-color","outline-offset","outline-style","o utline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow -y","padding","padding-bottom","padding-left","padding-right","padding-top","pag e","page-break-after","page-break-before","page-break-inside","page-policy","pau se","pause-after","pause-before","perspective","perspective-origin","pitch","pit ch-range","play-during","position","presentation-level","punctuation-trim","quot es","rendering-intent","resize","rest","rest-after","rest-before","richness","ri ght","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","r uby-span","size","speak","speak-as","speak-header","speak-numeral","speak-punctu ation","speech-rate","stress","string-set","tab-size","table-layout","target","t arget-name","target-new","target-position","text-align","text-align-last","text- decoration","text-decoration-color","text-decoration-line","text-decoration-skip ","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-p osition","text-emphasis-style","text-height","text-indent","text-justify","text- outline","text-shadow","text-space-collapse","text-transform","text-underline-po sition","text-wrap","top","transform","transform-origin","transform-style","tran sition","transition-delay","transition-duration","transition-property","transiti on-timing-function","unicode-bidi","vertical-align","visibility","voice-balance" ,"voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice -stress","voice-volume","volume","white-space","widows","width","word-break","wo rd-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-backgro und","filter","flood-color","flood-opacity","lighting-color","stop-color","stop- opacity","pointer-events","color-interpolation","color-interpolation-filters","c olor-profile","color-rendering","fill","fill-opacity","fill-rule","image-renderi ng","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke" ,"stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stro ke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift" ,"dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical" ,"kerning","text-anchor","writing-mode"]);var colorKeywords=keySet(["aliceblue", "antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalm ond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate ","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","da rkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen"," darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue"," darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray"," dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghost white","gold","goldenrod","gray","green","greenyellow","honeydew","hotpink","ind ianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonch iffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray"," lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslate gray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroo n","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen ","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","mid nightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","ol ive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","pale turquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powder blue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown" ,"seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow ","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet" ,"wheat","white","whitesmoke","yellow","yellowgreen"]);var valueKeywords=keySet( ["above","absolute","activeborder","activecaption","afar","after-white-space","a head","alias","all","all-scroll","alternate","always","amharic","amharic-abegede ","antialiased","appworkspace","arabic-indic","armenian","asterisks","auto","avo id","background","backwards","baseline","below","bidi-override","binary","bengal i","blink","block","block-axis","bold","bolder","border","border-box","both","bo ttom","break-all","break-word","button","button-bevel","buttonface","buttonhighl ight","buttonshadow","buttontext","cambodian","capitalize","caps-lock-indicator" ,"caption","captiontext","caret","cell","center","checkbox","circle","cjk-earthl y-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","co l-resize","collapse","compact","condensed","contain","content","content-box","co ntext-menu","continuous","copy","cover","crop","cross","crosshair","currentcolor ","cursive","dashed","decimal","decimal-leading-zero","default","default-button" ,"destination-atop","destination-in","destination-out","destination-over","devan agari","disc","discard","document","dot-dash","dot-dot-dash","dotted","double"," down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipsis", "embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-a begede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame -aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-g ez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-e t","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig"," ew-resize","expanded","extra-condensed","extra-expanded","fantasy","fast","fill" ,"fixed","flat","footnotes","forwards","from","geometricPrecision","georgian","g raytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebr ew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hira gana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactive caption","inactivecaptiontext","infinite","infobackground","infotext","inherit", "initial","inline","inline-axis","inline-block","inline-table","inset","inside", "intrinsic","invert","italic","justify","kannada","katakana","katakana-iroha","k hmer","landscape","lao","large","larger","left","level","lighter","line-through" ,"linear","lines","list-item","listbox","listitem","local","logical","loud","low er","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-lati n","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","media- controls-background","media-current-time-display","media-fullscreen-button","med ia-mute-button","media-play-button","media-return-to-realtime-button","media-rew ind-button","media-seek-back-button","media-seek-forward-button","media-slider", "media-sliderthumb","media-time-remaining-display","media-volume-slider","media- volume-slider-container","media-volume-sliderthumb","medium","menu","menulist"," menulist-button","menulist-text","menulist-textfield","menutext","message-box"," middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar ","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no -open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","nw- resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optim izeSpeed","oriya","oromo","outset","outside","overlay","overline","padding","pad ding-box","painted","paused","persian","plus-darker","plus-lighter","pointer","p ortrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","rad io","read-only","read-write","read-write-plaintext-only","relative","repeat","re peat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","round","row-r esize","rtl","run-in","running","s-resize","sans-serif","scroll","scrollbar","se -resize","searchfield","searchfield-cancel-button","searchfield-decoration","sea rchfield-results-button","searchfield-results-decoration","semi-condensed","semi -expanded","separate","serif","show","sidama","single","skip-white-space","slide ","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-ve rtical","slow","small","small-caps","small-caption","smaller","solid","somali"," source-atop","source-in","source-out","source-over","space","square","square-but ton","start","static","status-bar","stretch","stroke","sub","subpixel-antialiase d","super","sw-resize","table","table-caption","table-cell","table-column","tabl e-column-group","table-footer-group","table-header-group","table-row","table-row -group","telugu","text","text-bottom","text-top","textarea","textfield","thai"," thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshad ow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrin ya-et","tigrinya-et-abegede","to","top","transparent","ultra-condensed","ultra-e xpanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-he xadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url ","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleSt roke","visual","w-resize","wait","wave","wider","window","windowframe","windowte xt","x-large","x-small","xor","xx-large","xx-small"]);function tokenCComment(str eam,state){var maybeEnd=false,ch;while((ch=stream.next())!=null){if(maybeEnd&&ch =="/"){state.tokenize=null;break;}
305 maybeEnd=(ch=="*");}
306 return["comment","comment"];}
307 CodeMirror.defineMIME("text/css",{atMediaTypes:atMediaTypes,atMediaFeatures:atMe diaFeatures,propertyKeywords:propertyKeywords,colorKeywords:colorKeywords,valueK eywords:valueKeywords,hooks:{"<":function(stream,state){function tokenSGMLCommen t(stream,state){var dashes=0,ch;while((ch=stream.next())!=null){if(dashes>=2&&ch ==">"){state.tokenize=null;break;}
308 dashes=(ch=="-")?dashes+1:0;}
309 return["comment","comment"];}
310 if(stream.eat("!")){state.tokenize=tokenSGMLComment;return tokenSGMLComment(stre am,state);}},"/":function(stream,state){if(stream.eat("*")){state.tokenize=token CComment;return tokenCComment(stream,state);}
311 return false;}},name:"css-base"});CodeMirror.defineMIME("text/x-scss",{atMediaTy pes:atMediaTypes,atMediaFeatures:atMediaFeatures,propertyKeywords:propertyKeywor ds,colorKeywords:colorKeywords,valueKeywords:valueKeywords,allowNested:true,hook s:{"$":function(stream){stream.match(/^[\w-]+/);if(stream.peek()==":"){return["v ariable","variable-definition"];}
312 return["variable","variable"];},"/":function(stream,state){if(stream.eat("/")){s tream.skipToEnd();return["comment","comment"];}else if(stream.eat("*")){state.to kenize=tokenCComment;return tokenCComment(stream,state);}else{return["operator", "operator"];}},"#":function(stream){if(stream.eat("{")){return["operator","inter polation"];}else{stream.eatWhile(/[\w\\\-]/);return["atom","hash"];}}},name:"css -base"});})();;CodeMirror.defineMode("javascript",function(config,parserConfig){ var indentUnit=config.indentUnit;var jsonMode=parserConfig.json;var isTS=parserC onfig.typescript;var keywords=function(){function kw(type){return{type:type,styl e:"keyword"};}
313 var A=kw("keyword a"),B=kw("keyword b"),C=kw("keyword c");var operator=kw("opera tor"),atom={type:"atom",style:"atom"};var jsKeywords={"if":kw("if"),"while":A,"w ith":A,"else":B,"do":B,"try":B,"finally":B,"return":C,"break":C,"continue":C,"ne w":C,"delete":C,"throw":C,"var":kw("var"),"const":kw("var"),"let":kw("var"),"fun ction":kw("function"),"catch":kw("catch"),"for":kw("for"),"switch":kw("switch"), "case":kw("case"),"default":kw("default"),"in":operator,"typeof":operator,"insta nceof":operator,"true":atom,"false":atom,"null":atom,"undefined":atom,"NaN":atom ,"Infinity":atom,"this":kw("this")};if(isTS){var type={type:"variable",style:"va riable-3"};var tsKeywords={"interface":kw("interface"),"class":kw("class"),"exte nds":kw("extends"),"constructor":kw("constructor"),"public":kw("public"),"privat e":kw("private"),"protected":kw("protected"),"static":kw("static"),"super":kw("s uper"),"string":type,"number":type,"bool":type,"any":type};for(var attr in tsKey words){jsKeywords[attr]=tsKeywords[attr];}}
314 return jsKeywords;}();var isOperatorChar=/[+\-*&%=<>!?|~^]/;function chain(strea m,state,f){state.tokenize=f;return f(stream,state);}
315 function nextUntilUnescaped(stream,end){var escaped=false,next;while((next=strea m.next())!=null){if(next==end&&!escaped)
316 return false;escaped=!escaped&&next=="\\";}
317 return escaped;}
318 var type,content;function ret(tp,style,cont){type=tp;content=cont;return style;}
319 function jsTokenBase(stream,state){var ch=stream.next();if(ch=='"'||ch=="'")
320 return chain(stream,state,jsTokenString(ch));else if(/[\[\]{}\(\),;\:\.]/.test(c h))
321 return ret(ch);else if(ch=="0"&&stream.eat(/x/i)){stream.eatWhile(/[\da-f]/i);re turn ret("number","number");}
322 else if(/\d/.test(ch)||ch=="-"&&stream.eat(/\d/)){stream.match(/^\d*(?:\.\d*)?(? :[eE][+\-]?\d+)?/);return ret("number","number");}
323 else if(ch=="/"){if(stream.eat("*")){return chain(stream,state,jsTokenComment);}
324 else if(stream.eat("/")){stream.skipToEnd();return ret("comment","comment");}
325 else if(state.lastType=="operator"||state.lastType=="keyword c"||/^[\[{}\(,;:]$/ .test(state.lastType)){nextUntilUnescaped(stream,"/");stream.eatWhile(/[gimy]/); return ret("regexp","string-2");}
326 else{stream.eatWhile(isOperatorChar);return ret("operator",null,stream.current() );}}
327 else if(ch=="#"){stream.skipToEnd();return ret("error","error");}
328 else if(isOperatorChar.test(ch)){stream.eatWhile(isOperatorChar);return ret("ope rator",null,stream.current());}
329 else{stream.eatWhile(/[\w\$_]/);var word=stream.current(),known=keywords.propert yIsEnumerable(word)&&keywords[word];return(known&&state.lastType!=".")?ret(known .type,known.style,word):ret("variable","variable",word);}}
330 function jsTokenString(quote){return function(stream,state){if(!nextUntilUnescap ed(stream,quote))
331 state.tokenize=jsTokenBase;return ret("string","string");};}
332 function jsTokenComment(stream,state){var maybeEnd=false,ch;while(ch=stream.next ()){if(ch=="/"&&maybeEnd){state.tokenize=jsTokenBase;break;}
333 maybeEnd=(ch=="*");}
334 return ret("comment","comment");}
335 var atomicTypes={"atom":true,"number":true,"variable":true,"string":true,"regexp ":true,"this":true};function JSLexical(indented,column,type,align,prev,info){thi s.indented=indented;this.column=column;this.type=type;this.prev=prev;this.info=i nfo;if(align!=null)this.align=align;}
336 function inScope(state,varname){for(var v=state.localVars;v;v=v.next)
337 if(v.name==varname)return true;}
338 function parseJS(state,style,type,content,stream){var cc=state.cc;cx.state=state ;cx.stream=stream;cx.marked=null,cx.cc=cc;if(!state.lexical.hasOwnProperty("alig n"))
339 state.lexical.align=true;while(true){var combinator=cc.length?cc.pop():jsonMode? expression:statement;if(combinator(type,content)){while(cc.length&&cc[cc.length- 1].lex)
340 cc.pop()();if(cx.marked)return cx.marked;if(type=="variable"&&inScope(state,cont ent))return"variable-2";return style;}}}
341 var cx={state:null,column:null,marked:null,cc:null};function pass(){for(var i=ar guments.length-1;i>=0;i--)cx.cc.push(arguments[i]);}
342 function cont(){pass.apply(null,arguments);return true;}
343 function register(varname){function inList(list){for(var v=list;v;v=v.next)
344 if(v.name==varname)return true;return false;}
345 var state=cx.state;if(state.context){cx.marked="def";if(inList(state.localVars)) return;state.localVars={name:varname,next:state.localVars};}else{if(inList(state .globalVars))return;state.globalVars={name:varname,next:state.globalVars};}}
346 var defaultVars={name:"this",next:{name:"arguments"}};function pushcontext(){cx. state.context={prev:cx.state.context,vars:cx.state.localVars};cx.state.localVars =defaultVars;}
347 function popcontext(){cx.state.localVars=cx.state.context.vars;cx.state.context= cx.state.context.prev;}
348 function pushlex(type,info){var result=function(){var state=cx.state;state.lexic al=new JSLexical(state.indented,cx.stream.column(),type,null,state.lexical,info) ;};result.lex=true;return result;}
349 function poplex(){var state=cx.state;if(state.lexical.prev){if(state.lexical.typ e==")")
350 state.indented=state.lexical.indented;state.lexical=state.lexical.prev;}}
351 poplex.lex=true;function expect(wanted){return function(type){if(type==wanted)re turn cont();else if(wanted==";")return pass();else return cont(arguments.callee) ;};}
352 function statement(type){if(type=="var")return cont(pushlex("vardef"),vardef1,ex pect(";"),poplex);if(type=="keyword a")return cont(pushlex("form"),expression,st atement,poplex);if(type=="keyword b")return cont(pushlex("form"),statement,pople x);if(type=="{")return cont(pushlex("}"),block,poplex);if(type==";")return cont( );if(type=="if")return cont(pushlex("form"),expression,statement,poplex,maybeels e(cx.state.indented));if(type=="function")return cont(functiondef);if(type=="for ")return cont(pushlex("form"),expect("("),pushlex(")"),forspec1,expect(")"),popl ex,statement,poplex);if(type=="variable")return cont(pushlex("stat"),maybelabel) ;if(type=="switch")return cont(pushlex("form"),expression,pushlex("}","switch"), expect("{"),block,poplex,poplex);if(type=="case")return cont(expression,expect(" :"));if(type=="default")return cont(expect(":"));if(type=="catch")return cont(pu shlex("form"),pushcontext,expect("("),funarg,expect(")"),statement,poplex,popcon text);return pass(pushlex("stat"),expression,expect(";"),poplex);}
353 function expression(type){return expressionInner(type,maybeoperatorComma);}
354 function expressionNoComma(type){return expressionInner(type,maybeoperatorNoComm a);}
355 function expressionInner(type,maybeop){if(atomicTypes.hasOwnProperty(type))retur n cont(maybeop);if(type=="function")return cont(functiondef);if(type=="keyword c ")return cont(maybeexpression);if(type=="(")return cont(pushlex(")"),maybeexpres sion,expect(")"),poplex,maybeop);if(type=="operator")return cont(expression);if( type=="[")return cont(pushlex("]"),commasep(expressionNoComma,"]"),poplex,maybeo p);if(type=="{")return cont(pushlex("}"),commasep(objprop,"}"),poplex,maybeop);r eturn cont();}
356 function maybeexpression(type){if(type.match(/[;\}\)\],]/))return pass();return pass(expression);}
357 function maybeoperatorComma(type,value){if(type==",")return pass();return maybeo peratorNoComma(type,value,maybeoperatorComma);}
358 function maybeoperatorNoComma(type,value,me){if(!me)me=maybeoperatorNoComma;if(t ype=="operator"){if(/\+\+|--/.test(value))return cont(me);if(value=="?")return c ont(expression,expect(":"),expression);return cont(expression);}
359 if(type==";")return;if(type=="(")return cont(pushlex(")","call"),commasep(expres sionNoComma,")"),poplex,me);if(type==".")return cont(property,me);if(type=="[")r eturn cont(pushlex("]"),expression,expect("]"),poplex,me);}
360 function maybelabel(type){if(type==":")return cont(poplex,statement);return pass (maybeoperatorComma,expect(";"),poplex);}
361 function property(type){if(type=="variable"){cx.marked="property";return cont(); }}
362 function objprop(type,value){if(type=="variable"){cx.marked="property";if(value= ="get"||value=="set")return cont(getterSetter);}else if(type=="number"||type=="s tring"){cx.marked=type+" property";}
363 if(atomicTypes.hasOwnProperty(type))return cont(expect(":"),expressionNoComma);}
364 function getterSetter(type){if(type==":")return cont(expression);if(type!="varia ble")return cont(expect(":"),expression);cx.marked="property";return cont(functi ondef);}
365 function commasep(what,end){function proceed(type){if(type==","){var lex=cx.stat e.lexical;if(lex.info=="call")lex.pos=(lex.pos||0)+1;return cont(what,proceed);}
366 if(type==end)return cont();return cont(expect(end));}
367 return function(type){if(type==end)return cont();else return pass(what,proceed); };}
368 function block(type){if(type=="}")return cont();return pass(statement,block);}
369 function maybetype(type){if(type==":")return cont(typedef);return pass();}
370 function typedef(type){if(type=="variable"){cx.marked="variable-3";return cont() ;}
371 return pass();}
372 function vardef1(type,value){if(type=="variable"){register(value);return isTS?co nt(maybetype,vardef2):cont(vardef2);}
373 return pass();}
374 function vardef2(type,value){if(value=="=")return cont(expressionNoComma,vardef2 );if(type==",")return cont(vardef1);}
375 function maybeelse(indent){return function(type,value){if(type=="keyword b"&&val ue=="else"){cx.state.lexical=new JSLexical(indent,0,"form",null,cx.state.lexical );return cont(statement,poplex);}
376 return pass();};}
377 function forspec1(type){if(type=="var")return cont(vardef1,expect(";"),forspec2) ;if(type==";")return cont(forspec2);if(type=="variable")return cont(formaybein); return pass(expression,expect(";"),forspec2);}
378 function formaybein(_type,value){if(value=="in")return cont(expression);return c ont(maybeoperatorComma,forspec2);}
379 function forspec2(type,value){if(type==";")return cont(forspec3);if(value=="in") return cont(expression);return pass(expression,expect(";"),forspec3);}
380 function forspec3(type){if(type!=")")cont(expression);}
381 function functiondef(type,value){if(type=="variable"){register(value);return con t(functiondef);}
382 if(type=="(")return cont(pushlex(")"),pushcontext,commasep(funarg,")"),poplex,st atement,popcontext);}
383 function funarg(type,value){if(type=="variable"){register(value);return isTS?con t(maybetype):cont();}}
384 return{startState:function(basecolumn){return{tokenize:jsTokenBase,lastType:null ,cc:[],lexical:new JSLexical((basecolumn||0)-indentUnit,0,"block",false),localVa rs:parserConfig.localVars,globalVars:parserConfig.globalVars,context:parserConfi g.localVars&&{vars:parserConfig.localVars},indented:0};},token:function(stream,s tate){if(stream.sol()){if(!state.lexical.hasOwnProperty("align"))
385 state.lexical.align=false;state.indented=stream.indentation();}
386 if(state.tokenize!=jsTokenComment&&stream.eatSpace())return null;var style=state .tokenize(stream,state);if(type=="comment")return style;state.lastType=type=="op erator"&&(content=="++"||content=="--")?"incdec":type;return parseJS(state,style ,type,content,stream);},indent:function(state,textAfter){if(state.tokenize==jsTo kenComment)return CodeMirror.Pass;if(state.tokenize!=jsTokenBase)return 0;var fi rstChar=textAfter&&textAfter.charAt(0),lexical=state.lexical;if(lexical.type=="s tat"&&firstChar=="}")lexical=lexical.prev;var type=lexical.type,closing=firstCha r==type;if(parserConfig.statementIndent!=null){if(type==")"&&lexical.prev&&lexic al.prev.type=="stat")lexical=lexical.prev;if(lexical.type=="stat")return lexical .indented+parserConfig.statementIndent;}
387 if(type=="vardef")return lexical.indented+(state.lastType=="operator"||state.las tType==","?4:0);else if(type=="form"&&firstChar=="{")return lexical.indented;els e if(type=="form")return lexical.indented+indentUnit;else if(type=="stat")
388 return lexical.indented+(state.lastType=="operator"||state.lastType==","?indentU nit:0);else if(lexical.info=="switch"&&!closing)
389 return lexical.indented+(/^(?:case|default)\b/.test(textAfter)?indentUnit:2*inde ntUnit);else if(lexical.align)return lexical.column+(closing?0:1);else return le xical.indented+(closing?0:indentUnit);},electricChars:":{}",blockCommentStart:js onMode?null:"/*",blockCommentEnd:jsonMode?null:"*/",lineComment:jsonMode?null:"/ /",jsonMode:jsonMode};});CodeMirror.defineMIME("text/javascript","javascript");C odeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("appl ication/javascript","javascript");CodeMirror.defineMIME("application/ecmascript" ,"javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json: true});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:true}) ;CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:true});Co deMirror.defineMIME("application/typescript",{name:"javascript",typescript:true} );;CodeMirror.defineMode("xml",function(config,parserConfig){var indentUnit=conf ig.indentUnit;var multilineTagIndentFactor=parserConfig.multilineTagIndentFactor ||1;var multilineTagIndentPastTag=parserConfig.multilineTagIndentPastTag||true;v ar Kludges=parserConfig.htmlMode?{autoSelfClosers:{'area':true,'base':true,'br': true,'col':true,'command':true,'embed':true,'frame':true,'hr':true,'img':true,'i nput':true,'keygen':true,'link':true,'meta':true,'param':true,'source':true,'tra ck':true,'wbr':true},implicitlyClosed:{'dd':true,'li':true,'optgroup':true,'opti on':true,'p':true,'rp':true,'rt':true,'tbody':true,'td':true,'tfoot':true,'th':t rue,'tr':true},contextGrabbers:{'dd':{'dd':true,'dt':true},'dt':{'dd':true,'dt': true},'li':{'li':true},'option':{'option':true,'optgroup':true},'optgroup':{'opt group':true},'p':{'address':true,'article':true,'aside':true,'blockquote':true,' dir':true,'div':true,'dl':true,'fieldset':true,'footer':true,'form':true,'h1':tr ue,'h2':true,'h3':true,'h4':true,'h5':true,'h6':true,'header':true,'hgroup':true ,'hr':true,'menu':true,'nav':true,'ol':true,'p':true,'pre':true,'section':true,' table':true,'ul':true},'rp':{'rp':true,'rt':true},'rt':{'rp':true,'rt':true},'tb ody':{'tbody':true,'tfoot':true},'td':{'td':true,'th':true},'tfoot':{'tbody':tru e},'th':{'td':true,'th':true},'thead':{'tbody':true,'tfoot':true},'tr':{'tr':tru e}},doNotIndent:{"pre":true},allowUnquoted:true,allowMissing:true}:{autoSelfClos ers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false ,allowMissing:false};var alignCDATA=parserConfig.alignCDATA;var tagName,type;fun ction inText(stream,state){function chain(parser){state.tokenize=parser;return p arser(stream,state);}
390 var ch=stream.next();if(ch=="<"){if(stream.eat("!")){if(stream.eat("[")){if(stre am.match("CDATA["))return chain(inBlock("atom","]]>"));else return null;}else if (stream.match("--")){return chain(inBlock("comment","-->"));}else if(stream.matc h("DOCTYPE",true,true)){stream.eatWhile(/[\w\._\-]/);return chain(doctype(1));}e lse{return null;}}else if(stream.eat("?")){stream.eatWhile(/[\w\._\-]/);state.to kenize=inBlock("meta","?>");return"meta";}else{var isClose=stream.eat("/");tagNa me="";var c;while((c=stream.eat(/[^\s\u00a0=<>\"\'\/?]/)))tagName+=c;if(!tagName )return"error";type=isClose?"closeTag":"openTag";state.tokenize=inTag;return"tag ";}}else if(ch=="&"){var ok;if(stream.eat("#")){if(stream.eat("x")){ok=stream.ea tWhile(/[a-fA-F\d]/)&&stream.eat(";");}else{ok=stream.eatWhile(/[\d]/)&&stream.e at(";");}}else{ok=stream.eatWhile(/[\w\.\-:]/)&&stream.eat(";");}
391 return ok?"atom":"error";}else{stream.eatWhile(/[^&<]/);return null;}}
392 function inTag(stream,state){var ch=stream.next();if(ch==">"||(ch=="/"&&stream.e at(">"))){state.tokenize=inText;type=ch==">"?"endTag":"selfcloseTag";return"tag" ;}else if(ch=="="){type="equals";return null;}else if(ch=="<"){return"error";}el se if(/[\'\"]/.test(ch)){state.tokenize=inAttribute(ch);state.stringStartCol=str eam.column();return state.tokenize(stream,state);}else{stream.eatWhile(/[^\s\u00 a0=<>\"\']/);return"word";}}
393 function inAttribute(quote){var closure=function(stream,state){while(!stream.eol ()){if(stream.next()==quote){state.tokenize=inTag;break;}}
394 return"string";};closure.isInAttribute=true;return closure;}
395 function inBlock(style,terminator){return function(stream,state){while(!stream.e ol()){if(stream.match(terminator)){state.tokenize=inText;break;}
396 stream.next();}
397 return style;};}
398 function doctype(depth){return function(stream,state){var ch;while((ch=stream.ne xt())!=null){if(ch=="<"){state.tokenize=doctype(depth+1);return state.tokenize(s tream,state);}else if(ch==">"){if(depth==1){state.tokenize=inText;break;}else{st ate.tokenize=doctype(depth-1);return state.tokenize(stream,state);}}}
399 return"meta";};}
400 var curState,curStream,setStyle;function pass(){for(var i=arguments.length-1;i>= 0;i--)curState.cc.push(arguments[i]);}
401 function cont(){pass.apply(null,arguments);return true;}
402 function pushContext(tagName,startOfLine){var noIndent=Kludges.doNotIndent.hasOw nProperty(tagName)||(curState.context&&curState.context.noIndent);curState.conte xt={prev:curState.context,tagName:tagName,indent:curState.indented,startOfLine:s tartOfLine,noIndent:noIndent};}
403 function popContext(){if(curState.context)curState.context=curState.context.prev ;}
404 function element(type){if(type=="openTag"){curState.tagName=tagName;curState.tag Start=curStream.column();return cont(attributes,endtag(curState.startOfLine));}e lse if(type=="closeTag"){var err=false;if(curState.context){if(curState.context. tagName!=tagName){if(Kludges.implicitlyClosed.hasOwnProperty(curState.context.ta gName.toLowerCase())){popContext();}
405 err=!curState.context||curState.context.tagName!=tagName;}}else{err=true;}
406 if(err)setStyle="error";return cont(endclosetag(err));}
407 return cont();}
408 function endtag(startOfLine){return function(type){var tagName=curState.tagName; curState.tagName=curState.tagStart=null;if(type=="selfcloseTag"||(type=="endTag" &&Kludges.autoSelfClosers.hasOwnProperty(tagName.toLowerCase()))){maybePopContex t(tagName.toLowerCase());return cont();}
409 if(type=="endTag"){maybePopContext(tagName.toLowerCase());pushContext(tagName,st artOfLine);return cont();}
410 return cont();};}
411 function endclosetag(err){return function(type){if(err)setStyle="error";if(type= ="endTag"){popContext();return cont();}
412 setStyle="error";return cont(arguments.callee);};}
413 function maybePopContext(nextTagName){var parentTagName;while(true){if(!curState .context){return;}
414 parentTagName=curState.context.tagName.toLowerCase();if(!Kludges.contextGrabbers .hasOwnProperty(parentTagName)||!Kludges.contextGrabbers[parentTagName].hasOwnPr operty(nextTagName)){return;}
415 popContext();}}
416 function attributes(type){if(type=="word"){setStyle="attribute";return cont(attr ibute,attributes);}
417 if(type=="endTag"||type=="selfcloseTag")return pass();setStyle="error";return co nt(attributes);}
418 function attribute(type){if(type=="equals")return cont(attvalue,attributes);if(! Kludges.allowMissing)setStyle="error";else if(type=="word"){setStyle="attribute" ;return cont(attribute,attributes);}
419 return(type=="endTag"||type=="selfcloseTag")?pass():cont();}
420 function attvalue(type){if(type=="string")return cont(attvaluemaybe);if(type=="w ord"&&Kludges.allowUnquoted){setStyle="string";return cont();}
421 setStyle="error";return(type=="endTag"||type=="selfCloseTag")?pass():cont();}
422 function attvaluemaybe(type){if(type=="string")return cont(attvaluemaybe);else r eturn pass();}
423 return{startState:function(){return{tokenize:inText,cc:[],indented:0,startOfLine :true,tagName:null,tagStart:null,context:null};},token:function(stream,state){if (!state.tagName&&stream.sol()){state.startOfLine=true;state.indented=stream.inde ntation();}
424 if(stream.eatSpace())return null;setStyle=type=tagName=null;var style=state.toke nize(stream,state);state.type=type;if((style||type)&&style!="comment"){curState= state;curStream=stream;while(true){var comb=state.cc.pop()||element;if(comb(type ||style))break;}}
425 state.startOfLine=false;return setStyle||style;},indent:function(state,textAfter ,fullLine){var context=state.context;if(state.tokenize.isInAttribute){return sta te.stringStartCol+1;}
426 if((state.tokenize!=inTag&&state.tokenize!=inText)||context&&context.noIndent)
427 return fullLine?fullLine.match(/^(\s*)/)[0].length:0;if(state.tagName){if(multil ineTagIndentPastTag)
428 return state.tagStart+state.tagName.length+2;else
429 return state.tagStart+indentUnit*multilineTagIndentFactor;}
430 if(alignCDATA&&/<!\[CDATA\[/.test(textAfter))return 0;if(context&&/^<\//.test(te xtAfter))
431 context=context.prev;while(context&&!context.startOfLine)
432 context=context.prev;if(context)return context.indent+indentUnit;else return 0;} ,electricChars:"/",blockCommentStart:"<!--",blockCommentEnd:"-->",configuration: parserConfig.htmlMode?"html":"xml",helperType:parserConfig.htmlMode?"html":"xml" };});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/ xml","xml");if(!CodeMirror.mimeModes.hasOwnProperty("text/html"))
433 CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:true});;CodeMirror.define Mode("htmlmixed",function(config,parserConfig){var htmlMode=CodeMirror.getMode(c onfig,{name:"xml",htmlMode:true});var cssMode=CodeMirror.getMode(config,"css");v ar scriptTypes=[],scriptTypesConf=parserConfig&&parserConfig.scriptTypes;scriptT ypes.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode :CodeMirror.getMode(config,"javascript")});if(scriptTypesConf)for(var i=0;i<scri ptTypesConf.length;++i){var conf=scriptTypesConf[i];scriptTypes.push({matches:co nf.matches,mode:conf.mode&&CodeMirror.getMode(config,conf.mode)});}
434 scriptTypes.push({matches:/./,mode:CodeMirror.getMode(config,"text/plain")});fun ction html(stream,state){var tagName=state.htmlState.tagName;var style=htmlMode. token(stream,state.htmlState);if(tagName=="script"&&/\btag\b/.test(style)&&strea m.current()==">"){var scriptType=stream.string.slice(Math.max(0,stream.pos-100), stream.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);scriptType=script Type?scriptType[1]:"";if(scriptType&&/[\"\']/.test(scriptType.charAt(0)))scriptT ype=scriptType.slice(1,scriptType.length-1);for(var i=0;i<scriptTypes.length;++i ){var tp=scriptTypes[i];if(typeof tp.matches=="string"?scriptType==tp.matches:tp .matches.test(scriptType)){if(tp.mode){state.token=script;state.localMode=tp.mod e;state.localState=tp.mode.startState&&tp.mode.startState(htmlMode.indent(state. htmlState,""));}
435 break;}}}else if(tagName=="style"&&/\btag\b/.test(style)&&stream.current()==">") {state.token=css;state.localMode=cssMode;state.localState=cssMode.startState(htm lMode.indent(state.htmlState,""));}
436 return style;}
437 function maybeBackup(stream,pat,style){var cur=stream.current();var close=cur.se arch(pat),m;if(close>-1)stream.backUp(cur.length-close);else if(m=cur.match(/<\/ ?$/)){stream.backUp(cur.length);if(!stream.match(pat,false))stream.match(cur[0]) ;}
438 return style;}
439 function script(stream,state){if(stream.match(/^<\/\s*script\s*>/i,false)){state .token=html;state.localState=state.localMode=null;return html(stream,state);}
440 return maybeBackup(stream,/<\/\s*script\s*>/,state.localMode.token(stream,state. localState));}
441 function css(stream,state){if(stream.match(/^<\/\s*style\s*>/i,false)){state.tok en=html;state.localState=state.localMode=null;return html(stream,state);}
442 return maybeBackup(stream,/<\/\s*style\s*>/,cssMode.token(stream,state.localStat e));}
443 return{startState:function(){var state=htmlMode.startState();return{token:html,l ocalMode:null,localState:null,htmlState:state};},copyState:function(state){if(st ate.localState)
444 var local=CodeMirror.copyState(state.localMode,state.localState);return{token:st ate.token,localMode:state.localMode,localState:local,htmlState:CodeMirror.copySt ate(htmlMode,state.htmlState)};},token:function(stream,state){return state.token (stream,state);},indent:function(state,textAfter){if(!state.localMode||/^\s*<\// .test(textAfter))
445 return htmlMode.indent(state.htmlState,textAfter);else if(state.localMode.indent )
446 return state.localMode.indent(state.localState,textAfter);else
447 return CodeMirror.Pass;},electricChars:"/{}:",innerMode:function(state){return{s tate:state.localState||state.htmlState,mode:state.localMode||htmlMode};}};},"xml ","javascript","css");CodeMirror.defineMIME("text/html","htmlmixed");;WebInspect or={};WebInspector.CodeMirrorUtils={createTokenizer:function(mimeType)
448 {var mode=CodeMirror.getMode({indentUnit:2},mimeType);var state=CodeMirror.start State(mode);function tokenize(line,callback)
449 {var stream=new CodeMirror.StringStream(line);while(!stream.eol()){var style=mod e.token(stream,state);var value=stream.current();callback(value,style,stream.sta rt,stream.start+value.length);stream.start=stream.pos;}}
450 return tokenize;},convertTokenType:function(tokenType)
451 {if(tokenType.startsWith("js-variable")||tokenType.startsWith("js-property")||to kenType==="js-def")
452 return"javascript-ident";if(tokenType==="js-string-2")
453 return"javascript-regexp";if(tokenType==="js-number"||tokenType==="js-comment"|| tokenType==="js-string"||tokenType==="js-keyword")
454 return"javascript-"+tokenType.substring("js-".length);return null;},overrideMode WithPrefixedTokens:function(modeName,tokenPrefix)
455 {var oldModeName=modeName+"-old";if(CodeMirror.modes[oldModeName])
456 return;CodeMirror.defineMode(oldModeName,CodeMirror.modes[modeName]);CodeMirror. defineMode(modeName,modeConstructor);function modeConstructor(config,parserConfi g)
457 {var innerConfig={};for(var i in parserConfig)
458 innerConfig[i]=parserConfig[i];innerConfig.name=oldModeName;var codeMirrorMode=C odeMirror.getMode(config,innerConfig);codeMirrorMode.name=modeName;codeMirrorMod e.token=tokenOverride.bind(this,codeMirrorMode.token);return codeMirrorMode;}
459 function tokenOverride(superToken,stream,state)
460 {var token=superToken(stream,state);return token?tokenPrefix+token:token;}}}
461 WebInspector.CodeMirrorUtils.overrideModeWithPrefixedTokens("css-base","css-");W ebInspector.CodeMirrorUtils.overrideModeWithPrefixedTokens("javascript","js-");W ebInspector.CodeMirrorUtils.overrideModeWithPrefixedTokens("xml","xml-");;onmess age=function(event){if(!event.data.method)
2 return;self[event.data.method](event.data.params);};function format(params) 462 return;self[event.data.method](event.data.params);};function format(params)
3 {var indentString=params.indentString||" ";var result={};if(params.mimeType== ="text/html"){var formatter=new HTMLScriptFormatter(indentString);result=formatt er.format(params.content);}else{result.mapping={original:[0],formatted:[0]};resu lt.content=formatScript(params.content,result.mapping,0,0,indentString);} 463 {var indentString=params.indentString||" ";var result={};if(params.mimeType== ="text/html"){var formatter=new HTMLScriptFormatter(indentString);result=formatt er.format(params.content);}else{result.mapping={original:[0],formatted:[0]};resu lt.content=formatScript(params.content,result.mapping,0,0,indentString);}
4 postMessage(result);} 464 postMessage(result);}
5 function getChunkCount(totalLength,chunkSize) 465 function getChunkCount(totalLength,chunkSize)
6 {if(totalLength<=chunkSize) 466 {if(totalLength<=chunkSize)
7 return 1;var remainder=totalLength%chunkSize;var partialLength=totalLength-remai nder;return(partialLength/chunkSize)+(remainder?1:0);} 467 return 1;var remainder=totalLength%chunkSize;var partialLength=totalLength-remai nder;return(partialLength/chunkSize)+(remainder?1:0);}
8 function outline(params) 468 function outline(params)
9 {const chunkSize=100000;const totalLength=params.content.length;const lines=para ms.content.split("\n");const chunkCount=getChunkCount(totalLength,chunkSize);var outlineChunk=[];var previousIdentifier=null;var previousToken=null;var previous TokenType=null;var currentChunk=1;var processedChunkCharacters=0;var addedFuncti on=false;var isReadingArguments=false;var argumentsText="";var currentFunction=n ull;var scriptTokenizer=new WebInspector.SourceJavaScriptTokenizer();scriptToken izer.condition=scriptTokenizer.createInitialCondition();for(var i=0;i<lines.leng th;++i){var line=lines[i];var column=0;scriptTokenizer.line=line;do{var newColum n=scriptTokenizer.nextToken(column);var tokenType=scriptTokenizer.tokenType;var tokenValue=line.substring(column,newColumn);if(tokenType==="javascript-ident"){p reviousIdentifier=tokenValue;if(tokenValue&&previousToken==="function"){currentF unction={line:i,column:column,name:tokenValue};addedFunction=true;previousIdenti fier=null;}}else if(tokenType==="javascript-keyword"){if(tokenValue==="function" ){if(previousIdentifier&&(previousToken==="="||previousToken===":")){currentFunc tion={line:i,column:column,name:previousIdentifier};addedFunction=true;previousI dentifier=null;}}}else if(tokenValue==="."&&previousTokenType==="javascript-iden t") 469 {const chunkSize=100000;const totalLength=params.content.length;const lines=para ms.content.split("\n");const chunkCount=getChunkCount(totalLength,chunkSize);var outlineChunk=[];var previousIdentifier=null;var previousToken=null;var previous TokenType=null;var currentChunk=1;var processedChunkCharacters=0;var addedFuncti on=false;var isReadingArguments=false;var argumentsText="";var currentFunction=n ull;var tokenizer=WebInspector.CodeMirrorUtils.createTokenizer("text/javascript" );for(var i=0;i<lines.length;++i){var line=lines[i];function processToken(tokenV alue,tokenType,column,newColumn)
470 {tokenType=tokenType?WebInspector.CodeMirrorUtils.convertTokenType(tokenType):nu ll;if(tokenType==="javascript-ident"){previousIdentifier=tokenValue;if(tokenValu e&&previousToken==="function"){currentFunction={line:i,column:column,name:tokenV alue};addedFunction=true;previousIdentifier=null;}}else if(tokenType==="javascri pt-keyword"){if(tokenValue==="function"){if(previousIdentifier&&(previousToken== ="="||previousToken===":")){currentFunction={line:i,column:column,name:previousI dentifier};addedFunction=true;previousIdentifier=null;}}}else if(tokenValue===". "&&previousTokenType==="javascript-ident")
10 previousIdentifier+=".";else if(tokenValue==="("&&addedFunction) 471 previousIdentifier+=".";else if(tokenValue==="("&&addedFunction)
11 isReadingArguments=true;if(isReadingArguments&&tokenValue) 472 isReadingArguments=true;if(isReadingArguments&&tokenValue)
12 argumentsText+=tokenValue;if(tokenValue===")"&&isReadingArguments){addedFunction =false;isReadingArguments=false;currentFunction.arguments=argumentsText.replace( /,[\r\n\s]*/g,", ").replace(/([^,])[\r\n\s]+/g,"$1");argumentsText="";outlineChu nk.push(currentFunction);} 473 argumentsText+=tokenValue;if(tokenValue===")"&&isReadingArguments){addedFunction =false;isReadingArguments=false;currentFunction.arguments=argumentsText.replace( /,[\r\n\s]*/g,", ").replace(/([^,])[\r\n\s]+/g,"$1");argumentsText="";outlineChu nk.push(currentFunction);}
13 if(tokenValue.trim().length){previousToken=tokenValue;previousTokenType=tokenTyp e;} 474 if(tokenValue.trim().length){previousToken=tokenValue;previousTokenType=tokenTyp e;}
14 processedChunkCharacters+=newColumn-column;column=newColumn;if(processedChunkCha racters>=chunkSize){postMessage({chunk:outlineChunk,total:chunkCount,index:curre ntChunk++});outlineChunk=[];processedChunkCharacters=0;}}while(column<line.lengt h);} 475 processedChunkCharacters+=newColumn-column;if(processedChunkCharacters>=chunkSiz e){postMessage({chunk:outlineChunk,total:chunkCount,index:currentChunk++});outli neChunk=[];processedChunkCharacters=0;}}
476 tokenizer(line,processToken);}
15 postMessage({chunk:outlineChunk,total:chunkCount,index:chunkCount});} 477 postMessage({chunk:outlineChunk,total:chunkCount,index:chunkCount});}
16 function formatScript(content,mapping,offset,formattedOffset,indentString) 478 function formatScript(content,mapping,offset,formattedOffset,indentString)
17 {var formattedContent;try{var tokenizer=new Tokenizer(content);var builder=new F ormattedContentBuilder(tokenizer.content(),mapping,offset,formattedOffset,indent String);var formatter=new JavaScriptFormatter(tokenizer,builder);formatter.forma t();formattedContent=builder.content();}catch(e){formattedContent=content;} 479 {var formattedContent;try{var tokenizer=new Tokenizer(content);var builder=new F ormattedContentBuilder(tokenizer.content(),mapping,offset,formattedOffset,indent String);var formatter=new JavaScriptFormatter(tokenizer,builder);formatter.forma t();formattedContent=builder.content();}catch(e){formattedContent=content;}
18 return formattedContent;} 480 return formattedContent;}
19 WebInspector={};Array.prototype.keySet=function() 481 Array.prototype.keySet=function()
20 {var keys={};for(var i=0;i<this.length;++i) 482 {var keys={};for(var i=0;i<this.length;++i)
21 keys[this[i]]=true;return keys;};WebInspector.SourceTokenizer=function() 483 keys[this[i]]=true;return keys;};HTMLScriptFormatter=function(indentString)
22 {this.tokenType=null;} 484 {this._indentString=indentString;}
23 WebInspector.SourceTokenizer.prototype={set line(line){this._line=line;},set con dition(condition)
24 {this._condition=condition;},get condition()
25 {return this._condition;},getLexCondition:function()
26 {return this.condition.lexCondition;},setLexCondition:function(lexCondition)
27 {this.condition.lexCondition=lexCondition;},_charAt:function(cursor)
28 {return cursor<this._line.length?this._line.charAt(cursor):"\n";},createInitialC ondition:function()
29 {},nextToken:function(cursor)
30 {}}
31 WebInspector.SourceTokenizer.Registry=function(){this._tokenizers={};this._token izerConstructors={"text/css":"SourceCSSTokenizer","text/html":"SourceHTMLTokeniz er","text/javascript":"SourceJavaScriptTokenizer","text/x-scss":"SourceCSSTokeni zer"};}
32 WebInspector.SourceTokenizer.Registry.getInstance=function()
33 {if(!WebInspector.SourceTokenizer.Registry._instance)
34 WebInspector.SourceTokenizer.Registry._instance=new WebInspector.SourceTokenizer .Registry();return WebInspector.SourceTokenizer.Registry._instance;}
35 WebInspector.SourceTokenizer.Registry.prototype={getTokenizer:function(mimeType)
36 {if(!this._tokenizerConstructors[mimeType])
37 return null;var tokenizerClass=this._tokenizerConstructors[mimeType];var tokeniz er=this._tokenizers[tokenizerClass];if(!tokenizer){tokenizer=new WebInspector[to kenizerClass]();this._tokenizers[tokenizerClass]=tokenizer;}
38 return tokenizer;}};WebInspector.SourceHTMLTokenizer=function()
39 {WebInspector.SourceTokenizer.call(this);this._lexConditions={INITIAL:0,COMMENT: 1,DOCTYPE:2,TAG:3,DSTRING:4,SSTRING:5};this.case_INITIAL=1000;this.case_COMMENT= 1001;this.case_DOCTYPE=1002;this.case_TAG=1003;this.case_DSTRING=1004;this.case_ SSTRING=1005;this._parseConditions={INITIAL:0,ATTRIBUTE:1,ATTRIBUTE_VALUE:2,LINK IFY:4,A_NODE:8,SCRIPT:16,STYLE:32};this.condition=this.createInitialCondition(); }
40 WebInspector.SourceHTMLTokenizer.prototype={createInitialCondition:function()
41 {return{lexCondition:this._lexConditions.INITIAL,parseCondition:this._parseCondi tions.INITIAL};},set line(line){if(this._condition.internalJavaScriptTokenizerCo ndition){var match=/<\/script/i.exec(line);if(match){this._internalJavaScriptTok enizer.line=line.substring(0,match.index);}else
42 this._internalJavaScriptTokenizer.line=line;}else if(this._condition.internalCSS TokenizerCondition){var match=/<\/style/i.exec(line);if(match){this._internalCSS Tokenizer.line=line.substring(0,match.index);}else
43 this._internalCSSTokenizer.line=line;}
44 this._line=line;},_isExpectingAttribute:function()
45 {return this._condition.parseCondition&this._parseConditions.ATTRIBUTE;},_isExpe ctingAttributeValue:function()
46 {return this._condition.parseCondition&this._parseConditions.ATTRIBUTE_VALUE;},_ setExpectingAttribute:function()
47 {if(this._isExpectingAttributeValue())
48 this._condition.parseCondition^=this._parseConditions.ATTRIBUTE_VALUE;this._cond ition.parseCondition|=this._parseConditions.ATTRIBUTE;},_setExpectingAttributeVa lue:function()
49 {if(this._isExpectingAttribute())
50 this._condition.parseCondition^=this._parseConditions.ATTRIBUTE;this._condition. parseCondition|=this._parseConditions.ATTRIBUTE_VALUE;},_stringToken:function(cu rsor,stringEnds)
51 {if(!this._isExpectingAttributeValue()){this.tokenType=null;return cursor;}
52 this.tokenType=this._attrValueTokenType();if(stringEnds)
53 this._setExpectingAttribute();return cursor;},_attrValueTokenType:function()
54 {if(this._condition.parseCondition&this._parseConditions.LINKIFY){if(this._condi tion.parseCondition&this._parseConditions.A_NODE)
55 return"html-external-link";return"html-resource-link";}
56 return"html-attribute-value";},get _internalJavaScriptTokenizer()
57 {return WebInspector.SourceTokenizer.Registry.getInstance().getTokenizer("text/j avascript");},get _internalCSSTokenizer()
58 {return WebInspector.SourceTokenizer.Registry.getInstance().getTokenizer("text/c ss");},scriptStarted:function(cursor)
59 {this._condition.internalJavaScriptTokenizerCondition=this._internalJavaScriptTo kenizer.createInitialCondition();},scriptEnded:function(cursor)
60 {},styleSheetStarted:function(cursor)
61 {this._condition.internalCSSTokenizerCondition=this._internalCSSTokenizer.create InitialCondition();},styleSheetEnded:function(cursor)
62 {},nextToken:function(cursor)
63 {if(this._condition.internalJavaScriptTokenizerCondition){this.line=this._line;i f(cursor!==this._internalJavaScriptTokenizer._line.length){this._internalJavaScr iptTokenizer.condition=this._condition.internalJavaScriptTokenizerCondition;var result=this._internalJavaScriptTokenizer.nextToken(cursor);this.tokenType=this._ internalJavaScriptTokenizer.tokenType;this._condition.internalJavaScriptTokenize rCondition=this._internalJavaScriptTokenizer.condition;return result;}else if(cu rsor!==this._line.length)
64 delete this._condition.internalJavaScriptTokenizerCondition;}else if(this._condi tion.internalCSSTokenizerCondition){this.line=this._line;if(cursor!==this._inter nalCSSTokenizer._line.length){this._internalCSSTokenizer.condition=this._conditi on.internalCSSTokenizerCondition;var result=this._internalCSSTokenizer.nextToken (cursor);this.tokenType=this._internalCSSTokenizer.tokenType;this._condition.int ernalCSSTokenizerCondition=this._internalCSSTokenizer.condition;return result;}e lse if(cursor!==this._line.length)
65 delete this._condition.internalCSSTokenizerCondition;}
66 var cursorOnEnter=cursor;var gotoCase=1;var YYMARKER;while(1){switch(gotoCase)
67 {case 1:var yych;var yyaccept=0;if(this.getLexCondition()<3){if(this.getLexCondi tion()<1){{gotoCase=this.case_INITIAL;continue;};}else{if(this.getLexCondition() <2){{gotoCase=this.case_COMMENT;continue;};}else{{gotoCase=this.case_DOCTYPE;con tinue;};}}}else{if(this.getLexCondition()<4){{gotoCase=this.case_TAG;continue;}; }else{if(this.getLexCondition()<5){{gotoCase=this.case_DSTRING;continue;};}else{ {gotoCase=this.case_SSTRING;continue;};}}}
68 case this.case_COMMENT:yych=this._charAt(cursor);if(yych<='\f'){if(yych=='\n'){g otoCase=4;continue;};{gotoCase=3;continue;};}else{if(yych<='\r'){gotoCase=4;cont inue;};if(yych=='-'){gotoCase=6;continue;};{gotoCase=3;continue;};}
69 case 2:{this.tokenType="html-comment";return cursor;}
70 case 3:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);{gotoCase=9;continue;};ca se 4:++cursor;case 5:{this.tokenType=null;return cursor;}
71 case 6:yyaccept=1;yych=this._charAt(YYMARKER=++cursor);if(yych!='-'){gotoCase=5; continue;};case 7:++cursor;yych=this._charAt(cursor);if(yych=='>'){gotoCase=10;c ontinue;};case 8:yyaccept=0;YYMARKER=++cursor;yych=this._charAt(cursor);case 9:i f(yych<='\f'){if(yych=='\n'){gotoCase=2;continue;};{gotoCase=8;continue;};}else{ if(yych<='\r'){gotoCase=2;continue;};if(yych=='-'){gotoCase=12;continue;};{gotoC ase=8;continue;};}
72 case 10:++cursor;this.setLexCondition(this._lexConditions.INITIAL);{this.tokenTy pe="html-comment";return cursor;}
73 case 12:++cursor;yych=this._charAt(cursor);if(yych=='-'){gotoCase=7;continue;};c ursor=YYMARKER;if(yyaccept<=0){{gotoCase=2;continue;};}else{{gotoCase=5;continue ;};}
74 case this.case_DOCTYPE:yych=this._charAt(cursor);if(yych<='\f'){if(yych=='\n'){g otoCase=18;continue;};{gotoCase=17;continue;};}else{if(yych<='\r'){gotoCase=18;c ontinue;};if(yych=='>'){gotoCase=20;continue;};{gotoCase=17;continue;};}
75 case 16:{this.tokenType="html-doctype";return cursor;}
76 case 17:yych=this._charAt(++cursor);{gotoCase=23;continue;};case 18:++cursor;{th is.tokenType=null;return cursor;}
77 case 20:++cursor;this.setLexCondition(this._lexConditions.INITIAL);{this.tokenTy pe="html-doctype";return cursor;}
78 case 22:++cursor;yych=this._charAt(cursor);case 23:if(yych<='\f'){if(yych=='\n') {gotoCase=16;continue;};{gotoCase=22;continue;};}else{if(yych<='\r'){gotoCase=16 ;continue;};if(yych=='>'){gotoCase=16;continue;};{gotoCase=22;continue;};}
79 case this.case_DSTRING:yych=this._charAt(cursor);if(yych<='\f'){if(yych=='\n'){g otoCase=28;continue;};{gotoCase=27;continue;};}else{if(yych<='\r'){gotoCase=28;c ontinue;};if(yych=='"'){gotoCase=30;continue;};{gotoCase=27;continue;};}
80 case 26:{return this._stringToken(cursor);}
81 case 27:yych=this._charAt(++cursor);{gotoCase=34;continue;};case 28:++cursor;{th is.tokenType=null;return cursor;}
82 case 30:++cursor;case 31:this.setLexCondition(this._lexConditions.TAG);{return t his._stringToken(cursor,true);}
83 case 32:yych=this._charAt(++cursor);{gotoCase=31;continue;};case 33:++cursor;yyc h=this._charAt(cursor);case 34:if(yych<='\f'){if(yych=='\n'){gotoCase=26;continu e;};{gotoCase=33;continue;};}else{if(yych<='\r'){gotoCase=26;continue;};if(yych= ='"'){gotoCase=32;continue;};{gotoCase=33;continue;};}
84 case this.case_INITIAL:yych=this._charAt(cursor);if(yych=='<'){gotoCase=39;conti nue;};++cursor;{this.tokenType=null;return cursor;}
85 case 39:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);if(yych<='/'){if(yych==' !'){gotoCase=44;continue;};if(yych>='/'){gotoCase=41;continue;};}else{if(yych<=' S'){if(yych>='S'){gotoCase=42;continue;};}else{if(yych=='s'){gotoCase=42;continu e;};}}
86 case 40:this.setLexCondition(this._lexConditions.TAG);{if(this._condition.parseC ondition&(this._parseConditions.SCRIPT|this._parseConditions.STYLE)){this.setLex Condition(this._lexConditions.INITIAL);this.tokenType=null;return cursor;}
87 this._condition.parseCondition=this._parseConditions.INITIAL;this.tokenType="htm l-tag";return cursor;}
88 case 41:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);if(yych=='S'){gotoCase=7 3;continue;};if(yych=='s'){gotoCase=73;continue;};{gotoCase=40;continue;};case 4 2:yych=this._charAt(++cursor);if(yych<='T'){if(yych=='C'){gotoCase=62;continue;} ;if(yych>='T'){gotoCase=63;continue;};}else{if(yych<='c'){if(yych>='c'){gotoCase =62;continue;};}else{if(yych=='t'){gotoCase=63;continue;};}}
89 case 43:cursor=YYMARKER;{gotoCase=40;continue;};case 44:yych=this._charAt(++curs or);if(yych<='C'){if(yych!='-'){gotoCase=43;continue;};}else{if(yych<='D'){gotoC ase=46;continue;};if(yych=='d'){gotoCase=46;continue;};{gotoCase=43;continue;};}
90 yych=this._charAt(++cursor);if(yych=='-'){gotoCase=54;continue;};{gotoCase=43;co ntinue;};case 46:yych=this._charAt(++cursor);if(yych=='O'){gotoCase=47;continue; };if(yych!='o'){gotoCase=43;continue;};case 47:yych=this._charAt(++cursor);if(yy ch=='C'){gotoCase=48;continue;};if(yych!='c'){gotoCase=43;continue;};case 48:yyc h=this._charAt(++cursor);if(yych=='T'){gotoCase=49;continue;};if(yych!='t'){goto Case=43;continue;};case 49:yych=this._charAt(++cursor);if(yych=='Y'){gotoCase=50 ;continue;};if(yych!='y'){gotoCase=43;continue;};case 50:yych=this._charAt(++cur sor);if(yych=='P'){gotoCase=51;continue;};if(yych!='p'){gotoCase=43;continue;};c ase 51:yych=this._charAt(++cursor);if(yych=='E'){gotoCase=52;continue;};if(yych! ='e'){gotoCase=43;continue;};case 52:++cursor;this.setLexCondition(this._lexCond itions.DOCTYPE);{this.tokenType="html-doctype";return cursor;}
91 case 54:++cursor;yych=this._charAt(cursor);if(yych<='\f'){if(yych=='\n'){gotoCas e=57;continue;};{gotoCase=54;continue;};}else{if(yych<='\r'){gotoCase=57;continu e;};if(yych!='-'){gotoCase=54;continue;};}
92 ++cursor;yych=this._charAt(cursor);if(yych=='-'){gotoCase=59;continue;};{gotoCas e=43;continue;};case 57:++cursor;this.setLexCondition(this._lexConditions.COMMEN T);{this.tokenType="html-comment";return cursor;}
93 case 59:++cursor;yych=this._charAt(cursor);if(yych!='>'){gotoCase=54;continue;}; ++cursor;{this.tokenType="html-comment";return cursor;}
94 case 62:yych=this._charAt(++cursor);if(yych=='R'){gotoCase=68;continue;};if(yych =='r'){gotoCase=68;continue;};{gotoCase=43;continue;};case 63:yych=this._charAt( ++cursor);if(yych=='Y'){gotoCase=64;continue;};if(yych!='y'){gotoCase=43;continu e;};case 64:yych=this._charAt(++cursor);if(yych=='L'){gotoCase=65;continue;};if( yych!='l'){gotoCase=43;continue;};case 65:yych=this._charAt(++cursor);if(yych==' E'){gotoCase=66;continue;};if(yych!='e'){gotoCase=43;continue;};case 66:++cursor ;this.setLexCondition(this._lexConditions.TAG);{if(this._condition.parseConditio n&this._parseConditions.STYLE){this.setLexCondition(this._lexConditions.INITIAL) ;this.tokenType=null;return cursor;}
95 this.tokenType="html-tag";this._condition.parseCondition=this._parseConditions.S TYLE;this._setExpectingAttribute();return cursor;}
96 case 68:yych=this._charAt(++cursor);if(yych=='I'){gotoCase=69;continue;};if(yych !='i'){gotoCase=43;continue;};case 69:yych=this._charAt(++cursor);if(yych=='P'){ gotoCase=70;continue;};if(yych!='p'){gotoCase=43;continue;};case 70:yych=this._c harAt(++cursor);if(yych=='T'){gotoCase=71;continue;};if(yych!='t'){gotoCase=43;c ontinue;};case 71:++cursor;this.setLexCondition(this._lexConditions.TAG);{if(thi s._condition.parseCondition&this._parseConditions.SCRIPT){this.setLexCondition(t his._lexConditions.INITIAL);this.tokenType=null;return cursor;}
97 this.tokenType="html-tag";this._condition.parseCondition=this._parseConditions.S CRIPT;this._setExpectingAttribute();return cursor;}
98 case 73:yych=this._charAt(++cursor);if(yych<='T'){if(yych=='C'){gotoCase=75;cont inue;};if(yych<='S'){gotoCase=43;continue;};}else{if(yych<='c'){if(yych<='b'){go toCase=43;continue;};{gotoCase=75;continue;};}else{if(yych!='t'){gotoCase=43;con tinue;};}}
99 yych=this._charAt(++cursor);if(yych=='Y'){gotoCase=81;continue;};if(yych=='y'){g otoCase=81;continue;};{gotoCase=43;continue;};case 75:yych=this._charAt(++cursor );if(yych=='R'){gotoCase=76;continue;};if(yych!='r'){gotoCase=43;continue;};case 76:yych=this._charAt(++cursor);if(yych=='I'){gotoCase=77;continue;};if(yych!='i '){gotoCase=43;continue;};case 77:yych=this._charAt(++cursor);if(yych=='P'){goto Case=78;continue;};if(yych!='p'){gotoCase=43;continue;};case 78:yych=this._charA t(++cursor);if(yych=='T'){gotoCase=79;continue;};if(yych!='t'){gotoCase=43;conti nue;};case 79:++cursor;this.setLexCondition(this._lexConditions.TAG);{this.token Type="html-tag";this._condition.parseCondition=this._parseConditions.INITIAL;thi s.scriptEnded(cursor-8);return cursor;}
100 case 81:yych=this._charAt(++cursor);if(yych=='L'){gotoCase=82;continue;};if(yych !='l'){gotoCase=43;continue;};case 82:yych=this._charAt(++cursor);if(yych=='E'){ gotoCase=83;continue;};if(yych!='e'){gotoCase=43;continue;};case 83:++cursor;thi s.setLexCondition(this._lexConditions.TAG);{this.tokenType="html-tag";this._cond ition.parseCondition=this._parseConditions.INITIAL;this.styleSheetEnded(cursor-7 );return cursor;}
101 case this.case_SSTRING:yych=this._charAt(cursor);if(yych<='\f'){if(yych=='\n'){g otoCase=89;continue;};{gotoCase=88;continue;};}else{if(yych<='\r'){gotoCase=89;c ontinue;};if(yych=='\''){gotoCase=91;continue;};{gotoCase=88;continue;};}
102 case 87:{return this._stringToken(cursor);}
103 case 88:yych=this._charAt(++cursor);{gotoCase=95;continue;};case 89:++cursor;{th is.tokenType=null;return cursor;}
104 case 91:++cursor;case 92:this.setLexCondition(this._lexConditions.TAG);{return t his._stringToken(cursor,true);}
105 case 93:yych=this._charAt(++cursor);{gotoCase=92;continue;};case 94:++cursor;yyc h=this._charAt(cursor);case 95:if(yych<='\f'){if(yych=='\n'){gotoCase=87;continu e;};{gotoCase=94;continue;};}else{if(yych<='\r'){gotoCase=87;continue;};if(yych= ='\''){gotoCase=93;continue;};{gotoCase=94;continue;};}
106 case this.case_TAG:yych=this._charAt(cursor);if(yych<='&'){if(yych<='\r'){if(yyc h=='\n'){gotoCase=100;continue;};if(yych>='\r'){gotoCase=100;continue;};}else{if (yych<=' '){if(yych>=' '){gotoCase=100;continue;};}else{if(yych=='"'){gotoCase=1 02;continue;};}}}else{if(yych<='>'){if(yych<=';'){if(yych<='\''){gotoCase=103;co ntinue;};}else{if(yych<='<'){gotoCase=100;continue;};if(yych<='='){gotoCase=104; continue;};{gotoCase=106;continue;};}}else{if(yych<='['){if(yych>='['){gotoCase= 100;continue;};}else{if(yych==']'){gotoCase=100;continue;};}}}
107 ++cursor;yych=this._charAt(cursor);{gotoCase=119;continue;};case 99:{if(this._co ndition.parseCondition===this._parseConditions.SCRIPT||this._condition.parseCond ition===this._parseConditions.STYLE){this.tokenType=null;return cursor;}
108 if(this._condition.parseCondition===this._parseConditions.INITIAL){this.tokenTyp e="html-tag";this._setExpectingAttribute();var token=this._line.substring(cursor OnEnter,cursor);if(token==="a")
109 this._condition.parseCondition|=this._parseConditions.A_NODE;else if(this._condi tion.parseCondition&this._parseConditions.A_NODE)
110 this._condition.parseCondition^=this._parseConditions.A_NODE;}else if(this._isEx pectingAttribute()){var token=this._line.substring(cursorOnEnter,cursor);if(toke n==="href"||token==="src")
111 this._condition.parseCondition|=this._parseConditions.LINKIFY;else if(this._cond ition.parseCondition|=this._parseConditions.LINKIFY)
112 this._condition.parseCondition^=this._parseConditions.LINKIFY;this.tokenType="ht ml-attribute-name";}else if(this._isExpectingAttributeValue())
113 this.tokenType=this._attrValueTokenType();else
114 this.tokenType=null;return cursor;}
115 case 100:++cursor;{this.tokenType=null;return cursor;}
116 case 102:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);{gotoCase=115;continue; };case 103:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);{gotoCase=109;continu e;};case 104:++cursor;{if(this._isExpectingAttribute())
117 this._setExpectingAttributeValue();this.tokenType=null;return cursor;}
118 case 106:++cursor;this.setLexCondition(this._lexConditions.INITIAL);{this.tokenT ype="html-tag";if(this._condition.parseCondition&this._parseConditions.SCRIPT){t his.scriptStarted(cursor);return cursor;}
119 if(this._condition.parseCondition&this._parseConditions.STYLE){this.styleSheetSt arted(cursor);return cursor;}
120 this._condition.parseCondition=this._parseConditions.INITIAL;return cursor;}
121 case 108:++cursor;yych=this._charAt(cursor);case 109:if(yych<='\f'){if(yych!='\n '){gotoCase=108;continue;};}else{if(yych<='\r'){gotoCase=110;continue;};if(yych= ='\''){gotoCase=112;continue;};{gotoCase=108;continue;};}
122 case 110:++cursor;this.setLexCondition(this._lexConditions.SSTRING);{return this ._stringToken(cursor);}
123 case 112:++cursor;{return this._stringToken(cursor,true);}
124 case 114:++cursor;yych=this._charAt(cursor);case 115:if(yych<='\f'){if(yych!='\n '){gotoCase=114;continue;};}else{if(yych<='\r'){gotoCase=116;continue;};if(yych= ='"'){gotoCase=112;continue;};{gotoCase=114;continue;};}
125 case 116:++cursor;this.setLexCondition(this._lexConditions.DSTRING);{return this ._stringToken(cursor);}
126 case 118:++cursor;yych=this._charAt(cursor);case 119:if(yych<='"'){if(yych<='\r' ){if(yych=='\n'){gotoCase=99;continue;};if(yych<='\f'){gotoCase=118;continue;};{ gotoCase=99;continue;};}else{if(yych==' '){gotoCase=99;continue;};if(yych<='!'){ gotoCase=118;continue;};{gotoCase=99;continue;};}}else{if(yych<='>'){if(yych=='\ ''){gotoCase=99;continue;};if(yych<=';'){gotoCase=118;continue;};{gotoCase=99;co ntinue;};}else{if(yych<='['){if(yych<='Z'){gotoCase=118;continue;};{gotoCase=99; continue;};}else{if(yych==']'){gotoCase=99;continue;};{gotoCase=118;continue;};} }}}}},__proto__:WebInspector.SourceTokenizer.prototype};WebInspector.SourceJavaS criptTokenizer=function()
127 {WebInspector.SourceTokenizer.call(this);this._lexConditions={DIV:0,NODIV:1,COMM ENT:2,DSTRING:3,SSTRING:4,REGEX:5};this.case_DIV=1000;this.case_NODIV=1001;this. case_COMMENT=1002;this.case_DSTRING=1003;this.case_SSTRING=1004;this.case_REGEX= 1005;this.condition=this.createInitialCondition();}
128 WebInspector.SourceJavaScriptTokenizer.Keywords=["null","true","false","break"," case","catch","const","default","finally","for","instanceof","new","var","contin ue","function","return","void","delete","if","this","do","while","else","in","sw itch","throw","try","typeof","debugger","class","enum","export","extends","impor t","super","get","set","with"].keySet();WebInspector.SourceJavaScriptTokenizer.G lobalObjectValueProperties={"NaN":"javascript-nan","undefined":"javascript-undef ","Infinity":"javascript-inf"};WebInspector.SourceJavaScriptTokenizer.prototype= {createInitialCondition:function()
129 {return{lexCondition:this._lexConditions.NODIV};},nextToken:function(cursor)
130 {var cursorOnEnter=cursor;var gotoCase=1;var YYMARKER;while(1){switch(gotoCase)
131 {case 1:var yych;var yyaccept=0;if(this.getLexCondition()<3){if(this.getLexCondi tion()<1){{gotoCase=this.case_DIV;continue;};}else{if(this.getLexCondition()<2){ {gotoCase=this.case_NODIV;continue;};}else{{gotoCase=this.case_COMMENT;continue; };}}}else{if(this.getLexCondition()<4){{gotoCase=this.case_DSTRING;continue;};}e lse{if(this.getLexCondition()<5){{gotoCase=this.case_SSTRING;continue;};}else{{g otoCase=this.case_REGEX;continue;};}}}
132 case this.case_COMMENT:yych=this._charAt(cursor);if(yych<='\f'){if(yych=='\n'){g otoCase=4;continue;};{gotoCase=3;continue;};}else{if(yych<='\r'){gotoCase=4;cont inue;};if(yych=='*'){gotoCase=6;continue;};{gotoCase=3;continue;};}
133 case 2:{this.tokenType="javascript-comment";return cursor;}
134 case 3:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);{gotoCase=12;continue;};c ase 4:++cursor;{this.tokenType=null;return cursor;}
135 case 6:yyaccept=1;yych=this._charAt(YYMARKER=++cursor);if(yych=='*'){gotoCase=9; continue;};if(yych!='/'){gotoCase=11;continue;};case 7:++cursor;this.setLexCondi tion(this._lexConditions.NODIV);{this.tokenType="javascript-comment";return curs or;}
136 case 9:++cursor;yych=this._charAt(cursor);if(yych=='*'){gotoCase=9;continue;};if (yych=='/'){gotoCase=7;continue;};case 11:yyaccept=0;YYMARKER=++cursor;yych=this ._charAt(cursor);case 12:if(yych<='\f'){if(yych=='\n'){gotoCase=2;continue;};{go toCase=11;continue;};}else{if(yych<='\r'){gotoCase=2;continue;};if(yych=='*'){go toCase=9;continue;};{gotoCase=11;continue;};}
137 case this.case_DIV:yych=this._charAt(cursor);if(yych<='9'){if(yych<='\''){if(yyc h<='"'){if(yych<=String.fromCharCode(0x1F)){gotoCase=15;continue;};if(yych<=' ') {gotoCase=17;continue;};if(yych<='!'){gotoCase=19;continue;};{gotoCase=21;contin ue;};}else{if(yych<='$'){if(yych>='$'){gotoCase=22;continue;};}else{if(yych<='%' ){gotoCase=24;continue;};if(yych<='&'){gotoCase=25;continue;};{gotoCase=26;conti nue;};}}}else{if(yych<=','){if(yych<=')'){if(yych<='('){gotoCase=27;continue;};{ gotoCase=28;continue;};}else{if(yych<='*'){gotoCase=30;continue;};if(yych<='+'){ gotoCase=31;continue;};{gotoCase=27;continue;};}}else{if(yych<='.'){if(yych<='-' ){gotoCase=32;continue;};{gotoCase=33;continue;};}else{if(yych<='/'){gotoCase=34 ;continue;};if(yych<='0'){gotoCase=36;continue;};{gotoCase=38;continue;};}}}}els e{if(yych<='\\'){if(yych<='>'){if(yych<=';'){gotoCase=27;continue;};if(yych<='<' ){gotoCase=39;continue;};if(yych<='='){gotoCase=40;continue;};{gotoCase=41;conti nue;};}else{if(yych<='@'){if(yych<='?'){gotoCase=27;continue;};}else{if(yych<='Z '){gotoCase=22;continue;};if(yych<='['){gotoCase=27;continue;};{gotoCase=42;cont inue;};}}}else{if(yych<='z'){if(yych<='^'){if(yych<=']'){gotoCase=27;continue;}; {gotoCase=43;continue;};}else{if(yych!='`'){gotoCase=22;continue;};}}else{if(yyc h<='|'){if(yych<='{'){gotoCase=27;continue;};{gotoCase=44;continue;};}else{if(yy ch<='~'){gotoCase=27;continue;};if(yych>=0x80){gotoCase=22;continue;};}}}}
138 case 15:++cursor;case 16:{this.tokenType=null;return cursor;}
139 case 17:++cursor;yych=this._charAt(cursor);{gotoCase=119;continue;};case 18:{thi s.tokenType="whitespace";return cursor;}
140 case 19:++cursor;if((yych=this._charAt(cursor))=='='){gotoCase=117;continue;};ca se 20:this.setLexCondition(this._lexConditions.NODIV);{var token=this._line.char At(cursorOnEnter);if(token==="{")
141 this.tokenType="block-start";else if(token==="}")
142 this.tokenType="block-end";else if(token==="(")
143 this.tokenType="brace-start";else this.tokenType=null;return cursor;}
144 case 21:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);if(yych=='\n'){gotoCase= 16;continue;};if(yych=='\r'){gotoCase=16;continue;};{gotoCase=109;continue;};cas e 22:yyaccept=1;yych=this._charAt(YYMARKER=++cursor);{gotoCase=52;continue;};cas e 23:{var token=this._line.substring(cursorOnEnter,cursor);if(WebInspector.Sourc eJavaScriptTokenizer.GlobalObjectValueProperties.hasOwnProperty(token))
145 this.tokenType=WebInspector.SourceJavaScriptTokenizer.GlobalObjectValuePropertie s[token];else if(WebInspector.SourceJavaScriptTokenizer.Keywords[token]===true&& token!=="__proto__")
146 this.tokenType="javascript-keyword";else
147 this.tokenType="javascript-ident";return cursor;}
148 case 24:yych=this._charAt(++cursor);if(yych=='='){gotoCase=45;continue;};{gotoCa se=20;continue;};case 25:yych=this._charAt(++cursor);if(yych=='&'){gotoCase=45;c ontinue;};if(yych=='='){gotoCase=45;continue;};{gotoCase=20;continue;};case 26:y yaccept=0;yych=this._charAt(YYMARKER=++cursor);if(yych=='\n'){gotoCase=16;contin ue;};if(yych=='\r'){gotoCase=16;continue;};{gotoCase=98;continue;};case 27:yych= this._charAt(++cursor);{gotoCase=20;continue;};case 28:++cursor;{this.tokenType= "brace-end";return cursor;}
149 case 30:yych=this._charAt(++cursor);if(yych=='='){gotoCase=45;continue;};{gotoCa se=20;continue;};case 31:yych=this._charAt(++cursor);if(yych=='+'){gotoCase=45;c ontinue;};if(yych=='='){gotoCase=45;continue;};{gotoCase=20;continue;};case 32:y ych=this._charAt(++cursor);if(yych=='-'){gotoCase=45;continue;};if(yych=='='){go toCase=45;continue;};{gotoCase=20;continue;};case 33:yych=this._charAt(++cursor) ;if(yych<='/'){gotoCase=20;continue;};if(yych<='9'){gotoCase=91;continue;};{goto Case=20;continue;};case 34:yyaccept=2;yych=this._charAt(YYMARKER=++cursor);if(yy ch<='.'){if(yych=='*'){gotoCase=80;continue;};}else{if(yych<='/'){gotoCase=82;co ntinue;};if(yych=='='){gotoCase=79;continue;};}
150 case 35:this.setLexCondition(this._lexConditions.NODIV);{this.tokenType=null;ret urn cursor;}
151 case 36:yyaccept=3;yych=this._charAt(YYMARKER=++cursor);if(yych<='E'){if(yych<=' /'){if(yych=='.'){gotoCase=65;continue;};}else{if(yych<='7'){gotoCase=74;continu e;};if(yych>='E'){gotoCase=64;continue;};}}else{if(yych<='d'){if(yych=='X'){goto Case=76;continue;};}else{if(yych<='e'){gotoCase=64;continue;};if(yych=='x'){goto Case=76;continue;};}}
152 case 37:{this.tokenType="javascript-number";return cursor;}
153 case 38:yyaccept=3;yych=this._charAt(YYMARKER=++cursor);if(yych<='9'){if(yych==' .'){gotoCase=65;continue;};if(yych<='/'){gotoCase=37;continue;};{gotoCase=62;con tinue;};}else{if(yych<='E'){if(yych<='D'){gotoCase=37;continue;};{gotoCase=64;co ntinue;};}else{if(yych=='e'){gotoCase=64;continue;};{gotoCase=37;continue;};}}
154 case 39:yych=this._charAt(++cursor);if(yych<=';'){gotoCase=20;continue;};if(yych <='<'){gotoCase=61;continue;};if(yych<='='){gotoCase=45;continue;};{gotoCase=20; continue;};case 40:yych=this._charAt(++cursor);if(yych=='='){gotoCase=60;continu e;};{gotoCase=20;continue;};case 41:yych=this._charAt(++cursor);if(yych<='<'){go toCase=20;continue;};if(yych<='='){gotoCase=45;continue;};if(yych<='>'){gotoCase =58;continue;};{gotoCase=20;continue;};case 42:yyaccept=0;yych=this._charAt(YYMA RKER=++cursor);if(yych=='u'){gotoCase=46;continue;};{gotoCase=16;continue;};case 43:yych=this._charAt(++cursor);if(yych=='='){gotoCase=45;continue;};{gotoCase=2 0;continue;};case 44:yych=this._charAt(++cursor);if(yych=='='){gotoCase=45;conti nue;};if(yych!='|'){gotoCase=20;continue;};case 45:yych=this._charAt(++cursor);{ gotoCase=20;continue;};case 46:yych=this._charAt(++cursor);if(yych<='@'){if(yych <='/'){gotoCase=47;continue;};if(yych<='9'){gotoCase=48;continue;};}else{if(yych <='F'){gotoCase=48;continue;};if(yych<='`'){gotoCase=47;continue;};if(yych<='f') {gotoCase=48;continue;};}
155 case 47:cursor=YYMARKER;if(yyaccept<=1){if(yyaccept<=0){{gotoCase=16;continue;}; }else{{gotoCase=23;continue;};}}else{if(yyaccept<=2){{gotoCase=35;continue;};}el se{{gotoCase=37;continue;};}}
156 case 48:yych=this._charAt(++cursor);if(yych<='@'){if(yych<='/'){gotoCase=47;cont inue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase=49;cont inue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;continue;} ;}
157 case 49:yych=this._charAt(++cursor);if(yych<='@'){if(yych<='/'){gotoCase=47;cont inue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase=50;cont inue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;continue;} ;}
158 case 50:yych=this._charAt(++cursor);if(yych<='@'){if(yych<='/'){gotoCase=47;cont inue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase=51;cont inue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;continue;} ;}
159 case 51:yyaccept=1;YYMARKER=++cursor;yych=this._charAt(cursor);case 52:if(yych<= '['){if(yych<='/'){if(yych=='$'){gotoCase=51;continue;};{gotoCase=23;continue;}; }else{if(yych<='9'){gotoCase=51;continue;};if(yych<='@'){gotoCase=23;continue;}; if(yych<='Z'){gotoCase=51;continue;};{gotoCase=23;continue;};}}else{if(yych<='_' ){if(yych<='\\'){gotoCase=53;continue;};if(yych<='^'){gotoCase=23;continue;};{go toCase=51;continue;};}else{if(yych<='`'){gotoCase=23;continue;};if(yych<='z'){go toCase=51;continue;};if(yych<=String.fromCharCode(0x7F)){gotoCase=23;continue;}; {gotoCase=51;continue;};}}
160 case 53:++cursor;yych=this._charAt(cursor);if(yych!='u'){gotoCase=47;continue;}; ++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase=47;conti nue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase=55;conti nue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;continue;}; }
161 case 55:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase= 47;continue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase= 56;continue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;con tinue;};}
162 case 56:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase= 47;continue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase= 57;continue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;con tinue;};}
163 case 57:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase= 47;continue;};if(yych<='9'){gotoCase=51;continue;};{gotoCase=47;continue;};}else {if(yych<='F'){gotoCase=51;continue;};if(yych<='`'){gotoCase=47;continue;};if(yy ch<='f'){gotoCase=51;continue;};{gotoCase=47;continue;};}
164 case 58:yych=this._charAt(++cursor);if(yych<='<'){gotoCase=20;continue;};if(yych <='='){gotoCase=45;continue;};if(yych>='?'){gotoCase=20;continue;};yych=this._ch arAt(++cursor);if(yych=='='){gotoCase=45;continue;};{gotoCase=20;continue;};case 60:yych=this._charAt(++cursor);if(yych=='='){gotoCase=45;continue;};{gotoCase=2 0;continue;};case 61:yych=this._charAt(++cursor);if(yych=='='){gotoCase=45;conti nue;};{gotoCase=20;continue;};case 62:yyaccept=3;YYMARKER=++cursor;yych=this._ch arAt(cursor);if(yych<='9'){if(yych=='.'){gotoCase=65;continue;};if(yych<='/'){go toCase=37;continue;};{gotoCase=62;continue;};}else{if(yych<='E'){if(yych<='D'){g otoCase=37;continue;};}else{if(yych!='e'){gotoCase=37;continue;};}}
165 case 64:yych=this._charAt(++cursor);if(yych<=','){if(yych=='+'){gotoCase=71;cont inue;};{gotoCase=47;continue;};}else{if(yych<='-'){gotoCase=71;continue;};if(yyc h<='/'){gotoCase=47;continue;};if(yych<='9'){gotoCase=72;continue;};{gotoCase=47 ;continue;};}
166 case 65:yyaccept=3;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych<='D'){if( yych<='/'){gotoCase=37;continue;};if(yych<='9'){gotoCase=65;continue;};{gotoCase =37;continue;};}else{if(yych<='E'){gotoCase=67;continue;};if(yych!='e'){gotoCase =37;continue;};}
167 case 67:yych=this._charAt(++cursor);if(yych<=','){if(yych!='+'){gotoCase=47;cont inue;};}else{if(yych<='-'){gotoCase=68;continue;};if(yych<='/'){gotoCase=47;cont inue;};if(yych<='9'){gotoCase=69;continue;};{gotoCase=47;continue;};}
168 case 68:yych=this._charAt(++cursor);if(yych<='/'){gotoCase=47;continue;};if(yych >=':'){gotoCase=47;continue;};case 69:++cursor;yych=this._charAt(cursor);if(yych <='/'){gotoCase=37;continue;};if(yych<='9'){gotoCase=69;continue;};{gotoCase=37; continue;};case 71:yych=this._charAt(++cursor);if(yych<='/'){gotoCase=47;continu e;};if(yych>=':'){gotoCase=47;continue;};case 72:++cursor;yych=this._charAt(curs or);if(yych<='/'){gotoCase=37;continue;};if(yych<='9'){gotoCase=72;continue;};{g otoCase=37;continue;};case 74:++cursor;yych=this._charAt(cursor);if(yych<='/'){g otoCase=37;continue;};if(yych<='7'){gotoCase=74;continue;};{gotoCase=37;continue ;};case 76:yych=this._charAt(++cursor);if(yych<='@'){if(yych<='/'){gotoCase=47;c ontinue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase=77;c ontinue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;continu e;};}
169 case 77:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase= 37;continue;};if(yych<='9'){gotoCase=77;continue;};{gotoCase=37;continue;};}else {if(yych<='F'){gotoCase=77;continue;};if(yych<='`'){gotoCase=37;continue;};if(yy ch<='f'){gotoCase=77;continue;};{gotoCase=37;continue;};}
170 case 79:yych=this._charAt(++cursor);{gotoCase=35;continue;};case 80:++cursor;yyc h=this._charAt(cursor);if(yych<='\f'){if(yych=='\n'){gotoCase=87;continue;};{got oCase=80;continue;};}else{if(yych<='\r'){gotoCase=87;continue;};if(yych=='*'){go toCase=85;continue;};{gotoCase=80;continue;};}
171 case 82:++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=84;continue;} ;if(yych!='\r'){gotoCase=82;continue;};case 84:{this.tokenType="javascript-comme nt";return cursor;}
172 case 85:++cursor;yych=this._charAt(cursor);if(yych=='*'){gotoCase=85;continue;}; if(yych=='/'){gotoCase=89;continue;};{gotoCase=80;continue;};case 87:++cursor;th is.setLexCondition(this._lexConditions.COMMENT);{this.tokenType="javascript-comm ent";return cursor;}
173 case 89:++cursor;{this.tokenType="javascript-comment";return cursor;}
174 case 91:yyaccept=3;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych<='D'){if( yych<='/'){gotoCase=37;continue;};if(yych<='9'){gotoCase=91;continue;};{gotoCase =37;continue;};}else{if(yych<='E'){gotoCase=93;continue;};if(yych!='e'){gotoCase =37;continue;};}
175 case 93:yych=this._charAt(++cursor);if(yych<=','){if(yych!='+'){gotoCase=47;cont inue;};}else{if(yych<='-'){gotoCase=94;continue;};if(yych<='/'){gotoCase=47;cont inue;};if(yych<='9'){gotoCase=95;continue;};{gotoCase=47;continue;};}
176 case 94:yych=this._charAt(++cursor);if(yych<='/'){gotoCase=47;continue;};if(yych >=':'){gotoCase=47;continue;};case 95:++cursor;yych=this._charAt(cursor);if(yych <='/'){gotoCase=37;continue;};if(yych<='9'){gotoCase=95;continue;};{gotoCase=37; continue;};case 97:++cursor;yych=this._charAt(cursor);case 98:if(yych<='\r'){if( yych=='\n'){gotoCase=47;continue;};if(yych<='\f'){gotoCase=97;continue;};{gotoCa se=47;continue;};}else{if(yych<='\''){if(yych<='&'){gotoCase=97;continue;};{goto Case=100;continue;};}else{if(yych!='\\'){gotoCase=97;continue;};}}
177 ++cursor;yych=this._charAt(cursor);if(yych<='a'){if(yych<='!'){if(yych<='\n'){if (yych<='\t'){gotoCase=47;continue;};{gotoCase=103;continue;};}else{if(yych=='\r' ){gotoCase=103;continue;};{gotoCase=47;continue;};}}else{if(yych<='\''){if(yych< ='"'){gotoCase=97;continue;};if(yych<='&'){gotoCase=47;continue;};{gotoCase=97;c ontinue;};}else{if(yych=='\\'){gotoCase=97;continue;};{gotoCase=47;continue;};}} }else{if(yych<='q'){if(yych<='f'){if(yych<='b'){gotoCase=97;continue;};if(yych<= 'e'){gotoCase=47;continue;};{gotoCase=97;continue;};}else{if(yych=='n'){gotoCase =97;continue;};{gotoCase=47;continue;};}}else{if(yych<='t'){if(yych=='s'){gotoCa se=47;continue;};{gotoCase=97;continue;};}else{if(yych<='u'){gotoCase=102;contin ue;};if(yych<='v'){gotoCase=97;continue;};{gotoCase=47;continue;};}}}
178 case 100:++cursor;{this.tokenType="javascript-string";return cursor;}
179 case 102:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =47;continue;};if(yych<='9'){gotoCase=105;continue;};{gotoCase=47;continue;};}el se{if(yych<='F'){gotoCase=105;continue;};if(yych<='`'){gotoCase=47;continue;};if (yych<='f'){gotoCase=105;continue;};{gotoCase=47;continue;};}
180 case 103:++cursor;this.setLexCondition(this._lexConditions.SSTRING);{this.tokenT ype="javascript-string";return cursor;}
181 case 105:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =47;continue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase =106;continue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;c ontinue;};}
182 case 106:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =47;continue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase =107;continue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;c ontinue;};}
183 case 107:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =47;continue;};if(yych<='9'){gotoCase=97;continue;};{gotoCase=47;continue;};}els e{if(yych<='F'){gotoCase=97;continue;};if(yych<='`'){gotoCase=47;continue;};if(y ych<='f'){gotoCase=97;continue;};{gotoCase=47;continue;};}
184 case 108:++cursor;yych=this._charAt(cursor);case 109:if(yych<='\r'){if(yych=='\n '){gotoCase=47;continue;};if(yych<='\f'){gotoCase=108;continue;};{gotoCase=47;co ntinue;};}else{if(yych<='"'){if(yych<='!'){gotoCase=108;continue;};{gotoCase=100 ;continue;};}else{if(yych!='\\'){gotoCase=108;continue;};}}
185 ++cursor;yych=this._charAt(cursor);if(yych<='a'){if(yych<='!'){if(yych<='\n'){if (yych<='\t'){gotoCase=47;continue;};{gotoCase=112;continue;};}else{if(yych=='\r' ){gotoCase=112;continue;};{gotoCase=47;continue;};}}else{if(yych<='\''){if(yych< ='"'){gotoCase=108;continue;};if(yych<='&'){gotoCase=47;continue;};{gotoCase=108 ;continue;};}else{if(yych=='\\'){gotoCase=108;continue;};{gotoCase=47;continue;} ;}}}else{if(yych<='q'){if(yych<='f'){if(yych<='b'){gotoCase=108;continue;};if(yy ch<='e'){gotoCase=47;continue;};{gotoCase=108;continue;};}else{if(yych=='n'){got oCase=108;continue;};{gotoCase=47;continue;};}}else{if(yych<='t'){if(yych=='s'){ gotoCase=47;continue;};{gotoCase=108;continue;};}else{if(yych<='u'){gotoCase=111 ;continue;};if(yych<='v'){gotoCase=108;continue;};{gotoCase=47;continue;};}}}
186 case 111:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =47;continue;};if(yych<='9'){gotoCase=114;continue;};{gotoCase=47;continue;};}el se{if(yych<='F'){gotoCase=114;continue;};if(yych<='`'){gotoCase=47;continue;};if (yych<='f'){gotoCase=114;continue;};{gotoCase=47;continue;};}
187 case 112:++cursor;this.setLexCondition(this._lexConditions.DSTRING);{this.tokenT ype="javascript-string";return cursor;}
188 case 114:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =47;continue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase =115;continue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;c ontinue;};}
189 case 115:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =47;continue;};if(yych>=':'){gotoCase=47;continue;};}else{if(yych<='F'){gotoCase =116;continue;};if(yych<='`'){gotoCase=47;continue;};if(yych>='g'){gotoCase=47;c ontinue;};}
190 case 116:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =47;continue;};if(yych<='9'){gotoCase=108;continue;};{gotoCase=47;continue;};}el se{if(yych<='F'){gotoCase=108;continue;};if(yych<='`'){gotoCase=47;continue;};if (yych<='f'){gotoCase=108;continue;};{gotoCase=47;continue;};}
191 case 117:yych=this._charAt(++cursor);if(yych=='='){gotoCase=45;continue;};{gotoC ase=20;continue;};case 118:++cursor;yych=this._charAt(cursor);case 119:if(yych== ' '){gotoCase=118;continue;};{gotoCase=18;continue;};case this.case_DSTRING:yych =this._charAt(cursor);if(yych<='\r'){if(yych=='\n'){gotoCase=124;continue;};if(y ych<='\f'){gotoCase=123;continue;};{gotoCase=124;continue;};}else{if(yych<='"'){ if(yych<='!'){gotoCase=123;continue;};{gotoCase=126;continue;};}else{if(yych=='\ \'){gotoCase=128;continue;};{gotoCase=123;continue;};}}
192 case 122:{this.tokenType="javascript-string";return cursor;}
193 case 123:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);{gotoCase=130;continue; };case 124:++cursor;case 125:{this.tokenType=null;return cursor;}
194 case 126:++cursor;case 127:this.setLexCondition(this._lexConditions.NODIV);{this .tokenType="javascript-string";return cursor;}
195 case 128:yyaccept=1;yych=this._charAt(YYMARKER=++cursor);if(yych<='e'){if(yych<= '\''){if(yych=='"'){gotoCase=129;continue;};if(yych<='&'){gotoCase=125;continue; };}else{if(yych<='\\'){if(yych<='['){gotoCase=125;continue;};}else{if(yych!='b') {gotoCase=125;continue;};}}}else{if(yych<='r'){if(yych<='m'){if(yych>='g'){gotoC ase=125;continue;};}else{if(yych<='n'){gotoCase=129;continue;};if(yych<='q'){got oCase=125;continue;};}}else{if(yych<='t'){if(yych<='s'){gotoCase=125;continue;}; }else{if(yych<='u'){gotoCase=131;continue;};if(yych>='w'){gotoCase=125;continue; };}}}
196 case 129:yyaccept=0;YYMARKER=++cursor;yych=this._charAt(cursor);case 130:if(yych <='\r'){if(yych=='\n'){gotoCase=122;continue;};if(yych<='\f'){gotoCase=129;conti nue;};{gotoCase=122;continue;};}else{if(yych<='"'){if(yych<='!'){gotoCase=129;co ntinue;};{gotoCase=137;continue;};}else{if(yych=='\\'){gotoCase=136;continue;};{ gotoCase=129;continue;};}}
197 case 131:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =132;continue;};if(yych<='9'){gotoCase=133;continue;};}else{if(yych<='F'){gotoCa se=133;continue;};if(yych<='`'){gotoCase=132;continue;};if(yych<='f'){gotoCase=1 33;continue;};}
198 case 132:cursor=YYMARKER;if(yyaccept<=0){{gotoCase=122;continue;};}else{{gotoCas e=125;continue;};}
199 case 133:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =132;continue;};if(yych>=':'){gotoCase=132;continue;};}else{if(yych<='F'){gotoCa se=134;continue;};if(yych<='`'){gotoCase=132;continue;};if(yych>='g'){gotoCase=1 32;continue;};}
200 case 134:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =132;continue;};if(yych>=':'){gotoCase=132;continue;};}else{if(yych<='F'){gotoCa se=135;continue;};if(yych<='`'){gotoCase=132;continue;};if(yych>='g'){gotoCase=1 32;continue;};}
201 case 135:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =132;continue;};if(yych<='9'){gotoCase=129;continue;};{gotoCase=132;continue;};} else{if(yych<='F'){gotoCase=129;continue;};if(yych<='`'){gotoCase=132;continue;} ;if(yych<='f'){gotoCase=129;continue;};{gotoCase=132;continue;};}
202 case 136:++cursor;yych=this._charAt(cursor);if(yych<='e'){if(yych<='\''){if(yych =='"'){gotoCase=129;continue;};if(yych<='&'){gotoCase=132;continue;};{gotoCase=1 29;continue;};}else{if(yych<='\\'){if(yych<='['){gotoCase=132;continue;};{gotoCa se=129;continue;};}else{if(yych=='b'){gotoCase=129;continue;};{gotoCase=132;cont inue;};}}}else{if(yych<='r'){if(yych<='m'){if(yych<='f'){gotoCase=129;continue;} ;{gotoCase=132;continue;};}else{if(yych<='n'){gotoCase=129;continue;};if(yych<=' q'){gotoCase=132;continue;};{gotoCase=129;continue;};}}else{if(yych<='t'){if(yyc h<='s'){gotoCase=132;continue;};{gotoCase=129;continue;};}else{if(yych<='u'){got oCase=131;continue;};if(yych<='v'){gotoCase=129;continue;};{gotoCase=132;continu e;};}}}
203 case 137:++cursor;yych=this._charAt(cursor);{gotoCase=127;continue;};case this.c ase_NODIV:yych=this._charAt(cursor);if(yych<='9'){if(yych<='\''){if(yych<='"'){i f(yych<=String.fromCharCode(0x1F)){gotoCase=140;continue;};if(yych<=' '){gotoCas e=142;continue;};if(yych<='!'){gotoCase=144;continue;};{gotoCase=146;continue;}; }else{if(yych<='$'){if(yych>='$'){gotoCase=147;continue;};}else{if(yych<='%'){go toCase=149;continue;};if(yych<='&'){gotoCase=150;continue;};{gotoCase=151;contin ue;};}}}else{if(yych<=','){if(yych<=')'){if(yych<='('){gotoCase=152;continue;};{ gotoCase=153;continue;};}else{if(yych<='*'){gotoCase=155;continue;};if(yych<='+' ){gotoCase=156;continue;};{gotoCase=152;continue;};}}else{if(yych<='.'){if(yych< ='-'){gotoCase=157;continue;};{gotoCase=158;continue;};}else{if(yych<='/'){gotoC ase=159;continue;};if(yych<='0'){gotoCase=160;continue;};{gotoCase=162;continue; };}}}}else{if(yych<='\\'){if(yych<='>'){if(yych<=';'){gotoCase=152;continue;};if (yych<='<'){gotoCase=163;continue;};if(yych<='='){gotoCase=164;continue;};{gotoC ase=165;continue;};}else{if(yych<='@'){if(yych<='?'){gotoCase=152;continue;};}el se{if(yych<='Z'){gotoCase=147;continue;};if(yych<='['){gotoCase=152;continue;};{ gotoCase=166;continue;};}}}else{if(yych<='z'){if(yych<='^'){if(yych<=']'){gotoCa se=152;continue;};{gotoCase=167;continue;};}else{if(yych!='`'){gotoCase=147;cont inue;};}}else{if(yych<='|'){if(yych<='{'){gotoCase=152;continue;};{gotoCase=168; continue;};}else{if(yych<='~'){gotoCase=152;continue;};if(yych>=0x80){gotoCase=1 47;continue;};}}}}
204 case 140:++cursor;case 141:{this.tokenType=null;return cursor;}
205 case 142:++cursor;yych=this._charAt(cursor);{gotoCase=268;continue;};case 143:{t his.tokenType="whitespace";return cursor;}
206 case 144:++cursor;if((yych=this._charAt(cursor))=='='){gotoCase=266;continue;};c ase 145:{var token=this._line.charAt(cursorOnEnter);if(token==="{")
207 this.tokenType="block-start";else if(token==="}")
208 this.tokenType="block-end";else if(token==="(")
209 this.tokenType="brace-start";else this.tokenType=null;return cursor;}
210 case 146:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);if(yych=='\n'){gotoCase =141;continue;};if(yych=='\r'){gotoCase=141;continue;};{gotoCase=258;continue;}; case 147:yyaccept=1;yych=this._charAt(YYMARKER=++cursor);{gotoCase=176;continue; };case 148:this.setLexCondition(this._lexConditions.DIV);{var token=this._line.s ubstring(cursorOnEnter,cursor);if(WebInspector.SourceJavaScriptTokenizer.GlobalO bjectValueProperties.hasOwnProperty(token))
211 this.tokenType=WebInspector.SourceJavaScriptTokenizer.GlobalObjectValuePropertie s[token];else if(WebInspector.SourceJavaScriptTokenizer.Keywords[token]===true&& token!=="__proto__")
212 this.tokenType="javascript-keyword";else
213 this.tokenType="javascript-ident";return cursor;}
214 case 149:yych=this._charAt(++cursor);if(yych=='='){gotoCase=169;continue;};{goto Case=145;continue;};case 150:yych=this._charAt(++cursor);if(yych=='&'){gotoCase= 169;continue;};if(yych=='='){gotoCase=169;continue;};{gotoCase=145;continue;};ca se 151:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);if(yych=='\n'){gotoCase=1 41;continue;};if(yych=='\r'){gotoCase=141;continue;};{gotoCase=247;continue;};ca se 152:yych=this._charAt(++cursor);{gotoCase=145;continue;};case 153:++cursor;th is.setLexCondition(this._lexConditions.DIV);{this.tokenType="brace-end";return c ursor;}
215 case 155:yych=this._charAt(++cursor);if(yych=='='){gotoCase=169;continue;};{goto Case=145;continue;};case 156:yych=this._charAt(++cursor);if(yych=='+'){gotoCase= 169;continue;};if(yych=='='){gotoCase=169;continue;};{gotoCase=145;continue;};ca se 157:yych=this._charAt(++cursor);if(yych=='-'){gotoCase=169;continue;};if(yych =='='){gotoCase=169;continue;};{gotoCase=145;continue;};case 158:yych=this._char At(++cursor);if(yych<='/'){gotoCase=145;continue;};if(yych<='9'){gotoCase=240;co ntinue;};{gotoCase=145;continue;};case 159:yyaccept=0;yych=this._charAt(YYMARKER =++cursor);if(yych<='*'){if(yych<='\f'){if(yych=='\n'){gotoCase=141;continue;};{ gotoCase=203;continue;};}else{if(yych<='\r'){gotoCase=141;continue;};if(yych<=') '){gotoCase=203;continue;};{gotoCase=208;continue;};}}else{if(yych<='Z'){if(yych =='/'){gotoCase=210;continue;};{gotoCase=203;continue;};}else{if(yych<='['){goto Case=206;continue;};if(yych<='\\'){gotoCase=205;continue;};if(yych<=']'){gotoCas e=141;continue;};{gotoCase=203;continue;};}}
216 case 160:yyaccept=2;yych=this._charAt(YYMARKER=++cursor);if(yych<='E'){if(yych<= '/'){if(yych=='.'){gotoCase=189;continue;};}else{if(yych<='7'){gotoCase=198;cont inue;};if(yych>='E'){gotoCase=188;continue;};}}else{if(yych<='d'){if(yych=='X'){ gotoCase=200;continue;};}else{if(yych<='e'){gotoCase=188;continue;};if(yych=='x' ){gotoCase=200;continue;};}}
217 case 161:this.setLexCondition(this._lexConditions.DIV);{this.tokenType="javascri pt-number";return cursor;}
218 case 162:yyaccept=2;yych=this._charAt(YYMARKER=++cursor);if(yych<='9'){if(yych== '.'){gotoCase=189;continue;};if(yych<='/'){gotoCase=161;continue;};{gotoCase=186 ;continue;};}else{if(yych<='E'){if(yych<='D'){gotoCase=161;continue;};{gotoCase= 188;continue;};}else{if(yych=='e'){gotoCase=188;continue;};{gotoCase=161;continu e;};}}
219 case 163:yych=this._charAt(++cursor);if(yych<=';'){gotoCase=145;continue;};if(yy ch<='<'){gotoCase=185;continue;};if(yych<='='){gotoCase=169;continue;};{gotoCase =145;continue;};case 164:yych=this._charAt(++cursor);if(yych=='='){gotoCase=184; continue;};{gotoCase=145;continue;};case 165:yych=this._charAt(++cursor);if(yych <='<'){gotoCase=145;continue;};if(yych<='='){gotoCase=169;continue;};if(yych<='> '){gotoCase=182;continue;};{gotoCase=145;continue;};case 166:yyaccept=0;yych=thi s._charAt(YYMARKER=++cursor);if(yych=='u'){gotoCase=170;continue;};{gotoCase=141 ;continue;};case 167:yych=this._charAt(++cursor);if(yych=='='){gotoCase=169;cont inue;};{gotoCase=145;continue;};case 168:yych=this._charAt(++cursor);if(yych=='= '){gotoCase=169;continue;};if(yych!='|'){gotoCase=145;continue;};case 169:yych=t his._charAt(++cursor);{gotoCase=145;continue;};case 170:yych=this._charAt(++curs or);if(yych<='@'){if(yych<='/'){gotoCase=171;continue;};if(yych<='9'){gotoCase=1 72;continue;};}else{if(yych<='F'){gotoCase=172;continue;};if(yych<='`'){gotoCase =171;continue;};if(yych<='f'){gotoCase=172;continue;};}
220 case 171:cursor=YYMARKER;if(yyaccept<=1){if(yyaccept<=0){{gotoCase=141;continue; };}else{{gotoCase=148;continue;};}}else{if(yyaccept<=2){{gotoCase=161;continue;} ;}else{{gotoCase=223;continue;};}}
221 case 172:yych=this._charAt(++cursor);if(yych<='@'){if(yych<='/'){gotoCase=171;co ntinue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCase=173; continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=171;cont inue;};}
222 case 173:yych=this._charAt(++cursor);if(yych<='@'){if(yych<='/'){gotoCase=171;co ntinue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCase=174; continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=171;cont inue;};}
223 case 174:yych=this._charAt(++cursor);if(yych<='@'){if(yych<='/'){gotoCase=171;co ntinue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCase=175; continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=171;cont inue;};}
224 case 175:yyaccept=1;YYMARKER=++cursor;yych=this._charAt(cursor);case 176:if(yych <='['){if(yych<='/'){if(yych=='$'){gotoCase=175;continue;};{gotoCase=148;continu e;};}else{if(yych<='9'){gotoCase=175;continue;};if(yych<='@'){gotoCase=148;conti nue;};if(yych<='Z'){gotoCase=175;continue;};{gotoCase=148;continue;};}}else{if(y ych<='_'){if(yych<='\\'){gotoCase=177;continue;};if(yych<='^'){gotoCase=148;cont inue;};{gotoCase=175;continue;};}else{if(yych<='`'){gotoCase=148;continue;};if(y ych<='z'){gotoCase=175;continue;};if(yych<=String.fromCharCode(0x7F)){gotoCase=1 48;continue;};{gotoCase=175;continue;};}}
225 case 177:++cursor;yych=this._charAt(cursor);if(yych!='u'){gotoCase=171;continue; };++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase=171;co ntinue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCase=179; continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=171;cont inue;};}
226 case 179:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCa se=180;continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=1 71;continue;};}
227 case 180:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCa se=181;continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=1 71;continue;};}
228 case 181:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych<='9'){gotoCase=175;continue;};{gotoCase=171;continue;};} else{if(yych<='F'){gotoCase=175;continue;};if(yych<='`'){gotoCase=171;continue;} ;if(yych<='f'){gotoCase=175;continue;};{gotoCase=171;continue;};}
229 case 182:yych=this._charAt(++cursor);if(yych<='<'){gotoCase=145;continue;};if(yy ch<='='){gotoCase=169;continue;};if(yych>='?'){gotoCase=145;continue;};yych=this ._charAt(++cursor);if(yych=='='){gotoCase=169;continue;};{gotoCase=145;continue; };case 184:yych=this._charAt(++cursor);if(yych=='='){gotoCase=169;continue;};{go toCase=145;continue;};case 185:yych=this._charAt(++cursor);if(yych=='='){gotoCas e=169;continue;};{gotoCase=145;continue;};case 186:yyaccept=2;YYMARKER=++cursor; yych=this._charAt(cursor);if(yych<='9'){if(yych=='.'){gotoCase=189;continue;};if (yych<='/'){gotoCase=161;continue;};{gotoCase=186;continue;};}else{if(yych<='E') {if(yych<='D'){gotoCase=161;continue;};}else{if(yych!='e'){gotoCase=161;continue ;};}}
230 case 188:yych=this._charAt(++cursor);if(yych<=','){if(yych=='+'){gotoCase=195;co ntinue;};{gotoCase=171;continue;};}else{if(yych<='-'){gotoCase=195;continue;};if (yych<='/'){gotoCase=171;continue;};if(yych<='9'){gotoCase=196;continue;};{gotoC ase=171;continue;};}
231 case 189:yyaccept=2;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych<='D'){if (yych<='/'){gotoCase=161;continue;};if(yych<='9'){gotoCase=189;continue;};{gotoC ase=161;continue;};}else{if(yych<='E'){gotoCase=191;continue;};if(yych!='e'){got oCase=161;continue;};}
232 case 191:yych=this._charAt(++cursor);if(yych<=','){if(yych!='+'){gotoCase=171;co ntinue;};}else{if(yych<='-'){gotoCase=192;continue;};if(yych<='/'){gotoCase=171; continue;};if(yych<='9'){gotoCase=193;continue;};{gotoCase=171;continue;};}
233 case 192:yych=this._charAt(++cursor);if(yych<='/'){gotoCase=171;continue;};if(yy ch>=':'){gotoCase=171;continue;};case 193:++cursor;yych=this._charAt(cursor);if( yych<='/'){gotoCase=161;continue;};if(yych<='9'){gotoCase=193;continue;};{gotoCa se=161;continue;};case 195:yych=this._charAt(++cursor);if(yych<='/'){gotoCase=17 1;continue;};if(yych>=':'){gotoCase=171;continue;};case 196:++cursor;yych=this._ charAt(cursor);if(yych<='/'){gotoCase=161;continue;};if(yych<='9'){gotoCase=196; continue;};{gotoCase=161;continue;};case 198:++cursor;yych=this._charAt(cursor); if(yych<='/'){gotoCase=161;continue;};if(yych<='7'){gotoCase=198;continue;};{got oCase=161;continue;};case 200:yych=this._charAt(++cursor);if(yych<='@'){if(yych< ='/'){gotoCase=171;continue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yyc h<='F'){gotoCase=201;continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>=' g'){gotoCase=171;continue;};}
234 case 201:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =161;continue;};if(yych<='9'){gotoCase=201;continue;};{gotoCase=161;continue;};} else{if(yych<='F'){gotoCase=201;continue;};if(yych<='`'){gotoCase=161;continue;} ;if(yych<='f'){gotoCase=201;continue;};{gotoCase=161;continue;};}
235 case 203:++cursor;yych=this._charAt(cursor);if(yych<='.'){if(yych<='\n'){if(yych <='\t'){gotoCase=203;continue;};{gotoCase=171;continue;};}else{if(yych=='\r'){go toCase=171;continue;};{gotoCase=203;continue;};}}else{if(yych<='['){if(yych<='/' ){gotoCase=226;continue;};if(yych<='Z'){gotoCase=203;continue;};{gotoCase=234;co ntinue;};}else{if(yych<='\\'){gotoCase=233;continue;};if(yych<=']'){gotoCase=171 ;continue;};{gotoCase=203;continue;};}}
236 case 205:yych=this._charAt(++cursor);if(yych=='\n'){gotoCase=171;continue;};if(y ych=='\r'){gotoCase=171;continue;};{gotoCase=203;continue;};case 206:++cursor;yy ch=this._charAt(cursor);if(yych<='*'){if(yych<='\f'){if(yych=='\n'){gotoCase=171 ;continue;};{gotoCase=206;continue;};}else{if(yych<='\r'){gotoCase=171;continue; };if(yych<=')'){gotoCase=206;continue;};{gotoCase=171;continue;};}}else{if(yych< ='['){if(yych=='/'){gotoCase=171;continue;};{gotoCase=206;continue;};}else{if(yy ch<='\\'){gotoCase=221;continue;};if(yych<=']'){gotoCase=219;continue;};{gotoCas e=206;continue;};}}
237 case 208:++cursor;yych=this._charAt(cursor);if(yych<='\f'){if(yych=='\n'){gotoCa se=215;continue;};{gotoCase=208;continue;};}else{if(yych<='\r'){gotoCase=215;con tinue;};if(yych=='*'){gotoCase=213;continue;};{gotoCase=208;continue;};}
238 case 210:++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=212;continue ;};if(yych!='\r'){gotoCase=210;continue;};case 212:{this.tokenType="javascript-c omment";return cursor;}
239 case 213:++cursor;yych=this._charAt(cursor);if(yych=='*'){gotoCase=213;continue; };if(yych=='/'){gotoCase=217;continue;};{gotoCase=208;continue;};case 215:++curs or;this.setLexCondition(this._lexConditions.COMMENT);{this.tokenType="javascript -comment";return cursor;}
240 case 217:++cursor;{this.tokenType="javascript-comment";return cursor;}
241 case 219:++cursor;yych=this._charAt(cursor);if(yych<='*'){if(yych<='\f'){if(yych =='\n'){gotoCase=171;continue;};{gotoCase=219;continue;};}else{if(yych<='\r'){go toCase=171;continue;};if(yych<=')'){gotoCase=219;continue;};{gotoCase=203;contin ue;};}}else{if(yych<='Z'){if(yych=='/'){gotoCase=226;continue;};{gotoCase=219;co ntinue;};}else{if(yych<='['){gotoCase=224;continue;};if(yych<='\\'){gotoCase=222 ;continue;};{gotoCase=219;continue;};}}
242 case 221:++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=171;continue ;};if(yych=='\r'){gotoCase=171;continue;};{gotoCase=206;continue;};case 222:yyac cept=3;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=223;c ontinue;};if(yych!='\r'){gotoCase=219;continue;};case 223:this.setLexCondition(t his._lexConditions.REGEX);{this.tokenType="javascript-regexp";return cursor;}
243 case 224:++cursor;yych=this._charAt(cursor);if(yych<='*'){if(yych<='\f'){if(yych =='\n'){gotoCase=171;continue;};{gotoCase=224;continue;};}else{if(yych<='\r'){go toCase=171;continue;};if(yych<=')'){gotoCase=224;continue;};{gotoCase=171;contin ue;};}}else{if(yych<='['){if(yych=='/'){gotoCase=171;continue;};{gotoCase=224;co ntinue;};}else{if(yych<='\\'){gotoCase=231;continue;};if(yych<=']'){gotoCase=229 ;continue;};{gotoCase=224;continue;};}}
244 case 226:++cursor;yych=this._charAt(cursor);if(yych<='h'){if(yych=='g'){gotoCase =226;continue;};}else{if(yych<='i'){gotoCase=226;continue;};if(yych=='m'){gotoCa se=226;continue;};}
245 {this.tokenType="javascript-regexp";return cursor;}
246 case 229:++cursor;yych=this._charAt(cursor);if(yych<='*'){if(yych<='\f'){if(yych =='\n'){gotoCase=171;continue;};{gotoCase=229;continue;};}else{if(yych<='\r'){go toCase=171;continue;};if(yych<=')'){gotoCase=229;continue;};{gotoCase=203;contin ue;};}}else{if(yych<='Z'){if(yych=='/'){gotoCase=226;continue;};{gotoCase=229;co ntinue;};}else{if(yych<='['){gotoCase=224;continue;};if(yych<='\\'){gotoCase=232 ;continue;};{gotoCase=229;continue;};}}
247 case 231:++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=171;continue ;};if(yych=='\r'){gotoCase=171;continue;};{gotoCase=224;continue;};case 232:yyac cept=3;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=223;c ontinue;};if(yych=='\r'){gotoCase=223;continue;};{gotoCase=229;continue;};case 2 33:yyaccept=3;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCas e=223;continue;};if(yych=='\r'){gotoCase=223;continue;};{gotoCase=203;continue;} ;case 234:++cursor;yych=this._charAt(cursor);if(yych<='*'){if(yych<='\f'){if(yyc h=='\n'){gotoCase=171;continue;};{gotoCase=234;continue;};}else{if(yych<='\r'){g otoCase=171;continue;};if(yych<=')'){gotoCase=234;continue;};{gotoCase=171;conti nue;};}}else{if(yych<='['){if(yych=='/'){gotoCase=171;continue;};{gotoCase=234;c ontinue;};}else{if(yych<='\\'){gotoCase=238;continue;};if(yych>='^'){gotoCase=23 4;continue;};}}
248 case 236:++cursor;yych=this._charAt(cursor);if(yych<='*'){if(yych<='\f'){if(yych =='\n'){gotoCase=171;continue;};{gotoCase=236;continue;};}else{if(yych<='\r'){go toCase=171;continue;};if(yych<=')'){gotoCase=236;continue;};{gotoCase=203;contin ue;};}}else{if(yych<='Z'){if(yych=='/'){gotoCase=226;continue;};{gotoCase=236;co ntinue;};}else{if(yych<='['){gotoCase=234;continue;};if(yych<='\\'){gotoCase=239 ;continue;};{gotoCase=236;continue;};}}
249 case 238:++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=171;continue ;};if(yych=='\r'){gotoCase=171;continue;};{gotoCase=234;continue;};case 239:yyac cept=3;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=223;c ontinue;};if(yych=='\r'){gotoCase=223;continue;};{gotoCase=236;continue;};case 2 40:yyaccept=2;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych<='D'){if(yych< ='/'){gotoCase=161;continue;};if(yych<='9'){gotoCase=240;continue;};{gotoCase=16 1;continue;};}else{if(yych<='E'){gotoCase=242;continue;};if(yych!='e'){gotoCase= 161;continue;};}
250 case 242:yych=this._charAt(++cursor);if(yych<=','){if(yych!='+'){gotoCase=171;co ntinue;};}else{if(yych<='-'){gotoCase=243;continue;};if(yych<='/'){gotoCase=171; continue;};if(yych<='9'){gotoCase=244;continue;};{gotoCase=171;continue;};}
251 case 243:yych=this._charAt(++cursor);if(yych<='/'){gotoCase=171;continue;};if(yy ch>=':'){gotoCase=171;continue;};case 244:++cursor;yych=this._charAt(cursor);if( yych<='/'){gotoCase=161;continue;};if(yych<='9'){gotoCase=244;continue;};{gotoCa se=161;continue;};case 246:++cursor;yych=this._charAt(cursor);case 247:if(yych<= '\r'){if(yych=='\n'){gotoCase=171;continue;};if(yych<='\f'){gotoCase=246;continu e;};{gotoCase=171;continue;};}else{if(yych<='\''){if(yych<='&'){gotoCase=246;con tinue;};{gotoCase=249;continue;};}else{if(yych!='\\'){gotoCase=246;continue;};}}
252 ++cursor;yych=this._charAt(cursor);if(yych<='a'){if(yych<='!'){if(yych<='\n'){if (yych<='\t'){gotoCase=171;continue;};{gotoCase=252;continue;};}else{if(yych=='\r '){gotoCase=252;continue;};{gotoCase=171;continue;};}}else{if(yych<='\''){if(yyc h<='"'){gotoCase=246;continue;};if(yych<='&'){gotoCase=171;continue;};{gotoCase= 246;continue;};}else{if(yych=='\\'){gotoCase=246;continue;};{gotoCase=171;contin ue;};}}}else{if(yych<='q'){if(yych<='f'){if(yych<='b'){gotoCase=246;continue;};i f(yych<='e'){gotoCase=171;continue;};{gotoCase=246;continue;};}else{if(yych=='n' ){gotoCase=246;continue;};{gotoCase=171;continue;};}}else{if(yych<='t'){if(yych= ='s'){gotoCase=171;continue;};{gotoCase=246;continue;};}else{if(yych<='u'){gotoC ase=251;continue;};if(yych<='v'){gotoCase=246;continue;};{gotoCase=171;continue; };}}}
253 case 249:++cursor;{this.tokenType="javascript-string";return cursor;}
254 case 251:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych<='9'){gotoCase=254;continue;};{gotoCase=171;continue;};} else{if(yych<='F'){gotoCase=254;continue;};if(yych<='`'){gotoCase=171;continue;} ;if(yych<='f'){gotoCase=254;continue;};{gotoCase=171;continue;};}
255 case 252:++cursor;this.setLexCondition(this._lexConditions.SSTRING);{this.tokenT ype="javascript-string";return cursor;}
256 case 254:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCa se=255;continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=1 71;continue;};}
257 case 255:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCa se=256;continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=1 71;continue;};}
258 case 256:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych<='9'){gotoCase=246;continue;};{gotoCase=171;continue;};} else{if(yych<='F'){gotoCase=246;continue;};if(yych<='`'){gotoCase=171;continue;} ;if(yych<='f'){gotoCase=246;continue;};{gotoCase=171;continue;};}
259 case 257:++cursor;yych=this._charAt(cursor);case 258:if(yych<='\r'){if(yych=='\n '){gotoCase=171;continue;};if(yych<='\f'){gotoCase=257;continue;};{gotoCase=171; continue;};}else{if(yych<='"'){if(yych<='!'){gotoCase=257;continue;};{gotoCase=2 49;continue;};}else{if(yych!='\\'){gotoCase=257;continue;};}}
260 ++cursor;yych=this._charAt(cursor);if(yych<='a'){if(yych<='!'){if(yych<='\n'){if (yych<='\t'){gotoCase=171;continue;};{gotoCase=261;continue;};}else{if(yych=='\r '){gotoCase=261;continue;};{gotoCase=171;continue;};}}else{if(yych<='\''){if(yyc h<='"'){gotoCase=257;continue;};if(yych<='&'){gotoCase=171;continue;};{gotoCase= 257;continue;};}else{if(yych=='\\'){gotoCase=257;continue;};{gotoCase=171;contin ue;};}}}else{if(yych<='q'){if(yych<='f'){if(yych<='b'){gotoCase=257;continue;};i f(yych<='e'){gotoCase=171;continue;};{gotoCase=257;continue;};}else{if(yych=='n' ){gotoCase=257;continue;};{gotoCase=171;continue;};}}else{if(yych<='t'){if(yych= ='s'){gotoCase=171;continue;};{gotoCase=257;continue;};}else{if(yych<='u'){gotoC ase=260;continue;};if(yych<='v'){gotoCase=257;continue;};{gotoCase=171;continue; };}}}
261 case 260:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych<='9'){gotoCase=263;continue;};{gotoCase=171;continue;};} else{if(yych<='F'){gotoCase=263;continue;};if(yych<='`'){gotoCase=171;continue;} ;if(yych<='f'){gotoCase=263;continue;};{gotoCase=171;continue;};}
262 case 261:++cursor;this.setLexCondition(this._lexConditions.DSTRING);{this.tokenT ype="javascript-string";return cursor;}
263 case 263:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCa se=264;continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=1 71;continue;};}
264 case 264:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych>=':'){gotoCase=171;continue;};}else{if(yych<='F'){gotoCa se=265;continue;};if(yych<='`'){gotoCase=171;continue;};if(yych>='g'){gotoCase=1 71;continue;};}
265 case 265:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =171;continue;};if(yych<='9'){gotoCase=257;continue;};{gotoCase=171;continue;};} else{if(yych<='F'){gotoCase=257;continue;};if(yych<='`'){gotoCase=171;continue;} ;if(yych<='f'){gotoCase=257;continue;};{gotoCase=171;continue;};}
266 case 266:yych=this._charAt(++cursor);if(yych=='='){gotoCase=169;continue;};{goto Case=145;continue;};case 267:++cursor;yych=this._charAt(cursor);case 268:if(yych ==' '){gotoCase=267;continue;};{gotoCase=143;continue;};case this.case_REGEX:yyc h=this._charAt(cursor);if(yych<='.'){if(yych<='\n'){if(yych<='\t'){gotoCase=272; continue;};{gotoCase=273;continue;};}else{if(yych=='\r'){gotoCase=273;continue;} ;{gotoCase=272;continue;};}}else{if(yych<='['){if(yych<='/'){gotoCase=275;contin ue;};if(yych<='Z'){gotoCase=272;continue;};{gotoCase=277;continue;};}else{if(yyc h<='\\'){gotoCase=278;continue;};if(yych<=']'){gotoCase=273;continue;};{gotoCase =272;continue;};}}
267 case 271:{this.tokenType="javascript-regexp";return cursor;}
268 case 272:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);{gotoCase=280;continue; };case 273:++cursor;case 274:{this.tokenType=null;return cursor;}
269 case 275:++cursor;yych=this._charAt(cursor);{gotoCase=286;continue;};case 276:th is.setLexCondition(this._lexConditions.NODIV);{this.tokenType="javascript-regexp ";return cursor;}
270 case 277:yyaccept=1;yych=this._charAt(YYMARKER=++cursor);if(yych<='\r'){if(yych= ='\n'){gotoCase=274;continue;};if(yych<='\f'){gotoCase=284;continue;};{gotoCase= 274;continue;};}else{if(yych<='*'){if(yych<=')'){gotoCase=284;continue;};{gotoCa se=274;continue;};}else{if(yych=='/'){gotoCase=274;continue;};{gotoCase=284;cont inue;};}}
271 case 278:yych=this._charAt(++cursor);if(yych=='\n'){gotoCase=274;continue;};if(y ych=='\r'){gotoCase=274;continue;};case 279:yyaccept=0;YYMARKER=++cursor;yych=th is._charAt(cursor);case 280:if(yych<='.'){if(yych<='\n'){if(yych<='\t'){gotoCase =279;continue;};{gotoCase=271;continue;};}else{if(yych=='\r'){gotoCase=271;conti nue;};{gotoCase=279;continue;};}}else{if(yych<='['){if(yych<='/'){gotoCase=285;c ontinue;};if(yych<='Z'){gotoCase=279;continue;};{gotoCase=283;continue;};}else{i f(yych<='\\'){gotoCase=281;continue;};if(yych<=']'){gotoCase=271;continue;};{got oCase=279;continue;};}}
272 case 281:++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=282;continue ;};if(yych!='\r'){gotoCase=279;continue;};case 282:cursor=YYMARKER;if(yyaccept<= 0){{gotoCase=271;continue;};}else{{gotoCase=274;continue;};}
273 case 283:++cursor;yych=this._charAt(cursor);case 284:if(yych<='*'){if(yych<='\f' ){if(yych=='\n'){gotoCase=282;continue;};{gotoCase=283;continue;};}else{if(yych< ='\r'){gotoCase=282;continue;};if(yych<=')'){gotoCase=283;continue;};{gotoCase=2 82;continue;};}}else{if(yych<='['){if(yych=='/'){gotoCase=282;continue;};{gotoCa se=283;continue;};}else{if(yych<='\\'){gotoCase=289;continue;};if(yych<=']'){got oCase=287;continue;};{gotoCase=283;continue;};}}
274 case 285:++cursor;yych=this._charAt(cursor);case 286:if(yych<='h'){if(yych=='g') {gotoCase=285;continue;};{gotoCase=276;continue;};}else{if(yych<='i'){gotoCase=2 85;continue;};if(yych=='m'){gotoCase=285;continue;};{gotoCase=276;continue;};}
275 case 287:yyaccept=0;YYMARKER=++cursor;yych=this._charAt(cursor);if(yych<='*'){if (yych<='\f'){if(yych=='\n'){gotoCase=271;continue;};{gotoCase=287;continue;};}el se{if(yych<='\r'){gotoCase=271;continue;};if(yych<=')'){gotoCase=287;continue;}; {gotoCase=279;continue;};}}else{if(yych<='Z'){if(yych=='/'){gotoCase=285;continu e;};{gotoCase=287;continue;};}else{if(yych<='['){gotoCase=283;continue;};if(yych <='\\'){gotoCase=290;continue;};{gotoCase=287;continue;};}}
276 case 289:++cursor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=282;continue ;};if(yych=='\r'){gotoCase=282;continue;};{gotoCase=283;continue;};case 290:++cu rsor;yych=this._charAt(cursor);if(yych=='\n'){gotoCase=282;continue;};if(yych==' \r'){gotoCase=282;continue;};{gotoCase=287;continue;};case this.case_SSTRING:yyc h=this._charAt(cursor);if(yych<='\r'){if(yych=='\n'){gotoCase=295;continue;};if( yych<='\f'){gotoCase=294;continue;};{gotoCase=295;continue;};}else{if(yych<='\'' ){if(yych<='&'){gotoCase=294;continue;};{gotoCase=297;continue;};}else{if(yych== '\\'){gotoCase=299;continue;};{gotoCase=294;continue;};}}
277 case 293:{this.tokenType="javascript-string";return cursor;}
278 case 294:yyaccept=0;yych=this._charAt(YYMARKER=++cursor);{gotoCase=301;continue; };case 295:++cursor;case 296:{this.tokenType=null;return cursor;}
279 case 297:++cursor;case 298:this.setLexCondition(this._lexConditions.NODIV);{this .tokenType="javascript-string";return cursor;}
280 case 299:yyaccept=1;yych=this._charAt(YYMARKER=++cursor);if(yych<='e'){if(yych<= '\''){if(yych=='"'){gotoCase=300;continue;};if(yych<='&'){gotoCase=296;continue; };}else{if(yych<='\\'){if(yych<='['){gotoCase=296;continue;};}else{if(yych!='b') {gotoCase=296;continue;};}}}else{if(yych<='r'){if(yych<='m'){if(yych>='g'){gotoC ase=296;continue;};}else{if(yych<='n'){gotoCase=300;continue;};if(yych<='q'){got oCase=296;continue;};}}else{if(yych<='t'){if(yych<='s'){gotoCase=296;continue;}; }else{if(yych<='u'){gotoCase=302;continue;};if(yych>='w'){gotoCase=296;continue; };}}}
281 case 300:yyaccept=0;YYMARKER=++cursor;yych=this._charAt(cursor);case 301:if(yych <='\r'){if(yych=='\n'){gotoCase=293;continue;};if(yych<='\f'){gotoCase=300;conti nue;};{gotoCase=293;continue;};}else{if(yych<='\''){if(yych<='&'){gotoCase=300;c ontinue;};{gotoCase=308;continue;};}else{if(yych=='\\'){gotoCase=307;continue;}; {gotoCase=300;continue;};}}
282 case 302:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =303;continue;};if(yych<='9'){gotoCase=304;continue;};}else{if(yych<='F'){gotoCa se=304;continue;};if(yych<='`'){gotoCase=303;continue;};if(yych<='f'){gotoCase=3 04;continue;};}
283 case 303:cursor=YYMARKER;if(yyaccept<=0){{gotoCase=293;continue;};}else{{gotoCas e=296;continue;};}
284 case 304:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =303;continue;};if(yych>=':'){gotoCase=303;continue;};}else{if(yych<='F'){gotoCa se=305;continue;};if(yych<='`'){gotoCase=303;continue;};if(yych>='g'){gotoCase=3 03;continue;};}
285 case 305:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =303;continue;};if(yych>=':'){gotoCase=303;continue;};}else{if(yych<='F'){gotoCa se=306;continue;};if(yych<='`'){gotoCase=303;continue;};if(yych>='g'){gotoCase=3 03;continue;};}
286 case 306:++cursor;yych=this._charAt(cursor);if(yych<='@'){if(yych<='/'){gotoCase =303;continue;};if(yych<='9'){gotoCase=300;continue;};{gotoCase=303;continue;};} else{if(yych<='F'){gotoCase=300;continue;};if(yych<='`'){gotoCase=303;continue;} ;if(yych<='f'){gotoCase=300;continue;};{gotoCase=303;continue;};}
287 case 307:++cursor;yych=this._charAt(cursor);if(yych<='e'){if(yych<='\''){if(yych =='"'){gotoCase=300;continue;};if(yych<='&'){gotoCase=303;continue;};{gotoCase=3 00;continue;};}else{if(yych<='\\'){if(yych<='['){gotoCase=303;continue;};{gotoCa se=300;continue;};}else{if(yych=='b'){gotoCase=300;continue;};{gotoCase=303;cont inue;};}}}else{if(yych<='r'){if(yych<='m'){if(yych<='f'){gotoCase=300;continue;} ;{gotoCase=303;continue;};}else{if(yych<='n'){gotoCase=300;continue;};if(yych<=' q'){gotoCase=303;continue;};{gotoCase=300;continue;};}}else{if(yych<='t'){if(yyc h<='s'){gotoCase=303;continue;};{gotoCase=300;continue;};}else{if(yych<='u'){got oCase=302;continue;};if(yych<='v'){gotoCase=300;continue;};{gotoCase=303;continu e;};}}}
288 case 308:++cursor;yych=this._charAt(cursor);{gotoCase=298;continue;};}}},__proto __:WebInspector.SourceTokenizer.prototype};HTMLScriptFormatter=function(indentSt ring)
289 {WebInspector.SourceHTMLTokenizer.call(this);this._indentString=indentString;}
290 HTMLScriptFormatter.prototype={format:function(content) 485 HTMLScriptFormatter.prototype={format:function(content)
291 {this.line=content;this._content=content;this._formattedContent="";this._mapping ={original:[0],formatted:[0]};this._position=0;var cursor=0;while(cursor<this._c ontent.length) 486 {this.line=content;this._content=content;this._formattedContent="";this._mapping ={original:[0],formatted:[0]};this._position=0;var scriptOpened=false;var tokeni zer=WebInspector.CodeMirrorUtils.createTokenizer("text/html");function processTo ken(tokenValue,tokenType,tokenStart,tokenEnd){if(tokenValue.toLowerCase()==="<sc ript"&&tokenType==="xml-tag"){scriptOpened=true;}else if(scriptOpened&&tokenValu e===">"&&tokenType==="xml-tag"){scriptOpened=false;this._scriptStarted(tokenEnd) ;}else if(tokenValue.toLowerCase()==="</script"&&tokenType==="xml-tag"){this._sc riptEnded(tokenStart);}}
292 cursor=this.nextToken(cursor);this._formattedContent+=this._content.substring(th is._position);return{content:this._formattedContent,mapping:this._mapping};},scr iptStarted:function(cursor) 487 tokenizer(content,processToken.bind(this));this._formattedContent+=this._content .substring(this._position);return{content:this._formattedContent,mapping:this._m apping};},_scriptStarted:function(cursor)
293 {this._formattedContent+=this._content.substring(this._position,cursor);this._fo rmattedContent+="\n";this._position=cursor;},scriptEnded:function(cursor) 488 {this._formattedContent+=this._content.substring(this._position,cursor);this._fo rmattedContent+="\n";this._position=cursor;},_scriptEnded:function(cursor)
294 {if(cursor===this._position) 489 {if(cursor===this._position)
295 return;var scriptContent=this._content.substring(this._position,cursor);this._ma pping.original.push(this._position);this._mapping.formatted.push(this._formatted Content.length);var formattedScriptContent=formatScript(scriptContent,this._mapp ing,this._position,this._formattedContent.length,this._indentString);this._forma ttedContent+=formattedScriptContent;this._position=cursor;},styleSheetStarted:fu nction(cursor) 490 return;var scriptContent=this._content.substring(this._position,cursor);this._ma pping.original.push(this._position);this._mapping.formatted.push(this._formatted Content.length);var formattedScriptContent=formatScript(scriptContent,this._mapp ing,this._position,this._formattedContent.length,this._indentString);this._forma ttedContent+=formattedScriptContent;this._position=cursor;},}
296 {},styleSheetEnded:function(cursor)
297 {},__proto__:WebInspector.SourceHTMLTokenizer.prototype}
298 function require() 491 function require()
299 {return parse;} 492 {return parse;}
300 var exports={};var KEYWORDS=array_to_hash(["break","case","catch","const","conti nue","default","delete","do","else","finally","for","function","if","in","instan ceof","new","return","switch","throw","try","typeof","var","void","while","with" ]);var RESERVED_WORDS=array_to_hash(["abstract","boolean","byte","char","class", "debugger","double","enum","export","extends","final","float","goto","implements ","import","int","interface","long","native","package","private","protected","pu blic","short","static","super","synchronized","throws","transient","volatile"]); var KEYWORDS_BEFORE_EXPRESSION=array_to_hash(["return","new","delete","throw","e lse","case"]);var KEYWORDS_ATOM=array_to_hash(["false","null","true","undefined" ]);var OPERATOR_CHARS=array_to_hash(characters("+-*&%=<>!?|~^"));var RE_HEX_NUMB ER=/^0x[0-9a-f]+$/i;var RE_OCT_NUMBER=/^0[0-7]+$/;var RE_DEC_NUMBER=/^\d*\.?\d*( ?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;var OPERATORS=array_to_hash(["in","instanceof ","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/"," %",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/= ","*=","%=",">>=","<<=",">>>=","%=","|=","^=","&=","&&","||"]);var WHITESPACE_CH ARS=array_to_hash(characters(" \n\r\t"));var PUNC_BEFORE_EXPRESSION=array_to_has h(characters("[{}(,.;:"));var PUNC_CHARS=array_to_hash(characters("[]{}(),;:")); var REGEXP_MODIFIERS=array_to_hash(characters("gmsiy"));function is_alphanumeric _char(ch){ch=ch.charCodeAt(0);return(ch>=48&&ch<=57)||(ch>=65&&ch<=90)||(ch>=97& &ch<=122);};function is_identifier_char(ch){return is_alphanumeric_char(ch)||ch= ="$"||ch=="_";};function is_digit(ch){ch=ch.charCodeAt(0);return ch>=48&&ch<=57; };function parse_js_number(num){if(RE_HEX_NUMBER.test(num)){return parseInt(num. substr(2),16);}else if(RE_OCT_NUMBER.test(num)){return parseInt(num.substr(1),8) ;}else if(RE_DEC_NUMBER.test(num)){return parseFloat(num);}};function JS_Parse_E rror(message,line,col,pos){this.message=message;this.line=line;this.col=col;this .pos=pos;try{({})();}catch(ex){this.stack=ex.stack;};};JS_Parse_Error.prototype. toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+ ", pos: "+this.pos+")"+"\n\n"+this.stack;};function js_error(message,line,col,po s){throw new JS_Parse_Error(message,line,col,pos);};function is_token(token,type ,val){return token.type==type&&(val==null||token.value==val);};var EX_EOF={};fun ction tokenizer($TEXT){var S={text:$TEXT.replace(/\r\n?|[\n\u2028\u2029]/g,"\n") .replace(/^\uFEFF/,''),pos:0,tokpos:0,line:0,tokline:0,col:0,tokcol:0,newline_be fore:false,regex_allowed:false,comments_before:[]};function peek(){return S.text .charAt(S.pos);};function next(signal_eof){var ch=S.text.charAt(S.pos++);if(sign al_eof&&!ch) 493 var exports={};var KEYWORDS=array_to_hash(["break","case","catch","const","conti nue","default","delete","do","else","finally","for","function","if","in","instan ceof","new","return","switch","throw","try","typeof","var","void","while","with" ]);var RESERVED_WORDS=array_to_hash(["abstract","boolean","byte","char","class", "debugger","double","enum","export","extends","final","float","goto","implements ","import","int","interface","long","native","package","private","protected","pu blic","short","static","super","synchronized","throws","transient","volatile"]); var KEYWORDS_BEFORE_EXPRESSION=array_to_hash(["return","new","delete","throw","e lse","case"]);var KEYWORDS_ATOM=array_to_hash(["false","null","true","undefined" ]);var OPERATOR_CHARS=array_to_hash(characters("+-*&%=<>!?|~^"));var RE_HEX_NUMB ER=/^0x[0-9a-f]+$/i;var RE_OCT_NUMBER=/^0[0-7]+$/;var RE_DEC_NUMBER=/^\d*\.?\d*( ?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;var OPERATORS=array_to_hash(["in","instanceof ","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/"," %",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/= ","*=","%=",">>=","<<=",">>>=","%=","|=","^=","&=","&&","||"]);var WHITESPACE_CH ARS=array_to_hash(characters(" \n\r\t"));var PUNC_BEFORE_EXPRESSION=array_to_has h(characters("[{}(,.;:"));var PUNC_CHARS=array_to_hash(characters("[]{}(),;:")); var REGEXP_MODIFIERS=array_to_hash(characters("gmsiy"));function is_alphanumeric _char(ch){ch=ch.charCodeAt(0);return(ch>=48&&ch<=57)||(ch>=65&&ch<=90)||(ch>=97& &ch<=122);};function is_identifier_char(ch){return is_alphanumeric_char(ch)||ch= ="$"||ch=="_";};function is_digit(ch){ch=ch.charCodeAt(0);return ch>=48&&ch<=57; };function parse_js_number(num){if(RE_HEX_NUMBER.test(num)){return parseInt(num. substr(2),16);}else if(RE_OCT_NUMBER.test(num)){return parseInt(num.substr(1),8) ;}else if(RE_DEC_NUMBER.test(num)){return parseFloat(num);}};function JS_Parse_E rror(message,line,col,pos){this.message=message;this.line=line;this.col=col;this .pos=pos;try{({})();}catch(ex){this.stack=ex.stack;};};JS_Parse_Error.prototype. toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+ ", pos: "+this.pos+")"+"\n\n"+this.stack;};function js_error(message,line,col,po s){throw new JS_Parse_Error(message,line,col,pos);};function is_token(token,type ,val){return token.type==type&&(val==null||token.value==val);};var EX_EOF={};fun ction tokenizer($TEXT){var S={text:$TEXT.replace(/\r\n?|[\n\u2028\u2029]/g,"\n") .replace(/^\uFEFF/,''),pos:0,tokpos:0,line:0,tokline:0,col:0,tokcol:0,newline_be fore:false,regex_allowed:false,comments_before:[]};function peek(){return S.text .charAt(S.pos);};function next(signal_eof){var ch=S.text.charAt(S.pos++);if(sign al_eof&&!ch)
301 throw EX_EOF;if(ch=="\n"){S.newline_before=true;++S.line;S.col=0;}else{++S.col;} 494 throw EX_EOF;if(ch=="\n"){S.newline_before=true;++S.line;S.col=0;}else{++S.col;}
302 return ch;};function eof(){return!S.peek();};function find(what,signal_eof){var pos=S.text.indexOf(what,S.pos);if(signal_eof&&pos==-1)throw EX_EOF;return pos;}; function start_token(){S.tokline=S.line;S.tokcol=S.col;S.tokpos=S.pos;};function token(type,value,is_comment){S.regex_allowed=((type=="operator"&&!HOP(UNARY_POS TFIX,value))||(type=="keyword"&&HOP(KEYWORDS_BEFORE_EXPRESSION,value))||(type==" punc"&&HOP(PUNC_BEFORE_EXPRESSION,value)));var ret={type:type,value:value,line:S .tokline,col:S.tokcol,pos:S.tokpos,nlb:S.newline_before};if(!is_comment){ret.com ments_before=S.comments_before;S.comments_before=[];} 495 return ch;};function eof(){return!S.peek();};function find(what,signal_eof){var pos=S.text.indexOf(what,S.pos);if(signal_eof&&pos==-1)throw EX_EOF;return pos;}; function start_token(){S.tokline=S.line;S.tokcol=S.col;S.tokpos=S.pos;};function token(type,value,is_comment){S.regex_allowed=((type=="operator"&&!HOP(UNARY_POS TFIX,value))||(type=="keyword"&&HOP(KEYWORDS_BEFORE_EXPRESSION,value))||(type==" punc"&&HOP(PUNC_BEFORE_EXPRESSION,value)));var ret={type:type,value:value,line:S .tokline,col:S.tokcol,pos:S.tokpos,nlb:S.newline_before};if(!is_comment){ret.com ments_before=S.comments_before;S.comments_before=[];}
303 S.newline_before=false;return ret;};function skip_whitespace(){while(HOP(WHITESP ACE_CHARS,peek())) 496 S.newline_before=false;return ret;};function skip_whitespace(){while(HOP(WHITESP ACE_CHARS,peek()))
304 next();};function read_while(pred){var ret="",ch=peek(),i=0;while(ch&&pred(ch,i+ +)){ret+=next();ch=peek();} 497 next();};function read_while(pred){var ret="",ch=peek(),i=0;while(ch&&pred(ch,i+ +)){ret+=next();ch=peek();}
305 return ret;};function parse_error(err){js_error(err,S.tokline,S.tokcol,S.tokpos) ;};function read_num(prefix){var has_e=false,after_e=false,has_x=false,has_dot=p refix==".";var num=read_while(function(ch,i){if(ch=="x"||ch=="X"){if(has_x)retur n false;return has_x=true;} 498 return ret;};function parse_error(err){js_error(err,S.tokline,S.tokcol,S.tokpos) ;};function read_num(prefix){var has_e=false,after_e=false,has_x=false,has_dot=p refix==".";var num=read_while(function(ch,i){if(ch=="x"||ch=="X"){if(has_x)retur n false;return has_x=true;}
306 if(!has_x&&(ch=="E"||ch=="e")){if(has_e)return false;return has_e=after_e=true;} 499 if(!has_x&&(ch=="E"||ch=="e")){if(has_e)return false;return has_e=after_e=true;}
307 if(ch=="-"){if(after_e||(i==0&&!prefix))return true;return false;} 500 if(ch=="-"){if(after_e||(i==0&&!prefix))return true;return false;}
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 continue;} 687 continue;}
495 break;case Tokens.STRING:this._consume(Tokens.STRING);break;case Tokens.NUMBER:t his._consume(Tokens.NUMBER);break;default:this._next();} 688 break;case Tokens.STRING:this._consume(Tokens.STRING);break;case Tokens.NUMBER:t his._consume(Tokens.NUMBER);break;default:this._next();}
496 this._expect(Tokens.COLON);this._builder.addSpace();this._parseAssignmentExpress ion();if(this._peek()!==Tokens.RBRACE){this._expect(Tokens.COMMA);}} 689 this._expect(Tokens.COLON);this._builder.addSpace();this._parseAssignmentExpress ion();if(this._peek()!==Tokens.RBRACE){this._expect(Tokens.COMMA);}}
497 this._builder.decreaseNestingLevel();this._expect(Tokens.RBRACE);},_parseRegExpL iteral:function() 690 this._builder.decreaseNestingLevel();this._expect(Tokens.RBRACE);},_parseRegExpL iteral:function()
498 {if(this._nextToken.type==="regexp") 691 {if(this._nextToken.type==="regexp")
499 this._next();else{this._forceRegexp=true;this._next();}},_parseArguments:functio n() 692 this._next();else{this._forceRegexp=true;this._next();}},_parseArguments:functio n()
500 {this._expect(Tokens.LPAREN);var done=(this._peek()===Tokens.RPAREN);while(!done ){this._parseAssignmentExpression();done=(this._peek()===Tokens.RPAREN);if(!done ){this._expect(Tokens.COMMA);this._builder.addSpace();}} 693 {this._expect(Tokens.LPAREN);var done=(this._peek()===Tokens.RPAREN);while(!done ){this._parseAssignmentExpression();done=(this._peek()===Tokens.RPAREN);if(!done ){this._expect(Tokens.COMMA);this._builder.addSpace();}}
501 this._expect(Tokens.RPAREN);},_parseFunctionLiteral:function() 694 this._expect(Tokens.RPAREN);},_parseFunctionLiteral:function()
502 {this._expect(Tokens.LPAREN);var done=(this._peek()===Tokens.RPAREN);while(!done ){this._expect(Tokens.IDENTIFIER);done=(this._peek()===Tokens.RPAREN);if(!done){ this._expect(Tokens.COMMA);this._builder.addSpace();}} 695 {this._expect(Tokens.LPAREN);var done=(this._peek()===Tokens.RPAREN);while(!done ){this._expect(Tokens.IDENTIFIER);done=(this._peek()===Tokens.RPAREN);if(!done){ this._expect(Tokens.COMMA);this._builder.addSpace();}}
503 this._expect(Tokens.RPAREN);this._builder.addSpace();this._expect(Tokens.LBRACE) ;this._builder.addNewLine();this._builder.increaseNestingLevel();this._parseSour ceElements(Tokens.RBRACE);this._builder.decreaseNestingLevel();this._expect(Toke ns.RBRACE);}}; 696 this._expect(Tokens.RPAREN);this._builder.addSpace();this._expect(Tokens.LBRACE) ;this._builder.addNewLine();this._builder.increaseNestingLevel();this._parseSour ceElements(Tokens.RBRACE);this._builder.decreaseNestingLevel();this._expect(Toke ns.RBRACE);}};
OLDNEW
« no previous file with comments | « chrome_linux/resources/inspector/ResourcesPanel.js ('k') | chrome_linux/resources/inspector/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698