/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/

/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2014 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/

/******************************************************************************* 
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation 
 ******************************************************************************/

/*******************************************************************************
 * @license
 * Copyright (c) 2014 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/

/*******************************************************************************
 * @license
 * Copyright (c) 2014 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).
 *
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/

/*******************************************************************************
 * @license
 * Copyright (c) 2014 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

/*

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2010, 2014 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation 

 Copyright (c) 2014 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2014 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2014 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2014 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made
 available under the terms of the Eclipse Public License v1.0
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html).

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2014 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2014 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2014 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
*/
(function(b,e){typeof define==="function"&&define.amd?define("orion/Deferred",e):typeof exports==="object"?module.exports=e():(b.orion=b.orion||{},b.orion.Deferred=e())})(this,function(){function b(){for(var b;b=a.shift();)b();c=!1}function e(d){a.push(d);c||(c=!0,setTimeout(b,0))}function g(a){return function(){a.apply(void 0,arguments)}}function d(){function b(){for(var d;d=h.shift();){var c=d.deferred,n=j==="fulfilled"?"resolve":"reject";if(typeof d[n]==="function")try{var f=(0,d[n])(l),i=f&&(typeof f===
"object"||typeof f==="function")&&f.then;if(typeof i==="function")if(f===c.promise)c.reject(new TypeError);else{var e=f.cancel;typeof e==="function"?c._protected(a).parentCancel=e.bind(f):delete c._protected(a).parentCancel;i.call(f,g(c.resolve),g(c.reject),g(c.progress))}else c.resolve(f)}catch(k){c.reject(k)}else c[n](l)}}function c(a){delete m.parentCancel;j="rejected";l=a;h.length&&e(b)}function f(a){function g(a){return function(v){o||(o=!0,a(v))}}var o=!1;delete m.parentCancel;try{var r=a&&
(typeof a==="object"||typeof a==="function")&&a.then;if(typeof r==="function")if(a===i)c(new TypeError);else{j="assumed";var s=a&&a.cancel;if(typeof s!=="function"){var p=new d,a=p.promise;try{r(p.resolve,p.reject,p.progress)}catch(q){p.reject(q)}s=a.cancel;r=a.then}l=a;r.call(a,g(f),g(c));m.parentCancel=s.bind(a)}else j="fulfilled",l=a,h.length&&e(b)}catch(v){g(c)(v)}}function o(){var a=m.parentCancel;if(a)delete m.parentCancel,a();else if(!j)a=Error("Cancel"),a.name="Cancel",c(a)}var l,j,h=[],i=
this,m={};Object.defineProperty(this,"_protected",{value:function(b){if(b!==a)throw Error("protected");return m}});this.resolve=function(a){j||f(a);return i};this.reject=function(a){j||c(a);return i};this.progress=function(a){j||h.forEach(function(b){if(b.progress)try{b.progress(a)}catch(d){}});return i.promise};this.cancel=function(){m.parentCancel?setTimeout(o,0):o();return i};this.then=function(c,g,f){c={resolve:c,reject:g,progress:f,deferred:new d};h.push(c);c.deferred._protected(a).parentCancel=
i.promise.cancel.bind(i);(j==="fulfilled"||j==="rejected")&&e(b);return c.deferred.promise};this.promise={then:i.then,cancel:i.cancel}}var a=[],c=!1;d.all=function(a,b){function c(a,b){h||(j[a]=b,--e===0&&i.resolve(j))}function g(a,d){if(!h){if(b)try{c(a,b(d));return}catch(e){d=e}i.reject(d)}}var e=a.length,j=[],h=!1,i=new d;i.then(void 0,function(){h=!0;a.forEach(function(a){a.cancel&&a.cancel()})});e===0?i.resolve(j):a.forEach(function(a,b){a.then(c.bind(void 0,b),g.bind(void 0,b))});return i.promise};
d.when=function(a,b,c,g){var e;if(!(a&&typeof a.then==="function"))e=new d,e.resolve(a),a=e.promise;return a.then(b,c,g)};return d});
(function(b,e){typeof define==="function"&&define.amd?define("orion/plugin",["orion/Deferred"],e):typeof exports==="object"?module.exports=e(require("orion/Deferred")):(b.orion=b.orion||{},b.orion.PluginProvider=e(b.orion.Deferred))})(this,function(b){function e(b,d){this.__objectId=b;this.__methods=d}return function(g){function d(a){i&&(typeof ArrayBuffer==="undefined"&&(a=JSON.stringify(a)),i===self?i.postMessage(a):i.postMessage(a,"*"))}function a(){var a=[];Object.keys(p).forEach(function(b){var d=
p[b];a.push({serviceId:b,names:d.names,methods:d.methods,properties:d.properties})});return{headers:j||{},services:a}}function c(a,b){if(b&&b instanceof XMLHttpRequest){var d,c;try{d=b.status,c=b.statusText}catch(g){d=0,c=""}return{status:d||0,statusText:c}}return b}function n(a){var b=a?JSON.parse(JSON.stringify(a,c)):a;if(a instanceof Error)b.__isError=!0,b.message=b.message||a.message,b.name=b.name||a.name;return b}function k(a){if(!i)return(new b).reject(Error("plugin not connected"));a.id=String(m++);
var d=new b;r[a.id]=d;d.then(null,function(b){h&&b instanceof Error&&b.name==="Cancel"&&q({requestId:a.id,method:"cancel",params:b.message?[b.message]:[]})});var c=Object.prototype.toString;a.params.forEach(function(b,g){if(c.call(b)==="[object Object]"&&!(b instanceof e)){var f,h;for(f in b)c.call(b[f])==="[object Function]"&&(h=h||[],h.push(f));if(h){var i=t++;s[i]=b;f=function(){delete s[i]};d.then(f,f);a.params[g]=new e(i,h)}}});q(a);return d.promise}function f(a,b){a||a===0?q({id:a,result:null,
error:b}):console.log(b)}function o(a,b,d,c){c.forEach(function(a,b){if(a&&typeof a.__objectId!=="undefined"){var d={};a.__methods.forEach(function(b){d[b]=function(){return k({objectId:a.__objectId,method:b,params:Array.prototype.slice.call(arguments)})}});c[b]=d}});var g=typeof a===void 0?null:{id:a,result:null,error:null};try{var f=d.apply(b,c);if(g)f&&typeof f.then==="function"?(u[a]=f,f.then(function(b){delete u[a];g.result=b;q(g)},function(b){if(u[a])delete u[a],g.error=n(b),q(g)},function(){q({responseId:a,
method:"progress",params:Array.prototype.slice.call(arguments)})})):(g.result=f,q(g))}catch(h){if(g)g.error=n(h),q(g)}}function l(a){if(a.source===i){a=typeof a.data!=="string"?a.data:JSON.parse(a.data);try{if(a.method){var b=a.method,d=a.params||[];if("serviceId"in a){var c=p[a.serviceId];c||f(a.id,"service not found");c=c.implementation;b in c?o(a.id,c,c[b],d):f(a.id,"method not found")}else if("objectId"in a){var g=s[a.objectId];g||f(a.id,"object not found");!b in g?o(a.id,g,g[b],d):f(a.id,"method not found")}else if("requestId"in
a){var h=u[a.requestId];h&&b==="cancel"&&h.cancel&&h.cancel.apply(h,d)}else if("responseId"in a){var e=r[a.responseId];e&&b==="progress"&&e.progress&&e.progress.apply(e,d)}else throw Error("Bad method: "+a.method);}else{var j=r[String(a.id)];delete r[String(a.id)];a.error?j.reject(a.error):j.resolve(a.result)}}catch(n){console.log("Plugin._messageHandler "+n)}}}var j=g,h=!1,i=null,m=0,t=0,w=0,u={},r={},s={},p={},q=d;this.updateHeaders=function(a){if(h)throw Error("Cannot update headers. Plugin Provider is connected");
j=a};this.registerServiceProvider=this.registerService=function(a,b,d){if(h)throw Error("Cannot register service. Plugin Provider is connected");typeof a==="string"?a=[a]:Array.isArray(a)||(a=[]);var c=null,g=[];for(c in b)typeof b[c]==="function"&&g.push(c);p[w++]={names:a,methods:g,implementation:b,properties:d||{},listeners:{}}};this.connect=function(b,c){if(!h){if(typeof window==="undefined")i=self;else if(window!==window.parent)i=window.parent;else if(window.opener!==null)i=window.opener;else{c&&
c("No valid plugin target");return}addEventListener("message",l,!1);var g={method:"plugin",params:[a()]};d(g);h=!0}b&&b()};this.disconnect=function(){h&&(removeEventListener("message",l),i=null,h=!1)}}});
define("orion/editor/templates",[],function(){function b(b,d,a,c){this.prefix=b;this.description=d;this.template=a;this.name=c;this._parse()}function e(b,d){this._keywords=b||[];this._templates=[];this.addTemplates(d||[])}b.prototype={getProposal:function(b,d,a){var b=d-b.length,d={},c,e=a.delimiter!==void 0?a.delimiter:"\n";a.indentation&&(e+=a.indentation);for(var k=a.tab!==void 0?a.tab:"\t",f=0,o=this.variables,l=this.segments,a=[],j=0;j<l.length;j++){var h=l[j],i=o[h];if(i!==void 0)switch(h){case "${tab}":h=
k;break;case "${delimiter}":h=e;break;case "${cursor}":h="";c=f;break;default:var m=d[h];m||(m=d[h]={data:i.data,positions:[]});h=i.substitution;m.data&&m.data.values&&(h=m.data.values[0]);m.positions.push({offset:b+f,length:h.length})}a.push(h);f+=h.length}var e=[],t;for(t in d)d.hasOwnProperty(t)&&e.push(d[t]);a=a.join("");if(c===void 0)c=a.length;return{proposal:a,name:this.name,description:this.description,groups:e,escapePosition:b+c,style:"noemphasis"}},match:function(b){return this.prefix.indexOf(b)===
0},_parse:function(){var b=this.template,d=[],a={},c,e=0,b=b.replace(/\n/g,"${delimiter}"),b=b.replace(/\t/g,"${tab}");b.replace(/\$\{((?:[^\\}]+|\\.))*\}/g,function(k,f,o){var l=k.substring(2,k.length-1),f=k,j=l,h=null,i=j.indexOf(":");i!==-1&&(j=j.substring(0,i),f="${"+j+"}",h=JSON.parse(l.substring(i+1).replace("\\}","}").trim()));(l=a[f])||(l=a[f]={});l.substitution=j;if(h)l.data=h;(c=b.substring(e,o))&&d.push(c);d.push(f);e=o+k.length;return j});(c=b.substring(e,b.length))&&d.push(c);this.segments=
d;this.variables=a}};e.prototype={addTemplates:function(g){for(var d=this.getTemplates(),a=0;a<g.length;a++)d.push(new b(g[a].prefix,g[a].description,g[a].template,g[a].name))},computeProposals:function(b,d,a){var c=this.getPrefix(b,d,a),e=[];this.isValid(c,b,d,a)&&(e=e.concat(this.getTemplateProposals(c,d,a)),e=e.concat(this.getKeywordProposals(c)));return e},getKeywords:function(){return this._keywords},getKeywordProposals:function(b){var d=[],a=this.getKeywords();if(a){for(var c=0;c<a.length;c++)a[c].indexOf(b)===
0&&d.push({proposal:a[c].substring(b.length),description:a[c],style:"noemphasis_keyword"});0<d.length&&d.splice(0,0,{proposal:"",description:"Keywords",style:"noemphasis_title_keywords",unselectable:!0})}return d},getPrefix:function(b,d,a){return a.prefix},getTemplates:function(){return this._templates},getTemplateProposals:function(b,d,a){for(var c=[],e=this.getTemplates(),k=0;k<e.length;k++){var f=e[k];f.match(b)&&(f=f.getProposal(b,d,a),this.removePrefix(b,f),c.push(f))}0<c.length&&(c.sort(function(a,
b){return a.name<b.name?-1:a.name>b.name?1:0}),c.splice(0,0,{proposal:"",description:"Templates",style:"noemphasis_title",unselectable:!0}));return c},removePrefix:function(b,d){if(!(d.overwrite=d.proposal.substring(0,b.length)!==b))d.proposal=d.proposal.substring(b.length)},isValid:function(){return!0}};return{Template:b,TemplateContentAssist:e}});
define("orion/editor/htmlContentAssist",["orion/editor/templates"],function(b){function e(){}var g=new b.Template("","Simple HTML document",'<!DOCTYPE html>\n<html lang="en">\n\t<head>\n\t\t<meta charset=utf-8>\n\t\t<title>${title}</title>\n\t</head>\n\t<body>\n\t\t<h1>${header}</h1>\n\t\t<p>\n\t\t\t${cursor}\n\t\t</p>\n\t</body>\n</html>'),d=[{prefix:"<img",name:"<img>",description:" - HTML image element",template:'<img src="${cursor}" alt="${Image}"/>'},{prefix:"<a",name:"<a>",description:" - HTML anchor element",
template:'<a href="${cursor}"></a>'},{prefix:"<ul",name:"<ul>",description:" - HTML unordered list",template:"<ul>\n\t<li>${cursor}</li>\n</ul>"},{prefix:"<ol",name:"<ol>",description:" - HTML ordered list",template:"<ol>\n\t<li>${cursor}</li>\n</ol>"},{prefix:"<dl",name:"<dl>",description:" - HTML definition list",template:"<dl>\n\t<dt>${cursor}</dt>\n\t<dd></dd>\n</dl>"},{prefix:"<table",name:"<table>",description:" - basic HTML table",template:"<table>\n\t<tr>\n\t\t<td>${cursor}</td>\n\t</tr>\n</table>"},
{prefix:"<\!--",name:"<\!-- --\>",description:" - HTML comment",template:"<\!-- ${cursor} --\>"}],a,c,n,k,f="abbr,b,button,canvas,cite,command,dd,del,dfn,dt,em,embed,font,h1,h2,h3,h4,h5,h6,i,ins,kbd,label,li,mark,meter,object,option,output,progress,q,rp,rt,samp,small,strong,sub,sup,td,time,title,tt,u,var".split(",");for(k=0;k<f.length;k++)a=f[k],n="<"+a+"></"+a+">",c="<"+a+">${cursor}</"+a+">",d.push({prefix:"<"+a,description:n,template:c});f="address,article,aside,audio,bdo,blockquote,body,caption,code,colgroup,datalist,details,div,fieldset,figure,footer,form,head,header,hgroup,iframe,legend,map,menu,nav,noframes,noscript,optgroup,p,pre,ruby,script,section,select,span,style,tbody,textarea,tfoot,th,thead,tr,video".split(",");
for(k=0;k<f.length;k++)a=f[k],n="<"+a+"></"+a+">",c="<"+a+">\n\t${cursor}\n</"+a+">",d.push({prefix:"<"+a,description:n,template:c});f="area,base,br,col,hr,input,link,meta,param,keygen,source".split(",");for(k=0;k<f.length;k++)a=f[k],c=n="<"+a+"/>",d.push({prefix:"<"+a,description:n,template:c});e.prototype=new b.TemplateContentAssist([],d);e.prototype.getPrefix=function(a,b){for(var d="",c=b;c&&/[A-Za-z0-9<!-]/.test(a.charAt(c-1));)if(c--,a.charAt(c)==="<"){d=a.substring(c,b);break}return d};e.prototype.computeProposals=
function(a,c,d){return a.length===0?[g.getProposal("",c,d)]:b.TemplateContentAssist.prototype.computeProposals.call(this,a,c,d).sort(function(a,b){var c=a.prefix||a.proposal,d=b.prefix||b.proposal;if(c){if(!d)return 1}else return-1;return c.toLowerCase().localeCompare(d.toLowerCase())})};return{HTMLContentAssistProvider:e}});
define("orion/editor/htmlGrammar",[],function(){return{HtmlGrammar:function(){return{scopeName:"source.html",uuid:"3B5C76FB-EBB5-D930-F40C-047D082CE99B",patterns:[{begin:"<!(doctype|DOCTYPE)",end:">",contentName:"entity.name.tag.doctype.html",beginCaptures:{0:{name:"entity.name.tag.doctype.html"}},endCaptures:{0:{name:"entity.name.tag.doctype.html"}}},{begin:"<\!--",end:"--\>",beginCaptures:{0:{name:"punctuation.definition.comment.html"}},endCaptures:{0:{name:"punctuation.definition.comment.html"}},
patterns:[{match:"--",name:"invalid.illegal.badcomment.html"}],contentName:"comment.block.html"},{match:"<[A-Za-z0-9_\\-:]+(?= ?)",name:"entity.name.tag.html"},{include:"#attrName"},{include:"#qString"},{include:"#qqString"},{include:"#entity"},{match:"</[A-Za-z0-9_\\-:]+>",name:"entity.name.tag.html"},{match:">",name:"entity.name.tag.html"}],repository:{attrName:{match:"[A-Za-z\\-:]+(?=\\s*=\\s*['\"])",name:"entity.other.attribute.name.html"},qqString:{match:'(")[^"]+(")',name:"string.quoted.double.html"},
qString:{match:"(')[^']+(')",name:"string.quoted.single.html"},entity:{match:"&[A-Za-z0-9]+;",name:"constant.character.entity.html"}}}}}});
define("orion/editor/stylers/lib/syntax",[],function(){return{id:"orion.lib",grammars:[{id:"orion.lib",patterns:[{include:"#brace_open"},{include:"#brace_close"},{include:"#bracket_open"},{include:"#bracket_close"},{include:"#parenthesis_open"},{include:"#parenthesis_close"},{include:"#number_decimal"},{include:"#number_hex"},{include:"#string_doubleQuote"},{include:"#string_singleQuote"}],repository:{brace_open:{match:"{",name:"punctuation.section.block.begin"},brace_close:{match:"}",name:"punctuation.section.block.end"},
bracket_open:{match:"\\[",name:"punctuation.section.bracket.begin"},bracket_close:{match:"\\]",name:"punctuation.section.bracket.end"},parenthesis_open:{match:"\\(",name:"punctuation.section.parens.begin"},parenthesis_close:{match:"\\)",name:"punctuation.section.parens.end"},doc_block:{begin:"/\\*\\*",end:"\\*/",name:"comment.block.documentation",patterns:[{match:"@(?:(?!\\*/)\\S)*",name:"keyword.other.documentation.tag"},{match:"\\<\\S*\\>",name:"keyword.other.documentation.markup"},{match:"(\\b)(TODO)(\\b)(((?!\\*/).)*)",
name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.block"}}}]},number_decimal:{match:"\\b-?(?:\\.\\d+|\\d+\\.?\\d*)(?:[eE][+-]?\\d+)?\\b",name:"constant.numeric.number"},number_hex:{match:"\\b0[xX][0-9A-Fa-f]+\\b",name:"constant.numeric.hex"},string_doubleQuote:{match:'"(?:\\\\.|[^"])*"?',name:"string.quoted.double"},string_singleQuote:{match:"'(?:\\\\.|[^'])*'?",name:"string.quoted.single"},todo_comment_singleLine:{match:"(\\b)(TODO)(\\b)(.*)",
name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.line"}}}}},{id:"orion.c-like",patterns:[{include:"orion.lib"},{include:"#comment_singleLine"},{include:"#comment_block"}],repository:{comment_singleLine:{match:"//.*",name:"comment.line.double-slash",patterns:[{include:"orion.lib#todo_comment_singleLine"}]},comment_block:{begin:"/\\*",end:"\\*/",name:"comment.block",patterns:[{match:"(\\b)(TODO)(\\b)(((?!\\*/).)*)",name:"meta.annotation.task.todo",
captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.block"}}}]}}}],keywords:[]}});
define("orion/editor/stylers/application_javascript/syntax",["orion/editor/stylers/lib/syntax"],function(b){var e="break,case,class,catch,continue,const,debugger,default,delete,do,else,enum,export,extends,false,finally,for,function,if,implements,import,in,instanceof,interface,let,new,null,package,private,protected,public,return,static,super,switch,this,throw,true,try,typeof,undefined,var,void,while,with,yield".split(","),b=b.grammars;b.push({id:"orion.js",contentTypes:["application/javascript"],patterns:[{include:"orion.lib#doc_block"},
{include:"orion.c-like"},{match:"\\b(?:"+e.join("|")+")\\b",name:"keyword.control.js"},{match:"/(?![\\s])(?:\\\\.|[^/])+/(?:[gim]{0,3})",name:"string.regexp.js"},{begin:"'(?:\\\\.|[^\\\\'])*\\\\$",end:"^(?:$|(?:\\\\.|[^\\\\'])*('|[^\\\\]$))",name:"string.quoted.single.js"},{begin:'"(?:\\\\.|[^\\\\"])*\\\\$',end:'^(?:$|(?:\\\\.|[^\\\\"])*("|[^\\\\]$))',name:"string.quoted.double.js"}]});return{id:b[b.length-1].id,grammars:b,keywords:e}});
define("orion/editor/stylers/text_css/syntax",["orion/editor/stylers/lib/syntax"],function(b){var e="alignment-adjust,alignment-baseline,animation-delay,animation-direction,animation-duration,animation-iteration-count,animation-name,animation-play-state,animation-timing-function,animation,appearance,azimuth,backface-visibility,background-attachment,background-clip,background-color,background-image,background-origin,background-position,background-repeat,background-size,background,baseline-shift,binding,bleed,bookmark-label,bookmark-level,bookmark-state,bookmark-target,border-bottom-color,border-bottom-left-radius,border-bottom-right-radius,border-bottom-style,border-bottom-width,border-bottom,border-collapse,border-color,border-image-outset,border-image-repeat,border-image-slice,border-image-source,border-image-width,border-image,border-left-color,border-left-style,border-left-width,border-left,border-radius,border-right-color,border-right-style,border-right-width,border-right,border-spacing,border-style,border-top-color,border-top-left-radius,border-top-right-radius,border-top-style,border-top-width,border-top,border-width,border,bottom,box-align,box-decoration-break,box-direction,box-flex-group,box-flex,box-lines,box-ordinal-group,box-orient,box-pack,box-shadow,box-sizing,break-after,break-before,break-inside,caption-side,clear,clip,color-profile,color,column-count,column-fill,column-gap,column-rule-color,column-rule-style,column-rule-width,column-rule,column-span,column-width,columns,content,counter-increment,counter-reset,crop,cue-after,cue-before,cue,cursor,direction,display,dominant-baseline,drop-initial-after-adjust,drop-initial-after-align,drop-initial-before-adjust,drop-initial-before-align,drop-initial-size,drop-initial-value,elevation,empty-cells,fit-position,fit,flex-align,flex-flow,flex-inline-pack,flex-order,flex-pack,float-offset,float,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,font,grid-columns,grid-rows,hanging-punctuation,height,hyphenate-after,hyphenate-before,hyphenate-character,hyphenate-lines,hyphenate-resource,hyphens,icon,image-orientation,image-rendering,image-resolution,inline-box-align,left,letter-spacing,line-height,line-stacking-ruby,line-stacking-shift,line-stacking-strategy,line-stacking,list-style-image,list-style-position,list-style-type,list-style,margin-bottom,margin-left,margin-right,margin-top,margin,mark-after,mark-before,mark,marker-offset,marks,marquee-direction,marquee-loop,marquee-play-count,marquee-speed,marquee-style,max-height,max-width,min-height,min-width,move-to,nav-down,nav-index,nav-left,nav-right,nav-up,opacity,orphans,outline-color,outline-offset,outline-style,outline-width,outline,overflow-style,overflow-x,overflow-y,overflow,padding-bottom,padding-left,padding-right,padding-top,padding,page-break-after,page-break-before,page-break-inside,page-policy,page,pause-after,pause-before,pause,perspective-origin,perspective,phonemes,pitch-range,pitch,play-during,position,presentation-level,punctuation-trim,quotes,rendering-intent,resize,rest-after,rest-before,rest,richness,right,rotation-point,rotation,ruby-align,ruby-overhang,ruby-position,ruby-span,size,speak-header,speak-numeral,speak-punctuation,speak,speech-rate,stress,string-set,table-layout,target-name,target-new,target-position,target,text-align-last,text-align,text-decoration,text-emphasis,text-height,text-indent,text-justify,text-outline,text-shadow,text-transform,text-wrap,top,transform-origin,transform-style,transform,transition-delay,transition-duration,transition-property,transition-timing-function,transition,unicode-bidi,vertical-align,visibility,voice-balance,voice-duration,voice-family,voice-pitch-range,voice-pitch,voice-rate,voice-stress,voice-volume,volume,white-space-collapse,white-space,widows,width,word-break,word-spacing,word-wrap,z-index".split(","),
b=b.grammars;b.push({id:"orion.css",contentTypes:["text/css"],patterns:[{include:"orion.lib"},{include:"orion.c-like#comment_block"},{match:"(?:-webkit-|-moz-|-ms-|\\b)(?:"+e.join("|")+")\\b",name:"keyword.control.css"},{match:"(?i)\\b-?(?:\\.\\d+|\\d+\\.?\\d*)(?:%|em|ex|ch|rem|vw|vh|vmin|vmax|in|cm|mm|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?\\b",name:"constant.numeric.value.css"},{begin:"(['\"])(?:\\\\.|[^\\\\\\1])*\\\\$",end:"^(?:$|(?:\\\\.|[^\\\\\\1])*(\\1|[^\\\\]$))",name:"string.quoted.multiline.css"}],
repository:{number_hex:{match:"#[0-9A-Fa-f]+\\b",name:"constant.numeric.hex.css"}}});return{id:b[b.length-1].id,grammars:b,keywords:e}});
define("orion/editor/stylers/text_x-php/syntax",["orion/editor/stylers/lib/syntax"],function(b){var e="abstract,and,array,as,break,callable,case,catch,class,clone,const,continue,declare,default,die,do,echo,else,elseif,empty,enddeclare,endfor,endforeach,endif,endswitch,endwhile,eval,exit,extends,false,FALSE,final,finally,for,foreach,function,global,goto,if,implements,include,include_once,insteadof,interface,instanceof,isset,list,namespace,new,null,NULL,or,parent,print,private,protected,public,require,require_once,return,self,static,switch,throw,trait,try,true,TRUE,unset,use,var,while,xor,yield,__halt_compiler,__CLASS__,__DIR__,__FILE__,__FUNCTION__,__LINE__,__METHOD__,__NAMESPACE__,__TRAIT__".split(","),b=
b.grammars;b.push({id:"orion.php",contentTypes:["text/x-php"],patterns:[{include:"orion.lib#doc_block"},{include:"orion.c-like"},{match:"(?i)<\\?(?:=|php)?(?:\\s|$)",name:"entity.name.declaration.php"},{match:"<%=?(?:\\s|$)",name:"entity.name.declaration.php"},{match:"#.*",name:"comment.line.number-sign.php",patterns:[{include:"orion.lib#todo_comment_singleLine"}]},{begin:"<<<(\\w+)$",end:"^\\1;$",name:"string.unquoted.heredoc.php"},{begin:"<<<'(\\w+)'$",end:"^\\1;$",name:"string.unquoted.heredoc.nowdoc.php"},
{match:"\\b0[bB][01]+\\b",name:"constant.numeric.binary.php"},{match:"\\b(?:"+e.join("|")+")\\b",name:"keyword.control.php"}]});return{id:"orion.php",grammars:b,keywords:e}});
define("orion/editor/stylers/application_xml/syntax",["orion/editor/stylers/lib/syntax"],function(b){b=b.grammars;b.push({id:"orion.xml",contentTypes:["application/xml","application/xhtml+xml"],patterns:[{include:"#comment"},{include:"#doctype"},{include:"#xmlDeclaration"},{begin:"</?[A-Za-z0-9]+",end:"/?>",captures:{0:{name:"entity.name.tag.xml"}},name:"meta.tag.xml",patterns:[{include:"#comment"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"}]},{match:"&lt;|&gt;|&amp;",
name:"constant.character"}],repository:{comment:{begin:"<\!--",end:"--\>",name:"comment.block.xml",patterns:[{match:"(\\b)(TODO)(\\b)(((?!--\>).)*)",name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.line"}}}]},doctype:{begin:"<!(?:doctype|DOCTYPE)",end:">",name:"meta.tag.doctype.xml",captures:{0:{name:"entity.name.tag.doctype.xml"}},patterns:[{include:"#comment"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"}]},
xmlDeclaration:{begin:"<\\?xml",end:"\\?>",captures:{0:{name:"entity.name.tag.declaration.xml"}},patterns:[{include:"#comment"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"}],name:"meta.tag.declaration.xml"}}});return{id:b[b.length-1].id,grammars:b,keywords:[]}});
define("orion/editor/stylers/text_html/syntax",["orion/editor/stylers/lib/syntax","orion/editor/stylers/application_javascript/syntax","orion/editor/stylers/text_css/syntax","orion/editor/stylers/text_x-php/syntax","orion/editor/stylers/application_xml/syntax"],function(b,e,g,d,a){b=b.grammars.concat(e.grammars).concat(g.grammars).concat(d.grammars).concat(a.grammars);b.push({id:"orion.html",contentTypes:["text/html"],patterns:[{include:"orion.xml"},{begin:"(?i)(<style)([^>]*)(>)",end:"(?i)(</style>)",
captures:{1:{name:"entity.name.tag.html"},3:{name:"entity.name.tag.html"}},contentName:"source.css.embedded.html",patterns:[{include:"orion.css"}]},{begin:"(?i)<script\\s*>|<script\\s.*?(?:language\\s*=\\s*(['\"])javascript\\1|type\\s*=\\s*(['\"])(?:text|application)/(?:javascript|ecmascript)\\2).*?>",end:"(?i)<\/script>",captures:{0:{name:"entity.name.tag.html"}},contentName:"source.js.embedded.html",patterns:[{include:"orion.js"}]},{begin:"(?i)<script\\s.*?(?:language\\s*=\\s*(['\"])php\\1|type\\s*=\\s*(['\"])text/x-php\\2).*?>",
end:"(?i)<\/script>",captures:{0:{name:"entity.name.tag.html"}},contentName:"source.php.embedded.html",patterns:[{include:"orion.php"}]},{begin:"(?i)<\\?(?:=|php)?(?:\\s|$)",end:"\\?>",captures:{0:{name:"entity.name.declaration.php"}},contentName:"source.php.embedded.html",patterns:[{include:"orion.php"}]},{begin:"<%=?(?:\\s|$)",end:"%>",captures:{0:{name:"entity.name.declaration.php"}},contentName:"source.php.embedded.html",patterns:[{include:"orion.php"}]}],repository:{xmlDeclaration:{}}});return{id:b[b.length-
1].id,grammars:b,keywords:[]}});
define('built-htmlPlugin.js',["orion/plugin","orion/editor/htmlContentAssist","orion/editor/htmlGrammar","orion/editor/stylers/text_html/syntax"],function(b,e,g,d){b=new b({name:"Orion HTML Tool Support",version:"1.0",description:"This plugin provides HTML tools support for Orion."});b.registerServiceProvider("orion.core.contenttype",{},{contentTypes:[{id:"text/html","extends":"text/plain",name:"HTML",extension:["html","htm"],imageClass:"file-sprite-html modelDecorationSprite"}]});b.registerService("orion.edit.contentassist",
new e.HTMLContentAssistProvider,{name:"HTML content assist",contentType:["text/html"],charTriggers:"<",excludedStyles:"(comment.*|string.*)"});b.registerServiceProvider("orion.edit.highlighter",{},d.grammars[d.grammars.length-1]);b.connect()});